X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FsfmP.h;h=c127b85e71c5b366123e564df1fdb9c3cc74043b;hb=fa489d6ef77150e60c31906ee322bea2901da57f;hp=8fb79e3f70f06b521ef0ae25501aec1726b19978;hpb=d807ad29cc0d3caa4f0e04ee4b75c70a225cfeaf;p=pspp diff --git a/src/sfmP.h b/src/sfmP.h index 8fb79e3f70..c127b85e71 100644 --- a/src/sfmP.h +++ b/src/sfmP.h @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ /* PORTME: There might easily be alignment problems with some of these structures. */ @@ -55,6 +55,7 @@ #endif /* Figure out SYSMIS value for flt64. */ +#include "magic.h" #if SIZEOF_DOUBLE == 8 #define second_lowest_flt64 second_lowest_value #else @@ -67,7 +68,8 @@ struct sysfile_header char rec_type[4] P; /* 00: Record-type code, "$FL2". */ char prod_name[60] P; /* 04: Product identification. */ int32 layout_code P; /* 40: 2. */ - int32 case_size P; /* 44: Number of `value's per case. */ + int32 case_size P; /* 44: Number of `value's per case. + Note: some systems set this to -1 */ int32 compress P; /* 48: 1=compressed, 0=not compressed. */ int32 weight_idx P; /* 4c: 1-based index of weighting var, or 0. */ int32 case_cnt P; /* 50: Number of cases, -1 if unknown. */ @@ -88,7 +90,7 @@ struct sysfile_variable int32 n_missing_values P; /* Missing value code of -3,-2,0,1,2, or 3. */ int32 print P; /* Print format. */ int32 write P; /* Write format. */ - char name[8] P; /* Variable name. */ + char name[SHORT_NAME_LEN] P; /* Variable name. */ /* The rest of the structure varies. */ };