1 2001-12-05 Akim Demaille <akim@epita.fr>
3 * src/state.h (SHIFT_SYMBOL): New.
4 * src/conflicts.c: Use it to deobfuscate.
7 2001-12-05 Akim Demaille <akim@epita.fr>
9 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
10 (print_reductions): De-obfuscate using the good o' techniques:
11 arrays not pointers, variable locality, BITISSET.
14 2001-12-05 Akim Demaille <akim@epita.fr>
16 * src/conflicts.c (print_reductions): Arrays, not pointers.
20 2001-12-05 Akim Demaille <akim@epita.fr>
22 * src/conflicts.c (print_reductions): Pessimize, but clarify.
25 2001-12-05 Akim Demaille <akim@epita.fr>
27 * src/conflicts.c (print_reductions): Improve variable locality.
30 2001-12-05 Akim Demaille <akim@epita.fr>
32 * src/conflicts.c (print_reductions): Pessimize, but clarify.
35 2001-12-05 Akim Demaille <akim@epita.fr>
37 * src/conflicts.c (print_reductions): Improve variable locality.
40 2001-12-05 Akim Demaille <akim@epita.fr>
42 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
43 * src/lalr.c: Use them.
46 2001-12-05 Akim Demaille <akim@epita.fr>
48 * src/LR0.c (augment_automaton): Formatting changes.
49 Better variable locality.
52 2001-12-05 Akim Demaille <akim@epita.fr>
54 * src/lalr.c (matrix_print): New.
56 Use arrays instead of pointers.
58 2001-12-05 Akim Demaille <akim@epita.fr>
60 * src/lalr.c (maxrhs): Move to...
61 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
62 * src/lalr.c (build_relations): Adjust.
64 2001-12-05 Akim Demaille <akim@epita.fr>
66 * src/lalr.c (transpose): Free the memory allocated to the
67 argument, as it is replaced by the results by the unique caller.
68 (build_relations): Merely invoke transpose: it handles the memory
70 Improve variable locality.
71 Avoid variables used as mere abbreviations.
72 (compute_lookaheads): Use arrays instead of pointers.
74 2001-12-05 Akim Demaille <akim@epita.fr>
76 * src/lalr.c (initialize_F): Improve variable locality.
77 Avoid variables used as mere abbreviations.
79 2001-12-05 Akim Demaille <akim@epita.fr>
81 * src/derives.c (print_derives): Display the ruleno.
82 * src/lalr.c (initialize_F, transpose): Better variable locality
83 to improve readability.
84 Avoid variables used as mere abbreviations.
86 2001-12-05 Akim Demaille <akim@epita.fr>
88 * src/lalr.c (traverse): Use arrays instead of pointers.
90 2001-12-05 Akim Demaille <akim@epita.fr>
92 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
93 the handling of squeue.
94 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
97 2001-12-05 Akim Demaille <akim@epita.fr>
99 Because useless nonterminals are now kept alive (instead of being
100 `destroyed'), we now sometimes examine them, and store information
101 related to them. Hence we need to know their number, and adjust
104 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
106 * src/LR0.c (allocate_itemsets): The memory allocated to
107 `symbol_count' was used for two different purpose: once to count
108 the number of occurrences of each symbol, and later reassigned to
109 `shift_symbol', containing the symbol that can be shifted from a
111 Deobfuscate, i.e., allocate, use and free `symbol_count' here
113 (new_itemsets): Allocate `shift_symbol' here.
114 (allocate_itemsets): symbol_count includes useless nonterminals.
116 (free_storage): Use `free', not `XFREE', for pointers that cannot
120 2001-12-05 Akim Demaille <akim@epita.fr>
122 * src/nullable.c (set_nullable): Deobfuscate the handling of
124 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
127 2001-12-05 Akim Demaille <akim@epita.fr>
129 * src/gram.c, src/gram.h (ritem_print): New.
130 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
131 (This useless function was defined only to work around VMS linkers
132 that can't handle compilation units with variables only).
133 * src/reduce.c (dump_grammar): Use it to trace the construction of
136 2001-12-04 Paul Eggert <eggert@twinsun.com>
138 * src/bison.simple (union yyalloc): Change member names
139 to be the same as the stack names.
140 (yyparse): yyptr is now union yyalloc *, not char *.
141 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
142 and may generate better code on some machines.
143 (yystpcpy): Use prototype if __STDC__ is defined, not just
144 if __cplusplus is defined.
146 2001-11-30 Akim Demaille <akim@epita.fr>
148 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
149 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
150 Gettext doesn't compile cleanly, and dies with -Werror.
151 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
152 Include WARNING_CFLAGS here.
153 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
154 before being defined.
156 2001-11-30 Paul Eggert <eggert@twinsun.com>
158 * lib/quotearg.h (quotearg_n, quotearg_n_style):
159 First arg is int, not unsigned.
160 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
161 (SIZE_MAX, UINT_MAX): New macros.
162 (quotearg_n_options): Abort if N is negative.
163 Avoid overflow check on hosts where size_t is 64 bits and int
164 is 32 bits, as overflow is impossible there.
165 Fix off-by-one typo that caused unnecessary reallocation.
167 2001-11-30 Paul Eggert <eggert@twinsun.com>
169 Name space cleanup in generated parser.
171 * doc/bison.texinfo (Bison Parser): Discuss system headers
172 and their effect on the user name space.
175 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
176 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
177 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
179 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
180 on user names when possible.
182 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
183 Simplify test for whather <alloca.h> exists.
185 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
187 (<stdio.h>): Include if YYDEBUG.
189 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
190 ! defined (yyoverflow) && ! defined (yymemcpy).
192 (yymemcpy, yyparse): Rename local variables as needed so that
193 they all begin with 'yy'.
195 (yystrlen, yystpcpy): New functions.
197 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
200 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
201 instead of relying on string.h functions. Use YYSTACK_ALLOC
202 and YYSTACK_FREE instead of malloc and free.
204 2001-11-30 Akim Demaille <akim@epita.fr>
206 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
207 if body instead of `;' to pacify GCC's warnings.
209 2001-11-30 Akim Demaille <akim@epita.fr>
211 Instead of mapping the LHS of unused rules to -1, keep the LHS
212 valid, but flag the rules as invalid.
214 * src/gram.h (rule_t): `useful' is a new member.
215 * src/print.c (print_grammar): Adjust.
216 * src/derives.c (set_derives): Likewise.
217 * src/reader.c (packgram, reduce_output): Likewise.
218 * src/reduce.c (reduce_grammar_tables): Likewise.
219 * tests/reduce.at (Underivable Rules, Useless Rules): New.
221 2001-11-30 Akim Demaille <akim@epita.fr>
223 * src/reduce.c (reduce_output): Formatting changes.
224 * src/print.c (print_results, print_grammar): Likewise.
225 * tests/regression.at (Rule Line Numbers)
226 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
228 2001-11-30 Akim Demaille <akim@epita.fr>
230 * src/reduce.c (nonterminals_reduce): Instead of throwing away
231 useless nonterminals, move them at the end of the symbol arrays.
232 (reduce_output): Adjust.
233 * tests/reduce.at (Useless Nonterminals): Adjust.
235 2001-11-30 Akim Demaille <akim@epita.fr>
237 * src/reduce.c: Various comment/formatting changes.
238 (nonterminals_reduce): New, extracted from...
239 (reduce_grammar_tables): here.
240 (reduce_grammar): Call nonterminals_reduce.
242 2001-11-29 Paul Eggert <eggert@twinsun.com>
244 * src/bison.simple (YYSTACK_REALLOC): Remove.
245 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
246 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
248 (union yyalloc): New type.
249 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
250 an arbitrary restriction on hosts where size_t is wider than int.
252 (yyparse): Don't dump core if alloca or malloc fails; instead, report
253 a parser stack overflow. Allocate just one block of memory for all
254 three stacks, instead of allocating three blocks; this typically is
255 faster and reduces fragmentation.
257 Do not limit the number of items in the stack to a value that fits
258 in 'int', as this is an arbitrary limit on hosts with 64-bit
259 size_t and 32-bit int.
261 2001-11-28 Akim Demaille <akim@epita.fr>
263 * src/LR0.c (shifts_new): New.
264 (save_shifts, insert_start_shift, augment_automaton): Use it.
266 2001-11-28 Akim Demaille <akim@epita.fr>
268 * src/closure.c (closure): `b' and `ruleno' denote the same value:
271 2001-11-28 Akim Demaille <akim@epita.fr>
273 * src/closure.c (closure): Instead of looping over word in array
274 then bits in words, loop over bits in array.
276 2001-11-28 Akim Demaille <akim@epita.fr>
278 * src/closure.c (closure): No longer optimize the special case
279 where all the bits of `ruleset[r]' are set to 0, to make the code
282 2001-11-28 Akim Demaille <akim@epita.fr>
284 * src/closure.c (closure): `r' and `c' are new variables, used to
285 de-obfuscate accesses to RULESET and CORE.
287 2001-11-28 Akim Demaille <akim@epita.fr>
289 * src/reduce.c (reduce_print): Use ngettext.
290 (dump_grammar): Improve the trace accuracy.
292 2001-11-28 Akim Demaille <akim@epita.fr>
294 * src/reduce.c (dump_grammar): Don't translate trace messages.
296 2001-11-28 Akim Demaille <akim@epita.fr>
298 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
299 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
300 as all tags are free'ed afterwards.
303 2001-11-27 Akim Demaille <akim@epita.fr>
305 * src/system.h: Use intl/libgettext.h.
306 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
308 2001-11-27 Paul Eggert <eggert@twinsun.com>
310 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
311 use alloca when we didn't want to, and vice versa.
313 2001-11-27 Akim Demaille <akim@epita.fr>
315 * tests/torture.at (Exploding the Stack Size with Malloc):
316 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
318 2001-11-27 Akim Demaille <akim@epita.fr>
320 * src/files.c: Include error.h.
323 2001-11-26 Akim Demaille <akim@epita.fr>
327 2001-11-26 Akim Demaille <akim@epita.fr>
329 * src/reader.c (readgram): Make sure rules for mid-rule actions
330 have a lineno equal to that of their host rule.
331 Reported by Hans Aberg.
332 * tests/regression.at (Rule Line Numbers): New.
334 2001-11-26 Akim Demaille <akim@epita.fr>
336 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
338 Reported by Hans Aberg.
340 2001-11-26 Akim Demaille <akim@epita.fr>
342 * src/complain.c, src/complain.h (error): Remove, provided by
345 2001-11-26 Akim Demaille <akim@epita.fr>
347 * src/reader.c (read_declarations): Don't abort on tok_illegal,
348 issue an error message.
349 * tests/regression.at (Invalid %directive): New.
350 Reported by Hans Aberg.
352 2001-11-26 Akim Demaille <akim@epita.fr>
354 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
355 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
357 2001-11-26 Akim Demaille <akim@epita.fr>
359 * src/conflicts.c (conflicts_print): Don't complain at all when
360 there are no reduce/reduce conflicts, and as many shift/reduce
361 conflicts as expected.
362 * tests/regression.at (%expect right): Adjust.
364 2001-11-23 Akim Demaille <akim@epita.fr>
366 * lib/alloca.c: Update, from fileutils.
368 2001-11-23 Akim Demaille <akim@epita.fr>
370 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
372 2001-11-23 Akim Demaille <akim@epita.fr>
374 * src/system.h: Include alloca.h.
375 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
377 2001-11-23 Akim Demaille <akim@epita.fr>
379 * src/print_graph.c (print_actions): Remove `rule', unused.
380 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
381 pacify GCC's signed < unsigned warnings.
382 * src/closure.c (itemsetsize): Likewise.
383 * src/reader.c (symbol_list_new): Static.
385 2001-11-23 Akim Demaille <akim@epita.fr>
387 Attaching lineno to buckets is stupid, since only one copy of each
388 symbol is kept, only the line of the first occurrence is kept too.
390 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
391 * src/reader.c (rline_allocated): Remove, unused.
392 (symbol_list): Have a `line' member.
393 (symbol_list_new): New.
395 * src/print.c (print_grammar): Output the rule line numbers.
396 * tests/regression.at (Solved SR Conflicts)
397 (Unresolved SR Conflicts): Adjust.
398 Reported by Hans Aberg.
400 2001-11-20 Akim Demaille <akim@epita.fr>
404 2001-11-20 Akim Demaille <akim@epita.fr>
407 * configure.in (ALL_LINGUAS): Adjust.
408 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
409 longer contains strings to translate.
411 2001-11-19 Akim Demaille <akim@epita.fr>
413 * src/conflicts.c (conflicts_print): Add a missing \n.
415 2001-11-19 Akim Demaille <akim@epita.fr>
417 * src/nullable.c (nullable_print): New.
418 (set_nullable): Call it when tracing.
419 Better locality of variables.
421 2001-11-19 Akim Demaille <akim@epita.fr>
423 * src/print.c (print_actions): Better locality of variables.
425 2001-11-19 Akim Demaille <akim@epita.fr>
427 * src/derives.c (print_derives): Fix and enrich.
428 * src/closure.c (print_fderives): Likewise.
430 2001-11-19 Akim Demaille <akim@epita.fr>
432 * src/closure.c (itemsetend): Remove, replaced with...
435 2001-11-19 Akim Demaille <akim@epita.fr>
437 * src/LR0.c (kernel_end): Remove, replaced with...
440 2001-11-19 Akim Demaille <akim@epita.fr>
442 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
445 2001-11-19 Akim Demaille <akim@epita.fr>
447 * src/closure.c (closure): Use arrays instead of pointers to clarify.
449 2001-11-19 Akim Demaille <akim@epita.fr>
451 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
453 * src/LR0.c: Likewise.
454 (allocate_itemsets): Use arrays instead of pointers to clarify.
456 2001-11-19 Akim Demaille <akim@epita.fr>
458 * src/getargs.c (statistics_flag): Replace with...
460 (longopts): Accept --trace instead of --statistics.
461 * src/getargs.h: Adjust.
462 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
463 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
465 2001-11-19 Akim Demaille <akim@epita.fr>
467 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
468 pointers to clarify the code.
469 (save_reductions, save_shifts): Factor common parts of alternatives.
471 2001-11-19 Akim Demaille <akim@epita.fr>
473 * src/LR0.c (new_state, get_state): Complete TRACE code.
474 * src/closure.c: Include `reader.h' to get `tags', needed by the
476 Rename the conditional DEBUG as TRACE.
477 Output consistently TRACEs to stderr, not stdout.
478 * src/derives.c: Likewise.
479 * src/reduce.c: (inaccessable_symbols): Using if is better style
481 Use `#if TRACE' instead of `#if 0' for tracing code.
483 2001-11-19 Akim Demaille <akim@epita.fr>
485 * src/system.h (LIST_FREE, shortcpy): New.
486 * src/LR0.c: Use them.
487 * src/output.c (free_itemsets, free_reductions, free_shifts):
488 Remove, replaced by LIST_FREE.
490 2001-11-19 Akim Demaille <akim@epita.fr>
492 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
493 (REDUCTIONS_ALLOC): New.
494 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
497 2001-11-19 Akim Demaille <akim@epita.fr>
499 * src/LR0.c (new_state): Complete trace code.
500 * src/nullable.c (set_nullable): Don't translate traces.
502 2001-11-19 Akim Demaille <akim@epita.fr>
504 * src/print_graph.c (print_core): Better locality of variables.
505 * src/print.c (print_core): Likewise.
507 2001-11-19 Akim Demaille <akim@epita.fr>
509 * src/vcg.c: You do the output, so you are responsible of the
510 handling of VCG syntax, in particular: use quotearg.
511 * src/print_graph.c: Don't.
512 (print_actions): Don't output the actions as part of the nodes,
513 since that's the job of the edges.
514 (print_state): Don't output by hand: fill the node description,
515 and ask for its output.
517 2001-11-19 Akim Demaille <akim@epita.fr>
519 * src/bison.simple (yyparse): When verbosely reporting an error,
520 no longer put additional quotes around token names.
521 * tests/calc.at: Adjust.
523 2001-11-19 Akim Demaille <akim@epita.fr>
525 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
526 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
527 * src/output.c: Adjust.
529 2001-11-19 Akim Demaille <akim@epita.fr>
531 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
533 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
535 2001-11-19 Akim Demaille <akim@epita.fr>
537 * src/gram.h (rule_t): New.
539 (rrhs, rlhs): Remove, part of state_t.
540 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
541 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
542 * src/reader.c, src/reduce.c: Adjust.
544 2001-11-19 Akim Demaille <akim@epita.fr>
546 * src/reader.c (symbols_output): New, extracted from...
550 2001-11-19 Akim Demaille <akim@epita.fr>
552 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
553 (maxrhs): this new function.
555 2001-11-19 Akim Demaille <akim@epita.fr>
557 * src/lalr.c (F): New macro to access the variable F.
560 2001-11-19 Akim Demaille <akim@epita.fr>
562 * src/lalr.h (LA): New macro to access the variable LA.
563 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
564 * src/lalr.c: Adjust.
566 2001-11-19 Akim Demaille <akim@epita.fr>
568 * src/lalr.c (initialize_LA): Only initialize LA. Let...
569 (set_state_table): handle the `lookaheads' members.
571 2001-11-19 Akim Demaille <akim@epita.fr>
573 * src/lalr.h (lookaheads): Removed array, whose contents is now
575 (state_t): this structure.
576 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
579 2001-11-19 Akim Demaille <akim@epita.fr>
581 * src/lalr.h (consistent): Removed array, whose contents is now
583 (state_t): this structure.
584 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
587 2001-11-19 Akim Demaille <akim@epita.fr>
589 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
590 contents are now members of...
591 (state_t): this structure.
592 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
595 2001-11-19 Akim Demaille <akim@epita.fr>
597 * src/lalr.h (state_t): New.
598 (state_table): Be a state_t * instead of a core **.
599 (accessing_symbol): Remove, part of state_t.
600 * src/lalr.c: Adjust.
601 (set_accessing_symbol): Merge into...
602 (set_state_table): this.
603 * src/print_graph.c, src/conflicts.c: Adjust.
605 2001-11-14 Akim Demaille <akim@epita.fr>
609 2001-11-14 Akim Demaille <akim@epita.fr>
611 * tests/calc.at, tests/output.at, tests/regression.at,
612 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
613 now the tests are run in private dirs, therefore AC_CLEANUP and
614 family can be simplified to 0-ary.
615 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
616 use abs. path to find config.h.
618 2001-11-14 Akim Demaille <akim@epita.fr>
620 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
621 stderr, there can be way too much random noise.
622 Instead pass -Werror to GCC and rely on the exit status.
623 Reported by Wolfram Wagner.
625 2001-11-14 Akim Demaille <akim@epita.fr>
627 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
628 defined only if yyoverflow is defined, to avoid `warning: unused
630 Reported by The Test Suite.
632 2001-11-14 Akim Demaille <akim@epita.fr>
634 * src/print.c: Include reduce.h.
635 Reported by Hans Aberg.
637 2001-11-14 Akim Demaille <akim@epita.fr>
639 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
640 Revert a previous patch: these are really const.
641 * src/conflicts.c (conflict_report): Additional useless pair of
642 braces to pacify GCC's warnings for `if () if () {} else {}'.
643 * src/lex.c (parse_percent_token): Replace equal_offset with
646 Be sure to strdup `arg' when used, since there is no reason for
647 token_buffer not to change.
649 2001-11-14 Akim Demaille <akim@epita.fr>
651 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
653 * src/main.c (main): Use them.
654 Suggested by Hans Aberg.
656 2001-11-12 Akim Demaille <akim@epita.fr>
660 * src/system.h (ngettext): Now that we use ngettext, be sure to
661 provide a default definition when NLS are not used that takes care
664 2001-11-12 Akim Demaille <akim@epita.fr>
666 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
667 Use @kbd to denote user input.
668 (Language and Grammar): ANSIfy the example.
669 Adjust its layout for info/notinfo.
670 (Location Tracking Calc): Output error messages to stderr.
671 Output locations in a more GNUtically correct way.
672 Fix a couple of Englishos.
673 Adjust @group/@end group pairs.
675 2001-11-12 Akim Demaille <akim@epita.fr>
677 %expext was not functioning at all.
679 * src/conflicts.c (expected_conflicts): Set to -1.
680 (conflict_report): Use ngettext.
681 (conflicts_print): Check %expect and make its violation an error.
682 * doc/bison.texinfo (Expect Decl): Adjust.
683 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
684 * tests/regression.at (%expect not enough, %expect right)
685 (%expect too much): New.
687 2001-11-12 Akim Demaille <akim@epita.fr>
689 * tests/regression.at (Conflicts): Rename as...
690 (Unresolved SR Conflicts): this.
691 (Solved SR Conflicts): New.
693 2001-11-12 Akim Demaille <akim@epita.fr>
695 * src/reduce.c (print_results): Rename as...
696 (reduce_output): This.
697 Output to OUT, passed as argument, instead of output_obstack.
698 (dump_grammar): Likewise.
701 (reduce_grammar): No longer call reduce_output, since...
702 * src/print.c (print_results): do it.
703 * src/main.c (main): Call reduce_free;
705 2001-11-12 Akim Demaille <akim@epita.fr>
707 * src/conflicts.c (print_reductions): Accept OUT as argument.
708 Output to it, not to output_obstack.
709 * src/print.c (print_actions): Adjust.
711 2001-11-12 Akim Demaille <akim@epita.fr>
713 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
714 the result instead of using...
715 (src_total, rrc_total, src_count, rrc_count): Remove.
716 (any_conflicts): Remove.
717 (print_conflicts): Split into...
718 (conflicts_print, conflicts_output): New.
719 * src/conflicts.h: Adjust.
720 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
721 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
722 * tests/regression.at (Conflicts): New.
723 Reported by Tom Lane.
725 2001-11-12 Akim Demaille <akim@epita.fr>
727 * tests/regression.at (Invalid input): Remove, duplicate with
728 ``Invalid input: 1''.
730 2001-11-12 Akim Demaille <akim@epita.fr>
732 * tests/torture.at (AT_DATA_STACK_TORTURE)
733 (Exploding the Stack Size with Alloca)
734 (Exploding the Stack Size with Malloc): New.
736 2001-11-12 Akim Demaille <akim@epita.fr>
738 * src/bison.simple (YYSTACK_REALLOC): New.
739 (yyparse) [!yyoverflow]: Use it and free the old stack.
740 Reported by Per Allansson.
742 2001-11-05 Akim Demaille <akim@epita.fr>
745 * src/lex.c (parse_percent_token): s/quotearg/quote/.
747 2001-11-05 Akim Demaille <akim@epita.fr>
749 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
752 2001-11-05 Akim Demaille <akim@epita.fr>
754 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
755 with yyltype/YYLTYPE. This allows inclusion of the generated
756 header within the parser if the compiler, such as GGC, accepts
757 multiple equivalent #defines.
759 2001-11-04 Akim Demaille <akim@epita.fr>
761 * src/getargs.c (longopts): Support `--output'. getopt is now
762 able to understand that `--out' is OK: the two racing long options
765 * src/lex.h (tok_setopt): Remove, replaced with...
766 (tok_intopt, tok_stropt): these new guys.
767 * src/lex.c (getopt.h): Not needed.
768 (token_buffer, unlexed_token_buffer): Not const.
769 (percent_table): Promote `-' over `_' in directive names.
770 Active `%name-prefix', `file-prefix', and `output'.
771 (parse_percent_token): Accept possible arguments to directives.
772 Promote `-' over `_' in directive names.
773 * doc/bison.texinfo (Decl Summary): Split the list into
774 `directives for grammars' and `directives for bison'.
776 Add description of `%name-prefix', `file-prefix', and `output'.
777 Promote `-' over `_' in directive names.
778 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
779 Simplify the description of `--name-prefix'.
780 Promote `-' over `_' in directive names.
781 Promote `--output' over `--output-file'.
782 Fix the description of `--defines'.
783 * tests/output.at: Exercise %file-prefix and %output.
785 2001-11-02 Akim Demaille <akim@epita.fr>
787 * doc/refcard.tex: Update.
789 2001-11-02 Akim Demaille <akim@epita.fr>
791 * src/symtab.h (SUNDEF): New.
792 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
793 stand for `uninitialized', instead of 0.
794 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
795 * src/lex.c (lex): Adjust.
797 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
799 Let yylex return it instead of a plain 0.
800 Reported by Dick Streefland.
802 2001-11-02 Akim Demaille <akim@epita.fr>
804 * tests/regression.at (Mixing %token styles): New test.
806 2001-11-02 Akim Demaille <akim@epita.fr>
808 * src/reader.c (parse_thong_decl): Formatting changes.
809 (token_translations_init): New, extracted from...
813 2001-11-01 Akim Demaille <akim@epita.fr>
815 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
816 Check that `9foo.y' produces correct cpp guards.
817 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
821 2001-11-01 Akim Demaille <akim@epita.fr>
823 * tests/regression.at (Invalid input: 2): New.
824 * src/lex.c (unlexed_token_buffer): New.
825 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
829 2001-11-01 Akim Demaille <akim@epita.fr>
831 * configure.in: Bump to 1.30a.
832 Adjust to newer Autotest.
834 2001-10-26 Akim Demaille <akim@epita.fr>
838 2001-10-26 Paul Eggert <eggert@twinsun.com>
840 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
841 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
842 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
843 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
844 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
845 Sync with fileutils 4.1.1.
847 2001-10-18 Akim Demaille <akim@epita.fr>
850 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
851 avoid spurious failures.
853 2001-10-18 Akim Demaille <akim@epita.fr>
857 2001-10-18 Akim Demaille <akim@epita.fr>
859 * tests/atlocal.in (GCC): Add.
860 * tests/calc.at: s/m4_match/m4_bmatch/.
861 s/m4_patsubst/m4_bpatsubst/.
862 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
863 * configure.in: AC_SUBST(GCC).
865 2001-10-10 Akim Demaille <akim@epita.fr>
868 * configure.in: M4 is no longer needed, but autom4te is.
869 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
872 2001-10-10 Akim Demaille <akim@epita.fr>
876 2001-10-10 Akim Demaille <akim@epita.fr>
879 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
880 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
881 Reported by Airy Andre.
883 2001-10-10 Akim Demaille <akim@epita.fr>
885 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
886 * config/mkinstalldirs, lib/ansi2knr.c: Update.
888 2001-10-02 Akim Demaille <akim@epita.fr>
892 2001-10-02 Akim Demaille <akim@epita.fr>
896 2001-10-02 Akim Demaille <akim@epita.fr>
898 * tests/regression.at (Invalid CPP headers): New.
899 From Alexander Belopolsky.
900 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
902 2001-10-02 Akim Demaille <akim@epita.fr>
904 * tests/regression.at (Invalid input): New.
905 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
908 2001-10-02 Akim Demaille <akim@epita.fr>
910 * tests/calc.at: Now that --debug works, the tests must be adjusted.
912 2001-10-02 Akim Demaille <akim@epita.fr>
914 * src/output.c (output_parser): Assert `skeleton'.
915 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
919 2001-10-01 Marc Autret <autret_m@epita.fr>
921 * src/lex.h: Echo modifications.
922 * src/lex.c (unlex): Parameter is now token_t.
925 2001-10-01 Marc Autret <autret_m@epita.fr>
927 * src/main.c: Include lex.h.
930 2001-09-29 Akim Demaille <akim@epita.fr>
932 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
934 2001-09-28 Akim Demaille <akim@epita.fr>
936 * tests/testsuite.at: Update to newer Autotest.
937 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
939 2001-09-27 Akim Demaille <akim@epita.fr>
941 Position independent wrapper.
943 * tests/bison: Remove.
944 * tests/bison.in: New.
945 * configure.in: Adjust.
947 2001-09-27 Paul Eggert <eggert@twinsun.com>
949 Port quotearg fixes from tar 1.13.24.
951 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
953 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
954 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
956 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
957 * m4/mbrtowc.m4: New file.
958 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
959 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
961 2001-09-27 Akim Demaille <akim@epita.fr>
965 2001-09-27 Akim Demaille <akim@epita.fr>
969 2001-09-25 Akim Demaille <akim@epita.fr>
971 * src/system.h: Include `xalloc.h'.
972 Remove it from the C files.
973 * src/files.c (output_files): Free the obstacks.
974 * src/lex.c (init_lex): Rename as...
977 * src/main.c (main): Use it.
979 2001-09-24 Marc Autret <autret_m@epita.fr>
981 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
982 to output informations in fout (FILE*).
983 (open_graph, close_graph): Likewise.
984 (output_graph, output_edge, output_node): Likewise.
985 * src/vcg.h: Update function prototypes.
986 * src/print_graph.c (print_graph): Open output graph file.
987 (print_actions): Adjust.
988 * src/files.h: Remove extern declaration.
989 * src/files.c: Remove graph_obstack declaration.
990 (open_files): Remove graph_obstack initialization.
991 (output_files): Remove graph_obstack saving.
993 2001-09-24 Marc Autret <autret_m@epita.fr>
995 * src/files.c (compute_output_file_names): Fix.
997 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
999 * src/reader.c (reader): Remove call to free_symtab ().
1000 * src/main.c (main): Call it here.
1002 * src/conflicts.c (initialize_conflicts): Rename as...
1003 (solve_conflicts): this.
1004 * src/print.c (print_core, print_actions, print_state)
1005 (print_grammar): Dump to a file instead a `output_obstack'.
1006 (print_results): Dump `output_obstack', and then proceed with the
1008 * src/files.c (compute_output_file_names, close_files): New.
1009 (output_files): Adjust.
1010 * src/main.c (main): Adjust.
1012 2001-09-23 Marc Autret <autret_m@epita.fr>
1014 * src/files.c (compute_header_macro): Computes header macro name
1015 from spec_defines_file when given.
1017 2001-09-23 Marc Autret <autret_m@epita.fr>
1019 * src/files.c (output_files): Add default extensions.
1021 2001-09-22 Akim Demaille <akim@epita.fr>
1023 * src/conflicts.c (finalize_conflicts): Rename as...
1024 (free_conflicts): this.
1026 2001-09-22 Akim Demaille <akim@epita.fr>
1028 * src/gram.c (gram_free): Rename back as...
1030 (output_token_translations): Free `token_translations'.
1031 * src/symtab.c (free_symtab): Free the tag field.
1033 2001-09-22 Akim Demaille <akim@epita.fr>
1035 Remove `translations' as it is always set to true.
1037 * src/gram.h: Adjust.
1038 * src/reader.c (packsymbols, parse_token_decl): Adjust
1039 * src/print.c (print_grammar): Adjust.
1040 * src/output.c (output_token_translations): Adjust.
1041 * src/lex.c (lex): Adjust.
1042 * src/gram.c: Be sure the set pointers to NULL.
1043 (dummy): Rename as...
1046 2001-09-22 Akim Demaille <akim@epita.fr>
1048 * configure.in: Invoke AM_LIB_DMALLOC.
1049 * src/system.h: Use dmalloc.
1050 * src/LR0.c: Be sure to have pointers initialized to NULL.
1051 (allocate_itemsets): Allocate kernel_items only if needed.
1053 2001-09-22 Akim Demaille <akim@epita.fr>
1055 * configure.in: Bump to 1.29b.
1056 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1057 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1058 need xmalloc.c in calc.y.
1061 2001-09-21 Akim Demaille <akim@epita.fr>
1064 * Makefile.maint, config/config.guess, config/config.sub,
1065 * config/missing: Update from masters.
1066 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1068 * configure.in (ALL_LINGUAS): Add `tr'.
1070 2001-09-21 Akim Demaille <akim@epita.fr>
1072 * tests/Makefile.am (package.m4): Move to...
1073 ($(srcdir)/$(TESTSUITE)): here.
1075 2001-09-20 Akim Demaille <akim@epita.fr>
1077 * src/complain.c: No longer try to be standalone: use system.h.
1078 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1079 * src/complain.h: Likewise.
1080 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1081 Remove the unused variable `n'.
1082 From Albert Chin-A-Young.
1084 2001-09-18 Marc Autret <autret_m@epita.fr>
1086 * doc/bison.1: Update.
1087 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1089 (Option Cross Key): Update.
1092 2001-09-18 Marc Autret <autret_m@epita.fr>
1094 * tests/regression.at: New test (comment in %union).
1096 2001-09-18 Marc Autret <autret_m@epita.fr>
1098 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1100 Reported by Keith Browne.
1102 2001-09-18 Marc Autret <autret_m@epita.fr>
1104 * tests/output.at: Add tests for --defines and --graph.
1106 2001-09-18 Marc Autret <autret_m@epita.fr>
1108 * tests/output.at: Removes tests of %{header,src}_extension features.
1110 2001-09-18 Akim Demaille <akim@epita.fr>
1112 * tests/Makefile.am (package.m4): New.
1113 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1114 (_AT_CHECK_CALC_ERROR): Likewise.
1115 Factor the `, ' part of verbose error messages.
1117 2001-09-18 Marc Autret <autret_m@epita.fr>
1119 * src/getargs.c (longopts): Declare --defines and --graph as options
1120 with optional arguments.
1121 * src/files.h: Add extern declarations.
1122 * src/files.c (spec_graph_file, spec_defines_file): New.
1123 (output_files): Update.
1124 Remove CPP-outed code.
1126 2001-09-18 Marc Autret <autret_m@epita.fr>
1128 Turn off %{source,header}_extension feature.
1130 * src/files.c (compute_exts_from_gf): Update.
1131 (compute_exts_from_src): Update.
1132 (output_files): CPP-out useless code.
1133 * src/files.h: Remove {header,source}_extension extern declarations.
1134 * src/reader.c (parse_dquoted_param): CPP-out.
1135 (parse_header_extension_decl): Remove.
1136 (parse_source_extension_decl): Remove.
1137 (read_declarations): Remove cases tok_{hdrext,srcext}.
1138 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1139 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1141 2001-09-10 Akim Demaille <akim@epita.fr>
1143 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1144 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1145 (AT_CHECK_OUTPUT): this.
1146 Merely check ls' exit status, its output is useless.
1148 2001-09-10 Akim Demaille <akim@epita.fr>
1150 * tests/calc.at: Use m4_match.
1151 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1153 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1155 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1157 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1159 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1160 * src/lex.h: Adjust prototype.
1161 (token_t): Add `tok_undef'.
1162 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1163 (parse_percent_token): Now returns token_t.
1164 Add default statement in switch.
1165 (lex): Separate `c' as an input variable, from the token_t result
1167 (unlexed): Is a token_t.
1169 2001-09-10 Akim Demaille <akim@epita.fr>
1171 * configure.in: Bump to 1.29a.
1173 2001-09-07 Akim Demaille <akim@epita.fr>
1177 2001-08-30 Akim Demaille <akim@epita.fr>
1179 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1180 * m4/atconfig.m4: Remove.
1181 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1183 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1184 m4_if, m4_patsubst, and m4_regexp.
1185 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1186 `input' file instead of echo.
1188 2001-08-29 Akim Demaille <akim@epita.fr>
1192 2001-08-29 Akim Demaille <akim@epita.fr>
1196 2001-08-29 Paul Eggert <eggert@twinsun.com>
1198 * src/bison.simple (yyparse): Don't take the address of an
1199 item before the start of an array, as that doesn't conform to
1202 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1204 * doc/bison.texinfo (Location Tracking Calc): New node.
1206 2001-08-29 Paul Eggert <eggert@twinsun.com>
1208 * src/output.c (output): Do not define const, as this now
1209 causes more problems than it cures.
1211 2001-08-29 Akim Demaille <akim@epita.fr>
1213 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1215 Be sure to tag the `detailmenu'.
1217 2001-08-29 Akim Demaille <akim@epita.fr>
1219 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1220 download in a tmp dir.
1222 2001-08-28 Marc Autret <autret_m@epita.fr>
1224 * config/depcomp: New file.
1226 2001-08-28 Marc Autret <autret_m@epita.fr>
1228 * doc/bison.1 (mandoc): Adjust.
1229 From Juan Manuel Guerrero.
1231 2001-08-28 Marc Autret <autret_m@epita.fr>
1233 * src/print_graph.c (print_state): Fix.
1235 2001-08-27 Marc Autret <autret_m@epita.fr>
1237 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1239 Echo modifications to the functions prototypes.
1240 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1242 2001-08-27 Marc Autret <autret_m@epita.fr>
1244 * src/vcg.c: Include `xalloc.h'.
1245 (add_colorentry): New.
1246 (add_classname): New.
1247 (add_infoname): New.
1248 * src/vcg.h: Add new prototypes.
1250 2001-08-27 Akim Demaille <akim@epita.fr>
1252 * Makefile.maint: Sync. again with CVS Autoconf.
1254 2001-08-27 Akim Demaille <akim@epita.fr>
1256 * Makefile.maint: Formatting changes.
1257 (po-update, cvs-update, update): New targets.
1260 2001-08-27 Akim Demaille <akim@epita.fr>
1262 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1263 * Makefile.maint: Sync. with CVS Autoconf.
1265 2001-08-27 Marc Autret <autret_m@epita.fr>
1267 * src/vcg.h (struct infoname_s): New.
1268 (struct colorentry_s): New.
1269 (graph_s): New fields {vertical,horizontal}_order in structure.
1270 Add `infoname' field.
1271 Add `colorentry' field;
1272 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1273 (G_HORIZONTAL_ORDER): New.
1275 (G_COLORENTRY): New.
1276 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1277 Add output of `infoname'.
1278 Add output of `colorentry'.
1280 2001-08-27 Marc Autret <autret_m@epita.fr>
1282 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1283 This one shadowed a global parameter.
1285 2001-08-24 Marc Autret <autret_m@epita.fr>
1287 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1288 instead of `unsigned'.
1289 (print_state): Do not call obstack_object_size () in obstack_grow ()
1290 to avoid macro variables shadowing.
1292 2001-08-23 Marc Autret <autret_m@epita.fr>
1294 * src/lex.c (percent_table): Typo: s/naem/name/.
1296 Normalize new options declarations.
1298 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1300 * tests/suite.at: Exercise %header_extension and %source_extension.
1302 2001-08-16 Marc Autret <autret_m@epita.fr>
1304 * src/reader.c (parse_dquoted_param): New.
1305 (parse_header_extension_decl): Use it.
1306 (parse_source_extension_decl): Likewise.
1308 2001-08-16 Marc Autret <autret_m@epita.fr>
1310 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1311 (get_xxxx_str): Use assert () instead of complain ().
1312 Remove return invokations in default cases.
1313 (get_decision_str): Modify default behaviour. Remove second argument.
1314 Echo modifications on calls.
1315 (output_graph): Fix.
1317 2001-08-16 Marc Autret <autret_m@epita.fr>
1319 * src/getargs.c (usage): Update with ``-g, --graph''.
1321 2001-08-16 Marc Autret <autret_m@epita.fr>
1323 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1324 (Option Cross Key): Likewise.
1325 * doc/bison.1: Update.
1327 2001-08-15 Akim Demaille <akim@epita.fr>
1331 2001-08-15 Marc Autret <autret_m@epita.fr>
1333 * src/reader.c (readgram): Indent output macro YYSTYPE.
1334 (packsymbols): Likewise.
1335 (output_token_defines): Likewise.
1336 * src/files.c: Standardize.
1337 (compute_header_macro): New.
1338 (defines_obstack_save): New. Use compute_header_macro.
1339 (output_files): Update. Use defines_obstack_save.
1341 2001-08-15 Akim Demaille <akim@epita.fr>
1343 * doc/bison.texinfo (Table of Symbols): Document
1346 2001-08-15 Akim Demaille <akim@epita.fr>
1348 * missing: Update from CVS Automake.
1349 * config/config.guess, config/config.sub, config/texinfo.tex:
1350 Update from gnu.org.
1352 2001-08-15 Akim Demaille <akim@epita.fr>
1354 * Makefile.maint: Sync with CVS Autoconf.
1356 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1358 * doc/bison.texinfo: Include GNU Free Documentation License from
1360 * doc/fdl.texi: Add to package.
1362 2001-08-14 Marc Autret <autret_m@epita.fr>
1364 Turn on %{source,header}_extension features.
1366 * src/lex.c (percent_table): Un-CPP out header_extension and
1368 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1369 (compute_exts_from_src): Remove conditions. It restores priorities
1372 2001-08-14 Marc Autret <autret_m@epita.fr>
1374 * src/files.c (compute_base_names): Add extensions computing when
1375 `--file-prefix' used.
1376 Standardize function calls.
1378 2001-08-13 Marc Autret <autret_m@epita.fr>
1380 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1381 defining it (defined but null disables alloca).
1383 2001-08-13 Marc Autret <autret_m@epita.fr>
1385 * src/bison.simple (_yy_memcpy): CPP reformat.
1387 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1389 * tests/atconfig.in (CPPFLAGS): Fix.
1391 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1393 * doc/bison.texinfo: Include GNU General Public License from
1395 * doc/gpl.texi: Add to package.
1397 2001-08-10 Marc Autret <autret_m@epita.fr>
1399 * src/print_graph.h: Fix.
1400 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1402 2001-08-10 Akim Demaille <akim@epita.fr>
1404 * src/system.h: Provide default declarations for stpcpy, strndup,
1407 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1409 * doc/bison.texinfo (Locations): Update @$ stuff.
1411 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1413 * src/bison.simple (YYLLOC_DEFAULT): Update.
1416 2001-08-08 Marc Autret <autret_m@epita.fr>
1418 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1419 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1420 Reported by Fabrice Bauzac.
1422 2001-08-08 Marc Autret <autret_m@epita.fr>
1424 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1425 * src/vcg.c (output_node): Fix.
1426 * src/vcg.h: Cleanup.
1427 * src/print_graph.c: Add comments.
1428 (node_output_size): New global variable. Simplify the formatting of
1429 the VCG graph output.
1430 (print_actions): Unused code is now used. It notifies the final state
1431 and no action states in the VCG graph. It also give the reduce actions.
1432 The `shift and goto' edges are red and the `go to state' edges are
1434 Get the current node name and node_obstack by argument.
1435 (node_obstack): New variable.
1436 (print_state): Manage node_obstack.
1437 (print_core): Use node_obstack given by argument.
1438 A node is not only computed here but in print_actions also.
1439 (print_graph): CPP out useless code instead of commenting it.
1441 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1443 * tests/atconfig.in (CPPFLAGS): Fix.
1445 2001-08-07 Akim Demaille <akim@epita.fr>
1447 * src/print_graph.c (quote): New.
1448 (print_core): Use it.
1450 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1452 * src/vcg.c (complain.h): Include it.
1453 Unepitaize `return' invocations.
1454 [NDEBUG] (main): Remove.
1455 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1456 * src/files.c (open_files): Initialize graph_obstack.
1457 * src/print_graph.c (print_actions): CPP out useless code.
1458 (print_core): Don't output the last `\n' in labels.
1460 * src/files.c (output_files): Output the VCG file.
1461 * src/main.c (main): Invoke print_graph ();
1463 2001-08-06 Marc Autret <autret_m@epita.fr>
1465 Automaton VCG graph output.
1466 Using option ``-g'' or long option ``--graph'', you can generate
1467 a gram_filename.vcg file containing a VCG description of the LALR (1)
1468 automaton of your grammar.
1470 * src/main.c: Call to print_graph() function.
1471 * src/getargs.h: Update.
1472 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1473 (graph_flag): New flag.
1475 (getargs): Add case `g'.
1476 * src/files.c (graph_obstack): New obstack struct.
1477 (open_files): Initialize new obstack.
1478 (output_files): Saves graph_obstack if required.
1479 * src/files.h (graph_obstack): New extern declaration.
1480 * src/Makefile.am: Add new source files.
1482 2001-08-06 Marc Autret <autret_m@epita.fr>
1484 * src/print_graph.c, src/print_graph.h (graph): New.
1485 * src/vcg.h: New file.
1486 * src/vcg.c: New file, VCG graph handling.
1488 2001-08-06 Marc Autret <autret_m@epita.fr>
1490 Add of %source_extension and %header_extension which specify
1491 the source or/and the header output file extension.
1493 * src/files.c (compute_base_names): Remove initialisation of
1494 src_extension and header_extension.
1495 (compute_exts_from_gf): Update.
1496 (compute_exts_from_src): Update.
1497 (output_files): Update.
1498 * src/reader.c (parse_header_extension_decl): New.
1499 (parse_source_extension_decl): New.
1500 (read_declarations): New case statements for the new tokens.
1501 * src/lex.c (percent_table): Add entries for %source_extension
1502 and %header_extension.
1503 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1505 2001-08-06 Marc Autret <autret_m@epita.fr>
1507 * configure.in: Bump to 1.28c.
1508 * doc/bison.texinfo: Texinfo thingies.
1510 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1512 * tests/atconfig.in (CPPFLAGS): Add.
1513 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1515 2001-08-03 Akim Demaille <akim@epita.fr>
1519 2001-08-03 Akim Demaille <akim@epita.fr>
1521 * tests/Makefile.am (check-local): Ship testsuite.
1522 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1525 2001-08-03 Akim Demaille <akim@epita.fr>
1527 * configure.in: Try using -Wformat when compiling.
1529 2001-08-03 Akim Demaille <akim@epita.fr>
1531 * configure.in: Bump to 1.28b.
1533 2001-08-03 Akim Demaille <akim@epita.fr>
1535 * src/complain.c: Adjust strerror_r portability issues.
1537 2001-08-03 Akim Demaille <akim@epita.fr>
1541 2001-08-03 Akim Demaille <akim@epita.fr>
1543 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1544 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1545 * src/getargs.c: Include complain.h.
1546 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1547 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1549 2001-08-03 Akim Demaille <akim@epita.fr>
1551 * src/reader.c (readgram): Display hidden chars in error messages.
1553 2001-08-03 Akim Demaille <akim@epita.fr>
1555 Update to gettext 0.10.39.
1557 2001-08-03 Akim Demaille <akim@epita.fr>
1559 * lib/strspn.c: New.
1561 2001-08-01 Marc Autret <autret_m@epita.fr>
1563 * doc/bison.texinfo: Update.
1564 * doc/bison.1 (mandoc): Update.
1565 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1566 * src/files.c: Support output files extensions computing.
1567 (src_extension): New static variable.
1568 (header_extension): New static variable.
1570 (get_extension_index): New function, gets the index of an extension
1571 filename in a string.
1572 (compute_exts_from_gf): New function, computes extensions from the
1573 grammar file extension.
1574 (compute_exts_from_src): New functions, computes extensions from the
1575 C source file extension, file given by ``-o'' option.
1576 (compute_base_names): Update.
1577 (output_files): Update.
1579 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1581 * doc/bison.texi: Document @$.
1582 (Locations): New section.
1584 2001-07-18 Akim Demaille <akim@epita.fr>
1586 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1587 * config/prev-version.txt, config/move-if-change: New.
1588 * Makefile.am: Adjust.
1590 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1592 * src/bison.simple (yyparse): Suppress warning `comparaison
1593 between signed and unsigned'.
1595 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1597 * src/getargs.h (raw_flag): Remove.
1598 * src/getargs.c: Die on `-r'/`--raw'.
1599 * src/lex.c (parse_percent_token): Die on `%raw'.
1600 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1601 * tests/calc.at: Suppress test with option `--raw'.
1603 2001-07-14 Akim Demaille <akim@epita.fr>
1606 * configure.in: Require Autoconf 2.50.
1607 Update to gettext 0.10.38.
1609 2001-03-16 Akim Demaille <akim@epita.fr>
1611 * doc/bison.texinfo: ANSIfy the examples.
1613 2001-03-16 Akim Demaille <akim@epita.fr>
1615 * getargs.c (skeleton): New variable.
1616 (longopts): --skeleton is a new option.
1617 (shortopts, getargs): -S is a new option.
1618 * getargs.h: Declare skeleton.
1619 * output.c (output_parser): Use it.
1621 2001-03-16 Akim Demaille <akim@epita.fr>
1623 * m4/strerror_r.m4: New.
1624 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1625 * lib/error.h, lib/error.c: Update.
1627 2001-03-16 Akim Demaille <akim@epita.fr>
1629 * src/getargs.c (longopts): Clean up.
1631 2001-02-21 Akim Demaille <akim@epita.fr>
1633 * src/reader.c (gensym): `gensym_count' is your own.
1634 Use a static buf to create the symbol name, as token_buffer is no
1637 2001-02-08 Akim Demaille <akim@epita.fr>
1639 * src/conflicts.c (conflict_report): Be sure not to append to res
1640 between two calls, which could happen if both first sprintf were
1641 skipped, but not the first cp += strlen.
1643 2001-02-08 Akim Demaille <akim@epita.fr>
1645 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1646 New, from fileutils 4.0.37.
1647 * configure.in: Require Autoconf 2.49c. I took some time before
1648 making this decision. This is the only way out for portability
1649 issues in Bison, it would mean way too much duplicate effort to
1650 import in Bison features implemented in 2.49c since 2.13.
1651 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1653 2001-02-02 Akim Demaille <akim@epita.fr>
1655 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1656 * lib/xalloc.h, lib/xmalloc.c: Update.
1658 2001-01-19 Akim Demaille <akim@epita.fr>
1660 Get rid of the ad hoc handling of token_buffer in the scanner: use
1663 * src/lex.c (token_obstack): New.
1664 (init_lex): Initialize it. No longer call...
1665 (grow_token_buffer): this. Remove it.
1666 Adjust all the places which used it to use the obstack.
1668 2001-01-19 Akim Demaille <akim@epita.fr>
1670 * src/lex.h: Rename all the tokens:
1671 s/\bENDFILE\b/tok_eof/g;
1672 s/\bIDENTIFIER\b/tok_identifier/g;
1674 Let them be enums, not #define, to ease debugging.
1675 Adjust all the code.
1677 2001-01-18 Akim Demaille <akim@epita.fr>
1679 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1680 * src/lex.c (maxtoken, grow_token_buffer): Static.
1682 2001-01-18 Akim Demaille <akim@epita.fr>
1684 Since we now use obstacks, more % directives can be enabled.
1686 * src/lex.c (percent_table): Also accept `%yacc',
1687 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1689 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1690 instead of returning a token.
1691 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1692 * src/reader.c (read_declarations): Adjust.
1693 * src/files.c (open_files): Don't call `compute_base_names', don't
1694 compute `attrsfile' since they depend upon data which might be
1695 *in* the input file now.
1696 (output_files): Do it here.
1697 * src/output.c (output_headers): Document the fact that this patch
1698 introduces a guaranteed SEGV for semantic parsers.
1699 * doc/bison.texinfo: Document them.
1700 * tests/suite.at: Exercise these %options.
1702 2000-12-20 Akim Demaille <akim@epita.fr>
1704 Also handle the output file (--verbose) with obstacks.
1706 * files.c (foutput): Remove.
1707 (output_obstack): New.
1708 Adjust all dependencies.
1709 * src/conflicts.c: Return a string.
1710 * src/system.h (obstack_grow_string): Rename as...
1711 (obstack_sgrow): this. Be ready to work with non literals.
1712 (obstack_fgrow4): New.
1714 2000-12-20 Akim Demaille <akim@epita.fr>
1716 * src/files.c (open_files): Fix the computation of short_base_name
1717 in the case of `-o foo.tab.c'.
1719 2000-12-20 Akim Demaille <akim@epita.fr>
1721 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1722 (copy_dollar): Now that everything uses obstacks, get rid of the
1725 2000-12-20 Akim Demaille <akim@epita.fr>
1727 * src/files.c (open_files): Actually the `.output' file is based
1728 on the short_base_name, not base_name.
1729 * tests/suite.at (Checking output file names): Adjust.
1731 2000-12-20 Akim Demaille <akim@epita.fr>
1733 * src/bison.s1: Remove, we now use directly...
1734 * src/bison.simple: this.
1735 * src/Makefile.am: Use pkgdata instead of data.
1737 2000-12-20 Akim Demaille <akim@epita.fr>
1739 * src/files.c (guard_obstack): New.
1740 (open_files): Initialize it.
1741 (output_files): Dump it...
1742 * src/files.h: Export it.
1743 * src/reader.c (copy_guard): Use it.
1745 2000-12-19 Akim Demaille <akim@epita.fr>
1747 * src/files.c (outfile, defsfile, actfile): Removed as global
1749 (open_files): Don't compute them.
1750 (output_files): Adjust.
1751 (base_name, short_base_name): Be global.
1752 Adjust dependencies.
1754 2000-12-19 Akim Demaille <akim@epita.fr>
1756 * src/files.c (strsuffix): New.
1757 (stringappend): Be just like strcat but allocate.
1758 (base_names): Eve out from open_files.
1759 Try to simplify the rather hairy computation of base_name and
1761 (open_files): Use it.
1762 * tests/suite.at (Checking output file names): New test.
1764 2000-12-19 Akim Demaille <akim@epita.fr>
1766 * src/system.h (obstack_grow_literal_string): Rename as...
1767 (obstack_grow_string): this.
1768 * src/output.c (output_parser): Recognize `%% actions' instead of
1770 * src/bison.s1: s/$/%% actions/.
1771 * src/bison.hairy: Likewise.
1773 2000-12-19 Akim Demaille <akim@epita.fr>
1775 * src/output.c (output_parser): Compute the `#line' lines when
1777 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1778 Suggested by Hans Aberg.
1780 2000-12-19 Akim Demaille <akim@epita.fr>
1782 Let the handling of the skeleton files be local to the procedures
1785 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1787 (fparser, open_extra_files): Remove.
1788 (open_files, output_files): Don't take care of fparser.
1789 * src/files.h: Adjust.
1790 * src/output.c (output_parser): Open and close the file to the
1792 * src/reader.c (read_declarations): When %semantic_parser, open
1795 2000-12-19 Akim Demaille <akim@epita.fr>
1797 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1798 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1800 2000-12-19 Akim Demaille <akim@epita.fr>
1802 * src/files.c (open_files): Yipee! We no longer need all the code
1803 looking for `/tmp' since we have no tmp file.
1805 2000-12-19 Akim Demaille <akim@epita.fr>
1807 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1809 * src/files.c (open_files): Less dependency on MSDOS etc.
1811 2000-12-14 Akim Demaille <akim@epita.fr>
1813 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1814 Provide a default definition.
1815 Use it when executing the default @ action.
1816 * src/reader.c (reader_output_yylsp): No longer include
1817 `timestamp' and `text' in the default YYLTYPE.
1819 2000-12-12 Akim Demaille <akim@epita.fr>
1821 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1822 (copy_guard): Quote the file names.
1823 Reported by Laurent Mascherpa.
1825 2000-12-12 Akim Demaille <akim@epita.fr>
1827 * src/output.c (output_headers, output_program, output): Be sure
1828 to escape special characters when outputting filenames.
1829 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1830 (output_headers): Don't depend on them, Use ACTSTR.
1832 2000-11-17 Akim Demaille <akim@epita.fr>
1834 * lib/obstack.h: Formatting changes.
1835 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1836 prevents type checking.
1837 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1838 cast the value to (void *): assigning a `foo *' to a `void *'
1840 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1841 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1844 2000-11-17 Akim Demaille <akim@epita.fr>
1846 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1848 (suite.m4, regression.m4, calc.m4): these.
1849 * tests/atgeneral.m4: Update from CVS Autoconf.
1851 2000-11-17 Akim Demaille <akim@epita.fr>
1853 * tests/regression.m4 (%union and --defines): New test,
1854 demonstrating a current bug in the obstack implementation.
1856 2000-11-17 Akim Demaille <akim@epita.fr>
1858 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1860 Use them to declare the variables which are global or local to
1863 2000-11-17 Akim Demaille <akim@epita.fr>
1865 * acconfig.h: Remove, no longer used.
1867 2000-11-07 Akim Demaille <akim@epita.fr>
1869 * src: s/Copyright (C)/Copyright/g.
1871 2000-11-07 Akim Demaille <akim@epita.fr>
1873 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1875 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1877 2000-11-07 Akim Demaille <akim@epita.fr>
1879 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1880 Merge in a single CPP if/else.
1882 2000-11-07 Akim Demaille <akim@epita.fr>
1884 * src/output.c (output): Remove useless variables.
1885 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1886 argument `data' for consistency with the prototypes.
1888 (obstack_copy, obstack_copy0): Rename the second argument as
1889 `address' for consistency. Qualify it `const'.
1890 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1891 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1892 `const' their input argument (`data' or `address').
1893 Adjust the corresponding macros to include `const' in casts.
1895 2000-11-03 Akim Demaille <akim@epita.fr>
1897 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1898 s/PFILE1/BISON_HAIRY/.
1899 Adjust dependencies.
1901 2000-11-03 Akim Demaille <akim@epita.fr>
1903 For some reason, this was not applied.
1905 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1906 `unlink': it's no longer used.
1908 2000-11-03 Akim Demaille <akim@epita.fr>
1910 * src/files.c (skeleton_find): New function, eved out of...
1911 (open_files, open_extra_files): here.
1913 2000-11-03 Akim Demaille <akim@epita.fr>
1917 * src/files.c (obstack_save): New function.
1918 (done): Rename as...
1919 (output_files): this.
1921 * src/main.c (main): Don't use `atexit' to register `done', since
1922 it no longer has to remove tmp files, just call `output_files'
1923 when there are no errors.
1925 2000-11-02 Akim Demaille <akim@epita.fr>
1927 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1928 `unlink': it's no longer used.
1929 * src/files.h: Formatting changes.
1931 2000-11-02 Akim Demaille <akim@epita.fr>
1933 Remove the last uses of mktemp and unlink/delete.
1935 * src/files.c (fdefines, ftable): Removed.
1936 (defines_ostack, table_obstack): New.
1937 Adjust dependencies of the former into uses of the latter.
1938 * src/output.c (output_short_or_char_table, output_short_table):
1939 Convert to using obstacks.
1940 * src/reader.c (copy_comment2): Accept one FILE * and two
1942 (output_token_defines, reader_output_yylsp): Use obstacks.
1943 * src/system.h (obstack_fgrow3): New.
1945 2000-11-01 Akim Demaille <akim@epita.fr>
1947 Change each use of `fattrs' into a use of `attrs_obstack'.
1949 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1950 * src/files.c (fattrs): Remove.
1951 (attrs_obstack): New.
1952 Adjust all dependencies.
1953 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1955 2000-11-01 Akim Demaille <akim@epita.fr>
1958 Change each use of `faction' into a use of `action_obstack'.
1960 * lib/obstack.h, lib/obstack.c: New files.
1961 * src/files.c (faction): Remove.
1962 (action_obstack): New.
1963 Adjust all dependencies.
1965 2000-10-20 Akim Demaille <akim@epita.fr>
1967 * lib/quote.h (PARAMS): New macro. Use it.
1969 2000-10-16 Akim Demaille <akim@epita.fr>
1971 * src/output.c (output_short_or_char_table): New function.
1972 (output_short_table, output_token_translations): Use it.
1973 (goto_actions): Use output_short_table.
1975 2000-10-16 Akim Demaille <akim@epita.fr>
1977 * src/symtab.c (bucket_new): New function.
1980 * src/output.c (output_short_table): New argument to display the
1981 comment associated with the table.
1982 Adjust dependencies.
1983 (output_gram): Use it.
1984 (output_rule_data): Nicer output layout for YYTNAME.
1986 2000-10-16 Akim Demaille <akim@epita.fr>
1988 * src/lex.c (read_typename): New function.
1990 * src/reader.c (copy_dollar): Likewise.
1992 2000-10-16 Akim Demaille <akim@epita.fr>
1994 * src/reader.c (copy_comment2): Expect the input stream to be on
1995 the `/' which is suspected to open a comment, instead of being
1996 called after `//' or `/*' was read.
1997 (copy_comment, copy_definition, parse_union_decl, copy_action)
1998 (copy_guard): Adjust.
2000 2000-10-16 Akim Demaille <akim@epita.fr>
2002 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2003 `read_signed_integer'.
2005 2000-10-16 Akim Demaille <akim@epita.fr>
2007 * src/reader.c (copy_dollar): New function.
2008 (copy_guard, copy_action): Use it.
2010 2000-10-16 Akim Demaille <akim@epita.fr>
2012 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2013 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2014 New files, from Fileutils 4.0.27.
2015 * src/main.c (printable_version): Remove.
2016 * src/lex.c, src/reader.c: Use `quote'.
2018 2000-10-04 Akim Demaille <akim@epita.fr>
2020 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2022 2000-10-04 Akim Demaille <akim@epita.fr>
2024 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2026 2000-10-04 Akim Demaille <akim@epita.fr>
2028 When a literal string is used to define two different tokens,
2029 `bison -v' segfaults.
2030 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2032 * tests/regression.m4: New file.
2033 Include the core of the sample provided by Piotr Gackiewicz.
2034 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2037 2000-10-04 Akim Demaille <akim@epita.fr>
2039 * src/reader.c (parse_expect_decl): Keep `count' within the size
2043 2000-10-02 Paul Eggert <eggert@twinsun.com>
2045 * bison.s1 (yyparse): Assign the default value
2046 unconditionally, to avoid a GCC warning and make the parser a
2049 2000-10-02 Akim Demaille <akim@epita.fr>
2051 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2054 2000-10-02 Akim Demaille <akim@epita.fr>
2056 * src/derives.c, src/print.c, src/reduce.c: To ease the
2057 translation, move some `\n' out of the translated strings.
2059 2000-10-02 Akim Demaille <akim@epita.fr>
2061 The location tracking mechanism is precious for parse error
2062 messages. Nevertheless, it is enabled only when `@n' is used in
2063 the grammar, which is a different issue (you can use it in error
2064 message, but not in the grammar per se). Therefore, there should
2065 be another means to enable it.
2067 * src/getargs.c (getargs): Support `--locations'.
2069 * src/getargs.h (locationsflag): Export it.
2070 * src/lex.c (percent_table): Support `%locations'.
2071 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2072 with `locationsflag'.
2073 * doc/bison.texinfo: Document `--locations' and `%locations'.
2075 * tests/calc.m4: Test it.
2077 For regularity of the names, replace each
2078 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2079 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2080 In addition replace each `flag' with `_flag'.
2082 2000-10-02 Akim Demaille <akim@epita.fr>
2084 Also test parse error messages, including with YYERROR_VERBOSE.
2086 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2088 Use it to check the computations.
2089 Use it to check `nonassoc' is honored.
2090 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2091 `--yyerror-verbose'.
2092 (_AT_CHECK_CALC): Adjust to this option.
2093 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2095 2000-10-02 Akim Demaille <akim@epita.fr>
2097 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2098 the latter demonstrates a flaw in the handling of non debugging
2099 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2100 was used in order to simplify:
2116 unfortunately this leads to a CPP conflict when
2117 `--name-prefix=foo' is used since it produces `#define yydebug
2120 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2121 (YYDPRINTF): New macro.
2123 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2125 Also test `--verbose', `--defines' and `--name-prefix'.
2127 2000-10-02 Akim Demaille <akim@epita.fr>
2129 Improve the readability of the produced parsers.
2131 * src/bison.s1: Formatting changes.
2132 Improve the comment related to the `$' mark.
2133 (yydefault): Don't fall through to `yyresume': `goto' there.
2134 * src/output.c (output_parser): When the `$' is met, skip the end
2136 New variable, `number_of_dollar_signs', to check there's exactly
2137 one `$' in the parser skeleton.
2139 2000-10-02 Akim Demaille <akim@epita.fr>
2141 * lib/xstrdup.c: New file, from the fileutils.
2142 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2143 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2144 instead of strlen + xmalloc + strcpy.
2145 * src/symtab.c (copys): Remove, use xstrdup instead.
2147 2000-10-02 Akim Demaille <akim@epita.fr>
2149 * src/gram.h (associativity): New enum type which replaces the
2150 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2151 `right_assoc', `left_assoc' and `non_assoc'.
2152 Adjust all dependencies.
2153 * src/reader.c: Formatting changes.
2154 (LTYPESTR): Don't define it, use it as a literal in
2155 `reader_output_yylsp'.
2156 * src/symtab.h (symbol_class): New enum type which replaces the
2157 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2158 `sunknown', `stoken and `snterm'.
2160 2000-10-02 Akim Demaille <akim@epita.fr>
2162 * src/getargs.c (fixed_outfiles): Rename as...
2163 (yaccflag): for consistency and accuracy.
2164 Adjust dependencies.
2166 2000-10-02 Akim Demaille <akim@epita.fr>
2168 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2169 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2170 difficult and introduced a lot of core dump. It turns out that
2171 Bison used an implementation of `xmalloc' based on `calloc', and
2172 at various places it does depend upon the initialization to 0. I
2173 have not tried to isolate the pertinent places, and all the former
2174 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2175 someone should address this issue.
2177 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2178 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2180 Adjust dependencies.
2181 * src/warshall.h: New file.
2184 2000-10-02 Akim Demaille <akim@epita.fr>
2186 Various anti-`extern in *.c' changes.
2188 * src/system.h: Include `assert.h'.
2190 2000-10-02 Akim Demaille <akim@epita.fr>
2192 * src/state.h (nstates, final_state, first_state, first_shift)
2193 (first_reduction): Move their exportation from here...
2194 * src/LR0.h: to here.
2195 Adjust dependencies.
2196 * src/getargs.c (statisticsflag): New variable.
2197 Add support for `--statistics'.
2198 Adjust dependencies.
2200 Remove a lot of now useless `extern' statements in most files.
2202 2000-10-02 Akim Demaille <akim@epita.fr>
2204 * src/LR0.h: New file.
2207 2000-10-02 Akim Demaille <akim@epita.fr>
2209 * src/print.h: New file.
2211 * src/print.c: Formatting and ordering changes.
2212 (verbose, terse): Replace with...
2213 (print_results): this new function.
2214 Adjust dependencies.
2216 2000-10-02 Akim Demaille <akim@epita.fr>
2218 * src/conflicts.c (conflict_report): New function.
2219 (conflict_log, verbose_conflict_log): Replace with...
2220 (print_conflicts): this function.
2221 Adjust dependencies.
2222 * src/conflicts.h: New file.
2223 Propagate its inclusion.
2225 2000-10-02 Akim Demaille <akim@epita.fr>
2227 * src/nullable.h: New file.
2228 Propagate its inclusion.
2229 * src/nullable.c: Formatting changes.
2231 2000-10-02 Akim Demaille <akim@epita.fr>
2233 * src/reduce.h: New file.
2234 Propagate its inclusion.
2235 * src/reduce.c: Topological sort and other formatting changes.
2236 (bool, TRUE, FALSE): Move their definition to...
2237 * src/system.h: here.
2239 2000-10-02 Akim Demaille <akim@epita.fr>
2241 * src/files.c: Formatting changes.
2242 (tryopen, tryclose, openfiles): Rename as...
2243 (xfopen, xfclose, open_files): this.
2244 (stringappend): static.
2245 * src/files.h: Complete the list of exported symbols.
2248 2000-10-02 Akim Demaille <akim@epita.fr>
2250 * src/reader.h: New file.
2251 Propagate its use instead of tedious list of `extern' and
2253 * src/reader.c: Formatting changes, topological sort,
2256 2000-10-02 Akim Demaille <akim@epita.fr>
2258 * src/lex.h: Prototype `lex.c' exported functions.
2259 * src/reader.c: Adjust.
2260 * src/lex.c: Formatting changes.
2261 (safegetc): Rename as...
2264 2000-10-02 Akim Demaille <akim@epita.fr>
2266 * src/lalr.h: New file.
2267 Propagate its inclusion instead of prototypes and `extern'.
2268 * src/lalr.c: Formatting changes, topological sorting etc.
2270 2000-10-02 Akim Demaille <akim@epita.fr>
2272 * src/output.c (token_actions): Introduce a temporary array,
2273 YYDEFACT, that makes it possible for this function to use
2276 2000-10-02 Akim Demaille <akim@epita.fr>
2278 `user_toknums' is output as a `short[]' in `output.c', while it is
2279 defined as a `int[]' in `reader.c'. For consistency with the
2280 other output tables, `user_toknums' is now defined as a table of
2283 * src/reader.c (user_toknums): Be a short table instead of an int
2285 Adjust dependencies.
2287 Factor the short table outputs.
2289 * src/output.c (output_short_table): New function.
2290 * src/output.c (output_gram, output_stos, output_rule_data)
2291 (output_base, output_table, output_check): Use it.
2293 2000-10-02 Akim Demaille <akim@epita.fr>
2295 * src/output.c (output): Topological sort of the functions, in
2296 order to get rid of the `static' prototypes.
2297 No longer use `register'.
2298 * src/output.h: New file.
2299 Propagate its inclusion in files explicitly prototyping functions
2302 2000-09-21 Akim Demaille <akim@epita.fr>
2304 * src/atgeneral.m4: Update from Autoconf.
2306 2000-09-21 Akim Demaille <akim@epita.fr>
2308 * src/closure.h: New file.
2309 * src/closure.c: Formatting changes, topological sort over the
2310 functions, use of closure.h.
2311 (initialize_closure, finalize_closure): Rename as...
2312 (new_closure, free_closure): these. Adjust dependencies.
2313 * src/LR0.c: Formatting changes, topological sort, use of
2315 (initialize_states): Rename as...
2317 * src/Makefile.am (noinst_HEADERS): Adjust.
2319 2000-09-20 Akim Demaille <akim@epita.fr>
2321 * src/acconfig.h: Don't protect config.h against multiple
2323 Don't define PARAMS.
2324 * src/system.h: Define PARAMS.
2325 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2326 purpose of config.h. system.h must not try to fix wrong
2327 definitions in config.h.
2329 2000-09-20 Akim Demaille <akim@epita.fr>
2331 * src/derives.h: New file.
2332 * src/main.c, src/derives.h: Use it.
2334 * src/Makefile.am (noinst_HEADERS): Adjust.
2336 2000-09-20 Akim Demaille <akim@epita.fr>
2338 * tests/atgeneral.m4: Update from Autoconf.
2339 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2340 (AT_CHECK_CALC): New macros.
2341 Use these macros to test bison with options `', `--raw',
2342 `--debug', `--yacc', `--yacc --debug'.
2344 2000-09-19 Akim Demaille <akim@epita.fr>
2346 * src/output.c: Formatting changes.
2347 * src/machine.h: Remove, leaving its contents in...
2348 * src/system.h: here.
2350 Adjust all dependencies on stdio.h and machine.h.
2351 * src/getargs.h: New file.
2352 Let all `extern' declarations about getargs.c be replaced with
2353 inclusion of `getargs.h'.
2354 * src/Makefile.am (noinst_HEADERS): Adjust.
2356 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2358 (yyerror): Returns void, not int.
2359 * doc/bison.texinfo: Formatting changes.
2361 2000-09-19 Akim Demaille <akim@epita.fr>
2363 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2366 2000-09-18 Akim Demaille <akim@epita.fr>
2368 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2369 * src/Makefile.am (INCLUDES): Don't.
2370 Be ready to fetch headers in lib/.
2372 2000-09-18 Akim Demaille <akim@epita.fr>
2374 * doc/bison.texinfo: Update the copyright.
2375 ANSIfy and GNUify the examples.
2376 Remove the old menu.
2378 2000-09-18 Akim Demaille <akim@epita.fr>
2380 First set of tests: use the `calc' example from the documentation.
2382 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2383 is defined only when YYDEBUG is.
2384 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2385 * src/files.c (tryopen, tryclose): Formatting changes.
2386 Move to the top and be static.
2387 * src/reader.c (read_signed_integer): Likewise.
2388 * tests/calc.m4: New file.
2389 * Makefile.am, suite.m4: Adjust.
2390 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2392 2000-09-18 Akim Demaille <akim@epita.fr>
2394 Add support for an Autotest test suite for Bison.
2396 * m4/m4.m4, m4/atconfig.m4: New files.
2397 * m4/Makefile.am (EXTRA_DIST): Adjust.
2398 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2400 * src/getargs.c: Display a more standard --version message.
2401 * src/reader.c (reader): Formatting changes.
2402 No longer depend upon VERSION_STRING.
2403 * configure.in: No longer use `dnl'.
2404 Set up the test suite and the new directory `tests/.
2405 (VERSION_STRING): Remove.
2407 2000-04-14 Akim Demaille <akim@epita.fr>
2409 * src/reader.c (copy_comment2): New function, same as former
2410 `copy_comment', but outputs into two FILE *.
2411 (copy_comment): Use it.
2412 (parse_union_decl): Use it.
2413 (get_type, parse_start_decl): Use the same `invalid' message.
2414 (parse_start_decl, parse_union_decl): Use the same `multiple'
2416 (parse_union_decl, copy_guard, copy_action): Use the same
2417 `unmatched' message.
2418 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2420 2000-03-31 Akim Demaille <akim@epita.fr>
2422 * src/files.c (tryopen, tryclose): Move to the top.
2425 2000-03-31 Akim Demaille <akim@epita.fr>
2427 * src/main.c (main): Don't call `done', exit does it.
2429 2000-03-31 Akim Demaille <akim@epita.fr>
2431 * allocate.c: s/return (foo)/return foo/.
2434 * output.c: Likewise.
2435 * reader.c: Likewise.
2436 * symtab.c: Likewise.
2437 * vmsgetargs.c: Likewise.
2439 2000-03-31 Akim Demaille <akim@epita.fr>
2441 Clean up the error reporting functions.
2443 * src/report.c: New file.
2444 * src/report.h: Likewise.
2445 * src/Makefile.am: Adjust.
2446 * m4/error.m4: New file.
2447 * m4/Makefile.am: Adjust.
2448 * configure.in (jm_PREREQ_ERROR): Call it.
2449 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2451 (fatal, fatals): Remove. All callers use complain.c::fatal.
2452 (warn, warni, warns, warnss, warnss): Remove. All callers use
2453 complain.c::complain.
2454 (toomany): Remove, use fatal instead.
2455 * src/files.c (done): No argument, use complain_message_count.
2456 * src/main.c (main): Register `done' to `atexit'.
2458 * src/getargs.c (usage): More `fputs', less `fprintf'.
2460 2000-03-28 Akim Demaille <akim@epita.fr>
2462 * lib/: New directory.
2463 * Makefile.am (SUBDIRS): Adjust.
2464 * configure.in: Adjust.
2465 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2467 * src/alloca.c: Moved to lib/.
2468 * src/getopt.c: Likewise.
2469 * src/getopt1.c: Likewise.
2470 * src/getopt.h: Likewise.
2471 * src/ansi2knr.c: Likewise.
2472 * src/ansi2knr.1: Likewise.
2473 * src/Makefile.am: Adjust.
2474 * lib/Makefile.am: New file.
2476 2000-03-28 Akim Demaille <akim@epita.fr>
2478 * src/getargs.c (usage): Refresh the help message.
2480 2000-03-17 Akim Demaille <akim@epita.fr>
2482 * src/getopt1.c: Updated from textutils 2.0e
2483 * src/getopt.c: Likewise.
2484 * src/getopt.h: Likewise.
2486 2000-03-17 Akim Demaille <akim@epita.fr>
2488 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2489 the file name, not the whole `#line LINE FILE'.
2491 2000-03-17 Akim Demaille <akim@epita.fr>
2493 On syntax errors, report the token on which we choked.
2495 * src/bison.s1 (yyparse): In the label yyerrlab, when
2496 YYERROR_VERBOSE, add yychar in msg.
2498 2000-03-17 Akim Demaille <akim@epita.fr>
2500 * src/reader.c (copy_at): New function.
2501 (copy_guard): Use it.
2502 (copy_action): Use it.
2504 2000-03-17 Akim Demaille <akim@epita.fr>
2506 Be kind to translators, save some useless translations.
2508 * src/main.c (banner): New function.
2509 (fatal_banner): Use it.
2510 (warn_banner): Use it.
2512 2000-03-17 Akim Demaille <akim@epita.fr>
2514 * src/reader.c (copy_definition): Use copy_string and
2515 copy_comment. Removed now unused `match', `ended',
2517 (copy_comment, copy_string): Moved, to be visible from
2520 2000-03-17 Akim Demaille <akim@epita.fr>
2522 * src/reader.c (copy_string): Declare `static inline'. No
2523 problems with inline, since it is checked by configure.
2524 (copy_comment): Likewise.
2526 2000-03-17 Akim Demaille <akim@epita.fr>
2528 * src/reader.c (packsymbols): Formatting changes.
2530 2000-03-17 Akim Demaille <akim@epita.fr>
2532 * src/reader.c (copy_comment): New function, factored out from:
2533 (copy_action): Use it. Removed now unused `match', `ended',
2535 (copy_guard): Likewise.
2537 2000-03-17 Akim Demaille <akim@epita.fr>
2539 * src/reader.c (copy_string): New function, factored out from:
2540 (copy_action): Use it.
2541 (copy_guard): Likewise.
2543 2000-03-17 Akim Demaille <akim@epita.fr>
2545 Change the handling of @s so that they behave exactly like $s.
2546 There is now a pseudo variable @$ (readble and writable), location
2547 of the lhs of the rule (by default ranging from the location of
2548 the first symbol of the rhs, to the location of the last symbol,
2549 or, if the rhs is empty, YYLLOC).
2551 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2553 (yyparse): When providing a default semantic action, provide a
2554 default location action.
2555 (after the $): No longer change `*YYLSP', just stack YYLOC the
2556 same way you stack YYVAL.
2557 * src/reader.c (read_declarations): Use warns.
2558 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2559 (copy_action, case '@'): Likewise.
2560 Use a standard error message, to save useless work from
2563 2000-03-17 Akim Demaille <akim@epita.fr>
2565 * src/bison.s1: Formatting and cosmetics changes.
2566 * src/reader.c: Likewise.
2567 Update the Copyright notice.
2569 2000-03-17 Akim Demaille <akim@epita.fr>
2571 * src/bison.s1 (#line): All set to `#line' only, since the
2572 Makefile now handles them.
2574 2000-03-16 Akim Demaille <akim@epita.fr>
2576 * src/output.c (output_rule_data): Output the documentation of
2578 (Copyright notice): Update.
2581 2000-03-16 Akim Demaille <akim@epita.fr>
2583 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2584 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2585 One `#if YYDEBUG' remains, since it uses variables which are
2586 defined only if `YYDEBUG != 0'.
2588 2000-03-16 Akim Demaille <akim@epita.fr>
2590 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2591 and related variables so that the similarities are highlighted.
2593 2000-03-16 Akim Demaille <akim@epita.fr>
2595 * src/bison.s1: Properly indent CPP directives.
2597 2000-03-16 Akim Demaille <akim@epita.fr>
2599 * src/bison.s1: Properly indent the `alloca' CPP section.
2601 2000-03-16 Akim Demaille <akim@epita.fr>
2603 Do not hard code values of directories in `configure.in'.
2604 Update the `configure' tool chain.
2606 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2608 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2609 (AC_OUTPUT): Add m4/Makefile.
2610 Bump to bison 1.28a, 1.29 has never been released.
2611 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2612 handled via src/Makefile.am.
2613 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2614 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2616 * Makefile.am (SUBDIRS): Add m4.
2617 (ACLOCAL_AM_FLAGS): New variable.
2618 (AUTOMAKE_OPTIONS): Add check-news.
2619 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2620 the proper line number and file name.
2621 (DEFS): Propagate the location of bison library files and of the
2623 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2625 * acinclude.m4: Remove, replaced by the directory m4.
2626 * m4/Makefile.am (EXTRA_DIST): New variable.
2627 * m4/gettext.m4: New file, from the fileutils.
2628 * m4/lcmessage.m4: Likewise
2629 * m4/progtest.m4: Likewise.
2630 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2632 2000-03-10 Akim Demaille <akim@epita.fr>
2635 Formatting changes of various comments.
2636 Respect the GNU coding standards at various places.
2637 Don't use `_()' when no translation is needed.
2639 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2642 OS/2 honors TMPDIR environment variable.
2644 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2646 * doc/bison.texinfo: Tweaked spelling and grammar.
2648 Removed reference to price of printed copy.
2649 Mention BISON_SIMPLE and BISON_HAIRY.
2651 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2653 * configure.in, NEWS:
2654 Bison 1.29 released.
2656 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2658 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2659 Added reference card.
2661 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2663 * po/ru.po: Added Russian translation.
2665 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2667 * configure.in: Added Russian translation.
2669 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2671 * configure.in, NEWS, README:
2672 Released version 1.28.
2674 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2677 Squashed redefinition warning on some systems.
2679 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2680 Have configure build version string instead of relying on ANSI string
2683 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2685 * po/POTFILES.in: Got rid of version.c.
2687 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2689 * acconfig.h, configure.in:
2690 Have configure build version string instead of relying on ANSI string
2693 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2696 Dropped mention of `+' for long-named options.
2698 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2700 * src/files.c: Added <unistd.h> for unlink().
2702 * src/Makefile.am, src/system.h:
2705 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2707 * README: Added a FAQ list.
2709 * configure.in, acconfig.h:
2712 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2714 * doc/FAQ, doc/Makefile.am:
2717 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2719 * src/alloc.h, src/symtab.h, src/version.c:
2720 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2722 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2724 * src/.cvsignore, src/Makefile.am:
2725 Reorganized: sources in `src', documentation in `doc'.
2727 * src/lex.c (literalchar):
2728 fixed the code for escaping double quotes (thanks
2731 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2733 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2734 Adjusted paths to reflect directory reorganization.
2736 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2738 * doc/.cvsignore, doc/Makefile.am:
2739 Reorganized: sources in `src', documentation in `doc'.
2741 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2744 Updated AC_INIT file to reflect directory reorganization.
2746 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2747 Reorganized: sources in `src', documentation in `doc'.
2749 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2752 Don't declare calloc() and realloc() if not necessary.
2754 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2756 * configure.in, acconfig.h, acinclude.m4:
2757 Don't declare calloc() and realloc() if not necessary.
2759 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2761 * po/.cvsignore: Added i18n support.
2763 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2765 * acconfig.h, configure.in, Makefile.am:
2768 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2770 * src/bison.s1: Fixed #line numbers.
2772 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2774 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2775 Added PO files from Translation Project.
2777 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2780 Added support for non-ANSI compilers (ansi2knr).
2782 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2784 * configure.in: Bumped version number to 1.27.
2787 Added `bison.simple' to list of files removed by `make distclean'.
2789 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2791 * src/files.c, src/files.h:
2792 Defined locations of parser files in config.h instead of Makefile.
2794 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2796 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2797 Defined locations of parser files in config.h instead of Makefile.
2799 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2802 Removed inappropriate use of $< macro.
2804 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2806 * po/Makefile.in.in, po/POTFILES.in:
2807 Add `po' directory skeleton.
2809 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2811 * README: Document help-bison list.
2813 * configure.in: Add check for mkstemp().
2815 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2817 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2818 Hush a few compiler warnings.
2821 Add tryclose(), which verifies that fclose was successful.
2822 Hush a couple of compiler warnings.
2824 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2826 * Makefile.am, OChangeLog:
2827 ChangeLog is now automatically generated. Include the old version as
2830 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2832 * 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:
2835 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2837 * doc/bison.texinfo: Fix formatting glitch.
2839 * doc/bison.texinfo: Update FSF address.
2841 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2843 * acconfig.h: Update FSF address.
2845 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2848 Don't define PACKAGE here, since config.h defines it.
2850 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2852 * src/reader.c: Update copyright date.
2855 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2856 favor of output directly to stderr (avoids buffer overruns).
2858 * src/reader.c: Some checks for premature EOF.
2860 * 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:
2861 Use prototypes if the compiler understands them.
2863 * src/files.c: Honor TMPDIR on Unix hosts.
2864 Use prototypes if the compiler understands them.
2867 Fix a couple of buffer overrun bugs.
2868 Use prototypes if the compiler understands them.
2870 * src/system.h: Include unistd.h and ctype.h.
2871 Use #ifdef instead of #if for NLS symbols.
2873 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2875 * doc/bison.texinfo:
2876 Delete comment "consider using @set for edition number, etc..." since
2877 we now are doing so.
2879 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2882 Use prototypes if the compiler understands them.
2884 * NEWS: Document 1.26 highlights.
2886 * Makefile.am: Require Automake 1.3 or later.
2889 Use prototypes if the compiler understands them.
2891 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2894 Use VERSION symbol from automake for version number.
2896 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2898 * acconfig.h, configure.in, version.cin:
2899 Use VERSION symbol from automake for version number.
2901 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2904 Distribute original version of simple parser (bison.s1), not built
2905 version (bison.simple).
2907 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2909 * doc/bison.texinfo: Add info dir entry.
2911 * doc/bison.texinfo:
2912 Let automake put version number into documentation.
2914 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2916 * src/bison.cld, src/build.com, src/vmshlp.mar:
2917 Add non-RCS files from /gd/gnu/bison.
2919 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2922 Document the BISON_HAIRY and BISON_SIMPLE variables.
2924 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2926 * src/version.c: Build version.c automatically.
2929 Fix token numbering (used to start at 258, not 257).
2931 * src/system.h: Include config.h.
2933 * src/getargs.c: Update bug report address.
2935 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2936 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2938 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2941 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2943 * configure.in, version.cin:
2944 Build version.c automatically.
2946 * AUTHORS: Add AUTHORS file.
2948 * README: Update bug report address.
2951 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2953 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2956 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2958 * doc/bison.texinfo: Clean up some formatting.
2960 1998-05-05 Richard Stallman <rms@gnu.org>
2962 * doc/bison.texinfo:
2963 Explain better why to make a pure parser.
2965 1998-01-05 Richard Stallman <rms@gnu.org>
2967 * src/files.c (openfiles):
2968 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2969 find a temporary directory, if possible. Do not unlink files while
2972 1997-08-25 Richard Stallman <rms@gnu.org>
2974 * src/reader.c (stack_offset;):
2975 Change some warni to warns.
2977 * src/lex.c (literalchar): Use warns, not warni.
2979 1997-06-28 Richard Stallman <rms@gnu.org>
2981 * src/bison.s1: Add a Bison version comment.
2983 * src/main.c (fatal, warn, berror):
2986 1997-06-28 Richard Stallman <rms@gnu.org>
2988 * Makefile.in (bison_version): New variable.
2989 (dist): Use that variable.
2990 (bison.s1): Substitute the Bison version into bison.simple.
2992 * bison.simple: Add a Bison version comment.
2994 1997-06-18 Richard Stallman <rms@gnu.org>
2996 * src/main.c (fatal, warn, berror):
2997 Make error messages standard.
2998 (toomany): Improve error message text.
3000 * 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:
3001 new.h renamed to alloc.h.
3003 1997-06-18 Richard Stallman <rms@gnu.org>
3005 * Makefile.in: new.h renamed to alloc.h.
3007 1997-05-24 Richard Stallman <rms@gnu.org>
3009 * src/lex.c (literalchar):
3010 Fix the code for escaping \, " and '.
3012 (lex): Avoid trouble when there are many chars
3013 to discard in a char literal with just several chars in it.
3015 1997-05-17 Richard Stallman <rms@gnu.org>
3018 Use malloc, if using alloca is troublesome.
3019 (YYSTACK_USE_ALLOCA): New flag macro.
3020 Define it for some systems and compilers.
3021 (YYSTACK_ALLOC): New macro.
3022 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3023 If it was malloc'd, free it.
3025 1997-05-17 Richard Stallman <rms@gnu.org>
3028 Use malloc, if using alloca is troublesome.
3029 (YYSTACK_USE_ALLOCA): New flag macro.
3030 Define it for some systems and compilers.
3031 (YYSTACK_ALLOC): New macro.
3032 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3033 If it was malloc'd, free it.
3035 1997-04-23 Richard Stallman <rms@gnu.org>
3038 (alloca) [__hpux]: Always define as __builtin_alloca.
3040 1997-04-23 Richard Stallman <rms@gnu.org>
3043 (alloca) [__hpux]: Always define as __builtin_alloca.
3045 1997-04-22 Richard Stallman <rms@gnu.org>
3048 [__hpux]: Include alloca.h (right for HPUX 10)
3049 instead of declaring alloca (right for HPUX 9).
3051 * src/bison.s1 (__yy_memcpy):
3052 Declare arg `count' as unsigned int.
3053 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3055 1997-04-22 Richard Stallman <rms@gnu.org>
3058 [__hpux]: Include alloca.h (right for HPUX 10)
3059 instead of declaring alloca (right for HPUX 9).
3061 * bison.simple (__yy_memcpy):
3062 Declare arg `count' as unsigned int.
3063 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3065 1997-01-03 Richard Stallman <rms@gnu.org>
3067 * src/allocate.c: [__STDC__ or _MSC_VER]:
3068 Declare calloc and realloc to return void *.
3070 1997-01-02 Richard Stallman <rms@gnu.org>
3073 [_MSC_VER]: Include stdlib.h and process.h.
3074 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3076 * src/main.c (main): Return FAILURE as a value.
3077 (printable_version): Declare arg as int, not char.
3079 1997-01-02 Richard Stallman <rms@gnu.org>
3081 * Makefile.in (dist):
3082 Explicitly check for symlinks, and copy them.
3084 1996-12-19 Richard Stallman <rms@gnu.org>
3087 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3089 1996-12-18 Paul Eggert <eggert@gnu.org>
3091 * src/bison.s1 (yyparse):
3092 If __GNUC__ and YYPARSE_PARAM are both defined,
3093 declare yyparse to have a void * argument.
3095 1996-12-18 Paul Eggert <eggert@gnu.org>
3097 * bison.simple (yyparse):
3098 If __GNUC__ and YYPARSE_PARAM are both defined,
3099 declare yyparse to have a void * argument.
3101 1996-12-17 Richard Stallman <rms@gnu.org>
3103 * src/reduce.c (nbits): Add some casts.
3105 1996-08-12 Richard Stallman <rms@gnu.org>
3107 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3109 1996-08-12 Richard Stallman <rms@gnu.org>
3111 * bison.simple: Test _MSDOS as well as _MSDOS_.
3113 1996-07-31 Richard Stallman <rms@gnu.org>
3116 [__sun && __i386]: Include alloca.h.
3118 1996-07-31 Richard Stallman <rms@gnu.org>
3121 [__sun && __i386]: Include alloca.h.
3123 1996-07-30 Richard Stallman <rms@gnu.org>
3125 * src/bison.s1: Comment change.
3127 * src/bison.s1: Test _MSDOS_, not MSDOS.
3129 1996-07-30 Richard Stallman <rms@gnu.org>
3131 * bison.simple: Comment change.
3133 * bison.simple: Test _MSDOS_, not MSDOS.
3135 1996-06-01 Richard Stallman <rms@gnu.org>
3137 * 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:
3138 Insert `_' macro around many string constants.
3141 Insert `_' macro around many string constants.
3143 (main): Call setlocale, bindtextdomain and textdomain.
3145 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3146 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3147 [ENABLE_NLS]: Include libintl.h.
3148 [ENABLE_NLS] (gettext): Define.
3149 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3150 (N_, PACKAGE, LOCALEDIR): New macros.
3152 1996-06-01 Richard Stallman <rms@gnu.org>
3154 * POTFILES.in: New file.
3156 * Makefile.in (allocate.o):
3157 Define target explicitly.
3159 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3160 (LDFLAGS): Set to @LDFLAGS@.
3161 (configure): Run autoconf only if preceding `cd' succeeds.
3162 (bison.s1): Redirect output to temporary file then move the
3163 temporary to the target, rather than redirecting directly to bison.s1.
3164 (clean): Remove config.status and config.log.
3165 (distclean): Don't remove config.status here.
3167 1996-05-12 Richard Stallman <rms@gnu.org>
3170 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3172 1996-05-12 Richard Stallman <rms@gnu.org>
3175 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3177 1996-05-11 Richard Stallman <rms@gnu.org>
3179 * src/bison.s1 (__yy_memcpy):
3180 Really reorder the args, as was supposedly done on Feb 14 1995.
3181 (yyparse): Calls changed accordingly.
3183 1996-05-11 Richard Stallman <rms@gnu.org>
3185 * Makefile.in (dist): Don't use $(srcdir).
3187 * bison.simple (__yy_memcpy):
3188 Really reorder the args, as was supposedly done on Feb 14 1995.
3189 (yyparse): Calls changed accordingly.
3191 1996-01-27 Richard Stallman <rms@gnu.org>
3193 * src/output.c (output_rule_data):
3194 Test YYERROR_VERBOSE in the conditional
3195 around the definition of ttyname.
3197 1995-12-29 Richard Stallman <rms@gnu.org>
3200 Fix line numbers in #line commands.
3202 1995-12-29 Richard Stallman <rms@gnu.org>
3205 Fix line numbers in #line commands.
3207 1995-12-27 Richard Stallman <rms@gnu.org>
3209 * src/bison.s1 (YYPARSE_PARAM_DECL):
3210 In C++, make it always null.
3211 (YYPARSE_PARAM_ARG): New macro.
3212 (yyparse): Use YYPARSE_PARAM_ARG.
3214 1995-12-27 Richard Stallman <rms@gnu.org>
3216 * bison.simple (YYPARSE_PARAM_DECL):
3217 In C++, make it always null.
3218 (YYPARSE_PARAM_ARG): New macro.
3219 (yyparse): Use YYPARSE_PARAM_ARG.
3221 1995-11-29 Richard Stallman <rms@gnu.org>
3223 * doc/bison.texinfo:
3224 Describe literal string tokens, %raw, %no_lines, %token_table.
3226 1995-11-29 Daniel Hagerty <hag@gnu.org>
3228 * doc/bison.texinfo: Fixed update date
3230 1995-10-16 Richard Stallman <rms@gnu.org>
3232 * src/version.c: Version 1.25.
3234 1995-10-16 Richard Stallman <rms@gnu.org>
3236 * NEWS: *** empty log message ***
3238 1995-10-16 Richard Stallman <rms@gnu.org>
3240 * doc/bison.1, doc/bison.rnh:
3243 1995-10-15 Richard Stallman <rms@gnu.org>
3245 * src/vmsgetargs.c, src/getargs.c:
3246 Added -n, -k, and -raw switches.
3247 (noparserflag, toknumflag, rawtoknumflag): New variables.
3249 * src/symtab.h (SALIAS):
3250 New #define for adding aliases to %token.
3251 (struct bucket): Added `alias' field.
3253 * src/reduce.c (reduce_grammar):
3254 Revise error message.
3255 (print_notices): Remove final `.' from error message.
3257 * src/reader.c (reader_output_yylsp):
3259 (readgram): Use `#if 0' around code that accepted %command
3260 inside grammar rules: The documentation doesn't allow it,
3261 and it will fail since the %command processors scan for the next %.
3262 (parse_token_decl): Extended the %token
3263 declaration to allow a multi-character symbol as an alias.
3264 (parse_thong_decl): New function.
3265 (read_declarations): Added %thong declarations.
3266 (read_declarations): Handle NOOP to deal with allowing
3267 % declarations as another means to specify the flags.
3268 (readgram): Allow %prec prior to semantics embedded in a rule.
3269 (skip_to_char, read_declarations, copy_definition)
3270 (parse_token_decl, parse_start_decl, parse_type_decl)
3271 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3272 (get_type_name, copy_guard, copy_action, readgram)
3273 (get_type, packsymbols): Revised most error messages.
3274 Changed `fatal' to `warnxxx' to avoid aborting for error.
3275 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3276 (read_declarations): Improve the error message for
3277 an invalid character. Do not abort.
3278 (read_declarations, copy_guard, copy_action): Use
3279 printable_version to avoid unprintable characters in printed output.
3280 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3281 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3282 Allow the type of a non-terminal can be given
3283 more than once, as long as all specifications give the same type.
3286 (output_headers, output_trailers, output, output_gram)
3287 (output_rule_data): Implement noparserflag variable.
3288 Implement toknumflag variable.
3289 (output): Call reader_output_yylsp to output LTYPESTR.
3291 * src/main.c (main):
3292 If reader sees an error, don't process the grammar.
3293 (fatals): Updated to not use VARARGS1.
3294 (printable_version, int_to_string, warn, warni, warns, warnss)
3295 (warnsss): New error reporting functions. Avoid abort for error.
3298 Added THONG and NOOP for alias processing.
3299 Added SETOPT for the new code that allows setting options with %flags.
3302 Include getopt.h. Add some extern decls.
3303 (safegetc): New function to deal with EOF gracefully.
3304 (literalchar); new function to deal with reading \ escapes.
3305 (lex): Use literalchar.
3306 (lex): Implemented "..." tokens.
3307 (literalchar, lex, parse_percent_token): Made tokenbuffer
3308 always contain the token. This includes growing the token
3309 buffer while reading an integer.
3310 (parse_percent_token): Replaced if-else statement with percent_table.
3311 (parse_percent_token): Added % declarations as another
3312 way to specify the flags -n, -l, and -r. Also added hooks for
3313 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3314 major changes to files.c.
3315 (lex) Retain in the incoming stream a character following
3317 (skip_white_space, lex): Revised most error messages
3318 and changed fatal to warn to avoid aborting.
3319 (percent_table): Added %thong declarations.
3321 * src/gram.h: Comment changes.
3323 * src/files.c (openfiles, open_extra_files, done):
3325 and actfile file. Handle noparserflag. Both for -n switch.
3327 * src/conflicts.c (resolve_sr_conflict):
3328 Remove use of alloca.
3330 1995-06-01 Jim Meyering <meyering@gnu.org>
3332 * doc/bison.texinfo: *** empty log message ***
3334 1995-05-06 Richard Stallman <rms@gnu.org>
3336 * src/bison.s1: Comment change.
3338 1995-05-06 Richard Stallman <rms@gnu.org>
3340 * bison.simple: Comment change.
3342 1995-05-03 Richard Stallman <rms@gnu.org>
3344 * src/version.c: Version now 1.24.
3346 * src/bison.s1: Change distribution terms.
3348 * src/version.c: Version now 1.23.
3350 1995-05-03 Richard Stallman <rms@gnu.org>
3352 * doc/bison.texinfo:
3353 Rewrite "Conditions for Using Bison".
3354 Update version to 1.24.
3356 1995-05-03 Richard Stallman <rms@gnu.org>
3358 * bison.simple: Change distribution terms.
3360 1995-02-23 Richard Stallman <rms@gnu.org>
3362 * src/files.c: Test __VMS_POSIX as well as VMS.
3364 1995-02-14 Jim Meyering <meyering@gnu.org>
3366 * src/bison.s1 (__yy_memcpy):
3367 Renamed from __yy_bcopy to avoid
3368 confusion. Reverse FROM and TO arguments to be consistent with
3371 1995-02-14 Jim Meyering <meyering@gnu.org>
3373 * bison.simple (__yy_memcpy):
3374 Renamed from __yy_bcopy to avoid
3375 confusion. Reverse FROM and TO arguments to be consistent with
3378 1994-11-10 David J. MacKenzie <djm@gnu.org>
3384 * Makefile.in (DISTFILES): Include NEWS.
3386 * Makefile.in (DISTFILES):
3387 Include install-sh, not install.sh.
3389 * configure.in: Update to Autoconf v2 macro names.
3391 1994-10-05 David J. MacKenzie <djm@gnu.org>
3393 * Makefile.in: fix typo
3395 * Makefile.in (prefix, exec_prefix):
3396 Let configure set them.
3398 1994-09-28 David J. MacKenzie <djm@gnu.org>
3400 * Makefile.in: Set datadir to $(prefix)/share.
3402 1994-09-15 Richard Stallman <rms@gnu.org>
3405 Update copyright notice and GPL version.
3407 1994-09-15 Richard Stallman <rms@gnu.org>
3410 Update copyright notice and GPL version.
3412 1994-07-12 Richard Stallman <rms@gnu.org>
3414 * src/reduce.c, src/reader.c:
3417 1994-05-05 David J. MacKenzie <djm@gnu.org>
3419 * Makefile.in: entered into RCS
3421 1994-03-26 Richard Stallman <rms@gnu.org>
3423 * src/bison.s1: entered into RCS
3425 1994-03-26 Richard Stallman <rms@gnu.org>
3427 * bison.simple: entered into RCS
3429 1994-03-25 Richard Stallman <rms@gnu.org>
3431 * src/main.c: entered into RCS
3433 1994-03-24 Richard Stallman <rms@gnu.org>
3435 * src/conflicts.c: entered into RCS
3437 1994-01-02 Richard Stallman <rms@gnu.org>
3439 * Makefile.in: *** empty log message ***
3441 1993-11-21 Richard Stallman <rms@gnu.org>
3443 * src/bison.s1: *** empty log message ***
3445 1993-11-21 Richard Stallman <rms@gnu.org>
3447 * doc/bison.texinfo: entered into RCS
3449 * doc/bison.texinfo: *** empty log message ***
3451 1993-11-21 Richard Stallman <rms@gnu.org>
3453 * bison.simple: *** empty log message ***
3455 1993-10-25 David J. MacKenzie <djm@gnu.org>
3457 * doc/bison.texinfo: *** empty log message ***
3459 1993-10-19 Richard Stallman <rms@gnu.org>
3461 * src/bison.s1: *** empty log message ***
3463 1993-10-19 Richard Stallman <rms@gnu.org>
3465 * bison.simple: *** empty log message ***
3467 1993-10-14 Richard Stallman <rms@gnu.org>
3469 * src/bison.s1: *** empty log message ***
3471 1993-10-14 Richard Stallman <rms@gnu.org>
3473 * bison.simple: *** empty log message ***
3475 1993-09-14 David J. MacKenzie <djm@gnu.org>
3477 * doc/bison.texinfo: *** empty log message ***
3479 1993-09-13 Noah Friedman <friedman@gnu.org>
3481 * Makefile.in: *** empty log message ***
3483 1993-09-10 Richard Stallman <rms@gnu.org>
3485 * src/conflicts.c: *** empty log message ***
3487 * src/system.h: entered into RCS
3489 1993-09-10 Richard Stallman <rms@gnu.org>
3491 * doc/bison.1: entered into RCS
3493 1993-09-06 Noah Friedman <friedman@gnu.org>
3495 * src/version.c: entered into RCS
3497 1993-09-06 Noah Friedman <friedman@gnu.org>
3499 * Makefile.in: *** empty log message ***
3501 1993-07-30 David J. MacKenzie <djm@gnu.org>
3503 * Makefile.in: *** empty log message ***
3505 1993-07-24 Richard Stallman <rms@gnu.org>
3507 * src/bison.s1: *** empty log message ***
3509 1993-07-24 Richard Stallman <rms@gnu.org>
3511 * bison.simple: *** empty log message ***
3513 1993-07-08 David J. MacKenzie <djm@gnu.org>
3515 * Makefile.in: *** empty log message ***
3517 1993-07-04 Richard Stallman <rms@gnu.org>
3519 * src/bison.s1: *** empty log message ***
3521 1993-07-04 Richard Stallman <rms@gnu.org>
3523 * bison.simple: *** empty log message ***
3525 1993-06-26 David J. MacKenzie <djm@gnu.org>
3527 * src/getargs.c: entered into RCS
3529 1993-06-26 David J. MacKenzie <djm@gnu.org>
3531 * doc/bison.texinfo: *** empty log message ***
3533 * doc/bison.1: New file.
3535 1993-06-25 Richard Stallman <rms@gnu.org>
3537 * src/getargs.c: New file.
3539 1993-06-16 Richard Stallman <rms@gnu.org>
3541 * src/bison.s1: *** empty log message ***
3543 1993-06-16 Richard Stallman <rms@gnu.org>
3545 * bison.simple: *** empty log message ***
3547 1993-06-03 Richard Stallman <rms@gnu.org>
3549 * src/bison.s1: New file.
3551 1993-06-03 Richard Stallman <rms@gnu.org>
3553 * doc/bison.texinfo: *** empty log message ***
3555 1993-06-03 Richard Stallman <rms@gnu.org>
3557 * bison.simple: New file.
3559 1993-05-19 Richard Stallman <rms@gnu.org>
3561 * doc/bison.texinfo: New file.
3563 1993-05-07 Noah Friedman <friedman@gnu.org>
3565 * Makefile.in: *** empty log message ***
3567 1993-04-28 Noah Friedman <friedman@gnu.org>
3569 * src/reader.c: *** empty log message ***
3571 1993-04-23 Noah Friedman <friedman@gnu.org>
3573 * src/alloc.h: entered into RCS
3575 1993-04-20 David J. MacKenzie <djm@gnu.org>
3577 * src/version.c: *** empty log message ***
3579 * src/files.c, src/allocate.c:
3582 * src/reader.c: *** empty log message ***
3584 * src/lex.c: entered into RCS
3586 * src/conflicts.c: New file.
3588 * src/symtab.c: entered into RCS
3590 * src/alloc.h: New file.
3592 * src/LR0.c: entered into RCS
3594 1993-04-18 Noah Friedman <friedman@gnu.org>
3596 * src/reader.c: New file.
3598 * src/version.c: *** empty log message ***
3600 1993-04-18 Noah Friedman <friedman@gnu.org>
3602 * Makefile.in: *** empty log message ***
3604 1993-04-17 Noah Friedman <friedman@gnu.org>
3606 * Makefile.in: *** empty log message ***
3608 1993-04-15 Richard Stallman <rms@gnu.org>
3610 * src/main.c, src/files.c:
3613 1993-04-15 Noah Friedman <friedman@gnu.org>
3615 * configure.in: entered into RCS
3617 * configure.in: *** empty log message ***
3619 * configure.in: New file.
3621 1993-04-14 Richard Stallman <rms@gnu.org>
3623 * Makefile.in: New file.
3625 1993-04-13 Richard Stallman <rms@gnu.org>
3627 * src/version.c: New file.
3629 1993-03-25 Richard Stallman <rms@gnu.org>
3631 * src/output.c: entered into RCS
3633 1992-09-25 Richard Stallman <rms@gnu.org>
3635 * configure.bat: entered into RCS
3637 1992-06-22 Richard Stallman <rms@gnu.org>
3639 * src/vmsgetargs.c: entered into RCS
3641 1992-06-22 Richard Stallman <rms@gnu.org>
3643 * doc/bison.rnh: entered into RCS
3645 1992-04-20 David J. MacKenzie <djm@gnu.org>
3647 * README: entered into RCS
3649 1992-01-22 Richard Stallman <rms@gnu.org>
3651 * src/machine.h: entered into RCS
3653 1991-12-21 Richard Stallman <rms@gnu.org>
3655 * src/lalr.c, src/closure.c:
3658 1991-12-20 Richard Stallman <rms@gnu.org>
3660 * src/state.h: entered into RCS
3662 1991-12-18 Richard Stallman <rms@gnu.org>
3664 * src/print.c, src/nullable.c, src/derives.c:
3667 1991-11-03 David J. MacKenzie <djm@gnu.org>
3669 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3672 1988-09-09 Richard Stallman <rms@gnu.org>
3674 * src/bison.hairy: entered into RCS
3676 1987-12-16 Richard Stallman <rms@gnu.org>
3678 * REFERENCES: entered into RCS