1 2001-11-30 Akim Demaille <akim@epita.fr>
3 * src/reduce.c (reduce_output): Formatting changes.
4 * src/print.c (print_results, print_grammar): Likewise.
5 * tests/regression.at (Rule Line Numbers)
6 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
8 2001-11-30 Akim Demaille <akim@epita.fr>
10 * src/reduce.c (nonterminals_reduce): Instead of throwing away
11 useless nonterminals, move them at the end of the symbol arrays.
12 (reduce_output): Adjust.
13 * tests/reduce.at (Useless Nonterminals): Adjust.
15 2001-11-30 Akim Demaille <akim@epita.fr>
17 * src/reduce.c: Various comment/formatting changes.
18 (nonterminals_reduce): New, extracted from...
19 (reduce_grammar_tables): here.
20 (reduce_grammar): Call nonterminals_reduce.
22 2001-11-29 Paul Eggert <eggert@twinsun.com>
24 * src/bison.simple (YYSTACK_REALLOC): Remove.
25 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
26 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
28 (union yyalloc): New type.
29 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
30 an arbitrary restriction on hosts where size_t is wider than int.
32 (yyparse): Don't dump core if alloca or malloc fails; instead, report
33 a parser stack overflow. Allocate just one block of memory for all
34 three stacks, instead of allocating three blocks; this typically is
35 faster and reduces fragmentation.
37 Do not limit the number of items in the stack to a value that fits
38 in 'int', as this is an arbitrary limit on hosts with 64-bit
39 size_t and 32-bit int.
41 2001-11-29 Marc Autret <autret_m@epita.fr>
43 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
44 of defining YYERROR_VERBOSE.
45 [AT_DATA]: $4 is now out of C declarations in the prologue.
47 2001-11-28 Marc Autret <autret_m@epita.fr>
49 * src/reader.c (parse_dquoted_param): New.
50 (parse_skel_decl): Use it.
51 * src/lex.h: Add its prototype.
52 * src/lex.c (literalchar): Become not static.
54 2001-11-28 Marc Autret <autret_m@epita.fr>
56 * src/output.h: And put its extern declaration here.
57 * src/output.c (error_verbose): Define here.
58 (prepare): Echo name modification.
59 * src/getargs.h: Clean its extern declaration.
60 * src/getargs.c (error_verbose_flag): Remove.
61 (getargs): Remove case 'e'.
62 * src/options.c (option_table): 'error-verbose' is now seen as simple
66 * src/reader.c (read_declarations): Remove case tok_include.
67 (parse_include_decl): Remove.
68 * src/lex.h (token_t): Remove tok_include.
69 * src/options.c (option_table): 'include' is now a simple command line
72 2001-11-28 Marc Autret <autret_m@epita.fr>
74 * src/bison.simple: Adjust muscle names.
75 * src/muscle_tab.c (muscle_init): Also rename the muscles.
76 * src/output.c (prepare): s/_/-/ for the muscles names.
77 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
79 2001-11-28 Marc Autret <autret_m@epita.fr>
81 * src/bison.simple: Fix debug.
82 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
84 2001-11-28 Akim Demaille <akim@epita.fr>
86 * src/LR0.c (shifts_new): New.
87 (save_shifts, insert_start_shift, augment_automaton): Use it.
89 2001-11-28 Akim Demaille <akim@epita.fr>
91 * src/closure.c (closure): `b' and `ruleno' denote the same value:
94 2001-11-28 Akim Demaille <akim@epita.fr>
96 * src/closure.c (closure): Instead of looping over word in array
97 then bits in words, loop over bits in array.
99 2001-11-28 Akim Demaille <akim@epita.fr>
101 * src/closure.c (closure): No longer optimize the special case
102 where all the bits of `ruleset[r]' are set to 0, to make the code
105 2001-11-28 Akim Demaille <akim@epita.fr>
107 * src/closure.c (closure): `r' and `c' are new variables, used to
108 de-obfuscate accesses to RULESET and CORE.
110 2001-11-28 Akim Demaille <akim@epita.fr>
112 * src/reduce.c (reduce_print): Use ngettext.
113 (dump_grammar): Improve the trace accuracy.
115 2001-11-28 Akim Demaille <akim@epita.fr>
117 * src/reduce.c (dump_grammar): Don't translate trace messages.
119 2001-11-28 Akim Demaille <akim@epita.fr>
121 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
122 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
123 as all tags are free'ed afterwards.
126 2001-11-27 Paul Eggert <eggert@twinsun.com>
128 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
129 use alloca when we didn't want to, and vice versa.
131 2001-11-27 Marc Autret <autret_m@epita.fr>
133 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
135 * src/output.c (prepare): Remove its update.
137 2001-11-27 Marc Autret <autret_m@epita.fr>
139 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
142 2001-11-27 Marc Autret <autret_m@epita.fr>
144 * src/bison.simple: Remove YYERROR_VERBOSE using.
147 * src/output.c (prepare): Give its final value.
148 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
149 * src/getargs.h: Add its extern declaration.
150 * src/getargs.c (error_verbose_flag): New int.
151 (getargs): Update to catch new case.
152 * src/options.c (option_table): 'error-verbose' is a new option.
155 2001-11-27 Akim Demaille <akim@epita.fr>
157 * src/system.h: Use intl/libgettext.h.
158 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
160 2001-11-27 Akim Demaille <akim@epita.fr>
162 * tests/torture.at (Exploding the Stack Size with Malloc):
163 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
165 2001-11-27 Akim Demaille <akim@epita.fr>
167 * src/files.c: Include error.h.
168 Reported by Hans Aberg.
170 2001-11-26 Marc Autret <autret_m@epita.fr>
172 * src/reader.c (parse_include_decl): New, not yet implemented.
173 (read_declarations): Add case tok_include.
174 * src/getargs.h (include): Add its extern definition.
175 * src/getargs.c (include): New const char *.
176 (getargs): Add case '-I'.
177 * src/options.c (option_table): Add include as command line and
179 * src/lex.h (token_t): Add tok_include.
181 2001-11-26 Akim Demaille <akim@epita.fr>
183 * src/reader.c (readgram): Make sure rules for mid-rule actions
184 have a lineno equal to that of their host rule.
185 Reported by Hans Aberg.
186 * tests/regression.at (Rule Line Numbers): New.
188 2001-11-26 Akim Demaille <akim@epita.fr>
190 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
193 2001-11-26 Akim Demaille <akim@epita.fr>
195 * src/complain.c, src/complain.h (error): Remove, provided by
198 2001-11-26 Akim Demaille <akim@epita.fr>
200 * src/reader.c (read_declarations): Don't abort on tok_illegal,
201 issue an error message.
202 * tests/regression.at (Invalid %directive): New.
203 Reported by Hans Aberg.
205 2001-11-26 Akim Demaille <akim@epita.fr>
207 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
208 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
210 2001-11-26 Akim Demaille <akim@epita.fr>
212 * src/conflicts.c (conflicts_print): Don't complain at all when
213 there are no reduce/reduce conflicts, and as many shift/reduce
214 conflicts as expected.
215 * tests/regression.at (%expect right): Adjust.
217 2001-11-23 Akim Demaille <akim@epita.fr>
219 * lib/alloca.c: Update, from fileutils.
221 2001-11-23 Akim Demaille <akim@epita.fr>
223 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
225 2001-11-23 Akim Demaille <akim@epita.fr>
227 * src/system.h: Include alloca.h.
228 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
230 2001-11-23 Akim Demaille <akim@epita.fr>
232 * src/print_graph.c (print_actions): Remove `rule', unused.
233 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
234 pacify GCC's signed < unsigned warnings.
235 * src/closure.c (itemsetsize): Likewise.
236 * src/reader.c (symbol_list_new): Static.
238 2001-11-23 Akim Demaille <akim@epita.fr>
240 Attaching lineno to buckets is stupid, since only one copy of each
241 symbol is kept, only the line of the first occurrence is kept too.
243 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
244 * src/reader.c (rline_allocated): Remove, unused.
245 (symbol_list): Have a `line' member.
246 (symbol_list_new): New.
248 * src/print.c (print_grammar): Output the rule line numbers.
249 * tests/regression.at (Solved SR Conflicts)
250 (Unresolved SR Conflicts): Adjust.
251 Reported by Hans Aberg.
253 2001-11-22 Marc Autret <autret_m@epita.fr>
255 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
257 2001-11-22 Marc Autret <autret_m@epita.fr>
259 * src/muscle_tab.c (muscle_init): Remove initialization of
261 * src/output.c (output_master_parser): Do it here.
263 2001-11-20 Akim Demaille <akim@epita.fr>
266 * configure.in (ALL_LINGUAS): Adjust.
267 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
268 longer contains strings to translate.
270 2001-11-19 Akim Demaille <akim@epita.fr>
272 * src/conflicts.c (conflicts_print): Add a missing \n.
274 2001-11-19 Akim Demaille <akim@epita.fr>
276 * src/nullable.c (nullable_print): New.
277 (set_nullable): Call it when tracing.
278 Better locality of variables.
280 2001-11-19 Akim Demaille <akim@epita.fr>
282 * src/print.c (print_actions): Better locality of variables.
284 2001-11-19 Akim Demaille <akim@epita.fr>
286 * src/derives.c (print_derives): Fix and enrich.
287 * src/closure.c (print_fderives): Likewise.
289 2001-11-19 Akim Demaille <akim@epita.fr>
291 * src/closure.c (itemsetend): Remove, replaced with...
294 2001-11-19 Akim Demaille <akim@epita.fr>
296 * src/LR0.c (kernel_end): Remove, replaced with...
299 2001-11-19 Akim Demaille <akim@epita.fr>
301 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
304 2001-11-19 Akim Demaille <akim@epita.fr>
306 * src/closure.c (closure): Use arrays instead of pointers to clarify.
308 2001-11-19 Akim Demaille <akim@epita.fr>
310 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
312 * src/LR0.c: Likewise.
313 (allocate_itemsets): Use arrays instead of pointers to clarify.
315 2001-11-19 Akim Demaille <akim@epita.fr>
317 * src/getargs.c (statistics_flag): Replace with...
319 (longopts): Accept --trace instead of --statistics.
320 * src/getargs.h, src/options.c: Adjust.
321 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
322 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
324 2001-11-19 Akim Demaille <akim@epita.fr>
326 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
327 pointers to clarify the code.
328 (save_reductions, save_shifts): Factor common parts of alternatives.
330 2001-11-19 Akim Demaille <akim@epita.fr>
332 * src/LR0.c (new_state, get_state): Complete TRACE code.
333 * src/closure.c: Include `reader.h' to get `tags', needed by the
335 Rename the conditional DEBUG as TRACE.
336 Output consistently TRACEs to stderr, not stdout.
337 * src/derives.c: Likewise.
338 * src/reduce.c: (inaccessable_symbols): Using if is better style
340 Use `#if TRACE' instead of `#if 0' for tracing code.
342 2001-11-19 Akim Demaille <akim@epita.fr>
344 * src/system.h (LIST_FREE, shortcpy): New.
345 * src/LR0.c: Use them.
346 * src/output.c (free_itemsets, free_reductions, free_shifts):
347 Remove, replaced by LIST_FREE.
349 2001-11-19 Akim Demaille <akim@epita.fr>
351 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
352 (REDUCTIONS_ALLOC): New.
353 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
356 2001-11-19 Akim Demaille <akim@epita.fr>
358 * src/LR0.c (new_state): Complete trace code.
359 * src/nullable.c (set_nullable): Don't translate traces.
361 2001-11-19 Akim Demaille <akim@epita.fr>
363 * src/print_graph.c (print_core): Better locality of variables.
364 * src/print.c (print_core): Likewise.
366 2001-11-19 Akim Demaille <akim@epita.fr>
368 * src/vcg.c: You do the output, so you are responsible of the
369 handling of VCG syntax, in particular: use quotearg.
370 * src/print_graph.c: Don't.
371 (print_actions): Don't output the actions as part of the nodes,
372 since that's the job of the edges.
373 (print_state): Don't output by hand: fill the node description,
374 and ask for its output.
376 2001-11-19 Akim Demaille <akim@epita.fr>
378 * src/bison.simple (yyparse): When verbosely reporting an error,
379 no longer put additional quotes around token names.
380 * tests/calc.at: Adjust.
382 2001-11-19 Akim Demaille <akim@epita.fr>
384 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
385 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
386 * src/output.c: Adjust.
388 2001-11-19 Akim Demaille <akim@epita.fr>
390 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
392 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
394 2001-11-19 Akim Demaille <akim@epita.fr>
396 * src/gram.h (rule_t): New.
398 (rrhs, rlhs): Remove, part of state_t.
399 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
400 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
401 * src/reader.c, src/reduce.c: Adjust.
403 2001-11-19 Akim Demaille <akim@epita.fr>
405 * src/reader.c (symbols_output): New, extracted from...
409 2001-11-19 Akim Demaille <akim@epita.fr>
411 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
412 (maxrhs): this new function.
414 2001-11-19 Akim Demaille <akim@epita.fr>
416 * src/lalr.c (F): New macro to access the variable F.
419 2001-11-19 Akim Demaille <akim@epita.fr>
421 * src/lalr.h (LA): New macro to access the variable LA.
422 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
423 * src/lalr.c: Adjust.
425 2001-11-19 Akim Demaille <akim@epita.fr>
427 * src/lalr.c (initialize_LA): Only initialize LA. Let...
428 (set_state_table): handle the `lookaheads' members.
430 2001-11-19 Akim Demaille <akim@epita.fr>
432 * src/lalr.h (lookaheads): Removed array, whose contents is now
434 (state_t): this structure.
435 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
438 2001-11-19 Akim Demaille <akim@epita.fr>
440 * src/lalr.h (consistent): Removed array, whose contents is now
442 (state_t): this structure.
443 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
446 2001-11-19 Akim Demaille <akim@epita.fr>
448 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
449 contents are now members of...
450 (state_t): this structure.
451 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
454 2001-11-19 Akim Demaille <akim@epita.fr>
456 * src/lalr.h (state_t): New.
457 (state_table): Be a state_t * instead of a core **.
458 (accessing_symbol): Remove, part of state_t.
459 * src/lalr.c: Adjust.
460 (set_accessing_symbol): Merge into...
461 (set_state_table): this.
462 * src/print_graph.c, src/conflicts.c: Adjust.
464 2001-11-14 Akim Demaille <akim@epita.fr>
466 * tests/calc.at, tests/output.at, tests/regression.at,
467 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
468 now the tests are run in private dirs, therefore AC_CLEANUP and
469 family can be simplified to 0-ary.
470 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
471 use abs. path to find config.h.
472 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
473 stderr, there can be way too much random noise.
474 Instead pass -Werror to GCC and rely on the exit status.
475 Reported by Wolfram Wagner.
477 2001-11-14 Akim Demaille <akim@epita.fr>
479 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
480 defined only if yyoverflow is defined, to avoid `warning: unused
482 Reported by The Test Suite.
484 2001-11-14 Akim Demaille <akim@epita.fr>
486 * src/print.c: Include reduce.h.
487 Reported by Hans Aberg.
489 2001-11-14 Akim Demaille <akim@epita.fr>
491 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
492 Revert a previous patch: these are really const.
493 * src/conflicts.c (conflict_report): Additional useless pair of
494 braces to pacify GCC's warnings for `if () if () {} else {}'.
495 * src/lex.c (parse_percent_token): Replace equal_offset with
498 Be sure to strdup `arg' when used, since there is no reason for
499 token_buffer not to change.
501 2001-11-14 Akim Demaille <akim@epita.fr>
503 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
505 * src/main.c (main): Use them.
506 Suggested by Hans Aberg.
508 2001-11-12 Akim Demaille <akim@epita.fr>
510 * src/system.h (ngettext): Now that we use ngettext, be sure to
511 provide a default definition when NLS are not used.
513 2001-11-12 Akim Demaille <akim@epita.fr>
515 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
516 Use @kbd to denote user input.
517 (Language and Grammar): ANSIfy the example.
518 Adjust its layout for info/notinfo.
519 (Location Tracking Calc): Output error messages to stderr.
520 Output locations in a more GNUtically correct way.
521 Fix a couple of Englishos.
522 Adjust @group/@end group pairs.
524 2001-11-12 Akim Demaille <akim@epita.fr>
526 %expext was not functioning at all.
528 * src/conflicts.c (expected_conflicts): Set to -1.
529 (conflict_report): Use ngettext.
530 (conflicts_print): Check %expect and make its violation an error.
531 * doc/bison.texinfo (Expect Decl): Adjust.
532 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
533 * tests/regression.at (%expect not enough, %expect right)
534 (%expect too much): New.
536 2001-11-12 Akim Demaille <akim@epita.fr>
538 * tests/regression.at (Conflicts): Rename as...
539 (Unresolved SR Conflicts): this.
540 (Solved SR Conflicts): New.
542 2001-11-12 Akim Demaille <akim@epita.fr>
544 * src/reduce.c (print_results): Rename as...
545 (reduce_output): This.
546 Output to OUT, passed as argument, instead of output_obstack.
547 (dump_grammar): Likewise.
550 (reduce_grammar): No longer call reduce_output, since...
551 * src/print.c (print_results): do it.
552 * src/main.c (main): Call reduce_free;
554 2001-11-12 Akim Demaille <akim@epita.fr>
556 * src/conflicts.c (print_reductions): Accept OUT as argument.
557 Output to it, not to output_obstack.
558 * src/print.c (print_actions): Adjust.
560 2001-11-12 Akim Demaille <akim@epita.fr>
562 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
563 the result instead of using...
564 (src_total, rrc_total, src_count, rrc_count): Remove.
565 (any_conflicts): Remove.
566 (print_conflicts): Split into...
567 (conflicts_print, conflicts_output): New.
568 * src/conflicts.h: Adjust.
569 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
570 * src/print.c (print_grammar): Issue `\n' between two rules.
571 * tests/regression.at (Conflicts): New.
572 Reported by Tom Lane.
574 2001-11-12 Akim Demaille <akim@epita.fr>
576 * tests/regression.at (Invalid input): Remove, duplicate with
577 ``Invalid input: 1''.
579 2001-11-12 Akim Demaille <akim@epita.fr>
581 * tests/torture.at (AT_DATA_STACK_TORTURE)
582 (Exploding the Stack Size with Alloca)
583 (Exploding the Stack Size with Malloc): New.
585 2001-11-12 Akim Demaille <akim@epita.fr>
587 * src/bison.simple (YYSTACK_REALLOC): New.
588 (yyparse) [!yyoverflow]: Use it and free the old stack.
589 Reported by Per Allansson.
591 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
593 * src/bison.simple: Define type yystype instead of YYSTYPE, and
594 define CPP macro, which substitute YYSTYPE by yystype.
595 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
596 with yyltype/YYLTYPE. This allows inclusion of the generated
597 header within the parser if the compiler, such as GGC, accepts
598 multiple equivalent #defines.
601 2001-11-05 Akim Demaille <akim@epita.fr>
603 * src/reader.c (symbols_output): New, extracted from...
607 2001-11-05 Akim Demaille <akim@epita.fr>
609 * src/lex.c (parse_percent_token): s/quotearg/quote/.
611 2001-11-05 Akim Demaille <akim@epita.fr>
613 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
616 2001-11-05 Akim Demaille <akim@epita.fr>
618 * src/options.h (struct option_table_struct): set_flags is void*.
619 * src/options.c (longopts): Support `--output' and `%output'.
621 * src/lex.h (tok_setopt): Remove, replaced with...
622 (tok_intopt, tok_stropt): these new guys.
623 * src/lex.c (getopt.h): Not needed.
624 (token_buffer, unlexed_token_buffer): Not const.
625 (percent_table): Promote `-' over `_' in directive names.
626 Active `%name-prefix', `file-prefix', and `output'.
627 (parse_percent_token): Accept possible arguments to directives.
628 Promote `-' over `_' in directive names.
630 2001-11-04 Akim Demaille <akim@epita.fr>
632 * doc/bison.texinfo (Decl Summary): Split the list into
633 `directives for grammars' and `directives for bison'.
635 Add description of `%name-prefix', `file-prefix', and `output'.
636 Promote `-' over `_' in directive names.
637 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
638 Simplify the description of `--name-prefix'.
639 Promote `-' over `_' in directive names.
640 Promote `--output' over `--output-file'.
641 Fix the description of `--defines'.
642 * tests/output.at: Exercise %file-prefix and %output.
644 2001-11-02 Akim Demaille <akim@epita.fr>
646 * doc/refcard.tex: Update.
648 2001-11-02 Akim Demaille <akim@epita.fr>
650 * src/symtab.h (SUNDEF): New.
651 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
652 stand for `uninitialized', instead of 0.
653 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
654 * src/lex.c (lex): Adjust.
656 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
658 Let yylex return it instead of a plain 0.
659 Reported by Dick Streefland.
661 2001-11-02 Akim Demaille <akim@epita.fr>
663 * tests/regression.at (Mixing %token styles): New test.
665 2001-11-02 Akim Demaille <akim@epita.fr>
667 * src/reader.c (parse_thong_decl): Formatting changes.
668 (token_translations_init): New, extracted from...
672 2001-11-01 Akim Demaille <akim@epita.fr>
674 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
675 Check that `9foo.y' produces correct cpp guards.
676 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
680 2001-11-01 Akim Demaille <akim@epita.fr>
682 * tests/regression.at (Invalid input: 2): New.
683 * src/lex.c (unlexed_token_buffer): New.
684 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
688 2001-11-01 Akim Demaille <akim@epita.fr>
690 * tests/calc.at: Catch up with 1.30.
691 * configure.in: Bump to 1.49a.
692 Adjust to newer Autotest.
694 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
696 * src/conflicts.c: Move global variables rrc_total and src_total ...
697 (print_conflicts): here.
698 * src/output.c (output): Free global variable user_toknums.
699 * src/lex.c (token_obstack): Become static.
701 2001-10-18 Akim Demaille <akim@epita.fr>
703 * tests/atlocal.in (GCC): Add.
704 * tests/calc.at: s/m4_match/m4_bmatch/.
705 s/m4_patsubst/m4_bpatsubst/.
706 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
707 * configure.in: AC_SUBST(GCC).
709 2001-10-14 Marc Autret <autret_m@epita.fr>
711 * src/options.c (create_long_option_table): Fix.
713 2001-10-10 Akim Demaille <akim@epita.fr>
715 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
717 2001-10-04 Akim Demaille <akim@epita.fr>
719 * src/reader.c (parse_union_decl): Push the caracters in
720 union_obstack, not attrs_obstack.
722 2001-10-04 Akim Demaille <akim@epita.fr>
724 Merge in the branch 1.29.
726 * src/reader.c (packsymbols): Use a temporary obstack for
727 `%%tokendef', since output_stack is already used elsewhere.
729 2001-10-02 Akim Demaille <akim@epita.fr>
733 2001-10-02 Akim Demaille <akim@epita.fr>
737 2001-10-02 Akim Demaille <akim@epita.fr>
739 * tests/regression.at (Invalid CPP headers): New.
740 From Alexander Belopolsky.
741 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
743 2001-10-02 Akim Demaille <akim@epita.fr>
745 * tests/regression.at (Invalid input): New.
746 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
749 2001-10-02 Akim Demaille <akim@epita.fr>
751 * tests/calc.at: Now that --debug works, the tests must be adjusted.
753 2001-10-02 Akim Demaille <akim@epita.fr>
755 * src/output.c (output_parser): Assert `skeleton'.
756 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
760 2001-10-01 Marc Autret <autret_m@epita.fr>
762 * src/lex.h: Echo modifications.
763 * src/lex.c (unlex): Parameter is now token_t.
766 2001-10-01 Marc Autret <autret_m@epita.fr>
768 * src/main.c: Include lex.h.
771 2001-09-29 Akim Demaille <akim@epita.fr>
773 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
775 2001-09-28 Akim Demaille <akim@epita.fr>
777 * tests/testsuite.at: Update to newer Autotest.
778 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
780 2001-09-27 Akim Demaille <akim@epita.fr>
782 Position independent wrapper.
784 * tests/bison: Remove.
785 * tests/bison.in: New.
786 * configure.in: Adjust.
788 2001-09-27 Paul Eggert <eggert@twinsun.com>
790 Port quotearg fixes from tar 1.13.24.
792 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
794 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
795 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
797 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
798 * m4/mbrtowc.m4: New file.
799 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
800 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
802 2001-09-27 Akim Demaille <akim@epita.fr>
806 2001-09-27 Akim Demaille <akim@epita.fr>
810 2001-09-25 Akim Demaille <akim@epita.fr>
812 * src/system.h: Include `xalloc.h'.
813 Remove it from the C files.
814 * src/files.c (output_files): Free the obstacks.
815 * src/lex.c (init_lex): Rename as...
818 * src/main.c (main): Use it.
820 2001-09-24 Marc Autret <autret_m@epita.fr>
822 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
823 to output informations in fout (FILE*).
824 (open_graph, close_graph): Likewise.
825 (output_graph, output_edge, output_node): Likewise.
826 * src/vcg.h: Update function prototypes.
827 * src/print_graph.c (print_graph): Open output graph file.
828 (print_actions): Adjust.
829 * src/files.h: Remove extern declaration.
830 * src/files.c: Remove graph_obstack declaration.
831 (open_files): Remove graph_obstack initialization.
832 (output_files): Remove graph_obstack saving.
834 2001-09-24 Marc Autret <autret_m@epita.fr>
836 * src/files.c (compute_output_file_names): Fix.
838 2001-09-24 Marc Autret <autret_m@epita.fr>,
839 Akim Demaille <akim@epita.fr>
841 * src/reader.c (reader): Remove call to free_symtab ().
842 * src/main.c (main): Call it here.
844 * src/conflicts.c (initialize_conflicts): Rename as...
845 (solve_conflicts): this.
846 * src/print.c (print_core, print_actions, print_state)
847 (print_grammar): Dump to a file instead a `output_obstack'.
848 (print_results): Dump `output_obstack', and then proceed with the
850 * src/files.c (compute_output_file_names, close_files): New.
851 (output_files): Adjust.
852 * src/main.c (main): Adjust.
854 2001-09-23 Marc Autret <autret_m@epita.fr>
856 * src/files.c (compute_header_macro): Computes header macro name
857 from spec_defines_file when given.
859 2001-09-23 Marc Autret <autret_m@epita.fr>
861 * src/files.c (output_files): Add default extensions.
863 2001-09-22 Akim Demaille <akim@epita.fr>
865 * src/conflicts.c (finalize_conflicts): Rename as...
866 (free_conflicts): this.
868 2001-09-22 Akim Demaille <akim@epita.fr>
870 * src/gram.c (gram_free): Rename back as...
872 (output_token_translations): Free `token_translations'.
873 * src/symtab.c (free_symtab): Free the tag field.
875 2001-09-22 Akim Demaille <akim@epita.fr>
877 Remove `translations' as it is always set to true.
879 * src/gram.h: Adjust.
880 * src/reader.c (packsymbols, parse_token_decl): Adjust
881 * src/print.c (print_grammar): Adjust.
882 * src/output.c (output_token_translations): Adjust.
883 * src/lex.c (lex): Adjust.
884 * src/gram.c: Be sure the set pointers to NULL.
885 (dummy): Rename as...
888 2001-09-22 Akim Demaille <akim@epita.fr>
890 * configure.in: Invoke AM_LIB_DMALLOC.
891 * src/system.h: Use dmalloc.
892 * src/LR0.c: Be sure to have pointers initialized to NULL.
893 (allocate_itemsets): Allocate kernel_items only if needed.
895 2001-09-22 Akim Demaille <akim@epita.fr>
897 * configure.in: Bump to 1.29b.
898 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
899 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
900 need xmalloc.c in calc.y.
903 2001-09-21 Akim Demaille <akim@epita.fr>
906 * Makefile.maint, config/config.guess, config/config.sub,
907 * config/missing: Update from masters.
908 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
910 * configure.in (ALL_LINGUAS): Add `tr'.
912 2001-09-21 Akim Demaille <akim@epita.fr>
914 * tests/Makefile.am (package.m4): Move to...
915 ($(srcdir)/$(TESTSUITE)): here.
917 2001-09-20 Akim Demaille <akim@epita.fr>
919 * src/complain.c: No longer try to be standalone: use system.h.
920 Don't assume __STDC__ is defined to 1. Just test if it is defined.
921 * src/complain.h: Likewise.
922 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
923 Remove the unused variable `n'.
924 From Albert Chin-A-Young.
926 2001-09-18 Marc Autret <autret_m@epita.fr>
928 * doc/bison.1: Update.
929 * doc/bison.texinfo (Bison Options): Update --defines and --graph
931 (Option Cross Key): Update.
934 2001-09-18 Marc Autret <autret_m@epita.fr>
936 * tests/regression.at: New test (comment in %union).
938 2001-09-18 Marc Autret <autret_m@epita.fr>
940 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
942 Reported by Keith Browne.
944 2001-09-18 Marc Autret <autret_m@epita.fr>
946 * tests/output.at: Add tests for --defines and --graph.
948 2001-09-18 Marc Autret <autret_m@epita.fr>
950 * tests/output.at: Removes tests of %{header,src}_extension features.
952 2001-09-18 Akim Demaille <akim@epita.fr>
954 * tests/Makefile.am (package.m4): New.
955 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
956 (_AT_CHECK_CALC_ERROR): Likewise.
957 Factor the `, ' part of verbose error messages.
959 2001-09-18 Marc Autret <autret_m@epita.fr>
961 * src/getargs.c (longopts): Declare --defines and --graph as options
962 with optional arguments.
963 * src/files.h: Add extern declarations.
964 * src/files.c (spec_graph_file, spec_defines_file): New.
965 (output_files): Update.
966 Remove CPP-outed code.
968 2001-09-18 Marc Autret <autret_m@epita.fr>
970 Turn off %{source,header}_extension feature.
972 * src/files.c (compute_exts_from_gf): Update.
973 (compute_exts_from_src): Update.
974 (output_files): CPP-out useless code.
975 * src/files.h: Remove {header,source}_extension extern declarations.
976 * src/reader.c (parse_dquoted_param): CPP-out.
977 (parse_header_extension_decl): Remove.
978 (parse_source_extension_decl): Remove.
979 (read_declarations): Remove cases tok_{hdrext,srcext}.
980 * src/lex.c (percent_table): Remove {header,source}_extension entries.
981 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
983 2001-09-10 Akim Demaille <akim@epita.fr>
985 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
986 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
987 (AT_CHECK_OUTPUT): this.
988 Merely check ls' exit status, its output is useless.
990 2001-09-10 Akim Demaille <akim@epita.fr>
992 * tests/calc.at: Use m4_match.
993 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
995 2001-09-10 Marc Autret <autret_m@epita.fr>,
996 Akim Demaille <akim@epita.fr>
998 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1000 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1002 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1003 * src/lex.h: Adjust prototype.
1004 (token_t): Add `tok_undef'.
1005 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1006 (parse_percent_token): Now returns token_t.
1007 Add default statement in switch.
1008 (lex): Separate `c' as an input variable, from the token_t result
1010 (unlexed): Is a token_t.
1012 2001-09-10 Akim Demaille <akim@epita.fr>
1014 * configure.in: Bump to 1.29a.
1016 2001-09-07 Akim Demaille <akim@epita.fr>
1020 2001-08-30 Akim Demaille <akim@epita.fr>
1022 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1023 * m4/atconfig.m4: Remove.
1024 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1026 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1027 m4_if, m4_patsubst, and m4_regexp.
1028 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1029 `input' file instead of echo.
1031 2001-08-29 Akim Demaille <akim@epita.fr>
1035 2001-08-29 Akim Demaille <akim@epita.fr>
1039 2001-08-29 Paul Eggert <eggert@twinsun.com>
1041 * src/bison.simple (yyparse): Don't take the address of an
1042 item before the start of an array, as that doesn't conform to
1045 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1047 * doc/bison.texinfo (Location Tracking Calc): New node.
1049 2001-08-29 Paul Eggert <eggert@twinsun.com>
1051 * src/output.c (output): Do not define const, as this now
1052 causes more problems than it cures.
1054 2001-08-29 Akim Demaille <akim@epita.fr>
1056 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1058 Be sure to tag the `detailmenu'.
1060 2001-08-29 Akim Demaille <akim@epita.fr>
1062 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1063 download in a tmp dir.
1065 2001-08-28 Marc Autret <autret_m@epita.fr>
1067 * config/depcomp: New file.
1069 2001-08-28 Marc Autret <autret_m@epita.fr>
1071 * doc/bison.1 (mandoc): Adjust.
1072 From Juan Manuel Guerrero.
1074 2001-08-28 Marc Autret <autret_m@epita.fr>
1076 * src/print_graph.c (print_state): Fix.
1078 2001-08-27 Marc Autret <autret_m@epita.fr>
1080 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1082 Echo modifications to the functions prototypes.
1083 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1085 2001-08-27 Marc Autret <autret_m@epita.fr>
1087 * src/vcg.c: Include `xalloc.h'.
1088 (add_colorentry): New.
1089 (add_classname): New.
1090 (add_infoname): New.
1091 * src/vcg.h: Add new prototypes.
1093 2001-08-27 Akim Demaille <akim@epita.fr>
1095 * Makefile.maint: Sync. again with CVS Autoconf.
1097 2001-08-27 Akim Demaille <akim@epita.fr>
1099 * Makefile.maint: Formatting changes.
1100 (po-update, cvs-update, update): New targets.
1103 2001-08-27 Akim Demaille <akim@epita.fr>
1105 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1106 * Makefile.maint: Sync. with CVS Autoconf.
1108 2001-08-27 Marc Autret <autret_m@epita.fr>
1110 * src/vcg.h (struct infoname_s): New.
1111 (struct colorentry_s): New.
1112 (graph_s): New fields {vertical,horizontal}_order in structure.
1113 Add `infoname' field.
1114 Add `colorentry' field;
1115 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1116 (G_HORIZONTAL_ORDER): New.
1118 (G_COLORENTRY): New.
1119 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1120 Add output of `infoname'.
1121 Add output of `colorentry'.
1123 2001-08-27 Marc Autret <autret_m@epita.fr>
1125 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1126 This one shadowed a global parameter.
1128 2001-08-24 Marc Autret <autret_m@epita.fr>
1130 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1131 instead of `unsigned'.
1132 (print_state): Do not call obstack_object_size () in obstack_grow ()
1133 to avoid macro variables shadowing.
1135 2001-08-23 Marc Autret <autret_m@epita.fr>
1137 * src/lex.c (percent_table): Typo: s/naem/name/.
1139 Normalize new options declarations.
1141 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1143 * tests/suite.at: Exercise %header_extension and %source_extension.
1145 2001-08-16 Marc Autret <autret_m@epita.fr>
1147 * src/reader.c (parse_dquoted_param): New.
1148 (parse_header_extension_decl): Use it.
1149 (parse_source_extension_decl): Likewise.
1151 2001-08-16 Marc Autret <autret_m@epita.fr>
1153 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1154 (get_xxxx_str): Use assert () instead of complain ().
1155 Remove return invokations in default cases.
1156 (get_decision_str): Modify default behaviour. Remove second argument.
1157 Echo modifications on calls.
1158 (output_graph): Fix.
1160 2001-08-16 Marc Autret <autret_m@epita.fr>
1162 * src/getargs.c (usage): Update with ``-g, --graph''.
1164 2001-08-16 Marc Autret <autret_m@epita.fr>
1166 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1167 (Option Cross Key): Likewise.
1168 * doc/bison.1: Update.
1170 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1172 * src/output.c (output_master_parser): Don't finish action_obstack.
1173 (output_parser): Don't care about the muscle action, here.
1174 (prepare): Copy the action_obstack in the action muscle.
1175 (output): Free action_obstack.
1177 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1179 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1180 will contain `%union' declaration.
1181 (parse_union_decl): Delete #line directive output.
1182 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1183 informations about %union.
1184 (parse_union_decl): Copy the union_obstack in the muscle stype.
1185 * src/bison.simple: Add new #line directive.
1186 Add typdef %%stype YYSTYPE.
1188 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1190 * src/bison.simple: Add new `#line' directive.
1192 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1194 * src/bison.simple: New `#line' directive.
1195 * src/output.c (output_parser): Support new dynamic muscle input_line.
1197 2001-09-22 Marc Autret <autret_m@epita.fr>
1199 * src/output.c (output_master_parser): New.
1200 (output_parser): Be more re-entrant.
1202 2001-09-21 Marc Autret <autret_m@epita.fr>
1204 * src/reader.c (copy_definition, parse_union_decl): Update and use
1206 (copy_action): Likewise.
1207 Use obstack_1grow ().
1208 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1210 2001-09-21 Marc Autret <autret_m@epita.fr>
1212 * src/options.c (option_table): Adjust.
1213 * src/lex.c (parse_percent_token): Fix.
1215 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1217 * src/options.c (symtab.h): Include it, need by lex.h.
1219 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1221 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1222 is now an option_table_struct*.
1223 (option_strcmp): New function option_strcmp.
1224 (parse_percent_token): Call option_strcmp.
1225 * src/getargs.c (xalloc.h, options.h): Include it.
1226 (getargs): Call create_long_option_table.
1227 (getargs): Free longopts at the end of the function.
1228 (shortopts): Move in options.c.
1229 * src/options.c (create_long_option_table): New function. Convert
1230 information from option_table to option structure.
1231 * src/reader.c (options.h): Include it.
1233 * src/Makefile.am: Adjust.
1234 * src/options.c (option_table): Create from longopts and percent_table.
1235 * src/getargs.c (longopts): Delete.
1236 * src/lex.c (struct percent_table_struct): Delete.
1237 (percent_table): Delete.
1238 (options.h): Include it.
1239 * src/options.c: Create.
1240 * src/options.h: Create.
1241 Declare enum opt_access_e.
1242 Define struct option_table_struct.
1244 2001-09-20 Marc Autret <autret_m@epita.fr>
1246 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1249 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1251 * src/bison.simple: s/%%filename/%%skeleton.
1252 * src/muscle_tab.c (getargs.h): Include it.
1253 (muscle_init): Insert new muscle skeleton.
1255 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1257 * src/output.c (output_parser): Delete unused variable actions_dumped.
1259 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1261 * src/output.c (output): Delete call to reader_output_yylsp.
1262 * src/reader.c (reader): Likewise.
1263 * src/reader.h: Delete declaration of reader_output_yylsp.
1265 2001-09-02 Marc Autret <autret_m@epita.fr>
1267 * src/reader.c: Include muscle_tab.h.
1268 (parse_union_decl): Update.
1269 (parse_macro_decl): Rename parse_muscle_decl.
1270 Update to use renamed functions and variable.
1271 (read_declarations, copy_action, read_additionnal_code, : Updated
1272 with correct variables and functions names.
1273 (packsymbols, reader): Likewise.
1275 * src/reader.h (muscle_obstack): Extern declaration update.
1277 * src/output.c: Include muscle_tab.h
1278 In all functions using macro_insert, change by using muscle_insert ().
1279 (macro_obstack): Rename muscle_obstack.
1280 Echo modifications in the whole file.
1281 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1282 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1283 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1285 * src/muscle_tab.h: Update double inclusion macros.
1286 (macro_entry_s): Rename muscle_entry_s.
1289 * src/muscle_tab.c: Include muscle_tab.h.
1290 Rename macro_tabble to muscle_table.
1291 (mhash1, mhash2, mcmp): Use muscle_entry.
1292 (macro_init): Rename muscle_init. Update.
1293 (macro_insert): Rename muscle_insert. Update.
1294 (macro_find): Rename muscle_find. Update.
1296 * src/main.c: Include muscle_tab.h.
1297 (main): Call muscle_init ().
1298 * src/Makefile.am (bison_SOURCES): Echo modifications.
1300 2001-09-02 Marc Autret <autret_m@epita.fr>
1302 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1304 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1306 2001-09-02 Marc Autret <autret_m@epita.fr>
1308 * src/macrotab.c, src/macrotab.h: Remove.
1310 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1312 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1315 2001-09-01 Marc Autret <autret_m@epita.fr>
1317 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1318 to an explicit value to activate the feature. We do it here.
1320 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1322 * src/output.c (prepare): Delete the `filename' muscule insertion.
1323 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1324 (parse_union_decl): Likewise.
1325 * src/macrotab.c (macro_init): Initialize filename by infile.
1327 2001-08-31 Marc Autret <autret_m@epita.fr>
1329 * src/bison.simple (YYLSP_NEEDED): New definition.
1330 * src/output.c (prepare): Add macro insertion of `locations_flag'
1332 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1334 * src/output.c (prepare): Delete insertion of previous muscles,
1335 and insert the `prefix' muscles.
1336 * src/macrotab.c (macro_init): Likewise.
1337 (macro_init): Initialization prefix directive by `yy'.
1338 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1339 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1340 yylval, yydebug, yyerror, yynerrs and yyparse.
1341 New directive `#define' to substitute yydebug, ... with option
1344 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1346 * src/main.c (main): Standardize.
1347 * src/output.c (output_table_data, output_parser): Likewise.
1348 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1350 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1352 * src/reader.c (read_additionnal_code): Rename %%user_code to
1354 * src/output.c (output): Rename %%declarations to %%prologue.
1355 * src/bison.simple: Echo modifications.
1357 2001-08-31 Marc Autret <autret_m@epita.fr>
1359 * src/reader.c (readgram): CleanUp.
1360 (output_token_defines): Likewise.
1361 (packsymbols): Likewise.
1363 * src/output.c (output): CPP-out useless code.
1365 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1367 * src/reader.c (reader): Delete obsolete call to function
1368 output_trailers and output_headers.
1369 * src/output.h: Remove obsolete functions prototypes of output_headers
1370 and output_trailers.
1372 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1374 * src/main.c: Include macrotab.h.
1375 * src/macrotab.h (macro_entry_s): Constify fields.
1376 Adjust functions prototypes.
1377 * src/macrotab.c (macro_insert): Constify key and value.
1378 (macro_find): Constify key.
1379 (macro_insert): Include 'xalloc.h'
1380 (macro_insert): Use XMALLOC.
1381 (macro_find): Constify return value.
1382 * src/output.c (output_table_data): Rename table to table_data.
1383 (output_parser): Constify macro_key, macro_value.
1385 2001-08-30 Marc Autret <autret_m@epita.fr>
1387 * src/reader.c (parse_skel_decl): New.
1388 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1389 * src/lex.h (token_t): New token `tok_skel'.
1390 * src/lex.c (percent_table): Add skeleton option entry.
1393 2001-08-29 Marc Autret <autret_m@epita.fr>
1395 * src/bison.simple: Add %%user_code directive at the end.
1396 * src/reader.c (read_additionnal_code): New.
1398 * src/output.c (output_program): Remove.
1401 2001-08-28 Marc Autret <autret_m@epita.fr>
1403 * src/output.c (output_actions): Clean up.
1404 (output_gram): CPP-out useless code.
1405 * src/reader.c (reader): Clean up, CPP-out useless code.
1407 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1409 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1411 * src/bison.simple: Add `%%definitions'.
1413 2001-08-28 Marc Autret <autret_m@epita.fr>
1415 * config/depcomp: New file.
1417 2001-08-27 Paul Eggert <eggert@twinsun.com>
1419 * src/bison.simple (yyparse): Don't take the address of an
1420 item before the start of an array, as that doesn't conform to
1423 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1425 * src/output.c (output): Remove the initialization of the macro
1426 obstack. It was done too late here.
1428 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1430 (reader): Initialize the macro obstack here, since we need it to grow
1431 '%define' directives.
1433 * src/reader.h: Declare the macro obstack as extern.
1435 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1437 * src/output.c (output_parser): Fix. Store single '%' characters in
1438 the output obstack instead of throwing them away.
1440 2001-08-27 Akim Demaille <akim@epita.fr>
1442 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1444 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1446 * lib/Makefile.am: Adjust.
1448 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1450 * src/bison.simple: Update and add '%%' directives.
1452 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1454 * src/reader.c (reader): Remove calls to 'output_headers' and
1455 'output_trailers'. Remove some C output.
1456 (readgram): Disable a piece of code that was writing a default
1457 definition for 'YYSTYPE'.
1458 (reader_output_yylsp): Remove.
1459 (packsymbols): Output token defintions to a macro.
1460 (copy_definition): Disable C output.
1462 * src/reader.c (parse_macro_decl): New function used to parse macro
1464 (copy_string2): Put the body of copy_string into this new function.
1465 Add a parameter to let the caller choose whether he wants to copy the
1466 string delimiters or not.
1467 (copy_string): Be a simple call to copy_string2 with the last argument
1469 (read_declarations): Add case for macro definition.
1470 (copy_identifier): New.
1471 (parse_macro_decl): Read macro identifiers using copy_identifier
1474 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1476 * src/output.c (prepare): Add prefixed names.
1477 (output_parser): Output semantic actions.
1478 (output_parser): Fix bug on '%%line' directives.
1480 * src/output.c (output_headers): Remove. The C code printed by this
1481 function should now be in the skeletons.
1482 (output_trailers): Remove.
1483 (output): Disable call to 'reader_output_yylsp'.
1484 (output_rule_data): Do not output tables to the table obstack.
1486 * src/output.c: Remove some C dedicated output.
1487 Improve the use of macro and output obstacks.
1488 (output_defines): Remove.
1490 * src/output.c (output_token_translations): Associate 'translate'
1491 table with a macro. No output to the table obstack.
1492 (output_gram): Same for 'rhs' and 'prhs'.
1493 (output_stos): Same for 'stos'.
1494 (output_rule_data): Same for 'r1' and 'r2'.
1495 (token_actions): Same for 'defact'.
1496 (goto_actions): Same for 'defgoto'.
1497 (output_base): Same for 'pact' and 'pgoto'.
1498 (output_table): Same for 'table'.
1499 (output_check): Same for 'check'.
1501 * src/output.c (output_table_data): New function.
1502 (output_short_table): Remove.
1503 (output_short_or_char_table): Remove.
1505 * src/output.c (output_parser): Replace most of the skeleton copy code
1506 with something new. Skeletons are now processed character by character
1507 rather than line by line, and Bison looks for '%%' macros. This is the
1508 first step in making Bison's output process (a lot) more flexible.
1509 (output_parser): Use the macro table.
1511 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1513 * src/main.c (main): Initialize the macro table.
1515 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1517 * src/lex.c (percent_table): Add tok_define.
1518 * src/lex.h: Add tok_define.
1520 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1522 * src/macrotab.c: New file.
1523 * src/macrotab.h: New file.
1524 * src/Makefile.am: Update.
1526 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1528 * lib/hash.c: New file.
1529 * lib/hash.h: New file.
1530 * lib/Makefile.am: Update.
1532 2001-08-15 Akim Demaille <akim@epita.fr>
1536 2001-08-15 Marc Autret <autret_m@epita.fr>
1538 * src/reader.c (readgram): Indent output macro YYSTYPE.
1539 (packsymbols): Likewise.
1540 (output_token_defines): Likewise.
1541 * src/files.c: Standardize.
1542 (compute_header_macro): New.
1543 (defines_obstack_save): New. Use compute_header_macro.
1544 (output_files): Update. Use defines_obstack_save.
1546 2001-08-15 Akim Demaille <akim@epita.fr>
1548 * doc/bison.texinfo (Table of Symbols): Document
1551 2001-08-15 Akim Demaille <akim@epita.fr>
1553 * missing: Update from CVS Automake.
1554 * config/config.guess, config/config.sub, config/texinfo.tex:
1555 Update from gnu.org.
1557 2001-08-15 Akim Demaille <akim@epita.fr>
1559 * Makefile.maint: Sync with CVS Autoconf.
1561 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1563 * doc/bison.texinfo: Include GNU Free Documentation License from
1565 * doc/fdl.texi: Add to package.
1567 2001-08-14 Marc Autret <autret_m@epita.fr>
1569 Turn on %{source,header}_extension features.
1571 * src/lex.c (percent_table): Un-CPP out header_extension and
1573 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1574 (compute_exts_from_src): Remove conditions. It restores priorities
1577 2001-08-14 Marc Autret <autret_m@epita.fr>
1579 * src/files.c (compute_base_names): Add extensions computing when
1580 `--file-prefix' used.
1581 Standardize function calls.
1583 2001-08-13 Marc Autret <autret_m@epita.fr>
1585 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1586 defining it (defined but null disables alloca).
1588 2001-08-13 Marc Autret <autret_m@epita.fr>
1590 * src/bison.simple (_yy_memcpy): CPP reformat.
1592 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1594 * tests/atconfig.in (CPPFLAGS): Fix.
1596 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1598 * doc/bison.texinfo: Include GNU General Public License from
1600 * doc/gpl.texi: Add to package.
1602 2001-08-10 Marc Autret <autret_m@epita.fr>
1604 * src/print_graph.h: Fix.
1605 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1607 2001-08-10 Akim Demaille <akim@epita.fr>
1609 * src/system.h: Provide default declarations for stpcpy, strndup,
1612 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1614 * doc/bison.texinfo (Locations): Update @$ stuff.
1616 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1618 * src/bison.simple (YYLLOC_DEFAULT): Update.
1621 2001-08-08 Marc Autret <autret_m@epita.fr>
1623 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1624 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1625 Reported by Fabrice Bauzac.
1627 2001-08-08 Marc Autret <autret_m@epita.fr>
1629 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1630 * src/vcg.c (output_node): Fix.
1631 * src/vcg.h: Cleanup.
1632 * src/print_graph.c: Add comments.
1633 (node_output_size): New global variable. Simplify the formatting of
1634 the VCG graph output.
1635 (print_actions): Unused code is now used. It notifies the final state
1636 and no action states in the VCG graph. It also give the reduce actions.
1637 The `shift and goto' edges are red and the `go to state' edges are
1639 Get the current node name and node_obstack by argument.
1640 (node_obstack): New variable.
1641 (print_state): Manage node_obstack.
1642 (print_core): Use node_obstack given by argument.
1643 A node is not only computed here but in print_actions also.
1644 (print_graph): CPP out useless code instead of commenting it.
1646 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1648 * tests/atconfig.in (CPPFLAGS): Fix.
1650 2001-08-07 Akim Demaille <akim@epita.fr>
1652 * src/print_graph.c (quote): New.
1653 (print_core): Use it.
1655 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1657 * src/vcg.c (complain.h): Include it.
1658 Unepitaize `return' invocations.
1659 [NDEBUG] (main): Remove.
1660 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1661 * src/files.c (open_files): Initialize graph_obstack.
1662 * src/print_graph.c (print_actions): CPP out useless code.
1663 (print_core): Don't output the last `\n' in labels.
1665 * src/files.c (output_files): Output the VCG file.
1666 * src/main.c (main): Invoke print_graph ();
1668 2001-08-06 Marc Autret <autret_m@epita.fr>
1670 Automaton VCG graph output.
1671 Using option ``-g'' or long option ``--graph'', you can generate
1672 a gram_filename.vcg file containing a VCG description of the LALR (1)
1673 automaton of your grammar.
1675 * src/main.c: Call to print_graph() function.
1676 * src/getargs.h: Update.
1677 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1678 (graph_flag): New flag.
1680 (getargs): Add case `g'.
1681 * src/files.c (graph_obstack): New obstack struct.
1682 (open_files): Initialize new obstack.
1683 (output_files): Saves graph_obstack if required.
1684 * src/files.h (graph_obstack): New extern declaration.
1685 * src/Makefile.am: Add new source files.
1687 2001-08-06 Marc Autret <autret_m@epita.fr>
1689 * src/print_graph.c, src/print_graph.h (graph): New.
1690 * src/vcg.h: New file.
1691 * src/vcg.c: New file, VCG graph handling.
1693 2001-08-06 Marc Autret <autret_m@epita.fr>
1695 Add of %source_extension and %header_extension which specify
1696 the source or/and the header output file extension.
1698 * src/files.c (compute_base_names): Remove initialisation of
1699 src_extension and header_extension.
1700 (compute_exts_from_gf): Update.
1701 (compute_exts_from_src): Update.
1702 (output_files): Update.
1703 * src/reader.c (parse_header_extension_decl): New.
1704 (parse_source_extension_decl): New.
1705 (read_declarations): New case statements for the new tokens.
1706 * src/lex.c (percent_table): Add entries for %source_extension
1707 and %header_extension.
1708 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1710 2001-08-06 Marc Autret <autret_m@epita.fr>
1712 * configure.in: Bump to 1.28c.
1713 * doc/bison.texinfo: Texinfo thingies.
1715 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1717 * tests/atconfig.in (CPPFLAGS): Add.
1718 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1720 2001-08-03 Akim Demaille <akim@epita.fr>
1724 2001-08-03 Akim Demaille <akim@epita.fr>
1726 * tests/Makefile.am (check-local): Ship testsuite.
1727 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1730 2001-08-03 Akim Demaille <akim@epita.fr>
1732 * configure.in: Try using -Wformat when compiling.
1734 2001-08-03 Akim Demaille <akim@epita.fr>
1736 * configure.in: Bump to 1.28b.
1738 2001-08-03 Akim Demaille <akim@epita.fr>
1740 * src/complain.c: Adjust strerror_r portability issues.
1742 2001-08-03 Akim Demaille <akim@epita.fr>
1746 2001-08-03 Akim Demaille <akim@epita.fr>
1748 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1749 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1750 * src/getargs.c: Include complain.h.
1751 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1752 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1754 2001-08-03 Akim Demaille <akim@epita.fr>
1756 * src/reader.c (readgram): Display hidden chars in error messages.
1758 2001-08-03 Akim Demaille <akim@epita.fr>
1760 Update to gettext 0.10.39.
1762 2001-08-03 Akim Demaille <akim@epita.fr>
1764 * lib/strspn.c: New.
1766 2001-08-01 Marc Autret <autret_m@epita.fr>
1768 * doc/bison.texinfo: Update.
1769 * doc/bison.1 (mandoc): Update.
1770 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1771 * src/files.c: Support output files extensions computing.
1772 (src_extension): New static variable.
1773 (header_extension): New static variable.
1775 (get_extension_index): New function, gets the index of an extension
1776 filename in a string.
1777 (compute_exts_from_gf): New function, computes extensions from the
1778 grammar file extension.
1779 (compute_exts_from_src): New functions, computes extensions from the
1780 C source file extension, file given by ``-o'' option.
1781 (compute_base_names): Update.
1782 (output_files): Update.
1784 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1786 * doc/bison.texi: Document @$.
1787 (Locations): New section.
1789 2001-07-18 Akim Demaille <akim@epita.fr>
1791 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1792 * config/prev-version.txt, config/move-if-change: New.
1793 * Makefile.am: Adjust.
1795 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1797 * src/bison.simple (yyparse): Suppress warning `comparaison
1798 between signed and unsigned'.
1800 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1802 * src/getargs.h (raw_flag): Remove.
1803 * src/getargs.c: Die on `-r'/`--raw'.
1804 * src/lex.c (parse_percent_token): Die on `%raw'.
1805 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1806 * tests/calc.at: Suppress test with option `--raw'.
1808 2001-07-14 Akim Demaille <akim@epita.fr>
1811 * configure.in: Require Autoconf 2.50.
1812 Update to gettext 0.10.38.
1814 2001-03-16 Akim Demaille <akim@epita.fr>
1816 * doc/bison.texinfo: ANSIfy the examples.
1818 2001-03-16 Akim Demaille <akim@epita.fr>
1820 * getargs.c (skeleton): New variable.
1821 (longopts): --skeleton is a new option.
1822 (shortopts, getargs): -S is a new option.
1823 * getargs.h: Declare skeleton.
1824 * output.c (output_parser): Use it.
1826 2001-03-16 Akim Demaille <akim@epita.fr>
1828 * m4/strerror_r.m4: New.
1829 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1830 * lib/error.h, lib/error.c: Update.
1832 2001-03-16 Akim Demaille <akim@epita.fr>
1834 * src/getargs.c (longopts): Clean up.
1836 2001-02-21 Akim Demaille <akim@epita.fr>
1838 * src/reader.c (gensym): `gensym_count' is your own.
1839 Use a static buf to create the symbol name, as token_buffer is no
1842 2001-02-08 Akim Demaille <akim@epita.fr>
1844 * src/conflicts.c (conflict_report): Be sure not to append to res
1845 between two calls, which could happen if both first sprintf were
1846 skipped, but not the first cp += strlen.
1848 2001-02-08 Akim Demaille <akim@epita.fr>
1850 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1851 New, from fileutils 4.0.37.
1852 * configure.in: Require Autoconf 2.49c. I took some time before
1853 making this decision. This is the only way out for portability
1854 issues in Bison, it would mean way too much duplicate effort to
1855 import in Bison features implemented in 2.49c since 2.13.
1856 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1858 2001-02-02 Akim Demaille <akim@epita.fr>
1860 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1861 * lib/xalloc.h, lib/xmalloc.c: Update.
1863 2001-01-19 Akim Demaille <akim@epita.fr>
1865 Get rid of the ad hoc handling of token_buffer in the scanner: use
1868 * src/lex.c (token_obstack): New.
1869 (init_lex): Initialize it. No longer call...
1870 (grow_token_buffer): this. Remove it.
1871 Adjust all the places which used it to use the obstack.
1873 2001-01-19 Akim Demaille <akim@epita.fr>
1875 * src/lex.h: Rename all the tokens:
1876 s/\bENDFILE\b/tok_eof/g;
1877 s/\bIDENTIFIER\b/tok_identifier/g;
1879 Let them be enums, not #define, to ease debugging.
1880 Adjust all the code.
1882 2001-01-18 Akim Demaille <akim@epita.fr>
1884 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1885 * src/lex.c (maxtoken, grow_token_buffer): Static.
1887 2001-01-18 Akim Demaille <akim@epita.fr>
1889 Since we now use obstacks, more % directives can be enabled.
1891 * src/lex.c (percent_table): Also accept `%yacc',
1892 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1894 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1895 instead of returning a token.
1896 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1897 * src/reader.c (read_declarations): Adjust.
1898 * src/files.c (open_files): Don't call `compute_base_names', don't
1899 compute `attrsfile' since they depend upon data which might be
1900 *in* the input file now.
1901 (output_files): Do it here.
1902 * src/output.c (output_headers): Document the fact that this patch
1903 introduces a guaranteed SEGV for semantic parsers.
1904 * doc/bison.texinfo: Document them.
1905 * tests/suite.at: Exercise these %options.
1907 2000-12-20 Akim Demaille <akim@epita.fr>
1909 Also handle the output file (--verbose) with obstacks.
1911 * files.c (foutput): Remove.
1912 (output_obstack): New.
1913 Adjust all dependencies.
1914 * src/conflicts.c: Return a string.
1915 * src/system.h (obstack_grow_string): Rename as...
1916 (obstack_sgrow): this. Be ready to work with non literals.
1917 (obstack_fgrow4): New.
1919 2000-12-20 Akim Demaille <akim@epita.fr>
1921 * src/files.c (open_files): Fix the computation of short_base_name
1922 in the case of `-o foo.tab.c'.
1924 2000-12-20 Akim Demaille <akim@epita.fr>
1926 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1927 (copy_dollar): Now that everything uses obstacks, get rid of the
1930 2000-12-20 Akim Demaille <akim@epita.fr>
1932 * src/files.c (open_files): Actually the `.output' file is based
1933 on the short_base_name, not base_name.
1934 * tests/suite.at (Checking output file names): Adjust.
1936 2000-12-20 Akim Demaille <akim@epita.fr>
1938 * src/bison.s1: Remove, we now use directly...
1939 * src/bison.simple: this.
1940 * src/Makefile.am: Use pkgdata instead of data.
1942 2000-12-20 Akim Demaille <akim@epita.fr>
1944 * src/files.c (guard_obstack): New.
1945 (open_files): Initialize it.
1946 (output_files): Dump it...
1947 * src/files.h: Export it.
1948 * src/reader.c (copy_guard): Use it.
1950 2000-12-19 Akim Demaille <akim@epita.fr>
1952 * src/files.c (outfile, defsfile, actfile): Removed as global
1954 (open_files): Don't compute them.
1955 (output_files): Adjust.
1956 (base_name, short_base_name): Be global.
1957 Adjust dependencies.
1959 2000-12-19 Akim Demaille <akim@epita.fr>
1961 * src/files.c (strsuffix): New.
1962 (stringappend): Be just like strcat but allocate.
1963 (base_names): Eve out from open_files.
1964 Try to simplify the rather hairy computation of base_name and
1966 (open_files): Use it.
1967 * tests/suite.at (Checking output file names): New test.
1969 2000-12-19 Akim Demaille <akim@epita.fr>
1971 * src/system.h (obstack_grow_literal_string): Rename as...
1972 (obstack_grow_string): this.
1973 * src/output.c (output_parser): Recognize `%% actions' instead of
1975 * src/bison.s1: s/$/%% actions/.
1976 * src/bison.hairy: Likewise.
1978 2000-12-19 Akim Demaille <akim@epita.fr>
1980 * src/output.c (output_parser): Compute the `#line' lines when
1982 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1983 Suggested by Hans Aberg.
1985 2000-12-19 Akim Demaille <akim@epita.fr>
1987 Let the handling of the skeleton files be local to the procedures
1990 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1992 (fparser, open_extra_files): Remove.
1993 (open_files, output_files): Don't take care of fparser.
1994 * src/files.h: Adjust.
1995 * src/output.c (output_parser): Open and close the file to the
1997 * src/reader.c (read_declarations): When %semantic_parser, open
2000 2000-12-19 Akim Demaille <akim@epita.fr>
2002 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2003 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2005 2000-12-19 Akim Demaille <akim@epita.fr>
2007 * src/files.c (open_files): Yipee! We no longer need all the code
2008 looking for `/tmp' since we have no tmp file.
2010 2000-12-19 Akim Demaille <akim@epita.fr>
2012 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2014 * src/files.c (open_files): Less dependency on MSDOS etc.
2016 2000-12-14 Akim Demaille <akim@epita.fr>
2018 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2019 Provide a default definition.
2020 Use it when executing the default @ action.
2021 * src/reader.c (reader_output_yylsp): No longer include
2022 `timestamp' and `text' in the default YYLTYPE.
2024 2000-12-12 Akim Demaille <akim@epita.fr>
2026 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2027 (copy_guard): Quote the file names.
2028 Reported by Laurent Mascherpa.
2030 2000-12-12 Akim Demaille <akim@epita.fr>
2032 * src/output.c (output_headers, output_program, output): Be sure
2033 to escape special characters when outputting filenames.
2034 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2035 (output_headers): Don't depend on them, Use ACTSTR.
2037 2000-11-17 Akim Demaille <akim@epita.fr>
2039 * lib/obstack.h: Formatting changes.
2040 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2041 prevents type checking.
2042 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2043 cast the value to (void *): assigning a `foo *' to a `void *'
2045 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2046 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2049 2000-11-17 Akim Demaille <akim@epita.fr>
2051 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2053 (suite.m4, regression.m4, calc.m4): these.
2054 * tests/atgeneral.m4: Update from CVS Autoconf.
2056 2000-11-17 Akim Demaille <akim@epita.fr>
2058 * tests/regression.m4 (%union and --defines): New test,
2059 demonstrating a current bug in the obstack implementation.
2061 2000-11-17 Akim Demaille <akim@epita.fr>
2063 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2065 Use them to declare the variables which are global or local to
2068 2000-11-17 Akim Demaille <akim@epita.fr>
2070 * acconfig.h: Remove, no longer used.
2072 2000-11-07 Akim Demaille <akim@epita.fr>
2074 * src: s/Copyright (C)/Copyright/g.
2076 2000-11-07 Akim Demaille <akim@epita.fr>
2078 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2080 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2082 2000-11-07 Akim Demaille <akim@epita.fr>
2084 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2085 Merge in a single CPP if/else.
2087 2000-11-07 Akim Demaille <akim@epita.fr>
2089 * src/output.c (output): Remove useless variables.
2090 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2091 argument `data' for consistency with the prototypes.
2093 (obstack_copy, obstack_copy0): Rename the second argument as
2094 `address' for consistency. Qualify it `const'.
2095 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2096 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2097 `const' their input argument (`data' or `address').
2098 Adjust the corresponding macros to include `const' in casts.
2100 2000-11-03 Akim Demaille <akim@epita.fr>
2102 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2103 s/PFILE1/BISON_HAIRY/.
2104 Adjust dependencies.
2106 2000-11-03 Akim Demaille <akim@epita.fr>
2108 For some reason, this was not applied.
2110 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2111 `unlink': it's no longer used.
2113 2000-11-03 Akim Demaille <akim@epita.fr>
2115 * src/files.c (skeleton_find): New function, eved out of...
2116 (open_files, open_extra_files): here.
2118 2000-11-03 Akim Demaille <akim@epita.fr>
2122 * src/files.c (obstack_save): New function.
2123 (done): Rename as...
2124 (output_files): this.
2126 * src/main.c (main): Don't use `atexit' to register `done', since
2127 it no longer has to remove tmp files, just call `output_files'
2128 when there are no errors.
2130 2000-11-02 Akim Demaille <akim@epita.fr>
2132 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2133 `unlink': it's no longer used.
2134 * src/files.h: Formatting changes.
2136 2000-11-02 Akim Demaille <akim@epita.fr>
2138 Remove the last uses of mktemp and unlink/delete.
2140 * src/files.c (fdefines, ftable): Removed.
2141 (defines_ostack, table_obstack): New.
2142 Adjust dependencies of the former into uses of the latter.
2143 * src/output.c (output_short_or_char_table, output_short_table):
2144 Convert to using obstacks.
2145 * src/reader.c (copy_comment2): Accept one FILE * and two
2147 (output_token_defines, reader_output_yylsp): Use obstacks.
2148 * src/system.h (obstack_fgrow3): New.
2150 2000-11-01 Akim Demaille <akim@epita.fr>
2152 Change each use of `fattrs' into a use of `attrs_obstack'.
2154 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2155 * src/files.c (fattrs): Remove.
2156 (attrs_obstack): New.
2157 Adjust all dependencies.
2158 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2160 2000-11-01 Akim Demaille <akim@epita.fr>
2163 Change each use of `faction' into a use of `action_obstack'.
2165 * lib/obstack.h, lib/obstack.c: New files.
2166 * src/files.c (faction): Remove.
2167 (action_obstack): New.
2168 Adjust all dependencies.
2170 2000-10-20 Akim Demaille <akim@epita.fr>
2172 * lib/quote.h (PARAMS): New macro. Use it.
2174 2000-10-16 Akim Demaille <akim@epita.fr>
2176 * src/output.c (output_short_or_char_table): New function.
2177 (output_short_table, output_token_translations): Use it.
2178 (goto_actions): Use output_short_table.
2180 2000-10-16 Akim Demaille <akim@epita.fr>
2182 * src/symtab.c (bucket_new): New function.
2185 * src/output.c (output_short_table): New argument to display the
2186 comment associated with the table.
2187 Adjust dependencies.
2188 (output_gram): Use it.
2189 (output_rule_data): Nicer output layout for YYTNAME.
2191 2000-10-16 Akim Demaille <akim@epita.fr>
2193 * src/lex.c (read_typename): New function.
2195 * src/reader.c (copy_dollar): Likewise.
2197 2000-10-16 Akim Demaille <akim@epita.fr>
2199 * src/reader.c (copy_comment2): Expect the input stream to be on
2200 the `/' which is suspected to open a comment, instead of being
2201 called after `//' or `/*' was read.
2202 (copy_comment, copy_definition, parse_union_decl, copy_action)
2203 (copy_guard): Adjust.
2205 2000-10-16 Akim Demaille <akim@epita.fr>
2207 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2208 `read_signed_integer'.
2210 2000-10-16 Akim Demaille <akim@epita.fr>
2212 * src/reader.c (copy_dollar): New function.
2213 (copy_guard, copy_action): Use it.
2215 2000-10-16 Akim Demaille <akim@epita.fr>
2217 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2218 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2219 New files, from Fileutils 4.0.27.
2220 * src/main.c (printable_version): Remove.
2221 * src/lex.c, src/reader.c: Use `quote'.
2223 2000-10-04 Akim Demaille <akim@epita.fr>
2225 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2227 2000-10-04 Akim Demaille <akim@epita.fr>
2229 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2231 2000-10-04 Akim Demaille <akim@epita.fr>
2233 When a literal string is used to define two different tokens,
2234 `bison -v' segfaults.
2235 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2237 * tests/regression.m4: New file.
2238 Include the core of the sample provided by Piotr Gackiewicz.
2239 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2242 2000-10-04 Akim Demaille <akim@epita.fr>
2244 * src/reader.c (parse_expect_decl): Keep `count' within the size
2248 2000-10-02 Paul Eggert <eggert@twinsun.com>
2250 * bison.s1 (yyparse): Assign the default value
2251 unconditionally, to avoid a GCC warning and make the parser a
2254 2000-10-02 Akim Demaille <akim@epita.fr>
2256 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2259 2000-10-02 Akim Demaille <akim@epita.fr>
2261 * src/derives.c, src/print.c, src/reduce.c: To ease the
2262 translation, move some `\n' out of the translated strings.
2264 2000-10-02 Akim Demaille <akim@epita.fr>
2266 The location tracking mechanism is precious for parse error
2267 messages. Nevertheless, it is enabled only when `@n' is used in
2268 the grammar, which is a different issue (you can use it in error
2269 message, but not in the grammar per se). Therefore, there should
2270 be another means to enable it.
2272 * src/getargs.c (getargs): Support `--locations'.
2274 * src/getargs.h (locationsflag): Export it.
2275 * src/lex.c (percent_table): Support `%locations'.
2276 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2277 with `locationsflag'.
2278 * doc/bison.texinfo: Document `--locations' and `%locations'.
2280 * tests/calc.m4: Test it.
2282 For regularity of the names, replace each
2283 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2284 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2285 In addition replace each `flag' with `_flag'.
2287 2000-10-02 Akim Demaille <akim@epita.fr>
2289 Also test parse error messages, including with YYERROR_VERBOSE.
2291 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2293 Use it to check the computations.
2294 Use it to check `nonassoc' is honored.
2295 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2296 `--yyerror-verbose'.
2297 (_AT_CHECK_CALC): Adjust to this option.
2298 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2300 2000-10-02 Akim Demaille <akim@epita.fr>
2302 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2303 the latter demonstrates a flaw in the handling of non debugging
2304 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2305 was used in order to simplify:
2321 unfortunately this leads to a CPP conflict when
2322 `--name-prefix=foo' is used since it produces `#define yydebug
2325 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2326 (YYDPRINTF): New macro.
2328 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2330 Also test `--verbose', `--defines' and `--name-prefix'.
2332 2000-10-02 Akim Demaille <akim@epita.fr>
2334 Improve the readability of the produced parsers.
2336 * src/bison.s1: Formatting changes.
2337 Improve the comment related to the `$' mark.
2338 (yydefault): Don't fall through to `yyresume': `goto' there.
2339 * src/output.c (output_parser): When the `$' is met, skip the end
2341 New variable, `number_of_dollar_signs', to check there's exactly
2342 one `$' in the parser skeleton.
2344 2000-10-02 Akim Demaille <akim@epita.fr>
2346 * lib/xstrdup.c: New file, from the fileutils.
2347 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2348 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2349 instead of strlen + xmalloc + strcpy.
2350 * src/symtab.c (copys): Remove, use xstrdup instead.
2352 2000-10-02 Akim Demaille <akim@epita.fr>
2354 * src/gram.h (associativity): New enum type which replaces the
2355 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2356 `right_assoc', `left_assoc' and `non_assoc'.
2357 Adjust all dependencies.
2358 * src/reader.c: Formatting changes.
2359 (LTYPESTR): Don't define it, use it as a literal in
2360 `reader_output_yylsp'.
2361 * src/symtab.h (symbol_class): New enum type which replaces the
2362 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2363 `sunknown', `stoken and `snterm'.
2365 2000-10-02 Akim Demaille <akim@epita.fr>
2367 * src/getargs.c (fixed_outfiles): Rename as...
2368 (yaccflag): for consistency and accuracy.
2369 Adjust dependencies.
2371 2000-10-02 Akim Demaille <akim@epita.fr>
2373 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2374 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2375 difficult and introduced a lot of core dump. It turns out that
2376 Bison used an implementation of `xmalloc' based on `calloc', and
2377 at various places it does depend upon the initialization to 0. I
2378 have not tried to isolate the pertinent places, and all the former
2379 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2380 someone should address this issue.
2382 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2383 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2385 Adjust dependencies.
2386 * src/warshall.h: New file.
2389 2000-10-02 Akim Demaille <akim@epita.fr>
2391 Various anti-`extern in *.c' changes.
2393 * src/system.h: Include `assert.h'.
2395 2000-10-02 Akim Demaille <akim@epita.fr>
2397 * src/state.h (nstates, final_state, first_state, first_shift)
2398 (first_reduction): Move their exportation from here...
2399 * src/LR0.h: to here.
2400 Adjust dependencies.
2401 * src/getargs.c (statisticsflag): New variable.
2402 Add support for `--statistics'.
2403 Adjust dependencies.
2405 Remove a lot of now useless `extern' statements in most files.
2407 2000-10-02 Akim Demaille <akim@epita.fr>
2409 * src/LR0.h: New file.
2412 2000-10-02 Akim Demaille <akim@epita.fr>
2414 * src/print.h: New file.
2416 * src/print.c: Formatting and ordering changes.
2417 (verbose, terse): Replace with...
2418 (print_results): this new function.
2419 Adjust dependencies.
2421 2000-10-02 Akim Demaille <akim@epita.fr>
2423 * src/conflicts.c (conflict_report): New function.
2424 (conflict_log, verbose_conflict_log): Replace with...
2425 (print_conflicts): this function.
2426 Adjust dependencies.
2427 * src/conflicts.h: New file.
2428 Propagate its inclusion.
2430 2000-10-02 Akim Demaille <akim@epita.fr>
2432 * src/nullable.h: New file.
2433 Propagate its inclusion.
2434 * src/nullable.c: Formatting changes.
2436 2000-10-02 Akim Demaille <akim@epita.fr>
2438 * src/reduce.h: New file.
2439 Propagate its inclusion.
2440 * src/reduce.c: Topological sort and other formatting changes.
2441 (bool, TRUE, FALSE): Move their definition to...
2442 * src/system.h: here.
2444 2000-10-02 Akim Demaille <akim@epita.fr>
2446 * src/files.c: Formatting changes.
2447 (tryopen, tryclose, openfiles): Rename as...
2448 (xfopen, xfclose, open_files): this.
2449 (stringappend): static.
2450 * src/files.h: Complete the list of exported symbols.
2453 2000-10-02 Akim Demaille <akim@epita.fr>
2455 * src/reader.h: New file.
2456 Propagate its use instead of tedious list of `extern' and
2458 * src/reader.c: Formatting changes, topological sort,
2461 2000-10-02 Akim Demaille <akim@epita.fr>
2463 * src/lex.h: Prototype `lex.c' exported functions.
2464 * src/reader.c: Adjust.
2465 * src/lex.c: Formatting changes.
2466 (safegetc): Rename as...
2469 2000-10-02 Akim Demaille <akim@epita.fr>
2471 * src/lalr.h: New file.
2472 Propagate its inclusion instead of prototypes and `extern'.
2473 * src/lalr.c: Formatting changes, topological sorting etc.
2475 2000-10-02 Akim Demaille <akim@epita.fr>
2477 * src/output.c (token_actions): Introduce a temporary array,
2478 YYDEFACT, that makes it possible for this function to use
2481 2000-10-02 Akim Demaille <akim@epita.fr>
2483 `user_toknums' is output as a `short[]' in `output.c', while it is
2484 defined as a `int[]' in `reader.c'. For consistency with the
2485 other output tables, `user_toknums' is now defined as a table of
2488 * src/reader.c (user_toknums): Be a short table instead of an int
2490 Adjust dependencies.
2492 Factor the short table outputs.
2494 * src/output.c (output_short_table): New function.
2495 * src/output.c (output_gram, output_stos, output_rule_data)
2496 (output_base, output_table, output_check): Use it.
2498 2000-10-02 Akim Demaille <akim@epita.fr>
2500 * src/output.c (output): Topological sort of the functions, in
2501 order to get rid of the `static' prototypes.
2502 No longer use `register'.
2503 * src/output.h: New file.
2504 Propagate its inclusion in files explicitly prototyping functions
2507 2000-09-21 Akim Demaille <akim@epita.fr>
2509 * src/atgeneral.m4: Update from Autoconf.
2511 2000-09-21 Akim Demaille <akim@epita.fr>
2513 * src/closure.h: New file.
2514 * src/closure.c: Formatting changes, topological sort over the
2515 functions, use of closure.h.
2516 (initialize_closure, finalize_closure): Rename as...
2517 (new_closure, free_closure): these. Adjust dependencies.
2518 * src/LR0.c: Formatting changes, topological sort, use of
2520 (initialize_states): Rename as...
2522 * src/Makefile.am (noinst_HEADERS): Adjust.
2524 2000-09-20 Akim Demaille <akim@epita.fr>
2526 * src/acconfig.h: Don't protect config.h against multiple
2528 Don't define PARAMS.
2529 * src/system.h: Define PARAMS.
2530 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2531 purpose of config.h. system.h must not try to fix wrong
2532 definitions in config.h.
2534 2000-09-20 Akim Demaille <akim@epita.fr>
2536 * src/derives.h: New file.
2537 * src/main.c, src/derives.h: Use it.
2539 * src/Makefile.am (noinst_HEADERS): Adjust.
2541 2000-09-20 Akim Demaille <akim@epita.fr>
2543 * tests/atgeneral.m4: Update from Autoconf.
2544 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2545 (AT_CHECK_CALC): New macros.
2546 Use these macros to test bison with options `', `--raw',
2547 `--debug', `--yacc', `--yacc --debug'.
2549 2000-09-19 Akim Demaille <akim@epita.fr>
2551 * src/output.c: Formatting changes.
2552 * src/machine.h: Remove, leaving its contents in...
2553 * src/system.h: here.
2555 Adjust all dependencies on stdio.h and machine.h.
2556 * src/getargs.h: New file.
2557 Let all `extern' declarations about getargs.c be replaced with
2558 inclusion of `getargs.h'.
2559 * src/Makefile.am (noinst_HEADERS): Adjust.
2561 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2563 (yyerror): Returns void, not int.
2564 * doc/bison.texinfo: Formatting changes.
2566 2000-09-19 Akim Demaille <akim@epita.fr>
2568 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2571 2000-09-18 Akim Demaille <akim@epita.fr>
2573 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2574 * src/Makefile.am (INCLUDES): Don't.
2575 Be ready to fetch headers in lib/.
2577 2000-09-18 Akim Demaille <akim@epita.fr>
2579 * doc/bison.texinfo: Update the copyright.
2580 ANSIfy and GNUify the examples.
2581 Remove the old menu.
2583 2000-09-18 Akim Demaille <akim@epita.fr>
2585 First set of tests: use the `calc' example from the documentation.
2587 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2588 is defined only when YYDEBUG is.
2589 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2590 * src/files.c (tryopen, tryclose): Formatting changes.
2591 Move to the top and be static.
2592 * src/reader.c (read_signed_integer): Likewise.
2593 * tests/calc.m4: New file.
2594 * Makefile.am, suite.m4: Adjust.
2595 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2597 2000-09-18 Akim Demaille <akim@epita.fr>
2599 Add support for an Autotest test suite for Bison.
2601 * m4/m4.m4, m4/atconfig.m4: New files.
2602 * m4/Makefile.am (EXTRA_DIST): Adjust.
2603 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2605 * src/getargs.c: Display a more standard --version message.
2606 * src/reader.c (reader): Formatting changes.
2607 No longer depend upon VERSION_STRING.
2608 * configure.in: No longer use `dnl'.
2609 Set up the test suite and the new directory `tests/.
2610 (VERSION_STRING): Remove.
2612 2000-04-14 Akim Demaille <akim@epita.fr>
2614 * src/reader.c (copy_comment2): New function, same as former
2615 `copy_comment', but outputs into two FILE *.
2616 (copy_comment): Use it.
2617 (parse_union_decl): Use it.
2618 (get_type, parse_start_decl): Use the same `invalid' message.
2619 (parse_start_decl, parse_union_decl): Use the same `multiple'
2621 (parse_union_decl, copy_guard, copy_action): Use the same
2622 `unmatched' message.
2623 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2625 2000-03-31 Akim Demaille <akim@epita.fr>
2627 * src/files.c (tryopen, tryclose): Move to the top.
2630 2000-03-31 Akim Demaille <akim@epita.fr>
2632 * src/main.c (main): Don't call `done', exit does it.
2634 2000-03-31 Akim Demaille <akim@epita.fr>
2636 * allocate.c: s/return (foo)/return foo/.
2639 * output.c: Likewise.
2640 * reader.c: Likewise.
2641 * symtab.c: Likewise.
2642 * vmsgetargs.c: Likewise.
2644 2000-03-31 Akim Demaille <akim@epita.fr>
2646 Clean up the error reporting functions.
2648 * src/report.c: New file.
2649 * src/report.h: Likewise.
2650 * src/Makefile.am: Adjust.
2651 * m4/error.m4: New file.
2652 * m4/Makefile.am: Adjust.
2653 * configure.in (jm_PREREQ_ERROR): Call it.
2654 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2656 (fatal, fatals): Remove. All callers use complain.c::fatal.
2657 (warn, warni, warns, warnss, warnss): Remove. All callers use
2658 complain.c::complain.
2659 (toomany): Remove, use fatal instead.
2660 * src/files.c (done): No argument, use complain_message_count.
2661 * src/main.c (main): Register `done' to `atexit'.
2663 * src/getargs.c (usage): More `fputs', less `fprintf'.
2665 2000-03-28 Akim Demaille <akim@epita.fr>
2667 * lib/: New directory.
2668 * Makefile.am (SUBDIRS): Adjust.
2669 * configure.in: Adjust.
2670 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2672 * src/alloca.c: Moved to lib/.
2673 * src/getopt.c: Likewise.
2674 * src/getopt1.c: Likewise.
2675 * src/getopt.h: Likewise.
2676 * src/ansi2knr.c: Likewise.
2677 * src/ansi2knr.1: Likewise.
2678 * src/Makefile.am: Adjust.
2679 * lib/Makefile.am: New file.
2681 2000-03-28 Akim Demaille <akim@epita.fr>
2683 * src/getargs.c (usage): Refresh the help message.
2685 2000-03-17 Akim Demaille <akim@epita.fr>
2687 * src/getopt1.c: Updated from textutils 2.0e
2688 * src/getopt.c: Likewise.
2689 * src/getopt.h: Likewise.
2691 2000-03-17 Akim Demaille <akim@epita.fr>
2693 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2694 the file name, not the whole `#line LINE FILE'.
2696 2000-03-17 Akim Demaille <akim@epita.fr>
2698 On syntax errors, report the token on which we choked.
2700 * src/bison.s1 (yyparse): In the label yyerrlab, when
2701 YYERROR_VERBOSE, add yychar in msg.
2703 2000-03-17 Akim Demaille <akim@epita.fr>
2705 * src/reader.c (copy_at): New function.
2706 (copy_guard): Use it.
2707 (copy_action): Use it.
2709 2000-03-17 Akim Demaille <akim@epita.fr>
2711 Be kind to translators, save some useless translations.
2713 * src/main.c (banner): New function.
2714 (fatal_banner): Use it.
2715 (warn_banner): Use it.
2717 2000-03-17 Akim Demaille <akim@epita.fr>
2719 * src/reader.c (copy_definition): Use copy_string and
2720 copy_comment. Removed now unused `match', `ended',
2722 (copy_comment, copy_string): Moved, to be visible from
2725 2000-03-17 Akim Demaille <akim@epita.fr>
2727 * src/reader.c (copy_string): Declare `static inline'. No
2728 problems with inline, since it is checked by configure.
2729 (copy_comment): Likewise.
2731 2000-03-17 Akim Demaille <akim@epita.fr>
2733 * src/reader.c (packsymbols): Formatting changes.
2735 2000-03-17 Akim Demaille <akim@epita.fr>
2737 * src/reader.c (copy_comment): New function, factored out from:
2738 (copy_action): Use it. Removed now unused `match', `ended',
2740 (copy_guard): Likewise.
2742 2000-03-17 Akim Demaille <akim@epita.fr>
2744 * src/reader.c (copy_string): New function, factored out from:
2745 (copy_action): Use it.
2746 (copy_guard): Likewise.
2748 2000-03-17 Akim Demaille <akim@epita.fr>
2750 Change the handling of @s so that they behave exactly like $s.
2751 There is now a pseudo variable @$ (readble and writable), location
2752 of the lhs of the rule (by default ranging from the location of
2753 the first symbol of the rhs, to the location of the last symbol,
2754 or, if the rhs is empty, YYLLOC).
2756 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2758 (yyparse): When providing a default semantic action, provide a
2759 default location action.
2760 (after the $): No longer change `*YYLSP', just stack YYLOC the
2761 same way you stack YYVAL.
2762 * src/reader.c (read_declarations): Use warns.
2763 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2764 (copy_action, case '@'): Likewise.
2765 Use a standard error message, to save useless work from
2768 2000-03-17 Akim Demaille <akim@epita.fr>
2770 * src/bison.s1: Formatting and cosmetics changes.
2771 * src/reader.c: Likewise.
2772 Update the Copyright notice.
2774 2000-03-17 Akim Demaille <akim@epita.fr>
2776 * src/bison.s1 (#line): All set to `#line' only, since the
2777 Makefile now handles them.
2779 2000-03-16 Akim Demaille <akim@epita.fr>
2781 * src/output.c (output_rule_data): Output the documentation of
2783 (Copyright notice): Update.
2786 2000-03-16 Akim Demaille <akim@epita.fr>
2788 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2789 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2790 One `#if YYDEBUG' remains, since it uses variables which are
2791 defined only if `YYDEBUG != 0'.
2793 2000-03-16 Akim Demaille <akim@epita.fr>
2795 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2796 and related variables so that the similarities are highlighted.
2798 2000-03-16 Akim Demaille <akim@epita.fr>
2800 * src/bison.s1: Properly indent CPP directives.
2802 2000-03-16 Akim Demaille <akim@epita.fr>
2804 * src/bison.s1: Properly indent the `alloca' CPP section.
2806 2000-03-16 Akim Demaille <akim@epita.fr>
2808 Do not hard code values of directories in `configure.in'.
2809 Update the `configure' tool chain.
2811 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2813 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2814 (AC_OUTPUT): Add m4/Makefile.
2815 Bump to bison 1.28a, 1.29 has never been released.
2816 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2817 handled via src/Makefile.am.
2818 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2819 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2821 * Makefile.am (SUBDIRS): Add m4.
2822 (ACLOCAL_AM_FLAGS): New variable.
2823 (AUTOMAKE_OPTIONS): Add check-news.
2824 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2825 the proper line number and file name.
2826 (DEFS): Propagate the location of bison library files and of the
2828 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2830 * acinclude.m4: Remove, replaced by the directory m4.
2831 * m4/Makefile.am (EXTRA_DIST): New variable.
2832 * m4/gettext.m4: New file, from the fileutils.
2833 * m4/lcmessage.m4: Likewise
2834 * m4/progtest.m4: Likewise.
2835 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2837 2000-03-10 Akim Demaille <akim@epita.fr>
2840 Formatting changes of various comments.
2841 Respect the GNU coding standards at various places.
2842 Don't use `_()' when no translation is needed.
2844 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2847 OS/2 honors TMPDIR environment variable.
2849 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2851 * doc/bison.texinfo: Tweaked spelling and grammar.
2853 Removed reference to price of printed copy.
2854 Mention BISON_SIMPLE and BISON_HAIRY.
2856 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2858 * configure.in, NEWS:
2859 Bison 1.29 released.
2861 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2863 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2864 Added reference card.
2866 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2868 * po/ru.po: Added Russian translation.
2870 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2872 * configure.in: Added Russian translation.
2874 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2876 * configure.in, NEWS, README:
2877 Released version 1.28.
2879 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2882 Squashed redefinition warning on some systems.
2884 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2885 Have configure build version string instead of relying on ANSI string
2888 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2890 * po/POTFILES.in: Got rid of version.c.
2892 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2894 * acconfig.h, configure.in:
2895 Have configure build version string instead of relying on ANSI string
2898 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2901 Dropped mention of `+' for long-named options.
2903 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2905 * src/files.c: Added <unistd.h> for unlink().
2907 * src/Makefile.am, src/system.h:
2910 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2912 * README: Added a FAQ list.
2914 * configure.in, acconfig.h:
2917 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2919 * doc/FAQ, doc/Makefile.am:
2922 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2924 * src/alloc.h, src/symtab.h, src/version.c:
2925 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2927 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2929 * src/.cvsignore, src/Makefile.am:
2930 Reorganized: sources in `src', documentation in `doc'.
2932 * src/lex.c (literalchar):
2933 fixed the code for escaping double quotes (thanks
2936 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2938 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2939 Adjusted paths to reflect directory reorganization.
2941 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2943 * doc/.cvsignore, doc/Makefile.am:
2944 Reorganized: sources in `src', documentation in `doc'.
2946 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2949 Updated AC_INIT file to reflect directory reorganization.
2951 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2952 Reorganized: sources in `src', documentation in `doc'.
2954 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2957 Don't declare calloc() and realloc() if not necessary.
2959 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2961 * configure.in, acconfig.h, acinclude.m4:
2962 Don't declare calloc() and realloc() if not necessary.
2964 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2966 * po/.cvsignore: Added i18n support.
2968 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2970 * acconfig.h, configure.in, Makefile.am:
2973 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2975 * src/bison.s1: Fixed #line numbers.
2977 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2979 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2980 Added PO files from Translation Project.
2982 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2985 Added support for non-ANSI compilers (ansi2knr).
2987 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2989 * configure.in: Bumped version number to 1.27.
2992 Added `bison.simple' to list of files removed by `make distclean'.
2994 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2996 * src/files.c, src/files.h:
2997 Defined locations of parser files in config.h instead of Makefile.
2999 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3001 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3002 Defined locations of parser files in config.h instead of Makefile.
3004 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3007 Removed inappropriate use of $< macro.
3009 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3011 * po/Makefile.in.in, po/POTFILES.in:
3012 Add `po' directory skeleton.
3014 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3016 * README: Document help-bison list.
3018 * configure.in: Add check for mkstemp().
3020 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3022 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3023 Hush a few compiler warnings.
3026 Add tryclose(), which verifies that fclose was successful.
3027 Hush a couple of compiler warnings.
3029 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3031 * Makefile.am, OChangeLog:
3032 ChangeLog is now automatically generated. Include the old version as
3035 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3037 * 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:
3040 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3042 * doc/bison.texinfo: Fix formatting glitch.
3044 * doc/bison.texinfo: Update FSF address.
3046 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3048 * acconfig.h: Update FSF address.
3050 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3053 Don't define PACKAGE here, since config.h defines it.
3055 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3057 * src/reader.c: Update copyright date.
3060 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3061 favor of output directly to stderr (avoids buffer overruns).
3063 * src/reader.c: Some checks for premature EOF.
3065 * 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:
3066 Use prototypes if the compiler understands them.
3068 * src/files.c: Honor TMPDIR on Unix hosts.
3069 Use prototypes if the compiler understands them.
3072 Fix a couple of buffer overrun bugs.
3073 Use prototypes if the compiler understands them.
3075 * src/system.h: Include unistd.h and ctype.h.
3076 Use #ifdef instead of #if for NLS symbols.
3078 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3080 * doc/bison.texinfo:
3081 Delete comment "consider using @set for edition number, etc..." since
3082 we now are doing so.
3084 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3087 Use prototypes if the compiler understands them.
3089 * NEWS: Document 1.26 highlights.
3091 * Makefile.am: Require Automake 1.3 or later.
3094 Use prototypes if the compiler understands them.
3096 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3099 Use VERSION symbol from automake for version number.
3101 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3103 * acconfig.h, configure.in, version.cin:
3104 Use VERSION symbol from automake for version number.
3106 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3109 Distribute original version of simple parser (bison.s1), not built
3110 version (bison.simple).
3112 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3114 * doc/bison.texinfo: Add info dir entry.
3116 * doc/bison.texinfo:
3117 Let automake put version number into documentation.
3119 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3121 * src/bison.cld, src/build.com, src/vmshlp.mar:
3122 Add non-RCS files from /gd/gnu/bison.
3124 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3127 Document the BISON_HAIRY and BISON_SIMPLE variables.
3129 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3131 * src/version.c: Build version.c automatically.
3134 Fix token numbering (used to start at 258, not 257).
3136 * src/system.h: Include config.h.
3138 * src/getargs.c: Update bug report address.
3140 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3141 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3143 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3146 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3148 * configure.in, version.cin:
3149 Build version.c automatically.
3151 * AUTHORS: Add AUTHORS file.
3153 * README: Update bug report address.
3156 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3158 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3161 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3163 * doc/bison.texinfo: Clean up some formatting.
3165 1998-05-05 Richard Stallman <rms@gnu.org>
3167 * doc/bison.texinfo:
3168 Explain better why to make a pure parser.
3170 1998-01-05 Richard Stallman <rms@gnu.org>
3172 * src/files.c (openfiles):
3173 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3174 find a temporary directory, if possible. Do not unlink files while
3177 1997-08-25 Richard Stallman <rms@gnu.org>
3179 * src/reader.c (stack_offset;):
3180 Change some warni to warns.
3182 * src/lex.c (literalchar): Use warns, not warni.
3184 1997-06-28 Richard Stallman <rms@gnu.org>
3186 * src/bison.s1: Add a Bison version comment.
3188 * src/main.c (fatal, warn, berror):
3191 1997-06-28 Richard Stallman <rms@gnu.org>
3193 * Makefile.in (bison_version): New variable.
3194 (dist): Use that variable.
3195 (bison.s1): Substitute the Bison version into bison.simple.
3197 * bison.simple: Add a Bison version comment.
3199 1997-06-18 Richard Stallman <rms@gnu.org>
3201 * src/main.c (fatal, warn, berror):
3202 Make error messages standard.
3203 (toomany): Improve error message text.
3205 * 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:
3206 new.h renamed to alloc.h.
3208 1997-06-18 Richard Stallman <rms@gnu.org>
3210 * Makefile.in: new.h renamed to alloc.h.
3212 1997-05-24 Richard Stallman <rms@gnu.org>
3214 * src/lex.c (literalchar):
3215 Fix the code for escaping \, " and '.
3217 (lex): Avoid trouble when there are many chars
3218 to discard in a char literal with just several chars in it.
3220 1997-05-17 Richard Stallman <rms@gnu.org>
3223 Use malloc, if using alloca is troublesome.
3224 (YYSTACK_USE_ALLOCA): New flag macro.
3225 Define it for some systems and compilers.
3226 (YYSTACK_ALLOC): New macro.
3227 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3228 If it was malloc'd, free it.
3230 1997-05-17 Richard Stallman <rms@gnu.org>
3233 Use malloc, if using alloca is troublesome.
3234 (YYSTACK_USE_ALLOCA): New flag macro.
3235 Define it for some systems and compilers.
3236 (YYSTACK_ALLOC): New macro.
3237 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3238 If it was malloc'd, free it.
3240 1997-04-23 Richard Stallman <rms@gnu.org>
3243 (alloca) [__hpux]: Always define as __builtin_alloca.
3245 1997-04-23 Richard Stallman <rms@gnu.org>
3248 (alloca) [__hpux]: Always define as __builtin_alloca.
3250 1997-04-22 Richard Stallman <rms@gnu.org>
3253 [__hpux]: Include alloca.h (right for HPUX 10)
3254 instead of declaring alloca (right for HPUX 9).
3256 * src/bison.s1 (__yy_memcpy):
3257 Declare arg `count' as unsigned int.
3258 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3260 1997-04-22 Richard Stallman <rms@gnu.org>
3263 [__hpux]: Include alloca.h (right for HPUX 10)
3264 instead of declaring alloca (right for HPUX 9).
3266 * bison.simple (__yy_memcpy):
3267 Declare arg `count' as unsigned int.
3268 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3270 1997-01-03 Richard Stallman <rms@gnu.org>
3272 * src/allocate.c: [__STDC__ or _MSC_VER]:
3273 Declare calloc and realloc to return void *.
3275 1997-01-02 Richard Stallman <rms@gnu.org>
3278 [_MSC_VER]: Include stdlib.h and process.h.
3279 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3281 * src/main.c (main): Return FAILURE as a value.
3282 (printable_version): Declare arg as int, not char.
3284 1997-01-02 Richard Stallman <rms@gnu.org>
3286 * Makefile.in (dist):
3287 Explicitly check for symlinks, and copy them.
3289 1996-12-19 Richard Stallman <rms@gnu.org>
3292 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3294 1996-12-18 Paul Eggert <eggert@gnu.org>
3296 * src/bison.s1 (yyparse):
3297 If __GNUC__ and YYPARSE_PARAM are both defined,
3298 declare yyparse to have a void * argument.
3300 1996-12-18 Paul Eggert <eggert@gnu.org>
3302 * bison.simple (yyparse):
3303 If __GNUC__ and YYPARSE_PARAM are both defined,
3304 declare yyparse to have a void * argument.
3306 1996-12-17 Richard Stallman <rms@gnu.org>
3308 * src/reduce.c (nbits): Add some casts.
3310 1996-08-12 Richard Stallman <rms@gnu.org>
3312 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3314 1996-08-12 Richard Stallman <rms@gnu.org>
3316 * bison.simple: Test _MSDOS as well as _MSDOS_.
3318 1996-07-31 Richard Stallman <rms@gnu.org>
3321 [__sun && __i386]: Include alloca.h.
3323 1996-07-31 Richard Stallman <rms@gnu.org>
3326 [__sun && __i386]: Include alloca.h.
3328 1996-07-30 Richard Stallman <rms@gnu.org>
3330 * src/bison.s1: Comment change.
3332 * src/bison.s1: Test _MSDOS_, not MSDOS.
3334 1996-07-30 Richard Stallman <rms@gnu.org>
3336 * bison.simple: Comment change.
3338 * bison.simple: Test _MSDOS_, not MSDOS.
3340 1996-06-01 Richard Stallman <rms@gnu.org>
3342 * 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:
3343 Insert `_' macro around many string constants.
3346 Insert `_' macro around many string constants.
3348 (main): Call setlocale, bindtextdomain and textdomain.
3350 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3351 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3352 [ENABLE_NLS]: Include libintl.h.
3353 [ENABLE_NLS] (gettext): Define.
3354 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3355 (N_, PACKAGE, LOCALEDIR): New macros.
3357 1996-06-01 Richard Stallman <rms@gnu.org>
3359 * POTFILES.in: New file.
3361 * Makefile.in (allocate.o):
3362 Define target explicitly.
3364 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3365 (LDFLAGS): Set to @LDFLAGS@.
3366 (configure): Run autoconf only if preceding `cd' succeeds.
3367 (bison.s1): Redirect output to temporary file then move the
3368 temporary to the target, rather than redirecting directly to bison.s1.
3369 (clean): Remove config.status and config.log.
3370 (distclean): Don't remove config.status here.
3372 1996-05-12 Richard Stallman <rms@gnu.org>
3375 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3377 1996-05-12 Richard Stallman <rms@gnu.org>
3380 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3382 1996-05-11 Richard Stallman <rms@gnu.org>
3384 * src/bison.s1 (__yy_memcpy):
3385 Really reorder the args, as was supposedly done on Feb 14 1995.
3386 (yyparse): Calls changed accordingly.
3388 1996-05-11 Richard Stallman <rms@gnu.org>
3390 * Makefile.in (dist): Don't use $(srcdir).
3392 * bison.simple (__yy_memcpy):
3393 Really reorder the args, as was supposedly done on Feb 14 1995.
3394 (yyparse): Calls changed accordingly.
3396 1996-01-27 Richard Stallman <rms@gnu.org>
3398 * src/output.c (output_rule_data):
3399 Test YYERROR_VERBOSE in the conditional
3400 around the definition of ttyname.
3402 1995-12-29 Richard Stallman <rms@gnu.org>
3405 Fix line numbers in #line commands.
3407 1995-12-29 Richard Stallman <rms@gnu.org>
3410 Fix line numbers in #line commands.
3412 1995-12-27 Richard Stallman <rms@gnu.org>
3414 * src/bison.s1 (YYPARSE_PARAM_DECL):
3415 In C++, make it always null.
3416 (YYPARSE_PARAM_ARG): New macro.
3417 (yyparse): Use YYPARSE_PARAM_ARG.
3419 1995-12-27 Richard Stallman <rms@gnu.org>
3421 * bison.simple (YYPARSE_PARAM_DECL):
3422 In C++, make it always null.
3423 (YYPARSE_PARAM_ARG): New macro.
3424 (yyparse): Use YYPARSE_PARAM_ARG.
3426 1995-11-29 Richard Stallman <rms@gnu.org>
3428 * doc/bison.texinfo:
3429 Describe literal string tokens, %raw, %no_lines, %token_table.
3431 1995-11-29 Daniel Hagerty <hag@gnu.org>
3433 * doc/bison.texinfo: Fixed update date
3435 1995-10-16 Richard Stallman <rms@gnu.org>
3437 * src/version.c: Version 1.25.
3439 1995-10-16 Richard Stallman <rms@gnu.org>
3441 * NEWS: *** empty log message ***
3443 1995-10-16 Richard Stallman <rms@gnu.org>
3445 * doc/bison.1, doc/bison.rnh:
3448 1995-10-15 Richard Stallman <rms@gnu.org>
3450 * src/vmsgetargs.c, src/getargs.c:
3451 Added -n, -k, and -raw switches.
3452 (noparserflag, toknumflag, rawtoknumflag): New variables.
3454 * src/symtab.h (SALIAS):
3455 New #define for adding aliases to %token.
3456 (struct bucket): Added `alias' field.
3458 * src/reduce.c (reduce_grammar):
3459 Revise error message.
3460 (print_notices): Remove final `.' from error message.
3462 * src/reader.c (reader_output_yylsp):
3464 (readgram): Use `#if 0' around code that accepted %command
3465 inside grammar rules: The documentation doesn't allow it,
3466 and it will fail since the %command processors scan for the next %.
3467 (parse_token_decl): Extended the %token
3468 declaration to allow a multi-character symbol as an alias.
3469 (parse_thong_decl): New function.
3470 (read_declarations): Added %thong declarations.
3471 (read_declarations): Handle NOOP to deal with allowing
3472 % declarations as another means to specify the flags.
3473 (readgram): Allow %prec prior to semantics embedded in a rule.
3474 (skip_to_char, read_declarations, copy_definition)
3475 (parse_token_decl, parse_start_decl, parse_type_decl)
3476 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3477 (get_type_name, copy_guard, copy_action, readgram)
3478 (get_type, packsymbols): Revised most error messages.
3479 Changed `fatal' to `warnxxx' to avoid aborting for error.
3480 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3481 (read_declarations): Improve the error message for
3482 an invalid character. Do not abort.
3483 (read_declarations, copy_guard, copy_action): Use
3484 printable_version to avoid unprintable characters in printed output.
3485 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3486 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3487 Allow the type of a non-terminal can be given
3488 more than once, as long as all specifications give the same type.
3491 (output_headers, output_trailers, output, output_gram)
3492 (output_rule_data): Implement noparserflag variable.
3493 Implement toknumflag variable.
3494 (output): Call reader_output_yylsp to output LTYPESTR.
3496 * src/main.c (main):
3497 If reader sees an error, don't process the grammar.
3498 (fatals): Updated to not use VARARGS1.
3499 (printable_version, int_to_string, warn, warni, warns, warnss)
3500 (warnsss): New error reporting functions. Avoid abort for error.
3503 Added THONG and NOOP for alias processing.
3504 Added SETOPT for the new code that allows setting options with %flags.
3507 Include getopt.h. Add some extern decls.
3508 (safegetc): New function to deal with EOF gracefully.
3509 (literalchar); new function to deal with reading \ escapes.
3510 (lex): Use literalchar.
3511 (lex): Implemented "..." tokens.
3512 (literalchar, lex, parse_percent_token): Made tokenbuffer
3513 always contain the token. This includes growing the token
3514 buffer while reading an integer.
3515 (parse_percent_token): Replaced if-else statement with percent_table.
3516 (parse_percent_token): Added % declarations as another
3517 way to specify the flags -n, -l, and -r. Also added hooks for
3518 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3519 major changes to files.c.
3520 (lex) Retain in the incoming stream a character following
3522 (skip_white_space, lex): Revised most error messages
3523 and changed fatal to warn to avoid aborting.
3524 (percent_table): Added %thong declarations.
3526 * src/gram.h: Comment changes.
3528 * src/files.c (openfiles, open_extra_files, done):
3530 and actfile file. Handle noparserflag. Both for -n switch.
3532 * src/conflicts.c (resolve_sr_conflict):
3533 Remove use of alloca.
3535 1995-06-01 Jim Meyering <meyering@gnu.org>
3537 * doc/bison.texinfo: *** empty log message ***
3539 1995-05-06 Richard Stallman <rms@gnu.org>
3541 * src/bison.s1: Comment change.
3543 1995-05-06 Richard Stallman <rms@gnu.org>
3545 * bison.simple: Comment change.
3547 1995-05-03 Richard Stallman <rms@gnu.org>
3549 * src/version.c: Version now 1.24.
3551 * src/bison.s1: Change distribution terms.
3553 * src/version.c: Version now 1.23.
3555 1995-05-03 Richard Stallman <rms@gnu.org>
3557 * doc/bison.texinfo:
3558 Rewrite "Conditions for Using Bison".
3559 Update version to 1.24.
3561 1995-05-03 Richard Stallman <rms@gnu.org>
3563 * bison.simple: Change distribution terms.
3565 1995-02-23 Richard Stallman <rms@gnu.org>
3567 * src/files.c: Test __VMS_POSIX as well as VMS.
3569 1995-02-14 Jim Meyering <meyering@gnu.org>
3571 * src/bison.s1 (__yy_memcpy):
3572 Renamed from __yy_bcopy to avoid
3573 confusion. Reverse FROM and TO arguments to be consistent with
3576 1995-02-14 Jim Meyering <meyering@gnu.org>
3578 * bison.simple (__yy_memcpy):
3579 Renamed from __yy_bcopy to avoid
3580 confusion. Reverse FROM and TO arguments to be consistent with
3583 1994-11-10 David J. MacKenzie <djm@gnu.org>
3589 * Makefile.in (DISTFILES): Include NEWS.
3591 * Makefile.in (DISTFILES):
3592 Include install-sh, not install.sh.
3594 * configure.in: Update to Autoconf v2 macro names.
3596 1994-10-05 David J. MacKenzie <djm@gnu.org>
3598 * Makefile.in: fix typo
3600 * Makefile.in (prefix, exec_prefix):
3601 Let configure set them.
3603 1994-09-28 David J. MacKenzie <djm@gnu.org>
3605 * Makefile.in: Set datadir to $(prefix)/share.
3607 1994-09-15 Richard Stallman <rms@gnu.org>
3610 Update copyright notice and GPL version.
3612 1994-09-15 Richard Stallman <rms@gnu.org>
3615 Update copyright notice and GPL version.
3617 1994-07-12 Richard Stallman <rms@gnu.org>
3619 * src/reduce.c, src/reader.c:
3622 1994-05-05 David J. MacKenzie <djm@gnu.org>
3624 * Makefile.in: entered into RCS
3626 1994-03-26 Richard Stallman <rms@gnu.org>
3628 * src/bison.s1: entered into RCS
3630 1994-03-26 Richard Stallman <rms@gnu.org>
3632 * bison.simple: entered into RCS
3634 1994-03-25 Richard Stallman <rms@gnu.org>
3636 * src/main.c: entered into RCS
3638 1994-03-24 Richard Stallman <rms@gnu.org>
3640 * src/conflicts.c: entered into RCS
3642 1994-01-02 Richard Stallman <rms@gnu.org>
3644 * Makefile.in: *** empty log message ***
3646 1993-11-21 Richard Stallman <rms@gnu.org>
3648 * src/bison.s1: *** empty log message ***
3650 1993-11-21 Richard Stallman <rms@gnu.org>
3652 * doc/bison.texinfo: entered into RCS
3654 * doc/bison.texinfo: *** empty log message ***
3656 1993-11-21 Richard Stallman <rms@gnu.org>
3658 * bison.simple: *** empty log message ***
3660 1993-10-25 David J. MacKenzie <djm@gnu.org>
3662 * doc/bison.texinfo: *** empty log message ***
3664 1993-10-19 Richard Stallman <rms@gnu.org>
3666 * src/bison.s1: *** empty log message ***
3668 1993-10-19 Richard Stallman <rms@gnu.org>
3670 * bison.simple: *** empty log message ***
3672 1993-10-14 Richard Stallman <rms@gnu.org>
3674 * src/bison.s1: *** empty log message ***
3676 1993-10-14 Richard Stallman <rms@gnu.org>
3678 * bison.simple: *** empty log message ***
3680 1993-09-14 David J. MacKenzie <djm@gnu.org>
3682 * doc/bison.texinfo: *** empty log message ***
3684 1993-09-13 Noah Friedman <friedman@gnu.org>
3686 * Makefile.in: *** empty log message ***
3688 1993-09-10 Richard Stallman <rms@gnu.org>
3690 * src/conflicts.c: *** empty log message ***
3692 * src/system.h: entered into RCS
3694 1993-09-10 Richard Stallman <rms@gnu.org>
3696 * doc/bison.1: entered into RCS
3698 1993-09-06 Noah Friedman <friedman@gnu.org>
3700 * src/version.c: entered into RCS
3702 1993-09-06 Noah Friedman <friedman@gnu.org>
3704 * Makefile.in: *** empty log message ***
3706 1993-07-30 David J. MacKenzie <djm@gnu.org>
3708 * Makefile.in: *** empty log message ***
3710 1993-07-24 Richard Stallman <rms@gnu.org>
3712 * src/bison.s1: *** empty log message ***
3714 1993-07-24 Richard Stallman <rms@gnu.org>
3716 * bison.simple: *** empty log message ***
3718 1993-07-08 David J. MacKenzie <djm@gnu.org>
3720 * Makefile.in: *** empty log message ***
3722 1993-07-04 Richard Stallman <rms@gnu.org>
3724 * src/bison.s1: *** empty log message ***
3726 1993-07-04 Richard Stallman <rms@gnu.org>
3728 * bison.simple: *** empty log message ***
3730 1993-06-26 David J. MacKenzie <djm@gnu.org>
3732 * src/getargs.c: entered into RCS
3734 1993-06-26 David J. MacKenzie <djm@gnu.org>
3736 * doc/bison.texinfo: *** empty log message ***
3738 * doc/bison.1: New file.
3740 1993-06-25 Richard Stallman <rms@gnu.org>
3742 * src/getargs.c: New file.
3744 1993-06-16 Richard Stallman <rms@gnu.org>
3746 * src/bison.s1: *** empty log message ***
3748 1993-06-16 Richard Stallman <rms@gnu.org>
3750 * bison.simple: *** empty log message ***
3752 1993-06-03 Richard Stallman <rms@gnu.org>
3754 * src/bison.s1: New file.
3756 1993-06-03 Richard Stallman <rms@gnu.org>
3758 * doc/bison.texinfo: *** empty log message ***
3760 1993-06-03 Richard Stallman <rms@gnu.org>
3762 * bison.simple: New file.
3764 1993-05-19 Richard Stallman <rms@gnu.org>
3766 * doc/bison.texinfo: New file.
3768 1993-05-07 Noah Friedman <friedman@gnu.org>
3770 * Makefile.in: *** empty log message ***
3772 1993-04-28 Noah Friedman <friedman@gnu.org>
3774 * src/reader.c: *** empty log message ***
3776 1993-04-23 Noah Friedman <friedman@gnu.org>
3778 * src/alloc.h: entered into RCS
3780 1993-04-20 David J. MacKenzie <djm@gnu.org>
3782 * src/version.c: *** empty log message ***
3784 * src/files.c, src/allocate.c:
3787 * src/reader.c: *** empty log message ***
3789 * src/lex.c: entered into RCS
3791 * src/conflicts.c: New file.
3793 * src/symtab.c: entered into RCS
3795 * src/alloc.h: New file.
3797 * src/LR0.c: entered into RCS
3799 1993-04-18 Noah Friedman <friedman@gnu.org>
3801 * src/reader.c: New file.
3803 * src/version.c: *** empty log message ***
3805 1993-04-18 Noah Friedman <friedman@gnu.org>
3807 * Makefile.in: *** empty log message ***
3809 1993-04-17 Noah Friedman <friedman@gnu.org>
3811 * Makefile.in: *** empty log message ***
3813 1993-04-15 Richard Stallman <rms@gnu.org>
3815 * src/main.c, src/files.c:
3818 1993-04-15 Noah Friedman <friedman@gnu.org>
3820 * configure.in: entered into RCS
3822 * configure.in: *** empty log message ***
3824 * configure.in: New file.
3826 1993-04-14 Richard Stallman <rms@gnu.org>
3828 * Makefile.in: New file.
3830 1993-04-13 Richard Stallman <rms@gnu.org>
3832 * src/version.c: New file.
3834 1993-03-25 Richard Stallman <rms@gnu.org>
3836 * src/output.c: entered into RCS
3838 1992-09-25 Richard Stallman <rms@gnu.org>
3840 * configure.bat: entered into RCS
3842 1992-06-22 Richard Stallman <rms@gnu.org>
3844 * src/vmsgetargs.c: entered into RCS
3846 1992-06-22 Richard Stallman <rms@gnu.org>
3848 * doc/bison.rnh: entered into RCS
3850 1992-04-20 David J. MacKenzie <djm@gnu.org>
3852 * README: entered into RCS
3854 1992-01-22 Richard Stallman <rms@gnu.org>
3856 * src/machine.h: entered into RCS
3858 1991-12-21 Richard Stallman <rms@gnu.org>
3860 * src/lalr.c, src/closure.c:
3863 1991-12-20 Richard Stallman <rms@gnu.org>
3865 * src/state.h: entered into RCS
3867 1991-12-18 Richard Stallman <rms@gnu.org>
3869 * src/print.c, src/nullable.c, src/derives.c:
3872 1991-11-03 David J. MacKenzie <djm@gnu.org>
3874 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3877 1988-09-09 Richard Stallman <rms@gnu.org>
3879 * src/bison.hairy: entered into RCS
3881 1987-12-16 Richard Stallman <rms@gnu.org>
3883 * REFERENCES: entered into RCS