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