Make PSPP able to read all the portable files I could find on the
authorBen Pfaff <blp@gnu.org>
Sun, 29 Jul 2007 05:40:51 +0000 (05:40 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 29 Jul 2007 05:40:51 +0000 (05:40 +0000)
commit29956ba4326b9d6a2bc4d22a9f323902c7a08d43
treeacfd88efb4b07873a83b7136b8445360bbcd1df1
parent9cbe9768e1e2685c2aceb726cbecb7a1ac082dbc
Make PSPP able to read all the portable files I could find on the
web.
* por-file-reader.c (struct pfm_reader): New member `line_length'.
(error): Print file offset in hexadecimal.
(warning): New function.
(advance): Treat lines less than 80 bytes long as padded to 80
bytes with spaces.
(pfm_open_reader): Call read_documents if we find an "E" record.
(convert_format): Convert invalid formats to the default format
instead of aborting reading the file.
(read_variables): Rename duplicate variable names instead of
aborting reading the file.
(read_value_label): Allow string variables of different widths to
be assigned value labels in the same record.  Replace duplicate
value labels instead of aborting.
(read_documents): New function.

* por-file-writer.c (pfm_open_writer): Call write_documents if the
dictionary has documents.
(write_documents): New function.
doc/portable-file-format.texi
src/data/ChangeLog
src/data/por-file-reader.c
src/data/por-file-writer.c