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