7c486bc3553999bc1854972f92d87fe805a9efc2
[pspp-builds.git] / src / language / data-io / ChangeLog
1 Mon May  1 18:21:19 2006  Ben Pfaff  <blp@gnu.org>
2
3         Further clean up the CMD_* command result codes.
4         
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
15         CMD_END_SUBLOOP.
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.
25
26 Mon May  1 16:06:30 2006  Ben Pfaff  <blp@gnu.org>
27
28         Remove vestiges of REPEATING DATA support.
29         
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.
42         (rpd_msg) Removed.
43
44         * inpt-pgm.c: (input_program_source_read) Don't deal with
45         REPEATING DATA.
46
47         * data-list.h: Removed.
48
49         * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Removed
50         data-list.h.
51
52 Mon May  1 15:58:28 2006  Ben Pfaff  <blp@gnu.org>
53
54         Remove vestiges of FILE TYPE support. 
55         
56         * data-list.c: (cmd_data_list) Don't check for FILE TYPE.
57         (cmd_repeating_data) Ditto.
58         
59         * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Remove
60         file-type.c, file-type.h.
61
62         * file-type.c: Removed.
63         
64         * file-type.h: Removed.
65
66 Wed Apr 26 13:16:28 2006  Ben Pfaff  <blp@gnu.org>
67
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.
73         
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().
77
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.
84
85         * get.c: (cmd_match_files) Check vfm_source instead of pgm_state.
86
87         * inpt-pgm.c: (in_input_program) New function.
88         (cmd_input_program) Rewrite to include nested command processing
89         loop.
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.
93         (cmd_end_file) Ditto.
94         
95         * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Add
96         file-type.h, inpt-pgm.h.
97
98         * file-type.h: New file.
99
100         * inpt-pgm.h: New file.
101
102 Tue Apr 25 13:11:55 2006  Ben Pfaff  <blp@gnu.org>
103
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.
108
109 Sun Apr 23 22:05:58 2006  Ben Pfaff  <blp@gnu.org>
110
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.
114         
115         * data-list.c: (macro RPD_ERR) Removed.
116         (rpd_msg) New function.  Updated all references to tmsg() to call
117         this function instead.
118
119 Sat Apr 15 19:38:13 2006  Ben Pfaff  <blp@gnu.org>
120
121         Remove last users of struct file_ext so we can get rid of it
122         entirely.
123         
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
129         close the file.
130         (dfm_open_reader) Open file with fn_open() instead of
131         fn_open_ext().
132
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
138         close the file.
139         (dfm_open_writer) Open file with fn_open() instead of
140         fn_open_ext().
141
142 Sat Apr 15 18:00:32 2006  Ben Pfaff  <blp@gnu.org>
143
144         * data-list.c: Add prototype to suppress warning for
145         cmd_repeating_data().
146         
147 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
148         
149         * Moved files from src directory