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