1 2001-11-26 Marc Autret <autret_m@epita.fr>
3 * src/bison.simple: Remove YYERROR_VERBOSE using.
6 * src/output.c (prepare): Give its final value.
7 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
8 * src/getargs.h: Add its extern declaration.
9 * src/getargs.c (error_verbose_flag): New int.
10 (getargs): Update to catch new case.
11 * src/options.c (option_table): 'error-verbose' is a new option.
14 2001-11-27 Akim Demaille <akim@epita.fr>
16 * src/system.h: Use intl/libgettext.h.
17 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
19 2001-11-27 Akim Demaille <akim@epita.fr>
21 * tests/torture.at (Exploding the Stack Size with Malloc):
22 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
24 2001-11-27 Akim Demaille <akim@epita.fr>
26 * src/files.c: Include error.h.
27 Reported by Hans Aberg.
29 2001-11-26 Marc Autret <autret_m@epita.fr>
31 * src/reader.c (parse_include_decl): New, Not yet implemented.
32 (read_declarations): Add case tok_include.
33 * src/getargs.h (include): Add its extern definition.
34 * src/getargs.c (include): New const char *.
35 (getargs): Add case '-I'.
36 * src/options.c (option_table): Add include as command line and
38 * src/lex.h (token_t): Add tok_include.
40 2001-11-26 Akim Demaille <akim@epita.fr>
42 * src/reader.c (readgram): Make sure rules for mid-rule actions
43 have a lineno equal to that of their host rule.
44 Reported by Hans Aberg.
45 * tests/regression.at (Rule Line Numbers): New.
47 2001-11-26 Akim Demaille <akim@epita.fr>
49 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
52 2001-11-26 Akim Demaille <akim@epita.fr>
54 * src/complain.c, src/complain.h (error): Remove, provided by
57 2001-11-26 Akim Demaille <akim@epita.fr>
59 * src/reader.c (read_declarations): Don't abort on tok_illegal,
60 issue an error message.
61 * tests/regression.at (Invalid %directive): New.
62 Reported by Hans Aberg.
64 2001-11-26 Akim Demaille <akim@epita.fr>
66 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
67 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
69 2001-11-26 Akim Demaille <akim@epita.fr>
71 * src/conflicts.c (conflicts_print): Don't complain at all when
72 there are no reduce/reduce conflicts, and as many shift/reduce
73 conflicts as expected.
74 * tests/regression.at (%expect right): Adjust.
76 2001-11-23 Akim Demaille <akim@epita.fr>
78 * lib/alloca.c: Update, from fileutils.
80 2001-11-23 Akim Demaille <akim@epita.fr>
82 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
84 2001-11-23 Akim Demaille <akim@epita.fr>
86 * src/system.h: Include alloca.h.
87 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
89 2001-11-23 Akim Demaille <akim@epita.fr>
91 * src/print_graph.c (print_actions): Remove `rule', unused.
92 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
93 pacify GCC's signed < unsigned warnings.
94 * src/closure.c (itemsetsize): Likewise.
95 * src/reader.c (symbol_list_new): Static.
97 2001-11-23 Akim Demaille <akim@epita.fr>
99 Attaching lineno to buckets is stupid, since only one copy of each
100 symbol is kept, only the line of the first occurrence is kept too.
102 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
103 * src/reader.c (rline_allocated): Remove, unused.
104 (symbol_list): Have a `line' member.
105 (symbol_list_new): New.
107 * src/print.c (print_grammar): Output the rule line numbers.
108 * tests/regression.at (Solved SR Conflicts)
109 (Unresolved SR Conflicts): Adjust.
110 Reported by Hans Aberg.
112 2001-11-22 Marc Autret <autret_m@epita.fr>
114 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
116 2001-11-22 Marc Autret <autret_m@epita.fr>
118 * src/muscle_tab.c (muscle_init): Remove initialization of
120 * src/output.c (output_master_parser): Do it here.
122 2001-11-20 Akim Demaille <akim@epita.fr>
125 * configure.in (ALL_LINGUAS): Adjust.
126 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
127 longer contains strings to translate.
129 2001-11-19 Akim Demaille <akim@epita.fr>
131 * src/conflicts.c (conflicts_print): Add a missing \n.
133 2001-11-19 Akim Demaille <akim@epita.fr>
135 * src/nullable.c (nullable_print): New.
136 (set_nullable): Call it when tracing.
137 Better locality of variables.
139 2001-11-19 Akim Demaille <akim@epita.fr>
141 * src/print.c (print_actions): Better locality of variables.
143 2001-11-19 Akim Demaille <akim@epita.fr>
145 * src/derives.c (print_derives): Fix and enrich.
146 * src/closure.c (print_fderives): Likewise.
148 2001-11-19 Akim Demaille <akim@epita.fr>
150 * src/closure.c (itemsetend): Remove, replaced with...
153 2001-11-19 Akim Demaille <akim@epita.fr>
155 * src/LR0.c (kernel_end): Remove, replaced with...
158 2001-11-19 Akim Demaille <akim@epita.fr>
160 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
163 2001-11-19 Akim Demaille <akim@epita.fr>
165 * src/closure.c (closure): Use arrays instead of pointers to clarify.
167 2001-11-19 Akim Demaille <akim@epita.fr>
169 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
171 * src/LR0.c: Likewise.
172 (allocate_itemsets): Use arrays instead of pointers to clarify.
174 2001-11-19 Akim Demaille <akim@epita.fr>
176 * src/getargs.c (statistics_flag): Replace with...
178 (longopts): Accept --trace instead of --statistics.
179 * src/getargs.h, src/options.c: Adjust.
180 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
181 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
183 2001-11-19 Akim Demaille <akim@epita.fr>
185 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
186 pointers to clarify the code.
187 (save_reductions, save_shifts): Factor common parts of alternatives.
189 2001-11-19 Akim Demaille <akim@epita.fr>
191 * src/LR0.c (new_state, get_state): Complete TRACE code.
192 * src/closure.c: Include `reader.h' to get `tags', needed by the
194 Rename the conditional DEBUG as TRACE.
195 Output consistently TRACEs to stderr, not stdout.
196 * src/derives.c: Likewise.
197 * src/reduce.c: (inaccessable_symbols): Using if is better style
199 Use `#if TRACE' instead of `#if 0' for tracing code.
201 2001-11-19 Akim Demaille <akim@epita.fr>
203 * src/system.h (LIST_FREE, shortcpy): New.
204 * src/LR0.c: Use them.
205 * src/output.c (free_itemsets, free_reductions, free_shifts):
206 Remove, replaced by LIST_FREE.
208 2001-11-19 Akim Demaille <akim@epita.fr>
210 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
211 (REDUCTIONS_ALLOC): New.
212 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
215 2001-11-19 Akim Demaille <akim@epita.fr>
217 * src/LR0.c (new_state): Complete trace code.
218 * src/nullable.c (set_nullable): Don't translate traces.
220 2001-11-19 Akim Demaille <akim@epita.fr>
222 * src/print_graph.c (print_core): Better locality of variables.
223 * src/print.c (print_core): Likewise.
225 2001-11-19 Akim Demaille <akim@epita.fr>
227 * src/vcg.c: You do the output, so you are responsible of the
228 handling of VCG syntax, in particular: use quotearg.
229 * src/print_graph.c: Don't.
230 (print_actions): Don't output the actions as part of the nodes,
231 since that's the job of the edges.
232 (print_state): Don't output by hand: fill the node description,
233 and ask for its output.
235 2001-11-19 Akim Demaille <akim@epita.fr>
237 * src/bison.simple (yyparse): When verbosely reporting an error,
238 no longer put additional quotes around token names.
239 * tests/calc.at: Adjust.
241 2001-11-19 Akim Demaille <akim@epita.fr>
243 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
244 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
245 * src/output.c: Adjust.
247 2001-11-19 Akim Demaille <akim@epita.fr>
249 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
251 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
253 2001-11-19 Akim Demaille <akim@epita.fr>
255 * src/gram.h (rule_t): New.
257 (rrhs, rlhs): Remove, part of state_t.
258 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
259 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
260 * src/reader.c, src/reduce.c: Adjust.
262 2001-11-19 Akim Demaille <akim@epita.fr>
264 * src/reader.c (symbols_output): New, extracted from...
268 2001-11-19 Akim Demaille <akim@epita.fr>
270 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
271 (maxrhs): this new function.
273 2001-11-19 Akim Demaille <akim@epita.fr>
275 * src/lalr.c (F): New macro to access the variable F.
278 2001-11-19 Akim Demaille <akim@epita.fr>
280 * src/lalr.h (LA): New macro to access the variable LA.
281 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
282 * src/lalr.c: Adjust.
284 2001-11-19 Akim Demaille <akim@epita.fr>
286 * src/lalr.c (initialize_LA): Only initialize LA. Let...
287 (set_state_table): handle the `lookaheads' members.
289 2001-11-19 Akim Demaille <akim@epita.fr>
291 * src/lalr.h (lookaheads): Removed array, whose contents is now
293 (state_t): this structure.
294 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
297 2001-11-19 Akim Demaille <akim@epita.fr>
299 * src/lalr.h (consistent): Removed array, whose contents is now
301 (state_t): this structure.
302 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
305 2001-11-19 Akim Demaille <akim@epita.fr>
307 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
308 contents are now members of...
309 (state_t): this structure.
310 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
313 2001-11-19 Akim Demaille <akim@epita.fr>
315 * src/lalr.h (state_t): New.
316 (state_table): Be a state_t * instead of a core **.
317 (accessing_symbol): Remove, part of state_t.
318 * src/lalr.c: Adjust.
319 (set_accessing_symbol): Merge into...
320 (set_state_table): this.
321 * src/print_graph.c, src/conflicts.c: Adjust.
323 2001-11-14 Akim Demaille <akim@epita.fr>
325 * tests/calc.at, tests/output.at, tests/regression.at,
326 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
327 now the tests are run in private dirs, therefore AC_CLEANUP and
328 family can be simplified to 0-ary.
329 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
330 use abs. path to find config.h.
331 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
332 stderr, there can be way too much random noise.
333 Instead pass -Werror to GCC and rely on the exit status.
334 Reported by Wolfram Wagner.
336 2001-11-14 Akim Demaille <akim@epita.fr>
338 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
339 defined only if yyoverflow is defined, to avoid `warning: unused
341 Reported by The Test Suite.
343 2001-11-14 Akim Demaille <akim@epita.fr>
345 * src/print.c: Include reduce.h.
346 Reported by Hans Aberg.
348 2001-11-14 Akim Demaille <akim@epita.fr>
350 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
351 Revert a previous patch: these are really const.
352 * src/conflicts.c (conflict_report): Additional useless pair of
353 braces to pacify GCC's warnings for `if () if () {} else {}'.
354 * src/lex.c (parse_percent_token): Replace equal_offset with
357 Be sure to strdup `arg' when used, since there is no reason for
358 token_buffer not to change.
360 2001-11-14 Akim Demaille <akim@epita.fr>
362 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
364 * src/main.c (main): Use them.
365 Suggested by Hans Aberg.
367 2001-11-12 Akim Demaille <akim@epita.fr>
369 * src/system.h (ngettext): Now that we use ngettext, be sure to
370 provide a default definition when NLS are not used.
372 2001-11-12 Akim Demaille <akim@epita.fr>
374 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
375 Use @kbd to denote user input.
376 (Language and Grammar): ANSIfy the example.
377 Adjust its layout for info/notinfo.
378 (Location Tracking Calc): Output error messages to stderr.
379 Output locations in a more GNUtically correct way.
380 Fix a couple of Englishos.
381 Adjust @group/@end group pairs.
383 2001-11-12 Akim Demaille <akim@epita.fr>
385 %expext was not functioning at all.
387 * src/conflicts.c (expected_conflicts): Set to -1.
388 (conflict_report): Use ngettext.
389 (conflicts_print): Check %expect and make its violation an error.
390 * doc/bison.texinfo (Expect Decl): Adjust.
391 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
392 * tests/regression.at (%expect not enough, %expect right)
393 (%expect too much): New.
395 2001-11-12 Akim Demaille <akim@epita.fr>
397 * tests/regression.at (Conflicts): Rename as...
398 (Unresolved SR Conflicts): this.
399 (Solved SR Conflicts): New.
401 2001-11-12 Akim Demaille <akim@epita.fr>
403 * src/reduce.c (print_results): Rename as...
404 (reduce_output): This.
405 Output to OUT, passed as argument, instead of output_obstack.
406 (dump_grammar): Likewise.
409 (reduce_grammar): No longer call reduce_output, since...
410 * src/print.c (print_results): do it.
411 * src/main.c (main): Call reduce_free;
413 2001-11-12 Akim Demaille <akim@epita.fr>
415 * src/conflicts.c (print_reductions): Accept OUT as argument.
416 Output to it, not to output_obstack.
417 * src/print.c (print_actions): Adjust.
419 2001-11-12 Akim Demaille <akim@epita.fr>
421 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
422 the result instead of using...
423 (src_total, rrc_total, src_count, rrc_count): Remove.
424 (any_conflicts): Remove.
425 (print_conflicts): Split into...
426 (conflicts_print, conflicts_output): New.
427 * src/conflicts.h: Adjust.
428 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
429 * src/print.c (print_grammar): Issue `\n' between two rules.
430 * tests/regression.at (Conflicts): New.
431 Reported by Tom Lane.
433 2001-11-12 Akim Demaille <akim@epita.fr>
435 * tests/regression.at (Invalid input): Remove, duplicate with
436 ``Invalid input: 1''.
438 2001-11-12 Akim Demaille <akim@epita.fr>
440 * tests/torture.at (AT_DATA_STACK_TORTURE)
441 (Exploding the Stack Size with Alloca)
442 (Exploding the Stack Size with Malloc): New.
444 2001-11-12 Akim Demaille <akim@epita.fr>
446 * src/bison.simple (YYSTACK_REALLOC): New.
447 (yyparse) [!yyoverflow]: Use it and free the old stack.
448 Reported by Per Allansson.
450 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
452 * src/bison.simple: Define type yystype instead of YYSTYPE, and
453 define CPP macro, which substitute YYSTYPE by yystype.
454 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
455 with yyltype/YYLTYPE. This allows inclusion of the generated
456 header within the parser if the compiler, such as GGC, accepts
457 multiple equivalent #defines.
460 2001-11-05 Akim Demaille <akim@epita.fr>
462 * src/reader.c (symbols_output): New, extracted from...
466 2001-11-05 Akim Demaille <akim@epita.fr>
468 * src/lex.c (parse_percent_token): s/quotearg/quote/.
470 2001-11-05 Akim Demaille <akim@epita.fr>
472 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
475 2001-11-05 Akim Demaille <akim@epita.fr>
477 * src/options.h (struct option_table_struct): set_flags is void*.
478 * src/options.c (longopts): Support `--output' and `%output'.
480 * src/lex.h (tok_setopt): Remove, replaced with...
481 (tok_intopt, tok_stropt): these new guys.
482 * src/lex.c (getopt.h): Not needed.
483 (token_buffer, unlexed_token_buffer): Not const.
484 (percent_table): Promote `-' over `_' in directive names.
485 Active `%name-prefix', `file-prefix', and `output'.
486 (parse_percent_token): Accept possible arguments to directives.
487 Promote `-' over `_' in directive names.
489 2001-11-04 Akim Demaille <akim@epita.fr>
491 * doc/bison.texinfo (Decl Summary): Split the list into
492 `directives for grammars' and `directives for bison'.
494 Add description of `%name-prefix', `file-prefix', and `output'.
495 Promote `-' over `_' in directive names.
496 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
497 Simplify the description of `--name-prefix'.
498 Promote `-' over `_' in directive names.
499 Promote `--output' over `--output-file'.
500 Fix the description of `--defines'.
501 * tests/output.at: Exercise %file-prefix and %output.
503 2001-11-02 Akim Demaille <akim@epita.fr>
505 * doc/refcard.tex: Update.
507 2001-11-02 Akim Demaille <akim@epita.fr>
509 * src/symtab.h (SUNDEF): New.
510 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
511 stand for `uninitialized', instead of 0.
512 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
513 * src/lex.c (lex): Adjust.
515 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
517 Let yylex return it instead of a plain 0.
518 Reported by Dick Streefland.
520 2001-11-02 Akim Demaille <akim@epita.fr>
522 * tests/regression.at (Mixing %token styles): New test.
524 2001-11-02 Akim Demaille <akim@epita.fr>
526 * src/reader.c (parse_thong_decl): Formatting changes.
527 (token_translations_init): New, extracted from...
531 2001-11-01 Akim Demaille <akim@epita.fr>
533 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
534 Check that `9foo.y' produces correct cpp guards.
535 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
539 2001-11-01 Akim Demaille <akim@epita.fr>
541 * tests/regression.at (Invalid input: 2): New.
542 * src/lex.c (unlexed_token_buffer): New.
543 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
547 2001-11-01 Akim Demaille <akim@epita.fr>
549 * tests/calc.at: Catch up with 1.30.
550 * configure.in: Bump to 1.49a.
551 Adjust to newer Autotest.
553 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
555 * src/conflicts.c: Move global variables rrc_total and src_total ...
556 (print_conflicts): here.
557 * src/output.c (output): Free global variable user_toknums.
558 * src/lex.c (token_obstack): Become static.
560 2001-10-18 Akim Demaille <akim@epita.fr>
562 * tests/atlocal.in (GCC): Add.
563 * tests/calc.at: s/m4_match/m4_bmatch/.
564 s/m4_patsubst/m4_bpatsubst/.
565 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
566 * configure.in: AC_SUBST(GCC).
568 2001-10-14 Marc Autret <autret_m@epita.fr>
570 * src/options.c (create_long_option_table): Fix.
572 2001-10-10 Akim Demaille <akim@epita.fr>
574 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
576 2001-10-04 Akim Demaille <akim@epita.fr>
578 * src/reader.c (parse_union_decl): Push the caracters in
579 union_obstack, not attrs_obstack.
581 2001-10-04 Akim Demaille <akim@epita.fr>
583 Merge in the branch 1.29.
585 * src/reader.c (packsymbols): Use a temporary obstack for
586 `%%tokendef', since output_stack is already used elsewhere.
588 2001-10-02 Akim Demaille <akim@epita.fr>
592 2001-10-02 Akim Demaille <akim@epita.fr>
596 2001-10-02 Akim Demaille <akim@epita.fr>
598 * tests/regression.at (Invalid CPP headers): New.
599 From Alexander Belopolsky.
600 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
602 2001-10-02 Akim Demaille <akim@epita.fr>
604 * tests/regression.at (Invalid input): New.
605 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
608 2001-10-02 Akim Demaille <akim@epita.fr>
610 * tests/calc.at: Now that --debug works, the tests must be adjusted.
612 2001-10-02 Akim Demaille <akim@epita.fr>
614 * src/output.c (output_parser): Assert `skeleton'.
615 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
619 2001-10-01 Marc Autret <autret_m@epita.fr>
621 * src/lex.h: Echo modifications.
622 * src/lex.c (unlex): Parameter is now token_t.
625 2001-10-01 Marc Autret <autret_m@epita.fr>
627 * src/main.c: Include lex.h.
630 2001-09-29 Akim Demaille <akim@epita.fr>
632 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
634 2001-09-28 Akim Demaille <akim@epita.fr>
636 * tests/testsuite.at: Update to newer Autotest.
637 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
639 2001-09-27 Akim Demaille <akim@epita.fr>
641 Position independent wrapper.
643 * tests/bison: Remove.
644 * tests/bison.in: New.
645 * configure.in: Adjust.
647 2001-09-27 Paul Eggert <eggert@twinsun.com>
649 Port quotearg fixes from tar 1.13.24.
651 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
653 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
654 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
656 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
657 * m4/mbrtowc.m4: New file.
658 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
659 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
661 2001-09-27 Akim Demaille <akim@epita.fr>
665 2001-09-27 Akim Demaille <akim@epita.fr>
669 2001-09-25 Akim Demaille <akim@epita.fr>
671 * src/system.h: Include `xalloc.h'.
672 Remove it from the C files.
673 * src/files.c (output_files): Free the obstacks.
674 * src/lex.c (init_lex): Rename as...
677 * src/main.c (main): Use it.
679 2001-09-24 Marc Autret <autret_m@epita.fr>
681 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
682 to output informations in fout (FILE*).
683 (open_graph, close_graph): Likewise.
684 (output_graph, output_edge, output_node): Likewise.
685 * src/vcg.h: Update function prototypes.
686 * src/print_graph.c (print_graph): Open output graph file.
687 (print_actions): Adjust.
688 * src/files.h: Remove extern declaration.
689 * src/files.c: Remove graph_obstack declaration.
690 (open_files): Remove graph_obstack initialization.
691 (output_files): Remove graph_obstack saving.
693 2001-09-24 Marc Autret <autret_m@epita.fr>
695 * src/files.c (compute_output_file_names): Fix.
697 2001-09-24 Marc Autret <autret_m@epita.fr>,
698 Akim Demaille <akim@epita.fr>
700 * src/reader.c (reader): Remove call to free_symtab ().
701 * src/main.c (main): Call it here.
703 * src/conflicts.c (initialize_conflicts): Rename as...
704 (solve_conflicts): this.
705 * src/print.c (print_core, print_actions, print_state)
706 (print_grammar): Dump to a file instead a `output_obstack'.
707 (print_results): Dump `output_obstack', and then proceed with the
709 * src/files.c (compute_output_file_names, close_files): New.
710 (output_files): Adjust.
711 * src/main.c (main): Adjust.
713 2001-09-23 Marc Autret <autret_m@epita.fr>
715 * src/files.c (compute_header_macro): Computes header macro name
716 from spec_defines_file when given.
718 2001-09-23 Marc Autret <autret_m@epita.fr>
720 * src/files.c (output_files): Add default extensions.
722 2001-09-22 Akim Demaille <akim@epita.fr>
724 * src/conflicts.c (finalize_conflicts): Rename as...
725 (free_conflicts): this.
727 2001-09-22 Akim Demaille <akim@epita.fr>
729 * src/gram.c (gram_free): Rename back as...
731 (output_token_translations): Free `token_translations'.
732 * src/symtab.c (free_symtab): Free the tag field.
734 2001-09-22 Akim Demaille <akim@epita.fr>
736 Remove `translations' as it is always set to true.
738 * src/gram.h: Adjust.
739 * src/reader.c (packsymbols, parse_token_decl): Adjust
740 * src/print.c (print_grammar): Adjust.
741 * src/output.c (output_token_translations): Adjust.
742 * src/lex.c (lex): Adjust.
743 * src/gram.c: Be sure the set pointers to NULL.
744 (dummy): Rename as...
747 2001-09-22 Akim Demaille <akim@epita.fr>
749 * configure.in: Invoke AM_LIB_DMALLOC.
750 * src/system.h: Use dmalloc.
751 * src/LR0.c: Be sure to have pointers initialized to NULL.
752 (allocate_itemsets): Allocate kernel_items only if needed.
754 2001-09-22 Akim Demaille <akim@epita.fr>
756 * configure.in: Bump to 1.29b.
757 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
758 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
759 need xmalloc.c in calc.y.
762 2001-09-21 Akim Demaille <akim@epita.fr>
765 * Makefile.maint, config/config.guess, config/config.sub,
766 * config/missing: Update from masters.
767 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
769 * configure.in (ALL_LINGUAS): Add `tr'.
771 2001-09-21 Akim Demaille <akim@epita.fr>
773 * tests/Makefile.am (package.m4): Move to...
774 ($(srcdir)/$(TESTSUITE)): here.
776 2001-09-20 Akim Demaille <akim@epita.fr>
778 * src/complain.c: No longer try to be standalone: use system.h.
779 Don't assume __STDC__ is defined to 1. Just test if it is defined.
780 * src/complain.h: Likewise.
781 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
782 Remove the unused variable `n'.
783 From Albert Chin-A-Young.
785 2001-09-18 Marc Autret <autret_m@epita.fr>
787 * doc/bison.1: Update.
788 * doc/bison.texinfo (Bison Options): Update --defines and --graph
790 (Option Cross Key): Update.
793 2001-09-18 Marc Autret <autret_m@epita.fr>
795 * tests/regression.at: New test (comment in %union).
797 2001-09-18 Marc Autret <autret_m@epita.fr>
799 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
801 Reported by Keith Browne.
803 2001-09-18 Marc Autret <autret_m@epita.fr>
805 * tests/output.at: Add tests for --defines and --graph.
807 2001-09-18 Marc Autret <autret_m@epita.fr>
809 * tests/output.at: Removes tests of %{header,src}_extension features.
811 2001-09-18 Akim Demaille <akim@epita.fr>
813 * tests/Makefile.am (package.m4): New.
814 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
815 (_AT_CHECK_CALC_ERROR): Likewise.
816 Factor the `, ' part of verbose error messages.
818 2001-09-18 Marc Autret <autret_m@epita.fr>
820 * src/getargs.c (longopts): Declare --defines and --graph as options
821 with optional arguments.
822 * src/files.h: Add extern declarations.
823 * src/files.c (spec_graph_file, spec_defines_file): New.
824 (output_files): Update.
825 Remove CPP-outed code.
827 2001-09-18 Marc Autret <autret_m@epita.fr>
829 Turn off %{source,header}_extension feature.
831 * src/files.c (compute_exts_from_gf): Update.
832 (compute_exts_from_src): Update.
833 (output_files): CPP-out useless code.
834 * src/files.h: Remove {header,source}_extension extern declarations.
835 * src/reader.c (parse_dquoted_param): CPP-out.
836 (parse_header_extension_decl): Remove.
837 (parse_source_extension_decl): Remove.
838 (read_declarations): Remove cases tok_{hdrext,srcext}.
839 * src/lex.c (percent_table): Remove {header,source}_extension entries.
840 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
842 2001-09-10 Akim Demaille <akim@epita.fr>
844 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
845 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
846 (AT_CHECK_OUTPUT): this.
847 Merely check ls' exit status, its output is useless.
849 2001-09-10 Akim Demaille <akim@epita.fr>
851 * tests/calc.at: Use m4_match.
852 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
854 2001-09-10 Marc Autret <autret_m@epita.fr>,
855 Akim Demaille <akim@epita.fr>
857 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
859 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
861 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
862 * src/lex.h: Adjust prototype.
863 (token_t): Add `tok_undef'.
864 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
865 (parse_percent_token): Now returns token_t.
866 Add default statement in switch.
867 (lex): Separate `c' as an input variable, from the token_t result
869 (unlexed): Is a token_t.
871 2001-09-10 Akim Demaille <akim@epita.fr>
873 * configure.in: Bump to 1.29a.
875 2001-09-07 Akim Demaille <akim@epita.fr>
879 2001-08-30 Akim Demaille <akim@epita.fr>
881 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
882 * m4/atconfig.m4: Remove.
883 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
885 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
886 m4_if, m4_patsubst, and m4_regexp.
887 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
888 `input' file instead of echo.
890 2001-08-29 Akim Demaille <akim@epita.fr>
894 2001-08-29 Akim Demaille <akim@epita.fr>
898 2001-08-29 Paul Eggert <eggert@twinsun.com>
900 * src/bison.simple (yyparse): Don't take the address of an
901 item before the start of an array, as that doesn't conform to
904 2001-08-29 Robert Anisko <anisko_r@epita.fr>
906 * doc/bison.texinfo (Location Tracking Calc): New node.
908 2001-08-29 Paul Eggert <eggert@twinsun.com>
910 * src/output.c (output): Do not define const, as this now
911 causes more problems than it cures.
913 2001-08-29 Akim Demaille <akim@epita.fr>
915 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
917 Be sure to tag the `detailmenu'.
919 2001-08-29 Akim Demaille <akim@epita.fr>
921 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
922 download in a tmp dir.
924 2001-08-28 Marc Autret <autret_m@epita.fr>
926 * config/depcomp: New file.
928 2001-08-28 Marc Autret <autret_m@epita.fr>
930 * doc/bison.1 (mandoc): Adjust.
931 From Juan Manuel Guerrero.
933 2001-08-28 Marc Autret <autret_m@epita.fr>
935 * src/print_graph.c (print_state): Fix.
937 2001-08-27 Marc Autret <autret_m@epita.fr>
939 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
941 Echo modifications to the functions prototypes.
942 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
944 2001-08-27 Marc Autret <autret_m@epita.fr>
946 * src/vcg.c: Include `xalloc.h'.
947 (add_colorentry): New.
948 (add_classname): New.
950 * src/vcg.h: Add new prototypes.
952 2001-08-27 Akim Demaille <akim@epita.fr>
954 * Makefile.maint: Sync. again with CVS Autoconf.
956 2001-08-27 Akim Demaille <akim@epita.fr>
958 * Makefile.maint: Formatting changes.
959 (po-update, cvs-update, update): New targets.
962 2001-08-27 Akim Demaille <akim@epita.fr>
964 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
965 * Makefile.maint: Sync. with CVS Autoconf.
967 2001-08-27 Marc Autret <autret_m@epita.fr>
969 * src/vcg.h (struct infoname_s): New.
970 (struct colorentry_s): New.
971 (graph_s): New fields {vertical,horizontal}_order in structure.
972 Add `infoname' field.
973 Add `colorentry' field;
974 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
975 (G_HORIZONTAL_ORDER): New.
978 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
979 Add output of `infoname'.
980 Add output of `colorentry'.
982 2001-08-27 Marc Autret <autret_m@epita.fr>
984 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
985 This one shadowed a global parameter.
987 2001-08-24 Marc Autret <autret_m@epita.fr>
989 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
990 instead of `unsigned'.
991 (print_state): Do not call obstack_object_size () in obstack_grow ()
992 to avoid macro variables shadowing.
994 2001-08-23 Marc Autret <autret_m@epita.fr>
996 * src/lex.c (percent_table): Typo: s/naem/name/.
998 Normalize new options declarations.
1000 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1002 * tests/suite.at: Exercise %header_extension and %source_extension.
1004 2001-08-16 Marc Autret <autret_m@epita.fr>
1006 * src/reader.c (parse_dquoted_param): New.
1007 (parse_header_extension_decl): Use it.
1008 (parse_source_extension_decl): Likewise.
1010 2001-08-16 Marc Autret <autret_m@epita.fr>
1012 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1013 (get_xxxx_str): Use assert () instead of complain ().
1014 Remove return invokations in default cases.
1015 (get_decision_str): Modify default behaviour. Remove second argument.
1016 Echo modifications on calls.
1017 (output_graph): Fix.
1019 2001-08-16 Marc Autret <autret_m@epita.fr>
1021 * src/getargs.c (usage): Update with ``-g, --graph''.
1023 2001-08-16 Marc Autret <autret_m@epita.fr>
1025 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1026 (Option Cross Key): Likewise.
1027 * doc/bison.1: Update.
1029 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1031 * src/output.c (output_master_parser): Don't finish action_obstack.
1032 (output_parser): Don't care about the muscle action, here.
1033 (prepare): Copy the action_obstack in the action muscle.
1034 (output): Free action_obstack.
1036 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1038 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1039 will contain `%union' declaration.
1040 (parse_union_decl): Delete #line directive output.
1041 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1042 informations about %union.
1043 (parse_union_decl): Copy the union_obstack in the muscle stype.
1044 * src/bison.simple: Add new #line directive.
1045 Add typdef %%stype YYSTYPE.
1047 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1049 * src/bison.simple: Add new `#line' directive.
1051 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1053 * src/bison.simple: New `#line' directive.
1054 * src/output.c (output_parser): Support new dynamic muscle input_line.
1056 2001-09-22 Marc Autret <autret_m@epita.fr>
1058 * src/output.c (output_master_parser): New.
1059 (output_parser): Be more re-entrant.
1061 2001-09-21 Marc Autret <autret_m@epita.fr>
1063 * src/reader.c (copy_definition, parse_union_decl): Update and use
1065 (copy_action): Likewise.
1066 Use obstack_1grow ().
1067 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1069 2001-09-21 Marc Autret <autret_m@epita.fr>
1071 * src/options.c (option_table): Adjust.
1072 * src/lex.c (parse_percent_token): Fix.
1074 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1076 * src/options.c (symtab.h): Include it, need by lex.h.
1078 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1080 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1081 is now an option_table_struct*.
1082 (option_strcmp): New function option_strcmp.
1083 (parse_percent_token): Call option_strcmp.
1084 * src/getargs.c (xalloc.h, options.h): Include it.
1085 (getargs): Call create_long_option_table.
1086 (getargs): Free longopts at the end of the function.
1087 (shortopts): Move in options.c.
1088 * src/options.c (create_long_option_table): New function. Convert
1089 information from option_table to option structure.
1090 * src/reader.c (options.h): Include it.
1092 * src/Makefile.am: Adjust.
1093 * src/options.c (option_table): Create from longopts and percent_table.
1094 * src/getargs.c (longopts): Delete.
1095 * src/lex.c (struct percent_table_struct): Delete.
1096 (percent_table): Delete.
1097 (options.h): Include it.
1098 * src/options.c: Create.
1099 * src/options.h: Create.
1100 Declare enum opt_access_e.
1101 Define struct option_table_struct.
1103 2001-09-20 Marc Autret <autret_m@epita.fr>
1105 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1108 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1110 * src/bison.simple: s/%%filename/%%skeleton.
1111 * src/muscle_tab.c (getargs.h): Include it.
1112 (muscle_init): Insert new muscle skeleton.
1114 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1116 * src/output.c (output_parser): Delete unused variable actions_dumped.
1118 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1120 * src/output.c (output): Delete call to reader_output_yylsp.
1121 * src/reader.c (reader): Likewise.
1122 * src/reader.h: Delete declaration of reader_output_yylsp.
1124 2001-09-02 Marc Autret <autret_m@epita.fr>
1126 * src/reader.c: Include muscle_tab.h.
1127 (parse_union_decl): Update.
1128 (parse_macro_decl): Rename parse_muscle_decl.
1129 Update to use renamed functions and variable.
1130 (read_declarations, copy_action, read_additionnal_code, : Updated
1131 with correct variables and functions names.
1132 (packsymbols, reader): Likewise.
1134 * src/reader.h (muscle_obstack): Extern declaration update.
1136 * src/output.c: Include muscle_tab.h
1137 In all functions using macro_insert, change by using muscle_insert ().
1138 (macro_obstack): Rename muscle_obstack.
1139 Echo modifications in the whole file.
1140 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1141 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1142 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1144 * src/muscle_tab.h: Update double inclusion macros.
1145 (macro_entry_s): Rename muscle_entry_s.
1148 * src/muscle_tab.c: Include muscle_tab.h.
1149 Rename macro_tabble to muscle_table.
1150 (mhash1, mhash2, mcmp): Use muscle_entry.
1151 (macro_init): Rename muscle_init. Update.
1152 (macro_insert): Rename muscle_insert. Update.
1153 (macro_find): Rename muscle_find. Update.
1155 * src/main.c: Include muscle_tab.h.
1156 (main): Call muscle_init ().
1157 * src/Makefile.am (bison_SOURCES): Echo modifications.
1159 2001-09-02 Marc Autret <autret_m@epita.fr>
1161 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1163 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1165 2001-09-02 Marc Autret <autret_m@epita.fr>
1167 * src/macrotab.c, src/macrotab.h: Remove.
1169 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1171 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1174 2001-09-01 Marc Autret <autret_m@epita.fr>
1176 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1177 to an explicit value to activate the feature. We do it here.
1179 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1181 * src/output.c (prepare): Delete the `filename' muscule insertion.
1182 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1183 (parse_union_decl): Likewise.
1184 * src/macrotab.c (macro_init): Initialize filename by infile.
1186 2001-08-31 Marc Autret <autret_m@epita.fr>
1188 * src/bison.simple (YYLSP_NEEDED): New definition.
1189 * src/output.c (prepare): Add macro insertion of `locations_flag'
1191 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1193 * src/output.c (prepare): Delete insertion of previous muscles,
1194 and insert the `prefix' muscles.
1195 * src/macrotab.c (macro_init): Likewise.
1196 (macro_init): Initialization prefix directive by `yy'.
1197 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1198 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1199 yylval, yydebug, yyerror, yynerrs and yyparse.
1200 New directive `#define' to substitute yydebug, ... with option
1203 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1205 * src/main.c (main): Standardize.
1206 * src/output.c (output_table_data, output_parser): Likewise.
1207 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1209 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1211 * src/reader.c (read_additionnal_code): Rename %%user_code to
1213 * src/output.c (output): Rename %%declarations to %%prologue.
1214 * src/bison.simple: Echo modifications.
1216 2001-08-31 Marc Autret <autret_m@epita.fr>
1218 * src/reader.c (readgram): CleanUp.
1219 (output_token_defines): Likewise.
1220 (packsymbols): Likewise.
1222 * src/output.c (output): CPP-out useless code.
1224 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1226 * src/reader.c (reader): Delete obsolete call to function
1227 output_trailers and output_headers.
1228 * src/output.h: Remove obsolete functions prototypes of output_headers
1229 and output_trailers.
1231 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1233 * src/main.c: Include macrotab.h.
1234 * src/macrotab.h (macro_entry_s): Constify fields.
1235 Adjust functions prototypes.
1236 * src/macrotab.c (macro_insert): Constify key and value.
1237 (macro_find): Constify key.
1238 (macro_insert): Include 'xalloc.h'
1239 (macro_insert): Use XMALLOC.
1240 (macro_find): Constify return value.
1241 * src/output.c (output_table_data): Rename table to table_data.
1242 (output_parser): Constify macro_key, macro_value.
1244 2001-08-30 Marc Autret <autret_m@epita.fr>
1246 * src/reader.c (parse_skel_decl): New.
1247 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1248 * src/lex.h (token_t): New token `tok_skel'.
1249 * src/lex.c (percent_table): Add skeleton option entry.
1252 2001-08-29 Marc Autret <autret_m@epita.fr>
1254 * src/bison.simple: Add %%user_code directive at the end.
1255 * src/reader.c (read_additionnal_code): New.
1257 * src/output.c (output_program): Remove.
1260 2001-08-28 Marc Autret <autret_m@epita.fr>
1262 * src/output.c (output_actions): Clean up.
1263 (output_gram): CPP-out useless code.
1264 * src/reader.c (reader): Clean up, CPP-out useless code.
1266 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1268 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1270 * src/bison.simple: Add `%%definitions'.
1272 2001-08-28 Marc Autret <autret_m@epita.fr>
1274 * config/depcomp: New file.
1276 2001-08-27 Paul Eggert <eggert@twinsun.com>
1278 * src/bison.simple (yyparse): Don't take the address of an
1279 item before the start of an array, as that doesn't conform to
1282 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1284 * src/output.c (output): Remove the initialization of the macro
1285 obstack. It was done too late here.
1287 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1289 (reader): Initialize the macro obstack here, since we need it to grow
1290 '%define' directives.
1292 * src/reader.h: Declare the macro obstack as extern.
1294 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1296 * src/output.c (output_parser): Fix. Store single '%' characters in
1297 the output obstack instead of throwing them away.
1299 2001-08-27 Akim Demaille <akim@epita.fr>
1301 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1303 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1305 * lib/Makefile.am: Adjust.
1307 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1309 * src/bison.simple: Update and add '%%' directives.
1311 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1313 * src/reader.c (reader): Remove calls to 'output_headers' and
1314 'output_trailers'. Remove some C output.
1315 (readgram): Disable a piece of code that was writing a default
1316 definition for 'YYSTYPE'.
1317 (reader_output_yylsp): Remove.
1318 (packsymbols): Output token defintions to a macro.
1319 (copy_definition): Disable C output.
1321 * src/reader.c (parse_macro_decl): New function used to parse macro
1323 (copy_string2): Put the body of copy_string into this new function.
1324 Add a parameter to let the caller choose whether he wants to copy the
1325 string delimiters or not.
1326 (copy_string): Be a simple call to copy_string2 with the last argument
1328 (read_declarations): Add case for macro definition.
1329 (copy_identifier): New.
1330 (parse_macro_decl): Read macro identifiers using copy_identifier
1333 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1335 * src/output.c (prepare): Add prefixed names.
1336 (output_parser): Output semantic actions.
1337 (output_parser): Fix bug on '%%line' directives.
1339 * src/output.c (output_headers): Remove. The C code printed by this
1340 function should now be in the skeletons.
1341 (output_trailers): Remove.
1342 (output): Disable call to 'reader_output_yylsp'.
1343 (output_rule_data): Do not output tables to the table obstack.
1345 * src/output.c: Remove some C dedicated output.
1346 Improve the use of macro and output obstacks.
1347 (output_defines): Remove.
1349 * src/output.c (output_token_translations): Associate 'translate'
1350 table with a macro. No output to the table obstack.
1351 (output_gram): Same for 'rhs' and 'prhs'.
1352 (output_stos): Same for 'stos'.
1353 (output_rule_data): Same for 'r1' and 'r2'.
1354 (token_actions): Same for 'defact'.
1355 (goto_actions): Same for 'defgoto'.
1356 (output_base): Same for 'pact' and 'pgoto'.
1357 (output_table): Same for 'table'.
1358 (output_check): Same for 'check'.
1360 * src/output.c (output_table_data): New function.
1361 (output_short_table): Remove.
1362 (output_short_or_char_table): Remove.
1364 * src/output.c (output_parser): Replace most of the skeleton copy code
1365 with something new. Skeletons are now processed character by character
1366 rather than line by line, and Bison looks for '%%' macros. This is the
1367 first step in making Bison's output process (a lot) more flexible.
1368 (output_parser): Use the macro table.
1370 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1372 * src/main.c (main): Initialize the macro table.
1374 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1376 * src/lex.c (percent_table): Add tok_define.
1377 * src/lex.h: Add tok_define.
1379 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1381 * src/macrotab.c: New file.
1382 * src/macrotab.h: New file.
1383 * src/Makefile.am: Update.
1385 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1387 * lib/hash.c: New file.
1388 * lib/hash.h: New file.
1389 * lib/Makefile.am: Update.
1391 2001-08-15 Akim Demaille <akim@epita.fr>
1395 2001-08-15 Marc Autret <autret_m@epita.fr>
1397 * src/reader.c (readgram): Indent output macro YYSTYPE.
1398 (packsymbols): Likewise.
1399 (output_token_defines): Likewise.
1400 * src/files.c: Standardize.
1401 (compute_header_macro): New.
1402 (defines_obstack_save): New. Use compute_header_macro.
1403 (output_files): Update. Use defines_obstack_save.
1405 2001-08-15 Akim Demaille <akim@epita.fr>
1407 * doc/bison.texinfo (Table of Symbols): Document
1410 2001-08-15 Akim Demaille <akim@epita.fr>
1412 * missing: Update from CVS Automake.
1413 * config/config.guess, config/config.sub, config/texinfo.tex:
1414 Update from gnu.org.
1416 2001-08-15 Akim Demaille <akim@epita.fr>
1418 * Makefile.maint: Sync with CVS Autoconf.
1420 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1422 * doc/bison.texinfo: Include GNU Free Documentation License from
1424 * doc/fdl.texi: Add to package.
1426 2001-08-14 Marc Autret <autret_m@epita.fr>
1428 Turn on %{source,header}_extension features.
1430 * src/lex.c (percent_table): Un-CPP out header_extension and
1432 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1433 (compute_exts_from_src): Remove conditions. It restores priorities
1436 2001-08-14 Marc Autret <autret_m@epita.fr>
1438 * src/files.c (compute_base_names): Add extensions computing when
1439 `--file-prefix' used.
1440 Standardize function calls.
1442 2001-08-13 Marc Autret <autret_m@epita.fr>
1444 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1445 defining it (defined but null disables alloca).
1447 2001-08-13 Marc Autret <autret_m@epita.fr>
1449 * src/bison.simple (_yy_memcpy): CPP reformat.
1451 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1453 * tests/atconfig.in (CPPFLAGS): Fix.
1455 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1457 * doc/bison.texinfo: Include GNU General Public License from
1459 * doc/gpl.texi: Add to package.
1461 2001-08-10 Marc Autret <autret_m@epita.fr>
1463 * src/print_graph.h: Fix.
1464 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1466 2001-08-10 Akim Demaille <akim@epita.fr>
1468 * src/system.h: Provide default declarations for stpcpy, strndup,
1471 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1473 * doc/bison.texinfo (Locations): Update @$ stuff.
1475 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1477 * src/bison.simple (YYLLOC_DEFAULT): Update.
1480 2001-08-08 Marc Autret <autret_m@epita.fr>
1482 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1483 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1484 Reported by Fabrice Bauzac.
1486 2001-08-08 Marc Autret <autret_m@epita.fr>
1488 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1489 * src/vcg.c (output_node): Fix.
1490 * src/vcg.h: Cleanup.
1491 * src/print_graph.c: Add comments.
1492 (node_output_size): New global variable. Simplify the formatting of
1493 the VCG graph output.
1494 (print_actions): Unused code is now used. It notifies the final state
1495 and no action states in the VCG graph. It also give the reduce actions.
1496 The `shift and goto' edges are red and the `go to state' edges are
1498 Get the current node name and node_obstack by argument.
1499 (node_obstack): New variable.
1500 (print_state): Manage node_obstack.
1501 (print_core): Use node_obstack given by argument.
1502 A node is not only computed here but in print_actions also.
1503 (print_graph): CPP out useless code instead of commenting it.
1505 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1507 * tests/atconfig.in (CPPFLAGS): Fix.
1509 2001-08-07 Akim Demaille <akim@epita.fr>
1511 * src/print_graph.c (quote): New.
1512 (print_core): Use it.
1514 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1516 * src/vcg.c (complain.h): Include it.
1517 Unepitaize `return' invocations.
1518 [NDEBUG] (main): Remove.
1519 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1520 * src/files.c (open_files): Initialize graph_obstack.
1521 * src/print_graph.c (print_actions): CPP out useless code.
1522 (print_core): Don't output the last `\n' in labels.
1524 * src/files.c (output_files): Output the VCG file.
1525 * src/main.c (main): Invoke print_graph ();
1527 2001-08-06 Marc Autret <autret_m@epita.fr>
1529 Automaton VCG graph output.
1530 Using option ``-g'' or long option ``--graph'', you can generate
1531 a gram_filename.vcg file containing a VCG description of the LALR (1)
1532 automaton of your grammar.
1534 * src/main.c: Call to print_graph() function.
1535 * src/getargs.h: Update.
1536 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1537 (graph_flag): New flag.
1539 (getargs): Add case `g'.
1540 * src/files.c (graph_obstack): New obstack struct.
1541 (open_files): Initialize new obstack.
1542 (output_files): Saves graph_obstack if required.
1543 * src/files.h (graph_obstack): New extern declaration.
1544 * src/Makefile.am: Add new source files.
1546 2001-08-06 Marc Autret <autret_m@epita.fr>
1548 * src/print_graph.c, src/print_graph.h (graph): New.
1549 * src/vcg.h: New file.
1550 * src/vcg.c: New file, VCG graph handling.
1552 2001-08-06 Marc Autret <autret_m@epita.fr>
1554 Add of %source_extension and %header_extension which specify
1555 the source or/and the header output file extension.
1557 * src/files.c (compute_base_names): Remove initialisation of
1558 src_extension and header_extension.
1559 (compute_exts_from_gf): Update.
1560 (compute_exts_from_src): Update.
1561 (output_files): Update.
1562 * src/reader.c (parse_header_extension_decl): New.
1563 (parse_source_extension_decl): New.
1564 (read_declarations): New case statements for the new tokens.
1565 * src/lex.c (percent_table): Add entries for %source_extension
1566 and %header_extension.
1567 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1569 2001-08-06 Marc Autret <autret_m@epita.fr>
1571 * configure.in: Bump to 1.28c.
1572 * doc/bison.texinfo: Texinfo thingies.
1574 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1576 * tests/atconfig.in (CPPFLAGS): Add.
1577 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1579 2001-08-03 Akim Demaille <akim@epita.fr>
1583 2001-08-03 Akim Demaille <akim@epita.fr>
1585 * tests/Makefile.am (check-local): Ship testsuite.
1586 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1589 2001-08-03 Akim Demaille <akim@epita.fr>
1591 * configure.in: Try using -Wformat when compiling.
1593 2001-08-03 Akim Demaille <akim@epita.fr>
1595 * configure.in: Bump to 1.28b.
1597 2001-08-03 Akim Demaille <akim@epita.fr>
1599 * src/complain.c: Adjust strerror_r portability issues.
1601 2001-08-03 Akim Demaille <akim@epita.fr>
1605 2001-08-03 Akim Demaille <akim@epita.fr>
1607 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1608 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1609 * src/getargs.c: Include complain.h.
1610 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1611 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1613 2001-08-03 Akim Demaille <akim@epita.fr>
1615 * src/reader.c (readgram): Display hidden chars in error messages.
1617 2001-08-03 Akim Demaille <akim@epita.fr>
1619 Update to gettext 0.10.39.
1621 2001-08-03 Akim Demaille <akim@epita.fr>
1623 * lib/strspn.c: New.
1625 2001-08-01 Marc Autret <autret_m@epita.fr>
1627 * doc/bison.texinfo: Update.
1628 * doc/bison.1 (mandoc): Update.
1629 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1630 * src/files.c: Support output files extensions computing.
1631 (src_extension): New static variable.
1632 (header_extension): New static variable.
1634 (get_extension_index): New function, gets the index of an extension
1635 filename in a string.
1636 (compute_exts_from_gf): New function, computes extensions from the
1637 grammar file extension.
1638 (compute_exts_from_src): New functions, computes extensions from the
1639 C source file extension, file given by ``-o'' option.
1640 (compute_base_names): Update.
1641 (output_files): Update.
1643 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1645 * doc/bison.texi: Document @$.
1646 (Locations): New section.
1648 2001-07-18 Akim Demaille <akim@epita.fr>
1650 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1651 * config/prev-version.txt, config/move-if-change: New.
1652 * Makefile.am: Adjust.
1654 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1656 * src/bison.simple (yyparse): Suppress warning `comparaison
1657 between signed and unsigned'.
1659 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1661 * src/getargs.h (raw_flag): Remove.
1662 * src/getargs.c: Die on `-r'/`--raw'.
1663 * src/lex.c (parse_percent_token): Die on `%raw'.
1664 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1665 * tests/calc.at: Suppress test with option `--raw'.
1667 2001-07-14 Akim Demaille <akim@epita.fr>
1670 * configure.in: Require Autoconf 2.50.
1671 Update to gettext 0.10.38.
1673 2001-03-16 Akim Demaille <akim@epita.fr>
1675 * doc/bison.texinfo: ANSIfy the examples.
1677 2001-03-16 Akim Demaille <akim@epita.fr>
1679 * getargs.c (skeleton): New variable.
1680 (longopts): --skeleton is a new option.
1681 (shortopts, getargs): -S is a new option.
1682 * getargs.h: Declare skeleton.
1683 * output.c (output_parser): Use it.
1685 2001-03-16 Akim Demaille <akim@epita.fr>
1687 * m4/strerror_r.m4: New.
1688 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1689 * lib/error.h, lib/error.c: Update.
1691 2001-03-16 Akim Demaille <akim@epita.fr>
1693 * src/getargs.c (longopts): Clean up.
1695 2001-02-21 Akim Demaille <akim@epita.fr>
1697 * src/reader.c (gensym): `gensym_count' is your own.
1698 Use a static buf to create the symbol name, as token_buffer is no
1701 2001-02-08 Akim Demaille <akim@epita.fr>
1703 * src/conflicts.c (conflict_report): Be sure not to append to res
1704 between two calls, which could happen if both first sprintf were
1705 skipped, but not the first cp += strlen.
1707 2001-02-08 Akim Demaille <akim@epita.fr>
1709 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1710 New, from fileutils 4.0.37.
1711 * configure.in: Require Autoconf 2.49c. I took some time before
1712 making this decision. This is the only way out for portability
1713 issues in Bison, it would mean way too much duplicate effort to
1714 import in Bison features implemented in 2.49c since 2.13.
1715 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1717 2001-02-02 Akim Demaille <akim@epita.fr>
1719 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1720 * lib/xalloc.h, lib/xmalloc.c: Update.
1722 2001-01-19 Akim Demaille <akim@epita.fr>
1724 Get rid of the ad hoc handling of token_buffer in the scanner: use
1727 * src/lex.c (token_obstack): New.
1728 (init_lex): Initialize it. No longer call...
1729 (grow_token_buffer): this. Remove it.
1730 Adjust all the places which used it to use the obstack.
1732 2001-01-19 Akim Demaille <akim@epita.fr>
1734 * src/lex.h: Rename all the tokens:
1735 s/\bENDFILE\b/tok_eof/g;
1736 s/\bIDENTIFIER\b/tok_identifier/g;
1738 Let them be enums, not #define, to ease debugging.
1739 Adjust all the code.
1741 2001-01-18 Akim Demaille <akim@epita.fr>
1743 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1744 * src/lex.c (maxtoken, grow_token_buffer): Static.
1746 2001-01-18 Akim Demaille <akim@epita.fr>
1748 Since we now use obstacks, more % directives can be enabled.
1750 * src/lex.c (percent_table): Also accept `%yacc',
1751 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1753 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1754 instead of returning a token.
1755 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1756 * src/reader.c (read_declarations): Adjust.
1757 * src/files.c (open_files): Don't call `compute_base_names', don't
1758 compute `attrsfile' since they depend upon data which might be
1759 *in* the input file now.
1760 (output_files): Do it here.
1761 * src/output.c (output_headers): Document the fact that this patch
1762 introduces a guaranteed SEGV for semantic parsers.
1763 * doc/bison.texinfo: Document them.
1764 * tests/suite.at: Exercise these %options.
1766 2000-12-20 Akim Demaille <akim@epita.fr>
1768 Also handle the output file (--verbose) with obstacks.
1770 * files.c (foutput): Remove.
1771 (output_obstack): New.
1772 Adjust all dependencies.
1773 * src/conflicts.c: Return a string.
1774 * src/system.h (obstack_grow_string): Rename as...
1775 (obstack_sgrow): this. Be ready to work with non literals.
1776 (obstack_fgrow4): New.
1778 2000-12-20 Akim Demaille <akim@epita.fr>
1780 * src/files.c (open_files): Fix the computation of short_base_name
1781 in the case of `-o foo.tab.c'.
1783 2000-12-20 Akim Demaille <akim@epita.fr>
1785 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1786 (copy_dollar): Now that everything uses obstacks, get rid of the
1789 2000-12-20 Akim Demaille <akim@epita.fr>
1791 * src/files.c (open_files): Actually the `.output' file is based
1792 on the short_base_name, not base_name.
1793 * tests/suite.at (Checking output file names): Adjust.
1795 2000-12-20 Akim Demaille <akim@epita.fr>
1797 * src/bison.s1: Remove, we now use directly...
1798 * src/bison.simple: this.
1799 * src/Makefile.am: Use pkgdata instead of data.
1801 2000-12-20 Akim Demaille <akim@epita.fr>
1803 * src/files.c (guard_obstack): New.
1804 (open_files): Initialize it.
1805 (output_files): Dump it...
1806 * src/files.h: Export it.
1807 * src/reader.c (copy_guard): Use it.
1809 2000-12-19 Akim Demaille <akim@epita.fr>
1811 * src/files.c (outfile, defsfile, actfile): Removed as global
1813 (open_files): Don't compute them.
1814 (output_files): Adjust.
1815 (base_name, short_base_name): Be global.
1816 Adjust dependencies.
1818 2000-12-19 Akim Demaille <akim@epita.fr>
1820 * src/files.c (strsuffix): New.
1821 (stringappend): Be just like strcat but allocate.
1822 (base_names): Eve out from open_files.
1823 Try to simplify the rather hairy computation of base_name and
1825 (open_files): Use it.
1826 * tests/suite.at (Checking output file names): New test.
1828 2000-12-19 Akim Demaille <akim@epita.fr>
1830 * src/system.h (obstack_grow_literal_string): Rename as...
1831 (obstack_grow_string): this.
1832 * src/output.c (output_parser): Recognize `%% actions' instead of
1834 * src/bison.s1: s/$/%% actions/.
1835 * src/bison.hairy: Likewise.
1837 2000-12-19 Akim Demaille <akim@epita.fr>
1839 * src/output.c (output_parser): Compute the `#line' lines when
1841 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1842 Suggested by Hans Aberg.
1844 2000-12-19 Akim Demaille <akim@epita.fr>
1846 Let the handling of the skeleton files be local to the procedures
1849 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1851 (fparser, open_extra_files): Remove.
1852 (open_files, output_files): Don't take care of fparser.
1853 * src/files.h: Adjust.
1854 * src/output.c (output_parser): Open and close the file to the
1856 * src/reader.c (read_declarations): When %semantic_parser, open
1859 2000-12-19 Akim Demaille <akim@epita.fr>
1861 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1862 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1864 2000-12-19 Akim Demaille <akim@epita.fr>
1866 * src/files.c (open_files): Yipee! We no longer need all the code
1867 looking for `/tmp' since we have no tmp file.
1869 2000-12-19 Akim Demaille <akim@epita.fr>
1871 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1873 * src/files.c (open_files): Less dependency on MSDOS etc.
1875 2000-12-14 Akim Demaille <akim@epita.fr>
1877 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1878 Provide a default definition.
1879 Use it when executing the default @ action.
1880 * src/reader.c (reader_output_yylsp): No longer include
1881 `timestamp' and `text' in the default YYLTYPE.
1883 2000-12-12 Akim Demaille <akim@epita.fr>
1885 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1886 (copy_guard): Quote the file names.
1887 Reported by Laurent Mascherpa.
1889 2000-12-12 Akim Demaille <akim@epita.fr>
1891 * src/output.c (output_headers, output_program, output): Be sure
1892 to escape special characters when outputting filenames.
1893 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1894 (output_headers): Don't depend on them, Use ACTSTR.
1896 2000-11-17 Akim Demaille <akim@epita.fr>
1898 * lib/obstack.h: Formatting changes.
1899 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1900 prevents type checking.
1901 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1902 cast the value to (void *): assigning a `foo *' to a `void *'
1904 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1905 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1908 2000-11-17 Akim Demaille <akim@epita.fr>
1910 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1912 (suite.m4, regression.m4, calc.m4): these.
1913 * tests/atgeneral.m4: Update from CVS Autoconf.
1915 2000-11-17 Akim Demaille <akim@epita.fr>
1917 * tests/regression.m4 (%union and --defines): New test,
1918 demonstrating a current bug in the obstack implementation.
1920 2000-11-17 Akim Demaille <akim@epita.fr>
1922 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1924 Use them to declare the variables which are global or local to
1927 2000-11-17 Akim Demaille <akim@epita.fr>
1929 * acconfig.h: Remove, no longer used.
1931 2000-11-07 Akim Demaille <akim@epita.fr>
1933 * src: s/Copyright (C)/Copyright/g.
1935 2000-11-07 Akim Demaille <akim@epita.fr>
1937 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1939 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1941 2000-11-07 Akim Demaille <akim@epita.fr>
1943 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1944 Merge in a single CPP if/else.
1946 2000-11-07 Akim Demaille <akim@epita.fr>
1948 * src/output.c (output): Remove useless variables.
1949 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1950 argument `data' for consistency with the prototypes.
1952 (obstack_copy, obstack_copy0): Rename the second argument as
1953 `address' for consistency. Qualify it `const'.
1954 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1955 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1956 `const' their input argument (`data' or `address').
1957 Adjust the corresponding macros to include `const' in casts.
1959 2000-11-03 Akim Demaille <akim@epita.fr>
1961 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1962 s/PFILE1/BISON_HAIRY/.
1963 Adjust dependencies.
1965 2000-11-03 Akim Demaille <akim@epita.fr>
1967 For some reason, this was not applied.
1969 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1970 `unlink': it's no longer used.
1972 2000-11-03 Akim Demaille <akim@epita.fr>
1974 * src/files.c (skeleton_find): New function, eved out of...
1975 (open_files, open_extra_files): here.
1977 2000-11-03 Akim Demaille <akim@epita.fr>
1981 * src/files.c (obstack_save): New function.
1982 (done): Rename as...
1983 (output_files): this.
1985 * src/main.c (main): Don't use `atexit' to register `done', since
1986 it no longer has to remove tmp files, just call `output_files'
1987 when there are no errors.
1989 2000-11-02 Akim Demaille <akim@epita.fr>
1991 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1992 `unlink': it's no longer used.
1993 * src/files.h: Formatting changes.
1995 2000-11-02 Akim Demaille <akim@epita.fr>
1997 Remove the last uses of mktemp and unlink/delete.
1999 * src/files.c (fdefines, ftable): Removed.
2000 (defines_ostack, table_obstack): New.
2001 Adjust dependencies of the former into uses of the latter.
2002 * src/output.c (output_short_or_char_table, output_short_table):
2003 Convert to using obstacks.
2004 * src/reader.c (copy_comment2): Accept one FILE * and two
2006 (output_token_defines, reader_output_yylsp): Use obstacks.
2007 * src/system.h (obstack_fgrow3): New.
2009 2000-11-01 Akim Demaille <akim@epita.fr>
2011 Change each use of `fattrs' into a use of `attrs_obstack'.
2013 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2014 * src/files.c (fattrs): Remove.
2015 (attrs_obstack): New.
2016 Adjust all dependencies.
2017 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2019 2000-11-01 Akim Demaille <akim@epita.fr>
2022 Change each use of `faction' into a use of `action_obstack'.
2024 * lib/obstack.h, lib/obstack.c: New files.
2025 * src/files.c (faction): Remove.
2026 (action_obstack): New.
2027 Adjust all dependencies.
2029 2000-10-20 Akim Demaille <akim@epita.fr>
2031 * lib/quote.h (PARAMS): New macro. Use it.
2033 2000-10-16 Akim Demaille <akim@epita.fr>
2035 * src/output.c (output_short_or_char_table): New function.
2036 (output_short_table, output_token_translations): Use it.
2037 (goto_actions): Use output_short_table.
2039 2000-10-16 Akim Demaille <akim@epita.fr>
2041 * src/symtab.c (bucket_new): New function.
2044 * src/output.c (output_short_table): New argument to display the
2045 comment associated with the table.
2046 Adjust dependencies.
2047 (output_gram): Use it.
2048 (output_rule_data): Nicer output layout for YYTNAME.
2050 2000-10-16 Akim Demaille <akim@epita.fr>
2052 * src/lex.c (read_typename): New function.
2054 * src/reader.c (copy_dollar): Likewise.
2056 2000-10-16 Akim Demaille <akim@epita.fr>
2058 * src/reader.c (copy_comment2): Expect the input stream to be on
2059 the `/' which is suspected to open a comment, instead of being
2060 called after `//' or `/*' was read.
2061 (copy_comment, copy_definition, parse_union_decl, copy_action)
2062 (copy_guard): Adjust.
2064 2000-10-16 Akim Demaille <akim@epita.fr>
2066 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2067 `read_signed_integer'.
2069 2000-10-16 Akim Demaille <akim@epita.fr>
2071 * src/reader.c (copy_dollar): New function.
2072 (copy_guard, copy_action): Use it.
2074 2000-10-16 Akim Demaille <akim@epita.fr>
2076 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2077 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2078 New files, from Fileutils 4.0.27.
2079 * src/main.c (printable_version): Remove.
2080 * src/lex.c, src/reader.c: Use `quote'.
2082 2000-10-04 Akim Demaille <akim@epita.fr>
2084 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2086 2000-10-04 Akim Demaille <akim@epita.fr>
2088 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2090 2000-10-04 Akim Demaille <akim@epita.fr>
2092 When a literal string is used to define two different tokens,
2093 `bison -v' segfaults.
2094 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2096 * tests/regression.m4: New file.
2097 Include the core of the sample provided by Piotr Gackiewicz.
2098 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2101 2000-10-04 Akim Demaille <akim@epita.fr>
2103 * src/reader.c (parse_expect_decl): Keep `count' within the size
2107 2000-10-02 Paul Eggert <eggert@twinsun.com>
2109 * bison.s1 (yyparse): Assign the default value
2110 unconditionally, to avoid a GCC warning and make the parser a
2113 2000-10-02 Akim Demaille <akim@epita.fr>
2115 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2118 2000-10-02 Akim Demaille <akim@epita.fr>
2120 * src/derives.c, src/print.c, src/reduce.c: To ease the
2121 translation, move some `\n' out of the translated strings.
2123 2000-10-02 Akim Demaille <akim@epita.fr>
2125 The location tracking mechanism is precious for parse error
2126 messages. Nevertheless, it is enabled only when `@n' is used in
2127 the grammar, which is a different issue (you can use it in error
2128 message, but not in the grammar per se). Therefore, there should
2129 be another means to enable it.
2131 * src/getargs.c (getargs): Support `--locations'.
2133 * src/getargs.h (locationsflag): Export it.
2134 * src/lex.c (percent_table): Support `%locations'.
2135 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2136 with `locationsflag'.
2137 * doc/bison.texinfo: Document `--locations' and `%locations'.
2139 * tests/calc.m4: Test it.
2141 For regularity of the names, replace each
2142 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2143 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2144 In addition replace each `flag' with `_flag'.
2146 2000-10-02 Akim Demaille <akim@epita.fr>
2148 Also test parse error messages, including with YYERROR_VERBOSE.
2150 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2152 Use it to check the computations.
2153 Use it to check `nonassoc' is honored.
2154 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2155 `--yyerror-verbose'.
2156 (_AT_CHECK_CALC): Adjust to this option.
2157 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2159 2000-10-02 Akim Demaille <akim@epita.fr>
2161 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2162 the latter demonstrates a flaw in the handling of non debugging
2163 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2164 was used in order to simplify:
2180 unfortunately this leads to a CPP conflict when
2181 `--name-prefix=foo' is used since it produces `#define yydebug
2184 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2185 (YYDPRINTF): New macro.
2187 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2189 Also test `--verbose', `--defines' and `--name-prefix'.
2191 2000-10-02 Akim Demaille <akim@epita.fr>
2193 Improve the readability of the produced parsers.
2195 * src/bison.s1: Formatting changes.
2196 Improve the comment related to the `$' mark.
2197 (yydefault): Don't fall through to `yyresume': `goto' there.
2198 * src/output.c (output_parser): When the `$' is met, skip the end
2200 New variable, `number_of_dollar_signs', to check there's exactly
2201 one `$' in the parser skeleton.
2203 2000-10-02 Akim Demaille <akim@epita.fr>
2205 * lib/xstrdup.c: New file, from the fileutils.
2206 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2207 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2208 instead of strlen + xmalloc + strcpy.
2209 * src/symtab.c (copys): Remove, use xstrdup instead.
2211 2000-10-02 Akim Demaille <akim@epita.fr>
2213 * src/gram.h (associativity): New enum type which replaces the
2214 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2215 `right_assoc', `left_assoc' and `non_assoc'.
2216 Adjust all dependencies.
2217 * src/reader.c: Formatting changes.
2218 (LTYPESTR): Don't define it, use it as a literal in
2219 `reader_output_yylsp'.
2220 * src/symtab.h (symbol_class): New enum type which replaces the
2221 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2222 `sunknown', `stoken and `snterm'.
2224 2000-10-02 Akim Demaille <akim@epita.fr>
2226 * src/getargs.c (fixed_outfiles): Rename as...
2227 (yaccflag): for consistency and accuracy.
2228 Adjust dependencies.
2230 2000-10-02 Akim Demaille <akim@epita.fr>
2232 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2233 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2234 difficult and introduced a lot of core dump. It turns out that
2235 Bison used an implementation of `xmalloc' based on `calloc', and
2236 at various places it does depend upon the initialization to 0. I
2237 have not tried to isolate the pertinent places, and all the former
2238 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2239 someone should address this issue.
2241 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2242 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2244 Adjust dependencies.
2245 * src/warshall.h: New file.
2248 2000-10-02 Akim Demaille <akim@epita.fr>
2250 Various anti-`extern in *.c' changes.
2252 * src/system.h: Include `assert.h'.
2254 2000-10-02 Akim Demaille <akim@epita.fr>
2256 * src/state.h (nstates, final_state, first_state, first_shift)
2257 (first_reduction): Move their exportation from here...
2258 * src/LR0.h: to here.
2259 Adjust dependencies.
2260 * src/getargs.c (statisticsflag): New variable.
2261 Add support for `--statistics'.
2262 Adjust dependencies.
2264 Remove a lot of now useless `extern' statements in most files.
2266 2000-10-02 Akim Demaille <akim@epita.fr>
2268 * src/LR0.h: New file.
2271 2000-10-02 Akim Demaille <akim@epita.fr>
2273 * src/print.h: New file.
2275 * src/print.c: Formatting and ordering changes.
2276 (verbose, terse): Replace with...
2277 (print_results): this new function.
2278 Adjust dependencies.
2280 2000-10-02 Akim Demaille <akim@epita.fr>
2282 * src/conflicts.c (conflict_report): New function.
2283 (conflict_log, verbose_conflict_log): Replace with...
2284 (print_conflicts): this function.
2285 Adjust dependencies.
2286 * src/conflicts.h: New file.
2287 Propagate its inclusion.
2289 2000-10-02 Akim Demaille <akim@epita.fr>
2291 * src/nullable.h: New file.
2292 Propagate its inclusion.
2293 * src/nullable.c: Formatting changes.
2295 2000-10-02 Akim Demaille <akim@epita.fr>
2297 * src/reduce.h: New file.
2298 Propagate its inclusion.
2299 * src/reduce.c: Topological sort and other formatting changes.
2300 (bool, TRUE, FALSE): Move their definition to...
2301 * src/system.h: here.
2303 2000-10-02 Akim Demaille <akim@epita.fr>
2305 * src/files.c: Formatting changes.
2306 (tryopen, tryclose, openfiles): Rename as...
2307 (xfopen, xfclose, open_files): this.
2308 (stringappend): static.
2309 * src/files.h: Complete the list of exported symbols.
2312 2000-10-02 Akim Demaille <akim@epita.fr>
2314 * src/reader.h: New file.
2315 Propagate its use instead of tedious list of `extern' and
2317 * src/reader.c: Formatting changes, topological sort,
2320 2000-10-02 Akim Demaille <akim@epita.fr>
2322 * src/lex.h: Prototype `lex.c' exported functions.
2323 * src/reader.c: Adjust.
2324 * src/lex.c: Formatting changes.
2325 (safegetc): Rename as...
2328 2000-10-02 Akim Demaille <akim@epita.fr>
2330 * src/lalr.h: New file.
2331 Propagate its inclusion instead of prototypes and `extern'.
2332 * src/lalr.c: Formatting changes, topological sorting etc.
2334 2000-10-02 Akim Demaille <akim@epita.fr>
2336 * src/output.c (token_actions): Introduce a temporary array,
2337 YYDEFACT, that makes it possible for this function to use
2340 2000-10-02 Akim Demaille <akim@epita.fr>
2342 `user_toknums' is output as a `short[]' in `output.c', while it is
2343 defined as a `int[]' in `reader.c'. For consistency with the
2344 other output tables, `user_toknums' is now defined as a table of
2347 * src/reader.c (user_toknums): Be a short table instead of an int
2349 Adjust dependencies.
2351 Factor the short table outputs.
2353 * src/output.c (output_short_table): New function.
2354 * src/output.c (output_gram, output_stos, output_rule_data)
2355 (output_base, output_table, output_check): Use it.
2357 2000-10-02 Akim Demaille <akim@epita.fr>
2359 * src/output.c (output): Topological sort of the functions, in
2360 order to get rid of the `static' prototypes.
2361 No longer use `register'.
2362 * src/output.h: New file.
2363 Propagate its inclusion in files explicitly prototyping functions
2366 2000-09-21 Akim Demaille <akim@epita.fr>
2368 * src/atgeneral.m4: Update from Autoconf.
2370 2000-09-21 Akim Demaille <akim@epita.fr>
2372 * src/closure.h: New file.
2373 * src/closure.c: Formatting changes, topological sort over the
2374 functions, use of closure.h.
2375 (initialize_closure, finalize_closure): Rename as...
2376 (new_closure, free_closure): these. Adjust dependencies.
2377 * src/LR0.c: Formatting changes, topological sort, use of
2379 (initialize_states): Rename as...
2381 * src/Makefile.am (noinst_HEADERS): Adjust.
2383 2000-09-20 Akim Demaille <akim@epita.fr>
2385 * src/acconfig.h: Don't protect config.h against multiple
2387 Don't define PARAMS.
2388 * src/system.h: Define PARAMS.
2389 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2390 purpose of config.h. system.h must not try to fix wrong
2391 definitions in config.h.
2393 2000-09-20 Akim Demaille <akim@epita.fr>
2395 * src/derives.h: New file.
2396 * src/main.c, src/derives.h: Use it.
2398 * src/Makefile.am (noinst_HEADERS): Adjust.
2400 2000-09-20 Akim Demaille <akim@epita.fr>
2402 * tests/atgeneral.m4: Update from Autoconf.
2403 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2404 (AT_CHECK_CALC): New macros.
2405 Use these macros to test bison with options `', `--raw',
2406 `--debug', `--yacc', `--yacc --debug'.
2408 2000-09-19 Akim Demaille <akim@epita.fr>
2410 * src/output.c: Formatting changes.
2411 * src/machine.h: Remove, leaving its contents in...
2412 * src/system.h: here.
2414 Adjust all dependencies on stdio.h and machine.h.
2415 * src/getargs.h: New file.
2416 Let all `extern' declarations about getargs.c be replaced with
2417 inclusion of `getargs.h'.
2418 * src/Makefile.am (noinst_HEADERS): Adjust.
2420 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2422 (yyerror): Returns void, not int.
2423 * doc/bison.texinfo: Formatting changes.
2425 2000-09-19 Akim Demaille <akim@epita.fr>
2427 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2430 2000-09-18 Akim Demaille <akim@epita.fr>
2432 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2433 * src/Makefile.am (INCLUDES): Don't.
2434 Be ready to fetch headers in lib/.
2436 2000-09-18 Akim Demaille <akim@epita.fr>
2438 * doc/bison.texinfo: Update the copyright.
2439 ANSIfy and GNUify the examples.
2440 Remove the old menu.
2442 2000-09-18 Akim Demaille <akim@epita.fr>
2444 First set of tests: use the `calc' example from the documentation.
2446 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2447 is defined only when YYDEBUG is.
2448 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2449 * src/files.c (tryopen, tryclose): Formatting changes.
2450 Move to the top and be static.
2451 * src/reader.c (read_signed_integer): Likewise.
2452 * tests/calc.m4: New file.
2453 * Makefile.am, suite.m4: Adjust.
2454 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2456 2000-09-18 Akim Demaille <akim@epita.fr>
2458 Add support for an Autotest test suite for Bison.
2460 * m4/m4.m4, m4/atconfig.m4: New files.
2461 * m4/Makefile.am (EXTRA_DIST): Adjust.
2462 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2464 * src/getargs.c: Display a more standard --version message.
2465 * src/reader.c (reader): Formatting changes.
2466 No longer depend upon VERSION_STRING.
2467 * configure.in: No longer use `dnl'.
2468 Set up the test suite and the new directory `tests/.
2469 (VERSION_STRING): Remove.
2471 2000-04-14 Akim Demaille <akim@epita.fr>
2473 * src/reader.c (copy_comment2): New function, same as former
2474 `copy_comment', but outputs into two FILE *.
2475 (copy_comment): Use it.
2476 (parse_union_decl): Use it.
2477 (get_type, parse_start_decl): Use the same `invalid' message.
2478 (parse_start_decl, parse_union_decl): Use the same `multiple'
2480 (parse_union_decl, copy_guard, copy_action): Use the same
2481 `unmatched' message.
2482 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2484 2000-03-31 Akim Demaille <akim@epita.fr>
2486 * src/files.c (tryopen, tryclose): Move to the top.
2489 2000-03-31 Akim Demaille <akim@epita.fr>
2491 * src/main.c (main): Don't call `done', exit does it.
2493 2000-03-31 Akim Demaille <akim@epita.fr>
2495 * allocate.c: s/return (foo)/return foo/.
2498 * output.c: Likewise.
2499 * reader.c: Likewise.
2500 * symtab.c: Likewise.
2501 * vmsgetargs.c: Likewise.
2503 2000-03-31 Akim Demaille <akim@epita.fr>
2505 Clean up the error reporting functions.
2507 * src/report.c: New file.
2508 * src/report.h: Likewise.
2509 * src/Makefile.am: Adjust.
2510 * m4/error.m4: New file.
2511 * m4/Makefile.am: Adjust.
2512 * configure.in (jm_PREREQ_ERROR): Call it.
2513 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2515 (fatal, fatals): Remove. All callers use complain.c::fatal.
2516 (warn, warni, warns, warnss, warnss): Remove. All callers use
2517 complain.c::complain.
2518 (toomany): Remove, use fatal instead.
2519 * src/files.c (done): No argument, use complain_message_count.
2520 * src/main.c (main): Register `done' to `atexit'.
2522 * src/getargs.c (usage): More `fputs', less `fprintf'.
2524 2000-03-28 Akim Demaille <akim@epita.fr>
2526 * lib/: New directory.
2527 * Makefile.am (SUBDIRS): Adjust.
2528 * configure.in: Adjust.
2529 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2531 * src/alloca.c: Moved to lib/.
2532 * src/getopt.c: Likewise.
2533 * src/getopt1.c: Likewise.
2534 * src/getopt.h: Likewise.
2535 * src/ansi2knr.c: Likewise.
2536 * src/ansi2knr.1: Likewise.
2537 * src/Makefile.am: Adjust.
2538 * lib/Makefile.am: New file.
2540 2000-03-28 Akim Demaille <akim@epita.fr>
2542 * src/getargs.c (usage): Refresh the help message.
2544 2000-03-17 Akim Demaille <akim@epita.fr>
2546 * src/getopt1.c: Updated from textutils 2.0e
2547 * src/getopt.c: Likewise.
2548 * src/getopt.h: Likewise.
2550 2000-03-17 Akim Demaille <akim@epita.fr>
2552 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2553 the file name, not the whole `#line LINE FILE'.
2555 2000-03-17 Akim Demaille <akim@epita.fr>
2557 On syntax errors, report the token on which we choked.
2559 * src/bison.s1 (yyparse): In the label yyerrlab, when
2560 YYERROR_VERBOSE, add yychar in msg.
2562 2000-03-17 Akim Demaille <akim@epita.fr>
2564 * src/reader.c (copy_at): New function.
2565 (copy_guard): Use it.
2566 (copy_action): Use it.
2568 2000-03-17 Akim Demaille <akim@epita.fr>
2570 Be kind to translators, save some useless translations.
2572 * src/main.c (banner): New function.
2573 (fatal_banner): Use it.
2574 (warn_banner): Use it.
2576 2000-03-17 Akim Demaille <akim@epita.fr>
2578 * src/reader.c (copy_definition): Use copy_string and
2579 copy_comment. Removed now unused `match', `ended',
2581 (copy_comment, copy_string): Moved, to be visible from
2584 2000-03-17 Akim Demaille <akim@epita.fr>
2586 * src/reader.c (copy_string): Declare `static inline'. No
2587 problems with inline, since it is checked by configure.
2588 (copy_comment): Likewise.
2590 2000-03-17 Akim Demaille <akim@epita.fr>
2592 * src/reader.c (packsymbols): Formatting changes.
2594 2000-03-17 Akim Demaille <akim@epita.fr>
2596 * src/reader.c (copy_comment): New function, factored out from:
2597 (copy_action): Use it. Removed now unused `match', `ended',
2599 (copy_guard): Likewise.
2601 2000-03-17 Akim Demaille <akim@epita.fr>
2603 * src/reader.c (copy_string): New function, factored out from:
2604 (copy_action): Use it.
2605 (copy_guard): Likewise.
2607 2000-03-17 Akim Demaille <akim@epita.fr>
2609 Change the handling of @s so that they behave exactly like $s.
2610 There is now a pseudo variable @$ (readble and writable), location
2611 of the lhs of the rule (by default ranging from the location of
2612 the first symbol of the rhs, to the location of the last symbol,
2613 or, if the rhs is empty, YYLLOC).
2615 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2617 (yyparse): When providing a default semantic action, provide a
2618 default location action.
2619 (after the $): No longer change `*YYLSP', just stack YYLOC the
2620 same way you stack YYVAL.
2621 * src/reader.c (read_declarations): Use warns.
2622 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2623 (copy_action, case '@'): Likewise.
2624 Use a standard error message, to save useless work from
2627 2000-03-17 Akim Demaille <akim@epita.fr>
2629 * src/bison.s1: Formatting and cosmetics changes.
2630 * src/reader.c: Likewise.
2631 Update the Copyright notice.
2633 2000-03-17 Akim Demaille <akim@epita.fr>
2635 * src/bison.s1 (#line): All set to `#line' only, since the
2636 Makefile now handles them.
2638 2000-03-16 Akim Demaille <akim@epita.fr>
2640 * src/output.c (output_rule_data): Output the documentation of
2642 (Copyright notice): Update.
2645 2000-03-16 Akim Demaille <akim@epita.fr>
2647 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2648 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2649 One `#if YYDEBUG' remains, since it uses variables which are
2650 defined only if `YYDEBUG != 0'.
2652 2000-03-16 Akim Demaille <akim@epita.fr>
2654 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2655 and related variables so that the similarities are highlighted.
2657 2000-03-16 Akim Demaille <akim@epita.fr>
2659 * src/bison.s1: Properly indent CPP directives.
2661 2000-03-16 Akim Demaille <akim@epita.fr>
2663 * src/bison.s1: Properly indent the `alloca' CPP section.
2665 2000-03-16 Akim Demaille <akim@epita.fr>
2667 Do not hard code values of directories in `configure.in'.
2668 Update the `configure' tool chain.
2670 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2672 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2673 (AC_OUTPUT): Add m4/Makefile.
2674 Bump to bison 1.28a, 1.29 has never been released.
2675 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2676 handled via src/Makefile.am.
2677 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2678 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2680 * Makefile.am (SUBDIRS): Add m4.
2681 (ACLOCAL_AM_FLAGS): New variable.
2682 (AUTOMAKE_OPTIONS): Add check-news.
2683 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2684 the proper line number and file name.
2685 (DEFS): Propagate the location of bison library files and of the
2687 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2689 * acinclude.m4: Remove, replaced by the directory m4.
2690 * m4/Makefile.am (EXTRA_DIST): New variable.
2691 * m4/gettext.m4: New file, from the fileutils.
2692 * m4/lcmessage.m4: Likewise
2693 * m4/progtest.m4: Likewise.
2694 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2696 2000-03-10 Akim Demaille <akim@epita.fr>
2699 Formatting changes of various comments.
2700 Respect the GNU coding standards at various places.
2701 Don't use `_()' when no translation is needed.
2703 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2706 OS/2 honors TMPDIR environment variable.
2708 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2710 * doc/bison.texinfo: Tweaked spelling and grammar.
2712 Removed reference to price of printed copy.
2713 Mention BISON_SIMPLE and BISON_HAIRY.
2715 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2717 * configure.in, NEWS:
2718 Bison 1.29 released.
2720 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2722 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2723 Added reference card.
2725 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2727 * po/ru.po: Added Russian translation.
2729 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2731 * configure.in: Added Russian translation.
2733 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2735 * configure.in, NEWS, README:
2736 Released version 1.28.
2738 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2741 Squashed redefinition warning on some systems.
2743 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2744 Have configure build version string instead of relying on ANSI string
2747 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2749 * po/POTFILES.in: Got rid of version.c.
2751 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2753 * acconfig.h, configure.in:
2754 Have configure build version string instead of relying on ANSI string
2757 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2760 Dropped mention of `+' for long-named options.
2762 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2764 * src/files.c: Added <unistd.h> for unlink().
2766 * src/Makefile.am, src/system.h:
2769 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2771 * README: Added a FAQ list.
2773 * configure.in, acconfig.h:
2776 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2778 * doc/FAQ, doc/Makefile.am:
2781 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2783 * src/alloc.h, src/symtab.h, src/version.c:
2784 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2786 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2788 * src/.cvsignore, src/Makefile.am:
2789 Reorganized: sources in `src', documentation in `doc'.
2791 * src/lex.c (literalchar):
2792 fixed the code for escaping double quotes (thanks
2795 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2797 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2798 Adjusted paths to reflect directory reorganization.
2800 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2802 * doc/.cvsignore, doc/Makefile.am:
2803 Reorganized: sources in `src', documentation in `doc'.
2805 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2808 Updated AC_INIT file to reflect directory reorganization.
2810 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2811 Reorganized: sources in `src', documentation in `doc'.
2813 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2816 Don't declare calloc() and realloc() if not necessary.
2818 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2820 * configure.in, acconfig.h, acinclude.m4:
2821 Don't declare calloc() and realloc() if not necessary.
2823 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2825 * po/.cvsignore: Added i18n support.
2827 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2829 * acconfig.h, configure.in, Makefile.am:
2832 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2834 * src/bison.s1: Fixed #line numbers.
2836 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2838 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2839 Added PO files from Translation Project.
2841 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2844 Added support for non-ANSI compilers (ansi2knr).
2846 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2848 * configure.in: Bumped version number to 1.27.
2851 Added `bison.simple' to list of files removed by `make distclean'.
2853 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2855 * src/files.c, src/files.h:
2856 Defined locations of parser files in config.h instead of Makefile.
2858 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2860 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2861 Defined locations of parser files in config.h instead of Makefile.
2863 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2866 Removed inappropriate use of $< macro.
2868 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2870 * po/Makefile.in.in, po/POTFILES.in:
2871 Add `po' directory skeleton.
2873 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2875 * README: Document help-bison list.
2877 * configure.in: Add check for mkstemp().
2879 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2881 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2882 Hush a few compiler warnings.
2885 Add tryclose(), which verifies that fclose was successful.
2886 Hush a couple of compiler warnings.
2888 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2890 * Makefile.am, OChangeLog:
2891 ChangeLog is now automatically generated. Include the old version as
2894 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2896 * src/gram.h, src/lalr.c, src/lex.c, src/lex.h, src/machine.h, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/state.h, src/symtab.c, src/symtab.h, src/types.h, src/vmsgetargs.c, src/warshall.c, src/allocate.c, src/alloc.h, src/bison.s1, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/files.h, src/getargs.c, src/gram.c, src/LR0.c:
2899 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2901 * doc/bison.texinfo: Fix formatting glitch.
2903 * doc/bison.texinfo: Update FSF address.
2905 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2907 * acconfig.h: Update FSF address.
2909 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2912 Don't define PACKAGE here, since config.h defines it.
2914 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2916 * src/reader.c: Update copyright date.
2919 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2920 favor of output directly to stderr (avoids buffer overruns).
2922 * src/reader.c: Some checks for premature EOF.
2924 * src/allocate.c, src/alloc.h, src/closure.c, src/conflicts.c, src/derives.c, src/getargs.c, src/gram.c, src/lalr.c, src/lex.c, src/LR0.c, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reduce.c, src/symtab.c, src/symtab.h, src/warshall.c:
2925 Use prototypes if the compiler understands them.
2927 * src/files.c: Honor TMPDIR on Unix hosts.
2928 Use prototypes if the compiler understands them.
2931 Fix a couple of buffer overrun bugs.
2932 Use prototypes if the compiler understands them.
2934 * src/system.h: Include unistd.h and ctype.h.
2935 Use #ifdef instead of #if for NLS symbols.
2937 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2939 * doc/bison.texinfo:
2940 Delete comment "consider using @set for edition number, etc..." since
2941 we now are doing so.
2943 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2946 Use prototypes if the compiler understands them.
2948 * NEWS: Document 1.26 highlights.
2950 * Makefile.am: Require Automake 1.3 or later.
2953 Use prototypes if the compiler understands them.
2955 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2958 Use VERSION symbol from automake for version number.
2960 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2962 * acconfig.h, configure.in, version.cin:
2963 Use VERSION symbol from automake for version number.
2965 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2968 Distribute original version of simple parser (bison.s1), not built
2969 version (bison.simple).
2971 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2973 * doc/bison.texinfo: Add info dir entry.
2975 * doc/bison.texinfo:
2976 Let automake put version number into documentation.
2978 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2980 * src/bison.cld, src/build.com, src/vmshlp.mar:
2981 Add non-RCS files from /gd/gnu/bison.
2983 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2986 Document the BISON_HAIRY and BISON_SIMPLE variables.
2988 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2990 * src/version.c: Build version.c automatically.
2993 Fix token numbering (used to start at 258, not 257).
2995 * src/system.h: Include config.h.
2997 * src/getargs.c: Update bug report address.
2999 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3000 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3002 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3005 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3007 * configure.in, version.cin:
3008 Build version.c automatically.
3010 * AUTHORS: Add AUTHORS file.
3012 * README: Update bug report address.
3015 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3017 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3020 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3022 * doc/bison.texinfo: Clean up some formatting.
3024 1998-05-05 Richard Stallman <rms@gnu.org>
3026 * doc/bison.texinfo:
3027 Explain better why to make a pure parser.
3029 1998-01-05 Richard Stallman <rms@gnu.org>
3031 * src/files.c (openfiles):
3032 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3033 find a temporary directory, if possible. Do not unlink files while
3036 1997-08-25 Richard Stallman <rms@gnu.org>
3038 * src/reader.c (stack_offset;):
3039 Change some warni to warns.
3041 * src/lex.c (literalchar): Use warns, not warni.
3043 1997-06-28 Richard Stallman <rms@gnu.org>
3045 * src/bison.s1: Add a Bison version comment.
3047 * src/main.c (fatal, warn, berror):
3050 1997-06-28 Richard Stallman <rms@gnu.org>
3052 * Makefile.in (bison_version): New variable.
3053 (dist): Use that variable.
3054 (bison.s1): Substitute the Bison version into bison.simple.
3056 * bison.simple: Add a Bison version comment.
3058 1997-06-18 Richard Stallman <rms@gnu.org>
3060 * src/main.c (fatal, warn, berror):
3061 Make error messages standard.
3062 (toomany): Improve error message text.
3064 * src/LR0.c, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/lalr.c, src/lex.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/symtab.c:
3065 new.h renamed to alloc.h.
3067 1997-06-18 Richard Stallman <rms@gnu.org>
3069 * Makefile.in: new.h renamed to alloc.h.
3071 1997-05-24 Richard Stallman <rms@gnu.org>
3073 * src/lex.c (literalchar):
3074 Fix the code for escaping \, " and '.
3076 (lex): Avoid trouble when there are many chars
3077 to discard in a char literal with just several chars in it.
3079 1997-05-17 Richard Stallman <rms@gnu.org>
3082 Use malloc, if using alloca is troublesome.
3083 (YYSTACK_USE_ALLOCA): New flag macro.
3084 Define it for some systems and compilers.
3085 (YYSTACK_ALLOC): New macro.
3086 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3087 If it was malloc'd, free it.
3089 1997-05-17 Richard Stallman <rms@gnu.org>
3092 Use malloc, if using alloca is troublesome.
3093 (YYSTACK_USE_ALLOCA): New flag macro.
3094 Define it for some systems and compilers.
3095 (YYSTACK_ALLOC): New macro.
3096 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3097 If it was malloc'd, free it.
3099 1997-04-23 Richard Stallman <rms@gnu.org>
3102 (alloca) [__hpux]: Always define as __builtin_alloca.
3104 1997-04-23 Richard Stallman <rms@gnu.org>
3107 (alloca) [__hpux]: Always define as __builtin_alloca.
3109 1997-04-22 Richard Stallman <rms@gnu.org>
3112 [__hpux]: Include alloca.h (right for HPUX 10)
3113 instead of declaring alloca (right for HPUX 9).
3115 * src/bison.s1 (__yy_memcpy):
3116 Declare arg `count' as unsigned int.
3117 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3119 1997-04-22 Richard Stallman <rms@gnu.org>
3122 [__hpux]: Include alloca.h (right for HPUX 10)
3123 instead of declaring alloca (right for HPUX 9).
3125 * bison.simple (__yy_memcpy):
3126 Declare arg `count' as unsigned int.
3127 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3129 1997-01-03 Richard Stallman <rms@gnu.org>
3131 * src/allocate.c: [__STDC__ or _MSC_VER]:
3132 Declare calloc and realloc to return void *.
3134 1997-01-02 Richard Stallman <rms@gnu.org>
3137 [_MSC_VER]: Include stdlib.h and process.h.
3138 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3140 * src/main.c (main): Return FAILURE as a value.
3141 (printable_version): Declare arg as int, not char.
3143 1997-01-02 Richard Stallman <rms@gnu.org>
3145 * Makefile.in (dist):
3146 Explicitly check for symlinks, and copy them.
3148 1996-12-19 Richard Stallman <rms@gnu.org>
3151 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3153 1996-12-18 Paul Eggert <eggert@gnu.org>
3155 * src/bison.s1 (yyparse):
3156 If __GNUC__ and YYPARSE_PARAM are both defined,
3157 declare yyparse to have a void * argument.
3159 1996-12-18 Paul Eggert <eggert@gnu.org>
3161 * bison.simple (yyparse):
3162 If __GNUC__ and YYPARSE_PARAM are both defined,
3163 declare yyparse to have a void * argument.
3165 1996-12-17 Richard Stallman <rms@gnu.org>
3167 * src/reduce.c (nbits): Add some casts.
3169 1996-08-12 Richard Stallman <rms@gnu.org>
3171 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3173 1996-08-12 Richard Stallman <rms@gnu.org>
3175 * bison.simple: Test _MSDOS as well as _MSDOS_.
3177 1996-07-31 Richard Stallman <rms@gnu.org>
3180 [__sun && __i386]: Include alloca.h.
3182 1996-07-31 Richard Stallman <rms@gnu.org>
3185 [__sun && __i386]: Include alloca.h.
3187 1996-07-30 Richard Stallman <rms@gnu.org>
3189 * src/bison.s1: Comment change.
3191 * src/bison.s1: Test _MSDOS_, not MSDOS.
3193 1996-07-30 Richard Stallman <rms@gnu.org>
3195 * bison.simple: Comment change.
3197 * bison.simple: Test _MSDOS_, not MSDOS.
3199 1996-06-01 Richard Stallman <rms@gnu.org>
3201 * src/reduce.c, src/reader.c, src/print.c, src/output.c, src/nullable.c, src/lex.c, src/lalr.c, src/getargs.c, src/derives.c, src/conflicts.c, src/closure.c, src/allocate.c:
3202 Insert `_' macro around many string constants.
3205 Insert `_' macro around many string constants.
3207 (main): Call setlocale, bindtextdomain and textdomain.
3209 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3210 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3211 [ENABLE_NLS]: Include libintl.h.
3212 [ENABLE_NLS] (gettext): Define.
3213 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3214 (N_, PACKAGE, LOCALEDIR): New macros.
3216 1996-06-01 Richard Stallman <rms@gnu.org>
3218 * POTFILES.in: New file.
3220 * Makefile.in (allocate.o):
3221 Define target explicitly.
3223 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3224 (LDFLAGS): Set to @LDFLAGS@.
3225 (configure): Run autoconf only if preceding `cd' succeeds.
3226 (bison.s1): Redirect output to temporary file then move the
3227 temporary to the target, rather than redirecting directly to bison.s1.
3228 (clean): Remove config.status and config.log.
3229 (distclean): Don't remove config.status here.
3231 1996-05-12 Richard Stallman <rms@gnu.org>
3234 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3236 1996-05-12 Richard Stallman <rms@gnu.org>
3239 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3241 1996-05-11 Richard Stallman <rms@gnu.org>
3243 * src/bison.s1 (__yy_memcpy):
3244 Really reorder the args, as was supposedly done on Feb 14 1995.
3245 (yyparse): Calls changed accordingly.
3247 1996-05-11 Richard Stallman <rms@gnu.org>
3249 * Makefile.in (dist): Don't use $(srcdir).
3251 * bison.simple (__yy_memcpy):
3252 Really reorder the args, as was supposedly done on Feb 14 1995.
3253 (yyparse): Calls changed accordingly.
3255 1996-01-27 Richard Stallman <rms@gnu.org>
3257 * src/output.c (output_rule_data):
3258 Test YYERROR_VERBOSE in the conditional
3259 around the definition of ttyname.
3261 1995-12-29 Richard Stallman <rms@gnu.org>
3264 Fix line numbers in #line commands.
3266 1995-12-29 Richard Stallman <rms@gnu.org>
3269 Fix line numbers in #line commands.
3271 1995-12-27 Richard Stallman <rms@gnu.org>
3273 * src/bison.s1 (YYPARSE_PARAM_DECL):
3274 In C++, make it always null.
3275 (YYPARSE_PARAM_ARG): New macro.
3276 (yyparse): Use YYPARSE_PARAM_ARG.
3278 1995-12-27 Richard Stallman <rms@gnu.org>
3280 * bison.simple (YYPARSE_PARAM_DECL):
3281 In C++, make it always null.
3282 (YYPARSE_PARAM_ARG): New macro.
3283 (yyparse): Use YYPARSE_PARAM_ARG.
3285 1995-11-29 Richard Stallman <rms@gnu.org>
3287 * doc/bison.texinfo:
3288 Describe literal string tokens, %raw, %no_lines, %token_table.
3290 1995-11-29 Daniel Hagerty <hag@gnu.org>
3292 * doc/bison.texinfo: Fixed update date
3294 1995-10-16 Richard Stallman <rms@gnu.org>
3296 * src/version.c: Version 1.25.
3298 1995-10-16 Richard Stallman <rms@gnu.org>
3300 * NEWS: *** empty log message ***
3302 1995-10-16 Richard Stallman <rms@gnu.org>
3304 * doc/bison.1, doc/bison.rnh:
3307 1995-10-15 Richard Stallman <rms@gnu.org>
3309 * src/vmsgetargs.c, src/getargs.c:
3310 Added -n, -k, and -raw switches.
3311 (noparserflag, toknumflag, rawtoknumflag): New variables.
3313 * src/symtab.h (SALIAS):
3314 New #define for adding aliases to %token.
3315 (struct bucket): Added `alias' field.
3317 * src/reduce.c (reduce_grammar):
3318 Revise error message.
3319 (print_notices): Remove final `.' from error message.
3321 * src/reader.c (reader_output_yylsp):
3323 (readgram): Use `#if 0' around code that accepted %command
3324 inside grammar rules: The documentation doesn't allow it,
3325 and it will fail since the %command processors scan for the next %.
3326 (parse_token_decl): Extended the %token
3327 declaration to allow a multi-character symbol as an alias.
3328 (parse_thong_decl): New function.
3329 (read_declarations): Added %thong declarations.
3330 (read_declarations): Handle NOOP to deal with allowing
3331 % declarations as another means to specify the flags.
3332 (readgram): Allow %prec prior to semantics embedded in a rule.
3333 (skip_to_char, read_declarations, copy_definition)
3334 (parse_token_decl, parse_start_decl, parse_type_decl)
3335 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3336 (get_type_name, copy_guard, copy_action, readgram)
3337 (get_type, packsymbols): Revised most error messages.
3338 Changed `fatal' to `warnxxx' to avoid aborting for error.
3339 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3340 (read_declarations): Improve the error message for
3341 an invalid character. Do not abort.
3342 (read_declarations, copy_guard, copy_action): Use
3343 printable_version to avoid unprintable characters in printed output.
3344 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3345 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3346 Allow the type of a non-terminal can be given
3347 more than once, as long as all specifications give the same type.
3350 (output_headers, output_trailers, output, output_gram)
3351 (output_rule_data): Implement noparserflag variable.
3352 Implement toknumflag variable.
3353 (output): Call reader_output_yylsp to output LTYPESTR.
3355 * src/main.c (main):
3356 If reader sees an error, don't process the grammar.
3357 (fatals): Updated to not use VARARGS1.
3358 (printable_version, int_to_string, warn, warni, warns, warnss)
3359 (warnsss): New error reporting functions. Avoid abort for error.
3362 Added THONG and NOOP for alias processing.
3363 Added SETOPT for the new code that allows setting options with %flags.
3366 Include getopt.h. Add some extern decls.
3367 (safegetc): New function to deal with EOF gracefully.
3368 (literalchar); new function to deal with reading \ escapes.
3369 (lex): Use literalchar.
3370 (lex): Implemented "..." tokens.
3371 (literalchar, lex, parse_percent_token): Made tokenbuffer
3372 always contain the token. This includes growing the token
3373 buffer while reading an integer.
3374 (parse_percent_token): Replaced if-else statement with percent_table.
3375 (parse_percent_token): Added % declarations as another
3376 way to specify the flags -n, -l, and -r. Also added hooks for
3377 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3378 major changes to files.c.
3379 (lex) Retain in the incoming stream a character following
3381 (skip_white_space, lex): Revised most error messages
3382 and changed fatal to warn to avoid aborting.
3383 (percent_table): Added %thong declarations.
3385 * src/gram.h: Comment changes.
3387 * src/files.c (openfiles, open_extra_files, done):
3389 and actfile file. Handle noparserflag. Both for -n switch.
3391 * src/conflicts.c (resolve_sr_conflict):
3392 Remove use of alloca.
3394 1995-06-01 Jim Meyering <meyering@gnu.org>
3396 * doc/bison.texinfo: *** empty log message ***
3398 1995-05-06 Richard Stallman <rms@gnu.org>
3400 * src/bison.s1: Comment change.
3402 1995-05-06 Richard Stallman <rms@gnu.org>
3404 * bison.simple: Comment change.
3406 1995-05-03 Richard Stallman <rms@gnu.org>
3408 * src/version.c: Version now 1.24.
3410 * src/bison.s1: Change distribution terms.
3412 * src/version.c: Version now 1.23.
3414 1995-05-03 Richard Stallman <rms@gnu.org>
3416 * doc/bison.texinfo:
3417 Rewrite "Conditions for Using Bison".
3418 Update version to 1.24.
3420 1995-05-03 Richard Stallman <rms@gnu.org>
3422 * bison.simple: Change distribution terms.
3424 1995-02-23 Richard Stallman <rms@gnu.org>
3426 * src/files.c: Test __VMS_POSIX as well as VMS.
3428 1995-02-14 Jim Meyering <meyering@gnu.org>
3430 * src/bison.s1 (__yy_memcpy):
3431 Renamed from __yy_bcopy to avoid
3432 confusion. Reverse FROM and TO arguments to be consistent with
3435 1995-02-14 Jim Meyering <meyering@gnu.org>
3437 * bison.simple (__yy_memcpy):
3438 Renamed from __yy_bcopy to avoid
3439 confusion. Reverse FROM and TO arguments to be consistent with
3442 1994-11-10 David J. MacKenzie <djm@gnu.org>
3448 * Makefile.in (DISTFILES): Include NEWS.
3450 * Makefile.in (DISTFILES):
3451 Include install-sh, not install.sh.
3453 * configure.in: Update to Autoconf v2 macro names.
3455 1994-10-05 David J. MacKenzie <djm@gnu.org>
3457 * Makefile.in: fix typo
3459 * Makefile.in (prefix, exec_prefix):
3460 Let configure set them.
3462 1994-09-28 David J. MacKenzie <djm@gnu.org>
3464 * Makefile.in: Set datadir to $(prefix)/share.
3466 1994-09-15 Richard Stallman <rms@gnu.org>
3469 Update copyright notice and GPL version.
3471 1994-09-15 Richard Stallman <rms@gnu.org>
3474 Update copyright notice and GPL version.
3476 1994-07-12 Richard Stallman <rms@gnu.org>
3478 * src/reduce.c, src/reader.c:
3481 1994-05-05 David J. MacKenzie <djm@gnu.org>
3483 * Makefile.in: entered into RCS
3485 1994-03-26 Richard Stallman <rms@gnu.org>
3487 * src/bison.s1: entered into RCS
3489 1994-03-26 Richard Stallman <rms@gnu.org>
3491 * bison.simple: entered into RCS
3493 1994-03-25 Richard Stallman <rms@gnu.org>
3495 * src/main.c: entered into RCS
3497 1994-03-24 Richard Stallman <rms@gnu.org>
3499 * src/conflicts.c: entered into RCS
3501 1994-01-02 Richard Stallman <rms@gnu.org>
3503 * Makefile.in: *** empty log message ***
3505 1993-11-21 Richard Stallman <rms@gnu.org>
3507 * src/bison.s1: *** empty log message ***
3509 1993-11-21 Richard Stallman <rms@gnu.org>
3511 * doc/bison.texinfo: entered into RCS
3513 * doc/bison.texinfo: *** empty log message ***
3515 1993-11-21 Richard Stallman <rms@gnu.org>
3517 * bison.simple: *** empty log message ***
3519 1993-10-25 David J. MacKenzie <djm@gnu.org>
3521 * doc/bison.texinfo: *** empty log message ***
3523 1993-10-19 Richard Stallman <rms@gnu.org>
3525 * src/bison.s1: *** empty log message ***
3527 1993-10-19 Richard Stallman <rms@gnu.org>
3529 * bison.simple: *** empty log message ***
3531 1993-10-14 Richard Stallman <rms@gnu.org>
3533 * src/bison.s1: *** empty log message ***
3535 1993-10-14 Richard Stallman <rms@gnu.org>
3537 * bison.simple: *** empty log message ***
3539 1993-09-14 David J. MacKenzie <djm@gnu.org>
3541 * doc/bison.texinfo: *** empty log message ***
3543 1993-09-13 Noah Friedman <friedman@gnu.org>
3545 * Makefile.in: *** empty log message ***
3547 1993-09-10 Richard Stallman <rms@gnu.org>
3549 * src/conflicts.c: *** empty log message ***
3551 * src/system.h: entered into RCS
3553 1993-09-10 Richard Stallman <rms@gnu.org>
3555 * doc/bison.1: entered into RCS
3557 1993-09-06 Noah Friedman <friedman@gnu.org>
3559 * src/version.c: entered into RCS
3561 1993-09-06 Noah Friedman <friedman@gnu.org>
3563 * Makefile.in: *** empty log message ***
3565 1993-07-30 David J. MacKenzie <djm@gnu.org>
3567 * Makefile.in: *** empty log message ***
3569 1993-07-24 Richard Stallman <rms@gnu.org>
3571 * src/bison.s1: *** empty log message ***
3573 1993-07-24 Richard Stallman <rms@gnu.org>
3575 * bison.simple: *** empty log message ***
3577 1993-07-08 David J. MacKenzie <djm@gnu.org>
3579 * Makefile.in: *** empty log message ***
3581 1993-07-04 Richard Stallman <rms@gnu.org>
3583 * src/bison.s1: *** empty log message ***
3585 1993-07-04 Richard Stallman <rms@gnu.org>
3587 * bison.simple: *** empty log message ***
3589 1993-06-26 David J. MacKenzie <djm@gnu.org>
3591 * src/getargs.c: entered into RCS
3593 1993-06-26 David J. MacKenzie <djm@gnu.org>
3595 * doc/bison.texinfo: *** empty log message ***
3597 * doc/bison.1: New file.
3599 1993-06-25 Richard Stallman <rms@gnu.org>
3601 * src/getargs.c: New file.
3603 1993-06-16 Richard Stallman <rms@gnu.org>
3605 * src/bison.s1: *** empty log message ***
3607 1993-06-16 Richard Stallman <rms@gnu.org>
3609 * bison.simple: *** empty log message ***
3611 1993-06-03 Richard Stallman <rms@gnu.org>
3613 * src/bison.s1: New file.
3615 1993-06-03 Richard Stallman <rms@gnu.org>
3617 * doc/bison.texinfo: *** empty log message ***
3619 1993-06-03 Richard Stallman <rms@gnu.org>
3621 * bison.simple: New file.
3623 1993-05-19 Richard Stallman <rms@gnu.org>
3625 * doc/bison.texinfo: New file.
3627 1993-05-07 Noah Friedman <friedman@gnu.org>
3629 * Makefile.in: *** empty log message ***
3631 1993-04-28 Noah Friedman <friedman@gnu.org>
3633 * src/reader.c: *** empty log message ***
3635 1993-04-23 Noah Friedman <friedman@gnu.org>
3637 * src/alloc.h: entered into RCS
3639 1993-04-20 David J. MacKenzie <djm@gnu.org>
3641 * src/version.c: *** empty log message ***
3643 * src/files.c, src/allocate.c:
3646 * src/reader.c: *** empty log message ***
3648 * src/lex.c: entered into RCS
3650 * src/conflicts.c: New file.
3652 * src/symtab.c: entered into RCS
3654 * src/alloc.h: New file.
3656 * src/LR0.c: entered into RCS
3658 1993-04-18 Noah Friedman <friedman@gnu.org>
3660 * src/reader.c: New file.
3662 * src/version.c: *** empty log message ***
3664 1993-04-18 Noah Friedman <friedman@gnu.org>
3666 * Makefile.in: *** empty log message ***
3668 1993-04-17 Noah Friedman <friedman@gnu.org>
3670 * Makefile.in: *** empty log message ***
3672 1993-04-15 Richard Stallman <rms@gnu.org>
3674 * src/main.c, src/files.c:
3677 1993-04-15 Noah Friedman <friedman@gnu.org>
3679 * configure.in: entered into RCS
3681 * configure.in: *** empty log message ***
3683 * configure.in: New file.
3685 1993-04-14 Richard Stallman <rms@gnu.org>
3687 * Makefile.in: New file.
3689 1993-04-13 Richard Stallman <rms@gnu.org>
3691 * src/version.c: New file.
3693 1993-03-25 Richard Stallman <rms@gnu.org>
3695 * src/output.c: entered into RCS
3697 1992-09-25 Richard Stallman <rms@gnu.org>
3699 * configure.bat: entered into RCS
3701 1992-06-22 Richard Stallman <rms@gnu.org>
3703 * src/vmsgetargs.c: entered into RCS
3705 1992-06-22 Richard Stallman <rms@gnu.org>
3707 * doc/bison.rnh: entered into RCS
3709 1992-04-20 David J. MacKenzie <djm@gnu.org>
3711 * README: entered into RCS
3713 1992-01-22 Richard Stallman <rms@gnu.org>
3715 * src/machine.h: entered into RCS
3717 1991-12-21 Richard Stallman <rms@gnu.org>
3719 * src/lalr.c, src/closure.c:
3722 1991-12-20 Richard Stallman <rms@gnu.org>
3724 * src/state.h: entered into RCS
3726 1991-12-18 Richard Stallman <rms@gnu.org>
3728 * src/print.c, src/nullable.c, src/derives.c:
3731 1991-11-03 David J. MacKenzie <djm@gnu.org>
3733 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3736 1988-09-09 Richard Stallman <rms@gnu.org>
3738 * src/bison.hairy: entered into RCS
3740 1987-12-16 Richard Stallman <rms@gnu.org>
3742 * REFERENCES: entered into RCS