Improve the way we handle the various parsing "states". Until now
[pspp-builds.git] / src / language / data-io / ChangeLog
1 Wed Apr 26 13:41:05 2006  Ben Pfaff  <blp@gnu.org>
2
3 Wed Apr 26 13:16:28 2006  Ben Pfaff  <blp@gnu.org>
4
5         Improve the way we handle the various parsing "states".  Until now
6         we've hard-coded the state transitions in the command definition
7         file, but that's error-prone and, worse, it's redundant--we can
8         figure out what state we're in anyhow.  We can cleanly handle
9         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
10         
11         * data-list.c: (cmd_data_list) Use in_file_type() or
12         in_input_program() in place of case_source_is_class() or
13         case_source_is_complex().
14
15         * file-type.c: NB: Not really fixed except minimally to compile,
16         because it doesn't work anyway.
17         (in_file_type) New function.
18         (cmd_record_type) No need to check that we're in FILE TYPE.
19         (cmd_end_file_type) Ditto.
20         (var file_type_source_class) Make static.
21
22         * get.c: (cmd_match_files) Check vfm_source instead of pgm_state.
23
24         * inpt-pgm.c: (in_input_program) New function.
25         (cmd_input_program) Rewrite to include nested command processing
26         loop.
27         (cmd_end_input_program) Just return CMD_END_SUBLOOP.
28         (var input_program_source_class) Make static.
29         (cmd_end_case) No need to check that we're in INPUT PROGRAM.
30         (cmd_end_file) Ditto.
31         
32         * automake.mk (src_language_data_io_libdata_io_a_SOURCES): Add
33         file-type.h, inpt-pgm.h.
34
35         * file-type.h: New file.
36
37         * inpt-pgm.h: New file.
38
39 Tue Apr 25 13:11:55 2006  Ben Pfaff  <blp@gnu.org>
40
41         * print.c: Don't special-case MS-DOS line terminators.
42         (macro LINE_END_WIDTH) Removed.
43         (alloc_line) Line ends are 1 byte.
44         (print_trns_proc) Just output \n for line end.
45
46 Sun Apr 23 22:05:58 2006  Ben Pfaff  <blp@gnu.org>
47
48         Continue reforming error message support.  In this phase, get rid
49         of message "titles" and put the message text in `struct error'.
50         Now `struct error' encapsulates a message more properly.
51         
52         * data-list.c: (macro RPD_ERR) Removed.
53         (rpd_msg) New function.  Updated all references to tmsg() to call
54         this function instead.
55
56 Sat Apr 15 19:38:13 2006  Ben Pfaff  <blp@gnu.org>
57
58         Remove last users of struct file_ext so we can get rid of it
59         entirely.
60         
61         * data-reader.c: (struct dfm_reader) Change file member from
62         struct file_ext to FILE *.  Updated all references.
63         (dfm_close_reader) Close file with fn_close() instead of
64         fn_close_ext().  Also, make a copy of the file name from the file
65         handle before closing it, because we can't extract it after we
66         close the file.
67         (dfm_open_reader) Open file with fn_open() instead of
68         fn_open_ext().
69
70         * data-writer.c: (struct dfm_writer) Change file member 
71         struct file_ext to FILE *.  Updated all references.
72         (dfm_close_writer) Close file with fn_close() instead of
73         fn_close_ext().  Also, make a copy of the file name from the file
74         handle before closing it, because we can't extract it after we
75         close the file.
76         (dfm_open_writer) Open file with fn_open() instead of
77         fn_open_ext().
78
79 Sat Apr 15 18:00:32 2006  Ben Pfaff  <blp@gnu.org>
80
81         * data-list.c: Add prototype to suppress warning for
82         cmd_repeating_data().
83         
84 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
85         
86         * Moved files from src directory