1 Sat May 6 19:03:13 2006 Ben Pfaff <blp@gnu.org>
3 * get.c: (mtf_merge_dictionary) Fix value label memory leak.
5 Sat May 6 13:51:16 2006 Ben Pfaff <blp@gnu.org>
7 Use a casefile, instead of a case sink, for MATCH FILES output.
8 It's more straightforward, although it has the same effect.
10 * get.c: (struct mtf_proc) Replace `sink' case sink member by
11 `output' casefile member.
12 (cmd_match_files) Work with casefile instead of sink.
13 (mtf_processing) Add case to casefile instead of sink.
15 Sat May 6 10:43:07 2006 Ben Pfaff <blp@gnu.org>
17 Continue reforming procedure execution. In this phase, get rid of
18 the output code for SPLIT FILE groups in procedure.c, which really
19 shouldn't be doing any output. Move it into the individual
20 procedures instead. This also adds some flexibility.
22 * list.q (write_all_headers): Call output_split_file_values().
24 Wed May 3 23:00:17 2006 Ben Pfaff <blp@gnu.org>
26 Continue reforming procedure execution. In this phase, get rid of
27 many global variables, consolidating procedure execution in
28 procedure.c. Encapsulate transformations in new "struct
29 trns_chain". Also, change implementation of N OF CASES, FILTER,
30 and PROCESS IF from special cases to transformations.
32 * data-list.c: (data_list_trns_proc) Return TRNS_END_FILE at end
33 of file. (Why didn't we do this before?)
34 (cmd_match_files) Direct procedure output to null sink.
35 Use discard_variables() instead of indirect version.
37 * inpt-pgm.c: Use transformation chain.
38 (struct input_program_pgm) Add trns_chain member.
39 (cmd_input_program) Initialize trns_chain member and capture
40 transformations with proc_capture_transformations().
41 (input_program_source_read) Use trns_chain_execute().
42 (destroy_input_program) Destroy input chain.
44 Tue May 2 10:39:56 WST 2006 John Darrington <john@darrington.wattle.id.au>
46 * list.q Changed from using fixed length char buffers to struct
47 string so that any length variables can be used.
49 Mon May 1 18:21:19 2006 Ben Pfaff <blp@gnu.org>
51 Further clean up the CMD_* command result codes.
53 * (enum cmd_result_extensions) New. Add CMD_END_INPUT_PROGRAM and
54 CMD_END_CASE result codes.
55 (struct input_program_pgm) Added case_nr, write_case, wc_data
56 members for use by END CASE transformation.
57 (emit_END_CASE) New function.
58 (cmd_input_program) Interpret CMD_END_CASE by outputting an END
59 CASE transformation. If none is output by the input program
60 itself, add one automatically at the end. Change lack of
61 variables from warning to error.
62 (cmd_end_input_program) Return CMD_END_INPUT_PROGRAM instead of
64 (input_program_source_read) No longer any need to special-case END
65 CASE. Handle TRNS_DROP_CASE properly. Initialize new members in
66 inp for use by END CASE transformation.
67 (destroy_input_program) New function.
68 (input_program_source_destroy) Just call destroy_input_program().
69 (cmd_end_case) Just return CMD_END_CASE.
70 (end_case_trns_proc) No longer a stub handled by
71 input_program_source_read(). Actually output the case and
72 increment the case number.
74 Mon May 1 16:06:30 2006 Ben Pfaff <blp@gnu.org>
76 Remove vestiges of REPEATING DATA support.
78 * data-list.c: (struct rpd_num_or_var) Removed.
79 (struct repeating_data_trns) Removed.
80 (cmd_repeating_data) Removed.
81 (find_variable_input_spec) Removed.
82 (parse_num_or_var) Removed.
83 (parse_repeating_data) Removed.
84 (realize_value) Removed.
85 (struct rpd_parse_info) Removed.
86 (rpd_parse_record) Removed.
87 (repeating_data_trns_proc) Removed.
88 (repeating_data_trns_free) Removed.
89 (repeating_data_set_write_case) Removed.
92 * inpt-pgm.c: (input_program_source_read) Don't deal with
95 * data-list.h: Removed.
97 * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Removed
100 Mon May 1 15:58:28 2006 Ben Pfaff <blp@gnu.org>
102 Remove vestiges of FILE TYPE support.
104 * data-list.c: (cmd_data_list) Don't check for FILE TYPE.
105 (cmd_repeating_data) Ditto.
107 * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Remove
108 file-type.c, file-type.h.
110 * file-type.c: Removed.
112 * file-type.h: Removed.
114 Wed Apr 26 13:16:28 2006 Ben Pfaff <blp@gnu.org>
116 Improve the way we handle the various parsing "states". Until now
117 we've hard-coded the state transitions in the command definition
118 file, but that's error-prone and, worse, it's redundant--we can
119 figure out what state we're in anyhow. We can cleanly handle
120 INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
122 * data-list.c: (cmd_data_list) Use in_file_type() or
123 in_input_program() in place of case_source_is_class() or
124 case_source_is_complex().
126 * file-type.c: NB: Not really fixed except minimally to compile,
127 because it doesn't work anyway.
128 (in_file_type) New function.
129 (cmd_record_type) No need to check that we're in FILE TYPE.
130 (cmd_end_file_type) Ditto.
131 (var file_type_source_class) Make static.
133 * get.c: (cmd_match_files) Check vfm_source instead of pgm_state.
135 * inpt-pgm.c: (in_input_program) New function.
136 (cmd_input_program) Rewrite to include nested command processing
138 (cmd_end_input_program) Just return CMD_END_SUBLOOP.
139 (var input_program_source_class) Make static.
140 (cmd_end_case) No need to check that we're in INPUT PROGRAM.
141 (cmd_end_file) Ditto.
143 * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Add
144 file-type.h, inpt-pgm.h.
146 * file-type.h: New file.
148 * inpt-pgm.h: New file.
150 Tue Apr 25 13:11:55 2006 Ben Pfaff <blp@gnu.org>
152 * print.c: Don't special-case MS-DOS line terminators.
153 (macro LINE_END_WIDTH) Removed.
154 (alloc_line) Line ends are 1 byte.
155 (print_trns_proc) Just output \n for line end.
157 Sun Apr 23 22:05:58 2006 Ben Pfaff <blp@gnu.org>
159 Continue reforming error message support. In this phase, get rid
160 of message "titles" and put the message text in `struct error'.
161 Now `struct error' encapsulates a message more properly.
163 * data-list.c: (macro RPD_ERR) Removed.
164 (rpd_msg) New function. Updated all references to tmsg() to call
165 this function instead.
167 Sat Apr 15 19:38:13 2006 Ben Pfaff <blp@gnu.org>
169 Remove last users of struct file_ext so we can get rid of it
172 * data-reader.c: (struct dfm_reader) Change file member from
173 struct file_ext to FILE *. Updated all references.
174 (dfm_close_reader) Close file with fn_close() instead of
175 fn_close_ext(). Also, make a copy of the file name from the file
176 handle before closing it, because we can't extract it after we
178 (dfm_open_reader) Open file with fn_open() instead of
181 * data-writer.c: (struct dfm_writer) Change file member
182 struct file_ext to FILE *. Updated all references.
183 (dfm_close_writer) Close file with fn_close() instead of
184 fn_close_ext(). Also, make a copy of the file name from the file
185 handle before closing it, because we can't extract it after we
187 (dfm_open_writer) Open file with fn_open() instead of
190 Sat Apr 15 18:00:32 2006 Ben Pfaff <blp@gnu.org>
192 * data-list.c: Add prototype to suppress warning for
193 cmd_repeating_data().
195 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
197 * Moved files from src directory