]>
Commit | Line | Data |
---|---|---|
14d293ac AD |
1 | 2001-12-27 Akim Demaille <akim@epita.fr> |
2 | ||
3 | * src/files.c, src/files.h (guard_obstack): Remove. | |
4 | * src/output.c (output): Adjust. | |
5 | * src/reader.c (parse_braces): New, factoring... | |
6 | (copy_action, copy_guard): these two which are renamed as... | |
7 | (parse_action, parse_guard): these. | |
8 | As a voluntary consequence, using braces around guards is now | |
9 | mandatory. | |
10 | ||
11 | ||
f499b062 AD |
12 | 2001-12-27 Akim Demaille <akim@epita.fr> |
13 | ||
14 | * src/gram.h (rule_t): `guard' and `guard_line' are new members. | |
15 | * src/reader.c (symbol_list): `guard' and `guard_line' are new | |
16 | members. | |
17 | (symbol_list_new): Adjust. | |
18 | (copy_action): action_line is the first line, not the last. | |
19 | (copy_guard): Just as for actions, store the `action' only, not | |
20 | the switch/case/break flesh. | |
21 | Don't parse the user action that might follow the guard, let... | |
22 | (readgram): do it, i.e., now, there can be an action after a | |
23 | guard. | |
24 | In other words the guard is just explicitly optional. | |
25 | (packgram): Adjust. | |
26 | * src/output.c (guards_output): New. | |
27 | (output_parser): Call it when needed. | |
28 | (output): Also free the guard and attrs obstacks. | |
29 | * src/files.c, src/files.h (obstack_save): Remove. | |
30 | (output_files): Remove. | |
31 | As a result, if one needs the former `.act' file, using an | |
32 | appropriate skeleton which requires actions and guards is now | |
33 | required. | |
34 | * src/main.c (main): Adjust. | |
35 | * tests/semantic.at: New. | |
36 | * tests/regression.at: Use `input.y' as input file name. | |
37 | Avoid 8+3 problems by requiring input.c when the test needs the | |
38 | parser. | |
39 | ||
d945f5cd AD |
40 | 2001-12-27 Akim Demaille <akim@epita.fr> |
41 | ||
42 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
43 | fields. | |
44 | ||
d200e455 AD |
45 | 2001-12-27 Akim Demaille <akim@epita.fr> |
46 | ||
47 | All the hacks using a final pseudo state are now useless. | |
48 | ||
49 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
50 | * src/lalr.c (nLA): New. | |
51 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
52 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
53 | ||
f9507c28 AD |
54 | 2001-12-27 Akim Demaille <akim@epita.fr> |
55 | ||
56 | * src/output.c (action_row, token_actions): Use a state_t instead | |
57 | of a integer, and nlookaheads instead of the following state's | |
58 | lookaheadsp. | |
59 | ||
60 | ||
065fbd27 AD |
61 | 2001-12-27 Akim Demaille <akim@epita.fr> |
62 | ||
63 | * src/conflicts.c (log_resolution, flush_shift) | |
64 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
65 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
66 | (conflicts_print, print_reductions): Use a state_t instead of an | |
67 | integer when referring to a state. | |
68 | As much as possible, depend upon nlookaheads, instead of the | |
69 | `lookaheadsp' member of the following state (since lookaheads of | |
70 | successive states are successive, the difference between state n + 1 | |
71 | and n served as the number of lookaheads for state n). | |
72 | * src/lalr.c (add_lookback_edge): Likewise. | |
73 | * src/print.c (print_core, print_actions, print_state) | |
74 | (print_results): Likewise. | |
75 | * src/print_graph.c (print_core, print_actions, print_state) | |
76 | (print_graph): Likewise. | |
77 | * src/conflicts.h: Adjust. | |
78 | ||
1b177bd7 AD |
79 | 2001-12-27 Akim Demaille <akim@epita.fr> |
80 | ||
81 | * src/bison.hairy: Formatting/comment changes. | |
82 | ANSIfy. | |
83 | Remove `register' indications. | |
84 | Add plenty of `static'. | |
85 | ||
7742ddeb AD |
86 | 2001-12-27 Akim Demaille <akim@epita.fr> |
87 | ||
88 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
89 | duplicates ntokens. | |
90 | * src/bison.simple: Formatting/comment changes. | |
91 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
92 | is an undocumented synonym. | |
93 | ||
94 | ||
1fa14068 AD |
95 | 2001-12-22 Akim Demaille <akim@epita.fr> |
96 | ||
97 | * src/output.c (output_table_data): Change the prototype to use | |
98 | `int' for array ranges: some invocations do pass an int, not a | |
99 | short. | |
100 | Reported by Wayne Green. | |
101 | ||
b9752825 AD |
102 | 2001-12-22 Akim Demaille <akim@epita.fr> |
103 | ||
104 | Some actions of web2c.y are improperly triggered. | |
105 | Reported by Mike Castle. | |
106 | ||
107 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
108 | * tests/regression.at (Web2c): Rename as... | |
109 | (Web2c Report): this. | |
110 | (Web2c Actions): New. | |
111 | ||
776209d6 AD |
112 | 2001-12-22 Akim Demaille <akim@epita.fr> |
113 | ||
114 | Reductions in web2c.y are improperly reported. | |
115 | Reported by Mike Castle. | |
116 | ||
117 | * src/conflicts.c (print_reductions): Fix. | |
118 | * tests/regression.at (Web2c): New. | |
119 | ||
275fc3ad AD |
120 | 2001-12-18 Akim Demaille <akim@epita.fr> |
121 | ||
122 | Some host fail on `assert (!"foo")', which expands to | |
123 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
124 | Reported by Nelson Beebee. | |
125 | ||
126 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
127 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
128 | ||
897668ee MA |
129 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
130 | ||
131 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
132 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
133 | New line counter 'skeleton_line' (skeleton-line muscle). | |
134 | ||
ab3399e0 PE |
135 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
136 | ||
137 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
138 | YYDEBUG must be defined to a nonzero value. | |
139 | ||
140 | * src/bison.simple (yytname): Do not assume that the user defines | |
141 | YYDEBUG to a properly parenthesized expression. | |
142 | ||
3877f72b AD |
143 | 2001-12-17 Akim Demaille <akim@epita.fr> |
144 | ||
145 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
146 | nlookaheads is a new member. | |
147 | Adjust all users. | |
148 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
149 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
150 | state. | |
776209d6 | 151 | |
331dbc1b AD |
152 | 2001-12-17 Akim Demaille <akim@epita.fr> |
153 | ||
154 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
155 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
156 | let... | |
157 | * src/reader.c (reader): Do it. | |
776209d6 | 158 | |
be750e4c AD |
159 | 2001-12-17 Akim Demaille <akim@epita.fr> |
160 | ||
161 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 162 | |
709ae8c6 AD |
163 | 2001-12-17 Akim Demaille <akim@epita.fr> |
164 | ||
165 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
166 | (flush_reduce): New. | |
167 | (resolve_sr_conflict): Adjust. | |
776209d6 | 168 | |
f87685c3 AD |
169 | 2001-12-17 Akim Demaille <akim@epita.fr> |
170 | ||
171 | * src/output.c (output_obstack): Be static and rename as... | |
172 | (format_obstack): this, to avoid any confusion with files.c's | |
173 | output_obstack. | |
174 | * src/reader.h (muscle_obstack): Move to... | |
175 | * src/output.h: here, since it's defined in output.c. | |
176 | ||
837491d8 AD |
177 | 2001-12-17 Akim Demaille <akim@epita.fr> |
178 | ||
179 | * src/output.c (action_row, save_column, default_goto) | |
180 | (sort_actions, matching_state, pack_vector): Better variable | |
181 | locality. | |
182 | ||
796d61fb AD |
183 | 2001-12-17 Akim Demaille <akim@epita.fr> |
184 | ||
185 | * src/output.c: Various formatting changes. | |
776209d6 | 186 | |
64d15509 AD |
187 | 2001-12-17 Akim Demaille <akim@epita.fr> |
188 | ||
189 | * src/files.c (output_files): Free the output_obstack. | |
190 | * src/main.c (main): Call print and print_graph conditionally. | |
191 | * src/print.c (print): Work unconditionally. | |
192 | * src/print_graph.c (print_graph): Work unconditionally. | |
193 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
194 | ||
fbc8ecb7 MA |
195 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
196 | ||
197 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
198 | there is one less line per action. | |
199 | ||
f0440388 MA |
200 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
201 | ||
202 | * src/bison.simple: Remove a useless #line directive. | |
203 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
204 | * src/output.c (get_lines_number): New. | |
776209d6 | 205 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
206 | output muscles. |
207 | Fix line numbering. | |
208 | (actions_output): Computes the number of lines taken by actions. | |
209 | (output_master_parser): Insert new skeleton which is the name of | |
210 | the output parser file name. | |
211 | ||
a79986b8 MA |
212 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
213 | ||
214 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
215 | ||
4ec8e00f MA |
216 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
217 | ||
218 | * src/output.c (output_gram): Keep track of the hairy one. | |
219 | ||
1a4648ff AD |
220 | 2001-12-15 Akim Demaille <akim@epita.fr> |
221 | ||
222 | Make `make distcheck' work. | |
223 | ||
224 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
225 | system.h which uses libgettext.h. | |
226 | ||
9c2c67e6 AD |
227 | 2001-12-15 Akim Demaille <akim@epita.fr> |
228 | ||
229 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
230 | otherwise, since we range over their symbols, we might look at a | |
231 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
232 | `nvars', hence we overflow our arrays. | |
233 | ||
93ede233 AD |
234 | 2001-12-15 Akim Demaille <akim@epita.fr> |
235 | ||
236 | The header can also be produced directly, without any obstack! | |
237 | Yahoo! | |
238 | ||
239 | * src/files.c, src/files.h (defines_obstack): Remove. | |
240 | (compute_header_macro): Global. | |
241 | (defines_obstack_save): Remove. | |
242 | * src/reader.c (parse_union_decl): No longer output to | |
243 | defines_obstack: its content can be found in the `stype' muscle | |
244 | anyway. | |
245 | (output_token_translations): Merge into... | |
246 | (symbols_output): this. | |
247 | Rename as... | |
248 | (symbols_save): this. | |
249 | (reader): Adjust. | |
250 | * src/output.c (header_output): New. | |
251 | (output): Call it. | |
252 | ||
2666f928 AD |
253 | 2001-12-15 Akim Demaille <akim@epita.fr> |
254 | ||
255 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
256 | simultaneously, use one to define the `stype' muscle, and use the | |
257 | value of the latter to fill defines_obstack. | |
258 | (copy_comment): Remove. | |
259 | (copy_comment2): Work for a single obstack. | |
260 | Rename as... | |
261 | (copy_comment): this. | |
262 | ||
428046f8 AD |
263 | 2001-12-15 Akim Demaille <akim@epita.fr> |
264 | ||
265 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
266 | * src/reader.c (parse_union_decl): Revamp. | |
267 | ||
ea52d706 AD |
268 | 2001-12-15 Akim Demaille <akim@epita.fr> |
269 | ||
270 | Still making progress in separating Bison into (i) input, (ii) | |
271 | process, (iii) output: now we can directly output the parser file | |
272 | without using table_obstack at all. | |
273 | ||
274 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
275 | (parser_file_name): New. | |
276 | * src/files.c (compute_output_file_names): Compute it. | |
277 | * src/output.c (actions_output, output_parser) | |
278 | (output_master_parser): To a file instead of an obstack. | |
279 | ||
3f96f4dc AD |
280 | 2001-12-15 Akim Demaille <akim@epita.fr> |
281 | ||
282 | Attach actions to rules, instead of pre-outputting them to | |
283 | actions_obstack. | |
284 | ||
285 | * src/gram.h (rule_t): action and action_line are new members. | |
286 | * src/reader.c (symbol_list): Likewise. | |
287 | (copy_action): Save the actions within the rule. | |
288 | (packgram): Save them in rule_table. | |
289 | * src/output.c (actions_output): New. | |
290 | (output_parser): Use it on `%%actions'. | |
291 | (output_rule_data): Don't free rule_table. | |
292 | (output): Do it. | |
293 | (prepare): Don't save the `action' muscle. | |
294 | * src/bison.simple: s/%%action/%%actions/. | |
295 | ||
51576fb3 AD |
296 | 2001-12-15 Akim Demaille <akim@epita.fr> |
297 | ||
298 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
299 | to the user action: let it fail if lacking. | |
dee049eb | 300 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 301 | |
2648a72d AD |
302 | 2001-12-14 Akim Demaille <akim@epita.fr> |
303 | ||
304 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
305 | longer mess around with obstacks and int pointers. | |
306 | Adjust all callers. | |
307 | ||
92790e5b AD |
308 | 2001-12-14 Akim Demaille <akim@epita.fr> |
309 | ||
310 | * src/lex.c (literalchar): Don't escape the special characters, | |
311 | just decode them, and keep them as char (before, eol was output as | |
312 | the 2 char string `\n' etc.). | |
313 | * src/output.c (output_rule_data): Use quotearg to output the | |
314 | token strings. | |
315 | ||
927c1557 PE |
316 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
317 | ||
318 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
319 | Do not infringe on the global user namespace when using C++. | |
320 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
321 | All uses of `fprintf' and `stderr' changed. | |
322 | ||
323 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
324 | ||
ed8e1f68 AD |
325 | 2001-12-13 Akim Demaille <akim@epita.fr> |
326 | ||
327 | The computation of nullable is broken: it doesn't handle empty | |
328 | RHS's properly. | |
329 | ||
330 | * tests/torture.at (GNU AWK Grammar): New. | |
331 | * tests/sets.at (Nullable): New. | |
332 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
333 | `ritems', loop over the rules, and then over their rhs's. | |
334 | ||
335 | Work around Autotest bugs. | |
336 | ||
337 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
338 | frame, because Autotest understand lines starting with a `+' as | |
339 | traces from the shell. Then, they are not processed properly. | |
340 | Admittedly an Autotest bug, but we don't have time to wait for | |
341 | Autotest to catch up. | |
342 | * tests/regression.at (Broken Closure): Adjust to the new table | |
343 | frames. | |
344 | Move to... | |
345 | * tests/sets.at: here. | |
346 | ||
cb581495 AD |
347 | 2001-12-13 Akim Demaille <akim@epita.fr> |
348 | ||
349 | * src/closure.c (closure): Use nrules instead of playing tricks | |
350 | with BITS_PER_WORD. | |
351 | ||
2e729273 AD |
352 | 2001-12-13 Akim Demaille <akim@epita.fr> |
353 | ||
354 | * src/print.c (print_actions): Output the handling of `$' as the | |
355 | traces do: shifting the token EOF. Before EOF was treated as a | |
356 | nonterminal. | |
357 | * tests/regression.at: Adjust some tests. | |
358 | * src/print_graph.c (print_core): Complete the set of items via | |
359 | closure. The next-to-final and final states are still unsatisfying, | |
360 | but that's to be addressed elsewhere. | |
361 | No longer output the rule numbers, but do output the state number. | |
362 | A single loop for the shifts + gotos is enough, but picked a | |
363 | distinct color for each. | |
364 | (print_graph): Initialize and finalize closure. | |
365 | ||
107f7dfb AD |
366 | 2001-12-13 Akim Demaille <akim@epita.fr> |
367 | ||
368 | * src/reader.c (readgram): Remove dead code, an strip useless | |
369 | braces. | |
370 | (get_type): Remove, unused. | |
371 | ||
9b53a24f AD |
372 | 2001-12-12 Akim Demaille <akim@epita.fr> |
373 | ||
374 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
375 | on that of lib/error.c. | |
376 | ||
dbfb6dcd AD |
377 | 2001-12-12 Akim Demaille <akim@epita.fr> |
378 | ||
379 | Some hosts don't like `/' in includes. | |
380 | ||
381 | * src/system.h: Include libgettext.h without qualifying the path. | |
382 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
383 | $(top_srcdir). | |
384 | ||
c25fb648 MA |
385 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
386 | ||
387 | * src/output.c (output_parser): Remove useless muscle. | |
388 | ||
710ddc4f MA |
389 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
390 | ||
391 | * src/bison.simple: Remove #line just before %%epilogue. It | |
392 | is now handled in ... | |
393 | * src/reader.c (read_additionnal_code): Add the output of a | |
394 | #line for the epilogue. | |
395 | ||
e83d80b8 MA |
396 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
397 | ||
927c1557 | 398 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
399 | replace precedent remove. |
400 | * src/bison.simple: Remove #line before %%prologue because | |
401 | %%input-line is wrong at this time. | |
402 | ||
971d5158 MA |
403 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
404 | ||
405 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 406 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 407 | |
5edafffd AD |
408 | 2001-12-10 Akim Demaille <akim@epita.fr> |
409 | ||
410 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
411 | * src/LR0.c (set_state_table): here. | |
412 | * src/lalr.c (lalr): Call it. | |
413 | ||
0279f8e9 AD |
414 | 2001-12-10 Akim Demaille <akim@epita.fr> |
415 | ||
416 | * src/state.h (shifts): Remove the `number' member: shifts are | |
417 | attached to state, hence no longer need to be labelled with a | |
418 | state number. | |
419 | ||
190c4f5f AD |
420 | 2001-12-10 Akim Demaille <akim@epita.fr> |
421 | ||
422 | Now that states have a complete set of members, the linked list of | |
423 | shifts is useless: just fill directly the state's shifts member. | |
424 | ||
425 | * src/state.h (shifts): Remove the `next' member. | |
426 | * src/LR0.c (first_state, last_state): Remove. | |
427 | Adjust the callers. | |
428 | (augment_automaton): Don't look for the shifts that must be added | |
429 | a shift on EOF: it is those of the state we looked for! But now, | |
430 | since shifts are attached, it is no longer needed to looking | |
431 | merely by its id: its number. | |
432 | ||
2a73b93d AD |
433 | 2001-12-10 Akim Demaille <akim@epita.fr> |
434 | ||
435 | * src/LR0.c (augment_automaton): Better variable locality. | |
436 | Remove an impossible branch: if there is a state corresponding to | |
437 | the start symbol being shifted, then there is shift for the start | |
438 | symbol from the initial state. | |
439 | ||
74392f6a AD |
440 | 2001-12-10 Akim Demaille <akim@epita.fr> |
441 | ||
442 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
443 | only when appropriate: when insert_start_shifting_state' is not | |
444 | invoked. | |
445 | * tests/regression.at (Rule Line Numbers): Adjust. | |
446 | ||
37c82725 AD |
447 | 2001-12-10 Akim Demaille <akim@epita.fr> |
448 | ||
449 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
450 | merge the two cases addition shifts to the initial state. | |
451 | ||
6a164e0c AD |
452 | 2001-12-10 Akim Demaille <akim@epita.fr> |
453 | ||
454 | * src/lalr.c (set_state_table): Move to... | |
455 | * src/LR0.c: here. | |
456 | * src/lalr.c (lalr): Don't call it... | |
457 | * src/LR0.c (generate_states): do it. | |
458 | * src/LR0.h (first_state): Remove, only the table is used. | |
459 | ||
7215de24 AD |
460 | 2001-12-10 Akim Demaille <akim@epita.fr> |
461 | ||
462 | * src/LR0.h (first_shift, first_reduction): Remove. | |
463 | * src/lalr.c: Don't use first_shift: find shifts through the | |
464 | states. | |
465 | ||
80e25d4d AD |
466 | 2001-12-10 Akim Demaille <akim@epita.fr> |
467 | ||
468 | * src/LR0.c: Attach shifts to states as soon as they are | |
469 | computed. | |
470 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
471 | state, just assert that the mapping was properly done. | |
472 | ||
0ab3728b AD |
473 | 2001-12-10 Akim Demaille <akim@epita.fr> |
474 | ||
475 | * src/LR0.c (insert_start_shift): Rename as... | |
476 | (insert_start_shifting_state): this. | |
477 | (insert_eof_shifting_state, insert_accepting_state): New. | |
478 | (augment_automaton): Adjust. | |
479 | Better locality of the variables. | |
480 | When looking if the start_symbol is shifted from the initial | |
481 | state, using `while (... symbol != start_symbol ...)' sounds | |
482 | better than `while (... symbol < start_symbol ...)': If fail | |
483 | to see how the order between symbols could be relevant! | |
484 | ||
78af9bbc AD |
485 | 2001-12-10 Akim Demaille <akim@epita.fr> |
486 | ||
487 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
488 | `spec_file_prefix', declared by src/files.h. | |
489 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
490 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
491 | * src/output.c (prepare): Adjust. | |
492 | * src/reader.c (symbols_output): Likewise. | |
493 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
494 | ||
bdef2a41 AD |
495 | 2001-12-10 Akim Demaille <akim@epita.fr> |
496 | ||
497 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
498 | `"0"'. | |
499 | ||
3735969c AD |
500 | 2001-12-10 Akim Demaille <akim@epita.fr> |
501 | ||
502 | * src/reader.c (reader): Calling symbols_output once is enough. | |
503 | ||
49701457 AD |
504 | 2001-12-10 Akim Demaille <akim@epita.fr> |
505 | ||
506 | Now that states have a complete set of members, the linked list of | |
507 | reductions is useless: just fill directly the state's reductions | |
508 | member. | |
509 | ||
510 | * src/state.h (struct reductions): Remove member `number' and | |
511 | `next'. | |
512 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
513 | (save_reductions): Don't link the new reductions, store them in | |
514 | this_state. | |
515 | * src/lalr.c (set_state_table): No need to attach reductions to | |
516 | states, it's already done. | |
517 | * src/output.c (output_actions): No longer free the shifts, then | |
518 | the reductions, then the states: free all the states and their | |
519 | members. | |
520 | ||
0edad749 AD |
521 | 2001-12-10 Akim Demaille <akim@epita.fr> |
522 | ||
523 | * src/options.c (OPTN, DRTV, BOTH): New. | |
524 | (option_table): Use them. | |
525 | ||
0edad749 AD |
526 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
527 | the job of system.h. | |
528 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
529 | reasons. | |
530 | ||
5449dd0f AD |
531 | 2001-12-10 Akim Demaille <akim@epita.fr> |
532 | ||
533 | * src/output.c (output, prepare): Make sure the values of the | |
534 | muscles `action' and `prologue' are 0-terminated. | |
535 | ||
a870c567 AD |
536 | 2001-12-10 Akim Demaille <akim@epita.fr> |
537 | ||
538 | Clean up GCC warnings. | |
539 | ||
540 | * src/reader.c (copy_action): `buf' is not used. | |
541 | (parse_skel_decl): Be static. | |
542 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
543 | * src/options.h (create_long_option_table): Have a real prototype. | |
544 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
545 | (hash_delete_at): Return const void *. | |
546 | Adjust casts to preserve the const. | |
547 | ||
80df8768 AD |
548 | 2001-12-10 Akim Demaille <akim@epita.fr> |
549 | ||
550 | * configure.in: Require 2.52g. | |
551 | M4 is not needed, but AUTOM4TE is. | |
552 | * m4/m4.m4: Remove. | |
553 | * tests/Makefile.am: Adjust. | |
554 | ||
f693ad14 AD |
555 | 2001-12-10 Akim Demaille <akim@epita.fr> |
556 | ||
557 | One structure for states is enough, even though theoretically | |
558 | there are LR(0) states and LALR(1) states. | |
559 | ||
560 | * src/lalr.h (state_t): Remove. | |
561 | (state_table): Be state_t **, not state_t *. | |
562 | * src/state.h (core, CORE_ALLOC): Rename as... | |
563 | (state_t, STATE_ALLOC): this. | |
564 | Add the LALR(1) members: shifts, reductions, errs. | |
565 | * src/LR0.c (state_table): Rename as... | |
566 | (state_hash): this, to avoid name clashes with the global | |
567 | `state_table'. | |
568 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
569 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
570 | ||
74ffbcb6 AD |
571 | 2001-12-10 Akim Demaille <akim@epita.fr> |
572 | ||
573 | Bison dumps core on bash.y. | |
574 | Reported by Pascal Bart. | |
575 | ||
576 | * src/warshall.c (bitmatrix_print): New. | |
577 | (TC): Use it. | |
578 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
579 | j must be the outer loop. | |
580 | * tests/regression.at (Broken Closure): New. | |
581 | ||
07708e19 AD |
582 | 2001-12-05 Akim Demaille <akim@epita.fr> |
583 | ||
584 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
585 | its argument. | |
586 |