1 2001-11-28 Akim Demaille <akim@epita.fr>
3 * src/reduce.c (reduce_print): Use ngettext.
4 (dump_grammar): Improve the trace accuracy.
6 2001-11-28 Akim Demaille <akim@epita.fr>
8 * src/reduce.c (dump_grammar): Don't translate trace messages.
10 2001-11-28 Akim Demaille <akim@epita.fr>
12 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
13 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
14 as all tags are free'ed afterwards.
17 2001-11-27 Paul Eggert <eggert@twinsun.com>
19 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
20 use alloca when we didn't want to, and vice versa.
22 2001-11-27 Marc Autret <autret_m@epita.fr>
24 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle initialization.
25 * src/output.c (prepare): Remove its update.
27 2001-11-27 Marc Autret <autret_m@epita.fr>
29 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
32 2001-11-27 Marc Autret <autret_m@epita.fr>
34 * src/bison.simple: Remove YYERROR_VERBOSE using.
37 * src/output.c (prepare): Give its final value.
38 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
39 * src/getargs.h: Add its extern declaration.
40 * src/getargs.c (error_verbose_flag): New int.
41 (getargs): Update to catch new case.
42 * src/options.c (option_table): 'error-verbose' is a new option.
45 2001-11-27 Akim Demaille <akim@epita.fr>
47 * src/system.h: Use intl/libgettext.h.
48 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
50 2001-11-27 Akim Demaille <akim@epita.fr>
52 * tests/torture.at (Exploding the Stack Size with Malloc):
53 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
55 2001-11-27 Akim Demaille <akim@epita.fr>
57 * src/files.c: Include error.h.
58 Reported by Hans Aberg.
60 2001-11-26 Marc Autret <autret_m@epita.fr>
62 * src/reader.c (parse_include_decl): New, not yet implemented.
63 (read_declarations): Add case tok_include.
64 * src/getargs.h (include): Add its extern definition.
65 * src/getargs.c (include): New const char *.
66 (getargs): Add case '-I'.
67 * src/options.c (option_table): Add include as command line and
69 * src/lex.h (token_t): Add tok_include.
71 2001-11-26 Akim Demaille <akim@epita.fr>
73 * src/reader.c (readgram): Make sure rules for mid-rule actions
74 have a lineno equal to that of their host rule.
75 Reported by Hans Aberg.
76 * tests/regression.at (Rule Line Numbers): New.
78 2001-11-26 Akim Demaille <akim@epita.fr>
80 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
83 2001-11-26 Akim Demaille <akim@epita.fr>
85 * src/complain.c, src/complain.h (error): Remove, provided by
88 2001-11-26 Akim Demaille <akim@epita.fr>
90 * src/reader.c (read_declarations): Don't abort on tok_illegal,
91 issue an error message.
92 * tests/regression.at (Invalid %directive): New.
93 Reported by Hans Aberg.
95 2001-11-26 Akim Demaille <akim@epita.fr>
97 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
98 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
100 2001-11-26 Akim Demaille <akim@epita.fr>
102 * src/conflicts.c (conflicts_print): Don't complain at all when
103 there are no reduce/reduce conflicts, and as many shift/reduce
104 conflicts as expected.
105 * tests/regression.at (%expect right): Adjust.
107 2001-11-23 Akim Demaille <akim@epita.fr>
109 * lib/alloca.c: Update, from fileutils.
111 2001-11-23 Akim Demaille <akim@epita.fr>
113 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
115 2001-11-23 Akim Demaille <akim@epita.fr>
117 * src/system.h: Include alloca.h.
118 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
120 2001-11-23 Akim Demaille <akim@epita.fr>
122 * src/print_graph.c (print_actions): Remove `rule', unused.
123 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
124 pacify GCC's signed < unsigned warnings.
125 * src/closure.c (itemsetsize): Likewise.
126 * src/reader.c (symbol_list_new): Static.
128 2001-11-23 Akim Demaille <akim@epita.fr>
130 Attaching lineno to buckets is stupid, since only one copy of each
131 symbol is kept, only the line of the first occurrence is kept too.
133 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
134 * src/reader.c (rline_allocated): Remove, unused.
135 (symbol_list): Have a `line' member.
136 (symbol_list_new): New.
138 * src/print.c (print_grammar): Output the rule line numbers.
139 * tests/regression.at (Solved SR Conflicts)
140 (Unresolved SR Conflicts): Adjust.
141 Reported by Hans Aberg.
143 2001-11-22 Marc Autret <autret_m@epita.fr>
145 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
147 2001-11-22 Marc Autret <autret_m@epita.fr>
149 * src/muscle_tab.c (muscle_init): Remove initialization of
151 * src/output.c (output_master_parser): Do it here.
153 2001-11-20 Akim Demaille <akim@epita.fr>
156 * configure.in (ALL_LINGUAS): Adjust.
157 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
158 longer contains strings to translate.
160 2001-11-19 Akim Demaille <akim@epita.fr>
162 * src/conflicts.c (conflicts_print): Add a missing \n.
164 2001-11-19 Akim Demaille <akim@epita.fr>
166 * src/nullable.c (nullable_print): New.
167 (set_nullable): Call it when tracing.
168 Better locality of variables.
170 2001-11-19 Akim Demaille <akim@epita.fr>
172 * src/print.c (print_actions): Better locality of variables.
174 2001-11-19 Akim Demaille <akim@epita.fr>
176 * src/derives.c (print_derives): Fix and enrich.
177 * src/closure.c (print_fderives): Likewise.
179 2001-11-19 Akim Demaille <akim@epita.fr>
181 * src/closure.c (itemsetend): Remove, replaced with...
184 2001-11-19 Akim Demaille <akim@epita.fr>
186 * src/LR0.c (kernel_end): Remove, replaced with...
189 2001-11-19 Akim Demaille <akim@epita.fr>
191 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
194 2001-11-19 Akim Demaille <akim@epita.fr>
196 * src/closure.c (closure): Use arrays instead of pointers to clarify.
198 2001-11-19 Akim Demaille <akim@epita.fr>
200 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
202 * src/LR0.c: Likewise.
203 (allocate_itemsets): Use arrays instead of pointers to clarify.
205 2001-11-19 Akim Demaille <akim@epita.fr>
207 * src/getargs.c (statistics_flag): Replace with...
209 (longopts): Accept --trace instead of --statistics.
210 * src/getargs.h, src/options.c: Adjust.
211 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
212 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
214 2001-11-19 Akim Demaille <akim@epita.fr>
216 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
217 pointers to clarify the code.
218 (save_reductions, save_shifts): Factor common parts of alternatives.
220 2001-11-19 Akim Demaille <akim@epita.fr>
222 * src/LR0.c (new_state, get_state): Complete TRACE code.
223 * src/closure.c: Include `reader.h' to get `tags', needed by the
225 Rename the conditional DEBUG as TRACE.
226 Output consistently TRACEs to stderr, not stdout.
227 * src/derives.c: Likewise.
228 * src/reduce.c: (inaccessable_symbols): Using if is better style
230 Use `#if TRACE' instead of `#if 0' for tracing code.
232 2001-11-19 Akim Demaille <akim@epita.fr>
234 * src/system.h (LIST_FREE, shortcpy): New.
235 * src/LR0.c: Use them.
236 * src/output.c (free_itemsets, free_reductions, free_shifts):
237 Remove, replaced by LIST_FREE.
239 2001-11-19 Akim Demaille <akim@epita.fr>
241 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
242 (REDUCTIONS_ALLOC): New.
243 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
246 2001-11-19 Akim Demaille <akim@epita.fr>
248 * src/LR0.c (new_state): Complete trace code.
249 * src/nullable.c (set_nullable): Don't translate traces.
251 2001-11-19 Akim Demaille <akim@epita.fr>
253 * src/print_graph.c (print_core): Better locality of variables.
254 * src/print.c (print_core): Likewise.
256 2001-11-19 Akim Demaille <akim@epita.fr>
258 * src/vcg.c: You do the output, so you are responsible of the
259 handling of VCG syntax, in particular: use quotearg.
260 * src/print_graph.c: Don't.
261 (print_actions): Don't output the actions as part of the nodes,
262 since that's the job of the edges.
263 (print_state): Don't output by hand: fill the node description,
264 and ask for its output.
266 2001-11-19 Akim Demaille <akim@epita.fr>
268 * src/bison.simple (yyparse): When verbosely reporting an error,
269 no longer put additional quotes around token names.
270 * tests/calc.at: Adjust.
272 2001-11-19 Akim Demaille <akim@epita.fr>
274 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
275 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
276 * src/output.c: Adjust.
278 2001-11-19 Akim Demaille <akim@epita.fr>
280 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
282 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
284 2001-11-19 Akim Demaille <akim@epita.fr>
286 * src/gram.h (rule_t): New.
288 (rrhs, rlhs): Remove, part of state_t.
289 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
290 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
291 * src/reader.c, src/reduce.c: Adjust.
293 2001-11-19 Akim Demaille <akim@epita.fr>
295 * src/reader.c (symbols_output): New, extracted from...
299 2001-11-19 Akim Demaille <akim@epita.fr>
301 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
302 (maxrhs): this new function.
304 2001-11-19 Akim Demaille <akim@epita.fr>
306 * src/lalr.c (F): New macro to access the variable F.
309 2001-11-19 Akim Demaille <akim@epita.fr>
311 * src/lalr.h (LA): New macro to access the variable LA.
312 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
313 * src/lalr.c: Adjust.
315 2001-11-19 Akim Demaille <akim@epita.fr>
317 * src/lalr.c (initialize_LA): Only initialize LA. Let...
318 (set_state_table): handle the `lookaheads' members.
320 2001-11-19 Akim Demaille <akim@epita.fr>
322 * src/lalr.h (lookaheads): Removed array, whose contents is now
324 (state_t): this structure.
325 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
328 2001-11-19 Akim Demaille <akim@epita.fr>
330 * src/lalr.h (consistent): Removed array, whose contents is now
332 (state_t): this structure.
333 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
336 2001-11-19 Akim Demaille <akim@epita.fr>
338 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
339 contents are now members of...
340 (state_t): this structure.
341 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
344 2001-11-19 Akim Demaille <akim@epita.fr>
346 * src/lalr.h (state_t): New.
347 (state_table): Be a state_t * instead of a core **.
348 (accessing_symbol): Remove, part of state_t.
349 * src/lalr.c: Adjust.
350 (set_accessing_symbol): Merge into...
351 (set_state_table): this.
352 * src/print_graph.c, src/conflicts.c: Adjust.
354 2001-11-14 Akim Demaille <akim@epita.fr>
356 * tests/calc.at, tests/output.at, tests/regression.at,
357 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
358 now the tests are run in private dirs, therefore AC_CLEANUP and
359 family can be simplified to 0-ary.
360 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
361 use abs. path to find config.h.
362 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
363 stderr, there can be way too much random noise.
364 Instead pass -Werror to GCC and rely on the exit status.
365 Reported by Wolfram Wagner.
367 2001-11-14 Akim Demaille <akim@epita.fr>
369 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
370 defined only if yyoverflow is defined, to avoid `warning: unused
372 Reported by The Test Suite.
374 2001-11-14 Akim Demaille <akim@epita.fr>
376 * src/print.c: Include reduce.h.
377 Reported by Hans Aberg.
379 2001-11-14 Akim Demaille <akim@epita.fr>
381 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
382 Revert a previous patch: these are really const.
383 * src/conflicts.c (conflict_report): Additional useless pair of
384 braces to pacify GCC's warnings for `if () if () {} else {}'.
385 * src/lex.c (parse_percent_token): Replace equal_offset with
388 Be sure to strdup `arg' when used, since there is no reason for
389 token_buffer not to change.
391 2001-11-14 Akim Demaille <akim@epita.fr>
393 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
395 * src/main.c (main): Use them.
396 Suggested by Hans Aberg.
398 2001-11-12 Akim Demaille <akim@epita.fr>
400 * src/system.h (ngettext): Now that we use ngettext, be sure to
401 provide a default definition when NLS are not used.
403 2001-11-12 Akim Demaille <akim@epita.fr>
405 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
406 Use @kbd to denote user input.
407 (Language and Grammar): ANSIfy the example.
408 Adjust its layout for info/notinfo.
409 (Location Tracking Calc): Output error messages to stderr.
410 Output locations in a more GNUtically correct way.
411 Fix a couple of Englishos.
412 Adjust @group/@end group pairs.
414 2001-11-12 Akim Demaille <akim@epita.fr>
416 %expext was not functioning at all.
418 * src/conflicts.c (expected_conflicts): Set to -1.
419 (conflict_report): Use ngettext.
420 (conflicts_print): Check %expect and make its violation an error.
421 * doc/bison.texinfo (Expect Decl): Adjust.
422 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
423 * tests/regression.at (%expect not enough, %expect right)
424 (%expect too much): New.
426 2001-11-12 Akim Demaille <akim@epita.fr>
428 * tests/regression.at (Conflicts): Rename as...
429 (Unresolved SR Conflicts): this.
430 (Solved SR Conflicts): New.
432 2001-11-12 Akim Demaille <akim@epita.fr>
434 * src/reduce.c (print_results): Rename as...
435 (reduce_output): This.
436 Output to OUT, passed as argument, instead of output_obstack.
437 (dump_grammar): Likewise.
440 (reduce_grammar): No longer call reduce_output, since...
441 * src/print.c (print_results): do it.
442 * src/main.c (main): Call reduce_free;
444 2001-11-12 Akim Demaille <akim@epita.fr>
446 * src/conflicts.c (print_reductions): Accept OUT as argument.
447 Output to it, not to output_obstack.
448 * src/print.c (print_actions): Adjust.
450 2001-11-12 Akim Demaille <akim@epita.fr>
452 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
453 the result instead of using...
454 (src_total, rrc_total, src_count, rrc_count): Remove.
455 (any_conflicts): Remove.
456 (print_conflicts): Split into...
457 (conflicts_print, conflicts_output): New.
458 * src/conflicts.h: Adjust.
459 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
460 * src/print.c (print_grammar): Issue `\n' between two rules.
461 * tests/regression.at (Conflicts): New.
462 Reported by Tom Lane.
464 2001-11-12 Akim Demaille <akim@epita.fr>
466 * tests/regression.at (Invalid input): Remove, duplicate with
467 ``Invalid input: 1''.
469 2001-11-12 Akim Demaille <akim@epita.fr>
471 * tests/torture.at (AT_DATA_STACK_TORTURE)
472 (Exploding the Stack Size with Alloca)
473 (Exploding the Stack Size with Malloc): New.
475 2001-11-12 Akim Demaille <akim@epita.fr>
477 * src/bison.simple (YYSTACK_REALLOC): New.
478 (yyparse) [!yyoverflow]: Use it and free the old stack.
479 Reported by Per Allansson.
481 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
483 * src/bison.simple: Define type yystype instead of YYSTYPE, and
484 define CPP macro, which substitute YYSTYPE by yystype.
485 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
486 with yyltype/YYLTYPE. This allows inclusion of the generated
487 header within the parser if the compiler, such as GGC, accepts
488 multiple equivalent #defines.
491 2001-11-05 Akim Demaille <akim@epita.fr>
493 * src/reader.c (symbols_output): New, extracted from...
497 2001-11-05 Akim Demaille <akim@epita.fr>
499 * src/lex.c (parse_percent_token): s/quotearg/quote/.
501 2001-11-05 Akim Demaille <akim@epita.fr>
503 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
506 2001-11-05 Akim Demaille <akim@epita.fr>
508 * src/options.h (struct option_table_struct): set_flags is void*.
509 * src/options.c (longopts): Support `--output' and `%output'.
511 * src/lex.h (tok_setopt): Remove, replaced with...
512 (tok_intopt, tok_stropt): these new guys.
513 * src/lex.c (getopt.h): Not needed.
514 (token_buffer, unlexed_token_buffer): Not const.
515 (percent_table): Promote `-' over `_' in directive names.
516 Active `%name-prefix', `file-prefix', and `output'.
517 (parse_percent_token): Accept possible arguments to directives.
518 Promote `-' over `_' in directive names.
520 2001-11-04 Akim Demaille <akim@epita.fr>
522 * doc/bison.texinfo (Decl Summary): Split the list into
523 `directives for grammars' and `directives for bison'.
525 Add description of `%name-prefix', `file-prefix', and `output'.
526 Promote `-' over `_' in directive names.
527 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
528 Simplify the description of `--name-prefix'.
529 Promote `-' over `_' in directive names.
530 Promote `--output' over `--output-file'.
531 Fix the description of `--defines'.
532 * tests/output.at: Exercise %file-prefix and %output.
534 2001-11-02 Akim Demaille <akim@epita.fr>
536 * doc/refcard.tex: Update.
538 2001-11-02 Akim Demaille <akim@epita.fr>
540 * src/symtab.h (SUNDEF): New.
541 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
542 stand for `uninitialized', instead of 0.
543 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
544 * src/lex.c (lex): Adjust.
546 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
548 Let yylex return it instead of a plain 0.
549 Reported by Dick Streefland.
551 2001-11-02 Akim Demaille <akim@epita.fr>
553 * tests/regression.at (Mixing %token styles): New test.
555 2001-11-02 Akim Demaille <akim@epita.fr>
557 * src/reader.c (parse_thong_decl): Formatting changes.
558 (token_translations_init): New, extracted from...
562 2001-11-01 Akim Demaille <akim@epita.fr>
564 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
565 Check that `9foo.y' produces correct cpp guards.
566 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
570 2001-11-01 Akim Demaille <akim@epita.fr>
572 * tests/regression.at (Invalid input: 2): New.
573 * src/lex.c (unlexed_token_buffer): New.
574 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
578 2001-11-01 Akim Demaille <akim@epita.fr>
580 * tests/calc.at: Catch up with 1.30.
581 * configure.in: Bump to 1.49a.
582 Adjust to newer Autotest.
584 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
586 * src/conflicts.c: Move global variables rrc_total and src_total ...
587 (print_conflicts): here.
588 * src/output.c (output): Free global variable user_toknums.
589 * src/lex.c (token_obstack): Become static.
591 2001-10-18 Akim Demaille <akim@epita.fr>
593 * tests/atlocal.in (GCC): Add.
594 * tests/calc.at: s/m4_match/m4_bmatch/.
595 s/m4_patsubst/m4_bpatsubst/.
596 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
597 * configure.in: AC_SUBST(GCC).
599 2001-10-14 Marc Autret <autret_m@epita.fr>
601 * src/options.c (create_long_option_table): Fix.
603 2001-10-10 Akim Demaille <akim@epita.fr>
605 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
607 2001-10-04 Akim Demaille <akim@epita.fr>
609 * src/reader.c (parse_union_decl): Push the caracters in
610 union_obstack, not attrs_obstack.
612 2001-10-04 Akim Demaille <akim@epita.fr>
614 Merge in the branch 1.29.
616 * src/reader.c (packsymbols): Use a temporary obstack for
617 `%%tokendef', since output_stack is already used elsewhere.
619 2001-10-02 Akim Demaille <akim@epita.fr>
623 2001-10-02 Akim Demaille <akim@epita.fr>
627 2001-10-02 Akim Demaille <akim@epita.fr>
629 * tests/regression.at (Invalid CPP headers): New.
630 From Alexander Belopolsky.
631 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
633 2001-10-02 Akim Demaille <akim@epita.fr>
635 * tests/regression.at (Invalid input): New.
636 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
639 2001-10-02 Akim Demaille <akim@epita.fr>
641 * tests/calc.at: Now that --debug works, the tests must be adjusted.
643 2001-10-02 Akim Demaille <akim@epita.fr>
645 * src/output.c (output_parser): Assert `skeleton'.
646 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
650 2001-10-01 Marc Autret <autret_m@epita.fr>
652 * src/lex.h: Echo modifications.
653 * src/lex.c (unlex): Parameter is now token_t.
656 2001-10-01 Marc Autret <autret_m@epita.fr>
658 * src/main.c: Include lex.h.
661 2001-09-29 Akim Demaille <akim@epita.fr>
663 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
665 2001-09-28 Akim Demaille <akim@epita.fr>
667 * tests/testsuite.at: Update to newer Autotest.
668 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
670 2001-09-27 Akim Demaille <akim@epita.fr>
672 Position independent wrapper.
674 * tests/bison: Remove.
675 * tests/bison.in: New.
676 * configure.in: Adjust.
678 2001-09-27 Paul Eggert <eggert@twinsun.com>
680 Port quotearg fixes from tar 1.13.24.
682 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
684 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
685 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
687 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
688 * m4/mbrtowc.m4: New file.
689 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
690 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
692 2001-09-27 Akim Demaille <akim@epita.fr>
696 2001-09-27 Akim Demaille <akim@epita.fr>
700 2001-09-25 Akim Demaille <akim@epita.fr>
702 * src/system.h: Include `xalloc.h'.
703 Remove it from the C files.
704 * src/files.c (output_files): Free the obstacks.
705 * src/lex.c (init_lex): Rename as...
708 * src/main.c (main): Use it.
710 2001-09-24 Marc Autret <autret_m@epita.fr>
712 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
713 to output informations in fout (FILE*).
714 (open_graph, close_graph): Likewise.
715 (output_graph, output_edge, output_node): Likewise.
716 * src/vcg.h: Update function prototypes.
717 * src/print_graph.c (print_graph): Open output graph file.
718 (print_actions): Adjust.
719 * src/files.h: Remove extern declaration.
720 * src/files.c: Remove graph_obstack declaration.
721 (open_files): Remove graph_obstack initialization.
722 (output_files): Remove graph_obstack saving.
724 2001-09-24 Marc Autret <autret_m@epita.fr>
726 * src/files.c (compute_output_file_names): Fix.
728 2001-09-24 Marc Autret <autret_m@epita.fr>,
729 Akim Demaille <akim@epita.fr>
731 * src/reader.c (reader): Remove call to free_symtab ().
732 * src/main.c (main): Call it here.
734 * src/conflicts.c (initialize_conflicts): Rename as...
735 (solve_conflicts): this.
736 * src/print.c (print_core, print_actions, print_state)
737 (print_grammar): Dump to a file instead a `output_obstack'.
738 (print_results): Dump `output_obstack', and then proceed with the
740 * src/files.c (compute_output_file_names, close_files): New.
741 (output_files): Adjust.
742 * src/main.c (main): Adjust.
744 2001-09-23 Marc Autret <autret_m@epita.fr>
746 * src/files.c (compute_header_macro): Computes header macro name
747 from spec_defines_file when given.
749 2001-09-23 Marc Autret <autret_m@epita.fr>
751 * src/files.c (output_files): Add default extensions.
753 2001-09-22 Akim Demaille <akim@epita.fr>
755 * src/conflicts.c (finalize_conflicts): Rename as...
756 (free_conflicts): this.
758 2001-09-22 Akim Demaille <akim@epita.fr>
760 * src/gram.c (gram_free): Rename back as...
762 (output_token_translations): Free `token_translations'.
763 * src/symtab.c (free_symtab): Free the tag field.
765 2001-09-22 Akim Demaille <akim@epita.fr>
767 Remove `translations' as it is always set to true.
769 * src/gram.h: Adjust.
770 * src/reader.c (packsymbols, parse_token_decl): Adjust
771 * src/print.c (print_grammar): Adjust.
772 * src/output.c (output_token_translations): Adjust.
773 * src/lex.c (lex): Adjust.
774 * src/gram.c: Be sure the set pointers to NULL.
775 (dummy): Rename as...
778 2001-09-22 Akim Demaille <akim@epita.fr>
780 * configure.in: Invoke AM_LIB_DMALLOC.
781 * src/system.h: Use dmalloc.
782 * src/LR0.c: Be sure to have pointers initialized to NULL.
783 (allocate_itemsets): Allocate kernel_items only if needed.
785 2001-09-22 Akim Demaille <akim@epita.fr>
787 * configure.in: Bump to 1.29b.
788 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
789 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
790 need xmalloc.c in calc.y.
793 2001-09-21 Akim Demaille <akim@epita.fr>
796 * Makefile.maint, config/config.guess, config/config.sub,
797 * config/missing: Update from masters.
798 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
800 * configure.in (ALL_LINGUAS): Add `tr'.
802 2001-09-21 Akim Demaille <akim@epita.fr>
804 * tests/Makefile.am (package.m4): Move to...
805 ($(srcdir)/$(TESTSUITE)): here.
807 2001-09-20 Akim Demaille <akim@epita.fr>
809 * src/complain.c: No longer try to be standalone: use system.h.
810 Don't assume __STDC__ is defined to 1. Just test if it is defined.
811 * src/complain.h: Likewise.
812 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
813 Remove the unused variable `n'.
814 From Albert Chin-A-Young.
816 2001-09-18 Marc Autret <autret_m@epita.fr>
818 * doc/bison.1: Update.
819 * doc/bison.texinfo (Bison Options): Update --defines and --graph
821 (Option Cross Key): Update.
824 2001-09-18 Marc Autret <autret_m@epita.fr>
826 * tests/regression.at: New test (comment in %union).
828 2001-09-18 Marc Autret <autret_m@epita.fr>
830 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
832 Reported by Keith Browne.
834 2001-09-18 Marc Autret <autret_m@epita.fr>
836 * tests/output.at: Add tests for --defines and --graph.
838 2001-09-18 Marc Autret <autret_m@epita.fr>
840 * tests/output.at: Removes tests of %{header,src}_extension features.
842 2001-09-18 Akim Demaille <akim@epita.fr>
844 * tests/Makefile.am (package.m4): New.
845 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
846 (_AT_CHECK_CALC_ERROR): Likewise.
847 Factor the `, ' part of verbose error messages.
849 2001-09-18 Marc Autret <autret_m@epita.fr>
851 * src/getargs.c (longopts): Declare --defines and --graph as options
852 with optional arguments.
853 * src/files.h: Add extern declarations.
854 * src/files.c (spec_graph_file, spec_defines_file): New.
855 (output_files): Update.
856 Remove CPP-outed code.
858 2001-09-18 Marc Autret <autret_m@epita.fr>
860 Turn off %{source,header}_extension feature.
862 * src/files.c (compute_exts_from_gf): Update.
863 (compute_exts_from_src): Update.
864 (output_files): CPP-out useless code.
865 * src/files.h: Remove {header,source}_extension extern declarations.
866 * src/reader.c (parse_dquoted_param): CPP-out.
867 (parse_header_extension_decl): Remove.
868 (parse_source_extension_decl): Remove.
869 (read_declarations): Remove cases tok_{hdrext,srcext}.
870 * src/lex.c (percent_table): Remove {header,source}_extension entries.
871 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
873 2001-09-10 Akim Demaille <akim@epita.fr>
875 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
876 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
877 (AT_CHECK_OUTPUT): this.
878 Merely check ls' exit status, its output is useless.
880 2001-09-10 Akim Demaille <akim@epita.fr>
882 * tests/calc.at: Use m4_match.
883 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
885 2001-09-10 Marc Autret <autret_m@epita.fr>,
886 Akim Demaille <akim@epita.fr>
888 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
890 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
892 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
893 * src/lex.h: Adjust prototype.
894 (token_t): Add `tok_undef'.
895 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
896 (parse_percent_token): Now returns token_t.
897 Add default statement in switch.
898 (lex): Separate `c' as an input variable, from the token_t result
900 (unlexed): Is a token_t.
902 2001-09-10 Akim Demaille <akim@epita.fr>
904 * configure.in: Bump to 1.29a.
906 2001-09-07 Akim Demaille <akim@epita.fr>
910 2001-08-30 Akim Demaille <akim@epita.fr>
912 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
913 * m4/atconfig.m4: Remove.
914 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
916 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
917 m4_if, m4_patsubst, and m4_regexp.
918 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
919 `input' file instead of echo.
921 2001-08-29 Akim Demaille <akim@epita.fr>
925 2001-08-29 Akim Demaille <akim@epita.fr>
929 2001-08-29 Paul Eggert <eggert@twinsun.com>
931 * src/bison.simple (yyparse): Don't take the address of an
932 item before the start of an array, as that doesn't conform to
935 2001-08-29 Robert Anisko <anisko_r@epita.fr>
937 * doc/bison.texinfo (Location Tracking Calc): New node.
939 2001-08-29 Paul Eggert <eggert@twinsun.com>
941 * src/output.c (output): Do not define const, as this now
942 causes more problems than it cures.
944 2001-08-29 Akim Demaille <akim@epita.fr>
946 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
948 Be sure to tag the `detailmenu'.
950 2001-08-29 Akim Demaille <akim@epita.fr>
952 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
953 download in a tmp dir.
955 2001-08-28 Marc Autret <autret_m@epita.fr>
957 * config/depcomp: New file.
959 2001-08-28 Marc Autret <autret_m@epita.fr>
961 * doc/bison.1 (mandoc): Adjust.
962 From Juan Manuel Guerrero.
964 2001-08-28 Marc Autret <autret_m@epita.fr>
966 * src/print_graph.c (print_state): Fix.
968 2001-08-27 Marc Autret <autret_m@epita.fr>
970 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
972 Echo modifications to the functions prototypes.
973 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
975 2001-08-27 Marc Autret <autret_m@epita.fr>
977 * src/vcg.c: Include `xalloc.h'.
978 (add_colorentry): New.
979 (add_classname): New.
981 * src/vcg.h: Add new prototypes.
983 2001-08-27 Akim Demaille <akim@epita.fr>
985 * Makefile.maint: Sync. again with CVS Autoconf.
987 2001-08-27 Akim Demaille <akim@epita.fr>
989 * Makefile.maint: Formatting changes.
990 (po-update, cvs-update, update): New targets.
993 2001-08-27 Akim Demaille <akim@epita.fr>
995 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
996 * Makefile.maint: Sync. with CVS Autoconf.
998 2001-08-27 Marc Autret <autret_m@epita.fr>
1000 * src/vcg.h (struct infoname_s): New.
1001 (struct colorentry_s): New.
1002 (graph_s): New fields {vertical,horizontal}_order in structure.
1003 Add `infoname' field.
1004 Add `colorentry' field;
1005 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1006 (G_HORIZONTAL_ORDER): New.
1008 (G_COLORENTRY): New.
1009 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1010 Add output of `infoname'.
1011 Add output of `colorentry'.
1013 2001-08-27 Marc Autret <autret_m@epita.fr>
1015 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1016 This one shadowed a global parameter.
1018 2001-08-24 Marc Autret <autret_m@epita.fr>
1020 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1021 instead of `unsigned'.
1022 (print_state): Do not call obstack_object_size () in obstack_grow ()
1023 to avoid macro variables shadowing.
1025 2001-08-23 Marc Autret <autret_m@epita.fr>
1027 * src/lex.c (percent_table): Typo: s/naem/name/.
1029 Normalize new options declarations.
1031 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1033 * tests/suite.at: Exercise %header_extension and %source_extension.
1035 2001-08-16 Marc Autret <autret_m@epita.fr>
1037 * src/reader.c (parse_dquoted_param): New.
1038 (parse_header_extension_decl): Use it.
1039 (parse_source_extension_decl): Likewise.
1041 2001-08-16 Marc Autret <autret_m@epita.fr>
1043 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1044 (get_xxxx_str): Use assert () instead of complain ().
1045 Remove return invokations in default cases.
1046 (get_decision_str): Modify default behaviour. Remove second argument.
1047 Echo modifications on calls.
1048 (output_graph): Fix.
1050 2001-08-16 Marc Autret <autret_m@epita.fr>
1052 * src/getargs.c (usage): Update with ``-g, --graph''.
1054 2001-08-16 Marc Autret <autret_m@epita.fr>
1056 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1057 (Option Cross Key): Likewise.
1058 * doc/bison.1: Update.
1060 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1062 * src/output.c (output_master_parser): Don't finish action_obstack.
1063 (output_parser): Don't care about the muscle action, here.
1064 (prepare): Copy the action_obstack in the action muscle.
1065 (output): Free action_obstack.
1067 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1069 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1070 will contain `%union' declaration.
1071 (parse_union_decl): Delete #line directive output.
1072 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1073 informations about %union.
1074 (parse_union_decl): Copy the union_obstack in the muscle stype.
1075 * src/bison.simple: Add new #line directive.
1076 Add typdef %%stype YYSTYPE.
1078 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1080 * src/bison.simple: Add new `#line' directive.
1082 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1084 * src/bison.simple: New `#line' directive.
1085 * src/output.c (output_parser): Support new dynamic muscle input_line.
1087 2001-09-22 Marc Autret <autret_m@epita.fr>
1089 * src/output.c (output_master_parser): New.
1090 (output_parser): Be more re-entrant.
1092 2001-09-21 Marc Autret <autret_m@epita.fr>
1094 * src/reader.c (copy_definition, parse_union_decl): Update and use
1096 (copy_action): Likewise.
1097 Use obstack_1grow ().
1098 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1100 2001-09-21 Marc Autret <autret_m@epita.fr>
1102 * src/options.c (option_table): Adjust.
1103 * src/lex.c (parse_percent_token): Fix.
1105 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1107 * src/options.c (symtab.h): Include it, need by lex.h.
1109 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1111 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1112 is now an option_table_struct*.
1113 (option_strcmp): New function option_strcmp.
1114 (parse_percent_token): Call option_strcmp.
1115 * src/getargs.c (xalloc.h, options.h): Include it.
1116 (getargs): Call create_long_option_table.
1117 (getargs): Free longopts at the end of the function.
1118 (shortopts): Move in options.c.
1119 * src/options.c (create_long_option_table): New function. Convert
1120 information from option_table to option structure.
1121 * src/reader.c (options.h): Include it.
1123 * src/Makefile.am: Adjust.
1124 * src/options.c (option_table): Create from longopts and percent_table.
1125 * src/getargs.c (longopts): Delete.
1126 * src/lex.c (struct percent_table_struct): Delete.
1127 (percent_table): Delete.
1128 (options.h): Include it.
1129 * src/options.c: Create.
1130 * src/options.h: Create.
1131 Declare enum opt_access_e.
1132 Define struct option_table_struct.
1134 2001-09-20 Marc Autret <autret_m@epita.fr>
1136 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1139 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1141 * src/bison.simple: s/%%filename/%%skeleton.
1142 * src/muscle_tab.c (getargs.h): Include it.
1143 (muscle_init): Insert new muscle skeleton.
1145 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1147 * src/output.c (output_parser): Delete unused variable actions_dumped.
1149 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1151 * src/output.c (output): Delete call to reader_output_yylsp.
1152 * src/reader.c (reader): Likewise.
1153 * src/reader.h: Delete declaration of reader_output_yylsp.
1155 2001-09-02 Marc Autret <autret_m@epita.fr>
1157 * src/reader.c: Include muscle_tab.h.
1158 (parse_union_decl): Update.
1159 (parse_macro_decl): Rename parse_muscle_decl.
1160 Update to use renamed functions and variable.
1161 (read_declarations, copy_action, read_additionnal_code, : Updated
1162 with correct variables and functions names.
1163 (packsymbols, reader): Likewise.
1165 * src/reader.h (muscle_obstack): Extern declaration update.
1167 * src/output.c: Include muscle_tab.h
1168 In all functions using macro_insert, change by using muscle_insert ().
1169 (macro_obstack): Rename muscle_obstack.
1170 Echo modifications in the whole file.
1171 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1172 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1173 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1175 * src/muscle_tab.h: Update double inclusion macros.
1176 (macro_entry_s): Rename muscle_entry_s.
1179 * src/muscle_tab.c: Include muscle_tab.h.
1180 Rename macro_tabble to muscle_table.
1181 (mhash1, mhash2, mcmp): Use muscle_entry.
1182 (macro_init): Rename muscle_init. Update.
1183 (macro_insert): Rename muscle_insert. Update.
1184 (macro_find): Rename muscle_find. Update.
1186 * src/main.c: Include muscle_tab.h.
1187 (main): Call muscle_init ().
1188 * src/Makefile.am (bison_SOURCES): Echo modifications.
1190 2001-09-02 Marc Autret <autret_m@epita.fr>
1192 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1194 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1196 2001-09-02 Marc Autret <autret_m@epita.fr>
1198 * src/macrotab.c, src/macrotab.h: Remove.
1200 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1202 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1205 2001-09-01 Marc Autret <autret_m@epita.fr>
1207 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1208 to an explicit value to activate the feature. We do it here.
1210 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1212 * src/output.c (prepare): Delete the `filename' muscule insertion.
1213 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1214 (parse_union_decl): Likewise.
1215 * src/macrotab.c (macro_init): Initialize filename by infile.
1217 2001-08-31 Marc Autret <autret_m@epita.fr>
1219 * src/bison.simple (YYLSP_NEEDED): New definition.
1220 * src/output.c (prepare): Add macro insertion of `locations_flag'
1222 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1224 * src/output.c (prepare): Delete insertion of previous muscles,
1225 and insert the `prefix' muscles.
1226 * src/macrotab.c (macro_init): Likewise.
1227 (macro_init): Initialization prefix directive by `yy'.
1228 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1229 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1230 yylval, yydebug, yyerror, yynerrs and yyparse.
1231 New directive `#define' to substitute yydebug, ... with option
1234 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1236 * src/main.c (main): Standardize.
1237 * src/output.c (output_table_data, output_parser): Likewise.
1238 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1240 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1242 * src/reader.c (read_additionnal_code): Rename %%user_code to
1244 * src/output.c (output): Rename %%declarations to %%prologue.
1245 * src/bison.simple: Echo modifications.
1247 2001-08-31 Marc Autret <autret_m@epita.fr>
1249 * src/reader.c (readgram): CleanUp.
1250 (output_token_defines): Likewise.
1251 (packsymbols): Likewise.
1253 * src/output.c (output): CPP-out useless code.
1255 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1257 * src/reader.c (reader): Delete obsolete call to function
1258 output_trailers and output_headers.
1259 * src/output.h: Remove obsolete functions prototypes of output_headers
1260 and output_trailers.
1262 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1264 * src/main.c: Include macrotab.h.
1265 * src/macrotab.h (macro_entry_s): Constify fields.
1266 Adjust functions prototypes.
1267 * src/macrotab.c (macro_insert): Constify key and value.
1268 (macro_find): Constify key.
1269 (macro_insert): Include 'xalloc.h'
1270 (macro_insert): Use XMALLOC.
1271 (macro_find): Constify return value.
1272 * src/output.c (output_table_data): Rename table to table_data.
1273 (output_parser): Constify macro_key, macro_value.
1275 2001-08-30 Marc Autret <autret_m@epita.fr>
1277 * src/reader.c (parse_skel_decl): New.
1278 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1279 * src/lex.h (token_t): New token `tok_skel'.
1280 * src/lex.c (percent_table): Add skeleton option entry.
1283 2001-08-29 Marc Autret <autret_m@epita.fr>
1285 * src/bison.simple: Add %%user_code directive at the end.
1286 * src/reader.c (read_additionnal_code): New.
1288 * src/output.c (output_program): Remove.
1291 2001-08-28 Marc Autret <autret_m@epita.fr>
1293 * src/output.c (output_actions): Clean up.
1294 (output_gram): CPP-out useless code.
1295 * src/reader.c (reader): Clean up, CPP-out useless code.
1297 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1299 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1301 * src/bison.simple: Add `%%definitions'.
1303 2001-08-28 Marc Autret <autret_m@epita.fr>
1305 * config/depcomp: New file.
1307 2001-08-27 Paul Eggert <eggert@twinsun.com>
1309 * src/bison.simple (yyparse): Don't take the address of an
1310 item before the start of an array, as that doesn't conform to
1313 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1315 * src/output.c (output): Remove the initialization of the macro
1316 obstack. It was done too late here.
1318 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1320 (reader): Initialize the macro obstack here, since we need it to grow
1321 '%define' directives.
1323 * src/reader.h: Declare the macro obstack as extern.
1325 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1327 * src/output.c (output_parser): Fix. Store single '%' characters in
1328 the output obstack instead of throwing them away.
1330 2001-08-27 Akim Demaille <akim@epita.fr>
1332 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1334 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1336 * lib/Makefile.am: Adjust.
1338 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1340 * src/bison.simple: Update and add '%%' directives.
1342 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1344 * src/reader.c (reader): Remove calls to 'output_headers' and
1345 'output_trailers'. Remove some C output.
1346 (readgram): Disable a piece of code that was writing a default
1347 definition for 'YYSTYPE'.
1348 (reader_output_yylsp): Remove.
1349 (packsymbols): Output token defintions to a macro.
1350 (copy_definition): Disable C output.
1352 * src/reader.c (parse_macro_decl): New function used to parse macro
1354 (copy_string2): Put the body of copy_string into this new function.
1355 Add a parameter to let the caller choose whether he wants to copy the
1356 string delimiters or not.
1357 (copy_string): Be a simple call to copy_string2 with the last argument
1359 (read_declarations): Add case for macro definition.
1360 (copy_identifier): New.
1361 (parse_macro_decl): Read macro identifiers using copy_identifier
1364 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1366 * src/output.c (prepare): Add prefixed names.
1367 (output_parser): Output semantic actions.
1368 (output_parser): Fix bug on '%%line' directives.
1370 * src/output.c (output_headers): Remove. The C code printed by this
1371 function should now be in the skeletons.
1372 (output_trailers): Remove.
1373 (output): Disable call to 'reader_output_yylsp'.
1374 (output_rule_data): Do not output tables to the table obstack.
1376 * src/output.c: Remove some C dedicated output.
1377 Improve the use of macro and output obstacks.
1378 (output_defines): Remove.
1380 * src/output.c (output_token_translations): Associate 'translate'
1381 table with a macro. No output to the table obstack.
1382 (output_gram): Same for 'rhs' and 'prhs'.
1383 (output_stos): Same for 'stos'.
1384 (output_rule_data): Same for 'r1' and 'r2'.
1385 (token_actions): Same for 'defact'.
1386 (goto_actions): Same for 'defgoto'.
1387 (output_base): Same for 'pact' and 'pgoto'.
1388 (output_table): Same for 'table'.
1389 (output_check): Same for 'check'.
1391 * src/output.c (output_table_data): New function.
1392 (output_short_table): Remove.
1393 (output_short_or_char_table): Remove.
1395 * src/output.c (output_parser): Replace most of the skeleton copy code
1396 with something new. Skeletons are now processed character by character
1397 rather than line by line, and Bison looks for '%%' macros. This is the
1398 first step in making Bison's output process (a lot) more flexible.
1399 (output_parser): Use the macro table.
1401 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1403 * src/main.c (main): Initialize the macro table.
1405 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1407 * src/lex.c (percent_table): Add tok_define.
1408 * src/lex.h: Add tok_define.
1410 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1412 * src/macrotab.c: New file.
1413 * src/macrotab.h: New file.
1414 * src/Makefile.am: Update.
1416 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1418 * lib/hash.c: New file.
1419 * lib/hash.h: New file.
1420 * lib/Makefile.am: Update.
1422 2001-08-15 Akim Demaille <akim@epita.fr>
1426 2001-08-15 Marc Autret <autret_m@epita.fr>
1428 * src/reader.c (readgram): Indent output macro YYSTYPE.
1429 (packsymbols): Likewise.
1430 (output_token_defines): Likewise.
1431 * src/files.c: Standardize.
1432 (compute_header_macro): New.
1433 (defines_obstack_save): New. Use compute_header_macro.
1434 (output_files): Update. Use defines_obstack_save.
1436 2001-08-15 Akim Demaille <akim@epita.fr>
1438 * doc/bison.texinfo (Table of Symbols): Document
1441 2001-08-15 Akim Demaille <akim@epita.fr>
1443 * missing: Update from CVS Automake.
1444 * config/config.guess, config/config.sub, config/texinfo.tex:
1445 Update from gnu.org.
1447 2001-08-15 Akim Demaille <akim@epita.fr>
1449 * Makefile.maint: Sync with CVS Autoconf.
1451 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1453 * doc/bison.texinfo: Include GNU Free Documentation License from
1455 * doc/fdl.texi: Add to package.
1457 2001-08-14 Marc Autret <autret_m@epita.fr>
1459 Turn on %{source,header}_extension features.
1461 * src/lex.c (percent_table): Un-CPP out header_extension and
1463 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1464 (compute_exts_from_src): Remove conditions. It restores priorities
1467 2001-08-14 Marc Autret <autret_m@epita.fr>
1469 * src/files.c (compute_base_names): Add extensions computing when
1470 `--file-prefix' used.
1471 Standardize function calls.
1473 2001-08-13 Marc Autret <autret_m@epita.fr>
1475 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1476 defining it (defined but null disables alloca).
1478 2001-08-13 Marc Autret <autret_m@epita.fr>
1480 * src/bison.simple (_yy_memcpy): CPP reformat.
1482 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1484 * tests/atconfig.in (CPPFLAGS): Fix.
1486 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1488 * doc/bison.texinfo: Include GNU General Public License from
1490 * doc/gpl.texi: Add to package.
1492 2001-08-10 Marc Autret <autret_m@epita.fr>
1494 * src/print_graph.h: Fix.
1495 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1497 2001-08-10 Akim Demaille <akim@epita.fr>
1499 * src/system.h: Provide default declarations for stpcpy, strndup,
1502 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1504 * doc/bison.texinfo (Locations): Update @$ stuff.
1506 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1508 * src/bison.simple (YYLLOC_DEFAULT): Update.
1511 2001-08-08 Marc Autret <autret_m@epita.fr>
1513 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1514 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1515 Reported by Fabrice Bauzac.
1517 2001-08-08 Marc Autret <autret_m@epita.fr>
1519 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1520 * src/vcg.c (output_node): Fix.
1521 * src/vcg.h: Cleanup.
1522 * src/print_graph.c: Add comments.
1523 (node_output_size): New global variable. Simplify the formatting of
1524 the VCG graph output.
1525 (print_actions): Unused code is now used. It notifies the final state
1526 and no action states in the VCG graph. It also give the reduce actions.
1527 The `shift and goto' edges are red and the `go to state' edges are
1529 Get the current node name and node_obstack by argument.
1530 (node_obstack): New variable.
1531 (print_state): Manage node_obstack.
1532 (print_core): Use node_obstack given by argument.
1533 A node is not only computed here but in print_actions also.
1534 (print_graph): CPP out useless code instead of commenting it.
1536 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1538 * tests/atconfig.in (CPPFLAGS): Fix.
1540 2001-08-07 Akim Demaille <akim@epita.fr>
1542 * src/print_graph.c (quote): New.
1543 (print_core): Use it.
1545 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1547 * src/vcg.c (complain.h): Include it.
1548 Unepitaize `return' invocations.
1549 [NDEBUG] (main): Remove.
1550 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1551 * src/files.c (open_files): Initialize graph_obstack.
1552 * src/print_graph.c (print_actions): CPP out useless code.
1553 (print_core): Don't output the last `\n' in labels.
1555 * src/files.c (output_files): Output the VCG file.
1556 * src/main.c (main): Invoke print_graph ();
1558 2001-08-06 Marc Autret <autret_m@epita.fr>
1560 Automaton VCG graph output.
1561 Using option ``-g'' or long option ``--graph'', you can generate
1562 a gram_filename.vcg file containing a VCG description of the LALR (1)
1563 automaton of your grammar.
1565 * src/main.c: Call to print_graph() function.
1566 * src/getargs.h: Update.
1567 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1568 (graph_flag): New flag.
1570 (getargs): Add case `g'.
1571 * src/files.c (graph_obstack): New obstack struct.
1572 (open_files): Initialize new obstack.
1573 (output_files): Saves graph_obstack if required.
1574 * src/files.h (graph_obstack): New extern declaration.
1575 * src/Makefile.am: Add new source files.
1577 2001-08-06 Marc Autret <autret_m@epita.fr>
1579 * src/print_graph.c, src/print_graph.h (graph): New.
1580 * src/vcg.h: New file.
1581 * src/vcg.c: New file, VCG graph handling.
1583 2001-08-06 Marc Autret <autret_m@epita.fr>
1585 Add of %source_extension and %header_extension which specify
1586 the source or/and the header output file extension.
1588 * src/files.c (compute_base_names): Remove initialisation of
1589 src_extension and header_extension.
1590 (compute_exts_from_gf): Update.
1591 (compute_exts_from_src): Update.
1592 (output_files): Update.
1593 * src/reader.c (parse_header_extension_decl): New.
1594 (parse_source_extension_decl): New.
1595 (read_declarations): New case statements for the new tokens.
1596 * src/lex.c (percent_table): Add entries for %source_extension
1597 and %header_extension.
1598 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1600 2001-08-06 Marc Autret <autret_m@epita.fr>
1602 * configure.in: Bump to 1.28c.
1603 * doc/bison.texinfo: Texinfo thingies.
1605 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1607 * tests/atconfig.in (CPPFLAGS): Add.
1608 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1610 2001-08-03 Akim Demaille <akim@epita.fr>
1614 2001-08-03 Akim Demaille <akim@epita.fr>
1616 * tests/Makefile.am (check-local): Ship testsuite.
1617 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1620 2001-08-03 Akim Demaille <akim@epita.fr>
1622 * configure.in: Try using -Wformat when compiling.
1624 2001-08-03 Akim Demaille <akim@epita.fr>
1626 * configure.in: Bump to 1.28b.
1628 2001-08-03 Akim Demaille <akim@epita.fr>
1630 * src/complain.c: Adjust strerror_r portability issues.
1632 2001-08-03 Akim Demaille <akim@epita.fr>
1636 2001-08-03 Akim Demaille <akim@epita.fr>
1638 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1639 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1640 * src/getargs.c: Include complain.h.
1641 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1642 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1644 2001-08-03 Akim Demaille <akim@epita.fr>
1646 * src/reader.c (readgram): Display hidden chars in error messages.
1648 2001-08-03 Akim Demaille <akim@epita.fr>
1650 Update to gettext 0.10.39.
1652 2001-08-03 Akim Demaille <akim@epita.fr>
1654 * lib/strspn.c: New.
1656 2001-08-01 Marc Autret <autret_m@epita.fr>
1658 * doc/bison.texinfo: Update.
1659 * doc/bison.1 (mandoc): Update.
1660 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1661 * src/files.c: Support output files extensions computing.
1662 (src_extension): New static variable.
1663 (header_extension): New static variable.
1665 (get_extension_index): New function, gets the index of an extension
1666 filename in a string.
1667 (compute_exts_from_gf): New function, computes extensions from the
1668 grammar file extension.
1669 (compute_exts_from_src): New functions, computes extensions from the
1670 C source file extension, file given by ``-o'' option.
1671 (compute_base_names): Update.
1672 (output_files): Update.
1674 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1676 * doc/bison.texi: Document @$.
1677 (Locations): New section.
1679 2001-07-18 Akim Demaille <akim@epita.fr>
1681 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1682 * config/prev-version.txt, config/move-if-change: New.
1683 * Makefile.am: Adjust.
1685 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1687 * src/bison.simple (yyparse): Suppress warning `comparaison
1688 between signed and unsigned'.
1690 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1692 * src/getargs.h (raw_flag): Remove.
1693 * src/getargs.c: Die on `-r'/`--raw'.
1694 * src/lex.c (parse_percent_token): Die on `%raw'.
1695 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1696 * tests/calc.at: Suppress test with option `--raw'.
1698 2001-07-14 Akim Demaille <akim@epita.fr>
1701 * configure.in: Require Autoconf 2.50.
1702 Update to gettext 0.10.38.
1704 2001-03-16 Akim Demaille <akim@epita.fr>
1706 * doc/bison.texinfo: ANSIfy the examples.
1708 2001-03-16 Akim Demaille <akim@epita.fr>
1710 * getargs.c (skeleton): New variable.
1711 (longopts): --skeleton is a new option.
1712 (shortopts, getargs): -S is a new option.
1713 * getargs.h: Declare skeleton.
1714 * output.c (output_parser): Use it.
1716 2001-03-16 Akim Demaille <akim@epita.fr>
1718 * m4/strerror_r.m4: New.
1719 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1720 * lib/error.h, lib/error.c: Update.
1722 2001-03-16 Akim Demaille <akim@epita.fr>
1724 * src/getargs.c (longopts): Clean up.
1726 2001-02-21 Akim Demaille <akim@epita.fr>
1728 * src/reader.c (gensym): `gensym_count' is your own.
1729 Use a static buf to create the symbol name, as token_buffer is no
1732 2001-02-08 Akim Demaille <akim@epita.fr>
1734 * src/conflicts.c (conflict_report): Be sure not to append to res
1735 between two calls, which could happen if both first sprintf were
1736 skipped, but not the first cp += strlen.
1738 2001-02-08 Akim Demaille <akim@epita.fr>
1740 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1741 New, from fileutils 4.0.37.
1742 * configure.in: Require Autoconf 2.49c. I took some time before
1743 making this decision. This is the only way out for portability
1744 issues in Bison, it would mean way too much duplicate effort to
1745 import in Bison features implemented in 2.49c since 2.13.
1746 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1748 2001-02-02 Akim Demaille <akim@epita.fr>
1750 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1751 * lib/xalloc.h, lib/xmalloc.c: Update.
1753 2001-01-19 Akim Demaille <akim@epita.fr>
1755 Get rid of the ad hoc handling of token_buffer in the scanner: use
1758 * src/lex.c (token_obstack): New.
1759 (init_lex): Initialize it. No longer call...
1760 (grow_token_buffer): this. Remove it.
1761 Adjust all the places which used it to use the obstack.
1763 2001-01-19 Akim Demaille <akim@epita.fr>
1765 * src/lex.h: Rename all the tokens:
1766 s/\bENDFILE\b/tok_eof/g;
1767 s/\bIDENTIFIER\b/tok_identifier/g;
1769 Let them be enums, not #define, to ease debugging.
1770 Adjust all the code.
1772 2001-01-18 Akim Demaille <akim@epita.fr>
1774 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1775 * src/lex.c (maxtoken, grow_token_buffer): Static.
1777 2001-01-18 Akim Demaille <akim@epita.fr>
1779 Since we now use obstacks, more % directives can be enabled.
1781 * src/lex.c (percent_table): Also accept `%yacc',
1782 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1784 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1785 instead of returning a token.
1786 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1787 * src/reader.c (read_declarations): Adjust.
1788 * src/files.c (open_files): Don't call `compute_base_names', don't
1789 compute `attrsfile' since they depend upon data which might be
1790 *in* the input file now.
1791 (output_files): Do it here.
1792 * src/output.c (output_headers): Document the fact that this patch
1793 introduces a guaranteed SEGV for semantic parsers.
1794 * doc/bison.texinfo: Document them.
1795 * tests/suite.at: Exercise these %options.
1797 2000-12-20 Akim Demaille <akim@epita.fr>
1799 Also handle the output file (--verbose) with obstacks.
1801 * files.c (foutput): Remove.
1802 (output_obstack): New.
1803 Adjust all dependencies.
1804 * src/conflicts.c: Return a string.
1805 * src/system.h (obstack_grow_string): Rename as...
1806 (obstack_sgrow): this. Be ready to work with non literals.
1807 (obstack_fgrow4): New.
1809 2000-12-20 Akim Demaille <akim@epita.fr>
1811 * src/files.c (open_files): Fix the computation of short_base_name
1812 in the case of `-o foo.tab.c'.
1814 2000-12-20 Akim Demaille <akim@epita.fr>
1816 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1817 (copy_dollar): Now that everything uses obstacks, get rid of the
1820 2000-12-20 Akim Demaille <akim@epita.fr>
1822 * src/files.c (open_files): Actually the `.output' file is based
1823 on the short_base_name, not base_name.
1824 * tests/suite.at (Checking output file names): Adjust.
1826 2000-12-20 Akim Demaille <akim@epita.fr>
1828 * src/bison.s1: Remove, we now use directly...
1829 * src/bison.simple: this.
1830 * src/Makefile.am: Use pkgdata instead of data.
1832 2000-12-20 Akim Demaille <akim@epita.fr>
1834 * src/files.c (guard_obstack): New.
1835 (open_files): Initialize it.
1836 (output_files): Dump it...
1837 * src/files.h: Export it.
1838 * src/reader.c (copy_guard): Use it.
1840 2000-12-19 Akim Demaille <akim@epita.fr>
1842 * src/files.c (outfile, defsfile, actfile): Removed as global
1844 (open_files): Don't compute them.
1845 (output_files): Adjust.
1846 (base_name, short_base_name): Be global.
1847 Adjust dependencies.
1849 2000-12-19 Akim Demaille <akim@epita.fr>
1851 * src/files.c (strsuffix): New.
1852 (stringappend): Be just like strcat but allocate.
1853 (base_names): Eve out from open_files.
1854 Try to simplify the rather hairy computation of base_name and
1856 (open_files): Use it.
1857 * tests/suite.at (Checking output file names): New test.
1859 2000-12-19 Akim Demaille <akim@epita.fr>
1861 * src/system.h (obstack_grow_literal_string): Rename as...
1862 (obstack_grow_string): this.
1863 * src/output.c (output_parser): Recognize `%% actions' instead of
1865 * src/bison.s1: s/$/%% actions/.
1866 * src/bison.hairy: Likewise.
1868 2000-12-19 Akim Demaille <akim@epita.fr>
1870 * src/output.c (output_parser): Compute the `#line' lines when
1872 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1873 Suggested by Hans Aberg.
1875 2000-12-19 Akim Demaille <akim@epita.fr>
1877 Let the handling of the skeleton files be local to the procedures
1880 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1882 (fparser, open_extra_files): Remove.
1883 (open_files, output_files): Don't take care of fparser.
1884 * src/files.h: Adjust.
1885 * src/output.c (output_parser): Open and close the file to the
1887 * src/reader.c (read_declarations): When %semantic_parser, open
1890 2000-12-19 Akim Demaille <akim@epita.fr>
1892 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1893 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1895 2000-12-19 Akim Demaille <akim@epita.fr>
1897 * src/files.c (open_files): Yipee! We no longer need all the code
1898 looking for `/tmp' since we have no tmp file.
1900 2000-12-19 Akim Demaille <akim@epita.fr>
1902 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1904 * src/files.c (open_files): Less dependency on MSDOS etc.
1906 2000-12-14 Akim Demaille <akim@epita.fr>
1908 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1909 Provide a default definition.
1910 Use it when executing the default @ action.
1911 * src/reader.c (reader_output_yylsp): No longer include
1912 `timestamp' and `text' in the default YYLTYPE.
1914 2000-12-12 Akim Demaille <akim@epita.fr>
1916 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1917 (copy_guard): Quote the file names.
1918 Reported by Laurent Mascherpa.
1920 2000-12-12 Akim Demaille <akim@epita.fr>
1922 * src/output.c (output_headers, output_program, output): Be sure
1923 to escape special characters when outputting filenames.
1924 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1925 (output_headers): Don't depend on them, Use ACTSTR.
1927 2000-11-17 Akim Demaille <akim@epita.fr>
1929 * lib/obstack.h: Formatting changes.
1930 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1931 prevents type checking.
1932 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1933 cast the value to (void *): assigning a `foo *' to a `void *'
1935 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1936 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1939 2000-11-17 Akim Demaille <akim@epita.fr>
1941 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1943 (suite.m4, regression.m4, calc.m4): these.
1944 * tests/atgeneral.m4: Update from CVS Autoconf.
1946 2000-11-17 Akim Demaille <akim@epita.fr>
1948 * tests/regression.m4 (%union and --defines): New test,
1949 demonstrating a current bug in the obstack implementation.
1951 2000-11-17 Akim Demaille <akim@epita.fr>
1953 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1955 Use them to declare the variables which are global or local to
1958 2000-11-17 Akim Demaille <akim@epita.fr>
1960 * acconfig.h: Remove, no longer used.
1962 2000-11-07 Akim Demaille <akim@epita.fr>
1964 * src: s/Copyright (C)/Copyright/g.
1966 2000-11-07 Akim Demaille <akim@epita.fr>
1968 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1970 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1972 2000-11-07 Akim Demaille <akim@epita.fr>
1974 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1975 Merge in a single CPP if/else.
1977 2000-11-07 Akim Demaille <akim@epita.fr>
1979 * src/output.c (output): Remove useless variables.
1980 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1981 argument `data' for consistency with the prototypes.
1983 (obstack_copy, obstack_copy0): Rename the second argument as
1984 `address' for consistency. Qualify it `const'.
1985 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1986 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1987 `const' their input argument (`data' or `address').
1988 Adjust the corresponding macros to include `const' in casts.
1990 2000-11-03 Akim Demaille <akim@epita.fr>
1992 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1993 s/PFILE1/BISON_HAIRY/.
1994 Adjust dependencies.
1996 2000-11-03 Akim Demaille <akim@epita.fr>
1998 For some reason, this was not applied.
2000 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2001 `unlink': it's no longer used.
2003 2000-11-03 Akim Demaille <akim@epita.fr>
2005 * src/files.c (skeleton_find): New function, eved out of...
2006 (open_files, open_extra_files): here.
2008 2000-11-03 Akim Demaille <akim@epita.fr>
2012 * src/files.c (obstack_save): New function.
2013 (done): Rename as...
2014 (output_files): this.
2016 * src/main.c (main): Don't use `atexit' to register `done', since
2017 it no longer has to remove tmp files, just call `output_files'
2018 when there are no errors.
2020 2000-11-02 Akim Demaille <akim@epita.fr>
2022 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2023 `unlink': it's no longer used.
2024 * src/files.h: Formatting changes.
2026 2000-11-02 Akim Demaille <akim@epita.fr>
2028 Remove the last uses of mktemp and unlink/delete.
2030 * src/files.c (fdefines, ftable): Removed.
2031 (defines_ostack, table_obstack): New.
2032 Adjust dependencies of the former into uses of the latter.
2033 * src/output.c (output_short_or_char_table, output_short_table):
2034 Convert to using obstacks.
2035 * src/reader.c (copy_comment2): Accept one FILE * and two
2037 (output_token_defines, reader_output_yylsp): Use obstacks.
2038 * src/system.h (obstack_fgrow3): New.
2040 2000-11-01 Akim Demaille <akim@epita.fr>
2042 Change each use of `fattrs' into a use of `attrs_obstack'.
2044 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2045 * src/files.c (fattrs): Remove.
2046 (attrs_obstack): New.
2047 Adjust all dependencies.
2048 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2050 2000-11-01 Akim Demaille <akim@epita.fr>
2053 Change each use of `faction' into a use of `action_obstack'.
2055 * lib/obstack.h, lib/obstack.c: New files.
2056 * src/files.c (faction): Remove.
2057 (action_obstack): New.
2058 Adjust all dependencies.
2060 2000-10-20 Akim Demaille <akim@epita.fr>
2062 * lib/quote.h (PARAMS): New macro. Use it.
2064 2000-10-16 Akim Demaille <akim@epita.fr>
2066 * src/output.c (output_short_or_char_table): New function.
2067 (output_short_table, output_token_translations): Use it.
2068 (goto_actions): Use output_short_table.
2070 2000-10-16 Akim Demaille <akim@epita.fr>
2072 * src/symtab.c (bucket_new): New function.
2075 * src/output.c (output_short_table): New argument to display the
2076 comment associated with the table.
2077 Adjust dependencies.
2078 (output_gram): Use it.
2079 (output_rule_data): Nicer output layout for YYTNAME.
2081 2000-10-16 Akim Demaille <akim@epita.fr>
2083 * src/lex.c (read_typename): New function.
2085 * src/reader.c (copy_dollar): Likewise.
2087 2000-10-16 Akim Demaille <akim@epita.fr>
2089 * src/reader.c (copy_comment2): Expect the input stream to be on
2090 the `/' which is suspected to open a comment, instead of being
2091 called after `//' or `/*' was read.
2092 (copy_comment, copy_definition, parse_union_decl, copy_action)
2093 (copy_guard): Adjust.
2095 2000-10-16 Akim Demaille <akim@epita.fr>
2097 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2098 `read_signed_integer'.
2100 2000-10-16 Akim Demaille <akim@epita.fr>
2102 * src/reader.c (copy_dollar): New function.
2103 (copy_guard, copy_action): Use it.
2105 2000-10-16 Akim Demaille <akim@epita.fr>
2107 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2108 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2109 New files, from Fileutils 4.0.27.
2110 * src/main.c (printable_version): Remove.
2111 * src/lex.c, src/reader.c: Use `quote'.
2113 2000-10-04 Akim Demaille <akim@epita.fr>
2115 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2117 2000-10-04 Akim Demaille <akim@epita.fr>
2119 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2121 2000-10-04 Akim Demaille <akim@epita.fr>
2123 When a literal string is used to define two different tokens,
2124 `bison -v' segfaults.
2125 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2127 * tests/regression.m4: New file.
2128 Include the core of the sample provided by Piotr Gackiewicz.
2129 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2132 2000-10-04 Akim Demaille <akim@epita.fr>
2134 * src/reader.c (parse_expect_decl): Keep `count' within the size
2138 2000-10-02 Paul Eggert <eggert@twinsun.com>
2140 * bison.s1 (yyparse): Assign the default value
2141 unconditionally, to avoid a GCC warning and make the parser a
2144 2000-10-02 Akim Demaille <akim@epita.fr>
2146 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2149 2000-10-02 Akim Demaille <akim@epita.fr>
2151 * src/derives.c, src/print.c, src/reduce.c: To ease the
2152 translation, move some `\n' out of the translated strings.
2154 2000-10-02 Akim Demaille <akim@epita.fr>
2156 The location tracking mechanism is precious for parse error
2157 messages. Nevertheless, it is enabled only when `@n' is used in
2158 the grammar, which is a different issue (you can use it in error
2159 message, but not in the grammar per se). Therefore, there should
2160 be another means to enable it.
2162 * src/getargs.c (getargs): Support `--locations'.
2164 * src/getargs.h (locationsflag): Export it.
2165 * src/lex.c (percent_table): Support `%locations'.
2166 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2167 with `locationsflag'.
2168 * doc/bison.texinfo: Document `--locations' and `%locations'.
2170 * tests/calc.m4: Test it.
2172 For regularity of the names, replace each
2173 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2174 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2175 In addition replace each `flag' with `_flag'.
2177 2000-10-02 Akim Demaille <akim@epita.fr>
2179 Also test parse error messages, including with YYERROR_VERBOSE.
2181 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2183 Use it to check the computations.
2184 Use it to check `nonassoc' is honored.
2185 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2186 `--yyerror-verbose'.
2187 (_AT_CHECK_CALC): Adjust to this option.
2188 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2190 2000-10-02 Akim Demaille <akim@epita.fr>
2192 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2193 the latter demonstrates a flaw in the handling of non debugging
2194 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2195 was used in order to simplify:
2211 unfortunately this leads to a CPP conflict when
2212 `--name-prefix=foo' is used since it produces `#define yydebug
2215 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2216 (YYDPRINTF): New macro.
2218 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2220 Also test `--verbose', `--defines' and `--name-prefix'.
2222 2000-10-02 Akim Demaille <akim@epita.fr>
2224 Improve the readability of the produced parsers.
2226 * src/bison.s1: Formatting changes.
2227 Improve the comment related to the `$' mark.
2228 (yydefault): Don't fall through to `yyresume': `goto' there.
2229 * src/output.c (output_parser): When the `$' is met, skip the end
2231 New variable, `number_of_dollar_signs', to check there's exactly
2232 one `$' in the parser skeleton.
2234 2000-10-02 Akim Demaille <akim@epita.fr>
2236 * lib/xstrdup.c: New file, from the fileutils.
2237 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2238 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2239 instead of strlen + xmalloc + strcpy.
2240 * src/symtab.c (copys): Remove, use xstrdup instead.
2242 2000-10-02 Akim Demaille <akim@epita.fr>
2244 * src/gram.h (associativity): New enum type which replaces the
2245 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2246 `right_assoc', `left_assoc' and `non_assoc'.
2247 Adjust all dependencies.
2248 * src/reader.c: Formatting changes.
2249 (LTYPESTR): Don't define it, use it as a literal in
2250 `reader_output_yylsp'.
2251 * src/symtab.h (symbol_class): New enum type which replaces the
2252 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2253 `sunknown', `stoken and `snterm'.
2255 2000-10-02 Akim Demaille <akim@epita.fr>
2257 * src/getargs.c (fixed_outfiles): Rename as...
2258 (yaccflag): for consistency and accuracy.
2259 Adjust dependencies.
2261 2000-10-02 Akim Demaille <akim@epita.fr>
2263 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2264 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2265 difficult and introduced a lot of core dump. It turns out that
2266 Bison used an implementation of `xmalloc' based on `calloc', and
2267 at various places it does depend upon the initialization to 0. I
2268 have not tried to isolate the pertinent places, and all the former
2269 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2270 someone should address this issue.
2272 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2273 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2275 Adjust dependencies.
2276 * src/warshall.h: New file.
2279 2000-10-02 Akim Demaille <akim@epita.fr>
2281 Various anti-`extern in *.c' changes.
2283 * src/system.h: Include `assert.h'.
2285 2000-10-02 Akim Demaille <akim@epita.fr>
2287 * src/state.h (nstates, final_state, first_state, first_shift)
2288 (first_reduction): Move their exportation from here...
2289 * src/LR0.h: to here.
2290 Adjust dependencies.
2291 * src/getargs.c (statisticsflag): New variable.
2292 Add support for `--statistics'.
2293 Adjust dependencies.
2295 Remove a lot of now useless `extern' statements in most files.
2297 2000-10-02 Akim Demaille <akim@epita.fr>
2299 * src/LR0.h: New file.
2302 2000-10-02 Akim Demaille <akim@epita.fr>
2304 * src/print.h: New file.
2306 * src/print.c: Formatting and ordering changes.
2307 (verbose, terse): Replace with...
2308 (print_results): this new function.
2309 Adjust dependencies.
2311 2000-10-02 Akim Demaille <akim@epita.fr>
2313 * src/conflicts.c (conflict_report): New function.
2314 (conflict_log, verbose_conflict_log): Replace with...
2315 (print_conflicts): this function.
2316 Adjust dependencies.
2317 * src/conflicts.h: New file.
2318 Propagate its inclusion.
2320 2000-10-02 Akim Demaille <akim@epita.fr>
2322 * src/nullable.h: New file.
2323 Propagate its inclusion.
2324 * src/nullable.c: Formatting changes.
2326 2000-10-02 Akim Demaille <akim@epita.fr>
2328 * src/reduce.h: New file.
2329 Propagate its inclusion.
2330 * src/reduce.c: Topological sort and other formatting changes.
2331 (bool, TRUE, FALSE): Move their definition to...
2332 * src/system.h: here.
2334 2000-10-02 Akim Demaille <akim@epita.fr>
2336 * src/files.c: Formatting changes.
2337 (tryopen, tryclose, openfiles): Rename as...
2338 (xfopen, xfclose, open_files): this.
2339 (stringappend): static.
2340 * src/files.h: Complete the list of exported symbols.
2343 2000-10-02 Akim Demaille <akim@epita.fr>
2345 * src/reader.h: New file.
2346 Propagate its use instead of tedious list of `extern' and
2348 * src/reader.c: Formatting changes, topological sort,
2351 2000-10-02 Akim Demaille <akim@epita.fr>
2353 * src/lex.h: Prototype `lex.c' exported functions.
2354 * src/reader.c: Adjust.
2355 * src/lex.c: Formatting changes.
2356 (safegetc): Rename as...
2359 2000-10-02 Akim Demaille <akim@epita.fr>
2361 * src/lalr.h: New file.
2362 Propagate its inclusion instead of prototypes and `extern'.
2363 * src/lalr.c: Formatting changes, topological sorting etc.
2365 2000-10-02 Akim Demaille <akim@epita.fr>
2367 * src/output.c (token_actions): Introduce a temporary array,
2368 YYDEFACT, that makes it possible for this function to use
2371 2000-10-02 Akim Demaille <akim@epita.fr>
2373 `user_toknums' is output as a `short[]' in `output.c', while it is
2374 defined as a `int[]' in `reader.c'. For consistency with the
2375 other output tables, `user_toknums' is now defined as a table of
2378 * src/reader.c (user_toknums): Be a short table instead of an int
2380 Adjust dependencies.
2382 Factor the short table outputs.
2384 * src/output.c (output_short_table): New function.
2385 * src/output.c (output_gram, output_stos, output_rule_data)
2386 (output_base, output_table, output_check): Use it.
2388 2000-10-02 Akim Demaille <akim@epita.fr>
2390 * src/output.c (output): Topological sort of the functions, in
2391 order to get rid of the `static' prototypes.
2392 No longer use `register'.
2393 * src/output.h: New file.
2394 Propagate its inclusion in files explicitly prototyping functions
2397 2000-09-21 Akim Demaille <akim@epita.fr>
2399 * src/atgeneral.m4: Update from Autoconf.
2401 2000-09-21 Akim Demaille <akim@epita.fr>
2403 * src/closure.h: New file.
2404 * src/closure.c: Formatting changes, topological sort over the
2405 functions, use of closure.h.
2406 (initialize_closure, finalize_closure): Rename as...
2407 (new_closure, free_closure): these. Adjust dependencies.
2408 * src/LR0.c: Formatting changes, topological sort, use of
2410 (initialize_states): Rename as...
2412 * src/Makefile.am (noinst_HEADERS): Adjust.
2414 2000-09-20 Akim Demaille <akim@epita.fr>
2416 * src/acconfig.h: Don't protect config.h against multiple
2418 Don't define PARAMS.
2419 * src/system.h: Define PARAMS.
2420 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2421 purpose of config.h. system.h must not try to fix wrong
2422 definitions in config.h.
2424 2000-09-20 Akim Demaille <akim@epita.fr>
2426 * src/derives.h: New file.
2427 * src/main.c, src/derives.h: Use it.
2429 * src/Makefile.am (noinst_HEADERS): Adjust.
2431 2000-09-20 Akim Demaille <akim@epita.fr>
2433 * tests/atgeneral.m4: Update from Autoconf.
2434 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2435 (AT_CHECK_CALC): New macros.
2436 Use these macros to test bison with options `', `--raw',
2437 `--debug', `--yacc', `--yacc --debug'.
2439 2000-09-19 Akim Demaille <akim@epita.fr>
2441 * src/output.c: Formatting changes.
2442 * src/machine.h: Remove, leaving its contents in...
2443 * src/system.h: here.
2445 Adjust all dependencies on stdio.h and machine.h.
2446 * src/getargs.h: New file.
2447 Let all `extern' declarations about getargs.c be replaced with
2448 inclusion of `getargs.h'.
2449 * src/Makefile.am (noinst_HEADERS): Adjust.
2451 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2453 (yyerror): Returns void, not int.
2454 * doc/bison.texinfo: Formatting changes.
2456 2000-09-19 Akim Demaille <akim@epita.fr>
2458 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2461 2000-09-18 Akim Demaille <akim@epita.fr>
2463 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2464 * src/Makefile.am (INCLUDES): Don't.
2465 Be ready to fetch headers in lib/.
2467 2000-09-18 Akim Demaille <akim@epita.fr>
2469 * doc/bison.texinfo: Update the copyright.
2470 ANSIfy and GNUify the examples.
2471 Remove the old menu.
2473 2000-09-18 Akim Demaille <akim@epita.fr>
2475 First set of tests: use the `calc' example from the documentation.
2477 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2478 is defined only when YYDEBUG is.
2479 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2480 * src/files.c (tryopen, tryclose): Formatting changes.
2481 Move to the top and be static.
2482 * src/reader.c (read_signed_integer): Likewise.
2483 * tests/calc.m4: New file.
2484 * Makefile.am, suite.m4: Adjust.
2485 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2487 2000-09-18 Akim Demaille <akim@epita.fr>
2489 Add support for an Autotest test suite for Bison.
2491 * m4/m4.m4, m4/atconfig.m4: New files.
2492 * m4/Makefile.am (EXTRA_DIST): Adjust.
2493 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2495 * src/getargs.c: Display a more standard --version message.
2496 * src/reader.c (reader): Formatting changes.
2497 No longer depend upon VERSION_STRING.
2498 * configure.in: No longer use `dnl'.
2499 Set up the test suite and the new directory `tests/.
2500 (VERSION_STRING): Remove.
2502 2000-04-14 Akim Demaille <akim@epita.fr>
2504 * src/reader.c (copy_comment2): New function, same as former
2505 `copy_comment', but outputs into two FILE *.
2506 (copy_comment): Use it.
2507 (parse_union_decl): Use it.
2508 (get_type, parse_start_decl): Use the same `invalid' message.
2509 (parse_start_decl, parse_union_decl): Use the same `multiple'
2511 (parse_union_decl, copy_guard, copy_action): Use the same
2512 `unmatched' message.
2513 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2515 2000-03-31 Akim Demaille <akim@epita.fr>
2517 * src/files.c (tryopen, tryclose): Move to the top.
2520 2000-03-31 Akim Demaille <akim@epita.fr>
2522 * src/main.c (main): Don't call `done', exit does it.
2524 2000-03-31 Akim Demaille <akim@epita.fr>
2526 * allocate.c: s/return (foo)/return foo/.
2529 * output.c: Likewise.
2530 * reader.c: Likewise.
2531 * symtab.c: Likewise.
2532 * vmsgetargs.c: Likewise.
2534 2000-03-31 Akim Demaille <akim@epita.fr>
2536 Clean up the error reporting functions.
2538 * src/report.c: New file.
2539 * src/report.h: Likewise.
2540 * src/Makefile.am: Adjust.
2541 * m4/error.m4: New file.
2542 * m4/Makefile.am: Adjust.
2543 * configure.in (jm_PREREQ_ERROR): Call it.
2544 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2546 (fatal, fatals): Remove. All callers use complain.c::fatal.
2547 (warn, warni, warns, warnss, warnss): Remove. All callers use
2548 complain.c::complain.
2549 (toomany): Remove, use fatal instead.
2550 * src/files.c (done): No argument, use complain_message_count.
2551 * src/main.c (main): Register `done' to `atexit'.
2553 * src/getargs.c (usage): More `fputs', less `fprintf'.
2555 2000-03-28 Akim Demaille <akim@epita.fr>
2557 * lib/: New directory.
2558 * Makefile.am (SUBDIRS): Adjust.
2559 * configure.in: Adjust.
2560 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2562 * src/alloca.c: Moved to lib/.
2563 * src/getopt.c: Likewise.
2564 * src/getopt1.c: Likewise.
2565 * src/getopt.h: Likewise.
2566 * src/ansi2knr.c: Likewise.
2567 * src/ansi2knr.1: Likewise.
2568 * src/Makefile.am: Adjust.
2569 * lib/Makefile.am: New file.
2571 2000-03-28 Akim Demaille <akim@epita.fr>
2573 * src/getargs.c (usage): Refresh the help message.
2575 2000-03-17 Akim Demaille <akim@epita.fr>
2577 * src/getopt1.c: Updated from textutils 2.0e
2578 * src/getopt.c: Likewise.
2579 * src/getopt.h: Likewise.
2581 2000-03-17 Akim Demaille <akim@epita.fr>
2583 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2584 the file name, not the whole `#line LINE FILE'.
2586 2000-03-17 Akim Demaille <akim@epita.fr>
2588 On syntax errors, report the token on which we choked.
2590 * src/bison.s1 (yyparse): In the label yyerrlab, when
2591 YYERROR_VERBOSE, add yychar in msg.
2593 2000-03-17 Akim Demaille <akim@epita.fr>
2595 * src/reader.c (copy_at): New function.
2596 (copy_guard): Use it.
2597 (copy_action): Use it.
2599 2000-03-17 Akim Demaille <akim@epita.fr>
2601 Be kind to translators, save some useless translations.
2603 * src/main.c (banner): New function.
2604 (fatal_banner): Use it.
2605 (warn_banner): Use it.
2607 2000-03-17 Akim Demaille <akim@epita.fr>
2609 * src/reader.c (copy_definition): Use copy_string and
2610 copy_comment. Removed now unused `match', `ended',
2612 (copy_comment, copy_string): Moved, to be visible from
2615 2000-03-17 Akim Demaille <akim@epita.fr>
2617 * src/reader.c (copy_string): Declare `static inline'. No
2618 problems with inline, since it is checked by configure.
2619 (copy_comment): Likewise.
2621 2000-03-17 Akim Demaille <akim@epita.fr>
2623 * src/reader.c (packsymbols): Formatting changes.
2625 2000-03-17 Akim Demaille <akim@epita.fr>
2627 * src/reader.c (copy_comment): New function, factored out from:
2628 (copy_action): Use it. Removed now unused `match', `ended',
2630 (copy_guard): Likewise.
2632 2000-03-17 Akim Demaille <akim@epita.fr>
2634 * src/reader.c (copy_string): New function, factored out from:
2635 (copy_action): Use it.
2636 (copy_guard): Likewise.
2638 2000-03-17 Akim Demaille <akim@epita.fr>
2640 Change the handling of @s so that they behave exactly like $s.
2641 There is now a pseudo variable @$ (readble and writable), location
2642 of the lhs of the rule (by default ranging from the location of
2643 the first symbol of the rhs, to the location of the last symbol,
2644 or, if the rhs is empty, YYLLOC).
2646 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2648 (yyparse): When providing a default semantic action, provide a
2649 default location action.
2650 (after the $): No longer change `*YYLSP', just stack YYLOC the
2651 same way you stack YYVAL.
2652 * src/reader.c (read_declarations): Use warns.
2653 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2654 (copy_action, case '@'): Likewise.
2655 Use a standard error message, to save useless work from
2658 2000-03-17 Akim Demaille <akim@epita.fr>
2660 * src/bison.s1: Formatting and cosmetics changes.
2661 * src/reader.c: Likewise.
2662 Update the Copyright notice.
2664 2000-03-17 Akim Demaille <akim@epita.fr>
2666 * src/bison.s1 (#line): All set to `#line' only, since the
2667 Makefile now handles them.
2669 2000-03-16 Akim Demaille <akim@epita.fr>
2671 * src/output.c (output_rule_data): Output the documentation of
2673 (Copyright notice): Update.
2676 2000-03-16 Akim Demaille <akim@epita.fr>
2678 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2679 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2680 One `#if YYDEBUG' remains, since it uses variables which are
2681 defined only if `YYDEBUG != 0'.
2683 2000-03-16 Akim Demaille <akim@epita.fr>
2685 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2686 and related variables so that the similarities are highlighted.
2688 2000-03-16 Akim Demaille <akim@epita.fr>
2690 * src/bison.s1: Properly indent CPP directives.
2692 2000-03-16 Akim Demaille <akim@epita.fr>
2694 * src/bison.s1: Properly indent the `alloca' CPP section.
2696 2000-03-16 Akim Demaille <akim@epita.fr>
2698 Do not hard code values of directories in `configure.in'.
2699 Update the `configure' tool chain.
2701 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2703 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2704 (AC_OUTPUT): Add m4/Makefile.
2705 Bump to bison 1.28a, 1.29 has never been released.
2706 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2707 handled via src/Makefile.am.
2708 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2709 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2711 * Makefile.am (SUBDIRS): Add m4.
2712 (ACLOCAL_AM_FLAGS): New variable.
2713 (AUTOMAKE_OPTIONS): Add check-news.
2714 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2715 the proper line number and file name.
2716 (DEFS): Propagate the location of bison library files and of the
2718 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2720 * acinclude.m4: Remove, replaced by the directory m4.
2721 * m4/Makefile.am (EXTRA_DIST): New variable.
2722 * m4/gettext.m4: New file, from the fileutils.
2723 * m4/lcmessage.m4: Likewise
2724 * m4/progtest.m4: Likewise.
2725 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2727 2000-03-10 Akim Demaille <akim@epita.fr>
2730 Formatting changes of various comments.
2731 Respect the GNU coding standards at various places.
2732 Don't use `_()' when no translation is needed.
2734 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2737 OS/2 honors TMPDIR environment variable.
2739 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2741 * doc/bison.texinfo: Tweaked spelling and grammar.
2743 Removed reference to price of printed copy.
2744 Mention BISON_SIMPLE and BISON_HAIRY.
2746 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2748 * configure.in, NEWS:
2749 Bison 1.29 released.
2751 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2753 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2754 Added reference card.
2756 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2758 * po/ru.po: Added Russian translation.
2760 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2762 * configure.in: Added Russian translation.
2764 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2766 * configure.in, NEWS, README:
2767 Released version 1.28.
2769 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2772 Squashed redefinition warning on some systems.
2774 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2775 Have configure build version string instead of relying on ANSI string
2778 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2780 * po/POTFILES.in: Got rid of version.c.
2782 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2784 * acconfig.h, configure.in:
2785 Have configure build version string instead of relying on ANSI string
2788 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2791 Dropped mention of `+' for long-named options.
2793 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2795 * src/files.c: Added <unistd.h> for unlink().
2797 * src/Makefile.am, src/system.h:
2800 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2802 * README: Added a FAQ list.
2804 * configure.in, acconfig.h:
2807 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2809 * doc/FAQ, doc/Makefile.am:
2812 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2814 * src/alloc.h, src/symtab.h, src/version.c:
2815 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2817 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2819 * src/.cvsignore, src/Makefile.am:
2820 Reorganized: sources in `src', documentation in `doc'.
2822 * src/lex.c (literalchar):
2823 fixed the code for escaping double quotes (thanks
2826 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2828 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2829 Adjusted paths to reflect directory reorganization.
2831 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2833 * doc/.cvsignore, doc/Makefile.am:
2834 Reorganized: sources in `src', documentation in `doc'.
2836 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2839 Updated AC_INIT file to reflect directory reorganization.
2841 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2842 Reorganized: sources in `src', documentation in `doc'.
2844 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2847 Don't declare calloc() and realloc() if not necessary.
2849 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2851 * configure.in, acconfig.h, acinclude.m4:
2852 Don't declare calloc() and realloc() if not necessary.
2854 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2856 * po/.cvsignore: Added i18n support.
2858 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2860 * acconfig.h, configure.in, Makefile.am:
2863 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2865 * src/bison.s1: Fixed #line numbers.
2867 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2869 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2870 Added PO files from Translation Project.
2872 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2875 Added support for non-ANSI compilers (ansi2knr).
2877 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2879 * configure.in: Bumped version number to 1.27.
2882 Added `bison.simple' to list of files removed by `make distclean'.
2884 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2886 * src/files.c, src/files.h:
2887 Defined locations of parser files in config.h instead of Makefile.
2889 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2891 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2892 Defined locations of parser files in config.h instead of Makefile.
2894 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2897 Removed inappropriate use of $< macro.
2899 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2901 * po/Makefile.in.in, po/POTFILES.in:
2902 Add `po' directory skeleton.
2904 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2906 * README: Document help-bison list.
2908 * configure.in: Add check for mkstemp().
2910 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2912 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2913 Hush a few compiler warnings.
2916 Add tryclose(), which verifies that fclose was successful.
2917 Hush a couple of compiler warnings.
2919 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2921 * Makefile.am, OChangeLog:
2922 ChangeLog is now automatically generated. Include the old version as
2925 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2927 * 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:
2930 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2932 * doc/bison.texinfo: Fix formatting glitch.
2934 * doc/bison.texinfo: Update FSF address.
2936 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2938 * acconfig.h: Update FSF address.
2940 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2943 Don't define PACKAGE here, since config.h defines it.
2945 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2947 * src/reader.c: Update copyright date.
2950 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2951 favor of output directly to stderr (avoids buffer overruns).
2953 * src/reader.c: Some checks for premature EOF.
2955 * 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:
2956 Use prototypes if the compiler understands them.
2958 * src/files.c: Honor TMPDIR on Unix hosts.
2959 Use prototypes if the compiler understands them.
2962 Fix a couple of buffer overrun bugs.
2963 Use prototypes if the compiler understands them.
2965 * src/system.h: Include unistd.h and ctype.h.
2966 Use #ifdef instead of #if for NLS symbols.
2968 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2970 * doc/bison.texinfo:
2971 Delete comment "consider using @set for edition number, etc..." since
2972 we now are doing so.
2974 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2977 Use prototypes if the compiler understands them.
2979 * NEWS: Document 1.26 highlights.
2981 * Makefile.am: Require Automake 1.3 or later.
2984 Use prototypes if the compiler understands them.
2986 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2989 Use VERSION symbol from automake for version number.
2991 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2993 * acconfig.h, configure.in, version.cin:
2994 Use VERSION symbol from automake for version number.
2996 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2999 Distribute original version of simple parser (bison.s1), not built
3000 version (bison.simple).
3002 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3004 * doc/bison.texinfo: Add info dir entry.
3006 * doc/bison.texinfo:
3007 Let automake put version number into documentation.
3009 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3011 * src/bison.cld, src/build.com, src/vmshlp.mar:
3012 Add non-RCS files from /gd/gnu/bison.
3014 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3017 Document the BISON_HAIRY and BISON_SIMPLE variables.
3019 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3021 * src/version.c: Build version.c automatically.
3024 Fix token numbering (used to start at 258, not 257).
3026 * src/system.h: Include config.h.
3028 * src/getargs.c: Update bug report address.
3030 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3031 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3033 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3036 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3038 * configure.in, version.cin:
3039 Build version.c automatically.
3041 * AUTHORS: Add AUTHORS file.
3043 * README: Update bug report address.
3046 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3048 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3051 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3053 * doc/bison.texinfo: Clean up some formatting.
3055 1998-05-05 Richard Stallman <rms@gnu.org>
3057 * doc/bison.texinfo:
3058 Explain better why to make a pure parser.
3060 1998-01-05 Richard Stallman <rms@gnu.org>
3062 * src/files.c (openfiles):
3063 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3064 find a temporary directory, if possible. Do not unlink files while
3067 1997-08-25 Richard Stallman <rms@gnu.org>
3069 * src/reader.c (stack_offset;):
3070 Change some warni to warns.
3072 * src/lex.c (literalchar): Use warns, not warni.
3074 1997-06-28 Richard Stallman <rms@gnu.org>
3076 * src/bison.s1: Add a Bison version comment.
3078 * src/main.c (fatal, warn, berror):
3081 1997-06-28 Richard Stallman <rms@gnu.org>
3083 * Makefile.in (bison_version): New variable.
3084 (dist): Use that variable.
3085 (bison.s1): Substitute the Bison version into bison.simple.
3087 * bison.simple: Add a Bison version comment.
3089 1997-06-18 Richard Stallman <rms@gnu.org>
3091 * src/main.c (fatal, warn, berror):
3092 Make error messages standard.
3093 (toomany): Improve error message text.
3095 * 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:
3096 new.h renamed to alloc.h.
3098 1997-06-18 Richard Stallman <rms@gnu.org>
3100 * Makefile.in: new.h renamed to alloc.h.
3102 1997-05-24 Richard Stallman <rms@gnu.org>
3104 * src/lex.c (literalchar):
3105 Fix the code for escaping \, " and '.
3107 (lex): Avoid trouble when there are many chars
3108 to discard in a char literal with just several chars in it.
3110 1997-05-17 Richard Stallman <rms@gnu.org>
3113 Use malloc, if using alloca is troublesome.
3114 (YYSTACK_USE_ALLOCA): New flag macro.
3115 Define it for some systems and compilers.
3116 (YYSTACK_ALLOC): New macro.
3117 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3118 If it was malloc'd, free it.
3120 1997-05-17 Richard Stallman <rms@gnu.org>
3123 Use malloc, if using alloca is troublesome.
3124 (YYSTACK_USE_ALLOCA): New flag macro.
3125 Define it for some systems and compilers.
3126 (YYSTACK_ALLOC): New macro.
3127 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3128 If it was malloc'd, free it.
3130 1997-04-23 Richard Stallman <rms@gnu.org>
3133 (alloca) [__hpux]: Always define as __builtin_alloca.
3135 1997-04-23 Richard Stallman <rms@gnu.org>
3138 (alloca) [__hpux]: Always define as __builtin_alloca.
3140 1997-04-22 Richard Stallman <rms@gnu.org>
3143 [__hpux]: Include alloca.h (right for HPUX 10)
3144 instead of declaring alloca (right for HPUX 9).
3146 * src/bison.s1 (__yy_memcpy):
3147 Declare arg `count' as unsigned int.
3148 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3150 1997-04-22 Richard Stallman <rms@gnu.org>
3153 [__hpux]: Include alloca.h (right for HPUX 10)
3154 instead of declaring alloca (right for HPUX 9).
3156 * bison.simple (__yy_memcpy):
3157 Declare arg `count' as unsigned int.
3158 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3160 1997-01-03 Richard Stallman <rms@gnu.org>
3162 * src/allocate.c: [__STDC__ or _MSC_VER]:
3163 Declare calloc and realloc to return void *.
3165 1997-01-02 Richard Stallman <rms@gnu.org>
3168 [_MSC_VER]: Include stdlib.h and process.h.
3169 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3171 * src/main.c (main): Return FAILURE as a value.
3172 (printable_version): Declare arg as int, not char.
3174 1997-01-02 Richard Stallman <rms@gnu.org>
3176 * Makefile.in (dist):
3177 Explicitly check for symlinks, and copy them.
3179 1996-12-19 Richard Stallman <rms@gnu.org>
3182 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3184 1996-12-18 Paul Eggert <eggert@gnu.org>
3186 * src/bison.s1 (yyparse):
3187 If __GNUC__ and YYPARSE_PARAM are both defined,
3188 declare yyparse to have a void * argument.
3190 1996-12-18 Paul Eggert <eggert@gnu.org>
3192 * bison.simple (yyparse):
3193 If __GNUC__ and YYPARSE_PARAM are both defined,
3194 declare yyparse to have a void * argument.
3196 1996-12-17 Richard Stallman <rms@gnu.org>
3198 * src/reduce.c (nbits): Add some casts.
3200 1996-08-12 Richard Stallman <rms@gnu.org>
3202 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3204 1996-08-12 Richard Stallman <rms@gnu.org>
3206 * bison.simple: Test _MSDOS as well as _MSDOS_.
3208 1996-07-31 Richard Stallman <rms@gnu.org>
3211 [__sun && __i386]: Include alloca.h.
3213 1996-07-31 Richard Stallman <rms@gnu.org>
3216 [__sun && __i386]: Include alloca.h.
3218 1996-07-30 Richard Stallman <rms@gnu.org>
3220 * src/bison.s1: Comment change.
3222 * src/bison.s1: Test _MSDOS_, not MSDOS.
3224 1996-07-30 Richard Stallman <rms@gnu.org>
3226 * bison.simple: Comment change.
3228 * bison.simple: Test _MSDOS_, not MSDOS.
3230 1996-06-01 Richard Stallman <rms@gnu.org>
3232 * 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:
3233 Insert `_' macro around many string constants.
3236 Insert `_' macro around many string constants.
3238 (main): Call setlocale, bindtextdomain and textdomain.
3240 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3241 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3242 [ENABLE_NLS]: Include libintl.h.
3243 [ENABLE_NLS] (gettext): Define.
3244 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3245 (N_, PACKAGE, LOCALEDIR): New macros.
3247 1996-06-01 Richard Stallman <rms@gnu.org>
3249 * POTFILES.in: New file.
3251 * Makefile.in (allocate.o):
3252 Define target explicitly.
3254 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3255 (LDFLAGS): Set to @LDFLAGS@.
3256 (configure): Run autoconf only if preceding `cd' succeeds.
3257 (bison.s1): Redirect output to temporary file then move the
3258 temporary to the target, rather than redirecting directly to bison.s1.
3259 (clean): Remove config.status and config.log.
3260 (distclean): Don't remove config.status here.
3262 1996-05-12 Richard Stallman <rms@gnu.org>
3265 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3267 1996-05-12 Richard Stallman <rms@gnu.org>
3270 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3272 1996-05-11 Richard Stallman <rms@gnu.org>
3274 * src/bison.s1 (__yy_memcpy):
3275 Really reorder the args, as was supposedly done on Feb 14 1995.
3276 (yyparse): Calls changed accordingly.
3278 1996-05-11 Richard Stallman <rms@gnu.org>
3280 * Makefile.in (dist): Don't use $(srcdir).
3282 * bison.simple (__yy_memcpy):
3283 Really reorder the args, as was supposedly done on Feb 14 1995.
3284 (yyparse): Calls changed accordingly.
3286 1996-01-27 Richard Stallman <rms@gnu.org>
3288 * src/output.c (output_rule_data):
3289 Test YYERROR_VERBOSE in the conditional
3290 around the definition of ttyname.
3292 1995-12-29 Richard Stallman <rms@gnu.org>
3295 Fix line numbers in #line commands.
3297 1995-12-29 Richard Stallman <rms@gnu.org>
3300 Fix line numbers in #line commands.
3302 1995-12-27 Richard Stallman <rms@gnu.org>
3304 * src/bison.s1 (YYPARSE_PARAM_DECL):
3305 In C++, make it always null.
3306 (YYPARSE_PARAM_ARG): New macro.
3307 (yyparse): Use YYPARSE_PARAM_ARG.
3309 1995-12-27 Richard Stallman <rms@gnu.org>
3311 * bison.simple (YYPARSE_PARAM_DECL):
3312 In C++, make it always null.
3313 (YYPARSE_PARAM_ARG): New macro.
3314 (yyparse): Use YYPARSE_PARAM_ARG.
3316 1995-11-29 Richard Stallman <rms@gnu.org>
3318 * doc/bison.texinfo:
3319 Describe literal string tokens, %raw, %no_lines, %token_table.
3321 1995-11-29 Daniel Hagerty <hag@gnu.org>
3323 * doc/bison.texinfo: Fixed update date
3325 1995-10-16 Richard Stallman <rms@gnu.org>
3327 * src/version.c: Version 1.25.
3329 1995-10-16 Richard Stallman <rms@gnu.org>
3331 * NEWS: *** empty log message ***
3333 1995-10-16 Richard Stallman <rms@gnu.org>
3335 * doc/bison.1, doc/bison.rnh:
3338 1995-10-15 Richard Stallman <rms@gnu.org>
3340 * src/vmsgetargs.c, src/getargs.c:
3341 Added -n, -k, and -raw switches.
3342 (noparserflag, toknumflag, rawtoknumflag): New variables.
3344 * src/symtab.h (SALIAS):
3345 New #define for adding aliases to %token.
3346 (struct bucket): Added `alias' field.
3348 * src/reduce.c (reduce_grammar):
3349 Revise error message.
3350 (print_notices): Remove final `.' from error message.
3352 * src/reader.c (reader_output_yylsp):
3354 (readgram): Use `#if 0' around code that accepted %command
3355 inside grammar rules: The documentation doesn't allow it,
3356 and it will fail since the %command processors scan for the next %.
3357 (parse_token_decl): Extended the %token
3358 declaration to allow a multi-character symbol as an alias.
3359 (parse_thong_decl): New function.
3360 (read_declarations): Added %thong declarations.
3361 (read_declarations): Handle NOOP to deal with allowing
3362 % declarations as another means to specify the flags.
3363 (readgram): Allow %prec prior to semantics embedded in a rule.
3364 (skip_to_char, read_declarations, copy_definition)
3365 (parse_token_decl, parse_start_decl, parse_type_decl)
3366 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3367 (get_type_name, copy_guard, copy_action, readgram)
3368 (get_type, packsymbols): Revised most error messages.
3369 Changed `fatal' to `warnxxx' to avoid aborting for error.
3370 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3371 (read_declarations): Improve the error message for
3372 an invalid character. Do not abort.
3373 (read_declarations, copy_guard, copy_action): Use
3374 printable_version to avoid unprintable characters in printed output.
3375 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3376 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3377 Allow the type of a non-terminal can be given
3378 more than once, as long as all specifications give the same type.
3381 (output_headers, output_trailers, output, output_gram)
3382 (output_rule_data): Implement noparserflag variable.
3383 Implement toknumflag variable.
3384 (output): Call reader_output_yylsp to output LTYPESTR.
3386 * src/main.c (main):
3387 If reader sees an error, don't process the grammar.
3388 (fatals): Updated to not use VARARGS1.
3389 (printable_version, int_to_string, warn, warni, warns, warnss)
3390 (warnsss): New error reporting functions. Avoid abort for error.
3393 Added THONG and NOOP for alias processing.
3394 Added SETOPT for the new code that allows setting options with %flags.
3397 Include getopt.h. Add some extern decls.
3398 (safegetc): New function to deal with EOF gracefully.
3399 (literalchar); new function to deal with reading \ escapes.
3400 (lex): Use literalchar.
3401 (lex): Implemented "..." tokens.
3402 (literalchar, lex, parse_percent_token): Made tokenbuffer
3403 always contain the token. This includes growing the token
3404 buffer while reading an integer.
3405 (parse_percent_token): Replaced if-else statement with percent_table.
3406 (parse_percent_token): Added % declarations as another
3407 way to specify the flags -n, -l, and -r. Also added hooks for
3408 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3409 major changes to files.c.
3410 (lex) Retain in the incoming stream a character following
3412 (skip_white_space, lex): Revised most error messages
3413 and changed fatal to warn to avoid aborting.
3414 (percent_table): Added %thong declarations.
3416 * src/gram.h: Comment changes.
3418 * src/files.c (openfiles, open_extra_files, done):
3420 and actfile file. Handle noparserflag. Both for -n switch.
3422 * src/conflicts.c (resolve_sr_conflict):
3423 Remove use of alloca.
3425 1995-06-01 Jim Meyering <meyering@gnu.org>
3427 * doc/bison.texinfo: *** empty log message ***
3429 1995-05-06 Richard Stallman <rms@gnu.org>
3431 * src/bison.s1: Comment change.
3433 1995-05-06 Richard Stallman <rms@gnu.org>
3435 * bison.simple: Comment change.
3437 1995-05-03 Richard Stallman <rms@gnu.org>
3439 * src/version.c: Version now 1.24.
3441 * src/bison.s1: Change distribution terms.
3443 * src/version.c: Version now 1.23.
3445 1995-05-03 Richard Stallman <rms@gnu.org>
3447 * doc/bison.texinfo:
3448 Rewrite "Conditions for Using Bison".
3449 Update version to 1.24.
3451 1995-05-03 Richard Stallman <rms@gnu.org>
3453 * bison.simple: Change distribution terms.
3455 1995-02-23 Richard Stallman <rms@gnu.org>
3457 * src/files.c: Test __VMS_POSIX as well as VMS.
3459 1995-02-14 Jim Meyering <meyering@gnu.org>
3461 * src/bison.s1 (__yy_memcpy):
3462 Renamed from __yy_bcopy to avoid
3463 confusion. Reverse FROM and TO arguments to be consistent with
3466 1995-02-14 Jim Meyering <meyering@gnu.org>
3468 * bison.simple (__yy_memcpy):
3469 Renamed from __yy_bcopy to avoid
3470 confusion. Reverse FROM and TO arguments to be consistent with
3473 1994-11-10 David J. MacKenzie <djm@gnu.org>
3479 * Makefile.in (DISTFILES): Include NEWS.
3481 * Makefile.in (DISTFILES):
3482 Include install-sh, not install.sh.
3484 * configure.in: Update to Autoconf v2 macro names.
3486 1994-10-05 David J. MacKenzie <djm@gnu.org>
3488 * Makefile.in: fix typo
3490 * Makefile.in (prefix, exec_prefix):
3491 Let configure set them.
3493 1994-09-28 David J. MacKenzie <djm@gnu.org>
3495 * Makefile.in: Set datadir to $(prefix)/share.
3497 1994-09-15 Richard Stallman <rms@gnu.org>
3500 Update copyright notice and GPL version.
3502 1994-09-15 Richard Stallman <rms@gnu.org>
3505 Update copyright notice and GPL version.
3507 1994-07-12 Richard Stallman <rms@gnu.org>
3509 * src/reduce.c, src/reader.c:
3512 1994-05-05 David J. MacKenzie <djm@gnu.org>
3514 * Makefile.in: entered into RCS
3516 1994-03-26 Richard Stallman <rms@gnu.org>
3518 * src/bison.s1: entered into RCS
3520 1994-03-26 Richard Stallman <rms@gnu.org>
3522 * bison.simple: entered into RCS
3524 1994-03-25 Richard Stallman <rms@gnu.org>
3526 * src/main.c: entered into RCS
3528 1994-03-24 Richard Stallman <rms@gnu.org>
3530 * src/conflicts.c: entered into RCS
3532 1994-01-02 Richard Stallman <rms@gnu.org>
3534 * Makefile.in: *** empty log message ***
3536 1993-11-21 Richard Stallman <rms@gnu.org>
3538 * src/bison.s1: *** empty log message ***
3540 1993-11-21 Richard Stallman <rms@gnu.org>
3542 * doc/bison.texinfo: entered into RCS
3544 * doc/bison.texinfo: *** empty log message ***
3546 1993-11-21 Richard Stallman <rms@gnu.org>
3548 * bison.simple: *** empty log message ***
3550 1993-10-25 David J. MacKenzie <djm@gnu.org>
3552 * doc/bison.texinfo: *** empty log message ***
3554 1993-10-19 Richard Stallman <rms@gnu.org>
3556 * src/bison.s1: *** empty log message ***
3558 1993-10-19 Richard Stallman <rms@gnu.org>
3560 * bison.simple: *** empty log message ***
3562 1993-10-14 Richard Stallman <rms@gnu.org>
3564 * src/bison.s1: *** empty log message ***
3566 1993-10-14 Richard Stallman <rms@gnu.org>
3568 * bison.simple: *** empty log message ***
3570 1993-09-14 David J. MacKenzie <djm@gnu.org>
3572 * doc/bison.texinfo: *** empty log message ***
3574 1993-09-13 Noah Friedman <friedman@gnu.org>
3576 * Makefile.in: *** empty log message ***
3578 1993-09-10 Richard Stallman <rms@gnu.org>
3580 * src/conflicts.c: *** empty log message ***
3582 * src/system.h: entered into RCS
3584 1993-09-10 Richard Stallman <rms@gnu.org>
3586 * doc/bison.1: entered into RCS
3588 1993-09-06 Noah Friedman <friedman@gnu.org>
3590 * src/version.c: entered into RCS
3592 1993-09-06 Noah Friedman <friedman@gnu.org>
3594 * Makefile.in: *** empty log message ***
3596 1993-07-30 David J. MacKenzie <djm@gnu.org>
3598 * Makefile.in: *** empty log message ***
3600 1993-07-24 Richard Stallman <rms@gnu.org>
3602 * src/bison.s1: *** empty log message ***
3604 1993-07-24 Richard Stallman <rms@gnu.org>
3606 * bison.simple: *** empty log message ***
3608 1993-07-08 David J. MacKenzie <djm@gnu.org>
3610 * Makefile.in: *** empty log message ***
3612 1993-07-04 Richard Stallman <rms@gnu.org>
3614 * src/bison.s1: *** empty log message ***
3616 1993-07-04 Richard Stallman <rms@gnu.org>
3618 * bison.simple: *** empty log message ***
3620 1993-06-26 David J. MacKenzie <djm@gnu.org>
3622 * src/getargs.c: entered into RCS
3624 1993-06-26 David J. MacKenzie <djm@gnu.org>
3626 * doc/bison.texinfo: *** empty log message ***
3628 * doc/bison.1: New file.
3630 1993-06-25 Richard Stallman <rms@gnu.org>
3632 * src/getargs.c: New file.
3634 1993-06-16 Richard Stallman <rms@gnu.org>
3636 * src/bison.s1: *** empty log message ***
3638 1993-06-16 Richard Stallman <rms@gnu.org>
3640 * bison.simple: *** empty log message ***
3642 1993-06-03 Richard Stallman <rms@gnu.org>
3644 * src/bison.s1: New file.
3646 1993-06-03 Richard Stallman <rms@gnu.org>
3648 * doc/bison.texinfo: *** empty log message ***
3650 1993-06-03 Richard Stallman <rms@gnu.org>
3652 * bison.simple: New file.
3654 1993-05-19 Richard Stallman <rms@gnu.org>
3656 * doc/bison.texinfo: New file.
3658 1993-05-07 Noah Friedman <friedman@gnu.org>
3660 * Makefile.in: *** empty log message ***
3662 1993-04-28 Noah Friedman <friedman@gnu.org>
3664 * src/reader.c: *** empty log message ***
3666 1993-04-23 Noah Friedman <friedman@gnu.org>
3668 * src/alloc.h: entered into RCS
3670 1993-04-20 David J. MacKenzie <djm@gnu.org>
3672 * src/version.c: *** empty log message ***
3674 * src/files.c, src/allocate.c:
3677 * src/reader.c: *** empty log message ***
3679 * src/lex.c: entered into RCS
3681 * src/conflicts.c: New file.
3683 * src/symtab.c: entered into RCS
3685 * src/alloc.h: New file.
3687 * src/LR0.c: entered into RCS
3689 1993-04-18 Noah Friedman <friedman@gnu.org>
3691 * src/reader.c: New file.
3693 * src/version.c: *** empty log message ***
3695 1993-04-18 Noah Friedman <friedman@gnu.org>
3697 * Makefile.in: *** empty log message ***
3699 1993-04-17 Noah Friedman <friedman@gnu.org>
3701 * Makefile.in: *** empty log message ***
3703 1993-04-15 Richard Stallman <rms@gnu.org>
3705 * src/main.c, src/files.c:
3708 1993-04-15 Noah Friedman <friedman@gnu.org>
3710 * configure.in: entered into RCS
3712 * configure.in: *** empty log message ***
3714 * configure.in: New file.
3716 1993-04-14 Richard Stallman <rms@gnu.org>
3718 * Makefile.in: New file.
3720 1993-04-13 Richard Stallman <rms@gnu.org>
3722 * src/version.c: New file.
3724 1993-03-25 Richard Stallman <rms@gnu.org>
3726 * src/output.c: entered into RCS
3728 1992-09-25 Richard Stallman <rms@gnu.org>
3730 * configure.bat: entered into RCS
3732 1992-06-22 Richard Stallman <rms@gnu.org>
3734 * src/vmsgetargs.c: entered into RCS
3736 1992-06-22 Richard Stallman <rms@gnu.org>
3738 * doc/bison.rnh: entered into RCS
3740 1992-04-20 David J. MacKenzie <djm@gnu.org>
3742 * README: entered into RCS
3744 1992-01-22 Richard Stallman <rms@gnu.org>
3746 * src/machine.h: entered into RCS
3748 1991-12-21 Richard Stallman <rms@gnu.org>
3750 * src/lalr.c, src/closure.c:
3753 1991-12-20 Richard Stallman <rms@gnu.org>
3755 * src/state.h: entered into RCS
3757 1991-12-18 Richard Stallman <rms@gnu.org>
3759 * src/print.c, src/nullable.c, src/derives.c:
3762 1991-11-03 David J. MacKenzie <djm@gnu.org>
3764 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3767 1988-09-09 Richard Stallman <rms@gnu.org>
3769 * src/bison.hairy: entered into RCS
3771 1987-12-16 Richard Stallman <rms@gnu.org>
3773 * REFERENCES: entered into RCS