1 2001-12-12 Akim Demaille <akim@epita.fr>
3 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
4 on that of lib/error.c.
6 2001-12-12 Akim Demaille <akim@epita.fr>
8 Some hosts don't like `/' in includes.
10 * src/system.h: Include libgettext.h without qualifying the path.
11 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
14 2001-12-10 Akim Demaille <akim@epita.fr>
16 Bison dumps core on bash.y.
17 Reported by Pascal Bart.
19 * src/warshall.c (bitmatrix_print): New.
21 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
22 j must be the outer loop.
23 * tests/regression.at (Broken Closure): New.
25 2001-12-05 Akim Demaille <akim@epita.fr>
29 2001-12-05 Akim Demaille <akim@epita.fr>
31 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
33 Reported by Peter Hámorský.
35 2001-12-05 Akim Demaille <akim@epita.fr>
37 * src/conflicts.c (err_table): Remove.
38 (resolve_sr_conflict): Adjust.
39 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
41 (state_t.reductions, state_t.shifts): this.
43 2001-12-05 Akim Demaille <akim@epita.fr>
45 * src/reduce.c (reduce_grammar_tables): No longer disable the
46 removal of useless rules via CPP but via `if (0)', so that the
47 compiler still check the code is valid.
48 For instance, it should have noticed `rline' no longer exists: use
49 the `line' member of rule_t.
50 * src/gram.c (dummy, rline): Remove, unused.
52 2001-12-05 Akim Demaille <akim@epita.fr>
54 * src/output.c (pack_vector): Use assert, not berror.
55 * src/main.c (berror): Remove, unused.
57 2001-12-05 Akim Demaille <akim@epita.fr>
59 New experimental feature: if --verbose --trace output all the
60 items of a state, not only its kernel.
62 * src/print.c (print_core): If `trace_flag', then invoke closure
63 before outputting the items of the state (print_core is no longer
65 (print_results): Invoke new_closure/free_closure if needed.
67 2001-12-05 Akim Demaille <akim@epita.fr>
69 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
70 * src/closure.c, src/closure.h (itemsetsize): Rename as...
71 (nitemset): for consistency with the rest of the project.
73 2001-12-05 Akim Demaille <akim@epita.fr>
75 * src/closure.c (print_closure): Improve.
76 (closure): Use it for printing input and output.
78 2001-12-05 Akim Demaille <akim@epita.fr>
80 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
81 indexed by nonterminals.
83 2001-12-05 Akim Demaille <akim@epita.fr>
85 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
87 * src/warshall.h: Remove accidental duplication of the content.
89 2001-12-05 Akim Demaille <akim@epita.fr>
91 * src/closure.c (set_fderives): De-obfuscate.
93 2001-12-05 Akim Demaille <akim@epita.fr>
95 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
97 2001-12-05 Akim Demaille <akim@epita.fr>
99 * src/closure.c (set_firsts): De-obfuscate.
101 2001-12-05 Akim Demaille <akim@epita.fr>
103 * src/output.c (action_row): De-obfuscate
104 using the good o' techniques: arrays not pointers, variable
105 locality, BITISSET, RESETBIT etc.
107 2001-12-05 Akim Demaille <akim@epita.fr>
109 Pessimize the code to simplify it: from now on, all the states
110 have a valid SHIFTS, which NSHIFTS is possibly 0.
112 * src/LR0.c (shifts_new): Be global and move to..
113 * src/state.c, src/state.h: here.
114 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
115 * src/print_graph: Adjust.
117 2001-12-05 Akim Demaille <akim@epita.fr>
119 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
120 * src/conflicts.c: Use it.
121 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
122 incorrectly ``simplified''.
124 2001-12-05 Akim Demaille <akim@epita.fr>
126 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
127 using the good o' techniques: arrays not pointers, variable
128 locality, BITISSET, RESETBIT etc.
130 2001-12-05 Akim Demaille <akim@epita.fr>
132 * src/state.h (SHIFT_SYMBOL): New.
133 * src/conflicts.c: Use it to deobfuscate.
135 2001-12-05 Akim Demaille <akim@epita.fr>
137 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
138 (print_reductions): De-obfuscate using the good o' techniques:
139 arrays not pointers, variable locality, BITISSET.
141 2001-12-05 Akim Demaille <akim@epita.fr>
143 * src/conflicts.c (print_reductions): Arrays, not pointers.
146 2001-12-05 Akim Demaille <akim@epita.fr>
148 * src/conflicts.c (print_reductions): Pessimize, but clarify.
150 2001-12-05 Akim Demaille <akim@epita.fr>
152 * src/conflicts.c (print_reductions): Improve variable locality.
154 2001-12-05 Akim Demaille <akim@epita.fr>
156 * src/conflicts.c (print_reductions): Pessimize, but clarify.
158 2001-12-05 Akim Demaille <akim@epita.fr>
160 * src/conflicts.c (print_reductions): Improve variable locality.
162 2001-12-05 Akim Demaille <akim@epita.fr>
164 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
165 * src/lalr.c: Use them.
167 2001-12-05 Akim Demaille <akim@epita.fr>
169 * src/LR0.c (augment_automaton): Formatting changes.
170 Better variable locality.
172 2001-12-05 Akim Demaille <akim@epita.fr>
174 * src/lalr.c (matrix_print): New.
176 Use arrays instead of pointers.
178 2001-12-05 Akim Demaille <akim@epita.fr>
180 * src/lalr.c (maxrhs): Move to...
181 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
182 * src/lalr.c (build_relations): Adjust.
184 2001-12-05 Akim Demaille <akim@epita.fr>
186 * src/lalr.c (transpose): Free the memory allocated to the
187 argument, as it is replaced by the results by the unique caller.
188 (build_relations): Merely invoke transpose: it handles the memory
190 Improve variable locality.
191 Avoid variables used as mere abbreviations.
192 (compute_lookaheads): Use arrays instead of pointers.
194 2001-12-05 Akim Demaille <akim@epita.fr>
196 * src/lalr.c (initialize_F): Improve variable locality.
197 Avoid variables used as mere abbreviations.
199 2001-12-05 Akim Demaille <akim@epita.fr>
201 * src/derives.c (print_derives): Display the ruleno.
202 * src/lalr.c (initialize_F, transpose): Better variable locality
203 to improve readability.
204 Avoid variables used as mere abbreviations.
206 2001-12-05 Akim Demaille <akim@epita.fr>
208 * src/lalr.c (traverse): Use arrays instead of pointers.
210 2001-12-05 Akim Demaille <akim@epita.fr>
212 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
213 the handling of squeue.
214 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
216 2001-12-05 Akim Demaille <akim@epita.fr>
218 Because useless nonterminals are now kept alive (instead of being
219 `destroyed'), we now sometimes examine them, and store information
220 related to them. Hence we need to know their number, and adjust
223 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
225 * src/LR0.c (allocate_itemsets): The memory allocated to
226 `symbol_count' was used for two different purpose: once to count
227 the number of occurrences of each symbol, and later reassigned to
228 `shift_symbol', containing the symbol that can be shifted from a
230 Deobfuscate, i.e., allocate, use and free `symbol_count' here
232 (new_itemsets): Allocate `shift_symbol' here.
233 (allocate_itemsets): symbol_count includes useless nonterminals.
235 (free_storage): Use `free', not `XFREE', for pointers that cannot
238 2001-12-05 Akim Demaille <akim@epita.fr>
240 * src/nullable.c (set_nullable): Deobfuscate the handling of
242 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
244 2001-12-05 Akim Demaille <akim@epita.fr>
246 * src/gram.c, src/gram.h (ritem_print): New.
247 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
248 (This useless function was defined only to work around VMS linkers
249 that can't handle compilation units with variables only).
250 * src/reduce.c (dump_grammar): Use it to trace the construction of
253 2001-12-04 Paul Eggert <eggert@twinsun.com>
255 * src/bison.simple (union yyalloc): Change member names
256 to be the same as the stack names.
257 (yyparse): yyptr is now union yyalloc *, not char *.
258 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
259 and may generate better code on some machines.
260 (yystpcpy): Use prototype if __STDC__ is defined, not just
261 if __cplusplus is defined.
263 2001-11-30 Akim Demaille <akim@epita.fr>
265 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
266 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
267 Gettext doesn't compile cleanly, and dies with -Werror.
268 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
269 Include WARNING_CFLAGS here.
270 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
271 before being defined.
273 2001-11-30 Paul Eggert <eggert@twinsun.com>
275 * lib/quotearg.h (quotearg_n, quotearg_n_style):
276 First arg is int, not unsigned.
277 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
278 (SIZE_MAX, UINT_MAX): New macros.
279 (quotearg_n_options): Abort if N is negative.
280 Avoid overflow check on hosts where size_t is 64 bits and int
281 is 32 bits, as overflow is impossible there.
282 Fix off-by-one typo that caused unnecessary reallocation.
284 2001-11-30 Paul Eggert <eggert@twinsun.com>
286 Name space cleanup in generated parser.
288 * doc/bison.texinfo (Bison Parser): Discuss system headers
289 and their effect on the user name space.
292 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
293 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
294 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
296 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
297 on user names when possible.
299 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
300 Simplify test for whather <alloca.h> exists.
302 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
304 (<stdio.h>): Include if YYDEBUG.
306 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
307 ! defined (yyoverflow) && ! defined (yymemcpy).
309 (yymemcpy, yyparse): Rename local variables as needed so that
310 they all begin with 'yy'.
312 (yystrlen, yystpcpy): New functions.
314 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
317 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
318 instead of relying on string.h functions. Use YYSTACK_ALLOC
319 and YYSTACK_FREE instead of malloc and free.
321 2001-11-30 Akim Demaille <akim@epita.fr>
323 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
324 if body instead of `;' to pacify GCC's warnings.
326 2001-11-30 Akim Demaille <akim@epita.fr>
328 Instead of mapping the LHS of unused rules to -1, keep the LHS
329 valid, but flag the rules as invalid.
331 * src/gram.h (rule_t): `useful' is a new member.
332 * src/print.c (print_grammar): Adjust.
333 * src/derives.c (set_derives): Likewise.
334 * src/reader.c (packgram, reduce_output): Likewise.
335 * src/reduce.c (reduce_grammar_tables): Likewise.
336 * tests/reduce.at (Underivable Rules, Useless Rules): New.
338 2001-11-30 Akim Demaille <akim@epita.fr>
340 * src/reduce.c (reduce_output): Formatting changes.
341 * src/print.c (print_results, print_grammar): Likewise.
342 * tests/regression.at (Rule Line Numbers)
343 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
345 2001-11-30 Akim Demaille <akim@epita.fr>
347 * src/reduce.c (nonterminals_reduce): Instead of throwing away
348 useless nonterminals, move them at the end of the symbol arrays.
349 (reduce_output): Adjust.
350 * tests/reduce.at (Useless Nonterminals): Adjust.
352 2001-11-30 Akim Demaille <akim@epita.fr>
354 * src/reduce.c: Various comment/formatting changes.
355 (nonterminals_reduce): New, extracted from...
356 (reduce_grammar_tables): here.
357 (reduce_grammar): Call nonterminals_reduce.
359 2001-11-29 Paul Eggert <eggert@twinsun.com>
361 * src/bison.simple (YYSTACK_REALLOC): Remove.
362 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
363 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
365 (union yyalloc): New type.
366 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
367 an arbitrary restriction on hosts where size_t is wider than int.
369 (yyparse): Don't dump core if alloca or malloc fails; instead, report
370 a parser stack overflow. Allocate just one block of memory for all
371 three stacks, instead of allocating three blocks; this typically is
372 faster and reduces fragmentation.
374 Do not limit the number of items in the stack to a value that fits
375 in 'int', as this is an arbitrary limit on hosts with 64-bit
376 size_t and 32-bit int.
378 2001-11-28 Akim Demaille <akim@epita.fr>
380 * src/LR0.c (shifts_new): New.
381 (save_shifts, insert_start_shift, augment_automaton): Use it.
383 2001-11-28 Akim Demaille <akim@epita.fr>
385 * src/closure.c (closure): `b' and `ruleno' denote the same value:
388 2001-11-28 Akim Demaille <akim@epita.fr>
390 * src/closure.c (closure): Instead of looping over word in array
391 then bits in words, loop over bits in array.
393 2001-11-28 Akim Demaille <akim@epita.fr>
395 * src/closure.c (closure): No longer optimize the special case
396 where all the bits of `ruleset[r]' are set to 0, to make the code
399 2001-11-28 Akim Demaille <akim@epita.fr>
401 * src/closure.c (closure): `r' and `c' are new variables, used to
402 de-obfuscate accesses to RULESET and CORE.
404 2001-11-28 Akim Demaille <akim@epita.fr>
406 * src/reduce.c (reduce_print): Use ngettext.
407 (dump_grammar): Improve the trace accuracy.
409 2001-11-28 Akim Demaille <akim@epita.fr>
411 * src/reduce.c (dump_grammar): Don't translate trace messages.
413 2001-11-28 Akim Demaille <akim@epita.fr>
415 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
416 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
417 as all tags are free'ed afterwards.
420 2001-11-27 Akim Demaille <akim@epita.fr>
422 * src/system.h: Use intl/libgettext.h.
423 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
425 2001-11-27 Paul Eggert <eggert@twinsun.com>
427 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
428 use alloca when we didn't want to, and vice versa.
430 2001-11-27 Akim Demaille <akim@epita.fr>
432 * tests/torture.at (Exploding the Stack Size with Malloc):
433 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
435 2001-11-27 Akim Demaille <akim@epita.fr>
437 * src/files.c: Include error.h.
440 2001-11-26 Akim Demaille <akim@epita.fr>
444 2001-11-26 Akim Demaille <akim@epita.fr>
446 * src/reader.c (readgram): Make sure rules for mid-rule actions
447 have a lineno equal to that of their host rule.
448 Reported by Hans Aberg.
449 * tests/regression.at (Rule Line Numbers): New.
451 2001-11-26 Akim Demaille <akim@epita.fr>
453 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
455 Reported by Hans Aberg.
457 2001-11-26 Akim Demaille <akim@epita.fr>
459 * src/complain.c, src/complain.h (error): Remove, provided by
462 2001-11-26 Akim Demaille <akim@epita.fr>
464 * src/reader.c (read_declarations): Don't abort on tok_illegal,
465 issue an error message.
466 * tests/regression.at (Invalid %directive): New.
467 Reported by Hans Aberg.
469 2001-11-26 Akim Demaille <akim@epita.fr>
471 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
472 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
474 2001-11-26 Akim Demaille <akim@epita.fr>
476 * src/conflicts.c (conflicts_print): Don't complain at all when
477 there are no reduce/reduce conflicts, and as many shift/reduce
478 conflicts as expected.
479 * tests/regression.at (%expect right): Adjust.
481 2001-11-23 Akim Demaille <akim@epita.fr>
483 * lib/alloca.c: Update, from fileutils.
485 2001-11-23 Akim Demaille <akim@epita.fr>
487 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
489 2001-11-23 Akim Demaille <akim@epita.fr>
491 * src/system.h: Include alloca.h.
492 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
494 2001-11-23 Akim Demaille <akim@epita.fr>
496 * src/print_graph.c (print_actions): Remove `rule', unused.
497 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
498 pacify GCC's signed < unsigned warnings.
499 * src/closure.c (itemsetsize): Likewise.
500 * src/reader.c (symbol_list_new): Static.
502 2001-11-23 Akim Demaille <akim@epita.fr>
504 Attaching lineno to buckets is stupid, since only one copy of each
505 symbol is kept, only the line of the first occurrence is kept too.
507 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
508 * src/reader.c (rline_allocated): Remove, unused.
509 (symbol_list): Have a `line' member.
510 (symbol_list_new): New.
512 * src/print.c (print_grammar): Output the rule line numbers.
513 * tests/regression.at (Solved SR Conflicts)
514 (Unresolved SR Conflicts): Adjust.
515 Reported by Hans Aberg.
517 2001-11-20 Akim Demaille <akim@epita.fr>
521 2001-11-20 Akim Demaille <akim@epita.fr>
524 * configure.in (ALL_LINGUAS): Adjust.
525 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
526 longer contains strings to translate.
528 2001-11-19 Akim Demaille <akim@epita.fr>
530 * src/conflicts.c (conflicts_print): Add a missing \n.
532 2001-11-19 Akim Demaille <akim@epita.fr>
534 * src/nullable.c (nullable_print): New.
535 (set_nullable): Call it when tracing.
536 Better locality of variables.
538 2001-11-19 Akim Demaille <akim@epita.fr>
540 * src/print.c (print_actions): Better locality of variables.
542 2001-11-19 Akim Demaille <akim@epita.fr>
544 * src/derives.c (print_derives): Fix and enrich.
545 * src/closure.c (print_fderives): Likewise.
547 2001-11-19 Akim Demaille <akim@epita.fr>
549 * src/closure.c (itemsetend): Remove, replaced with...
552 2001-11-19 Akim Demaille <akim@epita.fr>
554 * src/LR0.c (kernel_end): Remove, replaced with...
557 2001-11-19 Akim Demaille <akim@epita.fr>
559 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
562 2001-11-19 Akim Demaille <akim@epita.fr>
564 * src/closure.c (closure): Use arrays instead of pointers to clarify.
566 2001-11-19 Akim Demaille <akim@epita.fr>
568 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
570 * src/LR0.c: Likewise.
571 (allocate_itemsets): Use arrays instead of pointers to clarify.
573 2001-11-19 Akim Demaille <akim@epita.fr>
575 * src/getargs.c (statistics_flag): Replace with...
577 (longopts): Accept --trace instead of --statistics.
578 * src/getargs.h: Adjust.
579 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
580 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
582 2001-11-19 Akim Demaille <akim@epita.fr>
584 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
585 pointers to clarify the code.
586 (save_reductions, save_shifts): Factor common parts of alternatives.
588 2001-11-19 Akim Demaille <akim@epita.fr>
590 * src/LR0.c (new_state, get_state): Complete TRACE code.
591 * src/closure.c: Include `reader.h' to get `tags', needed by the
593 Rename the conditional DEBUG as TRACE.
594 Output consistently TRACEs to stderr, not stdout.
595 * src/derives.c: Likewise.
596 * src/reduce.c: (inaccessable_symbols): Using if is better style
598 Use `#if TRACE' instead of `#if 0' for tracing code.
600 2001-11-19 Akim Demaille <akim@epita.fr>
602 * src/system.h (LIST_FREE, shortcpy): New.
603 * src/LR0.c: Use them.
604 * src/output.c (free_itemsets, free_reductions, free_shifts):
605 Remove, replaced by LIST_FREE.
607 2001-11-19 Akim Demaille <akim@epita.fr>
609 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
610 (REDUCTIONS_ALLOC): New.
611 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
614 2001-11-19 Akim Demaille <akim@epita.fr>
616 * src/LR0.c (new_state): Complete trace code.
617 * src/nullable.c (set_nullable): Don't translate traces.
619 2001-11-19 Akim Demaille <akim@epita.fr>
621 * src/print_graph.c (print_core): Better locality of variables.
622 * src/print.c (print_core): Likewise.
624 2001-11-19 Akim Demaille <akim@epita.fr>
626 * src/vcg.c: You do the output, so you are responsible of the
627 handling of VCG syntax, in particular: use quotearg.
628 * src/print_graph.c: Don't.
629 (print_actions): Don't output the actions as part of the nodes,
630 since that's the job of the edges.
631 (print_state): Don't output by hand: fill the node description,
632 and ask for its output.
634 2001-11-19 Akim Demaille <akim@epita.fr>
636 * src/bison.simple (yyparse): When verbosely reporting an error,
637 no longer put additional quotes around token names.
638 * tests/calc.at: Adjust.
640 2001-11-19 Akim Demaille <akim@epita.fr>
642 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
643 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
644 * src/output.c: Adjust.
646 2001-11-19 Akim Demaille <akim@epita.fr>
648 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
650 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
652 2001-11-19 Akim Demaille <akim@epita.fr>
654 * src/gram.h (rule_t): New.
656 (rrhs, rlhs): Remove, part of state_t.
657 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
658 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
659 * src/reader.c, src/reduce.c: Adjust.
661 2001-11-19 Akim Demaille <akim@epita.fr>
663 * src/reader.c (symbols_output): New, extracted from...
667 2001-11-19 Akim Demaille <akim@epita.fr>
669 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
670 (maxrhs): this new function.
672 2001-11-19 Akim Demaille <akim@epita.fr>
674 * src/lalr.c (F): New macro to access the variable F.
677 2001-11-19 Akim Demaille <akim@epita.fr>
679 * src/lalr.h (LA): New macro to access the variable LA.
680 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
681 * src/lalr.c: Adjust.
683 2001-11-19 Akim Demaille <akim@epita.fr>
685 * src/lalr.c (initialize_LA): Only initialize LA. Let...
686 (set_state_table): handle the `lookaheads' members.
688 2001-11-19 Akim Demaille <akim@epita.fr>
690 * src/lalr.h (lookaheads): Removed array, whose contents is now
692 (state_t): this structure.
693 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
696 2001-11-19 Akim Demaille <akim@epita.fr>
698 * src/lalr.h (consistent): Removed array, whose contents is now
700 (state_t): this structure.
701 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
704 2001-11-19 Akim Demaille <akim@epita.fr>
706 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
707 contents are now members of...
708 (state_t): this structure.
709 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
712 2001-11-19 Akim Demaille <akim@epita.fr>
714 * src/lalr.h (state_t): New.
715 (state_table): Be a state_t * instead of a core **.
716 (accessing_symbol): Remove, part of state_t.
717 * src/lalr.c: Adjust.
718 (set_accessing_symbol): Merge into...
719 (set_state_table): this.
720 * src/print_graph.c, src/conflicts.c: Adjust.
722 2001-11-14 Akim Demaille <akim@epita.fr>
726 2001-11-14 Akim Demaille <akim@epita.fr>
728 * tests/calc.at, tests/output.at, tests/regression.at,
729 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
730 now the tests are run in private dirs, therefore AC_CLEANUP and
731 family can be simplified to 0-ary.
732 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
733 use abs. path to find config.h.
735 2001-11-14 Akim Demaille <akim@epita.fr>
737 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
738 stderr, there can be way too much random noise.
739 Instead pass -Werror to GCC and rely on the exit status.
740 Reported by Wolfram Wagner.
742 2001-11-14 Akim Demaille <akim@epita.fr>
744 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
745 defined only if yyoverflow is defined, to avoid `warning: unused
747 Reported by The Test Suite.
749 2001-11-14 Akim Demaille <akim@epita.fr>
751 * src/print.c: Include reduce.h.
752 Reported by Hans Aberg.
754 2001-11-14 Akim Demaille <akim@epita.fr>
756 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
757 Revert a previous patch: these are really const.
758 * src/conflicts.c (conflict_report): Additional useless pair of
759 braces to pacify GCC's warnings for `if () if () {} else {}'.
760 * src/lex.c (parse_percent_token): Replace equal_offset with
763 Be sure to strdup `arg' when used, since there is no reason for
764 token_buffer not to change.
766 2001-11-14 Akim Demaille <akim@epita.fr>
768 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
770 * src/main.c (main): Use them.
771 Suggested by Hans Aberg.
773 2001-11-12 Akim Demaille <akim@epita.fr>
777 * src/system.h (ngettext): Now that we use ngettext, be sure to
778 provide a default definition when NLS are not used that takes care
781 2001-11-12 Akim Demaille <akim@epita.fr>
783 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
784 Use @kbd to denote user input.
785 (Language and Grammar): ANSIfy the example.
786 Adjust its layout for info/notinfo.
787 (Location Tracking Calc): Output error messages to stderr.
788 Output locations in a more GNUtically correct way.
789 Fix a couple of Englishos.
790 Adjust @group/@end group pairs.
792 2001-11-12 Akim Demaille <akim@epita.fr>
794 %expext was not functioning at all.
796 * src/conflicts.c (expected_conflicts): Set to -1.
797 (conflict_report): Use ngettext.
798 (conflicts_print): Check %expect and make its violation an error.
799 * doc/bison.texinfo (Expect Decl): Adjust.
800 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
801 * tests/regression.at (%expect not enough, %expect right)
802 (%expect too much): New.
804 2001-11-12 Akim Demaille <akim@epita.fr>
806 * tests/regression.at (Conflicts): Rename as...
807 (Unresolved SR Conflicts): this.
808 (Solved SR Conflicts): New.
810 2001-11-12 Akim Demaille <akim@epita.fr>
812 * src/reduce.c (print_results): Rename as...
813 (reduce_output): This.
814 Output to OUT, passed as argument, instead of output_obstack.
815 (dump_grammar): Likewise.
818 (reduce_grammar): No longer call reduce_output, since...
819 * src/print.c (print_results): do it.
820 * src/main.c (main): Call reduce_free;
822 2001-11-12 Akim Demaille <akim@epita.fr>
824 * src/conflicts.c (print_reductions): Accept OUT as argument.
825 Output to it, not to output_obstack.
826 * src/print.c (print_actions): Adjust.
828 2001-11-12 Akim Demaille <akim@epita.fr>
830 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
831 the result instead of using...
832 (src_total, rrc_total, src_count, rrc_count): Remove.
833 (any_conflicts): Remove.
834 (print_conflicts): Split into...
835 (conflicts_print, conflicts_output): New.
836 * src/conflicts.h: Adjust.
837 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
838 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
839 * tests/regression.at (Conflicts): New.
840 Reported by Tom Lane.
842 2001-11-12 Akim Demaille <akim@epita.fr>
844 * tests/regression.at (Invalid input): Remove, duplicate with
845 ``Invalid input: 1''.
847 2001-11-12 Akim Demaille <akim@epita.fr>
849 * tests/torture.at (AT_DATA_STACK_TORTURE)
850 (Exploding the Stack Size with Alloca)
851 (Exploding the Stack Size with Malloc): New.
853 2001-11-12 Akim Demaille <akim@epita.fr>
855 * src/bison.simple (YYSTACK_REALLOC): New.
856 (yyparse) [!yyoverflow]: Use it and free the old stack.
857 Reported by Per Allansson.
859 2001-11-05 Akim Demaille <akim@epita.fr>
862 * src/lex.c (parse_percent_token): s/quotearg/quote/.
864 2001-11-05 Akim Demaille <akim@epita.fr>
866 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
869 2001-11-05 Akim Demaille <akim@epita.fr>
871 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
872 with yyltype/YYLTYPE. This allows inclusion of the generated
873 header within the parser if the compiler, such as GGC, accepts
874 multiple equivalent #defines.
876 2001-11-04 Akim Demaille <akim@epita.fr>
878 * src/getargs.c (longopts): Support `--output'. getopt is now
879 able to understand that `--out' is OK: the two racing long options
882 * src/lex.h (tok_setopt): Remove, replaced with...
883 (tok_intopt, tok_stropt): these new guys.
884 * src/lex.c (getopt.h): Not needed.
885 (token_buffer, unlexed_token_buffer): Not const.
886 (percent_table): Promote `-' over `_' in directive names.
887 Active `%name-prefix', `file-prefix', and `output'.
888 (parse_percent_token): Accept possible arguments to directives.
889 Promote `-' over `_' in directive names.
890 * doc/bison.texinfo (Decl Summary): Split the list into
891 `directives for grammars' and `directives for bison'.
893 Add description of `%name-prefix', `file-prefix', and `output'.
894 Promote `-' over `_' in directive names.
895 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
896 Simplify the description of `--name-prefix'.
897 Promote `-' over `_' in directive names.
898 Promote `--output' over `--output-file'.
899 Fix the description of `--defines'.
900 * tests/output.at: Exercise %file-prefix and %output.
902 2001-11-02 Akim Demaille <akim@epita.fr>
904 * doc/refcard.tex: Update.
906 2001-11-02 Akim Demaille <akim@epita.fr>
908 * src/symtab.h (SUNDEF): New.
909 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
910 stand for `uninitialized', instead of 0.
911 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
912 * src/lex.c (lex): Adjust.
914 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
916 Let yylex return it instead of a plain 0.
917 Reported by Dick Streefland.
919 2001-11-02 Akim Demaille <akim@epita.fr>
921 * tests/regression.at (Mixing %token styles): New test.
923 2001-11-02 Akim Demaille <akim@epita.fr>
925 * src/reader.c (parse_thong_decl): Formatting changes.
926 (token_translations_init): New, extracted from...
930 2001-11-01 Akim Demaille <akim@epita.fr>
932 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
933 Check that `9foo.y' produces correct cpp guards.
934 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
938 2001-11-01 Akim Demaille <akim@epita.fr>
940 * tests/regression.at (Invalid input: 2): New.
941 * src/lex.c (unlexed_token_buffer): New.
942 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
946 2001-11-01 Akim Demaille <akim@epita.fr>
948 * configure.in: Bump to 1.30a.
949 Adjust to newer Autotest.
951 2001-10-26 Akim Demaille <akim@epita.fr>
955 2001-10-26 Paul Eggert <eggert@twinsun.com>
957 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
958 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
959 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
960 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
961 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
962 Sync with fileutils 4.1.1.
964 2001-10-18 Akim Demaille <akim@epita.fr>
967 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
968 avoid spurious failures.
970 2001-10-18 Akim Demaille <akim@epita.fr>
974 2001-10-18 Akim Demaille <akim@epita.fr>
976 * tests/atlocal.in (GCC): Add.
977 * tests/calc.at: s/m4_match/m4_bmatch/.
978 s/m4_patsubst/m4_bpatsubst/.
979 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
980 * configure.in: AC_SUBST(GCC).
982 2001-10-10 Akim Demaille <akim@epita.fr>
985 * configure.in: M4 is no longer needed, but autom4te is.
986 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
989 2001-10-10 Akim Demaille <akim@epita.fr>
993 2001-10-10 Akim Demaille <akim@epita.fr>
996 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
997 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
998 Reported by Airy Andre.
1000 2001-10-10 Akim Demaille <akim@epita.fr>
1002 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1003 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1005 2001-10-02 Akim Demaille <akim@epita.fr>
1009 2001-10-02 Akim Demaille <akim@epita.fr>
1013 2001-10-02 Akim Demaille <akim@epita.fr>
1015 * tests/regression.at (Invalid CPP headers): New.
1016 From Alexander Belopolsky.
1017 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1019 2001-10-02 Akim Demaille <akim@epita.fr>
1021 * tests/regression.at (Invalid input): New.
1022 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1025 2001-10-02 Akim Demaille <akim@epita.fr>
1027 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1029 2001-10-02 Akim Demaille <akim@epita.fr>
1031 * src/output.c (output_parser): Assert `skeleton'.
1032 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1036 2001-10-01 Marc Autret <autret_m@epita.fr>
1038 * src/lex.h: Echo modifications.
1039 * src/lex.c (unlex): Parameter is now token_t.
1042 2001-10-01 Marc Autret <autret_m@epita.fr>
1044 * src/main.c: Include lex.h.
1047 2001-09-29 Akim Demaille <akim@epita.fr>
1049 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1051 2001-09-28 Akim Demaille <akim@epita.fr>
1053 * tests/testsuite.at: Update to newer Autotest.
1054 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1056 2001-09-27 Akim Demaille <akim@epita.fr>
1058 Position independent wrapper.
1060 * tests/bison: Remove.
1061 * tests/bison.in: New.
1062 * configure.in: Adjust.
1064 2001-09-27 Paul Eggert <eggert@twinsun.com>
1066 Port quotearg fixes from tar 1.13.24.
1068 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1070 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1071 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1073 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1074 * m4/mbrtowc.m4: New file.
1075 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1076 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1078 2001-09-27 Akim Demaille <akim@epita.fr>
1082 2001-09-27 Akim Demaille <akim@epita.fr>
1086 2001-09-25 Akim Demaille <akim@epita.fr>
1088 * src/system.h: Include `xalloc.h'.
1089 Remove it from the C files.
1090 * src/files.c (output_files): Free the obstacks.
1091 * src/lex.c (init_lex): Rename as...
1094 * src/main.c (main): Use it.
1096 2001-09-24 Marc Autret <autret_m@epita.fr>
1098 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1099 to output informations in fout (FILE*).
1100 (open_graph, close_graph): Likewise.
1101 (output_graph, output_edge, output_node): Likewise.
1102 * src/vcg.h: Update function prototypes.
1103 * src/print_graph.c (print_graph): Open output graph file.
1104 (print_actions): Adjust.
1105 * src/files.h: Remove extern declaration.
1106 * src/files.c: Remove graph_obstack declaration.
1107 (open_files): Remove graph_obstack initialization.
1108 (output_files): Remove graph_obstack saving.
1110 2001-09-24 Marc Autret <autret_m@epita.fr>
1112 * src/files.c (compute_output_file_names): Fix.
1114 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1116 * src/reader.c (reader): Remove call to free_symtab ().
1117 * src/main.c (main): Call it here.
1119 * src/conflicts.c (initialize_conflicts): Rename as...
1120 (solve_conflicts): this.
1121 * src/print.c (print_core, print_actions, print_state)
1122 (print_grammar): Dump to a file instead a `output_obstack'.
1123 (print_results): Dump `output_obstack', and then proceed with the
1125 * src/files.c (compute_output_file_names, close_files): New.
1126 (output_files): Adjust.
1127 * src/main.c (main): Adjust.
1129 2001-09-23 Marc Autret <autret_m@epita.fr>
1131 * src/files.c (compute_header_macro): Computes header macro name
1132 from spec_defines_file when given.
1134 2001-09-23 Marc Autret <autret_m@epita.fr>
1136 * src/files.c (output_files): Add default extensions.
1138 2001-09-22 Akim Demaille <akim@epita.fr>
1140 * src/conflicts.c (finalize_conflicts): Rename as...
1141 (free_conflicts): this.
1143 2001-09-22 Akim Demaille <akim@epita.fr>
1145 * src/gram.c (gram_free): Rename back as...
1147 (output_token_translations): Free `token_translations'.
1148 * src/symtab.c (free_symtab): Free the tag field.
1150 2001-09-22 Akim Demaille <akim@epita.fr>
1152 Remove `translations' as it is always set to true.
1154 * src/gram.h: Adjust.
1155 * src/reader.c (packsymbols, parse_token_decl): Adjust
1156 * src/print.c (print_grammar): Adjust.
1157 * src/output.c (output_token_translations): Adjust.
1158 * src/lex.c (lex): Adjust.
1159 * src/gram.c: Be sure the set pointers to NULL.
1160 (dummy): Rename as...
1163 2001-09-22 Akim Demaille <akim@epita.fr>
1165 * configure.in: Invoke AM_LIB_DMALLOC.
1166 * src/system.h: Use dmalloc.
1167 * src/LR0.c: Be sure to have pointers initialized to NULL.
1168 (allocate_itemsets): Allocate kernel_items only if needed.
1170 2001-09-22 Akim Demaille <akim@epita.fr>
1172 * configure.in: Bump to 1.29b.
1173 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1174 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1175 need xmalloc.c in calc.y.
1178 2001-09-21 Akim Demaille <akim@epita.fr>
1181 * Makefile.maint, config/config.guess, config/config.sub,
1182 * config/missing: Update from masters.
1183 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1185 * configure.in (ALL_LINGUAS): Add `tr'.
1187 2001-09-21 Akim Demaille <akim@epita.fr>
1189 * tests/Makefile.am (package.m4): Move to...
1190 ($(srcdir)/$(TESTSUITE)): here.
1192 2001-09-20 Akim Demaille <akim@epita.fr>
1194 * src/complain.c: No longer try to be standalone: use system.h.
1195 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1196 * src/complain.h: Likewise.
1197 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1198 Remove the unused variable `n'.
1199 From Albert Chin-A-Young.
1201 2001-09-18 Marc Autret <autret_m@epita.fr>
1203 * doc/bison.1: Update.
1204 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1206 (Option Cross Key): Update.
1209 2001-09-18 Marc Autret <autret_m@epita.fr>
1211 * tests/regression.at: New test (comment in %union).
1213 2001-09-18 Marc Autret <autret_m@epita.fr>
1215 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1217 Reported by Keith Browne.
1219 2001-09-18 Marc Autret <autret_m@epita.fr>
1221 * tests/output.at: Add tests for --defines and --graph.
1223 2001-09-18 Marc Autret <autret_m@epita.fr>
1225 * tests/output.at: Removes tests of %{header,src}_extension features.
1227 2001-09-18 Akim Demaille <akim@epita.fr>
1229 * tests/Makefile.am (package.m4): New.
1230 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1231 (_AT_CHECK_CALC_ERROR): Likewise.
1232 Factor the `, ' part of verbose error messages.
1234 2001-09-18 Marc Autret <autret_m@epita.fr>
1236 * src/getargs.c (longopts): Declare --defines and --graph as options
1237 with optional arguments.
1238 * src/files.h: Add extern declarations.
1239 * src/files.c (spec_graph_file, spec_defines_file): New.
1240 (output_files): Update.
1241 Remove CPP-outed code.
1243 2001-09-18 Marc Autret <autret_m@epita.fr>
1245 Turn off %{source,header}_extension feature.
1247 * src/files.c (compute_exts_from_gf): Update.
1248 (compute_exts_from_src): Update.
1249 (output_files): CPP-out useless code.
1250 * src/files.h: Remove {header,source}_extension extern declarations.
1251 * src/reader.c (parse_dquoted_param): CPP-out.
1252 (parse_header_extension_decl): Remove.
1253 (parse_source_extension_decl): Remove.
1254 (read_declarations): Remove cases tok_{hdrext,srcext}.
1255 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1256 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1258 2001-09-10 Akim Demaille <akim@epita.fr>
1260 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1261 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1262 (AT_CHECK_OUTPUT): this.
1263 Merely check ls' exit status, its output is useless.
1265 2001-09-10 Akim Demaille <akim@epita.fr>
1267 * tests/calc.at: Use m4_match.
1268 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1270 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1272 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1274 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1276 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1277 * src/lex.h: Adjust prototype.
1278 (token_t): Add `tok_undef'.
1279 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1280 (parse_percent_token): Now returns token_t.
1281 Add default statement in switch.
1282 (lex): Separate `c' as an input variable, from the token_t result
1284 (unlexed): Is a token_t.
1286 2001-09-10 Akim Demaille <akim@epita.fr>
1288 * configure.in: Bump to 1.29a.
1290 2001-09-07 Akim Demaille <akim@epita.fr>
1294 2001-08-30 Akim Demaille <akim@epita.fr>
1296 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1297 * m4/atconfig.m4: Remove.
1298 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1300 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1301 m4_if, m4_patsubst, and m4_regexp.
1302 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1303 `input' file instead of echo.
1305 2001-08-29 Akim Demaille <akim@epita.fr>
1309 2001-08-29 Akim Demaille <akim@epita.fr>
1313 2001-08-29 Paul Eggert <eggert@twinsun.com>
1315 * src/bison.simple (yyparse): Don't take the address of an
1316 item before the start of an array, as that doesn't conform to
1319 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1321 * doc/bison.texinfo (Location Tracking Calc): New node.
1323 2001-08-29 Paul Eggert <eggert@twinsun.com>
1325 * src/output.c (output): Do not define const, as this now
1326 causes more problems than it cures.
1328 2001-08-29 Akim Demaille <akim@epita.fr>
1330 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1332 Be sure to tag the `detailmenu'.
1334 2001-08-29 Akim Demaille <akim@epita.fr>
1336 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1337 download in a tmp dir.
1339 2001-08-28 Marc Autret <autret_m@epita.fr>
1341 * config/depcomp: New file.
1343 2001-08-28 Marc Autret <autret_m@epita.fr>
1345 * doc/bison.1 (mandoc): Adjust.
1346 From Juan Manuel Guerrero.
1348 2001-08-28 Marc Autret <autret_m@epita.fr>
1350 * src/print_graph.c (print_state): Fix.
1352 2001-08-27 Marc Autret <autret_m@epita.fr>
1354 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1356 Echo modifications to the functions prototypes.
1357 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1359 2001-08-27 Marc Autret <autret_m@epita.fr>
1361 * src/vcg.c: Include `xalloc.h'.
1362 (add_colorentry): New.
1363 (add_classname): New.
1364 (add_infoname): New.
1365 * src/vcg.h: Add new prototypes.
1367 2001-08-27 Akim Demaille <akim@epita.fr>
1369 * Makefile.maint: Sync. again with CVS Autoconf.
1371 2001-08-27 Akim Demaille <akim@epita.fr>
1373 * Makefile.maint: Formatting changes.
1374 (po-update, cvs-update, update): New targets.
1377 2001-08-27 Akim Demaille <akim@epita.fr>
1379 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1380 * Makefile.maint: Sync. with CVS Autoconf.
1382 2001-08-27 Marc Autret <autret_m@epita.fr>
1384 * src/vcg.h (struct infoname_s): New.
1385 (struct colorentry_s): New.
1386 (graph_s): New fields {vertical,horizontal}_order in structure.
1387 Add `infoname' field.
1388 Add `colorentry' field;
1389 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1390 (G_HORIZONTAL_ORDER): New.
1392 (G_COLORENTRY): New.
1393 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1394 Add output of `infoname'.
1395 Add output of `colorentry'.
1397 2001-08-27 Marc Autret <autret_m@epita.fr>
1399 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1400 This one shadowed a global parameter.
1402 2001-08-24 Marc Autret <autret_m@epita.fr>
1404 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1405 instead of `unsigned'.
1406 (print_state): Do not call obstack_object_size () in obstack_grow ()
1407 to avoid macro variables shadowing.
1409 2001-08-23 Marc Autret <autret_m@epita.fr>
1411 * src/lex.c (percent_table): Typo: s/naem/name/.
1413 Normalize new options declarations.
1415 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1417 * tests/suite.at: Exercise %header_extension and %source_extension.
1419 2001-08-16 Marc Autret <autret_m@epita.fr>
1421 * src/reader.c (parse_dquoted_param): New.
1422 (parse_header_extension_decl): Use it.
1423 (parse_source_extension_decl): Likewise.
1425 2001-08-16 Marc Autret <autret_m@epita.fr>
1427 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1428 (get_xxxx_str): Use assert () instead of complain ().
1429 Remove return invokations in default cases.
1430 (get_decision_str): Modify default behaviour. Remove second argument.
1431 Echo modifications on calls.
1432 (output_graph): Fix.
1434 2001-08-16 Marc Autret <autret_m@epita.fr>
1436 * src/getargs.c (usage): Update with ``-g, --graph''.
1438 2001-08-16 Marc Autret <autret_m@epita.fr>
1440 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1441 (Option Cross Key): Likewise.
1442 * doc/bison.1: Update.
1444 2001-08-15 Akim Demaille <akim@epita.fr>
1448 2001-08-15 Marc Autret <autret_m@epita.fr>
1450 * src/reader.c (readgram): Indent output macro YYSTYPE.
1451 (packsymbols): Likewise.
1452 (output_token_defines): Likewise.
1453 * src/files.c: Standardize.
1454 (compute_header_macro): New.
1455 (defines_obstack_save): New. Use compute_header_macro.
1456 (output_files): Update. Use defines_obstack_save.
1458 2001-08-15 Akim Demaille <akim@epita.fr>
1460 * doc/bison.texinfo (Table of Symbols): Document
1463 2001-08-15 Akim Demaille <akim@epita.fr>
1465 * missing: Update from CVS Automake.
1466 * config/config.guess, config/config.sub, config/texinfo.tex:
1467 Update from gnu.org.
1469 2001-08-15 Akim Demaille <akim@epita.fr>
1471 * Makefile.maint: Sync with CVS Autoconf.
1473 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1475 * doc/bison.texinfo: Include GNU Free Documentation License from
1477 * doc/fdl.texi: Add to package.
1479 2001-08-14 Marc Autret <autret_m@epita.fr>
1481 Turn on %{source,header}_extension features.
1483 * src/lex.c (percent_table): Un-CPP out header_extension and
1485 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1486 (compute_exts_from_src): Remove conditions. It restores priorities
1489 2001-08-14 Marc Autret <autret_m@epita.fr>
1491 * src/files.c (compute_base_names): Add extensions computing when
1492 `--file-prefix' used.
1493 Standardize function calls.
1495 2001-08-13 Marc Autret <autret_m@epita.fr>
1497 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1498 defining it (defined but null disables alloca).
1500 2001-08-13 Marc Autret <autret_m@epita.fr>
1502 * src/bison.simple (_yy_memcpy): CPP reformat.
1504 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1506 * tests/atconfig.in (CPPFLAGS): Fix.
1508 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1510 * doc/bison.texinfo: Include GNU General Public License from
1512 * doc/gpl.texi: Add to package.
1514 2001-08-10 Marc Autret <autret_m@epita.fr>
1516 * src/print_graph.h: Fix.
1517 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1519 2001-08-10 Akim Demaille <akim@epita.fr>
1521 * src/system.h: Provide default declarations for stpcpy, strndup,
1524 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1526 * doc/bison.texinfo (Locations): Update @$ stuff.
1528 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1530 * src/bison.simple (YYLLOC_DEFAULT): Update.
1533 2001-08-08 Marc Autret <autret_m@epita.fr>
1535 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1536 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1537 Reported by Fabrice Bauzac.
1539 2001-08-08 Marc Autret <autret_m@epita.fr>
1541 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1542 * src/vcg.c (output_node): Fix.
1543 * src/vcg.h: Cleanup.
1544 * src/print_graph.c: Add comments.
1545 (node_output_size): New global variable. Simplify the formatting of
1546 the VCG graph output.
1547 (print_actions): Unused code is now used. It notifies the final state
1548 and no action states in the VCG graph. It also give the reduce actions.
1549 The `shift and goto' edges are red and the `go to state' edges are
1551 Get the current node name and node_obstack by argument.
1552 (node_obstack): New variable.
1553 (print_state): Manage node_obstack.
1554 (print_core): Use node_obstack given by argument.
1555 A node is not only computed here but in print_actions also.
1556 (print_graph): CPP out useless code instead of commenting it.
1558 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1560 * tests/atconfig.in (CPPFLAGS): Fix.
1562 2001-08-07 Akim Demaille <akim@epita.fr>
1564 * src/print_graph.c (quote): New.
1565 (print_core): Use it.
1567 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1569 * src/vcg.c (complain.h): Include it.
1570 Unepitaize `return' invocations.
1571 [NDEBUG] (main): Remove.
1572 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1573 * src/files.c (open_files): Initialize graph_obstack.
1574 * src/print_graph.c (print_actions): CPP out useless code.
1575 (print_core): Don't output the last `\n' in labels.
1577 * src/files.c (output_files): Output the VCG file.
1578 * src/main.c (main): Invoke print_graph ();
1580 2001-08-06 Marc Autret <autret_m@epita.fr>
1582 Automaton VCG graph output.
1583 Using option ``-g'' or long option ``--graph'', you can generate
1584 a gram_filename.vcg file containing a VCG description of the LALR (1)
1585 automaton of your grammar.
1587 * src/main.c: Call to print_graph() function.
1588 * src/getargs.h: Update.
1589 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1590 (graph_flag): New flag.
1592 (getargs): Add case `g'.
1593 * src/files.c (graph_obstack): New obstack struct.
1594 (open_files): Initialize new obstack.
1595 (output_files): Saves graph_obstack if required.
1596 * src/files.h (graph_obstack): New extern declaration.
1597 * src/Makefile.am: Add new source files.
1599 2001-08-06 Marc Autret <autret_m@epita.fr>
1601 * src/print_graph.c, src/print_graph.h (graph): New.
1602 * src/vcg.h: New file.
1603 * src/vcg.c: New file, VCG graph handling.
1605 2001-08-06 Marc Autret <autret_m@epita.fr>
1607 Add of %source_extension and %header_extension which specify
1608 the source or/and the header output file extension.
1610 * src/files.c (compute_base_names): Remove initialisation of
1611 src_extension and header_extension.
1612 (compute_exts_from_gf): Update.
1613 (compute_exts_from_src): Update.
1614 (output_files): Update.
1615 * src/reader.c (parse_header_extension_decl): New.
1616 (parse_source_extension_decl): New.
1617 (read_declarations): New case statements for the new tokens.
1618 * src/lex.c (percent_table): Add entries for %source_extension
1619 and %header_extension.
1620 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1622 2001-08-06 Marc Autret <autret_m@epita.fr>
1624 * configure.in: Bump to 1.28c.
1625 * doc/bison.texinfo: Texinfo thingies.
1627 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1629 * tests/atconfig.in (CPPFLAGS): Add.
1630 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1632 2001-08-03 Akim Demaille <akim@epita.fr>
1636 2001-08-03 Akim Demaille <akim@epita.fr>
1638 * tests/Makefile.am (check-local): Ship testsuite.
1639 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1642 2001-08-03 Akim Demaille <akim@epita.fr>
1644 * configure.in: Try using -Wformat when compiling.
1646 2001-08-03 Akim Demaille <akim@epita.fr>
1648 * configure.in: Bump to 1.28b.
1650 2001-08-03 Akim Demaille <akim@epita.fr>
1652 * src/complain.c: Adjust strerror_r portability issues.
1654 2001-08-03 Akim Demaille <akim@epita.fr>
1658 2001-08-03 Akim Demaille <akim@epita.fr>
1660 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1661 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1662 * src/getargs.c: Include complain.h.
1663 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1664 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1666 2001-08-03 Akim Demaille <akim@epita.fr>
1668 * src/reader.c (readgram): Display hidden chars in error messages.
1670 2001-08-03 Akim Demaille <akim@epita.fr>
1672 Update to gettext 0.10.39.
1674 2001-08-03 Akim Demaille <akim@epita.fr>
1676 * lib/strspn.c: New.
1678 2001-08-01 Marc Autret <autret_m@epita.fr>
1680 * doc/bison.texinfo: Update.
1681 * doc/bison.1 (mandoc): Update.
1682 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1683 * src/files.c: Support output files extensions computing.
1684 (src_extension): New static variable.
1685 (header_extension): New static variable.
1687 (get_extension_index): New function, gets the index of an extension
1688 filename in a string.
1689 (compute_exts_from_gf): New function, computes extensions from the
1690 grammar file extension.
1691 (compute_exts_from_src): New functions, computes extensions from the
1692 C source file extension, file given by ``-o'' option.
1693 (compute_base_names): Update.
1694 (output_files): Update.
1696 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1698 * doc/bison.texi: Document @$.
1699 (Locations): New section.
1701 2001-07-18 Akim Demaille <akim@epita.fr>
1703 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1704 * config/prev-version.txt, config/move-if-change: New.
1705 * Makefile.am: Adjust.
1707 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1709 * src/bison.simple (yyparse): Suppress warning `comparaison
1710 between signed and unsigned'.
1712 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1714 * src/getargs.h (raw_flag): Remove.
1715 * src/getargs.c: Die on `-r'/`--raw'.
1716 * src/lex.c (parse_percent_token): Die on `%raw'.
1717 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1718 * tests/calc.at: Suppress test with option `--raw'.
1720 2001-07-14 Akim Demaille <akim@epita.fr>
1723 * configure.in: Require Autoconf 2.50.
1724 Update to gettext 0.10.38.
1726 2001-03-16 Akim Demaille <akim@epita.fr>
1728 * doc/bison.texinfo: ANSIfy the examples.
1730 2001-03-16 Akim Demaille <akim@epita.fr>
1732 * getargs.c (skeleton): New variable.
1733 (longopts): --skeleton is a new option.
1734 (shortopts, getargs): -S is a new option.
1735 * getargs.h: Declare skeleton.
1736 * output.c (output_parser): Use it.
1738 2001-03-16 Akim Demaille <akim@epita.fr>
1740 * m4/strerror_r.m4: New.
1741 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1742 * lib/error.h, lib/error.c: Update.
1744 2001-03-16 Akim Demaille <akim@epita.fr>
1746 * src/getargs.c (longopts): Clean up.
1748 2001-02-21 Akim Demaille <akim@epita.fr>
1750 * src/reader.c (gensym): `gensym_count' is your own.
1751 Use a static buf to create the symbol name, as token_buffer is no
1754 2001-02-08 Akim Demaille <akim@epita.fr>
1756 * src/conflicts.c (conflict_report): Be sure not to append to res
1757 between two calls, which could happen if both first sprintf were
1758 skipped, but not the first cp += strlen.
1760 2001-02-08 Akim Demaille <akim@epita.fr>
1762 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1763 New, from fileutils 4.0.37.
1764 * configure.in: Require Autoconf 2.49c. I took some time before
1765 making this decision. This is the only way out for portability
1766 issues in Bison, it would mean way too much duplicate effort to
1767 import in Bison features implemented in 2.49c since 2.13.
1768 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1770 2001-02-02 Akim Demaille <akim@epita.fr>
1772 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1773 * lib/xalloc.h, lib/xmalloc.c: Update.
1775 2001-01-19 Akim Demaille <akim@epita.fr>
1777 Get rid of the ad hoc handling of token_buffer in the scanner: use
1780 * src/lex.c (token_obstack): New.
1781 (init_lex): Initialize it. No longer call...
1782 (grow_token_buffer): this. Remove it.
1783 Adjust all the places which used it to use the obstack.
1785 2001-01-19 Akim Demaille <akim@epita.fr>
1787 * src/lex.h: Rename all the tokens:
1788 s/\bENDFILE\b/tok_eof/g;
1789 s/\bIDENTIFIER\b/tok_identifier/g;
1791 Let them be enums, not #define, to ease debugging.
1792 Adjust all the code.
1794 2001-01-18 Akim Demaille <akim@epita.fr>
1796 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1797 * src/lex.c (maxtoken, grow_token_buffer): Static.
1799 2001-01-18 Akim Demaille <akim@epita.fr>
1801 Since we now use obstacks, more % directives can be enabled.
1803 * src/lex.c (percent_table): Also accept `%yacc',
1804 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1806 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1807 instead of returning a token.
1808 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1809 * src/reader.c (read_declarations): Adjust.
1810 * src/files.c (open_files): Don't call `compute_base_names', don't
1811 compute `attrsfile' since they depend upon data which might be
1812 *in* the input file now.
1813 (output_files): Do it here.
1814 * src/output.c (output_headers): Document the fact that this patch
1815 introduces a guaranteed SEGV for semantic parsers.
1816 * doc/bison.texinfo: Document them.
1817 * tests/suite.at: Exercise these %options.
1819 2000-12-20 Akim Demaille <akim@epita.fr>
1821 Also handle the output file (--verbose) with obstacks.
1823 * files.c (foutput): Remove.
1824 (output_obstack): New.
1825 Adjust all dependencies.
1826 * src/conflicts.c: Return a string.
1827 * src/system.h (obstack_grow_string): Rename as...
1828 (obstack_sgrow): this. Be ready to work with non literals.
1829 (obstack_fgrow4): New.
1831 2000-12-20 Akim Demaille <akim@epita.fr>
1833 * src/files.c (open_files): Fix the computation of short_base_name
1834 in the case of `-o foo.tab.c'.
1836 2000-12-20 Akim Demaille <akim@epita.fr>
1838 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1839 (copy_dollar): Now that everything uses obstacks, get rid of the
1842 2000-12-20 Akim Demaille <akim@epita.fr>
1844 * src/files.c (open_files): Actually the `.output' file is based
1845 on the short_base_name, not base_name.
1846 * tests/suite.at (Checking output file names): Adjust.
1848 2000-12-20 Akim Demaille <akim@epita.fr>
1850 * src/bison.s1: Remove, we now use directly...
1851 * src/bison.simple: this.
1852 * src/Makefile.am: Use pkgdata instead of data.
1854 2000-12-20 Akim Demaille <akim@epita.fr>
1856 * src/files.c (guard_obstack): New.
1857 (open_files): Initialize it.
1858 (output_files): Dump it...
1859 * src/files.h: Export it.
1860 * src/reader.c (copy_guard): Use it.
1862 2000-12-19 Akim Demaille <akim@epita.fr>
1864 * src/files.c (outfile, defsfile, actfile): Removed as global
1866 (open_files): Don't compute them.
1867 (output_files): Adjust.
1868 (base_name, short_base_name): Be global.
1869 Adjust dependencies.
1871 2000-12-19 Akim Demaille <akim@epita.fr>
1873 * src/files.c (strsuffix): New.
1874 (stringappend): Be just like strcat but allocate.
1875 (base_names): Eve out from open_files.
1876 Try to simplify the rather hairy computation of base_name and
1878 (open_files): Use it.
1879 * tests/suite.at (Checking output file names): New test.
1881 2000-12-19 Akim Demaille <akim@epita.fr>
1883 * src/system.h (obstack_grow_literal_string): Rename as...
1884 (obstack_grow_string): this.
1885 * src/output.c (output_parser): Recognize `%% actions' instead of
1887 * src/bison.s1: s/$/%% actions/.
1888 * src/bison.hairy: Likewise.
1890 2000-12-19 Akim Demaille <akim@epita.fr>
1892 * src/output.c (output_parser): Compute the `#line' lines when
1894 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1895 Suggested by Hans Aberg.
1897 2000-12-19 Akim Demaille <akim@epita.fr>
1899 Let the handling of the skeleton files be local to the procedures
1902 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1904 (fparser, open_extra_files): Remove.
1905 (open_files, output_files): Don't take care of fparser.
1906 * src/files.h: Adjust.
1907 * src/output.c (output_parser): Open and close the file to the
1909 * src/reader.c (read_declarations): When %semantic_parser, open
1912 2000-12-19 Akim Demaille <akim@epita.fr>
1914 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1915 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1917 2000-12-19 Akim Demaille <akim@epita.fr>
1919 * src/files.c (open_files): Yipee! We no longer need all the code
1920 looking for `/tmp' since we have no tmp file.
1922 2000-12-19 Akim Demaille <akim@epita.fr>
1924 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1926 * src/files.c (open_files): Less dependency on MSDOS etc.
1928 2000-12-14 Akim Demaille <akim@epita.fr>
1930 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1931 Provide a default definition.
1932 Use it when executing the default @ action.
1933 * src/reader.c (reader_output_yylsp): No longer include
1934 `timestamp' and `text' in the default YYLTYPE.
1936 2000-12-12 Akim Demaille <akim@epita.fr>
1938 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1939 (copy_guard): Quote the file names.
1940 Reported by Laurent Mascherpa.
1942 2000-12-12 Akim Demaille <akim@epita.fr>
1944 * src/output.c (output_headers, output_program, output): Be sure
1945 to escape special characters when outputting filenames.
1946 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1947 (output_headers): Don't depend on them, Use ACTSTR.
1949 2000-11-17 Akim Demaille <akim@epita.fr>
1951 * lib/obstack.h: Formatting changes.
1952 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1953 prevents type checking.
1954 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1955 cast the value to (void *): assigning a `foo *' to a `void *'
1957 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1958 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1961 2000-11-17 Akim Demaille <akim@epita.fr>
1963 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1965 (suite.m4, regression.m4, calc.m4): these.
1966 * tests/atgeneral.m4: Update from CVS Autoconf.
1968 2000-11-17 Akim Demaille <akim@epita.fr>
1970 * tests/regression.m4 (%union and --defines): New test,
1971 demonstrating a current bug in the obstack implementation.
1973 2000-11-17 Akim Demaille <akim@epita.fr>
1975 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1977 Use them to declare the variables which are global or local to
1980 2000-11-17 Akim Demaille <akim@epita.fr>
1982 * acconfig.h: Remove, no longer used.
1984 2000-11-07 Akim Demaille <akim@epita.fr>
1986 * src: s/Copyright (C)/Copyright/g.
1988 2000-11-07 Akim Demaille <akim@epita.fr>
1990 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1992 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1994 2000-11-07 Akim Demaille <akim@epita.fr>
1996 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1997 Merge in a single CPP if/else.
1999 2000-11-07 Akim Demaille <akim@epita.fr>
2001 * src/output.c (output): Remove useless variables.
2002 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2003 argument `data' for consistency with the prototypes.
2005 (obstack_copy, obstack_copy0): Rename the second argument as
2006 `address' for consistency. Qualify it `const'.
2007 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2008 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2009 `const' their input argument (`data' or `address').
2010 Adjust the corresponding macros to include `const' in casts.
2012 2000-11-03 Akim Demaille <akim@epita.fr>
2014 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2015 s/PFILE1/BISON_HAIRY/.
2016 Adjust dependencies.
2018 2000-11-03 Akim Demaille <akim@epita.fr>
2020 For some reason, this was not applied.
2022 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2023 `unlink': it's no longer used.
2025 2000-11-03 Akim Demaille <akim@epita.fr>
2027 * src/files.c (skeleton_find): New function, eved out of...
2028 (open_files, open_extra_files): here.
2030 2000-11-03 Akim Demaille <akim@epita.fr>
2034 * src/files.c (obstack_save): New function.
2035 (done): Rename as...
2036 (output_files): this.
2038 * src/main.c (main): Don't use `atexit' to register `done', since
2039 it no longer has to remove tmp files, just call `output_files'
2040 when there are no errors.
2042 2000-11-02 Akim Demaille <akim@epita.fr>
2044 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2045 `unlink': it's no longer used.
2046 * src/files.h: Formatting changes.
2048 2000-11-02 Akim Demaille <akim@epita.fr>
2050 Remove the last uses of mktemp and unlink/delete.
2052 * src/files.c (fdefines, ftable): Removed.
2053 (defines_ostack, table_obstack): New.
2054 Adjust dependencies of the former into uses of the latter.
2055 * src/output.c (output_short_or_char_table, output_short_table):
2056 Convert to using obstacks.
2057 * src/reader.c (copy_comment2): Accept one FILE * and two
2059 (output_token_defines, reader_output_yylsp): Use obstacks.
2060 * src/system.h (obstack_fgrow3): New.
2062 2000-11-01 Akim Demaille <akim@epita.fr>
2064 Change each use of `fattrs' into a use of `attrs_obstack'.
2066 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2067 * src/files.c (fattrs): Remove.
2068 (attrs_obstack): New.
2069 Adjust all dependencies.
2070 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2072 2000-11-01 Akim Demaille <akim@epita.fr>
2075 Change each use of `faction' into a use of `action_obstack'.
2077 * lib/obstack.h, lib/obstack.c: New files.
2078 * src/files.c (faction): Remove.
2079 (action_obstack): New.
2080 Adjust all dependencies.
2082 2000-10-20 Akim Demaille <akim@epita.fr>
2084 * lib/quote.h (PARAMS): New macro. Use it.
2086 2000-10-16 Akim Demaille <akim@epita.fr>
2088 * src/output.c (output_short_or_char_table): New function.
2089 (output_short_table, output_token_translations): Use it.
2090 (goto_actions): Use output_short_table.
2092 2000-10-16 Akim Demaille <akim@epita.fr>
2094 * src/symtab.c (bucket_new): New function.
2097 * src/output.c (output_short_table): New argument to display the
2098 comment associated with the table.
2099 Adjust dependencies.
2100 (output_gram): Use it.
2101 (output_rule_data): Nicer output layout for YYTNAME.
2103 2000-10-16 Akim Demaille <akim@epita.fr>
2105 * src/lex.c (read_typename): New function.
2107 * src/reader.c (copy_dollar): Likewise.
2109 2000-10-16 Akim Demaille <akim@epita.fr>
2111 * src/reader.c (copy_comment2): Expect the input stream to be on
2112 the `/' which is suspected to open a comment, instead of being
2113 called after `//' or `/*' was read.
2114 (copy_comment, copy_definition, parse_union_decl, copy_action)
2115 (copy_guard): Adjust.
2117 2000-10-16 Akim Demaille <akim@epita.fr>
2119 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2120 `read_signed_integer'.
2122 2000-10-16 Akim Demaille <akim@epita.fr>
2124 * src/reader.c (copy_dollar): New function.
2125 (copy_guard, copy_action): Use it.
2127 2000-10-16 Akim Demaille <akim@epita.fr>
2129 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2130 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2131 New files, from Fileutils 4.0.27.
2132 * src/main.c (printable_version): Remove.
2133 * src/lex.c, src/reader.c: Use `quote'.
2135 2000-10-04 Akim Demaille <akim@epita.fr>
2137 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2139 2000-10-04 Akim Demaille <akim@epita.fr>
2141 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2143 2000-10-04 Akim Demaille <akim@epita.fr>
2145 When a literal string is used to define two different tokens,
2146 `bison -v' segfaults.
2147 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2149 * tests/regression.m4: New file.
2150 Include the core of the sample provided by Piotr Gackiewicz.
2151 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2154 2000-10-04 Akim Demaille <akim@epita.fr>
2156 * src/reader.c (parse_expect_decl): Keep `count' within the size
2160 2000-10-02 Paul Eggert <eggert@twinsun.com>
2162 * bison.s1 (yyparse): Assign the default value
2163 unconditionally, to avoid a GCC warning and make the parser a
2166 2000-10-02 Akim Demaille <akim@epita.fr>
2168 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2171 2000-10-02 Akim Demaille <akim@epita.fr>
2173 * src/derives.c, src/print.c, src/reduce.c: To ease the
2174 translation, move some `\n' out of the translated strings.
2176 2000-10-02 Akim Demaille <akim@epita.fr>
2178 The location tracking mechanism is precious for parse error
2179 messages. Nevertheless, it is enabled only when `@n' is used in
2180 the grammar, which is a different issue (you can use it in error
2181 message, but not in the grammar per se). Therefore, there should
2182 be another means to enable it.
2184 * src/getargs.c (getargs): Support `--locations'.
2186 * src/getargs.h (locationsflag): Export it.
2187 * src/lex.c (percent_table): Support `%locations'.
2188 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2189 with `locationsflag'.
2190 * doc/bison.texinfo: Document `--locations' and `%locations'.
2192 * tests/calc.m4: Test it.
2194 For regularity of the names, replace each
2195 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2196 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2197 In addition replace each `flag' with `_flag'.
2199 2000-10-02 Akim Demaille <akim@epita.fr>
2201 Also test parse error messages, including with YYERROR_VERBOSE.
2203 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2205 Use it to check the computations.
2206 Use it to check `nonassoc' is honored.
2207 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2208 `--yyerror-verbose'.
2209 (_AT_CHECK_CALC): Adjust to this option.
2210 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2212 2000-10-02 Akim Demaille <akim@epita.fr>
2214 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2215 the latter demonstrates a flaw in the handling of non debugging
2216 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2217 was used in order to simplify:
2233 unfortunately this leads to a CPP conflict when
2234 `--name-prefix=foo' is used since it produces `#define yydebug
2237 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2238 (YYDPRINTF): New macro.
2240 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2242 Also test `--verbose', `--defines' and `--name-prefix'.
2244 2000-10-02 Akim Demaille <akim@epita.fr>
2246 Improve the readability of the produced parsers.
2248 * src/bison.s1: Formatting changes.
2249 Improve the comment related to the `$' mark.
2250 (yydefault): Don't fall through to `yyresume': `goto' there.
2251 * src/output.c (output_parser): When the `$' is met, skip the end
2253 New variable, `number_of_dollar_signs', to check there's exactly
2254 one `$' in the parser skeleton.
2256 2000-10-02 Akim Demaille <akim@epita.fr>
2258 * lib/xstrdup.c: New file, from the fileutils.
2259 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2260 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2261 instead of strlen + xmalloc + strcpy.
2262 * src/symtab.c (copys): Remove, use xstrdup instead.
2264 2000-10-02 Akim Demaille <akim@epita.fr>
2266 * src/gram.h (associativity): New enum type which replaces the
2267 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2268 `right_assoc', `left_assoc' and `non_assoc'.
2269 Adjust all dependencies.
2270 * src/reader.c: Formatting changes.
2271 (LTYPESTR): Don't define it, use it as a literal in
2272 `reader_output_yylsp'.
2273 * src/symtab.h (symbol_class): New enum type which replaces the
2274 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2275 `sunknown', `stoken and `snterm'.
2277 2000-10-02 Akim Demaille <akim@epita.fr>
2279 * src/getargs.c (fixed_outfiles): Rename as...
2280 (yaccflag): for consistency and accuracy.
2281 Adjust dependencies.
2283 2000-10-02 Akim Demaille <akim@epita.fr>
2285 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2286 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2287 difficult and introduced a lot of core dump. It turns out that
2288 Bison used an implementation of `xmalloc' based on `calloc', and
2289 at various places it does depend upon the initialization to 0. I
2290 have not tried to isolate the pertinent places, and all the former
2291 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2292 someone should address this issue.
2294 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2295 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2297 Adjust dependencies.
2298 * src/warshall.h: New file.
2301 2000-10-02 Akim Demaille <akim@epita.fr>
2303 Various anti-`extern in *.c' changes.
2305 * src/system.h: Include `assert.h'.
2307 2000-10-02 Akim Demaille <akim@epita.fr>
2309 * src/state.h (nstates, final_state, first_state, first_shift)
2310 (first_reduction): Move their exportation from here...
2311 * src/LR0.h: to here.
2312 Adjust dependencies.
2313 * src/getargs.c (statisticsflag): New variable.
2314 Add support for `--statistics'.
2315 Adjust dependencies.
2317 Remove a lot of now useless `extern' statements in most files.
2319 2000-10-02 Akim Demaille <akim@epita.fr>
2321 * src/LR0.h: New file.
2324 2000-10-02 Akim Demaille <akim@epita.fr>
2326 * src/print.h: New file.
2328 * src/print.c: Formatting and ordering changes.
2329 (verbose, terse): Replace with...
2330 (print_results): this new function.
2331 Adjust dependencies.
2333 2000-10-02 Akim Demaille <akim@epita.fr>
2335 * src/conflicts.c (conflict_report): New function.
2336 (conflict_log, verbose_conflict_log): Replace with...
2337 (print_conflicts): this function.
2338 Adjust dependencies.
2339 * src/conflicts.h: New file.
2340 Propagate its inclusion.
2342 2000-10-02 Akim Demaille <akim@epita.fr>
2344 * src/nullable.h: New file.
2345 Propagate its inclusion.
2346 * src/nullable.c: Formatting changes.
2348 2000-10-02 Akim Demaille <akim@epita.fr>
2350 * src/reduce.h: New file.
2351 Propagate its inclusion.
2352 * src/reduce.c: Topological sort and other formatting changes.
2353 (bool, TRUE, FALSE): Move their definition to...
2354 * src/system.h: here.
2356 2000-10-02 Akim Demaille <akim@epita.fr>
2358 * src/files.c: Formatting changes.
2359 (tryopen, tryclose, openfiles): Rename as...
2360 (xfopen, xfclose, open_files): this.
2361 (stringappend): static.
2362 * src/files.h: Complete the list of exported symbols.
2365 2000-10-02 Akim Demaille <akim@epita.fr>
2367 * src/reader.h: New file.
2368 Propagate its use instead of tedious list of `extern' and
2370 * src/reader.c: Formatting changes, topological sort,
2373 2000-10-02 Akim Demaille <akim@epita.fr>
2375 * src/lex.h: Prototype `lex.c' exported functions.
2376 * src/reader.c: Adjust.
2377 * src/lex.c: Formatting changes.
2378 (safegetc): Rename as...
2381 2000-10-02 Akim Demaille <akim@epita.fr>
2383 * src/lalr.h: New file.
2384 Propagate its inclusion instead of prototypes and `extern'.
2385 * src/lalr.c: Formatting changes, topological sorting etc.
2387 2000-10-02 Akim Demaille <akim@epita.fr>
2389 * src/output.c (token_actions): Introduce a temporary array,
2390 YYDEFACT, that makes it possible for this function to use
2393 2000-10-02 Akim Demaille <akim@epita.fr>
2395 `user_toknums' is output as a `short[]' in `output.c', while it is
2396 defined as a `int[]' in `reader.c'. For consistency with the
2397 other output tables, `user_toknums' is now defined as a table of
2400 * src/reader.c (user_toknums): Be a short table instead of an int
2402 Adjust dependencies.
2404 Factor the short table outputs.
2406 * src/output.c (output_short_table): New function.
2407 * src/output.c (output_gram, output_stos, output_rule_data)
2408 (output_base, output_table, output_check): Use it.
2410 2000-10-02 Akim Demaille <akim@epita.fr>
2412 * src/output.c (output): Topological sort of the functions, in
2413 order to get rid of the `static' prototypes.
2414 No longer use `register'.
2415 * src/output.h: New file.
2416 Propagate its inclusion in files explicitly prototyping functions
2419 2000-09-21 Akim Demaille <akim@epita.fr>
2421 * src/atgeneral.m4: Update from Autoconf.
2423 2000-09-21 Akim Demaille <akim@epita.fr>
2425 * src/closure.h: New file.
2426 * src/closure.c: Formatting changes, topological sort over the
2427 functions, use of closure.h.
2428 (initialize_closure, finalize_closure): Rename as...
2429 (new_closure, free_closure): these. Adjust dependencies.
2430 * src/LR0.c: Formatting changes, topological sort, use of
2432 (initialize_states): Rename as...
2434 * src/Makefile.am (noinst_HEADERS): Adjust.
2436 2000-09-20 Akim Demaille <akim@epita.fr>
2438 * src/acconfig.h: Don't protect config.h against multiple
2440 Don't define PARAMS.
2441 * src/system.h: Define PARAMS.
2442 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2443 purpose of config.h. system.h must not try to fix wrong
2444 definitions in config.h.
2446 2000-09-20 Akim Demaille <akim@epita.fr>
2448 * src/derives.h: New file.
2449 * src/main.c, src/derives.h: Use it.
2451 * src/Makefile.am (noinst_HEADERS): Adjust.
2453 2000-09-20 Akim Demaille <akim@epita.fr>
2455 * tests/atgeneral.m4: Update from Autoconf.
2456 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2457 (AT_CHECK_CALC): New macros.
2458 Use these macros to test bison with options `', `--raw',
2459 `--debug', `--yacc', `--yacc --debug'.
2461 2000-09-19 Akim Demaille <akim@epita.fr>
2463 * src/output.c: Formatting changes.
2464 * src/machine.h: Remove, leaving its contents in...
2465 * src/system.h: here.
2467 Adjust all dependencies on stdio.h and machine.h.
2468 * src/getargs.h: New file.
2469 Let all `extern' declarations about getargs.c be replaced with
2470 inclusion of `getargs.h'.
2471 * src/Makefile.am (noinst_HEADERS): Adjust.
2473 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2475 (yyerror): Returns void, not int.
2476 * doc/bison.texinfo: Formatting changes.
2478 2000-09-19 Akim Demaille <akim@epita.fr>
2480 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2483 2000-09-18 Akim Demaille <akim@epita.fr>
2485 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2486 * src/Makefile.am (INCLUDES): Don't.
2487 Be ready to fetch headers in lib/.
2489 2000-09-18 Akim Demaille <akim@epita.fr>
2491 * doc/bison.texinfo: Update the copyright.
2492 ANSIfy and GNUify the examples.
2493 Remove the old menu.
2495 2000-09-18 Akim Demaille <akim@epita.fr>
2497 First set of tests: use the `calc' example from the documentation.
2499 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2500 is defined only when YYDEBUG is.
2501 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2502 * src/files.c (tryopen, tryclose): Formatting changes.
2503 Move to the top and be static.
2504 * src/reader.c (read_signed_integer): Likewise.
2505 * tests/calc.m4: New file.
2506 * Makefile.am, suite.m4: Adjust.
2507 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2509 2000-09-18 Akim Demaille <akim@epita.fr>
2511 Add support for an Autotest test suite for Bison.
2513 * m4/m4.m4, m4/atconfig.m4: New files.
2514 * m4/Makefile.am (EXTRA_DIST): Adjust.
2515 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2517 * src/getargs.c: Display a more standard --version message.
2518 * src/reader.c (reader): Formatting changes.
2519 No longer depend upon VERSION_STRING.
2520 * configure.in: No longer use `dnl'.
2521 Set up the test suite and the new directory `tests/.
2522 (VERSION_STRING): Remove.
2524 2000-04-14 Akim Demaille <akim@epita.fr>
2526 * src/reader.c (copy_comment2): New function, same as former
2527 `copy_comment', but outputs into two FILE *.
2528 (copy_comment): Use it.
2529 (parse_union_decl): Use it.
2530 (get_type, parse_start_decl): Use the same `invalid' message.
2531 (parse_start_decl, parse_union_decl): Use the same `multiple'
2533 (parse_union_decl, copy_guard, copy_action): Use the same
2534 `unmatched' message.
2535 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2537 2000-03-31 Akim Demaille <akim@epita.fr>
2539 * src/files.c (tryopen, tryclose): Move to the top.
2542 2000-03-31 Akim Demaille <akim@epita.fr>
2544 * src/main.c (main): Don't call `done', exit does it.
2546 2000-03-31 Akim Demaille <akim@epita.fr>
2548 * allocate.c: s/return (foo)/return foo/.
2551 * output.c: Likewise.
2552 * reader.c: Likewise.
2553 * symtab.c: Likewise.
2554 * vmsgetargs.c: Likewise.
2556 2000-03-31 Akim Demaille <akim@epita.fr>
2558 Clean up the error reporting functions.
2560 * src/report.c: New file.
2561 * src/report.h: Likewise.
2562 * src/Makefile.am: Adjust.
2563 * m4/error.m4: New file.
2564 * m4/Makefile.am: Adjust.
2565 * configure.in (jm_PREREQ_ERROR): Call it.
2566 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2568 (fatal, fatals): Remove. All callers use complain.c::fatal.
2569 (warn, warni, warns, warnss, warnss): Remove. All callers use
2570 complain.c::complain.
2571 (toomany): Remove, use fatal instead.
2572 * src/files.c (done): No argument, use complain_message_count.
2573 * src/main.c (main): Register `done' to `atexit'.
2575 * src/getargs.c (usage): More `fputs', less `fprintf'.
2577 2000-03-28 Akim Demaille <akim@epita.fr>
2579 * lib/: New directory.
2580 * Makefile.am (SUBDIRS): Adjust.
2581 * configure.in: Adjust.
2582 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2584 * src/alloca.c: Moved to lib/.
2585 * src/getopt.c: Likewise.
2586 * src/getopt1.c: Likewise.
2587 * src/getopt.h: Likewise.
2588 * src/ansi2knr.c: Likewise.
2589 * src/ansi2knr.1: Likewise.
2590 * src/Makefile.am: Adjust.
2591 * lib/Makefile.am: New file.
2593 2000-03-28 Akim Demaille <akim@epita.fr>
2595 * src/getargs.c (usage): Refresh the help message.
2597 2000-03-17 Akim Demaille <akim@epita.fr>
2599 * src/getopt1.c: Updated from textutils 2.0e
2600 * src/getopt.c: Likewise.
2601 * src/getopt.h: Likewise.
2603 2000-03-17 Akim Demaille <akim@epita.fr>
2605 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2606 the file name, not the whole `#line LINE FILE'.
2608 2000-03-17 Akim Demaille <akim@epita.fr>
2610 On syntax errors, report the token on which we choked.
2612 * src/bison.s1 (yyparse): In the label yyerrlab, when
2613 YYERROR_VERBOSE, add yychar in msg.
2615 2000-03-17 Akim Demaille <akim@epita.fr>
2617 * src/reader.c (copy_at): New function.
2618 (copy_guard): Use it.
2619 (copy_action): Use it.
2621 2000-03-17 Akim Demaille <akim@epita.fr>
2623 Be kind to translators, save some useless translations.
2625 * src/main.c (banner): New function.
2626 (fatal_banner): Use it.
2627 (warn_banner): Use it.
2629 2000-03-17 Akim Demaille <akim@epita.fr>
2631 * src/reader.c (copy_definition): Use copy_string and
2632 copy_comment. Removed now unused `match', `ended',
2634 (copy_comment, copy_string): Moved, to be visible from
2637 2000-03-17 Akim Demaille <akim@epita.fr>
2639 * src/reader.c (copy_string): Declare `static inline'. No
2640 problems with inline, since it is checked by configure.
2641 (copy_comment): Likewise.
2643 2000-03-17 Akim Demaille <akim@epita.fr>
2645 * src/reader.c (packsymbols): Formatting changes.
2647 2000-03-17 Akim Demaille <akim@epita.fr>
2649 * src/reader.c (copy_comment): New function, factored out from:
2650 (copy_action): Use it. Removed now unused `match', `ended',
2652 (copy_guard): Likewise.
2654 2000-03-17 Akim Demaille <akim@epita.fr>
2656 * src/reader.c (copy_string): New function, factored out from:
2657 (copy_action): Use it.
2658 (copy_guard): Likewise.
2660 2000-03-17 Akim Demaille <akim@epita.fr>
2662 Change the handling of @s so that they behave exactly like $s.
2663 There is now a pseudo variable @$ (readble and writable), location
2664 of the lhs of the rule (by default ranging from the location of
2665 the first symbol of the rhs, to the location of the last symbol,
2666 or, if the rhs is empty, YYLLOC).
2668 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2670 (yyparse): When providing a default semantic action, provide a
2671 default location action.
2672 (after the $): No longer change `*YYLSP', just stack YYLOC the
2673 same way you stack YYVAL.
2674 * src/reader.c (read_declarations): Use warns.
2675 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2676 (copy_action, case '@'): Likewise.
2677 Use a standard error message, to save useless work from
2680 2000-03-17 Akim Demaille <akim@epita.fr>
2682 * src/bison.s1: Formatting and cosmetics changes.
2683 * src/reader.c: Likewise.
2684 Update the Copyright notice.
2686 2000-03-17 Akim Demaille <akim@epita.fr>
2688 * src/bison.s1 (#line): All set to `#line' only, since the
2689 Makefile now handles them.
2691 2000-03-16 Akim Demaille <akim@epita.fr>
2693 * src/output.c (output_rule_data): Output the documentation of
2695 (Copyright notice): Update.
2698 2000-03-16 Akim Demaille <akim@epita.fr>
2700 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2701 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2702 One `#if YYDEBUG' remains, since it uses variables which are
2703 defined only if `YYDEBUG != 0'.
2705 2000-03-16 Akim Demaille <akim@epita.fr>
2707 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2708 and related variables so that the similarities are highlighted.
2710 2000-03-16 Akim Demaille <akim@epita.fr>
2712 * src/bison.s1: Properly indent CPP directives.
2714 2000-03-16 Akim Demaille <akim@epita.fr>
2716 * src/bison.s1: Properly indent the `alloca' CPP section.
2718 2000-03-16 Akim Demaille <akim@epita.fr>
2720 Do not hard code values of directories in `configure.in'.
2721 Update the `configure' tool chain.
2723 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2725 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2726 (AC_OUTPUT): Add m4/Makefile.
2727 Bump to bison 1.28a, 1.29 has never been released.
2728 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2729 handled via src/Makefile.am.
2730 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2731 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2733 * Makefile.am (SUBDIRS): Add m4.
2734 (ACLOCAL_AM_FLAGS): New variable.
2735 (AUTOMAKE_OPTIONS): Add check-news.
2736 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2737 the proper line number and file name.
2738 (DEFS): Propagate the location of bison library files and of the
2740 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2742 * acinclude.m4: Remove, replaced by the directory m4.
2743 * m4/Makefile.am (EXTRA_DIST): New variable.
2744 * m4/gettext.m4: New file, from the fileutils.
2745 * m4/lcmessage.m4: Likewise
2746 * m4/progtest.m4: Likewise.
2747 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2749 2000-03-10 Akim Demaille <akim@epita.fr>
2752 Formatting changes of various comments.
2753 Respect the GNU coding standards at various places.
2754 Don't use `_()' when no translation is needed.
2756 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2759 OS/2 honors TMPDIR environment variable.
2761 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2763 * doc/bison.texinfo: Tweaked spelling and grammar.
2765 Removed reference to price of printed copy.
2766 Mention BISON_SIMPLE and BISON_HAIRY.
2768 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2770 * configure.in, NEWS:
2771 Bison 1.29 released.
2773 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2775 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2776 Added reference card.
2778 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2780 * po/ru.po: Added Russian translation.
2782 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2784 * configure.in: Added Russian translation.
2786 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2788 * configure.in, NEWS, README:
2789 Released version 1.28.
2791 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2794 Squashed redefinition warning on some systems.
2796 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2797 Have configure build version string instead of relying on ANSI string
2800 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2802 * po/POTFILES.in: Got rid of version.c.
2804 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2806 * acconfig.h, configure.in:
2807 Have configure build version string instead of relying on ANSI string
2810 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2813 Dropped mention of `+' for long-named options.
2815 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2817 * src/files.c: Added <unistd.h> for unlink().
2819 * src/Makefile.am, src/system.h:
2822 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2824 * README: Added a FAQ list.
2826 * configure.in, acconfig.h:
2829 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2831 * doc/FAQ, doc/Makefile.am:
2834 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2836 * src/alloc.h, src/symtab.h, src/version.c:
2837 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2839 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2841 * src/.cvsignore, src/Makefile.am:
2842 Reorganized: sources in `src', documentation in `doc'.
2844 * src/lex.c (literalchar):
2845 fixed the code for escaping double quotes (thanks
2848 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2850 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2851 Adjusted paths to reflect directory reorganization.
2853 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2855 * doc/.cvsignore, doc/Makefile.am:
2856 Reorganized: sources in `src', documentation in `doc'.
2858 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2861 Updated AC_INIT file to reflect directory reorganization.
2863 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2864 Reorganized: sources in `src', documentation in `doc'.
2866 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2869 Don't declare calloc() and realloc() if not necessary.
2871 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2873 * configure.in, acconfig.h, acinclude.m4:
2874 Don't declare calloc() and realloc() if not necessary.
2876 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2878 * po/.cvsignore: Added i18n support.
2880 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2882 * acconfig.h, configure.in, Makefile.am:
2885 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2887 * src/bison.s1: Fixed #line numbers.
2889 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2891 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2892 Added PO files from Translation Project.
2894 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2897 Added support for non-ANSI compilers (ansi2knr).
2899 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2901 * configure.in: Bumped version number to 1.27.
2904 Added `bison.simple' to list of files removed by `make distclean'.
2906 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2908 * src/files.c, src/files.h:
2909 Defined locations of parser files in config.h instead of Makefile.
2911 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2913 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2914 Defined locations of parser files in config.h instead of Makefile.
2916 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2919 Removed inappropriate use of $< macro.
2921 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2923 * po/Makefile.in.in, po/POTFILES.in:
2924 Add `po' directory skeleton.
2926 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2928 * README: Document help-bison list.
2930 * configure.in: Add check for mkstemp().
2932 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2934 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2935 Hush a few compiler warnings.
2938 Add tryclose(), which verifies that fclose was successful.
2939 Hush a couple of compiler warnings.
2941 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2943 * Makefile.am, OChangeLog:
2944 ChangeLog is now automatically generated. Include the old version as
2947 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2949 * 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:
2952 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2954 * doc/bison.texinfo: Fix formatting glitch.
2956 * doc/bison.texinfo: Update FSF address.
2958 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2960 * acconfig.h: Update FSF address.
2962 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2965 Don't define PACKAGE here, since config.h defines it.
2967 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2969 * src/reader.c: Update copyright date.
2972 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2973 favor of output directly to stderr (avoids buffer overruns).
2975 * src/reader.c: Some checks for premature EOF.
2977 * 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:
2978 Use prototypes if the compiler understands them.
2980 * src/files.c: Honor TMPDIR on Unix hosts.
2981 Use prototypes if the compiler understands them.
2984 Fix a couple of buffer overrun bugs.
2985 Use prototypes if the compiler understands them.
2987 * src/system.h: Include unistd.h and ctype.h.
2988 Use #ifdef instead of #if for NLS symbols.
2990 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2992 * doc/bison.texinfo:
2993 Delete comment "consider using @set for edition number, etc..." since
2994 we now are doing so.
2996 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2999 Use prototypes if the compiler understands them.
3001 * NEWS: Document 1.26 highlights.
3003 * Makefile.am: Require Automake 1.3 or later.
3006 Use prototypes if the compiler understands them.
3008 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3011 Use VERSION symbol from automake for version number.
3013 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3015 * acconfig.h, configure.in, version.cin:
3016 Use VERSION symbol from automake for version number.
3018 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3021 Distribute original version of simple parser (bison.s1), not built
3022 version (bison.simple).
3024 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3026 * doc/bison.texinfo: Add info dir entry.
3028 * doc/bison.texinfo:
3029 Let automake put version number into documentation.
3031 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3033 * src/bison.cld, src/build.com, src/vmshlp.mar:
3034 Add non-RCS files from /gd/gnu/bison.
3036 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3039 Document the BISON_HAIRY and BISON_SIMPLE variables.
3041 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3043 * src/version.c: Build version.c automatically.
3046 Fix token numbering (used to start at 258, not 257).
3048 * src/system.h: Include config.h.
3050 * src/getargs.c: Update bug report address.
3052 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3053 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3055 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3058 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3060 * configure.in, version.cin:
3061 Build version.c automatically.
3063 * AUTHORS: Add AUTHORS file.
3065 * README: Update bug report address.
3068 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3070 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3073 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3075 * doc/bison.texinfo: Clean up some formatting.
3077 1998-05-05 Richard Stallman <rms@gnu.org>
3079 * doc/bison.texinfo:
3080 Explain better why to make a pure parser.
3082 1998-01-05 Richard Stallman <rms@gnu.org>
3084 * src/files.c (openfiles):
3085 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3086 find a temporary directory, if possible. Do not unlink files while
3089 1997-08-25 Richard Stallman <rms@gnu.org>
3091 * src/reader.c (stack_offset;):
3092 Change some warni to warns.
3094 * src/lex.c (literalchar): Use warns, not warni.
3096 1997-06-28 Richard Stallman <rms@gnu.org>
3098 * src/bison.s1: Add a Bison version comment.
3100 * src/main.c (fatal, warn, berror):
3103 1997-06-28 Richard Stallman <rms@gnu.org>
3105 * Makefile.in (bison_version): New variable.
3106 (dist): Use that variable.
3107 (bison.s1): Substitute the Bison version into bison.simple.
3109 * bison.simple: Add a Bison version comment.
3111 1997-06-18 Richard Stallman <rms@gnu.org>
3113 * src/main.c (fatal, warn, berror):
3114 Make error messages standard.
3115 (toomany): Improve error message text.
3117 * 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:
3118 new.h renamed to alloc.h.
3120 1997-06-18 Richard Stallman <rms@gnu.org>
3122 * Makefile.in: new.h renamed to alloc.h.
3124 1997-05-24 Richard Stallman <rms@gnu.org>
3126 * src/lex.c (literalchar):
3127 Fix the code for escaping \, " and '.
3129 (lex): Avoid trouble when there are many chars
3130 to discard in a char literal with just several chars in it.
3132 1997-05-17 Richard Stallman <rms@gnu.org>
3135 Use malloc, if using alloca is troublesome.
3136 (YYSTACK_USE_ALLOCA): New flag macro.
3137 Define it for some systems and compilers.
3138 (YYSTACK_ALLOC): New macro.
3139 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3140 If it was malloc'd, free it.
3142 1997-05-17 Richard Stallman <rms@gnu.org>
3145 Use malloc, if using alloca is troublesome.
3146 (YYSTACK_USE_ALLOCA): New flag macro.
3147 Define it for some systems and compilers.
3148 (YYSTACK_ALLOC): New macro.
3149 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3150 If it was malloc'd, free it.
3152 1997-04-23 Richard Stallman <rms@gnu.org>
3155 (alloca) [__hpux]: Always define as __builtin_alloca.
3157 1997-04-23 Richard Stallman <rms@gnu.org>
3160 (alloca) [__hpux]: Always define as __builtin_alloca.
3162 1997-04-22 Richard Stallman <rms@gnu.org>
3165 [__hpux]: Include alloca.h (right for HPUX 10)
3166 instead of declaring alloca (right for HPUX 9).
3168 * src/bison.s1 (__yy_memcpy):
3169 Declare arg `count' as unsigned int.
3170 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3172 1997-04-22 Richard Stallman <rms@gnu.org>
3175 [__hpux]: Include alloca.h (right for HPUX 10)
3176 instead of declaring alloca (right for HPUX 9).
3178 * bison.simple (__yy_memcpy):
3179 Declare arg `count' as unsigned int.
3180 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3182 1997-01-03 Richard Stallman <rms@gnu.org>
3184 * src/allocate.c: [__STDC__ or _MSC_VER]:
3185 Declare calloc and realloc to return void *.
3187 1997-01-02 Richard Stallman <rms@gnu.org>
3190 [_MSC_VER]: Include stdlib.h and process.h.
3191 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3193 * src/main.c (main): Return FAILURE as a value.
3194 (printable_version): Declare arg as int, not char.
3196 1997-01-02 Richard Stallman <rms@gnu.org>
3198 * Makefile.in (dist):
3199 Explicitly check for symlinks, and copy them.
3201 1996-12-19 Richard Stallman <rms@gnu.org>
3204 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3206 1996-12-18 Paul Eggert <eggert@gnu.org>
3208 * src/bison.s1 (yyparse):
3209 If __GNUC__ and YYPARSE_PARAM are both defined,
3210 declare yyparse to have a void * argument.
3212 1996-12-18 Paul Eggert <eggert@gnu.org>
3214 * bison.simple (yyparse):
3215 If __GNUC__ and YYPARSE_PARAM are both defined,
3216 declare yyparse to have a void * argument.
3218 1996-12-17 Richard Stallman <rms@gnu.org>
3220 * src/reduce.c (nbits): Add some casts.
3222 1996-08-12 Richard Stallman <rms@gnu.org>
3224 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3226 1996-08-12 Richard Stallman <rms@gnu.org>
3228 * bison.simple: Test _MSDOS as well as _MSDOS_.
3230 1996-07-31 Richard Stallman <rms@gnu.org>
3233 [__sun && __i386]: Include alloca.h.
3235 1996-07-31 Richard Stallman <rms@gnu.org>
3238 [__sun && __i386]: Include alloca.h.
3240 1996-07-30 Richard Stallman <rms@gnu.org>
3242 * src/bison.s1: Comment change.
3244 * src/bison.s1: Test _MSDOS_, not MSDOS.
3246 1996-07-30 Richard Stallman <rms@gnu.org>
3248 * bison.simple: Comment change.
3250 * bison.simple: Test _MSDOS_, not MSDOS.
3252 1996-06-01 Richard Stallman <rms@gnu.org>
3254 * 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:
3255 Insert `_' macro around many string constants.
3258 Insert `_' macro around many string constants.
3260 (main): Call setlocale, bindtextdomain and textdomain.
3262 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3263 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3264 [ENABLE_NLS]: Include libintl.h.
3265 [ENABLE_NLS] (gettext): Define.
3266 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3267 (N_, PACKAGE, LOCALEDIR): New macros.
3269 1996-06-01 Richard Stallman <rms@gnu.org>
3271 * POTFILES.in: New file.
3273 * Makefile.in (allocate.o):
3274 Define target explicitly.
3276 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3277 (LDFLAGS): Set to @LDFLAGS@.
3278 (configure): Run autoconf only if preceding `cd' succeeds.
3279 (bison.s1): Redirect output to temporary file then move the
3280 temporary to the target, rather than redirecting directly to bison.s1.
3281 (clean): Remove config.status and config.log.
3282 (distclean): Don't remove config.status here.
3284 1996-05-12 Richard Stallman <rms@gnu.org>
3287 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3289 1996-05-12 Richard Stallman <rms@gnu.org>
3292 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3294 1996-05-11 Richard Stallman <rms@gnu.org>
3296 * src/bison.s1 (__yy_memcpy):
3297 Really reorder the args, as was supposedly done on Feb 14 1995.
3298 (yyparse): Calls changed accordingly.
3300 1996-05-11 Richard Stallman <rms@gnu.org>
3302 * Makefile.in (dist): Don't use $(srcdir).
3304 * bison.simple (__yy_memcpy):
3305 Really reorder the args, as was supposedly done on Feb 14 1995.
3306 (yyparse): Calls changed accordingly.
3308 1996-01-27 Richard Stallman <rms@gnu.org>
3310 * src/output.c (output_rule_data):
3311 Test YYERROR_VERBOSE in the conditional
3312 around the definition of ttyname.
3314 1995-12-29 Richard Stallman <rms@gnu.org>
3317 Fix line numbers in #line commands.
3319 1995-12-29 Richard Stallman <rms@gnu.org>
3322 Fix line numbers in #line commands.
3324 1995-12-27 Richard Stallman <rms@gnu.org>
3326 * src/bison.s1 (YYPARSE_PARAM_DECL):
3327 In C++, make it always null.
3328 (YYPARSE_PARAM_ARG): New macro.
3329 (yyparse): Use YYPARSE_PARAM_ARG.
3331 1995-12-27 Richard Stallman <rms@gnu.org>
3333 * bison.simple (YYPARSE_PARAM_DECL):
3334 In C++, make it always null.
3335 (YYPARSE_PARAM_ARG): New macro.
3336 (yyparse): Use YYPARSE_PARAM_ARG.
3338 1995-11-29 Richard Stallman <rms@gnu.org>
3340 * doc/bison.texinfo:
3341 Describe literal string tokens, %raw, %no_lines, %token_table.
3343 1995-11-29 Daniel Hagerty <hag@gnu.org>
3345 * doc/bison.texinfo: Fixed update date
3347 1995-10-16 Richard Stallman <rms@gnu.org>
3349 * src/version.c: Version 1.25.
3351 1995-10-16 Richard Stallman <rms@gnu.org>
3353 * NEWS: *** empty log message ***
3355 1995-10-16 Richard Stallman <rms@gnu.org>
3357 * doc/bison.1, doc/bison.rnh:
3360 1995-10-15 Richard Stallman <rms@gnu.org>
3362 * src/vmsgetargs.c, src/getargs.c:
3363 Added -n, -k, and -raw switches.
3364 (noparserflag, toknumflag, rawtoknumflag): New variables.
3366 * src/symtab.h (SALIAS):
3367 New #define for adding aliases to %token.
3368 (struct bucket): Added `alias' field.
3370 * src/reduce.c (reduce_grammar):
3371 Revise error message.
3372 (print_notices): Remove final `.' from error message.
3374 * src/reader.c (reader_output_yylsp):
3376 (readgram): Use `#if 0' around code that accepted %command
3377 inside grammar rules: The documentation doesn't allow it,
3378 and it will fail since the %command processors scan for the next %.
3379 (parse_token_decl): Extended the %token
3380 declaration to allow a multi-character symbol as an alias.
3381 (parse_thong_decl): New function.
3382 (read_declarations): Added %thong declarations.
3383 (read_declarations): Handle NOOP to deal with allowing
3384 % declarations as another means to specify the flags.
3385 (readgram): Allow %prec prior to semantics embedded in a rule.
3386 (skip_to_char, read_declarations, copy_definition)
3387 (parse_token_decl, parse_start_decl, parse_type_decl)
3388 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3389 (get_type_name, copy_guard, copy_action, readgram)
3390 (get_type, packsymbols): Revised most error messages.
3391 Changed `fatal' to `warnxxx' to avoid aborting for error.
3392 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3393 (read_declarations): Improve the error message for
3394 an invalid character. Do not abort.
3395 (read_declarations, copy_guard, copy_action): Use
3396 printable_version to avoid unprintable characters in printed output.
3397 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3398 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3399 Allow the type of a non-terminal can be given
3400 more than once, as long as all specifications give the same type.
3403 (output_headers, output_trailers, output, output_gram)
3404 (output_rule_data): Implement noparserflag variable.
3405 Implement toknumflag variable.
3406 (output): Call reader_output_yylsp to output LTYPESTR.
3408 * src/main.c (main):
3409 If reader sees an error, don't process the grammar.
3410 (fatals): Updated to not use VARARGS1.
3411 (printable_version, int_to_string, warn, warni, warns, warnss)
3412 (warnsss): New error reporting functions. Avoid abort for error.
3415 Added THONG and NOOP for alias processing.
3416 Added SETOPT for the new code that allows setting options with %flags.
3419 Include getopt.h. Add some extern decls.
3420 (safegetc): New function to deal with EOF gracefully.
3421 (literalchar); new function to deal with reading \ escapes.
3422 (lex): Use literalchar.
3423 (lex): Implemented "..." tokens.
3424 (literalchar, lex, parse_percent_token): Made tokenbuffer
3425 always contain the token. This includes growing the token
3426 buffer while reading an integer.
3427 (parse_percent_token): Replaced if-else statement with percent_table.
3428 (parse_percent_token): Added % declarations as another
3429 way to specify the flags -n, -l, and -r. Also added hooks for
3430 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3431 major changes to files.c.
3432 (lex) Retain in the incoming stream a character following
3434 (skip_white_space, lex): Revised most error messages
3435 and changed fatal to warn to avoid aborting.
3436 (percent_table): Added %thong declarations.
3438 * src/gram.h: Comment changes.
3440 * src/files.c (openfiles, open_extra_files, done):
3442 and actfile file. Handle noparserflag. Both for -n switch.
3444 * src/conflicts.c (resolve_sr_conflict):
3445 Remove use of alloca.
3447 1995-06-01 Jim Meyering <meyering@gnu.org>
3449 * doc/bison.texinfo: *** empty log message ***
3451 1995-05-06 Richard Stallman <rms@gnu.org>
3453 * src/bison.s1: Comment change.
3455 1995-05-06 Richard Stallman <rms@gnu.org>
3457 * bison.simple: Comment change.
3459 1995-05-03 Richard Stallman <rms@gnu.org>
3461 * src/version.c: Version now 1.24.
3463 * src/bison.s1: Change distribution terms.
3465 * src/version.c: Version now 1.23.
3467 1995-05-03 Richard Stallman <rms@gnu.org>
3469 * doc/bison.texinfo:
3470 Rewrite "Conditions for Using Bison".
3471 Update version to 1.24.
3473 1995-05-03 Richard Stallman <rms@gnu.org>
3475 * bison.simple: Change distribution terms.
3477 1995-02-23 Richard Stallman <rms@gnu.org>
3479 * src/files.c: Test __VMS_POSIX as well as VMS.
3481 1995-02-14 Jim Meyering <meyering@gnu.org>
3483 * src/bison.s1 (__yy_memcpy):
3484 Renamed from __yy_bcopy to avoid
3485 confusion. Reverse FROM and TO arguments to be consistent with
3488 1995-02-14 Jim Meyering <meyering@gnu.org>
3490 * bison.simple (__yy_memcpy):
3491 Renamed from __yy_bcopy to avoid
3492 confusion. Reverse FROM and TO arguments to be consistent with
3495 1994-11-10 David J. MacKenzie <djm@gnu.org>
3501 * Makefile.in (DISTFILES): Include NEWS.
3503 * Makefile.in (DISTFILES):
3504 Include install-sh, not install.sh.
3506 * configure.in: Update to Autoconf v2 macro names.
3508 1994-10-05 David J. MacKenzie <djm@gnu.org>
3510 * Makefile.in: fix typo
3512 * Makefile.in (prefix, exec_prefix):
3513 Let configure set them.
3515 1994-09-28 David J. MacKenzie <djm@gnu.org>
3517 * Makefile.in: Set datadir to $(prefix)/share.
3519 1994-09-15 Richard Stallman <rms@gnu.org>
3522 Update copyright notice and GPL version.
3524 1994-09-15 Richard Stallman <rms@gnu.org>
3527 Update copyright notice and GPL version.
3529 1994-07-12 Richard Stallman <rms@gnu.org>
3531 * src/reduce.c, src/reader.c:
3534 1994-05-05 David J. MacKenzie <djm@gnu.org>
3536 * Makefile.in: entered into RCS
3538 1994-03-26 Richard Stallman <rms@gnu.org>
3540 * src/bison.s1: entered into RCS
3542 1994-03-26 Richard Stallman <rms@gnu.org>
3544 * bison.simple: entered into RCS
3546 1994-03-25 Richard Stallman <rms@gnu.org>
3548 * src/main.c: entered into RCS
3550 1994-03-24 Richard Stallman <rms@gnu.org>
3552 * src/conflicts.c: entered into RCS
3554 1994-01-02 Richard Stallman <rms@gnu.org>
3556 * Makefile.in: *** empty log message ***
3558 1993-11-21 Richard Stallman <rms@gnu.org>
3560 * src/bison.s1: *** empty log message ***
3562 1993-11-21 Richard Stallman <rms@gnu.org>
3564 * doc/bison.texinfo: entered into RCS
3566 * doc/bison.texinfo: *** empty log message ***
3568 1993-11-21 Richard Stallman <rms@gnu.org>
3570 * bison.simple: *** empty log message ***
3572 1993-10-25 David J. MacKenzie <djm@gnu.org>
3574 * doc/bison.texinfo: *** empty log message ***
3576 1993-10-19 Richard Stallman <rms@gnu.org>
3578 * src/bison.s1: *** empty log message ***
3580 1993-10-19 Richard Stallman <rms@gnu.org>
3582 * bison.simple: *** empty log message ***
3584 1993-10-14 Richard Stallman <rms@gnu.org>
3586 * src/bison.s1: *** empty log message ***
3588 1993-10-14 Richard Stallman <rms@gnu.org>
3590 * bison.simple: *** empty log message ***
3592 1993-09-14 David J. MacKenzie <djm@gnu.org>
3594 * doc/bison.texinfo: *** empty log message ***
3596 1993-09-13 Noah Friedman <friedman@gnu.org>
3598 * Makefile.in: *** empty log message ***
3600 1993-09-10 Richard Stallman <rms@gnu.org>
3602 * src/conflicts.c: *** empty log message ***
3604 * src/system.h: entered into RCS
3606 1993-09-10 Richard Stallman <rms@gnu.org>
3608 * doc/bison.1: entered into RCS
3610 1993-09-06 Noah Friedman <friedman@gnu.org>
3612 * src/version.c: entered into RCS
3614 1993-09-06 Noah Friedman <friedman@gnu.org>
3616 * Makefile.in: *** empty log message ***
3618 1993-07-30 David J. MacKenzie <djm@gnu.org>
3620 * Makefile.in: *** empty log message ***
3622 1993-07-24 Richard Stallman <rms@gnu.org>
3624 * src/bison.s1: *** empty log message ***
3626 1993-07-24 Richard Stallman <rms@gnu.org>
3628 * bison.simple: *** empty log message ***
3630 1993-07-08 David J. MacKenzie <djm@gnu.org>
3632 * Makefile.in: *** empty log message ***
3634 1993-07-04 Richard Stallman <rms@gnu.org>
3636 * src/bison.s1: *** empty log message ***
3638 1993-07-04 Richard Stallman <rms@gnu.org>
3640 * bison.simple: *** empty log message ***
3642 1993-06-26 David J. MacKenzie <djm@gnu.org>
3644 * src/getargs.c: entered into RCS
3646 1993-06-26 David J. MacKenzie <djm@gnu.org>
3648 * doc/bison.texinfo: *** empty log message ***
3650 * doc/bison.1: New file.
3652 1993-06-25 Richard Stallman <rms@gnu.org>
3654 * src/getargs.c: New file.
3656 1993-06-16 Richard Stallman <rms@gnu.org>
3658 * src/bison.s1: *** empty log message ***
3660 1993-06-16 Richard Stallman <rms@gnu.org>
3662 * bison.simple: *** empty log message ***
3664 1993-06-03 Richard Stallman <rms@gnu.org>
3666 * src/bison.s1: New file.
3668 1993-06-03 Richard Stallman <rms@gnu.org>
3670 * doc/bison.texinfo: *** empty log message ***
3672 1993-06-03 Richard Stallman <rms@gnu.org>
3674 * bison.simple: New file.
3676 1993-05-19 Richard Stallman <rms@gnu.org>
3678 * doc/bison.texinfo: New file.
3680 1993-05-07 Noah Friedman <friedman@gnu.org>
3682 * Makefile.in: *** empty log message ***
3684 1993-04-28 Noah Friedman <friedman@gnu.org>
3686 * src/reader.c: *** empty log message ***
3688 1993-04-23 Noah Friedman <friedman@gnu.org>
3690 * src/alloc.h: entered into RCS
3692 1993-04-20 David J. MacKenzie <djm@gnu.org>
3694 * src/version.c: *** empty log message ***
3696 * src/files.c, src/allocate.c:
3699 * src/reader.c: *** empty log message ***
3701 * src/lex.c: entered into RCS
3703 * src/conflicts.c: New file.
3705 * src/symtab.c: entered into RCS
3707 * src/alloc.h: New file.
3709 * src/LR0.c: entered into RCS
3711 1993-04-18 Noah Friedman <friedman@gnu.org>
3713 * src/reader.c: New file.
3715 * src/version.c: *** empty log message ***
3717 1993-04-18 Noah Friedman <friedman@gnu.org>
3719 * Makefile.in: *** empty log message ***
3721 1993-04-17 Noah Friedman <friedman@gnu.org>
3723 * Makefile.in: *** empty log message ***
3725 1993-04-15 Richard Stallman <rms@gnu.org>
3727 * src/main.c, src/files.c:
3730 1993-04-15 Noah Friedman <friedman@gnu.org>
3732 * configure.in: entered into RCS
3734 * configure.in: *** empty log message ***
3736 * configure.in: New file.
3738 1993-04-14 Richard Stallman <rms@gnu.org>
3740 * Makefile.in: New file.
3742 1993-04-13 Richard Stallman <rms@gnu.org>
3744 * src/version.c: New file.
3746 1993-03-25 Richard Stallman <rms@gnu.org>
3748 * src/output.c: entered into RCS
3750 1992-09-25 Richard Stallman <rms@gnu.org>
3752 * configure.bat: entered into RCS
3754 1992-06-22 Richard Stallman <rms@gnu.org>
3756 * src/vmsgetargs.c: entered into RCS
3758 1992-06-22 Richard Stallman <rms@gnu.org>
3760 * doc/bison.rnh: entered into RCS
3762 1992-04-20 David J. MacKenzie <djm@gnu.org>
3764 * README: entered into RCS
3766 1992-01-22 Richard Stallman <rms@gnu.org>
3768 * src/machine.h: entered into RCS
3770 1991-12-21 Richard Stallman <rms@gnu.org>
3772 * src/lalr.c, src/closure.c:
3775 1991-12-20 Richard Stallman <rms@gnu.org>
3777 * src/state.h: entered into RCS
3779 1991-12-18 Richard Stallman <rms@gnu.org>
3781 * src/print.c, src/nullable.c, src/derives.c:
3784 1991-11-03 David J. MacKenzie <djm@gnu.org>
3786 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3789 1988-09-09 Richard Stallman <rms@gnu.org>
3791 * src/bison.hairy: entered into RCS
3793 1987-12-16 Richard Stallman <rms@gnu.org>
3795 * REFERENCES: entered into RCS