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