1 2001-12-05 Akim Demaille <akim@epita.fr>
3 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
4 * src/closure.c, src/closure.h (itemsetsize): Rename as...
5 (nitemset): for consistency with the rest of the project.
8 2001-12-05 Akim Demaille <akim@epita.fr>
10 * src/closure.c (print_closure): Improve.
11 (closure): Use it for printing input and output.
14 2001-12-05 Akim Demaille <akim@epita.fr>
16 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
17 indexed by nonterminals.
20 2001-12-05 Akim Demaille <akim@epita.fr>
22 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
24 * src/warshall.h: Remove accidental duplication of the content.
27 2001-12-05 Akim Demaille <akim@epita.fr>
29 * src/closure.c (set_fderives): De-obfuscate.
32 2001-12-05 Akim Demaille <akim@epita.fr>
34 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
37 2001-12-05 Akim Demaille <akim@epita.fr>
39 * src/closure.c (set_firsts): De-obfuscate.
41 2001-12-05 Akim Demaille <akim@epita.fr>
43 * src/output.c (action_row): De-obfuscate
44 using the good o' techniques: arrays not pointers, variable
45 locality, BITISSET, RESETBIT etc.
48 2001-12-05 Akim Demaille <akim@epita.fr>
50 Pessimize the code to simplify it: from now on, all the states
51 have a valid SHIFTS, which NSHIFTS is possibly 0.
53 * src/LR0.c (shifts_new): Be global and move to..
54 * src/state.c, src/state.h: here.
55 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
56 * src/print_graph: Adjust.
59 2001-12-05 Akim Demaille <akim@epita.fr>
61 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
62 * src/conflicts.c: Use it.
63 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
64 incorrectly ``simplified''.
67 2001-12-05 Akim Demaille <akim@epita.fr>
69 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
70 using the good o' techniques: arrays not pointers, variable
71 locality, BITISSET, RESETBIT etc.
74 2001-12-05 Akim Demaille <akim@epita.fr>
76 * src/state.h (SHIFT_SYMBOL): New.
77 * src/conflicts.c: Use it to deobfuscate.
80 2001-12-05 Akim Demaille <akim@epita.fr>
82 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
83 (print_reductions): De-obfuscate using the good o' techniques:
84 arrays not pointers, variable locality, BITISSET.
87 2001-12-05 Akim Demaille <akim@epita.fr>
89 * src/conflicts.c (print_reductions): Arrays, not pointers.
93 2001-12-05 Akim Demaille <akim@epita.fr>
95 * src/conflicts.c (print_reductions): Pessimize, but clarify.
98 2001-12-05 Akim Demaille <akim@epita.fr>
100 * src/conflicts.c (print_reductions): Improve variable locality.
103 2001-12-05 Akim Demaille <akim@epita.fr>
105 * src/conflicts.c (print_reductions): Pessimize, but clarify.
108 2001-12-05 Akim Demaille <akim@epita.fr>
110 * src/conflicts.c (print_reductions): Improve variable locality.
113 2001-12-05 Akim Demaille <akim@epita.fr>
115 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
116 * src/lalr.c: Use them.
119 2001-12-05 Akim Demaille <akim@epita.fr>
121 * src/LR0.c (augment_automaton): Formatting changes.
122 Better variable locality.
125 2001-12-05 Akim Demaille <akim@epita.fr>
127 * src/lalr.c (matrix_print): New.
129 Use arrays instead of pointers.
131 2001-12-05 Akim Demaille <akim@epita.fr>
133 * src/lalr.c (maxrhs): Move to...
134 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
135 * src/lalr.c (build_relations): Adjust.
137 2001-12-05 Akim Demaille <akim@epita.fr>
139 * src/lalr.c (transpose): Free the memory allocated to the
140 argument, as it is replaced by the results by the unique caller.
141 (build_relations): Merely invoke transpose: it handles the memory
143 Improve variable locality.
144 Avoid variables used as mere abbreviations.
145 (compute_lookaheads): Use arrays instead of pointers.
147 2001-12-05 Akim Demaille <akim@epita.fr>
149 * src/lalr.c (initialize_F): Improve variable locality.
150 Avoid variables used as mere abbreviations.
152 2001-12-05 Akim Demaille <akim@epita.fr>
154 * src/derives.c (print_derives): Display the ruleno.
155 * src/lalr.c (initialize_F, transpose): Better variable locality
156 to improve readability.
157 Avoid variables used as mere abbreviations.
159 2001-12-05 Akim Demaille <akim@epita.fr>
161 * src/lalr.c (traverse): Use arrays instead of pointers.
163 2001-12-05 Akim Demaille <akim@epita.fr>
165 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
166 the handling of squeue.
167 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
170 2001-12-05 Akim Demaille <akim@epita.fr>
172 Because useless nonterminals are now kept alive (instead of being
173 `destroyed'), we now sometimes examine them, and store information
174 related to them. Hence we need to know their number, and adjust
177 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
179 * src/LR0.c (allocate_itemsets): The memory allocated to
180 `symbol_count' was used for two different purpose: once to count
181 the number of occurrences of each symbol, and later reassigned to
182 `shift_symbol', containing the symbol that can be shifted from a
184 Deobfuscate, i.e., allocate, use and free `symbol_count' here
186 (new_itemsets): Allocate `shift_symbol' here.
187 (allocate_itemsets): symbol_count includes useless nonterminals.
189 (free_storage): Use `free', not `XFREE', for pointers that cannot
193 2001-12-05 Akim Demaille <akim@epita.fr>
195 * src/nullable.c (set_nullable): Deobfuscate the handling of
197 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
200 2001-12-05 Akim Demaille <akim@epita.fr>
202 * src/gram.c, src/gram.h (ritem_print): New.
203 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
204 (This useless function was defined only to work around VMS linkers
205 that can't handle compilation units with variables only).
206 * src/reduce.c (dump_grammar): Use it to trace the construction of
209 2001-12-04 Paul Eggert <eggert@twinsun.com>
211 * src/bison.simple (union yyalloc): Change member names
212 to be the same as the stack names.
213 (yyparse): yyptr is now union yyalloc *, not char *.
214 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
215 and may generate better code on some machines.
216 (yystpcpy): Use prototype if __STDC__ is defined, not just
217 if __cplusplus is defined.
219 2001-11-30 Akim Demaille <akim@epita.fr>
221 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
222 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
223 Gettext doesn't compile cleanly, and dies with -Werror.
224 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
225 Include WARNING_CFLAGS here.
226 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
227 before being defined.
229 2001-11-30 Paul Eggert <eggert@twinsun.com>
231 * lib/quotearg.h (quotearg_n, quotearg_n_style):
232 First arg is int, not unsigned.
233 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
234 (SIZE_MAX, UINT_MAX): New macros.
235 (quotearg_n_options): Abort if N is negative.
236 Avoid overflow check on hosts where size_t is 64 bits and int
237 is 32 bits, as overflow is impossible there.
238 Fix off-by-one typo that caused unnecessary reallocation.
240 2001-11-30 Paul Eggert <eggert@twinsun.com>
242 Name space cleanup in generated parser.
244 * doc/bison.texinfo (Bison Parser): Discuss system headers
245 and their effect on the user name space.
248 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
249 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
250 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
252 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
253 on user names when possible.
255 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
256 Simplify test for whather <alloca.h> exists.
258 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
260 (<stdio.h>): Include if YYDEBUG.
262 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
263 ! defined (yyoverflow) && ! defined (yymemcpy).
265 (yymemcpy, yyparse): Rename local variables as needed so that
266 they all begin with 'yy'.
268 (yystrlen, yystpcpy): New functions.
270 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
273 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
274 instead of relying on string.h functions. Use YYSTACK_ALLOC
275 and YYSTACK_FREE instead of malloc and free.
277 2001-11-30 Akim Demaille <akim@epita.fr>
279 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
280 if body instead of `;' to pacify GCC's warnings.
282 2001-11-30 Akim Demaille <akim@epita.fr>
284 Instead of mapping the LHS of unused rules to -1, keep the LHS
285 valid, but flag the rules as invalid.
287 * src/gram.h (rule_t): `useful' is a new member.
288 * src/print.c (print_grammar): Adjust.
289 * src/derives.c (set_derives): Likewise.
290 * src/reader.c (packgram, reduce_output): Likewise.
291 * src/reduce.c (reduce_grammar_tables): Likewise.
292 * tests/reduce.at (Underivable Rules, Useless Rules): New.
294 2001-11-30 Akim Demaille <akim@epita.fr>
296 * src/reduce.c (reduce_output): Formatting changes.
297 * src/print.c (print_results, print_grammar): Likewise.
298 * tests/regression.at (Rule Line Numbers)
299 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
301 2001-11-30 Akim Demaille <akim@epita.fr>
303 * src/reduce.c (nonterminals_reduce): Instead of throwing away
304 useless nonterminals, move them at the end of the symbol arrays.
305 (reduce_output): Adjust.
306 * tests/reduce.at (Useless Nonterminals): Adjust.
308 2001-11-30 Akim Demaille <akim@epita.fr>
310 * src/reduce.c: Various comment/formatting changes.
311 (nonterminals_reduce): New, extracted from...
312 (reduce_grammar_tables): here.
313 (reduce_grammar): Call nonterminals_reduce.
315 2001-11-29 Paul Eggert <eggert@twinsun.com>
317 * src/bison.simple (YYSTACK_REALLOC): Remove.
318 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
319 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
321 (union yyalloc): New type.
322 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
323 an arbitrary restriction on hosts where size_t is wider than int.
325 (yyparse): Don't dump core if alloca or malloc fails; instead, report
326 a parser stack overflow. Allocate just one block of memory for all
327 three stacks, instead of allocating three blocks; this typically is
328 faster and reduces fragmentation.
330 Do not limit the number of items in the stack to a value that fits
331 in 'int', as this is an arbitrary limit on hosts with 64-bit
332 size_t and 32-bit int.
334 2001-11-28 Akim Demaille <akim@epita.fr>
336 * src/LR0.c (shifts_new): New.
337 (save_shifts, insert_start_shift, augment_automaton): Use it.
339 2001-11-28 Akim Demaille <akim@epita.fr>
341 * src/closure.c (closure): `b' and `ruleno' denote the same value:
344 2001-11-28 Akim Demaille <akim@epita.fr>
346 * src/closure.c (closure): Instead of looping over word in array
347 then bits in words, loop over bits in array.
349 2001-11-28 Akim Demaille <akim@epita.fr>
351 * src/closure.c (closure): No longer optimize the special case
352 where all the bits of `ruleset[r]' are set to 0, to make the code
355 2001-11-28 Akim Demaille <akim@epita.fr>
357 * src/closure.c (closure): `r' and `c' are new variables, used to
358 de-obfuscate accesses to RULESET and CORE.
360 2001-11-28 Akim Demaille <akim@epita.fr>
362 * src/reduce.c (reduce_print): Use ngettext.
363 (dump_grammar): Improve the trace accuracy.
365 2001-11-28 Akim Demaille <akim@epita.fr>
367 * src/reduce.c (dump_grammar): Don't translate trace messages.
369 2001-11-28 Akim Demaille <akim@epita.fr>
371 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
372 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
373 as all tags are free'ed afterwards.
376 2001-11-27 Akim Demaille <akim@epita.fr>
378 * src/system.h: Use intl/libgettext.h.
379 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
381 2001-11-27 Paul Eggert <eggert@twinsun.com>
383 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
384 use alloca when we didn't want to, and vice versa.
386 2001-11-27 Akim Demaille <akim@epita.fr>
388 * tests/torture.at (Exploding the Stack Size with Malloc):
389 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
391 2001-11-27 Akim Demaille <akim@epita.fr>
393 * src/files.c: Include error.h.
396 2001-11-26 Akim Demaille <akim@epita.fr>
400 2001-11-26 Akim Demaille <akim@epita.fr>
402 * src/reader.c (readgram): Make sure rules for mid-rule actions
403 have a lineno equal to that of their host rule.
404 Reported by Hans Aberg.
405 * tests/regression.at (Rule Line Numbers): New.
407 2001-11-26 Akim Demaille <akim@epita.fr>
409 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
411 Reported by Hans Aberg.
413 2001-11-26 Akim Demaille <akim@epita.fr>
415 * src/complain.c, src/complain.h (error): Remove, provided by
418 2001-11-26 Akim Demaille <akim@epita.fr>
420 * src/reader.c (read_declarations): Don't abort on tok_illegal,
421 issue an error message.
422 * tests/regression.at (Invalid %directive): New.
423 Reported by Hans Aberg.
425 2001-11-26 Akim Demaille <akim@epita.fr>
427 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
428 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
430 2001-11-26 Akim Demaille <akim@epita.fr>
432 * src/conflicts.c (conflicts_print): Don't complain at all when
433 there are no reduce/reduce conflicts, and as many shift/reduce
434 conflicts as expected.
435 * tests/regression.at (%expect right): Adjust.
437 2001-11-23 Akim Demaille <akim@epita.fr>
439 * lib/alloca.c: Update, from fileutils.
441 2001-11-23 Akim Demaille <akim@epita.fr>
443 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
445 2001-11-23 Akim Demaille <akim@epita.fr>
447 * src/system.h: Include alloca.h.
448 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
450 2001-11-23 Akim Demaille <akim@epita.fr>
452 * src/print_graph.c (print_actions): Remove `rule', unused.
453 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
454 pacify GCC's signed < unsigned warnings.
455 * src/closure.c (itemsetsize): Likewise.
456 * src/reader.c (symbol_list_new): Static.
458 2001-11-23 Akim Demaille <akim@epita.fr>
460 Attaching lineno to buckets is stupid, since only one copy of each
461 symbol is kept, only the line of the first occurrence is kept too.
463 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
464 * src/reader.c (rline_allocated): Remove, unused.
465 (symbol_list): Have a `line' member.
466 (symbol_list_new): New.
468 * src/print.c (print_grammar): Output the rule line numbers.
469 * tests/regression.at (Solved SR Conflicts)
470 (Unresolved SR Conflicts): Adjust.
471 Reported by Hans Aberg.
473 2001-11-20 Akim Demaille <akim@epita.fr>
477 2001-11-20 Akim Demaille <akim@epita.fr>
480 * configure.in (ALL_LINGUAS): Adjust.
481 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
482 longer contains strings to translate.
484 2001-11-19 Akim Demaille <akim@epita.fr>
486 * src/conflicts.c (conflicts_print): Add a missing \n.
488 2001-11-19 Akim Demaille <akim@epita.fr>
490 * src/nullable.c (nullable_print): New.
491 (set_nullable): Call it when tracing.
492 Better locality of variables.
494 2001-11-19 Akim Demaille <akim@epita.fr>
496 * src/print.c (print_actions): Better locality of variables.
498 2001-11-19 Akim Demaille <akim@epita.fr>
500 * src/derives.c (print_derives): Fix and enrich.
501 * src/closure.c (print_fderives): Likewise.
503 2001-11-19 Akim Demaille <akim@epita.fr>
505 * src/closure.c (itemsetend): Remove, replaced with...
508 2001-11-19 Akim Demaille <akim@epita.fr>
510 * src/LR0.c (kernel_end): Remove, replaced with...
513 2001-11-19 Akim Demaille <akim@epita.fr>
515 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
518 2001-11-19 Akim Demaille <akim@epita.fr>
520 * src/closure.c (closure): Use arrays instead of pointers to clarify.
522 2001-11-19 Akim Demaille <akim@epita.fr>
524 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
526 * src/LR0.c: Likewise.
527 (allocate_itemsets): Use arrays instead of pointers to clarify.
529 2001-11-19 Akim Demaille <akim@epita.fr>
531 * src/getargs.c (statistics_flag): Replace with...
533 (longopts): Accept --trace instead of --statistics.
534 * src/getargs.h: Adjust.
535 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
536 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
538 2001-11-19 Akim Demaille <akim@epita.fr>
540 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
541 pointers to clarify the code.
542 (save_reductions, save_shifts): Factor common parts of alternatives.
544 2001-11-19 Akim Demaille <akim@epita.fr>
546 * src/LR0.c (new_state, get_state): Complete TRACE code.
547 * src/closure.c: Include `reader.h' to get `tags', needed by the
549 Rename the conditional DEBUG as TRACE.
550 Output consistently TRACEs to stderr, not stdout.
551 * src/derives.c: Likewise.
552 * src/reduce.c: (inaccessable_symbols): Using if is better style
554 Use `#if TRACE' instead of `#if 0' for tracing code.
556 2001-11-19 Akim Demaille <akim@epita.fr>
558 * src/system.h (LIST_FREE, shortcpy): New.
559 * src/LR0.c: Use them.
560 * src/output.c (free_itemsets, free_reductions, free_shifts):
561 Remove, replaced by LIST_FREE.
563 2001-11-19 Akim Demaille <akim@epita.fr>
565 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
566 (REDUCTIONS_ALLOC): New.
567 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
570 2001-11-19 Akim Demaille <akim@epita.fr>
572 * src/LR0.c (new_state): Complete trace code.
573 * src/nullable.c (set_nullable): Don't translate traces.
575 2001-11-19 Akim Demaille <akim@epita.fr>
577 * src/print_graph.c (print_core): Better locality of variables.
578 * src/print.c (print_core): Likewise.
580 2001-11-19 Akim Demaille <akim@epita.fr>
582 * src/vcg.c: You do the output, so you are responsible of the
583 handling of VCG syntax, in particular: use quotearg.
584 * src/print_graph.c: Don't.
585 (print_actions): Don't output the actions as part of the nodes,
586 since that's the job of the edges.
587 (print_state): Don't output by hand: fill the node description,
588 and ask for its output.
590 2001-11-19 Akim Demaille <akim@epita.fr>
592 * src/bison.simple (yyparse): When verbosely reporting an error,
593 no longer put additional quotes around token names.
594 * tests/calc.at: Adjust.
596 2001-11-19 Akim Demaille <akim@epita.fr>
598 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
599 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
600 * src/output.c: Adjust.
602 2001-11-19 Akim Demaille <akim@epita.fr>
604 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
606 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
608 2001-11-19 Akim Demaille <akim@epita.fr>
610 * src/gram.h (rule_t): New.
612 (rrhs, rlhs): Remove, part of state_t.
613 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
614 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
615 * src/reader.c, src/reduce.c: Adjust.
617 2001-11-19 Akim Demaille <akim@epita.fr>
619 * src/reader.c (symbols_output): New, extracted from...
623 2001-11-19 Akim Demaille <akim@epita.fr>
625 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
626 (maxrhs): this new function.
628 2001-11-19 Akim Demaille <akim@epita.fr>
630 * src/lalr.c (F): New macro to access the variable F.
633 2001-11-19 Akim Demaille <akim@epita.fr>
635 * src/lalr.h (LA): New macro to access the variable LA.
636 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
637 * src/lalr.c: Adjust.
639 2001-11-19 Akim Demaille <akim@epita.fr>
641 * src/lalr.c (initialize_LA): Only initialize LA. Let...
642 (set_state_table): handle the `lookaheads' members.
644 2001-11-19 Akim Demaille <akim@epita.fr>
646 * src/lalr.h (lookaheads): Removed array, whose contents is now
648 (state_t): this structure.
649 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
652 2001-11-19 Akim Demaille <akim@epita.fr>
654 * src/lalr.h (consistent): Removed array, whose contents is now
656 (state_t): this structure.
657 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
660 2001-11-19 Akim Demaille <akim@epita.fr>
662 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
663 contents are now members of...
664 (state_t): this structure.
665 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
668 2001-11-19 Akim Demaille <akim@epita.fr>
670 * src/lalr.h (state_t): New.
671 (state_table): Be a state_t * instead of a core **.
672 (accessing_symbol): Remove, part of state_t.
673 * src/lalr.c: Adjust.
674 (set_accessing_symbol): Merge into...
675 (set_state_table): this.
676 * src/print_graph.c, src/conflicts.c: Adjust.
678 2001-11-14 Akim Demaille <akim@epita.fr>
682 2001-11-14 Akim Demaille <akim@epita.fr>
684 * tests/calc.at, tests/output.at, tests/regression.at,
685 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
686 now the tests are run in private dirs, therefore AC_CLEANUP and
687 family can be simplified to 0-ary.
688 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
689 use abs. path to find config.h.
691 2001-11-14 Akim Demaille <akim@epita.fr>
693 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
694 stderr, there can be way too much random noise.
695 Instead pass -Werror to GCC and rely on the exit status.
696 Reported by Wolfram Wagner.
698 2001-11-14 Akim Demaille <akim@epita.fr>
700 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
701 defined only if yyoverflow is defined, to avoid `warning: unused
703 Reported by The Test Suite.
705 2001-11-14 Akim Demaille <akim@epita.fr>
707 * src/print.c: Include reduce.h.
708 Reported by Hans Aberg.
710 2001-11-14 Akim Demaille <akim@epita.fr>
712 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
713 Revert a previous patch: these are really const.
714 * src/conflicts.c (conflict_report): Additional useless pair of
715 braces to pacify GCC's warnings for `if () if () {} else {}'.
716 * src/lex.c (parse_percent_token): Replace equal_offset with
719 Be sure to strdup `arg' when used, since there is no reason for
720 token_buffer not to change.
722 2001-11-14 Akim Demaille <akim@epita.fr>
724 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
726 * src/main.c (main): Use them.
727 Suggested by Hans Aberg.
729 2001-11-12 Akim Demaille <akim@epita.fr>
733 * src/system.h (ngettext): Now that we use ngettext, be sure to
734 provide a default definition when NLS are not used that takes care
737 2001-11-12 Akim Demaille <akim@epita.fr>
739 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
740 Use @kbd to denote user input.
741 (Language and Grammar): ANSIfy the example.
742 Adjust its layout for info/notinfo.
743 (Location Tracking Calc): Output error messages to stderr.
744 Output locations in a more GNUtically correct way.
745 Fix a couple of Englishos.
746 Adjust @group/@end group pairs.
748 2001-11-12 Akim Demaille <akim@epita.fr>
750 %expext was not functioning at all.
752 * src/conflicts.c (expected_conflicts): Set to -1.
753 (conflict_report): Use ngettext.
754 (conflicts_print): Check %expect and make its violation an error.
755 * doc/bison.texinfo (Expect Decl): Adjust.
756 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
757 * tests/regression.at (%expect not enough, %expect right)
758 (%expect too much): New.
760 2001-11-12 Akim Demaille <akim@epita.fr>
762 * tests/regression.at (Conflicts): Rename as...
763 (Unresolved SR Conflicts): this.
764 (Solved SR Conflicts): New.
766 2001-11-12 Akim Demaille <akim@epita.fr>
768 * src/reduce.c (print_results): Rename as...
769 (reduce_output): This.
770 Output to OUT, passed as argument, instead of output_obstack.
771 (dump_grammar): Likewise.
774 (reduce_grammar): No longer call reduce_output, since...
775 * src/print.c (print_results): do it.
776 * src/main.c (main): Call reduce_free;
778 2001-11-12 Akim Demaille <akim@epita.fr>
780 * src/conflicts.c (print_reductions): Accept OUT as argument.
781 Output to it, not to output_obstack.
782 * src/print.c (print_actions): Adjust.
784 2001-11-12 Akim Demaille <akim@epita.fr>
786 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
787 the result instead of using...
788 (src_total, rrc_total, src_count, rrc_count): Remove.
789 (any_conflicts): Remove.
790 (print_conflicts): Split into...
791 (conflicts_print, conflicts_output): New.
792 * src/conflicts.h: Adjust.
793 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
794 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
795 * tests/regression.at (Conflicts): New.
796 Reported by Tom Lane.
798 2001-11-12 Akim Demaille <akim@epita.fr>
800 * tests/regression.at (Invalid input): Remove, duplicate with
801 ``Invalid input: 1''.
803 2001-11-12 Akim Demaille <akim@epita.fr>
805 * tests/torture.at (AT_DATA_STACK_TORTURE)
806 (Exploding the Stack Size with Alloca)
807 (Exploding the Stack Size with Malloc): New.
809 2001-11-12 Akim Demaille <akim@epita.fr>
811 * src/bison.simple (YYSTACK_REALLOC): New.
812 (yyparse) [!yyoverflow]: Use it and free the old stack.
813 Reported by Per Allansson.
815 2001-11-05 Akim Demaille <akim@epita.fr>
818 * src/lex.c (parse_percent_token): s/quotearg/quote/.
820 2001-11-05 Akim Demaille <akim@epita.fr>
822 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
825 2001-11-05 Akim Demaille <akim@epita.fr>
827 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
828 with yyltype/YYLTYPE. This allows inclusion of the generated
829 header within the parser if the compiler, such as GGC, accepts
830 multiple equivalent #defines.
832 2001-11-04 Akim Demaille <akim@epita.fr>
834 * src/getargs.c (longopts): Support `--output'. getopt is now
835 able to understand that `--out' is OK: the two racing long options
838 * src/lex.h (tok_setopt): Remove, replaced with...
839 (tok_intopt, tok_stropt): these new guys.
840 * src/lex.c (getopt.h): Not needed.
841 (token_buffer, unlexed_token_buffer): Not const.
842 (percent_table): Promote `-' over `_' in directive names.
843 Active `%name-prefix', `file-prefix', and `output'.
844 (parse_percent_token): Accept possible arguments to directives.
845 Promote `-' over `_' in directive names.
846 * doc/bison.texinfo (Decl Summary): Split the list into
847 `directives for grammars' and `directives for bison'.
849 Add description of `%name-prefix', `file-prefix', and `output'.
850 Promote `-' over `_' in directive names.
851 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
852 Simplify the description of `--name-prefix'.
853 Promote `-' over `_' in directive names.
854 Promote `--output' over `--output-file'.
855 Fix the description of `--defines'.
856 * tests/output.at: Exercise %file-prefix and %output.
858 2001-11-02 Akim Demaille <akim@epita.fr>
860 * doc/refcard.tex: Update.
862 2001-11-02 Akim Demaille <akim@epita.fr>
864 * src/symtab.h (SUNDEF): New.
865 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
866 stand for `uninitialized', instead of 0.
867 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
868 * src/lex.c (lex): Adjust.
870 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
872 Let yylex return it instead of a plain 0.
873 Reported by Dick Streefland.
875 2001-11-02 Akim Demaille <akim@epita.fr>
877 * tests/regression.at (Mixing %token styles): New test.
879 2001-11-02 Akim Demaille <akim@epita.fr>
881 * src/reader.c (parse_thong_decl): Formatting changes.
882 (token_translations_init): New, extracted from...
886 2001-11-01 Akim Demaille <akim@epita.fr>
888 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
889 Check that `9foo.y' produces correct cpp guards.
890 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
894 2001-11-01 Akim Demaille <akim@epita.fr>
896 * tests/regression.at (Invalid input: 2): New.
897 * src/lex.c (unlexed_token_buffer): New.
898 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
902 2001-11-01 Akim Demaille <akim@epita.fr>
904 * configure.in: Bump to 1.30a.
905 Adjust to newer Autotest.
907 2001-10-26 Akim Demaille <akim@epita.fr>
911 2001-10-26 Paul Eggert <eggert@twinsun.com>
913 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
914 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
915 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
916 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
917 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
918 Sync with fileutils 4.1.1.
920 2001-10-18 Akim Demaille <akim@epita.fr>
923 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
924 avoid spurious failures.
926 2001-10-18 Akim Demaille <akim@epita.fr>
930 2001-10-18 Akim Demaille <akim@epita.fr>
932 * tests/atlocal.in (GCC): Add.
933 * tests/calc.at: s/m4_match/m4_bmatch/.
934 s/m4_patsubst/m4_bpatsubst/.
935 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
936 * configure.in: AC_SUBST(GCC).
938 2001-10-10 Akim Demaille <akim@epita.fr>
941 * configure.in: M4 is no longer needed, but autom4te is.
942 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
945 2001-10-10 Akim Demaille <akim@epita.fr>
949 2001-10-10 Akim Demaille <akim@epita.fr>
952 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
953 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
954 Reported by Airy Andre.
956 2001-10-10 Akim Demaille <akim@epita.fr>
958 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
959 * config/mkinstalldirs, lib/ansi2knr.c: Update.
961 2001-10-02 Akim Demaille <akim@epita.fr>
965 2001-10-02 Akim Demaille <akim@epita.fr>
969 2001-10-02 Akim Demaille <akim@epita.fr>
971 * tests/regression.at (Invalid CPP headers): New.
972 From Alexander Belopolsky.
973 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
975 2001-10-02 Akim Demaille <akim@epita.fr>
977 * tests/regression.at (Invalid input): New.
978 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
981 2001-10-02 Akim Demaille <akim@epita.fr>
983 * tests/calc.at: Now that --debug works, the tests must be adjusted.
985 2001-10-02 Akim Demaille <akim@epita.fr>
987 * src/output.c (output_parser): Assert `skeleton'.
988 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
992 2001-10-01 Marc Autret <autret_m@epita.fr>
994 * src/lex.h: Echo modifications.
995 * src/lex.c (unlex): Parameter is now token_t.
998 2001-10-01 Marc Autret <autret_m@epita.fr>
1000 * src/main.c: Include lex.h.
1003 2001-09-29 Akim Demaille <akim@epita.fr>
1005 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1007 2001-09-28 Akim Demaille <akim@epita.fr>
1009 * tests/testsuite.at: Update to newer Autotest.
1010 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1012 2001-09-27 Akim Demaille <akim@epita.fr>
1014 Position independent wrapper.
1016 * tests/bison: Remove.
1017 * tests/bison.in: New.
1018 * configure.in: Adjust.
1020 2001-09-27 Paul Eggert <eggert@twinsun.com>
1022 Port quotearg fixes from tar 1.13.24.
1024 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1026 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1027 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1029 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1030 * m4/mbrtowc.m4: New file.
1031 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1032 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1034 2001-09-27 Akim Demaille <akim@epita.fr>
1038 2001-09-27 Akim Demaille <akim@epita.fr>
1042 2001-09-25 Akim Demaille <akim@epita.fr>
1044 * src/system.h: Include `xalloc.h'.
1045 Remove it from the C files.
1046 * src/files.c (output_files): Free the obstacks.
1047 * src/lex.c (init_lex): Rename as...
1050 * src/main.c (main): Use it.
1052 2001-09-24 Marc Autret <autret_m@epita.fr>
1054 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1055 to output informations in fout (FILE*).
1056 (open_graph, close_graph): Likewise.
1057 (output_graph, output_edge, output_node): Likewise.
1058 * src/vcg.h: Update function prototypes.
1059 * src/print_graph.c (print_graph): Open output graph file.
1060 (print_actions): Adjust.
1061 * src/files.h: Remove extern declaration.
1062 * src/files.c: Remove graph_obstack declaration.
1063 (open_files): Remove graph_obstack initialization.
1064 (output_files): Remove graph_obstack saving.
1066 2001-09-24 Marc Autret <autret_m@epita.fr>
1068 * src/files.c (compute_output_file_names): Fix.
1070 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1072 * src/reader.c (reader): Remove call to free_symtab ().
1073 * src/main.c (main): Call it here.
1075 * src/conflicts.c (initialize_conflicts): Rename as...
1076 (solve_conflicts): this.
1077 * src/print.c (print_core, print_actions, print_state)
1078 (print_grammar): Dump to a file instead a `output_obstack'.
1079 (print_results): Dump `output_obstack', and then proceed with the
1081 * src/files.c (compute_output_file_names, close_files): New.
1082 (output_files): Adjust.
1083 * src/main.c (main): Adjust.
1085 2001-09-23 Marc Autret <autret_m@epita.fr>
1087 * src/files.c (compute_header_macro): Computes header macro name
1088 from spec_defines_file when given.
1090 2001-09-23 Marc Autret <autret_m@epita.fr>
1092 * src/files.c (output_files): Add default extensions.
1094 2001-09-22 Akim Demaille <akim@epita.fr>
1096 * src/conflicts.c (finalize_conflicts): Rename as...
1097 (free_conflicts): this.
1099 2001-09-22 Akim Demaille <akim@epita.fr>
1101 * src/gram.c (gram_free): Rename back as...
1103 (output_token_translations): Free `token_translations'.
1104 * src/symtab.c (free_symtab): Free the tag field.
1106 2001-09-22 Akim Demaille <akim@epita.fr>
1108 Remove `translations' as it is always set to true.
1110 * src/gram.h: Adjust.
1111 * src/reader.c (packsymbols, parse_token_decl): Adjust
1112 * src/print.c (print_grammar): Adjust.
1113 * src/output.c (output_token_translations): Adjust.
1114 * src/lex.c (lex): Adjust.
1115 * src/gram.c: Be sure the set pointers to NULL.
1116 (dummy): Rename as...
1119 2001-09-22 Akim Demaille <akim@epita.fr>
1121 * configure.in: Invoke AM_LIB_DMALLOC.
1122 * src/system.h: Use dmalloc.
1123 * src/LR0.c: Be sure to have pointers initialized to NULL.
1124 (allocate_itemsets): Allocate kernel_items only if needed.
1126 2001-09-22 Akim Demaille <akim@epita.fr>
1128 * configure.in: Bump to 1.29b.
1129 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1130 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1131 need xmalloc.c in calc.y.
1134 2001-09-21 Akim Demaille <akim@epita.fr>
1137 * Makefile.maint, config/config.guess, config/config.sub,
1138 * config/missing: Update from masters.
1139 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1141 * configure.in (ALL_LINGUAS): Add `tr'.
1143 2001-09-21 Akim Demaille <akim@epita.fr>
1145 * tests/Makefile.am (package.m4): Move to...
1146 ($(srcdir)/$(TESTSUITE)): here.
1148 2001-09-20 Akim Demaille <akim@epita.fr>
1150 * src/complain.c: No longer try to be standalone: use system.h.
1151 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1152 * src/complain.h: Likewise.
1153 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1154 Remove the unused variable `n'.
1155 From Albert Chin-A-Young.
1157 2001-09-18 Marc Autret <autret_m@epita.fr>
1159 * doc/bison.1: Update.
1160 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1162 (Option Cross Key): Update.
1165 2001-09-18 Marc Autret <autret_m@epita.fr>
1167 * tests/regression.at: New test (comment in %union).
1169 2001-09-18 Marc Autret <autret_m@epita.fr>
1171 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1173 Reported by Keith Browne.
1175 2001-09-18 Marc Autret <autret_m@epita.fr>
1177 * tests/output.at: Add tests for --defines and --graph.
1179 2001-09-18 Marc Autret <autret_m@epita.fr>
1181 * tests/output.at: Removes tests of %{header,src}_extension features.
1183 2001-09-18 Akim Demaille <akim@epita.fr>
1185 * tests/Makefile.am (package.m4): New.
1186 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1187 (_AT_CHECK_CALC_ERROR): Likewise.
1188 Factor the `, ' part of verbose error messages.
1190 2001-09-18 Marc Autret <autret_m@epita.fr>
1192 * src/getargs.c (longopts): Declare --defines and --graph as options
1193 with optional arguments.
1194 * src/files.h: Add extern declarations.
1195 * src/files.c (spec_graph_file, spec_defines_file): New.
1196 (output_files): Update.
1197 Remove CPP-outed code.
1199 2001-09-18 Marc Autret <autret_m@epita.fr>
1201 Turn off %{source,header}_extension feature.
1203 * src/files.c (compute_exts_from_gf): Update.
1204 (compute_exts_from_src): Update.
1205 (output_files): CPP-out useless code.
1206 * src/files.h: Remove {header,source}_extension extern declarations.
1207 * src/reader.c (parse_dquoted_param): CPP-out.
1208 (parse_header_extension_decl): Remove.
1209 (parse_source_extension_decl): Remove.
1210 (read_declarations): Remove cases tok_{hdrext,srcext}.
1211 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1212 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1214 2001-09-10 Akim Demaille <akim@epita.fr>
1216 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1217 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1218 (AT_CHECK_OUTPUT): this.
1219 Merely check ls' exit status, its output is useless.
1221 2001-09-10 Akim Demaille <akim@epita.fr>
1223 * tests/calc.at: Use m4_match.
1224 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1226 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1228 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1230 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1232 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1233 * src/lex.h: Adjust prototype.
1234 (token_t): Add `tok_undef'.
1235 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1236 (parse_percent_token): Now returns token_t.
1237 Add default statement in switch.
1238 (lex): Separate `c' as an input variable, from the token_t result
1240 (unlexed): Is a token_t.
1242 2001-09-10 Akim Demaille <akim@epita.fr>
1244 * configure.in: Bump to 1.29a.
1246 2001-09-07 Akim Demaille <akim@epita.fr>
1250 2001-08-30 Akim Demaille <akim@epita.fr>
1252 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1253 * m4/atconfig.m4: Remove.
1254 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1256 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1257 m4_if, m4_patsubst, and m4_regexp.
1258 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1259 `input' file instead of echo.
1261 2001-08-29 Akim Demaille <akim@epita.fr>
1265 2001-08-29 Akim Demaille <akim@epita.fr>
1269 2001-08-29 Paul Eggert <eggert@twinsun.com>
1271 * src/bison.simple (yyparse): Don't take the address of an
1272 item before the start of an array, as that doesn't conform to
1275 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1277 * doc/bison.texinfo (Location Tracking Calc): New node.
1279 2001-08-29 Paul Eggert <eggert@twinsun.com>
1281 * src/output.c (output): Do not define const, as this now
1282 causes more problems than it cures.
1284 2001-08-29 Akim Demaille <akim@epita.fr>
1286 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1288 Be sure to tag the `detailmenu'.
1290 2001-08-29 Akim Demaille <akim@epita.fr>
1292 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1293 download in a tmp dir.
1295 2001-08-28 Marc Autret <autret_m@epita.fr>
1297 * config/depcomp: New file.
1299 2001-08-28 Marc Autret <autret_m@epita.fr>
1301 * doc/bison.1 (mandoc): Adjust.
1302 From Juan Manuel Guerrero.
1304 2001-08-28 Marc Autret <autret_m@epita.fr>
1306 * src/print_graph.c (print_state): Fix.
1308 2001-08-27 Marc Autret <autret_m@epita.fr>
1310 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1312 Echo modifications to the functions prototypes.
1313 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1315 2001-08-27 Marc Autret <autret_m@epita.fr>
1317 * src/vcg.c: Include `xalloc.h'.
1318 (add_colorentry): New.
1319 (add_classname): New.
1320 (add_infoname): New.
1321 * src/vcg.h: Add new prototypes.
1323 2001-08-27 Akim Demaille <akim@epita.fr>
1325 * Makefile.maint: Sync. again with CVS Autoconf.
1327 2001-08-27 Akim Demaille <akim@epita.fr>
1329 * Makefile.maint: Formatting changes.
1330 (po-update, cvs-update, update): New targets.
1333 2001-08-27 Akim Demaille <akim@epita.fr>
1335 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1336 * Makefile.maint: Sync. with CVS Autoconf.
1338 2001-08-27 Marc Autret <autret_m@epita.fr>
1340 * src/vcg.h (struct infoname_s): New.
1341 (struct colorentry_s): New.
1342 (graph_s): New fields {vertical,horizontal}_order in structure.
1343 Add `infoname' field.
1344 Add `colorentry' field;
1345 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1346 (G_HORIZONTAL_ORDER): New.
1348 (G_COLORENTRY): New.
1349 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1350 Add output of `infoname'.
1351 Add output of `colorentry'.
1353 2001-08-27 Marc Autret <autret_m@epita.fr>
1355 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1356 This one shadowed a global parameter.
1358 2001-08-24 Marc Autret <autret_m@epita.fr>
1360 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1361 instead of `unsigned'.
1362 (print_state): Do not call obstack_object_size () in obstack_grow ()
1363 to avoid macro variables shadowing.
1365 2001-08-23 Marc Autret <autret_m@epita.fr>
1367 * src/lex.c (percent_table): Typo: s/naem/name/.
1369 Normalize new options declarations.
1371 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1373 * tests/suite.at: Exercise %header_extension and %source_extension.
1375 2001-08-16 Marc Autret <autret_m@epita.fr>
1377 * src/reader.c (parse_dquoted_param): New.
1378 (parse_header_extension_decl): Use it.
1379 (parse_source_extension_decl): Likewise.
1381 2001-08-16 Marc Autret <autret_m@epita.fr>
1383 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1384 (get_xxxx_str): Use assert () instead of complain ().
1385 Remove return invokations in default cases.
1386 (get_decision_str): Modify default behaviour. Remove second argument.
1387 Echo modifications on calls.
1388 (output_graph): Fix.
1390 2001-08-16 Marc Autret <autret_m@epita.fr>
1392 * src/getargs.c (usage): Update with ``-g, --graph''.
1394 2001-08-16 Marc Autret <autret_m@epita.fr>
1396 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1397 (Option Cross Key): Likewise.
1398 * doc/bison.1: Update.
1400 2001-08-15 Akim Demaille <akim@epita.fr>
1404 2001-08-15 Marc Autret <autret_m@epita.fr>
1406 * src/reader.c (readgram): Indent output macro YYSTYPE.
1407 (packsymbols): Likewise.
1408 (output_token_defines): Likewise.
1409 * src/files.c: Standardize.
1410 (compute_header_macro): New.
1411 (defines_obstack_save): New. Use compute_header_macro.
1412 (output_files): Update. Use defines_obstack_save.
1414 2001-08-15 Akim Demaille <akim@epita.fr>
1416 * doc/bison.texinfo (Table of Symbols): Document
1419 2001-08-15 Akim Demaille <akim@epita.fr>
1421 * missing: Update from CVS Automake.
1422 * config/config.guess, config/config.sub, config/texinfo.tex:
1423 Update from gnu.org.
1425 2001-08-15 Akim Demaille <akim@epita.fr>
1427 * Makefile.maint: Sync with CVS Autoconf.
1429 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1431 * doc/bison.texinfo: Include GNU Free Documentation License from
1433 * doc/fdl.texi: Add to package.
1435 2001-08-14 Marc Autret <autret_m@epita.fr>
1437 Turn on %{source,header}_extension features.
1439 * src/lex.c (percent_table): Un-CPP out header_extension and
1441 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1442 (compute_exts_from_src): Remove conditions. It restores priorities
1445 2001-08-14 Marc Autret <autret_m@epita.fr>
1447 * src/files.c (compute_base_names): Add extensions computing when
1448 `--file-prefix' used.
1449 Standardize function calls.
1451 2001-08-13 Marc Autret <autret_m@epita.fr>
1453 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1454 defining it (defined but null disables alloca).
1456 2001-08-13 Marc Autret <autret_m@epita.fr>
1458 * src/bison.simple (_yy_memcpy): CPP reformat.
1460 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1462 * tests/atconfig.in (CPPFLAGS): Fix.
1464 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1466 * doc/bison.texinfo: Include GNU General Public License from
1468 * doc/gpl.texi: Add to package.
1470 2001-08-10 Marc Autret <autret_m@epita.fr>
1472 * src/print_graph.h: Fix.
1473 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1475 2001-08-10 Akim Demaille <akim@epita.fr>
1477 * src/system.h: Provide default declarations for stpcpy, strndup,
1480 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1482 * doc/bison.texinfo (Locations): Update @$ stuff.
1484 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1486 * src/bison.simple (YYLLOC_DEFAULT): Update.
1489 2001-08-08 Marc Autret <autret_m@epita.fr>
1491 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1492 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1493 Reported by Fabrice Bauzac.
1495 2001-08-08 Marc Autret <autret_m@epita.fr>
1497 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1498 * src/vcg.c (output_node): Fix.
1499 * src/vcg.h: Cleanup.
1500 * src/print_graph.c: Add comments.
1501 (node_output_size): New global variable. Simplify the formatting of
1502 the VCG graph output.
1503 (print_actions): Unused code is now used. It notifies the final state
1504 and no action states in the VCG graph. It also give the reduce actions.
1505 The `shift and goto' edges are red and the `go to state' edges are
1507 Get the current node name and node_obstack by argument.
1508 (node_obstack): New variable.
1509 (print_state): Manage node_obstack.
1510 (print_core): Use node_obstack given by argument.
1511 A node is not only computed here but in print_actions also.
1512 (print_graph): CPP out useless code instead of commenting it.
1514 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1516 * tests/atconfig.in (CPPFLAGS): Fix.
1518 2001-08-07 Akim Demaille <akim@epita.fr>
1520 * src/print_graph.c (quote): New.
1521 (print_core): Use it.
1523 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1525 * src/vcg.c (complain.h): Include it.
1526 Unepitaize `return' invocations.
1527 [NDEBUG] (main): Remove.
1528 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1529 * src/files.c (open_files): Initialize graph_obstack.
1530 * src/print_graph.c (print_actions): CPP out useless code.
1531 (print_core): Don't output the last `\n' in labels.
1533 * src/files.c (output_files): Output the VCG file.
1534 * src/main.c (main): Invoke print_graph ();
1536 2001-08-06 Marc Autret <autret_m@epita.fr>
1538 Automaton VCG graph output.
1539 Using option ``-g'' or long option ``--graph'', you can generate
1540 a gram_filename.vcg file containing a VCG description of the LALR (1)
1541 automaton of your grammar.
1543 * src/main.c: Call to print_graph() function.
1544 * src/getargs.h: Update.
1545 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1546 (graph_flag): New flag.
1548 (getargs): Add case `g'.
1549 * src/files.c (graph_obstack): New obstack struct.
1550 (open_files): Initialize new obstack.
1551 (output_files): Saves graph_obstack if required.
1552 * src/files.h (graph_obstack): New extern declaration.
1553 * src/Makefile.am: Add new source files.
1555 2001-08-06 Marc Autret <autret_m@epita.fr>
1557 * src/print_graph.c, src/print_graph.h (graph): New.
1558 * src/vcg.h: New file.
1559 * src/vcg.c: New file, VCG graph handling.
1561 2001-08-06 Marc Autret <autret_m@epita.fr>
1563 Add of %source_extension and %header_extension which specify
1564 the source or/and the header output file extension.
1566 * src/files.c (compute_base_names): Remove initialisation of
1567 src_extension and header_extension.
1568 (compute_exts_from_gf): Update.
1569 (compute_exts_from_src): Update.
1570 (output_files): Update.
1571 * src/reader.c (parse_header_extension_decl): New.
1572 (parse_source_extension_decl): New.
1573 (read_declarations): New case statements for the new tokens.
1574 * src/lex.c (percent_table): Add entries for %source_extension
1575 and %header_extension.
1576 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1578 2001-08-06 Marc Autret <autret_m@epita.fr>
1580 * configure.in: Bump to 1.28c.
1581 * doc/bison.texinfo: Texinfo thingies.
1583 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1585 * tests/atconfig.in (CPPFLAGS): Add.
1586 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1588 2001-08-03 Akim Demaille <akim@epita.fr>
1592 2001-08-03 Akim Demaille <akim@epita.fr>
1594 * tests/Makefile.am (check-local): Ship testsuite.
1595 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1598 2001-08-03 Akim Demaille <akim@epita.fr>
1600 * configure.in: Try using -Wformat when compiling.
1602 2001-08-03 Akim Demaille <akim@epita.fr>
1604 * configure.in: Bump to 1.28b.
1606 2001-08-03 Akim Demaille <akim@epita.fr>
1608 * src/complain.c: Adjust strerror_r portability issues.
1610 2001-08-03 Akim Demaille <akim@epita.fr>
1614 2001-08-03 Akim Demaille <akim@epita.fr>
1616 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1617 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1618 * src/getargs.c: Include complain.h.
1619 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1620 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1622 2001-08-03 Akim Demaille <akim@epita.fr>
1624 * src/reader.c (readgram): Display hidden chars in error messages.
1626 2001-08-03 Akim Demaille <akim@epita.fr>
1628 Update to gettext 0.10.39.
1630 2001-08-03 Akim Demaille <akim@epita.fr>
1632 * lib/strspn.c: New.
1634 2001-08-01 Marc Autret <autret_m@epita.fr>
1636 * doc/bison.texinfo: Update.
1637 * doc/bison.1 (mandoc): Update.
1638 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1639 * src/files.c: Support output files extensions computing.
1640 (src_extension): New static variable.
1641 (header_extension): New static variable.
1643 (get_extension_index): New function, gets the index of an extension
1644 filename in a string.
1645 (compute_exts_from_gf): New function, computes extensions from the
1646 grammar file extension.
1647 (compute_exts_from_src): New functions, computes extensions from the
1648 C source file extension, file given by ``-o'' option.
1649 (compute_base_names): Update.
1650 (output_files): Update.
1652 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1654 * doc/bison.texi: Document @$.
1655 (Locations): New section.
1657 2001-07-18 Akim Demaille <akim@epita.fr>
1659 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1660 * config/prev-version.txt, config/move-if-change: New.
1661 * Makefile.am: Adjust.
1663 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1665 * src/bison.simple (yyparse): Suppress warning `comparaison
1666 between signed and unsigned'.
1668 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1670 * src/getargs.h (raw_flag): Remove.
1671 * src/getargs.c: Die on `-r'/`--raw'.
1672 * src/lex.c (parse_percent_token): Die on `%raw'.
1673 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1674 * tests/calc.at: Suppress test with option `--raw'.
1676 2001-07-14 Akim Demaille <akim@epita.fr>
1679 * configure.in: Require Autoconf 2.50.
1680 Update to gettext 0.10.38.
1682 2001-03-16 Akim Demaille <akim@epita.fr>
1684 * doc/bison.texinfo: ANSIfy the examples.
1686 2001-03-16 Akim Demaille <akim@epita.fr>
1688 * getargs.c (skeleton): New variable.
1689 (longopts): --skeleton is a new option.
1690 (shortopts, getargs): -S is a new option.
1691 * getargs.h: Declare skeleton.
1692 * output.c (output_parser): Use it.
1694 2001-03-16 Akim Demaille <akim@epita.fr>
1696 * m4/strerror_r.m4: New.
1697 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1698 * lib/error.h, lib/error.c: Update.
1700 2001-03-16 Akim Demaille <akim@epita.fr>
1702 * src/getargs.c (longopts): Clean up.
1704 2001-02-21 Akim Demaille <akim@epita.fr>
1706 * src/reader.c (gensym): `gensym_count' is your own.
1707 Use a static buf to create the symbol name, as token_buffer is no
1710 2001-02-08 Akim Demaille <akim@epita.fr>
1712 * src/conflicts.c (conflict_report): Be sure not to append to res
1713 between two calls, which could happen if both first sprintf were
1714 skipped, but not the first cp += strlen.
1716 2001-02-08 Akim Demaille <akim@epita.fr>
1718 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1719 New, from fileutils 4.0.37.
1720 * configure.in: Require Autoconf 2.49c. I took some time before
1721 making this decision. This is the only way out for portability
1722 issues in Bison, it would mean way too much duplicate effort to
1723 import in Bison features implemented in 2.49c since 2.13.
1724 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1726 2001-02-02 Akim Demaille <akim@epita.fr>
1728 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1729 * lib/xalloc.h, lib/xmalloc.c: Update.
1731 2001-01-19 Akim Demaille <akim@epita.fr>
1733 Get rid of the ad hoc handling of token_buffer in the scanner: use
1736 * src/lex.c (token_obstack): New.
1737 (init_lex): Initialize it. No longer call...
1738 (grow_token_buffer): this. Remove it.
1739 Adjust all the places which used it to use the obstack.
1741 2001-01-19 Akim Demaille <akim@epita.fr>
1743 * src/lex.h: Rename all the tokens:
1744 s/\bENDFILE\b/tok_eof/g;
1745 s/\bIDENTIFIER\b/tok_identifier/g;
1747 Let them be enums, not #define, to ease debugging.
1748 Adjust all the code.
1750 2001-01-18 Akim Demaille <akim@epita.fr>
1752 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1753 * src/lex.c (maxtoken, grow_token_buffer): Static.
1755 2001-01-18 Akim Demaille <akim@epita.fr>
1757 Since we now use obstacks, more % directives can be enabled.
1759 * src/lex.c (percent_table): Also accept `%yacc',
1760 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1762 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1763 instead of returning a token.
1764 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1765 * src/reader.c (read_declarations): Adjust.
1766 * src/files.c (open_files): Don't call `compute_base_names', don't
1767 compute `attrsfile' since they depend upon data which might be
1768 *in* the input file now.
1769 (output_files): Do it here.
1770 * src/output.c (output_headers): Document the fact that this patch
1771 introduces a guaranteed SEGV for semantic parsers.
1772 * doc/bison.texinfo: Document them.
1773 * tests/suite.at: Exercise these %options.
1775 2000-12-20 Akim Demaille <akim@epita.fr>
1777 Also handle the output file (--verbose) with obstacks.
1779 * files.c (foutput): Remove.
1780 (output_obstack): New.
1781 Adjust all dependencies.
1782 * src/conflicts.c: Return a string.
1783 * src/system.h (obstack_grow_string): Rename as...
1784 (obstack_sgrow): this. Be ready to work with non literals.
1785 (obstack_fgrow4): New.
1787 2000-12-20 Akim Demaille <akim@epita.fr>
1789 * src/files.c (open_files): Fix the computation of short_base_name
1790 in the case of `-o foo.tab.c'.
1792 2000-12-20 Akim Demaille <akim@epita.fr>
1794 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1795 (copy_dollar): Now that everything uses obstacks, get rid of the
1798 2000-12-20 Akim Demaille <akim@epita.fr>
1800 * src/files.c (open_files): Actually the `.output' file is based
1801 on the short_base_name, not base_name.
1802 * tests/suite.at (Checking output file names): Adjust.
1804 2000-12-20 Akim Demaille <akim@epita.fr>
1806 * src/bison.s1: Remove, we now use directly...
1807 * src/bison.simple: this.
1808 * src/Makefile.am: Use pkgdata instead of data.
1810 2000-12-20 Akim Demaille <akim@epita.fr>
1812 * src/files.c (guard_obstack): New.
1813 (open_files): Initialize it.
1814 (output_files): Dump it...
1815 * src/files.h: Export it.
1816 * src/reader.c (copy_guard): Use it.
1818 2000-12-19 Akim Demaille <akim@epita.fr>
1820 * src/files.c (outfile, defsfile, actfile): Removed as global
1822 (open_files): Don't compute them.
1823 (output_files): Adjust.
1824 (base_name, short_base_name): Be global.
1825 Adjust dependencies.
1827 2000-12-19 Akim Demaille <akim@epita.fr>
1829 * src/files.c (strsuffix): New.
1830 (stringappend): Be just like strcat but allocate.
1831 (base_names): Eve out from open_files.
1832 Try to simplify the rather hairy computation of base_name and
1834 (open_files): Use it.
1835 * tests/suite.at (Checking output file names): New test.
1837 2000-12-19 Akim Demaille <akim@epita.fr>
1839 * src/system.h (obstack_grow_literal_string): Rename as...
1840 (obstack_grow_string): this.
1841 * src/output.c (output_parser): Recognize `%% actions' instead of
1843 * src/bison.s1: s/$/%% actions/.
1844 * src/bison.hairy: Likewise.
1846 2000-12-19 Akim Demaille <akim@epita.fr>
1848 * src/output.c (output_parser): Compute the `#line' lines when
1850 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1851 Suggested by Hans Aberg.
1853 2000-12-19 Akim Demaille <akim@epita.fr>
1855 Let the handling of the skeleton files be local to the procedures
1858 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1860 (fparser, open_extra_files): Remove.
1861 (open_files, output_files): Don't take care of fparser.
1862 * src/files.h: Adjust.
1863 * src/output.c (output_parser): Open and close the file to the
1865 * src/reader.c (read_declarations): When %semantic_parser, open
1868 2000-12-19 Akim Demaille <akim@epita.fr>
1870 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1871 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1873 2000-12-19 Akim Demaille <akim@epita.fr>
1875 * src/files.c (open_files): Yipee! We no longer need all the code
1876 looking for `/tmp' since we have no tmp file.
1878 2000-12-19 Akim Demaille <akim@epita.fr>
1880 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1882 * src/files.c (open_files): Less dependency on MSDOS etc.
1884 2000-12-14 Akim Demaille <akim@epita.fr>
1886 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1887 Provide a default definition.
1888 Use it when executing the default @ action.
1889 * src/reader.c (reader_output_yylsp): No longer include
1890 `timestamp' and `text' in the default YYLTYPE.
1892 2000-12-12 Akim Demaille <akim@epita.fr>
1894 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1895 (copy_guard): Quote the file names.
1896 Reported by Laurent Mascherpa.
1898 2000-12-12 Akim Demaille <akim@epita.fr>
1900 * src/output.c (output_headers, output_program, output): Be sure
1901 to escape special characters when outputting filenames.
1902 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1903 (output_headers): Don't depend on them, Use ACTSTR.
1905 2000-11-17 Akim Demaille <akim@epita.fr>
1907 * lib/obstack.h: Formatting changes.
1908 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1909 prevents type checking.
1910 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1911 cast the value to (void *): assigning a `foo *' to a `void *'
1913 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1914 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1917 2000-11-17 Akim Demaille <akim@epita.fr>
1919 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1921 (suite.m4, regression.m4, calc.m4): these.
1922 * tests/atgeneral.m4: Update from CVS Autoconf.
1924 2000-11-17 Akim Demaille <akim@epita.fr>
1926 * tests/regression.m4 (%union and --defines): New test,
1927 demonstrating a current bug in the obstack implementation.
1929 2000-11-17 Akim Demaille <akim@epita.fr>
1931 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1933 Use them to declare the variables which are global or local to
1936 2000-11-17 Akim Demaille <akim@epita.fr>
1938 * acconfig.h: Remove, no longer used.
1940 2000-11-07 Akim Demaille <akim@epita.fr>
1942 * src: s/Copyright (C)/Copyright/g.
1944 2000-11-07 Akim Demaille <akim@epita.fr>
1946 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1948 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1950 2000-11-07 Akim Demaille <akim@epita.fr>
1952 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1953 Merge in a single CPP if/else.
1955 2000-11-07 Akim Demaille <akim@epita.fr>
1957 * src/output.c (output): Remove useless variables.
1958 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1959 argument `data' for consistency with the prototypes.
1961 (obstack_copy, obstack_copy0): Rename the second argument as
1962 `address' for consistency. Qualify it `const'.
1963 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1964 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1965 `const' their input argument (`data' or `address').
1966 Adjust the corresponding macros to include `const' in casts.
1968 2000-11-03 Akim Demaille <akim@epita.fr>
1970 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1971 s/PFILE1/BISON_HAIRY/.
1972 Adjust dependencies.
1974 2000-11-03 Akim Demaille <akim@epita.fr>
1976 For some reason, this was not applied.
1978 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1979 `unlink': it's no longer used.
1981 2000-11-03 Akim Demaille <akim@epita.fr>
1983 * src/files.c (skeleton_find): New function, eved out of...
1984 (open_files, open_extra_files): here.
1986 2000-11-03 Akim Demaille <akim@epita.fr>
1990 * src/files.c (obstack_save): New function.
1991 (done): Rename as...
1992 (output_files): this.
1994 * src/main.c (main): Don't use `atexit' to register `done', since
1995 it no longer has to remove tmp files, just call `output_files'
1996 when there are no errors.
1998 2000-11-02 Akim Demaille <akim@epita.fr>
2000 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2001 `unlink': it's no longer used.
2002 * src/files.h: Formatting changes.
2004 2000-11-02 Akim Demaille <akim@epita.fr>
2006 Remove the last uses of mktemp and unlink/delete.
2008 * src/files.c (fdefines, ftable): Removed.
2009 (defines_ostack, table_obstack): New.
2010 Adjust dependencies of the former into uses of the latter.
2011 * src/output.c (output_short_or_char_table, output_short_table):
2012 Convert to using obstacks.
2013 * src/reader.c (copy_comment2): Accept one FILE * and two
2015 (output_token_defines, reader_output_yylsp): Use obstacks.
2016 * src/system.h (obstack_fgrow3): New.
2018 2000-11-01 Akim Demaille <akim@epita.fr>
2020 Change each use of `fattrs' into a use of `attrs_obstack'.
2022 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2023 * src/files.c (fattrs): Remove.
2024 (attrs_obstack): New.
2025 Adjust all dependencies.
2026 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2028 2000-11-01 Akim Demaille <akim@epita.fr>
2031 Change each use of `faction' into a use of `action_obstack'.
2033 * lib/obstack.h, lib/obstack.c: New files.
2034 * src/files.c (faction): Remove.
2035 (action_obstack): New.
2036 Adjust all dependencies.
2038 2000-10-20 Akim Demaille <akim@epita.fr>
2040 * lib/quote.h (PARAMS): New macro. Use it.
2042 2000-10-16 Akim Demaille <akim@epita.fr>
2044 * src/output.c (output_short_or_char_table): New function.
2045 (output_short_table, output_token_translations): Use it.
2046 (goto_actions): Use output_short_table.
2048 2000-10-16 Akim Demaille <akim@epita.fr>
2050 * src/symtab.c (bucket_new): New function.
2053 * src/output.c (output_short_table): New argument to display the
2054 comment associated with the table.
2055 Adjust dependencies.
2056 (output_gram): Use it.
2057 (output_rule_data): Nicer output layout for YYTNAME.
2059 2000-10-16 Akim Demaille <akim@epita.fr>
2061 * src/lex.c (read_typename): New function.
2063 * src/reader.c (copy_dollar): Likewise.
2065 2000-10-16 Akim Demaille <akim@epita.fr>
2067 * src/reader.c (copy_comment2): Expect the input stream to be on
2068 the `/' which is suspected to open a comment, instead of being
2069 called after `//' or `/*' was read.
2070 (copy_comment, copy_definition, parse_union_decl, copy_action)
2071 (copy_guard): Adjust.
2073 2000-10-16 Akim Demaille <akim@epita.fr>
2075 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2076 `read_signed_integer'.
2078 2000-10-16 Akim Demaille <akim@epita.fr>
2080 * src/reader.c (copy_dollar): New function.
2081 (copy_guard, copy_action): Use it.
2083 2000-10-16 Akim Demaille <akim@epita.fr>
2085 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2086 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2087 New files, from Fileutils 4.0.27.
2088 * src/main.c (printable_version): Remove.
2089 * src/lex.c, src/reader.c: Use `quote'.
2091 2000-10-04 Akim Demaille <akim@epita.fr>
2093 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2095 2000-10-04 Akim Demaille <akim@epita.fr>
2097 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2099 2000-10-04 Akim Demaille <akim@epita.fr>
2101 When a literal string is used to define two different tokens,
2102 `bison -v' segfaults.
2103 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2105 * tests/regression.m4: New file.
2106 Include the core of the sample provided by Piotr Gackiewicz.
2107 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2110 2000-10-04 Akim Demaille <akim@epita.fr>
2112 * src/reader.c (parse_expect_decl): Keep `count' within the size
2116 2000-10-02 Paul Eggert <eggert@twinsun.com>
2118 * bison.s1 (yyparse): Assign the default value
2119 unconditionally, to avoid a GCC warning and make the parser a
2122 2000-10-02 Akim Demaille <akim@epita.fr>
2124 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2127 2000-10-02 Akim Demaille <akim@epita.fr>
2129 * src/derives.c, src/print.c, src/reduce.c: To ease the
2130 translation, move some `\n' out of the translated strings.
2132 2000-10-02 Akim Demaille <akim@epita.fr>
2134 The location tracking mechanism is precious for parse error
2135 messages. Nevertheless, it is enabled only when `@n' is used in
2136 the grammar, which is a different issue (you can use it in error
2137 message, but not in the grammar per se). Therefore, there should
2138 be another means to enable it.
2140 * src/getargs.c (getargs): Support `--locations'.
2142 * src/getargs.h (locationsflag): Export it.
2143 * src/lex.c (percent_table): Support `%locations'.
2144 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2145 with `locationsflag'.
2146 * doc/bison.texinfo: Document `--locations' and `%locations'.
2148 * tests/calc.m4: Test it.
2150 For regularity of the names, replace each
2151 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2152 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2153 In addition replace each `flag' with `_flag'.
2155 2000-10-02 Akim Demaille <akim@epita.fr>
2157 Also test parse error messages, including with YYERROR_VERBOSE.
2159 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2161 Use it to check the computations.
2162 Use it to check `nonassoc' is honored.
2163 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2164 `--yyerror-verbose'.
2165 (_AT_CHECK_CALC): Adjust to this option.
2166 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2168 2000-10-02 Akim Demaille <akim@epita.fr>
2170 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2171 the latter demonstrates a flaw in the handling of non debugging
2172 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2173 was used in order to simplify:
2189 unfortunately this leads to a CPP conflict when
2190 `--name-prefix=foo' is used since it produces `#define yydebug
2193 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2194 (YYDPRINTF): New macro.
2196 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2198 Also test `--verbose', `--defines' and `--name-prefix'.
2200 2000-10-02 Akim Demaille <akim@epita.fr>
2202 Improve the readability of the produced parsers.
2204 * src/bison.s1: Formatting changes.
2205 Improve the comment related to the `$' mark.
2206 (yydefault): Don't fall through to `yyresume': `goto' there.
2207 * src/output.c (output_parser): When the `$' is met, skip the end
2209 New variable, `number_of_dollar_signs', to check there's exactly
2210 one `$' in the parser skeleton.
2212 2000-10-02 Akim Demaille <akim@epita.fr>
2214 * lib/xstrdup.c: New file, from the fileutils.
2215 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2216 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2217 instead of strlen + xmalloc + strcpy.
2218 * src/symtab.c (copys): Remove, use xstrdup instead.
2220 2000-10-02 Akim Demaille <akim@epita.fr>
2222 * src/gram.h (associativity): New enum type which replaces the
2223 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2224 `right_assoc', `left_assoc' and `non_assoc'.
2225 Adjust all dependencies.
2226 * src/reader.c: Formatting changes.
2227 (LTYPESTR): Don't define it, use it as a literal in
2228 `reader_output_yylsp'.
2229 * src/symtab.h (symbol_class): New enum type which replaces the
2230 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2231 `sunknown', `stoken and `snterm'.
2233 2000-10-02 Akim Demaille <akim@epita.fr>
2235 * src/getargs.c (fixed_outfiles): Rename as...
2236 (yaccflag): for consistency and accuracy.
2237 Adjust dependencies.
2239 2000-10-02 Akim Demaille <akim@epita.fr>
2241 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2242 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2243 difficult and introduced a lot of core dump. It turns out that
2244 Bison used an implementation of `xmalloc' based on `calloc', and
2245 at various places it does depend upon the initialization to 0. I
2246 have not tried to isolate the pertinent places, and all the former
2247 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2248 someone should address this issue.
2250 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2251 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2253 Adjust dependencies.
2254 * src/warshall.h: New file.
2257 2000-10-02 Akim Demaille <akim@epita.fr>
2259 Various anti-`extern in *.c' changes.
2261 * src/system.h: Include `assert.h'.
2263 2000-10-02 Akim Demaille <akim@epita.fr>
2265 * src/state.h (nstates, final_state, first_state, first_shift)
2266 (first_reduction): Move their exportation from here...
2267 * src/LR0.h: to here.
2268 Adjust dependencies.
2269 * src/getargs.c (statisticsflag): New variable.
2270 Add support for `--statistics'.
2271 Adjust dependencies.
2273 Remove a lot of now useless `extern' statements in most files.
2275 2000-10-02 Akim Demaille <akim@epita.fr>
2277 * src/LR0.h: New file.
2280 2000-10-02 Akim Demaille <akim@epita.fr>
2282 * src/print.h: New file.
2284 * src/print.c: Formatting and ordering changes.
2285 (verbose, terse): Replace with...
2286 (print_results): this new function.
2287 Adjust dependencies.
2289 2000-10-02 Akim Demaille <akim@epita.fr>
2291 * src/conflicts.c (conflict_report): New function.
2292 (conflict_log, verbose_conflict_log): Replace with...
2293 (print_conflicts): this function.
2294 Adjust dependencies.
2295 * src/conflicts.h: New file.
2296 Propagate its inclusion.
2298 2000-10-02 Akim Demaille <akim@epita.fr>
2300 * src/nullable.h: New file.
2301 Propagate its inclusion.
2302 * src/nullable.c: Formatting changes.
2304 2000-10-02 Akim Demaille <akim@epita.fr>
2306 * src/reduce.h: New file.
2307 Propagate its inclusion.
2308 * src/reduce.c: Topological sort and other formatting changes.
2309 (bool, TRUE, FALSE): Move their definition to...
2310 * src/system.h: here.
2312 2000-10-02 Akim Demaille <akim@epita.fr>
2314 * src/files.c: Formatting changes.
2315 (tryopen, tryclose, openfiles): Rename as...
2316 (xfopen, xfclose, open_files): this.
2317 (stringappend): static.
2318 * src/files.h: Complete the list of exported symbols.
2321 2000-10-02 Akim Demaille <akim@epita.fr>
2323 * src/reader.h: New file.
2324 Propagate its use instead of tedious list of `extern' and
2326 * src/reader.c: Formatting changes, topological sort,
2329 2000-10-02 Akim Demaille <akim@epita.fr>
2331 * src/lex.h: Prototype `lex.c' exported functions.
2332 * src/reader.c: Adjust.
2333 * src/lex.c: Formatting changes.
2334 (safegetc): Rename as...
2337 2000-10-02 Akim Demaille <akim@epita.fr>
2339 * src/lalr.h: New file.
2340 Propagate its inclusion instead of prototypes and `extern'.
2341 * src/lalr.c: Formatting changes, topological sorting etc.
2343 2000-10-02 Akim Demaille <akim@epita.fr>
2345 * src/output.c (token_actions): Introduce a temporary array,
2346 YYDEFACT, that makes it possible for this function to use
2349 2000-10-02 Akim Demaille <akim@epita.fr>
2351 `user_toknums' is output as a `short[]' in `output.c', while it is
2352 defined as a `int[]' in `reader.c'. For consistency with the
2353 other output tables, `user_toknums' is now defined as a table of
2356 * src/reader.c (user_toknums): Be a short table instead of an int
2358 Adjust dependencies.
2360 Factor the short table outputs.
2362 * src/output.c (output_short_table): New function.
2363 * src/output.c (output_gram, output_stos, output_rule_data)
2364 (output_base, output_table, output_check): Use it.
2366 2000-10-02 Akim Demaille <akim@epita.fr>
2368 * src/output.c (output): Topological sort of the functions, in
2369 order to get rid of the `static' prototypes.
2370 No longer use `register'.
2371 * src/output.h: New file.
2372 Propagate its inclusion in files explicitly prototyping functions
2375 2000-09-21 Akim Demaille <akim@epita.fr>
2377 * src/atgeneral.m4: Update from Autoconf.
2379 2000-09-21 Akim Demaille <akim@epita.fr>
2381 * src/closure.h: New file.
2382 * src/closure.c: Formatting changes, topological sort over the
2383 functions, use of closure.h.
2384 (initialize_closure, finalize_closure): Rename as...
2385 (new_closure, free_closure): these. Adjust dependencies.
2386 * src/LR0.c: Formatting changes, topological sort, use of
2388 (initialize_states): Rename as...
2390 * src/Makefile.am (noinst_HEADERS): Adjust.
2392 2000-09-20 Akim Demaille <akim@epita.fr>
2394 * src/acconfig.h: Don't protect config.h against multiple
2396 Don't define PARAMS.
2397 * src/system.h: Define PARAMS.
2398 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2399 purpose of config.h. system.h must not try to fix wrong
2400 definitions in config.h.
2402 2000-09-20 Akim Demaille <akim@epita.fr>
2404 * src/derives.h: New file.
2405 * src/main.c, src/derives.h: Use it.
2407 * src/Makefile.am (noinst_HEADERS): Adjust.
2409 2000-09-20 Akim Demaille <akim@epita.fr>
2411 * tests/atgeneral.m4: Update from Autoconf.
2412 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2413 (AT_CHECK_CALC): New macros.
2414 Use these macros to test bison with options `', `--raw',
2415 `--debug', `--yacc', `--yacc --debug'.
2417 2000-09-19 Akim Demaille <akim@epita.fr>
2419 * src/output.c: Formatting changes.
2420 * src/machine.h: Remove, leaving its contents in...
2421 * src/system.h: here.
2423 Adjust all dependencies on stdio.h and machine.h.
2424 * src/getargs.h: New file.
2425 Let all `extern' declarations about getargs.c be replaced with
2426 inclusion of `getargs.h'.
2427 * src/Makefile.am (noinst_HEADERS): Adjust.
2429 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2431 (yyerror): Returns void, not int.
2432 * doc/bison.texinfo: Formatting changes.
2434 2000-09-19 Akim Demaille <akim@epita.fr>
2436 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2439 2000-09-18 Akim Demaille <akim@epita.fr>
2441 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2442 * src/Makefile.am (INCLUDES): Don't.
2443 Be ready to fetch headers in lib/.
2445 2000-09-18 Akim Demaille <akim@epita.fr>
2447 * doc/bison.texinfo: Update the copyright.
2448 ANSIfy and GNUify the examples.
2449 Remove the old menu.
2451 2000-09-18 Akim Demaille <akim@epita.fr>
2453 First set of tests: use the `calc' example from the documentation.
2455 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2456 is defined only when YYDEBUG is.
2457 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2458 * src/files.c (tryopen, tryclose): Formatting changes.
2459 Move to the top and be static.
2460 * src/reader.c (read_signed_integer): Likewise.
2461 * tests/calc.m4: New file.
2462 * Makefile.am, suite.m4: Adjust.
2463 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2465 2000-09-18 Akim Demaille <akim@epita.fr>
2467 Add support for an Autotest test suite for Bison.
2469 * m4/m4.m4, m4/atconfig.m4: New files.
2470 * m4/Makefile.am (EXTRA_DIST): Adjust.
2471 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2473 * src/getargs.c: Display a more standard --version message.
2474 * src/reader.c (reader): Formatting changes.
2475 No longer depend upon VERSION_STRING.
2476 * configure.in: No longer use `dnl'.
2477 Set up the test suite and the new directory `tests/.
2478 (VERSION_STRING): Remove.
2480 2000-04-14 Akim Demaille <akim@epita.fr>
2482 * src/reader.c (copy_comment2): New function, same as former
2483 `copy_comment', but outputs into two FILE *.
2484 (copy_comment): Use it.
2485 (parse_union_decl): Use it.
2486 (get_type, parse_start_decl): Use the same `invalid' message.
2487 (parse_start_decl, parse_union_decl): Use the same `multiple'
2489 (parse_union_decl, copy_guard, copy_action): Use the same
2490 `unmatched' message.
2491 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2493 2000-03-31 Akim Demaille <akim@epita.fr>
2495 * src/files.c (tryopen, tryclose): Move to the top.
2498 2000-03-31 Akim Demaille <akim@epita.fr>
2500 * src/main.c (main): Don't call `done', exit does it.
2502 2000-03-31 Akim Demaille <akim@epita.fr>
2504 * allocate.c: s/return (foo)/return foo/.
2507 * output.c: Likewise.
2508 * reader.c: Likewise.
2509 * symtab.c: Likewise.
2510 * vmsgetargs.c: Likewise.
2512 2000-03-31 Akim Demaille <akim@epita.fr>
2514 Clean up the error reporting functions.
2516 * src/report.c: New file.
2517 * src/report.h: Likewise.
2518 * src/Makefile.am: Adjust.
2519 * m4/error.m4: New file.
2520 * m4/Makefile.am: Adjust.
2521 * configure.in (jm_PREREQ_ERROR): Call it.
2522 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2524 (fatal, fatals): Remove. All callers use complain.c::fatal.
2525 (warn, warni, warns, warnss, warnss): Remove. All callers use
2526 complain.c::complain.
2527 (toomany): Remove, use fatal instead.
2528 * src/files.c (done): No argument, use complain_message_count.
2529 * src/main.c (main): Register `done' to `atexit'.
2531 * src/getargs.c (usage): More `fputs', less `fprintf'.
2533 2000-03-28 Akim Demaille <akim@epita.fr>
2535 * lib/: New directory.
2536 * Makefile.am (SUBDIRS): Adjust.
2537 * configure.in: Adjust.
2538 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2540 * src/alloca.c: Moved to lib/.
2541 * src/getopt.c: Likewise.
2542 * src/getopt1.c: Likewise.
2543 * src/getopt.h: Likewise.
2544 * src/ansi2knr.c: Likewise.
2545 * src/ansi2knr.1: Likewise.
2546 * src/Makefile.am: Adjust.
2547 * lib/Makefile.am: New file.
2549 2000-03-28 Akim Demaille <akim@epita.fr>
2551 * src/getargs.c (usage): Refresh the help message.
2553 2000-03-17 Akim Demaille <akim@epita.fr>
2555 * src/getopt1.c: Updated from textutils 2.0e
2556 * src/getopt.c: Likewise.
2557 * src/getopt.h: Likewise.
2559 2000-03-17 Akim Demaille <akim@epita.fr>
2561 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2562 the file name, not the whole `#line LINE FILE'.
2564 2000-03-17 Akim Demaille <akim@epita.fr>
2566 On syntax errors, report the token on which we choked.
2568 * src/bison.s1 (yyparse): In the label yyerrlab, when
2569 YYERROR_VERBOSE, add yychar in msg.
2571 2000-03-17 Akim Demaille <akim@epita.fr>
2573 * src/reader.c (copy_at): New function.
2574 (copy_guard): Use it.
2575 (copy_action): Use it.
2577 2000-03-17 Akim Demaille <akim@epita.fr>
2579 Be kind to translators, save some useless translations.
2581 * src/main.c (banner): New function.
2582 (fatal_banner): Use it.
2583 (warn_banner): Use it.
2585 2000-03-17 Akim Demaille <akim@epita.fr>
2587 * src/reader.c (copy_definition): Use copy_string and
2588 copy_comment. Removed now unused `match', `ended',
2590 (copy_comment, copy_string): Moved, to be visible from
2593 2000-03-17 Akim Demaille <akim@epita.fr>
2595 * src/reader.c (copy_string): Declare `static inline'. No
2596 problems with inline, since it is checked by configure.
2597 (copy_comment): Likewise.
2599 2000-03-17 Akim Demaille <akim@epita.fr>
2601 * src/reader.c (packsymbols): Formatting changes.
2603 2000-03-17 Akim Demaille <akim@epita.fr>
2605 * src/reader.c (copy_comment): New function, factored out from:
2606 (copy_action): Use it. Removed now unused `match', `ended',
2608 (copy_guard): Likewise.
2610 2000-03-17 Akim Demaille <akim@epita.fr>
2612 * src/reader.c (copy_string): New function, factored out from:
2613 (copy_action): Use it.
2614 (copy_guard): Likewise.
2616 2000-03-17 Akim Demaille <akim@epita.fr>
2618 Change the handling of @s so that they behave exactly like $s.
2619 There is now a pseudo variable @$ (readble and writable), location
2620 of the lhs of the rule (by default ranging from the location of
2621 the first symbol of the rhs, to the location of the last symbol,
2622 or, if the rhs is empty, YYLLOC).
2624 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2626 (yyparse): When providing a default semantic action, provide a
2627 default location action.
2628 (after the $): No longer change `*YYLSP', just stack YYLOC the
2629 same way you stack YYVAL.
2630 * src/reader.c (read_declarations): Use warns.
2631 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2632 (copy_action, case '@'): Likewise.
2633 Use a standard error message, to save useless work from
2636 2000-03-17 Akim Demaille <akim@epita.fr>
2638 * src/bison.s1: Formatting and cosmetics changes.
2639 * src/reader.c: Likewise.
2640 Update the Copyright notice.
2642 2000-03-17 Akim Demaille <akim@epita.fr>
2644 * src/bison.s1 (#line): All set to `#line' only, since the
2645 Makefile now handles them.
2647 2000-03-16 Akim Demaille <akim@epita.fr>
2649 * src/output.c (output_rule_data): Output the documentation of
2651 (Copyright notice): Update.
2654 2000-03-16 Akim Demaille <akim@epita.fr>
2656 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2657 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2658 One `#if YYDEBUG' remains, since it uses variables which are
2659 defined only if `YYDEBUG != 0'.
2661 2000-03-16 Akim Demaille <akim@epita.fr>
2663 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2664 and related variables so that the similarities are highlighted.
2666 2000-03-16 Akim Demaille <akim@epita.fr>
2668 * src/bison.s1: Properly indent CPP directives.
2670 2000-03-16 Akim Demaille <akim@epita.fr>
2672 * src/bison.s1: Properly indent the `alloca' CPP section.
2674 2000-03-16 Akim Demaille <akim@epita.fr>
2676 Do not hard code values of directories in `configure.in'.
2677 Update the `configure' tool chain.
2679 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2681 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2682 (AC_OUTPUT): Add m4/Makefile.
2683 Bump to bison 1.28a, 1.29 has never been released.
2684 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2685 handled via src/Makefile.am.
2686 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2687 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2689 * Makefile.am (SUBDIRS): Add m4.
2690 (ACLOCAL_AM_FLAGS): New variable.
2691 (AUTOMAKE_OPTIONS): Add check-news.
2692 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2693 the proper line number and file name.
2694 (DEFS): Propagate the location of bison library files and of the
2696 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2698 * acinclude.m4: Remove, replaced by the directory m4.
2699 * m4/Makefile.am (EXTRA_DIST): New variable.
2700 * m4/gettext.m4: New file, from the fileutils.
2701 * m4/lcmessage.m4: Likewise
2702 * m4/progtest.m4: Likewise.
2703 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2705 2000-03-10 Akim Demaille <akim@epita.fr>
2708 Formatting changes of various comments.
2709 Respect the GNU coding standards at various places.
2710 Don't use `_()' when no translation is needed.
2712 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2715 OS/2 honors TMPDIR environment variable.
2717 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2719 * doc/bison.texinfo: Tweaked spelling and grammar.
2721 Removed reference to price of printed copy.
2722 Mention BISON_SIMPLE and BISON_HAIRY.
2724 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2726 * configure.in, NEWS:
2727 Bison 1.29 released.
2729 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2731 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2732 Added reference card.
2734 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2736 * po/ru.po: Added Russian translation.
2738 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2740 * configure.in: Added Russian translation.
2742 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2744 * configure.in, NEWS, README:
2745 Released version 1.28.
2747 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2750 Squashed redefinition warning on some systems.
2752 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2753 Have configure build version string instead of relying on ANSI string
2756 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2758 * po/POTFILES.in: Got rid of version.c.
2760 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2762 * acconfig.h, configure.in:
2763 Have configure build version string instead of relying on ANSI string
2766 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2769 Dropped mention of `+' for long-named options.
2771 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2773 * src/files.c: Added <unistd.h> for unlink().
2775 * src/Makefile.am, src/system.h:
2778 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2780 * README: Added a FAQ list.
2782 * configure.in, acconfig.h:
2785 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2787 * doc/FAQ, doc/Makefile.am:
2790 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2792 * src/alloc.h, src/symtab.h, src/version.c:
2793 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2795 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2797 * src/.cvsignore, src/Makefile.am:
2798 Reorganized: sources in `src', documentation in `doc'.
2800 * src/lex.c (literalchar):
2801 fixed the code for escaping double quotes (thanks
2804 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2806 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2807 Adjusted paths to reflect directory reorganization.
2809 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2811 * doc/.cvsignore, doc/Makefile.am:
2812 Reorganized: sources in `src', documentation in `doc'.
2814 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2817 Updated AC_INIT file to reflect directory reorganization.
2819 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2820 Reorganized: sources in `src', documentation in `doc'.
2822 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2825 Don't declare calloc() and realloc() if not necessary.
2827 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2829 * configure.in, acconfig.h, acinclude.m4:
2830 Don't declare calloc() and realloc() if not necessary.
2832 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2834 * po/.cvsignore: Added i18n support.
2836 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2838 * acconfig.h, configure.in, Makefile.am:
2841 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2843 * src/bison.s1: Fixed #line numbers.
2845 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2847 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2848 Added PO files from Translation Project.
2850 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2853 Added support for non-ANSI compilers (ansi2knr).
2855 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2857 * configure.in: Bumped version number to 1.27.
2860 Added `bison.simple' to list of files removed by `make distclean'.
2862 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2864 * src/files.c, src/files.h:
2865 Defined locations of parser files in config.h instead of Makefile.
2867 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2869 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2870 Defined locations of parser files in config.h instead of Makefile.
2872 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2875 Removed inappropriate use of $< macro.
2877 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2879 * po/Makefile.in.in, po/POTFILES.in:
2880 Add `po' directory skeleton.
2882 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2884 * README: Document help-bison list.
2886 * configure.in: Add check for mkstemp().
2888 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2890 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2891 Hush a few compiler warnings.
2894 Add tryclose(), which verifies that fclose was successful.
2895 Hush a couple of compiler warnings.
2897 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2899 * Makefile.am, OChangeLog:
2900 ChangeLog is now automatically generated. Include the old version as
2903 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2905 * 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:
2908 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2910 * doc/bison.texinfo: Fix formatting glitch.
2912 * doc/bison.texinfo: Update FSF address.
2914 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2916 * acconfig.h: Update FSF address.
2918 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2921 Don't define PACKAGE here, since config.h defines it.
2923 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2925 * src/reader.c: Update copyright date.
2928 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2929 favor of output directly to stderr (avoids buffer overruns).
2931 * src/reader.c: Some checks for premature EOF.
2933 * 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:
2934 Use prototypes if the compiler understands them.
2936 * src/files.c: Honor TMPDIR on Unix hosts.
2937 Use prototypes if the compiler understands them.
2940 Fix a couple of buffer overrun bugs.
2941 Use prototypes if the compiler understands them.
2943 * src/system.h: Include unistd.h and ctype.h.
2944 Use #ifdef instead of #if for NLS symbols.
2946 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2948 * doc/bison.texinfo:
2949 Delete comment "consider using @set for edition number, etc..." since
2950 we now are doing so.
2952 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2955 Use prototypes if the compiler understands them.
2957 * NEWS: Document 1.26 highlights.
2959 * Makefile.am: Require Automake 1.3 or later.
2962 Use prototypes if the compiler understands them.
2964 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2967 Use VERSION symbol from automake for version number.
2969 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2971 * acconfig.h, configure.in, version.cin:
2972 Use VERSION symbol from automake for version number.
2974 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2977 Distribute original version of simple parser (bison.s1), not built
2978 version (bison.simple).
2980 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2982 * doc/bison.texinfo: Add info dir entry.
2984 * doc/bison.texinfo:
2985 Let automake put version number into documentation.
2987 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2989 * src/bison.cld, src/build.com, src/vmshlp.mar:
2990 Add non-RCS files from /gd/gnu/bison.
2992 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2995 Document the BISON_HAIRY and BISON_SIMPLE variables.
2997 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2999 * src/version.c: Build version.c automatically.
3002 Fix token numbering (used to start at 258, not 257).
3004 * src/system.h: Include config.h.
3006 * src/getargs.c: Update bug report address.
3008 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3009 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3011 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3014 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3016 * configure.in, version.cin:
3017 Build version.c automatically.
3019 * AUTHORS: Add AUTHORS file.
3021 * README: Update bug report address.
3024 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3026 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3029 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3031 * doc/bison.texinfo: Clean up some formatting.
3033 1998-05-05 Richard Stallman <rms@gnu.org>
3035 * doc/bison.texinfo:
3036 Explain better why to make a pure parser.
3038 1998-01-05 Richard Stallman <rms@gnu.org>
3040 * src/files.c (openfiles):
3041 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3042 find a temporary directory, if possible. Do not unlink files while
3045 1997-08-25 Richard Stallman <rms@gnu.org>
3047 * src/reader.c (stack_offset;):
3048 Change some warni to warns.
3050 * src/lex.c (literalchar): Use warns, not warni.
3052 1997-06-28 Richard Stallman <rms@gnu.org>
3054 * src/bison.s1: Add a Bison version comment.
3056 * src/main.c (fatal, warn, berror):
3059 1997-06-28 Richard Stallman <rms@gnu.org>
3061 * Makefile.in (bison_version): New variable.
3062 (dist): Use that variable.
3063 (bison.s1): Substitute the Bison version into bison.simple.
3065 * bison.simple: Add a Bison version comment.
3067 1997-06-18 Richard Stallman <rms@gnu.org>
3069 * src/main.c (fatal, warn, berror):
3070 Make error messages standard.
3071 (toomany): Improve error message text.
3073 * 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:
3074 new.h renamed to alloc.h.
3076 1997-06-18 Richard Stallman <rms@gnu.org>
3078 * Makefile.in: new.h renamed to alloc.h.
3080 1997-05-24 Richard Stallman <rms@gnu.org>
3082 * src/lex.c (literalchar):
3083 Fix the code for escaping \, " and '.
3085 (lex): Avoid trouble when there are many chars
3086 to discard in a char literal with just several chars in it.
3088 1997-05-17 Richard Stallman <rms@gnu.org>
3091 Use malloc, if using alloca is troublesome.
3092 (YYSTACK_USE_ALLOCA): New flag macro.
3093 Define it for some systems and compilers.
3094 (YYSTACK_ALLOC): New macro.
3095 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3096 If it was malloc'd, free it.
3098 1997-05-17 Richard Stallman <rms@gnu.org>
3101 Use malloc, if using alloca is troublesome.
3102 (YYSTACK_USE_ALLOCA): New flag macro.
3103 Define it for some systems and compilers.
3104 (YYSTACK_ALLOC): New macro.
3105 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3106 If it was malloc'd, free it.
3108 1997-04-23 Richard Stallman <rms@gnu.org>
3111 (alloca) [__hpux]: Always define as __builtin_alloca.
3113 1997-04-23 Richard Stallman <rms@gnu.org>
3116 (alloca) [__hpux]: Always define as __builtin_alloca.
3118 1997-04-22 Richard Stallman <rms@gnu.org>
3121 [__hpux]: Include alloca.h (right for HPUX 10)
3122 instead of declaring alloca (right for HPUX 9).
3124 * src/bison.s1 (__yy_memcpy):
3125 Declare arg `count' as unsigned int.
3126 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3128 1997-04-22 Richard Stallman <rms@gnu.org>
3131 [__hpux]: Include alloca.h (right for HPUX 10)
3132 instead of declaring alloca (right for HPUX 9).
3134 * bison.simple (__yy_memcpy):
3135 Declare arg `count' as unsigned int.
3136 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3138 1997-01-03 Richard Stallman <rms@gnu.org>
3140 * src/allocate.c: [__STDC__ or _MSC_VER]:
3141 Declare calloc and realloc to return void *.
3143 1997-01-02 Richard Stallman <rms@gnu.org>
3146 [_MSC_VER]: Include stdlib.h and process.h.
3147 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3149 * src/main.c (main): Return FAILURE as a value.
3150 (printable_version): Declare arg as int, not char.
3152 1997-01-02 Richard Stallman <rms@gnu.org>
3154 * Makefile.in (dist):
3155 Explicitly check for symlinks, and copy them.
3157 1996-12-19 Richard Stallman <rms@gnu.org>
3160 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3162 1996-12-18 Paul Eggert <eggert@gnu.org>
3164 * src/bison.s1 (yyparse):
3165 If __GNUC__ and YYPARSE_PARAM are both defined,
3166 declare yyparse to have a void * argument.
3168 1996-12-18 Paul Eggert <eggert@gnu.org>
3170 * bison.simple (yyparse):
3171 If __GNUC__ and YYPARSE_PARAM are both defined,
3172 declare yyparse to have a void * argument.
3174 1996-12-17 Richard Stallman <rms@gnu.org>
3176 * src/reduce.c (nbits): Add some casts.
3178 1996-08-12 Richard Stallman <rms@gnu.org>
3180 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3182 1996-08-12 Richard Stallman <rms@gnu.org>
3184 * bison.simple: Test _MSDOS as well as _MSDOS_.
3186 1996-07-31 Richard Stallman <rms@gnu.org>
3189 [__sun && __i386]: Include alloca.h.
3191 1996-07-31 Richard Stallman <rms@gnu.org>
3194 [__sun && __i386]: Include alloca.h.
3196 1996-07-30 Richard Stallman <rms@gnu.org>
3198 * src/bison.s1: Comment change.
3200 * src/bison.s1: Test _MSDOS_, not MSDOS.
3202 1996-07-30 Richard Stallman <rms@gnu.org>
3204 * bison.simple: Comment change.
3206 * bison.simple: Test _MSDOS_, not MSDOS.
3208 1996-06-01 Richard Stallman <rms@gnu.org>
3210 * 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:
3211 Insert `_' macro around many string constants.
3214 Insert `_' macro around many string constants.
3216 (main): Call setlocale, bindtextdomain and textdomain.
3218 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3219 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3220 [ENABLE_NLS]: Include libintl.h.
3221 [ENABLE_NLS] (gettext): Define.
3222 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3223 (N_, PACKAGE, LOCALEDIR): New macros.
3225 1996-06-01 Richard Stallman <rms@gnu.org>
3227 * POTFILES.in: New file.
3229 * Makefile.in (allocate.o):
3230 Define target explicitly.
3232 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3233 (LDFLAGS): Set to @LDFLAGS@.
3234 (configure): Run autoconf only if preceding `cd' succeeds.
3235 (bison.s1): Redirect output to temporary file then move the
3236 temporary to the target, rather than redirecting directly to bison.s1.
3237 (clean): Remove config.status and config.log.
3238 (distclean): Don't remove config.status here.
3240 1996-05-12 Richard Stallman <rms@gnu.org>
3243 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3245 1996-05-12 Richard Stallman <rms@gnu.org>
3248 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3250 1996-05-11 Richard Stallman <rms@gnu.org>
3252 * src/bison.s1 (__yy_memcpy):
3253 Really reorder the args, as was supposedly done on Feb 14 1995.
3254 (yyparse): Calls changed accordingly.
3256 1996-05-11 Richard Stallman <rms@gnu.org>
3258 * Makefile.in (dist): Don't use $(srcdir).
3260 * bison.simple (__yy_memcpy):
3261 Really reorder the args, as was supposedly done on Feb 14 1995.
3262 (yyparse): Calls changed accordingly.
3264 1996-01-27 Richard Stallman <rms@gnu.org>
3266 * src/output.c (output_rule_data):
3267 Test YYERROR_VERBOSE in the conditional
3268 around the definition of ttyname.
3270 1995-12-29 Richard Stallman <rms@gnu.org>
3273 Fix line numbers in #line commands.
3275 1995-12-29 Richard Stallman <rms@gnu.org>
3278 Fix line numbers in #line commands.
3280 1995-12-27 Richard Stallman <rms@gnu.org>
3282 * src/bison.s1 (YYPARSE_PARAM_DECL):
3283 In C++, make it always null.
3284 (YYPARSE_PARAM_ARG): New macro.
3285 (yyparse): Use YYPARSE_PARAM_ARG.
3287 1995-12-27 Richard Stallman <rms@gnu.org>
3289 * bison.simple (YYPARSE_PARAM_DECL):
3290 In C++, make it always null.
3291 (YYPARSE_PARAM_ARG): New macro.
3292 (yyparse): Use YYPARSE_PARAM_ARG.
3294 1995-11-29 Richard Stallman <rms@gnu.org>
3296 * doc/bison.texinfo:
3297 Describe literal string tokens, %raw, %no_lines, %token_table.
3299 1995-11-29 Daniel Hagerty <hag@gnu.org>
3301 * doc/bison.texinfo: Fixed update date
3303 1995-10-16 Richard Stallman <rms@gnu.org>
3305 * src/version.c: Version 1.25.
3307 1995-10-16 Richard Stallman <rms@gnu.org>
3309 * NEWS: *** empty log message ***
3311 1995-10-16 Richard Stallman <rms@gnu.org>
3313 * doc/bison.1, doc/bison.rnh:
3316 1995-10-15 Richard Stallman <rms@gnu.org>
3318 * src/vmsgetargs.c, src/getargs.c:
3319 Added -n, -k, and -raw switches.
3320 (noparserflag, toknumflag, rawtoknumflag): New variables.
3322 * src/symtab.h (SALIAS):
3323 New #define for adding aliases to %token.
3324 (struct bucket): Added `alias' field.
3326 * src/reduce.c (reduce_grammar):
3327 Revise error message.
3328 (print_notices): Remove final `.' from error message.
3330 * src/reader.c (reader_output_yylsp):
3332 (readgram): Use `#if 0' around code that accepted %command
3333 inside grammar rules: The documentation doesn't allow it,
3334 and it will fail since the %command processors scan for the next %.
3335 (parse_token_decl): Extended the %token
3336 declaration to allow a multi-character symbol as an alias.
3337 (parse_thong_decl): New function.
3338 (read_declarations): Added %thong declarations.
3339 (read_declarations): Handle NOOP to deal with allowing
3340 % declarations as another means to specify the flags.
3341 (readgram): Allow %prec prior to semantics embedded in a rule.
3342 (skip_to_char, read_declarations, copy_definition)
3343 (parse_token_decl, parse_start_decl, parse_type_decl)
3344 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3345 (get_type_name, copy_guard, copy_action, readgram)
3346 (get_type, packsymbols): Revised most error messages.
3347 Changed `fatal' to `warnxxx' to avoid aborting for error.
3348 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3349 (read_declarations): Improve the error message for
3350 an invalid character. Do not abort.
3351 (read_declarations, copy_guard, copy_action): Use
3352 printable_version to avoid unprintable characters in printed output.
3353 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3354 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3355 Allow the type of a non-terminal can be given
3356 more than once, as long as all specifications give the same type.
3359 (output_headers, output_trailers, output, output_gram)
3360 (output_rule_data): Implement noparserflag variable.
3361 Implement toknumflag variable.
3362 (output): Call reader_output_yylsp to output LTYPESTR.
3364 * src/main.c (main):
3365 If reader sees an error, don't process the grammar.
3366 (fatals): Updated to not use VARARGS1.
3367 (printable_version, int_to_string, warn, warni, warns, warnss)
3368 (warnsss): New error reporting functions. Avoid abort for error.
3371 Added THONG and NOOP for alias processing.
3372 Added SETOPT for the new code that allows setting options with %flags.
3375 Include getopt.h. Add some extern decls.
3376 (safegetc): New function to deal with EOF gracefully.
3377 (literalchar); new function to deal with reading \ escapes.
3378 (lex): Use literalchar.
3379 (lex): Implemented "..." tokens.
3380 (literalchar, lex, parse_percent_token): Made tokenbuffer
3381 always contain the token. This includes growing the token
3382 buffer while reading an integer.
3383 (parse_percent_token): Replaced if-else statement with percent_table.
3384 (parse_percent_token): Added % declarations as another
3385 way to specify the flags -n, -l, and -r. Also added hooks for
3386 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3387 major changes to files.c.
3388 (lex) Retain in the incoming stream a character following
3390 (skip_white_space, lex): Revised most error messages
3391 and changed fatal to warn to avoid aborting.
3392 (percent_table): Added %thong declarations.
3394 * src/gram.h: Comment changes.
3396 * src/files.c (openfiles, open_extra_files, done):
3398 and actfile file. Handle noparserflag. Both for -n switch.
3400 * src/conflicts.c (resolve_sr_conflict):
3401 Remove use of alloca.
3403 1995-06-01 Jim Meyering <meyering@gnu.org>
3405 * doc/bison.texinfo: *** empty log message ***
3407 1995-05-06 Richard Stallman <rms@gnu.org>
3409 * src/bison.s1: Comment change.
3411 1995-05-06 Richard Stallman <rms@gnu.org>
3413 * bison.simple: Comment change.
3415 1995-05-03 Richard Stallman <rms@gnu.org>
3417 * src/version.c: Version now 1.24.
3419 * src/bison.s1: Change distribution terms.
3421 * src/version.c: Version now 1.23.
3423 1995-05-03 Richard Stallman <rms@gnu.org>
3425 * doc/bison.texinfo:
3426 Rewrite "Conditions for Using Bison".
3427 Update version to 1.24.
3429 1995-05-03 Richard Stallman <rms@gnu.org>
3431 * bison.simple: Change distribution terms.
3433 1995-02-23 Richard Stallman <rms@gnu.org>
3435 * src/files.c: Test __VMS_POSIX as well as VMS.
3437 1995-02-14 Jim Meyering <meyering@gnu.org>
3439 * src/bison.s1 (__yy_memcpy):
3440 Renamed from __yy_bcopy to avoid
3441 confusion. Reverse FROM and TO arguments to be consistent with
3444 1995-02-14 Jim Meyering <meyering@gnu.org>
3446 * bison.simple (__yy_memcpy):
3447 Renamed from __yy_bcopy to avoid
3448 confusion. Reverse FROM and TO arguments to be consistent with
3451 1994-11-10 David J. MacKenzie <djm@gnu.org>
3457 * Makefile.in (DISTFILES): Include NEWS.
3459 * Makefile.in (DISTFILES):
3460 Include install-sh, not install.sh.
3462 * configure.in: Update to Autoconf v2 macro names.
3464 1994-10-05 David J. MacKenzie <djm@gnu.org>
3466 * Makefile.in: fix typo
3468 * Makefile.in (prefix, exec_prefix):
3469 Let configure set them.
3471 1994-09-28 David J. MacKenzie <djm@gnu.org>
3473 * Makefile.in: Set datadir to $(prefix)/share.
3475 1994-09-15 Richard Stallman <rms@gnu.org>
3478 Update copyright notice and GPL version.
3480 1994-09-15 Richard Stallman <rms@gnu.org>
3483 Update copyright notice and GPL version.
3485 1994-07-12 Richard Stallman <rms@gnu.org>
3487 * src/reduce.c, src/reader.c:
3490 1994-05-05 David J. MacKenzie <djm@gnu.org>
3492 * Makefile.in: entered into RCS
3494 1994-03-26 Richard Stallman <rms@gnu.org>
3496 * src/bison.s1: entered into RCS
3498 1994-03-26 Richard Stallman <rms@gnu.org>
3500 * bison.simple: entered into RCS
3502 1994-03-25 Richard Stallman <rms@gnu.org>
3504 * src/main.c: entered into RCS
3506 1994-03-24 Richard Stallman <rms@gnu.org>
3508 * src/conflicts.c: entered into RCS
3510 1994-01-02 Richard Stallman <rms@gnu.org>
3512 * Makefile.in: *** empty log message ***
3514 1993-11-21 Richard Stallman <rms@gnu.org>
3516 * src/bison.s1: *** empty log message ***
3518 1993-11-21 Richard Stallman <rms@gnu.org>
3520 * doc/bison.texinfo: entered into RCS
3522 * doc/bison.texinfo: *** empty log message ***
3524 1993-11-21 Richard Stallman <rms@gnu.org>
3526 * bison.simple: *** empty log message ***
3528 1993-10-25 David J. MacKenzie <djm@gnu.org>
3530 * doc/bison.texinfo: *** empty log message ***
3532 1993-10-19 Richard Stallman <rms@gnu.org>
3534 * src/bison.s1: *** empty log message ***
3536 1993-10-19 Richard Stallman <rms@gnu.org>
3538 * bison.simple: *** empty log message ***
3540 1993-10-14 Richard Stallman <rms@gnu.org>
3542 * src/bison.s1: *** empty log message ***
3544 1993-10-14 Richard Stallman <rms@gnu.org>
3546 * bison.simple: *** empty log message ***
3548 1993-09-14 David J. MacKenzie <djm@gnu.org>
3550 * doc/bison.texinfo: *** empty log message ***
3552 1993-09-13 Noah Friedman <friedman@gnu.org>
3554 * Makefile.in: *** empty log message ***
3556 1993-09-10 Richard Stallman <rms@gnu.org>
3558 * src/conflicts.c: *** empty log message ***
3560 * src/system.h: entered into RCS
3562 1993-09-10 Richard Stallman <rms@gnu.org>
3564 * doc/bison.1: entered into RCS
3566 1993-09-06 Noah Friedman <friedman@gnu.org>
3568 * src/version.c: entered into RCS
3570 1993-09-06 Noah Friedman <friedman@gnu.org>
3572 * Makefile.in: *** empty log message ***
3574 1993-07-30 David J. MacKenzie <djm@gnu.org>
3576 * Makefile.in: *** empty log message ***
3578 1993-07-24 Richard Stallman <rms@gnu.org>
3580 * src/bison.s1: *** empty log message ***
3582 1993-07-24 Richard Stallman <rms@gnu.org>
3584 * bison.simple: *** empty log message ***
3586 1993-07-08 David J. MacKenzie <djm@gnu.org>
3588 * Makefile.in: *** empty log message ***
3590 1993-07-04 Richard Stallman <rms@gnu.org>
3592 * src/bison.s1: *** empty log message ***
3594 1993-07-04 Richard Stallman <rms@gnu.org>
3596 * bison.simple: *** empty log message ***
3598 1993-06-26 David J. MacKenzie <djm@gnu.org>
3600 * src/getargs.c: entered into RCS
3602 1993-06-26 David J. MacKenzie <djm@gnu.org>
3604 * doc/bison.texinfo: *** empty log message ***
3606 * doc/bison.1: New file.
3608 1993-06-25 Richard Stallman <rms@gnu.org>
3610 * src/getargs.c: New file.
3612 1993-06-16 Richard Stallman <rms@gnu.org>
3614 * src/bison.s1: *** empty log message ***
3616 1993-06-16 Richard Stallman <rms@gnu.org>
3618 * bison.simple: *** empty log message ***
3620 1993-06-03 Richard Stallman <rms@gnu.org>
3622 * src/bison.s1: New file.
3624 1993-06-03 Richard Stallman <rms@gnu.org>
3626 * doc/bison.texinfo: *** empty log message ***
3628 1993-06-03 Richard Stallman <rms@gnu.org>
3630 * bison.simple: New file.
3632 1993-05-19 Richard Stallman <rms@gnu.org>
3634 * doc/bison.texinfo: New file.
3636 1993-05-07 Noah Friedman <friedman@gnu.org>
3638 * Makefile.in: *** empty log message ***
3640 1993-04-28 Noah Friedman <friedman@gnu.org>
3642 * src/reader.c: *** empty log message ***
3644 1993-04-23 Noah Friedman <friedman@gnu.org>
3646 * src/alloc.h: entered into RCS
3648 1993-04-20 David J. MacKenzie <djm@gnu.org>
3650 * src/version.c: *** empty log message ***
3652 * src/files.c, src/allocate.c:
3655 * src/reader.c: *** empty log message ***
3657 * src/lex.c: entered into RCS
3659 * src/conflicts.c: New file.
3661 * src/symtab.c: entered into RCS
3663 * src/alloc.h: New file.
3665 * src/LR0.c: entered into RCS
3667 1993-04-18 Noah Friedman <friedman@gnu.org>
3669 * src/reader.c: New file.
3671 * src/version.c: *** empty log message ***
3673 1993-04-18 Noah Friedman <friedman@gnu.org>
3675 * Makefile.in: *** empty log message ***
3677 1993-04-17 Noah Friedman <friedman@gnu.org>
3679 * Makefile.in: *** empty log message ***
3681 1993-04-15 Richard Stallman <rms@gnu.org>
3683 * src/main.c, src/files.c:
3686 1993-04-15 Noah Friedman <friedman@gnu.org>
3688 * configure.in: entered into RCS
3690 * configure.in: *** empty log message ***
3692 * configure.in: New file.
3694 1993-04-14 Richard Stallman <rms@gnu.org>
3696 * Makefile.in: New file.
3698 1993-04-13 Richard Stallman <rms@gnu.org>
3700 * src/version.c: New file.
3702 1993-03-25 Richard Stallman <rms@gnu.org>
3704 * src/output.c: entered into RCS
3706 1992-09-25 Richard Stallman <rms@gnu.org>
3708 * configure.bat: entered into RCS
3710 1992-06-22 Richard Stallman <rms@gnu.org>
3712 * src/vmsgetargs.c: entered into RCS
3714 1992-06-22 Richard Stallman <rms@gnu.org>
3716 * doc/bison.rnh: entered into RCS
3718 1992-04-20 David J. MacKenzie <djm@gnu.org>
3720 * README: entered into RCS
3722 1992-01-22 Richard Stallman <rms@gnu.org>
3724 * src/machine.h: entered into RCS
3726 1991-12-21 Richard Stallman <rms@gnu.org>
3728 * src/lalr.c, src/closure.c:
3731 1991-12-20 Richard Stallman <rms@gnu.org>
3733 * src/state.h: entered into RCS
3735 1991-12-18 Richard Stallman <rms@gnu.org>
3737 * src/print.c, src/nullable.c, src/derives.c:
3740 1991-11-03 David J. MacKenzie <djm@gnu.org>
3742 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3745 1988-09-09 Richard Stallman <rms@gnu.org>
3747 * src/bison.hairy: entered into RCS
3749 1987-12-16 Richard Stallman <rms@gnu.org>
3751 * REFERENCES: entered into RCS