1 2001-11-27 Paul Eggert <eggert@twinsun.com>
3 * lib/quotearg.h (quotearg_n, quotearg_n_style):
4 First arg is int, not unsigned.
5 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
6 (SIZE_MAX, UINT_MAX): New macros.
7 (quotearg_n_options): Abort if N is negative.
8 Avoid overflow check on hosts where size_t is 64 bits and int
9 is 32 bits, as overflow is impossible there.
10 Fix off-by-one typo that caused unnecessary reallocation.
12 2001-11-29 Paul Eggert <eggert@twinsun.com>
14 Name space cleanup in generated parser.
16 * doc/bison.texinfo (Bison Parser): Discuss system headers
17 and their effect on the user name space.
20 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
21 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
22 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
24 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
25 on user names when possible.
27 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
28 Simplify test for whather <alloca.h> exists.
30 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
32 (<stdio.h>): Include if YYDEBUG.
34 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
35 ! defined (yyoverflow) && ! defined (yymemcpy).
37 (yymemcpy, yyparse): Rename local variables as needed so that
38 they all begin with 'yy'.
40 (yystrlen, yystpcpy): New functions.
42 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
45 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
46 instead of relying on string.h functions. Use YYSTACK_ALLOC
47 and YYSTACK_FREE instead of malloc and free.
49 2001-11-30 Akim Demaille <akim@epita.fr>
51 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
52 before their first uses.
53 (YYBISON, YYPURE): Move to the top of the output.
55 2001-11-30 Akim Demaille <akim@epita.fr>
57 * tests/reduce.at (Useless Nonterminals): Fix.
59 2001-11-30 Akim Demaille <akim@epita.fr>
61 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
62 if body instead of `;' to pacify GCC's warnings.
64 2001-11-30 Akim Demaille <akim@epita.fr>
66 Instead of mapping the LHS of unused rules to -1, keep the LHS
67 valid, but flag the rules as invalid.
69 * src/gram.h (rule_t): `useful' is a new member.
70 * src/print.c (print_grammar): Adjust.
71 * src/derives.c (set_derives): Likewise.
72 * src/reader.c (packgram, reduce_output): Likewise.
73 * src/reduce.c (reduce_grammar_tables): Likewise.
74 * tests/reduce.at (Underivable Rules, Useless Rules): New.
76 2001-11-30 Akim Demaille <akim@epita.fr>
78 * src/reduce.c (reduce_output): Formatting changes.
79 * src/print.c (print_results, print_grammar): Likewise.
80 * tests/regression.at (Rule Line Numbers)
81 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
83 2001-11-30 Akim Demaille <akim@epita.fr>
85 * src/reduce.c (nonterminals_reduce): Instead of throwing away
86 useless nonterminals, move them at the end of the symbol arrays.
87 (reduce_output): Adjust.
88 * tests/reduce.at (Useless Nonterminals): Adjust.
90 2001-11-30 Akim Demaille <akim@epita.fr>
92 * src/reduce.c: Various comment/formatting changes.
93 (nonterminals_reduce): New, extracted from...
94 (reduce_grammar_tables): here.
95 (reduce_grammar): Call nonterminals_reduce.
97 2001-11-29 Paul Eggert <eggert@twinsun.com>
99 * src/bison.simple (YYSTACK_REALLOC): Remove.
100 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
101 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
103 (union yyalloc): New type.
104 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
105 an arbitrary restriction on hosts where size_t is wider than int.
107 (yyparse): Don't dump core if alloca or malloc fails; instead, report
108 a parser stack overflow. Allocate just one block of memory for all
109 three stacks, instead of allocating three blocks; this typically is
110 faster and reduces fragmentation.
112 Do not limit the number of items in the stack to a value that fits
113 in 'int', as this is an arbitrary limit on hosts with 64-bit
114 size_t and 32-bit int.
116 2001-11-29 Marc Autret <autret_m@epita.fr>
118 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
119 of defining YYERROR_VERBOSE.
120 [AT_DATA]: $4 is now out of C declarations in the prologue.
122 2001-11-28 Marc Autret <autret_m@epita.fr>
124 * src/reader.c (parse_dquoted_param): New.
125 (parse_skel_decl): Use it.
126 * src/lex.h: Add its prototype.
127 * src/lex.c (literalchar): Become not static.
129 2001-11-28 Marc Autret <autret_m@epita.fr>
131 * src/output.h: And put its extern declaration here.
132 * src/output.c (error_verbose): Define here.
133 (prepare): Echo name modification.
134 * src/getargs.h: Clean its extern declaration.
135 * src/getargs.c (error_verbose_flag): Remove.
136 (getargs): Remove case 'e'.
137 * src/options.c (option_table): 'error-verbose' is now seen as simple
141 * src/reader.c (read_declarations): Remove case tok_include.
142 (parse_include_decl): Remove.
143 * src/lex.h (token_t): Remove tok_include.
144 * src/options.c (option_table): 'include' is now a simple command line
147 2001-11-28 Marc Autret <autret_m@epita.fr>
149 * src/bison.simple: Adjust muscle names.
150 * src/muscle_tab.c (muscle_init): Also rename the muscles.
151 * src/output.c (prepare): s/_/-/ for the muscles names.
152 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
154 2001-11-28 Marc Autret <autret_m@epita.fr>
156 * src/bison.simple: Fix debug.
157 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
159 2001-11-28 Akim Demaille <akim@epita.fr>
161 * src/LR0.c (shifts_new): New.
162 (save_shifts, insert_start_shift, augment_automaton): Use it.
164 2001-11-28 Akim Demaille <akim@epita.fr>
166 * src/closure.c (closure): `b' and `ruleno' denote the same value:
169 2001-11-28 Akim Demaille <akim@epita.fr>
171 * src/closure.c (closure): Instead of looping over word in array
172 then bits in words, loop over bits in array.
174 2001-11-28 Akim Demaille <akim@epita.fr>
176 * src/closure.c (closure): No longer optimize the special case
177 where all the bits of `ruleset[r]' are set to 0, to make the code
180 2001-11-28 Akim Demaille <akim@epita.fr>
182 * src/closure.c (closure): `r' and `c' are new variables, used to
183 de-obfuscate accesses to RULESET and CORE.
185 2001-11-28 Akim Demaille <akim@epita.fr>
187 * src/reduce.c (reduce_print): Use ngettext.
188 (dump_grammar): Improve the trace accuracy.
190 2001-11-28 Akim Demaille <akim@epita.fr>
192 * src/reduce.c (dump_grammar): Don't translate trace messages.
194 2001-11-28 Akim Demaille <akim@epita.fr>
196 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
197 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
198 as all tags are free'ed afterwards.
201 2001-11-27 Paul Eggert <eggert@twinsun.com>
203 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
204 use alloca when we didn't want to, and vice versa.
206 2001-11-27 Marc Autret <autret_m@epita.fr>
208 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
210 * src/output.c (prepare): Remove its update.
212 2001-11-27 Marc Autret <autret_m@epita.fr>
214 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
217 2001-11-27 Marc Autret <autret_m@epita.fr>
219 * src/bison.simple: Remove YYERROR_VERBOSE using.
222 * src/output.c (prepare): Give its final value.
223 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
224 * src/getargs.h: Add its extern declaration.
225 * src/getargs.c (error_verbose_flag): New int.
226 (getargs): Update to catch new case.
227 * src/options.c (option_table): 'error-verbose' is a new option.
230 2001-11-27 Akim Demaille <akim@epita.fr>
232 * src/system.h: Use intl/libgettext.h.
233 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
235 2001-11-27 Akim Demaille <akim@epita.fr>
237 * tests/torture.at (Exploding the Stack Size with Malloc):
238 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
240 2001-11-27 Akim Demaille <akim@epita.fr>
242 * src/files.c: Include error.h.
243 Reported by Hans Aberg.
245 2001-11-26 Marc Autret <autret_m@epita.fr>
247 * src/reader.c (parse_include_decl): New, not yet implemented.
248 (read_declarations): Add case tok_include.
249 * src/getargs.h (include): Add its extern definition.
250 * src/getargs.c (include): New const char *.
251 (getargs): Add case '-I'.
252 * src/options.c (option_table): Add include as command line and
254 * src/lex.h (token_t): Add tok_include.
256 2001-11-26 Akim Demaille <akim@epita.fr>
258 * src/reader.c (readgram): Make sure rules for mid-rule actions
259 have a lineno equal to that of their host rule.
260 Reported by Hans Aberg.
261 * tests/regression.at (Rule Line Numbers): New.
263 2001-11-26 Akim Demaille <akim@epita.fr>
265 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
268 2001-11-26 Akim Demaille <akim@epita.fr>
270 * src/complain.c, src/complain.h (error): Remove, provided by
273 2001-11-26 Akim Demaille <akim@epita.fr>
275 * src/reader.c (read_declarations): Don't abort on tok_illegal,
276 issue an error message.
277 * tests/regression.at (Invalid %directive): New.
278 Reported by Hans Aberg.
280 2001-11-26 Akim Demaille <akim@epita.fr>
282 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
283 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
285 2001-11-26 Akim Demaille <akim@epita.fr>
287 * src/conflicts.c (conflicts_print): Don't complain at all when
288 there are no reduce/reduce conflicts, and as many shift/reduce
289 conflicts as expected.
290 * tests/regression.at (%expect right): Adjust.
292 2001-11-23 Akim Demaille <akim@epita.fr>
294 * lib/alloca.c: Update, from fileutils.
296 2001-11-23 Akim Demaille <akim@epita.fr>
298 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
300 2001-11-23 Akim Demaille <akim@epita.fr>
302 * src/system.h: Include alloca.h.
303 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
305 2001-11-23 Akim Demaille <akim@epita.fr>
307 * src/print_graph.c (print_actions): Remove `rule', unused.
308 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
309 pacify GCC's signed < unsigned warnings.
310 * src/closure.c (itemsetsize): Likewise.
311 * src/reader.c (symbol_list_new): Static.
313 2001-11-23 Akim Demaille <akim@epita.fr>
315 Attaching lineno to buckets is stupid, since only one copy of each
316 symbol is kept, only the line of the first occurrence is kept too.
318 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
319 * src/reader.c (rline_allocated): Remove, unused.
320 (symbol_list): Have a `line' member.
321 (symbol_list_new): New.
323 * src/print.c (print_grammar): Output the rule line numbers.
324 * tests/regression.at (Solved SR Conflicts)
325 (Unresolved SR Conflicts): Adjust.
326 Reported by Hans Aberg.
328 2001-11-22 Marc Autret <autret_m@epita.fr>
330 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
332 2001-11-22 Marc Autret <autret_m@epita.fr>
334 * src/muscle_tab.c (muscle_init): Remove initialization of
336 * src/output.c (output_master_parser): Do it here.
338 2001-11-20 Akim Demaille <akim@epita.fr>
341 * configure.in (ALL_LINGUAS): Adjust.
342 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
343 longer contains strings to translate.
345 2001-11-19 Akim Demaille <akim@epita.fr>
347 * src/conflicts.c (conflicts_print): Add a missing \n.
349 2001-11-19 Akim Demaille <akim@epita.fr>
351 * src/nullable.c (nullable_print): New.
352 (set_nullable): Call it when tracing.
353 Better locality of variables.
355 2001-11-19 Akim Demaille <akim@epita.fr>
357 * src/print.c (print_actions): Better locality of variables.
359 2001-11-19 Akim Demaille <akim@epita.fr>
361 * src/derives.c (print_derives): Fix and enrich.
362 * src/closure.c (print_fderives): Likewise.
364 2001-11-19 Akim Demaille <akim@epita.fr>
366 * src/closure.c (itemsetend): Remove, replaced with...
369 2001-11-19 Akim Demaille <akim@epita.fr>
371 * src/LR0.c (kernel_end): Remove, replaced with...
374 2001-11-19 Akim Demaille <akim@epita.fr>
376 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
379 2001-11-19 Akim Demaille <akim@epita.fr>
381 * src/closure.c (closure): Use arrays instead of pointers to clarify.
383 2001-11-19 Akim Demaille <akim@epita.fr>
385 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
387 * src/LR0.c: Likewise.
388 (allocate_itemsets): Use arrays instead of pointers to clarify.
390 2001-11-19 Akim Demaille <akim@epita.fr>
392 * src/getargs.c (statistics_flag): Replace with...
394 (longopts): Accept --trace instead of --statistics.
395 * src/getargs.h, src/options.c: Adjust.
396 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
397 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
399 2001-11-19 Akim Demaille <akim@epita.fr>
401 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
402 pointers to clarify the code.
403 (save_reductions, save_shifts): Factor common parts of alternatives.
405 2001-11-19 Akim Demaille <akim@epita.fr>
407 * src/LR0.c (new_state, get_state): Complete TRACE code.
408 * src/closure.c: Include `reader.h' to get `tags', needed by the
410 Rename the conditional DEBUG as TRACE.
411 Output consistently TRACEs to stderr, not stdout.
412 * src/derives.c: Likewise.
413 * src/reduce.c: (inaccessable_symbols): Using if is better style
415 Use `#if TRACE' instead of `#if 0' for tracing code.
417 2001-11-19 Akim Demaille <akim@epita.fr>
419 * src/system.h (LIST_FREE, shortcpy): New.
420 * src/LR0.c: Use them.
421 * src/output.c (free_itemsets, free_reductions, free_shifts):
422 Remove, replaced by LIST_FREE.
424 2001-11-19 Akim Demaille <akim@epita.fr>
426 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
427 (REDUCTIONS_ALLOC): New.
428 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
431 2001-11-19 Akim Demaille <akim@epita.fr>
433 * src/LR0.c (new_state): Complete trace code.
434 * src/nullable.c (set_nullable): Don't translate traces.
436 2001-11-19 Akim Demaille <akim@epita.fr>
438 * src/print_graph.c (print_core): Better locality of variables.
439 * src/print.c (print_core): Likewise.
441 2001-11-19 Akim Demaille <akim@epita.fr>
443 * src/vcg.c: You do the output, so you are responsible of the
444 handling of VCG syntax, in particular: use quotearg.
445 * src/print_graph.c: Don't.
446 (print_actions): Don't output the actions as part of the nodes,
447 since that's the job of the edges.
448 (print_state): Don't output by hand: fill the node description,
449 and ask for its output.
451 2001-11-19 Akim Demaille <akim@epita.fr>
453 * src/bison.simple (yyparse): When verbosely reporting an error,
454 no longer put additional quotes around token names.
455 * tests/calc.at: Adjust.
457 2001-11-19 Akim Demaille <akim@epita.fr>
459 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
460 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
461 * src/output.c: Adjust.
463 2001-11-19 Akim Demaille <akim@epita.fr>
465 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
467 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
469 2001-11-19 Akim Demaille <akim@epita.fr>
471 * src/gram.h (rule_t): New.
473 (rrhs, rlhs): Remove, part of state_t.
474 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
475 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
476 * src/reader.c, src/reduce.c: Adjust.
478 2001-11-19 Akim Demaille <akim@epita.fr>
480 * src/reader.c (symbols_output): New, extracted from...
484 2001-11-19 Akim Demaille <akim@epita.fr>
486 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
487 (maxrhs): this new function.
489 2001-11-19 Akim Demaille <akim@epita.fr>
491 * src/lalr.c (F): New macro to access the variable F.
494 2001-11-19 Akim Demaille <akim@epita.fr>
496 * src/lalr.h (LA): New macro to access the variable LA.
497 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
498 * src/lalr.c: Adjust.
500 2001-11-19 Akim Demaille <akim@epita.fr>
502 * src/lalr.c (initialize_LA): Only initialize LA. Let...
503 (set_state_table): handle the `lookaheads' members.
505 2001-11-19 Akim Demaille <akim@epita.fr>
507 * src/lalr.h (lookaheads): Removed array, whose contents is now
509 (state_t): this structure.
510 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
513 2001-11-19 Akim Demaille <akim@epita.fr>
515 * src/lalr.h (consistent): Removed array, whose contents is now
517 (state_t): this structure.
518 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
521 2001-11-19 Akim Demaille <akim@epita.fr>
523 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
524 contents are now members of...
525 (state_t): this structure.
526 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
529 2001-11-19 Akim Demaille <akim@epita.fr>
531 * src/lalr.h (state_t): New.
532 (state_table): Be a state_t * instead of a core **.
533 (accessing_symbol): Remove, part of state_t.
534 * src/lalr.c: Adjust.
535 (set_accessing_symbol): Merge into...
536 (set_state_table): this.
537 * src/print_graph.c, src/conflicts.c: Adjust.
539 2001-11-14 Akim Demaille <akim@epita.fr>
541 * tests/calc.at, tests/output.at, tests/regression.at,
542 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
543 now the tests are run in private dirs, therefore AC_CLEANUP and
544 family can be simplified to 0-ary.
545 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
546 use abs. path to find config.h.
547 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
548 stderr, there can be way too much random noise.
549 Instead pass -Werror to GCC and rely on the exit status.
550 Reported by Wolfram Wagner.
552 2001-11-14 Akim Demaille <akim@epita.fr>
554 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
555 defined only if yyoverflow is defined, to avoid `warning: unused
557 Reported by The Test Suite.
559 2001-11-14 Akim Demaille <akim@epita.fr>
561 * src/print.c: Include reduce.h.
562 Reported by Hans Aberg.
564 2001-11-14 Akim Demaille <akim@epita.fr>
566 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
567 Revert a previous patch: these are really const.
568 * src/conflicts.c (conflict_report): Additional useless pair of
569 braces to pacify GCC's warnings for `if () if () {} else {}'.
570 * src/lex.c (parse_percent_token): Replace equal_offset with
573 Be sure to strdup `arg' when used, since there is no reason for
574 token_buffer not to change.
576 2001-11-14 Akim Demaille <akim@epita.fr>
578 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
580 * src/main.c (main): Use them.
581 Suggested by Hans Aberg.
583 2001-11-12 Akim Demaille <akim@epita.fr>
585 * src/system.h (ngettext): Now that we use ngettext, be sure to
586 provide a default definition when NLS are not used.
588 2001-11-12 Akim Demaille <akim@epita.fr>
590 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
591 Use @kbd to denote user input.
592 (Language and Grammar): ANSIfy the example.
593 Adjust its layout for info/notinfo.
594 (Location Tracking Calc): Output error messages to stderr.
595 Output locations in a more GNUtically correct way.
596 Fix a couple of Englishos.
597 Adjust @group/@end group pairs.
599 2001-11-12 Akim Demaille <akim@epita.fr>
601 %expext was not functioning at all.
603 * src/conflicts.c (expected_conflicts): Set to -1.
604 (conflict_report): Use ngettext.
605 (conflicts_print): Check %expect and make its violation an error.
606 * doc/bison.texinfo (Expect Decl): Adjust.
607 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
608 * tests/regression.at (%expect not enough, %expect right)
609 (%expect too much): New.
611 2001-11-12 Akim Demaille <akim@epita.fr>
613 * tests/regression.at (Conflicts): Rename as...
614 (Unresolved SR Conflicts): this.
615 (Solved SR Conflicts): New.
617 2001-11-12 Akim Demaille <akim@epita.fr>
619 * src/reduce.c (print_results): Rename as...
620 (reduce_output): This.
621 Output to OUT, passed as argument, instead of output_obstack.
622 (dump_grammar): Likewise.
625 (reduce_grammar): No longer call reduce_output, since...
626 * src/print.c (print_results): do it.
627 * src/main.c (main): Call reduce_free;
629 2001-11-12 Akim Demaille <akim@epita.fr>
631 * src/conflicts.c (print_reductions): Accept OUT as argument.
632 Output to it, not to output_obstack.
633 * src/print.c (print_actions): Adjust.
635 2001-11-12 Akim Demaille <akim@epita.fr>
637 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
638 the result instead of using...
639 (src_total, rrc_total, src_count, rrc_count): Remove.
640 (any_conflicts): Remove.
641 (print_conflicts): Split into...
642 (conflicts_print, conflicts_output): New.
643 * src/conflicts.h: Adjust.
644 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
645 * src/print.c (print_grammar): Issue `\n' between two rules.
646 * tests/regression.at (Conflicts): New.
647 Reported by Tom Lane.
649 2001-11-12 Akim Demaille <akim@epita.fr>
651 * tests/regression.at (Invalid input): Remove, duplicate with
652 ``Invalid input: 1''.
654 2001-11-12 Akim Demaille <akim@epita.fr>
656 * tests/torture.at (AT_DATA_STACK_TORTURE)
657 (Exploding the Stack Size with Alloca)
658 (Exploding the Stack Size with Malloc): New.
660 2001-11-12 Akim Demaille <akim@epita.fr>
662 * src/bison.simple (YYSTACK_REALLOC): New.
663 (yyparse) [!yyoverflow]: Use it and free the old stack.
664 Reported by Per Allansson.
666 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
668 * src/bison.simple: Define type yystype instead of YYSTYPE, and
669 define CPP macro, which substitute YYSTYPE by yystype.
670 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
671 with yyltype/YYLTYPE. This allows inclusion of the generated
672 header within the parser if the compiler, such as GGC, accepts
673 multiple equivalent #defines.
676 2001-11-05 Akim Demaille <akim@epita.fr>
678 * src/reader.c (symbols_output): New, extracted from...
682 2001-11-05 Akim Demaille <akim@epita.fr>
684 * src/lex.c (parse_percent_token): s/quotearg/quote/.
686 2001-11-05 Akim Demaille <akim@epita.fr>
688 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
691 2001-11-05 Akim Demaille <akim@epita.fr>
693 * src/options.h (struct option_table_struct): set_flags is void*.
694 * src/options.c (longopts): Support `--output' and `%output'.
696 * src/lex.h (tok_setopt): Remove, replaced with...
697 (tok_intopt, tok_stropt): these new guys.
698 * src/lex.c (getopt.h): Not needed.
699 (token_buffer, unlexed_token_buffer): Not const.
700 (percent_table): Promote `-' over `_' in directive names.
701 Active `%name-prefix', `file-prefix', and `output'.
702 (parse_percent_token): Accept possible arguments to directives.
703 Promote `-' over `_' in directive names.
705 2001-11-04 Akim Demaille <akim@epita.fr>
707 * doc/bison.texinfo (Decl Summary): Split the list into
708 `directives for grammars' and `directives for bison'.
710 Add description of `%name-prefix', `file-prefix', and `output'.
711 Promote `-' over `_' in directive names.
712 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
713 Simplify the description of `--name-prefix'.
714 Promote `-' over `_' in directive names.
715 Promote `--output' over `--output-file'.
716 Fix the description of `--defines'.
717 * tests/output.at: Exercise %file-prefix and %output.
719 2001-11-02 Akim Demaille <akim@epita.fr>
721 * doc/refcard.tex: Update.
723 2001-11-02 Akim Demaille <akim@epita.fr>
725 * src/symtab.h (SUNDEF): New.
726 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
727 stand for `uninitialized', instead of 0.
728 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
729 * src/lex.c (lex): Adjust.
731 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
733 Let yylex return it instead of a plain 0.
734 Reported by Dick Streefland.
736 2001-11-02 Akim Demaille <akim@epita.fr>
738 * tests/regression.at (Mixing %token styles): New test.
740 2001-11-02 Akim Demaille <akim@epita.fr>
742 * src/reader.c (parse_thong_decl): Formatting changes.
743 (token_translations_init): New, extracted from...
747 2001-11-01 Akim Demaille <akim@epita.fr>
749 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
750 Check that `9foo.y' produces correct cpp guards.
751 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
755 2001-11-01 Akim Demaille <akim@epita.fr>
757 * tests/regression.at (Invalid input: 2): New.
758 * src/lex.c (unlexed_token_buffer): New.
759 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
763 2001-11-01 Akim Demaille <akim@epita.fr>
765 * tests/calc.at: Catch up with 1.30.
766 * configure.in: Bump to 1.49a.
767 Adjust to newer Autotest.
769 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
771 * src/conflicts.c: Move global variables rrc_total and src_total ...
772 (print_conflicts): here.
773 * src/output.c (output): Free global variable user_toknums.
774 * src/lex.c (token_obstack): Become static.
776 2001-10-18 Akim Demaille <akim@epita.fr>
778 * tests/atlocal.in (GCC): Add.
779 * tests/calc.at: s/m4_match/m4_bmatch/.
780 s/m4_patsubst/m4_bpatsubst/.
781 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
782 * configure.in: AC_SUBST(GCC).
784 2001-10-14 Marc Autret <autret_m@epita.fr>
786 * src/options.c (create_long_option_table): Fix.
788 2001-10-10 Akim Demaille <akim@epita.fr>
790 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
792 2001-10-04 Akim Demaille <akim@epita.fr>
794 * src/reader.c (parse_union_decl): Push the caracters in
795 union_obstack, not attrs_obstack.
797 2001-10-04 Akim Demaille <akim@epita.fr>
799 Merge in the branch 1.29.
801 * src/reader.c (packsymbols): Use a temporary obstack for
802 `%%tokendef', since output_stack is already used elsewhere.
804 2001-10-02 Akim Demaille <akim@epita.fr>
808 2001-10-02 Akim Demaille <akim@epita.fr>
812 2001-10-02 Akim Demaille <akim@epita.fr>
814 * tests/regression.at (Invalid CPP headers): New.
815 From Alexander Belopolsky.
816 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
818 2001-10-02 Akim Demaille <akim@epita.fr>
820 * tests/regression.at (Invalid input): New.
821 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
824 2001-10-02 Akim Demaille <akim@epita.fr>
826 * tests/calc.at: Now that --debug works, the tests must be adjusted.
828 2001-10-02 Akim Demaille <akim@epita.fr>
830 * src/output.c (output_parser): Assert `skeleton'.
831 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
835 2001-10-01 Marc Autret <autret_m@epita.fr>
837 * src/lex.h: Echo modifications.
838 * src/lex.c (unlex): Parameter is now token_t.
841 2001-10-01 Marc Autret <autret_m@epita.fr>
843 * src/main.c: Include lex.h.
846 2001-09-29 Akim Demaille <akim@epita.fr>
848 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
850 2001-09-28 Akim Demaille <akim@epita.fr>
852 * tests/testsuite.at: Update to newer Autotest.
853 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
855 2001-09-27 Akim Demaille <akim@epita.fr>
857 Position independent wrapper.
859 * tests/bison: Remove.
860 * tests/bison.in: New.
861 * configure.in: Adjust.
863 2001-09-27 Paul Eggert <eggert@twinsun.com>
865 Port quotearg fixes from tar 1.13.24.
867 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
869 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
870 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
872 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
873 * m4/mbrtowc.m4: New file.
874 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
875 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
877 2001-09-27 Akim Demaille <akim@epita.fr>
881 2001-09-27 Akim Demaille <akim@epita.fr>
885 2001-09-25 Akim Demaille <akim@epita.fr>
887 * src/system.h: Include `xalloc.h'.
888 Remove it from the C files.
889 * src/files.c (output_files): Free the obstacks.
890 * src/lex.c (init_lex): Rename as...
893 * src/main.c (main): Use it.
895 2001-09-24 Marc Autret <autret_m@epita.fr>
897 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
898 to output informations in fout (FILE*).
899 (open_graph, close_graph): Likewise.
900 (output_graph, output_edge, output_node): Likewise.
901 * src/vcg.h: Update function prototypes.
902 * src/print_graph.c (print_graph): Open output graph file.
903 (print_actions): Adjust.
904 * src/files.h: Remove extern declaration.
905 * src/files.c: Remove graph_obstack declaration.
906 (open_files): Remove graph_obstack initialization.
907 (output_files): Remove graph_obstack saving.
909 2001-09-24 Marc Autret <autret_m@epita.fr>
911 * src/files.c (compute_output_file_names): Fix.
913 2001-09-24 Marc Autret <autret_m@epita.fr>,
914 Akim Demaille <akim@epita.fr>
916 * src/reader.c (reader): Remove call to free_symtab ().
917 * src/main.c (main): Call it here.
919 * src/conflicts.c (initialize_conflicts): Rename as...
920 (solve_conflicts): this.
921 * src/print.c (print_core, print_actions, print_state)
922 (print_grammar): Dump to a file instead a `output_obstack'.
923 (print_results): Dump `output_obstack', and then proceed with the
925 * src/files.c (compute_output_file_names, close_files): New.
926 (output_files): Adjust.
927 * src/main.c (main): Adjust.
929 2001-09-23 Marc Autret <autret_m@epita.fr>
931 * src/files.c (compute_header_macro): Computes header macro name
932 from spec_defines_file when given.
934 2001-09-23 Marc Autret <autret_m@epita.fr>
936 * src/files.c (output_files): Add default extensions.
938 2001-09-22 Akim Demaille <akim@epita.fr>
940 * src/conflicts.c (finalize_conflicts): Rename as...
941 (free_conflicts): this.
943 2001-09-22 Akim Demaille <akim@epita.fr>
945 * src/gram.c (gram_free): Rename back as...
947 (output_token_translations): Free `token_translations'.
948 * src/symtab.c (free_symtab): Free the tag field.
950 2001-09-22 Akim Demaille <akim@epita.fr>
952 Remove `translations' as it is always set to true.
954 * src/gram.h: Adjust.
955 * src/reader.c (packsymbols, parse_token_decl): Adjust
956 * src/print.c (print_grammar): Adjust.
957 * src/output.c (output_token_translations): Adjust.
958 * src/lex.c (lex): Adjust.
959 * src/gram.c: Be sure the set pointers to NULL.
960 (dummy): Rename as...
963 2001-09-22 Akim Demaille <akim@epita.fr>
965 * configure.in: Invoke AM_LIB_DMALLOC.
966 * src/system.h: Use dmalloc.
967 * src/LR0.c: Be sure to have pointers initialized to NULL.
968 (allocate_itemsets): Allocate kernel_items only if needed.
970 2001-09-22 Akim Demaille <akim@epita.fr>
972 * configure.in: Bump to 1.29b.
973 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
974 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
975 need xmalloc.c in calc.y.
978 2001-09-21 Akim Demaille <akim@epita.fr>
981 * Makefile.maint, config/config.guess, config/config.sub,
982 * config/missing: Update from masters.
983 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
985 * configure.in (ALL_LINGUAS): Add `tr'.
987 2001-09-21 Akim Demaille <akim@epita.fr>
989 * tests/Makefile.am (package.m4): Move to...
990 ($(srcdir)/$(TESTSUITE)): here.
992 2001-09-20 Akim Demaille <akim@epita.fr>
994 * src/complain.c: No longer try to be standalone: use system.h.
995 Don't assume __STDC__ is defined to 1. Just test if it is defined.
996 * src/complain.h: Likewise.
997 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
998 Remove the unused variable `n'.
999 From Albert Chin-A-Young.
1001 2001-09-18 Marc Autret <autret_m@epita.fr>
1003 * doc/bison.1: Update.
1004 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1006 (Option Cross Key): Update.
1009 2001-09-18 Marc Autret <autret_m@epita.fr>
1011 * tests/regression.at: New test (comment in %union).
1013 2001-09-18 Marc Autret <autret_m@epita.fr>
1015 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1017 Reported by Keith Browne.
1019 2001-09-18 Marc Autret <autret_m@epita.fr>
1021 * tests/output.at: Add tests for --defines and --graph.
1023 2001-09-18 Marc Autret <autret_m@epita.fr>
1025 * tests/output.at: Removes tests of %{header,src}_extension features.
1027 2001-09-18 Akim Demaille <akim@epita.fr>
1029 * tests/Makefile.am (package.m4): New.
1030 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1031 (_AT_CHECK_CALC_ERROR): Likewise.
1032 Factor the `, ' part of verbose error messages.
1034 2001-09-18 Marc Autret <autret_m@epita.fr>
1036 * src/getargs.c (longopts): Declare --defines and --graph as options
1037 with optional arguments.
1038 * src/files.h: Add extern declarations.
1039 * src/files.c (spec_graph_file, spec_defines_file): New.
1040 (output_files): Update.
1041 Remove CPP-outed code.
1043 2001-09-18 Marc Autret <autret_m@epita.fr>
1045 Turn off %{source,header}_extension feature.
1047 * src/files.c (compute_exts_from_gf): Update.
1048 (compute_exts_from_src): Update.
1049 (output_files): CPP-out useless code.
1050 * src/files.h: Remove {header,source}_extension extern declarations.
1051 * src/reader.c (parse_dquoted_param): CPP-out.
1052 (parse_header_extension_decl): Remove.
1053 (parse_source_extension_decl): Remove.
1054 (read_declarations): Remove cases tok_{hdrext,srcext}.
1055 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1056 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1058 2001-09-10 Akim Demaille <akim@epita.fr>
1060 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1061 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1062 (AT_CHECK_OUTPUT): this.
1063 Merely check ls' exit status, its output is useless.
1065 2001-09-10 Akim Demaille <akim@epita.fr>
1067 * tests/calc.at: Use m4_match.
1068 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1070 2001-09-10 Marc Autret <autret_m@epita.fr>,
1071 Akim Demaille <akim@epita.fr>
1073 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1075 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1077 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1078 * src/lex.h: Adjust prototype.
1079 (token_t): Add `tok_undef'.
1080 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1081 (parse_percent_token): Now returns token_t.
1082 Add default statement in switch.
1083 (lex): Separate `c' as an input variable, from the token_t result
1085 (unlexed): Is a token_t.
1087 2001-09-10 Akim Demaille <akim@epita.fr>
1089 * configure.in: Bump to 1.29a.
1091 2001-09-07 Akim Demaille <akim@epita.fr>
1095 2001-08-30 Akim Demaille <akim@epita.fr>
1097 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1098 * m4/atconfig.m4: Remove.
1099 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1101 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1102 m4_if, m4_patsubst, and m4_regexp.
1103 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1104 `input' file instead of echo.
1106 2001-08-29 Akim Demaille <akim@epita.fr>
1110 2001-08-29 Akim Demaille <akim@epita.fr>
1114 2001-08-29 Paul Eggert <eggert@twinsun.com>
1116 * src/bison.simple (yyparse): Don't take the address of an
1117 item before the start of an array, as that doesn't conform to
1120 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1122 * doc/bison.texinfo (Location Tracking Calc): New node.
1124 2001-08-29 Paul Eggert <eggert@twinsun.com>
1126 * src/output.c (output): Do not define const, as this now
1127 causes more problems than it cures.
1129 2001-08-29 Akim Demaille <akim@epita.fr>
1131 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1133 Be sure to tag the `detailmenu'.
1135 2001-08-29 Akim Demaille <akim@epita.fr>
1137 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1138 download in a tmp dir.
1140 2001-08-28 Marc Autret <autret_m@epita.fr>
1142 * config/depcomp: New file.
1144 2001-08-28 Marc Autret <autret_m@epita.fr>
1146 * doc/bison.1 (mandoc): Adjust.
1147 From Juan Manuel Guerrero.
1149 2001-08-28 Marc Autret <autret_m@epita.fr>
1151 * src/print_graph.c (print_state): Fix.
1153 2001-08-27 Marc Autret <autret_m@epita.fr>
1155 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1157 Echo modifications to the functions prototypes.
1158 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1160 2001-08-27 Marc Autret <autret_m@epita.fr>
1162 * src/vcg.c: Include `xalloc.h'.
1163 (add_colorentry): New.
1164 (add_classname): New.
1165 (add_infoname): New.
1166 * src/vcg.h: Add new prototypes.
1168 2001-08-27 Akim Demaille <akim@epita.fr>
1170 * Makefile.maint: Sync. again with CVS Autoconf.
1172 2001-08-27 Akim Demaille <akim@epita.fr>
1174 * Makefile.maint: Formatting changes.
1175 (po-update, cvs-update, update): New targets.
1178 2001-08-27 Akim Demaille <akim@epita.fr>
1180 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1181 * Makefile.maint: Sync. with CVS Autoconf.
1183 2001-08-27 Marc Autret <autret_m@epita.fr>
1185 * src/vcg.h (struct infoname_s): New.
1186 (struct colorentry_s): New.
1187 (graph_s): New fields {vertical,horizontal}_order in structure.
1188 Add `infoname' field.
1189 Add `colorentry' field;
1190 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1191 (G_HORIZONTAL_ORDER): New.
1193 (G_COLORENTRY): New.
1194 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1195 Add output of `infoname'.
1196 Add output of `colorentry'.
1198 2001-08-27 Marc Autret <autret_m@epita.fr>
1200 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1201 This one shadowed a global parameter.
1203 2001-08-24 Marc Autret <autret_m@epita.fr>
1205 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1206 instead of `unsigned'.
1207 (print_state): Do not call obstack_object_size () in obstack_grow ()
1208 to avoid macro variables shadowing.
1210 2001-08-23 Marc Autret <autret_m@epita.fr>
1212 * src/lex.c (percent_table): Typo: s/naem/name/.
1214 Normalize new options declarations.
1216 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1218 * tests/suite.at: Exercise %header_extension and %source_extension.
1220 2001-08-16 Marc Autret <autret_m@epita.fr>
1222 * src/reader.c (parse_dquoted_param): New.
1223 (parse_header_extension_decl): Use it.
1224 (parse_source_extension_decl): Likewise.
1226 2001-08-16 Marc Autret <autret_m@epita.fr>
1228 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1229 (get_xxxx_str): Use assert () instead of complain ().
1230 Remove return invokations in default cases.
1231 (get_decision_str): Modify default behaviour. Remove second argument.
1232 Echo modifications on calls.
1233 (output_graph): Fix.
1235 2001-08-16 Marc Autret <autret_m@epita.fr>
1237 * src/getargs.c (usage): Update with ``-g, --graph''.
1239 2001-08-16 Marc Autret <autret_m@epita.fr>
1241 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1242 (Option Cross Key): Likewise.
1243 * doc/bison.1: Update.
1245 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1247 * src/output.c (output_master_parser): Don't finish action_obstack.
1248 (output_parser): Don't care about the muscle action, here.
1249 (prepare): Copy the action_obstack in the action muscle.
1250 (output): Free action_obstack.
1252 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1254 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1255 will contain `%union' declaration.
1256 (parse_union_decl): Delete #line directive output.
1257 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1258 informations about %union.
1259 (parse_union_decl): Copy the union_obstack in the muscle stype.
1260 * src/bison.simple: Add new #line directive.
1261 Add typdef %%stype YYSTYPE.
1263 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1265 * src/bison.simple: Add new `#line' directive.
1267 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1269 * src/bison.simple: New `#line' directive.
1270 * src/output.c (output_parser): Support new dynamic muscle input_line.
1272 2001-09-22 Marc Autret <autret_m@epita.fr>
1274 * src/output.c (output_master_parser): New.
1275 (output_parser): Be more re-entrant.
1277 2001-09-21 Marc Autret <autret_m@epita.fr>
1279 * src/reader.c (copy_definition, parse_union_decl): Update and use
1281 (copy_action): Likewise.
1282 Use obstack_1grow ().
1283 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1285 2001-09-21 Marc Autret <autret_m@epita.fr>
1287 * src/options.c (option_table): Adjust.
1288 * src/lex.c (parse_percent_token): Fix.
1290 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1292 * src/options.c (symtab.h): Include it, need by lex.h.
1294 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1296 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1297 is now an option_table_struct*.
1298 (option_strcmp): New function option_strcmp.
1299 (parse_percent_token): Call option_strcmp.
1300 * src/getargs.c (xalloc.h, options.h): Include it.
1301 (getargs): Call create_long_option_table.
1302 (getargs): Free longopts at the end of the function.
1303 (shortopts): Move in options.c.
1304 * src/options.c (create_long_option_table): New function. Convert
1305 information from option_table to option structure.
1306 * src/reader.c (options.h): Include it.
1308 * src/Makefile.am: Adjust.
1309 * src/options.c (option_table): Create from longopts and percent_table.
1310 * src/getargs.c (longopts): Delete.
1311 * src/lex.c (struct percent_table_struct): Delete.
1312 (percent_table): Delete.
1313 (options.h): Include it.
1314 * src/options.c: Create.
1315 * src/options.h: Create.
1316 Declare enum opt_access_e.
1317 Define struct option_table_struct.
1319 2001-09-20 Marc Autret <autret_m@epita.fr>
1321 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1324 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1326 * src/bison.simple: s/%%filename/%%skeleton.
1327 * src/muscle_tab.c (getargs.h): Include it.
1328 (muscle_init): Insert new muscle skeleton.
1330 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1332 * src/output.c (output_parser): Delete unused variable actions_dumped.
1334 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1336 * src/output.c (output): Delete call to reader_output_yylsp.
1337 * src/reader.c (reader): Likewise.
1338 * src/reader.h: Delete declaration of reader_output_yylsp.
1340 2001-09-02 Marc Autret <autret_m@epita.fr>
1342 * src/reader.c: Include muscle_tab.h.
1343 (parse_union_decl): Update.
1344 (parse_macro_decl): Rename parse_muscle_decl.
1345 Update to use renamed functions and variable.
1346 (read_declarations, copy_action, read_additionnal_code, : Updated
1347 with correct variables and functions names.
1348 (packsymbols, reader): Likewise.
1350 * src/reader.h (muscle_obstack): Extern declaration update.
1352 * src/output.c: Include muscle_tab.h
1353 In all functions using macro_insert, change by using muscle_insert ().
1354 (macro_obstack): Rename muscle_obstack.
1355 Echo modifications in the whole file.
1356 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1357 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1358 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1360 * src/muscle_tab.h: Update double inclusion macros.
1361 (macro_entry_s): Rename muscle_entry_s.
1364 * src/muscle_tab.c: Include muscle_tab.h.
1365 Rename macro_tabble to muscle_table.
1366 (mhash1, mhash2, mcmp): Use muscle_entry.
1367 (macro_init): Rename muscle_init. Update.
1368 (macro_insert): Rename muscle_insert. Update.
1369 (macro_find): Rename muscle_find. Update.
1371 * src/main.c: Include muscle_tab.h.
1372 (main): Call muscle_init ().
1373 * src/Makefile.am (bison_SOURCES): Echo modifications.
1375 2001-09-02 Marc Autret <autret_m@epita.fr>
1377 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1379 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1381 2001-09-02 Marc Autret <autret_m@epita.fr>
1383 * src/macrotab.c, src/macrotab.h: Remove.
1385 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1387 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1390 2001-09-01 Marc Autret <autret_m@epita.fr>
1392 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1393 to an explicit value to activate the feature. We do it here.
1395 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1397 * src/output.c (prepare): Delete the `filename' muscule insertion.
1398 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1399 (parse_union_decl): Likewise.
1400 * src/macrotab.c (macro_init): Initialize filename by infile.
1402 2001-08-31 Marc Autret <autret_m@epita.fr>
1404 * src/bison.simple (YYLSP_NEEDED): New definition.
1405 * src/output.c (prepare): Add macro insertion of `locations_flag'
1407 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1409 * src/output.c (prepare): Delete insertion of previous muscles,
1410 and insert the `prefix' muscles.
1411 * src/macrotab.c (macro_init): Likewise.
1412 (macro_init): Initialization prefix directive by `yy'.
1413 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1414 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1415 yylval, yydebug, yyerror, yynerrs and yyparse.
1416 New directive `#define' to substitute yydebug, ... with option
1419 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1421 * src/main.c (main): Standardize.
1422 * src/output.c (output_table_data, output_parser): Likewise.
1423 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1425 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1427 * src/reader.c (read_additionnal_code): Rename %%user_code to
1429 * src/output.c (output): Rename %%declarations to %%prologue.
1430 * src/bison.simple: Echo modifications.
1432 2001-08-31 Marc Autret <autret_m@epita.fr>
1434 * src/reader.c (readgram): CleanUp.
1435 (output_token_defines): Likewise.
1436 (packsymbols): Likewise.
1438 * src/output.c (output): CPP-out useless code.
1440 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1442 * src/reader.c (reader): Delete obsolete call to function
1443 output_trailers and output_headers.
1444 * src/output.h: Remove obsolete functions prototypes of output_headers
1445 and output_trailers.
1447 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1449 * src/main.c: Include macrotab.h.
1450 * src/macrotab.h (macro_entry_s): Constify fields.
1451 Adjust functions prototypes.
1452 * src/macrotab.c (macro_insert): Constify key and value.
1453 (macro_find): Constify key.
1454 (macro_insert): Include 'xalloc.h'
1455 (macro_insert): Use XMALLOC.
1456 (macro_find): Constify return value.
1457 * src/output.c (output_table_data): Rename table to table_data.
1458 (output_parser): Constify macro_key, macro_value.
1460 2001-08-30 Marc Autret <autret_m@epita.fr>
1462 * src/reader.c (parse_skel_decl): New.
1463 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1464 * src/lex.h (token_t): New token `tok_skel'.
1465 * src/lex.c (percent_table): Add skeleton option entry.
1468 2001-08-29 Marc Autret <autret_m@epita.fr>
1470 * src/bison.simple: Add %%user_code directive at the end.
1471 * src/reader.c (read_additionnal_code): New.
1473 * src/output.c (output_program): Remove.
1476 2001-08-28 Marc Autret <autret_m@epita.fr>
1478 * src/output.c (output_actions): Clean up.
1479 (output_gram): CPP-out useless code.
1480 * src/reader.c (reader): Clean up, CPP-out useless code.
1482 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1484 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1486 * src/bison.simple: Add `%%definitions'.
1488 2001-08-28 Marc Autret <autret_m@epita.fr>
1490 * config/depcomp: New file.
1492 2001-08-27 Paul Eggert <eggert@twinsun.com>
1494 * src/bison.simple (yyparse): Don't take the address of an
1495 item before the start of an array, as that doesn't conform to
1498 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1500 * src/output.c (output): Remove the initialization of the macro
1501 obstack. It was done too late here.
1503 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1505 (reader): Initialize the macro obstack here, since we need it to grow
1506 '%define' directives.
1508 * src/reader.h: Declare the macro obstack as extern.
1510 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1512 * src/output.c (output_parser): Fix. Store single '%' characters in
1513 the output obstack instead of throwing them away.
1515 2001-08-27 Akim Demaille <akim@epita.fr>
1517 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1519 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1521 * lib/Makefile.am: Adjust.
1523 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1525 * src/bison.simple: Update and add '%%' directives.
1527 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1529 * src/reader.c (reader): Remove calls to 'output_headers' and
1530 'output_trailers'. Remove some C output.
1531 (readgram): Disable a piece of code that was writing a default
1532 definition for 'YYSTYPE'.
1533 (reader_output_yylsp): Remove.
1534 (packsymbols): Output token defintions to a macro.
1535 (copy_definition): Disable C output.
1537 * src/reader.c (parse_macro_decl): New function used to parse macro
1539 (copy_string2): Put the body of copy_string into this new function.
1540 Add a parameter to let the caller choose whether he wants to copy the
1541 string delimiters or not.
1542 (copy_string): Be a simple call to copy_string2 with the last argument
1544 (read_declarations): Add case for macro definition.
1545 (copy_identifier): New.
1546 (parse_macro_decl): Read macro identifiers using copy_identifier
1549 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1551 * src/output.c (prepare): Add prefixed names.
1552 (output_parser): Output semantic actions.
1553 (output_parser): Fix bug on '%%line' directives.
1555 * src/output.c (output_headers): Remove. The C code printed by this
1556 function should now be in the skeletons.
1557 (output_trailers): Remove.
1558 (output): Disable call to 'reader_output_yylsp'.
1559 (output_rule_data): Do not output tables to the table obstack.
1561 * src/output.c: Remove some C dedicated output.
1562 Improve the use of macro and output obstacks.
1563 (output_defines): Remove.
1565 * src/output.c (output_token_translations): Associate 'translate'
1566 table with a macro. No output to the table obstack.
1567 (output_gram): Same for 'rhs' and 'prhs'.
1568 (output_stos): Same for 'stos'.
1569 (output_rule_data): Same for 'r1' and 'r2'.
1570 (token_actions): Same for 'defact'.
1571 (goto_actions): Same for 'defgoto'.
1572 (output_base): Same for 'pact' and 'pgoto'.
1573 (output_table): Same for 'table'.
1574 (output_check): Same for 'check'.
1576 * src/output.c (output_table_data): New function.
1577 (output_short_table): Remove.
1578 (output_short_or_char_table): Remove.
1580 * src/output.c (output_parser): Replace most of the skeleton copy code
1581 with something new. Skeletons are now processed character by character
1582 rather than line by line, and Bison looks for '%%' macros. This is the
1583 first step in making Bison's output process (a lot) more flexible.
1584 (output_parser): Use the macro table.
1586 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1588 * src/main.c (main): Initialize the macro table.
1590 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1592 * src/lex.c (percent_table): Add tok_define.
1593 * src/lex.h: Add tok_define.
1595 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1597 * src/macrotab.c: New file.
1598 * src/macrotab.h: New file.
1599 * src/Makefile.am: Update.
1601 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1603 * lib/hash.c: New file.
1604 * lib/hash.h: New file.
1605 * lib/Makefile.am: Update.
1607 2001-08-15 Akim Demaille <akim@epita.fr>
1611 2001-08-15 Marc Autret <autret_m@epita.fr>
1613 * src/reader.c (readgram): Indent output macro YYSTYPE.
1614 (packsymbols): Likewise.
1615 (output_token_defines): Likewise.
1616 * src/files.c: Standardize.
1617 (compute_header_macro): New.
1618 (defines_obstack_save): New. Use compute_header_macro.
1619 (output_files): Update. Use defines_obstack_save.
1621 2001-08-15 Akim Demaille <akim@epita.fr>
1623 * doc/bison.texinfo (Table of Symbols): Document
1626 2001-08-15 Akim Demaille <akim@epita.fr>
1628 * missing: Update from CVS Automake.
1629 * config/config.guess, config/config.sub, config/texinfo.tex:
1630 Update from gnu.org.
1632 2001-08-15 Akim Demaille <akim@epita.fr>
1634 * Makefile.maint: Sync with CVS Autoconf.
1636 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1638 * doc/bison.texinfo: Include GNU Free Documentation License from
1640 * doc/fdl.texi: Add to package.
1642 2001-08-14 Marc Autret <autret_m@epita.fr>
1644 Turn on %{source,header}_extension features.
1646 * src/lex.c (percent_table): Un-CPP out header_extension and
1648 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1649 (compute_exts_from_src): Remove conditions. It restores priorities
1652 2001-08-14 Marc Autret <autret_m@epita.fr>
1654 * src/files.c (compute_base_names): Add extensions computing when
1655 `--file-prefix' used.
1656 Standardize function calls.
1658 2001-08-13 Marc Autret <autret_m@epita.fr>
1660 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1661 defining it (defined but null disables alloca).
1663 2001-08-13 Marc Autret <autret_m@epita.fr>
1665 * src/bison.simple (_yy_memcpy): CPP reformat.
1667 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1669 * tests/atconfig.in (CPPFLAGS): Fix.
1671 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1673 * doc/bison.texinfo: Include GNU General Public License from
1675 * doc/gpl.texi: Add to package.
1677 2001-08-10 Marc Autret <autret_m@epita.fr>
1679 * src/print_graph.h: Fix.
1680 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1682 2001-08-10 Akim Demaille <akim@epita.fr>
1684 * src/system.h: Provide default declarations for stpcpy, strndup,
1687 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1689 * doc/bison.texinfo (Locations): Update @$ stuff.
1691 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1693 * src/bison.simple (YYLLOC_DEFAULT): Update.
1696 2001-08-08 Marc Autret <autret_m@epita.fr>
1698 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1699 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1700 Reported by Fabrice Bauzac.
1702 2001-08-08 Marc Autret <autret_m@epita.fr>
1704 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1705 * src/vcg.c (output_node): Fix.
1706 * src/vcg.h: Cleanup.
1707 * src/print_graph.c: Add comments.
1708 (node_output_size): New global variable. Simplify the formatting of
1709 the VCG graph output.
1710 (print_actions): Unused code is now used. It notifies the final state
1711 and no action states in the VCG graph. It also give the reduce actions.
1712 The `shift and goto' edges are red and the `go to state' edges are
1714 Get the current node name and node_obstack by argument.
1715 (node_obstack): New variable.
1716 (print_state): Manage node_obstack.
1717 (print_core): Use node_obstack given by argument.
1718 A node is not only computed here but in print_actions also.
1719 (print_graph): CPP out useless code instead of commenting it.
1721 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1723 * tests/atconfig.in (CPPFLAGS): Fix.
1725 2001-08-07 Akim Demaille <akim@epita.fr>
1727 * src/print_graph.c (quote): New.
1728 (print_core): Use it.
1730 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1732 * src/vcg.c (complain.h): Include it.
1733 Unepitaize `return' invocations.
1734 [NDEBUG] (main): Remove.
1735 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1736 * src/files.c (open_files): Initialize graph_obstack.
1737 * src/print_graph.c (print_actions): CPP out useless code.
1738 (print_core): Don't output the last `\n' in labels.
1740 * src/files.c (output_files): Output the VCG file.
1741 * src/main.c (main): Invoke print_graph ();
1743 2001-08-06 Marc Autret <autret_m@epita.fr>
1745 Automaton VCG graph output.
1746 Using option ``-g'' or long option ``--graph'', you can generate
1747 a gram_filename.vcg file containing a VCG description of the LALR (1)
1748 automaton of your grammar.
1750 * src/main.c: Call to print_graph() function.
1751 * src/getargs.h: Update.
1752 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1753 (graph_flag): New flag.
1755 (getargs): Add case `g'.
1756 * src/files.c (graph_obstack): New obstack struct.
1757 (open_files): Initialize new obstack.
1758 (output_files): Saves graph_obstack if required.
1759 * src/files.h (graph_obstack): New extern declaration.
1760 * src/Makefile.am: Add new source files.
1762 2001-08-06 Marc Autret <autret_m@epita.fr>
1764 * src/print_graph.c, src/print_graph.h (graph): New.
1765 * src/vcg.h: New file.
1766 * src/vcg.c: New file, VCG graph handling.
1768 2001-08-06 Marc Autret <autret_m@epita.fr>
1770 Add of %source_extension and %header_extension which specify
1771 the source or/and the header output file extension.
1773 * src/files.c (compute_base_names): Remove initialisation of
1774 src_extension and header_extension.
1775 (compute_exts_from_gf): Update.
1776 (compute_exts_from_src): Update.
1777 (output_files): Update.
1778 * src/reader.c (parse_header_extension_decl): New.
1779 (parse_source_extension_decl): New.
1780 (read_declarations): New case statements for the new tokens.
1781 * src/lex.c (percent_table): Add entries for %source_extension
1782 and %header_extension.
1783 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1785 2001-08-06 Marc Autret <autret_m@epita.fr>
1787 * configure.in: Bump to 1.28c.
1788 * doc/bison.texinfo: Texinfo thingies.
1790 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1792 * tests/atconfig.in (CPPFLAGS): Add.
1793 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1795 2001-08-03 Akim Demaille <akim@epita.fr>
1799 2001-08-03 Akim Demaille <akim@epita.fr>
1801 * tests/Makefile.am (check-local): Ship testsuite.
1802 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1805 2001-08-03 Akim Demaille <akim@epita.fr>
1807 * configure.in: Try using -Wformat when compiling.
1809 2001-08-03 Akim Demaille <akim@epita.fr>
1811 * configure.in: Bump to 1.28b.
1813 2001-08-03 Akim Demaille <akim@epita.fr>
1815 * src/complain.c: Adjust strerror_r portability issues.
1817 2001-08-03 Akim Demaille <akim@epita.fr>
1821 2001-08-03 Akim Demaille <akim@epita.fr>
1823 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1824 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1825 * src/getargs.c: Include complain.h.
1826 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1827 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1829 2001-08-03 Akim Demaille <akim@epita.fr>
1831 * src/reader.c (readgram): Display hidden chars in error messages.
1833 2001-08-03 Akim Demaille <akim@epita.fr>
1835 Update to gettext 0.10.39.
1837 2001-08-03 Akim Demaille <akim@epita.fr>
1839 * lib/strspn.c: New.
1841 2001-08-01 Marc Autret <autret_m@epita.fr>
1843 * doc/bison.texinfo: Update.
1844 * doc/bison.1 (mandoc): Update.
1845 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1846 * src/files.c: Support output files extensions computing.
1847 (src_extension): New static variable.
1848 (header_extension): New static variable.
1850 (get_extension_index): New function, gets the index of an extension
1851 filename in a string.
1852 (compute_exts_from_gf): New function, computes extensions from the
1853 grammar file extension.
1854 (compute_exts_from_src): New functions, computes extensions from the
1855 C source file extension, file given by ``-o'' option.
1856 (compute_base_names): Update.
1857 (output_files): Update.
1859 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1861 * doc/bison.texi: Document @$.
1862 (Locations): New section.
1864 2001-07-18 Akim Demaille <akim@epita.fr>
1866 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1867 * config/prev-version.txt, config/move-if-change: New.
1868 * Makefile.am: Adjust.
1870 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1872 * src/bison.simple (yyparse): Suppress warning `comparaison
1873 between signed and unsigned'.
1875 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1877 * src/getargs.h (raw_flag): Remove.
1878 * src/getargs.c: Die on `-r'/`--raw'.
1879 * src/lex.c (parse_percent_token): Die on `%raw'.
1880 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1881 * tests/calc.at: Suppress test with option `--raw'.
1883 2001-07-14 Akim Demaille <akim@epita.fr>
1886 * configure.in: Require Autoconf 2.50.
1887 Update to gettext 0.10.38.
1889 2001-03-16 Akim Demaille <akim@epita.fr>
1891 * doc/bison.texinfo: ANSIfy the examples.
1893 2001-03-16 Akim Demaille <akim@epita.fr>
1895 * getargs.c (skeleton): New variable.
1896 (longopts): --skeleton is a new option.
1897 (shortopts, getargs): -S is a new option.
1898 * getargs.h: Declare skeleton.
1899 * output.c (output_parser): Use it.
1901 2001-03-16 Akim Demaille <akim@epita.fr>
1903 * m4/strerror_r.m4: New.
1904 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1905 * lib/error.h, lib/error.c: Update.
1907 2001-03-16 Akim Demaille <akim@epita.fr>
1909 * src/getargs.c (longopts): Clean up.
1911 2001-02-21 Akim Demaille <akim@epita.fr>
1913 * src/reader.c (gensym): `gensym_count' is your own.
1914 Use a static buf to create the symbol name, as token_buffer is no
1917 2001-02-08 Akim Demaille <akim@epita.fr>
1919 * src/conflicts.c (conflict_report): Be sure not to append to res
1920 between two calls, which could happen if both first sprintf were
1921 skipped, but not the first cp += strlen.
1923 2001-02-08 Akim Demaille <akim@epita.fr>
1925 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1926 New, from fileutils 4.0.37.
1927 * configure.in: Require Autoconf 2.49c. I took some time before
1928 making this decision. This is the only way out for portability
1929 issues in Bison, it would mean way too much duplicate effort to
1930 import in Bison features implemented in 2.49c since 2.13.
1931 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1933 2001-02-02 Akim Demaille <akim@epita.fr>
1935 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1936 * lib/xalloc.h, lib/xmalloc.c: Update.
1938 2001-01-19 Akim Demaille <akim@epita.fr>
1940 Get rid of the ad hoc handling of token_buffer in the scanner: use
1943 * src/lex.c (token_obstack): New.
1944 (init_lex): Initialize it. No longer call...
1945 (grow_token_buffer): this. Remove it.
1946 Adjust all the places which used it to use the obstack.
1948 2001-01-19 Akim Demaille <akim@epita.fr>
1950 * src/lex.h: Rename all the tokens:
1951 s/\bENDFILE\b/tok_eof/g;
1952 s/\bIDENTIFIER\b/tok_identifier/g;
1954 Let them be enums, not #define, to ease debugging.
1955 Adjust all the code.
1957 2001-01-18 Akim Demaille <akim@epita.fr>
1959 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1960 * src/lex.c (maxtoken, grow_token_buffer): Static.
1962 2001-01-18 Akim Demaille <akim@epita.fr>
1964 Since we now use obstacks, more % directives can be enabled.
1966 * src/lex.c (percent_table): Also accept `%yacc',
1967 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1969 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1970 instead of returning a token.
1971 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1972 * src/reader.c (read_declarations): Adjust.
1973 * src/files.c (open_files): Don't call `compute_base_names', don't
1974 compute `attrsfile' since they depend upon data which might be
1975 *in* the input file now.
1976 (output_files): Do it here.
1977 * src/output.c (output_headers): Document the fact that this patch
1978 introduces a guaranteed SEGV for semantic parsers.
1979 * doc/bison.texinfo: Document them.
1980 * tests/suite.at: Exercise these %options.
1982 2000-12-20 Akim Demaille <akim@epita.fr>
1984 Also handle the output file (--verbose) with obstacks.
1986 * files.c (foutput): Remove.
1987 (output_obstack): New.
1988 Adjust all dependencies.
1989 * src/conflicts.c: Return a string.
1990 * src/system.h (obstack_grow_string): Rename as...
1991 (obstack_sgrow): this. Be ready to work with non literals.
1992 (obstack_fgrow4): New.
1994 2000-12-20 Akim Demaille <akim@epita.fr>
1996 * src/files.c (open_files): Fix the computation of short_base_name
1997 in the case of `-o foo.tab.c'.
1999 2000-12-20 Akim Demaille <akim@epita.fr>
2001 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2002 (copy_dollar): Now that everything uses obstacks, get rid of the
2005 2000-12-20 Akim Demaille <akim@epita.fr>
2007 * src/files.c (open_files): Actually the `.output' file is based
2008 on the short_base_name, not base_name.
2009 * tests/suite.at (Checking output file names): Adjust.
2011 2000-12-20 Akim Demaille <akim@epita.fr>
2013 * src/bison.s1: Remove, we now use directly...
2014 * src/bison.simple: this.
2015 * src/Makefile.am: Use pkgdata instead of data.
2017 2000-12-20 Akim Demaille <akim@epita.fr>
2019 * src/files.c (guard_obstack): New.
2020 (open_files): Initialize it.
2021 (output_files): Dump it...
2022 * src/files.h: Export it.
2023 * src/reader.c (copy_guard): Use it.
2025 2000-12-19 Akim Demaille <akim@epita.fr>
2027 * src/files.c (outfile, defsfile, actfile): Removed as global
2029 (open_files): Don't compute them.
2030 (output_files): Adjust.
2031 (base_name, short_base_name): Be global.
2032 Adjust dependencies.
2034 2000-12-19 Akim Demaille <akim@epita.fr>
2036 * src/files.c (strsuffix): New.
2037 (stringappend): Be just like strcat but allocate.
2038 (base_names): Eve out from open_files.
2039 Try to simplify the rather hairy computation of base_name and
2041 (open_files): Use it.
2042 * tests/suite.at (Checking output file names): New test.
2044 2000-12-19 Akim Demaille <akim@epita.fr>
2046 * src/system.h (obstack_grow_literal_string): Rename as...
2047 (obstack_grow_string): this.
2048 * src/output.c (output_parser): Recognize `%% actions' instead of
2050 * src/bison.s1: s/$/%% actions/.
2051 * src/bison.hairy: Likewise.
2053 2000-12-19 Akim Demaille <akim@epita.fr>
2055 * src/output.c (output_parser): Compute the `#line' lines when
2057 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2058 Suggested by Hans Aberg.
2060 2000-12-19 Akim Demaille <akim@epita.fr>
2062 Let the handling of the skeleton files be local to the procedures
2065 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2067 (fparser, open_extra_files): Remove.
2068 (open_files, output_files): Don't take care of fparser.
2069 * src/files.h: Adjust.
2070 * src/output.c (output_parser): Open and close the file to the
2072 * src/reader.c (read_declarations): When %semantic_parser, open
2075 2000-12-19 Akim Demaille <akim@epita.fr>
2077 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2078 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2080 2000-12-19 Akim Demaille <akim@epita.fr>
2082 * src/files.c (open_files): Yipee! We no longer need all the code
2083 looking for `/tmp' since we have no tmp file.
2085 2000-12-19 Akim Demaille <akim@epita.fr>
2087 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2089 * src/files.c (open_files): Less dependency on MSDOS etc.
2091 2000-12-14 Akim Demaille <akim@epita.fr>
2093 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2094 Provide a default definition.
2095 Use it when executing the default @ action.
2096 * src/reader.c (reader_output_yylsp): No longer include
2097 `timestamp' and `text' in the default YYLTYPE.
2099 2000-12-12 Akim Demaille <akim@epita.fr>
2101 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2102 (copy_guard): Quote the file names.
2103 Reported by Laurent Mascherpa.
2105 2000-12-12 Akim Demaille <akim@epita.fr>
2107 * src/output.c (output_headers, output_program, output): Be sure
2108 to escape special characters when outputting filenames.
2109 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2110 (output_headers): Don't depend on them, Use ACTSTR.
2112 2000-11-17 Akim Demaille <akim@epita.fr>
2114 * lib/obstack.h: Formatting changes.
2115 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2116 prevents type checking.
2117 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2118 cast the value to (void *): assigning a `foo *' to a `void *'
2120 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2121 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2124 2000-11-17 Akim Demaille <akim@epita.fr>
2126 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2128 (suite.m4, regression.m4, calc.m4): these.
2129 * tests/atgeneral.m4: Update from CVS Autoconf.
2131 2000-11-17 Akim Demaille <akim@epita.fr>
2133 * tests/regression.m4 (%union and --defines): New test,
2134 demonstrating a current bug in the obstack implementation.
2136 2000-11-17 Akim Demaille <akim@epita.fr>
2138 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2140 Use them to declare the variables which are global or local to
2143 2000-11-17 Akim Demaille <akim@epita.fr>
2145 * acconfig.h: Remove, no longer used.
2147 2000-11-07 Akim Demaille <akim@epita.fr>
2149 * src: s/Copyright (C)/Copyright/g.
2151 2000-11-07 Akim Demaille <akim@epita.fr>
2153 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2155 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2157 2000-11-07 Akim Demaille <akim@epita.fr>
2159 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2160 Merge in a single CPP if/else.
2162 2000-11-07 Akim Demaille <akim@epita.fr>
2164 * src/output.c (output): Remove useless variables.
2165 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2166 argument `data' for consistency with the prototypes.
2168 (obstack_copy, obstack_copy0): Rename the second argument as
2169 `address' for consistency. Qualify it `const'.
2170 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2171 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2172 `const' their input argument (`data' or `address').
2173 Adjust the corresponding macros to include `const' in casts.
2175 2000-11-03 Akim Demaille <akim@epita.fr>
2177 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2178 s/PFILE1/BISON_HAIRY/.
2179 Adjust dependencies.
2181 2000-11-03 Akim Demaille <akim@epita.fr>
2183 For some reason, this was not applied.
2185 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2186 `unlink': it's no longer used.
2188 2000-11-03 Akim Demaille <akim@epita.fr>
2190 * src/files.c (skeleton_find): New function, eved out of...
2191 (open_files, open_extra_files): here.
2193 2000-11-03 Akim Demaille <akim@epita.fr>
2197 * src/files.c (obstack_save): New function.
2198 (done): Rename as...
2199 (output_files): this.
2201 * src/main.c (main): Don't use `atexit' to register `done', since
2202 it no longer has to remove tmp files, just call `output_files'
2203 when there are no errors.
2205 2000-11-02 Akim Demaille <akim@epita.fr>
2207 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2208 `unlink': it's no longer used.
2209 * src/files.h: Formatting changes.
2211 2000-11-02 Akim Demaille <akim@epita.fr>
2213 Remove the last uses of mktemp and unlink/delete.
2215 * src/files.c (fdefines, ftable): Removed.
2216 (defines_ostack, table_obstack): New.
2217 Adjust dependencies of the former into uses of the latter.
2218 * src/output.c (output_short_or_char_table, output_short_table):
2219 Convert to using obstacks.
2220 * src/reader.c (copy_comment2): Accept one FILE * and two
2222 (output_token_defines, reader_output_yylsp): Use obstacks.
2223 * src/system.h (obstack_fgrow3): New.
2225 2000-11-01 Akim Demaille <akim@epita.fr>
2227 Change each use of `fattrs' into a use of `attrs_obstack'.
2229 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2230 * src/files.c (fattrs): Remove.
2231 (attrs_obstack): New.
2232 Adjust all dependencies.
2233 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2235 2000-11-01 Akim Demaille <akim@epita.fr>
2238 Change each use of `faction' into a use of `action_obstack'.
2240 * lib/obstack.h, lib/obstack.c: New files.
2241 * src/files.c (faction): Remove.
2242 (action_obstack): New.
2243 Adjust all dependencies.
2245 2000-10-20 Akim Demaille <akim@epita.fr>
2247 * lib/quote.h (PARAMS): New macro. Use it.
2249 2000-10-16 Akim Demaille <akim@epita.fr>
2251 * src/output.c (output_short_or_char_table): New function.
2252 (output_short_table, output_token_translations): Use it.
2253 (goto_actions): Use output_short_table.
2255 2000-10-16 Akim Demaille <akim@epita.fr>
2257 * src/symtab.c (bucket_new): New function.
2260 * src/output.c (output_short_table): New argument to display the
2261 comment associated with the table.
2262 Adjust dependencies.
2263 (output_gram): Use it.
2264 (output_rule_data): Nicer output layout for YYTNAME.
2266 2000-10-16 Akim Demaille <akim@epita.fr>
2268 * src/lex.c (read_typename): New function.
2270 * src/reader.c (copy_dollar): Likewise.
2272 2000-10-16 Akim Demaille <akim@epita.fr>
2274 * src/reader.c (copy_comment2): Expect the input stream to be on
2275 the `/' which is suspected to open a comment, instead of being
2276 called after `//' or `/*' was read.
2277 (copy_comment, copy_definition, parse_union_decl, copy_action)
2278 (copy_guard): Adjust.
2280 2000-10-16 Akim Demaille <akim@epita.fr>
2282 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2283 `read_signed_integer'.
2285 2000-10-16 Akim Demaille <akim@epita.fr>
2287 * src/reader.c (copy_dollar): New function.
2288 (copy_guard, copy_action): Use it.
2290 2000-10-16 Akim Demaille <akim@epita.fr>
2292 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2293 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2294 New files, from Fileutils 4.0.27.
2295 * src/main.c (printable_version): Remove.
2296 * src/lex.c, src/reader.c: Use `quote'.
2298 2000-10-04 Akim Demaille <akim@epita.fr>
2300 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2302 2000-10-04 Akim Demaille <akim@epita.fr>
2304 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2306 2000-10-04 Akim Demaille <akim@epita.fr>
2308 When a literal string is used to define two different tokens,
2309 `bison -v' segfaults.
2310 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2312 * tests/regression.m4: New file.
2313 Include the core of the sample provided by Piotr Gackiewicz.
2314 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2317 2000-10-04 Akim Demaille <akim@epita.fr>
2319 * src/reader.c (parse_expect_decl): Keep `count' within the size
2323 2000-10-02 Paul Eggert <eggert@twinsun.com>
2325 * bison.s1 (yyparse): Assign the default value
2326 unconditionally, to avoid a GCC warning and make the parser a
2329 2000-10-02 Akim Demaille <akim@epita.fr>
2331 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2334 2000-10-02 Akim Demaille <akim@epita.fr>
2336 * src/derives.c, src/print.c, src/reduce.c: To ease the
2337 translation, move some `\n' out of the translated strings.
2339 2000-10-02 Akim Demaille <akim@epita.fr>
2341 The location tracking mechanism is precious for parse error
2342 messages. Nevertheless, it is enabled only when `@n' is used in
2343 the grammar, which is a different issue (you can use it in error
2344 message, but not in the grammar per se). Therefore, there should
2345 be another means to enable it.
2347 * src/getargs.c (getargs): Support `--locations'.
2349 * src/getargs.h (locationsflag): Export it.
2350 * src/lex.c (percent_table): Support `%locations'.
2351 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2352 with `locationsflag'.
2353 * doc/bison.texinfo: Document `--locations' and `%locations'.
2355 * tests/calc.m4: Test it.
2357 For regularity of the names, replace each
2358 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2359 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2360 In addition replace each `flag' with `_flag'.
2362 2000-10-02 Akim Demaille <akim@epita.fr>
2364 Also test parse error messages, including with YYERROR_VERBOSE.
2366 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2368 Use it to check the computations.
2369 Use it to check `nonassoc' is honored.
2370 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2371 `--yyerror-verbose'.
2372 (_AT_CHECK_CALC): Adjust to this option.
2373 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2375 2000-10-02 Akim Demaille <akim@epita.fr>
2377 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2378 the latter demonstrates a flaw in the handling of non debugging
2379 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2380 was used in order to simplify:
2396 unfortunately this leads to a CPP conflict when
2397 `--name-prefix=foo' is used since it produces `#define yydebug
2400 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2401 (YYDPRINTF): New macro.
2403 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2405 Also test `--verbose', `--defines' and `--name-prefix'.
2407 2000-10-02 Akim Demaille <akim@epita.fr>
2409 Improve the readability of the produced parsers.
2411 * src/bison.s1: Formatting changes.
2412 Improve the comment related to the `$' mark.
2413 (yydefault): Don't fall through to `yyresume': `goto' there.
2414 * src/output.c (output_parser): When the `$' is met, skip the end
2416 New variable, `number_of_dollar_signs', to check there's exactly
2417 one `$' in the parser skeleton.
2419 2000-10-02 Akim Demaille <akim@epita.fr>
2421 * lib/xstrdup.c: New file, from the fileutils.
2422 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2423 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2424 instead of strlen + xmalloc + strcpy.
2425 * src/symtab.c (copys): Remove, use xstrdup instead.
2427 2000-10-02 Akim Demaille <akim@epita.fr>
2429 * src/gram.h (associativity): New enum type which replaces the
2430 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2431 `right_assoc', `left_assoc' and `non_assoc'.
2432 Adjust all dependencies.
2433 * src/reader.c: Formatting changes.
2434 (LTYPESTR): Don't define it, use it as a literal in
2435 `reader_output_yylsp'.
2436 * src/symtab.h (symbol_class): New enum type which replaces the
2437 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2438 `sunknown', `stoken and `snterm'.
2440 2000-10-02 Akim Demaille <akim@epita.fr>
2442 * src/getargs.c (fixed_outfiles): Rename as...
2443 (yaccflag): for consistency and accuracy.
2444 Adjust dependencies.
2446 2000-10-02 Akim Demaille <akim@epita.fr>
2448 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2449 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2450 difficult and introduced a lot of core dump. It turns out that
2451 Bison used an implementation of `xmalloc' based on `calloc', and
2452 at various places it does depend upon the initialization to 0. I
2453 have not tried to isolate the pertinent places, and all the former
2454 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2455 someone should address this issue.
2457 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2458 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2460 Adjust dependencies.
2461 * src/warshall.h: New file.
2464 2000-10-02 Akim Demaille <akim@epita.fr>
2466 Various anti-`extern in *.c' changes.
2468 * src/system.h: Include `assert.h'.
2470 2000-10-02 Akim Demaille <akim@epita.fr>
2472 * src/state.h (nstates, final_state, first_state, first_shift)
2473 (first_reduction): Move their exportation from here...
2474 * src/LR0.h: to here.
2475 Adjust dependencies.
2476 * src/getargs.c (statisticsflag): New variable.
2477 Add support for `--statistics'.
2478 Adjust dependencies.
2480 Remove a lot of now useless `extern' statements in most files.
2482 2000-10-02 Akim Demaille <akim@epita.fr>
2484 * src/LR0.h: New file.
2487 2000-10-02 Akim Demaille <akim@epita.fr>
2489 * src/print.h: New file.
2491 * src/print.c: Formatting and ordering changes.
2492 (verbose, terse): Replace with...
2493 (print_results): this new function.
2494 Adjust dependencies.
2496 2000-10-02 Akim Demaille <akim@epita.fr>
2498 * src/conflicts.c (conflict_report): New function.
2499 (conflict_log, verbose_conflict_log): Replace with...
2500 (print_conflicts): this function.
2501 Adjust dependencies.
2502 * src/conflicts.h: New file.
2503 Propagate its inclusion.
2505 2000-10-02 Akim Demaille <akim@epita.fr>
2507 * src/nullable.h: New file.
2508 Propagate its inclusion.
2509 * src/nullable.c: Formatting changes.
2511 2000-10-02 Akim Demaille <akim@epita.fr>
2513 * src/reduce.h: New file.
2514 Propagate its inclusion.
2515 * src/reduce.c: Topological sort and other formatting changes.
2516 (bool, TRUE, FALSE): Move their definition to...
2517 * src/system.h: here.
2519 2000-10-02 Akim Demaille <akim@epita.fr>
2521 * src/files.c: Formatting changes.
2522 (tryopen, tryclose, openfiles): Rename as...
2523 (xfopen, xfclose, open_files): this.
2524 (stringappend): static.
2525 * src/files.h: Complete the list of exported symbols.
2528 2000-10-02 Akim Demaille <akim@epita.fr>
2530 * src/reader.h: New file.
2531 Propagate its use instead of tedious list of `extern' and
2533 * src/reader.c: Formatting changes, topological sort,
2536 2000-10-02 Akim Demaille <akim@epita.fr>
2538 * src/lex.h: Prototype `lex.c' exported functions.
2539 * src/reader.c: Adjust.
2540 * src/lex.c: Formatting changes.
2541 (safegetc): Rename as...
2544 2000-10-02 Akim Demaille <akim@epita.fr>
2546 * src/lalr.h: New file.
2547 Propagate its inclusion instead of prototypes and `extern'.
2548 * src/lalr.c: Formatting changes, topological sorting etc.
2550 2000-10-02 Akim Demaille <akim@epita.fr>
2552 * src/output.c (token_actions): Introduce a temporary array,
2553 YYDEFACT, that makes it possible for this function to use
2556 2000-10-02 Akim Demaille <akim@epita.fr>
2558 `user_toknums' is output as a `short[]' in `output.c', while it is
2559 defined as a `int[]' in `reader.c'. For consistency with the
2560 other output tables, `user_toknums' is now defined as a table of
2563 * src/reader.c (user_toknums): Be a short table instead of an int
2565 Adjust dependencies.
2567 Factor the short table outputs.
2569 * src/output.c (output_short_table): New function.
2570 * src/output.c (output_gram, output_stos, output_rule_data)
2571 (output_base, output_table, output_check): Use it.
2573 2000-10-02 Akim Demaille <akim@epita.fr>
2575 * src/output.c (output): Topological sort of the functions, in
2576 order to get rid of the `static' prototypes.
2577 No longer use `register'.
2578 * src/output.h: New file.
2579 Propagate its inclusion in files explicitly prototyping functions
2582 2000-09-21 Akim Demaille <akim@epita.fr>
2584 * src/atgeneral.m4: Update from Autoconf.
2586 2000-09-21 Akim Demaille <akim@epita.fr>
2588 * src/closure.h: New file.
2589 * src/closure.c: Formatting changes, topological sort over the
2590 functions, use of closure.h.
2591 (initialize_closure, finalize_closure): Rename as...
2592 (new_closure, free_closure): these. Adjust dependencies.
2593 * src/LR0.c: Formatting changes, topological sort, use of
2595 (initialize_states): Rename as...
2597 * src/Makefile.am (noinst_HEADERS): Adjust.
2599 2000-09-20 Akim Demaille <akim@epita.fr>
2601 * src/acconfig.h: Don't protect config.h against multiple
2603 Don't define PARAMS.
2604 * src/system.h: Define PARAMS.
2605 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2606 purpose of config.h. system.h must not try to fix wrong
2607 definitions in config.h.
2609 2000-09-20 Akim Demaille <akim@epita.fr>
2611 * src/derives.h: New file.
2612 * src/main.c, src/derives.h: Use it.
2614 * src/Makefile.am (noinst_HEADERS): Adjust.
2616 2000-09-20 Akim Demaille <akim@epita.fr>
2618 * tests/atgeneral.m4: Update from Autoconf.
2619 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2620 (AT_CHECK_CALC): New macros.
2621 Use these macros to test bison with options `', `--raw',
2622 `--debug', `--yacc', `--yacc --debug'.
2624 2000-09-19 Akim Demaille <akim@epita.fr>
2626 * src/output.c: Formatting changes.
2627 * src/machine.h: Remove, leaving its contents in...
2628 * src/system.h: here.
2630 Adjust all dependencies on stdio.h and machine.h.
2631 * src/getargs.h: New file.
2632 Let all `extern' declarations about getargs.c be replaced with
2633 inclusion of `getargs.h'.
2634 * src/Makefile.am (noinst_HEADERS): Adjust.
2636 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2638 (yyerror): Returns void, not int.
2639 * doc/bison.texinfo: Formatting changes.
2641 2000-09-19 Akim Demaille <akim@epita.fr>
2643 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2646 2000-09-18 Akim Demaille <akim@epita.fr>
2648 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2649 * src/Makefile.am (INCLUDES): Don't.
2650 Be ready to fetch headers in lib/.
2652 2000-09-18 Akim Demaille <akim@epita.fr>
2654 * doc/bison.texinfo: Update the copyright.
2655 ANSIfy and GNUify the examples.
2656 Remove the old menu.
2658 2000-09-18 Akim Demaille <akim@epita.fr>
2660 First set of tests: use the `calc' example from the documentation.
2662 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2663 is defined only when YYDEBUG is.
2664 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2665 * src/files.c (tryopen, tryclose): Formatting changes.
2666 Move to the top and be static.
2667 * src/reader.c (read_signed_integer): Likewise.
2668 * tests/calc.m4: New file.
2669 * Makefile.am, suite.m4: Adjust.
2670 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2672 2000-09-18 Akim Demaille <akim@epita.fr>
2674 Add support for an Autotest test suite for Bison.
2676 * m4/m4.m4, m4/atconfig.m4: New files.
2677 * m4/Makefile.am (EXTRA_DIST): Adjust.
2678 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2680 * src/getargs.c: Display a more standard --version message.
2681 * src/reader.c (reader): Formatting changes.
2682 No longer depend upon VERSION_STRING.
2683 * configure.in: No longer use `dnl'.
2684 Set up the test suite and the new directory `tests/.
2685 (VERSION_STRING): Remove.
2687 2000-04-14 Akim Demaille <akim@epita.fr>
2689 * src/reader.c (copy_comment2): New function, same as former
2690 `copy_comment', but outputs into two FILE *.
2691 (copy_comment): Use it.
2692 (parse_union_decl): Use it.
2693 (get_type, parse_start_decl): Use the same `invalid' message.
2694 (parse_start_decl, parse_union_decl): Use the same `multiple'
2696 (parse_union_decl, copy_guard, copy_action): Use the same
2697 `unmatched' message.
2698 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2700 2000-03-31 Akim Demaille <akim@epita.fr>
2702 * src/files.c (tryopen, tryclose): Move to the top.
2705 2000-03-31 Akim Demaille <akim@epita.fr>
2707 * src/main.c (main): Don't call `done', exit does it.
2709 2000-03-31 Akim Demaille <akim@epita.fr>
2711 * allocate.c: s/return (foo)/return foo/.
2714 * output.c: Likewise.
2715 * reader.c: Likewise.
2716 * symtab.c: Likewise.
2717 * vmsgetargs.c: Likewise.
2719 2000-03-31 Akim Demaille <akim@epita.fr>
2721 Clean up the error reporting functions.
2723 * src/report.c: New file.
2724 * src/report.h: Likewise.
2725 * src/Makefile.am: Adjust.
2726 * m4/error.m4: New file.
2727 * m4/Makefile.am: Adjust.
2728 * configure.in (jm_PREREQ_ERROR): Call it.
2729 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2731 (fatal, fatals): Remove. All callers use complain.c::fatal.
2732 (warn, warni, warns, warnss, warnss): Remove. All callers use
2733 complain.c::complain.
2734 (toomany): Remove, use fatal instead.
2735 * src/files.c (done): No argument, use complain_message_count.
2736 * src/main.c (main): Register `done' to `atexit'.
2738 * src/getargs.c (usage): More `fputs', less `fprintf'.
2740 2000-03-28 Akim Demaille <akim@epita.fr>
2742 * lib/: New directory.
2743 * Makefile.am (SUBDIRS): Adjust.
2744 * configure.in: Adjust.
2745 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2747 * src/alloca.c: Moved to lib/.
2748 * src/getopt.c: Likewise.
2749 * src/getopt1.c: Likewise.
2750 * src/getopt.h: Likewise.
2751 * src/ansi2knr.c: Likewise.
2752 * src/ansi2knr.1: Likewise.
2753 * src/Makefile.am: Adjust.
2754 * lib/Makefile.am: New file.
2756 2000-03-28 Akim Demaille <akim@epita.fr>
2758 * src/getargs.c (usage): Refresh the help message.
2760 2000-03-17 Akim Demaille <akim@epita.fr>
2762 * src/getopt1.c: Updated from textutils 2.0e
2763 * src/getopt.c: Likewise.
2764 * src/getopt.h: Likewise.
2766 2000-03-17 Akim Demaille <akim@epita.fr>
2768 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2769 the file name, not the whole `#line LINE FILE'.
2771 2000-03-17 Akim Demaille <akim@epita.fr>
2773 On syntax errors, report the token on which we choked.
2775 * src/bison.s1 (yyparse): In the label yyerrlab, when
2776 YYERROR_VERBOSE, add yychar in msg.
2778 2000-03-17 Akim Demaille <akim@epita.fr>
2780 * src/reader.c (copy_at): New function.
2781 (copy_guard): Use it.
2782 (copy_action): Use it.
2784 2000-03-17 Akim Demaille <akim@epita.fr>
2786 Be kind to translators, save some useless translations.
2788 * src/main.c (banner): New function.
2789 (fatal_banner): Use it.
2790 (warn_banner): Use it.
2792 2000-03-17 Akim Demaille <akim@epita.fr>
2794 * src/reader.c (copy_definition): Use copy_string and
2795 copy_comment. Removed now unused `match', `ended',
2797 (copy_comment, copy_string): Moved, to be visible from
2800 2000-03-17 Akim Demaille <akim@epita.fr>
2802 * src/reader.c (copy_string): Declare `static inline'. No
2803 problems with inline, since it is checked by configure.
2804 (copy_comment): Likewise.
2806 2000-03-17 Akim Demaille <akim@epita.fr>
2808 * src/reader.c (packsymbols): Formatting changes.
2810 2000-03-17 Akim Demaille <akim@epita.fr>
2812 * src/reader.c (copy_comment): New function, factored out from:
2813 (copy_action): Use it. Removed now unused `match', `ended',
2815 (copy_guard): Likewise.
2817 2000-03-17 Akim Demaille <akim@epita.fr>
2819 * src/reader.c (copy_string): New function, factored out from:
2820 (copy_action): Use it.
2821 (copy_guard): Likewise.
2823 2000-03-17 Akim Demaille <akim@epita.fr>
2825 Change the handling of @s so that they behave exactly like $s.
2826 There is now a pseudo variable @$ (readble and writable), location
2827 of the lhs of the rule (by default ranging from the location of
2828 the first symbol of the rhs, to the location of the last symbol,
2829 or, if the rhs is empty, YYLLOC).
2831 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2833 (yyparse): When providing a default semantic action, provide a
2834 default location action.
2835 (after the $): No longer change `*YYLSP', just stack YYLOC the
2836 same way you stack YYVAL.
2837 * src/reader.c (read_declarations): Use warns.
2838 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2839 (copy_action, case '@'): Likewise.
2840 Use a standard error message, to save useless work from
2843 2000-03-17 Akim Demaille <akim@epita.fr>
2845 * src/bison.s1: Formatting and cosmetics changes.
2846 * src/reader.c: Likewise.
2847 Update the Copyright notice.
2849 2000-03-17 Akim Demaille <akim@epita.fr>
2851 * src/bison.s1 (#line): All set to `#line' only, since the
2852 Makefile now handles them.
2854 2000-03-16 Akim Demaille <akim@epita.fr>
2856 * src/output.c (output_rule_data): Output the documentation of
2858 (Copyright notice): Update.
2861 2000-03-16 Akim Demaille <akim@epita.fr>
2863 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2864 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2865 One `#if YYDEBUG' remains, since it uses variables which are
2866 defined only if `YYDEBUG != 0'.
2868 2000-03-16 Akim Demaille <akim@epita.fr>
2870 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2871 and related variables so that the similarities are highlighted.
2873 2000-03-16 Akim Demaille <akim@epita.fr>
2875 * src/bison.s1: Properly indent CPP directives.
2877 2000-03-16 Akim Demaille <akim@epita.fr>
2879 * src/bison.s1: Properly indent the `alloca' CPP section.
2881 2000-03-16 Akim Demaille <akim@epita.fr>
2883 Do not hard code values of directories in `configure.in'.
2884 Update the `configure' tool chain.
2886 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2888 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2889 (AC_OUTPUT): Add m4/Makefile.
2890 Bump to bison 1.28a, 1.29 has never been released.
2891 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2892 handled via src/Makefile.am.
2893 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2894 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2896 * Makefile.am (SUBDIRS): Add m4.
2897 (ACLOCAL_AM_FLAGS): New variable.
2898 (AUTOMAKE_OPTIONS): Add check-news.
2899 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2900 the proper line number and file name.
2901 (DEFS): Propagate the location of bison library files and of the
2903 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2905 * acinclude.m4: Remove, replaced by the directory m4.
2906 * m4/Makefile.am (EXTRA_DIST): New variable.
2907 * m4/gettext.m4: New file, from the fileutils.
2908 * m4/lcmessage.m4: Likewise
2909 * m4/progtest.m4: Likewise.
2910 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2912 2000-03-10 Akim Demaille <akim@epita.fr>
2915 Formatting changes of various comments.
2916 Respect the GNU coding standards at various places.
2917 Don't use `_()' when no translation is needed.
2919 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2922 OS/2 honors TMPDIR environment variable.
2924 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2926 * doc/bison.texinfo: Tweaked spelling and grammar.
2928 Removed reference to price of printed copy.
2929 Mention BISON_SIMPLE and BISON_HAIRY.
2931 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2933 * configure.in, NEWS:
2934 Bison 1.29 released.
2936 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2938 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2939 Added reference card.
2941 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2943 * po/ru.po: Added Russian translation.
2945 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2947 * configure.in: Added Russian translation.
2949 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2951 * configure.in, NEWS, README:
2952 Released version 1.28.
2954 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2957 Squashed redefinition warning on some systems.
2959 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2960 Have configure build version string instead of relying on ANSI string
2963 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2965 * po/POTFILES.in: Got rid of version.c.
2967 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2969 * acconfig.h, configure.in:
2970 Have configure build version string instead of relying on ANSI string
2973 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2976 Dropped mention of `+' for long-named options.
2978 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2980 * src/files.c: Added <unistd.h> for unlink().
2982 * src/Makefile.am, src/system.h:
2985 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2987 * README: Added a FAQ list.
2989 * configure.in, acconfig.h:
2992 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2994 * doc/FAQ, doc/Makefile.am:
2997 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2999 * src/alloc.h, src/symtab.h, src/version.c:
3000 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3002 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3004 * src/.cvsignore, src/Makefile.am:
3005 Reorganized: sources in `src', documentation in `doc'.
3007 * src/lex.c (literalchar):
3008 fixed the code for escaping double quotes (thanks
3011 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3013 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3014 Adjusted paths to reflect directory reorganization.
3016 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3018 * doc/.cvsignore, doc/Makefile.am:
3019 Reorganized: sources in `src', documentation in `doc'.
3021 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3024 Updated AC_INIT file to reflect directory reorganization.
3026 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3027 Reorganized: sources in `src', documentation in `doc'.
3029 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3032 Don't declare calloc() and realloc() if not necessary.
3034 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3036 * configure.in, acconfig.h, acinclude.m4:
3037 Don't declare calloc() and realloc() if not necessary.
3039 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3041 * po/.cvsignore: Added i18n support.
3043 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3045 * acconfig.h, configure.in, Makefile.am:
3048 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3050 * src/bison.s1: Fixed #line numbers.
3052 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3054 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3055 Added PO files from Translation Project.
3057 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3060 Added support for non-ANSI compilers (ansi2knr).
3062 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3064 * configure.in: Bumped version number to 1.27.
3067 Added `bison.simple' to list of files removed by `make distclean'.
3069 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3071 * src/files.c, src/files.h:
3072 Defined locations of parser files in config.h instead of Makefile.
3074 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3076 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3077 Defined locations of parser files in config.h instead of Makefile.
3079 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3082 Removed inappropriate use of $< macro.
3084 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3086 * po/Makefile.in.in, po/POTFILES.in:
3087 Add `po' directory skeleton.
3089 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3091 * README: Document help-bison list.
3093 * configure.in: Add check for mkstemp().
3095 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3097 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3098 Hush a few compiler warnings.
3101 Add tryclose(), which verifies that fclose was successful.
3102 Hush a couple of compiler warnings.
3104 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3106 * Makefile.am, OChangeLog:
3107 ChangeLog is now automatically generated. Include the old version as
3110 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3112 * 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:
3115 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3117 * doc/bison.texinfo: Fix formatting glitch.
3119 * doc/bison.texinfo: Update FSF address.
3121 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3123 * acconfig.h: Update FSF address.
3125 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3128 Don't define PACKAGE here, since config.h defines it.
3130 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3132 * src/reader.c: Update copyright date.
3135 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3136 favor of output directly to stderr (avoids buffer overruns).
3138 * src/reader.c: Some checks for premature EOF.
3140 * 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:
3141 Use prototypes if the compiler understands them.
3143 * src/files.c: Honor TMPDIR on Unix hosts.
3144 Use prototypes if the compiler understands them.
3147 Fix a couple of buffer overrun bugs.
3148 Use prototypes if the compiler understands them.
3150 * src/system.h: Include unistd.h and ctype.h.
3151 Use #ifdef instead of #if for NLS symbols.
3153 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3155 * doc/bison.texinfo:
3156 Delete comment "consider using @set for edition number, etc..." since
3157 we now are doing so.
3159 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3162 Use prototypes if the compiler understands them.
3164 * NEWS: Document 1.26 highlights.
3166 * Makefile.am: Require Automake 1.3 or later.
3169 Use prototypes if the compiler understands them.
3171 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3174 Use VERSION symbol from automake for version number.
3176 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3178 * acconfig.h, configure.in, version.cin:
3179 Use VERSION symbol from automake for version number.
3181 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3184 Distribute original version of simple parser (bison.s1), not built
3185 version (bison.simple).
3187 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3189 * doc/bison.texinfo: Add info dir entry.
3191 * doc/bison.texinfo:
3192 Let automake put version number into documentation.
3194 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3196 * src/bison.cld, src/build.com, src/vmshlp.mar:
3197 Add non-RCS files from /gd/gnu/bison.
3199 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3202 Document the BISON_HAIRY and BISON_SIMPLE variables.
3204 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3206 * src/version.c: Build version.c automatically.
3209 Fix token numbering (used to start at 258, not 257).
3211 * src/system.h: Include config.h.
3213 * src/getargs.c: Update bug report address.
3215 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3216 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3218 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3221 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3223 * configure.in, version.cin:
3224 Build version.c automatically.
3226 * AUTHORS: Add AUTHORS file.
3228 * README: Update bug report address.
3231 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3233 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3236 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3238 * doc/bison.texinfo: Clean up some formatting.
3240 1998-05-05 Richard Stallman <rms@gnu.org>
3242 * doc/bison.texinfo:
3243 Explain better why to make a pure parser.
3245 1998-01-05 Richard Stallman <rms@gnu.org>
3247 * src/files.c (openfiles):
3248 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3249 find a temporary directory, if possible. Do not unlink files while
3252 1997-08-25 Richard Stallman <rms@gnu.org>
3254 * src/reader.c (stack_offset;):
3255 Change some warni to warns.
3257 * src/lex.c (literalchar): Use warns, not warni.
3259 1997-06-28 Richard Stallman <rms@gnu.org>
3261 * src/bison.s1: Add a Bison version comment.
3263 * src/main.c (fatal, warn, berror):
3266 1997-06-28 Richard Stallman <rms@gnu.org>
3268 * Makefile.in (bison_version): New variable.
3269 (dist): Use that variable.
3270 (bison.s1): Substitute the Bison version into bison.simple.
3272 * bison.simple: Add a Bison version comment.
3274 1997-06-18 Richard Stallman <rms@gnu.org>
3276 * src/main.c (fatal, warn, berror):
3277 Make error messages standard.
3278 (toomany): Improve error message text.
3280 * 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:
3281 new.h renamed to alloc.h.
3283 1997-06-18 Richard Stallman <rms@gnu.org>
3285 * Makefile.in: new.h renamed to alloc.h.
3287 1997-05-24 Richard Stallman <rms@gnu.org>
3289 * src/lex.c (literalchar):
3290 Fix the code for escaping \, " and '.
3292 (lex): Avoid trouble when there are many chars
3293 to discard in a char literal with just several chars in it.
3295 1997-05-17 Richard Stallman <rms@gnu.org>
3298 Use malloc, if using alloca is troublesome.
3299 (YYSTACK_USE_ALLOCA): New flag macro.
3300 Define it for some systems and compilers.
3301 (YYSTACK_ALLOC): New macro.
3302 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3303 If it was malloc'd, free it.
3305 1997-05-17 Richard Stallman <rms@gnu.org>
3308 Use malloc, if using alloca is troublesome.
3309 (YYSTACK_USE_ALLOCA): New flag macro.
3310 Define it for some systems and compilers.
3311 (YYSTACK_ALLOC): New macro.
3312 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3313 If it was malloc'd, free it.
3315 1997-04-23 Richard Stallman <rms@gnu.org>
3318 (alloca) [__hpux]: Always define as __builtin_alloca.
3320 1997-04-23 Richard Stallman <rms@gnu.org>
3323 (alloca) [__hpux]: Always define as __builtin_alloca.
3325 1997-04-22 Richard Stallman <rms@gnu.org>
3328 [__hpux]: Include alloca.h (right for HPUX 10)
3329 instead of declaring alloca (right for HPUX 9).
3331 * src/bison.s1 (__yy_memcpy):
3332 Declare arg `count' as unsigned int.
3333 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3335 1997-04-22 Richard Stallman <rms@gnu.org>
3338 [__hpux]: Include alloca.h (right for HPUX 10)
3339 instead of declaring alloca (right for HPUX 9).
3341 * bison.simple (__yy_memcpy):
3342 Declare arg `count' as unsigned int.
3343 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3345 1997-01-03 Richard Stallman <rms@gnu.org>
3347 * src/allocate.c: [__STDC__ or _MSC_VER]:
3348 Declare calloc and realloc to return void *.
3350 1997-01-02 Richard Stallman <rms@gnu.org>
3353 [_MSC_VER]: Include stdlib.h and process.h.
3354 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3356 * src/main.c (main): Return FAILURE as a value.
3357 (printable_version): Declare arg as int, not char.
3359 1997-01-02 Richard Stallman <rms@gnu.org>
3361 * Makefile.in (dist):
3362 Explicitly check for symlinks, and copy them.
3364 1996-12-19 Richard Stallman <rms@gnu.org>
3367 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3369 1996-12-18 Paul Eggert <eggert@gnu.org>
3371 * src/bison.s1 (yyparse):
3372 If __GNUC__ and YYPARSE_PARAM are both defined,
3373 declare yyparse to have a void * argument.
3375 1996-12-18 Paul Eggert <eggert@gnu.org>
3377 * bison.simple (yyparse):
3378 If __GNUC__ and YYPARSE_PARAM are both defined,
3379 declare yyparse to have a void * argument.
3381 1996-12-17 Richard Stallman <rms@gnu.org>
3383 * src/reduce.c (nbits): Add some casts.
3385 1996-08-12 Richard Stallman <rms@gnu.org>
3387 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3389 1996-08-12 Richard Stallman <rms@gnu.org>
3391 * bison.simple: Test _MSDOS as well as _MSDOS_.
3393 1996-07-31 Richard Stallman <rms@gnu.org>
3396 [__sun && __i386]: Include alloca.h.
3398 1996-07-31 Richard Stallman <rms@gnu.org>
3401 [__sun && __i386]: Include alloca.h.
3403 1996-07-30 Richard Stallman <rms@gnu.org>
3405 * src/bison.s1: Comment change.
3407 * src/bison.s1: Test _MSDOS_, not MSDOS.
3409 1996-07-30 Richard Stallman <rms@gnu.org>
3411 * bison.simple: Comment change.
3413 * bison.simple: Test _MSDOS_, not MSDOS.
3415 1996-06-01 Richard Stallman <rms@gnu.org>
3417 * 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:
3418 Insert `_' macro around many string constants.
3421 Insert `_' macro around many string constants.
3423 (main): Call setlocale, bindtextdomain and textdomain.
3425 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3426 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3427 [ENABLE_NLS]: Include libintl.h.
3428 [ENABLE_NLS] (gettext): Define.
3429 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3430 (N_, PACKAGE, LOCALEDIR): New macros.
3432 1996-06-01 Richard Stallman <rms@gnu.org>
3434 * POTFILES.in: New file.
3436 * Makefile.in (allocate.o):
3437 Define target explicitly.
3439 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3440 (LDFLAGS): Set to @LDFLAGS@.
3441 (configure): Run autoconf only if preceding `cd' succeeds.
3442 (bison.s1): Redirect output to temporary file then move the
3443 temporary to the target, rather than redirecting directly to bison.s1.
3444 (clean): Remove config.status and config.log.
3445 (distclean): Don't remove config.status here.
3447 1996-05-12 Richard Stallman <rms@gnu.org>
3450 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3452 1996-05-12 Richard Stallman <rms@gnu.org>
3455 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3457 1996-05-11 Richard Stallman <rms@gnu.org>
3459 * src/bison.s1 (__yy_memcpy):
3460 Really reorder the args, as was supposedly done on Feb 14 1995.
3461 (yyparse): Calls changed accordingly.
3463 1996-05-11 Richard Stallman <rms@gnu.org>
3465 * Makefile.in (dist): Don't use $(srcdir).
3467 * bison.simple (__yy_memcpy):
3468 Really reorder the args, as was supposedly done on Feb 14 1995.
3469 (yyparse): Calls changed accordingly.
3471 1996-01-27 Richard Stallman <rms@gnu.org>
3473 * src/output.c (output_rule_data):
3474 Test YYERROR_VERBOSE in the conditional
3475 around the definition of ttyname.
3477 1995-12-29 Richard Stallman <rms@gnu.org>
3480 Fix line numbers in #line commands.
3482 1995-12-29 Richard Stallman <rms@gnu.org>
3485 Fix line numbers in #line commands.
3487 1995-12-27 Richard Stallman <rms@gnu.org>
3489 * src/bison.s1 (YYPARSE_PARAM_DECL):
3490 In C++, make it always null.
3491 (YYPARSE_PARAM_ARG): New macro.
3492 (yyparse): Use YYPARSE_PARAM_ARG.
3494 1995-12-27 Richard Stallman <rms@gnu.org>
3496 * bison.simple (YYPARSE_PARAM_DECL):
3497 In C++, make it always null.
3498 (YYPARSE_PARAM_ARG): New macro.
3499 (yyparse): Use YYPARSE_PARAM_ARG.
3501 1995-11-29 Richard Stallman <rms@gnu.org>
3503 * doc/bison.texinfo:
3504 Describe literal string tokens, %raw, %no_lines, %token_table.
3506 1995-11-29 Daniel Hagerty <hag@gnu.org>
3508 * doc/bison.texinfo: Fixed update date
3510 1995-10-16 Richard Stallman <rms@gnu.org>
3512 * src/version.c: Version 1.25.
3514 1995-10-16 Richard Stallman <rms@gnu.org>
3516 * NEWS: *** empty log message ***
3518 1995-10-16 Richard Stallman <rms@gnu.org>
3520 * doc/bison.1, doc/bison.rnh:
3523 1995-10-15 Richard Stallman <rms@gnu.org>
3525 * src/vmsgetargs.c, src/getargs.c:
3526 Added -n, -k, and -raw switches.
3527 (noparserflag, toknumflag, rawtoknumflag): New variables.
3529 * src/symtab.h (SALIAS):
3530 New #define for adding aliases to %token.
3531 (struct bucket): Added `alias' field.
3533 * src/reduce.c (reduce_grammar):
3534 Revise error message.
3535 (print_notices): Remove final `.' from error message.
3537 * src/reader.c (reader_output_yylsp):
3539 (readgram): Use `#if 0' around code that accepted %command
3540 inside grammar rules: The documentation doesn't allow it,
3541 and it will fail since the %command processors scan for the next %.
3542 (parse_token_decl): Extended the %token
3543 declaration to allow a multi-character symbol as an alias.
3544 (parse_thong_decl): New function.
3545 (read_declarations): Added %thong declarations.
3546 (read_declarations): Handle NOOP to deal with allowing
3547 % declarations as another means to specify the flags.
3548 (readgram): Allow %prec prior to semantics embedded in a rule.
3549 (skip_to_char, read_declarations, copy_definition)
3550 (parse_token_decl, parse_start_decl, parse_type_decl)
3551 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3552 (get_type_name, copy_guard, copy_action, readgram)
3553 (get_type, packsymbols): Revised most error messages.
3554 Changed `fatal' to `warnxxx' to avoid aborting for error.
3555 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3556 (read_declarations): Improve the error message for
3557 an invalid character. Do not abort.
3558 (read_declarations, copy_guard, copy_action): Use
3559 printable_version to avoid unprintable characters in printed output.
3560 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3561 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3562 Allow the type of a non-terminal can be given
3563 more than once, as long as all specifications give the same type.
3566 (output_headers, output_trailers, output, output_gram)
3567 (output_rule_data): Implement noparserflag variable.
3568 Implement toknumflag variable.
3569 (output): Call reader_output_yylsp to output LTYPESTR.
3571 * src/main.c (main):
3572 If reader sees an error, don't process the grammar.
3573 (fatals): Updated to not use VARARGS1.
3574 (printable_version, int_to_string, warn, warni, warns, warnss)
3575 (warnsss): New error reporting functions. Avoid abort for error.
3578 Added THONG and NOOP for alias processing.
3579 Added SETOPT for the new code that allows setting options with %flags.
3582 Include getopt.h. Add some extern decls.
3583 (safegetc): New function to deal with EOF gracefully.
3584 (literalchar); new function to deal with reading \ escapes.
3585 (lex): Use literalchar.
3586 (lex): Implemented "..." tokens.
3587 (literalchar, lex, parse_percent_token): Made tokenbuffer
3588 always contain the token. This includes growing the token
3589 buffer while reading an integer.
3590 (parse_percent_token): Replaced if-else statement with percent_table.
3591 (parse_percent_token): Added % declarations as another
3592 way to specify the flags -n, -l, and -r. Also added hooks for
3593 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3594 major changes to files.c.
3595 (lex) Retain in the incoming stream a character following
3597 (skip_white_space, lex): Revised most error messages
3598 and changed fatal to warn to avoid aborting.
3599 (percent_table): Added %thong declarations.
3601 * src/gram.h: Comment changes.
3603 * src/files.c (openfiles, open_extra_files, done):
3605 and actfile file. Handle noparserflag. Both for -n switch.
3607 * src/conflicts.c (resolve_sr_conflict):
3608 Remove use of alloca.
3610 1995-06-01 Jim Meyering <meyering@gnu.org>
3612 * doc/bison.texinfo: *** empty log message ***
3614 1995-05-06 Richard Stallman <rms@gnu.org>
3616 * src/bison.s1: Comment change.
3618 1995-05-06 Richard Stallman <rms@gnu.org>
3620 * bison.simple: Comment change.
3622 1995-05-03 Richard Stallman <rms@gnu.org>
3624 * src/version.c: Version now 1.24.
3626 * src/bison.s1: Change distribution terms.
3628 * src/version.c: Version now 1.23.
3630 1995-05-03 Richard Stallman <rms@gnu.org>
3632 * doc/bison.texinfo:
3633 Rewrite "Conditions for Using Bison".
3634 Update version to 1.24.
3636 1995-05-03 Richard Stallman <rms@gnu.org>
3638 * bison.simple: Change distribution terms.
3640 1995-02-23 Richard Stallman <rms@gnu.org>
3642 * src/files.c: Test __VMS_POSIX as well as VMS.
3644 1995-02-14 Jim Meyering <meyering@gnu.org>
3646 * src/bison.s1 (__yy_memcpy):
3647 Renamed from __yy_bcopy to avoid
3648 confusion. Reverse FROM and TO arguments to be consistent with
3651 1995-02-14 Jim Meyering <meyering@gnu.org>
3653 * bison.simple (__yy_memcpy):
3654 Renamed from __yy_bcopy to avoid
3655 confusion. Reverse FROM and TO arguments to be consistent with
3658 1994-11-10 David J. MacKenzie <djm@gnu.org>
3664 * Makefile.in (DISTFILES): Include NEWS.
3666 * Makefile.in (DISTFILES):
3667 Include install-sh, not install.sh.
3669 * configure.in: Update to Autoconf v2 macro names.
3671 1994-10-05 David J. MacKenzie <djm@gnu.org>
3673 * Makefile.in: fix typo
3675 * Makefile.in (prefix, exec_prefix):
3676 Let configure set them.
3678 1994-09-28 David J. MacKenzie <djm@gnu.org>
3680 * Makefile.in: Set datadir to $(prefix)/share.
3682 1994-09-15 Richard Stallman <rms@gnu.org>
3685 Update copyright notice and GPL version.
3687 1994-09-15 Richard Stallman <rms@gnu.org>
3690 Update copyright notice and GPL version.
3692 1994-07-12 Richard Stallman <rms@gnu.org>
3694 * src/reduce.c, src/reader.c:
3697 1994-05-05 David J. MacKenzie <djm@gnu.org>
3699 * Makefile.in: entered into RCS
3701 1994-03-26 Richard Stallman <rms@gnu.org>
3703 * src/bison.s1: entered into RCS
3705 1994-03-26 Richard Stallman <rms@gnu.org>
3707 * bison.simple: entered into RCS
3709 1994-03-25 Richard Stallman <rms@gnu.org>
3711 * src/main.c: entered into RCS
3713 1994-03-24 Richard Stallman <rms@gnu.org>
3715 * src/conflicts.c: entered into RCS
3717 1994-01-02 Richard Stallman <rms@gnu.org>
3719 * Makefile.in: *** empty log message ***
3721 1993-11-21 Richard Stallman <rms@gnu.org>
3723 * src/bison.s1: *** empty log message ***
3725 1993-11-21 Richard Stallman <rms@gnu.org>
3727 * doc/bison.texinfo: entered into RCS
3729 * doc/bison.texinfo: *** empty log message ***
3731 1993-11-21 Richard Stallman <rms@gnu.org>
3733 * bison.simple: *** empty log message ***
3735 1993-10-25 David J. MacKenzie <djm@gnu.org>
3737 * doc/bison.texinfo: *** empty log message ***
3739 1993-10-19 Richard Stallman <rms@gnu.org>
3741 * src/bison.s1: *** empty log message ***
3743 1993-10-19 Richard Stallman <rms@gnu.org>
3745 * bison.simple: *** empty log message ***
3747 1993-10-14 Richard Stallman <rms@gnu.org>
3749 * src/bison.s1: *** empty log message ***
3751 1993-10-14 Richard Stallman <rms@gnu.org>
3753 * bison.simple: *** empty log message ***
3755 1993-09-14 David J. MacKenzie <djm@gnu.org>
3757 * doc/bison.texinfo: *** empty log message ***
3759 1993-09-13 Noah Friedman <friedman@gnu.org>
3761 * Makefile.in: *** empty log message ***
3763 1993-09-10 Richard Stallman <rms@gnu.org>
3765 * src/conflicts.c: *** empty log message ***
3767 * src/system.h: entered into RCS
3769 1993-09-10 Richard Stallman <rms@gnu.org>
3771 * doc/bison.1: entered into RCS
3773 1993-09-06 Noah Friedman <friedman@gnu.org>
3775 * src/version.c: entered into RCS
3777 1993-09-06 Noah Friedman <friedman@gnu.org>
3779 * Makefile.in: *** empty log message ***
3781 1993-07-30 David J. MacKenzie <djm@gnu.org>
3783 * Makefile.in: *** empty log message ***
3785 1993-07-24 Richard Stallman <rms@gnu.org>
3787 * src/bison.s1: *** empty log message ***
3789 1993-07-24 Richard Stallman <rms@gnu.org>
3791 * bison.simple: *** empty log message ***
3793 1993-07-08 David J. MacKenzie <djm@gnu.org>
3795 * Makefile.in: *** empty log message ***
3797 1993-07-04 Richard Stallman <rms@gnu.org>
3799 * src/bison.s1: *** empty log message ***
3801 1993-07-04 Richard Stallman <rms@gnu.org>
3803 * bison.simple: *** empty log message ***
3805 1993-06-26 David J. MacKenzie <djm@gnu.org>
3807 * src/getargs.c: entered into RCS
3809 1993-06-26 David J. MacKenzie <djm@gnu.org>
3811 * doc/bison.texinfo: *** empty log message ***
3813 * doc/bison.1: New file.
3815 1993-06-25 Richard Stallman <rms@gnu.org>
3817 * src/getargs.c: New file.
3819 1993-06-16 Richard Stallman <rms@gnu.org>
3821 * src/bison.s1: *** empty log message ***
3823 1993-06-16 Richard Stallman <rms@gnu.org>
3825 * bison.simple: *** empty log message ***
3827 1993-06-03 Richard Stallman <rms@gnu.org>
3829 * src/bison.s1: New file.
3831 1993-06-03 Richard Stallman <rms@gnu.org>
3833 * doc/bison.texinfo: *** empty log message ***
3835 1993-06-03 Richard Stallman <rms@gnu.org>
3837 * bison.simple: New file.
3839 1993-05-19 Richard Stallman <rms@gnu.org>
3841 * doc/bison.texinfo: New file.
3843 1993-05-07 Noah Friedman <friedman@gnu.org>
3845 * Makefile.in: *** empty log message ***
3847 1993-04-28 Noah Friedman <friedman@gnu.org>
3849 * src/reader.c: *** empty log message ***
3851 1993-04-23 Noah Friedman <friedman@gnu.org>
3853 * src/alloc.h: entered into RCS
3855 1993-04-20 David J. MacKenzie <djm@gnu.org>
3857 * src/version.c: *** empty log message ***
3859 * src/files.c, src/allocate.c:
3862 * src/reader.c: *** empty log message ***
3864 * src/lex.c: entered into RCS
3866 * src/conflicts.c: New file.
3868 * src/symtab.c: entered into RCS
3870 * src/alloc.h: New file.
3872 * src/LR0.c: entered into RCS
3874 1993-04-18 Noah Friedman <friedman@gnu.org>
3876 * src/reader.c: New file.
3878 * src/version.c: *** empty log message ***
3880 1993-04-18 Noah Friedman <friedman@gnu.org>
3882 * Makefile.in: *** empty log message ***
3884 1993-04-17 Noah Friedman <friedman@gnu.org>
3886 * Makefile.in: *** empty log message ***
3888 1993-04-15 Richard Stallman <rms@gnu.org>
3890 * src/main.c, src/files.c:
3893 1993-04-15 Noah Friedman <friedman@gnu.org>
3895 * configure.in: entered into RCS
3897 * configure.in: *** empty log message ***
3899 * configure.in: New file.
3901 1993-04-14 Richard Stallman <rms@gnu.org>
3903 * Makefile.in: New file.
3905 1993-04-13 Richard Stallman <rms@gnu.org>
3907 * src/version.c: New file.
3909 1993-03-25 Richard Stallman <rms@gnu.org>
3911 * src/output.c: entered into RCS
3913 1992-09-25 Richard Stallman <rms@gnu.org>
3915 * configure.bat: entered into RCS
3917 1992-06-22 Richard Stallman <rms@gnu.org>
3919 * src/vmsgetargs.c: entered into RCS
3921 1992-06-22 Richard Stallman <rms@gnu.org>
3923 * doc/bison.rnh: entered into RCS
3925 1992-04-20 David J. MacKenzie <djm@gnu.org>
3927 * README: entered into RCS
3929 1992-01-22 Richard Stallman <rms@gnu.org>
3931 * src/machine.h: entered into RCS
3933 1991-12-21 Richard Stallman <rms@gnu.org>
3935 * src/lalr.c, src/closure.c:
3938 1991-12-20 Richard Stallman <rms@gnu.org>
3940 * src/state.h: entered into RCS
3942 1991-12-18 Richard Stallman <rms@gnu.org>
3944 * src/print.c, src/nullable.c, src/derives.c:
3947 1991-11-03 David J. MacKenzie <djm@gnu.org>
3949 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3952 1988-09-09 Richard Stallman <rms@gnu.org>
3954 * src/bison.hairy: entered into RCS
3956 1987-12-16 Richard Stallman <rms@gnu.org>
3958 * REFERENCES: entered into RCS