1 2001-12-05 Akim Demaille <akim@epita.fr>
3 * src/closure.c (print_closure): Improve.
4 (closure): Use it for printing input and output.
7 2001-12-05 Akim Demaille <akim@epita.fr>
9 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
10 indexed by nonterminals.
13 2001-12-05 Akim Demaille <akim@epita.fr>
15 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
17 * src/warshall.h: Remove accidental duplication of the content.
20 2001-12-05 Akim Demaille <akim@epita.fr>
22 * src/closure.c (set_fderives): De-obfuscate.
25 2001-12-05 Akim Demaille <akim@epita.fr>
27 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
30 2001-12-05 Akim Demaille <akim@epita.fr>
32 * src/closure.c (set_firsts): De-obfuscate.
34 2001-12-05 Akim Demaille <akim@epita.fr>
36 * src/output.c (action_row): De-obfuscate
37 using the good o' techniques: arrays not pointers, variable
38 locality, BITISSET, RESETBIT etc.
41 2001-12-05 Akim Demaille <akim@epita.fr>
43 Pessimize the code to simplify it: from now on, all the states
44 have a valid SHIFTS, which NSHIFTS is possibly 0.
46 * src/LR0.c (shifts_new): Be global and move to..
47 * src/state.c, src/state.h: here.
48 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
49 * src/print_graph: Adjust.
52 2001-12-05 Akim Demaille <akim@epita.fr>
54 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
55 * src/conflicts.c: Use it.
56 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
57 incorrectly ``simplified''.
60 2001-12-05 Akim Demaille <akim@epita.fr>
62 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
63 using the good o' techniques: arrays not pointers, variable
64 locality, BITISSET, RESETBIT etc.
67 2001-12-05 Akim Demaille <akim@epita.fr>
69 * src/state.h (SHIFT_SYMBOL): New.
70 * src/conflicts.c: Use it to deobfuscate.
73 2001-12-05 Akim Demaille <akim@epita.fr>
75 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
76 (print_reductions): De-obfuscate using the good o' techniques:
77 arrays not pointers, variable locality, BITISSET.
80 2001-12-05 Akim Demaille <akim@epita.fr>
82 * src/conflicts.c (print_reductions): Arrays, not pointers.
86 2001-12-05 Akim Demaille <akim@epita.fr>
88 * src/conflicts.c (print_reductions): Pessimize, but clarify.
91 2001-12-05 Akim Demaille <akim@epita.fr>
93 * src/conflicts.c (print_reductions): Improve variable locality.
96 2001-12-05 Akim Demaille <akim@epita.fr>
98 * src/conflicts.c (print_reductions): Pessimize, but clarify.
101 2001-12-05 Akim Demaille <akim@epita.fr>
103 * src/conflicts.c (print_reductions): Improve variable locality.
106 2001-12-05 Akim Demaille <akim@epita.fr>
108 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
109 * src/lalr.c: Use them.
112 2001-12-05 Akim Demaille <akim@epita.fr>
114 * src/LR0.c (augment_automaton): Formatting changes.
115 Better variable locality.
118 2001-12-05 Akim Demaille <akim@epita.fr>
120 * src/lalr.c (matrix_print): New.
122 Use arrays instead of pointers.
124 2001-12-05 Akim Demaille <akim@epita.fr>
126 * src/lalr.c (maxrhs): Move to...
127 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
128 * src/lalr.c (build_relations): Adjust.
130 2001-12-05 Akim Demaille <akim@epita.fr>
132 * src/lalr.c (transpose): Free the memory allocated to the
133 argument, as it is replaced by the results by the unique caller.
134 (build_relations): Merely invoke transpose: it handles the memory
136 Improve variable locality.
137 Avoid variables used as mere abbreviations.
138 (compute_lookaheads): Use arrays instead of pointers.
140 2001-12-05 Akim Demaille <akim@epita.fr>
142 * src/lalr.c (initialize_F): Improve variable locality.
143 Avoid variables used as mere abbreviations.
145 2001-12-05 Akim Demaille <akim@epita.fr>
147 * src/derives.c (print_derives): Display the ruleno.
148 * src/lalr.c (initialize_F, transpose): Better variable locality
149 to improve readability.
150 Avoid variables used as mere abbreviations.
152 2001-12-05 Akim Demaille <akim@epita.fr>
154 * src/lalr.c (traverse): Use arrays instead of pointers.
156 2001-12-05 Akim Demaille <akim@epita.fr>
158 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
159 the handling of squeue.
160 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
163 2001-12-05 Akim Demaille <akim@epita.fr>
165 Because useless nonterminals are now kept alive (instead of being
166 `destroyed'), we now sometimes examine them, and store information
167 related to them. Hence we need to know their number, and adjust
170 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
172 * src/LR0.c (allocate_itemsets): The memory allocated to
173 `symbol_count' was used for two different purpose: once to count
174 the number of occurrences of each symbol, and later reassigned to
175 `shift_symbol', containing the symbol that can be shifted from a
177 Deobfuscate, i.e., allocate, use and free `symbol_count' here
179 (new_itemsets): Allocate `shift_symbol' here.
180 (allocate_itemsets): symbol_count includes useless nonterminals.
182 (free_storage): Use `free', not `XFREE', for pointers that cannot
186 2001-12-05 Akim Demaille <akim@epita.fr>
188 * src/nullable.c (set_nullable): Deobfuscate the handling of
190 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
193 2001-12-05 Akim Demaille <akim@epita.fr>
195 * src/gram.c, src/gram.h (ritem_print): New.
196 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
197 (This useless function was defined only to work around VMS linkers
198 that can't handle compilation units with variables only).
199 * src/reduce.c (dump_grammar): Use it to trace the construction of
202 2001-12-04 Paul Eggert <eggert@twinsun.com>
204 * src/bison.simple (union yyalloc): Change member names
205 to be the same as the stack names.
206 (yyparse): yyptr is now union yyalloc *, not char *.
207 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
208 and may generate better code on some machines.
209 (yystpcpy): Use prototype if __STDC__ is defined, not just
210 if __cplusplus is defined.
212 2001-11-30 Akim Demaille <akim@epita.fr>
214 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
215 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
216 Gettext doesn't compile cleanly, and dies with -Werror.
217 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
218 Include WARNING_CFLAGS here.
219 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
220 before being defined.
222 2001-11-30 Paul Eggert <eggert@twinsun.com>
224 * lib/quotearg.h (quotearg_n, quotearg_n_style):
225 First arg is int, not unsigned.
226 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
227 (SIZE_MAX, UINT_MAX): New macros.
228 (quotearg_n_options): Abort if N is negative.
229 Avoid overflow check on hosts where size_t is 64 bits and int
230 is 32 bits, as overflow is impossible there.
231 Fix off-by-one typo that caused unnecessary reallocation.
233 2001-11-30 Paul Eggert <eggert@twinsun.com>
235 Name space cleanup in generated parser.
237 * doc/bison.texinfo (Bison Parser): Discuss system headers
238 and their effect on the user name space.
241 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
242 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
243 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
245 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
246 on user names when possible.
248 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
249 Simplify test for whather <alloca.h> exists.
251 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
253 (<stdio.h>): Include if YYDEBUG.
255 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
256 ! defined (yyoverflow) && ! defined (yymemcpy).
258 (yymemcpy, yyparse): Rename local variables as needed so that
259 they all begin with 'yy'.
261 (yystrlen, yystpcpy): New functions.
263 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
266 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
267 instead of relying on string.h functions. Use YYSTACK_ALLOC
268 and YYSTACK_FREE instead of malloc and free.
270 2001-11-30 Akim Demaille <akim@epita.fr>
272 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
273 if body instead of `;' to pacify GCC's warnings.
275 2001-11-30 Akim Demaille <akim@epita.fr>
277 Instead of mapping the LHS of unused rules to -1, keep the LHS
278 valid, but flag the rules as invalid.
280 * src/gram.h (rule_t): `useful' is a new member.
281 * src/print.c (print_grammar): Adjust.
282 * src/derives.c (set_derives): Likewise.
283 * src/reader.c (packgram, reduce_output): Likewise.
284 * src/reduce.c (reduce_grammar_tables): Likewise.
285 * tests/reduce.at (Underivable Rules, Useless Rules): New.
287 2001-11-30 Akim Demaille <akim@epita.fr>
289 * src/reduce.c (reduce_output): Formatting changes.
290 * src/print.c (print_results, print_grammar): Likewise.
291 * tests/regression.at (Rule Line Numbers)
292 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
294 2001-11-30 Akim Demaille <akim@epita.fr>
296 * src/reduce.c (nonterminals_reduce): Instead of throwing away
297 useless nonterminals, move them at the end of the symbol arrays.
298 (reduce_output): Adjust.
299 * tests/reduce.at (Useless Nonterminals): Adjust.
301 2001-11-30 Akim Demaille <akim@epita.fr>
303 * src/reduce.c: Various comment/formatting changes.
304 (nonterminals_reduce): New, extracted from...
305 (reduce_grammar_tables): here.
306 (reduce_grammar): Call nonterminals_reduce.
308 2001-11-29 Paul Eggert <eggert@twinsun.com>
310 * src/bison.simple (YYSTACK_REALLOC): Remove.
311 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
312 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
314 (union yyalloc): New type.
315 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
316 an arbitrary restriction on hosts where size_t is wider than int.
318 (yyparse): Don't dump core if alloca or malloc fails; instead, report
319 a parser stack overflow. Allocate just one block of memory for all
320 three stacks, instead of allocating three blocks; this typically is
321 faster and reduces fragmentation.
323 Do not limit the number of items in the stack to a value that fits
324 in 'int', as this is an arbitrary limit on hosts with 64-bit
325 size_t and 32-bit int.
327 2001-11-28 Akim Demaille <akim@epita.fr>
329 * src/LR0.c (shifts_new): New.
330 (save_shifts, insert_start_shift, augment_automaton): Use it.
332 2001-11-28 Akim Demaille <akim@epita.fr>
334 * src/closure.c (closure): `b' and `ruleno' denote the same value:
337 2001-11-28 Akim Demaille <akim@epita.fr>
339 * src/closure.c (closure): Instead of looping over word in array
340 then bits in words, loop over bits in array.
342 2001-11-28 Akim Demaille <akim@epita.fr>
344 * src/closure.c (closure): No longer optimize the special case
345 where all the bits of `ruleset[r]' are set to 0, to make the code
348 2001-11-28 Akim Demaille <akim@epita.fr>
350 * src/closure.c (closure): `r' and `c' are new variables, used to
351 de-obfuscate accesses to RULESET and CORE.
353 2001-11-28 Akim Demaille <akim@epita.fr>
355 * src/reduce.c (reduce_print): Use ngettext.
356 (dump_grammar): Improve the trace accuracy.
358 2001-11-28 Akim Demaille <akim@epita.fr>
360 * src/reduce.c (dump_grammar): Don't translate trace messages.
362 2001-11-28 Akim Demaille <akim@epita.fr>
364 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
365 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
366 as all tags are free'ed afterwards.
369 2001-11-27 Akim Demaille <akim@epita.fr>
371 * src/system.h: Use intl/libgettext.h.
372 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
374 2001-11-27 Paul Eggert <eggert@twinsun.com>
376 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
377 use alloca when we didn't want to, and vice versa.
379 2001-11-27 Akim Demaille <akim@epita.fr>
381 * tests/torture.at (Exploding the Stack Size with Malloc):
382 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
384 2001-11-27 Akim Demaille <akim@epita.fr>
386 * src/files.c: Include error.h.
389 2001-11-26 Akim Demaille <akim@epita.fr>
393 2001-11-26 Akim Demaille <akim@epita.fr>
395 * src/reader.c (readgram): Make sure rules for mid-rule actions
396 have a lineno equal to that of their host rule.
397 Reported by Hans Aberg.
398 * tests/regression.at (Rule Line Numbers): New.
400 2001-11-26 Akim Demaille <akim@epita.fr>
402 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
404 Reported by Hans Aberg.
406 2001-11-26 Akim Demaille <akim@epita.fr>
408 * src/complain.c, src/complain.h (error): Remove, provided by
411 2001-11-26 Akim Demaille <akim@epita.fr>
413 * src/reader.c (read_declarations): Don't abort on tok_illegal,
414 issue an error message.
415 * tests/regression.at (Invalid %directive): New.
416 Reported by Hans Aberg.
418 2001-11-26 Akim Demaille <akim@epita.fr>
420 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
421 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
423 2001-11-26 Akim Demaille <akim@epita.fr>
425 * src/conflicts.c (conflicts_print): Don't complain at all when
426 there are no reduce/reduce conflicts, and as many shift/reduce
427 conflicts as expected.
428 * tests/regression.at (%expect right): Adjust.
430 2001-11-23 Akim Demaille <akim@epita.fr>
432 * lib/alloca.c: Update, from fileutils.
434 2001-11-23 Akim Demaille <akim@epita.fr>
436 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
438 2001-11-23 Akim Demaille <akim@epita.fr>
440 * src/system.h: Include alloca.h.
441 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
443 2001-11-23 Akim Demaille <akim@epita.fr>
445 * src/print_graph.c (print_actions): Remove `rule', unused.
446 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
447 pacify GCC's signed < unsigned warnings.
448 * src/closure.c (itemsetsize): Likewise.
449 * src/reader.c (symbol_list_new): Static.
451 2001-11-23 Akim Demaille <akim@epita.fr>
453 Attaching lineno to buckets is stupid, since only one copy of each
454 symbol is kept, only the line of the first occurrence is kept too.
456 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
457 * src/reader.c (rline_allocated): Remove, unused.
458 (symbol_list): Have a `line' member.
459 (symbol_list_new): New.
461 * src/print.c (print_grammar): Output the rule line numbers.
462 * tests/regression.at (Solved SR Conflicts)
463 (Unresolved SR Conflicts): Adjust.
464 Reported by Hans Aberg.
466 2001-11-20 Akim Demaille <akim@epita.fr>
470 2001-11-20 Akim Demaille <akim@epita.fr>
473 * configure.in (ALL_LINGUAS): Adjust.
474 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
475 longer contains strings to translate.
477 2001-11-19 Akim Demaille <akim@epita.fr>
479 * src/conflicts.c (conflicts_print): Add a missing \n.
481 2001-11-19 Akim Demaille <akim@epita.fr>
483 * src/nullable.c (nullable_print): New.
484 (set_nullable): Call it when tracing.
485 Better locality of variables.
487 2001-11-19 Akim Demaille <akim@epita.fr>
489 * src/print.c (print_actions): Better locality of variables.
491 2001-11-19 Akim Demaille <akim@epita.fr>
493 * src/derives.c (print_derives): Fix and enrich.
494 * src/closure.c (print_fderives): Likewise.
496 2001-11-19 Akim Demaille <akim@epita.fr>
498 * src/closure.c (itemsetend): Remove, replaced with...
501 2001-11-19 Akim Demaille <akim@epita.fr>
503 * src/LR0.c (kernel_end): Remove, replaced with...
506 2001-11-19 Akim Demaille <akim@epita.fr>
508 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
511 2001-11-19 Akim Demaille <akim@epita.fr>
513 * src/closure.c (closure): Use arrays instead of pointers to clarify.
515 2001-11-19 Akim Demaille <akim@epita.fr>
517 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
519 * src/LR0.c: Likewise.
520 (allocate_itemsets): Use arrays instead of pointers to clarify.
522 2001-11-19 Akim Demaille <akim@epita.fr>
524 * src/getargs.c (statistics_flag): Replace with...
526 (longopts): Accept --trace instead of --statistics.
527 * src/getargs.h: Adjust.
528 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
529 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
531 2001-11-19 Akim Demaille <akim@epita.fr>
533 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
534 pointers to clarify the code.
535 (save_reductions, save_shifts): Factor common parts of alternatives.
537 2001-11-19 Akim Demaille <akim@epita.fr>
539 * src/LR0.c (new_state, get_state): Complete TRACE code.
540 * src/closure.c: Include `reader.h' to get `tags', needed by the
542 Rename the conditional DEBUG as TRACE.
543 Output consistently TRACEs to stderr, not stdout.
544 * src/derives.c: Likewise.
545 * src/reduce.c: (inaccessable_symbols): Using if is better style
547 Use `#if TRACE' instead of `#if 0' for tracing code.
549 2001-11-19 Akim Demaille <akim@epita.fr>
551 * src/system.h (LIST_FREE, shortcpy): New.
552 * src/LR0.c: Use them.
553 * src/output.c (free_itemsets, free_reductions, free_shifts):
554 Remove, replaced by LIST_FREE.
556 2001-11-19 Akim Demaille <akim@epita.fr>
558 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
559 (REDUCTIONS_ALLOC): New.
560 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
563 2001-11-19 Akim Demaille <akim@epita.fr>
565 * src/LR0.c (new_state): Complete trace code.
566 * src/nullable.c (set_nullable): Don't translate traces.
568 2001-11-19 Akim Demaille <akim@epita.fr>
570 * src/print_graph.c (print_core): Better locality of variables.
571 * src/print.c (print_core): Likewise.
573 2001-11-19 Akim Demaille <akim@epita.fr>
575 * src/vcg.c: You do the output, so you are responsible of the
576 handling of VCG syntax, in particular: use quotearg.
577 * src/print_graph.c: Don't.
578 (print_actions): Don't output the actions as part of the nodes,
579 since that's the job of the edges.
580 (print_state): Don't output by hand: fill the node description,
581 and ask for its output.
583 2001-11-19 Akim Demaille <akim@epita.fr>
585 * src/bison.simple (yyparse): When verbosely reporting an error,
586 no longer put additional quotes around token names.
587 * tests/calc.at: Adjust.
589 2001-11-19 Akim Demaille <akim@epita.fr>
591 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
592 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
593 * src/output.c: Adjust.
595 2001-11-19 Akim Demaille <akim@epita.fr>
597 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
599 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
601 2001-11-19 Akim Demaille <akim@epita.fr>
603 * src/gram.h (rule_t): New.
605 (rrhs, rlhs): Remove, part of state_t.
606 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
607 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
608 * src/reader.c, src/reduce.c: Adjust.
610 2001-11-19 Akim Demaille <akim@epita.fr>
612 * src/reader.c (symbols_output): New, extracted from...
616 2001-11-19 Akim Demaille <akim@epita.fr>
618 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
619 (maxrhs): this new function.
621 2001-11-19 Akim Demaille <akim@epita.fr>
623 * src/lalr.c (F): New macro to access the variable F.
626 2001-11-19 Akim Demaille <akim@epita.fr>
628 * src/lalr.h (LA): New macro to access the variable LA.
629 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
630 * src/lalr.c: Adjust.
632 2001-11-19 Akim Demaille <akim@epita.fr>
634 * src/lalr.c (initialize_LA): Only initialize LA. Let...
635 (set_state_table): handle the `lookaheads' members.
637 2001-11-19 Akim Demaille <akim@epita.fr>
639 * src/lalr.h (lookaheads): Removed array, whose contents is now
641 (state_t): this structure.
642 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
645 2001-11-19 Akim Demaille <akim@epita.fr>
647 * src/lalr.h (consistent): Removed array, whose contents is now
649 (state_t): this structure.
650 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
653 2001-11-19 Akim Demaille <akim@epita.fr>
655 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
656 contents are now members of...
657 (state_t): this structure.
658 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
661 2001-11-19 Akim Demaille <akim@epita.fr>
663 * src/lalr.h (state_t): New.
664 (state_table): Be a state_t * instead of a core **.
665 (accessing_symbol): Remove, part of state_t.
666 * src/lalr.c: Adjust.
667 (set_accessing_symbol): Merge into...
668 (set_state_table): this.
669 * src/print_graph.c, src/conflicts.c: Adjust.
671 2001-11-14 Akim Demaille <akim@epita.fr>
675 2001-11-14 Akim Demaille <akim@epita.fr>
677 * tests/calc.at, tests/output.at, tests/regression.at,
678 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
679 now the tests are run in private dirs, therefore AC_CLEANUP and
680 family can be simplified to 0-ary.
681 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
682 use abs. path to find config.h.
684 2001-11-14 Akim Demaille <akim@epita.fr>
686 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
687 stderr, there can be way too much random noise.
688 Instead pass -Werror to GCC and rely on the exit status.
689 Reported by Wolfram Wagner.
691 2001-11-14 Akim Demaille <akim@epita.fr>
693 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
694 defined only if yyoverflow is defined, to avoid `warning: unused
696 Reported by The Test Suite.
698 2001-11-14 Akim Demaille <akim@epita.fr>
700 * src/print.c: Include reduce.h.
701 Reported by Hans Aberg.
703 2001-11-14 Akim Demaille <akim@epita.fr>
705 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
706 Revert a previous patch: these are really const.
707 * src/conflicts.c (conflict_report): Additional useless pair of
708 braces to pacify GCC's warnings for `if () if () {} else {}'.
709 * src/lex.c (parse_percent_token): Replace equal_offset with
712 Be sure to strdup `arg' when used, since there is no reason for
713 token_buffer not to change.
715 2001-11-14 Akim Demaille <akim@epita.fr>
717 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
719 * src/main.c (main): Use them.
720 Suggested by Hans Aberg.
722 2001-11-12 Akim Demaille <akim@epita.fr>
726 * src/system.h (ngettext): Now that we use ngettext, be sure to
727 provide a default definition when NLS are not used that takes care
730 2001-11-12 Akim Demaille <akim@epita.fr>
732 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
733 Use @kbd to denote user input.
734 (Language and Grammar): ANSIfy the example.
735 Adjust its layout for info/notinfo.
736 (Location Tracking Calc): Output error messages to stderr.
737 Output locations in a more GNUtically correct way.
738 Fix a couple of Englishos.
739 Adjust @group/@end group pairs.
741 2001-11-12 Akim Demaille <akim@epita.fr>
743 %expext was not functioning at all.
745 * src/conflicts.c (expected_conflicts): Set to -1.
746 (conflict_report): Use ngettext.
747 (conflicts_print): Check %expect and make its violation an error.
748 * doc/bison.texinfo (Expect Decl): Adjust.
749 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
750 * tests/regression.at (%expect not enough, %expect right)
751 (%expect too much): New.
753 2001-11-12 Akim Demaille <akim@epita.fr>
755 * tests/regression.at (Conflicts): Rename as...
756 (Unresolved SR Conflicts): this.
757 (Solved SR Conflicts): New.
759 2001-11-12 Akim Demaille <akim@epita.fr>
761 * src/reduce.c (print_results): Rename as...
762 (reduce_output): This.
763 Output to OUT, passed as argument, instead of output_obstack.
764 (dump_grammar): Likewise.
767 (reduce_grammar): No longer call reduce_output, since...
768 * src/print.c (print_results): do it.
769 * src/main.c (main): Call reduce_free;
771 2001-11-12 Akim Demaille <akim@epita.fr>
773 * src/conflicts.c (print_reductions): Accept OUT as argument.
774 Output to it, not to output_obstack.
775 * src/print.c (print_actions): Adjust.
777 2001-11-12 Akim Demaille <akim@epita.fr>
779 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
780 the result instead of using...
781 (src_total, rrc_total, src_count, rrc_count): Remove.
782 (any_conflicts): Remove.
783 (print_conflicts): Split into...
784 (conflicts_print, conflicts_output): New.
785 * src/conflicts.h: Adjust.
786 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
787 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
788 * tests/regression.at (Conflicts): New.
789 Reported by Tom Lane.
791 2001-11-12 Akim Demaille <akim@epita.fr>
793 * tests/regression.at (Invalid input): Remove, duplicate with
794 ``Invalid input: 1''.
796 2001-11-12 Akim Demaille <akim@epita.fr>
798 * tests/torture.at (AT_DATA_STACK_TORTURE)
799 (Exploding the Stack Size with Alloca)
800 (Exploding the Stack Size with Malloc): New.
802 2001-11-12 Akim Demaille <akim@epita.fr>
804 * src/bison.simple (YYSTACK_REALLOC): New.
805 (yyparse) [!yyoverflow]: Use it and free the old stack.
806 Reported by Per Allansson.
808 2001-11-05 Akim Demaille <akim@epita.fr>
811 * src/lex.c (parse_percent_token): s/quotearg/quote/.
813 2001-11-05 Akim Demaille <akim@epita.fr>
815 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
818 2001-11-05 Akim Demaille <akim@epita.fr>
820 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
821 with yyltype/YYLTYPE. This allows inclusion of the generated
822 header within the parser if the compiler, such as GGC, accepts
823 multiple equivalent #defines.
825 2001-11-04 Akim Demaille <akim@epita.fr>
827 * src/getargs.c (longopts): Support `--output'. getopt is now
828 able to understand that `--out' is OK: the two racing long options
831 * src/lex.h (tok_setopt): Remove, replaced with...
832 (tok_intopt, tok_stropt): these new guys.
833 * src/lex.c (getopt.h): Not needed.
834 (token_buffer, unlexed_token_buffer): Not const.
835 (percent_table): Promote `-' over `_' in directive names.
836 Active `%name-prefix', `file-prefix', and `output'.
837 (parse_percent_token): Accept possible arguments to directives.
838 Promote `-' over `_' in directive names.
839 * doc/bison.texinfo (Decl Summary): Split the list into
840 `directives for grammars' and `directives for bison'.
842 Add description of `%name-prefix', `file-prefix', and `output'.
843 Promote `-' over `_' in directive names.
844 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
845 Simplify the description of `--name-prefix'.
846 Promote `-' over `_' in directive names.
847 Promote `--output' over `--output-file'.
848 Fix the description of `--defines'.
849 * tests/output.at: Exercise %file-prefix and %output.
851 2001-11-02 Akim Demaille <akim@epita.fr>
853 * doc/refcard.tex: Update.
855 2001-11-02 Akim Demaille <akim@epita.fr>
857 * src/symtab.h (SUNDEF): New.
858 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
859 stand for `uninitialized', instead of 0.
860 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
861 * src/lex.c (lex): Adjust.
863 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
865 Let yylex return it instead of a plain 0.
866 Reported by Dick Streefland.
868 2001-11-02 Akim Demaille <akim@epita.fr>
870 * tests/regression.at (Mixing %token styles): New test.
872 2001-11-02 Akim Demaille <akim@epita.fr>
874 * src/reader.c (parse_thong_decl): Formatting changes.
875 (token_translations_init): New, extracted from...
879 2001-11-01 Akim Demaille <akim@epita.fr>
881 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
882 Check that `9foo.y' produces correct cpp guards.
883 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
887 2001-11-01 Akim Demaille <akim@epita.fr>
889 * tests/regression.at (Invalid input: 2): New.
890 * src/lex.c (unlexed_token_buffer): New.
891 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
895 2001-11-01 Akim Demaille <akim@epita.fr>
897 * configure.in: Bump to 1.30a.
898 Adjust to newer Autotest.
900 2001-10-26 Akim Demaille <akim@epita.fr>
904 2001-10-26 Paul Eggert <eggert@twinsun.com>
906 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
907 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
908 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
909 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
910 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
911 Sync with fileutils 4.1.1.
913 2001-10-18 Akim Demaille <akim@epita.fr>
916 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
917 avoid spurious failures.
919 2001-10-18 Akim Demaille <akim@epita.fr>
923 2001-10-18 Akim Demaille <akim@epita.fr>
925 * tests/atlocal.in (GCC): Add.
926 * tests/calc.at: s/m4_match/m4_bmatch/.
927 s/m4_patsubst/m4_bpatsubst/.
928 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
929 * configure.in: AC_SUBST(GCC).
931 2001-10-10 Akim Demaille <akim@epita.fr>
934 * configure.in: M4 is no longer needed, but autom4te is.
935 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
938 2001-10-10 Akim Demaille <akim@epita.fr>
942 2001-10-10 Akim Demaille <akim@epita.fr>
945 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
946 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
947 Reported by Airy Andre.
949 2001-10-10 Akim Demaille <akim@epita.fr>
951 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
952 * config/mkinstalldirs, lib/ansi2knr.c: Update.
954 2001-10-02 Akim Demaille <akim@epita.fr>
958 2001-10-02 Akim Demaille <akim@epita.fr>
962 2001-10-02 Akim Demaille <akim@epita.fr>
964 * tests/regression.at (Invalid CPP headers): New.
965 From Alexander Belopolsky.
966 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
968 2001-10-02 Akim Demaille <akim@epita.fr>
970 * tests/regression.at (Invalid input): New.
971 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
974 2001-10-02 Akim Demaille <akim@epita.fr>
976 * tests/calc.at: Now that --debug works, the tests must be adjusted.
978 2001-10-02 Akim Demaille <akim@epita.fr>
980 * src/output.c (output_parser): Assert `skeleton'.
981 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
985 2001-10-01 Marc Autret <autret_m@epita.fr>
987 * src/lex.h: Echo modifications.
988 * src/lex.c (unlex): Parameter is now token_t.
991 2001-10-01 Marc Autret <autret_m@epita.fr>
993 * src/main.c: Include lex.h.
996 2001-09-29 Akim Demaille <akim@epita.fr>
998 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1000 2001-09-28 Akim Demaille <akim@epita.fr>
1002 * tests/testsuite.at: Update to newer Autotest.
1003 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1005 2001-09-27 Akim Demaille <akim@epita.fr>
1007 Position independent wrapper.
1009 * tests/bison: Remove.
1010 * tests/bison.in: New.
1011 * configure.in: Adjust.
1013 2001-09-27 Paul Eggert <eggert@twinsun.com>
1015 Port quotearg fixes from tar 1.13.24.
1017 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1019 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1020 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1022 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1023 * m4/mbrtowc.m4: New file.
1024 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1025 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1027 2001-09-27 Akim Demaille <akim@epita.fr>
1031 2001-09-27 Akim Demaille <akim@epita.fr>
1035 2001-09-25 Akim Demaille <akim@epita.fr>
1037 * src/system.h: Include `xalloc.h'.
1038 Remove it from the C files.
1039 * src/files.c (output_files): Free the obstacks.
1040 * src/lex.c (init_lex): Rename as...
1043 * src/main.c (main): Use it.
1045 2001-09-24 Marc Autret <autret_m@epita.fr>
1047 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1048 to output informations in fout (FILE*).
1049 (open_graph, close_graph): Likewise.
1050 (output_graph, output_edge, output_node): Likewise.
1051 * src/vcg.h: Update function prototypes.
1052 * src/print_graph.c (print_graph): Open output graph file.
1053 (print_actions): Adjust.
1054 * src/files.h: Remove extern declaration.
1055 * src/files.c: Remove graph_obstack declaration.
1056 (open_files): Remove graph_obstack initialization.
1057 (output_files): Remove graph_obstack saving.
1059 2001-09-24 Marc Autret <autret_m@epita.fr>
1061 * src/files.c (compute_output_file_names): Fix.
1063 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1065 * src/reader.c (reader): Remove call to free_symtab ().
1066 * src/main.c (main): Call it here.
1068 * src/conflicts.c (initialize_conflicts): Rename as...
1069 (solve_conflicts): this.
1070 * src/print.c (print_core, print_actions, print_state)
1071 (print_grammar): Dump to a file instead a `output_obstack'.
1072 (print_results): Dump `output_obstack', and then proceed with the
1074 * src/files.c (compute_output_file_names, close_files): New.
1075 (output_files): Adjust.
1076 * src/main.c (main): Adjust.
1078 2001-09-23 Marc Autret <autret_m@epita.fr>
1080 * src/files.c (compute_header_macro): Computes header macro name
1081 from spec_defines_file when given.
1083 2001-09-23 Marc Autret <autret_m@epita.fr>
1085 * src/files.c (output_files): Add default extensions.
1087 2001-09-22 Akim Demaille <akim@epita.fr>
1089 * src/conflicts.c (finalize_conflicts): Rename as...
1090 (free_conflicts): this.
1092 2001-09-22 Akim Demaille <akim@epita.fr>
1094 * src/gram.c (gram_free): Rename back as...
1096 (output_token_translations): Free `token_translations'.
1097 * src/symtab.c (free_symtab): Free the tag field.
1099 2001-09-22 Akim Demaille <akim@epita.fr>
1101 Remove `translations' as it is always set to true.
1103 * src/gram.h: Adjust.
1104 * src/reader.c (packsymbols, parse_token_decl): Adjust
1105 * src/print.c (print_grammar): Adjust.
1106 * src/output.c (output_token_translations): Adjust.
1107 * src/lex.c (lex): Adjust.
1108 * src/gram.c: Be sure the set pointers to NULL.
1109 (dummy): Rename as...
1112 2001-09-22 Akim Demaille <akim@epita.fr>
1114 * configure.in: Invoke AM_LIB_DMALLOC.
1115 * src/system.h: Use dmalloc.
1116 * src/LR0.c: Be sure to have pointers initialized to NULL.
1117 (allocate_itemsets): Allocate kernel_items only if needed.
1119 2001-09-22 Akim Demaille <akim@epita.fr>
1121 * configure.in: Bump to 1.29b.
1122 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1123 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1124 need xmalloc.c in calc.y.
1127 2001-09-21 Akim Demaille <akim@epita.fr>
1130 * Makefile.maint, config/config.guess, config/config.sub,
1131 * config/missing: Update from masters.
1132 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1134 * configure.in (ALL_LINGUAS): Add `tr'.
1136 2001-09-21 Akim Demaille <akim@epita.fr>
1138 * tests/Makefile.am (package.m4): Move to...
1139 ($(srcdir)/$(TESTSUITE)): here.
1141 2001-09-20 Akim Demaille <akim@epita.fr>
1143 * src/complain.c: No longer try to be standalone: use system.h.
1144 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1145 * src/complain.h: Likewise.
1146 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1147 Remove the unused variable `n'.
1148 From Albert Chin-A-Young.
1150 2001-09-18 Marc Autret <autret_m@epita.fr>
1152 * doc/bison.1: Update.
1153 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1155 (Option Cross Key): Update.
1158 2001-09-18 Marc Autret <autret_m@epita.fr>
1160 * tests/regression.at: New test (comment in %union).
1162 2001-09-18 Marc Autret <autret_m@epita.fr>
1164 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1166 Reported by Keith Browne.
1168 2001-09-18 Marc Autret <autret_m@epita.fr>
1170 * tests/output.at: Add tests for --defines and --graph.
1172 2001-09-18 Marc Autret <autret_m@epita.fr>
1174 * tests/output.at: Removes tests of %{header,src}_extension features.
1176 2001-09-18 Akim Demaille <akim@epita.fr>
1178 * tests/Makefile.am (package.m4): New.
1179 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1180 (_AT_CHECK_CALC_ERROR): Likewise.
1181 Factor the `, ' part of verbose error messages.
1183 2001-09-18 Marc Autret <autret_m@epita.fr>
1185 * src/getargs.c (longopts): Declare --defines and --graph as options
1186 with optional arguments.
1187 * src/files.h: Add extern declarations.
1188 * src/files.c (spec_graph_file, spec_defines_file): New.
1189 (output_files): Update.
1190 Remove CPP-outed code.
1192 2001-09-18 Marc Autret <autret_m@epita.fr>
1194 Turn off %{source,header}_extension feature.
1196 * src/files.c (compute_exts_from_gf): Update.
1197 (compute_exts_from_src): Update.
1198 (output_files): CPP-out useless code.
1199 * src/files.h: Remove {header,source}_extension extern declarations.
1200 * src/reader.c (parse_dquoted_param): CPP-out.
1201 (parse_header_extension_decl): Remove.
1202 (parse_source_extension_decl): Remove.
1203 (read_declarations): Remove cases tok_{hdrext,srcext}.
1204 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1205 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1207 2001-09-10 Akim Demaille <akim@epita.fr>
1209 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1210 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1211 (AT_CHECK_OUTPUT): this.
1212 Merely check ls' exit status, its output is useless.
1214 2001-09-10 Akim Demaille <akim@epita.fr>
1216 * tests/calc.at: Use m4_match.
1217 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1219 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1221 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1223 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1225 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1226 * src/lex.h: Adjust prototype.
1227 (token_t): Add `tok_undef'.
1228 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1229 (parse_percent_token): Now returns token_t.
1230 Add default statement in switch.
1231 (lex): Separate `c' as an input variable, from the token_t result
1233 (unlexed): Is a token_t.
1235 2001-09-10 Akim Demaille <akim@epita.fr>
1237 * configure.in: Bump to 1.29a.
1239 2001-09-07 Akim Demaille <akim@epita.fr>
1243 2001-08-30 Akim Demaille <akim@epita.fr>
1245 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1246 * m4/atconfig.m4: Remove.
1247 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1249 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1250 m4_if, m4_patsubst, and m4_regexp.
1251 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1252 `input' file instead of echo.
1254 2001-08-29 Akim Demaille <akim@epita.fr>
1258 2001-08-29 Akim Demaille <akim@epita.fr>
1262 2001-08-29 Paul Eggert <eggert@twinsun.com>
1264 * src/bison.simple (yyparse): Don't take the address of an
1265 item before the start of an array, as that doesn't conform to
1268 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1270 * doc/bison.texinfo (Location Tracking Calc): New node.
1272 2001-08-29 Paul Eggert <eggert@twinsun.com>
1274 * src/output.c (output): Do not define const, as this now
1275 causes more problems than it cures.
1277 2001-08-29 Akim Demaille <akim@epita.fr>
1279 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1281 Be sure to tag the `detailmenu'.
1283 2001-08-29 Akim Demaille <akim@epita.fr>
1285 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1286 download in a tmp dir.
1288 2001-08-28 Marc Autret <autret_m@epita.fr>
1290 * config/depcomp: New file.
1292 2001-08-28 Marc Autret <autret_m@epita.fr>
1294 * doc/bison.1 (mandoc): Adjust.
1295 From Juan Manuel Guerrero.
1297 2001-08-28 Marc Autret <autret_m@epita.fr>
1299 * src/print_graph.c (print_state): Fix.
1301 2001-08-27 Marc Autret <autret_m@epita.fr>
1303 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1305 Echo modifications to the functions prototypes.
1306 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1308 2001-08-27 Marc Autret <autret_m@epita.fr>
1310 * src/vcg.c: Include `xalloc.h'.
1311 (add_colorentry): New.
1312 (add_classname): New.
1313 (add_infoname): New.
1314 * src/vcg.h: Add new prototypes.
1316 2001-08-27 Akim Demaille <akim@epita.fr>
1318 * Makefile.maint: Sync. again with CVS Autoconf.
1320 2001-08-27 Akim Demaille <akim@epita.fr>
1322 * Makefile.maint: Formatting changes.
1323 (po-update, cvs-update, update): New targets.
1326 2001-08-27 Akim Demaille <akim@epita.fr>
1328 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1329 * Makefile.maint: Sync. with CVS Autoconf.
1331 2001-08-27 Marc Autret <autret_m@epita.fr>
1333 * src/vcg.h (struct infoname_s): New.
1334 (struct colorentry_s): New.
1335 (graph_s): New fields {vertical,horizontal}_order in structure.
1336 Add `infoname' field.
1337 Add `colorentry' field;
1338 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1339 (G_HORIZONTAL_ORDER): New.
1341 (G_COLORENTRY): New.
1342 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1343 Add output of `infoname'.
1344 Add output of `colorentry'.
1346 2001-08-27 Marc Autret <autret_m@epita.fr>
1348 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1349 This one shadowed a global parameter.
1351 2001-08-24 Marc Autret <autret_m@epita.fr>
1353 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1354 instead of `unsigned'.
1355 (print_state): Do not call obstack_object_size () in obstack_grow ()
1356 to avoid macro variables shadowing.
1358 2001-08-23 Marc Autret <autret_m@epita.fr>
1360 * src/lex.c (percent_table): Typo: s/naem/name/.
1362 Normalize new options declarations.
1364 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1366 * tests/suite.at: Exercise %header_extension and %source_extension.
1368 2001-08-16 Marc Autret <autret_m@epita.fr>
1370 * src/reader.c (parse_dquoted_param): New.
1371 (parse_header_extension_decl): Use it.
1372 (parse_source_extension_decl): Likewise.
1374 2001-08-16 Marc Autret <autret_m@epita.fr>
1376 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1377 (get_xxxx_str): Use assert () instead of complain ().
1378 Remove return invokations in default cases.
1379 (get_decision_str): Modify default behaviour. Remove second argument.
1380 Echo modifications on calls.
1381 (output_graph): Fix.
1383 2001-08-16 Marc Autret <autret_m@epita.fr>
1385 * src/getargs.c (usage): Update with ``-g, --graph''.
1387 2001-08-16 Marc Autret <autret_m@epita.fr>
1389 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1390 (Option Cross Key): Likewise.
1391 * doc/bison.1: Update.
1393 2001-08-15 Akim Demaille <akim@epita.fr>
1397 2001-08-15 Marc Autret <autret_m@epita.fr>
1399 * src/reader.c (readgram): Indent output macro YYSTYPE.
1400 (packsymbols): Likewise.
1401 (output_token_defines): Likewise.
1402 * src/files.c: Standardize.
1403 (compute_header_macro): New.
1404 (defines_obstack_save): New. Use compute_header_macro.
1405 (output_files): Update. Use defines_obstack_save.
1407 2001-08-15 Akim Demaille <akim@epita.fr>
1409 * doc/bison.texinfo (Table of Symbols): Document
1412 2001-08-15 Akim Demaille <akim@epita.fr>
1414 * missing: Update from CVS Automake.
1415 * config/config.guess, config/config.sub, config/texinfo.tex:
1416 Update from gnu.org.
1418 2001-08-15 Akim Demaille <akim@epita.fr>
1420 * Makefile.maint: Sync with CVS Autoconf.
1422 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1424 * doc/bison.texinfo: Include GNU Free Documentation License from
1426 * doc/fdl.texi: Add to package.
1428 2001-08-14 Marc Autret <autret_m@epita.fr>
1430 Turn on %{source,header}_extension features.
1432 * src/lex.c (percent_table): Un-CPP out header_extension and
1434 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1435 (compute_exts_from_src): Remove conditions. It restores priorities
1438 2001-08-14 Marc Autret <autret_m@epita.fr>
1440 * src/files.c (compute_base_names): Add extensions computing when
1441 `--file-prefix' used.
1442 Standardize function calls.
1444 2001-08-13 Marc Autret <autret_m@epita.fr>
1446 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1447 defining it (defined but null disables alloca).
1449 2001-08-13 Marc Autret <autret_m@epita.fr>
1451 * src/bison.simple (_yy_memcpy): CPP reformat.
1453 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1455 * tests/atconfig.in (CPPFLAGS): Fix.
1457 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1459 * doc/bison.texinfo: Include GNU General Public License from
1461 * doc/gpl.texi: Add to package.
1463 2001-08-10 Marc Autret <autret_m@epita.fr>
1465 * src/print_graph.h: Fix.
1466 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1468 2001-08-10 Akim Demaille <akim@epita.fr>
1470 * src/system.h: Provide default declarations for stpcpy, strndup,
1473 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1475 * doc/bison.texinfo (Locations): Update @$ stuff.
1477 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1479 * src/bison.simple (YYLLOC_DEFAULT): Update.
1482 2001-08-08 Marc Autret <autret_m@epita.fr>
1484 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1485 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1486 Reported by Fabrice Bauzac.
1488 2001-08-08 Marc Autret <autret_m@epita.fr>
1490 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1491 * src/vcg.c (output_node): Fix.
1492 * src/vcg.h: Cleanup.
1493 * src/print_graph.c: Add comments.
1494 (node_output_size): New global variable. Simplify the formatting of
1495 the VCG graph output.
1496 (print_actions): Unused code is now used. It notifies the final state
1497 and no action states in the VCG graph. It also give the reduce actions.
1498 The `shift and goto' edges are red and the `go to state' edges are
1500 Get the current node name and node_obstack by argument.
1501 (node_obstack): New variable.
1502 (print_state): Manage node_obstack.
1503 (print_core): Use node_obstack given by argument.
1504 A node is not only computed here but in print_actions also.
1505 (print_graph): CPP out useless code instead of commenting it.
1507 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1509 * tests/atconfig.in (CPPFLAGS): Fix.
1511 2001-08-07 Akim Demaille <akim@epita.fr>
1513 * src/print_graph.c (quote): New.
1514 (print_core): Use it.
1516 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1518 * src/vcg.c (complain.h): Include it.
1519 Unepitaize `return' invocations.
1520 [NDEBUG] (main): Remove.
1521 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1522 * src/files.c (open_files): Initialize graph_obstack.
1523 * src/print_graph.c (print_actions): CPP out useless code.
1524 (print_core): Don't output the last `\n' in labels.
1526 * src/files.c (output_files): Output the VCG file.
1527 * src/main.c (main): Invoke print_graph ();
1529 2001-08-06 Marc Autret <autret_m@epita.fr>
1531 Automaton VCG graph output.
1532 Using option ``-g'' or long option ``--graph'', you can generate
1533 a gram_filename.vcg file containing a VCG description of the LALR (1)
1534 automaton of your grammar.
1536 * src/main.c: Call to print_graph() function.
1537 * src/getargs.h: Update.
1538 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1539 (graph_flag): New flag.
1541 (getargs): Add case `g'.
1542 * src/files.c (graph_obstack): New obstack struct.
1543 (open_files): Initialize new obstack.
1544 (output_files): Saves graph_obstack if required.
1545 * src/files.h (graph_obstack): New extern declaration.
1546 * src/Makefile.am: Add new source files.
1548 2001-08-06 Marc Autret <autret_m@epita.fr>
1550 * src/print_graph.c, src/print_graph.h (graph): New.
1551 * src/vcg.h: New file.
1552 * src/vcg.c: New file, VCG graph handling.
1554 2001-08-06 Marc Autret <autret_m@epita.fr>
1556 Add of %source_extension and %header_extension which specify
1557 the source or/and the header output file extension.
1559 * src/files.c (compute_base_names): Remove initialisation of
1560 src_extension and header_extension.
1561 (compute_exts_from_gf): Update.
1562 (compute_exts_from_src): Update.
1563 (output_files): Update.
1564 * src/reader.c (parse_header_extension_decl): New.
1565 (parse_source_extension_decl): New.
1566 (read_declarations): New case statements for the new tokens.
1567 * src/lex.c (percent_table): Add entries for %source_extension
1568 and %header_extension.
1569 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1571 2001-08-06 Marc Autret <autret_m@epita.fr>
1573 * configure.in: Bump to 1.28c.
1574 * doc/bison.texinfo: Texinfo thingies.
1576 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1578 * tests/atconfig.in (CPPFLAGS): Add.
1579 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1581 2001-08-03 Akim Demaille <akim@epita.fr>
1585 2001-08-03 Akim Demaille <akim@epita.fr>
1587 * tests/Makefile.am (check-local): Ship testsuite.
1588 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1591 2001-08-03 Akim Demaille <akim@epita.fr>
1593 * configure.in: Try using -Wformat when compiling.
1595 2001-08-03 Akim Demaille <akim@epita.fr>
1597 * configure.in: Bump to 1.28b.
1599 2001-08-03 Akim Demaille <akim@epita.fr>
1601 * src/complain.c: Adjust strerror_r portability issues.
1603 2001-08-03 Akim Demaille <akim@epita.fr>
1607 2001-08-03 Akim Demaille <akim@epita.fr>
1609 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1610 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1611 * src/getargs.c: Include complain.h.
1612 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1613 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1615 2001-08-03 Akim Demaille <akim@epita.fr>
1617 * src/reader.c (readgram): Display hidden chars in error messages.
1619 2001-08-03 Akim Demaille <akim@epita.fr>
1621 Update to gettext 0.10.39.
1623 2001-08-03 Akim Demaille <akim@epita.fr>
1625 * lib/strspn.c: New.
1627 2001-08-01 Marc Autret <autret_m@epita.fr>
1629 * doc/bison.texinfo: Update.
1630 * doc/bison.1 (mandoc): Update.
1631 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1632 * src/files.c: Support output files extensions computing.
1633 (src_extension): New static variable.
1634 (header_extension): New static variable.
1636 (get_extension_index): New function, gets the index of an extension
1637 filename in a string.
1638 (compute_exts_from_gf): New function, computes extensions from the
1639 grammar file extension.
1640 (compute_exts_from_src): New functions, computes extensions from the
1641 C source file extension, file given by ``-o'' option.
1642 (compute_base_names): Update.
1643 (output_files): Update.
1645 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1647 * doc/bison.texi: Document @$.
1648 (Locations): New section.
1650 2001-07-18 Akim Demaille <akim@epita.fr>
1652 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1653 * config/prev-version.txt, config/move-if-change: New.
1654 * Makefile.am: Adjust.
1656 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1658 * src/bison.simple (yyparse): Suppress warning `comparaison
1659 between signed and unsigned'.
1661 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1663 * src/getargs.h (raw_flag): Remove.
1664 * src/getargs.c: Die on `-r'/`--raw'.
1665 * src/lex.c (parse_percent_token): Die on `%raw'.
1666 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1667 * tests/calc.at: Suppress test with option `--raw'.
1669 2001-07-14 Akim Demaille <akim@epita.fr>
1672 * configure.in: Require Autoconf 2.50.
1673 Update to gettext 0.10.38.
1675 2001-03-16 Akim Demaille <akim@epita.fr>
1677 * doc/bison.texinfo: ANSIfy the examples.
1679 2001-03-16 Akim Demaille <akim@epita.fr>
1681 * getargs.c (skeleton): New variable.
1682 (longopts): --skeleton is a new option.
1683 (shortopts, getargs): -S is a new option.
1684 * getargs.h: Declare skeleton.
1685 * output.c (output_parser): Use it.
1687 2001-03-16 Akim Demaille <akim@epita.fr>
1689 * m4/strerror_r.m4: New.
1690 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1691 * lib/error.h, lib/error.c: Update.
1693 2001-03-16 Akim Demaille <akim@epita.fr>
1695 * src/getargs.c (longopts): Clean up.
1697 2001-02-21 Akim Demaille <akim@epita.fr>
1699 * src/reader.c (gensym): `gensym_count' is your own.
1700 Use a static buf to create the symbol name, as token_buffer is no
1703 2001-02-08 Akim Demaille <akim@epita.fr>
1705 * src/conflicts.c (conflict_report): Be sure not to append to res
1706 between two calls, which could happen if both first sprintf were
1707 skipped, but not the first cp += strlen.
1709 2001-02-08 Akim Demaille <akim@epita.fr>
1711 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1712 New, from fileutils 4.0.37.
1713 * configure.in: Require Autoconf 2.49c. I took some time before
1714 making this decision. This is the only way out for portability
1715 issues in Bison, it would mean way too much duplicate effort to
1716 import in Bison features implemented in 2.49c since 2.13.
1717 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1719 2001-02-02 Akim Demaille <akim@epita.fr>
1721 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1722 * lib/xalloc.h, lib/xmalloc.c: Update.
1724 2001-01-19 Akim Demaille <akim@epita.fr>
1726 Get rid of the ad hoc handling of token_buffer in the scanner: use
1729 * src/lex.c (token_obstack): New.
1730 (init_lex): Initialize it. No longer call...
1731 (grow_token_buffer): this. Remove it.
1732 Adjust all the places which used it to use the obstack.
1734 2001-01-19 Akim Demaille <akim@epita.fr>
1736 * src/lex.h: Rename all the tokens:
1737 s/\bENDFILE\b/tok_eof/g;
1738 s/\bIDENTIFIER\b/tok_identifier/g;
1740 Let them be enums, not #define, to ease debugging.
1741 Adjust all the code.
1743 2001-01-18 Akim Demaille <akim@epita.fr>
1745 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1746 * src/lex.c (maxtoken, grow_token_buffer): Static.
1748 2001-01-18 Akim Demaille <akim@epita.fr>
1750 Since we now use obstacks, more % directives can be enabled.
1752 * src/lex.c (percent_table): Also accept `%yacc',
1753 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1755 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1756 instead of returning a token.
1757 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1758 * src/reader.c (read_declarations): Adjust.
1759 * src/files.c (open_files): Don't call `compute_base_names', don't
1760 compute `attrsfile' since they depend upon data which might be
1761 *in* the input file now.
1762 (output_files): Do it here.
1763 * src/output.c (output_headers): Document the fact that this patch
1764 introduces a guaranteed SEGV for semantic parsers.
1765 * doc/bison.texinfo: Document them.
1766 * tests/suite.at: Exercise these %options.
1768 2000-12-20 Akim Demaille <akim@epita.fr>
1770 Also handle the output file (--verbose) with obstacks.
1772 * files.c (foutput): Remove.
1773 (output_obstack): New.
1774 Adjust all dependencies.
1775 * src/conflicts.c: Return a string.
1776 * src/system.h (obstack_grow_string): Rename as...
1777 (obstack_sgrow): this. Be ready to work with non literals.
1778 (obstack_fgrow4): New.
1780 2000-12-20 Akim Demaille <akim@epita.fr>
1782 * src/files.c (open_files): Fix the computation of short_base_name
1783 in the case of `-o foo.tab.c'.
1785 2000-12-20 Akim Demaille <akim@epita.fr>
1787 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1788 (copy_dollar): Now that everything uses obstacks, get rid of the
1791 2000-12-20 Akim Demaille <akim@epita.fr>
1793 * src/files.c (open_files): Actually the `.output' file is based
1794 on the short_base_name, not base_name.
1795 * tests/suite.at (Checking output file names): Adjust.
1797 2000-12-20 Akim Demaille <akim@epita.fr>
1799 * src/bison.s1: Remove, we now use directly...
1800 * src/bison.simple: this.
1801 * src/Makefile.am: Use pkgdata instead of data.
1803 2000-12-20 Akim Demaille <akim@epita.fr>
1805 * src/files.c (guard_obstack): New.
1806 (open_files): Initialize it.
1807 (output_files): Dump it...
1808 * src/files.h: Export it.
1809 * src/reader.c (copy_guard): Use it.
1811 2000-12-19 Akim Demaille <akim@epita.fr>
1813 * src/files.c (outfile, defsfile, actfile): Removed as global
1815 (open_files): Don't compute them.
1816 (output_files): Adjust.
1817 (base_name, short_base_name): Be global.
1818 Adjust dependencies.
1820 2000-12-19 Akim Demaille <akim@epita.fr>
1822 * src/files.c (strsuffix): New.
1823 (stringappend): Be just like strcat but allocate.
1824 (base_names): Eve out from open_files.
1825 Try to simplify the rather hairy computation of base_name and
1827 (open_files): Use it.
1828 * tests/suite.at (Checking output file names): New test.
1830 2000-12-19 Akim Demaille <akim@epita.fr>
1832 * src/system.h (obstack_grow_literal_string): Rename as...
1833 (obstack_grow_string): this.
1834 * src/output.c (output_parser): Recognize `%% actions' instead of
1836 * src/bison.s1: s/$/%% actions/.
1837 * src/bison.hairy: Likewise.
1839 2000-12-19 Akim Demaille <akim@epita.fr>
1841 * src/output.c (output_parser): Compute the `#line' lines when
1843 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1844 Suggested by Hans Aberg.
1846 2000-12-19 Akim Demaille <akim@epita.fr>
1848 Let the handling of the skeleton files be local to the procedures
1851 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1853 (fparser, open_extra_files): Remove.
1854 (open_files, output_files): Don't take care of fparser.
1855 * src/files.h: Adjust.
1856 * src/output.c (output_parser): Open and close the file to the
1858 * src/reader.c (read_declarations): When %semantic_parser, open
1861 2000-12-19 Akim Demaille <akim@epita.fr>
1863 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1864 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1866 2000-12-19 Akim Demaille <akim@epita.fr>
1868 * src/files.c (open_files): Yipee! We no longer need all the code
1869 looking for `/tmp' since we have no tmp file.
1871 2000-12-19 Akim Demaille <akim@epita.fr>
1873 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1875 * src/files.c (open_files): Less dependency on MSDOS etc.
1877 2000-12-14 Akim Demaille <akim@epita.fr>
1879 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1880 Provide a default definition.
1881 Use it when executing the default @ action.
1882 * src/reader.c (reader_output_yylsp): No longer include
1883 `timestamp' and `text' in the default YYLTYPE.
1885 2000-12-12 Akim Demaille <akim@epita.fr>
1887 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1888 (copy_guard): Quote the file names.
1889 Reported by Laurent Mascherpa.
1891 2000-12-12 Akim Demaille <akim@epita.fr>
1893 * src/output.c (output_headers, output_program, output): Be sure
1894 to escape special characters when outputting filenames.
1895 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1896 (output_headers): Don't depend on them, Use ACTSTR.
1898 2000-11-17 Akim Demaille <akim@epita.fr>
1900 * lib/obstack.h: Formatting changes.
1901 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1902 prevents type checking.
1903 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1904 cast the value to (void *): assigning a `foo *' to a `void *'
1906 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1907 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1910 2000-11-17 Akim Demaille <akim@epita.fr>
1912 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1914 (suite.m4, regression.m4, calc.m4): these.
1915 * tests/atgeneral.m4: Update from CVS Autoconf.
1917 2000-11-17 Akim Demaille <akim@epita.fr>
1919 * tests/regression.m4 (%union and --defines): New test,
1920 demonstrating a current bug in the obstack implementation.
1922 2000-11-17 Akim Demaille <akim@epita.fr>
1924 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1926 Use them to declare the variables which are global or local to
1929 2000-11-17 Akim Demaille <akim@epita.fr>
1931 * acconfig.h: Remove, no longer used.
1933 2000-11-07 Akim Demaille <akim@epita.fr>
1935 * src: s/Copyright (C)/Copyright/g.
1937 2000-11-07 Akim Demaille <akim@epita.fr>
1939 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1941 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1943 2000-11-07 Akim Demaille <akim@epita.fr>
1945 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1946 Merge in a single CPP if/else.
1948 2000-11-07 Akim Demaille <akim@epita.fr>
1950 * src/output.c (output): Remove useless variables.
1951 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1952 argument `data' for consistency with the prototypes.
1954 (obstack_copy, obstack_copy0): Rename the second argument as
1955 `address' for consistency. Qualify it `const'.
1956 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1957 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1958 `const' their input argument (`data' or `address').
1959 Adjust the corresponding macros to include `const' in casts.
1961 2000-11-03 Akim Demaille <akim@epita.fr>
1963 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1964 s/PFILE1/BISON_HAIRY/.
1965 Adjust dependencies.
1967 2000-11-03 Akim Demaille <akim@epita.fr>
1969 For some reason, this was not applied.
1971 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1972 `unlink': it's no longer used.
1974 2000-11-03 Akim Demaille <akim@epita.fr>
1976 * src/files.c (skeleton_find): New function, eved out of...
1977 (open_files, open_extra_files): here.
1979 2000-11-03 Akim Demaille <akim@epita.fr>
1983 * src/files.c (obstack_save): New function.
1984 (done): Rename as...
1985 (output_files): this.
1987 * src/main.c (main): Don't use `atexit' to register `done', since
1988 it no longer has to remove tmp files, just call `output_files'
1989 when there are no errors.
1991 2000-11-02 Akim Demaille <akim@epita.fr>
1993 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1994 `unlink': it's no longer used.
1995 * src/files.h: Formatting changes.
1997 2000-11-02 Akim Demaille <akim@epita.fr>
1999 Remove the last uses of mktemp and unlink/delete.
2001 * src/files.c (fdefines, ftable): Removed.
2002 (defines_ostack, table_obstack): New.
2003 Adjust dependencies of the former into uses of the latter.
2004 * src/output.c (output_short_or_char_table, output_short_table):
2005 Convert to using obstacks.
2006 * src/reader.c (copy_comment2): Accept one FILE * and two
2008 (output_token_defines, reader_output_yylsp): Use obstacks.
2009 * src/system.h (obstack_fgrow3): New.
2011 2000-11-01 Akim Demaille <akim@epita.fr>
2013 Change each use of `fattrs' into a use of `attrs_obstack'.
2015 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2016 * src/files.c (fattrs): Remove.
2017 (attrs_obstack): New.
2018 Adjust all dependencies.
2019 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2021 2000-11-01 Akim Demaille <akim@epita.fr>
2024 Change each use of `faction' into a use of `action_obstack'.
2026 * lib/obstack.h, lib/obstack.c: New files.
2027 * src/files.c (faction): Remove.
2028 (action_obstack): New.
2029 Adjust all dependencies.
2031 2000-10-20 Akim Demaille <akim@epita.fr>
2033 * lib/quote.h (PARAMS): New macro. Use it.
2035 2000-10-16 Akim Demaille <akim@epita.fr>
2037 * src/output.c (output_short_or_char_table): New function.
2038 (output_short_table, output_token_translations): Use it.
2039 (goto_actions): Use output_short_table.
2041 2000-10-16 Akim Demaille <akim@epita.fr>
2043 * src/symtab.c (bucket_new): New function.
2046 * src/output.c (output_short_table): New argument to display the
2047 comment associated with the table.
2048 Adjust dependencies.
2049 (output_gram): Use it.
2050 (output_rule_data): Nicer output layout for YYTNAME.
2052 2000-10-16 Akim Demaille <akim@epita.fr>
2054 * src/lex.c (read_typename): New function.
2056 * src/reader.c (copy_dollar): Likewise.
2058 2000-10-16 Akim Demaille <akim@epita.fr>
2060 * src/reader.c (copy_comment2): Expect the input stream to be on
2061 the `/' which is suspected to open a comment, instead of being
2062 called after `//' or `/*' was read.
2063 (copy_comment, copy_definition, parse_union_decl, copy_action)
2064 (copy_guard): Adjust.
2066 2000-10-16 Akim Demaille <akim@epita.fr>
2068 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2069 `read_signed_integer'.
2071 2000-10-16 Akim Demaille <akim@epita.fr>
2073 * src/reader.c (copy_dollar): New function.
2074 (copy_guard, copy_action): Use it.
2076 2000-10-16 Akim Demaille <akim@epita.fr>
2078 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2079 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2080 New files, from Fileutils 4.0.27.
2081 * src/main.c (printable_version): Remove.
2082 * src/lex.c, src/reader.c: Use `quote'.
2084 2000-10-04 Akim Demaille <akim@epita.fr>
2086 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2088 2000-10-04 Akim Demaille <akim@epita.fr>
2090 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2092 2000-10-04 Akim Demaille <akim@epita.fr>
2094 When a literal string is used to define two different tokens,
2095 `bison -v' segfaults.
2096 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2098 * tests/regression.m4: New file.
2099 Include the core of the sample provided by Piotr Gackiewicz.
2100 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2103 2000-10-04 Akim Demaille <akim@epita.fr>
2105 * src/reader.c (parse_expect_decl): Keep `count' within the size
2109 2000-10-02 Paul Eggert <eggert@twinsun.com>
2111 * bison.s1 (yyparse): Assign the default value
2112 unconditionally, to avoid a GCC warning and make the parser a
2115 2000-10-02 Akim Demaille <akim@epita.fr>
2117 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2120 2000-10-02 Akim Demaille <akim@epita.fr>
2122 * src/derives.c, src/print.c, src/reduce.c: To ease the
2123 translation, move some `\n' out of the translated strings.
2125 2000-10-02 Akim Demaille <akim@epita.fr>
2127 The location tracking mechanism is precious for parse error
2128 messages. Nevertheless, it is enabled only when `@n' is used in
2129 the grammar, which is a different issue (you can use it in error
2130 message, but not in the grammar per se). Therefore, there should
2131 be another means to enable it.
2133 * src/getargs.c (getargs): Support `--locations'.
2135 * src/getargs.h (locationsflag): Export it.
2136 * src/lex.c (percent_table): Support `%locations'.
2137 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2138 with `locationsflag'.
2139 * doc/bison.texinfo: Document `--locations' and `%locations'.
2141 * tests/calc.m4: Test it.
2143 For regularity of the names, replace each
2144 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2145 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2146 In addition replace each `flag' with `_flag'.
2148 2000-10-02 Akim Demaille <akim@epita.fr>
2150 Also test parse error messages, including with YYERROR_VERBOSE.
2152 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2154 Use it to check the computations.
2155 Use it to check `nonassoc' is honored.
2156 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2157 `--yyerror-verbose'.
2158 (_AT_CHECK_CALC): Adjust to this option.
2159 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2161 2000-10-02 Akim Demaille <akim@epita.fr>
2163 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2164 the latter demonstrates a flaw in the handling of non debugging
2165 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2166 was used in order to simplify:
2182 unfortunately this leads to a CPP conflict when
2183 `--name-prefix=foo' is used since it produces `#define yydebug
2186 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2187 (YYDPRINTF): New macro.
2189 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2191 Also test `--verbose', `--defines' and `--name-prefix'.
2193 2000-10-02 Akim Demaille <akim@epita.fr>
2195 Improve the readability of the produced parsers.
2197 * src/bison.s1: Formatting changes.
2198 Improve the comment related to the `$' mark.
2199 (yydefault): Don't fall through to `yyresume': `goto' there.
2200 * src/output.c (output_parser): When the `$' is met, skip the end
2202 New variable, `number_of_dollar_signs', to check there's exactly
2203 one `$' in the parser skeleton.
2205 2000-10-02 Akim Demaille <akim@epita.fr>
2207 * lib/xstrdup.c: New file, from the fileutils.
2208 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2209 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2210 instead of strlen + xmalloc + strcpy.
2211 * src/symtab.c (copys): Remove, use xstrdup instead.
2213 2000-10-02 Akim Demaille <akim@epita.fr>
2215 * src/gram.h (associativity): New enum type which replaces the
2216 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2217 `right_assoc', `left_assoc' and `non_assoc'.
2218 Adjust all dependencies.
2219 * src/reader.c: Formatting changes.
2220 (LTYPESTR): Don't define it, use it as a literal in
2221 `reader_output_yylsp'.
2222 * src/symtab.h (symbol_class): New enum type which replaces the
2223 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2224 `sunknown', `stoken and `snterm'.
2226 2000-10-02 Akim Demaille <akim@epita.fr>
2228 * src/getargs.c (fixed_outfiles): Rename as...
2229 (yaccflag): for consistency and accuracy.
2230 Adjust dependencies.
2232 2000-10-02 Akim Demaille <akim@epita.fr>
2234 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2235 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2236 difficult and introduced a lot of core dump. It turns out that
2237 Bison used an implementation of `xmalloc' based on `calloc', and
2238 at various places it does depend upon the initialization to 0. I
2239 have not tried to isolate the pertinent places, and all the former
2240 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2241 someone should address this issue.
2243 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2244 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2246 Adjust dependencies.
2247 * src/warshall.h: New file.
2250 2000-10-02 Akim Demaille <akim@epita.fr>
2252 Various anti-`extern in *.c' changes.
2254 * src/system.h: Include `assert.h'.
2256 2000-10-02 Akim Demaille <akim@epita.fr>
2258 * src/state.h (nstates, final_state, first_state, first_shift)
2259 (first_reduction): Move their exportation from here...
2260 * src/LR0.h: to here.
2261 Adjust dependencies.
2262 * src/getargs.c (statisticsflag): New variable.
2263 Add support for `--statistics'.
2264 Adjust dependencies.
2266 Remove a lot of now useless `extern' statements in most files.
2268 2000-10-02 Akim Demaille <akim@epita.fr>
2270 * src/LR0.h: New file.
2273 2000-10-02 Akim Demaille <akim@epita.fr>
2275 * src/print.h: New file.
2277 * src/print.c: Formatting and ordering changes.
2278 (verbose, terse): Replace with...
2279 (print_results): this new function.
2280 Adjust dependencies.
2282 2000-10-02 Akim Demaille <akim@epita.fr>
2284 * src/conflicts.c (conflict_report): New function.
2285 (conflict_log, verbose_conflict_log): Replace with...
2286 (print_conflicts): this function.
2287 Adjust dependencies.
2288 * src/conflicts.h: New file.
2289 Propagate its inclusion.
2291 2000-10-02 Akim Demaille <akim@epita.fr>
2293 * src/nullable.h: New file.
2294 Propagate its inclusion.
2295 * src/nullable.c: Formatting changes.
2297 2000-10-02 Akim Demaille <akim@epita.fr>
2299 * src/reduce.h: New file.
2300 Propagate its inclusion.
2301 * src/reduce.c: Topological sort and other formatting changes.
2302 (bool, TRUE, FALSE): Move their definition to...
2303 * src/system.h: here.
2305 2000-10-02 Akim Demaille <akim@epita.fr>
2307 * src/files.c: Formatting changes.
2308 (tryopen, tryclose, openfiles): Rename as...
2309 (xfopen, xfclose, open_files): this.
2310 (stringappend): static.
2311 * src/files.h: Complete the list of exported symbols.
2314 2000-10-02 Akim Demaille <akim@epita.fr>
2316 * src/reader.h: New file.
2317 Propagate its use instead of tedious list of `extern' and
2319 * src/reader.c: Formatting changes, topological sort,
2322 2000-10-02 Akim Demaille <akim@epita.fr>
2324 * src/lex.h: Prototype `lex.c' exported functions.
2325 * src/reader.c: Adjust.
2326 * src/lex.c: Formatting changes.
2327 (safegetc): Rename as...
2330 2000-10-02 Akim Demaille <akim@epita.fr>
2332 * src/lalr.h: New file.
2333 Propagate its inclusion instead of prototypes and `extern'.
2334 * src/lalr.c: Formatting changes, topological sorting etc.
2336 2000-10-02 Akim Demaille <akim@epita.fr>
2338 * src/output.c (token_actions): Introduce a temporary array,
2339 YYDEFACT, that makes it possible for this function to use
2342 2000-10-02 Akim Demaille <akim@epita.fr>
2344 `user_toknums' is output as a `short[]' in `output.c', while it is
2345 defined as a `int[]' in `reader.c'. For consistency with the
2346 other output tables, `user_toknums' is now defined as a table of
2349 * src/reader.c (user_toknums): Be a short table instead of an int
2351 Adjust dependencies.
2353 Factor the short table outputs.
2355 * src/output.c (output_short_table): New function.
2356 * src/output.c (output_gram, output_stos, output_rule_data)
2357 (output_base, output_table, output_check): Use it.
2359 2000-10-02 Akim Demaille <akim@epita.fr>
2361 * src/output.c (output): Topological sort of the functions, in
2362 order to get rid of the `static' prototypes.
2363 No longer use `register'.
2364 * src/output.h: New file.
2365 Propagate its inclusion in files explicitly prototyping functions
2368 2000-09-21 Akim Demaille <akim@epita.fr>
2370 * src/atgeneral.m4: Update from Autoconf.
2372 2000-09-21 Akim Demaille <akim@epita.fr>
2374 * src/closure.h: New file.
2375 * src/closure.c: Formatting changes, topological sort over the
2376 functions, use of closure.h.
2377 (initialize_closure, finalize_closure): Rename as...
2378 (new_closure, free_closure): these. Adjust dependencies.
2379 * src/LR0.c: Formatting changes, topological sort, use of
2381 (initialize_states): Rename as...
2383 * src/Makefile.am (noinst_HEADERS): Adjust.
2385 2000-09-20 Akim Demaille <akim@epita.fr>
2387 * src/acconfig.h: Don't protect config.h against multiple
2389 Don't define PARAMS.
2390 * src/system.h: Define PARAMS.
2391 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2392 purpose of config.h. system.h must not try to fix wrong
2393 definitions in config.h.
2395 2000-09-20 Akim Demaille <akim@epita.fr>
2397 * src/derives.h: New file.
2398 * src/main.c, src/derives.h: Use it.
2400 * src/Makefile.am (noinst_HEADERS): Adjust.
2402 2000-09-20 Akim Demaille <akim@epita.fr>
2404 * tests/atgeneral.m4: Update from Autoconf.
2405 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2406 (AT_CHECK_CALC): New macros.
2407 Use these macros to test bison with options `', `--raw',
2408 `--debug', `--yacc', `--yacc --debug'.
2410 2000-09-19 Akim Demaille <akim@epita.fr>
2412 * src/output.c: Formatting changes.
2413 * src/machine.h: Remove, leaving its contents in...
2414 * src/system.h: here.
2416 Adjust all dependencies on stdio.h and machine.h.
2417 * src/getargs.h: New file.
2418 Let all `extern' declarations about getargs.c be replaced with
2419 inclusion of `getargs.h'.
2420 * src/Makefile.am (noinst_HEADERS): Adjust.
2422 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2424 (yyerror): Returns void, not int.
2425 * doc/bison.texinfo: Formatting changes.
2427 2000-09-19 Akim Demaille <akim@epita.fr>
2429 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2432 2000-09-18 Akim Demaille <akim@epita.fr>
2434 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2435 * src/Makefile.am (INCLUDES): Don't.
2436 Be ready to fetch headers in lib/.
2438 2000-09-18 Akim Demaille <akim@epita.fr>
2440 * doc/bison.texinfo: Update the copyright.
2441 ANSIfy and GNUify the examples.
2442 Remove the old menu.
2444 2000-09-18 Akim Demaille <akim@epita.fr>
2446 First set of tests: use the `calc' example from the documentation.
2448 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2449 is defined only when YYDEBUG is.
2450 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2451 * src/files.c (tryopen, tryclose): Formatting changes.
2452 Move to the top and be static.
2453 * src/reader.c (read_signed_integer): Likewise.
2454 * tests/calc.m4: New file.
2455 * Makefile.am, suite.m4: Adjust.
2456 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2458 2000-09-18 Akim Demaille <akim@epita.fr>
2460 Add support for an Autotest test suite for Bison.
2462 * m4/m4.m4, m4/atconfig.m4: New files.
2463 * m4/Makefile.am (EXTRA_DIST): Adjust.
2464 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2466 * src/getargs.c: Display a more standard --version message.
2467 * src/reader.c (reader): Formatting changes.
2468 No longer depend upon VERSION_STRING.
2469 * configure.in: No longer use `dnl'.
2470 Set up the test suite and the new directory `tests/.
2471 (VERSION_STRING): Remove.
2473 2000-04-14 Akim Demaille <akim@epita.fr>
2475 * src/reader.c (copy_comment2): New function, same as former
2476 `copy_comment', but outputs into two FILE *.
2477 (copy_comment): Use it.
2478 (parse_union_decl): Use it.
2479 (get_type, parse_start_decl): Use the same `invalid' message.
2480 (parse_start_decl, parse_union_decl): Use the same `multiple'
2482 (parse_union_decl, copy_guard, copy_action): Use the same
2483 `unmatched' message.
2484 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2486 2000-03-31 Akim Demaille <akim@epita.fr>
2488 * src/files.c (tryopen, tryclose): Move to the top.
2491 2000-03-31 Akim Demaille <akim@epita.fr>
2493 * src/main.c (main): Don't call `done', exit does it.
2495 2000-03-31 Akim Demaille <akim@epita.fr>
2497 * allocate.c: s/return (foo)/return foo/.
2500 * output.c: Likewise.
2501 * reader.c: Likewise.
2502 * symtab.c: Likewise.
2503 * vmsgetargs.c: Likewise.
2505 2000-03-31 Akim Demaille <akim@epita.fr>
2507 Clean up the error reporting functions.
2509 * src/report.c: New file.
2510 * src/report.h: Likewise.
2511 * src/Makefile.am: Adjust.
2512 * m4/error.m4: New file.
2513 * m4/Makefile.am: Adjust.
2514 * configure.in (jm_PREREQ_ERROR): Call it.
2515 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2517 (fatal, fatals): Remove. All callers use complain.c::fatal.
2518 (warn, warni, warns, warnss, warnss): Remove. All callers use
2519 complain.c::complain.
2520 (toomany): Remove, use fatal instead.
2521 * src/files.c (done): No argument, use complain_message_count.
2522 * src/main.c (main): Register `done' to `atexit'.
2524 * src/getargs.c (usage): More `fputs', less `fprintf'.
2526 2000-03-28 Akim Demaille <akim@epita.fr>
2528 * lib/: New directory.
2529 * Makefile.am (SUBDIRS): Adjust.
2530 * configure.in: Adjust.
2531 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2533 * src/alloca.c: Moved to lib/.
2534 * src/getopt.c: Likewise.
2535 * src/getopt1.c: Likewise.
2536 * src/getopt.h: Likewise.
2537 * src/ansi2knr.c: Likewise.
2538 * src/ansi2knr.1: Likewise.
2539 * src/Makefile.am: Adjust.
2540 * lib/Makefile.am: New file.
2542 2000-03-28 Akim Demaille <akim@epita.fr>
2544 * src/getargs.c (usage): Refresh the help message.
2546 2000-03-17 Akim Demaille <akim@epita.fr>
2548 * src/getopt1.c: Updated from textutils 2.0e
2549 * src/getopt.c: Likewise.
2550 * src/getopt.h: Likewise.
2552 2000-03-17 Akim Demaille <akim@epita.fr>
2554 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2555 the file name, not the whole `#line LINE FILE'.
2557 2000-03-17 Akim Demaille <akim@epita.fr>
2559 On syntax errors, report the token on which we choked.
2561 * src/bison.s1 (yyparse): In the label yyerrlab, when
2562 YYERROR_VERBOSE, add yychar in msg.
2564 2000-03-17 Akim Demaille <akim@epita.fr>
2566 * src/reader.c (copy_at): New function.
2567 (copy_guard): Use it.
2568 (copy_action): Use it.
2570 2000-03-17 Akim Demaille <akim@epita.fr>
2572 Be kind to translators, save some useless translations.
2574 * src/main.c (banner): New function.
2575 (fatal_banner): Use it.
2576 (warn_banner): Use it.
2578 2000-03-17 Akim Demaille <akim@epita.fr>
2580 * src/reader.c (copy_definition): Use copy_string and
2581 copy_comment. Removed now unused `match', `ended',
2583 (copy_comment, copy_string): Moved, to be visible from
2586 2000-03-17 Akim Demaille <akim@epita.fr>
2588 * src/reader.c (copy_string): Declare `static inline'. No
2589 problems with inline, since it is checked by configure.
2590 (copy_comment): Likewise.
2592 2000-03-17 Akim Demaille <akim@epita.fr>
2594 * src/reader.c (packsymbols): Formatting changes.
2596 2000-03-17 Akim Demaille <akim@epita.fr>
2598 * src/reader.c (copy_comment): New function, factored out from:
2599 (copy_action): Use it. Removed now unused `match', `ended',
2601 (copy_guard): Likewise.
2603 2000-03-17 Akim Demaille <akim@epita.fr>
2605 * src/reader.c (copy_string): New function, factored out from:
2606 (copy_action): Use it.
2607 (copy_guard): Likewise.
2609 2000-03-17 Akim Demaille <akim@epita.fr>
2611 Change the handling of @s so that they behave exactly like $s.
2612 There is now a pseudo variable @$ (readble and writable), location
2613 of the lhs of the rule (by default ranging from the location of
2614 the first symbol of the rhs, to the location of the last symbol,
2615 or, if the rhs is empty, YYLLOC).
2617 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2619 (yyparse): When providing a default semantic action, provide a
2620 default location action.
2621 (after the $): No longer change `*YYLSP', just stack YYLOC the
2622 same way you stack YYVAL.
2623 * src/reader.c (read_declarations): Use warns.
2624 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2625 (copy_action, case '@'): Likewise.
2626 Use a standard error message, to save useless work from
2629 2000-03-17 Akim Demaille <akim@epita.fr>
2631 * src/bison.s1: Formatting and cosmetics changes.
2632 * src/reader.c: Likewise.
2633 Update the Copyright notice.
2635 2000-03-17 Akim Demaille <akim@epita.fr>
2637 * src/bison.s1 (#line): All set to `#line' only, since the
2638 Makefile now handles them.
2640 2000-03-16 Akim Demaille <akim@epita.fr>
2642 * src/output.c (output_rule_data): Output the documentation of
2644 (Copyright notice): Update.
2647 2000-03-16 Akim Demaille <akim@epita.fr>
2649 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2650 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2651 One `#if YYDEBUG' remains, since it uses variables which are
2652 defined only if `YYDEBUG != 0'.
2654 2000-03-16 Akim Demaille <akim@epita.fr>
2656 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2657 and related variables so that the similarities are highlighted.
2659 2000-03-16 Akim Demaille <akim@epita.fr>
2661 * src/bison.s1: Properly indent CPP directives.
2663 2000-03-16 Akim Demaille <akim@epita.fr>
2665 * src/bison.s1: Properly indent the `alloca' CPP section.
2667 2000-03-16 Akim Demaille <akim@epita.fr>
2669 Do not hard code values of directories in `configure.in'.
2670 Update the `configure' tool chain.
2672 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2674 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2675 (AC_OUTPUT): Add m4/Makefile.
2676 Bump to bison 1.28a, 1.29 has never been released.
2677 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2678 handled via src/Makefile.am.
2679 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2680 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2682 * Makefile.am (SUBDIRS): Add m4.
2683 (ACLOCAL_AM_FLAGS): New variable.
2684 (AUTOMAKE_OPTIONS): Add check-news.
2685 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2686 the proper line number and file name.
2687 (DEFS): Propagate the location of bison library files and of the
2689 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2691 * acinclude.m4: Remove, replaced by the directory m4.
2692 * m4/Makefile.am (EXTRA_DIST): New variable.
2693 * m4/gettext.m4: New file, from the fileutils.
2694 * m4/lcmessage.m4: Likewise
2695 * m4/progtest.m4: Likewise.
2696 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2698 2000-03-10 Akim Demaille <akim@epita.fr>
2701 Formatting changes of various comments.
2702 Respect the GNU coding standards at various places.
2703 Don't use `_()' when no translation is needed.
2705 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2708 OS/2 honors TMPDIR environment variable.
2710 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2712 * doc/bison.texinfo: Tweaked spelling and grammar.
2714 Removed reference to price of printed copy.
2715 Mention BISON_SIMPLE and BISON_HAIRY.
2717 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2719 * configure.in, NEWS:
2720 Bison 1.29 released.
2722 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2724 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2725 Added reference card.
2727 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2729 * po/ru.po: Added Russian translation.
2731 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2733 * configure.in: Added Russian translation.
2735 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2737 * configure.in, NEWS, README:
2738 Released version 1.28.
2740 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2743 Squashed redefinition warning on some systems.
2745 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2746 Have configure build version string instead of relying on ANSI string
2749 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2751 * po/POTFILES.in: Got rid of version.c.
2753 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2755 * acconfig.h, configure.in:
2756 Have configure build version string instead of relying on ANSI string
2759 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2762 Dropped mention of `+' for long-named options.
2764 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2766 * src/files.c: Added <unistd.h> for unlink().
2768 * src/Makefile.am, src/system.h:
2771 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2773 * README: Added a FAQ list.
2775 * configure.in, acconfig.h:
2778 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2780 * doc/FAQ, doc/Makefile.am:
2783 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2785 * src/alloc.h, src/symtab.h, src/version.c:
2786 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2788 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2790 * src/.cvsignore, src/Makefile.am:
2791 Reorganized: sources in `src', documentation in `doc'.
2793 * src/lex.c (literalchar):
2794 fixed the code for escaping double quotes (thanks
2797 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2799 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2800 Adjusted paths to reflect directory reorganization.
2802 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2804 * doc/.cvsignore, doc/Makefile.am:
2805 Reorganized: sources in `src', documentation in `doc'.
2807 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2810 Updated AC_INIT file to reflect directory reorganization.
2812 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2813 Reorganized: sources in `src', documentation in `doc'.
2815 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2818 Don't declare calloc() and realloc() if not necessary.
2820 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2822 * configure.in, acconfig.h, acinclude.m4:
2823 Don't declare calloc() and realloc() if not necessary.
2825 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2827 * po/.cvsignore: Added i18n support.
2829 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2831 * acconfig.h, configure.in, Makefile.am:
2834 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2836 * src/bison.s1: Fixed #line numbers.
2838 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2840 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2841 Added PO files from Translation Project.
2843 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2846 Added support for non-ANSI compilers (ansi2knr).
2848 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2850 * configure.in: Bumped version number to 1.27.
2853 Added `bison.simple' to list of files removed by `make distclean'.
2855 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2857 * src/files.c, src/files.h:
2858 Defined locations of parser files in config.h instead of Makefile.
2860 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2862 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2863 Defined locations of parser files in config.h instead of Makefile.
2865 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2868 Removed inappropriate use of $< macro.
2870 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2872 * po/Makefile.in.in, po/POTFILES.in:
2873 Add `po' directory skeleton.
2875 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2877 * README: Document help-bison list.
2879 * configure.in: Add check for mkstemp().
2881 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2883 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2884 Hush a few compiler warnings.
2887 Add tryclose(), which verifies that fclose was successful.
2888 Hush a couple of compiler warnings.
2890 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2892 * Makefile.am, OChangeLog:
2893 ChangeLog is now automatically generated. Include the old version as
2896 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2898 * 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:
2901 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2903 * doc/bison.texinfo: Fix formatting glitch.
2905 * doc/bison.texinfo: Update FSF address.
2907 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2909 * acconfig.h: Update FSF address.
2911 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2914 Don't define PACKAGE here, since config.h defines it.
2916 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2918 * src/reader.c: Update copyright date.
2921 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2922 favor of output directly to stderr (avoids buffer overruns).
2924 * src/reader.c: Some checks for premature EOF.
2926 * 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:
2927 Use prototypes if the compiler understands them.
2929 * src/files.c: Honor TMPDIR on Unix hosts.
2930 Use prototypes if the compiler understands them.
2933 Fix a couple of buffer overrun bugs.
2934 Use prototypes if the compiler understands them.
2936 * src/system.h: Include unistd.h and ctype.h.
2937 Use #ifdef instead of #if for NLS symbols.
2939 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2941 * doc/bison.texinfo:
2942 Delete comment "consider using @set for edition number, etc..." since
2943 we now are doing so.
2945 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2948 Use prototypes if the compiler understands them.
2950 * NEWS: Document 1.26 highlights.
2952 * Makefile.am: Require Automake 1.3 or later.
2955 Use prototypes if the compiler understands them.
2957 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2960 Use VERSION symbol from automake for version number.
2962 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2964 * acconfig.h, configure.in, version.cin:
2965 Use VERSION symbol from automake for version number.
2967 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2970 Distribute original version of simple parser (bison.s1), not built
2971 version (bison.simple).
2973 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2975 * doc/bison.texinfo: Add info dir entry.
2977 * doc/bison.texinfo:
2978 Let automake put version number into documentation.
2980 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2982 * src/bison.cld, src/build.com, src/vmshlp.mar:
2983 Add non-RCS files from /gd/gnu/bison.
2985 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2988 Document the BISON_HAIRY and BISON_SIMPLE variables.
2990 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2992 * src/version.c: Build version.c automatically.
2995 Fix token numbering (used to start at 258, not 257).
2997 * src/system.h: Include config.h.
2999 * src/getargs.c: Update bug report address.
3001 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3002 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3004 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3007 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3009 * configure.in, version.cin:
3010 Build version.c automatically.
3012 * AUTHORS: Add AUTHORS file.
3014 * README: Update bug report address.
3017 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3019 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3022 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3024 * doc/bison.texinfo: Clean up some formatting.
3026 1998-05-05 Richard Stallman <rms@gnu.org>
3028 * doc/bison.texinfo:
3029 Explain better why to make a pure parser.
3031 1998-01-05 Richard Stallman <rms@gnu.org>
3033 * src/files.c (openfiles):
3034 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3035 find a temporary directory, if possible. Do not unlink files while
3038 1997-08-25 Richard Stallman <rms@gnu.org>
3040 * src/reader.c (stack_offset;):
3041 Change some warni to warns.
3043 * src/lex.c (literalchar): Use warns, not warni.
3045 1997-06-28 Richard Stallman <rms@gnu.org>
3047 * src/bison.s1: Add a Bison version comment.
3049 * src/main.c (fatal, warn, berror):
3052 1997-06-28 Richard Stallman <rms@gnu.org>
3054 * Makefile.in (bison_version): New variable.
3055 (dist): Use that variable.
3056 (bison.s1): Substitute the Bison version into bison.simple.
3058 * bison.simple: Add a Bison version comment.
3060 1997-06-18 Richard Stallman <rms@gnu.org>
3062 * src/main.c (fatal, warn, berror):
3063 Make error messages standard.
3064 (toomany): Improve error message text.
3066 * 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:
3067 new.h renamed to alloc.h.
3069 1997-06-18 Richard Stallman <rms@gnu.org>
3071 * Makefile.in: new.h renamed to alloc.h.
3073 1997-05-24 Richard Stallman <rms@gnu.org>
3075 * src/lex.c (literalchar):
3076 Fix the code for escaping \, " and '.
3078 (lex): Avoid trouble when there are many chars
3079 to discard in a char literal with just several chars in it.
3081 1997-05-17 Richard Stallman <rms@gnu.org>
3084 Use malloc, if using alloca is troublesome.
3085 (YYSTACK_USE_ALLOCA): New flag macro.
3086 Define it for some systems and compilers.
3087 (YYSTACK_ALLOC): New macro.
3088 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3089 If it was malloc'd, free it.
3091 1997-05-17 Richard Stallman <rms@gnu.org>
3094 Use malloc, if using alloca is troublesome.
3095 (YYSTACK_USE_ALLOCA): New flag macro.
3096 Define it for some systems and compilers.
3097 (YYSTACK_ALLOC): New macro.
3098 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3099 If it was malloc'd, free it.
3101 1997-04-23 Richard Stallman <rms@gnu.org>
3104 (alloca) [__hpux]: Always define as __builtin_alloca.
3106 1997-04-23 Richard Stallman <rms@gnu.org>
3109 (alloca) [__hpux]: Always define as __builtin_alloca.
3111 1997-04-22 Richard Stallman <rms@gnu.org>
3114 [__hpux]: Include alloca.h (right for HPUX 10)
3115 instead of declaring alloca (right for HPUX 9).
3117 * src/bison.s1 (__yy_memcpy):
3118 Declare arg `count' as unsigned int.
3119 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3121 1997-04-22 Richard Stallman <rms@gnu.org>
3124 [__hpux]: Include alloca.h (right for HPUX 10)
3125 instead of declaring alloca (right for HPUX 9).
3127 * bison.simple (__yy_memcpy):
3128 Declare arg `count' as unsigned int.
3129 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3131 1997-01-03 Richard Stallman <rms@gnu.org>
3133 * src/allocate.c: [__STDC__ or _MSC_VER]:
3134 Declare calloc and realloc to return void *.
3136 1997-01-02 Richard Stallman <rms@gnu.org>
3139 [_MSC_VER]: Include stdlib.h and process.h.
3140 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3142 * src/main.c (main): Return FAILURE as a value.
3143 (printable_version): Declare arg as int, not char.
3145 1997-01-02 Richard Stallman <rms@gnu.org>
3147 * Makefile.in (dist):
3148 Explicitly check for symlinks, and copy them.
3150 1996-12-19 Richard Stallman <rms@gnu.org>
3153 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3155 1996-12-18 Paul Eggert <eggert@gnu.org>
3157 * src/bison.s1 (yyparse):
3158 If __GNUC__ and YYPARSE_PARAM are both defined,
3159 declare yyparse to have a void * argument.
3161 1996-12-18 Paul Eggert <eggert@gnu.org>
3163 * bison.simple (yyparse):
3164 If __GNUC__ and YYPARSE_PARAM are both defined,
3165 declare yyparse to have a void * argument.
3167 1996-12-17 Richard Stallman <rms@gnu.org>
3169 * src/reduce.c (nbits): Add some casts.
3171 1996-08-12 Richard Stallman <rms@gnu.org>
3173 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3175 1996-08-12 Richard Stallman <rms@gnu.org>
3177 * bison.simple: Test _MSDOS as well as _MSDOS_.
3179 1996-07-31 Richard Stallman <rms@gnu.org>
3182 [__sun && __i386]: Include alloca.h.
3184 1996-07-31 Richard Stallman <rms@gnu.org>
3187 [__sun && __i386]: Include alloca.h.
3189 1996-07-30 Richard Stallman <rms@gnu.org>
3191 * src/bison.s1: Comment change.
3193 * src/bison.s1: Test _MSDOS_, not MSDOS.
3195 1996-07-30 Richard Stallman <rms@gnu.org>
3197 * bison.simple: Comment change.
3199 * bison.simple: Test _MSDOS_, not MSDOS.
3201 1996-06-01 Richard Stallman <rms@gnu.org>
3203 * 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:
3204 Insert `_' macro around many string constants.
3207 Insert `_' macro around many string constants.
3209 (main): Call setlocale, bindtextdomain and textdomain.
3211 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3212 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3213 [ENABLE_NLS]: Include libintl.h.
3214 [ENABLE_NLS] (gettext): Define.
3215 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3216 (N_, PACKAGE, LOCALEDIR): New macros.
3218 1996-06-01 Richard Stallman <rms@gnu.org>
3220 * POTFILES.in: New file.
3222 * Makefile.in (allocate.o):
3223 Define target explicitly.
3225 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3226 (LDFLAGS): Set to @LDFLAGS@.
3227 (configure): Run autoconf only if preceding `cd' succeeds.
3228 (bison.s1): Redirect output to temporary file then move the
3229 temporary to the target, rather than redirecting directly to bison.s1.
3230 (clean): Remove config.status and config.log.
3231 (distclean): Don't remove config.status here.
3233 1996-05-12 Richard Stallman <rms@gnu.org>
3236 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3238 1996-05-12 Richard Stallman <rms@gnu.org>
3241 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3243 1996-05-11 Richard Stallman <rms@gnu.org>
3245 * src/bison.s1 (__yy_memcpy):
3246 Really reorder the args, as was supposedly done on Feb 14 1995.
3247 (yyparse): Calls changed accordingly.
3249 1996-05-11 Richard Stallman <rms@gnu.org>
3251 * Makefile.in (dist): Don't use $(srcdir).
3253 * bison.simple (__yy_memcpy):
3254 Really reorder the args, as was supposedly done on Feb 14 1995.
3255 (yyparse): Calls changed accordingly.
3257 1996-01-27 Richard Stallman <rms@gnu.org>
3259 * src/output.c (output_rule_data):
3260 Test YYERROR_VERBOSE in the conditional
3261 around the definition of ttyname.
3263 1995-12-29 Richard Stallman <rms@gnu.org>
3266 Fix line numbers in #line commands.
3268 1995-12-29 Richard Stallman <rms@gnu.org>
3271 Fix line numbers in #line commands.
3273 1995-12-27 Richard Stallman <rms@gnu.org>
3275 * src/bison.s1 (YYPARSE_PARAM_DECL):
3276 In C++, make it always null.
3277 (YYPARSE_PARAM_ARG): New macro.
3278 (yyparse): Use YYPARSE_PARAM_ARG.
3280 1995-12-27 Richard Stallman <rms@gnu.org>
3282 * bison.simple (YYPARSE_PARAM_DECL):
3283 In C++, make it always null.
3284 (YYPARSE_PARAM_ARG): New macro.
3285 (yyparse): Use YYPARSE_PARAM_ARG.
3287 1995-11-29 Richard Stallman <rms@gnu.org>
3289 * doc/bison.texinfo:
3290 Describe literal string tokens, %raw, %no_lines, %token_table.
3292 1995-11-29 Daniel Hagerty <hag@gnu.org>
3294 * doc/bison.texinfo: Fixed update date
3296 1995-10-16 Richard Stallman <rms@gnu.org>
3298 * src/version.c: Version 1.25.
3300 1995-10-16 Richard Stallman <rms@gnu.org>
3302 * NEWS: *** empty log message ***
3304 1995-10-16 Richard Stallman <rms@gnu.org>
3306 * doc/bison.1, doc/bison.rnh:
3309 1995-10-15 Richard Stallman <rms@gnu.org>
3311 * src/vmsgetargs.c, src/getargs.c:
3312 Added -n, -k, and -raw switches.
3313 (noparserflag, toknumflag, rawtoknumflag): New variables.
3315 * src/symtab.h (SALIAS):
3316 New #define for adding aliases to %token.
3317 (struct bucket): Added `alias' field.
3319 * src/reduce.c (reduce_grammar):
3320 Revise error message.
3321 (print_notices): Remove final `.' from error message.
3323 * src/reader.c (reader_output_yylsp):
3325 (readgram): Use `#if 0' around code that accepted %command
3326 inside grammar rules: The documentation doesn't allow it,
3327 and it will fail since the %command processors scan for the next %.
3328 (parse_token_decl): Extended the %token
3329 declaration to allow a multi-character symbol as an alias.
3330 (parse_thong_decl): New function.
3331 (read_declarations): Added %thong declarations.
3332 (read_declarations): Handle NOOP to deal with allowing
3333 % declarations as another means to specify the flags.
3334 (readgram): Allow %prec prior to semantics embedded in a rule.
3335 (skip_to_char, read_declarations, copy_definition)
3336 (parse_token_decl, parse_start_decl, parse_type_decl)
3337 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3338 (get_type_name, copy_guard, copy_action, readgram)
3339 (get_type, packsymbols): Revised most error messages.
3340 Changed `fatal' to `warnxxx' to avoid aborting for error.
3341 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3342 (read_declarations): Improve the error message for
3343 an invalid character. Do not abort.
3344 (read_declarations, copy_guard, copy_action): Use
3345 printable_version to avoid unprintable characters in printed output.
3346 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3347 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3348 Allow the type of a non-terminal can be given
3349 more than once, as long as all specifications give the same type.
3352 (output_headers, output_trailers, output, output_gram)
3353 (output_rule_data): Implement noparserflag variable.
3354 Implement toknumflag variable.
3355 (output): Call reader_output_yylsp to output LTYPESTR.
3357 * src/main.c (main):
3358 If reader sees an error, don't process the grammar.
3359 (fatals): Updated to not use VARARGS1.
3360 (printable_version, int_to_string, warn, warni, warns, warnss)
3361 (warnsss): New error reporting functions. Avoid abort for error.
3364 Added THONG and NOOP for alias processing.
3365 Added SETOPT for the new code that allows setting options with %flags.
3368 Include getopt.h. Add some extern decls.
3369 (safegetc): New function to deal with EOF gracefully.
3370 (literalchar); new function to deal with reading \ escapes.
3371 (lex): Use literalchar.
3372 (lex): Implemented "..." tokens.
3373 (literalchar, lex, parse_percent_token): Made tokenbuffer
3374 always contain the token. This includes growing the token
3375 buffer while reading an integer.
3376 (parse_percent_token): Replaced if-else statement with percent_table.
3377 (parse_percent_token): Added % declarations as another
3378 way to specify the flags -n, -l, and -r. Also added hooks for
3379 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3380 major changes to files.c.
3381 (lex) Retain in the incoming stream a character following
3383 (skip_white_space, lex): Revised most error messages
3384 and changed fatal to warn to avoid aborting.
3385 (percent_table): Added %thong declarations.
3387 * src/gram.h: Comment changes.
3389 * src/files.c (openfiles, open_extra_files, done):
3391 and actfile file. Handle noparserflag. Both for -n switch.
3393 * src/conflicts.c (resolve_sr_conflict):
3394 Remove use of alloca.
3396 1995-06-01 Jim Meyering <meyering@gnu.org>
3398 * doc/bison.texinfo: *** empty log message ***
3400 1995-05-06 Richard Stallman <rms@gnu.org>
3402 * src/bison.s1: Comment change.
3404 1995-05-06 Richard Stallman <rms@gnu.org>
3406 * bison.simple: Comment change.
3408 1995-05-03 Richard Stallman <rms@gnu.org>
3410 * src/version.c: Version now 1.24.
3412 * src/bison.s1: Change distribution terms.
3414 * src/version.c: Version now 1.23.
3416 1995-05-03 Richard Stallman <rms@gnu.org>
3418 * doc/bison.texinfo:
3419 Rewrite "Conditions for Using Bison".
3420 Update version to 1.24.
3422 1995-05-03 Richard Stallman <rms@gnu.org>
3424 * bison.simple: Change distribution terms.
3426 1995-02-23 Richard Stallman <rms@gnu.org>
3428 * src/files.c: Test __VMS_POSIX as well as VMS.
3430 1995-02-14 Jim Meyering <meyering@gnu.org>
3432 * src/bison.s1 (__yy_memcpy):
3433 Renamed from __yy_bcopy to avoid
3434 confusion. Reverse FROM and TO arguments to be consistent with
3437 1995-02-14 Jim Meyering <meyering@gnu.org>
3439 * bison.simple (__yy_memcpy):
3440 Renamed from __yy_bcopy to avoid
3441 confusion. Reverse FROM and TO arguments to be consistent with
3444 1994-11-10 David J. MacKenzie <djm@gnu.org>
3450 * Makefile.in (DISTFILES): Include NEWS.
3452 * Makefile.in (DISTFILES):
3453 Include install-sh, not install.sh.
3455 * configure.in: Update to Autoconf v2 macro names.
3457 1994-10-05 David J. MacKenzie <djm@gnu.org>
3459 * Makefile.in: fix typo
3461 * Makefile.in (prefix, exec_prefix):
3462 Let configure set them.
3464 1994-09-28 David J. MacKenzie <djm@gnu.org>
3466 * Makefile.in: Set datadir to $(prefix)/share.
3468 1994-09-15 Richard Stallman <rms@gnu.org>
3471 Update copyright notice and GPL version.
3473 1994-09-15 Richard Stallman <rms@gnu.org>
3476 Update copyright notice and GPL version.
3478 1994-07-12 Richard Stallman <rms@gnu.org>
3480 * src/reduce.c, src/reader.c:
3483 1994-05-05 David J. MacKenzie <djm@gnu.org>
3485 * Makefile.in: entered into RCS
3487 1994-03-26 Richard Stallman <rms@gnu.org>
3489 * src/bison.s1: entered into RCS
3491 1994-03-26 Richard Stallman <rms@gnu.org>
3493 * bison.simple: entered into RCS
3495 1994-03-25 Richard Stallman <rms@gnu.org>
3497 * src/main.c: entered into RCS
3499 1994-03-24 Richard Stallman <rms@gnu.org>
3501 * src/conflicts.c: entered into RCS
3503 1994-01-02 Richard Stallman <rms@gnu.org>
3505 * Makefile.in: *** empty log message ***
3507 1993-11-21 Richard Stallman <rms@gnu.org>
3509 * src/bison.s1: *** empty log message ***
3511 1993-11-21 Richard Stallman <rms@gnu.org>
3513 * doc/bison.texinfo: entered into RCS
3515 * doc/bison.texinfo: *** empty log message ***
3517 1993-11-21 Richard Stallman <rms@gnu.org>
3519 * bison.simple: *** empty log message ***
3521 1993-10-25 David J. MacKenzie <djm@gnu.org>
3523 * doc/bison.texinfo: *** empty log message ***
3525 1993-10-19 Richard Stallman <rms@gnu.org>
3527 * src/bison.s1: *** empty log message ***
3529 1993-10-19 Richard Stallman <rms@gnu.org>
3531 * bison.simple: *** empty log message ***
3533 1993-10-14 Richard Stallman <rms@gnu.org>
3535 * src/bison.s1: *** empty log message ***
3537 1993-10-14 Richard Stallman <rms@gnu.org>
3539 * bison.simple: *** empty log message ***
3541 1993-09-14 David J. MacKenzie <djm@gnu.org>
3543 * doc/bison.texinfo: *** empty log message ***
3545 1993-09-13 Noah Friedman <friedman@gnu.org>
3547 * Makefile.in: *** empty log message ***
3549 1993-09-10 Richard Stallman <rms@gnu.org>
3551 * src/conflicts.c: *** empty log message ***
3553 * src/system.h: entered into RCS
3555 1993-09-10 Richard Stallman <rms@gnu.org>
3557 * doc/bison.1: entered into RCS
3559 1993-09-06 Noah Friedman <friedman@gnu.org>
3561 * src/version.c: entered into RCS
3563 1993-09-06 Noah Friedman <friedman@gnu.org>
3565 * Makefile.in: *** empty log message ***
3567 1993-07-30 David J. MacKenzie <djm@gnu.org>
3569 * Makefile.in: *** empty log message ***
3571 1993-07-24 Richard Stallman <rms@gnu.org>
3573 * src/bison.s1: *** empty log message ***
3575 1993-07-24 Richard Stallman <rms@gnu.org>
3577 * bison.simple: *** empty log message ***
3579 1993-07-08 David J. MacKenzie <djm@gnu.org>
3581 * Makefile.in: *** empty log message ***
3583 1993-07-04 Richard Stallman <rms@gnu.org>
3585 * src/bison.s1: *** empty log message ***
3587 1993-07-04 Richard Stallman <rms@gnu.org>
3589 * bison.simple: *** empty log message ***
3591 1993-06-26 David J. MacKenzie <djm@gnu.org>
3593 * src/getargs.c: entered into RCS
3595 1993-06-26 David J. MacKenzie <djm@gnu.org>
3597 * doc/bison.texinfo: *** empty log message ***
3599 * doc/bison.1: New file.
3601 1993-06-25 Richard Stallman <rms@gnu.org>
3603 * src/getargs.c: New file.
3605 1993-06-16 Richard Stallman <rms@gnu.org>
3607 * src/bison.s1: *** empty log message ***
3609 1993-06-16 Richard Stallman <rms@gnu.org>
3611 * bison.simple: *** empty log message ***
3613 1993-06-03 Richard Stallman <rms@gnu.org>
3615 * src/bison.s1: New file.
3617 1993-06-03 Richard Stallman <rms@gnu.org>
3619 * doc/bison.texinfo: *** empty log message ***
3621 1993-06-03 Richard Stallman <rms@gnu.org>
3623 * bison.simple: New file.
3625 1993-05-19 Richard Stallman <rms@gnu.org>
3627 * doc/bison.texinfo: New file.
3629 1993-05-07 Noah Friedman <friedman@gnu.org>
3631 * Makefile.in: *** empty log message ***
3633 1993-04-28 Noah Friedman <friedman@gnu.org>
3635 * src/reader.c: *** empty log message ***
3637 1993-04-23 Noah Friedman <friedman@gnu.org>
3639 * src/alloc.h: entered into RCS
3641 1993-04-20 David J. MacKenzie <djm@gnu.org>
3643 * src/version.c: *** empty log message ***
3645 * src/files.c, src/allocate.c:
3648 * src/reader.c: *** empty log message ***
3650 * src/lex.c: entered into RCS
3652 * src/conflicts.c: New file.
3654 * src/symtab.c: entered into RCS
3656 * src/alloc.h: New file.
3658 * src/LR0.c: entered into RCS
3660 1993-04-18 Noah Friedman <friedman@gnu.org>
3662 * src/reader.c: New file.
3664 * src/version.c: *** empty log message ***
3666 1993-04-18 Noah Friedman <friedman@gnu.org>
3668 * Makefile.in: *** empty log message ***
3670 1993-04-17 Noah Friedman <friedman@gnu.org>
3672 * Makefile.in: *** empty log message ***
3674 1993-04-15 Richard Stallman <rms@gnu.org>
3676 * src/main.c, src/files.c:
3679 1993-04-15 Noah Friedman <friedman@gnu.org>
3681 * configure.in: entered into RCS
3683 * configure.in: *** empty log message ***
3685 * configure.in: New file.
3687 1993-04-14 Richard Stallman <rms@gnu.org>
3689 * Makefile.in: New file.
3691 1993-04-13 Richard Stallman <rms@gnu.org>
3693 * src/version.c: New file.
3695 1993-03-25 Richard Stallman <rms@gnu.org>
3697 * src/output.c: entered into RCS
3699 1992-09-25 Richard Stallman <rms@gnu.org>
3701 * configure.bat: entered into RCS
3703 1992-06-22 Richard Stallman <rms@gnu.org>
3705 * src/vmsgetargs.c: entered into RCS
3707 1992-06-22 Richard Stallman <rms@gnu.org>
3709 * doc/bison.rnh: entered into RCS
3711 1992-04-20 David J. MacKenzie <djm@gnu.org>
3713 * README: entered into RCS
3715 1992-01-22 Richard Stallman <rms@gnu.org>
3717 * src/machine.h: entered into RCS
3719 1991-12-21 Richard Stallman <rms@gnu.org>
3721 * src/lalr.c, src/closure.c:
3724 1991-12-20 Richard Stallman <rms@gnu.org>
3726 * src/state.h: entered into RCS
3728 1991-12-18 Richard Stallman <rms@gnu.org>
3730 * src/print.c, src/nullable.c, src/derives.c:
3733 1991-11-03 David J. MacKenzie <djm@gnu.org>
3735 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3738 1988-09-09 Richard Stallman <rms@gnu.org>
3740 * src/bison.hairy: entered into RCS
3742 1987-12-16 Richard Stallman <rms@gnu.org>
3744 * REFERENCES: entered into RCS