1 2001-12-13 Akim Demaille <akim@epita.fr>
3 The computation of nullable is broken: it doesn't handle empty
6 * tests/torture.at (GNU AWK Grammar): New.
7 * tests/sets.at (Nullable): New.
8 * src/nullable.c (set_nullable): Instead of blindly looping over
9 `ritems', loop over the rules, and then over their rhs's.
11 Work around Autotest bugs.
13 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
14 frame, because Autotest understand lines starting with a `+' as
15 traces from the shell. Then, they are not processed properly.
16 Admittedly an Autotest bug, but we don't have time to wait for
18 * tests/regression.at (Broken Closure): Adjust to the new table
21 * tests/sets.at: here.
23 2001-12-12 Paul Eggert <eggert@twinsun.com>
25 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
26 Do not infringe on the global user namespace when using C++.
27 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
28 All uses of `fprintf' and `stderr' changed.
30 * src/output.c (output): Do not output "#include <stdio.h>"; that
31 is bison.simple's job. stdio.h should be included only if
32 necessary, to avoid infringing on the user name space when
35 2001-12-12 Akim Demaille <akim@epita.fr>
37 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
38 on that of lib/error.c.
40 2001-12-12 Akim Demaille <akim@epita.fr>
42 Some hosts don't like `/' in includes.
44 * src/system.h: Include libgettext.h without qualifying the path.
45 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
48 2001-12-10 Akim Demaille <akim@epita.fr>
50 Bison dumps core on bash.y.
51 Reported by Pascal Bart.
53 * src/warshall.c (bitmatrix_print): New.
55 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
56 j must be the outer loop.
57 * tests/regression.at (Broken Closure): New.
59 2001-12-05 Akim Demaille <akim@epita.fr>
63 2001-12-05 Akim Demaille <akim@epita.fr>
65 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
67 Reported by Peter Hámorský.
69 2001-12-05 Akim Demaille <akim@epita.fr>
71 * src/conflicts.c (err_table): Remove.
72 (resolve_sr_conflict): Adjust.
73 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
75 (state_t.reductions, state_t.shifts): this.
77 2001-12-05 Akim Demaille <akim@epita.fr>
79 * src/reduce.c (reduce_grammar_tables): No longer disable the
80 removal of useless rules via CPP but via `if (0)', so that the
81 compiler still check the code is valid.
82 For instance, it should have noticed `rline' no longer exists: use
83 the `line' member of rule_t.
84 * src/gram.c (dummy, rline): Remove, unused.
86 2001-12-05 Akim Demaille <akim@epita.fr>
88 * src/output.c (pack_vector): Use assert, not berror.
89 * src/main.c (berror): Remove, unused.
91 2001-12-05 Akim Demaille <akim@epita.fr>
93 New experimental feature: if --verbose --trace output all the
94 items of a state, not only its kernel.
96 * src/print.c (print_core): If `trace_flag', then invoke closure
97 before outputting the items of the state (print_core is no longer
99 (print_results): Invoke new_closure/free_closure if needed.
101 2001-12-05 Akim Demaille <akim@epita.fr>
103 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
104 * src/closure.c, src/closure.h (itemsetsize): Rename as...
105 (nitemset): for consistency with the rest of the project.
107 2001-12-05 Akim Demaille <akim@epita.fr>
109 * src/closure.c (print_closure): Improve.
110 (closure): Use it for printing input and output.
112 2001-12-05 Akim Demaille <akim@epita.fr>
114 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
115 indexed by nonterminals.
117 2001-12-05 Akim Demaille <akim@epita.fr>
119 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
121 * src/warshall.h: Remove accidental duplication of the content.
123 2001-12-05 Akim Demaille <akim@epita.fr>
125 * src/closure.c (set_fderives): De-obfuscate.
127 2001-12-05 Akim Demaille <akim@epita.fr>
129 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
131 2001-12-05 Akim Demaille <akim@epita.fr>
133 * src/closure.c (set_firsts): De-obfuscate.
135 2001-12-05 Akim Demaille <akim@epita.fr>
137 * src/output.c (action_row): De-obfuscate
138 using the good o' techniques: arrays not pointers, variable
139 locality, BITISSET, RESETBIT etc.
141 2001-12-05 Akim Demaille <akim@epita.fr>
143 Pessimize the code to simplify it: from now on, all the states
144 have a valid SHIFTS, which NSHIFTS is possibly 0.
146 * src/LR0.c (shifts_new): Be global and move to..
147 * src/state.c, src/state.h: here.
148 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
149 * src/print_graph: Adjust.
151 2001-12-05 Akim Demaille <akim@epita.fr>
153 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
154 * src/conflicts.c: Use it.
155 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
156 incorrectly ``simplified''.
158 2001-12-05 Akim Demaille <akim@epita.fr>
160 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
161 using the good o' techniques: arrays not pointers, variable
162 locality, BITISSET, RESETBIT etc.
164 2001-12-05 Akim Demaille <akim@epita.fr>
166 * src/state.h (SHIFT_SYMBOL): New.
167 * src/conflicts.c: Use it to deobfuscate.
169 2001-12-05 Akim Demaille <akim@epita.fr>
171 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
172 (print_reductions): De-obfuscate using the good o' techniques:
173 arrays not pointers, variable locality, BITISSET.
175 2001-12-05 Akim Demaille <akim@epita.fr>
177 * src/conflicts.c (print_reductions): Arrays, not pointers.
180 2001-12-05 Akim Demaille <akim@epita.fr>
182 * src/conflicts.c (print_reductions): Pessimize, but clarify.
184 2001-12-05 Akim Demaille <akim@epita.fr>
186 * src/conflicts.c (print_reductions): Improve variable locality.
188 2001-12-05 Akim Demaille <akim@epita.fr>
190 * src/conflicts.c (print_reductions): Pessimize, but clarify.
192 2001-12-05 Akim Demaille <akim@epita.fr>
194 * src/conflicts.c (print_reductions): Improve variable locality.
196 2001-12-05 Akim Demaille <akim@epita.fr>
198 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
199 * src/lalr.c: Use them.
201 2001-12-05 Akim Demaille <akim@epita.fr>
203 * src/LR0.c (augment_automaton): Formatting changes.
204 Better variable locality.
206 2001-12-05 Akim Demaille <akim@epita.fr>
208 * src/lalr.c (matrix_print): New.
210 Use arrays instead of pointers.
212 2001-12-05 Akim Demaille <akim@epita.fr>
214 * src/lalr.c (maxrhs): Move to...
215 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
216 * src/lalr.c (build_relations): Adjust.
218 2001-12-05 Akim Demaille <akim@epita.fr>
220 * src/lalr.c (transpose): Free the memory allocated to the
221 argument, as it is replaced by the results by the unique caller.
222 (build_relations): Merely invoke transpose: it handles the memory
224 Improve variable locality.
225 Avoid variables used as mere abbreviations.
226 (compute_lookaheads): Use arrays instead of pointers.
228 2001-12-05 Akim Demaille <akim@epita.fr>
230 * src/lalr.c (initialize_F): Improve variable locality.
231 Avoid variables used as mere abbreviations.
233 2001-12-05 Akim Demaille <akim@epita.fr>
235 * src/derives.c (print_derives): Display the ruleno.
236 * src/lalr.c (initialize_F, transpose): Better variable locality
237 to improve readability.
238 Avoid variables used as mere abbreviations.
240 2001-12-05 Akim Demaille <akim@epita.fr>
242 * src/lalr.c (traverse): Use arrays instead of pointers.
244 2001-12-05 Akim Demaille <akim@epita.fr>
246 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
247 the handling of squeue.
248 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
250 2001-12-05 Akim Demaille <akim@epita.fr>
252 Because useless nonterminals are now kept alive (instead of being
253 `destroyed'), we now sometimes examine them, and store information
254 related to them. Hence we need to know their number, and adjust
257 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
259 * src/LR0.c (allocate_itemsets): The memory allocated to
260 `symbol_count' was used for two different purpose: once to count
261 the number of occurrences of each symbol, and later reassigned to
262 `shift_symbol', containing the symbol that can be shifted from a
264 Deobfuscate, i.e., allocate, use and free `symbol_count' here
266 (new_itemsets): Allocate `shift_symbol' here.
267 (allocate_itemsets): symbol_count includes useless nonterminals.
269 (free_storage): Use `free', not `XFREE', for pointers that cannot
272 2001-12-05 Akim Demaille <akim@epita.fr>
274 * src/nullable.c (set_nullable): Deobfuscate the handling of
276 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
278 2001-12-05 Akim Demaille <akim@epita.fr>
280 * src/gram.c, src/gram.h (ritem_print): New.
281 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
282 (This useless function was defined only to work around VMS linkers
283 that can't handle compilation units with variables only).
284 * src/reduce.c (dump_grammar): Use it to trace the construction of
287 2001-12-04 Paul Eggert <eggert@twinsun.com>
289 * src/bison.simple (union yyalloc): Change member names
290 to be the same as the stack names.
291 (yyparse): yyptr is now union yyalloc *, not char *.
292 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
293 and may generate better code on some machines.
294 (yystpcpy): Use prototype if __STDC__ is defined, not just
295 if __cplusplus is defined.
297 2001-11-30 Akim Demaille <akim@epita.fr>
299 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
300 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
301 Gettext doesn't compile cleanly, and dies with -Werror.
302 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
303 Include WARNING_CFLAGS here.
304 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
305 before being defined.
307 2001-11-30 Paul Eggert <eggert@twinsun.com>
309 * lib/quotearg.h (quotearg_n, quotearg_n_style):
310 First arg is int, not unsigned.
311 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
312 (SIZE_MAX, UINT_MAX): New macros.
313 (quotearg_n_options): Abort if N is negative.
314 Avoid overflow check on hosts where size_t is 64 bits and int
315 is 32 bits, as overflow is impossible there.
316 Fix off-by-one typo that caused unnecessary reallocation.
318 2001-11-30 Paul Eggert <eggert@twinsun.com>
320 Name space cleanup in generated parser.
322 * doc/bison.texinfo (Bison Parser): Discuss system headers
323 and their effect on the user name space.
326 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
327 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
328 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
330 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
331 on user names when possible.
333 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
334 Simplify test for whather <alloca.h> exists.
336 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
338 (<stdio.h>): Include if YYDEBUG.
340 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
341 ! defined (yyoverflow) && ! defined (yymemcpy).
343 (yymemcpy, yyparse): Rename local variables as needed so that
344 they all begin with 'yy'.
346 (yystrlen, yystpcpy): New functions.
348 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
351 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
352 instead of relying on string.h functions. Use YYSTACK_ALLOC
353 and YYSTACK_FREE instead of malloc and free.
355 2001-11-30 Akim Demaille <akim@epita.fr>
357 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
358 if body instead of `;' to pacify GCC's warnings.
360 2001-11-30 Akim Demaille <akim@epita.fr>
362 Instead of mapping the LHS of unused rules to -1, keep the LHS
363 valid, but flag the rules as invalid.
365 * src/gram.h (rule_t): `useful' is a new member.
366 * src/print.c (print_grammar): Adjust.
367 * src/derives.c (set_derives): Likewise.
368 * src/reader.c (packgram, reduce_output): Likewise.
369 * src/reduce.c (reduce_grammar_tables): Likewise.
370 * tests/reduce.at (Underivable Rules, Useless Rules): New.
372 2001-11-30 Akim Demaille <akim@epita.fr>
374 * src/reduce.c (reduce_output): Formatting changes.
375 * src/print.c (print_results, print_grammar): Likewise.
376 * tests/regression.at (Rule Line Numbers)
377 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
379 2001-11-30 Akim Demaille <akim@epita.fr>
381 * src/reduce.c (nonterminals_reduce): Instead of throwing away
382 useless nonterminals, move them at the end of the symbol arrays.
383 (reduce_output): Adjust.
384 * tests/reduce.at (Useless Nonterminals): Adjust.
386 2001-11-30 Akim Demaille <akim@epita.fr>
388 * src/reduce.c: Various comment/formatting changes.
389 (nonterminals_reduce): New, extracted from...
390 (reduce_grammar_tables): here.
391 (reduce_grammar): Call nonterminals_reduce.
393 2001-11-29 Paul Eggert <eggert@twinsun.com>
395 * src/bison.simple (YYSTACK_REALLOC): Remove.
396 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
397 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
399 (union yyalloc): New type.
400 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
401 an arbitrary restriction on hosts where size_t is wider than int.
403 (yyparse): Don't dump core if alloca or malloc fails; instead, report
404 a parser stack overflow. Allocate just one block of memory for all
405 three stacks, instead of allocating three blocks; this typically is
406 faster and reduces fragmentation.
408 Do not limit the number of items in the stack to a value that fits
409 in 'int', as this is an arbitrary limit on hosts with 64-bit
410 size_t and 32-bit int.
412 2001-11-28 Akim Demaille <akim@epita.fr>
414 * src/LR0.c (shifts_new): New.
415 (save_shifts, insert_start_shift, augment_automaton): Use it.
417 2001-11-28 Akim Demaille <akim@epita.fr>
419 * src/closure.c (closure): `b' and `ruleno' denote the same value:
422 2001-11-28 Akim Demaille <akim@epita.fr>
424 * src/closure.c (closure): Instead of looping over word in array
425 then bits in words, loop over bits in array.
427 2001-11-28 Akim Demaille <akim@epita.fr>
429 * src/closure.c (closure): No longer optimize the special case
430 where all the bits of `ruleset[r]' are set to 0, to make the code
433 2001-11-28 Akim Demaille <akim@epita.fr>
435 * src/closure.c (closure): `r' and `c' are new variables, used to
436 de-obfuscate accesses to RULESET and CORE.
438 2001-11-28 Akim Demaille <akim@epita.fr>
440 * src/reduce.c (reduce_print): Use ngettext.
441 (dump_grammar): Improve the trace accuracy.
443 2001-11-28 Akim Demaille <akim@epita.fr>
445 * src/reduce.c (dump_grammar): Don't translate trace messages.
447 2001-11-28 Akim Demaille <akim@epita.fr>
449 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
450 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
451 as all tags are free'ed afterwards.
454 2001-11-27 Akim Demaille <akim@epita.fr>
456 * src/system.h: Use intl/libgettext.h.
457 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
459 2001-11-27 Paul Eggert <eggert@twinsun.com>
461 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
462 use alloca when we didn't want to, and vice versa.
464 2001-11-27 Akim Demaille <akim@epita.fr>
466 * tests/torture.at (Exploding the Stack Size with Malloc):
467 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
469 2001-11-27 Akim Demaille <akim@epita.fr>
471 * src/files.c: Include error.h.
474 2001-11-26 Akim Demaille <akim@epita.fr>
478 2001-11-26 Akim Demaille <akim@epita.fr>
480 * src/reader.c (readgram): Make sure rules for mid-rule actions
481 have a lineno equal to that of their host rule.
482 Reported by Hans Aberg.
483 * tests/regression.at (Rule Line Numbers): New.
485 2001-11-26 Akim Demaille <akim@epita.fr>
487 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
489 Reported by Hans Aberg.
491 2001-11-26 Akim Demaille <akim@epita.fr>
493 * src/complain.c, src/complain.h (error): Remove, provided by
496 2001-11-26 Akim Demaille <akim@epita.fr>
498 * src/reader.c (read_declarations): Don't abort on tok_illegal,
499 issue an error message.
500 * tests/regression.at (Invalid %directive): New.
501 Reported by Hans Aberg.
503 2001-11-26 Akim Demaille <akim@epita.fr>
505 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
506 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
508 2001-11-26 Akim Demaille <akim@epita.fr>
510 * src/conflicts.c (conflicts_print): Don't complain at all when
511 there are no reduce/reduce conflicts, and as many shift/reduce
512 conflicts as expected.
513 * tests/regression.at (%expect right): Adjust.
515 2001-11-23 Akim Demaille <akim@epita.fr>
517 * lib/alloca.c: Update, from fileutils.
519 2001-11-23 Akim Demaille <akim@epita.fr>
521 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
523 2001-11-23 Akim Demaille <akim@epita.fr>
525 * src/system.h: Include alloca.h.
526 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
528 2001-11-23 Akim Demaille <akim@epita.fr>
530 * src/print_graph.c (print_actions): Remove `rule', unused.
531 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
532 pacify GCC's signed < unsigned warnings.
533 * src/closure.c (itemsetsize): Likewise.
534 * src/reader.c (symbol_list_new): Static.
536 2001-11-23 Akim Demaille <akim@epita.fr>
538 Attaching lineno to buckets is stupid, since only one copy of each
539 symbol is kept, only the line of the first occurrence is kept too.
541 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
542 * src/reader.c (rline_allocated): Remove, unused.
543 (symbol_list): Have a `line' member.
544 (symbol_list_new): New.
546 * src/print.c (print_grammar): Output the rule line numbers.
547 * tests/regression.at (Solved SR Conflicts)
548 (Unresolved SR Conflicts): Adjust.
549 Reported by Hans Aberg.
551 2001-11-20 Akim Demaille <akim@epita.fr>
555 2001-11-20 Akim Demaille <akim@epita.fr>
558 * configure.in (ALL_LINGUAS): Adjust.
559 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
560 longer contains strings to translate.
562 2001-11-19 Akim Demaille <akim@epita.fr>
564 * src/conflicts.c (conflicts_print): Add a missing \n.
566 2001-11-19 Akim Demaille <akim@epita.fr>
568 * src/nullable.c (nullable_print): New.
569 (set_nullable): Call it when tracing.
570 Better locality of variables.
572 2001-11-19 Akim Demaille <akim@epita.fr>
574 * src/print.c (print_actions): Better locality of variables.
576 2001-11-19 Akim Demaille <akim@epita.fr>
578 * src/derives.c (print_derives): Fix and enrich.
579 * src/closure.c (print_fderives): Likewise.
581 2001-11-19 Akim Demaille <akim@epita.fr>
583 * src/closure.c (itemsetend): Remove, replaced with...
586 2001-11-19 Akim Demaille <akim@epita.fr>
588 * src/LR0.c (kernel_end): Remove, replaced with...
591 2001-11-19 Akim Demaille <akim@epita.fr>
593 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
596 2001-11-19 Akim Demaille <akim@epita.fr>
598 * src/closure.c (closure): Use arrays instead of pointers to clarify.
600 2001-11-19 Akim Demaille <akim@epita.fr>
602 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
604 * src/LR0.c: Likewise.
605 (allocate_itemsets): Use arrays instead of pointers to clarify.
607 2001-11-19 Akim Demaille <akim@epita.fr>
609 * src/getargs.c (statistics_flag): Replace with...
611 (longopts): Accept --trace instead of --statistics.
612 * src/getargs.h: Adjust.
613 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
614 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
616 2001-11-19 Akim Demaille <akim@epita.fr>
618 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
619 pointers to clarify the code.
620 (save_reductions, save_shifts): Factor common parts of alternatives.
622 2001-11-19 Akim Demaille <akim@epita.fr>
624 * src/LR0.c (new_state, get_state): Complete TRACE code.
625 * src/closure.c: Include `reader.h' to get `tags', needed by the
627 Rename the conditional DEBUG as TRACE.
628 Output consistently TRACEs to stderr, not stdout.
629 * src/derives.c: Likewise.
630 * src/reduce.c: (inaccessable_symbols): Using if is better style
632 Use `#if TRACE' instead of `#if 0' for tracing code.
634 2001-11-19 Akim Demaille <akim@epita.fr>
636 * src/system.h (LIST_FREE, shortcpy): New.
637 * src/LR0.c: Use them.
638 * src/output.c (free_itemsets, free_reductions, free_shifts):
639 Remove, replaced by LIST_FREE.
641 2001-11-19 Akim Demaille <akim@epita.fr>
643 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
644 (REDUCTIONS_ALLOC): New.
645 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
648 2001-11-19 Akim Demaille <akim@epita.fr>
650 * src/LR0.c (new_state): Complete trace code.
651 * src/nullable.c (set_nullable): Don't translate traces.
653 2001-11-19 Akim Demaille <akim@epita.fr>
655 * src/print_graph.c (print_core): Better locality of variables.
656 * src/print.c (print_core): Likewise.
658 2001-11-19 Akim Demaille <akim@epita.fr>
660 * src/vcg.c: You do the output, so you are responsible of the
661 handling of VCG syntax, in particular: use quotearg.
662 * src/print_graph.c: Don't.
663 (print_actions): Don't output the actions as part of the nodes,
664 since that's the job of the edges.
665 (print_state): Don't output by hand: fill the node description,
666 and ask for its output.
668 2001-11-19 Akim Demaille <akim@epita.fr>
670 * src/bison.simple (yyparse): When verbosely reporting an error,
671 no longer put additional quotes around token names.
672 * tests/calc.at: Adjust.
674 2001-11-19 Akim Demaille <akim@epita.fr>
676 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
677 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
678 * src/output.c: Adjust.
680 2001-11-19 Akim Demaille <akim@epita.fr>
682 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
684 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
686 2001-11-19 Akim Demaille <akim@epita.fr>
688 * src/gram.h (rule_t): New.
690 (rrhs, rlhs): Remove, part of state_t.
691 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
692 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
693 * src/reader.c, src/reduce.c: Adjust.
695 2001-11-19 Akim Demaille <akim@epita.fr>
697 * src/reader.c (symbols_output): New, extracted from...
701 2001-11-19 Akim Demaille <akim@epita.fr>
703 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
704 (maxrhs): this new function.
706 2001-11-19 Akim Demaille <akim@epita.fr>
708 * src/lalr.c (F): New macro to access the variable F.
711 2001-11-19 Akim Demaille <akim@epita.fr>
713 * src/lalr.h (LA): New macro to access the variable LA.
714 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
715 * src/lalr.c: Adjust.
717 2001-11-19 Akim Demaille <akim@epita.fr>
719 * src/lalr.c (initialize_LA): Only initialize LA. Let...
720 (set_state_table): handle the `lookaheads' members.
722 2001-11-19 Akim Demaille <akim@epita.fr>
724 * src/lalr.h (lookaheads): Removed array, whose contents is now
726 (state_t): this structure.
727 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
730 2001-11-19 Akim Demaille <akim@epita.fr>
732 * src/lalr.h (consistent): Removed array, whose contents is now
734 (state_t): this structure.
735 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
738 2001-11-19 Akim Demaille <akim@epita.fr>
740 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
741 contents are now members of...
742 (state_t): this structure.
743 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
746 2001-11-19 Akim Demaille <akim@epita.fr>
748 * src/lalr.h (state_t): New.
749 (state_table): Be a state_t * instead of a core **.
750 (accessing_symbol): Remove, part of state_t.
751 * src/lalr.c: Adjust.
752 (set_accessing_symbol): Merge into...
753 (set_state_table): this.
754 * src/print_graph.c, src/conflicts.c: Adjust.
756 2001-11-14 Akim Demaille <akim@epita.fr>
760 2001-11-14 Akim Demaille <akim@epita.fr>
762 * tests/calc.at, tests/output.at, tests/regression.at,
763 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
764 now the tests are run in private dirs, therefore AC_CLEANUP and
765 family can be simplified to 0-ary.
766 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
767 use abs. path to find config.h.
769 2001-11-14 Akim Demaille <akim@epita.fr>
771 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
772 stderr, there can be way too much random noise.
773 Instead pass -Werror to GCC and rely on the exit status.
774 Reported by Wolfram Wagner.
776 2001-11-14 Akim Demaille <akim@epita.fr>
778 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
779 defined only if yyoverflow is defined, to avoid `warning: unused
781 Reported by The Test Suite.
783 2001-11-14 Akim Demaille <akim@epita.fr>
785 * src/print.c: Include reduce.h.
786 Reported by Hans Aberg.
788 2001-11-14 Akim Demaille <akim@epita.fr>
790 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
791 Revert a previous patch: these are really const.
792 * src/conflicts.c (conflict_report): Additional useless pair of
793 braces to pacify GCC's warnings for `if () if () {} else {}'.
794 * src/lex.c (parse_percent_token): Replace equal_offset with
797 Be sure to strdup `arg' when used, since there is no reason for
798 token_buffer not to change.
800 2001-11-14 Akim Demaille <akim@epita.fr>
802 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
804 * src/main.c (main): Use them.
805 Suggested by Hans Aberg.
807 2001-11-12 Akim Demaille <akim@epita.fr>
811 * src/system.h (ngettext): Now that we use ngettext, be sure to
812 provide a default definition when NLS are not used that takes care
815 2001-11-12 Akim Demaille <akim@epita.fr>
817 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
818 Use @kbd to denote user input.
819 (Language and Grammar): ANSIfy the example.
820 Adjust its layout for info/notinfo.
821 (Location Tracking Calc): Output error messages to stderr.
822 Output locations in a more GNUtically correct way.
823 Fix a couple of Englishos.
824 Adjust @group/@end group pairs.
826 2001-11-12 Akim Demaille <akim@epita.fr>
828 %expext was not functioning at all.
830 * src/conflicts.c (expected_conflicts): Set to -1.
831 (conflict_report): Use ngettext.
832 (conflicts_print): Check %expect and make its violation an error.
833 * doc/bison.texinfo (Expect Decl): Adjust.
834 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
835 * tests/regression.at (%expect not enough, %expect right)
836 (%expect too much): New.
838 2001-11-12 Akim Demaille <akim@epita.fr>
840 * tests/regression.at (Conflicts): Rename as...
841 (Unresolved SR Conflicts): this.
842 (Solved SR Conflicts): New.
844 2001-11-12 Akim Demaille <akim@epita.fr>
846 * src/reduce.c (print_results): Rename as...
847 (reduce_output): This.
848 Output to OUT, passed as argument, instead of output_obstack.
849 (dump_grammar): Likewise.
852 (reduce_grammar): No longer call reduce_output, since...
853 * src/print.c (print_results): do it.
854 * src/main.c (main): Call reduce_free;
856 2001-11-12 Akim Demaille <akim@epita.fr>
858 * src/conflicts.c (print_reductions): Accept OUT as argument.
859 Output to it, not to output_obstack.
860 * src/print.c (print_actions): Adjust.
862 2001-11-12 Akim Demaille <akim@epita.fr>
864 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
865 the result instead of using...
866 (src_total, rrc_total, src_count, rrc_count): Remove.
867 (any_conflicts): Remove.
868 (print_conflicts): Split into...
869 (conflicts_print, conflicts_output): New.
870 * src/conflicts.h: Adjust.
871 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
872 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
873 * tests/regression.at (Conflicts): New.
874 Reported by Tom Lane.
876 2001-11-12 Akim Demaille <akim@epita.fr>
878 * tests/regression.at (Invalid input): Remove, duplicate with
879 ``Invalid input: 1''.
881 2001-11-12 Akim Demaille <akim@epita.fr>
883 * tests/torture.at (AT_DATA_STACK_TORTURE)
884 (Exploding the Stack Size with Alloca)
885 (Exploding the Stack Size with Malloc): New.
887 2001-11-12 Akim Demaille <akim@epita.fr>
889 * src/bison.simple (YYSTACK_REALLOC): New.
890 (yyparse) [!yyoverflow]: Use it and free the old stack.
891 Reported by Per Allansson.
893 2001-11-05 Akim Demaille <akim@epita.fr>
896 * src/lex.c (parse_percent_token): s/quotearg/quote/.
898 2001-11-05 Akim Demaille <akim@epita.fr>
900 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
903 2001-11-05 Akim Demaille <akim@epita.fr>
905 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
906 with yyltype/YYLTYPE. This allows inclusion of the generated
907 header within the parser if the compiler, such as GGC, accepts
908 multiple equivalent #defines.
910 2001-11-04 Akim Demaille <akim@epita.fr>
912 * src/getargs.c (longopts): Support `--output'. getopt is now
913 able to understand that `--out' is OK: the two racing long options
916 * src/lex.h (tok_setopt): Remove, replaced with...
917 (tok_intopt, tok_stropt): these new guys.
918 * src/lex.c (getopt.h): Not needed.
919 (token_buffer, unlexed_token_buffer): Not const.
920 (percent_table): Promote `-' over `_' in directive names.
921 Active `%name-prefix', `file-prefix', and `output'.
922 (parse_percent_token): Accept possible arguments to directives.
923 Promote `-' over `_' in directive names.
924 * doc/bison.texinfo (Decl Summary): Split the list into
925 `directives for grammars' and `directives for bison'.
927 Add description of `%name-prefix', `file-prefix', and `output'.
928 Promote `-' over `_' in directive names.
929 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
930 Simplify the description of `--name-prefix'.
931 Promote `-' over `_' in directive names.
932 Promote `--output' over `--output-file'.
933 Fix the description of `--defines'.
934 * tests/output.at: Exercise %file-prefix and %output.
936 2001-11-02 Akim Demaille <akim@epita.fr>
938 * doc/refcard.tex: Update.
940 2001-11-02 Akim Demaille <akim@epita.fr>
942 * src/symtab.h (SUNDEF): New.
943 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
944 stand for `uninitialized', instead of 0.
945 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
946 * src/lex.c (lex): Adjust.
948 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
950 Let yylex return it instead of a plain 0.
951 Reported by Dick Streefland.
953 2001-11-02 Akim Demaille <akim@epita.fr>
955 * tests/regression.at (Mixing %token styles): New test.
957 2001-11-02 Akim Demaille <akim@epita.fr>
959 * src/reader.c (parse_thong_decl): Formatting changes.
960 (token_translations_init): New, extracted from...
964 2001-11-01 Akim Demaille <akim@epita.fr>
966 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
967 Check that `9foo.y' produces correct cpp guards.
968 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
972 2001-11-01 Akim Demaille <akim@epita.fr>
974 * tests/regression.at (Invalid input: 2): New.
975 * src/lex.c (unlexed_token_buffer): New.
976 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
980 2001-11-01 Akim Demaille <akim@epita.fr>
982 * configure.in: Bump to 1.30a.
983 Adjust to newer Autotest.
985 2001-10-26 Akim Demaille <akim@epita.fr>
989 2001-10-26 Paul Eggert <eggert@twinsun.com>
991 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
992 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
993 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
994 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
995 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
996 Sync with fileutils 4.1.1.
998 2001-10-18 Akim Demaille <akim@epita.fr>
1001 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1002 avoid spurious failures.
1004 2001-10-18 Akim Demaille <akim@epita.fr>
1008 2001-10-18 Akim Demaille <akim@epita.fr>
1010 * tests/atlocal.in (GCC): Add.
1011 * tests/calc.at: s/m4_match/m4_bmatch/.
1012 s/m4_patsubst/m4_bpatsubst/.
1013 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1014 * configure.in: AC_SUBST(GCC).
1016 2001-10-10 Akim Demaille <akim@epita.fr>
1019 * configure.in: M4 is no longer needed, but autom4te is.
1020 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1023 2001-10-10 Akim Demaille <akim@epita.fr>
1027 2001-10-10 Akim Demaille <akim@epita.fr>
1030 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1031 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1032 Reported by Airy Andre.
1034 2001-10-10 Akim Demaille <akim@epita.fr>
1036 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1037 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1039 2001-10-02 Akim Demaille <akim@epita.fr>
1043 2001-10-02 Akim Demaille <akim@epita.fr>
1047 2001-10-02 Akim Demaille <akim@epita.fr>
1049 * tests/regression.at (Invalid CPP headers): New.
1050 From Alexander Belopolsky.
1051 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1053 2001-10-02 Akim Demaille <akim@epita.fr>
1055 * tests/regression.at (Invalid input): New.
1056 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1059 2001-10-02 Akim Demaille <akim@epita.fr>
1061 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1063 2001-10-02 Akim Demaille <akim@epita.fr>
1065 * src/output.c (output_parser): Assert `skeleton'.
1066 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1070 2001-10-01 Marc Autret <autret_m@epita.fr>
1072 * src/lex.h: Echo modifications.
1073 * src/lex.c (unlex): Parameter is now token_t.
1076 2001-10-01 Marc Autret <autret_m@epita.fr>
1078 * src/main.c: Include lex.h.
1081 2001-09-29 Akim Demaille <akim@epita.fr>
1083 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1085 2001-09-28 Akim Demaille <akim@epita.fr>
1087 * tests/testsuite.at: Update to newer Autotest.
1088 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1090 2001-09-27 Akim Demaille <akim@epita.fr>
1092 Position independent wrapper.
1094 * tests/bison: Remove.
1095 * tests/bison.in: New.
1096 * configure.in: Adjust.
1098 2001-09-27 Paul Eggert <eggert@twinsun.com>
1100 Port quotearg fixes from tar 1.13.24.
1102 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1104 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1105 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1107 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1108 * m4/mbrtowc.m4: New file.
1109 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1110 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1112 2001-09-27 Akim Demaille <akim@epita.fr>
1116 2001-09-27 Akim Demaille <akim@epita.fr>
1120 2001-09-25 Akim Demaille <akim@epita.fr>
1122 * src/system.h: Include `xalloc.h'.
1123 Remove it from the C files.
1124 * src/files.c (output_files): Free the obstacks.
1125 * src/lex.c (init_lex): Rename as...
1128 * src/main.c (main): Use it.
1130 2001-09-24 Marc Autret <autret_m@epita.fr>
1132 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1133 to output informations in fout (FILE*).
1134 (open_graph, close_graph): Likewise.
1135 (output_graph, output_edge, output_node): Likewise.
1136 * src/vcg.h: Update function prototypes.
1137 * src/print_graph.c (print_graph): Open output graph file.
1138 (print_actions): Adjust.
1139 * src/files.h: Remove extern declaration.
1140 * src/files.c: Remove graph_obstack declaration.
1141 (open_files): Remove graph_obstack initialization.
1142 (output_files): Remove graph_obstack saving.
1144 2001-09-24 Marc Autret <autret_m@epita.fr>
1146 * src/files.c (compute_output_file_names): Fix.
1148 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1150 * src/reader.c (reader): Remove call to free_symtab ().
1151 * src/main.c (main): Call it here.
1153 * src/conflicts.c (initialize_conflicts): Rename as...
1154 (solve_conflicts): this.
1155 * src/print.c (print_core, print_actions, print_state)
1156 (print_grammar): Dump to a file instead a `output_obstack'.
1157 (print_results): Dump `output_obstack', and then proceed with the
1159 * src/files.c (compute_output_file_names, close_files): New.
1160 (output_files): Adjust.
1161 * src/main.c (main): Adjust.
1163 2001-09-23 Marc Autret <autret_m@epita.fr>
1165 * src/files.c (compute_header_macro): Computes header macro name
1166 from spec_defines_file when given.
1168 2001-09-23 Marc Autret <autret_m@epita.fr>
1170 * src/files.c (output_files): Add default extensions.
1172 2001-09-22 Akim Demaille <akim@epita.fr>
1174 * src/conflicts.c (finalize_conflicts): Rename as...
1175 (free_conflicts): this.
1177 2001-09-22 Akim Demaille <akim@epita.fr>
1179 * src/gram.c (gram_free): Rename back as...
1181 (output_token_translations): Free `token_translations'.
1182 * src/symtab.c (free_symtab): Free the tag field.
1184 2001-09-22 Akim Demaille <akim@epita.fr>
1186 Remove `translations' as it is always set to true.
1188 * src/gram.h: Adjust.
1189 * src/reader.c (packsymbols, parse_token_decl): Adjust
1190 * src/print.c (print_grammar): Adjust.
1191 * src/output.c (output_token_translations): Adjust.
1192 * src/lex.c (lex): Adjust.
1193 * src/gram.c: Be sure the set pointers to NULL.
1194 (dummy): Rename as...
1197 2001-09-22 Akim Demaille <akim@epita.fr>
1199 * configure.in: Invoke AM_LIB_DMALLOC.
1200 * src/system.h: Use dmalloc.
1201 * src/LR0.c: Be sure to have pointers initialized to NULL.
1202 (allocate_itemsets): Allocate kernel_items only if needed.
1204 2001-09-22 Akim Demaille <akim@epita.fr>
1206 * configure.in: Bump to 1.29b.
1207 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1208 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1209 need xmalloc.c in calc.y.
1212 2001-09-21 Akim Demaille <akim@epita.fr>
1215 * Makefile.maint, config/config.guess, config/config.sub,
1216 * config/missing: Update from masters.
1217 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1219 * configure.in (ALL_LINGUAS): Add `tr'.
1221 2001-09-21 Akim Demaille <akim@epita.fr>
1223 * tests/Makefile.am (package.m4): Move to...
1224 ($(srcdir)/$(TESTSUITE)): here.
1226 2001-09-20 Akim Demaille <akim@epita.fr>
1228 * src/complain.c: No longer try to be standalone: use system.h.
1229 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1230 * src/complain.h: Likewise.
1231 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1232 Remove the unused variable `n'.
1233 From Albert Chin-A-Young.
1235 2001-09-18 Marc Autret <autret_m@epita.fr>
1237 * doc/bison.1: Update.
1238 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1240 (Option Cross Key): Update.
1243 2001-09-18 Marc Autret <autret_m@epita.fr>
1245 * tests/regression.at: New test (comment in %union).
1247 2001-09-18 Marc Autret <autret_m@epita.fr>
1249 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1251 Reported by Keith Browne.
1253 2001-09-18 Marc Autret <autret_m@epita.fr>
1255 * tests/output.at: Add tests for --defines and --graph.
1257 2001-09-18 Marc Autret <autret_m@epita.fr>
1259 * tests/output.at: Removes tests of %{header,src}_extension features.
1261 2001-09-18 Akim Demaille <akim@epita.fr>
1263 * tests/Makefile.am (package.m4): New.
1264 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1265 (_AT_CHECK_CALC_ERROR): Likewise.
1266 Factor the `, ' part of verbose error messages.
1268 2001-09-18 Marc Autret <autret_m@epita.fr>
1270 * src/getargs.c (longopts): Declare --defines and --graph as options
1271 with optional arguments.
1272 * src/files.h: Add extern declarations.
1273 * src/files.c (spec_graph_file, spec_defines_file): New.
1274 (output_files): Update.
1275 Remove CPP-outed code.
1277 2001-09-18 Marc Autret <autret_m@epita.fr>
1279 Turn off %{source,header}_extension feature.
1281 * src/files.c (compute_exts_from_gf): Update.
1282 (compute_exts_from_src): Update.
1283 (output_files): CPP-out useless code.
1284 * src/files.h: Remove {header,source}_extension extern declarations.
1285 * src/reader.c (parse_dquoted_param): CPP-out.
1286 (parse_header_extension_decl): Remove.
1287 (parse_source_extension_decl): Remove.
1288 (read_declarations): Remove cases tok_{hdrext,srcext}.
1289 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1290 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1292 2001-09-10 Akim Demaille <akim@epita.fr>
1294 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1295 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1296 (AT_CHECK_OUTPUT): this.
1297 Merely check ls' exit status, its output is useless.
1299 2001-09-10 Akim Demaille <akim@epita.fr>
1301 * tests/calc.at: Use m4_match.
1302 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1304 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1306 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1308 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1310 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1311 * src/lex.h: Adjust prototype.
1312 (token_t): Add `tok_undef'.
1313 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1314 (parse_percent_token): Now returns token_t.
1315 Add default statement in switch.
1316 (lex): Separate `c' as an input variable, from the token_t result
1318 (unlexed): Is a token_t.
1320 2001-09-10 Akim Demaille <akim@epita.fr>
1322 * configure.in: Bump to 1.29a.
1324 2001-09-07 Akim Demaille <akim@epita.fr>
1328 2001-08-30 Akim Demaille <akim@epita.fr>
1330 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1331 * m4/atconfig.m4: Remove.
1332 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1334 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1335 m4_if, m4_patsubst, and m4_regexp.
1336 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1337 `input' file instead of echo.
1339 2001-08-29 Akim Demaille <akim@epita.fr>
1343 2001-08-29 Akim Demaille <akim@epita.fr>
1347 2001-08-29 Paul Eggert <eggert@twinsun.com>
1349 * src/bison.simple (yyparse): Don't take the address of an
1350 item before the start of an array, as that doesn't conform to
1353 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1355 * doc/bison.texinfo (Location Tracking Calc): New node.
1357 2001-08-29 Paul Eggert <eggert@twinsun.com>
1359 * src/output.c (output): Do not define const, as this now
1360 causes more problems than it cures.
1362 2001-08-29 Akim Demaille <akim@epita.fr>
1364 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1366 Be sure to tag the `detailmenu'.
1368 2001-08-29 Akim Demaille <akim@epita.fr>
1370 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1371 download in a tmp dir.
1373 2001-08-28 Marc Autret <autret_m@epita.fr>
1375 * config/depcomp: New file.
1377 2001-08-28 Marc Autret <autret_m@epita.fr>
1379 * doc/bison.1 (mandoc): Adjust.
1380 From Juan Manuel Guerrero.
1382 2001-08-28 Marc Autret <autret_m@epita.fr>
1384 * src/print_graph.c (print_state): Fix.
1386 2001-08-27 Marc Autret <autret_m@epita.fr>
1388 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1390 Echo modifications to the functions prototypes.
1391 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1393 2001-08-27 Marc Autret <autret_m@epita.fr>
1395 * src/vcg.c: Include `xalloc.h'.
1396 (add_colorentry): New.
1397 (add_classname): New.
1398 (add_infoname): New.
1399 * src/vcg.h: Add new prototypes.
1401 2001-08-27 Akim Demaille <akim@epita.fr>
1403 * Makefile.maint: Sync. again with CVS Autoconf.
1405 2001-08-27 Akim Demaille <akim@epita.fr>
1407 * Makefile.maint: Formatting changes.
1408 (po-update, cvs-update, update): New targets.
1411 2001-08-27 Akim Demaille <akim@epita.fr>
1413 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1414 * Makefile.maint: Sync. with CVS Autoconf.
1416 2001-08-27 Marc Autret <autret_m@epita.fr>
1418 * src/vcg.h (struct infoname_s): New.
1419 (struct colorentry_s): New.
1420 (graph_s): New fields {vertical,horizontal}_order in structure.
1421 Add `infoname' field.
1422 Add `colorentry' field;
1423 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1424 (G_HORIZONTAL_ORDER): New.
1426 (G_COLORENTRY): New.
1427 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1428 Add output of `infoname'.
1429 Add output of `colorentry'.
1431 2001-08-27 Marc Autret <autret_m@epita.fr>
1433 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1434 This one shadowed a global parameter.
1436 2001-08-24 Marc Autret <autret_m@epita.fr>
1438 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1439 instead of `unsigned'.
1440 (print_state): Do not call obstack_object_size () in obstack_grow ()
1441 to avoid macro variables shadowing.
1443 2001-08-23 Marc Autret <autret_m@epita.fr>
1445 * src/lex.c (percent_table): Typo: s/naem/name/.
1447 Normalize new options declarations.
1449 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1451 * tests/suite.at: Exercise %header_extension and %source_extension.
1453 2001-08-16 Marc Autret <autret_m@epita.fr>
1455 * src/reader.c (parse_dquoted_param): New.
1456 (parse_header_extension_decl): Use it.
1457 (parse_source_extension_decl): Likewise.
1459 2001-08-16 Marc Autret <autret_m@epita.fr>
1461 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1462 (get_xxxx_str): Use assert () instead of complain ().
1463 Remove return invokations in default cases.
1464 (get_decision_str): Modify default behaviour. Remove second argument.
1465 Echo modifications on calls.
1466 (output_graph): Fix.
1468 2001-08-16 Marc Autret <autret_m@epita.fr>
1470 * src/getargs.c (usage): Update with ``-g, --graph''.
1472 2001-08-16 Marc Autret <autret_m@epita.fr>
1474 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1475 (Option Cross Key): Likewise.
1476 * doc/bison.1: Update.
1478 2001-08-15 Akim Demaille <akim@epita.fr>
1482 2001-08-15 Marc Autret <autret_m@epita.fr>
1484 * src/reader.c (readgram): Indent output macro YYSTYPE.
1485 (packsymbols): Likewise.
1486 (output_token_defines): Likewise.
1487 * src/files.c: Standardize.
1488 (compute_header_macro): New.
1489 (defines_obstack_save): New. Use compute_header_macro.
1490 (output_files): Update. Use defines_obstack_save.
1492 2001-08-15 Akim Demaille <akim@epita.fr>
1494 * doc/bison.texinfo (Table of Symbols): Document
1497 2001-08-15 Akim Demaille <akim@epita.fr>
1499 * missing: Update from CVS Automake.
1500 * config/config.guess, config/config.sub, config/texinfo.tex:
1501 Update from gnu.org.
1503 2001-08-15 Akim Demaille <akim@epita.fr>
1505 * Makefile.maint: Sync with CVS Autoconf.
1507 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1509 * doc/bison.texinfo: Include GNU Free Documentation License from
1511 * doc/fdl.texi: Add to package.
1513 2001-08-14 Marc Autret <autret_m@epita.fr>
1515 Turn on %{source,header}_extension features.
1517 * src/lex.c (percent_table): Un-CPP out header_extension and
1519 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1520 (compute_exts_from_src): Remove conditions. It restores priorities
1523 2001-08-14 Marc Autret <autret_m@epita.fr>
1525 * src/files.c (compute_base_names): Add extensions computing when
1526 `--file-prefix' used.
1527 Standardize function calls.
1529 2001-08-13 Marc Autret <autret_m@epita.fr>
1531 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1532 defining it (defined but null disables alloca).
1534 2001-08-13 Marc Autret <autret_m@epita.fr>
1536 * src/bison.simple (_yy_memcpy): CPP reformat.
1538 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1540 * tests/atconfig.in (CPPFLAGS): Fix.
1542 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1544 * doc/bison.texinfo: Include GNU General Public License from
1546 * doc/gpl.texi: Add to package.
1548 2001-08-10 Marc Autret <autret_m@epita.fr>
1550 * src/print_graph.h: Fix.
1551 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1553 2001-08-10 Akim Demaille <akim@epita.fr>
1555 * src/system.h: Provide default declarations for stpcpy, strndup,
1558 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1560 * doc/bison.texinfo (Locations): Update @$ stuff.
1562 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1564 * src/bison.simple (YYLLOC_DEFAULT): Update.
1567 2001-08-08 Marc Autret <autret_m@epita.fr>
1569 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1570 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1571 Reported by Fabrice Bauzac.
1573 2001-08-08 Marc Autret <autret_m@epita.fr>
1575 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1576 * src/vcg.c (output_node): Fix.
1577 * src/vcg.h: Cleanup.
1578 * src/print_graph.c: Add comments.
1579 (node_output_size): New global variable. Simplify the formatting of
1580 the VCG graph output.
1581 (print_actions): Unused code is now used. It notifies the final state
1582 and no action states in the VCG graph. It also give the reduce actions.
1583 The `shift and goto' edges are red and the `go to state' edges are
1585 Get the current node name and node_obstack by argument.
1586 (node_obstack): New variable.
1587 (print_state): Manage node_obstack.
1588 (print_core): Use node_obstack given by argument.
1589 A node is not only computed here but in print_actions also.
1590 (print_graph): CPP out useless code instead of commenting it.
1592 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1594 * tests/atconfig.in (CPPFLAGS): Fix.
1596 2001-08-07 Akim Demaille <akim@epita.fr>
1598 * src/print_graph.c (quote): New.
1599 (print_core): Use it.
1601 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1603 * src/vcg.c (complain.h): Include it.
1604 Unepitaize `return' invocations.
1605 [NDEBUG] (main): Remove.
1606 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1607 * src/files.c (open_files): Initialize graph_obstack.
1608 * src/print_graph.c (print_actions): CPP out useless code.
1609 (print_core): Don't output the last `\n' in labels.
1611 * src/files.c (output_files): Output the VCG file.
1612 * src/main.c (main): Invoke print_graph ();
1614 2001-08-06 Marc Autret <autret_m@epita.fr>
1616 Automaton VCG graph output.
1617 Using option ``-g'' or long option ``--graph'', you can generate
1618 a gram_filename.vcg file containing a VCG description of the LALR (1)
1619 automaton of your grammar.
1621 * src/main.c: Call to print_graph() function.
1622 * src/getargs.h: Update.
1623 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1624 (graph_flag): New flag.
1626 (getargs): Add case `g'.
1627 * src/files.c (graph_obstack): New obstack struct.
1628 (open_files): Initialize new obstack.
1629 (output_files): Saves graph_obstack if required.
1630 * src/files.h (graph_obstack): New extern declaration.
1631 * src/Makefile.am: Add new source files.
1633 2001-08-06 Marc Autret <autret_m@epita.fr>
1635 * src/print_graph.c, src/print_graph.h (graph): New.
1636 * src/vcg.h: New file.
1637 * src/vcg.c: New file, VCG graph handling.
1639 2001-08-06 Marc Autret <autret_m@epita.fr>
1641 Add of %source_extension and %header_extension which specify
1642 the source or/and the header output file extension.
1644 * src/files.c (compute_base_names): Remove initialisation of
1645 src_extension and header_extension.
1646 (compute_exts_from_gf): Update.
1647 (compute_exts_from_src): Update.
1648 (output_files): Update.
1649 * src/reader.c (parse_header_extension_decl): New.
1650 (parse_source_extension_decl): New.
1651 (read_declarations): New case statements for the new tokens.
1652 * src/lex.c (percent_table): Add entries for %source_extension
1653 and %header_extension.
1654 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1656 2001-08-06 Marc Autret <autret_m@epita.fr>
1658 * configure.in: Bump to 1.28c.
1659 * doc/bison.texinfo: Texinfo thingies.
1661 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1663 * tests/atconfig.in (CPPFLAGS): Add.
1664 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1666 2001-08-03 Akim Demaille <akim@epita.fr>
1670 2001-08-03 Akim Demaille <akim@epita.fr>
1672 * tests/Makefile.am (check-local): Ship testsuite.
1673 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1676 2001-08-03 Akim Demaille <akim@epita.fr>
1678 * configure.in: Try using -Wformat when compiling.
1680 2001-08-03 Akim Demaille <akim@epita.fr>
1682 * configure.in: Bump to 1.28b.
1684 2001-08-03 Akim Demaille <akim@epita.fr>
1686 * src/complain.c: Adjust strerror_r portability issues.
1688 2001-08-03 Akim Demaille <akim@epita.fr>
1692 2001-08-03 Akim Demaille <akim@epita.fr>
1694 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1695 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1696 * src/getargs.c: Include complain.h.
1697 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1698 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1700 2001-08-03 Akim Demaille <akim@epita.fr>
1702 * src/reader.c (readgram): Display hidden chars in error messages.
1704 2001-08-03 Akim Demaille <akim@epita.fr>
1706 Update to gettext 0.10.39.
1708 2001-08-03 Akim Demaille <akim@epita.fr>
1710 * lib/strspn.c: New.
1712 2001-08-01 Marc Autret <autret_m@epita.fr>
1714 * doc/bison.texinfo: Update.
1715 * doc/bison.1 (mandoc): Update.
1716 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1717 * src/files.c: Support output files extensions computing.
1718 (src_extension): New static variable.
1719 (header_extension): New static variable.
1721 (get_extension_index): New function, gets the index of an extension
1722 filename in a string.
1723 (compute_exts_from_gf): New function, computes extensions from the
1724 grammar file extension.
1725 (compute_exts_from_src): New functions, computes extensions from the
1726 C source file extension, file given by ``-o'' option.
1727 (compute_base_names): Update.
1728 (output_files): Update.
1730 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1732 * doc/bison.texi: Document @$.
1733 (Locations): New section.
1735 2001-07-18 Akim Demaille <akim@epita.fr>
1737 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1738 * config/prev-version.txt, config/move-if-change: New.
1739 * Makefile.am: Adjust.
1741 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1743 * src/bison.simple (yyparse): Suppress warning `comparaison
1744 between signed and unsigned'.
1746 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1748 * src/getargs.h (raw_flag): Remove.
1749 * src/getargs.c: Die on `-r'/`--raw'.
1750 * src/lex.c (parse_percent_token): Die on `%raw'.
1751 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1752 * tests/calc.at: Suppress test with option `--raw'.
1754 2001-07-14 Akim Demaille <akim@epita.fr>
1757 * configure.in: Require Autoconf 2.50.
1758 Update to gettext 0.10.38.
1760 2001-03-16 Akim Demaille <akim@epita.fr>
1762 * doc/bison.texinfo: ANSIfy the examples.
1764 2001-03-16 Akim Demaille <akim@epita.fr>
1766 * getargs.c (skeleton): New variable.
1767 (longopts): --skeleton is a new option.
1768 (shortopts, getargs): -S is a new option.
1769 * getargs.h: Declare skeleton.
1770 * output.c (output_parser): Use it.
1772 2001-03-16 Akim Demaille <akim@epita.fr>
1774 * m4/strerror_r.m4: New.
1775 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1776 * lib/error.h, lib/error.c: Update.
1778 2001-03-16 Akim Demaille <akim@epita.fr>
1780 * src/getargs.c (longopts): Clean up.
1782 2001-02-21 Akim Demaille <akim@epita.fr>
1784 * src/reader.c (gensym): `gensym_count' is your own.
1785 Use a static buf to create the symbol name, as token_buffer is no
1788 2001-02-08 Akim Demaille <akim@epita.fr>
1790 * src/conflicts.c (conflict_report): Be sure not to append to res
1791 between two calls, which could happen if both first sprintf were
1792 skipped, but not the first cp += strlen.
1794 2001-02-08 Akim Demaille <akim@epita.fr>
1796 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1797 New, from fileutils 4.0.37.
1798 * configure.in: Require Autoconf 2.49c. I took some time before
1799 making this decision. This is the only way out for portability
1800 issues in Bison, it would mean way too much duplicate effort to
1801 import in Bison features implemented in 2.49c since 2.13.
1802 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1804 2001-02-02 Akim Demaille <akim@epita.fr>
1806 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1807 * lib/xalloc.h, lib/xmalloc.c: Update.
1809 2001-01-19 Akim Demaille <akim@epita.fr>
1811 Get rid of the ad hoc handling of token_buffer in the scanner: use
1814 * src/lex.c (token_obstack): New.
1815 (init_lex): Initialize it. No longer call...
1816 (grow_token_buffer): this. Remove it.
1817 Adjust all the places which used it to use the obstack.
1819 2001-01-19 Akim Demaille <akim@epita.fr>
1821 * src/lex.h: Rename all the tokens:
1822 s/\bENDFILE\b/tok_eof/g;
1823 s/\bIDENTIFIER\b/tok_identifier/g;
1825 Let them be enums, not #define, to ease debugging.
1826 Adjust all the code.
1828 2001-01-18 Akim Demaille <akim@epita.fr>
1830 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1831 * src/lex.c (maxtoken, grow_token_buffer): Static.
1833 2001-01-18 Akim Demaille <akim@epita.fr>
1835 Since we now use obstacks, more % directives can be enabled.
1837 * src/lex.c (percent_table): Also accept `%yacc',
1838 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1840 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1841 instead of returning a token.
1842 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1843 * src/reader.c (read_declarations): Adjust.
1844 * src/files.c (open_files): Don't call `compute_base_names', don't
1845 compute `attrsfile' since they depend upon data which might be
1846 *in* the input file now.
1847 (output_files): Do it here.
1848 * src/output.c (output_headers): Document the fact that this patch
1849 introduces a guaranteed SEGV for semantic parsers.
1850 * doc/bison.texinfo: Document them.
1851 * tests/suite.at: Exercise these %options.
1853 2000-12-20 Akim Demaille <akim@epita.fr>
1855 Also handle the output file (--verbose) with obstacks.
1857 * files.c (foutput): Remove.
1858 (output_obstack): New.
1859 Adjust all dependencies.
1860 * src/conflicts.c: Return a string.
1861 * src/system.h (obstack_grow_string): Rename as...
1862 (obstack_sgrow): this. Be ready to work with non literals.
1863 (obstack_fgrow4): New.
1865 2000-12-20 Akim Demaille <akim@epita.fr>
1867 * src/files.c (open_files): Fix the computation of short_base_name
1868 in the case of `-o foo.tab.c'.
1870 2000-12-20 Akim Demaille <akim@epita.fr>
1872 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1873 (copy_dollar): Now that everything uses obstacks, get rid of the
1876 2000-12-20 Akim Demaille <akim@epita.fr>
1878 * src/files.c (open_files): Actually the `.output' file is based
1879 on the short_base_name, not base_name.
1880 * tests/suite.at (Checking output file names): Adjust.
1882 2000-12-20 Akim Demaille <akim@epita.fr>
1884 * src/bison.s1: Remove, we now use directly...
1885 * src/bison.simple: this.
1886 * src/Makefile.am: Use pkgdata instead of data.
1888 2000-12-20 Akim Demaille <akim@epita.fr>
1890 * src/files.c (guard_obstack): New.
1891 (open_files): Initialize it.
1892 (output_files): Dump it...
1893 * src/files.h: Export it.
1894 * src/reader.c (copy_guard): Use it.
1896 2000-12-19 Akim Demaille <akim@epita.fr>
1898 * src/files.c (outfile, defsfile, actfile): Removed as global
1900 (open_files): Don't compute them.
1901 (output_files): Adjust.
1902 (base_name, short_base_name): Be global.
1903 Adjust dependencies.
1905 2000-12-19 Akim Demaille <akim@epita.fr>
1907 * src/files.c (strsuffix): New.
1908 (stringappend): Be just like strcat but allocate.
1909 (base_names): Eve out from open_files.
1910 Try to simplify the rather hairy computation of base_name and
1912 (open_files): Use it.
1913 * tests/suite.at (Checking output file names): New test.
1915 2000-12-19 Akim Demaille <akim@epita.fr>
1917 * src/system.h (obstack_grow_literal_string): Rename as...
1918 (obstack_grow_string): this.
1919 * src/output.c (output_parser): Recognize `%% actions' instead of
1921 * src/bison.s1: s/$/%% actions/.
1922 * src/bison.hairy: Likewise.
1924 2000-12-19 Akim Demaille <akim@epita.fr>
1926 * src/output.c (output_parser): Compute the `#line' lines when
1928 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1929 Suggested by Hans Aberg.
1931 2000-12-19 Akim Demaille <akim@epita.fr>
1933 Let the handling of the skeleton files be local to the procedures
1936 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1938 (fparser, open_extra_files): Remove.
1939 (open_files, output_files): Don't take care of fparser.
1940 * src/files.h: Adjust.
1941 * src/output.c (output_parser): Open and close the file to the
1943 * src/reader.c (read_declarations): When %semantic_parser, open
1946 2000-12-19 Akim Demaille <akim@epita.fr>
1948 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1949 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1951 2000-12-19 Akim Demaille <akim@epita.fr>
1953 * src/files.c (open_files): Yipee! We no longer need all the code
1954 looking for `/tmp' since we have no tmp file.
1956 2000-12-19 Akim Demaille <akim@epita.fr>
1958 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1960 * src/files.c (open_files): Less dependency on MSDOS etc.
1962 2000-12-14 Akim Demaille <akim@epita.fr>
1964 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1965 Provide a default definition.
1966 Use it when executing the default @ action.
1967 * src/reader.c (reader_output_yylsp): No longer include
1968 `timestamp' and `text' in the default YYLTYPE.
1970 2000-12-12 Akim Demaille <akim@epita.fr>
1972 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1973 (copy_guard): Quote the file names.
1974 Reported by Laurent Mascherpa.
1976 2000-12-12 Akim Demaille <akim@epita.fr>
1978 * src/output.c (output_headers, output_program, output): Be sure
1979 to escape special characters when outputting filenames.
1980 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1981 (output_headers): Don't depend on them, Use ACTSTR.
1983 2000-11-17 Akim Demaille <akim@epita.fr>
1985 * lib/obstack.h: Formatting changes.
1986 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1987 prevents type checking.
1988 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1989 cast the value to (void *): assigning a `foo *' to a `void *'
1991 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1992 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1995 2000-11-17 Akim Demaille <akim@epita.fr>
1997 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1999 (suite.m4, regression.m4, calc.m4): these.
2000 * tests/atgeneral.m4: Update from CVS Autoconf.
2002 2000-11-17 Akim Demaille <akim@epita.fr>
2004 * tests/regression.m4 (%union and --defines): New test,
2005 demonstrating a current bug in the obstack implementation.
2007 2000-11-17 Akim Demaille <akim@epita.fr>
2009 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2011 Use them to declare the variables which are global or local to
2014 2000-11-17 Akim Demaille <akim@epita.fr>
2016 * acconfig.h: Remove, no longer used.
2018 2000-11-07 Akim Demaille <akim@epita.fr>
2020 * src: s/Copyright (C)/Copyright/g.
2022 2000-11-07 Akim Demaille <akim@epita.fr>
2024 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2026 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2028 2000-11-07 Akim Demaille <akim@epita.fr>
2030 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2031 Merge in a single CPP if/else.
2033 2000-11-07 Akim Demaille <akim@epita.fr>
2035 * src/output.c (output): Remove useless variables.
2036 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2037 argument `data' for consistency with the prototypes.
2039 (obstack_copy, obstack_copy0): Rename the second argument as
2040 `address' for consistency. Qualify it `const'.
2041 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2042 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2043 `const' their input argument (`data' or `address').
2044 Adjust the corresponding macros to include `const' in casts.
2046 2000-11-03 Akim Demaille <akim@epita.fr>
2048 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2049 s/PFILE1/BISON_HAIRY/.
2050 Adjust dependencies.
2052 2000-11-03 Akim Demaille <akim@epita.fr>
2054 For some reason, this was not applied.
2056 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2057 `unlink': it's no longer used.
2059 2000-11-03 Akim Demaille <akim@epita.fr>
2061 * src/files.c (skeleton_find): New function, eved out of...
2062 (open_files, open_extra_files): here.
2064 2000-11-03 Akim Demaille <akim@epita.fr>
2068 * src/files.c (obstack_save): New function.
2069 (done): Rename as...
2070 (output_files): this.
2072 * src/main.c (main): Don't use `atexit' to register `done', since
2073 it no longer has to remove tmp files, just call `output_files'
2074 when there are no errors.
2076 2000-11-02 Akim Demaille <akim@epita.fr>
2078 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2079 `unlink': it's no longer used.
2080 * src/files.h: Formatting changes.
2082 2000-11-02 Akim Demaille <akim@epita.fr>
2084 Remove the last uses of mktemp and unlink/delete.
2086 * src/files.c (fdefines, ftable): Removed.
2087 (defines_ostack, table_obstack): New.
2088 Adjust dependencies of the former into uses of the latter.
2089 * src/output.c (output_short_or_char_table, output_short_table):
2090 Convert to using obstacks.
2091 * src/reader.c (copy_comment2): Accept one FILE * and two
2093 (output_token_defines, reader_output_yylsp): Use obstacks.
2094 * src/system.h (obstack_fgrow3): New.
2096 2000-11-01 Akim Demaille <akim@epita.fr>
2098 Change each use of `fattrs' into a use of `attrs_obstack'.
2100 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2101 * src/files.c (fattrs): Remove.
2102 (attrs_obstack): New.
2103 Adjust all dependencies.
2104 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2106 2000-11-01 Akim Demaille <akim@epita.fr>
2109 Change each use of `faction' into a use of `action_obstack'.
2111 * lib/obstack.h, lib/obstack.c: New files.
2112 * src/files.c (faction): Remove.
2113 (action_obstack): New.
2114 Adjust all dependencies.
2116 2000-10-20 Akim Demaille <akim@epita.fr>
2118 * lib/quote.h (PARAMS): New macro. Use it.
2120 2000-10-16 Akim Demaille <akim@epita.fr>
2122 * src/output.c (output_short_or_char_table): New function.
2123 (output_short_table, output_token_translations): Use it.
2124 (goto_actions): Use output_short_table.
2126 2000-10-16 Akim Demaille <akim@epita.fr>
2128 * src/symtab.c (bucket_new): New function.
2131 * src/output.c (output_short_table): New argument to display the
2132 comment associated with the table.
2133 Adjust dependencies.
2134 (output_gram): Use it.
2135 (output_rule_data): Nicer output layout for YYTNAME.
2137 2000-10-16 Akim Demaille <akim@epita.fr>
2139 * src/lex.c (read_typename): New function.
2141 * src/reader.c (copy_dollar): Likewise.
2143 2000-10-16 Akim Demaille <akim@epita.fr>
2145 * src/reader.c (copy_comment2): Expect the input stream to be on
2146 the `/' which is suspected to open a comment, instead of being
2147 called after `//' or `/*' was read.
2148 (copy_comment, copy_definition, parse_union_decl, copy_action)
2149 (copy_guard): Adjust.
2151 2000-10-16 Akim Demaille <akim@epita.fr>
2153 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2154 `read_signed_integer'.
2156 2000-10-16 Akim Demaille <akim@epita.fr>
2158 * src/reader.c (copy_dollar): New function.
2159 (copy_guard, copy_action): Use it.
2161 2000-10-16 Akim Demaille <akim@epita.fr>
2163 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2164 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2165 New files, from Fileutils 4.0.27.
2166 * src/main.c (printable_version): Remove.
2167 * src/lex.c, src/reader.c: Use `quote'.
2169 2000-10-04 Akim Demaille <akim@epita.fr>
2171 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2173 2000-10-04 Akim Demaille <akim@epita.fr>
2175 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2177 2000-10-04 Akim Demaille <akim@epita.fr>
2179 When a literal string is used to define two different tokens,
2180 `bison -v' segfaults.
2181 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2183 * tests/regression.m4: New file.
2184 Include the core of the sample provided by Piotr Gackiewicz.
2185 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2188 2000-10-04 Akim Demaille <akim@epita.fr>
2190 * src/reader.c (parse_expect_decl): Keep `count' within the size
2194 2000-10-02 Paul Eggert <eggert@twinsun.com>
2196 * bison.s1 (yyparse): Assign the default value
2197 unconditionally, to avoid a GCC warning and make the parser a
2200 2000-10-02 Akim Demaille <akim@epita.fr>
2202 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2205 2000-10-02 Akim Demaille <akim@epita.fr>
2207 * src/derives.c, src/print.c, src/reduce.c: To ease the
2208 translation, move some `\n' out of the translated strings.
2210 2000-10-02 Akim Demaille <akim@epita.fr>
2212 The location tracking mechanism is precious for parse error
2213 messages. Nevertheless, it is enabled only when `@n' is used in
2214 the grammar, which is a different issue (you can use it in error
2215 message, but not in the grammar per se). Therefore, there should
2216 be another means to enable it.
2218 * src/getargs.c (getargs): Support `--locations'.
2220 * src/getargs.h (locationsflag): Export it.
2221 * src/lex.c (percent_table): Support `%locations'.
2222 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2223 with `locationsflag'.
2224 * doc/bison.texinfo: Document `--locations' and `%locations'.
2226 * tests/calc.m4: Test it.
2228 For regularity of the names, replace each
2229 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2230 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2231 In addition replace each `flag' with `_flag'.
2233 2000-10-02 Akim Demaille <akim@epita.fr>
2235 Also test parse error messages, including with YYERROR_VERBOSE.
2237 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2239 Use it to check the computations.
2240 Use it to check `nonassoc' is honored.
2241 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2242 `--yyerror-verbose'.
2243 (_AT_CHECK_CALC): Adjust to this option.
2244 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2246 2000-10-02 Akim Demaille <akim@epita.fr>
2248 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2249 the latter demonstrates a flaw in the handling of non debugging
2250 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2251 was used in order to simplify:
2267 unfortunately this leads to a CPP conflict when
2268 `--name-prefix=foo' is used since it produces `#define yydebug
2271 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2272 (YYDPRINTF): New macro.
2274 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2276 Also test `--verbose', `--defines' and `--name-prefix'.
2278 2000-10-02 Akim Demaille <akim@epita.fr>
2280 Improve the readability of the produced parsers.
2282 * src/bison.s1: Formatting changes.
2283 Improve the comment related to the `$' mark.
2284 (yydefault): Don't fall through to `yyresume': `goto' there.
2285 * src/output.c (output_parser): When the `$' is met, skip the end
2287 New variable, `number_of_dollar_signs', to check there's exactly
2288 one `$' in the parser skeleton.
2290 2000-10-02 Akim Demaille <akim@epita.fr>
2292 * lib/xstrdup.c: New file, from the fileutils.
2293 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2294 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2295 instead of strlen + xmalloc + strcpy.
2296 * src/symtab.c (copys): Remove, use xstrdup instead.
2298 2000-10-02 Akim Demaille <akim@epita.fr>
2300 * src/gram.h (associativity): New enum type which replaces the
2301 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2302 `right_assoc', `left_assoc' and `non_assoc'.
2303 Adjust all dependencies.
2304 * src/reader.c: Formatting changes.
2305 (LTYPESTR): Don't define it, use it as a literal in
2306 `reader_output_yylsp'.
2307 * src/symtab.h (symbol_class): New enum type which replaces the
2308 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2309 `sunknown', `stoken and `snterm'.
2311 2000-10-02 Akim Demaille <akim@epita.fr>
2313 * src/getargs.c (fixed_outfiles): Rename as...
2314 (yaccflag): for consistency and accuracy.
2315 Adjust dependencies.
2317 2000-10-02 Akim Demaille <akim@epita.fr>
2319 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2320 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2321 difficult and introduced a lot of core dump. It turns out that
2322 Bison used an implementation of `xmalloc' based on `calloc', and
2323 at various places it does depend upon the initialization to 0. I
2324 have not tried to isolate the pertinent places, and all the former
2325 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2326 someone should address this issue.
2328 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2329 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2331 Adjust dependencies.
2332 * src/warshall.h: New file.
2335 2000-10-02 Akim Demaille <akim@epita.fr>
2337 Various anti-`extern in *.c' changes.
2339 * src/system.h: Include `assert.h'.
2341 2000-10-02 Akim Demaille <akim@epita.fr>
2343 * src/state.h (nstates, final_state, first_state, first_shift)
2344 (first_reduction): Move their exportation from here...
2345 * src/LR0.h: to here.
2346 Adjust dependencies.
2347 * src/getargs.c (statisticsflag): New variable.
2348 Add support for `--statistics'.
2349 Adjust dependencies.
2351 Remove a lot of now useless `extern' statements in most files.
2353 2000-10-02 Akim Demaille <akim@epita.fr>
2355 * src/LR0.h: New file.
2358 2000-10-02 Akim Demaille <akim@epita.fr>
2360 * src/print.h: New file.
2362 * src/print.c: Formatting and ordering changes.
2363 (verbose, terse): Replace with...
2364 (print_results): this new function.
2365 Adjust dependencies.
2367 2000-10-02 Akim Demaille <akim@epita.fr>
2369 * src/conflicts.c (conflict_report): New function.
2370 (conflict_log, verbose_conflict_log): Replace with...
2371 (print_conflicts): this function.
2372 Adjust dependencies.
2373 * src/conflicts.h: New file.
2374 Propagate its inclusion.
2376 2000-10-02 Akim Demaille <akim@epita.fr>
2378 * src/nullable.h: New file.
2379 Propagate its inclusion.
2380 * src/nullable.c: Formatting changes.
2382 2000-10-02 Akim Demaille <akim@epita.fr>
2384 * src/reduce.h: New file.
2385 Propagate its inclusion.
2386 * src/reduce.c: Topological sort and other formatting changes.
2387 (bool, TRUE, FALSE): Move their definition to...
2388 * src/system.h: here.
2390 2000-10-02 Akim Demaille <akim@epita.fr>
2392 * src/files.c: Formatting changes.
2393 (tryopen, tryclose, openfiles): Rename as...
2394 (xfopen, xfclose, open_files): this.
2395 (stringappend): static.
2396 * src/files.h: Complete the list of exported symbols.
2399 2000-10-02 Akim Demaille <akim@epita.fr>
2401 * src/reader.h: New file.
2402 Propagate its use instead of tedious list of `extern' and
2404 * src/reader.c: Formatting changes, topological sort,
2407 2000-10-02 Akim Demaille <akim@epita.fr>
2409 * src/lex.h: Prototype `lex.c' exported functions.
2410 * src/reader.c: Adjust.
2411 * src/lex.c: Formatting changes.
2412 (safegetc): Rename as...
2415 2000-10-02 Akim Demaille <akim@epita.fr>
2417 * src/lalr.h: New file.
2418 Propagate its inclusion instead of prototypes and `extern'.
2419 * src/lalr.c: Formatting changes, topological sorting etc.
2421 2000-10-02 Akim Demaille <akim@epita.fr>
2423 * src/output.c (token_actions): Introduce a temporary array,
2424 YYDEFACT, that makes it possible for this function to use
2427 2000-10-02 Akim Demaille <akim@epita.fr>
2429 `user_toknums' is output as a `short[]' in `output.c', while it is
2430 defined as a `int[]' in `reader.c'. For consistency with the
2431 other output tables, `user_toknums' is now defined as a table of
2434 * src/reader.c (user_toknums): Be a short table instead of an int
2436 Adjust dependencies.
2438 Factor the short table outputs.
2440 * src/output.c (output_short_table): New function.
2441 * src/output.c (output_gram, output_stos, output_rule_data)
2442 (output_base, output_table, output_check): Use it.
2444 2000-10-02 Akim Demaille <akim@epita.fr>
2446 * src/output.c (output): Topological sort of the functions, in
2447 order to get rid of the `static' prototypes.
2448 No longer use `register'.
2449 * src/output.h: New file.
2450 Propagate its inclusion in files explicitly prototyping functions
2453 2000-09-21 Akim Demaille <akim@epita.fr>
2455 * src/atgeneral.m4: Update from Autoconf.
2457 2000-09-21 Akim Demaille <akim@epita.fr>
2459 * src/closure.h: New file.
2460 * src/closure.c: Formatting changes, topological sort over the
2461 functions, use of closure.h.
2462 (initialize_closure, finalize_closure): Rename as...
2463 (new_closure, free_closure): these. Adjust dependencies.
2464 * src/LR0.c: Formatting changes, topological sort, use of
2466 (initialize_states): Rename as...
2468 * src/Makefile.am (noinst_HEADERS): Adjust.
2470 2000-09-20 Akim Demaille <akim@epita.fr>
2472 * src/acconfig.h: Don't protect config.h against multiple
2474 Don't define PARAMS.
2475 * src/system.h: Define PARAMS.
2476 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2477 purpose of config.h. system.h must not try to fix wrong
2478 definitions in config.h.
2480 2000-09-20 Akim Demaille <akim@epita.fr>
2482 * src/derives.h: New file.
2483 * src/main.c, src/derives.h: Use it.
2485 * src/Makefile.am (noinst_HEADERS): Adjust.
2487 2000-09-20 Akim Demaille <akim@epita.fr>
2489 * tests/atgeneral.m4: Update from Autoconf.
2490 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2491 (AT_CHECK_CALC): New macros.
2492 Use these macros to test bison with options `', `--raw',
2493 `--debug', `--yacc', `--yacc --debug'.
2495 2000-09-19 Akim Demaille <akim@epita.fr>
2497 * src/output.c: Formatting changes.
2498 * src/machine.h: Remove, leaving its contents in...
2499 * src/system.h: here.
2501 Adjust all dependencies on stdio.h and machine.h.
2502 * src/getargs.h: New file.
2503 Let all `extern' declarations about getargs.c be replaced with
2504 inclusion of `getargs.h'.
2505 * src/Makefile.am (noinst_HEADERS): Adjust.
2507 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2509 (yyerror): Returns void, not int.
2510 * doc/bison.texinfo: Formatting changes.
2512 2000-09-19 Akim Demaille <akim@epita.fr>
2514 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2517 2000-09-18 Akim Demaille <akim@epita.fr>
2519 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2520 * src/Makefile.am (INCLUDES): Don't.
2521 Be ready to fetch headers in lib/.
2523 2000-09-18 Akim Demaille <akim@epita.fr>
2525 * doc/bison.texinfo: Update the copyright.
2526 ANSIfy and GNUify the examples.
2527 Remove the old menu.
2529 2000-09-18 Akim Demaille <akim@epita.fr>
2531 First set of tests: use the `calc' example from the documentation.
2533 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2534 is defined only when YYDEBUG is.
2535 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2536 * src/files.c (tryopen, tryclose): Formatting changes.
2537 Move to the top and be static.
2538 * src/reader.c (read_signed_integer): Likewise.
2539 * tests/calc.m4: New file.
2540 * Makefile.am, suite.m4: Adjust.
2541 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2543 2000-09-18 Akim Demaille <akim@epita.fr>
2545 Add support for an Autotest test suite for Bison.
2547 * m4/m4.m4, m4/atconfig.m4: New files.
2548 * m4/Makefile.am (EXTRA_DIST): Adjust.
2549 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2551 * src/getargs.c: Display a more standard --version message.
2552 * src/reader.c (reader): Formatting changes.
2553 No longer depend upon VERSION_STRING.
2554 * configure.in: No longer use `dnl'.
2555 Set up the test suite and the new directory `tests/.
2556 (VERSION_STRING): Remove.
2558 2000-04-14 Akim Demaille <akim@epita.fr>
2560 * src/reader.c (copy_comment2): New function, same as former
2561 `copy_comment', but outputs into two FILE *.
2562 (copy_comment): Use it.
2563 (parse_union_decl): Use it.
2564 (get_type, parse_start_decl): Use the same `invalid' message.
2565 (parse_start_decl, parse_union_decl): Use the same `multiple'
2567 (parse_union_decl, copy_guard, copy_action): Use the same
2568 `unmatched' message.
2569 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2571 2000-03-31 Akim Demaille <akim@epita.fr>
2573 * src/files.c (tryopen, tryclose): Move to the top.
2576 2000-03-31 Akim Demaille <akim@epita.fr>
2578 * src/main.c (main): Don't call `done', exit does it.
2580 2000-03-31 Akim Demaille <akim@epita.fr>
2582 * allocate.c: s/return (foo)/return foo/.
2585 * output.c: Likewise.
2586 * reader.c: Likewise.
2587 * symtab.c: Likewise.
2588 * vmsgetargs.c: Likewise.
2590 2000-03-31 Akim Demaille <akim@epita.fr>
2592 Clean up the error reporting functions.
2594 * src/report.c: New file.
2595 * src/report.h: Likewise.
2596 * src/Makefile.am: Adjust.
2597 * m4/error.m4: New file.
2598 * m4/Makefile.am: Adjust.
2599 * configure.in (jm_PREREQ_ERROR): Call it.
2600 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2602 (fatal, fatals): Remove. All callers use complain.c::fatal.
2603 (warn, warni, warns, warnss, warnss): Remove. All callers use
2604 complain.c::complain.
2605 (toomany): Remove, use fatal instead.
2606 * src/files.c (done): No argument, use complain_message_count.
2607 * src/main.c (main): Register `done' to `atexit'.
2609 * src/getargs.c (usage): More `fputs', less `fprintf'.
2611 2000-03-28 Akim Demaille <akim@epita.fr>
2613 * lib/: New directory.
2614 * Makefile.am (SUBDIRS): Adjust.
2615 * configure.in: Adjust.
2616 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2618 * src/alloca.c: Moved to lib/.
2619 * src/getopt.c: Likewise.
2620 * src/getopt1.c: Likewise.
2621 * src/getopt.h: Likewise.
2622 * src/ansi2knr.c: Likewise.
2623 * src/ansi2knr.1: Likewise.
2624 * src/Makefile.am: Adjust.
2625 * lib/Makefile.am: New file.
2627 2000-03-28 Akim Demaille <akim@epita.fr>
2629 * src/getargs.c (usage): Refresh the help message.
2631 2000-03-17 Akim Demaille <akim@epita.fr>
2633 * src/getopt1.c: Updated from textutils 2.0e
2634 * src/getopt.c: Likewise.
2635 * src/getopt.h: Likewise.
2637 2000-03-17 Akim Demaille <akim@epita.fr>
2639 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2640 the file name, not the whole `#line LINE FILE'.
2642 2000-03-17 Akim Demaille <akim@epita.fr>
2644 On syntax errors, report the token on which we choked.
2646 * src/bison.s1 (yyparse): In the label yyerrlab, when
2647 YYERROR_VERBOSE, add yychar in msg.
2649 2000-03-17 Akim Demaille <akim@epita.fr>
2651 * src/reader.c (copy_at): New function.
2652 (copy_guard): Use it.
2653 (copy_action): Use it.
2655 2000-03-17 Akim Demaille <akim@epita.fr>
2657 Be kind to translators, save some useless translations.
2659 * src/main.c (banner): New function.
2660 (fatal_banner): Use it.
2661 (warn_banner): Use it.
2663 2000-03-17 Akim Demaille <akim@epita.fr>
2665 * src/reader.c (copy_definition): Use copy_string and
2666 copy_comment. Removed now unused `match', `ended',
2668 (copy_comment, copy_string): Moved, to be visible from
2671 2000-03-17 Akim Demaille <akim@epita.fr>
2673 * src/reader.c (copy_string): Declare `static inline'. No
2674 problems with inline, since it is checked by configure.
2675 (copy_comment): Likewise.
2677 2000-03-17 Akim Demaille <akim@epita.fr>
2679 * src/reader.c (packsymbols): Formatting changes.
2681 2000-03-17 Akim Demaille <akim@epita.fr>
2683 * src/reader.c (copy_comment): New function, factored out from:
2684 (copy_action): Use it. Removed now unused `match', `ended',
2686 (copy_guard): Likewise.
2688 2000-03-17 Akim Demaille <akim@epita.fr>
2690 * src/reader.c (copy_string): New function, factored out from:
2691 (copy_action): Use it.
2692 (copy_guard): Likewise.
2694 2000-03-17 Akim Demaille <akim@epita.fr>
2696 Change the handling of @s so that they behave exactly like $s.
2697 There is now a pseudo variable @$ (readble and writable), location
2698 of the lhs of the rule (by default ranging from the location of
2699 the first symbol of the rhs, to the location of the last symbol,
2700 or, if the rhs is empty, YYLLOC).
2702 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2704 (yyparse): When providing a default semantic action, provide a
2705 default location action.
2706 (after the $): No longer change `*YYLSP', just stack YYLOC the
2707 same way you stack YYVAL.
2708 * src/reader.c (read_declarations): Use warns.
2709 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2710 (copy_action, case '@'): Likewise.
2711 Use a standard error message, to save useless work from
2714 2000-03-17 Akim Demaille <akim@epita.fr>
2716 * src/bison.s1: Formatting and cosmetics changes.
2717 * src/reader.c: Likewise.
2718 Update the Copyright notice.
2720 2000-03-17 Akim Demaille <akim@epita.fr>
2722 * src/bison.s1 (#line): All set to `#line' only, since the
2723 Makefile now handles them.
2725 2000-03-16 Akim Demaille <akim@epita.fr>
2727 * src/output.c (output_rule_data): Output the documentation of
2729 (Copyright notice): Update.
2732 2000-03-16 Akim Demaille <akim@epita.fr>
2734 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2735 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2736 One `#if YYDEBUG' remains, since it uses variables which are
2737 defined only if `YYDEBUG != 0'.
2739 2000-03-16 Akim Demaille <akim@epita.fr>
2741 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2742 and related variables so that the similarities are highlighted.
2744 2000-03-16 Akim Demaille <akim@epita.fr>
2746 * src/bison.s1: Properly indent CPP directives.
2748 2000-03-16 Akim Demaille <akim@epita.fr>
2750 * src/bison.s1: Properly indent the `alloca' CPP section.
2752 2000-03-16 Akim Demaille <akim@epita.fr>
2754 Do not hard code values of directories in `configure.in'.
2755 Update the `configure' tool chain.
2757 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2759 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2760 (AC_OUTPUT): Add m4/Makefile.
2761 Bump to bison 1.28a, 1.29 has never been released.
2762 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2763 handled via src/Makefile.am.
2764 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2765 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2767 * Makefile.am (SUBDIRS): Add m4.
2768 (ACLOCAL_AM_FLAGS): New variable.
2769 (AUTOMAKE_OPTIONS): Add check-news.
2770 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2771 the proper line number and file name.
2772 (DEFS): Propagate the location of bison library files and of the
2774 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2776 * acinclude.m4: Remove, replaced by the directory m4.
2777 * m4/Makefile.am (EXTRA_DIST): New variable.
2778 * m4/gettext.m4: New file, from the fileutils.
2779 * m4/lcmessage.m4: Likewise
2780 * m4/progtest.m4: Likewise.
2781 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2783 2000-03-10 Akim Demaille <akim@epita.fr>
2786 Formatting changes of various comments.
2787 Respect the GNU coding standards at various places.
2788 Don't use `_()' when no translation is needed.
2790 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2793 OS/2 honors TMPDIR environment variable.
2795 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2797 * doc/bison.texinfo: Tweaked spelling and grammar.
2799 Removed reference to price of printed copy.
2800 Mention BISON_SIMPLE and BISON_HAIRY.
2802 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2804 * configure.in, NEWS:
2805 Bison 1.29 released.
2807 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2809 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2810 Added reference card.
2812 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2814 * po/ru.po: Added Russian translation.
2816 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2818 * configure.in: Added Russian translation.
2820 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2822 * configure.in, NEWS, README:
2823 Released version 1.28.
2825 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2828 Squashed redefinition warning on some systems.
2830 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2831 Have configure build version string instead of relying on ANSI string
2834 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2836 * po/POTFILES.in: Got rid of version.c.
2838 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2840 * acconfig.h, configure.in:
2841 Have configure build version string instead of relying on ANSI string
2844 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2847 Dropped mention of `+' for long-named options.
2849 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2851 * src/files.c: Added <unistd.h> for unlink().
2853 * src/Makefile.am, src/system.h:
2856 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2858 * README: Added a FAQ list.
2860 * configure.in, acconfig.h:
2863 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2865 * doc/FAQ, doc/Makefile.am:
2868 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2870 * src/alloc.h, src/symtab.h, src/version.c:
2871 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2873 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2875 * src/.cvsignore, src/Makefile.am:
2876 Reorganized: sources in `src', documentation in `doc'.
2878 * src/lex.c (literalchar):
2879 fixed the code for escaping double quotes (thanks
2882 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2884 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2885 Adjusted paths to reflect directory reorganization.
2887 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2889 * doc/.cvsignore, doc/Makefile.am:
2890 Reorganized: sources in `src', documentation in `doc'.
2892 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2895 Updated AC_INIT file to reflect directory reorganization.
2897 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2898 Reorganized: sources in `src', documentation in `doc'.
2900 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2903 Don't declare calloc() and realloc() if not necessary.
2905 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2907 * configure.in, acconfig.h, acinclude.m4:
2908 Don't declare calloc() and realloc() if not necessary.
2910 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2912 * po/.cvsignore: Added i18n support.
2914 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2916 * acconfig.h, configure.in, Makefile.am:
2919 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2921 * src/bison.s1: Fixed #line numbers.
2923 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2925 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2926 Added PO files from Translation Project.
2928 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2931 Added support for non-ANSI compilers (ansi2knr).
2933 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2935 * configure.in: Bumped version number to 1.27.
2938 Added `bison.simple' to list of files removed by `make distclean'.
2940 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2942 * src/files.c, src/files.h:
2943 Defined locations of parser files in config.h instead of Makefile.
2945 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2947 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2948 Defined locations of parser files in config.h instead of Makefile.
2950 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2953 Removed inappropriate use of $< macro.
2955 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2957 * po/Makefile.in.in, po/POTFILES.in:
2958 Add `po' directory skeleton.
2960 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2962 * README: Document help-bison list.
2964 * configure.in: Add check for mkstemp().
2966 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2968 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2969 Hush a few compiler warnings.
2972 Add tryclose(), which verifies that fclose was successful.
2973 Hush a couple of compiler warnings.
2975 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2977 * Makefile.am, OChangeLog:
2978 ChangeLog is now automatically generated. Include the old version as
2981 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2983 * 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:
2986 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2988 * doc/bison.texinfo: Fix formatting glitch.
2990 * doc/bison.texinfo: Update FSF address.
2992 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2994 * acconfig.h: Update FSF address.
2996 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2999 Don't define PACKAGE here, since config.h defines it.
3001 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3003 * src/reader.c: Update copyright date.
3006 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3007 favor of output directly to stderr (avoids buffer overruns).
3009 * src/reader.c: Some checks for premature EOF.
3011 * 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:
3012 Use prototypes if the compiler understands them.
3014 * src/files.c: Honor TMPDIR on Unix hosts.
3015 Use prototypes if the compiler understands them.
3018 Fix a couple of buffer overrun bugs.
3019 Use prototypes if the compiler understands them.
3021 * src/system.h: Include unistd.h and ctype.h.
3022 Use #ifdef instead of #if for NLS symbols.
3024 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3026 * doc/bison.texinfo:
3027 Delete comment "consider using @set for edition number, etc..." since
3028 we now are doing so.
3030 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3033 Use prototypes if the compiler understands them.
3035 * NEWS: Document 1.26 highlights.
3037 * Makefile.am: Require Automake 1.3 or later.
3040 Use prototypes if the compiler understands them.
3042 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3045 Use VERSION symbol from automake for version number.
3047 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3049 * acconfig.h, configure.in, version.cin:
3050 Use VERSION symbol from automake for version number.
3052 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3055 Distribute original version of simple parser (bison.s1), not built
3056 version (bison.simple).
3058 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3060 * doc/bison.texinfo: Add info dir entry.
3062 * doc/bison.texinfo:
3063 Let automake put version number into documentation.
3065 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3067 * src/bison.cld, src/build.com, src/vmshlp.mar:
3068 Add non-RCS files from /gd/gnu/bison.
3070 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3073 Document the BISON_HAIRY and BISON_SIMPLE variables.
3075 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3077 * src/version.c: Build version.c automatically.
3080 Fix token numbering (used to start at 258, not 257).
3082 * src/system.h: Include config.h.
3084 * src/getargs.c: Update bug report address.
3086 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3087 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3089 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3092 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3094 * configure.in, version.cin:
3095 Build version.c automatically.
3097 * AUTHORS: Add AUTHORS file.
3099 * README: Update bug report address.
3102 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3104 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3107 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3109 * doc/bison.texinfo: Clean up some formatting.
3111 1998-05-05 Richard Stallman <rms@gnu.org>
3113 * doc/bison.texinfo:
3114 Explain better why to make a pure parser.
3116 1998-01-05 Richard Stallman <rms@gnu.org>
3118 * src/files.c (openfiles):
3119 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3120 find a temporary directory, if possible. Do not unlink files while
3123 1997-08-25 Richard Stallman <rms@gnu.org>
3125 * src/reader.c (stack_offset;):
3126 Change some warni to warns.
3128 * src/lex.c (literalchar): Use warns, not warni.
3130 1997-06-28 Richard Stallman <rms@gnu.org>
3132 * src/bison.s1: Add a Bison version comment.
3134 * src/main.c (fatal, warn, berror):
3137 1997-06-28 Richard Stallman <rms@gnu.org>
3139 * Makefile.in (bison_version): New variable.
3140 (dist): Use that variable.
3141 (bison.s1): Substitute the Bison version into bison.simple.
3143 * bison.simple: Add a Bison version comment.
3145 1997-06-18 Richard Stallman <rms@gnu.org>
3147 * src/main.c (fatal, warn, berror):
3148 Make error messages standard.
3149 (toomany): Improve error message text.
3151 * 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:
3152 new.h renamed to alloc.h.
3154 1997-06-18 Richard Stallman <rms@gnu.org>
3156 * Makefile.in: new.h renamed to alloc.h.
3158 1997-05-24 Richard Stallman <rms@gnu.org>
3160 * src/lex.c (literalchar):
3161 Fix the code for escaping \, " and '.
3163 (lex): Avoid trouble when there are many chars
3164 to discard in a char literal with just several chars in it.
3166 1997-05-17 Richard Stallman <rms@gnu.org>
3169 Use malloc, if using alloca is troublesome.
3170 (YYSTACK_USE_ALLOCA): New flag macro.
3171 Define it for some systems and compilers.
3172 (YYSTACK_ALLOC): New macro.
3173 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3174 If it was malloc'd, free it.
3176 1997-05-17 Richard Stallman <rms@gnu.org>
3179 Use malloc, if using alloca is troublesome.
3180 (YYSTACK_USE_ALLOCA): New flag macro.
3181 Define it for some systems and compilers.
3182 (YYSTACK_ALLOC): New macro.
3183 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3184 If it was malloc'd, free it.
3186 1997-04-23 Richard Stallman <rms@gnu.org>
3189 (alloca) [__hpux]: Always define as __builtin_alloca.
3191 1997-04-23 Richard Stallman <rms@gnu.org>
3194 (alloca) [__hpux]: Always define as __builtin_alloca.
3196 1997-04-22 Richard Stallman <rms@gnu.org>
3199 [__hpux]: Include alloca.h (right for HPUX 10)
3200 instead of declaring alloca (right for HPUX 9).
3202 * src/bison.s1 (__yy_memcpy):
3203 Declare arg `count' as unsigned int.
3204 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3206 1997-04-22 Richard Stallman <rms@gnu.org>
3209 [__hpux]: Include alloca.h (right for HPUX 10)
3210 instead of declaring alloca (right for HPUX 9).
3212 * bison.simple (__yy_memcpy):
3213 Declare arg `count' as unsigned int.
3214 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3216 1997-01-03 Richard Stallman <rms@gnu.org>
3218 * src/allocate.c: [__STDC__ or _MSC_VER]:
3219 Declare calloc and realloc to return void *.
3221 1997-01-02 Richard Stallman <rms@gnu.org>
3224 [_MSC_VER]: Include stdlib.h and process.h.
3225 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3227 * src/main.c (main): Return FAILURE as a value.
3228 (printable_version): Declare arg as int, not char.
3230 1997-01-02 Richard Stallman <rms@gnu.org>
3232 * Makefile.in (dist):
3233 Explicitly check for symlinks, and copy them.
3235 1996-12-19 Richard Stallman <rms@gnu.org>
3238 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3240 1996-12-18 Paul Eggert <eggert@gnu.org>
3242 * src/bison.s1 (yyparse):
3243 If __GNUC__ and YYPARSE_PARAM are both defined,
3244 declare yyparse to have a void * argument.
3246 1996-12-18 Paul Eggert <eggert@gnu.org>
3248 * bison.simple (yyparse):
3249 If __GNUC__ and YYPARSE_PARAM are both defined,
3250 declare yyparse to have a void * argument.
3252 1996-12-17 Richard Stallman <rms@gnu.org>
3254 * src/reduce.c (nbits): Add some casts.
3256 1996-08-12 Richard Stallman <rms@gnu.org>
3258 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3260 1996-08-12 Richard Stallman <rms@gnu.org>
3262 * bison.simple: Test _MSDOS as well as _MSDOS_.
3264 1996-07-31 Richard Stallman <rms@gnu.org>
3267 [__sun && __i386]: Include alloca.h.
3269 1996-07-31 Richard Stallman <rms@gnu.org>
3272 [__sun && __i386]: Include alloca.h.
3274 1996-07-30 Richard Stallman <rms@gnu.org>
3276 * src/bison.s1: Comment change.
3278 * src/bison.s1: Test _MSDOS_, not MSDOS.
3280 1996-07-30 Richard Stallman <rms@gnu.org>
3282 * bison.simple: Comment change.
3284 * bison.simple: Test _MSDOS_, not MSDOS.
3286 1996-06-01 Richard Stallman <rms@gnu.org>
3288 * 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:
3289 Insert `_' macro around many string constants.
3292 Insert `_' macro around many string constants.
3294 (main): Call setlocale, bindtextdomain and textdomain.
3296 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3297 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3298 [ENABLE_NLS]: Include libintl.h.
3299 [ENABLE_NLS] (gettext): Define.
3300 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3301 (N_, PACKAGE, LOCALEDIR): New macros.
3303 1996-06-01 Richard Stallman <rms@gnu.org>
3305 * POTFILES.in: New file.
3307 * Makefile.in (allocate.o):
3308 Define target explicitly.
3310 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3311 (LDFLAGS): Set to @LDFLAGS@.
3312 (configure): Run autoconf only if preceding `cd' succeeds.
3313 (bison.s1): Redirect output to temporary file then move the
3314 temporary to the target, rather than redirecting directly to bison.s1.
3315 (clean): Remove config.status and config.log.
3316 (distclean): Don't remove config.status here.
3318 1996-05-12 Richard Stallman <rms@gnu.org>
3321 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3323 1996-05-12 Richard Stallman <rms@gnu.org>
3326 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3328 1996-05-11 Richard Stallman <rms@gnu.org>
3330 * src/bison.s1 (__yy_memcpy):
3331 Really reorder the args, as was supposedly done on Feb 14 1995.
3332 (yyparse): Calls changed accordingly.
3334 1996-05-11 Richard Stallman <rms@gnu.org>
3336 * Makefile.in (dist): Don't use $(srcdir).
3338 * bison.simple (__yy_memcpy):
3339 Really reorder the args, as was supposedly done on Feb 14 1995.
3340 (yyparse): Calls changed accordingly.
3342 1996-01-27 Richard Stallman <rms@gnu.org>
3344 * src/output.c (output_rule_data):
3345 Test YYERROR_VERBOSE in the conditional
3346 around the definition of ttyname.
3348 1995-12-29 Richard Stallman <rms@gnu.org>
3351 Fix line numbers in #line commands.
3353 1995-12-29 Richard Stallman <rms@gnu.org>
3356 Fix line numbers in #line commands.
3358 1995-12-27 Richard Stallman <rms@gnu.org>
3360 * src/bison.s1 (YYPARSE_PARAM_DECL):
3361 In C++, make it always null.
3362 (YYPARSE_PARAM_ARG): New macro.
3363 (yyparse): Use YYPARSE_PARAM_ARG.
3365 1995-12-27 Richard Stallman <rms@gnu.org>
3367 * bison.simple (YYPARSE_PARAM_DECL):
3368 In C++, make it always null.
3369 (YYPARSE_PARAM_ARG): New macro.
3370 (yyparse): Use YYPARSE_PARAM_ARG.
3372 1995-11-29 Richard Stallman <rms@gnu.org>
3374 * doc/bison.texinfo:
3375 Describe literal string tokens, %raw, %no_lines, %token_table.
3377 1995-11-29 Daniel Hagerty <hag@gnu.org>
3379 * doc/bison.texinfo: Fixed update date
3381 1995-10-16 Richard Stallman <rms@gnu.org>
3383 * src/version.c: Version 1.25.
3385 1995-10-16 Richard Stallman <rms@gnu.org>
3387 * NEWS: *** empty log message ***
3389 1995-10-16 Richard Stallman <rms@gnu.org>
3391 * doc/bison.1, doc/bison.rnh:
3394 1995-10-15 Richard Stallman <rms@gnu.org>
3396 * src/vmsgetargs.c, src/getargs.c:
3397 Added -n, -k, and -raw switches.
3398 (noparserflag, toknumflag, rawtoknumflag): New variables.
3400 * src/symtab.h (SALIAS):
3401 New #define for adding aliases to %token.
3402 (struct bucket): Added `alias' field.
3404 * src/reduce.c (reduce_grammar):
3405 Revise error message.
3406 (print_notices): Remove final `.' from error message.
3408 * src/reader.c (reader_output_yylsp):
3410 (readgram): Use `#if 0' around code that accepted %command
3411 inside grammar rules: The documentation doesn't allow it,
3412 and it will fail since the %command processors scan for the next %.
3413 (parse_token_decl): Extended the %token
3414 declaration to allow a multi-character symbol as an alias.
3415 (parse_thong_decl): New function.
3416 (read_declarations): Added %thong declarations.
3417 (read_declarations): Handle NOOP to deal with allowing
3418 % declarations as another means to specify the flags.
3419 (readgram): Allow %prec prior to semantics embedded in a rule.
3420 (skip_to_char, read_declarations, copy_definition)
3421 (parse_token_decl, parse_start_decl, parse_type_decl)
3422 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3423 (get_type_name, copy_guard, copy_action, readgram)
3424 (get_type, packsymbols): Revised most error messages.
3425 Changed `fatal' to `warnxxx' to avoid aborting for error.
3426 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3427 (read_declarations): Improve the error message for
3428 an invalid character. Do not abort.
3429 (read_declarations, copy_guard, copy_action): Use
3430 printable_version to avoid unprintable characters in printed output.
3431 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3432 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3433 Allow the type of a non-terminal can be given
3434 more than once, as long as all specifications give the same type.
3437 (output_headers, output_trailers, output, output_gram)
3438 (output_rule_data): Implement noparserflag variable.
3439 Implement toknumflag variable.
3440 (output): Call reader_output_yylsp to output LTYPESTR.
3442 * src/main.c (main):
3443 If reader sees an error, don't process the grammar.
3444 (fatals): Updated to not use VARARGS1.
3445 (printable_version, int_to_string, warn, warni, warns, warnss)
3446 (warnsss): New error reporting functions. Avoid abort for error.
3449 Added THONG and NOOP for alias processing.
3450 Added SETOPT for the new code that allows setting options with %flags.
3453 Include getopt.h. Add some extern decls.
3454 (safegetc): New function to deal with EOF gracefully.
3455 (literalchar); new function to deal with reading \ escapes.
3456 (lex): Use literalchar.
3457 (lex): Implemented "..." tokens.
3458 (literalchar, lex, parse_percent_token): Made tokenbuffer
3459 always contain the token. This includes growing the token
3460 buffer while reading an integer.
3461 (parse_percent_token): Replaced if-else statement with percent_table.
3462 (parse_percent_token): Added % declarations as another
3463 way to specify the flags -n, -l, and -r. Also added hooks for
3464 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3465 major changes to files.c.
3466 (lex) Retain in the incoming stream a character following
3468 (skip_white_space, lex): Revised most error messages
3469 and changed fatal to warn to avoid aborting.
3470 (percent_table): Added %thong declarations.
3472 * src/gram.h: Comment changes.
3474 * src/files.c (openfiles, open_extra_files, done):
3476 and actfile file. Handle noparserflag. Both for -n switch.
3478 * src/conflicts.c (resolve_sr_conflict):
3479 Remove use of alloca.
3481 1995-06-01 Jim Meyering <meyering@gnu.org>
3483 * doc/bison.texinfo: *** empty log message ***
3485 1995-05-06 Richard Stallman <rms@gnu.org>
3487 * src/bison.s1: Comment change.
3489 1995-05-06 Richard Stallman <rms@gnu.org>
3491 * bison.simple: Comment change.
3493 1995-05-03 Richard Stallman <rms@gnu.org>
3495 * src/version.c: Version now 1.24.
3497 * src/bison.s1: Change distribution terms.
3499 * src/version.c: Version now 1.23.
3501 1995-05-03 Richard Stallman <rms@gnu.org>
3503 * doc/bison.texinfo:
3504 Rewrite "Conditions for Using Bison".
3505 Update version to 1.24.
3507 1995-05-03 Richard Stallman <rms@gnu.org>
3509 * bison.simple: Change distribution terms.
3511 1995-02-23 Richard Stallman <rms@gnu.org>
3513 * src/files.c: Test __VMS_POSIX as well as VMS.
3515 1995-02-14 Jim Meyering <meyering@gnu.org>
3517 * src/bison.s1 (__yy_memcpy):
3518 Renamed from __yy_bcopy to avoid
3519 confusion. Reverse FROM and TO arguments to be consistent with
3522 1995-02-14 Jim Meyering <meyering@gnu.org>
3524 * bison.simple (__yy_memcpy):
3525 Renamed from __yy_bcopy to avoid
3526 confusion. Reverse FROM and TO arguments to be consistent with
3529 1994-11-10 David J. MacKenzie <djm@gnu.org>
3535 * Makefile.in (DISTFILES): Include NEWS.
3537 * Makefile.in (DISTFILES):
3538 Include install-sh, not install.sh.
3540 * configure.in: Update to Autoconf v2 macro names.
3542 1994-10-05 David J. MacKenzie <djm@gnu.org>
3544 * Makefile.in: fix typo
3546 * Makefile.in (prefix, exec_prefix):
3547 Let configure set them.
3549 1994-09-28 David J. MacKenzie <djm@gnu.org>
3551 * Makefile.in: Set datadir to $(prefix)/share.
3553 1994-09-15 Richard Stallman <rms@gnu.org>
3556 Update copyright notice and GPL version.
3558 1994-09-15 Richard Stallman <rms@gnu.org>
3561 Update copyright notice and GPL version.
3563 1994-07-12 Richard Stallman <rms@gnu.org>
3565 * src/reduce.c, src/reader.c:
3568 1994-05-05 David J. MacKenzie <djm@gnu.org>
3570 * Makefile.in: entered into RCS
3572 1994-03-26 Richard Stallman <rms@gnu.org>
3574 * src/bison.s1: entered into RCS
3576 1994-03-26 Richard Stallman <rms@gnu.org>
3578 * bison.simple: entered into RCS
3580 1994-03-25 Richard Stallman <rms@gnu.org>
3582 * src/main.c: entered into RCS
3584 1994-03-24 Richard Stallman <rms@gnu.org>
3586 * src/conflicts.c: entered into RCS
3588 1994-01-02 Richard Stallman <rms@gnu.org>
3590 * Makefile.in: *** empty log message ***
3592 1993-11-21 Richard Stallman <rms@gnu.org>
3594 * src/bison.s1: *** empty log message ***
3596 1993-11-21 Richard Stallman <rms@gnu.org>
3598 * doc/bison.texinfo: entered into RCS
3600 * doc/bison.texinfo: *** empty log message ***
3602 1993-11-21 Richard Stallman <rms@gnu.org>
3604 * bison.simple: *** empty log message ***
3606 1993-10-25 David J. MacKenzie <djm@gnu.org>
3608 * doc/bison.texinfo: *** empty log message ***
3610 1993-10-19 Richard Stallman <rms@gnu.org>
3612 * src/bison.s1: *** empty log message ***
3614 1993-10-19 Richard Stallman <rms@gnu.org>
3616 * bison.simple: *** empty log message ***
3618 1993-10-14 Richard Stallman <rms@gnu.org>
3620 * src/bison.s1: *** empty log message ***
3622 1993-10-14 Richard Stallman <rms@gnu.org>
3624 * bison.simple: *** empty log message ***
3626 1993-09-14 David J. MacKenzie <djm@gnu.org>
3628 * doc/bison.texinfo: *** empty log message ***
3630 1993-09-13 Noah Friedman <friedman@gnu.org>
3632 * Makefile.in: *** empty log message ***
3634 1993-09-10 Richard Stallman <rms@gnu.org>
3636 * src/conflicts.c: *** empty log message ***
3638 * src/system.h: entered into RCS
3640 1993-09-10 Richard Stallman <rms@gnu.org>
3642 * doc/bison.1: entered into RCS
3644 1993-09-06 Noah Friedman <friedman@gnu.org>
3646 * src/version.c: entered into RCS
3648 1993-09-06 Noah Friedman <friedman@gnu.org>
3650 * Makefile.in: *** empty log message ***
3652 1993-07-30 David J. MacKenzie <djm@gnu.org>
3654 * Makefile.in: *** empty log message ***
3656 1993-07-24 Richard Stallman <rms@gnu.org>
3658 * src/bison.s1: *** empty log message ***
3660 1993-07-24 Richard Stallman <rms@gnu.org>
3662 * bison.simple: *** empty log message ***
3664 1993-07-08 David J. MacKenzie <djm@gnu.org>
3666 * Makefile.in: *** empty log message ***
3668 1993-07-04 Richard Stallman <rms@gnu.org>
3670 * src/bison.s1: *** empty log message ***
3672 1993-07-04 Richard Stallman <rms@gnu.org>
3674 * bison.simple: *** empty log message ***
3676 1993-06-26 David J. MacKenzie <djm@gnu.org>
3678 * src/getargs.c: entered into RCS
3680 1993-06-26 David J. MacKenzie <djm@gnu.org>
3682 * doc/bison.texinfo: *** empty log message ***
3684 * doc/bison.1: New file.
3686 1993-06-25 Richard Stallman <rms@gnu.org>
3688 * src/getargs.c: New file.
3690 1993-06-16 Richard Stallman <rms@gnu.org>
3692 * src/bison.s1: *** empty log message ***
3694 1993-06-16 Richard Stallman <rms@gnu.org>
3696 * bison.simple: *** empty log message ***
3698 1993-06-03 Richard Stallman <rms@gnu.org>
3700 * src/bison.s1: New file.
3702 1993-06-03 Richard Stallman <rms@gnu.org>
3704 * doc/bison.texinfo: *** empty log message ***
3706 1993-06-03 Richard Stallman <rms@gnu.org>
3708 * bison.simple: New file.
3710 1993-05-19 Richard Stallman <rms@gnu.org>
3712 * doc/bison.texinfo: New file.
3714 1993-05-07 Noah Friedman <friedman@gnu.org>
3716 * Makefile.in: *** empty log message ***
3718 1993-04-28 Noah Friedman <friedman@gnu.org>
3720 * src/reader.c: *** empty log message ***
3722 1993-04-23 Noah Friedman <friedman@gnu.org>
3724 * src/alloc.h: entered into RCS
3726 1993-04-20 David J. MacKenzie <djm@gnu.org>
3728 * src/version.c: *** empty log message ***
3730 * src/files.c, src/allocate.c:
3733 * src/reader.c: *** empty log message ***
3735 * src/lex.c: entered into RCS
3737 * src/conflicts.c: New file.
3739 * src/symtab.c: entered into RCS
3741 * src/alloc.h: New file.
3743 * src/LR0.c: entered into RCS
3745 1993-04-18 Noah Friedman <friedman@gnu.org>
3747 * src/reader.c: New file.
3749 * src/version.c: *** empty log message ***
3751 1993-04-18 Noah Friedman <friedman@gnu.org>
3753 * Makefile.in: *** empty log message ***
3755 1993-04-17 Noah Friedman <friedman@gnu.org>
3757 * Makefile.in: *** empty log message ***
3759 1993-04-15 Richard Stallman <rms@gnu.org>
3761 * src/main.c, src/files.c:
3764 1993-04-15 Noah Friedman <friedman@gnu.org>
3766 * configure.in: entered into RCS
3768 * configure.in: *** empty log message ***
3770 * configure.in: New file.
3772 1993-04-14 Richard Stallman <rms@gnu.org>
3774 * Makefile.in: New file.
3776 1993-04-13 Richard Stallman <rms@gnu.org>
3778 * src/version.c: New file.
3780 1993-03-25 Richard Stallman <rms@gnu.org>
3782 * src/output.c: entered into RCS
3784 1992-09-25 Richard Stallman <rms@gnu.org>
3786 * configure.bat: entered into RCS
3788 1992-06-22 Richard Stallman <rms@gnu.org>
3790 * src/vmsgetargs.c: entered into RCS
3792 1992-06-22 Richard Stallman <rms@gnu.org>
3794 * doc/bison.rnh: entered into RCS
3796 1992-04-20 David J. MacKenzie <djm@gnu.org>
3798 * README: entered into RCS
3800 1992-01-22 Richard Stallman <rms@gnu.org>
3802 * src/machine.h: entered into RCS
3804 1991-12-21 Richard Stallman <rms@gnu.org>
3806 * src/lalr.c, src/closure.c:
3809 1991-12-20 Richard Stallman <rms@gnu.org>
3811 * src/state.h: entered into RCS
3813 1991-12-18 Richard Stallman <rms@gnu.org>
3815 * src/print.c, src/nullable.c, src/derives.c:
3818 1991-11-03 David J. MacKenzie <djm@gnu.org>
3820 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3823 1988-09-09 Richard Stallman <rms@gnu.org>
3825 * src/bison.hairy: entered into RCS
3827 1987-12-16 Richard Stallman <rms@gnu.org>
3829 * REFERENCES: entered into RCS