1 2001-12-04 Paul Eggert <eggert@twinsun.com>
3 * src/bison.simple (YYPOINTER): New macro.
4 (YYSTACK_RELOCATE): Use it to avoid a GCC warning.
5 (yystpcpy): Use prototype if __STDC__ is defined, not just
6 if __cplusplus is defined.
8 2001-11-30 Akim Demaille <akim@epita.fr>
10 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
11 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
12 Gettext doesn't compile cleanly, and dies with -Werror.
13 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
14 Include WARNING_CFLAGS here.
15 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
18 2001-11-27 Paul Eggert <eggert@twinsun.com>
20 * lib/quotearg.h (quotearg_n, quotearg_n_style):
21 First arg is int, not unsigned.
22 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
23 (SIZE_MAX, UINT_MAX): New macros.
24 (quotearg_n_options): Abort if N is negative.
25 Avoid overflow check on hosts where size_t is 64 bits and int
26 is 32 bits, as overflow is impossible there.
27 Fix off-by-one typo that caused unnecessary reallocation.
29 2001-11-29 Paul Eggert <eggert@twinsun.com>
31 Name space cleanup in generated parser.
33 * doc/bison.texinfo (Bison Parser): Discuss system headers
34 and their effect on the user name space.
37 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
38 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
39 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
41 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
42 on user names when possible.
44 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
45 Simplify test for whather <alloca.h> exists.
47 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
49 (<stdio.h>): Include if YYDEBUG.
51 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
52 ! defined (yyoverflow) && ! defined (yymemcpy).
54 (yymemcpy, yyparse): Rename local variables as needed so that
55 they all begin with 'yy'.
57 (yystrlen, yystpcpy): New functions.
59 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
62 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
63 instead of relying on string.h functions. Use YYSTACK_ALLOC
64 and YYSTACK_FREE instead of malloc and free.
66 2001-11-30 Akim Demaille <akim@epita.fr>
68 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
69 before their first uses.
70 (YYBISON, YYPURE): Move to the top of the output.
72 2001-11-30 Akim Demaille <akim@epita.fr>
74 * tests/reduce.at (Useless Nonterminals): Fix.
76 2001-11-30 Akim Demaille <akim@epita.fr>
78 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
79 if body instead of `;' to pacify GCC's warnings.
81 2001-11-30 Akim Demaille <akim@epita.fr>
83 Instead of mapping the LHS of unused rules to -1, keep the LHS
84 valid, but flag the rules as invalid.
86 * src/gram.h (rule_t): `useful' is a new member.
87 * src/print.c (print_grammar): Adjust.
88 * src/derives.c (set_derives): Likewise.
89 * src/reader.c (packgram, reduce_output): Likewise.
90 * src/reduce.c (reduce_grammar_tables): Likewise.
91 * tests/reduce.at (Underivable Rules, Useless Rules): New.
93 2001-11-30 Akim Demaille <akim@epita.fr>
95 * src/reduce.c (reduce_output): Formatting changes.
96 * src/print.c (print_results, print_grammar): Likewise.
97 * tests/regression.at (Rule Line Numbers)
98 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
100 2001-11-30 Akim Demaille <akim@epita.fr>
102 * src/reduce.c (nonterminals_reduce): Instead of throwing away
103 useless nonterminals, move them at the end of the symbol arrays.
104 (reduce_output): Adjust.
105 * tests/reduce.at (Useless Nonterminals): Adjust.
107 2001-11-30 Akim Demaille <akim@epita.fr>
109 * src/reduce.c: Various comment/formatting changes.
110 (nonterminals_reduce): New, extracted from...
111 (reduce_grammar_tables): here.
112 (reduce_grammar): Call nonterminals_reduce.
114 2001-11-29 Paul Eggert <eggert@twinsun.com>
116 * src/bison.simple (YYSTACK_REALLOC): Remove.
117 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
118 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
120 (union yyalloc): New type.
121 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
122 an arbitrary restriction on hosts where size_t is wider than int.
124 (yyparse): Don't dump core if alloca or malloc fails; instead, report
125 a parser stack overflow. Allocate just one block of memory for all
126 three stacks, instead of allocating three blocks; this typically is
127 faster and reduces fragmentation.
129 Do not limit the number of items in the stack to a value that fits
130 in 'int', as this is an arbitrary limit on hosts with 64-bit
131 size_t and 32-bit int.
133 2001-11-29 Marc Autret <autret_m@epita.fr>
135 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
136 of defining YYERROR_VERBOSE.
137 [AT_DATA]: $4 is now out of C declarations in the prologue.
139 2001-11-28 Marc Autret <autret_m@epita.fr>
141 * src/reader.c (parse_dquoted_param): New.
142 (parse_skel_decl): Use it.
143 * src/lex.h: Add its prototype.
144 * src/lex.c (literalchar): Become not static.
146 2001-11-28 Marc Autret <autret_m@epita.fr>
148 * src/output.h: And put its extern declaration here.
149 * src/output.c (error_verbose): Define here.
150 (prepare): Echo name modification.
151 * src/getargs.h: Clean its extern declaration.
152 * src/getargs.c (error_verbose_flag): Remove.
153 (getargs): Remove case 'e'.
154 * src/options.c (option_table): 'error-verbose' is now seen as simple
158 * src/reader.c (read_declarations): Remove case tok_include.
159 (parse_include_decl): Remove.
160 * src/lex.h (token_t): Remove tok_include.
161 * src/options.c (option_table): 'include' is now a simple command line
164 2001-11-28 Marc Autret <autret_m@epita.fr>
166 * src/bison.simple: Adjust muscle names.
167 * src/muscle_tab.c (muscle_init): Also rename the muscles.
168 * src/output.c (prepare): s/_/-/ for the muscles names.
169 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
171 2001-11-28 Marc Autret <autret_m@epita.fr>
173 * src/bison.simple: Fix debug.
174 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
176 2001-11-28 Akim Demaille <akim@epita.fr>
178 * src/LR0.c (shifts_new): New.
179 (save_shifts, insert_start_shift, augment_automaton): Use it.
181 2001-11-28 Akim Demaille <akim@epita.fr>
183 * src/closure.c (closure): `b' and `ruleno' denote the same value:
186 2001-11-28 Akim Demaille <akim@epita.fr>
188 * src/closure.c (closure): Instead of looping over word in array
189 then bits in words, loop over bits in array.
191 2001-11-28 Akim Demaille <akim@epita.fr>
193 * src/closure.c (closure): No longer optimize the special case
194 where all the bits of `ruleset[r]' are set to 0, to make the code
197 2001-11-28 Akim Demaille <akim@epita.fr>
199 * src/closure.c (closure): `r' and `c' are new variables, used to
200 de-obfuscate accesses to RULESET and CORE.
202 2001-11-28 Akim Demaille <akim@epita.fr>
204 * src/reduce.c (reduce_print): Use ngettext.
205 (dump_grammar): Improve the trace accuracy.
207 2001-11-28 Akim Demaille <akim@epita.fr>
209 * src/reduce.c (dump_grammar): Don't translate trace messages.
211 2001-11-28 Akim Demaille <akim@epita.fr>
213 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
214 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
215 as all tags are free'ed afterwards.
218 2001-11-27 Paul Eggert <eggert@twinsun.com>
220 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
221 use alloca when we didn't want to, and vice versa.
223 2001-11-27 Marc Autret <autret_m@epita.fr>
225 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
227 * src/output.c (prepare): Remove its update.
229 2001-11-27 Marc Autret <autret_m@epita.fr>
231 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
234 2001-11-27 Marc Autret <autret_m@epita.fr>
236 * src/bison.simple: Remove YYERROR_VERBOSE using.
239 * src/output.c (prepare): Give its final value.
240 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
241 * src/getargs.h: Add its extern declaration.
242 * src/getargs.c (error_verbose_flag): New int.
243 (getargs): Update to catch new case.
244 * src/options.c (option_table): 'error-verbose' is a new option.
247 2001-11-27 Akim Demaille <akim@epita.fr>
249 * src/system.h: Use intl/libgettext.h.
250 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
252 2001-11-27 Akim Demaille <akim@epita.fr>
254 * tests/torture.at (Exploding the Stack Size with Malloc):
255 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
257 2001-11-27 Akim Demaille <akim@epita.fr>
259 * src/files.c: Include error.h.
260 Reported by Hans Aberg.
262 2001-11-26 Marc Autret <autret_m@epita.fr>
264 * src/reader.c (parse_include_decl): New, not yet implemented.
265 (read_declarations): Add case tok_include.
266 * src/getargs.h (include): Add its extern definition.
267 * src/getargs.c (include): New const char *.
268 (getargs): Add case '-I'.
269 * src/options.c (option_table): Add include as command line and
271 * src/lex.h (token_t): Add tok_include.
273 2001-11-26 Akim Demaille <akim@epita.fr>
275 * src/reader.c (readgram): Make sure rules for mid-rule actions
276 have a lineno equal to that of their host rule.
277 Reported by Hans Aberg.
278 * tests/regression.at (Rule Line Numbers): New.
280 2001-11-26 Akim Demaille <akim@epita.fr>
282 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
285 2001-11-26 Akim Demaille <akim@epita.fr>
287 * src/complain.c, src/complain.h (error): Remove, provided by
290 2001-11-26 Akim Demaille <akim@epita.fr>
292 * src/reader.c (read_declarations): Don't abort on tok_illegal,
293 issue an error message.
294 * tests/regression.at (Invalid %directive): New.
295 Reported by Hans Aberg.
297 2001-11-26 Akim Demaille <akim@epita.fr>
299 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
300 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
302 2001-11-26 Akim Demaille <akim@epita.fr>
304 * src/conflicts.c (conflicts_print): Don't complain at all when
305 there are no reduce/reduce conflicts, and as many shift/reduce
306 conflicts as expected.
307 * tests/regression.at (%expect right): Adjust.
309 2001-11-23 Akim Demaille <akim@epita.fr>
311 * lib/alloca.c: Update, from fileutils.
313 2001-11-23 Akim Demaille <akim@epita.fr>
315 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
317 2001-11-23 Akim Demaille <akim@epita.fr>
319 * src/system.h: Include alloca.h.
320 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
322 2001-11-23 Akim Demaille <akim@epita.fr>
324 * src/print_graph.c (print_actions): Remove `rule', unused.
325 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
326 pacify GCC's signed < unsigned warnings.
327 * src/closure.c (itemsetsize): Likewise.
328 * src/reader.c (symbol_list_new): Static.
330 2001-11-23 Akim Demaille <akim@epita.fr>
332 Attaching lineno to buckets is stupid, since only one copy of each
333 symbol is kept, only the line of the first occurrence is kept too.
335 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
336 * src/reader.c (rline_allocated): Remove, unused.
337 (symbol_list): Have a `line' member.
338 (symbol_list_new): New.
340 * src/print.c (print_grammar): Output the rule line numbers.
341 * tests/regression.at (Solved SR Conflicts)
342 (Unresolved SR Conflicts): Adjust.
343 Reported by Hans Aberg.
345 2001-11-22 Marc Autret <autret_m@epita.fr>
347 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
349 2001-11-22 Marc Autret <autret_m@epita.fr>
351 * src/muscle_tab.c (muscle_init): Remove initialization of
353 * src/output.c (output_master_parser): Do it here.
355 2001-11-20 Akim Demaille <akim@epita.fr>
358 * configure.in (ALL_LINGUAS): Adjust.
359 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
360 longer contains strings to translate.
362 2001-11-19 Akim Demaille <akim@epita.fr>
364 * src/conflicts.c (conflicts_print): Add a missing \n.
366 2001-11-19 Akim Demaille <akim@epita.fr>
368 * src/nullable.c (nullable_print): New.
369 (set_nullable): Call it when tracing.
370 Better locality of variables.
372 2001-11-19 Akim Demaille <akim@epita.fr>
374 * src/print.c (print_actions): Better locality of variables.
376 2001-11-19 Akim Demaille <akim@epita.fr>
378 * src/derives.c (print_derives): Fix and enrich.
379 * src/closure.c (print_fderives): Likewise.
381 2001-11-19 Akim Demaille <akim@epita.fr>
383 * src/closure.c (itemsetend): Remove, replaced with...
386 2001-11-19 Akim Demaille <akim@epita.fr>
388 * src/LR0.c (kernel_end): Remove, replaced with...
391 2001-11-19 Akim Demaille <akim@epita.fr>
393 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
396 2001-11-19 Akim Demaille <akim@epita.fr>
398 * src/closure.c (closure): Use arrays instead of pointers to clarify.
400 2001-11-19 Akim Demaille <akim@epita.fr>
402 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
404 * src/LR0.c: Likewise.
405 (allocate_itemsets): Use arrays instead of pointers to clarify.
407 2001-11-19 Akim Demaille <akim@epita.fr>
409 * src/getargs.c (statistics_flag): Replace with...
411 (longopts): Accept --trace instead of --statistics.
412 * src/getargs.h, src/options.c: Adjust.
413 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
414 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
416 2001-11-19 Akim Demaille <akim@epita.fr>
418 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
419 pointers to clarify the code.
420 (save_reductions, save_shifts): Factor common parts of alternatives.
422 2001-11-19 Akim Demaille <akim@epita.fr>
424 * src/LR0.c (new_state, get_state): Complete TRACE code.
425 * src/closure.c: Include `reader.h' to get `tags', needed by the
427 Rename the conditional DEBUG as TRACE.
428 Output consistently TRACEs to stderr, not stdout.
429 * src/derives.c: Likewise.
430 * src/reduce.c: (inaccessable_symbols): Using if is better style
432 Use `#if TRACE' instead of `#if 0' for tracing code.
434 2001-11-19 Akim Demaille <akim@epita.fr>
436 * src/system.h (LIST_FREE, shortcpy): New.
437 * src/LR0.c: Use them.
438 * src/output.c (free_itemsets, free_reductions, free_shifts):
439 Remove, replaced by LIST_FREE.
441 2001-11-19 Akim Demaille <akim@epita.fr>
443 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
444 (REDUCTIONS_ALLOC): New.
445 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
448 2001-11-19 Akim Demaille <akim@epita.fr>
450 * src/LR0.c (new_state): Complete trace code.
451 * src/nullable.c (set_nullable): Don't translate traces.
453 2001-11-19 Akim Demaille <akim@epita.fr>
455 * src/print_graph.c (print_core): Better locality of variables.
456 * src/print.c (print_core): Likewise.
458 2001-11-19 Akim Demaille <akim@epita.fr>
460 * src/vcg.c: You do the output, so you are responsible of the
461 handling of VCG syntax, in particular: use quotearg.
462 * src/print_graph.c: Don't.
463 (print_actions): Don't output the actions as part of the nodes,
464 since that's the job of the edges.
465 (print_state): Don't output by hand: fill the node description,
466 and ask for its output.
468 2001-11-19 Akim Demaille <akim@epita.fr>
470 * src/bison.simple (yyparse): When verbosely reporting an error,
471 no longer put additional quotes around token names.
472 * tests/calc.at: Adjust.
474 2001-11-19 Akim Demaille <akim@epita.fr>
476 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
477 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
478 * src/output.c: Adjust.
480 2001-11-19 Akim Demaille <akim@epita.fr>
482 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
484 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
486 2001-11-19 Akim Demaille <akim@epita.fr>
488 * src/gram.h (rule_t): New.
490 (rrhs, rlhs): Remove, part of state_t.
491 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
492 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
493 * src/reader.c, src/reduce.c: Adjust.
495 2001-11-19 Akim Demaille <akim@epita.fr>
497 * src/reader.c (symbols_output): New, extracted from...
501 2001-11-19 Akim Demaille <akim@epita.fr>
503 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
504 (maxrhs): this new function.
506 2001-11-19 Akim Demaille <akim@epita.fr>
508 * src/lalr.c (F): New macro to access the variable F.
511 2001-11-19 Akim Demaille <akim@epita.fr>
513 * src/lalr.h (LA): New macro to access the variable LA.
514 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
515 * src/lalr.c: Adjust.
517 2001-11-19 Akim Demaille <akim@epita.fr>
519 * src/lalr.c (initialize_LA): Only initialize LA. Let...
520 (set_state_table): handle the `lookaheads' members.
522 2001-11-19 Akim Demaille <akim@epita.fr>
524 * src/lalr.h (lookaheads): Removed array, whose contents is now
526 (state_t): this structure.
527 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
530 2001-11-19 Akim Demaille <akim@epita.fr>
532 * src/lalr.h (consistent): Removed array, whose contents is now
534 (state_t): this structure.
535 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
538 2001-11-19 Akim Demaille <akim@epita.fr>
540 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
541 contents are now members of...
542 (state_t): this structure.
543 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
546 2001-11-19 Akim Demaille <akim@epita.fr>
548 * src/lalr.h (state_t): New.
549 (state_table): Be a state_t * instead of a core **.
550 (accessing_symbol): Remove, part of state_t.
551 * src/lalr.c: Adjust.
552 (set_accessing_symbol): Merge into...
553 (set_state_table): this.
554 * src/print_graph.c, src/conflicts.c: Adjust.
556 2001-11-14 Akim Demaille <akim@epita.fr>
558 * tests/calc.at, tests/output.at, tests/regression.at,
559 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
560 now the tests are run in private dirs, therefore AC_CLEANUP and
561 family can be simplified to 0-ary.
562 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
563 use abs. path to find config.h.
564 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
565 stderr, there can be way too much random noise.
566 Instead pass -Werror to GCC and rely on the exit status.
567 Reported by Wolfram Wagner.
569 2001-11-14 Akim Demaille <akim@epita.fr>
571 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
572 defined only if yyoverflow is defined, to avoid `warning: unused
574 Reported by The Test Suite.
576 2001-11-14 Akim Demaille <akim@epita.fr>
578 * src/print.c: Include reduce.h.
579 Reported by Hans Aberg.
581 2001-11-14 Akim Demaille <akim@epita.fr>
583 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
584 Revert a previous patch: these are really const.
585 * src/conflicts.c (conflict_report): Additional useless pair of
586 braces to pacify GCC's warnings for `if () if () {} else {}'.
587 * src/lex.c (parse_percent_token): Replace equal_offset with
590 Be sure to strdup `arg' when used, since there is no reason for
591 token_buffer not to change.
593 2001-11-14 Akim Demaille <akim@epita.fr>
595 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
597 * src/main.c (main): Use them.
598 Suggested by Hans Aberg.
600 2001-11-12 Akim Demaille <akim@epita.fr>
602 * src/system.h (ngettext): Now that we use ngettext, be sure to
603 provide a default definition when NLS are not used.
605 2001-11-12 Akim Demaille <akim@epita.fr>
607 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
608 Use @kbd to denote user input.
609 (Language and Grammar): ANSIfy the example.
610 Adjust its layout for info/notinfo.
611 (Location Tracking Calc): Output error messages to stderr.
612 Output locations in a more GNUtically correct way.
613 Fix a couple of Englishos.
614 Adjust @group/@end group pairs.
616 2001-11-12 Akim Demaille <akim@epita.fr>
618 %expext was not functioning at all.
620 * src/conflicts.c (expected_conflicts): Set to -1.
621 (conflict_report): Use ngettext.
622 (conflicts_print): Check %expect and make its violation an error.
623 * doc/bison.texinfo (Expect Decl): Adjust.
624 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
625 * tests/regression.at (%expect not enough, %expect right)
626 (%expect too much): New.
628 2001-11-12 Akim Demaille <akim@epita.fr>
630 * tests/regression.at (Conflicts): Rename as...
631 (Unresolved SR Conflicts): this.
632 (Solved SR Conflicts): New.
634 2001-11-12 Akim Demaille <akim@epita.fr>
636 * src/reduce.c (print_results): Rename as...
637 (reduce_output): This.
638 Output to OUT, passed as argument, instead of output_obstack.
639 (dump_grammar): Likewise.
642 (reduce_grammar): No longer call reduce_output, since...
643 * src/print.c (print_results): do it.
644 * src/main.c (main): Call reduce_free;
646 2001-11-12 Akim Demaille <akim@epita.fr>
648 * src/conflicts.c (print_reductions): Accept OUT as argument.
649 Output to it, not to output_obstack.
650 * src/print.c (print_actions): Adjust.
652 2001-11-12 Akim Demaille <akim@epita.fr>
654 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
655 the result instead of using...
656 (src_total, rrc_total, src_count, rrc_count): Remove.
657 (any_conflicts): Remove.
658 (print_conflicts): Split into...
659 (conflicts_print, conflicts_output): New.
660 * src/conflicts.h: Adjust.
661 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
662 * src/print.c (print_grammar): Issue `\n' between two rules.
663 * tests/regression.at (Conflicts): New.
664 Reported by Tom Lane.
666 2001-11-12 Akim Demaille <akim@epita.fr>
668 * tests/regression.at (Invalid input): Remove, duplicate with
669 ``Invalid input: 1''.
671 2001-11-12 Akim Demaille <akim@epita.fr>
673 * tests/torture.at (AT_DATA_STACK_TORTURE)
674 (Exploding the Stack Size with Alloca)
675 (Exploding the Stack Size with Malloc): New.
677 2001-11-12 Akim Demaille <akim@epita.fr>
679 * src/bison.simple (YYSTACK_REALLOC): New.
680 (yyparse) [!yyoverflow]: Use it and free the old stack.
681 Reported by Per Allansson.
683 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
685 * src/bison.simple: Define type yystype instead of YYSTYPE, and
686 define CPP macro, which substitute YYSTYPE by yystype.
687 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
688 with yyltype/YYLTYPE. This allows inclusion of the generated
689 header within the parser if the compiler, such as GGC, accepts
690 multiple equivalent #defines.
693 2001-11-05 Akim Demaille <akim@epita.fr>
695 * src/reader.c (symbols_output): New, extracted from...
699 2001-11-05 Akim Demaille <akim@epita.fr>
701 * src/lex.c (parse_percent_token): s/quotearg/quote/.
703 2001-11-05 Akim Demaille <akim@epita.fr>
705 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
708 2001-11-05 Akim Demaille <akim@epita.fr>
710 * src/options.h (struct option_table_struct): set_flags is void*.
711 * src/options.c (longopts): Support `--output' and `%output'.
713 * src/lex.h (tok_setopt): Remove, replaced with...
714 (tok_intopt, tok_stropt): these new guys.
715 * src/lex.c (getopt.h): Not needed.
716 (token_buffer, unlexed_token_buffer): Not const.
717 (percent_table): Promote `-' over `_' in directive names.
718 Active `%name-prefix', `file-prefix', and `output'.
719 (parse_percent_token): Accept possible arguments to directives.
720 Promote `-' over `_' in directive names.
722 2001-11-04 Akim Demaille <akim@epita.fr>
724 * doc/bison.texinfo (Decl Summary): Split the list into
725 `directives for grammars' and `directives for bison'.
727 Add description of `%name-prefix', `file-prefix', and `output'.
728 Promote `-' over `_' in directive names.
729 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
730 Simplify the description of `--name-prefix'.
731 Promote `-' over `_' in directive names.
732 Promote `--output' over `--output-file'.
733 Fix the description of `--defines'.
734 * tests/output.at: Exercise %file-prefix and %output.
736 2001-11-02 Akim Demaille <akim@epita.fr>
738 * doc/refcard.tex: Update.
740 2001-11-02 Akim Demaille <akim@epita.fr>
742 * src/symtab.h (SUNDEF): New.
743 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
744 stand for `uninitialized', instead of 0.
745 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
746 * src/lex.c (lex): Adjust.
748 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
750 Let yylex return it instead of a plain 0.
751 Reported by Dick Streefland.
753 2001-11-02 Akim Demaille <akim@epita.fr>
755 * tests/regression.at (Mixing %token styles): New test.
757 2001-11-02 Akim Demaille <akim@epita.fr>
759 * src/reader.c (parse_thong_decl): Formatting changes.
760 (token_translations_init): New, extracted from...
764 2001-11-01 Akim Demaille <akim@epita.fr>
766 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
767 Check that `9foo.y' produces correct cpp guards.
768 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
772 2001-11-01 Akim Demaille <akim@epita.fr>
774 * tests/regression.at (Invalid input: 2): New.
775 * src/lex.c (unlexed_token_buffer): New.
776 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
780 2001-11-01 Akim Demaille <akim@epita.fr>
782 * tests/calc.at: Catch up with 1.30.
783 * configure.in: Bump to 1.49a.
784 Adjust to newer Autotest.
786 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
788 * src/conflicts.c: Move global variables rrc_total and src_total ...
789 (print_conflicts): here.
790 * src/output.c (output): Free global variable user_toknums.
791 * src/lex.c (token_obstack): Become static.
793 2001-10-18 Akim Demaille <akim@epita.fr>
795 * tests/atlocal.in (GCC): Add.
796 * tests/calc.at: s/m4_match/m4_bmatch/.
797 s/m4_patsubst/m4_bpatsubst/.
798 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
799 * configure.in: AC_SUBST(GCC).
801 2001-10-14 Marc Autret <autret_m@epita.fr>
803 * src/options.c (create_long_option_table): Fix.
805 2001-10-10 Akim Demaille <akim@epita.fr>
807 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
809 2001-10-04 Akim Demaille <akim@epita.fr>
811 * src/reader.c (parse_union_decl): Push the caracters in
812 union_obstack, not attrs_obstack.
814 2001-10-04 Akim Demaille <akim@epita.fr>
816 Merge in the branch 1.29.
818 * src/reader.c (packsymbols): Use a temporary obstack for
819 `%%tokendef', since output_stack is already used elsewhere.
821 2001-10-02 Akim Demaille <akim@epita.fr>
825 2001-10-02 Akim Demaille <akim@epita.fr>
829 2001-10-02 Akim Demaille <akim@epita.fr>
831 * tests/regression.at (Invalid CPP headers): New.
832 From Alexander Belopolsky.
833 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
835 2001-10-02 Akim Demaille <akim@epita.fr>
837 * tests/regression.at (Invalid input): New.
838 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
841 2001-10-02 Akim Demaille <akim@epita.fr>
843 * tests/calc.at: Now that --debug works, the tests must be adjusted.
845 2001-10-02 Akim Demaille <akim@epita.fr>
847 * src/output.c (output_parser): Assert `skeleton'.
848 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
852 2001-10-01 Marc Autret <autret_m@epita.fr>
854 * src/lex.h: Echo modifications.
855 * src/lex.c (unlex): Parameter is now token_t.
858 2001-10-01 Marc Autret <autret_m@epita.fr>
860 * src/main.c: Include lex.h.
863 2001-09-29 Akim Demaille <akim@epita.fr>
865 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
867 2001-09-28 Akim Demaille <akim@epita.fr>
869 * tests/testsuite.at: Update to newer Autotest.
870 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
872 2001-09-27 Akim Demaille <akim@epita.fr>
874 Position independent wrapper.
876 * tests/bison: Remove.
877 * tests/bison.in: New.
878 * configure.in: Adjust.
880 2001-09-27 Paul Eggert <eggert@twinsun.com>
882 Port quotearg fixes from tar 1.13.24.
884 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
886 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
887 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
889 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
890 * m4/mbrtowc.m4: New file.
891 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
892 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
894 2001-09-27 Akim Demaille <akim@epita.fr>
898 2001-09-27 Akim Demaille <akim@epita.fr>
902 2001-09-25 Akim Demaille <akim@epita.fr>
904 * src/system.h: Include `xalloc.h'.
905 Remove it from the C files.
906 * src/files.c (output_files): Free the obstacks.
907 * src/lex.c (init_lex): Rename as...
910 * src/main.c (main): Use it.
912 2001-09-24 Marc Autret <autret_m@epita.fr>
914 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
915 to output informations in fout (FILE*).
916 (open_graph, close_graph): Likewise.
917 (output_graph, output_edge, output_node): Likewise.
918 * src/vcg.h: Update function prototypes.
919 * src/print_graph.c (print_graph): Open output graph file.
920 (print_actions): Adjust.
921 * src/files.h: Remove extern declaration.
922 * src/files.c: Remove graph_obstack declaration.
923 (open_files): Remove graph_obstack initialization.
924 (output_files): Remove graph_obstack saving.
926 2001-09-24 Marc Autret <autret_m@epita.fr>
928 * src/files.c (compute_output_file_names): Fix.
930 2001-09-24 Marc Autret <autret_m@epita.fr>,
931 Akim Demaille <akim@epita.fr>
933 * src/reader.c (reader): Remove call to free_symtab ().
934 * src/main.c (main): Call it here.
936 * src/conflicts.c (initialize_conflicts): Rename as...
937 (solve_conflicts): this.
938 * src/print.c (print_core, print_actions, print_state)
939 (print_grammar): Dump to a file instead a `output_obstack'.
940 (print_results): Dump `output_obstack', and then proceed with the
942 * src/files.c (compute_output_file_names, close_files): New.
943 (output_files): Adjust.
944 * src/main.c (main): Adjust.
946 2001-09-23 Marc Autret <autret_m@epita.fr>
948 * src/files.c (compute_header_macro): Computes header macro name
949 from spec_defines_file when given.
951 2001-09-23 Marc Autret <autret_m@epita.fr>
953 * src/files.c (output_files): Add default extensions.
955 2001-09-22 Akim Demaille <akim@epita.fr>
957 * src/conflicts.c (finalize_conflicts): Rename as...
958 (free_conflicts): this.
960 2001-09-22 Akim Demaille <akim@epita.fr>
962 * src/gram.c (gram_free): Rename back as...
964 (output_token_translations): Free `token_translations'.
965 * src/symtab.c (free_symtab): Free the tag field.
967 2001-09-22 Akim Demaille <akim@epita.fr>
969 Remove `translations' as it is always set to true.
971 * src/gram.h: Adjust.
972 * src/reader.c (packsymbols, parse_token_decl): Adjust
973 * src/print.c (print_grammar): Adjust.
974 * src/output.c (output_token_translations): Adjust.
975 * src/lex.c (lex): Adjust.
976 * src/gram.c: Be sure the set pointers to NULL.
977 (dummy): Rename as...
980 2001-09-22 Akim Demaille <akim@epita.fr>
982 * configure.in: Invoke AM_LIB_DMALLOC.
983 * src/system.h: Use dmalloc.
984 * src/LR0.c: Be sure to have pointers initialized to NULL.
985 (allocate_itemsets): Allocate kernel_items only if needed.
987 2001-09-22 Akim Demaille <akim@epita.fr>
989 * configure.in: Bump to 1.29b.
990 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
991 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
992 need xmalloc.c in calc.y.
995 2001-09-21 Akim Demaille <akim@epita.fr>
998 * Makefile.maint, config/config.guess, config/config.sub,
999 * config/missing: Update from masters.
1000 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1002 * configure.in (ALL_LINGUAS): Add `tr'.
1004 2001-09-21 Akim Demaille <akim@epita.fr>
1006 * tests/Makefile.am (package.m4): Move to...
1007 ($(srcdir)/$(TESTSUITE)): here.
1009 2001-09-20 Akim Demaille <akim@epita.fr>
1011 * src/complain.c: No longer try to be standalone: use system.h.
1012 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1013 * src/complain.h: Likewise.
1014 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1015 Remove the unused variable `n'.
1016 From Albert Chin-A-Young.
1018 2001-09-18 Marc Autret <autret_m@epita.fr>
1020 * doc/bison.1: Update.
1021 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1023 (Option Cross Key): Update.
1026 2001-09-18 Marc Autret <autret_m@epita.fr>
1028 * tests/regression.at: New test (comment in %union).
1030 2001-09-18 Marc Autret <autret_m@epita.fr>
1032 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1034 Reported by Keith Browne.
1036 2001-09-18 Marc Autret <autret_m@epita.fr>
1038 * tests/output.at: Add tests for --defines and --graph.
1040 2001-09-18 Marc Autret <autret_m@epita.fr>
1042 * tests/output.at: Removes tests of %{header,src}_extension features.
1044 2001-09-18 Akim Demaille <akim@epita.fr>
1046 * tests/Makefile.am (package.m4): New.
1047 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1048 (_AT_CHECK_CALC_ERROR): Likewise.
1049 Factor the `, ' part of verbose error messages.
1051 2001-09-18 Marc Autret <autret_m@epita.fr>
1053 * src/getargs.c (longopts): Declare --defines and --graph as options
1054 with optional arguments.
1055 * src/files.h: Add extern declarations.
1056 * src/files.c (spec_graph_file, spec_defines_file): New.
1057 (output_files): Update.
1058 Remove CPP-outed code.
1060 2001-09-18 Marc Autret <autret_m@epita.fr>
1062 Turn off %{source,header}_extension feature.
1064 * src/files.c (compute_exts_from_gf): Update.
1065 (compute_exts_from_src): Update.
1066 (output_files): CPP-out useless code.
1067 * src/files.h: Remove {header,source}_extension extern declarations.
1068 * src/reader.c (parse_dquoted_param): CPP-out.
1069 (parse_header_extension_decl): Remove.
1070 (parse_source_extension_decl): Remove.
1071 (read_declarations): Remove cases tok_{hdrext,srcext}.
1072 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1073 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1075 2001-09-10 Akim Demaille <akim@epita.fr>
1077 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1078 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1079 (AT_CHECK_OUTPUT): this.
1080 Merely check ls' exit status, its output is useless.
1082 2001-09-10 Akim Demaille <akim@epita.fr>
1084 * tests/calc.at: Use m4_match.
1085 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1087 2001-09-10 Marc Autret <autret_m@epita.fr>,
1088 Akim Demaille <akim@epita.fr>
1090 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1092 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1094 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1095 * src/lex.h: Adjust prototype.
1096 (token_t): Add `tok_undef'.
1097 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1098 (parse_percent_token): Now returns token_t.
1099 Add default statement in switch.
1100 (lex): Separate `c' as an input variable, from the token_t result
1102 (unlexed): Is a token_t.
1104 2001-09-10 Akim Demaille <akim@epita.fr>
1106 * configure.in: Bump to 1.29a.
1108 2001-09-07 Akim Demaille <akim@epita.fr>
1112 2001-08-30 Akim Demaille <akim@epita.fr>
1114 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1115 * m4/atconfig.m4: Remove.
1116 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1118 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1119 m4_if, m4_patsubst, and m4_regexp.
1120 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1121 `input' file instead of echo.
1123 2001-08-29 Akim Demaille <akim@epita.fr>
1127 2001-08-29 Akim Demaille <akim@epita.fr>
1131 2001-08-29 Paul Eggert <eggert@twinsun.com>
1133 * src/bison.simple (yyparse): Don't take the address of an
1134 item before the start of an array, as that doesn't conform to
1137 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1139 * doc/bison.texinfo (Location Tracking Calc): New node.
1141 2001-08-29 Paul Eggert <eggert@twinsun.com>
1143 * src/output.c (output): Do not define const, as this now
1144 causes more problems than it cures.
1146 2001-08-29 Akim Demaille <akim@epita.fr>
1148 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1150 Be sure to tag the `detailmenu'.
1152 2001-08-29 Akim Demaille <akim@epita.fr>
1154 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1155 download in a tmp dir.
1157 2001-08-28 Marc Autret <autret_m@epita.fr>
1159 * config/depcomp: New file.
1161 2001-08-28 Marc Autret <autret_m@epita.fr>
1163 * doc/bison.1 (mandoc): Adjust.
1164 From Juan Manuel Guerrero.
1166 2001-08-28 Marc Autret <autret_m@epita.fr>
1168 * src/print_graph.c (print_state): Fix.
1170 2001-08-27 Marc Autret <autret_m@epita.fr>
1172 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1174 Echo modifications to the functions prototypes.
1175 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1177 2001-08-27 Marc Autret <autret_m@epita.fr>
1179 * src/vcg.c: Include `xalloc.h'.
1180 (add_colorentry): New.
1181 (add_classname): New.
1182 (add_infoname): New.
1183 * src/vcg.h: Add new prototypes.
1185 2001-08-27 Akim Demaille <akim@epita.fr>
1187 * Makefile.maint: Sync. again with CVS Autoconf.
1189 2001-08-27 Akim Demaille <akim@epita.fr>
1191 * Makefile.maint: Formatting changes.
1192 (po-update, cvs-update, update): New targets.
1195 2001-08-27 Akim Demaille <akim@epita.fr>
1197 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1198 * Makefile.maint: Sync. with CVS Autoconf.
1200 2001-08-27 Marc Autret <autret_m@epita.fr>
1202 * src/vcg.h (struct infoname_s): New.
1203 (struct colorentry_s): New.
1204 (graph_s): New fields {vertical,horizontal}_order in structure.
1205 Add `infoname' field.
1206 Add `colorentry' field;
1207 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1208 (G_HORIZONTAL_ORDER): New.
1210 (G_COLORENTRY): New.
1211 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1212 Add output of `infoname'.
1213 Add output of `colorentry'.
1215 2001-08-27 Marc Autret <autret_m@epita.fr>
1217 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1218 This one shadowed a global parameter.
1220 2001-08-24 Marc Autret <autret_m@epita.fr>
1222 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1223 instead of `unsigned'.
1224 (print_state): Do not call obstack_object_size () in obstack_grow ()
1225 to avoid macro variables shadowing.
1227 2001-08-23 Marc Autret <autret_m@epita.fr>
1229 * src/lex.c (percent_table): Typo: s/naem/name/.
1231 Normalize new options declarations.
1233 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1235 * tests/suite.at: Exercise %header_extension and %source_extension.
1237 2001-08-16 Marc Autret <autret_m@epita.fr>
1239 * src/reader.c (parse_dquoted_param): New.
1240 (parse_header_extension_decl): Use it.
1241 (parse_source_extension_decl): Likewise.
1243 2001-08-16 Marc Autret <autret_m@epita.fr>
1245 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1246 (get_xxxx_str): Use assert () instead of complain ().
1247 Remove return invokations in default cases.
1248 (get_decision_str): Modify default behaviour. Remove second argument.
1249 Echo modifications on calls.
1250 (output_graph): Fix.
1252 2001-08-16 Marc Autret <autret_m@epita.fr>
1254 * src/getargs.c (usage): Update with ``-g, --graph''.
1256 2001-08-16 Marc Autret <autret_m@epita.fr>
1258 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1259 (Option Cross Key): Likewise.
1260 * doc/bison.1: Update.
1262 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1264 * src/output.c (output_master_parser): Don't finish action_obstack.
1265 (output_parser): Don't care about the muscle action, here.
1266 (prepare): Copy the action_obstack in the action muscle.
1267 (output): Free action_obstack.
1269 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1271 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1272 will contain `%union' declaration.
1273 (parse_union_decl): Delete #line directive output.
1274 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1275 informations about %union.
1276 (parse_union_decl): Copy the union_obstack in the muscle stype.
1277 * src/bison.simple: Add new #line directive.
1278 Add typdef %%stype YYSTYPE.
1280 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1282 * src/bison.simple: Add new `#line' directive.
1284 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1286 * src/bison.simple: New `#line' directive.
1287 * src/output.c (output_parser): Support new dynamic muscle input_line.
1289 2001-09-22 Marc Autret <autret_m@epita.fr>
1291 * src/output.c (output_master_parser): New.
1292 (output_parser): Be more re-entrant.
1294 2001-09-21 Marc Autret <autret_m@epita.fr>
1296 * src/reader.c (copy_definition, parse_union_decl): Update and use
1298 (copy_action): Likewise.
1299 Use obstack_1grow ().
1300 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1302 2001-09-21 Marc Autret <autret_m@epita.fr>
1304 * src/options.c (option_table): Adjust.
1305 * src/lex.c (parse_percent_token): Fix.
1307 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1309 * src/options.c (symtab.h): Include it, need by lex.h.
1311 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1313 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1314 is now an option_table_struct*.
1315 (option_strcmp): New function option_strcmp.
1316 (parse_percent_token): Call option_strcmp.
1317 * src/getargs.c (xalloc.h, options.h): Include it.
1318 (getargs): Call create_long_option_table.
1319 (getargs): Free longopts at the end of the function.
1320 (shortopts): Move in options.c.
1321 * src/options.c (create_long_option_table): New function. Convert
1322 information from option_table to option structure.
1323 * src/reader.c (options.h): Include it.
1325 * src/Makefile.am: Adjust.
1326 * src/options.c (option_table): Create from longopts and percent_table.
1327 * src/getargs.c (longopts): Delete.
1328 * src/lex.c (struct percent_table_struct): Delete.
1329 (percent_table): Delete.
1330 (options.h): Include it.
1331 * src/options.c: Create.
1332 * src/options.h: Create.
1333 Declare enum opt_access_e.
1334 Define struct option_table_struct.
1336 2001-09-20 Marc Autret <autret_m@epita.fr>
1338 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1341 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1343 * src/bison.simple: s/%%filename/%%skeleton.
1344 * src/muscle_tab.c (getargs.h): Include it.
1345 (muscle_init): Insert new muscle skeleton.
1347 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1349 * src/output.c (output_parser): Delete unused variable actions_dumped.
1351 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1353 * src/output.c (output): Delete call to reader_output_yylsp.
1354 * src/reader.c (reader): Likewise.
1355 * src/reader.h: Delete declaration of reader_output_yylsp.
1357 2001-09-02 Marc Autret <autret_m@epita.fr>
1359 * src/reader.c: Include muscle_tab.h.
1360 (parse_union_decl): Update.
1361 (parse_macro_decl): Rename parse_muscle_decl.
1362 Update to use renamed functions and variable.
1363 (read_declarations, copy_action, read_additionnal_code, : Updated
1364 with correct variables and functions names.
1365 (packsymbols, reader): Likewise.
1367 * src/reader.h (muscle_obstack): Extern declaration update.
1369 * src/output.c: Include muscle_tab.h
1370 In all functions using macro_insert, change by using muscle_insert ().
1371 (macro_obstack): Rename muscle_obstack.
1372 Echo modifications in the whole file.
1373 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1374 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1375 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1377 * src/muscle_tab.h: Update double inclusion macros.
1378 (macro_entry_s): Rename muscle_entry_s.
1381 * src/muscle_tab.c: Include muscle_tab.h.
1382 Rename macro_tabble to muscle_table.
1383 (mhash1, mhash2, mcmp): Use muscle_entry.
1384 (macro_init): Rename muscle_init. Update.
1385 (macro_insert): Rename muscle_insert. Update.
1386 (macro_find): Rename muscle_find. Update.
1388 * src/main.c: Include muscle_tab.h.
1389 (main): Call muscle_init ().
1390 * src/Makefile.am (bison_SOURCES): Echo modifications.
1392 2001-09-02 Marc Autret <autret_m@epita.fr>
1394 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1396 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1398 2001-09-02 Marc Autret <autret_m@epita.fr>
1400 * src/macrotab.c, src/macrotab.h: Remove.
1402 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1404 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1407 2001-09-01 Marc Autret <autret_m@epita.fr>
1409 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1410 to an explicit value to activate the feature. We do it here.
1412 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1414 * src/output.c (prepare): Delete the `filename' muscule insertion.
1415 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1416 (parse_union_decl): Likewise.
1417 * src/macrotab.c (macro_init): Initialize filename by infile.
1419 2001-08-31 Marc Autret <autret_m@epita.fr>
1421 * src/bison.simple (YYLSP_NEEDED): New definition.
1422 * src/output.c (prepare): Add macro insertion of `locations_flag'
1424 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1426 * src/output.c (prepare): Delete insertion of previous muscles,
1427 and insert the `prefix' muscles.
1428 * src/macrotab.c (macro_init): Likewise.
1429 (macro_init): Initialization prefix directive by `yy'.
1430 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1431 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1432 yylval, yydebug, yyerror, yynerrs and yyparse.
1433 New directive `#define' to substitute yydebug, ... with option
1436 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1438 * src/main.c (main): Standardize.
1439 * src/output.c (output_table_data, output_parser): Likewise.
1440 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1442 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1444 * src/reader.c (read_additionnal_code): Rename %%user_code to
1446 * src/output.c (output): Rename %%declarations to %%prologue.
1447 * src/bison.simple: Echo modifications.
1449 2001-08-31 Marc Autret <autret_m@epita.fr>
1451 * src/reader.c (readgram): CleanUp.
1452 (output_token_defines): Likewise.
1453 (packsymbols): Likewise.
1455 * src/output.c (output): CPP-out useless code.
1457 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1459 * src/reader.c (reader): Delete obsolete call to function
1460 output_trailers and output_headers.
1461 * src/output.h: Remove obsolete functions prototypes of output_headers
1462 and output_trailers.
1464 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1466 * src/main.c: Include macrotab.h.
1467 * src/macrotab.h (macro_entry_s): Constify fields.
1468 Adjust functions prototypes.
1469 * src/macrotab.c (macro_insert): Constify key and value.
1470 (macro_find): Constify key.
1471 (macro_insert): Include 'xalloc.h'
1472 (macro_insert): Use XMALLOC.
1473 (macro_find): Constify return value.
1474 * src/output.c (output_table_data): Rename table to table_data.
1475 (output_parser): Constify macro_key, macro_value.
1477 2001-08-30 Marc Autret <autret_m@epita.fr>
1479 * src/reader.c (parse_skel_decl): New.
1480 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1481 * src/lex.h (token_t): New token `tok_skel'.
1482 * src/lex.c (percent_table): Add skeleton option entry.
1485 2001-08-29 Marc Autret <autret_m@epita.fr>
1487 * src/bison.simple: Add %%user_code directive at the end.
1488 * src/reader.c (read_additionnal_code): New.
1490 * src/output.c (output_program): Remove.
1493 2001-08-28 Marc Autret <autret_m@epita.fr>
1495 * src/output.c (output_actions): Clean up.
1496 (output_gram): CPP-out useless code.
1497 * src/reader.c (reader): Clean up, CPP-out useless code.
1499 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1501 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1503 * src/bison.simple: Add `%%definitions'.
1505 2001-08-28 Marc Autret <autret_m@epita.fr>
1507 * config/depcomp: New file.
1509 2001-08-27 Paul Eggert <eggert@twinsun.com>
1511 * src/bison.simple (yyparse): Don't take the address of an
1512 item before the start of an array, as that doesn't conform to
1515 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1517 * src/output.c (output): Remove the initialization of the macro
1518 obstack. It was done too late here.
1520 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1522 (reader): Initialize the macro obstack here, since we need it to grow
1523 '%define' directives.
1525 * src/reader.h: Declare the macro obstack as extern.
1527 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1529 * src/output.c (output_parser): Fix. Store single '%' characters in
1530 the output obstack instead of throwing them away.
1532 2001-08-27 Akim Demaille <akim@epita.fr>
1534 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1536 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1538 * lib/Makefile.am: Adjust.
1540 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1542 * src/bison.simple: Update and add '%%' directives.
1544 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1546 * src/reader.c (reader): Remove calls to 'output_headers' and
1547 'output_trailers'. Remove some C output.
1548 (readgram): Disable a piece of code that was writing a default
1549 definition for 'YYSTYPE'.
1550 (reader_output_yylsp): Remove.
1551 (packsymbols): Output token defintions to a macro.
1552 (copy_definition): Disable C output.
1554 * src/reader.c (parse_macro_decl): New function used to parse macro
1556 (copy_string2): Put the body of copy_string into this new function.
1557 Add a parameter to let the caller choose whether he wants to copy the
1558 string delimiters or not.
1559 (copy_string): Be a simple call to copy_string2 with the last argument
1561 (read_declarations): Add case for macro definition.
1562 (copy_identifier): New.
1563 (parse_macro_decl): Read macro identifiers using copy_identifier
1566 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1568 * src/output.c (prepare): Add prefixed names.
1569 (output_parser): Output semantic actions.
1570 (output_parser): Fix bug on '%%line' directives.
1572 * src/output.c (output_headers): Remove. The C code printed by this
1573 function should now be in the skeletons.
1574 (output_trailers): Remove.
1575 (output): Disable call to 'reader_output_yylsp'.
1576 (output_rule_data): Do not output tables to the table obstack.
1578 * src/output.c: Remove some C dedicated output.
1579 Improve the use of macro and output obstacks.
1580 (output_defines): Remove.
1582 * src/output.c (output_token_translations): Associate 'translate'
1583 table with a macro. No output to the table obstack.
1584 (output_gram): Same for 'rhs' and 'prhs'.
1585 (output_stos): Same for 'stos'.
1586 (output_rule_data): Same for 'r1' and 'r2'.
1587 (token_actions): Same for 'defact'.
1588 (goto_actions): Same for 'defgoto'.
1589 (output_base): Same for 'pact' and 'pgoto'.
1590 (output_table): Same for 'table'.
1591 (output_check): Same for 'check'.
1593 * src/output.c (output_table_data): New function.
1594 (output_short_table): Remove.
1595 (output_short_or_char_table): Remove.
1597 * src/output.c (output_parser): Replace most of the skeleton copy code
1598 with something new. Skeletons are now processed character by character
1599 rather than line by line, and Bison looks for '%%' macros. This is the
1600 first step in making Bison's output process (a lot) more flexible.
1601 (output_parser): Use the macro table.
1603 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1605 * src/main.c (main): Initialize the macro table.
1607 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1609 * src/lex.c (percent_table): Add tok_define.
1610 * src/lex.h: Add tok_define.
1612 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1614 * src/macrotab.c: New file.
1615 * src/macrotab.h: New file.
1616 * src/Makefile.am: Update.
1618 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1620 * lib/hash.c: New file.
1621 * lib/hash.h: New file.
1622 * lib/Makefile.am: Update.
1624 2001-08-15 Akim Demaille <akim@epita.fr>
1628 2001-08-15 Marc Autret <autret_m@epita.fr>
1630 * src/reader.c (readgram): Indent output macro YYSTYPE.
1631 (packsymbols): Likewise.
1632 (output_token_defines): Likewise.
1633 * src/files.c: Standardize.
1634 (compute_header_macro): New.
1635 (defines_obstack_save): New. Use compute_header_macro.
1636 (output_files): Update. Use defines_obstack_save.
1638 2001-08-15 Akim Demaille <akim@epita.fr>
1640 * doc/bison.texinfo (Table of Symbols): Document
1643 2001-08-15 Akim Demaille <akim@epita.fr>
1645 * missing: Update from CVS Automake.
1646 * config/config.guess, config/config.sub, config/texinfo.tex:
1647 Update from gnu.org.
1649 2001-08-15 Akim Demaille <akim@epita.fr>
1651 * Makefile.maint: Sync with CVS Autoconf.
1653 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1655 * doc/bison.texinfo: Include GNU Free Documentation License from
1657 * doc/fdl.texi: Add to package.
1659 2001-08-14 Marc Autret <autret_m@epita.fr>
1661 Turn on %{source,header}_extension features.
1663 * src/lex.c (percent_table): Un-CPP out header_extension and
1665 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1666 (compute_exts_from_src): Remove conditions. It restores priorities
1669 2001-08-14 Marc Autret <autret_m@epita.fr>
1671 * src/files.c (compute_base_names): Add extensions computing when
1672 `--file-prefix' used.
1673 Standardize function calls.
1675 2001-08-13 Marc Autret <autret_m@epita.fr>
1677 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1678 defining it (defined but null disables alloca).
1680 2001-08-13 Marc Autret <autret_m@epita.fr>
1682 * src/bison.simple (_yy_memcpy): CPP reformat.
1684 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1686 * tests/atconfig.in (CPPFLAGS): Fix.
1688 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1690 * doc/bison.texinfo: Include GNU General Public License from
1692 * doc/gpl.texi: Add to package.
1694 2001-08-10 Marc Autret <autret_m@epita.fr>
1696 * src/print_graph.h: Fix.
1697 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1699 2001-08-10 Akim Demaille <akim@epita.fr>
1701 * src/system.h: Provide default declarations for stpcpy, strndup,
1704 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1706 * doc/bison.texinfo (Locations): Update @$ stuff.
1708 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1710 * src/bison.simple (YYLLOC_DEFAULT): Update.
1713 2001-08-08 Marc Autret <autret_m@epita.fr>
1715 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1716 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1717 Reported by Fabrice Bauzac.
1719 2001-08-08 Marc Autret <autret_m@epita.fr>
1721 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1722 * src/vcg.c (output_node): Fix.
1723 * src/vcg.h: Cleanup.
1724 * src/print_graph.c: Add comments.
1725 (node_output_size): New global variable. Simplify the formatting of
1726 the VCG graph output.
1727 (print_actions): Unused code is now used. It notifies the final state
1728 and no action states in the VCG graph. It also give the reduce actions.
1729 The `shift and goto' edges are red and the `go to state' edges are
1731 Get the current node name and node_obstack by argument.
1732 (node_obstack): New variable.
1733 (print_state): Manage node_obstack.
1734 (print_core): Use node_obstack given by argument.
1735 A node is not only computed here but in print_actions also.
1736 (print_graph): CPP out useless code instead of commenting it.
1738 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1740 * tests/atconfig.in (CPPFLAGS): Fix.
1742 2001-08-07 Akim Demaille <akim@epita.fr>
1744 * src/print_graph.c (quote): New.
1745 (print_core): Use it.
1747 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1749 * src/vcg.c (complain.h): Include it.
1750 Unepitaize `return' invocations.
1751 [NDEBUG] (main): Remove.
1752 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1753 * src/files.c (open_files): Initialize graph_obstack.
1754 * src/print_graph.c (print_actions): CPP out useless code.
1755 (print_core): Don't output the last `\n' in labels.
1757 * src/files.c (output_files): Output the VCG file.
1758 * src/main.c (main): Invoke print_graph ();
1760 2001-08-06 Marc Autret <autret_m@epita.fr>
1762 Automaton VCG graph output.
1763 Using option ``-g'' or long option ``--graph'', you can generate
1764 a gram_filename.vcg file containing a VCG description of the LALR (1)
1765 automaton of your grammar.
1767 * src/main.c: Call to print_graph() function.
1768 * src/getargs.h: Update.
1769 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1770 (graph_flag): New flag.
1772 (getargs): Add case `g'.
1773 * src/files.c (graph_obstack): New obstack struct.
1774 (open_files): Initialize new obstack.
1775 (output_files): Saves graph_obstack if required.
1776 * src/files.h (graph_obstack): New extern declaration.
1777 * src/Makefile.am: Add new source files.
1779 2001-08-06 Marc Autret <autret_m@epita.fr>
1781 * src/print_graph.c, src/print_graph.h (graph): New.
1782 * src/vcg.h: New file.
1783 * src/vcg.c: New file, VCG graph handling.
1785 2001-08-06 Marc Autret <autret_m@epita.fr>
1787 Add of %source_extension and %header_extension which specify
1788 the source or/and the header output file extension.
1790 * src/files.c (compute_base_names): Remove initialisation of
1791 src_extension and header_extension.
1792 (compute_exts_from_gf): Update.
1793 (compute_exts_from_src): Update.
1794 (output_files): Update.
1795 * src/reader.c (parse_header_extension_decl): New.
1796 (parse_source_extension_decl): New.
1797 (read_declarations): New case statements for the new tokens.
1798 * src/lex.c (percent_table): Add entries for %source_extension
1799 and %header_extension.
1800 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1802 2001-08-06 Marc Autret <autret_m@epita.fr>
1804 * configure.in: Bump to 1.28c.
1805 * doc/bison.texinfo: Texinfo thingies.
1807 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1809 * tests/atconfig.in (CPPFLAGS): Add.
1810 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1812 2001-08-03 Akim Demaille <akim@epita.fr>
1816 2001-08-03 Akim Demaille <akim@epita.fr>
1818 * tests/Makefile.am (check-local): Ship testsuite.
1819 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1822 2001-08-03 Akim Demaille <akim@epita.fr>
1824 * configure.in: Try using -Wformat when compiling.
1826 2001-08-03 Akim Demaille <akim@epita.fr>
1828 * configure.in: Bump to 1.28b.
1830 2001-08-03 Akim Demaille <akim@epita.fr>
1832 * src/complain.c: Adjust strerror_r portability issues.
1834 2001-08-03 Akim Demaille <akim@epita.fr>
1838 2001-08-03 Akim Demaille <akim@epita.fr>
1840 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1841 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1842 * src/getargs.c: Include complain.h.
1843 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1844 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1846 2001-08-03 Akim Demaille <akim@epita.fr>
1848 * src/reader.c (readgram): Display hidden chars in error messages.
1850 2001-08-03 Akim Demaille <akim@epita.fr>
1852 Update to gettext 0.10.39.
1854 2001-08-03 Akim Demaille <akim@epita.fr>
1856 * lib/strspn.c: New.
1858 2001-08-01 Marc Autret <autret_m@epita.fr>
1860 * doc/bison.texinfo: Update.
1861 * doc/bison.1 (mandoc): Update.
1862 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1863 * src/files.c: Support output files extensions computing.
1864 (src_extension): New static variable.
1865 (header_extension): New static variable.
1867 (get_extension_index): New function, gets the index of an extension
1868 filename in a string.
1869 (compute_exts_from_gf): New function, computes extensions from the
1870 grammar file extension.
1871 (compute_exts_from_src): New functions, computes extensions from the
1872 C source file extension, file given by ``-o'' option.
1873 (compute_base_names): Update.
1874 (output_files): Update.
1876 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1878 * doc/bison.texi: Document @$.
1879 (Locations): New section.
1881 2001-07-18 Akim Demaille <akim@epita.fr>
1883 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1884 * config/prev-version.txt, config/move-if-change: New.
1885 * Makefile.am: Adjust.
1887 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1889 * src/bison.simple (yyparse): Suppress warning `comparaison
1890 between signed and unsigned'.
1892 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1894 * src/getargs.h (raw_flag): Remove.
1895 * src/getargs.c: Die on `-r'/`--raw'.
1896 * src/lex.c (parse_percent_token): Die on `%raw'.
1897 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1898 * tests/calc.at: Suppress test with option `--raw'.
1900 2001-07-14 Akim Demaille <akim@epita.fr>
1903 * configure.in: Require Autoconf 2.50.
1904 Update to gettext 0.10.38.
1906 2001-03-16 Akim Demaille <akim@epita.fr>
1908 * doc/bison.texinfo: ANSIfy the examples.
1910 2001-03-16 Akim Demaille <akim@epita.fr>
1912 * getargs.c (skeleton): New variable.
1913 (longopts): --skeleton is a new option.
1914 (shortopts, getargs): -S is a new option.
1915 * getargs.h: Declare skeleton.
1916 * output.c (output_parser): Use it.
1918 2001-03-16 Akim Demaille <akim@epita.fr>
1920 * m4/strerror_r.m4: New.
1921 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1922 * lib/error.h, lib/error.c: Update.
1924 2001-03-16 Akim Demaille <akim@epita.fr>
1926 * src/getargs.c (longopts): Clean up.
1928 2001-02-21 Akim Demaille <akim@epita.fr>
1930 * src/reader.c (gensym): `gensym_count' is your own.
1931 Use a static buf to create the symbol name, as token_buffer is no
1934 2001-02-08 Akim Demaille <akim@epita.fr>
1936 * src/conflicts.c (conflict_report): Be sure not to append to res
1937 between two calls, which could happen if both first sprintf were
1938 skipped, but not the first cp += strlen.
1940 2001-02-08 Akim Demaille <akim@epita.fr>
1942 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1943 New, from fileutils 4.0.37.
1944 * configure.in: Require Autoconf 2.49c. I took some time before
1945 making this decision. This is the only way out for portability
1946 issues in Bison, it would mean way too much duplicate effort to
1947 import in Bison features implemented in 2.49c since 2.13.
1948 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1950 2001-02-02 Akim Demaille <akim@epita.fr>
1952 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1953 * lib/xalloc.h, lib/xmalloc.c: Update.
1955 2001-01-19 Akim Demaille <akim@epita.fr>
1957 Get rid of the ad hoc handling of token_buffer in the scanner: use
1960 * src/lex.c (token_obstack): New.
1961 (init_lex): Initialize it. No longer call...
1962 (grow_token_buffer): this. Remove it.
1963 Adjust all the places which used it to use the obstack.
1965 2001-01-19 Akim Demaille <akim@epita.fr>
1967 * src/lex.h: Rename all the tokens:
1968 s/\bENDFILE\b/tok_eof/g;
1969 s/\bIDENTIFIER\b/tok_identifier/g;
1971 Let them be enums, not #define, to ease debugging.
1972 Adjust all the code.
1974 2001-01-18 Akim Demaille <akim@epita.fr>
1976 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1977 * src/lex.c (maxtoken, grow_token_buffer): Static.
1979 2001-01-18 Akim Demaille <akim@epita.fr>
1981 Since we now use obstacks, more % directives can be enabled.
1983 * src/lex.c (percent_table): Also accept `%yacc',
1984 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1986 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1987 instead of returning a token.
1988 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1989 * src/reader.c (read_declarations): Adjust.
1990 * src/files.c (open_files): Don't call `compute_base_names', don't
1991 compute `attrsfile' since they depend upon data which might be
1992 *in* the input file now.
1993 (output_files): Do it here.
1994 * src/output.c (output_headers): Document the fact that this patch
1995 introduces a guaranteed SEGV for semantic parsers.
1996 * doc/bison.texinfo: Document them.
1997 * tests/suite.at: Exercise these %options.
1999 2000-12-20 Akim Demaille <akim@epita.fr>
2001 Also handle the output file (--verbose) with obstacks.
2003 * files.c (foutput): Remove.
2004 (output_obstack): New.
2005 Adjust all dependencies.
2006 * src/conflicts.c: Return a string.
2007 * src/system.h (obstack_grow_string): Rename as...
2008 (obstack_sgrow): this. Be ready to work with non literals.
2009 (obstack_fgrow4): New.
2011 2000-12-20 Akim Demaille <akim@epita.fr>
2013 * src/files.c (open_files): Fix the computation of short_base_name
2014 in the case of `-o foo.tab.c'.
2016 2000-12-20 Akim Demaille <akim@epita.fr>
2018 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2019 (copy_dollar): Now that everything uses obstacks, get rid of the
2022 2000-12-20 Akim Demaille <akim@epita.fr>
2024 * src/files.c (open_files): Actually the `.output' file is based
2025 on the short_base_name, not base_name.
2026 * tests/suite.at (Checking output file names): Adjust.
2028 2000-12-20 Akim Demaille <akim@epita.fr>
2030 * src/bison.s1: Remove, we now use directly...
2031 * src/bison.simple: this.
2032 * src/Makefile.am: Use pkgdata instead of data.
2034 2000-12-20 Akim Demaille <akim@epita.fr>
2036 * src/files.c (guard_obstack): New.
2037 (open_files): Initialize it.
2038 (output_files): Dump it...
2039 * src/files.h: Export it.
2040 * src/reader.c (copy_guard): Use it.
2042 2000-12-19 Akim Demaille <akim@epita.fr>
2044 * src/files.c (outfile, defsfile, actfile): Removed as global
2046 (open_files): Don't compute them.
2047 (output_files): Adjust.
2048 (base_name, short_base_name): Be global.
2049 Adjust dependencies.
2051 2000-12-19 Akim Demaille <akim@epita.fr>
2053 * src/files.c (strsuffix): New.
2054 (stringappend): Be just like strcat but allocate.
2055 (base_names): Eve out from open_files.
2056 Try to simplify the rather hairy computation of base_name and
2058 (open_files): Use it.
2059 * tests/suite.at (Checking output file names): New test.
2061 2000-12-19 Akim Demaille <akim@epita.fr>
2063 * src/system.h (obstack_grow_literal_string): Rename as...
2064 (obstack_grow_string): this.
2065 * src/output.c (output_parser): Recognize `%% actions' instead of
2067 * src/bison.s1: s/$/%% actions/.
2068 * src/bison.hairy: Likewise.
2070 2000-12-19 Akim Demaille <akim@epita.fr>
2072 * src/output.c (output_parser): Compute the `#line' lines when
2074 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2075 Suggested by Hans Aberg.
2077 2000-12-19 Akim Demaille <akim@epita.fr>
2079 Let the handling of the skeleton files be local to the procedures
2082 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2084 (fparser, open_extra_files): Remove.
2085 (open_files, output_files): Don't take care of fparser.
2086 * src/files.h: Adjust.
2087 * src/output.c (output_parser): Open and close the file to the
2089 * src/reader.c (read_declarations): When %semantic_parser, open
2092 2000-12-19 Akim Demaille <akim@epita.fr>
2094 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2095 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2097 2000-12-19 Akim Demaille <akim@epita.fr>
2099 * src/files.c (open_files): Yipee! We no longer need all the code
2100 looking for `/tmp' since we have no tmp file.
2102 2000-12-19 Akim Demaille <akim@epita.fr>
2104 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2106 * src/files.c (open_files): Less dependency on MSDOS etc.
2108 2000-12-14 Akim Demaille <akim@epita.fr>
2110 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2111 Provide a default definition.
2112 Use it when executing the default @ action.
2113 * src/reader.c (reader_output_yylsp): No longer include
2114 `timestamp' and `text' in the default YYLTYPE.
2116 2000-12-12 Akim Demaille <akim@epita.fr>
2118 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2119 (copy_guard): Quote the file names.
2120 Reported by Laurent Mascherpa.
2122 2000-12-12 Akim Demaille <akim@epita.fr>
2124 * src/output.c (output_headers, output_program, output): Be sure
2125 to escape special characters when outputting filenames.
2126 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2127 (output_headers): Don't depend on them, Use ACTSTR.
2129 2000-11-17 Akim Demaille <akim@epita.fr>
2131 * lib/obstack.h: Formatting changes.
2132 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2133 prevents type checking.
2134 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2135 cast the value to (void *): assigning a `foo *' to a `void *'
2137 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2138 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2141 2000-11-17 Akim Demaille <akim@epita.fr>
2143 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2145 (suite.m4, regression.m4, calc.m4): these.
2146 * tests/atgeneral.m4: Update from CVS Autoconf.
2148 2000-11-17 Akim Demaille <akim@epita.fr>
2150 * tests/regression.m4 (%union and --defines): New test,
2151 demonstrating a current bug in the obstack implementation.
2153 2000-11-17 Akim Demaille <akim@epita.fr>
2155 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2157 Use them to declare the variables which are global or local to
2160 2000-11-17 Akim Demaille <akim@epita.fr>
2162 * acconfig.h: Remove, no longer used.
2164 2000-11-07 Akim Demaille <akim@epita.fr>
2166 * src: s/Copyright (C)/Copyright/g.
2168 2000-11-07 Akim Demaille <akim@epita.fr>
2170 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2172 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2174 2000-11-07 Akim Demaille <akim@epita.fr>
2176 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2177 Merge in a single CPP if/else.
2179 2000-11-07 Akim Demaille <akim@epita.fr>
2181 * src/output.c (output): Remove useless variables.
2182 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2183 argument `data' for consistency with the prototypes.
2185 (obstack_copy, obstack_copy0): Rename the second argument as
2186 `address' for consistency. Qualify it `const'.
2187 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2188 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2189 `const' their input argument (`data' or `address').
2190 Adjust the corresponding macros to include `const' in casts.
2192 2000-11-03 Akim Demaille <akim@epita.fr>
2194 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2195 s/PFILE1/BISON_HAIRY/.
2196 Adjust dependencies.
2198 2000-11-03 Akim Demaille <akim@epita.fr>
2200 For some reason, this was not applied.
2202 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2203 `unlink': it's no longer used.
2205 2000-11-03 Akim Demaille <akim@epita.fr>
2207 * src/files.c (skeleton_find): New function, eved out of...
2208 (open_files, open_extra_files): here.
2210 2000-11-03 Akim Demaille <akim@epita.fr>
2214 * src/files.c (obstack_save): New function.
2215 (done): Rename as...
2216 (output_files): this.
2218 * src/main.c (main): Don't use `atexit' to register `done', since
2219 it no longer has to remove tmp files, just call `output_files'
2220 when there are no errors.
2222 2000-11-02 Akim Demaille <akim@epita.fr>
2224 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2225 `unlink': it's no longer used.
2226 * src/files.h: Formatting changes.
2228 2000-11-02 Akim Demaille <akim@epita.fr>
2230 Remove the last uses of mktemp and unlink/delete.
2232 * src/files.c (fdefines, ftable): Removed.
2233 (defines_ostack, table_obstack): New.
2234 Adjust dependencies of the former into uses of the latter.
2235 * src/output.c (output_short_or_char_table, output_short_table):
2236 Convert to using obstacks.
2237 * src/reader.c (copy_comment2): Accept one FILE * and two
2239 (output_token_defines, reader_output_yylsp): Use obstacks.
2240 * src/system.h (obstack_fgrow3): New.
2242 2000-11-01 Akim Demaille <akim@epita.fr>
2244 Change each use of `fattrs' into a use of `attrs_obstack'.
2246 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2247 * src/files.c (fattrs): Remove.
2248 (attrs_obstack): New.
2249 Adjust all dependencies.
2250 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2252 2000-11-01 Akim Demaille <akim@epita.fr>
2255 Change each use of `faction' into a use of `action_obstack'.
2257 * lib/obstack.h, lib/obstack.c: New files.
2258 * src/files.c (faction): Remove.
2259 (action_obstack): New.
2260 Adjust all dependencies.
2262 2000-10-20 Akim Demaille <akim@epita.fr>
2264 * lib/quote.h (PARAMS): New macro. Use it.
2266 2000-10-16 Akim Demaille <akim@epita.fr>
2268 * src/output.c (output_short_or_char_table): New function.
2269 (output_short_table, output_token_translations): Use it.
2270 (goto_actions): Use output_short_table.
2272 2000-10-16 Akim Demaille <akim@epita.fr>
2274 * src/symtab.c (bucket_new): New function.
2277 * src/output.c (output_short_table): New argument to display the
2278 comment associated with the table.
2279 Adjust dependencies.
2280 (output_gram): Use it.
2281 (output_rule_data): Nicer output layout for YYTNAME.
2283 2000-10-16 Akim Demaille <akim@epita.fr>
2285 * src/lex.c (read_typename): New function.
2287 * src/reader.c (copy_dollar): Likewise.
2289 2000-10-16 Akim Demaille <akim@epita.fr>
2291 * src/reader.c (copy_comment2): Expect the input stream to be on
2292 the `/' which is suspected to open a comment, instead of being
2293 called after `//' or `/*' was read.
2294 (copy_comment, copy_definition, parse_union_decl, copy_action)
2295 (copy_guard): Adjust.
2297 2000-10-16 Akim Demaille <akim@epita.fr>
2299 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2300 `read_signed_integer'.
2302 2000-10-16 Akim Demaille <akim@epita.fr>
2304 * src/reader.c (copy_dollar): New function.
2305 (copy_guard, copy_action): Use it.
2307 2000-10-16 Akim Demaille <akim@epita.fr>
2309 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2310 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2311 New files, from Fileutils 4.0.27.
2312 * src/main.c (printable_version): Remove.
2313 * src/lex.c, src/reader.c: Use `quote'.
2315 2000-10-04 Akim Demaille <akim@epita.fr>
2317 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2319 2000-10-04 Akim Demaille <akim@epita.fr>
2321 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2323 2000-10-04 Akim Demaille <akim@epita.fr>
2325 When a literal string is used to define two different tokens,
2326 `bison -v' segfaults.
2327 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2329 * tests/regression.m4: New file.
2330 Include the core of the sample provided by Piotr Gackiewicz.
2331 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2334 2000-10-04 Akim Demaille <akim@epita.fr>
2336 * src/reader.c (parse_expect_decl): Keep `count' within the size
2340 2000-10-02 Paul Eggert <eggert@twinsun.com>
2342 * bison.s1 (yyparse): Assign the default value
2343 unconditionally, to avoid a GCC warning and make the parser a
2346 2000-10-02 Akim Demaille <akim@epita.fr>
2348 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2351 2000-10-02 Akim Demaille <akim@epita.fr>
2353 * src/derives.c, src/print.c, src/reduce.c: To ease the
2354 translation, move some `\n' out of the translated strings.
2356 2000-10-02 Akim Demaille <akim@epita.fr>
2358 The location tracking mechanism is precious for parse error
2359 messages. Nevertheless, it is enabled only when `@n' is used in
2360 the grammar, which is a different issue (you can use it in error
2361 message, but not in the grammar per se). Therefore, there should
2362 be another means to enable it.
2364 * src/getargs.c (getargs): Support `--locations'.
2366 * src/getargs.h (locationsflag): Export it.
2367 * src/lex.c (percent_table): Support `%locations'.
2368 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2369 with `locationsflag'.
2370 * doc/bison.texinfo: Document `--locations' and `%locations'.
2372 * tests/calc.m4: Test it.
2374 For regularity of the names, replace each
2375 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2376 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2377 In addition replace each `flag' with `_flag'.
2379 2000-10-02 Akim Demaille <akim@epita.fr>
2381 Also test parse error messages, including with YYERROR_VERBOSE.
2383 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2385 Use it to check the computations.
2386 Use it to check `nonassoc' is honored.
2387 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2388 `--yyerror-verbose'.
2389 (_AT_CHECK_CALC): Adjust to this option.
2390 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2392 2000-10-02 Akim Demaille <akim@epita.fr>
2394 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2395 the latter demonstrates a flaw in the handling of non debugging
2396 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2397 was used in order to simplify:
2413 unfortunately this leads to a CPP conflict when
2414 `--name-prefix=foo' is used since it produces `#define yydebug
2417 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2418 (YYDPRINTF): New macro.
2420 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2422 Also test `--verbose', `--defines' and `--name-prefix'.
2424 2000-10-02 Akim Demaille <akim@epita.fr>
2426 Improve the readability of the produced parsers.
2428 * src/bison.s1: Formatting changes.
2429 Improve the comment related to the `$' mark.
2430 (yydefault): Don't fall through to `yyresume': `goto' there.
2431 * src/output.c (output_parser): When the `$' is met, skip the end
2433 New variable, `number_of_dollar_signs', to check there's exactly
2434 one `$' in the parser skeleton.
2436 2000-10-02 Akim Demaille <akim@epita.fr>
2438 * lib/xstrdup.c: New file, from the fileutils.
2439 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2440 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2441 instead of strlen + xmalloc + strcpy.
2442 * src/symtab.c (copys): Remove, use xstrdup instead.
2444 2000-10-02 Akim Demaille <akim@epita.fr>
2446 * src/gram.h (associativity): New enum type which replaces the
2447 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2448 `right_assoc', `left_assoc' and `non_assoc'.
2449 Adjust all dependencies.
2450 * src/reader.c: Formatting changes.
2451 (LTYPESTR): Don't define it, use it as a literal in
2452 `reader_output_yylsp'.
2453 * src/symtab.h (symbol_class): New enum type which replaces the
2454 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2455 `sunknown', `stoken and `snterm'.
2457 2000-10-02 Akim Demaille <akim@epita.fr>
2459 * src/getargs.c (fixed_outfiles): Rename as...
2460 (yaccflag): for consistency and accuracy.
2461 Adjust dependencies.
2463 2000-10-02 Akim Demaille <akim@epita.fr>
2465 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2466 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2467 difficult and introduced a lot of core dump. It turns out that
2468 Bison used an implementation of `xmalloc' based on `calloc', and
2469 at various places it does depend upon the initialization to 0. I
2470 have not tried to isolate the pertinent places, and all the former
2471 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2472 someone should address this issue.
2474 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2475 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2477 Adjust dependencies.
2478 * src/warshall.h: New file.
2481 2000-10-02 Akim Demaille <akim@epita.fr>
2483 Various anti-`extern in *.c' changes.
2485 * src/system.h: Include `assert.h'.
2487 2000-10-02 Akim Demaille <akim@epita.fr>
2489 * src/state.h (nstates, final_state, first_state, first_shift)
2490 (first_reduction): Move their exportation from here...
2491 * src/LR0.h: to here.
2492 Adjust dependencies.
2493 * src/getargs.c (statisticsflag): New variable.
2494 Add support for `--statistics'.
2495 Adjust dependencies.
2497 Remove a lot of now useless `extern' statements in most files.
2499 2000-10-02 Akim Demaille <akim@epita.fr>
2501 * src/LR0.h: New file.
2504 2000-10-02 Akim Demaille <akim@epita.fr>
2506 * src/print.h: New file.
2508 * src/print.c: Formatting and ordering changes.
2509 (verbose, terse): Replace with...
2510 (print_results): this new function.
2511 Adjust dependencies.
2513 2000-10-02 Akim Demaille <akim@epita.fr>
2515 * src/conflicts.c (conflict_report): New function.
2516 (conflict_log, verbose_conflict_log): Replace with...
2517 (print_conflicts): this function.
2518 Adjust dependencies.
2519 * src/conflicts.h: New file.
2520 Propagate its inclusion.
2522 2000-10-02 Akim Demaille <akim@epita.fr>
2524 * src/nullable.h: New file.
2525 Propagate its inclusion.
2526 * src/nullable.c: Formatting changes.
2528 2000-10-02 Akim Demaille <akim@epita.fr>
2530 * src/reduce.h: New file.
2531 Propagate its inclusion.
2532 * src/reduce.c: Topological sort and other formatting changes.
2533 (bool, TRUE, FALSE): Move their definition to...
2534 * src/system.h: here.
2536 2000-10-02 Akim Demaille <akim@epita.fr>
2538 * src/files.c: Formatting changes.
2539 (tryopen, tryclose, openfiles): Rename as...
2540 (xfopen, xfclose, open_files): this.
2541 (stringappend): static.
2542 * src/files.h: Complete the list of exported symbols.
2545 2000-10-02 Akim Demaille <akim@epita.fr>
2547 * src/reader.h: New file.
2548 Propagate its use instead of tedious list of `extern' and
2550 * src/reader.c: Formatting changes, topological sort,
2553 2000-10-02 Akim Demaille <akim@epita.fr>
2555 * src/lex.h: Prototype `lex.c' exported functions.
2556 * src/reader.c: Adjust.
2557 * src/lex.c: Formatting changes.
2558 (safegetc): Rename as...
2561 2000-10-02 Akim Demaille <akim@epita.fr>
2563 * src/lalr.h: New file.
2564 Propagate its inclusion instead of prototypes and `extern'.
2565 * src/lalr.c: Formatting changes, topological sorting etc.
2567 2000-10-02 Akim Demaille <akim@epita.fr>
2569 * src/output.c (token_actions): Introduce a temporary array,
2570 YYDEFACT, that makes it possible for this function to use
2573 2000-10-02 Akim Demaille <akim@epita.fr>
2575 `user_toknums' is output as a `short[]' in `output.c', while it is
2576 defined as a `int[]' in `reader.c'. For consistency with the
2577 other output tables, `user_toknums' is now defined as a table of
2580 * src/reader.c (user_toknums): Be a short table instead of an int
2582 Adjust dependencies.
2584 Factor the short table outputs.
2586 * src/output.c (output_short_table): New function.
2587 * src/output.c (output_gram, output_stos, output_rule_data)
2588 (output_base, output_table, output_check): Use it.
2590 2000-10-02 Akim Demaille <akim@epita.fr>
2592 * src/output.c (output): Topological sort of the functions, in
2593 order to get rid of the `static' prototypes.
2594 No longer use `register'.
2595 * src/output.h: New file.
2596 Propagate its inclusion in files explicitly prototyping functions
2599 2000-09-21 Akim Demaille <akim@epita.fr>
2601 * src/atgeneral.m4: Update from Autoconf.
2603 2000-09-21 Akim Demaille <akim@epita.fr>
2605 * src/closure.h: New file.
2606 * src/closure.c: Formatting changes, topological sort over the
2607 functions, use of closure.h.
2608 (initialize_closure, finalize_closure): Rename as...
2609 (new_closure, free_closure): these. Adjust dependencies.
2610 * src/LR0.c: Formatting changes, topological sort, use of
2612 (initialize_states): Rename as...
2614 * src/Makefile.am (noinst_HEADERS): Adjust.
2616 2000-09-20 Akim Demaille <akim@epita.fr>
2618 * src/acconfig.h: Don't protect config.h against multiple
2620 Don't define PARAMS.
2621 * src/system.h: Define PARAMS.
2622 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2623 purpose of config.h. system.h must not try to fix wrong
2624 definitions in config.h.
2626 2000-09-20 Akim Demaille <akim@epita.fr>
2628 * src/derives.h: New file.
2629 * src/main.c, src/derives.h: Use it.
2631 * src/Makefile.am (noinst_HEADERS): Adjust.
2633 2000-09-20 Akim Demaille <akim@epita.fr>
2635 * tests/atgeneral.m4: Update from Autoconf.
2636 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2637 (AT_CHECK_CALC): New macros.
2638 Use these macros to test bison with options `', `--raw',
2639 `--debug', `--yacc', `--yacc --debug'.
2641 2000-09-19 Akim Demaille <akim@epita.fr>
2643 * src/output.c: Formatting changes.
2644 * src/machine.h: Remove, leaving its contents in...
2645 * src/system.h: here.
2647 Adjust all dependencies on stdio.h and machine.h.
2648 * src/getargs.h: New file.
2649 Let all `extern' declarations about getargs.c be replaced with
2650 inclusion of `getargs.h'.
2651 * src/Makefile.am (noinst_HEADERS): Adjust.
2653 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2655 (yyerror): Returns void, not int.
2656 * doc/bison.texinfo: Formatting changes.
2658 2000-09-19 Akim Demaille <akim@epita.fr>
2660 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2663 2000-09-18 Akim Demaille <akim@epita.fr>
2665 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2666 * src/Makefile.am (INCLUDES): Don't.
2667 Be ready to fetch headers in lib/.
2669 2000-09-18 Akim Demaille <akim@epita.fr>
2671 * doc/bison.texinfo: Update the copyright.
2672 ANSIfy and GNUify the examples.
2673 Remove the old menu.
2675 2000-09-18 Akim Demaille <akim@epita.fr>
2677 First set of tests: use the `calc' example from the documentation.
2679 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2680 is defined only when YYDEBUG is.
2681 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2682 * src/files.c (tryopen, tryclose): Formatting changes.
2683 Move to the top and be static.
2684 * src/reader.c (read_signed_integer): Likewise.
2685 * tests/calc.m4: New file.
2686 * Makefile.am, suite.m4: Adjust.
2687 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2689 2000-09-18 Akim Demaille <akim@epita.fr>
2691 Add support for an Autotest test suite for Bison.
2693 * m4/m4.m4, m4/atconfig.m4: New files.
2694 * m4/Makefile.am (EXTRA_DIST): Adjust.
2695 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2697 * src/getargs.c: Display a more standard --version message.
2698 * src/reader.c (reader): Formatting changes.
2699 No longer depend upon VERSION_STRING.
2700 * configure.in: No longer use `dnl'.
2701 Set up the test suite and the new directory `tests/.
2702 (VERSION_STRING): Remove.
2704 2000-04-14 Akim Demaille <akim@epita.fr>
2706 * src/reader.c (copy_comment2): New function, same as former
2707 `copy_comment', but outputs into two FILE *.
2708 (copy_comment): Use it.
2709 (parse_union_decl): Use it.
2710 (get_type, parse_start_decl): Use the same `invalid' message.
2711 (parse_start_decl, parse_union_decl): Use the same `multiple'
2713 (parse_union_decl, copy_guard, copy_action): Use the same
2714 `unmatched' message.
2715 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2717 2000-03-31 Akim Demaille <akim@epita.fr>
2719 * src/files.c (tryopen, tryclose): Move to the top.
2722 2000-03-31 Akim Demaille <akim@epita.fr>
2724 * src/main.c (main): Don't call `done', exit does it.
2726 2000-03-31 Akim Demaille <akim@epita.fr>
2728 * allocate.c: s/return (foo)/return foo/.
2731 * output.c: Likewise.
2732 * reader.c: Likewise.
2733 * symtab.c: Likewise.
2734 * vmsgetargs.c: Likewise.
2736 2000-03-31 Akim Demaille <akim@epita.fr>
2738 Clean up the error reporting functions.
2740 * src/report.c: New file.
2741 * src/report.h: Likewise.
2742 * src/Makefile.am: Adjust.
2743 * m4/error.m4: New file.
2744 * m4/Makefile.am: Adjust.
2745 * configure.in (jm_PREREQ_ERROR): Call it.
2746 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2748 (fatal, fatals): Remove. All callers use complain.c::fatal.
2749 (warn, warni, warns, warnss, warnss): Remove. All callers use
2750 complain.c::complain.
2751 (toomany): Remove, use fatal instead.
2752 * src/files.c (done): No argument, use complain_message_count.
2753 * src/main.c (main): Register `done' to `atexit'.
2755 * src/getargs.c (usage): More `fputs', less `fprintf'.
2757 2000-03-28 Akim Demaille <akim@epita.fr>
2759 * lib/: New directory.
2760 * Makefile.am (SUBDIRS): Adjust.
2761 * configure.in: Adjust.
2762 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2764 * src/alloca.c: Moved to lib/.
2765 * src/getopt.c: Likewise.
2766 * src/getopt1.c: Likewise.
2767 * src/getopt.h: Likewise.
2768 * src/ansi2knr.c: Likewise.
2769 * src/ansi2knr.1: Likewise.
2770 * src/Makefile.am: Adjust.
2771 * lib/Makefile.am: New file.
2773 2000-03-28 Akim Demaille <akim@epita.fr>
2775 * src/getargs.c (usage): Refresh the help message.
2777 2000-03-17 Akim Demaille <akim@epita.fr>
2779 * src/getopt1.c: Updated from textutils 2.0e
2780 * src/getopt.c: Likewise.
2781 * src/getopt.h: Likewise.
2783 2000-03-17 Akim Demaille <akim@epita.fr>
2785 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2786 the file name, not the whole `#line LINE FILE'.
2788 2000-03-17 Akim Demaille <akim@epita.fr>
2790 On syntax errors, report the token on which we choked.
2792 * src/bison.s1 (yyparse): In the label yyerrlab, when
2793 YYERROR_VERBOSE, add yychar in msg.
2795 2000-03-17 Akim Demaille <akim@epita.fr>
2797 * src/reader.c (copy_at): New function.
2798 (copy_guard): Use it.
2799 (copy_action): Use it.
2801 2000-03-17 Akim Demaille <akim@epita.fr>
2803 Be kind to translators, save some useless translations.
2805 * src/main.c (banner): New function.
2806 (fatal_banner): Use it.
2807 (warn_banner): Use it.
2809 2000-03-17 Akim Demaille <akim@epita.fr>
2811 * src/reader.c (copy_definition): Use copy_string and
2812 copy_comment. Removed now unused `match', `ended',
2814 (copy_comment, copy_string): Moved, to be visible from
2817 2000-03-17 Akim Demaille <akim@epita.fr>
2819 * src/reader.c (copy_string): Declare `static inline'. No
2820 problems with inline, since it is checked by configure.
2821 (copy_comment): Likewise.
2823 2000-03-17 Akim Demaille <akim@epita.fr>
2825 * src/reader.c (packsymbols): Formatting changes.
2827 2000-03-17 Akim Demaille <akim@epita.fr>
2829 * src/reader.c (copy_comment): New function, factored out from:
2830 (copy_action): Use it. Removed now unused `match', `ended',
2832 (copy_guard): Likewise.
2834 2000-03-17 Akim Demaille <akim@epita.fr>
2836 * src/reader.c (copy_string): New function, factored out from:
2837 (copy_action): Use it.
2838 (copy_guard): Likewise.
2840 2000-03-17 Akim Demaille <akim@epita.fr>
2842 Change the handling of @s so that they behave exactly like $s.
2843 There is now a pseudo variable @$ (readble and writable), location
2844 of the lhs of the rule (by default ranging from the location of
2845 the first symbol of the rhs, to the location of the last symbol,
2846 or, if the rhs is empty, YYLLOC).
2848 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2850 (yyparse): When providing a default semantic action, provide a
2851 default location action.
2852 (after the $): No longer change `*YYLSP', just stack YYLOC the
2853 same way you stack YYVAL.
2854 * src/reader.c (read_declarations): Use warns.
2855 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2856 (copy_action, case '@'): Likewise.
2857 Use a standard error message, to save useless work from
2860 2000-03-17 Akim Demaille <akim@epita.fr>
2862 * src/bison.s1: Formatting and cosmetics changes.
2863 * src/reader.c: Likewise.
2864 Update the Copyright notice.
2866 2000-03-17 Akim Demaille <akim@epita.fr>
2868 * src/bison.s1 (#line): All set to `#line' only, since the
2869 Makefile now handles them.
2871 2000-03-16 Akim Demaille <akim@epita.fr>
2873 * src/output.c (output_rule_data): Output the documentation of
2875 (Copyright notice): Update.
2878 2000-03-16 Akim Demaille <akim@epita.fr>
2880 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2881 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2882 One `#if YYDEBUG' remains, since it uses variables which are
2883 defined only if `YYDEBUG != 0'.
2885 2000-03-16 Akim Demaille <akim@epita.fr>
2887 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2888 and related variables so that the similarities are highlighted.
2890 2000-03-16 Akim Demaille <akim@epita.fr>
2892 * src/bison.s1: Properly indent CPP directives.
2894 2000-03-16 Akim Demaille <akim@epita.fr>
2896 * src/bison.s1: Properly indent the `alloca' CPP section.
2898 2000-03-16 Akim Demaille <akim@epita.fr>
2900 Do not hard code values of directories in `configure.in'.
2901 Update the `configure' tool chain.
2903 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2905 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2906 (AC_OUTPUT): Add m4/Makefile.
2907 Bump to bison 1.28a, 1.29 has never been released.
2908 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2909 handled via src/Makefile.am.
2910 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2911 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2913 * Makefile.am (SUBDIRS): Add m4.
2914 (ACLOCAL_AM_FLAGS): New variable.
2915 (AUTOMAKE_OPTIONS): Add check-news.
2916 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2917 the proper line number and file name.
2918 (DEFS): Propagate the location of bison library files and of the
2920 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2922 * acinclude.m4: Remove, replaced by the directory m4.
2923 * m4/Makefile.am (EXTRA_DIST): New variable.
2924 * m4/gettext.m4: New file, from the fileutils.
2925 * m4/lcmessage.m4: Likewise
2926 * m4/progtest.m4: Likewise.
2927 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2929 2000-03-10 Akim Demaille <akim@epita.fr>
2932 Formatting changes of various comments.
2933 Respect the GNU coding standards at various places.
2934 Don't use `_()' when no translation is needed.
2936 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2939 OS/2 honors TMPDIR environment variable.
2941 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2943 * doc/bison.texinfo: Tweaked spelling and grammar.
2945 Removed reference to price of printed copy.
2946 Mention BISON_SIMPLE and BISON_HAIRY.
2948 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2950 * configure.in, NEWS:
2951 Bison 1.29 released.
2953 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2955 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2956 Added reference card.
2958 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2960 * po/ru.po: Added Russian translation.
2962 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2964 * configure.in: Added Russian translation.
2966 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2968 * configure.in, NEWS, README:
2969 Released version 1.28.
2971 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2974 Squashed redefinition warning on some systems.
2976 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2977 Have configure build version string instead of relying on ANSI string
2980 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2982 * po/POTFILES.in: Got rid of version.c.
2984 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2986 * acconfig.h, configure.in:
2987 Have configure build version string instead of relying on ANSI string
2990 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2993 Dropped mention of `+' for long-named options.
2995 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2997 * src/files.c: Added <unistd.h> for unlink().
2999 * src/Makefile.am, src/system.h:
3002 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3004 * README: Added a FAQ list.
3006 * configure.in, acconfig.h:
3009 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3011 * doc/FAQ, doc/Makefile.am:
3014 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3016 * src/alloc.h, src/symtab.h, src/version.c:
3017 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3019 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3021 * src/.cvsignore, src/Makefile.am:
3022 Reorganized: sources in `src', documentation in `doc'.
3024 * src/lex.c (literalchar):
3025 fixed the code for escaping double quotes (thanks
3028 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3030 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3031 Adjusted paths to reflect directory reorganization.
3033 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3035 * doc/.cvsignore, doc/Makefile.am:
3036 Reorganized: sources in `src', documentation in `doc'.
3038 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3041 Updated AC_INIT file to reflect directory reorganization.
3043 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3044 Reorganized: sources in `src', documentation in `doc'.
3046 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3049 Don't declare calloc() and realloc() if not necessary.
3051 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3053 * configure.in, acconfig.h, acinclude.m4:
3054 Don't declare calloc() and realloc() if not necessary.
3056 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3058 * po/.cvsignore: Added i18n support.
3060 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3062 * acconfig.h, configure.in, Makefile.am:
3065 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3067 * src/bison.s1: Fixed #line numbers.
3069 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3071 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3072 Added PO files from Translation Project.
3074 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3077 Added support for non-ANSI compilers (ansi2knr).
3079 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3081 * configure.in: Bumped version number to 1.27.
3084 Added `bison.simple' to list of files removed by `make distclean'.
3086 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3088 * src/files.c, src/files.h:
3089 Defined locations of parser files in config.h instead of Makefile.
3091 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3093 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3094 Defined locations of parser files in config.h instead of Makefile.
3096 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3099 Removed inappropriate use of $< macro.
3101 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3103 * po/Makefile.in.in, po/POTFILES.in:
3104 Add `po' directory skeleton.
3106 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3108 * README: Document help-bison list.
3110 * configure.in: Add check for mkstemp().
3112 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3114 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3115 Hush a few compiler warnings.
3118 Add tryclose(), which verifies that fclose was successful.
3119 Hush a couple of compiler warnings.
3121 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3123 * Makefile.am, OChangeLog:
3124 ChangeLog is now automatically generated. Include the old version as
3127 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3129 * 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:
3132 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3134 * doc/bison.texinfo: Fix formatting glitch.
3136 * doc/bison.texinfo: Update FSF address.
3138 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3140 * acconfig.h: Update FSF address.
3142 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3145 Don't define PACKAGE here, since config.h defines it.
3147 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3149 * src/reader.c: Update copyright date.
3152 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3153 favor of output directly to stderr (avoids buffer overruns).
3155 * src/reader.c: Some checks for premature EOF.
3157 * 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:
3158 Use prototypes if the compiler understands them.
3160 * src/files.c: Honor TMPDIR on Unix hosts.
3161 Use prototypes if the compiler understands them.
3164 Fix a couple of buffer overrun bugs.
3165 Use prototypes if the compiler understands them.
3167 * src/system.h: Include unistd.h and ctype.h.
3168 Use #ifdef instead of #if for NLS symbols.
3170 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3172 * doc/bison.texinfo:
3173 Delete comment "consider using @set for edition number, etc..." since
3174 we now are doing so.
3176 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3179 Use prototypes if the compiler understands them.
3181 * NEWS: Document 1.26 highlights.
3183 * Makefile.am: Require Automake 1.3 or later.
3186 Use prototypes if the compiler understands them.
3188 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3191 Use VERSION symbol from automake for version number.
3193 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3195 * acconfig.h, configure.in, version.cin:
3196 Use VERSION symbol from automake for version number.
3198 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3201 Distribute original version of simple parser (bison.s1), not built
3202 version (bison.simple).
3204 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3206 * doc/bison.texinfo: Add info dir entry.
3208 * doc/bison.texinfo:
3209 Let automake put version number into documentation.
3211 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3213 * src/bison.cld, src/build.com, src/vmshlp.mar:
3214 Add non-RCS files from /gd/gnu/bison.
3216 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3219 Document the BISON_HAIRY and BISON_SIMPLE variables.
3221 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3223 * src/version.c: Build version.c automatically.
3226 Fix token numbering (used to start at 258, not 257).
3228 * src/system.h: Include config.h.
3230 * src/getargs.c: Update bug report address.
3232 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3233 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3235 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3238 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3240 * configure.in, version.cin:
3241 Build version.c automatically.
3243 * AUTHORS: Add AUTHORS file.
3245 * README: Update bug report address.
3248 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3250 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3253 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3255 * doc/bison.texinfo: Clean up some formatting.
3257 1998-05-05 Richard Stallman <rms@gnu.org>
3259 * doc/bison.texinfo:
3260 Explain better why to make a pure parser.
3262 1998-01-05 Richard Stallman <rms@gnu.org>
3264 * src/files.c (openfiles):
3265 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3266 find a temporary directory, if possible. Do not unlink files while
3269 1997-08-25 Richard Stallman <rms@gnu.org>
3271 * src/reader.c (stack_offset;):
3272 Change some warni to warns.
3274 * src/lex.c (literalchar): Use warns, not warni.
3276 1997-06-28 Richard Stallman <rms@gnu.org>
3278 * src/bison.s1: Add a Bison version comment.
3280 * src/main.c (fatal, warn, berror):
3283 1997-06-28 Richard Stallman <rms@gnu.org>
3285 * Makefile.in (bison_version): New variable.
3286 (dist): Use that variable.
3287 (bison.s1): Substitute the Bison version into bison.simple.
3289 * bison.simple: Add a Bison version comment.
3291 1997-06-18 Richard Stallman <rms@gnu.org>
3293 * src/main.c (fatal, warn, berror):
3294 Make error messages standard.
3295 (toomany): Improve error message text.
3297 * 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:
3298 new.h renamed to alloc.h.
3300 1997-06-18 Richard Stallman <rms@gnu.org>
3302 * Makefile.in: new.h renamed to alloc.h.
3304 1997-05-24 Richard Stallman <rms@gnu.org>
3306 * src/lex.c (literalchar):
3307 Fix the code for escaping \, " and '.
3309 (lex): Avoid trouble when there are many chars
3310 to discard in a char literal with just several chars in it.
3312 1997-05-17 Richard Stallman <rms@gnu.org>
3315 Use malloc, if using alloca is troublesome.
3316 (YYSTACK_USE_ALLOCA): New flag macro.
3317 Define it for some systems and compilers.
3318 (YYSTACK_ALLOC): New macro.
3319 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3320 If it was malloc'd, free it.
3322 1997-05-17 Richard Stallman <rms@gnu.org>
3325 Use malloc, if using alloca is troublesome.
3326 (YYSTACK_USE_ALLOCA): New flag macro.
3327 Define it for some systems and compilers.
3328 (YYSTACK_ALLOC): New macro.
3329 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3330 If it was malloc'd, free it.
3332 1997-04-23 Richard Stallman <rms@gnu.org>
3335 (alloca) [__hpux]: Always define as __builtin_alloca.
3337 1997-04-23 Richard Stallman <rms@gnu.org>
3340 (alloca) [__hpux]: Always define as __builtin_alloca.
3342 1997-04-22 Richard Stallman <rms@gnu.org>
3345 [__hpux]: Include alloca.h (right for HPUX 10)
3346 instead of declaring alloca (right for HPUX 9).
3348 * src/bison.s1 (__yy_memcpy):
3349 Declare arg `count' as unsigned int.
3350 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3352 1997-04-22 Richard Stallman <rms@gnu.org>
3355 [__hpux]: Include alloca.h (right for HPUX 10)
3356 instead of declaring alloca (right for HPUX 9).
3358 * bison.simple (__yy_memcpy):
3359 Declare arg `count' as unsigned int.
3360 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3362 1997-01-03 Richard Stallman <rms@gnu.org>
3364 * src/allocate.c: [__STDC__ or _MSC_VER]:
3365 Declare calloc and realloc to return void *.
3367 1997-01-02 Richard Stallman <rms@gnu.org>
3370 [_MSC_VER]: Include stdlib.h and process.h.
3371 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3373 * src/main.c (main): Return FAILURE as a value.
3374 (printable_version): Declare arg as int, not char.
3376 1997-01-02 Richard Stallman <rms@gnu.org>
3378 * Makefile.in (dist):
3379 Explicitly check for symlinks, and copy them.
3381 1996-12-19 Richard Stallman <rms@gnu.org>
3384 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3386 1996-12-18 Paul Eggert <eggert@gnu.org>
3388 * src/bison.s1 (yyparse):
3389 If __GNUC__ and YYPARSE_PARAM are both defined,
3390 declare yyparse to have a void * argument.
3392 1996-12-18 Paul Eggert <eggert@gnu.org>
3394 * bison.simple (yyparse):
3395 If __GNUC__ and YYPARSE_PARAM are both defined,
3396 declare yyparse to have a void * argument.
3398 1996-12-17 Richard Stallman <rms@gnu.org>
3400 * src/reduce.c (nbits): Add some casts.
3402 1996-08-12 Richard Stallman <rms@gnu.org>
3404 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3406 1996-08-12 Richard Stallman <rms@gnu.org>
3408 * bison.simple: Test _MSDOS as well as _MSDOS_.
3410 1996-07-31 Richard Stallman <rms@gnu.org>
3413 [__sun && __i386]: Include alloca.h.
3415 1996-07-31 Richard Stallman <rms@gnu.org>
3418 [__sun && __i386]: Include alloca.h.
3420 1996-07-30 Richard Stallman <rms@gnu.org>
3422 * src/bison.s1: Comment change.
3424 * src/bison.s1: Test _MSDOS_, not MSDOS.
3426 1996-07-30 Richard Stallman <rms@gnu.org>
3428 * bison.simple: Comment change.
3430 * bison.simple: Test _MSDOS_, not MSDOS.
3432 1996-06-01 Richard Stallman <rms@gnu.org>
3434 * 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:
3435 Insert `_' macro around many string constants.
3438 Insert `_' macro around many string constants.
3440 (main): Call setlocale, bindtextdomain and textdomain.
3442 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3443 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3444 [ENABLE_NLS]: Include libintl.h.
3445 [ENABLE_NLS] (gettext): Define.
3446 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3447 (N_, PACKAGE, LOCALEDIR): New macros.
3449 1996-06-01 Richard Stallman <rms@gnu.org>
3451 * POTFILES.in: New file.
3453 * Makefile.in (allocate.o):
3454 Define target explicitly.
3456 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3457 (LDFLAGS): Set to @LDFLAGS@.
3458 (configure): Run autoconf only if preceding `cd' succeeds.
3459 (bison.s1): Redirect output to temporary file then move the
3460 temporary to the target, rather than redirecting directly to bison.s1.
3461 (clean): Remove config.status and config.log.
3462 (distclean): Don't remove config.status here.
3464 1996-05-12 Richard Stallman <rms@gnu.org>
3467 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3469 1996-05-12 Richard Stallman <rms@gnu.org>
3472 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3474 1996-05-11 Richard Stallman <rms@gnu.org>
3476 * src/bison.s1 (__yy_memcpy):
3477 Really reorder the args, as was supposedly done on Feb 14 1995.
3478 (yyparse): Calls changed accordingly.
3480 1996-05-11 Richard Stallman <rms@gnu.org>
3482 * Makefile.in (dist): Don't use $(srcdir).
3484 * bison.simple (__yy_memcpy):
3485 Really reorder the args, as was supposedly done on Feb 14 1995.
3486 (yyparse): Calls changed accordingly.
3488 1996-01-27 Richard Stallman <rms@gnu.org>
3490 * src/output.c (output_rule_data):
3491 Test YYERROR_VERBOSE in the conditional
3492 around the definition of ttyname.
3494 1995-12-29 Richard Stallman <rms@gnu.org>
3497 Fix line numbers in #line commands.
3499 1995-12-29 Richard Stallman <rms@gnu.org>
3502 Fix line numbers in #line commands.
3504 1995-12-27 Richard Stallman <rms@gnu.org>
3506 * src/bison.s1 (YYPARSE_PARAM_DECL):
3507 In C++, make it always null.
3508 (YYPARSE_PARAM_ARG): New macro.
3509 (yyparse): Use YYPARSE_PARAM_ARG.
3511 1995-12-27 Richard Stallman <rms@gnu.org>
3513 * bison.simple (YYPARSE_PARAM_DECL):
3514 In C++, make it always null.
3515 (YYPARSE_PARAM_ARG): New macro.
3516 (yyparse): Use YYPARSE_PARAM_ARG.
3518 1995-11-29 Richard Stallman <rms@gnu.org>
3520 * doc/bison.texinfo:
3521 Describe literal string tokens, %raw, %no_lines, %token_table.
3523 1995-11-29 Daniel Hagerty <hag@gnu.org>
3525 * doc/bison.texinfo: Fixed update date
3527 1995-10-16 Richard Stallman <rms@gnu.org>
3529 * src/version.c: Version 1.25.
3531 1995-10-16 Richard Stallman <rms@gnu.org>
3533 * NEWS: *** empty log message ***
3535 1995-10-16 Richard Stallman <rms@gnu.org>
3537 * doc/bison.1, doc/bison.rnh:
3540 1995-10-15 Richard Stallman <rms@gnu.org>
3542 * src/vmsgetargs.c, src/getargs.c:
3543 Added -n, -k, and -raw switches.
3544 (noparserflag, toknumflag, rawtoknumflag): New variables.
3546 * src/symtab.h (SALIAS):
3547 New #define for adding aliases to %token.
3548 (struct bucket): Added `alias' field.
3550 * src/reduce.c (reduce_grammar):
3551 Revise error message.
3552 (print_notices): Remove final `.' from error message.
3554 * src/reader.c (reader_output_yylsp):
3556 (readgram): Use `#if 0' around code that accepted %command
3557 inside grammar rules: The documentation doesn't allow it,
3558 and it will fail since the %command processors scan for the next %.
3559 (parse_token_decl): Extended the %token
3560 declaration to allow a multi-character symbol as an alias.
3561 (parse_thong_decl): New function.
3562 (read_declarations): Added %thong declarations.
3563 (read_declarations): Handle NOOP to deal with allowing
3564 % declarations as another means to specify the flags.
3565 (readgram): Allow %prec prior to semantics embedded in a rule.
3566 (skip_to_char, read_declarations, copy_definition)
3567 (parse_token_decl, parse_start_decl, parse_type_decl)
3568 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3569 (get_type_name, copy_guard, copy_action, readgram)
3570 (get_type, packsymbols): Revised most error messages.
3571 Changed `fatal' to `warnxxx' to avoid aborting for error.
3572 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3573 (read_declarations): Improve the error message for
3574 an invalid character. Do not abort.
3575 (read_declarations, copy_guard, copy_action): Use
3576 printable_version to avoid unprintable characters in printed output.
3577 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3578 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3579 Allow the type of a non-terminal can be given
3580 more than once, as long as all specifications give the same type.
3583 (output_headers, output_trailers, output, output_gram)
3584 (output_rule_data): Implement noparserflag variable.
3585 Implement toknumflag variable.
3586 (output): Call reader_output_yylsp to output LTYPESTR.
3588 * src/main.c (main):
3589 If reader sees an error, don't process the grammar.
3590 (fatals): Updated to not use VARARGS1.
3591 (printable_version, int_to_string, warn, warni, warns, warnss)
3592 (warnsss): New error reporting functions. Avoid abort for error.
3595 Added THONG and NOOP for alias processing.
3596 Added SETOPT for the new code that allows setting options with %flags.
3599 Include getopt.h. Add some extern decls.
3600 (safegetc): New function to deal with EOF gracefully.
3601 (literalchar); new function to deal with reading \ escapes.
3602 (lex): Use literalchar.
3603 (lex): Implemented "..." tokens.
3604 (literalchar, lex, parse_percent_token): Made tokenbuffer
3605 always contain the token. This includes growing the token
3606 buffer while reading an integer.
3607 (parse_percent_token): Replaced if-else statement with percent_table.
3608 (parse_percent_token): Added % declarations as another
3609 way to specify the flags -n, -l, and -r. Also added hooks for
3610 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3611 major changes to files.c.
3612 (lex) Retain in the incoming stream a character following
3614 (skip_white_space, lex): Revised most error messages
3615 and changed fatal to warn to avoid aborting.
3616 (percent_table): Added %thong declarations.
3618 * src/gram.h: Comment changes.
3620 * src/files.c (openfiles, open_extra_files, done):
3622 and actfile file. Handle noparserflag. Both for -n switch.
3624 * src/conflicts.c (resolve_sr_conflict):
3625 Remove use of alloca.
3627 1995-06-01 Jim Meyering <meyering@gnu.org>
3629 * doc/bison.texinfo: *** empty log message ***
3631 1995-05-06 Richard Stallman <rms@gnu.org>
3633 * src/bison.s1: Comment change.
3635 1995-05-06 Richard Stallman <rms@gnu.org>
3637 * bison.simple: Comment change.
3639 1995-05-03 Richard Stallman <rms@gnu.org>
3641 * src/version.c: Version now 1.24.
3643 * src/bison.s1: Change distribution terms.
3645 * src/version.c: Version now 1.23.
3647 1995-05-03 Richard Stallman <rms@gnu.org>
3649 * doc/bison.texinfo:
3650 Rewrite "Conditions for Using Bison".
3651 Update version to 1.24.
3653 1995-05-03 Richard Stallman <rms@gnu.org>
3655 * bison.simple: Change distribution terms.
3657 1995-02-23 Richard Stallman <rms@gnu.org>
3659 * src/files.c: Test __VMS_POSIX as well as VMS.
3661 1995-02-14 Jim Meyering <meyering@gnu.org>
3663 * src/bison.s1 (__yy_memcpy):
3664 Renamed from __yy_bcopy to avoid
3665 confusion. Reverse FROM and TO arguments to be consistent with
3668 1995-02-14 Jim Meyering <meyering@gnu.org>
3670 * bison.simple (__yy_memcpy):
3671 Renamed from __yy_bcopy to avoid
3672 confusion. Reverse FROM and TO arguments to be consistent with
3675 1994-11-10 David J. MacKenzie <djm@gnu.org>
3681 * Makefile.in (DISTFILES): Include NEWS.
3683 * Makefile.in (DISTFILES):
3684 Include install-sh, not install.sh.
3686 * configure.in: Update to Autoconf v2 macro names.
3688 1994-10-05 David J. MacKenzie <djm@gnu.org>
3690 * Makefile.in: fix typo
3692 * Makefile.in (prefix, exec_prefix):
3693 Let configure set them.
3695 1994-09-28 David J. MacKenzie <djm@gnu.org>
3697 * Makefile.in: Set datadir to $(prefix)/share.
3699 1994-09-15 Richard Stallman <rms@gnu.org>
3702 Update copyright notice and GPL version.
3704 1994-09-15 Richard Stallman <rms@gnu.org>
3707 Update copyright notice and GPL version.
3709 1994-07-12 Richard Stallman <rms@gnu.org>
3711 * src/reduce.c, src/reader.c:
3714 1994-05-05 David J. MacKenzie <djm@gnu.org>
3716 * Makefile.in: entered into RCS
3718 1994-03-26 Richard Stallman <rms@gnu.org>
3720 * src/bison.s1: entered into RCS
3722 1994-03-26 Richard Stallman <rms@gnu.org>
3724 * bison.simple: entered into RCS
3726 1994-03-25 Richard Stallman <rms@gnu.org>
3728 * src/main.c: entered into RCS
3730 1994-03-24 Richard Stallman <rms@gnu.org>
3732 * src/conflicts.c: entered into RCS
3734 1994-01-02 Richard Stallman <rms@gnu.org>
3736 * Makefile.in: *** empty log message ***
3738 1993-11-21 Richard Stallman <rms@gnu.org>
3740 * src/bison.s1: *** empty log message ***
3742 1993-11-21 Richard Stallman <rms@gnu.org>
3744 * doc/bison.texinfo: entered into RCS
3746 * doc/bison.texinfo: *** empty log message ***
3748 1993-11-21 Richard Stallman <rms@gnu.org>
3750 * bison.simple: *** empty log message ***
3752 1993-10-25 David J. MacKenzie <djm@gnu.org>
3754 * doc/bison.texinfo: *** empty log message ***
3756 1993-10-19 Richard Stallman <rms@gnu.org>
3758 * src/bison.s1: *** empty log message ***
3760 1993-10-19 Richard Stallman <rms@gnu.org>
3762 * bison.simple: *** empty log message ***
3764 1993-10-14 Richard Stallman <rms@gnu.org>
3766 * src/bison.s1: *** empty log message ***
3768 1993-10-14 Richard Stallman <rms@gnu.org>
3770 * bison.simple: *** empty log message ***
3772 1993-09-14 David J. MacKenzie <djm@gnu.org>
3774 * doc/bison.texinfo: *** empty log message ***
3776 1993-09-13 Noah Friedman <friedman@gnu.org>
3778 * Makefile.in: *** empty log message ***
3780 1993-09-10 Richard Stallman <rms@gnu.org>
3782 * src/conflicts.c: *** empty log message ***
3784 * src/system.h: entered into RCS
3786 1993-09-10 Richard Stallman <rms@gnu.org>
3788 * doc/bison.1: entered into RCS
3790 1993-09-06 Noah Friedman <friedman@gnu.org>
3792 * src/version.c: entered into RCS
3794 1993-09-06 Noah Friedman <friedman@gnu.org>
3796 * Makefile.in: *** empty log message ***
3798 1993-07-30 David J. MacKenzie <djm@gnu.org>
3800 * Makefile.in: *** empty log message ***
3802 1993-07-24 Richard Stallman <rms@gnu.org>
3804 * src/bison.s1: *** empty log message ***
3806 1993-07-24 Richard Stallman <rms@gnu.org>
3808 * bison.simple: *** empty log message ***
3810 1993-07-08 David J. MacKenzie <djm@gnu.org>
3812 * Makefile.in: *** empty log message ***
3814 1993-07-04 Richard Stallman <rms@gnu.org>
3816 * src/bison.s1: *** empty log message ***
3818 1993-07-04 Richard Stallman <rms@gnu.org>
3820 * bison.simple: *** empty log message ***
3822 1993-06-26 David J. MacKenzie <djm@gnu.org>
3824 * src/getargs.c: entered into RCS
3826 1993-06-26 David J. MacKenzie <djm@gnu.org>
3828 * doc/bison.texinfo: *** empty log message ***
3830 * doc/bison.1: New file.
3832 1993-06-25 Richard Stallman <rms@gnu.org>
3834 * src/getargs.c: New file.
3836 1993-06-16 Richard Stallman <rms@gnu.org>
3838 * src/bison.s1: *** empty log message ***
3840 1993-06-16 Richard Stallman <rms@gnu.org>
3842 * bison.simple: *** empty log message ***
3844 1993-06-03 Richard Stallman <rms@gnu.org>
3846 * src/bison.s1: New file.
3848 1993-06-03 Richard Stallman <rms@gnu.org>
3850 * doc/bison.texinfo: *** empty log message ***
3852 1993-06-03 Richard Stallman <rms@gnu.org>
3854 * bison.simple: New file.
3856 1993-05-19 Richard Stallman <rms@gnu.org>
3858 * doc/bison.texinfo: New file.
3860 1993-05-07 Noah Friedman <friedman@gnu.org>
3862 * Makefile.in: *** empty log message ***
3864 1993-04-28 Noah Friedman <friedman@gnu.org>
3866 * src/reader.c: *** empty log message ***
3868 1993-04-23 Noah Friedman <friedman@gnu.org>
3870 * src/alloc.h: entered into RCS
3872 1993-04-20 David J. MacKenzie <djm@gnu.org>
3874 * src/version.c: *** empty log message ***
3876 * src/files.c, src/allocate.c:
3879 * src/reader.c: *** empty log message ***
3881 * src/lex.c: entered into RCS
3883 * src/conflicts.c: New file.
3885 * src/symtab.c: entered into RCS
3887 * src/alloc.h: New file.
3889 * src/LR0.c: entered into RCS
3891 1993-04-18 Noah Friedman <friedman@gnu.org>
3893 * src/reader.c: New file.
3895 * src/version.c: *** empty log message ***
3897 1993-04-18 Noah Friedman <friedman@gnu.org>
3899 * Makefile.in: *** empty log message ***
3901 1993-04-17 Noah Friedman <friedman@gnu.org>
3903 * Makefile.in: *** empty log message ***
3905 1993-04-15 Richard Stallman <rms@gnu.org>
3907 * src/main.c, src/files.c:
3910 1993-04-15 Noah Friedman <friedman@gnu.org>
3912 * configure.in: entered into RCS
3914 * configure.in: *** empty log message ***
3916 * configure.in: New file.
3918 1993-04-14 Richard Stallman <rms@gnu.org>
3920 * Makefile.in: New file.
3922 1993-04-13 Richard Stallman <rms@gnu.org>
3924 * src/version.c: New file.
3926 1993-03-25 Richard Stallman <rms@gnu.org>
3928 * src/output.c: entered into RCS
3930 1992-09-25 Richard Stallman <rms@gnu.org>
3932 * configure.bat: entered into RCS
3934 1992-06-22 Richard Stallman <rms@gnu.org>
3936 * src/vmsgetargs.c: entered into RCS
3938 1992-06-22 Richard Stallman <rms@gnu.org>
3940 * doc/bison.rnh: entered into RCS
3942 1992-04-20 David J. MacKenzie <djm@gnu.org>
3944 * README: entered into RCS
3946 1992-01-22 Richard Stallman <rms@gnu.org>
3948 * src/machine.h: entered into RCS
3950 1991-12-21 Richard Stallman <rms@gnu.org>
3952 * src/lalr.c, src/closure.c:
3955 1991-12-20 Richard Stallman <rms@gnu.org>
3957 * src/state.h: entered into RCS
3959 1991-12-18 Richard Stallman <rms@gnu.org>
3961 * src/print.c, src/nullable.c, src/derives.c:
3964 1991-11-03 David J. MacKenzie <djm@gnu.org>
3966 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3969 1988-09-09 Richard Stallman <rms@gnu.org>
3971 * src/bison.hairy: entered into RCS
3973 1987-12-16 Richard Stallman <rms@gnu.org>
3975 * REFERENCES: entered into RCS