1 2001-11-29 Marc Autret <autret_m@epita.fr>
3 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
4 of defining YYERROR_VERBOSE.
5 [AT_DATA]: $4 is now out of C declarations in the prologue.
7 2001-11-28 Marc Autret <autret_m@epita.fr>
9 * src/reader.c (parse_dquoted_param): New.
10 (parse_skel_decl): Use it.
11 * src/lex.h: Add its prototype.
12 * src/lex.c (literalchar): Become not static.
14 2001-11-28 Marc Autret <autret_m@epita.fr>
16 * src/output.h: And put its extern declaration here.
17 * src/output.c (error_verbose): Define here.
18 (prepare): Echo name modification.
19 * src/getargs.h: Clean its extern declaration.
20 * src/getargs.c (error_verbose_flag): Remove.
21 (getargs): Remove case 'e'.
22 * src/options.c (option_table): 'error-verbose' is now seen as simple
26 * src/reader.c (read_declarations): Remove case tok_include.
27 (parse_include_decl): Remove.
28 * src/lex.h (token_t): Remove tok_include.
29 * src/options.c (option_table): 'include' is now a simple command line
32 2001-11-28 Marc Autret <autret_m@epita.fr>
34 * src/bison.simple: Adjust muscle names.
35 * src/muscle_tab.c (muscle_init): Also rename the muscles.
36 * src/output.c (prepare): s/_/-/ for the muscles names.
37 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
39 2001-11-28 Marc Autret <autret_m@epita.fr>
41 * src/bison.simple: Fix debug.
42 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
44 2001-11-28 Akim Demaille <akim@epita.fr>
46 * src/LR0.c (shifts_new): New.
47 (save_shifts, insert_start_shift, augment_automaton): Use it.
49 2001-11-28 Akim Demaille <akim@epita.fr>
51 * src/closure.c (closure): `b' and `ruleno' denote the same value:
54 2001-11-28 Akim Demaille <akim@epita.fr>
56 * src/closure.c (closure): Instead of looping over word in array
57 then bits in words, loop over bits in array.
59 2001-11-28 Akim Demaille <akim@epita.fr>
61 * src/closure.c (closure): No longer optimize the special case
62 where all the bits of `ruleset[r]' are set to 0, to make the code
65 2001-11-28 Akim Demaille <akim@epita.fr>
67 * src/closure.c (closure): `r' and `c' are new variables, used to
68 de-obfuscate accesses to RULESET and CORE.
70 2001-11-28 Akim Demaille <akim@epita.fr>
72 * src/reduce.c (reduce_print): Use ngettext.
73 (dump_grammar): Improve the trace accuracy.
75 2001-11-28 Akim Demaille <akim@epita.fr>
77 * src/reduce.c (dump_grammar): Don't translate trace messages.
79 2001-11-28 Akim Demaille <akim@epita.fr>
81 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
82 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
83 as all tags are free'ed afterwards.
86 2001-11-27 Paul Eggert <eggert@twinsun.com>
88 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
89 use alloca when we didn't want to, and vice versa.
91 2001-11-27 Marc Autret <autret_m@epita.fr>
93 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
95 * src/output.c (prepare): Remove its update.
97 2001-11-27 Marc Autret <autret_m@epita.fr>
99 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
102 2001-11-27 Marc Autret <autret_m@epita.fr>
104 * src/bison.simple: Remove YYERROR_VERBOSE using.
107 * src/output.c (prepare): Give its final value.
108 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
109 * src/getargs.h: Add its extern declaration.
110 * src/getargs.c (error_verbose_flag): New int.
111 (getargs): Update to catch new case.
112 * src/options.c (option_table): 'error-verbose' is a new option.
115 2001-11-27 Akim Demaille <akim@epita.fr>
117 * src/system.h: Use intl/libgettext.h.
118 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
120 2001-11-27 Akim Demaille <akim@epita.fr>
122 * tests/torture.at (Exploding the Stack Size with Malloc):
123 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
125 2001-11-27 Akim Demaille <akim@epita.fr>
127 * src/files.c: Include error.h.
128 Reported by Hans Aberg.
130 2001-11-26 Marc Autret <autret_m@epita.fr>
132 * src/reader.c (parse_include_decl): New, not yet implemented.
133 (read_declarations): Add case tok_include.
134 * src/getargs.h (include): Add its extern definition.
135 * src/getargs.c (include): New const char *.
136 (getargs): Add case '-I'.
137 * src/options.c (option_table): Add include as command line and
139 * src/lex.h (token_t): Add tok_include.
141 2001-11-26 Akim Demaille <akim@epita.fr>
143 * src/reader.c (readgram): Make sure rules for mid-rule actions
144 have a lineno equal to that of their host rule.
145 Reported by Hans Aberg.
146 * tests/regression.at (Rule Line Numbers): New.
148 2001-11-26 Akim Demaille <akim@epita.fr>
150 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
153 2001-11-26 Akim Demaille <akim@epita.fr>
155 * src/complain.c, src/complain.h (error): Remove, provided by
158 2001-11-26 Akim Demaille <akim@epita.fr>
160 * src/reader.c (read_declarations): Don't abort on tok_illegal,
161 issue an error message.
162 * tests/regression.at (Invalid %directive): New.
163 Reported by Hans Aberg.
165 2001-11-26 Akim Demaille <akim@epita.fr>
167 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
168 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
170 2001-11-26 Akim Demaille <akim@epita.fr>
172 * src/conflicts.c (conflicts_print): Don't complain at all when
173 there are no reduce/reduce conflicts, and as many shift/reduce
174 conflicts as expected.
175 * tests/regression.at (%expect right): Adjust.
177 2001-11-23 Akim Demaille <akim@epita.fr>
179 * lib/alloca.c: Update, from fileutils.
181 2001-11-23 Akim Demaille <akim@epita.fr>
183 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
185 2001-11-23 Akim Demaille <akim@epita.fr>
187 * src/system.h: Include alloca.h.
188 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
190 2001-11-23 Akim Demaille <akim@epita.fr>
192 * src/print_graph.c (print_actions): Remove `rule', unused.
193 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
194 pacify GCC's signed < unsigned warnings.
195 * src/closure.c (itemsetsize): Likewise.
196 * src/reader.c (symbol_list_new): Static.
198 2001-11-23 Akim Demaille <akim@epita.fr>
200 Attaching lineno to buckets is stupid, since only one copy of each
201 symbol is kept, only the line of the first occurrence is kept too.
203 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
204 * src/reader.c (rline_allocated): Remove, unused.
205 (symbol_list): Have a `line' member.
206 (symbol_list_new): New.
208 * src/print.c (print_grammar): Output the rule line numbers.
209 * tests/regression.at (Solved SR Conflicts)
210 (Unresolved SR Conflicts): Adjust.
211 Reported by Hans Aberg.
213 2001-11-22 Marc Autret <autret_m@epita.fr>
215 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
217 2001-11-22 Marc Autret <autret_m@epita.fr>
219 * src/muscle_tab.c (muscle_init): Remove initialization of
221 * src/output.c (output_master_parser): Do it here.
223 2001-11-20 Akim Demaille <akim@epita.fr>
226 * configure.in (ALL_LINGUAS): Adjust.
227 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
228 longer contains strings to translate.
230 2001-11-19 Akim Demaille <akim@epita.fr>
232 * src/conflicts.c (conflicts_print): Add a missing \n.
234 2001-11-19 Akim Demaille <akim@epita.fr>
236 * src/nullable.c (nullable_print): New.
237 (set_nullable): Call it when tracing.
238 Better locality of variables.
240 2001-11-19 Akim Demaille <akim@epita.fr>
242 * src/print.c (print_actions): Better locality of variables.
244 2001-11-19 Akim Demaille <akim@epita.fr>
246 * src/derives.c (print_derives): Fix and enrich.
247 * src/closure.c (print_fderives): Likewise.
249 2001-11-19 Akim Demaille <akim@epita.fr>
251 * src/closure.c (itemsetend): Remove, replaced with...
254 2001-11-19 Akim Demaille <akim@epita.fr>
256 * src/LR0.c (kernel_end): Remove, replaced with...
259 2001-11-19 Akim Demaille <akim@epita.fr>
261 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
264 2001-11-19 Akim Demaille <akim@epita.fr>
266 * src/closure.c (closure): Use arrays instead of pointers to clarify.
268 2001-11-19 Akim Demaille <akim@epita.fr>
270 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
272 * src/LR0.c: Likewise.
273 (allocate_itemsets): Use arrays instead of pointers to clarify.
275 2001-11-19 Akim Demaille <akim@epita.fr>
277 * src/getargs.c (statistics_flag): Replace with...
279 (longopts): Accept --trace instead of --statistics.
280 * src/getargs.h, src/options.c: Adjust.
281 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
282 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
284 2001-11-19 Akim Demaille <akim@epita.fr>
286 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
287 pointers to clarify the code.
288 (save_reductions, save_shifts): Factor common parts of alternatives.
290 2001-11-19 Akim Demaille <akim@epita.fr>
292 * src/LR0.c (new_state, get_state): Complete TRACE code.
293 * src/closure.c: Include `reader.h' to get `tags', needed by the
295 Rename the conditional DEBUG as TRACE.
296 Output consistently TRACEs to stderr, not stdout.
297 * src/derives.c: Likewise.
298 * src/reduce.c: (inaccessable_symbols): Using if is better style
300 Use `#if TRACE' instead of `#if 0' for tracing code.
302 2001-11-19 Akim Demaille <akim@epita.fr>
304 * src/system.h (LIST_FREE, shortcpy): New.
305 * src/LR0.c: Use them.
306 * src/output.c (free_itemsets, free_reductions, free_shifts):
307 Remove, replaced by LIST_FREE.
309 2001-11-19 Akim Demaille <akim@epita.fr>
311 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
312 (REDUCTIONS_ALLOC): New.
313 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
316 2001-11-19 Akim Demaille <akim@epita.fr>
318 * src/LR0.c (new_state): Complete trace code.
319 * src/nullable.c (set_nullable): Don't translate traces.
321 2001-11-19 Akim Demaille <akim@epita.fr>
323 * src/print_graph.c (print_core): Better locality of variables.
324 * src/print.c (print_core): Likewise.
326 2001-11-19 Akim Demaille <akim@epita.fr>
328 * src/vcg.c: You do the output, so you are responsible of the
329 handling of VCG syntax, in particular: use quotearg.
330 * src/print_graph.c: Don't.
331 (print_actions): Don't output the actions as part of the nodes,
332 since that's the job of the edges.
333 (print_state): Don't output by hand: fill the node description,
334 and ask for its output.
336 2001-11-19 Akim Demaille <akim@epita.fr>
338 * src/bison.simple (yyparse): When verbosely reporting an error,
339 no longer put additional quotes around token names.
340 * tests/calc.at: Adjust.
342 2001-11-19 Akim Demaille <akim@epita.fr>
344 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
345 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
346 * src/output.c: Adjust.
348 2001-11-19 Akim Demaille <akim@epita.fr>
350 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
352 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
354 2001-11-19 Akim Demaille <akim@epita.fr>
356 * src/gram.h (rule_t): New.
358 (rrhs, rlhs): Remove, part of state_t.
359 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
360 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
361 * src/reader.c, src/reduce.c: Adjust.
363 2001-11-19 Akim Demaille <akim@epita.fr>
365 * src/reader.c (symbols_output): New, extracted from...
369 2001-11-19 Akim Demaille <akim@epita.fr>
371 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
372 (maxrhs): this new function.
374 2001-11-19 Akim Demaille <akim@epita.fr>
376 * src/lalr.c (F): New macro to access the variable F.
379 2001-11-19 Akim Demaille <akim@epita.fr>
381 * src/lalr.h (LA): New macro to access the variable LA.
382 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
383 * src/lalr.c: Adjust.
385 2001-11-19 Akim Demaille <akim@epita.fr>
387 * src/lalr.c (initialize_LA): Only initialize LA. Let...
388 (set_state_table): handle the `lookaheads' members.
390 2001-11-19 Akim Demaille <akim@epita.fr>
392 * src/lalr.h (lookaheads): Removed array, whose contents is now
394 (state_t): this structure.
395 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
398 2001-11-19 Akim Demaille <akim@epita.fr>
400 * src/lalr.h (consistent): Removed array, whose contents is now
402 (state_t): this structure.
403 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
406 2001-11-19 Akim Demaille <akim@epita.fr>
408 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
409 contents are now members of...
410 (state_t): this structure.
411 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
414 2001-11-19 Akim Demaille <akim@epita.fr>
416 * src/lalr.h (state_t): New.
417 (state_table): Be a state_t * instead of a core **.
418 (accessing_symbol): Remove, part of state_t.
419 * src/lalr.c: Adjust.
420 (set_accessing_symbol): Merge into...
421 (set_state_table): this.
422 * src/print_graph.c, src/conflicts.c: Adjust.
424 2001-11-14 Akim Demaille <akim@epita.fr>
426 * tests/calc.at, tests/output.at, tests/regression.at,
427 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
428 now the tests are run in private dirs, therefore AC_CLEANUP and
429 family can be simplified to 0-ary.
430 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
431 use abs. path to find config.h.
432 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
433 stderr, there can be way too much random noise.
434 Instead pass -Werror to GCC and rely on the exit status.
435 Reported by Wolfram Wagner.
437 2001-11-14 Akim Demaille <akim@epita.fr>
439 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
440 defined only if yyoverflow is defined, to avoid `warning: unused
442 Reported by The Test Suite.
444 2001-11-14 Akim Demaille <akim@epita.fr>
446 * src/print.c: Include reduce.h.
447 Reported by Hans Aberg.
449 2001-11-14 Akim Demaille <akim@epita.fr>
451 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
452 Revert a previous patch: these are really const.
453 * src/conflicts.c (conflict_report): Additional useless pair of
454 braces to pacify GCC's warnings for `if () if () {} else {}'.
455 * src/lex.c (parse_percent_token): Replace equal_offset with
458 Be sure to strdup `arg' when used, since there is no reason for
459 token_buffer not to change.
461 2001-11-14 Akim Demaille <akim@epita.fr>
463 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
465 * src/main.c (main): Use them.
466 Suggested by Hans Aberg.
468 2001-11-12 Akim Demaille <akim@epita.fr>
470 * src/system.h (ngettext): Now that we use ngettext, be sure to
471 provide a default definition when NLS are not used.
473 2001-11-12 Akim Demaille <akim@epita.fr>
475 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
476 Use @kbd to denote user input.
477 (Language and Grammar): ANSIfy the example.
478 Adjust its layout for info/notinfo.
479 (Location Tracking Calc): Output error messages to stderr.
480 Output locations in a more GNUtically correct way.
481 Fix a couple of Englishos.
482 Adjust @group/@end group pairs.
484 2001-11-12 Akim Demaille <akim@epita.fr>
486 %expext was not functioning at all.
488 * src/conflicts.c (expected_conflicts): Set to -1.
489 (conflict_report): Use ngettext.
490 (conflicts_print): Check %expect and make its violation an error.
491 * doc/bison.texinfo (Expect Decl): Adjust.
492 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
493 * tests/regression.at (%expect not enough, %expect right)
494 (%expect too much): New.
496 2001-11-12 Akim Demaille <akim@epita.fr>
498 * tests/regression.at (Conflicts): Rename as...
499 (Unresolved SR Conflicts): this.
500 (Solved SR Conflicts): New.
502 2001-11-12 Akim Demaille <akim@epita.fr>
504 * src/reduce.c (print_results): Rename as...
505 (reduce_output): This.
506 Output to OUT, passed as argument, instead of output_obstack.
507 (dump_grammar): Likewise.
510 (reduce_grammar): No longer call reduce_output, since...
511 * src/print.c (print_results): do it.
512 * src/main.c (main): Call reduce_free;
514 2001-11-12 Akim Demaille <akim@epita.fr>
516 * src/conflicts.c (print_reductions): Accept OUT as argument.
517 Output to it, not to output_obstack.
518 * src/print.c (print_actions): Adjust.
520 2001-11-12 Akim Demaille <akim@epita.fr>
522 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
523 the result instead of using...
524 (src_total, rrc_total, src_count, rrc_count): Remove.
525 (any_conflicts): Remove.
526 (print_conflicts): Split into...
527 (conflicts_print, conflicts_output): New.
528 * src/conflicts.h: Adjust.
529 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
530 * src/print.c (print_grammar): Issue `\n' between two rules.
531 * tests/regression.at (Conflicts): New.
532 Reported by Tom Lane.
534 2001-11-12 Akim Demaille <akim@epita.fr>
536 * tests/regression.at (Invalid input): Remove, duplicate with
537 ``Invalid input: 1''.
539 2001-11-12 Akim Demaille <akim@epita.fr>
541 * tests/torture.at (AT_DATA_STACK_TORTURE)
542 (Exploding the Stack Size with Alloca)
543 (Exploding the Stack Size with Malloc): New.
545 2001-11-12 Akim Demaille <akim@epita.fr>
547 * src/bison.simple (YYSTACK_REALLOC): New.
548 (yyparse) [!yyoverflow]: Use it and free the old stack.
549 Reported by Per Allansson.
551 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
553 * src/bison.simple: Define type yystype instead of YYSTYPE, and
554 define CPP macro, which substitute YYSTYPE by yystype.
555 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
556 with yyltype/YYLTYPE. This allows inclusion of the generated
557 header within the parser if the compiler, such as GGC, accepts
558 multiple equivalent #defines.
561 2001-11-05 Akim Demaille <akim@epita.fr>
563 * src/reader.c (symbols_output): New, extracted from...
567 2001-11-05 Akim Demaille <akim@epita.fr>
569 * src/lex.c (parse_percent_token): s/quotearg/quote/.
571 2001-11-05 Akim Demaille <akim@epita.fr>
573 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
576 2001-11-05 Akim Demaille <akim@epita.fr>
578 * src/options.h (struct option_table_struct): set_flags is void*.
579 * src/options.c (longopts): Support `--output' and `%output'.
581 * src/lex.h (tok_setopt): Remove, replaced with...
582 (tok_intopt, tok_stropt): these new guys.
583 * src/lex.c (getopt.h): Not needed.
584 (token_buffer, unlexed_token_buffer): Not const.
585 (percent_table): Promote `-' over `_' in directive names.
586 Active `%name-prefix', `file-prefix', and `output'.
587 (parse_percent_token): Accept possible arguments to directives.
588 Promote `-' over `_' in directive names.
590 2001-11-04 Akim Demaille <akim@epita.fr>
592 * doc/bison.texinfo (Decl Summary): Split the list into
593 `directives for grammars' and `directives for bison'.
595 Add description of `%name-prefix', `file-prefix', and `output'.
596 Promote `-' over `_' in directive names.
597 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
598 Simplify the description of `--name-prefix'.
599 Promote `-' over `_' in directive names.
600 Promote `--output' over `--output-file'.
601 Fix the description of `--defines'.
602 * tests/output.at: Exercise %file-prefix and %output.
604 2001-11-02 Akim Demaille <akim@epita.fr>
606 * doc/refcard.tex: Update.
608 2001-11-02 Akim Demaille <akim@epita.fr>
610 * src/symtab.h (SUNDEF): New.
611 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
612 stand for `uninitialized', instead of 0.
613 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
614 * src/lex.c (lex): Adjust.
616 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
618 Let yylex return it instead of a plain 0.
619 Reported by Dick Streefland.
621 2001-11-02 Akim Demaille <akim@epita.fr>
623 * tests/regression.at (Mixing %token styles): New test.
625 2001-11-02 Akim Demaille <akim@epita.fr>
627 * src/reader.c (parse_thong_decl): Formatting changes.
628 (token_translations_init): New, extracted from...
632 2001-11-01 Akim Demaille <akim@epita.fr>
634 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
635 Check that `9foo.y' produces correct cpp guards.
636 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
640 2001-11-01 Akim Demaille <akim@epita.fr>
642 * tests/regression.at (Invalid input: 2): New.
643 * src/lex.c (unlexed_token_buffer): New.
644 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
648 2001-11-01 Akim Demaille <akim@epita.fr>
650 * tests/calc.at: Catch up with 1.30.
651 * configure.in: Bump to 1.49a.
652 Adjust to newer Autotest.
654 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
656 * src/conflicts.c: Move global variables rrc_total and src_total ...
657 (print_conflicts): here.
658 * src/output.c (output): Free global variable user_toknums.
659 * src/lex.c (token_obstack): Become static.
661 2001-10-18 Akim Demaille <akim@epita.fr>
663 * tests/atlocal.in (GCC): Add.
664 * tests/calc.at: s/m4_match/m4_bmatch/.
665 s/m4_patsubst/m4_bpatsubst/.
666 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
667 * configure.in: AC_SUBST(GCC).
669 2001-10-14 Marc Autret <autret_m@epita.fr>
671 * src/options.c (create_long_option_table): Fix.
673 2001-10-10 Akim Demaille <akim@epita.fr>
675 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
677 2001-10-04 Akim Demaille <akim@epita.fr>
679 * src/reader.c (parse_union_decl): Push the caracters in
680 union_obstack, not attrs_obstack.
682 2001-10-04 Akim Demaille <akim@epita.fr>
684 Merge in the branch 1.29.
686 * src/reader.c (packsymbols): Use a temporary obstack for
687 `%%tokendef', since output_stack is already used elsewhere.
689 2001-10-02 Akim Demaille <akim@epita.fr>
693 2001-10-02 Akim Demaille <akim@epita.fr>
697 2001-10-02 Akim Demaille <akim@epita.fr>
699 * tests/regression.at (Invalid CPP headers): New.
700 From Alexander Belopolsky.
701 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
703 2001-10-02 Akim Demaille <akim@epita.fr>
705 * tests/regression.at (Invalid input): New.
706 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
709 2001-10-02 Akim Demaille <akim@epita.fr>
711 * tests/calc.at: Now that --debug works, the tests must be adjusted.
713 2001-10-02 Akim Demaille <akim@epita.fr>
715 * src/output.c (output_parser): Assert `skeleton'.
716 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
720 2001-10-01 Marc Autret <autret_m@epita.fr>
722 * src/lex.h: Echo modifications.
723 * src/lex.c (unlex): Parameter is now token_t.
726 2001-10-01 Marc Autret <autret_m@epita.fr>
728 * src/main.c: Include lex.h.
731 2001-09-29 Akim Demaille <akim@epita.fr>
733 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
735 2001-09-28 Akim Demaille <akim@epita.fr>
737 * tests/testsuite.at: Update to newer Autotest.
738 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
740 2001-09-27 Akim Demaille <akim@epita.fr>
742 Position independent wrapper.
744 * tests/bison: Remove.
745 * tests/bison.in: New.
746 * configure.in: Adjust.
748 2001-09-27 Paul Eggert <eggert@twinsun.com>
750 Port quotearg fixes from tar 1.13.24.
752 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
754 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
755 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
757 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
758 * m4/mbrtowc.m4: New file.
759 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
760 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
762 2001-09-27 Akim Demaille <akim@epita.fr>
766 2001-09-27 Akim Demaille <akim@epita.fr>
770 2001-09-25 Akim Demaille <akim@epita.fr>
772 * src/system.h: Include `xalloc.h'.
773 Remove it from the C files.
774 * src/files.c (output_files): Free the obstacks.
775 * src/lex.c (init_lex): Rename as...
778 * src/main.c (main): Use it.
780 2001-09-24 Marc Autret <autret_m@epita.fr>
782 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
783 to output informations in fout (FILE*).
784 (open_graph, close_graph): Likewise.
785 (output_graph, output_edge, output_node): Likewise.
786 * src/vcg.h: Update function prototypes.
787 * src/print_graph.c (print_graph): Open output graph file.
788 (print_actions): Adjust.
789 * src/files.h: Remove extern declaration.
790 * src/files.c: Remove graph_obstack declaration.
791 (open_files): Remove graph_obstack initialization.
792 (output_files): Remove graph_obstack saving.
794 2001-09-24 Marc Autret <autret_m@epita.fr>
796 * src/files.c (compute_output_file_names): Fix.
798 2001-09-24 Marc Autret <autret_m@epita.fr>,
799 Akim Demaille <akim@epita.fr>
801 * src/reader.c (reader): Remove call to free_symtab ().
802 * src/main.c (main): Call it here.
804 * src/conflicts.c (initialize_conflicts): Rename as...
805 (solve_conflicts): this.
806 * src/print.c (print_core, print_actions, print_state)
807 (print_grammar): Dump to a file instead a `output_obstack'.
808 (print_results): Dump `output_obstack', and then proceed with the
810 * src/files.c (compute_output_file_names, close_files): New.
811 (output_files): Adjust.
812 * src/main.c (main): Adjust.
814 2001-09-23 Marc Autret <autret_m@epita.fr>
816 * src/files.c (compute_header_macro): Computes header macro name
817 from spec_defines_file when given.
819 2001-09-23 Marc Autret <autret_m@epita.fr>
821 * src/files.c (output_files): Add default extensions.
823 2001-09-22 Akim Demaille <akim@epita.fr>
825 * src/conflicts.c (finalize_conflicts): Rename as...
826 (free_conflicts): this.
828 2001-09-22 Akim Demaille <akim@epita.fr>
830 * src/gram.c (gram_free): Rename back as...
832 (output_token_translations): Free `token_translations'.
833 * src/symtab.c (free_symtab): Free the tag field.
835 2001-09-22 Akim Demaille <akim@epita.fr>
837 Remove `translations' as it is always set to true.
839 * src/gram.h: Adjust.
840 * src/reader.c (packsymbols, parse_token_decl): Adjust
841 * src/print.c (print_grammar): Adjust.
842 * src/output.c (output_token_translations): Adjust.
843 * src/lex.c (lex): Adjust.
844 * src/gram.c: Be sure the set pointers to NULL.
845 (dummy): Rename as...
848 2001-09-22 Akim Demaille <akim@epita.fr>
850 * configure.in: Invoke AM_LIB_DMALLOC.
851 * src/system.h: Use dmalloc.
852 * src/LR0.c: Be sure to have pointers initialized to NULL.
853 (allocate_itemsets): Allocate kernel_items only if needed.
855 2001-09-22 Akim Demaille <akim@epita.fr>
857 * configure.in: Bump to 1.29b.
858 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
859 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
860 need xmalloc.c in calc.y.
863 2001-09-21 Akim Demaille <akim@epita.fr>
866 * Makefile.maint, config/config.guess, config/config.sub,
867 * config/missing: Update from masters.
868 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
870 * configure.in (ALL_LINGUAS): Add `tr'.
872 2001-09-21 Akim Demaille <akim@epita.fr>
874 * tests/Makefile.am (package.m4): Move to...
875 ($(srcdir)/$(TESTSUITE)): here.
877 2001-09-20 Akim Demaille <akim@epita.fr>
879 * src/complain.c: No longer try to be standalone: use system.h.
880 Don't assume __STDC__ is defined to 1. Just test if it is defined.
881 * src/complain.h: Likewise.
882 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
883 Remove the unused variable `n'.
884 From Albert Chin-A-Young.
886 2001-09-18 Marc Autret <autret_m@epita.fr>
888 * doc/bison.1: Update.
889 * doc/bison.texinfo (Bison Options): Update --defines and --graph
891 (Option Cross Key): Update.
894 2001-09-18 Marc Autret <autret_m@epita.fr>
896 * tests/regression.at: New test (comment in %union).
898 2001-09-18 Marc Autret <autret_m@epita.fr>
900 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
902 Reported by Keith Browne.
904 2001-09-18 Marc Autret <autret_m@epita.fr>
906 * tests/output.at: Add tests for --defines and --graph.
908 2001-09-18 Marc Autret <autret_m@epita.fr>
910 * tests/output.at: Removes tests of %{header,src}_extension features.
912 2001-09-18 Akim Demaille <akim@epita.fr>
914 * tests/Makefile.am (package.m4): New.
915 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
916 (_AT_CHECK_CALC_ERROR): Likewise.
917 Factor the `, ' part of verbose error messages.
919 2001-09-18 Marc Autret <autret_m@epita.fr>
921 * src/getargs.c (longopts): Declare --defines and --graph as options
922 with optional arguments.
923 * src/files.h: Add extern declarations.
924 * src/files.c (spec_graph_file, spec_defines_file): New.
925 (output_files): Update.
926 Remove CPP-outed code.
928 2001-09-18 Marc Autret <autret_m@epita.fr>
930 Turn off %{source,header}_extension feature.
932 * src/files.c (compute_exts_from_gf): Update.
933 (compute_exts_from_src): Update.
934 (output_files): CPP-out useless code.
935 * src/files.h: Remove {header,source}_extension extern declarations.
936 * src/reader.c (parse_dquoted_param): CPP-out.
937 (parse_header_extension_decl): Remove.
938 (parse_source_extension_decl): Remove.
939 (read_declarations): Remove cases tok_{hdrext,srcext}.
940 * src/lex.c (percent_table): Remove {header,source}_extension entries.
941 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
943 2001-09-10 Akim Demaille <akim@epita.fr>
945 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
946 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
947 (AT_CHECK_OUTPUT): this.
948 Merely check ls' exit status, its output is useless.
950 2001-09-10 Akim Demaille <akim@epita.fr>
952 * tests/calc.at: Use m4_match.
953 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
955 2001-09-10 Marc Autret <autret_m@epita.fr>,
956 Akim Demaille <akim@epita.fr>
958 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
960 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
962 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
963 * src/lex.h: Adjust prototype.
964 (token_t): Add `tok_undef'.
965 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
966 (parse_percent_token): Now returns token_t.
967 Add default statement in switch.
968 (lex): Separate `c' as an input variable, from the token_t result
970 (unlexed): Is a token_t.
972 2001-09-10 Akim Demaille <akim@epita.fr>
974 * configure.in: Bump to 1.29a.
976 2001-09-07 Akim Demaille <akim@epita.fr>
980 2001-08-30 Akim Demaille <akim@epita.fr>
982 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
983 * m4/atconfig.m4: Remove.
984 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
986 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
987 m4_if, m4_patsubst, and m4_regexp.
988 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
989 `input' file instead of echo.
991 2001-08-29 Akim Demaille <akim@epita.fr>
995 2001-08-29 Akim Demaille <akim@epita.fr>
999 2001-08-29 Paul Eggert <eggert@twinsun.com>
1001 * src/bison.simple (yyparse): Don't take the address of an
1002 item before the start of an array, as that doesn't conform to
1005 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1007 * doc/bison.texinfo (Location Tracking Calc): New node.
1009 2001-08-29 Paul Eggert <eggert@twinsun.com>
1011 * src/output.c (output): Do not define const, as this now
1012 causes more problems than it cures.
1014 2001-08-29 Akim Demaille <akim@epita.fr>
1016 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1018 Be sure to tag the `detailmenu'.
1020 2001-08-29 Akim Demaille <akim@epita.fr>
1022 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1023 download in a tmp dir.
1025 2001-08-28 Marc Autret <autret_m@epita.fr>
1027 * config/depcomp: New file.
1029 2001-08-28 Marc Autret <autret_m@epita.fr>
1031 * doc/bison.1 (mandoc): Adjust.
1032 From Juan Manuel Guerrero.
1034 2001-08-28 Marc Autret <autret_m@epita.fr>
1036 * src/print_graph.c (print_state): Fix.
1038 2001-08-27 Marc Autret <autret_m@epita.fr>
1040 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1042 Echo modifications to the functions prototypes.
1043 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1045 2001-08-27 Marc Autret <autret_m@epita.fr>
1047 * src/vcg.c: Include `xalloc.h'.
1048 (add_colorentry): New.
1049 (add_classname): New.
1050 (add_infoname): New.
1051 * src/vcg.h: Add new prototypes.
1053 2001-08-27 Akim Demaille <akim@epita.fr>
1055 * Makefile.maint: Sync. again with CVS Autoconf.
1057 2001-08-27 Akim Demaille <akim@epita.fr>
1059 * Makefile.maint: Formatting changes.
1060 (po-update, cvs-update, update): New targets.
1063 2001-08-27 Akim Demaille <akim@epita.fr>
1065 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1066 * Makefile.maint: Sync. with CVS Autoconf.
1068 2001-08-27 Marc Autret <autret_m@epita.fr>
1070 * src/vcg.h (struct infoname_s): New.
1071 (struct colorentry_s): New.
1072 (graph_s): New fields {vertical,horizontal}_order in structure.
1073 Add `infoname' field.
1074 Add `colorentry' field;
1075 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1076 (G_HORIZONTAL_ORDER): New.
1078 (G_COLORENTRY): New.
1079 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1080 Add output of `infoname'.
1081 Add output of `colorentry'.
1083 2001-08-27 Marc Autret <autret_m@epita.fr>
1085 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1086 This one shadowed a global parameter.
1088 2001-08-24 Marc Autret <autret_m@epita.fr>
1090 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1091 instead of `unsigned'.
1092 (print_state): Do not call obstack_object_size () in obstack_grow ()
1093 to avoid macro variables shadowing.
1095 2001-08-23 Marc Autret <autret_m@epita.fr>
1097 * src/lex.c (percent_table): Typo: s/naem/name/.
1099 Normalize new options declarations.
1101 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1103 * tests/suite.at: Exercise %header_extension and %source_extension.
1105 2001-08-16 Marc Autret <autret_m@epita.fr>
1107 * src/reader.c (parse_dquoted_param): New.
1108 (parse_header_extension_decl): Use it.
1109 (parse_source_extension_decl): Likewise.
1111 2001-08-16 Marc Autret <autret_m@epita.fr>
1113 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1114 (get_xxxx_str): Use assert () instead of complain ().
1115 Remove return invokations in default cases.
1116 (get_decision_str): Modify default behaviour. Remove second argument.
1117 Echo modifications on calls.
1118 (output_graph): Fix.
1120 2001-08-16 Marc Autret <autret_m@epita.fr>
1122 * src/getargs.c (usage): Update with ``-g, --graph''.
1124 2001-08-16 Marc Autret <autret_m@epita.fr>
1126 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1127 (Option Cross Key): Likewise.
1128 * doc/bison.1: Update.
1130 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1132 * src/output.c (output_master_parser): Don't finish action_obstack.
1133 (output_parser): Don't care about the muscle action, here.
1134 (prepare): Copy the action_obstack in the action muscle.
1135 (output): Free action_obstack.
1137 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1139 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1140 will contain `%union' declaration.
1141 (parse_union_decl): Delete #line directive output.
1142 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1143 informations about %union.
1144 (parse_union_decl): Copy the union_obstack in the muscle stype.
1145 * src/bison.simple: Add new #line directive.
1146 Add typdef %%stype YYSTYPE.
1148 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1150 * src/bison.simple: Add new `#line' directive.
1152 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1154 * src/bison.simple: New `#line' directive.
1155 * src/output.c (output_parser): Support new dynamic muscle input_line.
1157 2001-09-22 Marc Autret <autret_m@epita.fr>
1159 * src/output.c (output_master_parser): New.
1160 (output_parser): Be more re-entrant.
1162 2001-09-21 Marc Autret <autret_m@epita.fr>
1164 * src/reader.c (copy_definition, parse_union_decl): Update and use
1166 (copy_action): Likewise.
1167 Use obstack_1grow ().
1168 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1170 2001-09-21 Marc Autret <autret_m@epita.fr>
1172 * src/options.c (option_table): Adjust.
1173 * src/lex.c (parse_percent_token): Fix.
1175 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1177 * src/options.c (symtab.h): Include it, need by lex.h.
1179 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1181 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1182 is now an option_table_struct*.
1183 (option_strcmp): New function option_strcmp.
1184 (parse_percent_token): Call option_strcmp.
1185 * src/getargs.c (xalloc.h, options.h): Include it.
1186 (getargs): Call create_long_option_table.
1187 (getargs): Free longopts at the end of the function.
1188 (shortopts): Move in options.c.
1189 * src/options.c (create_long_option_table): New function. Convert
1190 information from option_table to option structure.
1191 * src/reader.c (options.h): Include it.
1193 * src/Makefile.am: Adjust.
1194 * src/options.c (option_table): Create from longopts and percent_table.
1195 * src/getargs.c (longopts): Delete.
1196 * src/lex.c (struct percent_table_struct): Delete.
1197 (percent_table): Delete.
1198 (options.h): Include it.
1199 * src/options.c: Create.
1200 * src/options.h: Create.
1201 Declare enum opt_access_e.
1202 Define struct option_table_struct.
1204 2001-09-20 Marc Autret <autret_m@epita.fr>
1206 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1209 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1211 * src/bison.simple: s/%%filename/%%skeleton.
1212 * src/muscle_tab.c (getargs.h): Include it.
1213 (muscle_init): Insert new muscle skeleton.
1215 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1217 * src/output.c (output_parser): Delete unused variable actions_dumped.
1219 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1221 * src/output.c (output): Delete call to reader_output_yylsp.
1222 * src/reader.c (reader): Likewise.
1223 * src/reader.h: Delete declaration of reader_output_yylsp.
1225 2001-09-02 Marc Autret <autret_m@epita.fr>
1227 * src/reader.c: Include muscle_tab.h.
1228 (parse_union_decl): Update.
1229 (parse_macro_decl): Rename parse_muscle_decl.
1230 Update to use renamed functions and variable.
1231 (read_declarations, copy_action, read_additionnal_code, : Updated
1232 with correct variables and functions names.
1233 (packsymbols, reader): Likewise.
1235 * src/reader.h (muscle_obstack): Extern declaration update.
1237 * src/output.c: Include muscle_tab.h
1238 In all functions using macro_insert, change by using muscle_insert ().
1239 (macro_obstack): Rename muscle_obstack.
1240 Echo modifications in the whole file.
1241 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1242 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1243 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1245 * src/muscle_tab.h: Update double inclusion macros.
1246 (macro_entry_s): Rename muscle_entry_s.
1249 * src/muscle_tab.c: Include muscle_tab.h.
1250 Rename macro_tabble to muscle_table.
1251 (mhash1, mhash2, mcmp): Use muscle_entry.
1252 (macro_init): Rename muscle_init. Update.
1253 (macro_insert): Rename muscle_insert. Update.
1254 (macro_find): Rename muscle_find. Update.
1256 * src/main.c: Include muscle_tab.h.
1257 (main): Call muscle_init ().
1258 * src/Makefile.am (bison_SOURCES): Echo modifications.
1260 2001-09-02 Marc Autret <autret_m@epita.fr>
1262 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1264 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1266 2001-09-02 Marc Autret <autret_m@epita.fr>
1268 * src/macrotab.c, src/macrotab.h: Remove.
1270 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1272 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1275 2001-09-01 Marc Autret <autret_m@epita.fr>
1277 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1278 to an explicit value to activate the feature. We do it here.
1280 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1282 * src/output.c (prepare): Delete the `filename' muscule insertion.
1283 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1284 (parse_union_decl): Likewise.
1285 * src/macrotab.c (macro_init): Initialize filename by infile.
1287 2001-08-31 Marc Autret <autret_m@epita.fr>
1289 * src/bison.simple (YYLSP_NEEDED): New definition.
1290 * src/output.c (prepare): Add macro insertion of `locations_flag'
1292 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1294 * src/output.c (prepare): Delete insertion of previous muscles,
1295 and insert the `prefix' muscles.
1296 * src/macrotab.c (macro_init): Likewise.
1297 (macro_init): Initialization prefix directive by `yy'.
1298 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1299 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1300 yylval, yydebug, yyerror, yynerrs and yyparse.
1301 New directive `#define' to substitute yydebug, ... with option
1304 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1306 * src/main.c (main): Standardize.
1307 * src/output.c (output_table_data, output_parser): Likewise.
1308 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1310 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1312 * src/reader.c (read_additionnal_code): Rename %%user_code to
1314 * src/output.c (output): Rename %%declarations to %%prologue.
1315 * src/bison.simple: Echo modifications.
1317 2001-08-31 Marc Autret <autret_m@epita.fr>
1319 * src/reader.c (readgram): CleanUp.
1320 (output_token_defines): Likewise.
1321 (packsymbols): Likewise.
1323 * src/output.c (output): CPP-out useless code.
1325 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1327 * src/reader.c (reader): Delete obsolete call to function
1328 output_trailers and output_headers.
1329 * src/output.h: Remove obsolete functions prototypes of output_headers
1330 and output_trailers.
1332 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1334 * src/main.c: Include macrotab.h.
1335 * src/macrotab.h (macro_entry_s): Constify fields.
1336 Adjust functions prototypes.
1337 * src/macrotab.c (macro_insert): Constify key and value.
1338 (macro_find): Constify key.
1339 (macro_insert): Include 'xalloc.h'
1340 (macro_insert): Use XMALLOC.
1341 (macro_find): Constify return value.
1342 * src/output.c (output_table_data): Rename table to table_data.
1343 (output_parser): Constify macro_key, macro_value.
1345 2001-08-30 Marc Autret <autret_m@epita.fr>
1347 * src/reader.c (parse_skel_decl): New.
1348 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1349 * src/lex.h (token_t): New token `tok_skel'.
1350 * src/lex.c (percent_table): Add skeleton option entry.
1353 2001-08-29 Marc Autret <autret_m@epita.fr>
1355 * src/bison.simple: Add %%user_code directive at the end.
1356 * src/reader.c (read_additionnal_code): New.
1358 * src/output.c (output_program): Remove.
1361 2001-08-28 Marc Autret <autret_m@epita.fr>
1363 * src/output.c (output_actions): Clean up.
1364 (output_gram): CPP-out useless code.
1365 * src/reader.c (reader): Clean up, CPP-out useless code.
1367 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1369 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1371 * src/bison.simple: Add `%%definitions'.
1373 2001-08-28 Marc Autret <autret_m@epita.fr>
1375 * config/depcomp: New file.
1377 2001-08-27 Paul Eggert <eggert@twinsun.com>
1379 * src/bison.simple (yyparse): Don't take the address of an
1380 item before the start of an array, as that doesn't conform to
1383 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1385 * src/output.c (output): Remove the initialization of the macro
1386 obstack. It was done too late here.
1388 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1390 (reader): Initialize the macro obstack here, since we need it to grow
1391 '%define' directives.
1393 * src/reader.h: Declare the macro obstack as extern.
1395 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1397 * src/output.c (output_parser): Fix. Store single '%' characters in
1398 the output obstack instead of throwing them away.
1400 2001-08-27 Akim Demaille <akim@epita.fr>
1402 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1404 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1406 * lib/Makefile.am: Adjust.
1408 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1410 * src/bison.simple: Update and add '%%' directives.
1412 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1414 * src/reader.c (reader): Remove calls to 'output_headers' and
1415 'output_trailers'. Remove some C output.
1416 (readgram): Disable a piece of code that was writing a default
1417 definition for 'YYSTYPE'.
1418 (reader_output_yylsp): Remove.
1419 (packsymbols): Output token defintions to a macro.
1420 (copy_definition): Disable C output.
1422 * src/reader.c (parse_macro_decl): New function used to parse macro
1424 (copy_string2): Put the body of copy_string into this new function.
1425 Add a parameter to let the caller choose whether he wants to copy the
1426 string delimiters or not.
1427 (copy_string): Be a simple call to copy_string2 with the last argument
1429 (read_declarations): Add case for macro definition.
1430 (copy_identifier): New.
1431 (parse_macro_decl): Read macro identifiers using copy_identifier
1434 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1436 * src/output.c (prepare): Add prefixed names.
1437 (output_parser): Output semantic actions.
1438 (output_parser): Fix bug on '%%line' directives.
1440 * src/output.c (output_headers): Remove. The C code printed by this
1441 function should now be in the skeletons.
1442 (output_trailers): Remove.
1443 (output): Disable call to 'reader_output_yylsp'.
1444 (output_rule_data): Do not output tables to the table obstack.
1446 * src/output.c: Remove some C dedicated output.
1447 Improve the use of macro and output obstacks.
1448 (output_defines): Remove.
1450 * src/output.c (output_token_translations): Associate 'translate'
1451 table with a macro. No output to the table obstack.
1452 (output_gram): Same for 'rhs' and 'prhs'.
1453 (output_stos): Same for 'stos'.
1454 (output_rule_data): Same for 'r1' and 'r2'.
1455 (token_actions): Same for 'defact'.
1456 (goto_actions): Same for 'defgoto'.
1457 (output_base): Same for 'pact' and 'pgoto'.
1458 (output_table): Same for 'table'.
1459 (output_check): Same for 'check'.
1461 * src/output.c (output_table_data): New function.
1462 (output_short_table): Remove.
1463 (output_short_or_char_table): Remove.
1465 * src/output.c (output_parser): Replace most of the skeleton copy code
1466 with something new. Skeletons are now processed character by character
1467 rather than line by line, and Bison looks for '%%' macros. This is the
1468 first step in making Bison's output process (a lot) more flexible.
1469 (output_parser): Use the macro table.
1471 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1473 * src/main.c (main): Initialize the macro table.
1475 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1477 * src/lex.c (percent_table): Add tok_define.
1478 * src/lex.h: Add tok_define.
1480 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1482 * src/macrotab.c: New file.
1483 * src/macrotab.h: New file.
1484 * src/Makefile.am: Update.
1486 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1488 * lib/hash.c: New file.
1489 * lib/hash.h: New file.
1490 * lib/Makefile.am: Update.
1492 2001-08-15 Akim Demaille <akim@epita.fr>
1496 2001-08-15 Marc Autret <autret_m@epita.fr>
1498 * src/reader.c (readgram): Indent output macro YYSTYPE.
1499 (packsymbols): Likewise.
1500 (output_token_defines): Likewise.
1501 * src/files.c: Standardize.
1502 (compute_header_macro): New.
1503 (defines_obstack_save): New. Use compute_header_macro.
1504 (output_files): Update. Use defines_obstack_save.
1506 2001-08-15 Akim Demaille <akim@epita.fr>
1508 * doc/bison.texinfo (Table of Symbols): Document
1511 2001-08-15 Akim Demaille <akim@epita.fr>
1513 * missing: Update from CVS Automake.
1514 * config/config.guess, config/config.sub, config/texinfo.tex:
1515 Update from gnu.org.
1517 2001-08-15 Akim Demaille <akim@epita.fr>
1519 * Makefile.maint: Sync with CVS Autoconf.
1521 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1523 * doc/bison.texinfo: Include GNU Free Documentation License from
1525 * doc/fdl.texi: Add to package.
1527 2001-08-14 Marc Autret <autret_m@epita.fr>
1529 Turn on %{source,header}_extension features.
1531 * src/lex.c (percent_table): Un-CPP out header_extension and
1533 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1534 (compute_exts_from_src): Remove conditions. It restores priorities
1537 2001-08-14 Marc Autret <autret_m@epita.fr>
1539 * src/files.c (compute_base_names): Add extensions computing when
1540 `--file-prefix' used.
1541 Standardize function calls.
1543 2001-08-13 Marc Autret <autret_m@epita.fr>
1545 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1546 defining it (defined but null disables alloca).
1548 2001-08-13 Marc Autret <autret_m@epita.fr>
1550 * src/bison.simple (_yy_memcpy): CPP reformat.
1552 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1554 * tests/atconfig.in (CPPFLAGS): Fix.
1556 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1558 * doc/bison.texinfo: Include GNU General Public License from
1560 * doc/gpl.texi: Add to package.
1562 2001-08-10 Marc Autret <autret_m@epita.fr>
1564 * src/print_graph.h: Fix.
1565 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1567 2001-08-10 Akim Demaille <akim@epita.fr>
1569 * src/system.h: Provide default declarations for stpcpy, strndup,
1572 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1574 * doc/bison.texinfo (Locations): Update @$ stuff.
1576 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1578 * src/bison.simple (YYLLOC_DEFAULT): Update.
1581 2001-08-08 Marc Autret <autret_m@epita.fr>
1583 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1584 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1585 Reported by Fabrice Bauzac.
1587 2001-08-08 Marc Autret <autret_m@epita.fr>
1589 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1590 * src/vcg.c (output_node): Fix.
1591 * src/vcg.h: Cleanup.
1592 * src/print_graph.c: Add comments.
1593 (node_output_size): New global variable. Simplify the formatting of
1594 the VCG graph output.
1595 (print_actions): Unused code is now used. It notifies the final state
1596 and no action states in the VCG graph. It also give the reduce actions.
1597 The `shift and goto' edges are red and the `go to state' edges are
1599 Get the current node name and node_obstack by argument.
1600 (node_obstack): New variable.
1601 (print_state): Manage node_obstack.
1602 (print_core): Use node_obstack given by argument.
1603 A node is not only computed here but in print_actions also.
1604 (print_graph): CPP out useless code instead of commenting it.
1606 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1608 * tests/atconfig.in (CPPFLAGS): Fix.
1610 2001-08-07 Akim Demaille <akim@epita.fr>
1612 * src/print_graph.c (quote): New.
1613 (print_core): Use it.
1615 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1617 * src/vcg.c (complain.h): Include it.
1618 Unepitaize `return' invocations.
1619 [NDEBUG] (main): Remove.
1620 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1621 * src/files.c (open_files): Initialize graph_obstack.
1622 * src/print_graph.c (print_actions): CPP out useless code.
1623 (print_core): Don't output the last `\n' in labels.
1625 * src/files.c (output_files): Output the VCG file.
1626 * src/main.c (main): Invoke print_graph ();
1628 2001-08-06 Marc Autret <autret_m@epita.fr>
1630 Automaton VCG graph output.
1631 Using option ``-g'' or long option ``--graph'', you can generate
1632 a gram_filename.vcg file containing a VCG description of the LALR (1)
1633 automaton of your grammar.
1635 * src/main.c: Call to print_graph() function.
1636 * src/getargs.h: Update.
1637 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1638 (graph_flag): New flag.
1640 (getargs): Add case `g'.
1641 * src/files.c (graph_obstack): New obstack struct.
1642 (open_files): Initialize new obstack.
1643 (output_files): Saves graph_obstack if required.
1644 * src/files.h (graph_obstack): New extern declaration.
1645 * src/Makefile.am: Add new source files.
1647 2001-08-06 Marc Autret <autret_m@epita.fr>
1649 * src/print_graph.c, src/print_graph.h (graph): New.
1650 * src/vcg.h: New file.
1651 * src/vcg.c: New file, VCG graph handling.
1653 2001-08-06 Marc Autret <autret_m@epita.fr>
1655 Add of %source_extension and %header_extension which specify
1656 the source or/and the header output file extension.
1658 * src/files.c (compute_base_names): Remove initialisation of
1659 src_extension and header_extension.
1660 (compute_exts_from_gf): Update.
1661 (compute_exts_from_src): Update.
1662 (output_files): Update.
1663 * src/reader.c (parse_header_extension_decl): New.
1664 (parse_source_extension_decl): New.
1665 (read_declarations): New case statements for the new tokens.
1666 * src/lex.c (percent_table): Add entries for %source_extension
1667 and %header_extension.
1668 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1670 2001-08-06 Marc Autret <autret_m@epita.fr>
1672 * configure.in: Bump to 1.28c.
1673 * doc/bison.texinfo: Texinfo thingies.
1675 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1677 * tests/atconfig.in (CPPFLAGS): Add.
1678 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1680 2001-08-03 Akim Demaille <akim@epita.fr>
1684 2001-08-03 Akim Demaille <akim@epita.fr>
1686 * tests/Makefile.am (check-local): Ship testsuite.
1687 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1690 2001-08-03 Akim Demaille <akim@epita.fr>
1692 * configure.in: Try using -Wformat when compiling.
1694 2001-08-03 Akim Demaille <akim@epita.fr>
1696 * configure.in: Bump to 1.28b.
1698 2001-08-03 Akim Demaille <akim@epita.fr>
1700 * src/complain.c: Adjust strerror_r portability issues.
1702 2001-08-03 Akim Demaille <akim@epita.fr>
1706 2001-08-03 Akim Demaille <akim@epita.fr>
1708 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1709 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1710 * src/getargs.c: Include complain.h.
1711 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1712 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1714 2001-08-03 Akim Demaille <akim@epita.fr>
1716 * src/reader.c (readgram): Display hidden chars in error messages.
1718 2001-08-03 Akim Demaille <akim@epita.fr>
1720 Update to gettext 0.10.39.
1722 2001-08-03 Akim Demaille <akim@epita.fr>
1724 * lib/strspn.c: New.
1726 2001-08-01 Marc Autret <autret_m@epita.fr>
1728 * doc/bison.texinfo: Update.
1729 * doc/bison.1 (mandoc): Update.
1730 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1731 * src/files.c: Support output files extensions computing.
1732 (src_extension): New static variable.
1733 (header_extension): New static variable.
1735 (get_extension_index): New function, gets the index of an extension
1736 filename in a string.
1737 (compute_exts_from_gf): New function, computes extensions from the
1738 grammar file extension.
1739 (compute_exts_from_src): New functions, computes extensions from the
1740 C source file extension, file given by ``-o'' option.
1741 (compute_base_names): Update.
1742 (output_files): Update.
1744 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1746 * doc/bison.texi: Document @$.
1747 (Locations): New section.
1749 2001-07-18 Akim Demaille <akim@epita.fr>
1751 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1752 * config/prev-version.txt, config/move-if-change: New.
1753 * Makefile.am: Adjust.
1755 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1757 * src/bison.simple (yyparse): Suppress warning `comparaison
1758 between signed and unsigned'.
1760 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1762 * src/getargs.h (raw_flag): Remove.
1763 * src/getargs.c: Die on `-r'/`--raw'.
1764 * src/lex.c (parse_percent_token): Die on `%raw'.
1765 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1766 * tests/calc.at: Suppress test with option `--raw'.
1768 2001-07-14 Akim Demaille <akim@epita.fr>
1771 * configure.in: Require Autoconf 2.50.
1772 Update to gettext 0.10.38.
1774 2001-03-16 Akim Demaille <akim@epita.fr>
1776 * doc/bison.texinfo: ANSIfy the examples.
1778 2001-03-16 Akim Demaille <akim@epita.fr>
1780 * getargs.c (skeleton): New variable.
1781 (longopts): --skeleton is a new option.
1782 (shortopts, getargs): -S is a new option.
1783 * getargs.h: Declare skeleton.
1784 * output.c (output_parser): Use it.
1786 2001-03-16 Akim Demaille <akim@epita.fr>
1788 * m4/strerror_r.m4: New.
1789 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1790 * lib/error.h, lib/error.c: Update.
1792 2001-03-16 Akim Demaille <akim@epita.fr>
1794 * src/getargs.c (longopts): Clean up.
1796 2001-02-21 Akim Demaille <akim@epita.fr>
1798 * src/reader.c (gensym): `gensym_count' is your own.
1799 Use a static buf to create the symbol name, as token_buffer is no
1802 2001-02-08 Akim Demaille <akim@epita.fr>
1804 * src/conflicts.c (conflict_report): Be sure not to append to res
1805 between two calls, which could happen if both first sprintf were
1806 skipped, but not the first cp += strlen.
1808 2001-02-08 Akim Demaille <akim@epita.fr>
1810 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1811 New, from fileutils 4.0.37.
1812 * configure.in: Require Autoconf 2.49c. I took some time before
1813 making this decision. This is the only way out for portability
1814 issues in Bison, it would mean way too much duplicate effort to
1815 import in Bison features implemented in 2.49c since 2.13.
1816 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1818 2001-02-02 Akim Demaille <akim@epita.fr>
1820 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1821 * lib/xalloc.h, lib/xmalloc.c: Update.
1823 2001-01-19 Akim Demaille <akim@epita.fr>
1825 Get rid of the ad hoc handling of token_buffer in the scanner: use
1828 * src/lex.c (token_obstack): New.
1829 (init_lex): Initialize it. No longer call...
1830 (grow_token_buffer): this. Remove it.
1831 Adjust all the places which used it to use the obstack.
1833 2001-01-19 Akim Demaille <akim@epita.fr>
1835 * src/lex.h: Rename all the tokens:
1836 s/\bENDFILE\b/tok_eof/g;
1837 s/\bIDENTIFIER\b/tok_identifier/g;
1839 Let them be enums, not #define, to ease debugging.
1840 Adjust all the code.
1842 2001-01-18 Akim Demaille <akim@epita.fr>
1844 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1845 * src/lex.c (maxtoken, grow_token_buffer): Static.
1847 2001-01-18 Akim Demaille <akim@epita.fr>
1849 Since we now use obstacks, more % directives can be enabled.
1851 * src/lex.c (percent_table): Also accept `%yacc',
1852 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1854 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1855 instead of returning a token.
1856 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1857 * src/reader.c (read_declarations): Adjust.
1858 * src/files.c (open_files): Don't call `compute_base_names', don't
1859 compute `attrsfile' since they depend upon data which might be
1860 *in* the input file now.
1861 (output_files): Do it here.
1862 * src/output.c (output_headers): Document the fact that this patch
1863 introduces a guaranteed SEGV for semantic parsers.
1864 * doc/bison.texinfo: Document them.
1865 * tests/suite.at: Exercise these %options.
1867 2000-12-20 Akim Demaille <akim@epita.fr>
1869 Also handle the output file (--verbose) with obstacks.
1871 * files.c (foutput): Remove.
1872 (output_obstack): New.
1873 Adjust all dependencies.
1874 * src/conflicts.c: Return a string.
1875 * src/system.h (obstack_grow_string): Rename as...
1876 (obstack_sgrow): this. Be ready to work with non literals.
1877 (obstack_fgrow4): New.
1879 2000-12-20 Akim Demaille <akim@epita.fr>
1881 * src/files.c (open_files): Fix the computation of short_base_name
1882 in the case of `-o foo.tab.c'.
1884 2000-12-20 Akim Demaille <akim@epita.fr>
1886 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1887 (copy_dollar): Now that everything uses obstacks, get rid of the
1890 2000-12-20 Akim Demaille <akim@epita.fr>
1892 * src/files.c (open_files): Actually the `.output' file is based
1893 on the short_base_name, not base_name.
1894 * tests/suite.at (Checking output file names): Adjust.
1896 2000-12-20 Akim Demaille <akim@epita.fr>
1898 * src/bison.s1: Remove, we now use directly...
1899 * src/bison.simple: this.
1900 * src/Makefile.am: Use pkgdata instead of data.
1902 2000-12-20 Akim Demaille <akim@epita.fr>
1904 * src/files.c (guard_obstack): New.
1905 (open_files): Initialize it.
1906 (output_files): Dump it...
1907 * src/files.h: Export it.
1908 * src/reader.c (copy_guard): Use it.
1910 2000-12-19 Akim Demaille <akim@epita.fr>
1912 * src/files.c (outfile, defsfile, actfile): Removed as global
1914 (open_files): Don't compute them.
1915 (output_files): Adjust.
1916 (base_name, short_base_name): Be global.
1917 Adjust dependencies.
1919 2000-12-19 Akim Demaille <akim@epita.fr>
1921 * src/files.c (strsuffix): New.
1922 (stringappend): Be just like strcat but allocate.
1923 (base_names): Eve out from open_files.
1924 Try to simplify the rather hairy computation of base_name and
1926 (open_files): Use it.
1927 * tests/suite.at (Checking output file names): New test.
1929 2000-12-19 Akim Demaille <akim@epita.fr>
1931 * src/system.h (obstack_grow_literal_string): Rename as...
1932 (obstack_grow_string): this.
1933 * src/output.c (output_parser): Recognize `%% actions' instead of
1935 * src/bison.s1: s/$/%% actions/.
1936 * src/bison.hairy: Likewise.
1938 2000-12-19 Akim Demaille <akim@epita.fr>
1940 * src/output.c (output_parser): Compute the `#line' lines when
1942 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1943 Suggested by Hans Aberg.
1945 2000-12-19 Akim Demaille <akim@epita.fr>
1947 Let the handling of the skeleton files be local to the procedures
1950 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1952 (fparser, open_extra_files): Remove.
1953 (open_files, output_files): Don't take care of fparser.
1954 * src/files.h: Adjust.
1955 * src/output.c (output_parser): Open and close the file to the
1957 * src/reader.c (read_declarations): When %semantic_parser, open
1960 2000-12-19 Akim Demaille <akim@epita.fr>
1962 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1963 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1965 2000-12-19 Akim Demaille <akim@epita.fr>
1967 * src/files.c (open_files): Yipee! We no longer need all the code
1968 looking for `/tmp' since we have no tmp file.
1970 2000-12-19 Akim Demaille <akim@epita.fr>
1972 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1974 * src/files.c (open_files): Less dependency on MSDOS etc.
1976 2000-12-14 Akim Demaille <akim@epita.fr>
1978 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1979 Provide a default definition.
1980 Use it when executing the default @ action.
1981 * src/reader.c (reader_output_yylsp): No longer include
1982 `timestamp' and `text' in the default YYLTYPE.
1984 2000-12-12 Akim Demaille <akim@epita.fr>
1986 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1987 (copy_guard): Quote the file names.
1988 Reported by Laurent Mascherpa.
1990 2000-12-12 Akim Demaille <akim@epita.fr>
1992 * src/output.c (output_headers, output_program, output): Be sure
1993 to escape special characters when outputting filenames.
1994 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1995 (output_headers): Don't depend on them, Use ACTSTR.
1997 2000-11-17 Akim Demaille <akim@epita.fr>
1999 * lib/obstack.h: Formatting changes.
2000 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2001 prevents type checking.
2002 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2003 cast the value to (void *): assigning a `foo *' to a `void *'
2005 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2006 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2009 2000-11-17 Akim Demaille <akim@epita.fr>
2011 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2013 (suite.m4, regression.m4, calc.m4): these.
2014 * tests/atgeneral.m4: Update from CVS Autoconf.
2016 2000-11-17 Akim Demaille <akim@epita.fr>
2018 * tests/regression.m4 (%union and --defines): New test,
2019 demonstrating a current bug in the obstack implementation.
2021 2000-11-17 Akim Demaille <akim@epita.fr>
2023 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2025 Use them to declare the variables which are global or local to
2028 2000-11-17 Akim Demaille <akim@epita.fr>
2030 * acconfig.h: Remove, no longer used.
2032 2000-11-07 Akim Demaille <akim@epita.fr>
2034 * src: s/Copyright (C)/Copyright/g.
2036 2000-11-07 Akim Demaille <akim@epita.fr>
2038 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2040 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2042 2000-11-07 Akim Demaille <akim@epita.fr>
2044 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2045 Merge in a single CPP if/else.
2047 2000-11-07 Akim Demaille <akim@epita.fr>
2049 * src/output.c (output): Remove useless variables.
2050 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2051 argument `data' for consistency with the prototypes.
2053 (obstack_copy, obstack_copy0): Rename the second argument as
2054 `address' for consistency. Qualify it `const'.
2055 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2056 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2057 `const' their input argument (`data' or `address').
2058 Adjust the corresponding macros to include `const' in casts.
2060 2000-11-03 Akim Demaille <akim@epita.fr>
2062 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2063 s/PFILE1/BISON_HAIRY/.
2064 Adjust dependencies.
2066 2000-11-03 Akim Demaille <akim@epita.fr>
2068 For some reason, this was not applied.
2070 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2071 `unlink': it's no longer used.
2073 2000-11-03 Akim Demaille <akim@epita.fr>
2075 * src/files.c (skeleton_find): New function, eved out of...
2076 (open_files, open_extra_files): here.
2078 2000-11-03 Akim Demaille <akim@epita.fr>
2082 * src/files.c (obstack_save): New function.
2083 (done): Rename as...
2084 (output_files): this.
2086 * src/main.c (main): Don't use `atexit' to register `done', since
2087 it no longer has to remove tmp files, just call `output_files'
2088 when there are no errors.
2090 2000-11-02 Akim Demaille <akim@epita.fr>
2092 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2093 `unlink': it's no longer used.
2094 * src/files.h: Formatting changes.
2096 2000-11-02 Akim Demaille <akim@epita.fr>
2098 Remove the last uses of mktemp and unlink/delete.
2100 * src/files.c (fdefines, ftable): Removed.
2101 (defines_ostack, table_obstack): New.
2102 Adjust dependencies of the former into uses of the latter.
2103 * src/output.c (output_short_or_char_table, output_short_table):
2104 Convert to using obstacks.
2105 * src/reader.c (copy_comment2): Accept one FILE * and two
2107 (output_token_defines, reader_output_yylsp): Use obstacks.
2108 * src/system.h (obstack_fgrow3): New.
2110 2000-11-01 Akim Demaille <akim@epita.fr>
2112 Change each use of `fattrs' into a use of `attrs_obstack'.
2114 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2115 * src/files.c (fattrs): Remove.
2116 (attrs_obstack): New.
2117 Adjust all dependencies.
2118 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2120 2000-11-01 Akim Demaille <akim@epita.fr>
2123 Change each use of `faction' into a use of `action_obstack'.
2125 * lib/obstack.h, lib/obstack.c: New files.
2126 * src/files.c (faction): Remove.
2127 (action_obstack): New.
2128 Adjust all dependencies.
2130 2000-10-20 Akim Demaille <akim@epita.fr>
2132 * lib/quote.h (PARAMS): New macro. Use it.
2134 2000-10-16 Akim Demaille <akim@epita.fr>
2136 * src/output.c (output_short_or_char_table): New function.
2137 (output_short_table, output_token_translations): Use it.
2138 (goto_actions): Use output_short_table.
2140 2000-10-16 Akim Demaille <akim@epita.fr>
2142 * src/symtab.c (bucket_new): New function.
2145 * src/output.c (output_short_table): New argument to display the
2146 comment associated with the table.
2147 Adjust dependencies.
2148 (output_gram): Use it.
2149 (output_rule_data): Nicer output layout for YYTNAME.
2151 2000-10-16 Akim Demaille <akim@epita.fr>
2153 * src/lex.c (read_typename): New function.
2155 * src/reader.c (copy_dollar): Likewise.
2157 2000-10-16 Akim Demaille <akim@epita.fr>
2159 * src/reader.c (copy_comment2): Expect the input stream to be on
2160 the `/' which is suspected to open a comment, instead of being
2161 called after `//' or `/*' was read.
2162 (copy_comment, copy_definition, parse_union_decl, copy_action)
2163 (copy_guard): Adjust.
2165 2000-10-16 Akim Demaille <akim@epita.fr>
2167 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2168 `read_signed_integer'.
2170 2000-10-16 Akim Demaille <akim@epita.fr>
2172 * src/reader.c (copy_dollar): New function.
2173 (copy_guard, copy_action): Use it.
2175 2000-10-16 Akim Demaille <akim@epita.fr>
2177 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2178 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2179 New files, from Fileutils 4.0.27.
2180 * src/main.c (printable_version): Remove.
2181 * src/lex.c, src/reader.c: Use `quote'.
2183 2000-10-04 Akim Demaille <akim@epita.fr>
2185 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2187 2000-10-04 Akim Demaille <akim@epita.fr>
2189 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2191 2000-10-04 Akim Demaille <akim@epita.fr>
2193 When a literal string is used to define two different tokens,
2194 `bison -v' segfaults.
2195 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2197 * tests/regression.m4: New file.
2198 Include the core of the sample provided by Piotr Gackiewicz.
2199 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2202 2000-10-04 Akim Demaille <akim@epita.fr>
2204 * src/reader.c (parse_expect_decl): Keep `count' within the size
2208 2000-10-02 Paul Eggert <eggert@twinsun.com>
2210 * bison.s1 (yyparse): Assign the default value
2211 unconditionally, to avoid a GCC warning and make the parser a
2214 2000-10-02 Akim Demaille <akim@epita.fr>
2216 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2219 2000-10-02 Akim Demaille <akim@epita.fr>
2221 * src/derives.c, src/print.c, src/reduce.c: To ease the
2222 translation, move some `\n' out of the translated strings.
2224 2000-10-02 Akim Demaille <akim@epita.fr>
2226 The location tracking mechanism is precious for parse error
2227 messages. Nevertheless, it is enabled only when `@n' is used in
2228 the grammar, which is a different issue (you can use it in error
2229 message, but not in the grammar per se). Therefore, there should
2230 be another means to enable it.
2232 * src/getargs.c (getargs): Support `--locations'.
2234 * src/getargs.h (locationsflag): Export it.
2235 * src/lex.c (percent_table): Support `%locations'.
2236 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2237 with `locationsflag'.
2238 * doc/bison.texinfo: Document `--locations' and `%locations'.
2240 * tests/calc.m4: Test it.
2242 For regularity of the names, replace each
2243 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2244 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2245 In addition replace each `flag' with `_flag'.
2247 2000-10-02 Akim Demaille <akim@epita.fr>
2249 Also test parse error messages, including with YYERROR_VERBOSE.
2251 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2253 Use it to check the computations.
2254 Use it to check `nonassoc' is honored.
2255 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2256 `--yyerror-verbose'.
2257 (_AT_CHECK_CALC): Adjust to this option.
2258 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2260 2000-10-02 Akim Demaille <akim@epita.fr>
2262 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2263 the latter demonstrates a flaw in the handling of non debugging
2264 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2265 was used in order to simplify:
2281 unfortunately this leads to a CPP conflict when
2282 `--name-prefix=foo' is used since it produces `#define yydebug
2285 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2286 (YYDPRINTF): New macro.
2288 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2290 Also test `--verbose', `--defines' and `--name-prefix'.
2292 2000-10-02 Akim Demaille <akim@epita.fr>
2294 Improve the readability of the produced parsers.
2296 * src/bison.s1: Formatting changes.
2297 Improve the comment related to the `$' mark.
2298 (yydefault): Don't fall through to `yyresume': `goto' there.
2299 * src/output.c (output_parser): When the `$' is met, skip the end
2301 New variable, `number_of_dollar_signs', to check there's exactly
2302 one `$' in the parser skeleton.
2304 2000-10-02 Akim Demaille <akim@epita.fr>
2306 * lib/xstrdup.c: New file, from the fileutils.
2307 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2308 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2309 instead of strlen + xmalloc + strcpy.
2310 * src/symtab.c (copys): Remove, use xstrdup instead.
2312 2000-10-02 Akim Demaille <akim@epita.fr>
2314 * src/gram.h (associativity): New enum type which replaces the
2315 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2316 `right_assoc', `left_assoc' and `non_assoc'.
2317 Adjust all dependencies.
2318 * src/reader.c: Formatting changes.
2319 (LTYPESTR): Don't define it, use it as a literal in
2320 `reader_output_yylsp'.
2321 * src/symtab.h (symbol_class): New enum type which replaces the
2322 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2323 `sunknown', `stoken and `snterm'.
2325 2000-10-02 Akim Demaille <akim@epita.fr>
2327 * src/getargs.c (fixed_outfiles): Rename as...
2328 (yaccflag): for consistency and accuracy.
2329 Adjust dependencies.
2331 2000-10-02 Akim Demaille <akim@epita.fr>
2333 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2334 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2335 difficult and introduced a lot of core dump. It turns out that
2336 Bison used an implementation of `xmalloc' based on `calloc', and
2337 at various places it does depend upon the initialization to 0. I
2338 have not tried to isolate the pertinent places, and all the former
2339 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2340 someone should address this issue.
2342 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2343 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2345 Adjust dependencies.
2346 * src/warshall.h: New file.
2349 2000-10-02 Akim Demaille <akim@epita.fr>
2351 Various anti-`extern in *.c' changes.
2353 * src/system.h: Include `assert.h'.
2355 2000-10-02 Akim Demaille <akim@epita.fr>
2357 * src/state.h (nstates, final_state, first_state, first_shift)
2358 (first_reduction): Move their exportation from here...
2359 * src/LR0.h: to here.
2360 Adjust dependencies.
2361 * src/getargs.c (statisticsflag): New variable.
2362 Add support for `--statistics'.
2363 Adjust dependencies.
2365 Remove a lot of now useless `extern' statements in most files.
2367 2000-10-02 Akim Demaille <akim@epita.fr>
2369 * src/LR0.h: New file.
2372 2000-10-02 Akim Demaille <akim@epita.fr>
2374 * src/print.h: New file.
2376 * src/print.c: Formatting and ordering changes.
2377 (verbose, terse): Replace with...
2378 (print_results): this new function.
2379 Adjust dependencies.
2381 2000-10-02 Akim Demaille <akim@epita.fr>
2383 * src/conflicts.c (conflict_report): New function.
2384 (conflict_log, verbose_conflict_log): Replace with...
2385 (print_conflicts): this function.
2386 Adjust dependencies.
2387 * src/conflicts.h: New file.
2388 Propagate its inclusion.
2390 2000-10-02 Akim Demaille <akim@epita.fr>
2392 * src/nullable.h: New file.
2393 Propagate its inclusion.
2394 * src/nullable.c: Formatting changes.
2396 2000-10-02 Akim Demaille <akim@epita.fr>
2398 * src/reduce.h: New file.
2399 Propagate its inclusion.
2400 * src/reduce.c: Topological sort and other formatting changes.
2401 (bool, TRUE, FALSE): Move their definition to...
2402 * src/system.h: here.
2404 2000-10-02 Akim Demaille <akim@epita.fr>
2406 * src/files.c: Formatting changes.
2407 (tryopen, tryclose, openfiles): Rename as...
2408 (xfopen, xfclose, open_files): this.
2409 (stringappend): static.
2410 * src/files.h: Complete the list of exported symbols.
2413 2000-10-02 Akim Demaille <akim@epita.fr>
2415 * src/reader.h: New file.
2416 Propagate its use instead of tedious list of `extern' and
2418 * src/reader.c: Formatting changes, topological sort,
2421 2000-10-02 Akim Demaille <akim@epita.fr>
2423 * src/lex.h: Prototype `lex.c' exported functions.
2424 * src/reader.c: Adjust.
2425 * src/lex.c: Formatting changes.
2426 (safegetc): Rename as...
2429 2000-10-02 Akim Demaille <akim@epita.fr>
2431 * src/lalr.h: New file.
2432 Propagate its inclusion instead of prototypes and `extern'.
2433 * src/lalr.c: Formatting changes, topological sorting etc.
2435 2000-10-02 Akim Demaille <akim@epita.fr>
2437 * src/output.c (token_actions): Introduce a temporary array,
2438 YYDEFACT, that makes it possible for this function to use
2441 2000-10-02 Akim Demaille <akim@epita.fr>
2443 `user_toknums' is output as a `short[]' in `output.c', while it is
2444 defined as a `int[]' in `reader.c'. For consistency with the
2445 other output tables, `user_toknums' is now defined as a table of
2448 * src/reader.c (user_toknums): Be a short table instead of an int
2450 Adjust dependencies.
2452 Factor the short table outputs.
2454 * src/output.c (output_short_table): New function.
2455 * src/output.c (output_gram, output_stos, output_rule_data)
2456 (output_base, output_table, output_check): Use it.
2458 2000-10-02 Akim Demaille <akim@epita.fr>
2460 * src/output.c (output): Topological sort of the functions, in
2461 order to get rid of the `static' prototypes.
2462 No longer use `register'.
2463 * src/output.h: New file.
2464 Propagate its inclusion in files explicitly prototyping functions
2467 2000-09-21 Akim Demaille <akim@epita.fr>
2469 * src/atgeneral.m4: Update from Autoconf.
2471 2000-09-21 Akim Demaille <akim@epita.fr>
2473 * src/closure.h: New file.
2474 * src/closure.c: Formatting changes, topological sort over the
2475 functions, use of closure.h.
2476 (initialize_closure, finalize_closure): Rename as...
2477 (new_closure, free_closure): these. Adjust dependencies.
2478 * src/LR0.c: Formatting changes, topological sort, use of
2480 (initialize_states): Rename as...
2482 * src/Makefile.am (noinst_HEADERS): Adjust.
2484 2000-09-20 Akim Demaille <akim@epita.fr>
2486 * src/acconfig.h: Don't protect config.h against multiple
2488 Don't define PARAMS.
2489 * src/system.h: Define PARAMS.
2490 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2491 purpose of config.h. system.h must not try to fix wrong
2492 definitions in config.h.
2494 2000-09-20 Akim Demaille <akim@epita.fr>
2496 * src/derives.h: New file.
2497 * src/main.c, src/derives.h: Use it.
2499 * src/Makefile.am (noinst_HEADERS): Adjust.
2501 2000-09-20 Akim Demaille <akim@epita.fr>
2503 * tests/atgeneral.m4: Update from Autoconf.
2504 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2505 (AT_CHECK_CALC): New macros.
2506 Use these macros to test bison with options `', `--raw',
2507 `--debug', `--yacc', `--yacc --debug'.
2509 2000-09-19 Akim Demaille <akim@epita.fr>
2511 * src/output.c: Formatting changes.
2512 * src/machine.h: Remove, leaving its contents in...
2513 * src/system.h: here.
2515 Adjust all dependencies on stdio.h and machine.h.
2516 * src/getargs.h: New file.
2517 Let all `extern' declarations about getargs.c be replaced with
2518 inclusion of `getargs.h'.
2519 * src/Makefile.am (noinst_HEADERS): Adjust.
2521 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2523 (yyerror): Returns void, not int.
2524 * doc/bison.texinfo: Formatting changes.
2526 2000-09-19 Akim Demaille <akim@epita.fr>
2528 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2531 2000-09-18 Akim Demaille <akim@epita.fr>
2533 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2534 * src/Makefile.am (INCLUDES): Don't.
2535 Be ready to fetch headers in lib/.
2537 2000-09-18 Akim Demaille <akim@epita.fr>
2539 * doc/bison.texinfo: Update the copyright.
2540 ANSIfy and GNUify the examples.
2541 Remove the old menu.
2543 2000-09-18 Akim Demaille <akim@epita.fr>
2545 First set of tests: use the `calc' example from the documentation.
2547 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2548 is defined only when YYDEBUG is.
2549 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2550 * src/files.c (tryopen, tryclose): Formatting changes.
2551 Move to the top and be static.
2552 * src/reader.c (read_signed_integer): Likewise.
2553 * tests/calc.m4: New file.
2554 * Makefile.am, suite.m4: Adjust.
2555 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2557 2000-09-18 Akim Demaille <akim@epita.fr>
2559 Add support for an Autotest test suite for Bison.
2561 * m4/m4.m4, m4/atconfig.m4: New files.
2562 * m4/Makefile.am (EXTRA_DIST): Adjust.
2563 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2565 * src/getargs.c: Display a more standard --version message.
2566 * src/reader.c (reader): Formatting changes.
2567 No longer depend upon VERSION_STRING.
2568 * configure.in: No longer use `dnl'.
2569 Set up the test suite and the new directory `tests/.
2570 (VERSION_STRING): Remove.
2572 2000-04-14 Akim Demaille <akim@epita.fr>
2574 * src/reader.c (copy_comment2): New function, same as former
2575 `copy_comment', but outputs into two FILE *.
2576 (copy_comment): Use it.
2577 (parse_union_decl): Use it.
2578 (get_type, parse_start_decl): Use the same `invalid' message.
2579 (parse_start_decl, parse_union_decl): Use the same `multiple'
2581 (parse_union_decl, copy_guard, copy_action): Use the same
2582 `unmatched' message.
2583 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2585 2000-03-31 Akim Demaille <akim@epita.fr>
2587 * src/files.c (tryopen, tryclose): Move to the top.
2590 2000-03-31 Akim Demaille <akim@epita.fr>
2592 * src/main.c (main): Don't call `done', exit does it.
2594 2000-03-31 Akim Demaille <akim@epita.fr>
2596 * allocate.c: s/return (foo)/return foo/.
2599 * output.c: Likewise.
2600 * reader.c: Likewise.
2601 * symtab.c: Likewise.
2602 * vmsgetargs.c: Likewise.
2604 2000-03-31 Akim Demaille <akim@epita.fr>
2606 Clean up the error reporting functions.
2608 * src/report.c: New file.
2609 * src/report.h: Likewise.
2610 * src/Makefile.am: Adjust.
2611 * m4/error.m4: New file.
2612 * m4/Makefile.am: Adjust.
2613 * configure.in (jm_PREREQ_ERROR): Call it.
2614 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2616 (fatal, fatals): Remove. All callers use complain.c::fatal.
2617 (warn, warni, warns, warnss, warnss): Remove. All callers use
2618 complain.c::complain.
2619 (toomany): Remove, use fatal instead.
2620 * src/files.c (done): No argument, use complain_message_count.
2621 * src/main.c (main): Register `done' to `atexit'.
2623 * src/getargs.c (usage): More `fputs', less `fprintf'.
2625 2000-03-28 Akim Demaille <akim@epita.fr>
2627 * lib/: New directory.
2628 * Makefile.am (SUBDIRS): Adjust.
2629 * configure.in: Adjust.
2630 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2632 * src/alloca.c: Moved to lib/.
2633 * src/getopt.c: Likewise.
2634 * src/getopt1.c: Likewise.
2635 * src/getopt.h: Likewise.
2636 * src/ansi2knr.c: Likewise.
2637 * src/ansi2knr.1: Likewise.
2638 * src/Makefile.am: Adjust.
2639 * lib/Makefile.am: New file.
2641 2000-03-28 Akim Demaille <akim@epita.fr>
2643 * src/getargs.c (usage): Refresh the help message.
2645 2000-03-17 Akim Demaille <akim@epita.fr>
2647 * src/getopt1.c: Updated from textutils 2.0e
2648 * src/getopt.c: Likewise.
2649 * src/getopt.h: Likewise.
2651 2000-03-17 Akim Demaille <akim@epita.fr>
2653 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2654 the file name, not the whole `#line LINE FILE'.
2656 2000-03-17 Akim Demaille <akim@epita.fr>
2658 On syntax errors, report the token on which we choked.
2660 * src/bison.s1 (yyparse): In the label yyerrlab, when
2661 YYERROR_VERBOSE, add yychar in msg.
2663 2000-03-17 Akim Demaille <akim@epita.fr>
2665 * src/reader.c (copy_at): New function.
2666 (copy_guard): Use it.
2667 (copy_action): Use it.
2669 2000-03-17 Akim Demaille <akim@epita.fr>
2671 Be kind to translators, save some useless translations.
2673 * src/main.c (banner): New function.
2674 (fatal_banner): Use it.
2675 (warn_banner): Use it.
2677 2000-03-17 Akim Demaille <akim@epita.fr>
2679 * src/reader.c (copy_definition): Use copy_string and
2680 copy_comment. Removed now unused `match', `ended',
2682 (copy_comment, copy_string): Moved, to be visible from
2685 2000-03-17 Akim Demaille <akim@epita.fr>
2687 * src/reader.c (copy_string): Declare `static inline'. No
2688 problems with inline, since it is checked by configure.
2689 (copy_comment): Likewise.
2691 2000-03-17 Akim Demaille <akim@epita.fr>
2693 * src/reader.c (packsymbols): Formatting changes.
2695 2000-03-17 Akim Demaille <akim@epita.fr>
2697 * src/reader.c (copy_comment): New function, factored out from:
2698 (copy_action): Use it. Removed now unused `match', `ended',
2700 (copy_guard): Likewise.
2702 2000-03-17 Akim Demaille <akim@epita.fr>
2704 * src/reader.c (copy_string): New function, factored out from:
2705 (copy_action): Use it.
2706 (copy_guard): Likewise.
2708 2000-03-17 Akim Demaille <akim@epita.fr>
2710 Change the handling of @s so that they behave exactly like $s.
2711 There is now a pseudo variable @$ (readble and writable), location
2712 of the lhs of the rule (by default ranging from the location of
2713 the first symbol of the rhs, to the location of the last symbol,
2714 or, if the rhs is empty, YYLLOC).
2716 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2718 (yyparse): When providing a default semantic action, provide a
2719 default location action.
2720 (after the $): No longer change `*YYLSP', just stack YYLOC the
2721 same way you stack YYVAL.
2722 * src/reader.c (read_declarations): Use warns.
2723 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2724 (copy_action, case '@'): Likewise.
2725 Use a standard error message, to save useless work from
2728 2000-03-17 Akim Demaille <akim@epita.fr>
2730 * src/bison.s1: Formatting and cosmetics changes.
2731 * src/reader.c: Likewise.
2732 Update the Copyright notice.
2734 2000-03-17 Akim Demaille <akim@epita.fr>
2736 * src/bison.s1 (#line): All set to `#line' only, since the
2737 Makefile now handles them.
2739 2000-03-16 Akim Demaille <akim@epita.fr>
2741 * src/output.c (output_rule_data): Output the documentation of
2743 (Copyright notice): Update.
2746 2000-03-16 Akim Demaille <akim@epita.fr>
2748 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2749 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2750 One `#if YYDEBUG' remains, since it uses variables which are
2751 defined only if `YYDEBUG != 0'.
2753 2000-03-16 Akim Demaille <akim@epita.fr>
2755 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2756 and related variables so that the similarities are highlighted.
2758 2000-03-16 Akim Demaille <akim@epita.fr>
2760 * src/bison.s1: Properly indent CPP directives.
2762 2000-03-16 Akim Demaille <akim@epita.fr>
2764 * src/bison.s1: Properly indent the `alloca' CPP section.
2766 2000-03-16 Akim Demaille <akim@epita.fr>
2768 Do not hard code values of directories in `configure.in'.
2769 Update the `configure' tool chain.
2771 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2773 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2774 (AC_OUTPUT): Add m4/Makefile.
2775 Bump to bison 1.28a, 1.29 has never been released.
2776 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2777 handled via src/Makefile.am.
2778 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2779 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2781 * Makefile.am (SUBDIRS): Add m4.
2782 (ACLOCAL_AM_FLAGS): New variable.
2783 (AUTOMAKE_OPTIONS): Add check-news.
2784 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2785 the proper line number and file name.
2786 (DEFS): Propagate the location of bison library files and of the
2788 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2790 * acinclude.m4: Remove, replaced by the directory m4.
2791 * m4/Makefile.am (EXTRA_DIST): New variable.
2792 * m4/gettext.m4: New file, from the fileutils.
2793 * m4/lcmessage.m4: Likewise
2794 * m4/progtest.m4: Likewise.
2795 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2797 2000-03-10 Akim Demaille <akim@epita.fr>
2800 Formatting changes of various comments.
2801 Respect the GNU coding standards at various places.
2802 Don't use `_()' when no translation is needed.
2804 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2807 OS/2 honors TMPDIR environment variable.
2809 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2811 * doc/bison.texinfo: Tweaked spelling and grammar.
2813 Removed reference to price of printed copy.
2814 Mention BISON_SIMPLE and BISON_HAIRY.
2816 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2818 * configure.in, NEWS:
2819 Bison 1.29 released.
2821 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2823 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2824 Added reference card.
2826 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2828 * po/ru.po: Added Russian translation.
2830 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2832 * configure.in: Added Russian translation.
2834 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2836 * configure.in, NEWS, README:
2837 Released version 1.28.
2839 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2842 Squashed redefinition warning on some systems.
2844 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2845 Have configure build version string instead of relying on ANSI string
2848 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2850 * po/POTFILES.in: Got rid of version.c.
2852 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2854 * acconfig.h, configure.in:
2855 Have configure build version string instead of relying on ANSI string
2858 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2861 Dropped mention of `+' for long-named options.
2863 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2865 * src/files.c: Added <unistd.h> for unlink().
2867 * src/Makefile.am, src/system.h:
2870 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2872 * README: Added a FAQ list.
2874 * configure.in, acconfig.h:
2877 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2879 * doc/FAQ, doc/Makefile.am:
2882 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2884 * src/alloc.h, src/symtab.h, src/version.c:
2885 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2887 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2889 * src/.cvsignore, src/Makefile.am:
2890 Reorganized: sources in `src', documentation in `doc'.
2892 * src/lex.c (literalchar):
2893 fixed the code for escaping double quotes (thanks
2896 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2898 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2899 Adjusted paths to reflect directory reorganization.
2901 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2903 * doc/.cvsignore, doc/Makefile.am:
2904 Reorganized: sources in `src', documentation in `doc'.
2906 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2909 Updated AC_INIT file to reflect directory reorganization.
2911 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2912 Reorganized: sources in `src', documentation in `doc'.
2914 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2917 Don't declare calloc() and realloc() if not necessary.
2919 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2921 * configure.in, acconfig.h, acinclude.m4:
2922 Don't declare calloc() and realloc() if not necessary.
2924 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2926 * po/.cvsignore: Added i18n support.
2928 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2930 * acconfig.h, configure.in, Makefile.am:
2933 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2935 * src/bison.s1: Fixed #line numbers.
2937 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2939 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2940 Added PO files from Translation Project.
2942 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2945 Added support for non-ANSI compilers (ansi2knr).
2947 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2949 * configure.in: Bumped version number to 1.27.
2952 Added `bison.simple' to list of files removed by `make distclean'.
2954 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2956 * src/files.c, src/files.h:
2957 Defined locations of parser files in config.h instead of Makefile.
2959 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2961 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2962 Defined locations of parser files in config.h instead of Makefile.
2964 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2967 Removed inappropriate use of $< macro.
2969 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2971 * po/Makefile.in.in, po/POTFILES.in:
2972 Add `po' directory skeleton.
2974 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2976 * README: Document help-bison list.
2978 * configure.in: Add check for mkstemp().
2980 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2982 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2983 Hush a few compiler warnings.
2986 Add tryclose(), which verifies that fclose was successful.
2987 Hush a couple of compiler warnings.
2989 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2991 * Makefile.am, OChangeLog:
2992 ChangeLog is now automatically generated. Include the old version as
2995 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2997 * 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:
3000 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3002 * doc/bison.texinfo: Fix formatting glitch.
3004 * doc/bison.texinfo: Update FSF address.
3006 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3008 * acconfig.h: Update FSF address.
3010 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3013 Don't define PACKAGE here, since config.h defines it.
3015 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3017 * src/reader.c: Update copyright date.
3020 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3021 favor of output directly to stderr (avoids buffer overruns).
3023 * src/reader.c: Some checks for premature EOF.
3025 * 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:
3026 Use prototypes if the compiler understands them.
3028 * src/files.c: Honor TMPDIR on Unix hosts.
3029 Use prototypes if the compiler understands them.
3032 Fix a couple of buffer overrun bugs.
3033 Use prototypes if the compiler understands them.
3035 * src/system.h: Include unistd.h and ctype.h.
3036 Use #ifdef instead of #if for NLS symbols.
3038 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3040 * doc/bison.texinfo:
3041 Delete comment "consider using @set for edition number, etc..." since
3042 we now are doing so.
3044 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3047 Use prototypes if the compiler understands them.
3049 * NEWS: Document 1.26 highlights.
3051 * Makefile.am: Require Automake 1.3 or later.
3054 Use prototypes if the compiler understands them.
3056 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3059 Use VERSION symbol from automake for version number.
3061 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3063 * acconfig.h, configure.in, version.cin:
3064 Use VERSION symbol from automake for version number.
3066 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3069 Distribute original version of simple parser (bison.s1), not built
3070 version (bison.simple).
3072 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3074 * doc/bison.texinfo: Add info dir entry.
3076 * doc/bison.texinfo:
3077 Let automake put version number into documentation.
3079 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3081 * src/bison.cld, src/build.com, src/vmshlp.mar:
3082 Add non-RCS files from /gd/gnu/bison.
3084 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3087 Document the BISON_HAIRY and BISON_SIMPLE variables.
3089 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3091 * src/version.c: Build version.c automatically.
3094 Fix token numbering (used to start at 258, not 257).
3096 * src/system.h: Include config.h.
3098 * src/getargs.c: Update bug report address.
3100 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3101 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3103 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3106 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3108 * configure.in, version.cin:
3109 Build version.c automatically.
3111 * AUTHORS: Add AUTHORS file.
3113 * README: Update bug report address.
3116 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3118 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3121 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3123 * doc/bison.texinfo: Clean up some formatting.
3125 1998-05-05 Richard Stallman <rms@gnu.org>
3127 * doc/bison.texinfo:
3128 Explain better why to make a pure parser.
3130 1998-01-05 Richard Stallman <rms@gnu.org>
3132 * src/files.c (openfiles):
3133 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3134 find a temporary directory, if possible. Do not unlink files while
3137 1997-08-25 Richard Stallman <rms@gnu.org>
3139 * src/reader.c (stack_offset;):
3140 Change some warni to warns.
3142 * src/lex.c (literalchar): Use warns, not warni.
3144 1997-06-28 Richard Stallman <rms@gnu.org>
3146 * src/bison.s1: Add a Bison version comment.
3148 * src/main.c (fatal, warn, berror):
3151 1997-06-28 Richard Stallman <rms@gnu.org>
3153 * Makefile.in (bison_version): New variable.
3154 (dist): Use that variable.
3155 (bison.s1): Substitute the Bison version into bison.simple.
3157 * bison.simple: Add a Bison version comment.
3159 1997-06-18 Richard Stallman <rms@gnu.org>
3161 * src/main.c (fatal, warn, berror):
3162 Make error messages standard.
3163 (toomany): Improve error message text.
3165 * 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:
3166 new.h renamed to alloc.h.
3168 1997-06-18 Richard Stallman <rms@gnu.org>
3170 * Makefile.in: new.h renamed to alloc.h.
3172 1997-05-24 Richard Stallman <rms@gnu.org>
3174 * src/lex.c (literalchar):
3175 Fix the code for escaping \, " and '.
3177 (lex): Avoid trouble when there are many chars
3178 to discard in a char literal with just several chars in it.
3180 1997-05-17 Richard Stallman <rms@gnu.org>
3183 Use malloc, if using alloca is troublesome.
3184 (YYSTACK_USE_ALLOCA): New flag macro.
3185 Define it for some systems and compilers.
3186 (YYSTACK_ALLOC): New macro.
3187 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3188 If it was malloc'd, free it.
3190 1997-05-17 Richard Stallman <rms@gnu.org>
3193 Use malloc, if using alloca is troublesome.
3194 (YYSTACK_USE_ALLOCA): New flag macro.
3195 Define it for some systems and compilers.
3196 (YYSTACK_ALLOC): New macro.
3197 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3198 If it was malloc'd, free it.
3200 1997-04-23 Richard Stallman <rms@gnu.org>
3203 (alloca) [__hpux]: Always define as __builtin_alloca.
3205 1997-04-23 Richard Stallman <rms@gnu.org>
3208 (alloca) [__hpux]: Always define as __builtin_alloca.
3210 1997-04-22 Richard Stallman <rms@gnu.org>
3213 [__hpux]: Include alloca.h (right for HPUX 10)
3214 instead of declaring alloca (right for HPUX 9).
3216 * src/bison.s1 (__yy_memcpy):
3217 Declare arg `count' as unsigned int.
3218 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3220 1997-04-22 Richard Stallman <rms@gnu.org>
3223 [__hpux]: Include alloca.h (right for HPUX 10)
3224 instead of declaring alloca (right for HPUX 9).
3226 * bison.simple (__yy_memcpy):
3227 Declare arg `count' as unsigned int.
3228 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3230 1997-01-03 Richard Stallman <rms@gnu.org>
3232 * src/allocate.c: [__STDC__ or _MSC_VER]:
3233 Declare calloc and realloc to return void *.
3235 1997-01-02 Richard Stallman <rms@gnu.org>
3238 [_MSC_VER]: Include stdlib.h and process.h.
3239 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3241 * src/main.c (main): Return FAILURE as a value.
3242 (printable_version): Declare arg as int, not char.
3244 1997-01-02 Richard Stallman <rms@gnu.org>
3246 * Makefile.in (dist):
3247 Explicitly check for symlinks, and copy them.
3249 1996-12-19 Richard Stallman <rms@gnu.org>
3252 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3254 1996-12-18 Paul Eggert <eggert@gnu.org>
3256 * src/bison.s1 (yyparse):
3257 If __GNUC__ and YYPARSE_PARAM are both defined,
3258 declare yyparse to have a void * argument.
3260 1996-12-18 Paul Eggert <eggert@gnu.org>
3262 * bison.simple (yyparse):
3263 If __GNUC__ and YYPARSE_PARAM are both defined,
3264 declare yyparse to have a void * argument.
3266 1996-12-17 Richard Stallman <rms@gnu.org>
3268 * src/reduce.c (nbits): Add some casts.
3270 1996-08-12 Richard Stallman <rms@gnu.org>
3272 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3274 1996-08-12 Richard Stallman <rms@gnu.org>
3276 * bison.simple: Test _MSDOS as well as _MSDOS_.
3278 1996-07-31 Richard Stallman <rms@gnu.org>
3281 [__sun && __i386]: Include alloca.h.
3283 1996-07-31 Richard Stallman <rms@gnu.org>
3286 [__sun && __i386]: Include alloca.h.
3288 1996-07-30 Richard Stallman <rms@gnu.org>
3290 * src/bison.s1: Comment change.
3292 * src/bison.s1: Test _MSDOS_, not MSDOS.
3294 1996-07-30 Richard Stallman <rms@gnu.org>
3296 * bison.simple: Comment change.
3298 * bison.simple: Test _MSDOS_, not MSDOS.
3300 1996-06-01 Richard Stallman <rms@gnu.org>
3302 * 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:
3303 Insert `_' macro around many string constants.
3306 Insert `_' macro around many string constants.
3308 (main): Call setlocale, bindtextdomain and textdomain.
3310 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3311 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3312 [ENABLE_NLS]: Include libintl.h.
3313 [ENABLE_NLS] (gettext): Define.
3314 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3315 (N_, PACKAGE, LOCALEDIR): New macros.
3317 1996-06-01 Richard Stallman <rms@gnu.org>
3319 * POTFILES.in: New file.
3321 * Makefile.in (allocate.o):
3322 Define target explicitly.
3324 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3325 (LDFLAGS): Set to @LDFLAGS@.
3326 (configure): Run autoconf only if preceding `cd' succeeds.
3327 (bison.s1): Redirect output to temporary file then move the
3328 temporary to the target, rather than redirecting directly to bison.s1.
3329 (clean): Remove config.status and config.log.
3330 (distclean): Don't remove config.status here.
3332 1996-05-12 Richard Stallman <rms@gnu.org>
3335 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3337 1996-05-12 Richard Stallman <rms@gnu.org>
3340 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3342 1996-05-11 Richard Stallman <rms@gnu.org>
3344 * src/bison.s1 (__yy_memcpy):
3345 Really reorder the args, as was supposedly done on Feb 14 1995.
3346 (yyparse): Calls changed accordingly.
3348 1996-05-11 Richard Stallman <rms@gnu.org>
3350 * Makefile.in (dist): Don't use $(srcdir).
3352 * bison.simple (__yy_memcpy):
3353 Really reorder the args, as was supposedly done on Feb 14 1995.
3354 (yyparse): Calls changed accordingly.
3356 1996-01-27 Richard Stallman <rms@gnu.org>
3358 * src/output.c (output_rule_data):
3359 Test YYERROR_VERBOSE in the conditional
3360 around the definition of ttyname.
3362 1995-12-29 Richard Stallman <rms@gnu.org>
3365 Fix line numbers in #line commands.
3367 1995-12-29 Richard Stallman <rms@gnu.org>
3370 Fix line numbers in #line commands.
3372 1995-12-27 Richard Stallman <rms@gnu.org>
3374 * src/bison.s1 (YYPARSE_PARAM_DECL):
3375 In C++, make it always null.
3376 (YYPARSE_PARAM_ARG): New macro.
3377 (yyparse): Use YYPARSE_PARAM_ARG.
3379 1995-12-27 Richard Stallman <rms@gnu.org>
3381 * bison.simple (YYPARSE_PARAM_DECL):
3382 In C++, make it always null.
3383 (YYPARSE_PARAM_ARG): New macro.
3384 (yyparse): Use YYPARSE_PARAM_ARG.
3386 1995-11-29 Richard Stallman <rms@gnu.org>
3388 * doc/bison.texinfo:
3389 Describe literal string tokens, %raw, %no_lines, %token_table.
3391 1995-11-29 Daniel Hagerty <hag@gnu.org>
3393 * doc/bison.texinfo: Fixed update date
3395 1995-10-16 Richard Stallman <rms@gnu.org>
3397 * src/version.c: Version 1.25.
3399 1995-10-16 Richard Stallman <rms@gnu.org>
3401 * NEWS: *** empty log message ***
3403 1995-10-16 Richard Stallman <rms@gnu.org>
3405 * doc/bison.1, doc/bison.rnh:
3408 1995-10-15 Richard Stallman <rms@gnu.org>
3410 * src/vmsgetargs.c, src/getargs.c:
3411 Added -n, -k, and -raw switches.
3412 (noparserflag, toknumflag, rawtoknumflag): New variables.
3414 * src/symtab.h (SALIAS):
3415 New #define for adding aliases to %token.
3416 (struct bucket): Added `alias' field.
3418 * src/reduce.c (reduce_grammar):
3419 Revise error message.
3420 (print_notices): Remove final `.' from error message.
3422 * src/reader.c (reader_output_yylsp):
3424 (readgram): Use `#if 0' around code that accepted %command
3425 inside grammar rules: The documentation doesn't allow it,
3426 and it will fail since the %command processors scan for the next %.
3427 (parse_token_decl): Extended the %token
3428 declaration to allow a multi-character symbol as an alias.
3429 (parse_thong_decl): New function.
3430 (read_declarations): Added %thong declarations.
3431 (read_declarations): Handle NOOP to deal with allowing
3432 % declarations as another means to specify the flags.
3433 (readgram): Allow %prec prior to semantics embedded in a rule.
3434 (skip_to_char, read_declarations, copy_definition)
3435 (parse_token_decl, parse_start_decl, parse_type_decl)
3436 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3437 (get_type_name, copy_guard, copy_action, readgram)
3438 (get_type, packsymbols): Revised most error messages.
3439 Changed `fatal' to `warnxxx' to avoid aborting for error.
3440 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3441 (read_declarations): Improve the error message for
3442 an invalid character. Do not abort.
3443 (read_declarations, copy_guard, copy_action): Use
3444 printable_version to avoid unprintable characters in printed output.
3445 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3446 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3447 Allow the type of a non-terminal can be given
3448 more than once, as long as all specifications give the same type.
3451 (output_headers, output_trailers, output, output_gram)
3452 (output_rule_data): Implement noparserflag variable.
3453 Implement toknumflag variable.
3454 (output): Call reader_output_yylsp to output LTYPESTR.
3456 * src/main.c (main):
3457 If reader sees an error, don't process the grammar.
3458 (fatals): Updated to not use VARARGS1.
3459 (printable_version, int_to_string, warn, warni, warns, warnss)
3460 (warnsss): New error reporting functions. Avoid abort for error.
3463 Added THONG and NOOP for alias processing.
3464 Added SETOPT for the new code that allows setting options with %flags.
3467 Include getopt.h. Add some extern decls.
3468 (safegetc): New function to deal with EOF gracefully.
3469 (literalchar); new function to deal with reading \ escapes.
3470 (lex): Use literalchar.
3471 (lex): Implemented "..." tokens.
3472 (literalchar, lex, parse_percent_token): Made tokenbuffer
3473 always contain the token. This includes growing the token
3474 buffer while reading an integer.
3475 (parse_percent_token): Replaced if-else statement with percent_table.
3476 (parse_percent_token): Added % declarations as another
3477 way to specify the flags -n, -l, and -r. Also added hooks for
3478 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3479 major changes to files.c.
3480 (lex) Retain in the incoming stream a character following
3482 (skip_white_space, lex): Revised most error messages
3483 and changed fatal to warn to avoid aborting.
3484 (percent_table): Added %thong declarations.
3486 * src/gram.h: Comment changes.
3488 * src/files.c (openfiles, open_extra_files, done):
3490 and actfile file. Handle noparserflag. Both for -n switch.
3492 * src/conflicts.c (resolve_sr_conflict):
3493 Remove use of alloca.
3495 1995-06-01 Jim Meyering <meyering@gnu.org>
3497 * doc/bison.texinfo: *** empty log message ***
3499 1995-05-06 Richard Stallman <rms@gnu.org>
3501 * src/bison.s1: Comment change.
3503 1995-05-06 Richard Stallman <rms@gnu.org>
3505 * bison.simple: Comment change.
3507 1995-05-03 Richard Stallman <rms@gnu.org>
3509 * src/version.c: Version now 1.24.
3511 * src/bison.s1: Change distribution terms.
3513 * src/version.c: Version now 1.23.
3515 1995-05-03 Richard Stallman <rms@gnu.org>
3517 * doc/bison.texinfo:
3518 Rewrite "Conditions for Using Bison".
3519 Update version to 1.24.
3521 1995-05-03 Richard Stallman <rms@gnu.org>
3523 * bison.simple: Change distribution terms.
3525 1995-02-23 Richard Stallman <rms@gnu.org>
3527 * src/files.c: Test __VMS_POSIX as well as VMS.
3529 1995-02-14 Jim Meyering <meyering@gnu.org>
3531 * src/bison.s1 (__yy_memcpy):
3532 Renamed from __yy_bcopy to avoid
3533 confusion. Reverse FROM and TO arguments to be consistent with
3536 1995-02-14 Jim Meyering <meyering@gnu.org>
3538 * bison.simple (__yy_memcpy):
3539 Renamed from __yy_bcopy to avoid
3540 confusion. Reverse FROM and TO arguments to be consistent with
3543 1994-11-10 David J. MacKenzie <djm@gnu.org>
3549 * Makefile.in (DISTFILES): Include NEWS.
3551 * Makefile.in (DISTFILES):
3552 Include install-sh, not install.sh.
3554 * configure.in: Update to Autoconf v2 macro names.
3556 1994-10-05 David J. MacKenzie <djm@gnu.org>
3558 * Makefile.in: fix typo
3560 * Makefile.in (prefix, exec_prefix):
3561 Let configure set them.
3563 1994-09-28 David J. MacKenzie <djm@gnu.org>
3565 * Makefile.in: Set datadir to $(prefix)/share.
3567 1994-09-15 Richard Stallman <rms@gnu.org>
3570 Update copyright notice and GPL version.
3572 1994-09-15 Richard Stallman <rms@gnu.org>
3575 Update copyright notice and GPL version.
3577 1994-07-12 Richard Stallman <rms@gnu.org>
3579 * src/reduce.c, src/reader.c:
3582 1994-05-05 David J. MacKenzie <djm@gnu.org>
3584 * Makefile.in: entered into RCS
3586 1994-03-26 Richard Stallman <rms@gnu.org>
3588 * src/bison.s1: entered into RCS
3590 1994-03-26 Richard Stallman <rms@gnu.org>
3592 * bison.simple: entered into RCS
3594 1994-03-25 Richard Stallman <rms@gnu.org>
3596 * src/main.c: entered into RCS
3598 1994-03-24 Richard Stallman <rms@gnu.org>
3600 * src/conflicts.c: entered into RCS
3602 1994-01-02 Richard Stallman <rms@gnu.org>
3604 * Makefile.in: *** empty log message ***
3606 1993-11-21 Richard Stallman <rms@gnu.org>
3608 * src/bison.s1: *** empty log message ***
3610 1993-11-21 Richard Stallman <rms@gnu.org>
3612 * doc/bison.texinfo: entered into RCS
3614 * doc/bison.texinfo: *** empty log message ***
3616 1993-11-21 Richard Stallman <rms@gnu.org>
3618 * bison.simple: *** empty log message ***
3620 1993-10-25 David J. MacKenzie <djm@gnu.org>
3622 * doc/bison.texinfo: *** empty log message ***
3624 1993-10-19 Richard Stallman <rms@gnu.org>
3626 * src/bison.s1: *** empty log message ***
3628 1993-10-19 Richard Stallman <rms@gnu.org>
3630 * bison.simple: *** empty log message ***
3632 1993-10-14 Richard Stallman <rms@gnu.org>
3634 * src/bison.s1: *** empty log message ***
3636 1993-10-14 Richard Stallman <rms@gnu.org>
3638 * bison.simple: *** empty log message ***
3640 1993-09-14 David J. MacKenzie <djm@gnu.org>
3642 * doc/bison.texinfo: *** empty log message ***
3644 1993-09-13 Noah Friedman <friedman@gnu.org>
3646 * Makefile.in: *** empty log message ***
3648 1993-09-10 Richard Stallman <rms@gnu.org>
3650 * src/conflicts.c: *** empty log message ***
3652 * src/system.h: entered into RCS
3654 1993-09-10 Richard Stallman <rms@gnu.org>
3656 * doc/bison.1: entered into RCS
3658 1993-09-06 Noah Friedman <friedman@gnu.org>
3660 * src/version.c: entered into RCS
3662 1993-09-06 Noah Friedman <friedman@gnu.org>
3664 * Makefile.in: *** empty log message ***
3666 1993-07-30 David J. MacKenzie <djm@gnu.org>
3668 * Makefile.in: *** empty log message ***
3670 1993-07-24 Richard Stallman <rms@gnu.org>
3672 * src/bison.s1: *** empty log message ***
3674 1993-07-24 Richard Stallman <rms@gnu.org>
3676 * bison.simple: *** empty log message ***
3678 1993-07-08 David J. MacKenzie <djm@gnu.org>
3680 * Makefile.in: *** empty log message ***
3682 1993-07-04 Richard Stallman <rms@gnu.org>
3684 * src/bison.s1: *** empty log message ***
3686 1993-07-04 Richard Stallman <rms@gnu.org>
3688 * bison.simple: *** empty log message ***
3690 1993-06-26 David J. MacKenzie <djm@gnu.org>
3692 * src/getargs.c: entered into RCS
3694 1993-06-26 David J. MacKenzie <djm@gnu.org>
3696 * doc/bison.texinfo: *** empty log message ***
3698 * doc/bison.1: New file.
3700 1993-06-25 Richard Stallman <rms@gnu.org>
3702 * src/getargs.c: New file.
3704 1993-06-16 Richard Stallman <rms@gnu.org>
3706 * src/bison.s1: *** empty log message ***
3708 1993-06-16 Richard Stallman <rms@gnu.org>
3710 * bison.simple: *** empty log message ***
3712 1993-06-03 Richard Stallman <rms@gnu.org>
3714 * src/bison.s1: New file.
3716 1993-06-03 Richard Stallman <rms@gnu.org>
3718 * doc/bison.texinfo: *** empty log message ***
3720 1993-06-03 Richard Stallman <rms@gnu.org>
3722 * bison.simple: New file.
3724 1993-05-19 Richard Stallman <rms@gnu.org>
3726 * doc/bison.texinfo: New file.
3728 1993-05-07 Noah Friedman <friedman@gnu.org>
3730 * Makefile.in: *** empty log message ***
3732 1993-04-28 Noah Friedman <friedman@gnu.org>
3734 * src/reader.c: *** empty log message ***
3736 1993-04-23 Noah Friedman <friedman@gnu.org>
3738 * src/alloc.h: entered into RCS
3740 1993-04-20 David J. MacKenzie <djm@gnu.org>
3742 * src/version.c: *** empty log message ***
3744 * src/files.c, src/allocate.c:
3747 * src/reader.c: *** empty log message ***
3749 * src/lex.c: entered into RCS
3751 * src/conflicts.c: New file.
3753 * src/symtab.c: entered into RCS
3755 * src/alloc.h: New file.
3757 * src/LR0.c: entered into RCS
3759 1993-04-18 Noah Friedman <friedman@gnu.org>
3761 * src/reader.c: New file.
3763 * src/version.c: *** empty log message ***
3765 1993-04-18 Noah Friedman <friedman@gnu.org>
3767 * Makefile.in: *** empty log message ***
3769 1993-04-17 Noah Friedman <friedman@gnu.org>
3771 * Makefile.in: *** empty log message ***
3773 1993-04-15 Richard Stallman <rms@gnu.org>
3775 * src/main.c, src/files.c:
3778 1993-04-15 Noah Friedman <friedman@gnu.org>
3780 * configure.in: entered into RCS
3782 * configure.in: *** empty log message ***
3784 * configure.in: New file.
3786 1993-04-14 Richard Stallman <rms@gnu.org>
3788 * Makefile.in: New file.
3790 1993-04-13 Richard Stallman <rms@gnu.org>
3792 * src/version.c: New file.
3794 1993-03-25 Richard Stallman <rms@gnu.org>
3796 * src/output.c: entered into RCS
3798 1992-09-25 Richard Stallman <rms@gnu.org>
3800 * configure.bat: entered into RCS
3802 1992-06-22 Richard Stallman <rms@gnu.org>
3804 * src/vmsgetargs.c: entered into RCS
3806 1992-06-22 Richard Stallman <rms@gnu.org>
3808 * doc/bison.rnh: entered into RCS
3810 1992-04-20 David J. MacKenzie <djm@gnu.org>
3812 * README: entered into RCS
3814 1992-01-22 Richard Stallman <rms@gnu.org>
3816 * src/machine.h: entered into RCS
3818 1991-12-21 Richard Stallman <rms@gnu.org>
3820 * src/lalr.c, src/closure.c:
3823 1991-12-20 Richard Stallman <rms@gnu.org>
3825 * src/state.h: entered into RCS
3827 1991-12-18 Richard Stallman <rms@gnu.org>
3829 * src/print.c, src/nullable.c, src/derives.c:
3832 1991-11-03 David J. MacKenzie <djm@gnu.org>
3834 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3837 1988-09-09 Richard Stallman <rms@gnu.org>
3839 * src/bison.hairy: entered into RCS
3841 1987-12-16 Richard Stallman <rms@gnu.org>
3843 * REFERENCES: entered into RCS