1 2001-12-12 Paul Eggert <eggert@twinsun.com>
3 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
4 Do not infringe on the global user namespace when using C++.
5 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
6 All uses of `fprintf' and `stderr' changed.
8 * src/output.c (output): Do not output "#include <stdio.h>"; that
9 is bison.simple's job. stdio.h should be included only if
10 necessary, to avoid infringing on the user name space when
13 2001-12-12 Akim Demaille <akim@epita.fr>
15 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
16 on that of lib/error.c.
18 2001-12-12 Akim Demaille <akim@epita.fr>
20 Some hosts don't like `/' in includes.
22 * src/system.h: Include libgettext.h without qualifying the path.
23 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
26 2001-12-10 Akim Demaille <akim@epita.fr>
28 Bison dumps core on bash.y.
29 Reported by Pascal Bart.
31 * src/warshall.c (bitmatrix_print): New.
33 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
34 j must be the outer loop.
35 * tests/regression.at (Broken Closure): New.
37 2001-12-05 Akim Demaille <akim@epita.fr>
41 2001-12-05 Akim Demaille <akim@epita.fr>
43 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
45 Reported by Peter Hámorský.
47 2001-12-05 Akim Demaille <akim@epita.fr>
49 * src/conflicts.c (err_table): Remove.
50 (resolve_sr_conflict): Adjust.
51 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
53 (state_t.reductions, state_t.shifts): this.
55 2001-12-05 Akim Demaille <akim@epita.fr>
57 * src/reduce.c (reduce_grammar_tables): No longer disable the
58 removal of useless rules via CPP but via `if (0)', so that the
59 compiler still check the code is valid.
60 For instance, it should have noticed `rline' no longer exists: use
61 the `line' member of rule_t.
62 * src/gram.c (dummy, rline): Remove, unused.
64 2001-12-05 Akim Demaille <akim@epita.fr>
66 * src/output.c (pack_vector): Use assert, not berror.
67 * src/main.c (berror): Remove, unused.
69 2001-12-05 Akim Demaille <akim@epita.fr>
71 New experimental feature: if --verbose --trace output all the
72 items of a state, not only its kernel.
74 * src/print.c (print_core): If `trace_flag', then invoke closure
75 before outputting the items of the state (print_core is no longer
77 (print_results): Invoke new_closure/free_closure if needed.
79 2001-12-05 Akim Demaille <akim@epita.fr>
81 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
82 * src/closure.c, src/closure.h (itemsetsize): Rename as...
83 (nitemset): for consistency with the rest of the project.
85 2001-12-05 Akim Demaille <akim@epita.fr>
87 * src/closure.c (print_closure): Improve.
88 (closure): Use it for printing input and output.
90 2001-12-05 Akim Demaille <akim@epita.fr>
92 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
93 indexed by nonterminals.
95 2001-12-05 Akim Demaille <akim@epita.fr>
97 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
99 * src/warshall.h: Remove accidental duplication of the content.
101 2001-12-05 Akim Demaille <akim@epita.fr>
103 * src/closure.c (set_fderives): De-obfuscate.
105 2001-12-05 Akim Demaille <akim@epita.fr>
107 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
109 2001-12-05 Akim Demaille <akim@epita.fr>
111 * src/closure.c (set_firsts): De-obfuscate.
113 2001-12-05 Akim Demaille <akim@epita.fr>
115 * src/output.c (action_row): De-obfuscate
116 using the good o' techniques: arrays not pointers, variable
117 locality, BITISSET, RESETBIT etc.
119 2001-12-05 Akim Demaille <akim@epita.fr>
121 Pessimize the code to simplify it: from now on, all the states
122 have a valid SHIFTS, which NSHIFTS is possibly 0.
124 * src/LR0.c (shifts_new): Be global and move to..
125 * src/state.c, src/state.h: here.
126 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
127 * src/print_graph: Adjust.
129 2001-12-05 Akim Demaille <akim@epita.fr>
131 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
132 * src/conflicts.c: Use it.
133 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
134 incorrectly ``simplified''.
136 2001-12-05 Akim Demaille <akim@epita.fr>
138 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
139 using the good o' techniques: arrays not pointers, variable
140 locality, BITISSET, RESETBIT etc.
142 2001-12-05 Akim Demaille <akim@epita.fr>
144 * src/state.h (SHIFT_SYMBOL): New.
145 * src/conflicts.c: Use it to deobfuscate.
147 2001-12-05 Akim Demaille <akim@epita.fr>
149 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
150 (print_reductions): De-obfuscate using the good o' techniques:
151 arrays not pointers, variable locality, BITISSET.
153 2001-12-05 Akim Demaille <akim@epita.fr>
155 * src/conflicts.c (print_reductions): Arrays, not pointers.
158 2001-12-05 Akim Demaille <akim@epita.fr>
160 * src/conflicts.c (print_reductions): Pessimize, but clarify.
162 2001-12-05 Akim Demaille <akim@epita.fr>
164 * src/conflicts.c (print_reductions): Improve variable locality.
166 2001-12-05 Akim Demaille <akim@epita.fr>
168 * src/conflicts.c (print_reductions): Pessimize, but clarify.
170 2001-12-05 Akim Demaille <akim@epita.fr>
172 * src/conflicts.c (print_reductions): Improve variable locality.
174 2001-12-05 Akim Demaille <akim@epita.fr>
176 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
177 * src/lalr.c: Use them.
179 2001-12-05 Akim Demaille <akim@epita.fr>
181 * src/LR0.c (augment_automaton): Formatting changes.
182 Better variable locality.
184 2001-12-05 Akim Demaille <akim@epita.fr>
186 * src/lalr.c (matrix_print): New.
188 Use arrays instead of pointers.
190 2001-12-05 Akim Demaille <akim@epita.fr>
192 * src/lalr.c (maxrhs): Move to...
193 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
194 * src/lalr.c (build_relations): Adjust.
196 2001-12-05 Akim Demaille <akim@epita.fr>
198 * src/lalr.c (transpose): Free the memory allocated to the
199 argument, as it is replaced by the results by the unique caller.
200 (build_relations): Merely invoke transpose: it handles the memory
202 Improve variable locality.
203 Avoid variables used as mere abbreviations.
204 (compute_lookaheads): Use arrays instead of pointers.
206 2001-12-05 Akim Demaille <akim@epita.fr>
208 * src/lalr.c (initialize_F): Improve variable locality.
209 Avoid variables used as mere abbreviations.
211 2001-12-05 Akim Demaille <akim@epita.fr>
213 * src/derives.c (print_derives): Display the ruleno.
214 * src/lalr.c (initialize_F, transpose): Better variable locality
215 to improve readability.
216 Avoid variables used as mere abbreviations.
218 2001-12-05 Akim Demaille <akim@epita.fr>
220 * src/lalr.c (traverse): Use arrays instead of pointers.
222 2001-12-05 Akim Demaille <akim@epita.fr>
224 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
225 the handling of squeue.
226 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
228 2001-12-05 Akim Demaille <akim@epita.fr>
230 Because useless nonterminals are now kept alive (instead of being
231 `destroyed'), we now sometimes examine them, and store information
232 related to them. Hence we need to know their number, and adjust
235 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
237 * src/LR0.c (allocate_itemsets): The memory allocated to
238 `symbol_count' was used for two different purpose: once to count
239 the number of occurrences of each symbol, and later reassigned to
240 `shift_symbol', containing the symbol that can be shifted from a
242 Deobfuscate, i.e., allocate, use and free `symbol_count' here
244 (new_itemsets): Allocate `shift_symbol' here.
245 (allocate_itemsets): symbol_count includes useless nonterminals.
247 (free_storage): Use `free', not `XFREE', for pointers that cannot
250 2001-12-05 Akim Demaille <akim@epita.fr>
252 * src/nullable.c (set_nullable): Deobfuscate the handling of
254 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
256 2001-12-05 Akim Demaille <akim@epita.fr>
258 * src/gram.c, src/gram.h (ritem_print): New.
259 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
260 (This useless function was defined only to work around VMS linkers
261 that can't handle compilation units with variables only).
262 * src/reduce.c (dump_grammar): Use it to trace the construction of
265 2001-12-04 Paul Eggert <eggert@twinsun.com>
267 * src/bison.simple (union yyalloc): Change member names
268 to be the same as the stack names.
269 (yyparse): yyptr is now union yyalloc *, not char *.
270 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
271 and may generate better code on some machines.
272 (yystpcpy): Use prototype if __STDC__ is defined, not just
273 if __cplusplus is defined.
275 2001-11-30 Akim Demaille <akim@epita.fr>
277 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
278 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
279 Gettext doesn't compile cleanly, and dies with -Werror.
280 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
281 Include WARNING_CFLAGS here.
282 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
283 before being defined.
285 2001-11-30 Paul Eggert <eggert@twinsun.com>
287 * lib/quotearg.h (quotearg_n, quotearg_n_style):
288 First arg is int, not unsigned.
289 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
290 (SIZE_MAX, UINT_MAX): New macros.
291 (quotearg_n_options): Abort if N is negative.
292 Avoid overflow check on hosts where size_t is 64 bits and int
293 is 32 bits, as overflow is impossible there.
294 Fix off-by-one typo that caused unnecessary reallocation.
296 2001-11-30 Paul Eggert <eggert@twinsun.com>
298 Name space cleanup in generated parser.
300 * doc/bison.texinfo (Bison Parser): Discuss system headers
301 and their effect on the user name space.
304 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
305 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
306 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
308 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
309 on user names when possible.
311 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
312 Simplify test for whather <alloca.h> exists.
314 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
316 (<stdio.h>): Include if YYDEBUG.
318 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
319 ! defined (yyoverflow) && ! defined (yymemcpy).
321 (yymemcpy, yyparse): Rename local variables as needed so that
322 they all begin with 'yy'.
324 (yystrlen, yystpcpy): New functions.
326 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
329 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
330 instead of relying on string.h functions. Use YYSTACK_ALLOC
331 and YYSTACK_FREE instead of malloc and free.
333 2001-11-30 Akim Demaille <akim@epita.fr>
335 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
336 if body instead of `;' to pacify GCC's warnings.
338 2001-11-30 Akim Demaille <akim@epita.fr>
340 Instead of mapping the LHS of unused rules to -1, keep the LHS
341 valid, but flag the rules as invalid.
343 * src/gram.h (rule_t): `useful' is a new member.
344 * src/print.c (print_grammar): Adjust.
345 * src/derives.c (set_derives): Likewise.
346 * src/reader.c (packgram, reduce_output): Likewise.
347 * src/reduce.c (reduce_grammar_tables): Likewise.
348 * tests/reduce.at (Underivable Rules, Useless Rules): New.
350 2001-11-30 Akim Demaille <akim@epita.fr>
352 * src/reduce.c (reduce_output): Formatting changes.
353 * src/print.c (print_results, print_grammar): Likewise.
354 * tests/regression.at (Rule Line Numbers)
355 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
357 2001-11-30 Akim Demaille <akim@epita.fr>
359 * src/reduce.c (nonterminals_reduce): Instead of throwing away
360 useless nonterminals, move them at the end of the symbol arrays.
361 (reduce_output): Adjust.
362 * tests/reduce.at (Useless Nonterminals): Adjust.
364 2001-11-30 Akim Demaille <akim@epita.fr>
366 * src/reduce.c: Various comment/formatting changes.
367 (nonterminals_reduce): New, extracted from...
368 (reduce_grammar_tables): here.
369 (reduce_grammar): Call nonterminals_reduce.
371 2001-11-29 Paul Eggert <eggert@twinsun.com>
373 * src/bison.simple (YYSTACK_REALLOC): Remove.
374 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
375 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
377 (union yyalloc): New type.
378 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
379 an arbitrary restriction on hosts where size_t is wider than int.
381 (yyparse): Don't dump core if alloca or malloc fails; instead, report
382 a parser stack overflow. Allocate just one block of memory for all
383 three stacks, instead of allocating three blocks; this typically is
384 faster and reduces fragmentation.
386 Do not limit the number of items in the stack to a value that fits
387 in 'int', as this is an arbitrary limit on hosts with 64-bit
388 size_t and 32-bit int.
390 2001-11-28 Akim Demaille <akim@epita.fr>
392 * src/LR0.c (shifts_new): New.
393 (save_shifts, insert_start_shift, augment_automaton): Use it.
395 2001-11-28 Akim Demaille <akim@epita.fr>
397 * src/closure.c (closure): `b' and `ruleno' denote the same value:
400 2001-11-28 Akim Demaille <akim@epita.fr>
402 * src/closure.c (closure): Instead of looping over word in array
403 then bits in words, loop over bits in array.
405 2001-11-28 Akim Demaille <akim@epita.fr>
407 * src/closure.c (closure): No longer optimize the special case
408 where all the bits of `ruleset[r]' are set to 0, to make the code
411 2001-11-28 Akim Demaille <akim@epita.fr>
413 * src/closure.c (closure): `r' and `c' are new variables, used to
414 de-obfuscate accesses to RULESET and CORE.
416 2001-11-28 Akim Demaille <akim@epita.fr>
418 * src/reduce.c (reduce_print): Use ngettext.
419 (dump_grammar): Improve the trace accuracy.
421 2001-11-28 Akim Demaille <akim@epita.fr>
423 * src/reduce.c (dump_grammar): Don't translate trace messages.
425 2001-11-28 Akim Demaille <akim@epita.fr>
427 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
428 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
429 as all tags are free'ed afterwards.
432 2001-11-27 Akim Demaille <akim@epita.fr>
434 * src/system.h: Use intl/libgettext.h.
435 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
437 2001-11-27 Paul Eggert <eggert@twinsun.com>
439 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
440 use alloca when we didn't want to, and vice versa.
442 2001-11-27 Akim Demaille <akim@epita.fr>
444 * tests/torture.at (Exploding the Stack Size with Malloc):
445 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
447 2001-11-27 Akim Demaille <akim@epita.fr>
449 * src/files.c: Include error.h.
452 2001-11-26 Akim Demaille <akim@epita.fr>
456 2001-11-26 Akim Demaille <akim@epita.fr>
458 * src/reader.c (readgram): Make sure rules for mid-rule actions
459 have a lineno equal to that of their host rule.
460 Reported by Hans Aberg.
461 * tests/regression.at (Rule Line Numbers): New.
463 2001-11-26 Akim Demaille <akim@epita.fr>
465 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
467 Reported by Hans Aberg.
469 2001-11-26 Akim Demaille <akim@epita.fr>
471 * src/complain.c, src/complain.h (error): Remove, provided by
474 2001-11-26 Akim Demaille <akim@epita.fr>
476 * src/reader.c (read_declarations): Don't abort on tok_illegal,
477 issue an error message.
478 * tests/regression.at (Invalid %directive): New.
479 Reported by Hans Aberg.
481 2001-11-26 Akim Demaille <akim@epita.fr>
483 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
484 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
486 2001-11-26 Akim Demaille <akim@epita.fr>
488 * src/conflicts.c (conflicts_print): Don't complain at all when
489 there are no reduce/reduce conflicts, and as many shift/reduce
490 conflicts as expected.
491 * tests/regression.at (%expect right): Adjust.
493 2001-11-23 Akim Demaille <akim@epita.fr>
495 * lib/alloca.c: Update, from fileutils.
497 2001-11-23 Akim Demaille <akim@epita.fr>
499 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
501 2001-11-23 Akim Demaille <akim@epita.fr>
503 * src/system.h: Include alloca.h.
504 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
506 2001-11-23 Akim Demaille <akim@epita.fr>
508 * src/print_graph.c (print_actions): Remove `rule', unused.
509 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
510 pacify GCC's signed < unsigned warnings.
511 * src/closure.c (itemsetsize): Likewise.
512 * src/reader.c (symbol_list_new): Static.
514 2001-11-23 Akim Demaille <akim@epita.fr>
516 Attaching lineno to buckets is stupid, since only one copy of each
517 symbol is kept, only the line of the first occurrence is kept too.
519 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
520 * src/reader.c (rline_allocated): Remove, unused.
521 (symbol_list): Have a `line' member.
522 (symbol_list_new): New.
524 * src/print.c (print_grammar): Output the rule line numbers.
525 * tests/regression.at (Solved SR Conflicts)
526 (Unresolved SR Conflicts): Adjust.
527 Reported by Hans Aberg.
529 2001-11-20 Akim Demaille <akim@epita.fr>
533 2001-11-20 Akim Demaille <akim@epita.fr>
536 * configure.in (ALL_LINGUAS): Adjust.
537 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
538 longer contains strings to translate.
540 2001-11-19 Akim Demaille <akim@epita.fr>
542 * src/conflicts.c (conflicts_print): Add a missing \n.
544 2001-11-19 Akim Demaille <akim@epita.fr>
546 * src/nullable.c (nullable_print): New.
547 (set_nullable): Call it when tracing.
548 Better locality of variables.
550 2001-11-19 Akim Demaille <akim@epita.fr>
552 * src/print.c (print_actions): Better locality of variables.
554 2001-11-19 Akim Demaille <akim@epita.fr>
556 * src/derives.c (print_derives): Fix and enrich.
557 * src/closure.c (print_fderives): Likewise.
559 2001-11-19 Akim Demaille <akim@epita.fr>
561 * src/closure.c (itemsetend): Remove, replaced with...
564 2001-11-19 Akim Demaille <akim@epita.fr>
566 * src/LR0.c (kernel_end): Remove, replaced with...
569 2001-11-19 Akim Demaille <akim@epita.fr>
571 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
574 2001-11-19 Akim Demaille <akim@epita.fr>
576 * src/closure.c (closure): Use arrays instead of pointers to clarify.
578 2001-11-19 Akim Demaille <akim@epita.fr>
580 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
582 * src/LR0.c: Likewise.
583 (allocate_itemsets): Use arrays instead of pointers to clarify.
585 2001-11-19 Akim Demaille <akim@epita.fr>
587 * src/getargs.c (statistics_flag): Replace with...
589 (longopts): Accept --trace instead of --statistics.
590 * src/getargs.h: Adjust.
591 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
592 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
594 2001-11-19 Akim Demaille <akim@epita.fr>
596 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
597 pointers to clarify the code.
598 (save_reductions, save_shifts): Factor common parts of alternatives.
600 2001-11-19 Akim Demaille <akim@epita.fr>
602 * src/LR0.c (new_state, get_state): Complete TRACE code.
603 * src/closure.c: Include `reader.h' to get `tags', needed by the
605 Rename the conditional DEBUG as TRACE.
606 Output consistently TRACEs to stderr, not stdout.
607 * src/derives.c: Likewise.
608 * src/reduce.c: (inaccessable_symbols): Using if is better style
610 Use `#if TRACE' instead of `#if 0' for tracing code.
612 2001-11-19 Akim Demaille <akim@epita.fr>
614 * src/system.h (LIST_FREE, shortcpy): New.
615 * src/LR0.c: Use them.
616 * src/output.c (free_itemsets, free_reductions, free_shifts):
617 Remove, replaced by LIST_FREE.
619 2001-11-19 Akim Demaille <akim@epita.fr>
621 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
622 (REDUCTIONS_ALLOC): New.
623 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
626 2001-11-19 Akim Demaille <akim@epita.fr>
628 * src/LR0.c (new_state): Complete trace code.
629 * src/nullable.c (set_nullable): Don't translate traces.
631 2001-11-19 Akim Demaille <akim@epita.fr>
633 * src/print_graph.c (print_core): Better locality of variables.
634 * src/print.c (print_core): Likewise.
636 2001-11-19 Akim Demaille <akim@epita.fr>
638 * src/vcg.c: You do the output, so you are responsible of the
639 handling of VCG syntax, in particular: use quotearg.
640 * src/print_graph.c: Don't.
641 (print_actions): Don't output the actions as part of the nodes,
642 since that's the job of the edges.
643 (print_state): Don't output by hand: fill the node description,
644 and ask for its output.
646 2001-11-19 Akim Demaille <akim@epita.fr>
648 * src/bison.simple (yyparse): When verbosely reporting an error,
649 no longer put additional quotes around token names.
650 * tests/calc.at: Adjust.
652 2001-11-19 Akim Demaille <akim@epita.fr>
654 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
655 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
656 * src/output.c: Adjust.
658 2001-11-19 Akim Demaille <akim@epita.fr>
660 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
662 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
664 2001-11-19 Akim Demaille <akim@epita.fr>
666 * src/gram.h (rule_t): New.
668 (rrhs, rlhs): Remove, part of state_t.
669 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
670 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
671 * src/reader.c, src/reduce.c: Adjust.
673 2001-11-19 Akim Demaille <akim@epita.fr>
675 * src/reader.c (symbols_output): New, extracted from...
679 2001-11-19 Akim Demaille <akim@epita.fr>
681 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
682 (maxrhs): this new function.
684 2001-11-19 Akim Demaille <akim@epita.fr>
686 * src/lalr.c (F): New macro to access the variable F.
689 2001-11-19 Akim Demaille <akim@epita.fr>
691 * src/lalr.h (LA): New macro to access the variable LA.
692 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
693 * src/lalr.c: Adjust.
695 2001-11-19 Akim Demaille <akim@epita.fr>
697 * src/lalr.c (initialize_LA): Only initialize LA. Let...
698 (set_state_table): handle the `lookaheads' members.
700 2001-11-19 Akim Demaille <akim@epita.fr>
702 * src/lalr.h (lookaheads): Removed array, whose contents is now
704 (state_t): this structure.
705 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
708 2001-11-19 Akim Demaille <akim@epita.fr>
710 * src/lalr.h (consistent): Removed array, whose contents is now
712 (state_t): this structure.
713 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
716 2001-11-19 Akim Demaille <akim@epita.fr>
718 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
719 contents are now members of...
720 (state_t): this structure.
721 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
724 2001-11-19 Akim Demaille <akim@epita.fr>
726 * src/lalr.h (state_t): New.
727 (state_table): Be a state_t * instead of a core **.
728 (accessing_symbol): Remove, part of state_t.
729 * src/lalr.c: Adjust.
730 (set_accessing_symbol): Merge into...
731 (set_state_table): this.
732 * src/print_graph.c, src/conflicts.c: Adjust.
734 2001-11-14 Akim Demaille <akim@epita.fr>
738 2001-11-14 Akim Demaille <akim@epita.fr>
740 * tests/calc.at, tests/output.at, tests/regression.at,
741 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
742 now the tests are run in private dirs, therefore AC_CLEANUP and
743 family can be simplified to 0-ary.
744 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
745 use abs. path to find config.h.
747 2001-11-14 Akim Demaille <akim@epita.fr>
749 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
750 stderr, there can be way too much random noise.
751 Instead pass -Werror to GCC and rely on the exit status.
752 Reported by Wolfram Wagner.
754 2001-11-14 Akim Demaille <akim@epita.fr>
756 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
757 defined only if yyoverflow is defined, to avoid `warning: unused
759 Reported by The Test Suite.
761 2001-11-14 Akim Demaille <akim@epita.fr>
763 * src/print.c: Include reduce.h.
764 Reported by Hans Aberg.
766 2001-11-14 Akim Demaille <akim@epita.fr>
768 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
769 Revert a previous patch: these are really const.
770 * src/conflicts.c (conflict_report): Additional useless pair of
771 braces to pacify GCC's warnings for `if () if () {} else {}'.
772 * src/lex.c (parse_percent_token): Replace equal_offset with
775 Be sure to strdup `arg' when used, since there is no reason for
776 token_buffer not to change.
778 2001-11-14 Akim Demaille <akim@epita.fr>
780 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
782 * src/main.c (main): Use them.
783 Suggested by Hans Aberg.
785 2001-11-12 Akim Demaille <akim@epita.fr>
789 * src/system.h (ngettext): Now that we use ngettext, be sure to
790 provide a default definition when NLS are not used that takes care
793 2001-11-12 Akim Demaille <akim@epita.fr>
795 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
796 Use @kbd to denote user input.
797 (Language and Grammar): ANSIfy the example.
798 Adjust its layout for info/notinfo.
799 (Location Tracking Calc): Output error messages to stderr.
800 Output locations in a more GNUtically correct way.
801 Fix a couple of Englishos.
802 Adjust @group/@end group pairs.
804 2001-11-12 Akim Demaille <akim@epita.fr>
806 %expext was not functioning at all.
808 * src/conflicts.c (expected_conflicts): Set to -1.
809 (conflict_report): Use ngettext.
810 (conflicts_print): Check %expect and make its violation an error.
811 * doc/bison.texinfo (Expect Decl): Adjust.
812 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
813 * tests/regression.at (%expect not enough, %expect right)
814 (%expect too much): New.
816 2001-11-12 Akim Demaille <akim@epita.fr>
818 * tests/regression.at (Conflicts): Rename as...
819 (Unresolved SR Conflicts): this.
820 (Solved SR Conflicts): New.
822 2001-11-12 Akim Demaille <akim@epita.fr>
824 * src/reduce.c (print_results): Rename as...
825 (reduce_output): This.
826 Output to OUT, passed as argument, instead of output_obstack.
827 (dump_grammar): Likewise.
830 (reduce_grammar): No longer call reduce_output, since...
831 * src/print.c (print_results): do it.
832 * src/main.c (main): Call reduce_free;
834 2001-11-12 Akim Demaille <akim@epita.fr>
836 * src/conflicts.c (print_reductions): Accept OUT as argument.
837 Output to it, not to output_obstack.
838 * src/print.c (print_actions): Adjust.
840 2001-11-12 Akim Demaille <akim@epita.fr>
842 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
843 the result instead of using...
844 (src_total, rrc_total, src_count, rrc_count): Remove.
845 (any_conflicts): Remove.
846 (print_conflicts): Split into...
847 (conflicts_print, conflicts_output): New.
848 * src/conflicts.h: Adjust.
849 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
850 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
851 * tests/regression.at (Conflicts): New.
852 Reported by Tom Lane.
854 2001-11-12 Akim Demaille <akim@epita.fr>
856 * tests/regression.at (Invalid input): Remove, duplicate with
857 ``Invalid input: 1''.
859 2001-11-12 Akim Demaille <akim@epita.fr>
861 * tests/torture.at (AT_DATA_STACK_TORTURE)
862 (Exploding the Stack Size with Alloca)
863 (Exploding the Stack Size with Malloc): New.
865 2001-11-12 Akim Demaille <akim@epita.fr>
867 * src/bison.simple (YYSTACK_REALLOC): New.
868 (yyparse) [!yyoverflow]: Use it and free the old stack.
869 Reported by Per Allansson.
871 2001-11-05 Akim Demaille <akim@epita.fr>
874 * src/lex.c (parse_percent_token): s/quotearg/quote/.
876 2001-11-05 Akim Demaille <akim@epita.fr>
878 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
881 2001-11-05 Akim Demaille <akim@epita.fr>
883 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
884 with yyltype/YYLTYPE. This allows inclusion of the generated
885 header within the parser if the compiler, such as GGC, accepts
886 multiple equivalent #defines.
888 2001-11-04 Akim Demaille <akim@epita.fr>
890 * src/getargs.c (longopts): Support `--output'. getopt is now
891 able to understand that `--out' is OK: the two racing long options
894 * src/lex.h (tok_setopt): Remove, replaced with...
895 (tok_intopt, tok_stropt): these new guys.
896 * src/lex.c (getopt.h): Not needed.
897 (token_buffer, unlexed_token_buffer): Not const.
898 (percent_table): Promote `-' over `_' in directive names.
899 Active `%name-prefix', `file-prefix', and `output'.
900 (parse_percent_token): Accept possible arguments to directives.
901 Promote `-' over `_' in directive names.
902 * doc/bison.texinfo (Decl Summary): Split the list into
903 `directives for grammars' and `directives for bison'.
905 Add description of `%name-prefix', `file-prefix', and `output'.
906 Promote `-' over `_' in directive names.
907 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
908 Simplify the description of `--name-prefix'.
909 Promote `-' over `_' in directive names.
910 Promote `--output' over `--output-file'.
911 Fix the description of `--defines'.
912 * tests/output.at: Exercise %file-prefix and %output.
914 2001-11-02 Akim Demaille <akim@epita.fr>
916 * doc/refcard.tex: Update.
918 2001-11-02 Akim Demaille <akim@epita.fr>
920 * src/symtab.h (SUNDEF): New.
921 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
922 stand for `uninitialized', instead of 0.
923 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
924 * src/lex.c (lex): Adjust.
926 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
928 Let yylex return it instead of a plain 0.
929 Reported by Dick Streefland.
931 2001-11-02 Akim Demaille <akim@epita.fr>
933 * tests/regression.at (Mixing %token styles): New test.
935 2001-11-02 Akim Demaille <akim@epita.fr>
937 * src/reader.c (parse_thong_decl): Formatting changes.
938 (token_translations_init): New, extracted from...
942 2001-11-01 Akim Demaille <akim@epita.fr>
944 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
945 Check that `9foo.y' produces correct cpp guards.
946 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
950 2001-11-01 Akim Demaille <akim@epita.fr>
952 * tests/regression.at (Invalid input: 2): New.
953 * src/lex.c (unlexed_token_buffer): New.
954 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
958 2001-11-01 Akim Demaille <akim@epita.fr>
960 * configure.in: Bump to 1.30a.
961 Adjust to newer Autotest.
963 2001-10-26 Akim Demaille <akim@epita.fr>
967 2001-10-26 Paul Eggert <eggert@twinsun.com>
969 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
970 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
971 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
972 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
973 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
974 Sync with fileutils 4.1.1.
976 2001-10-18 Akim Demaille <akim@epita.fr>
979 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
980 avoid spurious failures.
982 2001-10-18 Akim Demaille <akim@epita.fr>
986 2001-10-18 Akim Demaille <akim@epita.fr>
988 * tests/atlocal.in (GCC): Add.
989 * tests/calc.at: s/m4_match/m4_bmatch/.
990 s/m4_patsubst/m4_bpatsubst/.
991 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
992 * configure.in: AC_SUBST(GCC).
994 2001-10-10 Akim Demaille <akim@epita.fr>
997 * configure.in: M4 is no longer needed, but autom4te is.
998 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1001 2001-10-10 Akim Demaille <akim@epita.fr>
1005 2001-10-10 Akim Demaille <akim@epita.fr>
1008 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1009 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1010 Reported by Airy Andre.
1012 2001-10-10 Akim Demaille <akim@epita.fr>
1014 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1015 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1017 2001-10-02 Akim Demaille <akim@epita.fr>
1021 2001-10-02 Akim Demaille <akim@epita.fr>
1025 2001-10-02 Akim Demaille <akim@epita.fr>
1027 * tests/regression.at (Invalid CPP headers): New.
1028 From Alexander Belopolsky.
1029 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1031 2001-10-02 Akim Demaille <akim@epita.fr>
1033 * tests/regression.at (Invalid input): New.
1034 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1037 2001-10-02 Akim Demaille <akim@epita.fr>
1039 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1041 2001-10-02 Akim Demaille <akim@epita.fr>
1043 * src/output.c (output_parser): Assert `skeleton'.
1044 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1048 2001-10-01 Marc Autret <autret_m@epita.fr>
1050 * src/lex.h: Echo modifications.
1051 * src/lex.c (unlex): Parameter is now token_t.
1054 2001-10-01 Marc Autret <autret_m@epita.fr>
1056 * src/main.c: Include lex.h.
1059 2001-09-29 Akim Demaille <akim@epita.fr>
1061 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1063 2001-09-28 Akim Demaille <akim@epita.fr>
1065 * tests/testsuite.at: Update to newer Autotest.
1066 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1068 2001-09-27 Akim Demaille <akim@epita.fr>
1070 Position independent wrapper.
1072 * tests/bison: Remove.
1073 * tests/bison.in: New.
1074 * configure.in: Adjust.
1076 2001-09-27 Paul Eggert <eggert@twinsun.com>
1078 Port quotearg fixes from tar 1.13.24.
1080 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1082 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1083 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1085 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1086 * m4/mbrtowc.m4: New file.
1087 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1088 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1090 2001-09-27 Akim Demaille <akim@epita.fr>
1094 2001-09-27 Akim Demaille <akim@epita.fr>
1098 2001-09-25 Akim Demaille <akim@epita.fr>
1100 * src/system.h: Include `xalloc.h'.
1101 Remove it from the C files.
1102 * src/files.c (output_files): Free the obstacks.
1103 * src/lex.c (init_lex): Rename as...
1106 * src/main.c (main): Use it.
1108 2001-09-24 Marc Autret <autret_m@epita.fr>
1110 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1111 to output informations in fout (FILE*).
1112 (open_graph, close_graph): Likewise.
1113 (output_graph, output_edge, output_node): Likewise.
1114 * src/vcg.h: Update function prototypes.
1115 * src/print_graph.c (print_graph): Open output graph file.
1116 (print_actions): Adjust.
1117 * src/files.h: Remove extern declaration.
1118 * src/files.c: Remove graph_obstack declaration.
1119 (open_files): Remove graph_obstack initialization.
1120 (output_files): Remove graph_obstack saving.
1122 2001-09-24 Marc Autret <autret_m@epita.fr>
1124 * src/files.c (compute_output_file_names): Fix.
1126 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1128 * src/reader.c (reader): Remove call to free_symtab ().
1129 * src/main.c (main): Call it here.
1131 * src/conflicts.c (initialize_conflicts): Rename as...
1132 (solve_conflicts): this.
1133 * src/print.c (print_core, print_actions, print_state)
1134 (print_grammar): Dump to a file instead a `output_obstack'.
1135 (print_results): Dump `output_obstack', and then proceed with the
1137 * src/files.c (compute_output_file_names, close_files): New.
1138 (output_files): Adjust.
1139 * src/main.c (main): Adjust.
1141 2001-09-23 Marc Autret <autret_m@epita.fr>
1143 * src/files.c (compute_header_macro): Computes header macro name
1144 from spec_defines_file when given.
1146 2001-09-23 Marc Autret <autret_m@epita.fr>
1148 * src/files.c (output_files): Add default extensions.
1150 2001-09-22 Akim Demaille <akim@epita.fr>
1152 * src/conflicts.c (finalize_conflicts): Rename as...
1153 (free_conflicts): this.
1155 2001-09-22 Akim Demaille <akim@epita.fr>
1157 * src/gram.c (gram_free): Rename back as...
1159 (output_token_translations): Free `token_translations'.
1160 * src/symtab.c (free_symtab): Free the tag field.
1162 2001-09-22 Akim Demaille <akim@epita.fr>
1164 Remove `translations' as it is always set to true.
1166 * src/gram.h: Adjust.
1167 * src/reader.c (packsymbols, parse_token_decl): Adjust
1168 * src/print.c (print_grammar): Adjust.
1169 * src/output.c (output_token_translations): Adjust.
1170 * src/lex.c (lex): Adjust.
1171 * src/gram.c: Be sure the set pointers to NULL.
1172 (dummy): Rename as...
1175 2001-09-22 Akim Demaille <akim@epita.fr>
1177 * configure.in: Invoke AM_LIB_DMALLOC.
1178 * src/system.h: Use dmalloc.
1179 * src/LR0.c: Be sure to have pointers initialized to NULL.
1180 (allocate_itemsets): Allocate kernel_items only if needed.
1182 2001-09-22 Akim Demaille <akim@epita.fr>
1184 * configure.in: Bump to 1.29b.
1185 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1186 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1187 need xmalloc.c in calc.y.
1190 2001-09-21 Akim Demaille <akim@epita.fr>
1193 * Makefile.maint, config/config.guess, config/config.sub,
1194 * config/missing: Update from masters.
1195 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1197 * configure.in (ALL_LINGUAS): Add `tr'.
1199 2001-09-21 Akim Demaille <akim@epita.fr>
1201 * tests/Makefile.am (package.m4): Move to...
1202 ($(srcdir)/$(TESTSUITE)): here.
1204 2001-09-20 Akim Demaille <akim@epita.fr>
1206 * src/complain.c: No longer try to be standalone: use system.h.
1207 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1208 * src/complain.h: Likewise.
1209 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1210 Remove the unused variable `n'.
1211 From Albert Chin-A-Young.
1213 2001-09-18 Marc Autret <autret_m@epita.fr>
1215 * doc/bison.1: Update.
1216 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1218 (Option Cross Key): Update.
1221 2001-09-18 Marc Autret <autret_m@epita.fr>
1223 * tests/regression.at: New test (comment in %union).
1225 2001-09-18 Marc Autret <autret_m@epita.fr>
1227 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1229 Reported by Keith Browne.
1231 2001-09-18 Marc Autret <autret_m@epita.fr>
1233 * tests/output.at: Add tests for --defines and --graph.
1235 2001-09-18 Marc Autret <autret_m@epita.fr>
1237 * tests/output.at: Removes tests of %{header,src}_extension features.
1239 2001-09-18 Akim Demaille <akim@epita.fr>
1241 * tests/Makefile.am (package.m4): New.
1242 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1243 (_AT_CHECK_CALC_ERROR): Likewise.
1244 Factor the `, ' part of verbose error messages.
1246 2001-09-18 Marc Autret <autret_m@epita.fr>
1248 * src/getargs.c (longopts): Declare --defines and --graph as options
1249 with optional arguments.
1250 * src/files.h: Add extern declarations.
1251 * src/files.c (spec_graph_file, spec_defines_file): New.
1252 (output_files): Update.
1253 Remove CPP-outed code.
1255 2001-09-18 Marc Autret <autret_m@epita.fr>
1257 Turn off %{source,header}_extension feature.
1259 * src/files.c (compute_exts_from_gf): Update.
1260 (compute_exts_from_src): Update.
1261 (output_files): CPP-out useless code.
1262 * src/files.h: Remove {header,source}_extension extern declarations.
1263 * src/reader.c (parse_dquoted_param): CPP-out.
1264 (parse_header_extension_decl): Remove.
1265 (parse_source_extension_decl): Remove.
1266 (read_declarations): Remove cases tok_{hdrext,srcext}.
1267 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1268 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1270 2001-09-10 Akim Demaille <akim@epita.fr>
1272 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1273 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1274 (AT_CHECK_OUTPUT): this.
1275 Merely check ls' exit status, its output is useless.
1277 2001-09-10 Akim Demaille <akim@epita.fr>
1279 * tests/calc.at: Use m4_match.
1280 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1282 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1284 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1286 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1288 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1289 * src/lex.h: Adjust prototype.
1290 (token_t): Add `tok_undef'.
1291 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1292 (parse_percent_token): Now returns token_t.
1293 Add default statement in switch.
1294 (lex): Separate `c' as an input variable, from the token_t result
1296 (unlexed): Is a token_t.
1298 2001-09-10 Akim Demaille <akim@epita.fr>
1300 * configure.in: Bump to 1.29a.
1302 2001-09-07 Akim Demaille <akim@epita.fr>
1306 2001-08-30 Akim Demaille <akim@epita.fr>
1308 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1309 * m4/atconfig.m4: Remove.
1310 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1312 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1313 m4_if, m4_patsubst, and m4_regexp.
1314 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1315 `input' file instead of echo.
1317 2001-08-29 Akim Demaille <akim@epita.fr>
1321 2001-08-29 Akim Demaille <akim@epita.fr>
1325 2001-08-29 Paul Eggert <eggert@twinsun.com>
1327 * src/bison.simple (yyparse): Don't take the address of an
1328 item before the start of an array, as that doesn't conform to
1331 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1333 * doc/bison.texinfo (Location Tracking Calc): New node.
1335 2001-08-29 Paul Eggert <eggert@twinsun.com>
1337 * src/output.c (output): Do not define const, as this now
1338 causes more problems than it cures.
1340 2001-08-29 Akim Demaille <akim@epita.fr>
1342 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1344 Be sure to tag the `detailmenu'.
1346 2001-08-29 Akim Demaille <akim@epita.fr>
1348 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1349 download in a tmp dir.
1351 2001-08-28 Marc Autret <autret_m@epita.fr>
1353 * config/depcomp: New file.
1355 2001-08-28 Marc Autret <autret_m@epita.fr>
1357 * doc/bison.1 (mandoc): Adjust.
1358 From Juan Manuel Guerrero.
1360 2001-08-28 Marc Autret <autret_m@epita.fr>
1362 * src/print_graph.c (print_state): Fix.
1364 2001-08-27 Marc Autret <autret_m@epita.fr>
1366 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1368 Echo modifications to the functions prototypes.
1369 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1371 2001-08-27 Marc Autret <autret_m@epita.fr>
1373 * src/vcg.c: Include `xalloc.h'.
1374 (add_colorentry): New.
1375 (add_classname): New.
1376 (add_infoname): New.
1377 * src/vcg.h: Add new prototypes.
1379 2001-08-27 Akim Demaille <akim@epita.fr>
1381 * Makefile.maint: Sync. again with CVS Autoconf.
1383 2001-08-27 Akim Demaille <akim@epita.fr>
1385 * Makefile.maint: Formatting changes.
1386 (po-update, cvs-update, update): New targets.
1389 2001-08-27 Akim Demaille <akim@epita.fr>
1391 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1392 * Makefile.maint: Sync. with CVS Autoconf.
1394 2001-08-27 Marc Autret <autret_m@epita.fr>
1396 * src/vcg.h (struct infoname_s): New.
1397 (struct colorentry_s): New.
1398 (graph_s): New fields {vertical,horizontal}_order in structure.
1399 Add `infoname' field.
1400 Add `colorentry' field;
1401 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1402 (G_HORIZONTAL_ORDER): New.
1404 (G_COLORENTRY): New.
1405 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1406 Add output of `infoname'.
1407 Add output of `colorentry'.
1409 2001-08-27 Marc Autret <autret_m@epita.fr>
1411 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1412 This one shadowed a global parameter.
1414 2001-08-24 Marc Autret <autret_m@epita.fr>
1416 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1417 instead of `unsigned'.
1418 (print_state): Do not call obstack_object_size () in obstack_grow ()
1419 to avoid macro variables shadowing.
1421 2001-08-23 Marc Autret <autret_m@epita.fr>
1423 * src/lex.c (percent_table): Typo: s/naem/name/.
1425 Normalize new options declarations.
1427 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1429 * tests/suite.at: Exercise %header_extension and %source_extension.
1431 2001-08-16 Marc Autret <autret_m@epita.fr>
1433 * src/reader.c (parse_dquoted_param): New.
1434 (parse_header_extension_decl): Use it.
1435 (parse_source_extension_decl): Likewise.
1437 2001-08-16 Marc Autret <autret_m@epita.fr>
1439 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1440 (get_xxxx_str): Use assert () instead of complain ().
1441 Remove return invokations in default cases.
1442 (get_decision_str): Modify default behaviour. Remove second argument.
1443 Echo modifications on calls.
1444 (output_graph): Fix.
1446 2001-08-16 Marc Autret <autret_m@epita.fr>
1448 * src/getargs.c (usage): Update with ``-g, --graph''.
1450 2001-08-16 Marc Autret <autret_m@epita.fr>
1452 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1453 (Option Cross Key): Likewise.
1454 * doc/bison.1: Update.
1456 2001-08-15 Akim Demaille <akim@epita.fr>
1460 2001-08-15 Marc Autret <autret_m@epita.fr>
1462 * src/reader.c (readgram): Indent output macro YYSTYPE.
1463 (packsymbols): Likewise.
1464 (output_token_defines): Likewise.
1465 * src/files.c: Standardize.
1466 (compute_header_macro): New.
1467 (defines_obstack_save): New. Use compute_header_macro.
1468 (output_files): Update. Use defines_obstack_save.
1470 2001-08-15 Akim Demaille <akim@epita.fr>
1472 * doc/bison.texinfo (Table of Symbols): Document
1475 2001-08-15 Akim Demaille <akim@epita.fr>
1477 * missing: Update from CVS Automake.
1478 * config/config.guess, config/config.sub, config/texinfo.tex:
1479 Update from gnu.org.
1481 2001-08-15 Akim Demaille <akim@epita.fr>
1483 * Makefile.maint: Sync with CVS Autoconf.
1485 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1487 * doc/bison.texinfo: Include GNU Free Documentation License from
1489 * doc/fdl.texi: Add to package.
1491 2001-08-14 Marc Autret <autret_m@epita.fr>
1493 Turn on %{source,header}_extension features.
1495 * src/lex.c (percent_table): Un-CPP out header_extension and
1497 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1498 (compute_exts_from_src): Remove conditions. It restores priorities
1501 2001-08-14 Marc Autret <autret_m@epita.fr>
1503 * src/files.c (compute_base_names): Add extensions computing when
1504 `--file-prefix' used.
1505 Standardize function calls.
1507 2001-08-13 Marc Autret <autret_m@epita.fr>
1509 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1510 defining it (defined but null disables alloca).
1512 2001-08-13 Marc Autret <autret_m@epita.fr>
1514 * src/bison.simple (_yy_memcpy): CPP reformat.
1516 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1518 * tests/atconfig.in (CPPFLAGS): Fix.
1520 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1522 * doc/bison.texinfo: Include GNU General Public License from
1524 * doc/gpl.texi: Add to package.
1526 2001-08-10 Marc Autret <autret_m@epita.fr>
1528 * src/print_graph.h: Fix.
1529 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1531 2001-08-10 Akim Demaille <akim@epita.fr>
1533 * src/system.h: Provide default declarations for stpcpy, strndup,
1536 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1538 * doc/bison.texinfo (Locations): Update @$ stuff.
1540 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1542 * src/bison.simple (YYLLOC_DEFAULT): Update.
1545 2001-08-08 Marc Autret <autret_m@epita.fr>
1547 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1548 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1549 Reported by Fabrice Bauzac.
1551 2001-08-08 Marc Autret <autret_m@epita.fr>
1553 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1554 * src/vcg.c (output_node): Fix.
1555 * src/vcg.h: Cleanup.
1556 * src/print_graph.c: Add comments.
1557 (node_output_size): New global variable. Simplify the formatting of
1558 the VCG graph output.
1559 (print_actions): Unused code is now used. It notifies the final state
1560 and no action states in the VCG graph. It also give the reduce actions.
1561 The `shift and goto' edges are red and the `go to state' edges are
1563 Get the current node name and node_obstack by argument.
1564 (node_obstack): New variable.
1565 (print_state): Manage node_obstack.
1566 (print_core): Use node_obstack given by argument.
1567 A node is not only computed here but in print_actions also.
1568 (print_graph): CPP out useless code instead of commenting it.
1570 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1572 * tests/atconfig.in (CPPFLAGS): Fix.
1574 2001-08-07 Akim Demaille <akim@epita.fr>
1576 * src/print_graph.c (quote): New.
1577 (print_core): Use it.
1579 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1581 * src/vcg.c (complain.h): Include it.
1582 Unepitaize `return' invocations.
1583 [NDEBUG] (main): Remove.
1584 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1585 * src/files.c (open_files): Initialize graph_obstack.
1586 * src/print_graph.c (print_actions): CPP out useless code.
1587 (print_core): Don't output the last `\n' in labels.
1589 * src/files.c (output_files): Output the VCG file.
1590 * src/main.c (main): Invoke print_graph ();
1592 2001-08-06 Marc Autret <autret_m@epita.fr>
1594 Automaton VCG graph output.
1595 Using option ``-g'' or long option ``--graph'', you can generate
1596 a gram_filename.vcg file containing a VCG description of the LALR (1)
1597 automaton of your grammar.
1599 * src/main.c: Call to print_graph() function.
1600 * src/getargs.h: Update.
1601 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1602 (graph_flag): New flag.
1604 (getargs): Add case `g'.
1605 * src/files.c (graph_obstack): New obstack struct.
1606 (open_files): Initialize new obstack.
1607 (output_files): Saves graph_obstack if required.
1608 * src/files.h (graph_obstack): New extern declaration.
1609 * src/Makefile.am: Add new source files.
1611 2001-08-06 Marc Autret <autret_m@epita.fr>
1613 * src/print_graph.c, src/print_graph.h (graph): New.
1614 * src/vcg.h: New file.
1615 * src/vcg.c: New file, VCG graph handling.
1617 2001-08-06 Marc Autret <autret_m@epita.fr>
1619 Add of %source_extension and %header_extension which specify
1620 the source or/and the header output file extension.
1622 * src/files.c (compute_base_names): Remove initialisation of
1623 src_extension and header_extension.
1624 (compute_exts_from_gf): Update.
1625 (compute_exts_from_src): Update.
1626 (output_files): Update.
1627 * src/reader.c (parse_header_extension_decl): New.
1628 (parse_source_extension_decl): New.
1629 (read_declarations): New case statements for the new tokens.
1630 * src/lex.c (percent_table): Add entries for %source_extension
1631 and %header_extension.
1632 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1634 2001-08-06 Marc Autret <autret_m@epita.fr>
1636 * configure.in: Bump to 1.28c.
1637 * doc/bison.texinfo: Texinfo thingies.
1639 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1641 * tests/atconfig.in (CPPFLAGS): Add.
1642 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1644 2001-08-03 Akim Demaille <akim@epita.fr>
1648 2001-08-03 Akim Demaille <akim@epita.fr>
1650 * tests/Makefile.am (check-local): Ship testsuite.
1651 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1654 2001-08-03 Akim Demaille <akim@epita.fr>
1656 * configure.in: Try using -Wformat when compiling.
1658 2001-08-03 Akim Demaille <akim@epita.fr>
1660 * configure.in: Bump to 1.28b.
1662 2001-08-03 Akim Demaille <akim@epita.fr>
1664 * src/complain.c: Adjust strerror_r portability issues.
1666 2001-08-03 Akim Demaille <akim@epita.fr>
1670 2001-08-03 Akim Demaille <akim@epita.fr>
1672 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1673 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1674 * src/getargs.c: Include complain.h.
1675 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1676 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1678 2001-08-03 Akim Demaille <akim@epita.fr>
1680 * src/reader.c (readgram): Display hidden chars in error messages.
1682 2001-08-03 Akim Demaille <akim@epita.fr>
1684 Update to gettext 0.10.39.
1686 2001-08-03 Akim Demaille <akim@epita.fr>
1688 * lib/strspn.c: New.
1690 2001-08-01 Marc Autret <autret_m@epita.fr>
1692 * doc/bison.texinfo: Update.
1693 * doc/bison.1 (mandoc): Update.
1694 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1695 * src/files.c: Support output files extensions computing.
1696 (src_extension): New static variable.
1697 (header_extension): New static variable.
1699 (get_extension_index): New function, gets the index of an extension
1700 filename in a string.
1701 (compute_exts_from_gf): New function, computes extensions from the
1702 grammar file extension.
1703 (compute_exts_from_src): New functions, computes extensions from the
1704 C source file extension, file given by ``-o'' option.
1705 (compute_base_names): Update.
1706 (output_files): Update.
1708 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1710 * doc/bison.texi: Document @$.
1711 (Locations): New section.
1713 2001-07-18 Akim Demaille <akim@epita.fr>
1715 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1716 * config/prev-version.txt, config/move-if-change: New.
1717 * Makefile.am: Adjust.
1719 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1721 * src/bison.simple (yyparse): Suppress warning `comparaison
1722 between signed and unsigned'.
1724 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1726 * src/getargs.h (raw_flag): Remove.
1727 * src/getargs.c: Die on `-r'/`--raw'.
1728 * src/lex.c (parse_percent_token): Die on `%raw'.
1729 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1730 * tests/calc.at: Suppress test with option `--raw'.
1732 2001-07-14 Akim Demaille <akim@epita.fr>
1735 * configure.in: Require Autoconf 2.50.
1736 Update to gettext 0.10.38.
1738 2001-03-16 Akim Demaille <akim@epita.fr>
1740 * doc/bison.texinfo: ANSIfy the examples.
1742 2001-03-16 Akim Demaille <akim@epita.fr>
1744 * getargs.c (skeleton): New variable.
1745 (longopts): --skeleton is a new option.
1746 (shortopts, getargs): -S is a new option.
1747 * getargs.h: Declare skeleton.
1748 * output.c (output_parser): Use it.
1750 2001-03-16 Akim Demaille <akim@epita.fr>
1752 * m4/strerror_r.m4: New.
1753 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1754 * lib/error.h, lib/error.c: Update.
1756 2001-03-16 Akim Demaille <akim@epita.fr>
1758 * src/getargs.c (longopts): Clean up.
1760 2001-02-21 Akim Demaille <akim@epita.fr>
1762 * src/reader.c (gensym): `gensym_count' is your own.
1763 Use a static buf to create the symbol name, as token_buffer is no
1766 2001-02-08 Akim Demaille <akim@epita.fr>
1768 * src/conflicts.c (conflict_report): Be sure not to append to res
1769 between two calls, which could happen if both first sprintf were
1770 skipped, but not the first cp += strlen.
1772 2001-02-08 Akim Demaille <akim@epita.fr>
1774 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1775 New, from fileutils 4.0.37.
1776 * configure.in: Require Autoconf 2.49c. I took some time before
1777 making this decision. This is the only way out for portability
1778 issues in Bison, it would mean way too much duplicate effort to
1779 import in Bison features implemented in 2.49c since 2.13.
1780 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1782 2001-02-02 Akim Demaille <akim@epita.fr>
1784 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1785 * lib/xalloc.h, lib/xmalloc.c: Update.
1787 2001-01-19 Akim Demaille <akim@epita.fr>
1789 Get rid of the ad hoc handling of token_buffer in the scanner: use
1792 * src/lex.c (token_obstack): New.
1793 (init_lex): Initialize it. No longer call...
1794 (grow_token_buffer): this. Remove it.
1795 Adjust all the places which used it to use the obstack.
1797 2001-01-19 Akim Demaille <akim@epita.fr>
1799 * src/lex.h: Rename all the tokens:
1800 s/\bENDFILE\b/tok_eof/g;
1801 s/\bIDENTIFIER\b/tok_identifier/g;
1803 Let them be enums, not #define, to ease debugging.
1804 Adjust all the code.
1806 2001-01-18 Akim Demaille <akim@epita.fr>
1808 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1809 * src/lex.c (maxtoken, grow_token_buffer): Static.
1811 2001-01-18 Akim Demaille <akim@epita.fr>
1813 Since we now use obstacks, more % directives can be enabled.
1815 * src/lex.c (percent_table): Also accept `%yacc',
1816 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1818 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1819 instead of returning a token.
1820 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1821 * src/reader.c (read_declarations): Adjust.
1822 * src/files.c (open_files): Don't call `compute_base_names', don't
1823 compute `attrsfile' since they depend upon data which might be
1824 *in* the input file now.
1825 (output_files): Do it here.
1826 * src/output.c (output_headers): Document the fact that this patch
1827 introduces a guaranteed SEGV for semantic parsers.
1828 * doc/bison.texinfo: Document them.
1829 * tests/suite.at: Exercise these %options.
1831 2000-12-20 Akim Demaille <akim@epita.fr>
1833 Also handle the output file (--verbose) with obstacks.
1835 * files.c (foutput): Remove.
1836 (output_obstack): New.
1837 Adjust all dependencies.
1838 * src/conflicts.c: Return a string.
1839 * src/system.h (obstack_grow_string): Rename as...
1840 (obstack_sgrow): this. Be ready to work with non literals.
1841 (obstack_fgrow4): New.
1843 2000-12-20 Akim Demaille <akim@epita.fr>
1845 * src/files.c (open_files): Fix the computation of short_base_name
1846 in the case of `-o foo.tab.c'.
1848 2000-12-20 Akim Demaille <akim@epita.fr>
1850 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1851 (copy_dollar): Now that everything uses obstacks, get rid of the
1854 2000-12-20 Akim Demaille <akim@epita.fr>
1856 * src/files.c (open_files): Actually the `.output' file is based
1857 on the short_base_name, not base_name.
1858 * tests/suite.at (Checking output file names): Adjust.
1860 2000-12-20 Akim Demaille <akim@epita.fr>
1862 * src/bison.s1: Remove, we now use directly...
1863 * src/bison.simple: this.
1864 * src/Makefile.am: Use pkgdata instead of data.
1866 2000-12-20 Akim Demaille <akim@epita.fr>
1868 * src/files.c (guard_obstack): New.
1869 (open_files): Initialize it.
1870 (output_files): Dump it...
1871 * src/files.h: Export it.
1872 * src/reader.c (copy_guard): Use it.
1874 2000-12-19 Akim Demaille <akim@epita.fr>
1876 * src/files.c (outfile, defsfile, actfile): Removed as global
1878 (open_files): Don't compute them.
1879 (output_files): Adjust.
1880 (base_name, short_base_name): Be global.
1881 Adjust dependencies.
1883 2000-12-19 Akim Demaille <akim@epita.fr>
1885 * src/files.c (strsuffix): New.
1886 (stringappend): Be just like strcat but allocate.
1887 (base_names): Eve out from open_files.
1888 Try to simplify the rather hairy computation of base_name and
1890 (open_files): Use it.
1891 * tests/suite.at (Checking output file names): New test.
1893 2000-12-19 Akim Demaille <akim@epita.fr>
1895 * src/system.h (obstack_grow_literal_string): Rename as...
1896 (obstack_grow_string): this.
1897 * src/output.c (output_parser): Recognize `%% actions' instead of
1899 * src/bison.s1: s/$/%% actions/.
1900 * src/bison.hairy: Likewise.
1902 2000-12-19 Akim Demaille <akim@epita.fr>
1904 * src/output.c (output_parser): Compute the `#line' lines when
1906 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1907 Suggested by Hans Aberg.
1909 2000-12-19 Akim Demaille <akim@epita.fr>
1911 Let the handling of the skeleton files be local to the procedures
1914 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1916 (fparser, open_extra_files): Remove.
1917 (open_files, output_files): Don't take care of fparser.
1918 * src/files.h: Adjust.
1919 * src/output.c (output_parser): Open and close the file to the
1921 * src/reader.c (read_declarations): When %semantic_parser, open
1924 2000-12-19 Akim Demaille <akim@epita.fr>
1926 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1927 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1929 2000-12-19 Akim Demaille <akim@epita.fr>
1931 * src/files.c (open_files): Yipee! We no longer need all the code
1932 looking for `/tmp' since we have no tmp file.
1934 2000-12-19 Akim Demaille <akim@epita.fr>
1936 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1938 * src/files.c (open_files): Less dependency on MSDOS etc.
1940 2000-12-14 Akim Demaille <akim@epita.fr>
1942 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1943 Provide a default definition.
1944 Use it when executing the default @ action.
1945 * src/reader.c (reader_output_yylsp): No longer include
1946 `timestamp' and `text' in the default YYLTYPE.
1948 2000-12-12 Akim Demaille <akim@epita.fr>
1950 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1951 (copy_guard): Quote the file names.
1952 Reported by Laurent Mascherpa.
1954 2000-12-12 Akim Demaille <akim@epita.fr>
1956 * src/output.c (output_headers, output_program, output): Be sure
1957 to escape special characters when outputting filenames.
1958 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1959 (output_headers): Don't depend on them, Use ACTSTR.
1961 2000-11-17 Akim Demaille <akim@epita.fr>
1963 * lib/obstack.h: Formatting changes.
1964 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1965 prevents type checking.
1966 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1967 cast the value to (void *): assigning a `foo *' to a `void *'
1969 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1970 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1973 2000-11-17 Akim Demaille <akim@epita.fr>
1975 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1977 (suite.m4, regression.m4, calc.m4): these.
1978 * tests/atgeneral.m4: Update from CVS Autoconf.
1980 2000-11-17 Akim Demaille <akim@epita.fr>
1982 * tests/regression.m4 (%union and --defines): New test,
1983 demonstrating a current bug in the obstack implementation.
1985 2000-11-17 Akim Demaille <akim@epita.fr>
1987 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1989 Use them to declare the variables which are global or local to
1992 2000-11-17 Akim Demaille <akim@epita.fr>
1994 * acconfig.h: Remove, no longer used.
1996 2000-11-07 Akim Demaille <akim@epita.fr>
1998 * src: s/Copyright (C)/Copyright/g.
2000 2000-11-07 Akim Demaille <akim@epita.fr>
2002 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2004 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2006 2000-11-07 Akim Demaille <akim@epita.fr>
2008 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2009 Merge in a single CPP if/else.
2011 2000-11-07 Akim Demaille <akim@epita.fr>
2013 * src/output.c (output): Remove useless variables.
2014 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2015 argument `data' for consistency with the prototypes.
2017 (obstack_copy, obstack_copy0): Rename the second argument as
2018 `address' for consistency. Qualify it `const'.
2019 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2020 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2021 `const' their input argument (`data' or `address').
2022 Adjust the corresponding macros to include `const' in casts.
2024 2000-11-03 Akim Demaille <akim@epita.fr>
2026 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2027 s/PFILE1/BISON_HAIRY/.
2028 Adjust dependencies.
2030 2000-11-03 Akim Demaille <akim@epita.fr>
2032 For some reason, this was not applied.
2034 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2035 `unlink': it's no longer used.
2037 2000-11-03 Akim Demaille <akim@epita.fr>
2039 * src/files.c (skeleton_find): New function, eved out of...
2040 (open_files, open_extra_files): here.
2042 2000-11-03 Akim Demaille <akim@epita.fr>
2046 * src/files.c (obstack_save): New function.
2047 (done): Rename as...
2048 (output_files): this.
2050 * src/main.c (main): Don't use `atexit' to register `done', since
2051 it no longer has to remove tmp files, just call `output_files'
2052 when there are no errors.
2054 2000-11-02 Akim Demaille <akim@epita.fr>
2056 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2057 `unlink': it's no longer used.
2058 * src/files.h: Formatting changes.
2060 2000-11-02 Akim Demaille <akim@epita.fr>
2062 Remove the last uses of mktemp and unlink/delete.
2064 * src/files.c (fdefines, ftable): Removed.
2065 (defines_ostack, table_obstack): New.
2066 Adjust dependencies of the former into uses of the latter.
2067 * src/output.c (output_short_or_char_table, output_short_table):
2068 Convert to using obstacks.
2069 * src/reader.c (copy_comment2): Accept one FILE * and two
2071 (output_token_defines, reader_output_yylsp): Use obstacks.
2072 * src/system.h (obstack_fgrow3): New.
2074 2000-11-01 Akim Demaille <akim@epita.fr>
2076 Change each use of `fattrs' into a use of `attrs_obstack'.
2078 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2079 * src/files.c (fattrs): Remove.
2080 (attrs_obstack): New.
2081 Adjust all dependencies.
2082 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2084 2000-11-01 Akim Demaille <akim@epita.fr>
2087 Change each use of `faction' into a use of `action_obstack'.
2089 * lib/obstack.h, lib/obstack.c: New files.
2090 * src/files.c (faction): Remove.
2091 (action_obstack): New.
2092 Adjust all dependencies.
2094 2000-10-20 Akim Demaille <akim@epita.fr>
2096 * lib/quote.h (PARAMS): New macro. Use it.
2098 2000-10-16 Akim Demaille <akim@epita.fr>
2100 * src/output.c (output_short_or_char_table): New function.
2101 (output_short_table, output_token_translations): Use it.
2102 (goto_actions): Use output_short_table.
2104 2000-10-16 Akim Demaille <akim@epita.fr>
2106 * src/symtab.c (bucket_new): New function.
2109 * src/output.c (output_short_table): New argument to display the
2110 comment associated with the table.
2111 Adjust dependencies.
2112 (output_gram): Use it.
2113 (output_rule_data): Nicer output layout for YYTNAME.
2115 2000-10-16 Akim Demaille <akim@epita.fr>
2117 * src/lex.c (read_typename): New function.
2119 * src/reader.c (copy_dollar): Likewise.
2121 2000-10-16 Akim Demaille <akim@epita.fr>
2123 * src/reader.c (copy_comment2): Expect the input stream to be on
2124 the `/' which is suspected to open a comment, instead of being
2125 called after `//' or `/*' was read.
2126 (copy_comment, copy_definition, parse_union_decl, copy_action)
2127 (copy_guard): Adjust.
2129 2000-10-16 Akim Demaille <akim@epita.fr>
2131 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2132 `read_signed_integer'.
2134 2000-10-16 Akim Demaille <akim@epita.fr>
2136 * src/reader.c (copy_dollar): New function.
2137 (copy_guard, copy_action): Use it.
2139 2000-10-16 Akim Demaille <akim@epita.fr>
2141 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2142 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2143 New files, from Fileutils 4.0.27.
2144 * src/main.c (printable_version): Remove.
2145 * src/lex.c, src/reader.c: Use `quote'.
2147 2000-10-04 Akim Demaille <akim@epita.fr>
2149 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2151 2000-10-04 Akim Demaille <akim@epita.fr>
2153 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2155 2000-10-04 Akim Demaille <akim@epita.fr>
2157 When a literal string is used to define two different tokens,
2158 `bison -v' segfaults.
2159 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2161 * tests/regression.m4: New file.
2162 Include the core of the sample provided by Piotr Gackiewicz.
2163 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2166 2000-10-04 Akim Demaille <akim@epita.fr>
2168 * src/reader.c (parse_expect_decl): Keep `count' within the size
2172 2000-10-02 Paul Eggert <eggert@twinsun.com>
2174 * bison.s1 (yyparse): Assign the default value
2175 unconditionally, to avoid a GCC warning and make the parser a
2178 2000-10-02 Akim Demaille <akim@epita.fr>
2180 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2183 2000-10-02 Akim Demaille <akim@epita.fr>
2185 * src/derives.c, src/print.c, src/reduce.c: To ease the
2186 translation, move some `\n' out of the translated strings.
2188 2000-10-02 Akim Demaille <akim@epita.fr>
2190 The location tracking mechanism is precious for parse error
2191 messages. Nevertheless, it is enabled only when `@n' is used in
2192 the grammar, which is a different issue (you can use it in error
2193 message, but not in the grammar per se). Therefore, there should
2194 be another means to enable it.
2196 * src/getargs.c (getargs): Support `--locations'.
2198 * src/getargs.h (locationsflag): Export it.
2199 * src/lex.c (percent_table): Support `%locations'.
2200 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2201 with `locationsflag'.
2202 * doc/bison.texinfo: Document `--locations' and `%locations'.
2204 * tests/calc.m4: Test it.
2206 For regularity of the names, replace each
2207 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2208 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2209 In addition replace each `flag' with `_flag'.
2211 2000-10-02 Akim Demaille <akim@epita.fr>
2213 Also test parse error messages, including with YYERROR_VERBOSE.
2215 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2217 Use it to check the computations.
2218 Use it to check `nonassoc' is honored.
2219 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2220 `--yyerror-verbose'.
2221 (_AT_CHECK_CALC): Adjust to this option.
2222 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2224 2000-10-02 Akim Demaille <akim@epita.fr>
2226 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2227 the latter demonstrates a flaw in the handling of non debugging
2228 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2229 was used in order to simplify:
2245 unfortunately this leads to a CPP conflict when
2246 `--name-prefix=foo' is used since it produces `#define yydebug
2249 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2250 (YYDPRINTF): New macro.
2252 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2254 Also test `--verbose', `--defines' and `--name-prefix'.
2256 2000-10-02 Akim Demaille <akim@epita.fr>
2258 Improve the readability of the produced parsers.
2260 * src/bison.s1: Formatting changes.
2261 Improve the comment related to the `$' mark.
2262 (yydefault): Don't fall through to `yyresume': `goto' there.
2263 * src/output.c (output_parser): When the `$' is met, skip the end
2265 New variable, `number_of_dollar_signs', to check there's exactly
2266 one `$' in the parser skeleton.
2268 2000-10-02 Akim Demaille <akim@epita.fr>
2270 * lib/xstrdup.c: New file, from the fileutils.
2271 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2272 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2273 instead of strlen + xmalloc + strcpy.
2274 * src/symtab.c (copys): Remove, use xstrdup instead.
2276 2000-10-02 Akim Demaille <akim@epita.fr>
2278 * src/gram.h (associativity): New enum type which replaces the
2279 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2280 `right_assoc', `left_assoc' and `non_assoc'.
2281 Adjust all dependencies.
2282 * src/reader.c: Formatting changes.
2283 (LTYPESTR): Don't define it, use it as a literal in
2284 `reader_output_yylsp'.
2285 * src/symtab.h (symbol_class): New enum type which replaces the
2286 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2287 `sunknown', `stoken and `snterm'.
2289 2000-10-02 Akim Demaille <akim@epita.fr>
2291 * src/getargs.c (fixed_outfiles): Rename as...
2292 (yaccflag): for consistency and accuracy.
2293 Adjust dependencies.
2295 2000-10-02 Akim Demaille <akim@epita.fr>
2297 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2298 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2299 difficult and introduced a lot of core dump. It turns out that
2300 Bison used an implementation of `xmalloc' based on `calloc', and
2301 at various places it does depend upon the initialization to 0. I
2302 have not tried to isolate the pertinent places, and all the former
2303 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2304 someone should address this issue.
2306 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2307 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2309 Adjust dependencies.
2310 * src/warshall.h: New file.
2313 2000-10-02 Akim Demaille <akim@epita.fr>
2315 Various anti-`extern in *.c' changes.
2317 * src/system.h: Include `assert.h'.
2319 2000-10-02 Akim Demaille <akim@epita.fr>
2321 * src/state.h (nstates, final_state, first_state, first_shift)
2322 (first_reduction): Move their exportation from here...
2323 * src/LR0.h: to here.
2324 Adjust dependencies.
2325 * src/getargs.c (statisticsflag): New variable.
2326 Add support for `--statistics'.
2327 Adjust dependencies.
2329 Remove a lot of now useless `extern' statements in most files.
2331 2000-10-02 Akim Demaille <akim@epita.fr>
2333 * src/LR0.h: New file.
2336 2000-10-02 Akim Demaille <akim@epita.fr>
2338 * src/print.h: New file.
2340 * src/print.c: Formatting and ordering changes.
2341 (verbose, terse): Replace with...
2342 (print_results): this new function.
2343 Adjust dependencies.
2345 2000-10-02 Akim Demaille <akim@epita.fr>
2347 * src/conflicts.c (conflict_report): New function.
2348 (conflict_log, verbose_conflict_log): Replace with...
2349 (print_conflicts): this function.
2350 Adjust dependencies.
2351 * src/conflicts.h: New file.
2352 Propagate its inclusion.
2354 2000-10-02 Akim Demaille <akim@epita.fr>
2356 * src/nullable.h: New file.
2357 Propagate its inclusion.
2358 * src/nullable.c: Formatting changes.
2360 2000-10-02 Akim Demaille <akim@epita.fr>
2362 * src/reduce.h: New file.
2363 Propagate its inclusion.
2364 * src/reduce.c: Topological sort and other formatting changes.
2365 (bool, TRUE, FALSE): Move their definition to...
2366 * src/system.h: here.
2368 2000-10-02 Akim Demaille <akim@epita.fr>
2370 * src/files.c: Formatting changes.
2371 (tryopen, tryclose, openfiles): Rename as...
2372 (xfopen, xfclose, open_files): this.
2373 (stringappend): static.
2374 * src/files.h: Complete the list of exported symbols.
2377 2000-10-02 Akim Demaille <akim@epita.fr>
2379 * src/reader.h: New file.
2380 Propagate its use instead of tedious list of `extern' and
2382 * src/reader.c: Formatting changes, topological sort,
2385 2000-10-02 Akim Demaille <akim@epita.fr>
2387 * src/lex.h: Prototype `lex.c' exported functions.
2388 * src/reader.c: Adjust.
2389 * src/lex.c: Formatting changes.
2390 (safegetc): Rename as...
2393 2000-10-02 Akim Demaille <akim@epita.fr>
2395 * src/lalr.h: New file.
2396 Propagate its inclusion instead of prototypes and `extern'.
2397 * src/lalr.c: Formatting changes, topological sorting etc.
2399 2000-10-02 Akim Demaille <akim@epita.fr>
2401 * src/output.c (token_actions): Introduce a temporary array,
2402 YYDEFACT, that makes it possible for this function to use
2405 2000-10-02 Akim Demaille <akim@epita.fr>
2407 `user_toknums' is output as a `short[]' in `output.c', while it is
2408 defined as a `int[]' in `reader.c'. For consistency with the
2409 other output tables, `user_toknums' is now defined as a table of
2412 * src/reader.c (user_toknums): Be a short table instead of an int
2414 Adjust dependencies.
2416 Factor the short table outputs.
2418 * src/output.c (output_short_table): New function.
2419 * src/output.c (output_gram, output_stos, output_rule_data)
2420 (output_base, output_table, output_check): Use it.
2422 2000-10-02 Akim Demaille <akim@epita.fr>
2424 * src/output.c (output): Topological sort of the functions, in
2425 order to get rid of the `static' prototypes.
2426 No longer use `register'.
2427 * src/output.h: New file.
2428 Propagate its inclusion in files explicitly prototyping functions
2431 2000-09-21 Akim Demaille <akim@epita.fr>
2433 * src/atgeneral.m4: Update from Autoconf.
2435 2000-09-21 Akim Demaille <akim@epita.fr>
2437 * src/closure.h: New file.
2438 * src/closure.c: Formatting changes, topological sort over the
2439 functions, use of closure.h.
2440 (initialize_closure, finalize_closure): Rename as...
2441 (new_closure, free_closure): these. Adjust dependencies.
2442 * src/LR0.c: Formatting changes, topological sort, use of
2444 (initialize_states): Rename as...
2446 * src/Makefile.am (noinst_HEADERS): Adjust.
2448 2000-09-20 Akim Demaille <akim@epita.fr>
2450 * src/acconfig.h: Don't protect config.h against multiple
2452 Don't define PARAMS.
2453 * src/system.h: Define PARAMS.
2454 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2455 purpose of config.h. system.h must not try to fix wrong
2456 definitions in config.h.
2458 2000-09-20 Akim Demaille <akim@epita.fr>
2460 * src/derives.h: New file.
2461 * src/main.c, src/derives.h: Use it.
2463 * src/Makefile.am (noinst_HEADERS): Adjust.
2465 2000-09-20 Akim Demaille <akim@epita.fr>
2467 * tests/atgeneral.m4: Update from Autoconf.
2468 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2469 (AT_CHECK_CALC): New macros.
2470 Use these macros to test bison with options `', `--raw',
2471 `--debug', `--yacc', `--yacc --debug'.
2473 2000-09-19 Akim Demaille <akim@epita.fr>
2475 * src/output.c: Formatting changes.
2476 * src/machine.h: Remove, leaving its contents in...
2477 * src/system.h: here.
2479 Adjust all dependencies on stdio.h and machine.h.
2480 * src/getargs.h: New file.
2481 Let all `extern' declarations about getargs.c be replaced with
2482 inclusion of `getargs.h'.
2483 * src/Makefile.am (noinst_HEADERS): Adjust.
2485 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2487 (yyerror): Returns void, not int.
2488 * doc/bison.texinfo: Formatting changes.
2490 2000-09-19 Akim Demaille <akim@epita.fr>
2492 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2495 2000-09-18 Akim Demaille <akim@epita.fr>
2497 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2498 * src/Makefile.am (INCLUDES): Don't.
2499 Be ready to fetch headers in lib/.
2501 2000-09-18 Akim Demaille <akim@epita.fr>
2503 * doc/bison.texinfo: Update the copyright.
2504 ANSIfy and GNUify the examples.
2505 Remove the old menu.
2507 2000-09-18 Akim Demaille <akim@epita.fr>
2509 First set of tests: use the `calc' example from the documentation.
2511 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2512 is defined only when YYDEBUG is.
2513 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2514 * src/files.c (tryopen, tryclose): Formatting changes.
2515 Move to the top and be static.
2516 * src/reader.c (read_signed_integer): Likewise.
2517 * tests/calc.m4: New file.
2518 * Makefile.am, suite.m4: Adjust.
2519 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2521 2000-09-18 Akim Demaille <akim@epita.fr>
2523 Add support for an Autotest test suite for Bison.
2525 * m4/m4.m4, m4/atconfig.m4: New files.
2526 * m4/Makefile.am (EXTRA_DIST): Adjust.
2527 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2529 * src/getargs.c: Display a more standard --version message.
2530 * src/reader.c (reader): Formatting changes.
2531 No longer depend upon VERSION_STRING.
2532 * configure.in: No longer use `dnl'.
2533 Set up the test suite and the new directory `tests/.
2534 (VERSION_STRING): Remove.
2536 2000-04-14 Akim Demaille <akim@epita.fr>
2538 * src/reader.c (copy_comment2): New function, same as former
2539 `copy_comment', but outputs into two FILE *.
2540 (copy_comment): Use it.
2541 (parse_union_decl): Use it.
2542 (get_type, parse_start_decl): Use the same `invalid' message.
2543 (parse_start_decl, parse_union_decl): Use the same `multiple'
2545 (parse_union_decl, copy_guard, copy_action): Use the same
2546 `unmatched' message.
2547 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2549 2000-03-31 Akim Demaille <akim@epita.fr>
2551 * src/files.c (tryopen, tryclose): Move to the top.
2554 2000-03-31 Akim Demaille <akim@epita.fr>
2556 * src/main.c (main): Don't call `done', exit does it.
2558 2000-03-31 Akim Demaille <akim@epita.fr>
2560 * allocate.c: s/return (foo)/return foo/.
2563 * output.c: Likewise.
2564 * reader.c: Likewise.
2565 * symtab.c: Likewise.
2566 * vmsgetargs.c: Likewise.
2568 2000-03-31 Akim Demaille <akim@epita.fr>
2570 Clean up the error reporting functions.
2572 * src/report.c: New file.
2573 * src/report.h: Likewise.
2574 * src/Makefile.am: Adjust.
2575 * m4/error.m4: New file.
2576 * m4/Makefile.am: Adjust.
2577 * configure.in (jm_PREREQ_ERROR): Call it.
2578 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2580 (fatal, fatals): Remove. All callers use complain.c::fatal.
2581 (warn, warni, warns, warnss, warnss): Remove. All callers use
2582 complain.c::complain.
2583 (toomany): Remove, use fatal instead.
2584 * src/files.c (done): No argument, use complain_message_count.
2585 * src/main.c (main): Register `done' to `atexit'.
2587 * src/getargs.c (usage): More `fputs', less `fprintf'.
2589 2000-03-28 Akim Demaille <akim@epita.fr>
2591 * lib/: New directory.
2592 * Makefile.am (SUBDIRS): Adjust.
2593 * configure.in: Adjust.
2594 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2596 * src/alloca.c: Moved to lib/.
2597 * src/getopt.c: Likewise.
2598 * src/getopt1.c: Likewise.
2599 * src/getopt.h: Likewise.
2600 * src/ansi2knr.c: Likewise.
2601 * src/ansi2knr.1: Likewise.
2602 * src/Makefile.am: Adjust.
2603 * lib/Makefile.am: New file.
2605 2000-03-28 Akim Demaille <akim@epita.fr>
2607 * src/getargs.c (usage): Refresh the help message.
2609 2000-03-17 Akim Demaille <akim@epita.fr>
2611 * src/getopt1.c: Updated from textutils 2.0e
2612 * src/getopt.c: Likewise.
2613 * src/getopt.h: Likewise.
2615 2000-03-17 Akim Demaille <akim@epita.fr>
2617 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2618 the file name, not the whole `#line LINE FILE'.
2620 2000-03-17 Akim Demaille <akim@epita.fr>
2622 On syntax errors, report the token on which we choked.
2624 * src/bison.s1 (yyparse): In the label yyerrlab, when
2625 YYERROR_VERBOSE, add yychar in msg.
2627 2000-03-17 Akim Demaille <akim@epita.fr>
2629 * src/reader.c (copy_at): New function.
2630 (copy_guard): Use it.
2631 (copy_action): Use it.
2633 2000-03-17 Akim Demaille <akim@epita.fr>
2635 Be kind to translators, save some useless translations.
2637 * src/main.c (banner): New function.
2638 (fatal_banner): Use it.
2639 (warn_banner): Use it.
2641 2000-03-17 Akim Demaille <akim@epita.fr>
2643 * src/reader.c (copy_definition): Use copy_string and
2644 copy_comment. Removed now unused `match', `ended',
2646 (copy_comment, copy_string): Moved, to be visible from
2649 2000-03-17 Akim Demaille <akim@epita.fr>
2651 * src/reader.c (copy_string): Declare `static inline'. No
2652 problems with inline, since it is checked by configure.
2653 (copy_comment): Likewise.
2655 2000-03-17 Akim Demaille <akim@epita.fr>
2657 * src/reader.c (packsymbols): Formatting changes.
2659 2000-03-17 Akim Demaille <akim@epita.fr>
2661 * src/reader.c (copy_comment): New function, factored out from:
2662 (copy_action): Use it. Removed now unused `match', `ended',
2664 (copy_guard): Likewise.
2666 2000-03-17 Akim Demaille <akim@epita.fr>
2668 * src/reader.c (copy_string): New function, factored out from:
2669 (copy_action): Use it.
2670 (copy_guard): Likewise.
2672 2000-03-17 Akim Demaille <akim@epita.fr>
2674 Change the handling of @s so that they behave exactly like $s.
2675 There is now a pseudo variable @$ (readble and writable), location
2676 of the lhs of the rule (by default ranging from the location of
2677 the first symbol of the rhs, to the location of the last symbol,
2678 or, if the rhs is empty, YYLLOC).
2680 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2682 (yyparse): When providing a default semantic action, provide a
2683 default location action.
2684 (after the $): No longer change `*YYLSP', just stack YYLOC the
2685 same way you stack YYVAL.
2686 * src/reader.c (read_declarations): Use warns.
2687 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2688 (copy_action, case '@'): Likewise.
2689 Use a standard error message, to save useless work from
2692 2000-03-17 Akim Demaille <akim@epita.fr>
2694 * src/bison.s1: Formatting and cosmetics changes.
2695 * src/reader.c: Likewise.
2696 Update the Copyright notice.
2698 2000-03-17 Akim Demaille <akim@epita.fr>
2700 * src/bison.s1 (#line): All set to `#line' only, since the
2701 Makefile now handles them.
2703 2000-03-16 Akim Demaille <akim@epita.fr>
2705 * src/output.c (output_rule_data): Output the documentation of
2707 (Copyright notice): Update.
2710 2000-03-16 Akim Demaille <akim@epita.fr>
2712 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2713 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2714 One `#if YYDEBUG' remains, since it uses variables which are
2715 defined only if `YYDEBUG != 0'.
2717 2000-03-16 Akim Demaille <akim@epita.fr>
2719 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2720 and related variables so that the similarities are highlighted.
2722 2000-03-16 Akim Demaille <akim@epita.fr>
2724 * src/bison.s1: Properly indent CPP directives.
2726 2000-03-16 Akim Demaille <akim@epita.fr>
2728 * src/bison.s1: Properly indent the `alloca' CPP section.
2730 2000-03-16 Akim Demaille <akim@epita.fr>
2732 Do not hard code values of directories in `configure.in'.
2733 Update the `configure' tool chain.
2735 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2737 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2738 (AC_OUTPUT): Add m4/Makefile.
2739 Bump to bison 1.28a, 1.29 has never been released.
2740 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2741 handled via src/Makefile.am.
2742 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2743 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2745 * Makefile.am (SUBDIRS): Add m4.
2746 (ACLOCAL_AM_FLAGS): New variable.
2747 (AUTOMAKE_OPTIONS): Add check-news.
2748 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2749 the proper line number and file name.
2750 (DEFS): Propagate the location of bison library files and of the
2752 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2754 * acinclude.m4: Remove, replaced by the directory m4.
2755 * m4/Makefile.am (EXTRA_DIST): New variable.
2756 * m4/gettext.m4: New file, from the fileutils.
2757 * m4/lcmessage.m4: Likewise
2758 * m4/progtest.m4: Likewise.
2759 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2761 2000-03-10 Akim Demaille <akim@epita.fr>
2764 Formatting changes of various comments.
2765 Respect the GNU coding standards at various places.
2766 Don't use `_()' when no translation is needed.
2768 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2771 OS/2 honors TMPDIR environment variable.
2773 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2775 * doc/bison.texinfo: Tweaked spelling and grammar.
2777 Removed reference to price of printed copy.
2778 Mention BISON_SIMPLE and BISON_HAIRY.
2780 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2782 * configure.in, NEWS:
2783 Bison 1.29 released.
2785 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2787 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2788 Added reference card.
2790 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2792 * po/ru.po: Added Russian translation.
2794 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2796 * configure.in: Added Russian translation.
2798 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2800 * configure.in, NEWS, README:
2801 Released version 1.28.
2803 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2806 Squashed redefinition warning on some systems.
2808 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2809 Have configure build version string instead of relying on ANSI string
2812 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2814 * po/POTFILES.in: Got rid of version.c.
2816 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2818 * acconfig.h, configure.in:
2819 Have configure build version string instead of relying on ANSI string
2822 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2825 Dropped mention of `+' for long-named options.
2827 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2829 * src/files.c: Added <unistd.h> for unlink().
2831 * src/Makefile.am, src/system.h:
2834 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2836 * README: Added a FAQ list.
2838 * configure.in, acconfig.h:
2841 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2843 * doc/FAQ, doc/Makefile.am:
2846 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2848 * src/alloc.h, src/symtab.h, src/version.c:
2849 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2851 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2853 * src/.cvsignore, src/Makefile.am:
2854 Reorganized: sources in `src', documentation in `doc'.
2856 * src/lex.c (literalchar):
2857 fixed the code for escaping double quotes (thanks
2860 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2862 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2863 Adjusted paths to reflect directory reorganization.
2865 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2867 * doc/.cvsignore, doc/Makefile.am:
2868 Reorganized: sources in `src', documentation in `doc'.
2870 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2873 Updated AC_INIT file to reflect directory reorganization.
2875 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2876 Reorganized: sources in `src', documentation in `doc'.
2878 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2881 Don't declare calloc() and realloc() if not necessary.
2883 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2885 * configure.in, acconfig.h, acinclude.m4:
2886 Don't declare calloc() and realloc() if not necessary.
2888 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2890 * po/.cvsignore: Added i18n support.
2892 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2894 * acconfig.h, configure.in, Makefile.am:
2897 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2899 * src/bison.s1: Fixed #line numbers.
2901 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2903 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2904 Added PO files from Translation Project.
2906 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2909 Added support for non-ANSI compilers (ansi2knr).
2911 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2913 * configure.in: Bumped version number to 1.27.
2916 Added `bison.simple' to list of files removed by `make distclean'.
2918 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2920 * src/files.c, src/files.h:
2921 Defined locations of parser files in config.h instead of Makefile.
2923 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2925 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2926 Defined locations of parser files in config.h instead of Makefile.
2928 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2931 Removed inappropriate use of $< macro.
2933 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2935 * po/Makefile.in.in, po/POTFILES.in:
2936 Add `po' directory skeleton.
2938 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2940 * README: Document help-bison list.
2942 * configure.in: Add check for mkstemp().
2944 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2946 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2947 Hush a few compiler warnings.
2950 Add tryclose(), which verifies that fclose was successful.
2951 Hush a couple of compiler warnings.
2953 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2955 * Makefile.am, OChangeLog:
2956 ChangeLog is now automatically generated. Include the old version as
2959 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2961 * 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:
2964 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2966 * doc/bison.texinfo: Fix formatting glitch.
2968 * doc/bison.texinfo: Update FSF address.
2970 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2972 * acconfig.h: Update FSF address.
2974 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2977 Don't define PACKAGE here, since config.h defines it.
2979 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2981 * src/reader.c: Update copyright date.
2984 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2985 favor of output directly to stderr (avoids buffer overruns).
2987 * src/reader.c: Some checks for premature EOF.
2989 * 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:
2990 Use prototypes if the compiler understands them.
2992 * src/files.c: Honor TMPDIR on Unix hosts.
2993 Use prototypes if the compiler understands them.
2996 Fix a couple of buffer overrun bugs.
2997 Use prototypes if the compiler understands them.
2999 * src/system.h: Include unistd.h and ctype.h.
3000 Use #ifdef instead of #if for NLS symbols.
3002 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3004 * doc/bison.texinfo:
3005 Delete comment "consider using @set for edition number, etc..." since
3006 we now are doing so.
3008 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3011 Use prototypes if the compiler understands them.
3013 * NEWS: Document 1.26 highlights.
3015 * Makefile.am: Require Automake 1.3 or later.
3018 Use prototypes if the compiler understands them.
3020 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3023 Use VERSION symbol from automake for version number.
3025 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3027 * acconfig.h, configure.in, version.cin:
3028 Use VERSION symbol from automake for version number.
3030 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3033 Distribute original version of simple parser (bison.s1), not built
3034 version (bison.simple).
3036 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3038 * doc/bison.texinfo: Add info dir entry.
3040 * doc/bison.texinfo:
3041 Let automake put version number into documentation.
3043 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3045 * src/bison.cld, src/build.com, src/vmshlp.mar:
3046 Add non-RCS files from /gd/gnu/bison.
3048 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3051 Document the BISON_HAIRY and BISON_SIMPLE variables.
3053 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3055 * src/version.c: Build version.c automatically.
3058 Fix token numbering (used to start at 258, not 257).
3060 * src/system.h: Include config.h.
3062 * src/getargs.c: Update bug report address.
3064 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3065 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3067 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3070 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3072 * configure.in, version.cin:
3073 Build version.c automatically.
3075 * AUTHORS: Add AUTHORS file.
3077 * README: Update bug report address.
3080 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3082 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3085 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3087 * doc/bison.texinfo: Clean up some formatting.
3089 1998-05-05 Richard Stallman <rms@gnu.org>
3091 * doc/bison.texinfo:
3092 Explain better why to make a pure parser.
3094 1998-01-05 Richard Stallman <rms@gnu.org>
3096 * src/files.c (openfiles):
3097 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3098 find a temporary directory, if possible. Do not unlink files while
3101 1997-08-25 Richard Stallman <rms@gnu.org>
3103 * src/reader.c (stack_offset;):
3104 Change some warni to warns.
3106 * src/lex.c (literalchar): Use warns, not warni.
3108 1997-06-28 Richard Stallman <rms@gnu.org>
3110 * src/bison.s1: Add a Bison version comment.
3112 * src/main.c (fatal, warn, berror):
3115 1997-06-28 Richard Stallman <rms@gnu.org>
3117 * Makefile.in (bison_version): New variable.
3118 (dist): Use that variable.
3119 (bison.s1): Substitute the Bison version into bison.simple.
3121 * bison.simple: Add a Bison version comment.
3123 1997-06-18 Richard Stallman <rms@gnu.org>
3125 * src/main.c (fatal, warn, berror):
3126 Make error messages standard.
3127 (toomany): Improve error message text.
3129 * 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:
3130 new.h renamed to alloc.h.
3132 1997-06-18 Richard Stallman <rms@gnu.org>
3134 * Makefile.in: new.h renamed to alloc.h.
3136 1997-05-24 Richard Stallman <rms@gnu.org>
3138 * src/lex.c (literalchar):
3139 Fix the code for escaping \, " and '.
3141 (lex): Avoid trouble when there are many chars
3142 to discard in a char literal with just several chars in it.
3144 1997-05-17 Richard Stallman <rms@gnu.org>
3147 Use malloc, if using alloca is troublesome.
3148 (YYSTACK_USE_ALLOCA): New flag macro.
3149 Define it for some systems and compilers.
3150 (YYSTACK_ALLOC): New macro.
3151 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3152 If it was malloc'd, free it.
3154 1997-05-17 Richard Stallman <rms@gnu.org>
3157 Use malloc, if using alloca is troublesome.
3158 (YYSTACK_USE_ALLOCA): New flag macro.
3159 Define it for some systems and compilers.
3160 (YYSTACK_ALLOC): New macro.
3161 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3162 If it was malloc'd, free it.
3164 1997-04-23 Richard Stallman <rms@gnu.org>
3167 (alloca) [__hpux]: Always define as __builtin_alloca.
3169 1997-04-23 Richard Stallman <rms@gnu.org>
3172 (alloca) [__hpux]: Always define as __builtin_alloca.
3174 1997-04-22 Richard Stallman <rms@gnu.org>
3177 [__hpux]: Include alloca.h (right for HPUX 10)
3178 instead of declaring alloca (right for HPUX 9).
3180 * src/bison.s1 (__yy_memcpy):
3181 Declare arg `count' as unsigned int.
3182 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3184 1997-04-22 Richard Stallman <rms@gnu.org>
3187 [__hpux]: Include alloca.h (right for HPUX 10)
3188 instead of declaring alloca (right for HPUX 9).
3190 * bison.simple (__yy_memcpy):
3191 Declare arg `count' as unsigned int.
3192 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3194 1997-01-03 Richard Stallman <rms@gnu.org>
3196 * src/allocate.c: [__STDC__ or _MSC_VER]:
3197 Declare calloc and realloc to return void *.
3199 1997-01-02 Richard Stallman <rms@gnu.org>
3202 [_MSC_VER]: Include stdlib.h and process.h.
3203 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3205 * src/main.c (main): Return FAILURE as a value.
3206 (printable_version): Declare arg as int, not char.
3208 1997-01-02 Richard Stallman <rms@gnu.org>
3210 * Makefile.in (dist):
3211 Explicitly check for symlinks, and copy them.
3213 1996-12-19 Richard Stallman <rms@gnu.org>
3216 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3218 1996-12-18 Paul Eggert <eggert@gnu.org>
3220 * src/bison.s1 (yyparse):
3221 If __GNUC__ and YYPARSE_PARAM are both defined,
3222 declare yyparse to have a void * argument.
3224 1996-12-18 Paul Eggert <eggert@gnu.org>
3226 * bison.simple (yyparse):
3227 If __GNUC__ and YYPARSE_PARAM are both defined,
3228 declare yyparse to have a void * argument.
3230 1996-12-17 Richard Stallman <rms@gnu.org>
3232 * src/reduce.c (nbits): Add some casts.
3234 1996-08-12 Richard Stallman <rms@gnu.org>
3236 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3238 1996-08-12 Richard Stallman <rms@gnu.org>
3240 * bison.simple: Test _MSDOS as well as _MSDOS_.
3242 1996-07-31 Richard Stallman <rms@gnu.org>
3245 [__sun && __i386]: Include alloca.h.
3247 1996-07-31 Richard Stallman <rms@gnu.org>
3250 [__sun && __i386]: Include alloca.h.
3252 1996-07-30 Richard Stallman <rms@gnu.org>
3254 * src/bison.s1: Comment change.
3256 * src/bison.s1: Test _MSDOS_, not MSDOS.
3258 1996-07-30 Richard Stallman <rms@gnu.org>
3260 * bison.simple: Comment change.
3262 * bison.simple: Test _MSDOS_, not MSDOS.
3264 1996-06-01 Richard Stallman <rms@gnu.org>
3266 * 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:
3267 Insert `_' macro around many string constants.
3270 Insert `_' macro around many string constants.
3272 (main): Call setlocale, bindtextdomain and textdomain.
3274 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3275 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3276 [ENABLE_NLS]: Include libintl.h.
3277 [ENABLE_NLS] (gettext): Define.
3278 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3279 (N_, PACKAGE, LOCALEDIR): New macros.
3281 1996-06-01 Richard Stallman <rms@gnu.org>
3283 * POTFILES.in: New file.
3285 * Makefile.in (allocate.o):
3286 Define target explicitly.
3288 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3289 (LDFLAGS): Set to @LDFLAGS@.
3290 (configure): Run autoconf only if preceding `cd' succeeds.
3291 (bison.s1): Redirect output to temporary file then move the
3292 temporary to the target, rather than redirecting directly to bison.s1.
3293 (clean): Remove config.status and config.log.
3294 (distclean): Don't remove config.status here.
3296 1996-05-12 Richard Stallman <rms@gnu.org>
3299 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3301 1996-05-12 Richard Stallman <rms@gnu.org>
3304 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3306 1996-05-11 Richard Stallman <rms@gnu.org>
3308 * src/bison.s1 (__yy_memcpy):
3309 Really reorder the args, as was supposedly done on Feb 14 1995.
3310 (yyparse): Calls changed accordingly.
3312 1996-05-11 Richard Stallman <rms@gnu.org>
3314 * Makefile.in (dist): Don't use $(srcdir).
3316 * bison.simple (__yy_memcpy):
3317 Really reorder the args, as was supposedly done on Feb 14 1995.
3318 (yyparse): Calls changed accordingly.
3320 1996-01-27 Richard Stallman <rms@gnu.org>
3322 * src/output.c (output_rule_data):
3323 Test YYERROR_VERBOSE in the conditional
3324 around the definition of ttyname.
3326 1995-12-29 Richard Stallman <rms@gnu.org>
3329 Fix line numbers in #line commands.
3331 1995-12-29 Richard Stallman <rms@gnu.org>
3334 Fix line numbers in #line commands.
3336 1995-12-27 Richard Stallman <rms@gnu.org>
3338 * src/bison.s1 (YYPARSE_PARAM_DECL):
3339 In C++, make it always null.
3340 (YYPARSE_PARAM_ARG): New macro.
3341 (yyparse): Use YYPARSE_PARAM_ARG.
3343 1995-12-27 Richard Stallman <rms@gnu.org>
3345 * bison.simple (YYPARSE_PARAM_DECL):
3346 In C++, make it always null.
3347 (YYPARSE_PARAM_ARG): New macro.
3348 (yyparse): Use YYPARSE_PARAM_ARG.
3350 1995-11-29 Richard Stallman <rms@gnu.org>
3352 * doc/bison.texinfo:
3353 Describe literal string tokens, %raw, %no_lines, %token_table.
3355 1995-11-29 Daniel Hagerty <hag@gnu.org>
3357 * doc/bison.texinfo: Fixed update date
3359 1995-10-16 Richard Stallman <rms@gnu.org>
3361 * src/version.c: Version 1.25.
3363 1995-10-16 Richard Stallman <rms@gnu.org>
3365 * NEWS: *** empty log message ***
3367 1995-10-16 Richard Stallman <rms@gnu.org>
3369 * doc/bison.1, doc/bison.rnh:
3372 1995-10-15 Richard Stallman <rms@gnu.org>
3374 * src/vmsgetargs.c, src/getargs.c:
3375 Added -n, -k, and -raw switches.
3376 (noparserflag, toknumflag, rawtoknumflag): New variables.
3378 * src/symtab.h (SALIAS):
3379 New #define for adding aliases to %token.
3380 (struct bucket): Added `alias' field.
3382 * src/reduce.c (reduce_grammar):
3383 Revise error message.
3384 (print_notices): Remove final `.' from error message.
3386 * src/reader.c (reader_output_yylsp):
3388 (readgram): Use `#if 0' around code that accepted %command
3389 inside grammar rules: The documentation doesn't allow it,
3390 and it will fail since the %command processors scan for the next %.
3391 (parse_token_decl): Extended the %token
3392 declaration to allow a multi-character symbol as an alias.
3393 (parse_thong_decl): New function.
3394 (read_declarations): Added %thong declarations.
3395 (read_declarations): Handle NOOP to deal with allowing
3396 % declarations as another means to specify the flags.
3397 (readgram): Allow %prec prior to semantics embedded in a rule.
3398 (skip_to_char, read_declarations, copy_definition)
3399 (parse_token_decl, parse_start_decl, parse_type_decl)
3400 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3401 (get_type_name, copy_guard, copy_action, readgram)
3402 (get_type, packsymbols): Revised most error messages.
3403 Changed `fatal' to `warnxxx' to avoid aborting for error.
3404 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3405 (read_declarations): Improve the error message for
3406 an invalid character. Do not abort.
3407 (read_declarations, copy_guard, copy_action): Use
3408 printable_version to avoid unprintable characters in printed output.
3409 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3410 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3411 Allow the type of a non-terminal can be given
3412 more than once, as long as all specifications give the same type.
3415 (output_headers, output_trailers, output, output_gram)
3416 (output_rule_data): Implement noparserflag variable.
3417 Implement toknumflag variable.
3418 (output): Call reader_output_yylsp to output LTYPESTR.
3420 * src/main.c (main):
3421 If reader sees an error, don't process the grammar.
3422 (fatals): Updated to not use VARARGS1.
3423 (printable_version, int_to_string, warn, warni, warns, warnss)
3424 (warnsss): New error reporting functions. Avoid abort for error.
3427 Added THONG and NOOP for alias processing.
3428 Added SETOPT for the new code that allows setting options with %flags.
3431 Include getopt.h. Add some extern decls.
3432 (safegetc): New function to deal with EOF gracefully.
3433 (literalchar); new function to deal with reading \ escapes.
3434 (lex): Use literalchar.
3435 (lex): Implemented "..." tokens.
3436 (literalchar, lex, parse_percent_token): Made tokenbuffer
3437 always contain the token. This includes growing the token
3438 buffer while reading an integer.
3439 (parse_percent_token): Replaced if-else statement with percent_table.
3440 (parse_percent_token): Added % declarations as another
3441 way to specify the flags -n, -l, and -r. Also added hooks for
3442 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3443 major changes to files.c.
3444 (lex) Retain in the incoming stream a character following
3446 (skip_white_space, lex): Revised most error messages
3447 and changed fatal to warn to avoid aborting.
3448 (percent_table): Added %thong declarations.
3450 * src/gram.h: Comment changes.
3452 * src/files.c (openfiles, open_extra_files, done):
3454 and actfile file. Handle noparserflag. Both for -n switch.
3456 * src/conflicts.c (resolve_sr_conflict):
3457 Remove use of alloca.
3459 1995-06-01 Jim Meyering <meyering@gnu.org>
3461 * doc/bison.texinfo: *** empty log message ***
3463 1995-05-06 Richard Stallman <rms@gnu.org>
3465 * src/bison.s1: Comment change.
3467 1995-05-06 Richard Stallman <rms@gnu.org>
3469 * bison.simple: Comment change.
3471 1995-05-03 Richard Stallman <rms@gnu.org>
3473 * src/version.c: Version now 1.24.
3475 * src/bison.s1: Change distribution terms.
3477 * src/version.c: Version now 1.23.
3479 1995-05-03 Richard Stallman <rms@gnu.org>
3481 * doc/bison.texinfo:
3482 Rewrite "Conditions for Using Bison".
3483 Update version to 1.24.
3485 1995-05-03 Richard Stallman <rms@gnu.org>
3487 * bison.simple: Change distribution terms.
3489 1995-02-23 Richard Stallman <rms@gnu.org>
3491 * src/files.c: Test __VMS_POSIX as well as VMS.
3493 1995-02-14 Jim Meyering <meyering@gnu.org>
3495 * src/bison.s1 (__yy_memcpy):
3496 Renamed from __yy_bcopy to avoid
3497 confusion. Reverse FROM and TO arguments to be consistent with
3500 1995-02-14 Jim Meyering <meyering@gnu.org>
3502 * bison.simple (__yy_memcpy):
3503 Renamed from __yy_bcopy to avoid
3504 confusion. Reverse FROM and TO arguments to be consistent with
3507 1994-11-10 David J. MacKenzie <djm@gnu.org>
3513 * Makefile.in (DISTFILES): Include NEWS.
3515 * Makefile.in (DISTFILES):
3516 Include install-sh, not install.sh.
3518 * configure.in: Update to Autoconf v2 macro names.
3520 1994-10-05 David J. MacKenzie <djm@gnu.org>
3522 * Makefile.in: fix typo
3524 * Makefile.in (prefix, exec_prefix):
3525 Let configure set them.
3527 1994-09-28 David J. MacKenzie <djm@gnu.org>
3529 * Makefile.in: Set datadir to $(prefix)/share.
3531 1994-09-15 Richard Stallman <rms@gnu.org>
3534 Update copyright notice and GPL version.
3536 1994-09-15 Richard Stallman <rms@gnu.org>
3539 Update copyright notice and GPL version.
3541 1994-07-12 Richard Stallman <rms@gnu.org>
3543 * src/reduce.c, src/reader.c:
3546 1994-05-05 David J. MacKenzie <djm@gnu.org>
3548 * Makefile.in: entered into RCS
3550 1994-03-26 Richard Stallman <rms@gnu.org>
3552 * src/bison.s1: entered into RCS
3554 1994-03-26 Richard Stallman <rms@gnu.org>
3556 * bison.simple: entered into RCS
3558 1994-03-25 Richard Stallman <rms@gnu.org>
3560 * src/main.c: entered into RCS
3562 1994-03-24 Richard Stallman <rms@gnu.org>
3564 * src/conflicts.c: entered into RCS
3566 1994-01-02 Richard Stallman <rms@gnu.org>
3568 * Makefile.in: *** empty log message ***
3570 1993-11-21 Richard Stallman <rms@gnu.org>
3572 * src/bison.s1: *** empty log message ***
3574 1993-11-21 Richard Stallman <rms@gnu.org>
3576 * doc/bison.texinfo: entered into RCS
3578 * doc/bison.texinfo: *** empty log message ***
3580 1993-11-21 Richard Stallman <rms@gnu.org>
3582 * bison.simple: *** empty log message ***
3584 1993-10-25 David J. MacKenzie <djm@gnu.org>
3586 * doc/bison.texinfo: *** empty log message ***
3588 1993-10-19 Richard Stallman <rms@gnu.org>
3590 * src/bison.s1: *** empty log message ***
3592 1993-10-19 Richard Stallman <rms@gnu.org>
3594 * bison.simple: *** empty log message ***
3596 1993-10-14 Richard Stallman <rms@gnu.org>
3598 * src/bison.s1: *** empty log message ***
3600 1993-10-14 Richard Stallman <rms@gnu.org>
3602 * bison.simple: *** empty log message ***
3604 1993-09-14 David J. MacKenzie <djm@gnu.org>
3606 * doc/bison.texinfo: *** empty log message ***
3608 1993-09-13 Noah Friedman <friedman@gnu.org>
3610 * Makefile.in: *** empty log message ***
3612 1993-09-10 Richard Stallman <rms@gnu.org>
3614 * src/conflicts.c: *** empty log message ***
3616 * src/system.h: entered into RCS
3618 1993-09-10 Richard Stallman <rms@gnu.org>
3620 * doc/bison.1: entered into RCS
3622 1993-09-06 Noah Friedman <friedman@gnu.org>
3624 * src/version.c: entered into RCS
3626 1993-09-06 Noah Friedman <friedman@gnu.org>
3628 * Makefile.in: *** empty log message ***
3630 1993-07-30 David J. MacKenzie <djm@gnu.org>
3632 * Makefile.in: *** empty log message ***
3634 1993-07-24 Richard Stallman <rms@gnu.org>
3636 * src/bison.s1: *** empty log message ***
3638 1993-07-24 Richard Stallman <rms@gnu.org>
3640 * bison.simple: *** empty log message ***
3642 1993-07-08 David J. MacKenzie <djm@gnu.org>
3644 * Makefile.in: *** empty log message ***
3646 1993-07-04 Richard Stallman <rms@gnu.org>
3648 * src/bison.s1: *** empty log message ***
3650 1993-07-04 Richard Stallman <rms@gnu.org>
3652 * bison.simple: *** empty log message ***
3654 1993-06-26 David J. MacKenzie <djm@gnu.org>
3656 * src/getargs.c: entered into RCS
3658 1993-06-26 David J. MacKenzie <djm@gnu.org>
3660 * doc/bison.texinfo: *** empty log message ***
3662 * doc/bison.1: New file.
3664 1993-06-25 Richard Stallman <rms@gnu.org>
3666 * src/getargs.c: New file.
3668 1993-06-16 Richard Stallman <rms@gnu.org>
3670 * src/bison.s1: *** empty log message ***
3672 1993-06-16 Richard Stallman <rms@gnu.org>
3674 * bison.simple: *** empty log message ***
3676 1993-06-03 Richard Stallman <rms@gnu.org>
3678 * src/bison.s1: New file.
3680 1993-06-03 Richard Stallman <rms@gnu.org>
3682 * doc/bison.texinfo: *** empty log message ***
3684 1993-06-03 Richard Stallman <rms@gnu.org>
3686 * bison.simple: New file.
3688 1993-05-19 Richard Stallman <rms@gnu.org>
3690 * doc/bison.texinfo: New file.
3692 1993-05-07 Noah Friedman <friedman@gnu.org>
3694 * Makefile.in: *** empty log message ***
3696 1993-04-28 Noah Friedman <friedman@gnu.org>
3698 * src/reader.c: *** empty log message ***
3700 1993-04-23 Noah Friedman <friedman@gnu.org>
3702 * src/alloc.h: entered into RCS
3704 1993-04-20 David J. MacKenzie <djm@gnu.org>
3706 * src/version.c: *** empty log message ***
3708 * src/files.c, src/allocate.c:
3711 * src/reader.c: *** empty log message ***
3713 * src/lex.c: entered into RCS
3715 * src/conflicts.c: New file.
3717 * src/symtab.c: entered into RCS
3719 * src/alloc.h: New file.
3721 * src/LR0.c: entered into RCS
3723 1993-04-18 Noah Friedman <friedman@gnu.org>
3725 * src/reader.c: New file.
3727 * src/version.c: *** empty log message ***
3729 1993-04-18 Noah Friedman <friedman@gnu.org>
3731 * Makefile.in: *** empty log message ***
3733 1993-04-17 Noah Friedman <friedman@gnu.org>
3735 * Makefile.in: *** empty log message ***
3737 1993-04-15 Richard Stallman <rms@gnu.org>
3739 * src/main.c, src/files.c:
3742 1993-04-15 Noah Friedman <friedman@gnu.org>
3744 * configure.in: entered into RCS
3746 * configure.in: *** empty log message ***
3748 * configure.in: New file.
3750 1993-04-14 Richard Stallman <rms@gnu.org>
3752 * Makefile.in: New file.
3754 1993-04-13 Richard Stallman <rms@gnu.org>
3756 * src/version.c: New file.
3758 1993-03-25 Richard Stallman <rms@gnu.org>
3760 * src/output.c: entered into RCS
3762 1992-09-25 Richard Stallman <rms@gnu.org>
3764 * configure.bat: entered into RCS
3766 1992-06-22 Richard Stallman <rms@gnu.org>
3768 * src/vmsgetargs.c: entered into RCS
3770 1992-06-22 Richard Stallman <rms@gnu.org>
3772 * doc/bison.rnh: entered into RCS
3774 1992-04-20 David J. MacKenzie <djm@gnu.org>
3776 * README: entered into RCS
3778 1992-01-22 Richard Stallman <rms@gnu.org>
3780 * src/machine.h: entered into RCS
3782 1991-12-21 Richard Stallman <rms@gnu.org>
3784 * src/lalr.c, src/closure.c:
3787 1991-12-20 Richard Stallman <rms@gnu.org>
3789 * src/state.h: entered into RCS
3791 1991-12-18 Richard Stallman <rms@gnu.org>
3793 * src/print.c, src/nullable.c, src/derives.c:
3796 1991-11-03 David J. MacKenzie <djm@gnu.org>
3798 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3801 1988-09-09 Richard Stallman <rms@gnu.org>
3803 * src/bison.hairy: entered into RCS
3805 1987-12-16 Richard Stallman <rms@gnu.org>
3807 * REFERENCES: entered into RCS