1 Tue May 2 10:39:56 WST 2006 John Darrington <john@darrington.wattle.id.au>
3 * list.q Changed from using fixed length char buffers to struct
4 string so that any length variables can be used.
6 Mon May 1 18:21:19 2006 Ben Pfaff <blp@gnu.org>
8 Further clean up the CMD_* command result codes.
10 * (enum cmd_result_extensions) New. Add CMD_END_INPUT_PROGRAM and
11 CMD_END_CASE result codes.
12 (struct input_program_pgm) Added case_nr, write_case, wc_data
13 members for use by END CASE transformation.
14 (emit_END_CASE) New function.
15 (cmd_input_program) Interpret CMD_END_CASE by outputting an END
16 CASE transformation. If none is output by the input program
17 itself, add one automatically at the end. Change lack of
18 variables from warning to error.
19 (cmd_end_input_program) Return CMD_END_INPUT_PROGRAM instead of
21 (input_program_source_read) No longer any need to special-case END
22 CASE. Handle TRNS_DROP_CASE properly. Initialize new members in
23 inp for use by END CASE transformation.
24 (destroy_input_program) New function.
25 (input_program_source_destroy) Just call destroy_input_program().
26 (cmd_end_case) Just return CMD_END_CASE.
27 (end_case_trns_proc) No longer a stub handled by
28 input_program_source_read(). Actually output the case and
29 increment the case number.
31 Mon May 1 16:06:30 2006 Ben Pfaff <blp@gnu.org>
33 Remove vestiges of REPEATING DATA support.
35 * data-list.c: (struct rpd_num_or_var) Removed.
36 (struct repeating_data_trns) Removed.
37 (cmd_repeating_data) Removed.
38 (find_variable_input_spec) Removed.
39 (parse_num_or_var) Removed.
40 (parse_repeating_data) Removed.
41 (realize_value) Removed.
42 (struct rpd_parse_info) Removed.
43 (rpd_parse_record) Removed.
44 (repeating_data_trns_proc) Removed.
45 (repeating_data_trns_free) Removed.
46 (repeating_data_set_write_case) Removed.
49 * inpt-pgm.c: (input_program_source_read) Don't deal with
52 * data-list.h: Removed.
54 * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Removed
57 Mon May 1 15:58:28 2006 Ben Pfaff <blp@gnu.org>
59 Remove vestiges of FILE TYPE support.
61 * data-list.c: (cmd_data_list) Don't check for FILE TYPE.
62 (cmd_repeating_data) Ditto.
64 * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Remove
65 file-type.c, file-type.h.
67 * file-type.c: Removed.
69 * file-type.h: Removed.
71 Wed Apr 26 13:16:28 2006 Ben Pfaff <blp@gnu.org>
73 Improve the way we handle the various parsing "states". Until now
74 we've hard-coded the state transitions in the command definition
75 file, but that's error-prone and, worse, it's redundant--we can
76 figure out what state we're in anyhow. We can cleanly handle
77 INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
79 * data-list.c: (cmd_data_list) Use in_file_type() or
80 in_input_program() in place of case_source_is_class() or
81 case_source_is_complex().
83 * file-type.c: NB: Not really fixed except minimally to compile,
84 because it doesn't work anyway.
85 (in_file_type) New function.
86 (cmd_record_type) No need to check that we're in FILE TYPE.
87 (cmd_end_file_type) Ditto.
88 (var file_type_source_class) Make static.
90 * get.c: (cmd_match_files) Check vfm_source instead of pgm_state.
92 * inpt-pgm.c: (in_input_program) New function.
93 (cmd_input_program) Rewrite to include nested command processing
95 (cmd_end_input_program) Just return CMD_END_SUBLOOP.
96 (var input_program_source_class) Make static.
97 (cmd_end_case) No need to check that we're in INPUT PROGRAM.
100 * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Add
101 file-type.h, inpt-pgm.h.
103 * file-type.h: New file.
105 * inpt-pgm.h: New file.
107 Tue Apr 25 13:11:55 2006 Ben Pfaff <blp@gnu.org>
109 * print.c: Don't special-case MS-DOS line terminators.
110 (macro LINE_END_WIDTH) Removed.
111 (alloc_line) Line ends are 1 byte.
112 (print_trns_proc) Just output \n for line end.
114 Sun Apr 23 22:05:58 2006 Ben Pfaff <blp@gnu.org>
116 Continue reforming error message support. In this phase, get rid
117 of message "titles" and put the message text in `struct error'.
118 Now `struct error' encapsulates a message more properly.
120 * data-list.c: (macro RPD_ERR) Removed.
121 (rpd_msg) New function. Updated all references to tmsg() to call
122 this function instead.
124 Sat Apr 15 19:38:13 2006 Ben Pfaff <blp@gnu.org>
126 Remove last users of struct file_ext so we can get rid of it
129 * data-reader.c: (struct dfm_reader) Change file member from
130 struct file_ext to FILE *. Updated all references.
131 (dfm_close_reader) Close file with fn_close() instead of
132 fn_close_ext(). Also, make a copy of the file name from the file
133 handle before closing it, because we can't extract it after we
135 (dfm_open_reader) Open file with fn_open() instead of
138 * data-writer.c: (struct dfm_writer) Change file member
139 struct file_ext to FILE *. Updated all references.
140 (dfm_close_writer) Close file with fn_close() instead of
141 fn_close_ext(). Also, make a copy of the file name from the file
142 handle before closing it, because we can't extract it after we
144 (dfm_open_writer) Open file with fn_open() instead of
147 Sat Apr 15 18:00:32 2006 Ben Pfaff <blp@gnu.org>
149 * data-list.c: Add prototype to suppress warning for
150 cmd_repeating_data().
152 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
154 * Moved files from src directory