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