Implement journaling. Bug #17240.
[pspp-builds.git] / src / language / lexer / ChangeLog
1 2007-08-16  Ben Pfaff  <blp@gnu.org>
2
3         Implement journaling.  Bug #17240.
4         
5         * lexer.c (lex_get_line_raw): Pass the line read to journal_write.
6
7 2007-06-03  Ben Pfaff  <blp@gnu.org>
8
9         Implement missing functions for subcommand integer lists.
10         
11         * subcommand-list.c (subc_list_int_create): New function.
12         (subc_list_int_push): New function.
13         (subc_list_int_count): New function.
14         (subc_list_int_at): New function.
15         (subc_list_int_destroy): New function.
16
17 2007-05-06  Ben Pfaff  <blp@gnu.org>
18
19         Abstract the documents within a dictionary a little better.
20         Thanks to John Darrington for suggestion, initial version, and
21         review.  Patch #5917.
22
23         * lexer.c (lex_entire_line): Add const to parameter.
24         (lex_entire_line_ds): Ditto.
25         (lex_rest_of_line): Drop end_dot parameter.  Update all callers to
26         use lex_end_dot instead.
27         (lex_end_dot): New function.
28
29 2007-05-03  John Darrington <john@darrington.wattle.id.au>
30         
31         * lexer.c lexer.h: Added lex_is_string function.
32         
33 2007-04-15  Ben Pfaff  <blp@gnu.org>
34
35         * q2c.c: Fully support lists of integer values.  Add support for
36         lists of string values.  Add some more needed declarations to
37         headers.
38
39 Fri Feb 16 11:14:42 2007  Ben Pfaff  <blp@gnu.org>
40
41         Better support cross-compiling by using CC_FOR_BUILD and
42         EXEEXT_FOR_BUILD for q2c.
43         
44         * automake.mk: Use EXEEXT_FOR_BUILD and CC_FOR_BUILD to build and
45         clean q2c.
46
47         * q2c.c: Avoid external dependencies, besides the standard C
48         library.
49
50 Sun Feb 11 20:31:51 2007  Ben Pfaff  <blp@gnu.org>
51
52         * q2c.c: Make q2c link under mingw32, by eliminating the
53         dependency on localtime.  Gnulib replaces localtime by a fixed
54         version, but we don't link q2c against gnulib.  q2c only uses
55         localtime to put the time of processing into the output file,
56         which I've never in practice found to be useful, so the patch just
57         drops this feature.
58
59 Wed Dec 13 21:00:24 2006  Ben Pfaff  <blp@gnu.org>
60
61         * variable-parser.c (parse_variables): If not successful, set
62         output pointer to NULL and output count to 0.
63
64 Sat Dec  9 18:46:11 2006  Ben Pfaff  <blp@gnu.org>
65
66         * variable-parser.h: New PV_SAME_WIDTH variable parsing option.
67
68         * variable-parser.c (add_variable): Implement new PV_SAME_WIDTH
69         option.
70         (parse_var_set_vars) Ditto.
71         (array_var_set_lookup_var_idx) Use new var_create, var_destroy
72         functions.
73
74 Sat Dec  2 21:19:50 2006  Ben Pfaff  <blp@gnu.org>
75
76         General clean-up.
77         
78         * lexer.c: (lex_token_name) Don't use a static buffer or, rather,
79         use a separate static buffer for each possible answer.
80         (lex_token_representation) Now use lex_token_name as building
81         block.  Previously this broke lex_force_match because it uses
82         lex_token_name in a call to lex_error, which in turn uses
83         lex_token_representation.
84         (lex_force_match_id) Use lex_match_id as building block, to
85         simplify.
86         (parse_id) Rewrite to work with modified lex_id_to_token and
87         lex_id_get_length.  The computation of rest_of_line is a bit of an
88         abomination but it will get fixed later.
89         
90 Sat Dec  2 20:16:50 2006  Ben Pfaff  <blp@gnu.org>
91
92         * lexer.c (struct lexer): Change function signature for
93         `read_line' to take an "enum getl_syntax *" instead of "bool *".
94         (lex_create) Ditto, for argument.
95         (lex_preprocess_line) New function.
96         (lex_get_line_raw) New arg, to allow caller to obtain getl_syntax
97         of the line read.
98         (lex_get_line) Use lex_get_line_raw and lex_preprocess_line to
99         simplify.
100
101 Sun Nov 19 09:20:42 2006  Ben Pfaff  <blp@gnu.org>
102
103         * range-parser.c (parse_num_range): Because data_in takes an enum
104         fmt_type now, not a struct fmt_spec, change the type of the
105         corresponding argument.  Updated all callers.
106         (parse_number) Ditto.
107
108 Sun Nov 12 06:34:06 WST 2006 John Darrrington <john@darrington.wattle.id.au>
109
110         * format-parser.c format-parser.h lexer.c lexer.h q2c.c range-parser.c
111           range-parser.h subcommand-list.c variable-parser.c
112           variable-parser.h:
113
114         Encapsulated the lexer into an object, and updated everything
115         accordingly.
116
117 Tue Oct 31 18:09:32 2006  Ben Pfaff  <blp@gnu.org>
118
119         * range-parser.c (parse_number): Fix error message.
120
121 Sat Oct 28 16:17:18 WST 2006 John Darrington <john@darrington.wattle.id.au>
122
123         * lexer.c lexer.h: Added a line_buffer (previously an external
124         reference called getl_buf). 
125
126 Thu Oct 26 20:18:03 2006  Ben Pfaff  <blp@gnu.org>
127
128         * lexer.c (parse_string): Make lexing of binary, hex, and octal
129         strings work (fixes bug #17948).  Allow null bytes in strings, now
130         that there's a use for them (see tests/formats/float-format.sh).
131
132 Sun Jul 16 21:03:34 2006  Ben Pfaff  <blp@gnu.org>
133
134         * format-parser.h: New file.  Moved prototypes of format-parser.c
135         functions here, from lexer.h.
136
137         * format-parser.c: (parse_format_specifier_name) Rewrote and
138         changed semantics.
139         (parse_abstract_format_specifier) New function.
140         (parse_format_specifier) Rewrote in terms of
141         parse_abstract_format_specifier.  Removed "options" parameter, so
142         callers had to be updated.  Callers that didn't want messages
143         emitted were changed to use the new msg_disable/msg_enable
144         functions.
145
146         * variables-parser.c: (parse_variables_pool) New function.
147         (register_vars_pool) New function.
148         (parse_DATA_LIST_vars_pool) New function.
149         (parse_mixed_vars_pool) Use register_vars_pool.  Assert that
150         PV_APPEND is not in the options.
151         
152 Sat Jul  1 17:40:38 2006  Ben Pfaff  <blp@gnu.org>
153
154         Fix bug #11612, "q2c documentation does not agree with code".
155         
156         * q2c.c (parse_subcommand): Make "+" mean ARITY_MANY, absence
157         mean ARITY_ONCE_ONLY.
158
159 Tue Jul  4 09:45:12 2006  Ben Pfaff  <blp@gnu.org>
160
161         Fix bug #15766 (/KEEP subcommand on SAVE doesn't fully support
162         ALL) and additional underlying system file issues.
163         
164         * variable-parser.c (add_variable): Move test earlier for clarity
165         and efficiency.
166         (parse_var_set_vars) Accept ALL within a variable list, not just
167         at the beginning of one.
168
169 Tue Jun 27 22:54:30 2006  Ben Pfaff  <blp@gnu.org>
170
171         * automake.mk (src_language_lexer_liblexer_a_SOURCES): Add
172         variable-parser.h.
173
174 Tue Jun 27 19:15:33 2006  Ben Pfaff  <blp@gnu.org>
175
176         Add auxiliary data pointer to q2c parse_<command> function, and
177         pass it along to the custom parser functions.
178
179         Updated all uses of custom functions in all the existing .q files.
180         
181         * q2c.c (dump_declarations): Include auxiliary parameter in
182         function prototypes.
183         (dump_subcommand) Include aux arg in calls to custom functions.
184         (dump_parser) Include aux param in parse_<command> function
185         definition.  Include aux arg in calls to custom functions.
186
187 Tue Jun 27 12:07:34 2006  Ben Pfaff  <blp@gnu.org>
188
189         * variable-parser.h: New header.  Moved the var_set and variable
190         parsing declarations here.
191
192         * q2c.c (main): Emit include for new variable-parser.h header.
193
194 Sun Jun 25 22:41:00 2006  Ben Pfaff  <blp@gnu.org>
195
196         * q2c.c (dump_free): For SBC_DBL_LIST, enclose the output code in
197         curly braces, because it contains a variable declaration and might
198         not be at the beginning of a block.
199
200 Fri Jun  9 14:02:19 2006  Ben Pfaff  <blp@gnu.org>
201
202         Reform string library.
203         
204         * q2c.c (dump_subcommand): ds_c_str() became ds_cstr(), in
205         generated code.
206
207 Wed Apr 26 13:30:41 2006  Ben Pfaff  <blp@gnu.org>
208
209         * lexer.c: (lex_discard_rest_of_command) New function.
210
211 Mon Apr 24 14:12:08 2006  Ben Pfaff  <blp@gnu.org>
212
213         * q2c.c: Use exit.h from gnulib instead of checking for and
214         defining EXIT_SUCCESS and EXIT_FAILURE by hand.
215
216 Sat Apr 15 14:30:35 2006  Ben Pfaff  <blp@gnu.org>
217
218         * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to
219         avoid dumping all the tokens to stdout when --enable-debug is
220         passed to configure.
221
222 Fri Mar 10 08:29:25 2006  Ben Pfaff  <blp@gnu.org>
223
224         * q2c.c: (dump_free) Free proper member for var list, instead of
225         hard-coding to v_variables.  Thanks to Jason Stover for reporting
226         this bug.
227
228 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
229         
230         * Moved files from src directory