Rewrite and improve formatted output routines.
[pspp-builds.git] / src / language / data-io / ChangeLog
index 0fb80cbc9cea6790e2c6afaa31662fb2ed690f45..2fb050dc4cc2ad6fc95138e7308951dd870da8af 100644 (file)
@@ -1,3 +1,51 @@
+Tue Oct 31 20:04:06 2006  Ben Pfaff  <blp@gnu.org>
+
+       * placement-parser.c: (PRS_TYPE_T) Now that struct fmt_spec uses
+       an enum fmt_type for its type member, we can't depend on the
+       ability to put negative values into that member as out-of-band
+       values, because enum fmt_type might be an unsigned type.  So use
+       values around SCHAR_MAX instead, because we know that SCHAR_MAX
+       will fit into any type, signed or unsigned, and there aren't
+       nearly that many format types.
+       (parse_var_placements) Add for_input parameter to specify whether
+       we're parsing input or output formats.  Update all callers.
+       (fixed_parse_columns) Ditto.
+       (fixed_parse_fortran) Ditto.
+       
+
+Tue Oct 31 18:21:48 2006  Ben Pfaff  <blp@gnu.org>
+
+       * print-space.c (print_space_trns_proc): Let dfm_put_record add
+       the new-line character, to match dfm_put_record change below.
+
+Sat Oct 28 11:57:19 2006  Ben Pfaff  <blp@gnu.org>
+
+       * data-writer.c (struct dfm_writer): Removed `bounce' member, and
+       all references to it.
+       (dfm_put_record) Change semantics so that it adds formatting
+       itself, such as new-line characters, instead of putting that
+       responsibility on the caller.  Also, pad binary records with
+       spaces instead of zeros, for compatibility.
+
+       * print.c (struct prt_out_spec) New member `sysmis_as_spaces'.
+       (struct print_trns) Remove `omit_new_lines' and all references,
+       since dfm_put_record() is taking care of that.  Add
+       `include_prefix'.
+       (internal_cmd_print) Allow an empty set of data to print.  Set
+       include_prefix.
+       (parse_specs) Allow an empty set of data to print.
+       (parse_variable_argument) Only add space with PRINT command.  Set
+       sysmis_as_spaces.
+       (print_trns_proc) Indent records if include_prefix is set, for
+       compatibility.  Output SYSMIS as spaces if sysmis_as_spaces is
+       set.  Put "1" in first column if PRINT EJECT is used with an
+       external output file.
+       (flush_records) Ditto.
+
+Sat Oct 28 16:19:57 WST 2006 John Darrington <john@darrington.wattle.id.au>
+
+       * data-reader.c: Eliminated references to extern variable getl_buf
+
 Sat Aug  5 08:25:07 2006  Ben Pfaff  <blp@gnu.org>
 
        Fix bug #17329 in REREAD parsing, reported by John Darrington.