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