1 2001-12-05 Akim Demaille <akim@epita.fr>
3 * src/conflicts.c (print_reductions): Improve variable locality.
6 2001-12-05 Akim Demaille <akim@epita.fr>
8 * src/conflicts.c (print_reductions): Pessimize, but clarify.
11 2001-12-05 Akim Demaille <akim@epita.fr>
13 * src/conflicts.c (print_reductions): Improve variable locality.
16 2001-12-05 Akim Demaille <akim@epita.fr>
18 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
19 * src/lalr.c: Use them.
22 2001-12-05 Akim Demaille <akim@epita.fr>
24 * src/LR0.c (augment_automaton): Formatting changes.
25 Better variable locality.
28 2001-12-05 Akim Demaille <akim@epita.fr>
30 * src/lalr.c (matrix_print): New.
32 Use arrays instead of pointers.
34 2001-12-05 Akim Demaille <akim@epita.fr>
36 * src/lalr.c (maxrhs): Move to...
37 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
38 * src/lalr.c (build_relations): Adjust.
40 2001-12-05 Akim Demaille <akim@epita.fr>
42 * src/lalr.c (transpose): Free the memory allocated to the
43 argument, as it is replaced by the results by the unique caller.
44 (build_relations): Merely invoke transpose: it handles the memory
46 Improve variable locality.
47 Avoid variables used as mere abbreviations.
48 (compute_lookaheads): Use arrays instead of pointers.
50 2001-12-05 Akim Demaille <akim@epita.fr>
52 * src/lalr.c (initialize_F): Improve variable locality.
53 Avoid variables used as mere abbreviations.
55 2001-12-05 Akim Demaille <akim@epita.fr>
57 * src/derives.c (print_derives): Display the ruleno.
58 * src/lalr.c (initialize_F, transpose): Better variable locality
59 to improve readability.
60 Avoid variables used as mere abbreviations.
62 2001-12-05 Akim Demaille <akim@epita.fr>
64 * src/lalr.c (traverse): Use arrays instead of pointers.
66 2001-12-05 Akim Demaille <akim@epita.fr>
68 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
69 the handling of squeue.
70 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
73 2001-12-05 Akim Demaille <akim@epita.fr>
75 Because useless nonterminals are now kept alive (instead of being
76 `destroyed'), we now sometimes examine them, and store information
77 related to them. Hence we need to know their number, and adjust
80 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
82 * src/LR0.c (allocate_itemsets): The memory allocated to
83 `symbol_count' was used for two different purpose: once to count
84 the number of occurrences of each symbol, and later reassigned to
85 `shift_symbol', containing the symbol that can be shifted from a
87 Deobfuscate, i.e., allocate, use and free `symbol_count' here
89 (new_itemsets): Allocate `shift_symbol' here.
90 (allocate_itemsets): symbol_count includes useless nonterminals.
92 (free_storage): Use `free', not `XFREE', for pointers that cannot
96 2001-12-05 Akim Demaille <akim@epita.fr>
98 * src/nullable.c (set_nullable): Deobfuscate the handling of
100 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
103 2001-12-05 Akim Demaille <akim@epita.fr>
105 * src/gram.c, src/gram.h (ritem_print): New.
106 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
107 (This useless function was defined only to work around VMS linkers
108 that can't handle compilation units with variables only).
109 * src/reduce.c (dump_grammar): Use it to trace the construction of
112 2001-12-04 Paul Eggert <eggert@twinsun.com>
114 * src/bison.simple (union yyalloc): Change member names
115 to be the same as the stack names.
116 (yyparse): yyptr is now union yyalloc *, not char *.
117 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
118 and may generate better code on some machines.
119 (yystpcpy): Use prototype if __STDC__ is defined, not just
120 if __cplusplus is defined.
122 2001-11-30 Akim Demaille <akim@epita.fr>
124 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
125 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
126 Gettext doesn't compile cleanly, and dies with -Werror.
127 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
128 Include WARNING_CFLAGS here.
129 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
130 before being defined.
132 2001-11-27 Paul Eggert <eggert@twinsun.com>
134 * lib/quotearg.h (quotearg_n, quotearg_n_style):
135 First arg is int, not unsigned.
136 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
137 (SIZE_MAX, UINT_MAX): New macros.
138 (quotearg_n_options): Abort if N is negative.
139 Avoid overflow check on hosts where size_t is 64 bits and int
140 is 32 bits, as overflow is impossible there.
141 Fix off-by-one typo that caused unnecessary reallocation.
143 2001-11-29 Paul Eggert <eggert@twinsun.com>
145 Name space cleanup in generated parser.
147 * doc/bison.texinfo (Bison Parser): Discuss system headers
148 and their effect on the user name space.
151 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
152 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
153 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
155 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
156 on user names when possible.
158 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
159 Simplify test for whather <alloca.h> exists.
161 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
163 (<stdio.h>): Include if YYDEBUG.
165 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
166 ! defined (yyoverflow) && ! defined (yymemcpy).
168 (yymemcpy, yyparse): Rename local variables as needed so that
169 they all begin with 'yy'.
171 (yystrlen, yystpcpy): New functions.
173 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
176 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
177 instead of relying on string.h functions. Use YYSTACK_ALLOC
178 and YYSTACK_FREE instead of malloc and free.
180 2001-11-30 Akim Demaille <akim@epita.fr>
182 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
183 before their first uses.
184 (YYBISON, YYPURE): Move to the top of the output.
186 2001-11-30 Akim Demaille <akim@epita.fr>
188 * tests/reduce.at (Useless Nonterminals): Fix.
190 2001-11-30 Akim Demaille <akim@epita.fr>
192 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
193 if body instead of `;' to pacify GCC's warnings.
195 2001-11-30 Akim Demaille <akim@epita.fr>
197 Instead of mapping the LHS of unused rules to -1, keep the LHS
198 valid, but flag the rules as invalid.
200 * src/gram.h (rule_t): `useful' is a new member.
201 * src/print.c (print_grammar): Adjust.
202 * src/derives.c (set_derives): Likewise.
203 * src/reader.c (packgram, reduce_output): Likewise.
204 * src/reduce.c (reduce_grammar_tables): Likewise.
205 * tests/reduce.at (Underivable Rules, Useless Rules): New.
207 2001-11-30 Akim Demaille <akim@epita.fr>
209 * src/reduce.c (reduce_output): Formatting changes.
210 * src/print.c (print_results, print_grammar): Likewise.
211 * tests/regression.at (Rule Line Numbers)
212 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
214 2001-11-30 Akim Demaille <akim@epita.fr>
216 * src/reduce.c (nonterminals_reduce): Instead of throwing away
217 useless nonterminals, move them at the end of the symbol arrays.
218 (reduce_output): Adjust.
219 * tests/reduce.at (Useless Nonterminals): Adjust.
221 2001-11-30 Akim Demaille <akim@epita.fr>
223 * src/reduce.c: Various comment/formatting changes.
224 (nonterminals_reduce): New, extracted from...
225 (reduce_grammar_tables): here.
226 (reduce_grammar): Call nonterminals_reduce.
228 2001-11-29 Paul Eggert <eggert@twinsun.com>
230 * src/bison.simple (YYSTACK_REALLOC): Remove.
231 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
232 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
234 (union yyalloc): New type.
235 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
236 an arbitrary restriction on hosts where size_t is wider than int.
238 (yyparse): Don't dump core if alloca or malloc fails; instead, report
239 a parser stack overflow. Allocate just one block of memory for all
240 three stacks, instead of allocating three blocks; this typically is
241 faster and reduces fragmentation.
243 Do not limit the number of items in the stack to a value that fits
244 in 'int', as this is an arbitrary limit on hosts with 64-bit
245 size_t and 32-bit int.
247 2001-11-29 Marc Autret <autret_m@epita.fr>
249 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
250 of defining YYERROR_VERBOSE.
251 [AT_DATA]: $4 is now out of C declarations in the prologue.
253 2001-11-28 Marc Autret <autret_m@epita.fr>
255 * src/reader.c (parse_dquoted_param): New.
256 (parse_skel_decl): Use it.
257 * src/lex.h: Add its prototype.
258 * src/lex.c (literalchar): Become not static.
260 2001-11-28 Marc Autret <autret_m@epita.fr>
262 * src/output.h: And put its extern declaration here.
263 * src/output.c (error_verbose): Define here.
264 (prepare): Echo name modification.
265 * src/getargs.h: Clean its extern declaration.
266 * src/getargs.c (error_verbose_flag): Remove.
267 (getargs): Remove case 'e'.
268 * src/options.c (option_table): 'error-verbose' is now seen as simple
272 * src/reader.c (read_declarations): Remove case tok_include.
273 (parse_include_decl): Remove.
274 * src/lex.h (token_t): Remove tok_include.
275 * src/options.c (option_table): 'include' is now a simple command line
278 2001-11-28 Marc Autret <autret_m@epita.fr>
280 * src/bison.simple: Adjust muscle names.
281 * src/muscle_tab.c (muscle_init): Also rename the muscles.
282 * src/output.c (prepare): s/_/-/ for the muscles names.
283 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
285 2001-11-28 Marc Autret <autret_m@epita.fr>
287 * src/bison.simple: Fix debug.
288 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
290 2001-11-28 Akim Demaille <akim@epita.fr>
292 * src/LR0.c (shifts_new): New.
293 (save_shifts, insert_start_shift, augment_automaton): Use it.
295 2001-11-28 Akim Demaille <akim@epita.fr>
297 * src/closure.c (closure): `b' and `ruleno' denote the same value:
300 2001-11-28 Akim Demaille <akim@epita.fr>
302 * src/closure.c (closure): Instead of looping over word in array
303 then bits in words, loop over bits in array.
305 2001-11-28 Akim Demaille <akim@epita.fr>
307 * src/closure.c (closure): No longer optimize the special case
308 where all the bits of `ruleset[r]' are set to 0, to make the code
311 2001-11-28 Akim Demaille <akim@epita.fr>
313 * src/closure.c (closure): `r' and `c' are new variables, used to
314 de-obfuscate accesses to RULESET and CORE.
316 2001-11-28 Akim Demaille <akim@epita.fr>
318 * src/reduce.c (reduce_print): Use ngettext.
319 (dump_grammar): Improve the trace accuracy.
321 2001-11-28 Akim Demaille <akim@epita.fr>
323 * src/reduce.c (dump_grammar): Don't translate trace messages.
325 2001-11-28 Akim Demaille <akim@epita.fr>
327 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
328 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
329 as all tags are free'ed afterwards.
332 2001-11-27 Paul Eggert <eggert@twinsun.com>
334 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
335 use alloca when we didn't want to, and vice versa.
337 2001-11-27 Marc Autret <autret_m@epita.fr>
339 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
341 * src/output.c (prepare): Remove its update.
343 2001-11-27 Marc Autret <autret_m@epita.fr>
345 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
348 2001-11-27 Marc Autret <autret_m@epita.fr>
350 * src/bison.simple: Remove YYERROR_VERBOSE using.
353 * src/output.c (prepare): Give its final value.
354 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
355 * src/getargs.h: Add its extern declaration.
356 * src/getargs.c (error_verbose_flag): New int.
357 (getargs): Update to catch new case.
358 * src/options.c (option_table): 'error-verbose' is a new option.
361 2001-11-27 Akim Demaille <akim@epita.fr>
363 * src/system.h: Use intl/libgettext.h.
364 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
366 2001-11-27 Akim Demaille <akim@epita.fr>
368 * tests/torture.at (Exploding the Stack Size with Malloc):
369 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
371 2001-11-27 Akim Demaille <akim@epita.fr>
373 * src/files.c: Include error.h.
374 Reported by Hans Aberg.
376 2001-11-26 Marc Autret <autret_m@epita.fr>
378 * src/reader.c (parse_include_decl): New, not yet implemented.
379 (read_declarations): Add case tok_include.
380 * src/getargs.h (include): Add its extern definition.
381 * src/getargs.c (include): New const char *.
382 (getargs): Add case '-I'.
383 * src/options.c (option_table): Add include as command line and
385 * src/lex.h (token_t): Add tok_include.
387 2001-11-26 Akim Demaille <akim@epita.fr>
389 * src/reader.c (readgram): Make sure rules for mid-rule actions
390 have a lineno equal to that of their host rule.
391 Reported by Hans Aberg.
392 * tests/regression.at (Rule Line Numbers): New.
394 2001-11-26 Akim Demaille <akim@epita.fr>
396 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
399 2001-11-26 Akim Demaille <akim@epita.fr>
401 * src/complain.c, src/complain.h (error): Remove, provided by
404 2001-11-26 Akim Demaille <akim@epita.fr>
406 * src/reader.c (read_declarations): Don't abort on tok_illegal,
407 issue an error message.
408 * tests/regression.at (Invalid %directive): New.
409 Reported by Hans Aberg.
411 2001-11-26 Akim Demaille <akim@epita.fr>
413 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
414 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
416 2001-11-26 Akim Demaille <akim@epita.fr>
418 * src/conflicts.c (conflicts_print): Don't complain at all when
419 there are no reduce/reduce conflicts, and as many shift/reduce
420 conflicts as expected.
421 * tests/regression.at (%expect right): Adjust.
423 2001-11-23 Akim Demaille <akim@epita.fr>
425 * lib/alloca.c: Update, from fileutils.
427 2001-11-23 Akim Demaille <akim@epita.fr>
429 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
431 2001-11-23 Akim Demaille <akim@epita.fr>
433 * src/system.h: Include alloca.h.
434 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
436 2001-11-23 Akim Demaille <akim@epita.fr>
438 * src/print_graph.c (print_actions): Remove `rule', unused.
439 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
440 pacify GCC's signed < unsigned warnings.
441 * src/closure.c (itemsetsize): Likewise.
442 * src/reader.c (symbol_list_new): Static.
444 2001-11-23 Akim Demaille <akim@epita.fr>
446 Attaching lineno to buckets is stupid, since only one copy of each
447 symbol is kept, only the line of the first occurrence is kept too.
449 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
450 * src/reader.c (rline_allocated): Remove, unused.
451 (symbol_list): Have a `line' member.
452 (symbol_list_new): New.
454 * src/print.c (print_grammar): Output the rule line numbers.
455 * tests/regression.at (Solved SR Conflicts)
456 (Unresolved SR Conflicts): Adjust.
457 Reported by Hans Aberg.
459 2001-11-22 Marc Autret <autret_m@epita.fr>
461 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
463 2001-11-22 Marc Autret <autret_m@epita.fr>
465 * src/muscle_tab.c (muscle_init): Remove initialization of
467 * src/output.c (output_master_parser): Do it here.
469 2001-11-20 Akim Demaille <akim@epita.fr>
472 * configure.in (ALL_LINGUAS): Adjust.
473 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
474 longer contains strings to translate.
476 2001-11-19 Akim Demaille <akim@epita.fr>
478 * src/conflicts.c (conflicts_print): Add a missing \n.
480 2001-11-19 Akim Demaille <akim@epita.fr>
482 * src/nullable.c (nullable_print): New.
483 (set_nullable): Call it when tracing.
484 Better locality of variables.
486 2001-11-19 Akim Demaille <akim@epita.fr>
488 * src/print.c (print_actions): Better locality of variables.
490 2001-11-19 Akim Demaille <akim@epita.fr>
492 * src/derives.c (print_derives): Fix and enrich.
493 * src/closure.c (print_fderives): Likewise.
495 2001-11-19 Akim Demaille <akim@epita.fr>
497 * src/closure.c (itemsetend): Remove, replaced with...
500 2001-11-19 Akim Demaille <akim@epita.fr>
502 * src/LR0.c (kernel_end): Remove, replaced with...
505 2001-11-19 Akim Demaille <akim@epita.fr>
507 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
510 2001-11-19 Akim Demaille <akim@epita.fr>
512 * src/closure.c (closure): Use arrays instead of pointers to clarify.
514 2001-11-19 Akim Demaille <akim@epita.fr>
516 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
518 * src/LR0.c: Likewise.
519 (allocate_itemsets): Use arrays instead of pointers to clarify.
521 2001-11-19 Akim Demaille <akim@epita.fr>
523 * src/getargs.c (statistics_flag): Replace with...
525 (longopts): Accept --trace instead of --statistics.
526 * src/getargs.h, src/options.c: Adjust.
527 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
528 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
530 2001-11-19 Akim Demaille <akim@epita.fr>
532 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
533 pointers to clarify the code.
534 (save_reductions, save_shifts): Factor common parts of alternatives.
536 2001-11-19 Akim Demaille <akim@epita.fr>
538 * src/LR0.c (new_state, get_state): Complete TRACE code.
539 * src/closure.c: Include `reader.h' to get `tags', needed by the
541 Rename the conditional DEBUG as TRACE.
542 Output consistently TRACEs to stderr, not stdout.
543 * src/derives.c: Likewise.
544 * src/reduce.c: (inaccessable_symbols): Using if is better style
546 Use `#if TRACE' instead of `#if 0' for tracing code.
548 2001-11-19 Akim Demaille <akim@epita.fr>
550 * src/system.h (LIST_FREE, shortcpy): New.
551 * src/LR0.c: Use them.
552 * src/output.c (free_itemsets, free_reductions, free_shifts):
553 Remove, replaced by LIST_FREE.
555 2001-11-19 Akim Demaille <akim@epita.fr>
557 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
558 (REDUCTIONS_ALLOC): New.
559 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
562 2001-11-19 Akim Demaille <akim@epita.fr>
564 * src/LR0.c (new_state): Complete trace code.
565 * src/nullable.c (set_nullable): Don't translate traces.
567 2001-11-19 Akim Demaille <akim@epita.fr>
569 * src/print_graph.c (print_core): Better locality of variables.
570 * src/print.c (print_core): Likewise.
572 2001-11-19 Akim Demaille <akim@epita.fr>
574 * src/vcg.c: You do the output, so you are responsible of the
575 handling of VCG syntax, in particular: use quotearg.
576 * src/print_graph.c: Don't.
577 (print_actions): Don't output the actions as part of the nodes,
578 since that's the job of the edges.
579 (print_state): Don't output by hand: fill the node description,
580 and ask for its output.
582 2001-11-19 Akim Demaille <akim@epita.fr>
584 * src/bison.simple (yyparse): When verbosely reporting an error,
585 no longer put additional quotes around token names.
586 * tests/calc.at: Adjust.
588 2001-11-19 Akim Demaille <akim@epita.fr>
590 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
591 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
592 * src/output.c: Adjust.
594 2001-11-19 Akim Demaille <akim@epita.fr>
596 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
598 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
600 2001-11-19 Akim Demaille <akim@epita.fr>
602 * src/gram.h (rule_t): New.
604 (rrhs, rlhs): Remove, part of state_t.
605 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
606 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
607 * src/reader.c, src/reduce.c: Adjust.
609 2001-11-19 Akim Demaille <akim@epita.fr>
611 * src/reader.c (symbols_output): New, extracted from...
615 2001-11-19 Akim Demaille <akim@epita.fr>
617 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
618 (maxrhs): this new function.
620 2001-11-19 Akim Demaille <akim@epita.fr>
622 * src/lalr.c (F): New macro to access the variable F.
625 2001-11-19 Akim Demaille <akim@epita.fr>
627 * src/lalr.h (LA): New macro to access the variable LA.
628 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
629 * src/lalr.c: Adjust.
631 2001-11-19 Akim Demaille <akim@epita.fr>
633 * src/lalr.c (initialize_LA): Only initialize LA. Let...
634 (set_state_table): handle the `lookaheads' members.
636 2001-11-19 Akim Demaille <akim@epita.fr>
638 * src/lalr.h (lookaheads): Removed array, whose contents is now
640 (state_t): this structure.
641 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
644 2001-11-19 Akim Demaille <akim@epita.fr>
646 * src/lalr.h (consistent): Removed array, whose contents is now
648 (state_t): this structure.
649 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
652 2001-11-19 Akim Demaille <akim@epita.fr>
654 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
655 contents are now members of...
656 (state_t): this structure.
657 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
660 2001-11-19 Akim Demaille <akim@epita.fr>
662 * src/lalr.h (state_t): New.
663 (state_table): Be a state_t * instead of a core **.
664 (accessing_symbol): Remove, part of state_t.
665 * src/lalr.c: Adjust.
666 (set_accessing_symbol): Merge into...
667 (set_state_table): this.
668 * src/print_graph.c, src/conflicts.c: Adjust.
670 2001-11-14 Akim Demaille <akim@epita.fr>
672 * tests/calc.at, tests/output.at, tests/regression.at,
673 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
674 now the tests are run in private dirs, therefore AC_CLEANUP and
675 family can be simplified to 0-ary.
676 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
677 use abs. path to find config.h.
678 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
679 stderr, there can be way too much random noise.
680 Instead pass -Werror to GCC and rely on the exit status.
681 Reported by Wolfram Wagner.
683 2001-11-14 Akim Demaille <akim@epita.fr>
685 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
686 defined only if yyoverflow is defined, to avoid `warning: unused
688 Reported by The Test Suite.
690 2001-11-14 Akim Demaille <akim@epita.fr>
692 * src/print.c: Include reduce.h.
693 Reported by Hans Aberg.
695 2001-11-14 Akim Demaille <akim@epita.fr>
697 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
698 Revert a previous patch: these are really const.
699 * src/conflicts.c (conflict_report): Additional useless pair of
700 braces to pacify GCC's warnings for `if () if () {} else {}'.
701 * src/lex.c (parse_percent_token): Replace equal_offset with
704 Be sure to strdup `arg' when used, since there is no reason for
705 token_buffer not to change.
707 2001-11-14 Akim Demaille <akim@epita.fr>
709 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
711 * src/main.c (main): Use them.
712 Suggested by Hans Aberg.
714 2001-11-12 Akim Demaille <akim@epita.fr>
716 * src/system.h (ngettext): Now that we use ngettext, be sure to
717 provide a default definition when NLS are not used.
719 2001-11-12 Akim Demaille <akim@epita.fr>
721 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
722 Use @kbd to denote user input.
723 (Language and Grammar): ANSIfy the example.
724 Adjust its layout for info/notinfo.
725 (Location Tracking Calc): Output error messages to stderr.
726 Output locations in a more GNUtically correct way.
727 Fix a couple of Englishos.
728 Adjust @group/@end group pairs.
730 2001-11-12 Akim Demaille <akim@epita.fr>
732 %expext was not functioning at all.
734 * src/conflicts.c (expected_conflicts): Set to -1.
735 (conflict_report): Use ngettext.
736 (conflicts_print): Check %expect and make its violation an error.
737 * doc/bison.texinfo (Expect Decl): Adjust.
738 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
739 * tests/regression.at (%expect not enough, %expect right)
740 (%expect too much): New.
742 2001-11-12 Akim Demaille <akim@epita.fr>
744 * tests/regression.at (Conflicts): Rename as...
745 (Unresolved SR Conflicts): this.
746 (Solved SR Conflicts): New.
748 2001-11-12 Akim Demaille <akim@epita.fr>
750 * src/reduce.c (print_results): Rename as...
751 (reduce_output): This.
752 Output to OUT, passed as argument, instead of output_obstack.
753 (dump_grammar): Likewise.
756 (reduce_grammar): No longer call reduce_output, since...
757 * src/print.c (print_results): do it.
758 * src/main.c (main): Call reduce_free;
760 2001-11-12 Akim Demaille <akim@epita.fr>
762 * src/conflicts.c (print_reductions): Accept OUT as argument.
763 Output to it, not to output_obstack.
764 * src/print.c (print_actions): Adjust.
766 2001-11-12 Akim Demaille <akim@epita.fr>
768 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
769 the result instead of using...
770 (src_total, rrc_total, src_count, rrc_count): Remove.
771 (any_conflicts): Remove.
772 (print_conflicts): Split into...
773 (conflicts_print, conflicts_output): New.
774 * src/conflicts.h: Adjust.
775 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
776 * src/print.c (print_grammar): Issue `\n' between two rules.
777 * tests/regression.at (Conflicts): New.
778 Reported by Tom Lane.
780 2001-11-12 Akim Demaille <akim@epita.fr>
782 * tests/regression.at (Invalid input): Remove, duplicate with
783 ``Invalid input: 1''.
785 2001-11-12 Akim Demaille <akim@epita.fr>
787 * tests/torture.at (AT_DATA_STACK_TORTURE)
788 (Exploding the Stack Size with Alloca)
789 (Exploding the Stack Size with Malloc): New.
791 2001-11-12 Akim Demaille <akim@epita.fr>
793 * src/bison.simple (YYSTACK_REALLOC): New.
794 (yyparse) [!yyoverflow]: Use it and free the old stack.
795 Reported by Per Allansson.
797 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
799 * src/bison.simple: Define type yystype instead of YYSTYPE, and
800 define CPP macro, which substitute YYSTYPE by yystype.
801 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
802 with yyltype/YYLTYPE. This allows inclusion of the generated
803 header within the parser if the compiler, such as GGC, accepts
804 multiple equivalent #defines.
807 2001-11-05 Akim Demaille <akim@epita.fr>
809 * src/reader.c (symbols_output): New, extracted from...
813 2001-11-05 Akim Demaille <akim@epita.fr>
815 * src/lex.c (parse_percent_token): s/quotearg/quote/.
817 2001-11-05 Akim Demaille <akim@epita.fr>
819 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
822 2001-11-05 Akim Demaille <akim@epita.fr>
824 * src/options.h (struct option_table_struct): set_flags is void*.
825 * src/options.c (longopts): Support `--output' and `%output'.
827 * src/lex.h (tok_setopt): Remove, replaced with...
828 (tok_intopt, tok_stropt): these new guys.
829 * src/lex.c (getopt.h): Not needed.
830 (token_buffer, unlexed_token_buffer): Not const.
831 (percent_table): Promote `-' over `_' in directive names.
832 Active `%name-prefix', `file-prefix', and `output'.
833 (parse_percent_token): Accept possible arguments to directives.
834 Promote `-' over `_' in directive names.
836 2001-11-04 Akim Demaille <akim@epita.fr>
838 * doc/bison.texinfo (Decl Summary): Split the list into
839 `directives for grammars' and `directives for bison'.
841 Add description of `%name-prefix', `file-prefix', and `output'.
842 Promote `-' over `_' in directive names.
843 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
844 Simplify the description of `--name-prefix'.
845 Promote `-' over `_' in directive names.
846 Promote `--output' over `--output-file'.
847 Fix the description of `--defines'.
848 * tests/output.at: Exercise %file-prefix and %output.
850 2001-11-02 Akim Demaille <akim@epita.fr>
852 * doc/refcard.tex: Update.
854 2001-11-02 Akim Demaille <akim@epita.fr>
856 * src/symtab.h (SUNDEF): New.
857 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
858 stand for `uninitialized', instead of 0.
859 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
860 * src/lex.c (lex): Adjust.
862 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
864 Let yylex return it instead of a plain 0.
865 Reported by Dick Streefland.
867 2001-11-02 Akim Demaille <akim@epita.fr>
869 * tests/regression.at (Mixing %token styles): New test.
871 2001-11-02 Akim Demaille <akim@epita.fr>
873 * src/reader.c (parse_thong_decl): Formatting changes.
874 (token_translations_init): New, extracted from...
878 2001-11-01 Akim Demaille <akim@epita.fr>
880 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
881 Check that `9foo.y' produces correct cpp guards.
882 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
886 2001-11-01 Akim Demaille <akim@epita.fr>
888 * tests/regression.at (Invalid input: 2): New.
889 * src/lex.c (unlexed_token_buffer): New.
890 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
894 2001-11-01 Akim Demaille <akim@epita.fr>
896 * tests/calc.at: Catch up with 1.30.
897 * configure.in: Bump to 1.49a.
898 Adjust to newer Autotest.
900 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
902 * src/conflicts.c: Move global variables rrc_total and src_total ...
903 (print_conflicts): here.
904 * src/output.c (output): Free global variable user_toknums.
905 * src/lex.c (token_obstack): Become static.
907 2001-10-18 Akim Demaille <akim@epita.fr>
909 * tests/atlocal.in (GCC): Add.
910 * tests/calc.at: s/m4_match/m4_bmatch/.
911 s/m4_patsubst/m4_bpatsubst/.
912 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
913 * configure.in: AC_SUBST(GCC).
915 2001-10-14 Marc Autret <autret_m@epita.fr>
917 * src/options.c (create_long_option_table): Fix.
919 2001-10-10 Akim Demaille <akim@epita.fr>
921 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
923 2001-10-04 Akim Demaille <akim@epita.fr>
925 * src/reader.c (parse_union_decl): Push the caracters in
926 union_obstack, not attrs_obstack.
928 2001-10-04 Akim Demaille <akim@epita.fr>
930 Merge in the branch 1.29.
932 * src/reader.c (packsymbols): Use a temporary obstack for
933 `%%tokendef', since output_stack is already used elsewhere.
935 2001-10-02 Akim Demaille <akim@epita.fr>
939 2001-10-02 Akim Demaille <akim@epita.fr>
943 2001-10-02 Akim Demaille <akim@epita.fr>
945 * tests/regression.at (Invalid CPP headers): New.
946 From Alexander Belopolsky.
947 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
949 2001-10-02 Akim Demaille <akim@epita.fr>
951 * tests/regression.at (Invalid input): New.
952 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
955 2001-10-02 Akim Demaille <akim@epita.fr>
957 * tests/calc.at: Now that --debug works, the tests must be adjusted.
959 2001-10-02 Akim Demaille <akim@epita.fr>
961 * src/output.c (output_parser): Assert `skeleton'.
962 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
966 2001-10-01 Marc Autret <autret_m@epita.fr>
968 * src/lex.h: Echo modifications.
969 * src/lex.c (unlex): Parameter is now token_t.
972 2001-10-01 Marc Autret <autret_m@epita.fr>
974 * src/main.c: Include lex.h.
977 2001-09-29 Akim Demaille <akim@epita.fr>
979 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
981 2001-09-28 Akim Demaille <akim@epita.fr>
983 * tests/testsuite.at: Update to newer Autotest.
984 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
986 2001-09-27 Akim Demaille <akim@epita.fr>
988 Position independent wrapper.
990 * tests/bison: Remove.
991 * tests/bison.in: New.
992 * configure.in: Adjust.
994 2001-09-27 Paul Eggert <eggert@twinsun.com>
996 Port quotearg fixes from tar 1.13.24.
998 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1000 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1001 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1003 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1004 * m4/mbrtowc.m4: New file.
1005 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1006 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1008 2001-09-27 Akim Demaille <akim@epita.fr>
1012 2001-09-27 Akim Demaille <akim@epita.fr>
1016 2001-09-25 Akim Demaille <akim@epita.fr>
1018 * src/system.h: Include `xalloc.h'.
1019 Remove it from the C files.
1020 * src/files.c (output_files): Free the obstacks.
1021 * src/lex.c (init_lex): Rename as...
1024 * src/main.c (main): Use it.
1026 2001-09-24 Marc Autret <autret_m@epita.fr>
1028 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1029 to output informations in fout (FILE*).
1030 (open_graph, close_graph): Likewise.
1031 (output_graph, output_edge, output_node): Likewise.
1032 * src/vcg.h: Update function prototypes.
1033 * src/print_graph.c (print_graph): Open output graph file.
1034 (print_actions): Adjust.
1035 * src/files.h: Remove extern declaration.
1036 * src/files.c: Remove graph_obstack declaration.
1037 (open_files): Remove graph_obstack initialization.
1038 (output_files): Remove graph_obstack saving.
1040 2001-09-24 Marc Autret <autret_m@epita.fr>
1042 * src/files.c (compute_output_file_names): Fix.
1044 2001-09-24 Marc Autret <autret_m@epita.fr>,
1045 Akim Demaille <akim@epita.fr>
1047 * src/reader.c (reader): Remove call to free_symtab ().
1048 * src/main.c (main): Call it here.
1050 * src/conflicts.c (initialize_conflicts): Rename as...
1051 (solve_conflicts): this.
1052 * src/print.c (print_core, print_actions, print_state)
1053 (print_grammar): Dump to a file instead a `output_obstack'.
1054 (print_results): Dump `output_obstack', and then proceed with the
1056 * src/files.c (compute_output_file_names, close_files): New.
1057 (output_files): Adjust.
1058 * src/main.c (main): Adjust.
1060 2001-09-23 Marc Autret <autret_m@epita.fr>
1062 * src/files.c (compute_header_macro): Computes header macro name
1063 from spec_defines_file when given.
1065 2001-09-23 Marc Autret <autret_m@epita.fr>
1067 * src/files.c (output_files): Add default extensions.
1069 2001-09-22 Akim Demaille <akim@epita.fr>
1071 * src/conflicts.c (finalize_conflicts): Rename as...
1072 (free_conflicts): this.
1074 2001-09-22 Akim Demaille <akim@epita.fr>
1076 * src/gram.c (gram_free): Rename back as...
1078 (output_token_translations): Free `token_translations'.
1079 * src/symtab.c (free_symtab): Free the tag field.
1081 2001-09-22 Akim Demaille <akim@epita.fr>
1083 Remove `translations' as it is always set to true.
1085 * src/gram.h: Adjust.
1086 * src/reader.c (packsymbols, parse_token_decl): Adjust
1087 * src/print.c (print_grammar): Adjust.
1088 * src/output.c (output_token_translations): Adjust.
1089 * src/lex.c (lex): Adjust.
1090 * src/gram.c: Be sure the set pointers to NULL.
1091 (dummy): Rename as...
1094 2001-09-22 Akim Demaille <akim@epita.fr>
1096 * configure.in: Invoke AM_LIB_DMALLOC.
1097 * src/system.h: Use dmalloc.
1098 * src/LR0.c: Be sure to have pointers initialized to NULL.
1099 (allocate_itemsets): Allocate kernel_items only if needed.
1101 2001-09-22 Akim Demaille <akim@epita.fr>
1103 * configure.in: Bump to 1.29b.
1104 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1105 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1106 need xmalloc.c in calc.y.
1109 2001-09-21 Akim Demaille <akim@epita.fr>
1112 * Makefile.maint, config/config.guess, config/config.sub,
1113 * config/missing: Update from masters.
1114 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1116 * configure.in (ALL_LINGUAS): Add `tr'.
1118 2001-09-21 Akim Demaille <akim@epita.fr>
1120 * tests/Makefile.am (package.m4): Move to...
1121 ($(srcdir)/$(TESTSUITE)): here.
1123 2001-09-20 Akim Demaille <akim@epita.fr>
1125 * src/complain.c: No longer try to be standalone: use system.h.
1126 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1127 * src/complain.h: Likewise.
1128 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1129 Remove the unused variable `n'.
1130 From Albert Chin-A-Young.
1132 2001-09-18 Marc Autret <autret_m@epita.fr>
1134 * doc/bison.1: Update.
1135 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1137 (Option Cross Key): Update.
1140 2001-09-18 Marc Autret <autret_m@epita.fr>
1142 * tests/regression.at: New test (comment in %union).
1144 2001-09-18 Marc Autret <autret_m@epita.fr>
1146 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1148 Reported by Keith Browne.
1150 2001-09-18 Marc Autret <autret_m@epita.fr>
1152 * tests/output.at: Add tests for --defines and --graph.
1154 2001-09-18 Marc Autret <autret_m@epita.fr>
1156 * tests/output.at: Removes tests of %{header,src}_extension features.
1158 2001-09-18 Akim Demaille <akim@epita.fr>
1160 * tests/Makefile.am (package.m4): New.
1161 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1162 (_AT_CHECK_CALC_ERROR): Likewise.
1163 Factor the `, ' part of verbose error messages.
1165 2001-09-18 Marc Autret <autret_m@epita.fr>
1167 * src/getargs.c (longopts): Declare --defines and --graph as options
1168 with optional arguments.
1169 * src/files.h: Add extern declarations.
1170 * src/files.c (spec_graph_file, spec_defines_file): New.
1171 (output_files): Update.
1172 Remove CPP-outed code.
1174 2001-09-18 Marc Autret <autret_m@epita.fr>
1176 Turn off %{source,header}_extension feature.
1178 * src/files.c (compute_exts_from_gf): Update.
1179 (compute_exts_from_src): Update.
1180 (output_files): CPP-out useless code.
1181 * src/files.h: Remove {header,source}_extension extern declarations.
1182 * src/reader.c (parse_dquoted_param): CPP-out.
1183 (parse_header_extension_decl): Remove.
1184 (parse_source_extension_decl): Remove.
1185 (read_declarations): Remove cases tok_{hdrext,srcext}.
1186 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1187 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1189 2001-09-10 Akim Demaille <akim@epita.fr>
1191 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1192 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1193 (AT_CHECK_OUTPUT): this.
1194 Merely check ls' exit status, its output is useless.
1196 2001-09-10 Akim Demaille <akim@epita.fr>
1198 * tests/calc.at: Use m4_match.
1199 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1201 2001-09-10 Marc Autret <autret_m@epita.fr>,
1202 Akim Demaille <akim@epita.fr>
1204 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1206 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1208 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1209 * src/lex.h: Adjust prototype.
1210 (token_t): Add `tok_undef'.
1211 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1212 (parse_percent_token): Now returns token_t.
1213 Add default statement in switch.
1214 (lex): Separate `c' as an input variable, from the token_t result
1216 (unlexed): Is a token_t.
1218 2001-09-10 Akim Demaille <akim@epita.fr>
1220 * configure.in: Bump to 1.29a.
1222 2001-09-07 Akim Demaille <akim@epita.fr>
1226 2001-08-30 Akim Demaille <akim@epita.fr>
1228 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1229 * m4/atconfig.m4: Remove.
1230 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1232 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1233 m4_if, m4_patsubst, and m4_regexp.
1234 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1235 `input' file instead of echo.
1237 2001-08-29 Akim Demaille <akim@epita.fr>
1241 2001-08-29 Akim Demaille <akim@epita.fr>
1245 2001-08-29 Paul Eggert <eggert@twinsun.com>
1247 * src/bison.simple (yyparse): Don't take the address of an
1248 item before the start of an array, as that doesn't conform to
1251 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1253 * doc/bison.texinfo (Location Tracking Calc): New node.
1255 2001-08-29 Paul Eggert <eggert@twinsun.com>
1257 * src/output.c (output): Do not define const, as this now
1258 causes more problems than it cures.
1260 2001-08-29 Akim Demaille <akim@epita.fr>
1262 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1264 Be sure to tag the `detailmenu'.
1266 2001-08-29 Akim Demaille <akim@epita.fr>
1268 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1269 download in a tmp dir.
1271 2001-08-28 Marc Autret <autret_m@epita.fr>
1273 * config/depcomp: New file.
1275 2001-08-28 Marc Autret <autret_m@epita.fr>
1277 * doc/bison.1 (mandoc): Adjust.
1278 From Juan Manuel Guerrero.
1280 2001-08-28 Marc Autret <autret_m@epita.fr>
1282 * src/print_graph.c (print_state): Fix.
1284 2001-08-27 Marc Autret <autret_m@epita.fr>
1286 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1288 Echo modifications to the functions prototypes.
1289 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1291 2001-08-27 Marc Autret <autret_m@epita.fr>
1293 * src/vcg.c: Include `xalloc.h'.
1294 (add_colorentry): New.
1295 (add_classname): New.
1296 (add_infoname): New.
1297 * src/vcg.h: Add new prototypes.
1299 2001-08-27 Akim Demaille <akim@epita.fr>
1301 * Makefile.maint: Sync. again with CVS Autoconf.
1303 2001-08-27 Akim Demaille <akim@epita.fr>
1305 * Makefile.maint: Formatting changes.
1306 (po-update, cvs-update, update): New targets.
1309 2001-08-27 Akim Demaille <akim@epita.fr>
1311 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1312 * Makefile.maint: Sync. with CVS Autoconf.
1314 2001-08-27 Marc Autret <autret_m@epita.fr>
1316 * src/vcg.h (struct infoname_s): New.
1317 (struct colorentry_s): New.
1318 (graph_s): New fields {vertical,horizontal}_order in structure.
1319 Add `infoname' field.
1320 Add `colorentry' field;
1321 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1322 (G_HORIZONTAL_ORDER): New.
1324 (G_COLORENTRY): New.
1325 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1326 Add output of `infoname'.
1327 Add output of `colorentry'.
1329 2001-08-27 Marc Autret <autret_m@epita.fr>
1331 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1332 This one shadowed a global parameter.
1334 2001-08-24 Marc Autret <autret_m@epita.fr>
1336 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1337 instead of `unsigned'.
1338 (print_state): Do not call obstack_object_size () in obstack_grow ()
1339 to avoid macro variables shadowing.
1341 2001-08-23 Marc Autret <autret_m@epita.fr>
1343 * src/lex.c (percent_table): Typo: s/naem/name/.
1345 Normalize new options declarations.
1347 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1349 * tests/suite.at: Exercise %header_extension and %source_extension.
1351 2001-08-16 Marc Autret <autret_m@epita.fr>
1353 * src/reader.c (parse_dquoted_param): New.
1354 (parse_header_extension_decl): Use it.
1355 (parse_source_extension_decl): Likewise.
1357 2001-08-16 Marc Autret <autret_m@epita.fr>
1359 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1360 (get_xxxx_str): Use assert () instead of complain ().
1361 Remove return invokations in default cases.
1362 (get_decision_str): Modify default behaviour. Remove second argument.
1363 Echo modifications on calls.
1364 (output_graph): Fix.
1366 2001-08-16 Marc Autret <autret_m@epita.fr>
1368 * src/getargs.c (usage): Update with ``-g, --graph''.
1370 2001-08-16 Marc Autret <autret_m@epita.fr>
1372 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1373 (Option Cross Key): Likewise.
1374 * doc/bison.1: Update.
1376 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1378 * src/output.c (output_master_parser): Don't finish action_obstack.
1379 (output_parser): Don't care about the muscle action, here.
1380 (prepare): Copy the action_obstack in the action muscle.
1381 (output): Free action_obstack.
1383 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1385 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1386 will contain `%union' declaration.
1387 (parse_union_decl): Delete #line directive output.
1388 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1389 informations about %union.
1390 (parse_union_decl): Copy the union_obstack in the muscle stype.
1391 * src/bison.simple: Add new #line directive.
1392 Add typdef %%stype YYSTYPE.
1394 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1396 * src/bison.simple: Add new `#line' directive.
1398 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1400 * src/bison.simple: New `#line' directive.
1401 * src/output.c (output_parser): Support new dynamic muscle input_line.
1403 2001-09-22 Marc Autret <autret_m@epita.fr>
1405 * src/output.c (output_master_parser): New.
1406 (output_parser): Be more re-entrant.
1408 2001-09-21 Marc Autret <autret_m@epita.fr>
1410 * src/reader.c (copy_definition, parse_union_decl): Update and use
1412 (copy_action): Likewise.
1413 Use obstack_1grow ().
1414 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1416 2001-09-21 Marc Autret <autret_m@epita.fr>
1418 * src/options.c (option_table): Adjust.
1419 * src/lex.c (parse_percent_token): Fix.
1421 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1423 * src/options.c (symtab.h): Include it, need by lex.h.
1425 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1427 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1428 is now an option_table_struct*.
1429 (option_strcmp): New function option_strcmp.
1430 (parse_percent_token): Call option_strcmp.
1431 * src/getargs.c (xalloc.h, options.h): Include it.
1432 (getargs): Call create_long_option_table.
1433 (getargs): Free longopts at the end of the function.
1434 (shortopts): Move in options.c.
1435 * src/options.c (create_long_option_table): New function. Convert
1436 information from option_table to option structure.
1437 * src/reader.c (options.h): Include it.
1439 * src/Makefile.am: Adjust.
1440 * src/options.c (option_table): Create from longopts and percent_table.
1441 * src/getargs.c (longopts): Delete.
1442 * src/lex.c (struct percent_table_struct): Delete.
1443 (percent_table): Delete.
1444 (options.h): Include it.
1445 * src/options.c: Create.
1446 * src/options.h: Create.
1447 Declare enum opt_access_e.
1448 Define struct option_table_struct.
1450 2001-09-20 Marc Autret <autret_m@epita.fr>
1452 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1455 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1457 * src/bison.simple: s/%%filename/%%skeleton.
1458 * src/muscle_tab.c (getargs.h): Include it.
1459 (muscle_init): Insert new muscle skeleton.
1461 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1463 * src/output.c (output_parser): Delete unused variable actions_dumped.
1465 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1467 * src/output.c (output): Delete call to reader_output_yylsp.
1468 * src/reader.c (reader): Likewise.
1469 * src/reader.h: Delete declaration of reader_output_yylsp.
1471 2001-09-02 Marc Autret <autret_m@epita.fr>
1473 * src/reader.c: Include muscle_tab.h.
1474 (parse_union_decl): Update.
1475 (parse_macro_decl): Rename parse_muscle_decl.
1476 Update to use renamed functions and variable.
1477 (read_declarations, copy_action, read_additionnal_code, : Updated
1478 with correct variables and functions names.
1479 (packsymbols, reader): Likewise.
1481 * src/reader.h (muscle_obstack): Extern declaration update.
1483 * src/output.c: Include muscle_tab.h
1484 In all functions using macro_insert, change by using muscle_insert ().
1485 (macro_obstack): Rename muscle_obstack.
1486 Echo modifications in the whole file.
1487 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1488 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1489 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1491 * src/muscle_tab.h: Update double inclusion macros.
1492 (macro_entry_s): Rename muscle_entry_s.
1495 * src/muscle_tab.c: Include muscle_tab.h.
1496 Rename macro_tabble to muscle_table.
1497 (mhash1, mhash2, mcmp): Use muscle_entry.
1498 (macro_init): Rename muscle_init. Update.
1499 (macro_insert): Rename muscle_insert. Update.
1500 (macro_find): Rename muscle_find. Update.
1502 * src/main.c: Include muscle_tab.h.
1503 (main): Call muscle_init ().
1504 * src/Makefile.am (bison_SOURCES): Echo modifications.
1506 2001-09-02 Marc Autret <autret_m@epita.fr>
1508 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1510 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1512 2001-09-02 Marc Autret <autret_m@epita.fr>
1514 * src/macrotab.c, src/macrotab.h: Remove.
1516 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1518 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1521 2001-09-01 Marc Autret <autret_m@epita.fr>
1523 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1524 to an explicit value to activate the feature. We do it here.
1526 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1528 * src/output.c (prepare): Delete the `filename' muscule insertion.
1529 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1530 (parse_union_decl): Likewise.
1531 * src/macrotab.c (macro_init): Initialize filename by infile.
1533 2001-08-31 Marc Autret <autret_m@epita.fr>
1535 * src/bison.simple (YYLSP_NEEDED): New definition.
1536 * src/output.c (prepare): Add macro insertion of `locations_flag'
1538 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1540 * src/output.c (prepare): Delete insertion of previous muscles,
1541 and insert the `prefix' muscles.
1542 * src/macrotab.c (macro_init): Likewise.
1543 (macro_init): Initialization prefix directive by `yy'.
1544 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1545 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1546 yylval, yydebug, yyerror, yynerrs and yyparse.
1547 New directive `#define' to substitute yydebug, ... with option
1550 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1552 * src/main.c (main): Standardize.
1553 * src/output.c (output_table_data, output_parser): Likewise.
1554 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1556 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1558 * src/reader.c (read_additionnal_code): Rename %%user_code to
1560 * src/output.c (output): Rename %%declarations to %%prologue.
1561 * src/bison.simple: Echo modifications.
1563 2001-08-31 Marc Autret <autret_m@epita.fr>
1565 * src/reader.c (readgram): CleanUp.
1566 (output_token_defines): Likewise.
1567 (packsymbols): Likewise.
1569 * src/output.c (output): CPP-out useless code.
1571 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1573 * src/reader.c (reader): Delete obsolete call to function
1574 output_trailers and output_headers.
1575 * src/output.h: Remove obsolete functions prototypes of output_headers
1576 and output_trailers.
1578 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1580 * src/main.c: Include macrotab.h.
1581 * src/macrotab.h (macro_entry_s): Constify fields.
1582 Adjust functions prototypes.
1583 * src/macrotab.c (macro_insert): Constify key and value.
1584 (macro_find): Constify key.
1585 (macro_insert): Include 'xalloc.h'
1586 (macro_insert): Use XMALLOC.
1587 (macro_find): Constify return value.
1588 * src/output.c (output_table_data): Rename table to table_data.
1589 (output_parser): Constify macro_key, macro_value.
1591 2001-08-30 Marc Autret <autret_m@epita.fr>
1593 * src/reader.c (parse_skel_decl): New.
1594 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1595 * src/lex.h (token_t): New token `tok_skel'.
1596 * src/lex.c (percent_table): Add skeleton option entry.
1599 2001-08-29 Marc Autret <autret_m@epita.fr>
1601 * src/bison.simple: Add %%user_code directive at the end.
1602 * src/reader.c (read_additionnal_code): New.
1604 * src/output.c (output_program): Remove.
1607 2001-08-28 Marc Autret <autret_m@epita.fr>
1609 * src/output.c (output_actions): Clean up.
1610 (output_gram): CPP-out useless code.
1611 * src/reader.c (reader): Clean up, CPP-out useless code.
1613 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1615 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1617 * src/bison.simple: Add `%%definitions'.
1619 2001-08-28 Marc Autret <autret_m@epita.fr>
1621 * config/depcomp: New file.
1623 2001-08-27 Paul Eggert <eggert@twinsun.com>
1625 * src/bison.simple (yyparse): Don't take the address of an
1626 item before the start of an array, as that doesn't conform to
1629 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1631 * src/output.c (output): Remove the initialization of the macro
1632 obstack. It was done too late here.
1634 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1636 (reader): Initialize the macro obstack here, since we need it to grow
1637 '%define' directives.
1639 * src/reader.h: Declare the macro obstack as extern.
1641 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1643 * src/output.c (output_parser): Fix. Store single '%' characters in
1644 the output obstack instead of throwing them away.
1646 2001-08-27 Akim Demaille <akim@epita.fr>
1648 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1650 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1652 * lib/Makefile.am: Adjust.
1654 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1656 * src/bison.simple: Update and add '%%' directives.
1658 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1660 * src/reader.c (reader): Remove calls to 'output_headers' and
1661 'output_trailers'. Remove some C output.
1662 (readgram): Disable a piece of code that was writing a default
1663 definition for 'YYSTYPE'.
1664 (reader_output_yylsp): Remove.
1665 (packsymbols): Output token defintions to a macro.
1666 (copy_definition): Disable C output.
1668 * src/reader.c (parse_macro_decl): New function used to parse macro
1670 (copy_string2): Put the body of copy_string into this new function.
1671 Add a parameter to let the caller choose whether he wants to copy the
1672 string delimiters or not.
1673 (copy_string): Be a simple call to copy_string2 with the last argument
1675 (read_declarations): Add case for macro definition.
1676 (copy_identifier): New.
1677 (parse_macro_decl): Read macro identifiers using copy_identifier
1680 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1682 * src/output.c (prepare): Add prefixed names.
1683 (output_parser): Output semantic actions.
1684 (output_parser): Fix bug on '%%line' directives.
1686 * src/output.c (output_headers): Remove. The C code printed by this
1687 function should now be in the skeletons.
1688 (output_trailers): Remove.
1689 (output): Disable call to 'reader_output_yylsp'.
1690 (output_rule_data): Do not output tables to the table obstack.
1692 * src/output.c: Remove some C dedicated output.
1693 Improve the use of macro and output obstacks.
1694 (output_defines): Remove.
1696 * src/output.c (output_token_translations): Associate 'translate'
1697 table with a macro. No output to the table obstack.
1698 (output_gram): Same for 'rhs' and 'prhs'.
1699 (output_stos): Same for 'stos'.
1700 (output_rule_data): Same for 'r1' and 'r2'.
1701 (token_actions): Same for 'defact'.
1702 (goto_actions): Same for 'defgoto'.
1703 (output_base): Same for 'pact' and 'pgoto'.
1704 (output_table): Same for 'table'.
1705 (output_check): Same for 'check'.
1707 * src/output.c (output_table_data): New function.
1708 (output_short_table): Remove.
1709 (output_short_or_char_table): Remove.
1711 * src/output.c (output_parser): Replace most of the skeleton copy code
1712 with something new. Skeletons are now processed character by character
1713 rather than line by line, and Bison looks for '%%' macros. This is the
1714 first step in making Bison's output process (a lot) more flexible.
1715 (output_parser): Use the macro table.
1717 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1719 * src/main.c (main): Initialize the macro table.
1721 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1723 * src/lex.c (percent_table): Add tok_define.
1724 * src/lex.h: Add tok_define.
1726 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1728 * src/macrotab.c: New file.
1729 * src/macrotab.h: New file.
1730 * src/Makefile.am: Update.
1732 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1734 * lib/hash.c: New file.
1735 * lib/hash.h: New file.
1736 * lib/Makefile.am: Update.
1738 2001-08-15 Akim Demaille <akim@epita.fr>
1742 2001-08-15 Marc Autret <autret_m@epita.fr>
1744 * src/reader.c (readgram): Indent output macro YYSTYPE.
1745 (packsymbols): Likewise.
1746 (output_token_defines): Likewise.
1747 * src/files.c: Standardize.
1748 (compute_header_macro): New.
1749 (defines_obstack_save): New. Use compute_header_macro.
1750 (output_files): Update. Use defines_obstack_save.
1752 2001-08-15 Akim Demaille <akim@epita.fr>
1754 * doc/bison.texinfo (Table of Symbols): Document
1757 2001-08-15 Akim Demaille <akim@epita.fr>
1759 * missing: Update from CVS Automake.
1760 * config/config.guess, config/config.sub, config/texinfo.tex:
1761 Update from gnu.org.
1763 2001-08-15 Akim Demaille <akim@epita.fr>
1765 * Makefile.maint: Sync with CVS Autoconf.
1767 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1769 * doc/bison.texinfo: Include GNU Free Documentation License from
1771 * doc/fdl.texi: Add to package.
1773 2001-08-14 Marc Autret <autret_m@epita.fr>
1775 Turn on %{source,header}_extension features.
1777 * src/lex.c (percent_table): Un-CPP out header_extension and
1779 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1780 (compute_exts_from_src): Remove conditions. It restores priorities
1783 2001-08-14 Marc Autret <autret_m@epita.fr>
1785 * src/files.c (compute_base_names): Add extensions computing when
1786 `--file-prefix' used.
1787 Standardize function calls.
1789 2001-08-13 Marc Autret <autret_m@epita.fr>
1791 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1792 defining it (defined but null disables alloca).
1794 2001-08-13 Marc Autret <autret_m@epita.fr>
1796 * src/bison.simple (_yy_memcpy): CPP reformat.
1798 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1800 * tests/atconfig.in (CPPFLAGS): Fix.
1802 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1804 * doc/bison.texinfo: Include GNU General Public License from
1806 * doc/gpl.texi: Add to package.
1808 2001-08-10 Marc Autret <autret_m@epita.fr>
1810 * src/print_graph.h: Fix.
1811 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1813 2001-08-10 Akim Demaille <akim@epita.fr>
1815 * src/system.h: Provide default declarations for stpcpy, strndup,
1818 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1820 * doc/bison.texinfo (Locations): Update @$ stuff.
1822 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1824 * src/bison.simple (YYLLOC_DEFAULT): Update.
1827 2001-08-08 Marc Autret <autret_m@epita.fr>
1829 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1830 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1831 Reported by Fabrice Bauzac.
1833 2001-08-08 Marc Autret <autret_m@epita.fr>
1835 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1836 * src/vcg.c (output_node): Fix.
1837 * src/vcg.h: Cleanup.
1838 * src/print_graph.c: Add comments.
1839 (node_output_size): New global variable. Simplify the formatting of
1840 the VCG graph output.
1841 (print_actions): Unused code is now used. It notifies the final state
1842 and no action states in the VCG graph. It also give the reduce actions.
1843 The `shift and goto' edges are red and the `go to state' edges are
1845 Get the current node name and node_obstack by argument.
1846 (node_obstack): New variable.
1847 (print_state): Manage node_obstack.
1848 (print_core): Use node_obstack given by argument.
1849 A node is not only computed here but in print_actions also.
1850 (print_graph): CPP out useless code instead of commenting it.
1852 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1854 * tests/atconfig.in (CPPFLAGS): Fix.
1856 2001-08-07 Akim Demaille <akim@epita.fr>
1858 * src/print_graph.c (quote): New.
1859 (print_core): Use it.
1861 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1863 * src/vcg.c (complain.h): Include it.
1864 Unepitaize `return' invocations.
1865 [NDEBUG] (main): Remove.
1866 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1867 * src/files.c (open_files): Initialize graph_obstack.
1868 * src/print_graph.c (print_actions): CPP out useless code.
1869 (print_core): Don't output the last `\n' in labels.
1871 * src/files.c (output_files): Output the VCG file.
1872 * src/main.c (main): Invoke print_graph ();
1874 2001-08-06 Marc Autret <autret_m@epita.fr>
1876 Automaton VCG graph output.
1877 Using option ``-g'' or long option ``--graph'', you can generate
1878 a gram_filename.vcg file containing a VCG description of the LALR (1)
1879 automaton of your grammar.
1881 * src/main.c: Call to print_graph() function.
1882 * src/getargs.h: Update.
1883 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1884 (graph_flag): New flag.
1886 (getargs): Add case `g'.
1887 * src/files.c (graph_obstack): New obstack struct.
1888 (open_files): Initialize new obstack.
1889 (output_files): Saves graph_obstack if required.
1890 * src/files.h (graph_obstack): New extern declaration.
1891 * src/Makefile.am: Add new source files.
1893 2001-08-06 Marc Autret <autret_m@epita.fr>
1895 * src/print_graph.c, src/print_graph.h (graph): New.
1896 * src/vcg.h: New file.
1897 * src/vcg.c: New file, VCG graph handling.
1899 2001-08-06 Marc Autret <autret_m@epita.fr>
1901 Add of %source_extension and %header_extension which specify
1902 the source or/and the header output file extension.
1904 * src/files.c (compute_base_names): Remove initialisation of
1905 src_extension and header_extension.
1906 (compute_exts_from_gf): Update.
1907 (compute_exts_from_src): Update.
1908 (output_files): Update.
1909 * src/reader.c (parse_header_extension_decl): New.
1910 (parse_source_extension_decl): New.
1911 (read_declarations): New case statements for the new tokens.
1912 * src/lex.c (percent_table): Add entries for %source_extension
1913 and %header_extension.
1914 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1916 2001-08-06 Marc Autret <autret_m@epita.fr>
1918 * configure.in: Bump to 1.28c.
1919 * doc/bison.texinfo: Texinfo thingies.
1921 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1923 * tests/atconfig.in (CPPFLAGS): Add.
1924 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1926 2001-08-03 Akim Demaille <akim@epita.fr>
1930 2001-08-03 Akim Demaille <akim@epita.fr>
1932 * tests/Makefile.am (check-local): Ship testsuite.
1933 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1936 2001-08-03 Akim Demaille <akim@epita.fr>
1938 * configure.in: Try using -Wformat when compiling.
1940 2001-08-03 Akim Demaille <akim@epita.fr>
1942 * configure.in: Bump to 1.28b.
1944 2001-08-03 Akim Demaille <akim@epita.fr>
1946 * src/complain.c: Adjust strerror_r portability issues.
1948 2001-08-03 Akim Demaille <akim@epita.fr>
1952 2001-08-03 Akim Demaille <akim@epita.fr>
1954 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1955 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1956 * src/getargs.c: Include complain.h.
1957 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1958 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1960 2001-08-03 Akim Demaille <akim@epita.fr>
1962 * src/reader.c (readgram): Display hidden chars in error messages.
1964 2001-08-03 Akim Demaille <akim@epita.fr>
1966 Update to gettext 0.10.39.
1968 2001-08-03 Akim Demaille <akim@epita.fr>
1970 * lib/strspn.c: New.
1972 2001-08-01 Marc Autret <autret_m@epita.fr>
1974 * doc/bison.texinfo: Update.
1975 * doc/bison.1 (mandoc): Update.
1976 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1977 * src/files.c: Support output files extensions computing.
1978 (src_extension): New static variable.
1979 (header_extension): New static variable.
1981 (get_extension_index): New function, gets the index of an extension
1982 filename in a string.
1983 (compute_exts_from_gf): New function, computes extensions from the
1984 grammar file extension.
1985 (compute_exts_from_src): New functions, computes extensions from the
1986 C source file extension, file given by ``-o'' option.
1987 (compute_base_names): Update.
1988 (output_files): Update.
1990 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1992 * doc/bison.texi: Document @$.
1993 (Locations): New section.
1995 2001-07-18 Akim Demaille <akim@epita.fr>
1997 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1998 * config/prev-version.txt, config/move-if-change: New.
1999 * Makefile.am: Adjust.
2001 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2003 * src/bison.simple (yyparse): Suppress warning `comparaison
2004 between signed and unsigned'.
2006 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2008 * src/getargs.h (raw_flag): Remove.
2009 * src/getargs.c: Die on `-r'/`--raw'.
2010 * src/lex.c (parse_percent_token): Die on `%raw'.
2011 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2012 * tests/calc.at: Suppress test with option `--raw'.
2014 2001-07-14 Akim Demaille <akim@epita.fr>
2017 * configure.in: Require Autoconf 2.50.
2018 Update to gettext 0.10.38.
2020 2001-03-16 Akim Demaille <akim@epita.fr>
2022 * doc/bison.texinfo: ANSIfy the examples.
2024 2001-03-16 Akim Demaille <akim@epita.fr>
2026 * getargs.c (skeleton): New variable.
2027 (longopts): --skeleton is a new option.
2028 (shortopts, getargs): -S is a new option.
2029 * getargs.h: Declare skeleton.
2030 * output.c (output_parser): Use it.
2032 2001-03-16 Akim Demaille <akim@epita.fr>
2034 * m4/strerror_r.m4: New.
2035 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2036 * lib/error.h, lib/error.c: Update.
2038 2001-03-16 Akim Demaille <akim@epita.fr>
2040 * src/getargs.c (longopts): Clean up.
2042 2001-02-21 Akim Demaille <akim@epita.fr>
2044 * src/reader.c (gensym): `gensym_count' is your own.
2045 Use a static buf to create the symbol name, as token_buffer is no
2048 2001-02-08 Akim Demaille <akim@epita.fr>
2050 * src/conflicts.c (conflict_report): Be sure not to append to res
2051 between two calls, which could happen if both first sprintf were
2052 skipped, but not the first cp += strlen.
2054 2001-02-08 Akim Demaille <akim@epita.fr>
2056 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2057 New, from fileutils 4.0.37.
2058 * configure.in: Require Autoconf 2.49c. I took some time before
2059 making this decision. This is the only way out for portability
2060 issues in Bison, it would mean way too much duplicate effort to
2061 import in Bison features implemented in 2.49c since 2.13.
2062 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2064 2001-02-02 Akim Demaille <akim@epita.fr>
2066 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2067 * lib/xalloc.h, lib/xmalloc.c: Update.
2069 2001-01-19 Akim Demaille <akim@epita.fr>
2071 Get rid of the ad hoc handling of token_buffer in the scanner: use
2074 * src/lex.c (token_obstack): New.
2075 (init_lex): Initialize it. No longer call...
2076 (grow_token_buffer): this. Remove it.
2077 Adjust all the places which used it to use the obstack.
2079 2001-01-19 Akim Demaille <akim@epita.fr>
2081 * src/lex.h: Rename all the tokens:
2082 s/\bENDFILE\b/tok_eof/g;
2083 s/\bIDENTIFIER\b/tok_identifier/g;
2085 Let them be enums, not #define, to ease debugging.
2086 Adjust all the code.
2088 2001-01-18 Akim Demaille <akim@epita.fr>
2090 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2091 * src/lex.c (maxtoken, grow_token_buffer): Static.
2093 2001-01-18 Akim Demaille <akim@epita.fr>
2095 Since we now use obstacks, more % directives can be enabled.
2097 * src/lex.c (percent_table): Also accept `%yacc',
2098 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2100 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2101 instead of returning a token.
2102 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2103 * src/reader.c (read_declarations): Adjust.
2104 * src/files.c (open_files): Don't call `compute_base_names', don't
2105 compute `attrsfile' since they depend upon data which might be
2106 *in* the input file now.
2107 (output_files): Do it here.
2108 * src/output.c (output_headers): Document the fact that this patch
2109 introduces a guaranteed SEGV for semantic parsers.
2110 * doc/bison.texinfo: Document them.
2111 * tests/suite.at: Exercise these %options.
2113 2000-12-20 Akim Demaille <akim@epita.fr>
2115 Also handle the output file (--verbose) with obstacks.
2117 * files.c (foutput): Remove.
2118 (output_obstack): New.
2119 Adjust all dependencies.
2120 * src/conflicts.c: Return a string.
2121 * src/system.h (obstack_grow_string): Rename as...
2122 (obstack_sgrow): this. Be ready to work with non literals.
2123 (obstack_fgrow4): New.
2125 2000-12-20 Akim Demaille <akim@epita.fr>
2127 * src/files.c (open_files): Fix the computation of short_base_name
2128 in the case of `-o foo.tab.c'.
2130 2000-12-20 Akim Demaille <akim@epita.fr>
2132 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2133 (copy_dollar): Now that everything uses obstacks, get rid of the
2136 2000-12-20 Akim Demaille <akim@epita.fr>
2138 * src/files.c (open_files): Actually the `.output' file is based
2139 on the short_base_name, not base_name.
2140 * tests/suite.at (Checking output file names): Adjust.
2142 2000-12-20 Akim Demaille <akim@epita.fr>
2144 * src/bison.s1: Remove, we now use directly...
2145 * src/bison.simple: this.
2146 * src/Makefile.am: Use pkgdata instead of data.
2148 2000-12-20 Akim Demaille <akim@epita.fr>
2150 * src/files.c (guard_obstack): New.
2151 (open_files): Initialize it.
2152 (output_files): Dump it...
2153 * src/files.h: Export it.
2154 * src/reader.c (copy_guard): Use it.
2156 2000-12-19 Akim Demaille <akim@epita.fr>
2158 * src/files.c (outfile, defsfile, actfile): Removed as global
2160 (open_files): Don't compute them.
2161 (output_files): Adjust.
2162 (base_name, short_base_name): Be global.
2163 Adjust dependencies.
2165 2000-12-19 Akim Demaille <akim@epita.fr>
2167 * src/files.c (strsuffix): New.
2168 (stringappend): Be just like strcat but allocate.
2169 (base_names): Eve out from open_files.
2170 Try to simplify the rather hairy computation of base_name and
2172 (open_files): Use it.
2173 * tests/suite.at (Checking output file names): New test.
2175 2000-12-19 Akim Demaille <akim@epita.fr>
2177 * src/system.h (obstack_grow_literal_string): Rename as...
2178 (obstack_grow_string): this.
2179 * src/output.c (output_parser): Recognize `%% actions' instead of
2181 * src/bison.s1: s/$/%% actions/.
2182 * src/bison.hairy: Likewise.
2184 2000-12-19 Akim Demaille <akim@epita.fr>
2186 * src/output.c (output_parser): Compute the `#line' lines when
2188 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2189 Suggested by Hans Aberg.
2191 2000-12-19 Akim Demaille <akim@epita.fr>
2193 Let the handling of the skeleton files be local to the procedures
2196 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2198 (fparser, open_extra_files): Remove.
2199 (open_files, output_files): Don't take care of fparser.
2200 * src/files.h: Adjust.
2201 * src/output.c (output_parser): Open and close the file to the
2203 * src/reader.c (read_declarations): When %semantic_parser, open
2206 2000-12-19 Akim Demaille <akim@epita.fr>
2208 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2209 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2211 2000-12-19 Akim Demaille <akim@epita.fr>
2213 * src/files.c (open_files): Yipee! We no longer need all the code
2214 looking for `/tmp' since we have no tmp file.
2216 2000-12-19 Akim Demaille <akim@epita.fr>
2218 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2220 * src/files.c (open_files): Less dependency on MSDOS etc.
2222 2000-12-14 Akim Demaille <akim@epita.fr>
2224 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2225 Provide a default definition.
2226 Use it when executing the default @ action.
2227 * src/reader.c (reader_output_yylsp): No longer include
2228 `timestamp' and `text' in the default YYLTYPE.
2230 2000-12-12 Akim Demaille <akim@epita.fr>
2232 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2233 (copy_guard): Quote the file names.
2234 Reported by Laurent Mascherpa.
2236 2000-12-12 Akim Demaille <akim@epita.fr>
2238 * src/output.c (output_headers, output_program, output): Be sure
2239 to escape special characters when outputting filenames.
2240 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2241 (output_headers): Don't depend on them, Use ACTSTR.
2243 2000-11-17 Akim Demaille <akim@epita.fr>
2245 * lib/obstack.h: Formatting changes.
2246 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2247 prevents type checking.
2248 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2249 cast the value to (void *): assigning a `foo *' to a `void *'
2251 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2252 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2255 2000-11-17 Akim Demaille <akim@epita.fr>
2257 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2259 (suite.m4, regression.m4, calc.m4): these.
2260 * tests/atgeneral.m4: Update from CVS Autoconf.
2262 2000-11-17 Akim Demaille <akim@epita.fr>
2264 * tests/regression.m4 (%union and --defines): New test,
2265 demonstrating a current bug in the obstack implementation.
2267 2000-11-17 Akim Demaille <akim@epita.fr>
2269 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2271 Use them to declare the variables which are global or local to
2274 2000-11-17 Akim Demaille <akim@epita.fr>
2276 * acconfig.h: Remove, no longer used.
2278 2000-11-07 Akim Demaille <akim@epita.fr>
2280 * src: s/Copyright (C)/Copyright/g.
2282 2000-11-07 Akim Demaille <akim@epita.fr>
2284 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2286 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2288 2000-11-07 Akim Demaille <akim@epita.fr>
2290 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2291 Merge in a single CPP if/else.
2293 2000-11-07 Akim Demaille <akim@epita.fr>
2295 * src/output.c (output): Remove useless variables.
2296 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2297 argument `data' for consistency with the prototypes.
2299 (obstack_copy, obstack_copy0): Rename the second argument as
2300 `address' for consistency. Qualify it `const'.
2301 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2302 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2303 `const' their input argument (`data' or `address').
2304 Adjust the corresponding macros to include `const' in casts.
2306 2000-11-03 Akim Demaille <akim@epita.fr>
2308 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2309 s/PFILE1/BISON_HAIRY/.
2310 Adjust dependencies.
2312 2000-11-03 Akim Demaille <akim@epita.fr>
2314 For some reason, this was not applied.
2316 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2317 `unlink': it's no longer used.
2319 2000-11-03 Akim Demaille <akim@epita.fr>
2321 * src/files.c (skeleton_find): New function, eved out of...
2322 (open_files, open_extra_files): here.
2324 2000-11-03 Akim Demaille <akim@epita.fr>
2328 * src/files.c (obstack_save): New function.
2329 (done): Rename as...
2330 (output_files): this.
2332 * src/main.c (main): Don't use `atexit' to register `done', since
2333 it no longer has to remove tmp files, just call `output_files'
2334 when there are no errors.
2336 2000-11-02 Akim Demaille <akim@epita.fr>
2338 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2339 `unlink': it's no longer used.
2340 * src/files.h: Formatting changes.
2342 2000-11-02 Akim Demaille <akim@epita.fr>
2344 Remove the last uses of mktemp and unlink/delete.
2346 * src/files.c (fdefines, ftable): Removed.
2347 (defines_ostack, table_obstack): New.
2348 Adjust dependencies of the former into uses of the latter.
2349 * src/output.c (output_short_or_char_table, output_short_table):
2350 Convert to using obstacks.
2351 * src/reader.c (copy_comment2): Accept one FILE * and two
2353 (output_token_defines, reader_output_yylsp): Use obstacks.
2354 * src/system.h (obstack_fgrow3): New.
2356 2000-11-01 Akim Demaille <akim@epita.fr>
2358 Change each use of `fattrs' into a use of `attrs_obstack'.
2360 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2361 * src/files.c (fattrs): Remove.
2362 (attrs_obstack): New.
2363 Adjust all dependencies.
2364 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2366 2000-11-01 Akim Demaille <akim@epita.fr>
2369 Change each use of `faction' into a use of `action_obstack'.
2371 * lib/obstack.h, lib/obstack.c: New files.
2372 * src/files.c (faction): Remove.
2373 (action_obstack): New.
2374 Adjust all dependencies.
2376 2000-10-20 Akim Demaille <akim@epita.fr>
2378 * lib/quote.h (PARAMS): New macro. Use it.
2380 2000-10-16 Akim Demaille <akim@epita.fr>
2382 * src/output.c (output_short_or_char_table): New function.
2383 (output_short_table, output_token_translations): Use it.
2384 (goto_actions): Use output_short_table.
2386 2000-10-16 Akim Demaille <akim@epita.fr>
2388 * src/symtab.c (bucket_new): New function.
2391 * src/output.c (output_short_table): New argument to display the
2392 comment associated with the table.
2393 Adjust dependencies.
2394 (output_gram): Use it.
2395 (output_rule_data): Nicer output layout for YYTNAME.
2397 2000-10-16 Akim Demaille <akim@epita.fr>
2399 * src/lex.c (read_typename): New function.
2401 * src/reader.c (copy_dollar): Likewise.
2403 2000-10-16 Akim Demaille <akim@epita.fr>
2405 * src/reader.c (copy_comment2): Expect the input stream to be on
2406 the `/' which is suspected to open a comment, instead of being
2407 called after `//' or `/*' was read.
2408 (copy_comment, copy_definition, parse_union_decl, copy_action)
2409 (copy_guard): Adjust.
2411 2000-10-16 Akim Demaille <akim@epita.fr>
2413 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2414 `read_signed_integer'.
2416 2000-10-16 Akim Demaille <akim@epita.fr>
2418 * src/reader.c (copy_dollar): New function.
2419 (copy_guard, copy_action): Use it.
2421 2000-10-16 Akim Demaille <akim@epita.fr>
2423 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2424 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2425 New files, from Fileutils 4.0.27.
2426 * src/main.c (printable_version): Remove.
2427 * src/lex.c, src/reader.c: Use `quote'.
2429 2000-10-04 Akim Demaille <akim@epita.fr>
2431 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2433 2000-10-04 Akim Demaille <akim@epita.fr>
2435 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2437 2000-10-04 Akim Demaille <akim@epita.fr>
2439 When a literal string is used to define two different tokens,
2440 `bison -v' segfaults.
2441 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2443 * tests/regression.m4: New file.
2444 Include the core of the sample provided by Piotr Gackiewicz.
2445 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2448 2000-10-04 Akim Demaille <akim@epita.fr>
2450 * src/reader.c (parse_expect_decl): Keep `count' within the size
2454 2000-10-02 Paul Eggert <eggert@twinsun.com>
2456 * bison.s1 (yyparse): Assign the default value
2457 unconditionally, to avoid a GCC warning and make the parser a
2460 2000-10-02 Akim Demaille <akim@epita.fr>
2462 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2465 2000-10-02 Akim Demaille <akim@epita.fr>
2467 * src/derives.c, src/print.c, src/reduce.c: To ease the
2468 translation, move some `\n' out of the translated strings.
2470 2000-10-02 Akim Demaille <akim@epita.fr>
2472 The location tracking mechanism is precious for parse error
2473 messages. Nevertheless, it is enabled only when `@n' is used in
2474 the grammar, which is a different issue (you can use it in error
2475 message, but not in the grammar per se). Therefore, there should
2476 be another means to enable it.
2478 * src/getargs.c (getargs): Support `--locations'.
2480 * src/getargs.h (locationsflag): Export it.
2481 * src/lex.c (percent_table): Support `%locations'.
2482 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2483 with `locationsflag'.
2484 * doc/bison.texinfo: Document `--locations' and `%locations'.
2486 * tests/calc.m4: Test it.
2488 For regularity of the names, replace each
2489 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2490 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2491 In addition replace each `flag' with `_flag'.
2493 2000-10-02 Akim Demaille <akim@epita.fr>
2495 Also test parse error messages, including with YYERROR_VERBOSE.
2497 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2499 Use it to check the computations.
2500 Use it to check `nonassoc' is honored.
2501 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2502 `--yyerror-verbose'.
2503 (_AT_CHECK_CALC): Adjust to this option.
2504 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2506 2000-10-02 Akim Demaille <akim@epita.fr>
2508 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2509 the latter demonstrates a flaw in the handling of non debugging
2510 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2511 was used in order to simplify:
2527 unfortunately this leads to a CPP conflict when
2528 `--name-prefix=foo' is used since it produces `#define yydebug
2531 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2532 (YYDPRINTF): New macro.
2534 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2536 Also test `--verbose', `--defines' and `--name-prefix'.
2538 2000-10-02 Akim Demaille <akim@epita.fr>
2540 Improve the readability of the produced parsers.
2542 * src/bison.s1: Formatting changes.
2543 Improve the comment related to the `$' mark.
2544 (yydefault): Don't fall through to `yyresume': `goto' there.
2545 * src/output.c (output_parser): When the `$' is met, skip the end
2547 New variable, `number_of_dollar_signs', to check there's exactly
2548 one `$' in the parser skeleton.
2550 2000-10-02 Akim Demaille <akim@epita.fr>
2552 * lib/xstrdup.c: New file, from the fileutils.
2553 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2554 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2555 instead of strlen + xmalloc + strcpy.
2556 * src/symtab.c (copys): Remove, use xstrdup instead.
2558 2000-10-02 Akim Demaille <akim@epita.fr>
2560 * src/gram.h (associativity): New enum type which replaces the
2561 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2562 `right_assoc', `left_assoc' and `non_assoc'.
2563 Adjust all dependencies.
2564 * src/reader.c: Formatting changes.
2565 (LTYPESTR): Don't define it, use it as a literal in
2566 `reader_output_yylsp'.
2567 * src/symtab.h (symbol_class): New enum type which replaces the
2568 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2569 `sunknown', `stoken and `snterm'.
2571 2000-10-02 Akim Demaille <akim@epita.fr>
2573 * src/getargs.c (fixed_outfiles): Rename as...
2574 (yaccflag): for consistency and accuracy.
2575 Adjust dependencies.
2577 2000-10-02 Akim Demaille <akim@epita.fr>
2579 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2580 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2581 difficult and introduced a lot of core dump. It turns out that
2582 Bison used an implementation of `xmalloc' based on `calloc', and
2583 at various places it does depend upon the initialization to 0. I
2584 have not tried to isolate the pertinent places, and all the former
2585 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2586 someone should address this issue.
2588 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2589 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2591 Adjust dependencies.
2592 * src/warshall.h: New file.
2595 2000-10-02 Akim Demaille <akim@epita.fr>
2597 Various anti-`extern in *.c' changes.
2599 * src/system.h: Include `assert.h'.
2601 2000-10-02 Akim Demaille <akim@epita.fr>
2603 * src/state.h (nstates, final_state, first_state, first_shift)
2604 (first_reduction): Move their exportation from here...
2605 * src/LR0.h: to here.
2606 Adjust dependencies.
2607 * src/getargs.c (statisticsflag): New variable.
2608 Add support for `--statistics'.
2609 Adjust dependencies.
2611 Remove a lot of now useless `extern' statements in most files.
2613 2000-10-02 Akim Demaille <akim@epita.fr>
2615 * src/LR0.h: New file.
2618 2000-10-02 Akim Demaille <akim@epita.fr>
2620 * src/print.h: New file.
2622 * src/print.c: Formatting and ordering changes.
2623 (verbose, terse): Replace with...
2624 (print_results): this new function.
2625 Adjust dependencies.
2627 2000-10-02 Akim Demaille <akim@epita.fr>
2629 * src/conflicts.c (conflict_report): New function.
2630 (conflict_log, verbose_conflict_log): Replace with...
2631 (print_conflicts): this function.
2632 Adjust dependencies.
2633 * src/conflicts.h: New file.
2634 Propagate its inclusion.
2636 2000-10-02 Akim Demaille <akim@epita.fr>
2638 * src/nullable.h: New file.
2639 Propagate its inclusion.
2640 * src/nullable.c: Formatting changes.
2642 2000-10-02 Akim Demaille <akim@epita.fr>
2644 * src/reduce.h: New file.
2645 Propagate its inclusion.
2646 * src/reduce.c: Topological sort and other formatting changes.
2647 (bool, TRUE, FALSE): Move their definition to...
2648 * src/system.h: here.
2650 2000-10-02 Akim Demaille <akim@epita.fr>
2652 * src/files.c: Formatting changes.
2653 (tryopen, tryclose, openfiles): Rename as...
2654 (xfopen, xfclose, open_files): this.
2655 (stringappend): static.
2656 * src/files.h: Complete the list of exported symbols.
2659 2000-10-02 Akim Demaille <akim@epita.fr>
2661 * src/reader.h: New file.
2662 Propagate its use instead of tedious list of `extern' and
2664 * src/reader.c: Formatting changes, topological sort,
2667 2000-10-02 Akim Demaille <akim@epita.fr>
2669 * src/lex.h: Prototype `lex.c' exported functions.
2670 * src/reader.c: Adjust.
2671 * src/lex.c: Formatting changes.
2672 (safegetc): Rename as...
2675 2000-10-02 Akim Demaille <akim@epita.fr>
2677 * src/lalr.h: New file.
2678 Propagate its inclusion instead of prototypes and `extern'.
2679 * src/lalr.c: Formatting changes, topological sorting etc.
2681 2000-10-02 Akim Demaille <akim@epita.fr>
2683 * src/output.c (token_actions): Introduce a temporary array,
2684 YYDEFACT, that makes it possible for this function to use
2687 2000-10-02 Akim Demaille <akim@epita.fr>
2689 `user_toknums' is output as a `short[]' in `output.c', while it is
2690 defined as a `int[]' in `reader.c'. For consistency with the
2691 other output tables, `user_toknums' is now defined as a table of
2694 * src/reader.c (user_toknums): Be a short table instead of an int
2696 Adjust dependencies.
2698 Factor the short table outputs.
2700 * src/output.c (output_short_table): New function.
2701 * src/output.c (output_gram, output_stos, output_rule_data)
2702 (output_base, output_table, output_check): Use it.
2704 2000-10-02 Akim Demaille <akim@epita.fr>
2706 * src/output.c (output): Topological sort of the functions, in
2707 order to get rid of the `static' prototypes.
2708 No longer use `register'.
2709 * src/output.h: New file.
2710 Propagate its inclusion in files explicitly prototyping functions
2713 2000-09-21 Akim Demaille <akim@epita.fr>
2715 * src/atgeneral.m4: Update from Autoconf.
2717 2000-09-21 Akim Demaille <akim@epita.fr>
2719 * src/closure.h: New file.
2720 * src/closure.c: Formatting changes, topological sort over the
2721 functions, use of closure.h.
2722 (initialize_closure, finalize_closure): Rename as...
2723 (new_closure, free_closure): these. Adjust dependencies.
2724 * src/LR0.c: Formatting changes, topological sort, use of
2726 (initialize_states): Rename as...
2728 * src/Makefile.am (noinst_HEADERS): Adjust.
2730 2000-09-20 Akim Demaille <akim@epita.fr>
2732 * src/acconfig.h: Don't protect config.h against multiple
2734 Don't define PARAMS.
2735 * src/system.h: Define PARAMS.
2736 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2737 purpose of config.h. system.h must not try to fix wrong
2738 definitions in config.h.
2740 2000-09-20 Akim Demaille <akim@epita.fr>
2742 * src/derives.h: New file.
2743 * src/main.c, src/derives.h: Use it.
2745 * src/Makefile.am (noinst_HEADERS): Adjust.
2747 2000-09-20 Akim Demaille <akim@epita.fr>
2749 * tests/atgeneral.m4: Update from Autoconf.
2750 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2751 (AT_CHECK_CALC): New macros.
2752 Use these macros to test bison with options `', `--raw',
2753 `--debug', `--yacc', `--yacc --debug'.
2755 2000-09-19 Akim Demaille <akim@epita.fr>
2757 * src/output.c: Formatting changes.
2758 * src/machine.h: Remove, leaving its contents in...
2759 * src/system.h: here.
2761 Adjust all dependencies on stdio.h and machine.h.
2762 * src/getargs.h: New file.
2763 Let all `extern' declarations about getargs.c be replaced with
2764 inclusion of `getargs.h'.
2765 * src/Makefile.am (noinst_HEADERS): Adjust.
2767 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2769 (yyerror): Returns void, not int.
2770 * doc/bison.texinfo: Formatting changes.
2772 2000-09-19 Akim Demaille <akim@epita.fr>
2774 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2777 2000-09-18 Akim Demaille <akim@epita.fr>
2779 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2780 * src/Makefile.am (INCLUDES): Don't.
2781 Be ready to fetch headers in lib/.
2783 2000-09-18 Akim Demaille <akim@epita.fr>
2785 * doc/bison.texinfo: Update the copyright.
2786 ANSIfy and GNUify the examples.
2787 Remove the old menu.
2789 2000-09-18 Akim Demaille <akim@epita.fr>
2791 First set of tests: use the `calc' example from the documentation.
2793 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2794 is defined only when YYDEBUG is.
2795 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2796 * src/files.c (tryopen, tryclose): Formatting changes.
2797 Move to the top and be static.
2798 * src/reader.c (read_signed_integer): Likewise.
2799 * tests/calc.m4: New file.
2800 * Makefile.am, suite.m4: Adjust.
2801 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2803 2000-09-18 Akim Demaille <akim@epita.fr>
2805 Add support for an Autotest test suite for Bison.
2807 * m4/m4.m4, m4/atconfig.m4: New files.
2808 * m4/Makefile.am (EXTRA_DIST): Adjust.
2809 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2811 * src/getargs.c: Display a more standard --version message.
2812 * src/reader.c (reader): Formatting changes.
2813 No longer depend upon VERSION_STRING.
2814 * configure.in: No longer use `dnl'.
2815 Set up the test suite and the new directory `tests/.
2816 (VERSION_STRING): Remove.
2818 2000-04-14 Akim Demaille <akim@epita.fr>
2820 * src/reader.c (copy_comment2): New function, same as former
2821 `copy_comment', but outputs into two FILE *.
2822 (copy_comment): Use it.
2823 (parse_union_decl): Use it.
2824 (get_type, parse_start_decl): Use the same `invalid' message.
2825 (parse_start_decl, parse_union_decl): Use the same `multiple'
2827 (parse_union_decl, copy_guard, copy_action): Use the same
2828 `unmatched' message.
2829 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2831 2000-03-31 Akim Demaille <akim@epita.fr>
2833 * src/files.c (tryopen, tryclose): Move to the top.
2836 2000-03-31 Akim Demaille <akim@epita.fr>
2838 * src/main.c (main): Don't call `done', exit does it.
2840 2000-03-31 Akim Demaille <akim@epita.fr>
2842 * allocate.c: s/return (foo)/return foo/.
2845 * output.c: Likewise.
2846 * reader.c: Likewise.
2847 * symtab.c: Likewise.
2848 * vmsgetargs.c: Likewise.
2850 2000-03-31 Akim Demaille <akim@epita.fr>
2852 Clean up the error reporting functions.
2854 * src/report.c: New file.
2855 * src/report.h: Likewise.
2856 * src/Makefile.am: Adjust.
2857 * m4/error.m4: New file.
2858 * m4/Makefile.am: Adjust.
2859 * configure.in (jm_PREREQ_ERROR): Call it.
2860 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2862 (fatal, fatals): Remove. All callers use complain.c::fatal.
2863 (warn, warni, warns, warnss, warnss): Remove. All callers use
2864 complain.c::complain.
2865 (toomany): Remove, use fatal instead.
2866 * src/files.c (done): No argument, use complain_message_count.
2867 * src/main.c (main): Register `done' to `atexit'.
2869 * src/getargs.c (usage): More `fputs', less `fprintf'.
2871 2000-03-28 Akim Demaille <akim@epita.fr>
2873 * lib/: New directory.
2874 * Makefile.am (SUBDIRS): Adjust.
2875 * configure.in: Adjust.
2876 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2878 * src/alloca.c: Moved to lib/.
2879 * src/getopt.c: Likewise.
2880 * src/getopt1.c: Likewise.
2881 * src/getopt.h: Likewise.
2882 * src/ansi2knr.c: Likewise.
2883 * src/ansi2knr.1: Likewise.
2884 * src/Makefile.am: Adjust.
2885 * lib/Makefile.am: New file.
2887 2000-03-28 Akim Demaille <akim@epita.fr>
2889 * src/getargs.c (usage): Refresh the help message.
2891 2000-03-17 Akim Demaille <akim@epita.fr>
2893 * src/getopt1.c: Updated from textutils 2.0e
2894 * src/getopt.c: Likewise.
2895 * src/getopt.h: Likewise.
2897 2000-03-17 Akim Demaille <akim@epita.fr>
2899 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2900 the file name, not the whole `#line LINE FILE'.
2902 2000-03-17 Akim Demaille <akim@epita.fr>
2904 On syntax errors, report the token on which we choked.
2906 * src/bison.s1 (yyparse): In the label yyerrlab, when
2907 YYERROR_VERBOSE, add yychar in msg.
2909 2000-03-17 Akim Demaille <akim@epita.fr>
2911 * src/reader.c (copy_at): New function.
2912 (copy_guard): Use it.
2913 (copy_action): Use it.
2915 2000-03-17 Akim Demaille <akim@epita.fr>
2917 Be kind to translators, save some useless translations.
2919 * src/main.c (banner): New function.
2920 (fatal_banner): Use it.
2921 (warn_banner): Use it.
2923 2000-03-17 Akim Demaille <akim@epita.fr>
2925 * src/reader.c (copy_definition): Use copy_string and
2926 copy_comment. Removed now unused `match', `ended',
2928 (copy_comment, copy_string): Moved, to be visible from
2931 2000-03-17 Akim Demaille <akim@epita.fr>
2933 * src/reader.c (copy_string): Declare `static inline'. No
2934 problems with inline, since it is checked by configure.
2935 (copy_comment): Likewise.
2937 2000-03-17 Akim Demaille <akim@epita.fr>
2939 * src/reader.c (packsymbols): Formatting changes.
2941 2000-03-17 Akim Demaille <akim@epita.fr>
2943 * src/reader.c (copy_comment): New function, factored out from:
2944 (copy_action): Use it. Removed now unused `match', `ended',
2946 (copy_guard): Likewise.
2948 2000-03-17 Akim Demaille <akim@epita.fr>
2950 * src/reader.c (copy_string): New function, factored out from:
2951 (copy_action): Use it.
2952 (copy_guard): Likewise.
2954 2000-03-17 Akim Demaille <akim@epita.fr>
2956 Change the handling of @s so that they behave exactly like $s.
2957 There is now a pseudo variable @$ (readble and writable), location
2958 of the lhs of the rule (by default ranging from the location of
2959 the first symbol of the rhs, to the location of the last symbol,
2960 or, if the rhs is empty, YYLLOC).
2962 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2964 (yyparse): When providing a default semantic action, provide a
2965 default location action.
2966 (after the $): No longer change `*YYLSP', just stack YYLOC the
2967 same way you stack YYVAL.
2968 * src/reader.c (read_declarations): Use warns.
2969 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2970 (copy_action, case '@'): Likewise.
2971 Use a standard error message, to save useless work from
2974 2000-03-17 Akim Demaille <akim@epita.fr>
2976 * src/bison.s1: Formatting and cosmetics changes.
2977 * src/reader.c: Likewise.
2978 Update the Copyright notice.
2980 2000-03-17 Akim Demaille <akim@epita.fr>
2982 * src/bison.s1 (#line): All set to `#line' only, since the
2983 Makefile now handles them.
2985 2000-03-16 Akim Demaille <akim@epita.fr>
2987 * src/output.c (output_rule_data): Output the documentation of
2989 (Copyright notice): Update.
2992 2000-03-16 Akim Demaille <akim@epita.fr>
2994 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2995 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2996 One `#if YYDEBUG' remains, since it uses variables which are
2997 defined only if `YYDEBUG != 0'.
2999 2000-03-16 Akim Demaille <akim@epita.fr>
3001 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3002 and related variables so that the similarities are highlighted.
3004 2000-03-16 Akim Demaille <akim@epita.fr>
3006 * src/bison.s1: Properly indent CPP directives.
3008 2000-03-16 Akim Demaille <akim@epita.fr>
3010 * src/bison.s1: Properly indent the `alloca' CPP section.
3012 2000-03-16 Akim Demaille <akim@epita.fr>
3014 Do not hard code values of directories in `configure.in'.
3015 Update the `configure' tool chain.
3017 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3019 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3020 (AC_OUTPUT): Add m4/Makefile.
3021 Bump to bison 1.28a, 1.29 has never been released.
3022 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3023 handled via src/Makefile.am.
3024 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3025 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3027 * Makefile.am (SUBDIRS): Add m4.
3028 (ACLOCAL_AM_FLAGS): New variable.
3029 (AUTOMAKE_OPTIONS): Add check-news.
3030 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3031 the proper line number and file name.
3032 (DEFS): Propagate the location of bison library files and of the
3034 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3036 * acinclude.m4: Remove, replaced by the directory m4.
3037 * m4/Makefile.am (EXTRA_DIST): New variable.
3038 * m4/gettext.m4: New file, from the fileutils.
3039 * m4/lcmessage.m4: Likewise
3040 * m4/progtest.m4: Likewise.
3041 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3043 2000-03-10 Akim Demaille <akim@epita.fr>
3046 Formatting changes of various comments.
3047 Respect the GNU coding standards at various places.
3048 Don't use `_()' when no translation is needed.
3050 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3053 OS/2 honors TMPDIR environment variable.
3055 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3057 * doc/bison.texinfo: Tweaked spelling and grammar.
3059 Removed reference to price of printed copy.
3060 Mention BISON_SIMPLE and BISON_HAIRY.
3062 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3064 * configure.in, NEWS:
3065 Bison 1.29 released.
3067 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3069 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3070 Added reference card.
3072 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3074 * po/ru.po: Added Russian translation.
3076 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3078 * configure.in: Added Russian translation.
3080 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3082 * configure.in, NEWS, README:
3083 Released version 1.28.
3085 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3088 Squashed redefinition warning on some systems.
3090 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3091 Have configure build version string instead of relying on ANSI string
3094 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3096 * po/POTFILES.in: Got rid of version.c.
3098 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3100 * acconfig.h, configure.in:
3101 Have configure build version string instead of relying on ANSI string
3104 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3107 Dropped mention of `+' for long-named options.
3109 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3111 * src/files.c: Added <unistd.h> for unlink().
3113 * src/Makefile.am, src/system.h:
3116 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3118 * README: Added a FAQ list.
3120 * configure.in, acconfig.h:
3123 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3125 * doc/FAQ, doc/Makefile.am:
3128 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3130 * src/alloc.h, src/symtab.h, src/version.c:
3131 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3133 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3135 * src/.cvsignore, src/Makefile.am:
3136 Reorganized: sources in `src', documentation in `doc'.
3138 * src/lex.c (literalchar):
3139 fixed the code for escaping double quotes (thanks
3142 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3144 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3145 Adjusted paths to reflect directory reorganization.
3147 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3149 * doc/.cvsignore, doc/Makefile.am:
3150 Reorganized: sources in `src', documentation in `doc'.
3152 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3155 Updated AC_INIT file to reflect directory reorganization.
3157 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3158 Reorganized: sources in `src', documentation in `doc'.
3160 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3163 Don't declare calloc() and realloc() if not necessary.
3165 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3167 * configure.in, acconfig.h, acinclude.m4:
3168 Don't declare calloc() and realloc() if not necessary.
3170 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3172 * po/.cvsignore: Added i18n support.
3174 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3176 * acconfig.h, configure.in, Makefile.am:
3179 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3181 * src/bison.s1: Fixed #line numbers.
3183 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3185 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3186 Added PO files from Translation Project.
3188 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3191 Added support for non-ANSI compilers (ansi2knr).
3193 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3195 * configure.in: Bumped version number to 1.27.
3198 Added `bison.simple' to list of files removed by `make distclean'.
3200 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3202 * src/files.c, src/files.h:
3203 Defined locations of parser files in config.h instead of Makefile.
3205 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3207 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3208 Defined locations of parser files in config.h instead of Makefile.
3210 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3213 Removed inappropriate use of $< macro.
3215 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3217 * po/Makefile.in.in, po/POTFILES.in:
3218 Add `po' directory skeleton.
3220 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3222 * README: Document help-bison list.
3224 * configure.in: Add check for mkstemp().
3226 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3228 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3229 Hush a few compiler warnings.
3232 Add tryclose(), which verifies that fclose was successful.
3233 Hush a couple of compiler warnings.
3235 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3237 * Makefile.am, OChangeLog:
3238 ChangeLog is now automatically generated. Include the old version as
3241 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3243 * 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:
3246 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3248 * doc/bison.texinfo: Fix formatting glitch.
3250 * doc/bison.texinfo: Update FSF address.
3252 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3254 * acconfig.h: Update FSF address.
3256 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3259 Don't define PACKAGE here, since config.h defines it.
3261 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3263 * src/reader.c: Update copyright date.
3266 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3267 favor of output directly to stderr (avoids buffer overruns).
3269 * src/reader.c: Some checks for premature EOF.
3271 * 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:
3272 Use prototypes if the compiler understands them.
3274 * src/files.c: Honor TMPDIR on Unix hosts.
3275 Use prototypes if the compiler understands them.
3278 Fix a couple of buffer overrun bugs.
3279 Use prototypes if the compiler understands them.
3281 * src/system.h: Include unistd.h and ctype.h.
3282 Use #ifdef instead of #if for NLS symbols.
3284 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3286 * doc/bison.texinfo:
3287 Delete comment "consider using @set for edition number, etc..." since
3288 we now are doing so.
3290 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3293 Use prototypes if the compiler understands them.
3295 * NEWS: Document 1.26 highlights.
3297 * Makefile.am: Require Automake 1.3 or later.
3300 Use prototypes if the compiler understands them.
3302 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3305 Use VERSION symbol from automake for version number.
3307 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3309 * acconfig.h, configure.in, version.cin:
3310 Use VERSION symbol from automake for version number.
3312 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3315 Distribute original version of simple parser (bison.s1), not built
3316 version (bison.simple).
3318 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3320 * doc/bison.texinfo: Add info dir entry.
3322 * doc/bison.texinfo:
3323 Let automake put version number into documentation.
3325 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3327 * src/bison.cld, src/build.com, src/vmshlp.mar:
3328 Add non-RCS files from /gd/gnu/bison.
3330 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3333 Document the BISON_HAIRY and BISON_SIMPLE variables.
3335 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3337 * src/version.c: Build version.c automatically.
3340 Fix token numbering (used to start at 258, not 257).
3342 * src/system.h: Include config.h.
3344 * src/getargs.c: Update bug report address.
3346 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3347 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3349 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3352 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3354 * configure.in, version.cin:
3355 Build version.c automatically.
3357 * AUTHORS: Add AUTHORS file.
3359 * README: Update bug report address.
3362 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3364 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3367 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3369 * doc/bison.texinfo: Clean up some formatting.
3371 1998-05-05 Richard Stallman <rms@gnu.org>
3373 * doc/bison.texinfo:
3374 Explain better why to make a pure parser.
3376 1998-01-05 Richard Stallman <rms@gnu.org>
3378 * src/files.c (openfiles):
3379 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3380 find a temporary directory, if possible. Do not unlink files while
3383 1997-08-25 Richard Stallman <rms@gnu.org>
3385 * src/reader.c (stack_offset;):
3386 Change some warni to warns.
3388 * src/lex.c (literalchar): Use warns, not warni.
3390 1997-06-28 Richard Stallman <rms@gnu.org>
3392 * src/bison.s1: Add a Bison version comment.
3394 * src/main.c (fatal, warn, berror):
3397 1997-06-28 Richard Stallman <rms@gnu.org>
3399 * Makefile.in (bison_version): New variable.
3400 (dist): Use that variable.
3401 (bison.s1): Substitute the Bison version into bison.simple.
3403 * bison.simple: Add a Bison version comment.
3405 1997-06-18 Richard Stallman <rms@gnu.org>
3407 * src/main.c (fatal, warn, berror):
3408 Make error messages standard.
3409 (toomany): Improve error message text.
3411 * 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:
3412 new.h renamed to alloc.h.
3414 1997-06-18 Richard Stallman <rms@gnu.org>
3416 * Makefile.in: new.h renamed to alloc.h.
3418 1997-05-24 Richard Stallman <rms@gnu.org>
3420 * src/lex.c (literalchar):
3421 Fix the code for escaping \, " and '.
3423 (lex): Avoid trouble when there are many chars
3424 to discard in a char literal with just several chars in it.
3426 1997-05-17 Richard Stallman <rms@gnu.org>
3429 Use malloc, if using alloca is troublesome.
3430 (YYSTACK_USE_ALLOCA): New flag macro.
3431 Define it for some systems and compilers.
3432 (YYSTACK_ALLOC): New macro.
3433 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3434 If it was malloc'd, free it.
3436 1997-05-17 Richard Stallman <rms@gnu.org>
3439 Use malloc, if using alloca is troublesome.
3440 (YYSTACK_USE_ALLOCA): New flag macro.
3441 Define it for some systems and compilers.
3442 (YYSTACK_ALLOC): New macro.
3443 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3444 If it was malloc'd, free it.
3446 1997-04-23 Richard Stallman <rms@gnu.org>
3449 (alloca) [__hpux]: Always define as __builtin_alloca.
3451 1997-04-23 Richard Stallman <rms@gnu.org>
3454 (alloca) [__hpux]: Always define as __builtin_alloca.
3456 1997-04-22 Richard Stallman <rms@gnu.org>
3459 [__hpux]: Include alloca.h (right for HPUX 10)
3460 instead of declaring alloca (right for HPUX 9).
3462 * src/bison.s1 (__yy_memcpy):
3463 Declare arg `count' as unsigned int.
3464 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3466 1997-04-22 Richard Stallman <rms@gnu.org>
3469 [__hpux]: Include alloca.h (right for HPUX 10)
3470 instead of declaring alloca (right for HPUX 9).
3472 * bison.simple (__yy_memcpy):
3473 Declare arg `count' as unsigned int.
3474 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3476 1997-01-03 Richard Stallman <rms@gnu.org>
3478 * src/allocate.c: [__STDC__ or _MSC_VER]:
3479 Declare calloc and realloc to return void *.
3481 1997-01-02 Richard Stallman <rms@gnu.org>
3484 [_MSC_VER]: Include stdlib.h and process.h.
3485 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3487 * src/main.c (main): Return FAILURE as a value.
3488 (printable_version): Declare arg as int, not char.
3490 1997-01-02 Richard Stallman <rms@gnu.org>
3492 * Makefile.in (dist):
3493 Explicitly check for symlinks, and copy them.
3495 1996-12-19 Richard Stallman <rms@gnu.org>
3498 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3500 1996-12-18 Paul Eggert <eggert@gnu.org>
3502 * src/bison.s1 (yyparse):
3503 If __GNUC__ and YYPARSE_PARAM are both defined,
3504 declare yyparse to have a void * argument.
3506 1996-12-18 Paul Eggert <eggert@gnu.org>
3508 * bison.simple (yyparse):
3509 If __GNUC__ and YYPARSE_PARAM are both defined,
3510 declare yyparse to have a void * argument.
3512 1996-12-17 Richard Stallman <rms@gnu.org>
3514 * src/reduce.c (nbits): Add some casts.
3516 1996-08-12 Richard Stallman <rms@gnu.org>
3518 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3520 1996-08-12 Richard Stallman <rms@gnu.org>
3522 * bison.simple: Test _MSDOS as well as _MSDOS_.
3524 1996-07-31 Richard Stallman <rms@gnu.org>
3527 [__sun && __i386]: Include alloca.h.
3529 1996-07-31 Richard Stallman <rms@gnu.org>
3532 [__sun && __i386]: Include alloca.h.
3534 1996-07-30 Richard Stallman <rms@gnu.org>
3536 * src/bison.s1: Comment change.
3538 * src/bison.s1: Test _MSDOS_, not MSDOS.
3540 1996-07-30 Richard Stallman <rms@gnu.org>
3542 * bison.simple: Comment change.
3544 * bison.simple: Test _MSDOS_, not MSDOS.
3546 1996-06-01 Richard Stallman <rms@gnu.org>
3548 * 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:
3549 Insert `_' macro around many string constants.
3552 Insert `_' macro around many string constants.
3554 (main): Call setlocale, bindtextdomain and textdomain.
3556 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3557 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3558 [ENABLE_NLS]: Include libintl.h.
3559 [ENABLE_NLS] (gettext): Define.
3560 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3561 (N_, PACKAGE, LOCALEDIR): New macros.
3563 1996-06-01 Richard Stallman <rms@gnu.org>
3565 * POTFILES.in: New file.
3567 * Makefile.in (allocate.o):
3568 Define target explicitly.
3570 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3571 (LDFLAGS): Set to @LDFLAGS@.
3572 (configure): Run autoconf only if preceding `cd' succeeds.
3573 (bison.s1): Redirect output to temporary file then move the
3574 temporary to the target, rather than redirecting directly to bison.s1.
3575 (clean): Remove config.status and config.log.
3576 (distclean): Don't remove config.status here.
3578 1996-05-12 Richard Stallman <rms@gnu.org>
3581 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3583 1996-05-12 Richard Stallman <rms@gnu.org>
3586 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3588 1996-05-11 Richard Stallman <rms@gnu.org>
3590 * src/bison.s1 (__yy_memcpy):
3591 Really reorder the args, as was supposedly done on Feb 14 1995.
3592 (yyparse): Calls changed accordingly.
3594 1996-05-11 Richard Stallman <rms@gnu.org>
3596 * Makefile.in (dist): Don't use $(srcdir).
3598 * bison.simple (__yy_memcpy):
3599 Really reorder the args, as was supposedly done on Feb 14 1995.
3600 (yyparse): Calls changed accordingly.
3602 1996-01-27 Richard Stallman <rms@gnu.org>
3604 * src/output.c (output_rule_data):
3605 Test YYERROR_VERBOSE in the conditional
3606 around the definition of ttyname.
3608 1995-12-29 Richard Stallman <rms@gnu.org>
3611 Fix line numbers in #line commands.
3613 1995-12-29 Richard Stallman <rms@gnu.org>
3616 Fix line numbers in #line commands.
3618 1995-12-27 Richard Stallman <rms@gnu.org>
3620 * src/bison.s1 (YYPARSE_PARAM_DECL):
3621 In C++, make it always null.
3622 (YYPARSE_PARAM_ARG): New macro.
3623 (yyparse): Use YYPARSE_PARAM_ARG.
3625 1995-12-27 Richard Stallman <rms@gnu.org>
3627 * bison.simple (YYPARSE_PARAM_DECL):
3628 In C++, make it always null.
3629 (YYPARSE_PARAM_ARG): New macro.
3630 (yyparse): Use YYPARSE_PARAM_ARG.
3632 1995-11-29 Richard Stallman <rms@gnu.org>
3634 * doc/bison.texinfo:
3635 Describe literal string tokens, %raw, %no_lines, %token_table.
3637 1995-11-29 Daniel Hagerty <hag@gnu.org>
3639 * doc/bison.texinfo: Fixed update date
3641 1995-10-16 Richard Stallman <rms@gnu.org>
3643 * src/version.c: Version 1.25.
3645 1995-10-16 Richard Stallman <rms@gnu.org>
3647 * NEWS: *** empty log message ***
3649 1995-10-16 Richard Stallman <rms@gnu.org>
3651 * doc/bison.1, doc/bison.rnh:
3654 1995-10-15 Richard Stallman <rms@gnu.org>
3656 * src/vmsgetargs.c, src/getargs.c:
3657 Added -n, -k, and -raw switches.
3658 (noparserflag, toknumflag, rawtoknumflag): New variables.
3660 * src/symtab.h (SALIAS):
3661 New #define for adding aliases to %token.
3662 (struct bucket): Added `alias' field.
3664 * src/reduce.c (reduce_grammar):
3665 Revise error message.
3666 (print_notices): Remove final `.' from error message.
3668 * src/reader.c (reader_output_yylsp):
3670 (readgram): Use `#if 0' around code that accepted %command
3671 inside grammar rules: The documentation doesn't allow it,
3672 and it will fail since the %command processors scan for the next %.
3673 (parse_token_decl): Extended the %token
3674 declaration to allow a multi-character symbol as an alias.
3675 (parse_thong_decl): New function.
3676 (read_declarations): Added %thong declarations.
3677 (read_declarations): Handle NOOP to deal with allowing
3678 % declarations as another means to specify the flags.
3679 (readgram): Allow %prec prior to semantics embedded in a rule.
3680 (skip_to_char, read_declarations, copy_definition)
3681 (parse_token_decl, parse_start_decl, parse_type_decl)
3682 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3683 (get_type_name, copy_guard, copy_action, readgram)
3684 (get_type, packsymbols): Revised most error messages.
3685 Changed `fatal' to `warnxxx' to avoid aborting for error.
3686 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3687 (read_declarations): Improve the error message for
3688 an invalid character. Do not abort.
3689 (read_declarations, copy_guard, copy_action): Use
3690 printable_version to avoid unprintable characters in printed output.
3691 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3692 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3693 Allow the type of a non-terminal can be given
3694 more than once, as long as all specifications give the same type.
3697 (output_headers, output_trailers, output, output_gram)
3698 (output_rule_data): Implement noparserflag variable.
3699 Implement toknumflag variable.
3700 (output): Call reader_output_yylsp to output LTYPESTR.
3702 * src/main.c (main):
3703 If reader sees an error, don't process the grammar.
3704 (fatals): Updated to not use VARARGS1.
3705 (printable_version, int_to_string, warn, warni, warns, warnss)
3706 (warnsss): New error reporting functions. Avoid abort for error.
3709 Added THONG and NOOP for alias processing.
3710 Added SETOPT for the new code that allows setting options with %flags.
3713 Include getopt.h. Add some extern decls.
3714 (safegetc): New function to deal with EOF gracefully.
3715 (literalchar); new function to deal with reading \ escapes.
3716 (lex): Use literalchar.
3717 (lex): Implemented "..." tokens.
3718 (literalchar, lex, parse_percent_token): Made tokenbuffer
3719 always contain the token. This includes growing the token
3720 buffer while reading an integer.
3721 (parse_percent_token): Replaced if-else statement with percent_table.
3722 (parse_percent_token): Added % declarations as another
3723 way to specify the flags -n, -l, and -r. Also added hooks for
3724 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3725 major changes to files.c.
3726 (lex) Retain in the incoming stream a character following
3728 (skip_white_space, lex): Revised most error messages
3729 and changed fatal to warn to avoid aborting.
3730 (percent_table): Added %thong declarations.
3732 * src/gram.h: Comment changes.
3734 * src/files.c (openfiles, open_extra_files, done):
3736 and actfile file. Handle noparserflag. Both for -n switch.
3738 * src/conflicts.c (resolve_sr_conflict):
3739 Remove use of alloca.
3741 1995-06-01 Jim Meyering <meyering@gnu.org>
3743 * doc/bison.texinfo: *** empty log message ***
3745 1995-05-06 Richard Stallman <rms@gnu.org>
3747 * src/bison.s1: Comment change.
3749 1995-05-06 Richard Stallman <rms@gnu.org>
3751 * bison.simple: Comment change.
3753 1995-05-03 Richard Stallman <rms@gnu.org>
3755 * src/version.c: Version now 1.24.
3757 * src/bison.s1: Change distribution terms.
3759 * src/version.c: Version now 1.23.
3761 1995-05-03 Richard Stallman <rms@gnu.org>
3763 * doc/bison.texinfo:
3764 Rewrite "Conditions for Using Bison".
3765 Update version to 1.24.
3767 1995-05-03 Richard Stallman <rms@gnu.org>
3769 * bison.simple: Change distribution terms.
3771 1995-02-23 Richard Stallman <rms@gnu.org>
3773 * src/files.c: Test __VMS_POSIX as well as VMS.
3775 1995-02-14 Jim Meyering <meyering@gnu.org>
3777 * src/bison.s1 (__yy_memcpy):
3778 Renamed from __yy_bcopy to avoid
3779 confusion. Reverse FROM and TO arguments to be consistent with
3782 1995-02-14 Jim Meyering <meyering@gnu.org>
3784 * bison.simple (__yy_memcpy):
3785 Renamed from __yy_bcopy to avoid
3786 confusion. Reverse FROM and TO arguments to be consistent with
3789 1994-11-10 David J. MacKenzie <djm@gnu.org>
3795 * Makefile.in (DISTFILES): Include NEWS.
3797 * Makefile.in (DISTFILES):
3798 Include install-sh, not install.sh.
3800 * configure.in: Update to Autoconf v2 macro names.
3802 1994-10-05 David J. MacKenzie <djm@gnu.org>
3804 * Makefile.in: fix typo
3806 * Makefile.in (prefix, exec_prefix):
3807 Let configure set them.
3809 1994-09-28 David J. MacKenzie <djm@gnu.org>
3811 * Makefile.in: Set datadir to $(prefix)/share.
3813 1994-09-15 Richard Stallman <rms@gnu.org>
3816 Update copyright notice and GPL version.
3818 1994-09-15 Richard Stallman <rms@gnu.org>
3821 Update copyright notice and GPL version.
3823 1994-07-12 Richard Stallman <rms@gnu.org>
3825 * src/reduce.c, src/reader.c:
3828 1994-05-05 David J. MacKenzie <djm@gnu.org>
3830 * Makefile.in: entered into RCS
3832 1994-03-26 Richard Stallman <rms@gnu.org>
3834 * src/bison.s1: entered into RCS
3836 1994-03-26 Richard Stallman <rms@gnu.org>
3838 * bison.simple: entered into RCS
3840 1994-03-25 Richard Stallman <rms@gnu.org>
3842 * src/main.c: entered into RCS
3844 1994-03-24 Richard Stallman <rms@gnu.org>
3846 * src/conflicts.c: entered into RCS
3848 1994-01-02 Richard Stallman <rms@gnu.org>
3850 * Makefile.in: *** empty log message ***
3852 1993-11-21 Richard Stallman <rms@gnu.org>
3854 * src/bison.s1: *** empty log message ***
3856 1993-11-21 Richard Stallman <rms@gnu.org>
3858 * doc/bison.texinfo: entered into RCS
3860 * doc/bison.texinfo: *** empty log message ***
3862 1993-11-21 Richard Stallman <rms@gnu.org>
3864 * bison.simple: *** empty log message ***
3866 1993-10-25 David J. MacKenzie <djm@gnu.org>
3868 * doc/bison.texinfo: *** empty log message ***
3870 1993-10-19 Richard Stallman <rms@gnu.org>
3872 * src/bison.s1: *** empty log message ***
3874 1993-10-19 Richard Stallman <rms@gnu.org>
3876 * bison.simple: *** empty log message ***
3878 1993-10-14 Richard Stallman <rms@gnu.org>
3880 * src/bison.s1: *** empty log message ***
3882 1993-10-14 Richard Stallman <rms@gnu.org>
3884 * bison.simple: *** empty log message ***
3886 1993-09-14 David J. MacKenzie <djm@gnu.org>
3888 * doc/bison.texinfo: *** empty log message ***
3890 1993-09-13 Noah Friedman <friedman@gnu.org>
3892 * Makefile.in: *** empty log message ***
3894 1993-09-10 Richard Stallman <rms@gnu.org>
3896 * src/conflicts.c: *** empty log message ***
3898 * src/system.h: entered into RCS
3900 1993-09-10 Richard Stallman <rms@gnu.org>
3902 * doc/bison.1: entered into RCS
3904 1993-09-06 Noah Friedman <friedman@gnu.org>
3906 * src/version.c: entered into RCS
3908 1993-09-06 Noah Friedman <friedman@gnu.org>
3910 * Makefile.in: *** empty log message ***
3912 1993-07-30 David J. MacKenzie <djm@gnu.org>
3914 * Makefile.in: *** empty log message ***
3916 1993-07-24 Richard Stallman <rms@gnu.org>
3918 * src/bison.s1: *** empty log message ***
3920 1993-07-24 Richard Stallman <rms@gnu.org>
3922 * bison.simple: *** empty log message ***
3924 1993-07-08 David J. MacKenzie <djm@gnu.org>
3926 * Makefile.in: *** empty log message ***
3928 1993-07-04 Richard Stallman <rms@gnu.org>
3930 * src/bison.s1: *** empty log message ***
3932 1993-07-04 Richard Stallman <rms@gnu.org>
3934 * bison.simple: *** empty log message ***
3936 1993-06-26 David J. MacKenzie <djm@gnu.org>
3938 * src/getargs.c: entered into RCS
3940 1993-06-26 David J. MacKenzie <djm@gnu.org>
3942 * doc/bison.texinfo: *** empty log message ***
3944 * doc/bison.1: New file.
3946 1993-06-25 Richard Stallman <rms@gnu.org>
3948 * src/getargs.c: New file.
3950 1993-06-16 Richard Stallman <rms@gnu.org>
3952 * src/bison.s1: *** empty log message ***
3954 1993-06-16 Richard Stallman <rms@gnu.org>
3956 * bison.simple: *** empty log message ***
3958 1993-06-03 Richard Stallman <rms@gnu.org>
3960 * src/bison.s1: New file.
3962 1993-06-03 Richard Stallman <rms@gnu.org>
3964 * doc/bison.texinfo: *** empty log message ***
3966 1993-06-03 Richard Stallman <rms@gnu.org>
3968 * bison.simple: New file.
3970 1993-05-19 Richard Stallman <rms@gnu.org>
3972 * doc/bison.texinfo: New file.
3974 1993-05-07 Noah Friedman <friedman@gnu.org>
3976 * Makefile.in: *** empty log message ***
3978 1993-04-28 Noah Friedman <friedman@gnu.org>
3980 * src/reader.c: *** empty log message ***
3982 1993-04-23 Noah Friedman <friedman@gnu.org>
3984 * src/alloc.h: entered into RCS
3986 1993-04-20 David J. MacKenzie <djm@gnu.org>
3988 * src/version.c: *** empty log message ***
3990 * src/files.c, src/allocate.c:
3993 * src/reader.c: *** empty log message ***
3995 * src/lex.c: entered into RCS
3997 * src/conflicts.c: New file.
3999 * src/symtab.c: entered into RCS
4001 * src/alloc.h: New file.
4003 * src/LR0.c: entered into RCS
4005 1993-04-18 Noah Friedman <friedman@gnu.org>
4007 * src/reader.c: New file.
4009 * src/version.c: *** empty log message ***
4011 1993-04-18 Noah Friedman <friedman@gnu.org>
4013 * Makefile.in: *** empty log message ***
4015 1993-04-17 Noah Friedman <friedman@gnu.org>
4017 * Makefile.in: *** empty log message ***
4019 1993-04-15 Richard Stallman <rms@gnu.org>
4021 * src/main.c, src/files.c:
4024 1993-04-15 Noah Friedman <friedman@gnu.org>
4026 * configure.in: entered into RCS
4028 * configure.in: *** empty log message ***
4030 * configure.in: New file.
4032 1993-04-14 Richard Stallman <rms@gnu.org>
4034 * Makefile.in: New file.
4036 1993-04-13 Richard Stallman <rms@gnu.org>
4038 * src/version.c: New file.
4040 1993-03-25 Richard Stallman <rms@gnu.org>
4042 * src/output.c: entered into RCS
4044 1992-09-25 Richard Stallman <rms@gnu.org>
4046 * configure.bat: entered into RCS
4048 1992-06-22 Richard Stallman <rms@gnu.org>
4050 * src/vmsgetargs.c: entered into RCS
4052 1992-06-22 Richard Stallman <rms@gnu.org>
4054 * doc/bison.rnh: entered into RCS
4056 1992-04-20 David J. MacKenzie <djm@gnu.org>
4058 * README: entered into RCS
4060 1992-01-22 Richard Stallman <rms@gnu.org>
4062 * src/machine.h: entered into RCS
4064 1991-12-21 Richard Stallman <rms@gnu.org>
4066 * src/lalr.c, src/closure.c:
4069 1991-12-20 Richard Stallman <rms@gnu.org>
4071 * src/state.h: entered into RCS
4073 1991-12-18 Richard Stallman <rms@gnu.org>
4075 * src/print.c, src/nullable.c, src/derives.c:
4078 1991-11-03 David J. MacKenzie <djm@gnu.org>
4080 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4083 1988-09-09 Richard Stallman <rms@gnu.org>
4085 * src/bison.hairy: entered into RCS
4087 1987-12-16 Richard Stallman <rms@gnu.org>
4089 * REFERENCES: entered into RCS