]> git.saurik.com Git - bison.git/blame_incremental - ChangeLog
Revert the previous patch.
[bison.git] / ChangeLog
... / ...
CommitLineData
12002-02-05 Akim Demaille <akim@epita.fr>
2
3 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
4 * configure.in: Check for the declarations of free and malloc.
5 * src/muscle_tab.c: Adjust.
6
72002-02-05 Akim Demaille <akim@epita.fr>
8
9 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
10 which have no values.
11
122002-02-05 Akim Demaille <akim@epita.fr>
13
14 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
15 * data/: here.
16
172002-01-29 Paul Eggert <eggert@twinsun.com>
18
19 * src/bison.simple (YYSIZE_T): Do not define merely because
20 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
21 On some platforms, <alloca.h> does not declare YYSTD (size_t).
22
232002-01-27 Akim Demaille <akim@epita.fr>
24
25 Fix `%nonassoc and eof'.
26
27 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
28 which were not properly copied! Replace
29 memcpy (res->errs, src->errs, src->nerrs);
30 with
31 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
32 !!!
33 * tests/regression.at (%nonassoc and eof): Adjust to newest
34 Autotest: `.' is not in the PATH.
35
362002-01-27 Akim Demaille <akim@epita.fr>
37
38 * tests/sets.at (AT_EXTRACT_SETS): New.
39 (Nullable): Use it.
40 (Firsts): New.
41
422002-01-26 Akim Demaille <akim@epita.fr>
43
44 * tests/actions.at, tests/calc.at, tests/headers.at,
45 * tests/torture.at: Adjust to the newest Autotest which no longer
46 forces `.' in the PATH.
47
482002-01-25 Akim Demaille <akim@epita.fr>
49
50 * tests/regression.at (%nonassoc and eof): New.
51 Suggested by Robert Anisko.
52
532002-01-24 Akim Demaille <akim@epita.fr>
54
55 Bison dumps core when trying to complain about broken input files.
56 Reported by Cris van Pelt.
57
58 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
59 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
60 into...
61 (Invalid inputs): Strengthen: exercise parse_percent_token.
62
632002-01-24 Robert Anisko <robert.anisko@epita.fr>
64
65 * src/Makefile.am: Add bison.c++.
66 * src/bison.c++: New skeleton.
67
682002-01-21 Paolo Bonzini <bonzini@gnu.org>
69
70 * po/it.po: New.
71
722002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
73
74 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
75
762002-01-20 Marc Autret <marc@gnu.org>
77
78 * src/files.c (compute_output_file_names): Fix
79
802002-01-20 Marc Autret <marc@gnu.org>
81
82 * tests/output.at: New test.
83 * src/files.c (compute_base_names): Don't map extensions when
84 the YACC flag is set, use defaults.
85 Reported by Evgeny Stambulchik.
86
872002-01-20 Marc Autret <marc@gnu.org>
88
89 * src/system.h: Need to define __attribute__ away for non-GCC
90 compilers as well (i.e. the vendor C compiler).
91 Suggested by Albert Chin-A-Young.
92
932002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
94
95 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
96 canonical definition.
97 * src/system.h: Use the canonical definition for PARAMS (avoids
98 a conflict with the macro from lib/hash.h).
99
1002002-01-11 Akim Demaille <akim@epita.fr>
101
102 * configure.in: Use AC_FUNC_STRNLEN.
103 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
104
1052002-01-09 Akim Demaille <akim@epita.fr>
106
107 * src/files.c, src/files.h (output_infix): New.
108 (tab_extension): Remove.
109 (compute_base_names): Compute the former, drop the latter.
110 * src/output.c (prepare): Insert the muscles `output-infix', and
111 `output-suffix'.
112 * src/parse-skel.y (string, string.1): New.
113 (section.header): Use it.
114 (section.yacc): Remove.
115 (prefix): Remove too.
116 * src/scan-skel.l: Adjust.
117 * src/bison.simple, src/bison.hairy: Adjust.
118
1192002-01-09 Akim Demaille <akim@epita.fr>
120
121 * configure.in (WERROR_CFLAGS): Compute it.
122 * src/Makefile.am (CFLAGS): Pass it.
123 * tests/atlocal.in (CFLAGS): Idem.
124 * src/files.c: Fix a few warnings.
125 (get_extension_index): Remove, unused.
126
1272002-01-08 Akim Demaille <akim@epita.fr>
128
129 * src/getargs.c (AS_FILE_NAME): New.
130 (getargs): Use it to convert DOSish file names.
131 * src/files.c (base_name): Rename as full_base_name to avoid
132 clashes with `base_name ()'.
133 (filename_split): New.
134 (compute_base_names): N-th rewrite, using filename_split.
135
1362002-01-08 Akim Demaille <akim@epita.fr>
137
138 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
139 New, stolen from the Fileutils 4.1.
140 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
141 * configure.in: Check for the presence of memrchr, and of its
142 prototype.
143
1442002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
145
146 * lib/hash.h (__P): Added definition for this macro.
147 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
148 BUILT_SOURCES, to ensure they are generated first.
149 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
150 %error-verbose to allow bootstrapping with bison 1.30x.
151
1522002-01-06 Akim Demaille <akim@epita.fr>
153
154 * src/reader.c (parse_braces): Don't fetch the next char, the
155 convention is to fetch on entry.
156 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
157 'switch' without a following semicolon.
158 * tests/regression.at (braces parsing): New.
159
1602002-01-06 Akim Demaille <akim@epita.fr>
161
162 Bison is dead wrong in its RR conflict reports.
163
164 * tests/torture.at (GNU Cim Grammar): New.
165 * src/conflicts.c (count_rr_conflicts): Fix.
166
1672002-01-06 Akim Demaille <akim@epita.fr>
168
169 Creating package.m4 from configure.ac causes too many problems.
170
171 * tests/Makefile.am (package.m4): Create it by hand,
172 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
173
1742002-01-06 Akim Demaille <akim@epita.fr>
175
176 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
177 skeleton.h.
178
1792002-01-04 Paul Eggert <eggert@twinsun.com>
180
181 * doc/bison.texinfo (Debugging):
182 Remove YYSTDERR; it's no longer defined or used.
183 Also, s/cstdio.h/cstdio/.
184
1852002-01-03 Akim Demaille <akim@epita.fr>
186
187 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
188
1892002-01-03 Akim Demaille <akim@epita.fr>
190
191 * src/parse-skel.y (process_skeleton): Don't bind the parser's
192 tracing code to --trace, wait for a better --trace option, with
193 args.
194
1952002-01-03 Akim Demaille <akim@epita.fr>
196
197 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
198 The ISO C++ standard is extremely clear about it: stderr is
199 considered a macro, not a regular symbol (see table 94 `Header
200 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
201 Therefore std:: does not apply to it. It still does with fprintf.
202 Also, s/cstdio.h/cstdio/.
203
2042002-01-03 Akim Demaille <akim@epita.fr>
205
206 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
207 for non system headers.
208
2092002-01-02 Akim Demaille <akim@epita.fr>
210
211 Equip the skeleton chain with location tracking, runtime trace,
212 pure parser and scanner.
213
214 * src/parse-skel.y: Request a pure parser, locations, and prefix
215 renaming.
216 (%union): Having several members with the same type does not help
217 type mismatches, simplify.
218 (YYPRINT, yyprint): New.
219 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
220 (skel_error): this.
221 Handle locations.
222 * src/scan-skel.l: Adjust to these changes.
223 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
224 (LOCATION_PRINT, skel_control_t): New.
225
2262001-12-30 Akim Demaille <akim@epita.fr>
227
228 * src/parse-skel.y: Get rid of the shift/reduce conflict:
229 replace `gb' with BLANKS.
230 * src/scan-skel.l: Adjust.
231
2322001-12-30 Akim Demaille <akim@epita.fr>
233
234 * src/system.h: We don't need nor want bcopy.
235 Throw away MS-DOS crap: we don't need getpid.
236 * configure.in: We don't need strndup. It was even causing
237 problems: because Flex includes the headers *before* us,
238 _GNU_SOURCE is not defined by config.h, and therefore strndup was
239 not visible.
240 * lib/xstrndup.c: New.
241 * src/scan-skel.l: Use it.
242 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
243 * src/parse-skel.y: Use %directives instead of #defines.
244
2452001-12-30 Akim Demaille <akim@epita.fr>
246
247 * src/skeleton.h: New.
248 * src/output.c (output_parser, output_master_parser): Remove, dead
249 code.
250 * src/output.h (get_lines_number, actions_output, guards_output)
251 (token_definitions_output): Prototype them.
252 * src/parse-skel.y: Add the license notice.
253 Include output.h and skeleton.h.
254 (process_skeleton): Returns void, and takes a single parameter.
255 * src/scan-skel.l: Add the license notice.
256 Include skeleton.h.
257 Don't use %option yylineno: it seems that then Flex imagines
258 REJECT has been used, and therefore it won't reallocate its
259 buffers (which makes no other sense to me than a bug). It results
260 in warnings for `unused: yy_flex_realloc'.
261
2622001-12-30 Robert Anisko <robert.anisko@epita.fr>
263
264 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
265 (MUSCLE_INSERT_PREFIX): ...to there.
266 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
267 (MUSCLE_INSERT_PREFIX): Move from here...
268
269 * src/bison.hairy: Add a section directive. Put braces around muscle
270 names. This parser skeleton is still broken, but Bison should not
271 choke on a bad muscle 'syntax'.
272 * src/bison.simple: Add a section directive. Put braces around muscle
273 names.
274
275 * src/files.h (strsuffix, stringappend): Add declarations.
276 (tab_extension): Add declaration.
277 (short_base_name): Add declaration.
278
279 * src/files.c (strsuffix, stringappend): No longer static. These
280 functions are used in the skeleton parser.
281 (tab_extension): New.
282 (compute_base_names): Use the computations done in this function
283 to guess if the generated parsers should have '.tab' in their
284 names.
285 (short_base_name): No longer static.
286
287 * src/output.c (output_skeleton): New.
288 (output): Disable call to output_master_parser, and give a try to
289 a new skeleton handling system.
290 (guards_output, actions_output): No longer static.
291 (token_definitions_output, get_lines_number): No longer static.
292
293 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
294
295 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
296 parse-skel.y.
297
298 * src/parse-skel.y: New file.
299 * src/scan-skel.l: New file.
300
3012001-12-29 Akim Demaille <akim@epita.fr>
302
303 %name-prefix is broken.
304
305 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
306 Adjust all dependencies.
307 * tests/headers.at (export YYLTYPE): Strengthen this test: use
308 %name-prefix.
309
310 Renaming yylval but not yylloc is not consistent. Now we do.
311
312 * src/bison.simple: Prefix yylloc if used.
313 * doc/bison.texinfo (Decl Summary): Document that.
314
3152001-12-29 Akim Demaille <akim@epita.fr>
316
317 * doc/bison.texinfo: Promote `%long-directive' over
318 `%long_directive'.
319 Remove all references to fixed-output-files, yacc is enough.
320
3212001-12-29 Akim Demaille <akim@epita.fr>
322
323 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
324 user prologue. These are defaults.
325 * tests/actions.at (Mid-rule actions): Make sure the user can
326 define YYDEBUG and YYERROR_VERBOSE.
327
3282001-12-29 Akim Demaille <akim@epita.fr>
329
330 * src/output.c (header_output): Don't forget to export YYLTYPE and
331 yylloc.
332 * tests/headers.at (export YYLTYPE): New, make sure it does.
333 * tests/regression.at (%union and --defines, Invalid CPP headers):
334 Move to...
335 * tests/headers.at: here.
336
3372001-12-29 Akim Demaille <akim@epita.fr>
338
339 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
340
3412001-12-29 Akim Demaille <akim@epita.fr>
342
343 * tests/actions.at (Mid-rule actions): Output on a single line
344 instead of several.
345
3462001-12-29 Akim Demaille <akim@epita.fr>
347
348 * doc/bison.texinfo: Formatting changes.
349
3502001-12-29 Akim Demaille <akim@epita.fr>
351
352 Don't store the token defs in a muscle, just be ready to output it
353 on command. Now possible via `symbols'. Fixes a memory leak.
354
355 * src/output.c (token_definitions_output): New.
356 (output_parser, header_output): Use it.
357 * src/reader.c (symbols_save): Remove.
358
3592001-12-29 Akim Demaille <akim@epita.fr>
360
361 * src/bison.simple: Do not provide a default for YYSTYPE and
362 YYLTYPE before the user's prologue. Otherwise it's hardly... a
363 default.
364
3652001-12-29 Akim Demaille <akim@epita.fr>
366
367 Mid-rule actions are simply... ignored!
368
369 * src/reader.c (readgram): Be sure to attach mid-rule actions to
370 the empty-rule associated to the dummy symbol, not to the host
371 rule.
372 * tests/actions.at (Mid-rule actions): New.
373
3742001-12-29 Akim Demaille <akim@epita.fr>
375
376 Memory leak.
377
378 * src/reader.c (reader): Free grammar.
379
3802001-12-29 Akim Demaille <akim@epita.fr>
381
382 Memory leak.
383
384 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
385 since it allocates it for each state, although only one is needed.
386 (allocate_storage): Do it here.
387
3882001-12-29 Akim Demaille <akim@epita.fr>
389
390 * src/options.h, src/options.c (create_long_option_table): Rename
391 as...
392 (long_option_table_new): this, with a clearer prototype.
393 (percent_table): Remove, unused,
394 * src/getargs.c (getargs): Adjust.
395
3962001-12-29 Akim Demaille <akim@epita.fr>
397
398 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
399 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
400 as states.
401
4022001-12-29 Akim Demaille <akim@epita.fr>
403
404 * src/lalr.c (build_relations): Rename `states' as `states1'.
405 Sorry, I don't understand exactly what it is, no better name...
406
4072001-12-29 Akim Demaille <akim@epita.fr>
408
409 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
410 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
411 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
412 as rules.
413
4142001-12-29 Akim Demaille <akim@epita.fr>
415
416 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
417 ago.
418
4192001-12-29 Akim Demaille <akim@epita.fr>
420
421 * src/reader.c, src/reader.h (user_toknums): Remove.
422 Adjust all users to use symbols[i]->user_token_number.
423
4242001-12-29 Akim Demaille <akim@epita.fr>
425
426 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
427 Adjust all users to use symbols[i]->prec or ->assoc.
428
4292001-12-29 Akim Demaille <akim@epita.fr>
430
431 * src/reader.c, src/reader.h (tags): Remove.
432 Adjust all users to use symbols[i]->tag.
433
4342001-12-29 Akim Demaille <akim@epita.fr>
435
436 * src/gram.h, src/gram.c (symbols): New, similar to state_table
437 and rule_table.
438 * src/reader.c (packsymbols): Fill this table.
439 Drop sprec.
440 * src/conflicts.c (resolve_sr_conflict): Adjust.
441 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
442 single table.
443 Use symbols[i]->tag instead of tags[i].
444
4452001-12-29 Akim Demaille <akim@epita.fr>
446
447 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
448 In addition, put a comment in there, to replace...
449 * tests/regression.at (%union and C comments): Remove.
450
4512001-12-29 Akim Demaille <akim@epita.fr>
452
453 * tests/regression.at (Web2c Actions): Blindly move the actual
454 output as expected output. The contents *seem* right to me, but I
455 can't pretend reading perfectly parser tables... Nonetheless, all
456 the other tests pass correctly, the table look OK, even though the
457 presence of `$axiom' is to be noted: AFAICS it is useless (but
458 harmless).
459
4602001-12-29 Akim Demaille <akim@epita.fr>
461
462 * src/reader.c (readgram): Don't add the rule 0 if there were no
463 rules read. In other words, add it _after_ having performed
464 grammar sanity checks.
465 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
466
4672001-12-29 Akim Demaille <akim@epita.fr>
468
469 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
470 visible, and some states have now a different number.
471
4722001-12-29 Akim Demaille <akim@epita.fr>
473
474 * src/reader.c (readgram): Bind the initial rule's lineno to that
475 of the first rule.
476 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
477 (Solved SR Conflicts): Adjust rule 0's line number.
478
4792001-12-29 Akim Demaille <akim@epita.fr>
480
481 Fix the `GAWK Grammar' failure.
482
483 * src/LR0.c (final_state): Initialize to -1 so that we do compute
484 the reductions of the first state which was mistakenly confused
485 with the final state because precisely final_state was initialized
486 to 0.
487 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
488 now noticed by Bison.
489 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
490 have a reduction on $default.
491
4922001-12-29 Akim Demaille <akim@epita.fr>
493
494 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
495 rule line numbers.
496 * src/closure.c (print_closure): Likewise.
497 * src/derives.c (print_derives): Likewise.
498 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
499 now.
500
5012001-12-29 Akim Demaille <akim@epita.fr>
502
503 * src/lalr.c (lookaheads_print): New.
504 (lalr): Call it when --trace-flag.
505 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
506 are dumped.
507
5082001-12-29 Akim Demaille <akim@epita.fr>
509
510 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
511 when walking through ritem, even via rule->rhs.
512 * src/reduce.c (dump_grammar, useful_production, reduce_output)
513 (useful_production, useless_nonterminals): Likewise.
514 (reduce_grammar_tables): Likewise, plus update nritems.
515 * src/nullable.c (set_nullable): Likewise.
516 * src/lalr.c (build_relations): Likewise.
517 * tests/sets.at (Nullable): Adjust.
518 Fortunately, now, the $axiom is no longer nullable.
519
5202001-12-29 Akim Demaille <akim@epita.fr>
521
522 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
523 the 0-sentinel.
524 * src/gram.c (ritem_longest_rhs): Likewise.
525 * src/reduce.c (nonterminals_reduce): Likewise.
526 * src/print_graph.c (print_graph): Likewise.
527 * src/output.c (output_rule_data): Likewise.
528 * src/nullable.c (set_nullable): Likewise.
529
5302001-12-29 Akim Demaille <akim@epita.fr>
531
532 * src/output.c: Comment changes.
533
5342001-12-27 Paul Eggert <eggert@twinsun.com>
535
536 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
537 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
538 Sparc, as they were causing more porting problems than the
539 (minor) performance improvement was worth.
540
541 Also, catch up with 1.31's YYSTD.
542
5432001-12-27 Akim Demaille <akim@epita.fr>
544
545 * src/output.c (output_gram): Rely on nritems, not the
546 0-sentinel. See below.
547 Use -1 as separator, not 0.
548 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
549 Rely on -1 as separator in yyrhs, instead of 0.
550 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
551 twice `Now at end of input', therefore there are two lines less to
552 expect.
553
5542001-12-27 Akim Demaille <akim@epita.fr>
555
556 * tests/regression.at (Unresolved SR Conflicts):
557 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
558 below.
559
5602001-12-27 Akim Demaille <akim@epita.fr>
561
562 * src/LR0.c (new_state): Recognize the final state by the fact it
563 is reached by eoftoken.
564 (insert_start_shifting_state, insert_eof_shifting_state)
565 (insert_accepting_state, augment_automaton): Remove, since now
566 these states are automatically computed from the initial state.
567 (generate_states): Adjust.
568 * src/print.c: When reporting a rule number to the user, substract
569 1, so that the axiom rule is rule 0, and the first user rule is 1.
570 * src/reduce.c: Likewise.
571 * src/print_graph.c (print_core): For the time being, just as for
572 the report, depend upon --trace-flags to dump the full set of
573 items.
574 * src/reader.c (readgram): Once the grammar read, insert the rule
575 0: `$axiom: START-SYMBOL $'.
576 * tests/set.at: Adjust: rule 0 is now displayed, and since the
577 number of the states has changed (the final state is no longer
578 necessarily the last), catch up.
579
5802001-12-27 Akim Demaille <akim@epita.fr>
581
582 Try to make the use of the eoftoken valid. Given that its value
583 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
584 is used instead of > 0 where appropriate, (ii), depend upon nritems
585 instead of the 0-sentinel.
586
587 * src/gram.h, src/gram.c (nritems): New.
588 Expected to be duplication of nitems, but for the time being...
589 * src/reader.c (packgram): Assert nritems and nitems are equal.
590 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
591 * src/closure.c (print_closure, print_fderives): Likewise.
592 * src/gram.c (ritem_print): Likewise.
593 * src/print.c (print_core, print_grammar): Likewise.
594 * src/print_graph.c: Likewise.
595
5962001-12-27 Akim Demaille <akim@epita.fr>
597
598 * src/main.c (main): If there are complains after grammar
599 reductions, then output the report anyway if requested, then die.
600 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
601 * src/reader.c (eoftoken): New.
602 (parse_token_decl): If the token being defined has value `0', it
603 is the eoftoken.
604 (packsymbols): No longer hack `tags' to insert `$' by hand.
605 Be sure to preserve the value of the eoftoken.
606 (reader): Make sure eoftoken is defined.
607 Initialize nsyms to 0: now eoftoken is created just like the others.
608 * src/print.c (print_grammar): Don't special case the eof token.
609 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
610 lie anyway, albeit pleasant.
611 * tests/calc.at: Exercise error messages with eoftoken.
612 Change the grammar so that empty input is invalid.
613 Adjust expectations.
614 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
615
6162001-12-27 Akim Demaille <akim@epita.fr>
617
618 * configure.in: Check the protos of strchr ans strspn.
619 Replace strchr if needed.
620 * src/system.h: Provide the protos of strchr, strspn and memchr if
621 missing.
622 * lib/strchr.c: New.
623 * src/reader.c (symbols_save): Use strchr.
624
6252001-12-27 Akim Demaille <akim@epita.fr>
626
627 * src/print.c, src/print_graph.c (escape): New.
628 Use it to quote the TAGS outputs.
629 * src/print_graph.c (print_state): Now errors are in red, and
630 reductions in green.
631 Prefer high to wide: output the state number on a line of its own.
632
6332001-12-27 Akim Demaille <akim@epita.fr>
634
635 * src/state.h, src/state.c (reductions_new): New.
636 * src/LR0.c (set_state_table): Let all the states have a
637 `reductions', even if reduced to 0.
638 (save_reductions): Adjust.
639 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
640 * src/print.c (print_reductions, print_actions): Adjust.
641 * src/output.c (action_row): Adjust.
642
6432001-12-27 Akim Demaille <akim@epita.fr>
644
645 * src/state.h, src/state.c (errs_new, errs_dup): New.
646 * src/LR0.c (set_state_table): Let all the states have an errs,
647 even if reduced to 0.
648 * src/print.c (print_errs, print_reductions): Adjust.
649 * src/output.c (output_actions, action_row): Adjust.
650 * src/conflicts.c (resolve_sr_conflict): Adjust.
651
6522001-12-27 Akim Demaille <akim@epita.fr>
653
654 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
655
6562001-12-27 Akim Demaille <akim@epita.fr>
657
658 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
659 * src/print.c: here.
660 (lookaheadset, shiftset): New, used as additional storage by
661 print_reductions.
662 (print_results): Adjust.
663 (print_shifts, print_gotos, print_errs): New, extracted from...
664 (print_actions): here.
665 * src/print_graph.c (print_actions): Remove dead code.
666
6672001-12-27 Akim Demaille <akim@epita.fr>
668
669 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
670 `$n' and `@n'.
671
6722001-12-27 Akim Demaille <akim@epita.fr>
673
674 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
675 (build_relations): Adjust.
676
6772001-12-27 Akim Demaille <akim@epita.fr>
678
679 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
680 duplication.
681
6822001-12-27 Akim Demaille <akim@epita.fr>
683
684 * src/reader.c (packgram): Catch nitems overflows.
685
6862001-12-27 Akim Demaille <akim@epita.fr>
687
688 * src/files.c, src/files.h (guard_obstack): Remove.
689 * src/output.c (output): Adjust.
690 * src/reader.c (parse_braces): New, factoring...
691 (copy_action, copy_guard): these two which are renamed as...
692 (parse_action, parse_guard): these.
693 As a voluntary consequence, using braces around guards is now
694 mandatory.
695
6962001-12-27 Akim Demaille <akim@epita.fr>
697
698 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
699 * src/reader.c (symbol_list): `guard' and `guard_line' are new
700 members.
701 (symbol_list_new): Adjust.
702 (copy_action): action_line is the first line, not the last.
703 (copy_guard): Just as for actions, store the `action' only, not
704 the switch/case/break flesh.
705 Don't parse the user action that might follow the guard, let...
706 (readgram): do it, i.e., now, there can be an action after a
707 guard.
708 In other words the guard is just explicitly optional.
709 (packgram): Adjust.
710 * src/output.c (guards_output): New.
711 (output_parser): Call it when needed.
712 (output): Also free the guard and attrs obstacks.
713 * src/files.c, src/files.h (obstack_save): Remove.
714 (output_files): Remove.
715 As a result, if one needs the former `.act' file, using an
716 appropriate skeleton which requires actions and guards is now
717 required.
718 * src/main.c (main): Adjust.
719 * tests/semantic.at: New.
720 * tests/regression.at: Use `input.y' as input file name.
721 Avoid 8+3 problems by requiring input.c when the test needs the
722 parser.
723
7242001-12-27 Akim Demaille <akim@epita.fr>
725
726 * src/reader.c (symbol_list_new): Be sure to initialize all the
727 fields.
728
7292001-12-27 Akim Demaille <akim@epita.fr>
730
731 All the hacks using a final pseudo state are now useless.
732
733 * src/LR0.c (set_state_table): state_table holds exactly nstates.
734 * src/lalr.c (nLA): New.
735 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
736 instead of lookaheadsp from the pseudo state (nstate + 1).
737
7382001-12-27 Akim Demaille <akim@epita.fr>
739
740 * src/output.c (action_row, token_actions): Use a state_t instead
741 of a integer, and nlookaheads instead of the following state's
742 lookaheadsp.
743
7442001-12-27 Akim Demaille <akim@epita.fr>
745
746 * src/conflicts.c (log_resolution, flush_shift)
747 (resolve_sr_conflict, set_conflicts, solve_conflicts)
748 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
749 (conflicts_print, print_reductions): Use a state_t instead of an
750 integer when referring to a state.
751 As much as possible, depend upon nlookaheads, instead of the
752 `lookaheadsp' member of the following state (since lookaheads of
753 successive states are successive, the difference between state n + 1
754 and n served as the number of lookaheads for state n).
755 * src/lalr.c (add_lookback_edge): Likewise.
756 * src/print.c (print_core, print_actions, print_state)
757 (print_results): Likewise.
758 * src/print_graph.c (print_core, print_actions, print_state)
759 (print_graph): Likewise.
760 * src/conflicts.h: Adjust.
761
7622001-12-27 Akim Demaille <akim@epita.fr>
763
764 * src/bison.hairy: Formatting/comment changes.
765 ANSIfy.
766 Remove `register' indications.
767 Add plenty of `static'.
768
7692001-12-27 Akim Demaille <akim@epita.fr>
770
771 * src/output.c (prepare): Drop the muscle `ntbase' which
772 duplicates ntokens.
773 * src/bison.simple: Formatting/comment changes.
774 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
775 is an undocumented synonym.
776
7772001-12-22 Akim Demaille <akim@epita.fr>
778
779 * src/output.c (output_table_data): Change the prototype to use
780 `int' for array ranges: some invocations do pass an int, not a
781 short.
782 Reported by Wayne Green.
783
7842001-12-22 Akim Demaille <akim@epita.fr>
785
786 Some actions of web2c.y are improperly triggered.
787 Reported by Mike Castle.
788
789 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
790 * tests/regression.at (Web2c): Rename as...
791 (Web2c Report): this.
792 (Web2c Actions): New.
793
7942001-12-22 Akim Demaille <akim@epita.fr>
795
796 Reductions in web2c.y are improperly reported.
797 Reported by Mike Castle.
798
799 * src/conflicts.c (print_reductions): Fix.
800 * tests/regression.at (Web2c): New.
801
8022001-12-18 Akim Demaille <akim@epita.fr>
803
804 Some host fail on `assert (!"foo")', which expands to
805 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
806 Reported by Nelson Beebee.
807
808 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
809 `#define it_succeeded 0' and `assert (it_succeeded)'.
810
8112001-12-17 Marc Autret <autret_m@epita.fr>
812
813 * src/bison.simple: Don't hard code the skeleton line and filename.
814 * src/output.c (output_parser): Rename 'line' as 'output_line'.
815 New line counter 'skeleton_line' (skeleton-line muscle).
816
8172001-12-17 Paul Eggert <eggert@twinsun.com>
818
819 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
820 YYDEBUG must be defined to a nonzero value.
821
822 * src/bison.simple (yytname): Do not assume that the user defines
823 YYDEBUG to a properly parenthesized expression.
824
8252001-12-17 Akim Demaille <akim@epita.fr>
826
827 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
828 nlookaheads is a new member.
829 Adjust all users.
830 * src/lalr.h (nlookaheads): Remove this orphan declaration.
831 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
832 state.
833
8342001-12-17 Akim Demaille <akim@epita.fr>
835
836 * src/files.h, src/files.c (open_files, close_files): Remove.
837 * src/main.c (main): Don't open/close files, nor invoke lex_free,
838 let...
839 * src/reader.c (reader): Do it.
840
8412001-12-17 Akim Demaille <akim@epita.fr>
842
843 * src/conflicts.c (print_reductions): Formatting changes.
844
8452001-12-17 Akim Demaille <akim@epita.fr>
846
847 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
848 (flush_reduce): New.
849 (resolve_sr_conflict): Adjust.
850
8512001-12-17 Akim Demaille <akim@epita.fr>
852
853 * src/output.c (output_obstack): Be static and rename as...
854 (format_obstack): this, to avoid any confusion with files.c's
855 output_obstack.
856 * src/reader.h (muscle_obstack): Move to...
857 * src/output.h: here, since it's defined in output.c.
858
8592001-12-17 Akim Demaille <akim@epita.fr>
860
861 * src/output.c (action_row, save_column, default_goto)
862 (sort_actions, matching_state, pack_vector): Better variable
863 locality.
864
8652001-12-17 Akim Demaille <akim@epita.fr>
866
867 * src/output.c: Various formatting changes.
868
8692001-12-17 Akim Demaille <akim@epita.fr>
870
871 * src/files.c (output_files): Free the output_obstack.
872 * src/main.c (main): Call print and print_graph conditionally.
873 * src/print.c (print): Work unconditionally.
874 * src/print_graph.c (print_graph): Work unconditionally.
875 * src/conflicts.c (log_resolution): Output only if verbose_flag.
876
8772001-12-16 Marc Autret <autret_m@epita.fr>
878
879 * src/output.c (actions_output): Fix. When we use %no-lines,
880 there is one less line per action.
881
8822001-12-16 Marc Autret <autret_m@epita.fr>
883
884 * src/bison.simple: Remove a useless #line directive.
885 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
886 * src/output.c (get_lines_number): New.
887 (output_parser): Adjust, now takes care about the lines of a
888 output muscles.
889 Fix line numbering.
890 (actions_output): Computes the number of lines taken by actions.
891 (output_master_parser): Insert new skeleton which is the name of
892 the output parser file name.
893
8942001-12-15 Marc Autret <autret_m@epita.fr>
895
896 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
897
8982001-12-15 Marc Autret <autret_m@epita.fr>
899
900 * src/output.c (output_gram): Keep track of the hairy one.
901
9022001-12-15 Akim Demaille <akim@epita.fr>
903
904 Make `make distcheck' work.
905
906 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
907 system.h which uses libgettext.h.
908
9092001-12-15 Akim Demaille <akim@epita.fr>
910
911 * src/nullable.c (set_nullable): Useless rules must be skipped,
912 otherwise, since we range over their symbols, we might look at a
913 nonterminal which no longer ``exists'', i.e., it is not counted in
914 `nvars', hence we overflow our arrays.
915
9162001-12-15 Akim Demaille <akim@epita.fr>
917
918 The header can also be produced directly, without any obstack!
919 Yahoo!
920
921 * src/files.c, src/files.h (defines_obstack): Remove.
922 (compute_header_macro): Global.
923 (defines_obstack_save): Remove.
924 * src/reader.c (parse_union_decl): No longer output to
925 defines_obstack: its content can be found in the `stype' muscle
926 anyway.
927 (output_token_translations): Merge into...
928 (symbols_output): this.
929 Rename as...
930 (symbols_save): this.
931 (reader): Adjust.
932 * src/output.c (header_output): New.
933 (output): Call it.
934
9352001-12-15 Akim Demaille <akim@epita.fr>
936
937 * src/reader.c (parse_union_decl): Instead of handling two obstack
938 simultaneously, use one to define the `stype' muscle, and use the
939 value of the latter to fill defines_obstack.
940 (copy_comment): Remove.
941 (copy_comment2): Work for a single obstack.
942 Rename as...
943 (copy_comment): this.
944
9452001-12-15 Akim Demaille <akim@epita.fr>
946
947 * src/lex.c, src/lex.h (xgetc): No longer static.
948 * src/reader.c (parse_union_decl): Revamp.
949
9502001-12-15 Akim Demaille <akim@epita.fr>
951
952 Still making progress in separating Bison into (i) input, (ii)
953 process, (iii) output: now we can directly output the parser file
954 without using table_obstack at all.
955
956 * src/files.c, src/files.h (table_obstack): Bye bye.
957 (parser_file_name): New.
958 * src/files.c (compute_output_file_names): Compute it.
959 * src/output.c (actions_output, output_parser)
960 (output_master_parser): To a file instead of an obstack.
961
9622001-12-15 Akim Demaille <akim@epita.fr>
963
964 Attach actions to rules, instead of pre-outputting them to
965 actions_obstack.
966
967 * src/gram.h (rule_t): action and action_line are new members.
968 * src/reader.c (symbol_list): Likewise.
969 (copy_action): Save the actions within the rule.
970 (packgram): Save them in rule_table.
971 * src/output.c (actions_output): New.
972 (output_parser): Use it on `%%actions'.
973 (output_rule_data): Don't free rule_table.
974 (output): Do it.
975 (prepare): Don't save the `action' muscle.
976 * src/bison.simple: s/%%action/%%actions/.
977
9782001-12-15 Akim Demaille <akim@epita.fr>
979
980 * src/reader.c (copy_action): When --yacc, don't append a `;'
981 to the user action: let it fail if lacking.
982 Suggested by Arnold Robbins and Tom Tromey.
983
9842001-12-14 Akim Demaille <akim@epita.fr>
985
986 * src/lex.c (literalchar): Simply return the char you decoded, non
987 longer mess around with obstacks and int pointers.
988 Adjust all callers.
989
9902001-12-14 Akim Demaille <akim@epita.fr>
991
992 * src/lex.c (literalchar): Don't escape the special characters,
993 just decode them, and keep them as char (before, eol was output as
994 the 2 char string `\n' etc.).
995 * src/output.c (output_rule_data): Use quotearg to output the
996 token strings.
997
9982001-12-13 Paul Eggert <eggert@twinsun.com>
999
1000 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
1001 Do not infringe on the global user namespace when using C++.
1002 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
1003 All uses of `fprintf' and `stderr' changed.
1004
1005 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
1006
10072001-12-13 Akim Demaille <akim@epita.fr>
1008
1009 The computation of nullable is broken: it doesn't handle empty
1010 RHS's properly.
1011
1012 * tests/torture.at (GNU AWK Grammar): New.
1013 * tests/sets.at (Nullable): New.
1014 * src/nullable.c (set_nullable): Instead of blindly looping over
1015 `ritems', loop over the rules, and then over their rhs's.
1016
1017 Work around Autotest bugs.
1018
1019 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
1020 frame, because Autotest understand lines starting with a `+' as
1021 traces from the shell. Then, they are not processed properly.
1022 Admittedly an Autotest bug, but we don't have time to wait for
1023 Autotest to catch up.
1024 * tests/regression.at (Broken Closure): Adjust to the new table
1025 frames.
1026 Move to...
1027 * tests/sets.at: here.
1028
10292001-12-13 Akim Demaille <akim@epita.fr>
1030
1031 * src/closure.c (closure): Use nrules instead of playing tricks
1032 with BITS_PER_WORD.
1033
10342001-12-13 Akim Demaille <akim@epita.fr>
1035
1036 * src/print.c (print_actions): Output the handling of `$' as the
1037 traces do: shifting the token EOF. Before EOF was treated as a
1038 nonterminal.
1039 * tests/regression.at: Adjust some tests.
1040 * src/print_graph.c (print_core): Complete the set of items via
1041 closure. The next-to-final and final states are still unsatisfying,
1042 but that's to be addressed elsewhere.
1043 No longer output the rule numbers, but do output the state number.
1044 A single loop for the shifts + gotos is enough, but picked a
1045 distinct color for each.
1046 (print_graph): Initialize and finalize closure.
1047
10482001-12-13 Akim Demaille <akim@epita.fr>
1049
1050 * src/reader.c (readgram): Remove dead code, an strip useless
1051 braces.
1052 (get_type): Remove, unused.
1053
10542001-12-12 Akim Demaille <akim@epita.fr>
1055
1056 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
1057 on that of lib/error.c.
1058
10592001-12-12 Akim Demaille <akim@epita.fr>
1060
1061 Some hosts don't like `/' in includes.
1062
1063 * src/system.h: Include libgettext.h without qualifying the path.
1064 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
1065 $(top_srcdir).
1066
10672001-12-11 Marc Autret <autret_m@epita.fr>
1068
1069 * src/output.c (output_parser): Remove useless muscle.
1070
10712001-12-11 Marc Autret <autret_m@epita.fr>
1072
1073 * src/bison.simple: Remove #line just before %%epilogue. It
1074 is now handled in ...
1075 * src/reader.c (read_additionnal_code): Add the output of a
1076 #line for the epilogue.
1077
10782001-12-10 Marc Autret <autret_m@epita.fr>
1079
1080 * src/reader.c (copy_definition): Re-use CPP-outed code which
1081 replace precedent remove.
1082 * src/bison.simple: Remove #line before %%prologue because
1083 %%input-line is wrong at this time.
1084
10852001-12-10 Marc Autret <autret_m@epita.fr>
1086
1087 * src/reader.c (symbols_output): Clean up.
1088 * src/output.c (output_gram, output): Clean up.
1089
10902001-12-10 Akim Demaille <akim@epita.fr>
1091
1092 * src/lalr.c (initialize_lookaheads): New. Extracted from...
1093 * src/LR0.c (set_state_table): here.
1094 * src/lalr.c (lalr): Call it.
1095
10962001-12-10 Akim Demaille <akim@epita.fr>
1097
1098 * src/state.h (shifts): Remove the `number' member: shifts are
1099 attached to state, hence no longer need to be labelled with a
1100 state number.
1101
11022001-12-10 Akim Demaille <akim@epita.fr>
1103
1104 Now that states have a complete set of members, the linked list of
1105 shifts is useless: just fill directly the state's shifts member.
1106
1107 * src/state.h (shifts): Remove the `next' member.
1108 * src/LR0.c (first_state, last_state): Remove.
1109 Adjust the callers.
1110 (augment_automaton): Don't look for the shifts that must be added
1111 a shift on EOF: it is those of the state we looked for! But now,
1112 since shifts are attached, it is no longer needed to looking
1113 merely by its id: its number.
1114
11152001-12-10 Akim Demaille <akim@epita.fr>
1116
1117 * src/LR0.c (augment_automaton): Better variable locality.
1118 Remove an impossible branch: if there is a state corresponding to
1119 the start symbol being shifted, then there is shift for the start
1120 symbol from the initial state.
1121
11222001-12-10 Akim Demaille <akim@epita.fr>
1123
1124 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1125 only when appropriate: when insert_start_shifting_state' is not
1126 invoked.
1127 * tests/regression.at (Rule Line Numbers): Adjust.
1128
11292001-12-10 Akim Demaille <akim@epita.fr>
1130
1131 * src/LR0.c (augment_automaton): Now that all states have shifts,
1132 merge the two cases addition shifts to the initial state.
1133
11342001-12-10 Akim Demaille <akim@epita.fr>
1135
1136 * src/lalr.c (set_state_table): Move to...
1137 * src/LR0.c: here.
1138 * src/lalr.c (lalr): Don't call it...
1139 * src/LR0.c (generate_states): do it.
1140 * src/LR0.h (first_state): Remove, only the table is used.
1141
11422001-12-10 Akim Demaille <akim@epita.fr>
1143
1144 * src/LR0.h (first_shift, first_reduction): Remove.
1145 * src/lalr.c: Don't use first_shift: find shifts through the
1146 states.
1147
11482001-12-10 Akim Demaille <akim@epita.fr>
1149
1150 * src/LR0.c: Attach shifts to states as soon as they are
1151 computed.
1152 * src/lalr.c (set_state_table): Instead of assigning shifts to
1153 state, just assert that the mapping was properly done.
1154
11552001-12-10 Akim Demaille <akim@epita.fr>
1156
1157 * src/LR0.c (insert_start_shift): Rename as...
1158 (insert_start_shifting_state): this.
1159 (insert_eof_shifting_state, insert_accepting_state): New.
1160 (augment_automaton): Adjust.
1161 Better locality of the variables.
1162 When looking if the start_symbol is shifted from the initial
1163 state, using `while (... symbol != start_symbol ...)' sounds
1164 better than `while (... symbol < start_symbol ...)': If fail
1165 to see how the order between symbols could be relevant!
1166
11672001-12-10 Akim Demaille <akim@epita.fr>
1168
1169 * src/getargs.h: Don't declare `spec_name_prefix' and
1170 `spec_file_prefix', declared by src/files.h.
1171 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1172 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1173 * src/output.c (prepare): Adjust.
1174 * src/reader.c (symbols_output): Likewise.
1175 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1176
11772001-12-10 Akim Demaille <akim@epita.fr>
1178
1179 * src/muscle_tab.c (muscle_init): NULL is a better default than
1180 `"0"'.
1181
11822001-12-10 Akim Demaille <akim@epita.fr>
1183
1184 * src/reader.c (reader): Calling symbols_output once is enough.
1185
11862001-12-10 Akim Demaille <akim@epita.fr>
1187
1188 Now that states have a complete set of members, the linked list of
1189 reductions is useless: just fill directly the state's reductions
1190 member.
1191
1192 * src/state.h (struct reductions): Remove member `number' and
1193 `next'.
1194 * src/LR0.c (first_reduction, last_reduction): Remove.
1195 (save_reductions): Don't link the new reductions, store them in
1196 this_state.
1197 * src/lalr.c (set_state_table): No need to attach reductions to
1198 states, it's already done.
1199 * src/output.c (output_actions): No longer free the shifts, then
1200 the reductions, then the states: free all the states and their
1201 members.
1202
12032001-12-10 Akim Demaille <akim@epita.fr>
1204
1205 * src/options.c (OPTN, DRTV, BOTH): New.
1206 (option_table): Use them.
1207
1208 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1209 the job of system.h.
1210 * src/options.c: Don't include stdio.h and xalloc.h for the same
1211 reasons.
1212
12132001-12-10 Akim Demaille <akim@epita.fr>
1214
1215 * src/output.c (output, prepare): Make sure the values of the
1216 muscles `action' and `prologue' are 0-terminated.
1217
12182001-12-10 Akim Demaille <akim@epita.fr>
1219
1220 Clean up GCC warnings.
1221
1222 * src/reader.c (copy_action): `buf' is not used.
1223 (parse_skel_decl): Be static.
1224 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1225 * src/options.h (create_long_option_table): Have a real prototype.
1226 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1227 (hash_delete_at): Return const void *.
1228 Adjust casts to preserve the const.
1229
12302001-12-10 Akim Demaille <akim@epita.fr>
1231
1232 * configure.in: Require 2.52g.
1233 M4 is not needed, but AUTOM4TE is.
1234 * m4/m4.m4: Remove.
1235 * tests/Makefile.am: Adjust.
1236
12372001-12-10 Akim Demaille <akim@epita.fr>
1238
1239 One structure for states is enough, even though theoretically
1240 there are LR(0) states and LALR(1) states.
1241
1242 * src/lalr.h (state_t): Remove.
1243 (state_table): Be state_t **, not state_t *.
1244 * src/state.h (core, CORE_ALLOC): Rename as...
1245 (state_t, STATE_ALLOC): this.
1246 Add the LALR(1) members: shifts, reductions, errs.
1247 * src/LR0.c (state_table): Rename as...
1248 (state_hash): this, to avoid name clashes with the global
1249 `state_table'.
1250 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1251 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1252
12532001-12-10 Akim Demaille <akim@epita.fr>
1254
1255 Bison dumps core on bash.y.
1256 Reported by Pascal Bart.
1257
1258 * src/warshall.c (bitmatrix_print): New.
1259 (TC): Use it.
1260 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1261 j must be the outer loop.
1262 * tests/regression.at (Broken Closure): New.
1263
12642001-12-05 Akim Demaille <akim@epita.fr>
1265
1266 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1267 its argument.
1268