X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fdata-file-format.texi;h=79f6bb3a1f7c8d6c85dd6ae829f3ccb11aa6c427;hb=39929aa077830c708adcc5dfd224fd973428d0bc;hp=4f3518c028d6fdd788a97271d3072b6c86f3dfcd;hpb=393668423c1c9456fd82db6b30f25de078915da5;p=pspp-builds.git diff --git a/doc/data-file-format.texi b/doc/data-file-format.texi index 4f3518c0..79f6bb3a 100644 --- a/doc/data-file-format.texi +++ b/doc/data-file-format.texi @@ -135,7 +135,7 @@ format and using 24-hour time. If the time is not available then this field is arbitrarily set to @samp{00:00:00}. @item char file_label[64]; -Set the the file label declared by the user, if any @xref{FILE LABEL}. +Set the the file label declared by the user, if any (@pxref{FILE LABEL}). Padded on the right with spaces. @item char padding[3]; @@ -201,7 +201,7 @@ Write format for this variable. See below. @item char name[8]; Variable name. The variable name must begin with a capital letter or -the at-sign (@samp{@@}). Subsequent characters may also be octothorpes +the at-sign (@samp{@@}). Subsequent characters may also be digits, octothorpes (@samp{#}), dollar signs (@samp{$}), underscores (@samp{_}), or full stops (@samp{.}). The variable name is padded on the right with spaces. @@ -369,7 +369,9 @@ label record are to be applied. @item int32 vars[/* variable length */]; A list of variables to which to apply the value labels. There are -@code{count} elements. +@code{count} elements. Each element identifies a variable record, where +the first element is numbered 1 and long string variables are considered +to occupy multiple indexes. @end table @node Document Record, Machine int32 Info Record, Value Label Variable Record, Data File Format @@ -554,7 +556,9 @@ The total number of records in @code{aux_params}, multiplied by 3. @item struct aux_params aux_params[]; An array of @code{struct aux_params}. The order of the elements corresponds -to the order of the variables in the Variable Records. The @code{struct aux_params} type is defined as follows: +to the order of the variables in the Variable Records. No element +corresponds to variable records that continue long string variables. +The @code{struct aux_params} type is defined as follows: @example struct aux_params @@ -638,7 +642,8 @@ The total number of bytes in @code{var_name_pairs}. A list of @var{key}--@var{value} tuples, where @var{key} is the name of a variable, and @var{value} is its long variable name. The @var{key} field is at most 8 bytes long and must match the -name of a variable which appears in the variable record @xref{Variable Record}. +name of a variable which appears in the variable record (@pxref{Variable +Record}). The @var{value} field is at most 64 bytes long. The @var{key} and @var{value} fields are separated by a @samp{=} byte. Each tuple is separated by a byte whose value is 09. There is no @@ -686,12 +691,13 @@ The total number of bytes in @code{string_lengths}. A list of @var{key}--@var{value} tuples, where @var{key} is the name of a variable, and @var{value} is its length. The @var{key} field is at most 8 bytes long and must match the -name of a variable which appears in the variable record @xref{Variable Record}. -The @var{value} field is exactly 5 bytes long. It is a zero padded ascii -encoded, string which is the length of the variable. +name of a variable which appears in the variable record (@pxref{Variable +Record}). +The @var{value} field is exactly 5 bytes long. It is a zero-padded, +ASCII-encoded string that is the length of the variable. The @var{key} and @var{value} fields are separated by a @samp{=} byte. -Tuples are delimeted a two byte sequence @{00, 09@}. -After the last tuple, there may be a single byte 00, or by @{00, 09@}. +Tuples are delimited by a two-byte sequence @{00, 09@}. +After the last tuple, there may be a single byte 00, or @{00, 09@}. The total length is @code{count} bytes. @end table @@ -703,8 +709,9 @@ The total length is @code{count} bytes. Miscellaneous informational records must follow the variable records and precede the dictionary termination record. -Miscellaneous informational records are ignored by PSPP when reading -system files. They are not written by PSPP when writing system files. +Some specific types of miscellaneous informational records are +documented here, but others are known to exist. PSPP ignores unknown +miscellaneous informational records when reading system files. @example struct sysfile_misc_info