From: John Darrington Date: Thu, 5 Feb 2009 23:01:22 +0000 (+0900) Subject: Silently ignore some inrecognised subtypes. X-Git-Tag: sav-api~631^2~13 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57166a5a5c4016b83b9a35ac32c219ff853dc9ce;p=pspp Silently ignore some inrecognised subtypes. When reading system files, record subtypes of which the developers are aware but which pspp doesn't yet support are silently ignored. Subtypes which the developers are unaware provoke a message requesting the user to send us a sample. --- diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index d5b5b15f6f..e8349abf19 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -728,7 +728,11 @@ read_extension_record (struct sfm_reader *r, struct dictionary *dict, break; case 7: - /* Unknown purpose. */ + /* Used by the MRSETS command. */ + break; + + case 8: + /* Used by the SPSS Data Entry software. */ break; case 11: @@ -765,7 +769,8 @@ read_extension_record (struct sfm_reader *r, struct dictionary *dict, break; default: - sys_warn (r, _("Unrecognized record type 7, subtype %d."), subtype); + sys_warn (r, _("Unrecognized record type 7, subtype %d. Please send a copy of this file, and the syntax which created it to %s"), + subtype, PACKAGE_BUGREPORT); break; }