1 2001-12-05 Akim Demaille <akim@epita.fr>
3 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
5 Reported by Peter Hámorský.
7 2001-12-05 Akim Demaille <akim@epita.fr>
9 * src/conflicts.c (err_table): Remove.
10 (resolve_sr_conflict): Adjust.
11 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
13 (state_t.reductions, state_t.shifts): this.
15 2001-12-05 Akim Demaille <akim@epita.fr>
17 * src/reduce.c (reduce_grammar_tables): No longer disable the
18 removal of useless rules via CPP but via `if (0)', so that the
19 compiler still check the code is valid.
20 For instance, it should have noticed `rline' no longer exists: use
21 the `line' member of rule_t.
22 * src/gram.c (dummy, rline): Remove, unused.
24 2001-12-05 Akim Demaille <akim@epita.fr>
26 * src/output.c (pack_vector): Use assert, not berror.
27 * src/main.c (berror): Remove, unused.
29 2001-12-05 Akim Demaille <akim@epita.fr>
31 New experimental feature: if --verbose --trace output all the
32 items of a state, not only its kernel.
34 * src/print.c (print_core): If `trace_flag', then invoke closure
35 before outputting the items of the state (print_core is no longer
37 (print_results): Invoke new_closure/free_closure if needed.
39 2001-12-05 Akim Demaille <akim@epita.fr>
41 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
42 * src/closure.c, src/closure.h (itemsetsize): Rename as...
43 (nitemset): for consistency with the rest of the project.
45 2001-12-05 Akim Demaille <akim@epita.fr>
47 * src/closure.c (print_closure): Improve.
48 (closure): Use it for printing input and output.
50 2001-12-05 Akim Demaille <akim@epita.fr>
52 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
53 indexed by nonterminals.
55 2001-12-05 Akim Demaille <akim@epita.fr>
57 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
59 * src/warshall.h: Remove accidental duplication of the content.
61 2001-12-05 Akim Demaille <akim@epita.fr>
63 * src/closure.c (set_fderives): De-obfuscate.
65 2001-12-05 Akim Demaille <akim@epita.fr>
67 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
69 2001-12-05 Akim Demaille <akim@epita.fr>
71 * src/closure.c (set_firsts): De-obfuscate.
73 2001-12-05 Akim Demaille <akim@epita.fr>
75 * src/output.c (action_row): De-obfuscate
76 using the good o' techniques: arrays not pointers, variable
77 locality, BITISSET, RESETBIT etc.
79 2001-12-05 Akim Demaille <akim@epita.fr>
81 Pessimize the code to simplify it: from now on, all the states
82 have a valid SHIFTS, which NSHIFTS is possibly 0.
84 * src/LR0.c (shifts_new): Be global and move to..
85 * src/state.c, src/state.h: here.
86 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
87 * src/print_graph: Adjust.
89 2001-12-05 Akim Demaille <akim@epita.fr>
91 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
92 * src/conflicts.c: Use it.
93 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
94 incorrectly ``simplified''.
96 2001-12-05 Akim Demaille <akim@epita.fr>
98 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
99 using the good o' techniques: arrays not pointers, variable
100 locality, BITISSET, RESETBIT etc.
102 2001-12-05 Akim Demaille <akim@epita.fr>
104 * src/state.h (SHIFT_SYMBOL): New.
105 * src/conflicts.c: Use it to deobfuscate.
107 2001-12-05 Akim Demaille <akim@epita.fr>
109 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
110 (print_reductions): De-obfuscate using the good o' techniques:
111 arrays not pointers, variable locality, BITISSET.
113 2001-12-05 Akim Demaille <akim@epita.fr>
115 * src/conflicts.c (print_reductions): Arrays, not pointers.
118 2001-12-05 Akim Demaille <akim@epita.fr>
120 * src/conflicts.c (print_reductions): Pessimize, but clarify.
122 2001-12-05 Akim Demaille <akim@epita.fr>
124 * src/conflicts.c (print_reductions): Improve variable locality.
126 2001-12-05 Akim Demaille <akim@epita.fr>
128 * src/conflicts.c (print_reductions): Pessimize, but clarify.
130 2001-12-05 Akim Demaille <akim@epita.fr>
132 * src/conflicts.c (print_reductions): Improve variable locality.
134 2001-12-05 Akim Demaille <akim@epita.fr>
136 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
137 * src/lalr.c: Use them.
139 2001-12-05 Akim Demaille <akim@epita.fr>
141 * src/LR0.c (augment_automaton): Formatting changes.
142 Better variable locality.
144 2001-12-05 Akim Demaille <akim@epita.fr>
146 * src/lalr.c (matrix_print): New.
148 Use arrays instead of pointers.
150 2001-12-05 Akim Demaille <akim@epita.fr>
152 * src/lalr.c (maxrhs): Move to...
153 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
154 * src/lalr.c (build_relations): Adjust.
156 2001-12-05 Akim Demaille <akim@epita.fr>
158 * src/lalr.c (transpose): Free the memory allocated to the
159 argument, as it is replaced by the results by the unique caller.
160 (build_relations): Merely invoke transpose: it handles the memory
162 Improve variable locality.
163 Avoid variables used as mere abbreviations.
164 (compute_lookaheads): Use arrays instead of pointers.
166 2001-12-05 Akim Demaille <akim@epita.fr>
168 * src/lalr.c (initialize_F): Improve variable locality.
169 Avoid variables used as mere abbreviations.
171 2001-12-05 Akim Demaille <akim@epita.fr>
173 * src/derives.c (print_derives): Display the ruleno.
174 * src/lalr.c (initialize_F, transpose): Better variable locality
175 to improve readability.
176 Avoid variables used as mere abbreviations.
178 2001-12-05 Akim Demaille <akim@epita.fr>
180 * src/lalr.c (traverse): Use arrays instead of pointers.
182 2001-12-05 Akim Demaille <akim@epita.fr>
184 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
185 the handling of squeue.
186 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
188 2001-12-05 Akim Demaille <akim@epita.fr>
190 Because useless nonterminals are now kept alive (instead of being
191 `destroyed'), we now sometimes examine them, and store information
192 related to them. Hence we need to know their number, and adjust
195 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
197 * src/LR0.c (allocate_itemsets): The memory allocated to
198 `symbol_count' was used for two different purpose: once to count
199 the number of occurrences of each symbol, and later reassigned to
200 `shift_symbol', containing the symbol that can be shifted from a
202 Deobfuscate, i.e., allocate, use and free `symbol_count' here
204 (new_itemsets): Allocate `shift_symbol' here.
205 (allocate_itemsets): symbol_count includes useless nonterminals.
207 (free_storage): Use `free', not `XFREE', for pointers that cannot
210 2001-12-05 Akim Demaille <akim@epita.fr>
212 * src/nullable.c (set_nullable): Deobfuscate the handling of
214 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
216 2001-12-05 Akim Demaille <akim@epita.fr>
218 * src/gram.c, src/gram.h (ritem_print): New.
219 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
220 (This useless function was defined only to work around VMS linkers
221 that can't handle compilation units with variables only).
222 * src/reduce.c (dump_grammar): Use it to trace the construction of
225 2001-12-04 Paul Eggert <eggert@twinsun.com>
227 * src/bison.simple (union yyalloc): Change member names
228 to be the same as the stack names.
229 (yyparse): yyptr is now union yyalloc *, not char *.
230 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
231 and may generate better code on some machines.
232 (yystpcpy): Use prototype if __STDC__ is defined, not just
233 if __cplusplus is defined.
235 2001-11-30 Akim Demaille <akim@epita.fr>
237 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
238 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
239 Gettext doesn't compile cleanly, and dies with -Werror.
240 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
241 Include WARNING_CFLAGS here.
242 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
243 before being defined.
245 2001-11-30 Paul Eggert <eggert@twinsun.com>
247 * lib/quotearg.h (quotearg_n, quotearg_n_style):
248 First arg is int, not unsigned.
249 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
250 (SIZE_MAX, UINT_MAX): New macros.
251 (quotearg_n_options): Abort if N is negative.
252 Avoid overflow check on hosts where size_t is 64 bits and int
253 is 32 bits, as overflow is impossible there.
254 Fix off-by-one typo that caused unnecessary reallocation.
256 2001-11-30 Paul Eggert <eggert@twinsun.com>
258 Name space cleanup in generated parser.
260 * doc/bison.texinfo (Bison Parser): Discuss system headers
261 and their effect on the user name space.
264 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
265 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
266 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
268 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
269 on user names when possible.
271 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
272 Simplify test for whather <alloca.h> exists.
274 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
276 (<stdio.h>): Include if YYDEBUG.
278 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
279 ! defined (yyoverflow) && ! defined (yymemcpy).
281 (yymemcpy, yyparse): Rename local variables as needed so that
282 they all begin with 'yy'.
284 (yystrlen, yystpcpy): New functions.
286 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
289 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
290 instead of relying on string.h functions. Use YYSTACK_ALLOC
291 and YYSTACK_FREE instead of malloc and free.
293 2001-11-30 Akim Demaille <akim@epita.fr>
295 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
296 if body instead of `;' to pacify GCC's warnings.
298 2001-11-30 Akim Demaille <akim@epita.fr>
300 Instead of mapping the LHS of unused rules to -1, keep the LHS
301 valid, but flag the rules as invalid.
303 * src/gram.h (rule_t): `useful' is a new member.
304 * src/print.c (print_grammar): Adjust.
305 * src/derives.c (set_derives): Likewise.
306 * src/reader.c (packgram, reduce_output): Likewise.
307 * src/reduce.c (reduce_grammar_tables): Likewise.
308 * tests/reduce.at (Underivable Rules, Useless Rules): New.
310 2001-11-30 Akim Demaille <akim@epita.fr>
312 * src/reduce.c (reduce_output): Formatting changes.
313 * src/print.c (print_results, print_grammar): Likewise.
314 * tests/regression.at (Rule Line Numbers)
315 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
317 2001-11-30 Akim Demaille <akim@epita.fr>
319 * src/reduce.c (nonterminals_reduce): Instead of throwing away
320 useless nonterminals, move them at the end of the symbol arrays.
321 (reduce_output): Adjust.
322 * tests/reduce.at (Useless Nonterminals): Adjust.
324 2001-11-30 Akim Demaille <akim@epita.fr>
326 * src/reduce.c: Various comment/formatting changes.
327 (nonterminals_reduce): New, extracted from...
328 (reduce_grammar_tables): here.
329 (reduce_grammar): Call nonterminals_reduce.
331 2001-11-29 Paul Eggert <eggert@twinsun.com>
333 * src/bison.simple (YYSTACK_REALLOC): Remove.
334 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
335 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
337 (union yyalloc): New type.
338 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
339 an arbitrary restriction on hosts where size_t is wider than int.
341 (yyparse): Don't dump core if alloca or malloc fails; instead, report
342 a parser stack overflow. Allocate just one block of memory for all
343 three stacks, instead of allocating three blocks; this typically is
344 faster and reduces fragmentation.
346 Do not limit the number of items in the stack to a value that fits
347 in 'int', as this is an arbitrary limit on hosts with 64-bit
348 size_t and 32-bit int.
350 2001-11-28 Akim Demaille <akim@epita.fr>
352 * src/LR0.c (shifts_new): New.
353 (save_shifts, insert_start_shift, augment_automaton): Use it.
355 2001-11-28 Akim Demaille <akim@epita.fr>
357 * src/closure.c (closure): `b' and `ruleno' denote the same value:
360 2001-11-28 Akim Demaille <akim@epita.fr>
362 * src/closure.c (closure): Instead of looping over word in array
363 then bits in words, loop over bits in array.
365 2001-11-28 Akim Demaille <akim@epita.fr>
367 * src/closure.c (closure): No longer optimize the special case
368 where all the bits of `ruleset[r]' are set to 0, to make the code
371 2001-11-28 Akim Demaille <akim@epita.fr>
373 * src/closure.c (closure): `r' and `c' are new variables, used to
374 de-obfuscate accesses to RULESET and CORE.
376 2001-11-28 Akim Demaille <akim@epita.fr>
378 * src/reduce.c (reduce_print): Use ngettext.
379 (dump_grammar): Improve the trace accuracy.
381 2001-11-28 Akim Demaille <akim@epita.fr>
383 * src/reduce.c (dump_grammar): Don't translate trace messages.
385 2001-11-28 Akim Demaille <akim@epita.fr>
387 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
388 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
389 as all tags are free'ed afterwards.
392 2001-11-27 Akim Demaille <akim@epita.fr>
394 * src/system.h: Use intl/libgettext.h.
395 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
397 2001-11-27 Paul Eggert <eggert@twinsun.com>
399 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
400 use alloca when we didn't want to, and vice versa.
402 2001-11-27 Akim Demaille <akim@epita.fr>
404 * tests/torture.at (Exploding the Stack Size with Malloc):
405 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
407 2001-11-27 Akim Demaille <akim@epita.fr>
409 * src/files.c: Include error.h.
412 2001-11-26 Akim Demaille <akim@epita.fr>
416 2001-11-26 Akim Demaille <akim@epita.fr>
418 * src/reader.c (readgram): Make sure rules for mid-rule actions
419 have a lineno equal to that of their host rule.
420 Reported by Hans Aberg.
421 * tests/regression.at (Rule Line Numbers): New.
423 2001-11-26 Akim Demaille <akim@epita.fr>
425 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
427 Reported by Hans Aberg.
429 2001-11-26 Akim Demaille <akim@epita.fr>
431 * src/complain.c, src/complain.h (error): Remove, provided by
434 2001-11-26 Akim Demaille <akim@epita.fr>
436 * src/reader.c (read_declarations): Don't abort on tok_illegal,
437 issue an error message.
438 * tests/regression.at (Invalid %directive): New.
439 Reported by Hans Aberg.
441 2001-11-26 Akim Demaille <akim@epita.fr>
443 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
444 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
446 2001-11-26 Akim Demaille <akim@epita.fr>
448 * src/conflicts.c (conflicts_print): Don't complain at all when
449 there are no reduce/reduce conflicts, and as many shift/reduce
450 conflicts as expected.
451 * tests/regression.at (%expect right): Adjust.
453 2001-11-23 Akim Demaille <akim@epita.fr>
455 * lib/alloca.c: Update, from fileutils.
457 2001-11-23 Akim Demaille <akim@epita.fr>
459 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
461 2001-11-23 Akim Demaille <akim@epita.fr>
463 * src/system.h: Include alloca.h.
464 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
466 2001-11-23 Akim Demaille <akim@epita.fr>
468 * src/print_graph.c (print_actions): Remove `rule', unused.
469 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
470 pacify GCC's signed < unsigned warnings.
471 * src/closure.c (itemsetsize): Likewise.
472 * src/reader.c (symbol_list_new): Static.
474 2001-11-23 Akim Demaille <akim@epita.fr>
476 Attaching lineno to buckets is stupid, since only one copy of each
477 symbol is kept, only the line of the first occurrence is kept too.
479 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
480 * src/reader.c (rline_allocated): Remove, unused.
481 (symbol_list): Have a `line' member.
482 (symbol_list_new): New.
484 * src/print.c (print_grammar): Output the rule line numbers.
485 * tests/regression.at (Solved SR Conflicts)
486 (Unresolved SR Conflicts): Adjust.
487 Reported by Hans Aberg.
489 2001-11-20 Akim Demaille <akim@epita.fr>
493 2001-11-20 Akim Demaille <akim@epita.fr>
496 * configure.in (ALL_LINGUAS): Adjust.
497 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
498 longer contains strings to translate.
500 2001-11-19 Akim Demaille <akim@epita.fr>
502 * src/conflicts.c (conflicts_print): Add a missing \n.
504 2001-11-19 Akim Demaille <akim@epita.fr>
506 * src/nullable.c (nullable_print): New.
507 (set_nullable): Call it when tracing.
508 Better locality of variables.
510 2001-11-19 Akim Demaille <akim@epita.fr>
512 * src/print.c (print_actions): Better locality of variables.
514 2001-11-19 Akim Demaille <akim@epita.fr>
516 * src/derives.c (print_derives): Fix and enrich.
517 * src/closure.c (print_fderives): Likewise.
519 2001-11-19 Akim Demaille <akim@epita.fr>
521 * src/closure.c (itemsetend): Remove, replaced with...
524 2001-11-19 Akim Demaille <akim@epita.fr>
526 * src/LR0.c (kernel_end): Remove, replaced with...
529 2001-11-19 Akim Demaille <akim@epita.fr>
531 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
534 2001-11-19 Akim Demaille <akim@epita.fr>
536 * src/closure.c (closure): Use arrays instead of pointers to clarify.
538 2001-11-19 Akim Demaille <akim@epita.fr>
540 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
542 * src/LR0.c: Likewise.
543 (allocate_itemsets): Use arrays instead of pointers to clarify.
545 2001-11-19 Akim Demaille <akim@epita.fr>
547 * src/getargs.c (statistics_flag): Replace with...
549 (longopts): Accept --trace instead of --statistics.
550 * src/getargs.h: Adjust.
551 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
552 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
554 2001-11-19 Akim Demaille <akim@epita.fr>
556 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
557 pointers to clarify the code.
558 (save_reductions, save_shifts): Factor common parts of alternatives.
560 2001-11-19 Akim Demaille <akim@epita.fr>
562 * src/LR0.c (new_state, get_state): Complete TRACE code.
563 * src/closure.c: Include `reader.h' to get `tags', needed by the
565 Rename the conditional DEBUG as TRACE.
566 Output consistently TRACEs to stderr, not stdout.
567 * src/derives.c: Likewise.
568 * src/reduce.c: (inaccessable_symbols): Using if is better style
570 Use `#if TRACE' instead of `#if 0' for tracing code.
572 2001-11-19 Akim Demaille <akim@epita.fr>
574 * src/system.h (LIST_FREE, shortcpy): New.
575 * src/LR0.c: Use them.
576 * src/output.c (free_itemsets, free_reductions, free_shifts):
577 Remove, replaced by LIST_FREE.
579 2001-11-19 Akim Demaille <akim@epita.fr>
581 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
582 (REDUCTIONS_ALLOC): New.
583 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
586 2001-11-19 Akim Demaille <akim@epita.fr>
588 * src/LR0.c (new_state): Complete trace code.
589 * src/nullable.c (set_nullable): Don't translate traces.
591 2001-11-19 Akim Demaille <akim@epita.fr>
593 * src/print_graph.c (print_core): Better locality of variables.
594 * src/print.c (print_core): Likewise.
596 2001-11-19 Akim Demaille <akim@epita.fr>
598 * src/vcg.c: You do the output, so you are responsible of the
599 handling of VCG syntax, in particular: use quotearg.
600 * src/print_graph.c: Don't.
601 (print_actions): Don't output the actions as part of the nodes,
602 since that's the job of the edges.
603 (print_state): Don't output by hand: fill the node description,
604 and ask for its output.
606 2001-11-19 Akim Demaille <akim@epita.fr>
608 * src/bison.simple (yyparse): When verbosely reporting an error,
609 no longer put additional quotes around token names.
610 * tests/calc.at: Adjust.
612 2001-11-19 Akim Demaille <akim@epita.fr>
614 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
615 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
616 * src/output.c: Adjust.
618 2001-11-19 Akim Demaille <akim@epita.fr>
620 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
622 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
624 2001-11-19 Akim Demaille <akim@epita.fr>
626 * src/gram.h (rule_t): New.
628 (rrhs, rlhs): Remove, part of state_t.
629 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
630 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
631 * src/reader.c, src/reduce.c: Adjust.
633 2001-11-19 Akim Demaille <akim@epita.fr>
635 * src/reader.c (symbols_output): New, extracted from...
639 2001-11-19 Akim Demaille <akim@epita.fr>
641 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
642 (maxrhs): this new function.
644 2001-11-19 Akim Demaille <akim@epita.fr>
646 * src/lalr.c (F): New macro to access the variable F.
649 2001-11-19 Akim Demaille <akim@epita.fr>
651 * src/lalr.h (LA): New macro to access the variable LA.
652 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
653 * src/lalr.c: Adjust.
655 2001-11-19 Akim Demaille <akim@epita.fr>
657 * src/lalr.c (initialize_LA): Only initialize LA. Let...
658 (set_state_table): handle the `lookaheads' members.
660 2001-11-19 Akim Demaille <akim@epita.fr>
662 * src/lalr.h (lookaheads): Removed array, whose contents is now
664 (state_t): this structure.
665 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
668 2001-11-19 Akim Demaille <akim@epita.fr>
670 * src/lalr.h (consistent): Removed array, whose contents is now
672 (state_t): this structure.
673 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
676 2001-11-19 Akim Demaille <akim@epita.fr>
678 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
679 contents are now members of...
680 (state_t): this structure.
681 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
684 2001-11-19 Akim Demaille <akim@epita.fr>
686 * src/lalr.h (state_t): New.
687 (state_table): Be a state_t * instead of a core **.
688 (accessing_symbol): Remove, part of state_t.
689 * src/lalr.c: Adjust.
690 (set_accessing_symbol): Merge into...
691 (set_state_table): this.
692 * src/print_graph.c, src/conflicts.c: Adjust.
694 2001-11-14 Akim Demaille <akim@epita.fr>
698 2001-11-14 Akim Demaille <akim@epita.fr>
700 * tests/calc.at, tests/output.at, tests/regression.at,
701 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
702 now the tests are run in private dirs, therefore AC_CLEANUP and
703 family can be simplified to 0-ary.
704 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
705 use abs. path to find config.h.
707 2001-11-14 Akim Demaille <akim@epita.fr>
709 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
710 stderr, there can be way too much random noise.
711 Instead pass -Werror to GCC and rely on the exit status.
712 Reported by Wolfram Wagner.
714 2001-11-14 Akim Demaille <akim@epita.fr>
716 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
717 defined only if yyoverflow is defined, to avoid `warning: unused
719 Reported by The Test Suite.
721 2001-11-14 Akim Demaille <akim@epita.fr>
723 * src/print.c: Include reduce.h.
724 Reported by Hans Aberg.
726 2001-11-14 Akim Demaille <akim@epita.fr>
728 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
729 Revert a previous patch: these are really const.
730 * src/conflicts.c (conflict_report): Additional useless pair of
731 braces to pacify GCC's warnings for `if () if () {} else {}'.
732 * src/lex.c (parse_percent_token): Replace equal_offset with
735 Be sure to strdup `arg' when used, since there is no reason for
736 token_buffer not to change.
738 2001-11-14 Akim Demaille <akim@epita.fr>
740 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
742 * src/main.c (main): Use them.
743 Suggested by Hans Aberg.
745 2001-11-12 Akim Demaille <akim@epita.fr>
749 * src/system.h (ngettext): Now that we use ngettext, be sure to
750 provide a default definition when NLS are not used that takes care
753 2001-11-12 Akim Demaille <akim@epita.fr>
755 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
756 Use @kbd to denote user input.
757 (Language and Grammar): ANSIfy the example.
758 Adjust its layout for info/notinfo.
759 (Location Tracking Calc): Output error messages to stderr.
760 Output locations in a more GNUtically correct way.
761 Fix a couple of Englishos.
762 Adjust @group/@end group pairs.
764 2001-11-12 Akim Demaille <akim@epita.fr>
766 %expext was not functioning at all.
768 * src/conflicts.c (expected_conflicts): Set to -1.
769 (conflict_report): Use ngettext.
770 (conflicts_print): Check %expect and make its violation an error.
771 * doc/bison.texinfo (Expect Decl): Adjust.
772 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
773 * tests/regression.at (%expect not enough, %expect right)
774 (%expect too much): New.
776 2001-11-12 Akim Demaille <akim@epita.fr>
778 * tests/regression.at (Conflicts): Rename as...
779 (Unresolved SR Conflicts): this.
780 (Solved SR Conflicts): New.
782 2001-11-12 Akim Demaille <akim@epita.fr>
784 * src/reduce.c (print_results): Rename as...
785 (reduce_output): This.
786 Output to OUT, passed as argument, instead of output_obstack.
787 (dump_grammar): Likewise.
790 (reduce_grammar): No longer call reduce_output, since...
791 * src/print.c (print_results): do it.
792 * src/main.c (main): Call reduce_free;
794 2001-11-12 Akim Demaille <akim@epita.fr>
796 * src/conflicts.c (print_reductions): Accept OUT as argument.
797 Output to it, not to output_obstack.
798 * src/print.c (print_actions): Adjust.
800 2001-11-12 Akim Demaille <akim@epita.fr>
802 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
803 the result instead of using...
804 (src_total, rrc_total, src_count, rrc_count): Remove.
805 (any_conflicts): Remove.
806 (print_conflicts): Split into...
807 (conflicts_print, conflicts_output): New.
808 * src/conflicts.h: Adjust.
809 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
810 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
811 * tests/regression.at (Conflicts): New.
812 Reported by Tom Lane.
814 2001-11-12 Akim Demaille <akim@epita.fr>
816 * tests/regression.at (Invalid input): Remove, duplicate with
817 ``Invalid input: 1''.
819 2001-11-12 Akim Demaille <akim@epita.fr>
821 * tests/torture.at (AT_DATA_STACK_TORTURE)
822 (Exploding the Stack Size with Alloca)
823 (Exploding the Stack Size with Malloc): New.
825 2001-11-12 Akim Demaille <akim@epita.fr>
827 * src/bison.simple (YYSTACK_REALLOC): New.
828 (yyparse) [!yyoverflow]: Use it and free the old stack.
829 Reported by Per Allansson.
831 2001-11-05 Akim Demaille <akim@epita.fr>
834 * src/lex.c (parse_percent_token): s/quotearg/quote/.
836 2001-11-05 Akim Demaille <akim@epita.fr>
838 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
841 2001-11-05 Akim Demaille <akim@epita.fr>
843 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
844 with yyltype/YYLTYPE. This allows inclusion of the generated
845 header within the parser if the compiler, such as GGC, accepts
846 multiple equivalent #defines.
848 2001-11-04 Akim Demaille <akim@epita.fr>
850 * src/getargs.c (longopts): Support `--output'. getopt is now
851 able to understand that `--out' is OK: the two racing long options
854 * src/lex.h (tok_setopt): Remove, replaced with...
855 (tok_intopt, tok_stropt): these new guys.
856 * src/lex.c (getopt.h): Not needed.
857 (token_buffer, unlexed_token_buffer): Not const.
858 (percent_table): Promote `-' over `_' in directive names.
859 Active `%name-prefix', `file-prefix', and `output'.
860 (parse_percent_token): Accept possible arguments to directives.
861 Promote `-' over `_' in directive names.
862 * doc/bison.texinfo (Decl Summary): Split the list into
863 `directives for grammars' and `directives for bison'.
865 Add description of `%name-prefix', `file-prefix', and `output'.
866 Promote `-' over `_' in directive names.
867 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
868 Simplify the description of `--name-prefix'.
869 Promote `-' over `_' in directive names.
870 Promote `--output' over `--output-file'.
871 Fix the description of `--defines'.
872 * tests/output.at: Exercise %file-prefix and %output.
874 2001-11-02 Akim Demaille <akim@epita.fr>
876 * doc/refcard.tex: Update.
878 2001-11-02 Akim Demaille <akim@epita.fr>
880 * src/symtab.h (SUNDEF): New.
881 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
882 stand for `uninitialized', instead of 0.
883 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
884 * src/lex.c (lex): Adjust.
886 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
888 Let yylex return it instead of a plain 0.
889 Reported by Dick Streefland.
891 2001-11-02 Akim Demaille <akim@epita.fr>
893 * tests/regression.at (Mixing %token styles): New test.
895 2001-11-02 Akim Demaille <akim@epita.fr>
897 * src/reader.c (parse_thong_decl): Formatting changes.
898 (token_translations_init): New, extracted from...
902 2001-11-01 Akim Demaille <akim@epita.fr>
904 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
905 Check that `9foo.y' produces correct cpp guards.
906 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
910 2001-11-01 Akim Demaille <akim@epita.fr>
912 * tests/regression.at (Invalid input: 2): New.
913 * src/lex.c (unlexed_token_buffer): New.
914 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
918 2001-11-01 Akim Demaille <akim@epita.fr>
920 * configure.in: Bump to 1.30a.
921 Adjust to newer Autotest.
923 2001-10-26 Akim Demaille <akim@epita.fr>
927 2001-10-26 Paul Eggert <eggert@twinsun.com>
929 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
930 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
931 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
932 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
933 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
934 Sync with fileutils 4.1.1.
936 2001-10-18 Akim Demaille <akim@epita.fr>
939 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
940 avoid spurious failures.
942 2001-10-18 Akim Demaille <akim@epita.fr>
946 2001-10-18 Akim Demaille <akim@epita.fr>
948 * tests/atlocal.in (GCC): Add.
949 * tests/calc.at: s/m4_match/m4_bmatch/.
950 s/m4_patsubst/m4_bpatsubst/.
951 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
952 * configure.in: AC_SUBST(GCC).
954 2001-10-10 Akim Demaille <akim@epita.fr>
957 * configure.in: M4 is no longer needed, but autom4te is.
958 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
961 2001-10-10 Akim Demaille <akim@epita.fr>
965 2001-10-10 Akim Demaille <akim@epita.fr>
968 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
969 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
970 Reported by Airy Andre.
972 2001-10-10 Akim Demaille <akim@epita.fr>
974 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
975 * config/mkinstalldirs, lib/ansi2knr.c: Update.
977 2001-10-02 Akim Demaille <akim@epita.fr>
981 2001-10-02 Akim Demaille <akim@epita.fr>
985 2001-10-02 Akim Demaille <akim@epita.fr>
987 * tests/regression.at (Invalid CPP headers): New.
988 From Alexander Belopolsky.
989 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
991 2001-10-02 Akim Demaille <akim@epita.fr>
993 * tests/regression.at (Invalid input): New.
994 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
997 2001-10-02 Akim Demaille <akim@epita.fr>
999 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1001 2001-10-02 Akim Demaille <akim@epita.fr>
1003 * src/output.c (output_parser): Assert `skeleton'.
1004 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1008 2001-10-01 Marc Autret <autret_m@epita.fr>
1010 * src/lex.h: Echo modifications.
1011 * src/lex.c (unlex): Parameter is now token_t.
1014 2001-10-01 Marc Autret <autret_m@epita.fr>
1016 * src/main.c: Include lex.h.
1019 2001-09-29 Akim Demaille <akim@epita.fr>
1021 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1023 2001-09-28 Akim Demaille <akim@epita.fr>
1025 * tests/testsuite.at: Update to newer Autotest.
1026 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1028 2001-09-27 Akim Demaille <akim@epita.fr>
1030 Position independent wrapper.
1032 * tests/bison: Remove.
1033 * tests/bison.in: New.
1034 * configure.in: Adjust.
1036 2001-09-27 Paul Eggert <eggert@twinsun.com>
1038 Port quotearg fixes from tar 1.13.24.
1040 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1042 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1043 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1045 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1046 * m4/mbrtowc.m4: New file.
1047 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1048 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1050 2001-09-27 Akim Demaille <akim@epita.fr>
1054 2001-09-27 Akim Demaille <akim@epita.fr>
1058 2001-09-25 Akim Demaille <akim@epita.fr>
1060 * src/system.h: Include `xalloc.h'.
1061 Remove it from the C files.
1062 * src/files.c (output_files): Free the obstacks.
1063 * src/lex.c (init_lex): Rename as...
1066 * src/main.c (main): Use it.
1068 2001-09-24 Marc Autret <autret_m@epita.fr>
1070 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1071 to output informations in fout (FILE*).
1072 (open_graph, close_graph): Likewise.
1073 (output_graph, output_edge, output_node): Likewise.
1074 * src/vcg.h: Update function prototypes.
1075 * src/print_graph.c (print_graph): Open output graph file.
1076 (print_actions): Adjust.
1077 * src/files.h: Remove extern declaration.
1078 * src/files.c: Remove graph_obstack declaration.
1079 (open_files): Remove graph_obstack initialization.
1080 (output_files): Remove graph_obstack saving.
1082 2001-09-24 Marc Autret <autret_m@epita.fr>
1084 * src/files.c (compute_output_file_names): Fix.
1086 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1088 * src/reader.c (reader): Remove call to free_symtab ().
1089 * src/main.c (main): Call it here.
1091 * src/conflicts.c (initialize_conflicts): Rename as...
1092 (solve_conflicts): this.
1093 * src/print.c (print_core, print_actions, print_state)
1094 (print_grammar): Dump to a file instead a `output_obstack'.
1095 (print_results): Dump `output_obstack', and then proceed with the
1097 * src/files.c (compute_output_file_names, close_files): New.
1098 (output_files): Adjust.
1099 * src/main.c (main): Adjust.
1101 2001-09-23 Marc Autret <autret_m@epita.fr>
1103 * src/files.c (compute_header_macro): Computes header macro name
1104 from spec_defines_file when given.
1106 2001-09-23 Marc Autret <autret_m@epita.fr>
1108 * src/files.c (output_files): Add default extensions.
1110 2001-09-22 Akim Demaille <akim@epita.fr>
1112 * src/conflicts.c (finalize_conflicts): Rename as...
1113 (free_conflicts): this.
1115 2001-09-22 Akim Demaille <akim@epita.fr>
1117 * src/gram.c (gram_free): Rename back as...
1119 (output_token_translations): Free `token_translations'.
1120 * src/symtab.c (free_symtab): Free the tag field.
1122 2001-09-22 Akim Demaille <akim@epita.fr>
1124 Remove `translations' as it is always set to true.
1126 * src/gram.h: Adjust.
1127 * src/reader.c (packsymbols, parse_token_decl): Adjust
1128 * src/print.c (print_grammar): Adjust.
1129 * src/output.c (output_token_translations): Adjust.
1130 * src/lex.c (lex): Adjust.
1131 * src/gram.c: Be sure the set pointers to NULL.
1132 (dummy): Rename as...
1135 2001-09-22 Akim Demaille <akim@epita.fr>
1137 * configure.in: Invoke AM_LIB_DMALLOC.
1138 * src/system.h: Use dmalloc.
1139 * src/LR0.c: Be sure to have pointers initialized to NULL.
1140 (allocate_itemsets): Allocate kernel_items only if needed.
1142 2001-09-22 Akim Demaille <akim@epita.fr>
1144 * configure.in: Bump to 1.29b.
1145 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1146 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1147 need xmalloc.c in calc.y.
1150 2001-09-21 Akim Demaille <akim@epita.fr>
1153 * Makefile.maint, config/config.guess, config/config.sub,
1154 * config/missing: Update from masters.
1155 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1157 * configure.in (ALL_LINGUAS): Add `tr'.
1159 2001-09-21 Akim Demaille <akim@epita.fr>
1161 * tests/Makefile.am (package.m4): Move to...
1162 ($(srcdir)/$(TESTSUITE)): here.
1164 2001-09-20 Akim Demaille <akim@epita.fr>
1166 * src/complain.c: No longer try to be standalone: use system.h.
1167 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1168 * src/complain.h: Likewise.
1169 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1170 Remove the unused variable `n'.
1171 From Albert Chin-A-Young.
1173 2001-09-18 Marc Autret <autret_m@epita.fr>
1175 * doc/bison.1: Update.
1176 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1178 (Option Cross Key): Update.
1181 2001-09-18 Marc Autret <autret_m@epita.fr>
1183 * tests/regression.at: New test (comment in %union).
1185 2001-09-18 Marc Autret <autret_m@epita.fr>
1187 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1189 Reported by Keith Browne.
1191 2001-09-18 Marc Autret <autret_m@epita.fr>
1193 * tests/output.at: Add tests for --defines and --graph.
1195 2001-09-18 Marc Autret <autret_m@epita.fr>
1197 * tests/output.at: Removes tests of %{header,src}_extension features.
1199 2001-09-18 Akim Demaille <akim@epita.fr>
1201 * tests/Makefile.am (package.m4): New.
1202 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1203 (_AT_CHECK_CALC_ERROR): Likewise.
1204 Factor the `, ' part of verbose error messages.
1206 2001-09-18 Marc Autret <autret_m@epita.fr>
1208 * src/getargs.c (longopts): Declare --defines and --graph as options
1209 with optional arguments.
1210 * src/files.h: Add extern declarations.
1211 * src/files.c (spec_graph_file, spec_defines_file): New.
1212 (output_files): Update.
1213 Remove CPP-outed code.
1215 2001-09-18 Marc Autret <autret_m@epita.fr>
1217 Turn off %{source,header}_extension feature.
1219 * src/files.c (compute_exts_from_gf): Update.
1220 (compute_exts_from_src): Update.
1221 (output_files): CPP-out useless code.
1222 * src/files.h: Remove {header,source}_extension extern declarations.
1223 * src/reader.c (parse_dquoted_param): CPP-out.
1224 (parse_header_extension_decl): Remove.
1225 (parse_source_extension_decl): Remove.
1226 (read_declarations): Remove cases tok_{hdrext,srcext}.
1227 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1228 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1230 2001-09-10 Akim Demaille <akim@epita.fr>
1232 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1233 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1234 (AT_CHECK_OUTPUT): this.
1235 Merely check ls' exit status, its output is useless.
1237 2001-09-10 Akim Demaille <akim@epita.fr>
1239 * tests/calc.at: Use m4_match.
1240 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1242 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1244 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1246 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1248 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1249 * src/lex.h: Adjust prototype.
1250 (token_t): Add `tok_undef'.
1251 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1252 (parse_percent_token): Now returns token_t.
1253 Add default statement in switch.
1254 (lex): Separate `c' as an input variable, from the token_t result
1256 (unlexed): Is a token_t.
1258 2001-09-10 Akim Demaille <akim@epita.fr>
1260 * configure.in: Bump to 1.29a.
1262 2001-09-07 Akim Demaille <akim@epita.fr>
1266 2001-08-30 Akim Demaille <akim@epita.fr>
1268 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1269 * m4/atconfig.m4: Remove.
1270 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1272 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1273 m4_if, m4_patsubst, and m4_regexp.
1274 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1275 `input' file instead of echo.
1277 2001-08-29 Akim Demaille <akim@epita.fr>
1281 2001-08-29 Akim Demaille <akim@epita.fr>
1285 2001-08-29 Paul Eggert <eggert@twinsun.com>
1287 * src/bison.simple (yyparse): Don't take the address of an
1288 item before the start of an array, as that doesn't conform to
1291 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1293 * doc/bison.texinfo (Location Tracking Calc): New node.
1295 2001-08-29 Paul Eggert <eggert@twinsun.com>
1297 * src/output.c (output): Do not define const, as this now
1298 causes more problems than it cures.
1300 2001-08-29 Akim Demaille <akim@epita.fr>
1302 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1304 Be sure to tag the `detailmenu'.
1306 2001-08-29 Akim Demaille <akim@epita.fr>
1308 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1309 download in a tmp dir.
1311 2001-08-28 Marc Autret <autret_m@epita.fr>
1313 * config/depcomp: New file.
1315 2001-08-28 Marc Autret <autret_m@epita.fr>
1317 * doc/bison.1 (mandoc): Adjust.
1318 From Juan Manuel Guerrero.
1320 2001-08-28 Marc Autret <autret_m@epita.fr>
1322 * src/print_graph.c (print_state): Fix.
1324 2001-08-27 Marc Autret <autret_m@epita.fr>
1326 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1328 Echo modifications to the functions prototypes.
1329 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1331 2001-08-27 Marc Autret <autret_m@epita.fr>
1333 * src/vcg.c: Include `xalloc.h'.
1334 (add_colorentry): New.
1335 (add_classname): New.
1336 (add_infoname): New.
1337 * src/vcg.h: Add new prototypes.
1339 2001-08-27 Akim Demaille <akim@epita.fr>
1341 * Makefile.maint: Sync. again with CVS Autoconf.
1343 2001-08-27 Akim Demaille <akim@epita.fr>
1345 * Makefile.maint: Formatting changes.
1346 (po-update, cvs-update, update): New targets.
1349 2001-08-27 Akim Demaille <akim@epita.fr>
1351 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1352 * Makefile.maint: Sync. with CVS Autoconf.
1354 2001-08-27 Marc Autret <autret_m@epita.fr>
1356 * src/vcg.h (struct infoname_s): New.
1357 (struct colorentry_s): New.
1358 (graph_s): New fields {vertical,horizontal}_order in structure.
1359 Add `infoname' field.
1360 Add `colorentry' field;
1361 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1362 (G_HORIZONTAL_ORDER): New.
1364 (G_COLORENTRY): New.
1365 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1366 Add output of `infoname'.
1367 Add output of `colorentry'.
1369 2001-08-27 Marc Autret <autret_m@epita.fr>
1371 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1372 This one shadowed a global parameter.
1374 2001-08-24 Marc Autret <autret_m@epita.fr>
1376 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1377 instead of `unsigned'.
1378 (print_state): Do not call obstack_object_size () in obstack_grow ()
1379 to avoid macro variables shadowing.
1381 2001-08-23 Marc Autret <autret_m@epita.fr>
1383 * src/lex.c (percent_table): Typo: s/naem/name/.
1385 Normalize new options declarations.
1387 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1389 * tests/suite.at: Exercise %header_extension and %source_extension.
1391 2001-08-16 Marc Autret <autret_m@epita.fr>
1393 * src/reader.c (parse_dquoted_param): New.
1394 (parse_header_extension_decl): Use it.
1395 (parse_source_extension_decl): Likewise.
1397 2001-08-16 Marc Autret <autret_m@epita.fr>
1399 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1400 (get_xxxx_str): Use assert () instead of complain ().
1401 Remove return invokations in default cases.
1402 (get_decision_str): Modify default behaviour. Remove second argument.
1403 Echo modifications on calls.
1404 (output_graph): Fix.
1406 2001-08-16 Marc Autret <autret_m@epita.fr>
1408 * src/getargs.c (usage): Update with ``-g, --graph''.
1410 2001-08-16 Marc Autret <autret_m@epita.fr>
1412 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1413 (Option Cross Key): Likewise.
1414 * doc/bison.1: Update.
1416 2001-08-15 Akim Demaille <akim@epita.fr>
1420 2001-08-15 Marc Autret <autret_m@epita.fr>
1422 * src/reader.c (readgram): Indent output macro YYSTYPE.
1423 (packsymbols): Likewise.
1424 (output_token_defines): Likewise.
1425 * src/files.c: Standardize.
1426 (compute_header_macro): New.
1427 (defines_obstack_save): New. Use compute_header_macro.
1428 (output_files): Update. Use defines_obstack_save.
1430 2001-08-15 Akim Demaille <akim@epita.fr>
1432 * doc/bison.texinfo (Table of Symbols): Document
1435 2001-08-15 Akim Demaille <akim@epita.fr>
1437 * missing: Update from CVS Automake.
1438 * config/config.guess, config/config.sub, config/texinfo.tex:
1439 Update from gnu.org.
1441 2001-08-15 Akim Demaille <akim@epita.fr>
1443 * Makefile.maint: Sync with CVS Autoconf.
1445 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1447 * doc/bison.texinfo: Include GNU Free Documentation License from
1449 * doc/fdl.texi: Add to package.
1451 2001-08-14 Marc Autret <autret_m@epita.fr>
1453 Turn on %{source,header}_extension features.
1455 * src/lex.c (percent_table): Un-CPP out header_extension and
1457 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1458 (compute_exts_from_src): Remove conditions. It restores priorities
1461 2001-08-14 Marc Autret <autret_m@epita.fr>
1463 * src/files.c (compute_base_names): Add extensions computing when
1464 `--file-prefix' used.
1465 Standardize function calls.
1467 2001-08-13 Marc Autret <autret_m@epita.fr>
1469 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1470 defining it (defined but null disables alloca).
1472 2001-08-13 Marc Autret <autret_m@epita.fr>
1474 * src/bison.simple (_yy_memcpy): CPP reformat.
1476 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1478 * tests/atconfig.in (CPPFLAGS): Fix.
1480 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1482 * doc/bison.texinfo: Include GNU General Public License from
1484 * doc/gpl.texi: Add to package.
1486 2001-08-10 Marc Autret <autret_m@epita.fr>
1488 * src/print_graph.h: Fix.
1489 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1491 2001-08-10 Akim Demaille <akim@epita.fr>
1493 * src/system.h: Provide default declarations for stpcpy, strndup,
1496 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1498 * doc/bison.texinfo (Locations): Update @$ stuff.
1500 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1502 * src/bison.simple (YYLLOC_DEFAULT): Update.
1505 2001-08-08 Marc Autret <autret_m@epita.fr>
1507 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1508 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1509 Reported by Fabrice Bauzac.
1511 2001-08-08 Marc Autret <autret_m@epita.fr>
1513 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1514 * src/vcg.c (output_node): Fix.
1515 * src/vcg.h: Cleanup.
1516 * src/print_graph.c: Add comments.
1517 (node_output_size): New global variable. Simplify the formatting of
1518 the VCG graph output.
1519 (print_actions): Unused code is now used. It notifies the final state
1520 and no action states in the VCG graph. It also give the reduce actions.
1521 The `shift and goto' edges are red and the `go to state' edges are
1523 Get the current node name and node_obstack by argument.
1524 (node_obstack): New variable.
1525 (print_state): Manage node_obstack.
1526 (print_core): Use node_obstack given by argument.
1527 A node is not only computed here but in print_actions also.
1528 (print_graph): CPP out useless code instead of commenting it.
1530 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1532 * tests/atconfig.in (CPPFLAGS): Fix.
1534 2001-08-07 Akim Demaille <akim@epita.fr>
1536 * src/print_graph.c (quote): New.
1537 (print_core): Use it.
1539 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1541 * src/vcg.c (complain.h): Include it.
1542 Unepitaize `return' invocations.
1543 [NDEBUG] (main): Remove.
1544 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1545 * src/files.c (open_files): Initialize graph_obstack.
1546 * src/print_graph.c (print_actions): CPP out useless code.
1547 (print_core): Don't output the last `\n' in labels.
1549 * src/files.c (output_files): Output the VCG file.
1550 * src/main.c (main): Invoke print_graph ();
1552 2001-08-06 Marc Autret <autret_m@epita.fr>
1554 Automaton VCG graph output.
1555 Using option ``-g'' or long option ``--graph'', you can generate
1556 a gram_filename.vcg file containing a VCG description of the LALR (1)
1557 automaton of your grammar.
1559 * src/main.c: Call to print_graph() function.
1560 * src/getargs.h: Update.
1561 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1562 (graph_flag): New flag.
1564 (getargs): Add case `g'.
1565 * src/files.c (graph_obstack): New obstack struct.
1566 (open_files): Initialize new obstack.
1567 (output_files): Saves graph_obstack if required.
1568 * src/files.h (graph_obstack): New extern declaration.
1569 * src/Makefile.am: Add new source files.
1571 2001-08-06 Marc Autret <autret_m@epita.fr>
1573 * src/print_graph.c, src/print_graph.h (graph): New.
1574 * src/vcg.h: New file.
1575 * src/vcg.c: New file, VCG graph handling.
1577 2001-08-06 Marc Autret <autret_m@epita.fr>
1579 Add of %source_extension and %header_extension which specify
1580 the source or/and the header output file extension.
1582 * src/files.c (compute_base_names): Remove initialisation of
1583 src_extension and header_extension.
1584 (compute_exts_from_gf): Update.
1585 (compute_exts_from_src): Update.
1586 (output_files): Update.
1587 * src/reader.c (parse_header_extension_decl): New.
1588 (parse_source_extension_decl): New.
1589 (read_declarations): New case statements for the new tokens.
1590 * src/lex.c (percent_table): Add entries for %source_extension
1591 and %header_extension.
1592 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1594 2001-08-06 Marc Autret <autret_m@epita.fr>
1596 * configure.in: Bump to 1.28c.
1597 * doc/bison.texinfo: Texinfo thingies.
1599 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1601 * tests/atconfig.in (CPPFLAGS): Add.
1602 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1604 2001-08-03 Akim Demaille <akim@epita.fr>
1608 2001-08-03 Akim Demaille <akim@epita.fr>
1610 * tests/Makefile.am (check-local): Ship testsuite.
1611 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1614 2001-08-03 Akim Demaille <akim@epita.fr>
1616 * configure.in: Try using -Wformat when compiling.
1618 2001-08-03 Akim Demaille <akim@epita.fr>
1620 * configure.in: Bump to 1.28b.
1622 2001-08-03 Akim Demaille <akim@epita.fr>
1624 * src/complain.c: Adjust strerror_r portability issues.
1626 2001-08-03 Akim Demaille <akim@epita.fr>
1630 2001-08-03 Akim Demaille <akim@epita.fr>
1632 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1633 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1634 * src/getargs.c: Include complain.h.
1635 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1636 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1638 2001-08-03 Akim Demaille <akim@epita.fr>
1640 * src/reader.c (readgram): Display hidden chars in error messages.
1642 2001-08-03 Akim Demaille <akim@epita.fr>
1644 Update to gettext 0.10.39.
1646 2001-08-03 Akim Demaille <akim@epita.fr>
1648 * lib/strspn.c: New.
1650 2001-08-01 Marc Autret <autret_m@epita.fr>
1652 * doc/bison.texinfo: Update.
1653 * doc/bison.1 (mandoc): Update.
1654 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1655 * src/files.c: Support output files extensions computing.
1656 (src_extension): New static variable.
1657 (header_extension): New static variable.
1659 (get_extension_index): New function, gets the index of an extension
1660 filename in a string.
1661 (compute_exts_from_gf): New function, computes extensions from the
1662 grammar file extension.
1663 (compute_exts_from_src): New functions, computes extensions from the
1664 C source file extension, file given by ``-o'' option.
1665 (compute_base_names): Update.
1666 (output_files): Update.
1668 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1670 * doc/bison.texi: Document @$.
1671 (Locations): New section.
1673 2001-07-18 Akim Demaille <akim@epita.fr>
1675 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1676 * config/prev-version.txt, config/move-if-change: New.
1677 * Makefile.am: Adjust.
1679 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1681 * src/bison.simple (yyparse): Suppress warning `comparaison
1682 between signed and unsigned'.
1684 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1686 * src/getargs.h (raw_flag): Remove.
1687 * src/getargs.c: Die on `-r'/`--raw'.
1688 * src/lex.c (parse_percent_token): Die on `%raw'.
1689 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1690 * tests/calc.at: Suppress test with option `--raw'.
1692 2001-07-14 Akim Demaille <akim@epita.fr>
1695 * configure.in: Require Autoconf 2.50.
1696 Update to gettext 0.10.38.
1698 2001-03-16 Akim Demaille <akim@epita.fr>
1700 * doc/bison.texinfo: ANSIfy the examples.
1702 2001-03-16 Akim Demaille <akim@epita.fr>
1704 * getargs.c (skeleton): New variable.
1705 (longopts): --skeleton is a new option.
1706 (shortopts, getargs): -S is a new option.
1707 * getargs.h: Declare skeleton.
1708 * output.c (output_parser): Use it.
1710 2001-03-16 Akim Demaille <akim@epita.fr>
1712 * m4/strerror_r.m4: New.
1713 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1714 * lib/error.h, lib/error.c: Update.
1716 2001-03-16 Akim Demaille <akim@epita.fr>
1718 * src/getargs.c (longopts): Clean up.
1720 2001-02-21 Akim Demaille <akim@epita.fr>
1722 * src/reader.c (gensym): `gensym_count' is your own.
1723 Use a static buf to create the symbol name, as token_buffer is no
1726 2001-02-08 Akim Demaille <akim@epita.fr>
1728 * src/conflicts.c (conflict_report): Be sure not to append to res
1729 between two calls, which could happen if both first sprintf were
1730 skipped, but not the first cp += strlen.
1732 2001-02-08 Akim Demaille <akim@epita.fr>
1734 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1735 New, from fileutils 4.0.37.
1736 * configure.in: Require Autoconf 2.49c. I took some time before
1737 making this decision. This is the only way out for portability
1738 issues in Bison, it would mean way too much duplicate effort to
1739 import in Bison features implemented in 2.49c since 2.13.
1740 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1742 2001-02-02 Akim Demaille <akim@epita.fr>
1744 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1745 * lib/xalloc.h, lib/xmalloc.c: Update.
1747 2001-01-19 Akim Demaille <akim@epita.fr>
1749 Get rid of the ad hoc handling of token_buffer in the scanner: use
1752 * src/lex.c (token_obstack): New.
1753 (init_lex): Initialize it. No longer call...
1754 (grow_token_buffer): this. Remove it.
1755 Adjust all the places which used it to use the obstack.
1757 2001-01-19 Akim Demaille <akim@epita.fr>
1759 * src/lex.h: Rename all the tokens:
1760 s/\bENDFILE\b/tok_eof/g;
1761 s/\bIDENTIFIER\b/tok_identifier/g;
1763 Let them be enums, not #define, to ease debugging.
1764 Adjust all the code.
1766 2001-01-18 Akim Demaille <akim@epita.fr>
1768 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1769 * src/lex.c (maxtoken, grow_token_buffer): Static.
1771 2001-01-18 Akim Demaille <akim@epita.fr>
1773 Since we now use obstacks, more % directives can be enabled.
1775 * src/lex.c (percent_table): Also accept `%yacc',
1776 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1778 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1779 instead of returning a token.
1780 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1781 * src/reader.c (read_declarations): Adjust.
1782 * src/files.c (open_files): Don't call `compute_base_names', don't
1783 compute `attrsfile' since they depend upon data which might be
1784 *in* the input file now.
1785 (output_files): Do it here.
1786 * src/output.c (output_headers): Document the fact that this patch
1787 introduces a guaranteed SEGV for semantic parsers.
1788 * doc/bison.texinfo: Document them.
1789 * tests/suite.at: Exercise these %options.
1791 2000-12-20 Akim Demaille <akim@epita.fr>
1793 Also handle the output file (--verbose) with obstacks.
1795 * files.c (foutput): Remove.
1796 (output_obstack): New.
1797 Adjust all dependencies.
1798 * src/conflicts.c: Return a string.
1799 * src/system.h (obstack_grow_string): Rename as...
1800 (obstack_sgrow): this. Be ready to work with non literals.
1801 (obstack_fgrow4): New.
1803 2000-12-20 Akim Demaille <akim@epita.fr>
1805 * src/files.c (open_files): Fix the computation of short_base_name
1806 in the case of `-o foo.tab.c'.
1808 2000-12-20 Akim Demaille <akim@epita.fr>
1810 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1811 (copy_dollar): Now that everything uses obstacks, get rid of the
1814 2000-12-20 Akim Demaille <akim@epita.fr>
1816 * src/files.c (open_files): Actually the `.output' file is based
1817 on the short_base_name, not base_name.
1818 * tests/suite.at (Checking output file names): Adjust.
1820 2000-12-20 Akim Demaille <akim@epita.fr>
1822 * src/bison.s1: Remove, we now use directly...
1823 * src/bison.simple: this.
1824 * src/Makefile.am: Use pkgdata instead of data.
1826 2000-12-20 Akim Demaille <akim@epita.fr>
1828 * src/files.c (guard_obstack): New.
1829 (open_files): Initialize it.
1830 (output_files): Dump it...
1831 * src/files.h: Export it.
1832 * src/reader.c (copy_guard): Use it.
1834 2000-12-19 Akim Demaille <akim@epita.fr>
1836 * src/files.c (outfile, defsfile, actfile): Removed as global
1838 (open_files): Don't compute them.
1839 (output_files): Adjust.
1840 (base_name, short_base_name): Be global.
1841 Adjust dependencies.
1843 2000-12-19 Akim Demaille <akim@epita.fr>
1845 * src/files.c (strsuffix): New.
1846 (stringappend): Be just like strcat but allocate.
1847 (base_names): Eve out from open_files.
1848 Try to simplify the rather hairy computation of base_name and
1850 (open_files): Use it.
1851 * tests/suite.at (Checking output file names): New test.
1853 2000-12-19 Akim Demaille <akim@epita.fr>
1855 * src/system.h (obstack_grow_literal_string): Rename as...
1856 (obstack_grow_string): this.
1857 * src/output.c (output_parser): Recognize `%% actions' instead of
1859 * src/bison.s1: s/$/%% actions/.
1860 * src/bison.hairy: Likewise.
1862 2000-12-19 Akim Demaille <akim@epita.fr>
1864 * src/output.c (output_parser): Compute the `#line' lines when
1866 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1867 Suggested by Hans Aberg.
1869 2000-12-19 Akim Demaille <akim@epita.fr>
1871 Let the handling of the skeleton files be local to the procedures
1874 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1876 (fparser, open_extra_files): Remove.
1877 (open_files, output_files): Don't take care of fparser.
1878 * src/files.h: Adjust.
1879 * src/output.c (output_parser): Open and close the file to the
1881 * src/reader.c (read_declarations): When %semantic_parser, open
1884 2000-12-19 Akim Demaille <akim@epita.fr>
1886 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1887 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1889 2000-12-19 Akim Demaille <akim@epita.fr>
1891 * src/files.c (open_files): Yipee! We no longer need all the code
1892 looking for `/tmp' since we have no tmp file.
1894 2000-12-19 Akim Demaille <akim@epita.fr>
1896 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1898 * src/files.c (open_files): Less dependency on MSDOS etc.
1900 2000-12-14 Akim Demaille <akim@epita.fr>
1902 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1903 Provide a default definition.
1904 Use it when executing the default @ action.
1905 * src/reader.c (reader_output_yylsp): No longer include
1906 `timestamp' and `text' in the default YYLTYPE.
1908 2000-12-12 Akim Demaille <akim@epita.fr>
1910 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1911 (copy_guard): Quote the file names.
1912 Reported by Laurent Mascherpa.
1914 2000-12-12 Akim Demaille <akim@epita.fr>
1916 * src/output.c (output_headers, output_program, output): Be sure
1917 to escape special characters when outputting filenames.
1918 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1919 (output_headers): Don't depend on them, Use ACTSTR.
1921 2000-11-17 Akim Demaille <akim@epita.fr>
1923 * lib/obstack.h: Formatting changes.
1924 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1925 prevents type checking.
1926 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1927 cast the value to (void *): assigning a `foo *' to a `void *'
1929 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1930 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1933 2000-11-17 Akim Demaille <akim@epita.fr>
1935 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1937 (suite.m4, regression.m4, calc.m4): these.
1938 * tests/atgeneral.m4: Update from CVS Autoconf.
1940 2000-11-17 Akim Demaille <akim@epita.fr>
1942 * tests/regression.m4 (%union and --defines): New test,
1943 demonstrating a current bug in the obstack implementation.
1945 2000-11-17 Akim Demaille <akim@epita.fr>
1947 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1949 Use them to declare the variables which are global or local to
1952 2000-11-17 Akim Demaille <akim@epita.fr>
1954 * acconfig.h: Remove, no longer used.
1956 2000-11-07 Akim Demaille <akim@epita.fr>
1958 * src: s/Copyright (C)/Copyright/g.
1960 2000-11-07 Akim Demaille <akim@epita.fr>
1962 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1964 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1966 2000-11-07 Akim Demaille <akim@epita.fr>
1968 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1969 Merge in a single CPP if/else.
1971 2000-11-07 Akim Demaille <akim@epita.fr>
1973 * src/output.c (output): Remove useless variables.
1974 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1975 argument `data' for consistency with the prototypes.
1977 (obstack_copy, obstack_copy0): Rename the second argument as
1978 `address' for consistency. Qualify it `const'.
1979 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1980 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1981 `const' their input argument (`data' or `address').
1982 Adjust the corresponding macros to include `const' in casts.
1984 2000-11-03 Akim Demaille <akim@epita.fr>
1986 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1987 s/PFILE1/BISON_HAIRY/.
1988 Adjust dependencies.
1990 2000-11-03 Akim Demaille <akim@epita.fr>
1992 For some reason, this was not applied.
1994 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1995 `unlink': it's no longer used.
1997 2000-11-03 Akim Demaille <akim@epita.fr>
1999 * src/files.c (skeleton_find): New function, eved out of...
2000 (open_files, open_extra_files): here.
2002 2000-11-03 Akim Demaille <akim@epita.fr>
2006 * src/files.c (obstack_save): New function.
2007 (done): Rename as...
2008 (output_files): this.
2010 * src/main.c (main): Don't use `atexit' to register `done', since
2011 it no longer has to remove tmp files, just call `output_files'
2012 when there are no errors.
2014 2000-11-02 Akim Demaille <akim@epita.fr>
2016 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2017 `unlink': it's no longer used.
2018 * src/files.h: Formatting changes.
2020 2000-11-02 Akim Demaille <akim@epita.fr>
2022 Remove the last uses of mktemp and unlink/delete.
2024 * src/files.c (fdefines, ftable): Removed.
2025 (defines_ostack, table_obstack): New.
2026 Adjust dependencies of the former into uses of the latter.
2027 * src/output.c (output_short_or_char_table, output_short_table):
2028 Convert to using obstacks.
2029 * src/reader.c (copy_comment2): Accept one FILE * and two
2031 (output_token_defines, reader_output_yylsp): Use obstacks.
2032 * src/system.h (obstack_fgrow3): New.
2034 2000-11-01 Akim Demaille <akim@epita.fr>
2036 Change each use of `fattrs' into a use of `attrs_obstack'.
2038 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2039 * src/files.c (fattrs): Remove.
2040 (attrs_obstack): New.
2041 Adjust all dependencies.
2042 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2044 2000-11-01 Akim Demaille <akim@epita.fr>
2047 Change each use of `faction' into a use of `action_obstack'.
2049 * lib/obstack.h, lib/obstack.c: New files.
2050 * src/files.c (faction): Remove.
2051 (action_obstack): New.
2052 Adjust all dependencies.
2054 2000-10-20 Akim Demaille <akim@epita.fr>
2056 * lib/quote.h (PARAMS): New macro. Use it.
2058 2000-10-16 Akim Demaille <akim@epita.fr>
2060 * src/output.c (output_short_or_char_table): New function.
2061 (output_short_table, output_token_translations): Use it.
2062 (goto_actions): Use output_short_table.
2064 2000-10-16 Akim Demaille <akim@epita.fr>
2066 * src/symtab.c (bucket_new): New function.
2069 * src/output.c (output_short_table): New argument to display the
2070 comment associated with the table.
2071 Adjust dependencies.
2072 (output_gram): Use it.
2073 (output_rule_data): Nicer output layout for YYTNAME.
2075 2000-10-16 Akim Demaille <akim@epita.fr>
2077 * src/lex.c (read_typename): New function.
2079 * src/reader.c (copy_dollar): Likewise.
2081 2000-10-16 Akim Demaille <akim@epita.fr>
2083 * src/reader.c (copy_comment2): Expect the input stream to be on
2084 the `/' which is suspected to open a comment, instead of being
2085 called after `//' or `/*' was read.
2086 (copy_comment, copy_definition, parse_union_decl, copy_action)
2087 (copy_guard): Adjust.
2089 2000-10-16 Akim Demaille <akim@epita.fr>
2091 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2092 `read_signed_integer'.
2094 2000-10-16 Akim Demaille <akim@epita.fr>
2096 * src/reader.c (copy_dollar): New function.
2097 (copy_guard, copy_action): Use it.
2099 2000-10-16 Akim Demaille <akim@epita.fr>
2101 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2102 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2103 New files, from Fileutils 4.0.27.
2104 * src/main.c (printable_version): Remove.
2105 * src/lex.c, src/reader.c: Use `quote'.
2107 2000-10-04 Akim Demaille <akim@epita.fr>
2109 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2111 2000-10-04 Akim Demaille <akim@epita.fr>
2113 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2115 2000-10-04 Akim Demaille <akim@epita.fr>
2117 When a literal string is used to define two different tokens,
2118 `bison -v' segfaults.
2119 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2121 * tests/regression.m4: New file.
2122 Include the core of the sample provided by Piotr Gackiewicz.
2123 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2126 2000-10-04 Akim Demaille <akim@epita.fr>
2128 * src/reader.c (parse_expect_decl): Keep `count' within the size
2132 2000-10-02 Paul Eggert <eggert@twinsun.com>
2134 * bison.s1 (yyparse): Assign the default value
2135 unconditionally, to avoid a GCC warning and make the parser a
2138 2000-10-02 Akim Demaille <akim@epita.fr>
2140 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2143 2000-10-02 Akim Demaille <akim@epita.fr>
2145 * src/derives.c, src/print.c, src/reduce.c: To ease the
2146 translation, move some `\n' out of the translated strings.
2148 2000-10-02 Akim Demaille <akim@epita.fr>
2150 The location tracking mechanism is precious for parse error
2151 messages. Nevertheless, it is enabled only when `@n' is used in
2152 the grammar, which is a different issue (you can use it in error
2153 message, but not in the grammar per se). Therefore, there should
2154 be another means to enable it.
2156 * src/getargs.c (getargs): Support `--locations'.
2158 * src/getargs.h (locationsflag): Export it.
2159 * src/lex.c (percent_table): Support `%locations'.
2160 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2161 with `locationsflag'.
2162 * doc/bison.texinfo: Document `--locations' and `%locations'.
2164 * tests/calc.m4: Test it.
2166 For regularity of the names, replace each
2167 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2168 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2169 In addition replace each `flag' with `_flag'.
2171 2000-10-02 Akim Demaille <akim@epita.fr>
2173 Also test parse error messages, including with YYERROR_VERBOSE.
2175 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2177 Use it to check the computations.
2178 Use it to check `nonassoc' is honored.
2179 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2180 `--yyerror-verbose'.
2181 (_AT_CHECK_CALC): Adjust to this option.
2182 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2184 2000-10-02 Akim Demaille <akim@epita.fr>
2186 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2187 the latter demonstrates a flaw in the handling of non debugging
2188 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2189 was used in order to simplify:
2205 unfortunately this leads to a CPP conflict when
2206 `--name-prefix=foo' is used since it produces `#define yydebug
2209 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2210 (YYDPRINTF): New macro.
2212 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2214 Also test `--verbose', `--defines' and `--name-prefix'.
2216 2000-10-02 Akim Demaille <akim@epita.fr>
2218 Improve the readability of the produced parsers.
2220 * src/bison.s1: Formatting changes.
2221 Improve the comment related to the `$' mark.
2222 (yydefault): Don't fall through to `yyresume': `goto' there.
2223 * src/output.c (output_parser): When the `$' is met, skip the end
2225 New variable, `number_of_dollar_signs', to check there's exactly
2226 one `$' in the parser skeleton.
2228 2000-10-02 Akim Demaille <akim@epita.fr>
2230 * lib/xstrdup.c: New file, from the fileutils.
2231 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2232 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2233 instead of strlen + xmalloc + strcpy.
2234 * src/symtab.c (copys): Remove, use xstrdup instead.
2236 2000-10-02 Akim Demaille <akim@epita.fr>
2238 * src/gram.h (associativity): New enum type which replaces the
2239 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2240 `right_assoc', `left_assoc' and `non_assoc'.
2241 Adjust all dependencies.
2242 * src/reader.c: Formatting changes.
2243 (LTYPESTR): Don't define it, use it as a literal in
2244 `reader_output_yylsp'.
2245 * src/symtab.h (symbol_class): New enum type which replaces the
2246 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2247 `sunknown', `stoken and `snterm'.
2249 2000-10-02 Akim Demaille <akim@epita.fr>
2251 * src/getargs.c (fixed_outfiles): Rename as...
2252 (yaccflag): for consistency and accuracy.
2253 Adjust dependencies.
2255 2000-10-02 Akim Demaille <akim@epita.fr>
2257 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2258 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2259 difficult and introduced a lot of core dump. It turns out that
2260 Bison used an implementation of `xmalloc' based on `calloc', and
2261 at various places it does depend upon the initialization to 0. I
2262 have not tried to isolate the pertinent places, and all the former
2263 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2264 someone should address this issue.
2266 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2267 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2269 Adjust dependencies.
2270 * src/warshall.h: New file.
2273 2000-10-02 Akim Demaille <akim@epita.fr>
2275 Various anti-`extern in *.c' changes.
2277 * src/system.h: Include `assert.h'.
2279 2000-10-02 Akim Demaille <akim@epita.fr>
2281 * src/state.h (nstates, final_state, first_state, first_shift)
2282 (first_reduction): Move their exportation from here...
2283 * src/LR0.h: to here.
2284 Adjust dependencies.
2285 * src/getargs.c (statisticsflag): New variable.
2286 Add support for `--statistics'.
2287 Adjust dependencies.
2289 Remove a lot of now useless `extern' statements in most files.
2291 2000-10-02 Akim Demaille <akim@epita.fr>
2293 * src/LR0.h: New file.
2296 2000-10-02 Akim Demaille <akim@epita.fr>
2298 * src/print.h: New file.
2300 * src/print.c: Formatting and ordering changes.
2301 (verbose, terse): Replace with...
2302 (print_results): this new function.
2303 Adjust dependencies.
2305 2000-10-02 Akim Demaille <akim@epita.fr>
2307 * src/conflicts.c (conflict_report): New function.
2308 (conflict_log, verbose_conflict_log): Replace with...
2309 (print_conflicts): this function.
2310 Adjust dependencies.
2311 * src/conflicts.h: New file.
2312 Propagate its inclusion.
2314 2000-10-02 Akim Demaille <akim@epita.fr>
2316 * src/nullable.h: New file.
2317 Propagate its inclusion.
2318 * src/nullable.c: Formatting changes.
2320 2000-10-02 Akim Demaille <akim@epita.fr>
2322 * src/reduce.h: New file.
2323 Propagate its inclusion.
2324 * src/reduce.c: Topological sort and other formatting changes.
2325 (bool, TRUE, FALSE): Move their definition to...
2326 * src/system.h: here.
2328 2000-10-02 Akim Demaille <akim@epita.fr>
2330 * src/files.c: Formatting changes.
2331 (tryopen, tryclose, openfiles): Rename as...
2332 (xfopen, xfclose, open_files): this.
2333 (stringappend): static.
2334 * src/files.h: Complete the list of exported symbols.
2337 2000-10-02 Akim Demaille <akim@epita.fr>
2339 * src/reader.h: New file.
2340 Propagate its use instead of tedious list of `extern' and
2342 * src/reader.c: Formatting changes, topological sort,
2345 2000-10-02 Akim Demaille <akim@epita.fr>
2347 * src/lex.h: Prototype `lex.c' exported functions.
2348 * src/reader.c: Adjust.
2349 * src/lex.c: Formatting changes.
2350 (safegetc): Rename as...
2353 2000-10-02 Akim Demaille <akim@epita.fr>
2355 * src/lalr.h: New file.
2356 Propagate its inclusion instead of prototypes and `extern'.
2357 * src/lalr.c: Formatting changes, topological sorting etc.
2359 2000-10-02 Akim Demaille <akim@epita.fr>
2361 * src/output.c (token_actions): Introduce a temporary array,
2362 YYDEFACT, that makes it possible for this function to use
2365 2000-10-02 Akim Demaille <akim@epita.fr>
2367 `user_toknums' is output as a `short[]' in `output.c', while it is
2368 defined as a `int[]' in `reader.c'. For consistency with the
2369 other output tables, `user_toknums' is now defined as a table of
2372 * src/reader.c (user_toknums): Be a short table instead of an int
2374 Adjust dependencies.
2376 Factor the short table outputs.
2378 * src/output.c (output_short_table): New function.
2379 * src/output.c (output_gram, output_stos, output_rule_data)
2380 (output_base, output_table, output_check): Use it.
2382 2000-10-02 Akim Demaille <akim@epita.fr>
2384 * src/output.c (output): Topological sort of the functions, in
2385 order to get rid of the `static' prototypes.
2386 No longer use `register'.
2387 * src/output.h: New file.
2388 Propagate its inclusion in files explicitly prototyping functions
2391 2000-09-21 Akim Demaille <akim@epita.fr>
2393 * src/atgeneral.m4: Update from Autoconf.
2395 2000-09-21 Akim Demaille <akim@epita.fr>
2397 * src/closure.h: New file.
2398 * src/closure.c: Formatting changes, topological sort over the
2399 functions, use of closure.h.
2400 (initialize_closure, finalize_closure): Rename as...
2401 (new_closure, free_closure): these. Adjust dependencies.
2402 * src/LR0.c: Formatting changes, topological sort, use of
2404 (initialize_states): Rename as...
2406 * src/Makefile.am (noinst_HEADERS): Adjust.
2408 2000-09-20 Akim Demaille <akim@epita.fr>
2410 * src/acconfig.h: Don't protect config.h against multiple
2412 Don't define PARAMS.
2413 * src/system.h: Define PARAMS.
2414 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2415 purpose of config.h. system.h must not try to fix wrong
2416 definitions in config.h.
2418 2000-09-20 Akim Demaille <akim@epita.fr>
2420 * src/derives.h: New file.
2421 * src/main.c, src/derives.h: Use it.
2423 * src/Makefile.am (noinst_HEADERS): Adjust.
2425 2000-09-20 Akim Demaille <akim@epita.fr>
2427 * tests/atgeneral.m4: Update from Autoconf.
2428 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2429 (AT_CHECK_CALC): New macros.
2430 Use these macros to test bison with options `', `--raw',
2431 `--debug', `--yacc', `--yacc --debug'.
2433 2000-09-19 Akim Demaille <akim@epita.fr>
2435 * src/output.c: Formatting changes.
2436 * src/machine.h: Remove, leaving its contents in...
2437 * src/system.h: here.
2439 Adjust all dependencies on stdio.h and machine.h.
2440 * src/getargs.h: New file.
2441 Let all `extern' declarations about getargs.c be replaced with
2442 inclusion of `getargs.h'.
2443 * src/Makefile.am (noinst_HEADERS): Adjust.
2445 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2447 (yyerror): Returns void, not int.
2448 * doc/bison.texinfo: Formatting changes.
2450 2000-09-19 Akim Demaille <akim@epita.fr>
2452 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2455 2000-09-18 Akim Demaille <akim@epita.fr>
2457 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2458 * src/Makefile.am (INCLUDES): Don't.
2459 Be ready to fetch headers in lib/.
2461 2000-09-18 Akim Demaille <akim@epita.fr>
2463 * doc/bison.texinfo: Update the copyright.
2464 ANSIfy and GNUify the examples.
2465 Remove the old menu.
2467 2000-09-18 Akim Demaille <akim@epita.fr>
2469 First set of tests: use the `calc' example from the documentation.
2471 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2472 is defined only when YYDEBUG is.
2473 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2474 * src/files.c (tryopen, tryclose): Formatting changes.
2475 Move to the top and be static.
2476 * src/reader.c (read_signed_integer): Likewise.
2477 * tests/calc.m4: New file.
2478 * Makefile.am, suite.m4: Adjust.
2479 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2481 2000-09-18 Akim Demaille <akim@epita.fr>
2483 Add support for an Autotest test suite for Bison.
2485 * m4/m4.m4, m4/atconfig.m4: New files.
2486 * m4/Makefile.am (EXTRA_DIST): Adjust.
2487 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2489 * src/getargs.c: Display a more standard --version message.
2490 * src/reader.c (reader): Formatting changes.
2491 No longer depend upon VERSION_STRING.
2492 * configure.in: No longer use `dnl'.
2493 Set up the test suite and the new directory `tests/.
2494 (VERSION_STRING): Remove.
2496 2000-04-14 Akim Demaille <akim@epita.fr>
2498 * src/reader.c (copy_comment2): New function, same as former
2499 `copy_comment', but outputs into two FILE *.
2500 (copy_comment): Use it.
2501 (parse_union_decl): Use it.
2502 (get_type, parse_start_decl): Use the same `invalid' message.
2503 (parse_start_decl, parse_union_decl): Use the same `multiple'
2505 (parse_union_decl, copy_guard, copy_action): Use the same
2506 `unmatched' message.
2507 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2509 2000-03-31 Akim Demaille <akim@epita.fr>
2511 * src/files.c (tryopen, tryclose): Move to the top.
2514 2000-03-31 Akim Demaille <akim@epita.fr>
2516 * src/main.c (main): Don't call `done', exit does it.
2518 2000-03-31 Akim Demaille <akim@epita.fr>
2520 * allocate.c: s/return (foo)/return foo/.
2523 * output.c: Likewise.
2524 * reader.c: Likewise.
2525 * symtab.c: Likewise.
2526 * vmsgetargs.c: Likewise.
2528 2000-03-31 Akim Demaille <akim@epita.fr>
2530 Clean up the error reporting functions.
2532 * src/report.c: New file.
2533 * src/report.h: Likewise.
2534 * src/Makefile.am: Adjust.
2535 * m4/error.m4: New file.
2536 * m4/Makefile.am: Adjust.
2537 * configure.in (jm_PREREQ_ERROR): Call it.
2538 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2540 (fatal, fatals): Remove. All callers use complain.c::fatal.
2541 (warn, warni, warns, warnss, warnss): Remove. All callers use
2542 complain.c::complain.
2543 (toomany): Remove, use fatal instead.
2544 * src/files.c (done): No argument, use complain_message_count.
2545 * src/main.c (main): Register `done' to `atexit'.
2547 * src/getargs.c (usage): More `fputs', less `fprintf'.
2549 2000-03-28 Akim Demaille <akim@epita.fr>
2551 * lib/: New directory.
2552 * Makefile.am (SUBDIRS): Adjust.
2553 * configure.in: Adjust.
2554 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2556 * src/alloca.c: Moved to lib/.
2557 * src/getopt.c: Likewise.
2558 * src/getopt1.c: Likewise.
2559 * src/getopt.h: Likewise.
2560 * src/ansi2knr.c: Likewise.
2561 * src/ansi2knr.1: Likewise.
2562 * src/Makefile.am: Adjust.
2563 * lib/Makefile.am: New file.
2565 2000-03-28 Akim Demaille <akim@epita.fr>
2567 * src/getargs.c (usage): Refresh the help message.
2569 2000-03-17 Akim Demaille <akim@epita.fr>
2571 * src/getopt1.c: Updated from textutils 2.0e
2572 * src/getopt.c: Likewise.
2573 * src/getopt.h: Likewise.
2575 2000-03-17 Akim Demaille <akim@epita.fr>
2577 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2578 the file name, not the whole `#line LINE FILE'.
2580 2000-03-17 Akim Demaille <akim@epita.fr>
2582 On syntax errors, report the token on which we choked.
2584 * src/bison.s1 (yyparse): In the label yyerrlab, when
2585 YYERROR_VERBOSE, add yychar in msg.
2587 2000-03-17 Akim Demaille <akim@epita.fr>
2589 * src/reader.c (copy_at): New function.
2590 (copy_guard): Use it.
2591 (copy_action): Use it.
2593 2000-03-17 Akim Demaille <akim@epita.fr>
2595 Be kind to translators, save some useless translations.
2597 * src/main.c (banner): New function.
2598 (fatal_banner): Use it.
2599 (warn_banner): Use it.
2601 2000-03-17 Akim Demaille <akim@epita.fr>
2603 * src/reader.c (copy_definition): Use copy_string and
2604 copy_comment. Removed now unused `match', `ended',
2606 (copy_comment, copy_string): Moved, to be visible from
2609 2000-03-17 Akim Demaille <akim@epita.fr>
2611 * src/reader.c (copy_string): Declare `static inline'. No
2612 problems with inline, since it is checked by configure.
2613 (copy_comment): Likewise.
2615 2000-03-17 Akim Demaille <akim@epita.fr>
2617 * src/reader.c (packsymbols): Formatting changes.
2619 2000-03-17 Akim Demaille <akim@epita.fr>
2621 * src/reader.c (copy_comment): New function, factored out from:
2622 (copy_action): Use it. Removed now unused `match', `ended',
2624 (copy_guard): Likewise.
2626 2000-03-17 Akim Demaille <akim@epita.fr>
2628 * src/reader.c (copy_string): New function, factored out from:
2629 (copy_action): Use it.
2630 (copy_guard): Likewise.
2632 2000-03-17 Akim Demaille <akim@epita.fr>
2634 Change the handling of @s so that they behave exactly like $s.
2635 There is now a pseudo variable @$ (readble and writable), location
2636 of the lhs of the rule (by default ranging from the location of
2637 the first symbol of the rhs, to the location of the last symbol,
2638 or, if the rhs is empty, YYLLOC).
2640 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2642 (yyparse): When providing a default semantic action, provide a
2643 default location action.
2644 (after the $): No longer change `*YYLSP', just stack YYLOC the
2645 same way you stack YYVAL.
2646 * src/reader.c (read_declarations): Use warns.
2647 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2648 (copy_action, case '@'): Likewise.
2649 Use a standard error message, to save useless work from
2652 2000-03-17 Akim Demaille <akim@epita.fr>
2654 * src/bison.s1: Formatting and cosmetics changes.
2655 * src/reader.c: Likewise.
2656 Update the Copyright notice.
2658 2000-03-17 Akim Demaille <akim@epita.fr>
2660 * src/bison.s1 (#line): All set to `#line' only, since the
2661 Makefile now handles them.
2663 2000-03-16 Akim Demaille <akim@epita.fr>
2665 * src/output.c (output_rule_data): Output the documentation of
2667 (Copyright notice): Update.
2670 2000-03-16 Akim Demaille <akim@epita.fr>
2672 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2673 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2674 One `#if YYDEBUG' remains, since it uses variables which are
2675 defined only if `YYDEBUG != 0'.
2677 2000-03-16 Akim Demaille <akim@epita.fr>
2679 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2680 and related variables so that the similarities are highlighted.
2682 2000-03-16 Akim Demaille <akim@epita.fr>
2684 * src/bison.s1: Properly indent CPP directives.
2686 2000-03-16 Akim Demaille <akim@epita.fr>
2688 * src/bison.s1: Properly indent the `alloca' CPP section.
2690 2000-03-16 Akim Demaille <akim@epita.fr>
2692 Do not hard code values of directories in `configure.in'.
2693 Update the `configure' tool chain.
2695 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2697 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2698 (AC_OUTPUT): Add m4/Makefile.
2699 Bump to bison 1.28a, 1.29 has never been released.
2700 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2701 handled via src/Makefile.am.
2702 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2703 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2705 * Makefile.am (SUBDIRS): Add m4.
2706 (ACLOCAL_AM_FLAGS): New variable.
2707 (AUTOMAKE_OPTIONS): Add check-news.
2708 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2709 the proper line number and file name.
2710 (DEFS): Propagate the location of bison library files and of the
2712 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2714 * acinclude.m4: Remove, replaced by the directory m4.
2715 * m4/Makefile.am (EXTRA_DIST): New variable.
2716 * m4/gettext.m4: New file, from the fileutils.
2717 * m4/lcmessage.m4: Likewise
2718 * m4/progtest.m4: Likewise.
2719 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2721 2000-03-10 Akim Demaille <akim@epita.fr>
2724 Formatting changes of various comments.
2725 Respect the GNU coding standards at various places.
2726 Don't use `_()' when no translation is needed.
2728 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2731 OS/2 honors TMPDIR environment variable.
2733 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2735 * doc/bison.texinfo: Tweaked spelling and grammar.
2737 Removed reference to price of printed copy.
2738 Mention BISON_SIMPLE and BISON_HAIRY.
2740 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2742 * configure.in, NEWS:
2743 Bison 1.29 released.
2745 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2747 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2748 Added reference card.
2750 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2752 * po/ru.po: Added Russian translation.
2754 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2756 * configure.in: Added Russian translation.
2758 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2760 * configure.in, NEWS, README:
2761 Released version 1.28.
2763 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2766 Squashed redefinition warning on some systems.
2768 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2769 Have configure build version string instead of relying on ANSI string
2772 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2774 * po/POTFILES.in: Got rid of version.c.
2776 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2778 * acconfig.h, configure.in:
2779 Have configure build version string instead of relying on ANSI string
2782 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2785 Dropped mention of `+' for long-named options.
2787 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2789 * src/files.c: Added <unistd.h> for unlink().
2791 * src/Makefile.am, src/system.h:
2794 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2796 * README: Added a FAQ list.
2798 * configure.in, acconfig.h:
2801 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2803 * doc/FAQ, doc/Makefile.am:
2806 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2808 * src/alloc.h, src/symtab.h, src/version.c:
2809 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2811 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2813 * src/.cvsignore, src/Makefile.am:
2814 Reorganized: sources in `src', documentation in `doc'.
2816 * src/lex.c (literalchar):
2817 fixed the code for escaping double quotes (thanks
2820 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2822 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2823 Adjusted paths to reflect directory reorganization.
2825 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2827 * doc/.cvsignore, doc/Makefile.am:
2828 Reorganized: sources in `src', documentation in `doc'.
2830 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2833 Updated AC_INIT file to reflect directory reorganization.
2835 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2836 Reorganized: sources in `src', documentation in `doc'.
2838 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2841 Don't declare calloc() and realloc() if not necessary.
2843 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2845 * configure.in, acconfig.h, acinclude.m4:
2846 Don't declare calloc() and realloc() if not necessary.
2848 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2850 * po/.cvsignore: Added i18n support.
2852 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2854 * acconfig.h, configure.in, Makefile.am:
2857 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2859 * src/bison.s1: Fixed #line numbers.
2861 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2863 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2864 Added PO files from Translation Project.
2866 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2869 Added support for non-ANSI compilers (ansi2knr).
2871 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2873 * configure.in: Bumped version number to 1.27.
2876 Added `bison.simple' to list of files removed by `make distclean'.
2878 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2880 * src/files.c, src/files.h:
2881 Defined locations of parser files in config.h instead of Makefile.
2883 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2885 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2886 Defined locations of parser files in config.h instead of Makefile.
2888 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2891 Removed inappropriate use of $< macro.
2893 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2895 * po/Makefile.in.in, po/POTFILES.in:
2896 Add `po' directory skeleton.
2898 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2900 * README: Document help-bison list.
2902 * configure.in: Add check for mkstemp().
2904 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2906 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2907 Hush a few compiler warnings.
2910 Add tryclose(), which verifies that fclose was successful.
2911 Hush a couple of compiler warnings.
2913 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2915 * Makefile.am, OChangeLog:
2916 ChangeLog is now automatically generated. Include the old version as
2919 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2921 * 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:
2924 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2926 * doc/bison.texinfo: Fix formatting glitch.
2928 * doc/bison.texinfo: Update FSF address.
2930 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2932 * acconfig.h: Update FSF address.
2934 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2937 Don't define PACKAGE here, since config.h defines it.
2939 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2941 * src/reader.c: Update copyright date.
2944 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2945 favor of output directly to stderr (avoids buffer overruns).
2947 * src/reader.c: Some checks for premature EOF.
2949 * 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:
2950 Use prototypes if the compiler understands them.
2952 * src/files.c: Honor TMPDIR on Unix hosts.
2953 Use prototypes if the compiler understands them.
2956 Fix a couple of buffer overrun bugs.
2957 Use prototypes if the compiler understands them.
2959 * src/system.h: Include unistd.h and ctype.h.
2960 Use #ifdef instead of #if for NLS symbols.
2962 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2964 * doc/bison.texinfo:
2965 Delete comment "consider using @set for edition number, etc..." since
2966 we now are doing so.
2968 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2971 Use prototypes if the compiler understands them.
2973 * NEWS: Document 1.26 highlights.
2975 * Makefile.am: Require Automake 1.3 or later.
2978 Use prototypes if the compiler understands them.
2980 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2983 Use VERSION symbol from automake for version number.
2985 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2987 * acconfig.h, configure.in, version.cin:
2988 Use VERSION symbol from automake for version number.
2990 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2993 Distribute original version of simple parser (bison.s1), not built
2994 version (bison.simple).
2996 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2998 * doc/bison.texinfo: Add info dir entry.
3000 * doc/bison.texinfo:
3001 Let automake put version number into documentation.
3003 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3005 * src/bison.cld, src/build.com, src/vmshlp.mar:
3006 Add non-RCS files from /gd/gnu/bison.
3008 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3011 Document the BISON_HAIRY and BISON_SIMPLE variables.
3013 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3015 * src/version.c: Build version.c automatically.
3018 Fix token numbering (used to start at 258, not 257).
3020 * src/system.h: Include config.h.
3022 * src/getargs.c: Update bug report address.
3024 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3025 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3027 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3030 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3032 * configure.in, version.cin:
3033 Build version.c automatically.
3035 * AUTHORS: Add AUTHORS file.
3037 * README: Update bug report address.
3040 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3042 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3045 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3047 * doc/bison.texinfo: Clean up some formatting.
3049 1998-05-05 Richard Stallman <rms@gnu.org>
3051 * doc/bison.texinfo:
3052 Explain better why to make a pure parser.
3054 1998-01-05 Richard Stallman <rms@gnu.org>
3056 * src/files.c (openfiles):
3057 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3058 find a temporary directory, if possible. Do not unlink files while
3061 1997-08-25 Richard Stallman <rms@gnu.org>
3063 * src/reader.c (stack_offset;):
3064 Change some warni to warns.
3066 * src/lex.c (literalchar): Use warns, not warni.
3068 1997-06-28 Richard Stallman <rms@gnu.org>
3070 * src/bison.s1: Add a Bison version comment.
3072 * src/main.c (fatal, warn, berror):
3075 1997-06-28 Richard Stallman <rms@gnu.org>
3077 * Makefile.in (bison_version): New variable.
3078 (dist): Use that variable.
3079 (bison.s1): Substitute the Bison version into bison.simple.
3081 * bison.simple: Add a Bison version comment.
3083 1997-06-18 Richard Stallman <rms@gnu.org>
3085 * src/main.c (fatal, warn, berror):
3086 Make error messages standard.
3087 (toomany): Improve error message text.
3089 * 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:
3090 new.h renamed to alloc.h.
3092 1997-06-18 Richard Stallman <rms@gnu.org>
3094 * Makefile.in: new.h renamed to alloc.h.
3096 1997-05-24 Richard Stallman <rms@gnu.org>
3098 * src/lex.c (literalchar):
3099 Fix the code for escaping \, " and '.
3101 (lex): Avoid trouble when there are many chars
3102 to discard in a char literal with just several chars in it.
3104 1997-05-17 Richard Stallman <rms@gnu.org>
3107 Use malloc, if using alloca is troublesome.
3108 (YYSTACK_USE_ALLOCA): New flag macro.
3109 Define it for some systems and compilers.
3110 (YYSTACK_ALLOC): New macro.
3111 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3112 If it was malloc'd, free it.
3114 1997-05-17 Richard Stallman <rms@gnu.org>
3117 Use malloc, if using alloca is troublesome.
3118 (YYSTACK_USE_ALLOCA): New flag macro.
3119 Define it for some systems and compilers.
3120 (YYSTACK_ALLOC): New macro.
3121 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3122 If it was malloc'd, free it.
3124 1997-04-23 Richard Stallman <rms@gnu.org>
3127 (alloca) [__hpux]: Always define as __builtin_alloca.
3129 1997-04-23 Richard Stallman <rms@gnu.org>
3132 (alloca) [__hpux]: Always define as __builtin_alloca.
3134 1997-04-22 Richard Stallman <rms@gnu.org>
3137 [__hpux]: Include alloca.h (right for HPUX 10)
3138 instead of declaring alloca (right for HPUX 9).
3140 * src/bison.s1 (__yy_memcpy):
3141 Declare arg `count' as unsigned int.
3142 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3144 1997-04-22 Richard Stallman <rms@gnu.org>
3147 [__hpux]: Include alloca.h (right for HPUX 10)
3148 instead of declaring alloca (right for HPUX 9).
3150 * bison.simple (__yy_memcpy):
3151 Declare arg `count' as unsigned int.
3152 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3154 1997-01-03 Richard Stallman <rms@gnu.org>
3156 * src/allocate.c: [__STDC__ or _MSC_VER]:
3157 Declare calloc and realloc to return void *.
3159 1997-01-02 Richard Stallman <rms@gnu.org>
3162 [_MSC_VER]: Include stdlib.h and process.h.
3163 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3165 * src/main.c (main): Return FAILURE as a value.
3166 (printable_version): Declare arg as int, not char.
3168 1997-01-02 Richard Stallman <rms@gnu.org>
3170 * Makefile.in (dist):
3171 Explicitly check for symlinks, and copy them.
3173 1996-12-19 Richard Stallman <rms@gnu.org>
3176 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3178 1996-12-18 Paul Eggert <eggert@gnu.org>
3180 * src/bison.s1 (yyparse):
3181 If __GNUC__ and YYPARSE_PARAM are both defined,
3182 declare yyparse to have a void * argument.
3184 1996-12-18 Paul Eggert <eggert@gnu.org>
3186 * bison.simple (yyparse):
3187 If __GNUC__ and YYPARSE_PARAM are both defined,
3188 declare yyparse to have a void * argument.
3190 1996-12-17 Richard Stallman <rms@gnu.org>
3192 * src/reduce.c (nbits): Add some casts.
3194 1996-08-12 Richard Stallman <rms@gnu.org>
3196 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3198 1996-08-12 Richard Stallman <rms@gnu.org>
3200 * bison.simple: Test _MSDOS as well as _MSDOS_.
3202 1996-07-31 Richard Stallman <rms@gnu.org>
3205 [__sun && __i386]: Include alloca.h.
3207 1996-07-31 Richard Stallman <rms@gnu.org>
3210 [__sun && __i386]: Include alloca.h.
3212 1996-07-30 Richard Stallman <rms@gnu.org>
3214 * src/bison.s1: Comment change.
3216 * src/bison.s1: Test _MSDOS_, not MSDOS.
3218 1996-07-30 Richard Stallman <rms@gnu.org>
3220 * bison.simple: Comment change.
3222 * bison.simple: Test _MSDOS_, not MSDOS.
3224 1996-06-01 Richard Stallman <rms@gnu.org>
3226 * 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:
3227 Insert `_' macro around many string constants.
3230 Insert `_' macro around many string constants.
3232 (main): Call setlocale, bindtextdomain and textdomain.
3234 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3235 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3236 [ENABLE_NLS]: Include libintl.h.
3237 [ENABLE_NLS] (gettext): Define.
3238 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3239 (N_, PACKAGE, LOCALEDIR): New macros.
3241 1996-06-01 Richard Stallman <rms@gnu.org>
3243 * POTFILES.in: New file.
3245 * Makefile.in (allocate.o):
3246 Define target explicitly.
3248 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3249 (LDFLAGS): Set to @LDFLAGS@.
3250 (configure): Run autoconf only if preceding `cd' succeeds.
3251 (bison.s1): Redirect output to temporary file then move the
3252 temporary to the target, rather than redirecting directly to bison.s1.
3253 (clean): Remove config.status and config.log.
3254 (distclean): Don't remove config.status here.
3256 1996-05-12 Richard Stallman <rms@gnu.org>
3259 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3261 1996-05-12 Richard Stallman <rms@gnu.org>
3264 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3266 1996-05-11 Richard Stallman <rms@gnu.org>
3268 * src/bison.s1 (__yy_memcpy):
3269 Really reorder the args, as was supposedly done on Feb 14 1995.
3270 (yyparse): Calls changed accordingly.
3272 1996-05-11 Richard Stallman <rms@gnu.org>
3274 * Makefile.in (dist): Don't use $(srcdir).
3276 * bison.simple (__yy_memcpy):
3277 Really reorder the args, as was supposedly done on Feb 14 1995.
3278 (yyparse): Calls changed accordingly.
3280 1996-01-27 Richard Stallman <rms@gnu.org>
3282 * src/output.c (output_rule_data):
3283 Test YYERROR_VERBOSE in the conditional
3284 around the definition of ttyname.
3286 1995-12-29 Richard Stallman <rms@gnu.org>
3289 Fix line numbers in #line commands.
3291 1995-12-29 Richard Stallman <rms@gnu.org>
3294 Fix line numbers in #line commands.
3296 1995-12-27 Richard Stallman <rms@gnu.org>
3298 * src/bison.s1 (YYPARSE_PARAM_DECL):
3299 In C++, make it always null.
3300 (YYPARSE_PARAM_ARG): New macro.
3301 (yyparse): Use YYPARSE_PARAM_ARG.
3303 1995-12-27 Richard Stallman <rms@gnu.org>
3305 * bison.simple (YYPARSE_PARAM_DECL):
3306 In C++, make it always null.
3307 (YYPARSE_PARAM_ARG): New macro.
3308 (yyparse): Use YYPARSE_PARAM_ARG.
3310 1995-11-29 Richard Stallman <rms@gnu.org>
3312 * doc/bison.texinfo:
3313 Describe literal string tokens, %raw, %no_lines, %token_table.
3315 1995-11-29 Daniel Hagerty <hag@gnu.org>
3317 * doc/bison.texinfo: Fixed update date
3319 1995-10-16 Richard Stallman <rms@gnu.org>
3321 * src/version.c: Version 1.25.
3323 1995-10-16 Richard Stallman <rms@gnu.org>
3325 * NEWS: *** empty log message ***
3327 1995-10-16 Richard Stallman <rms@gnu.org>
3329 * doc/bison.1, doc/bison.rnh:
3332 1995-10-15 Richard Stallman <rms@gnu.org>
3334 * src/vmsgetargs.c, src/getargs.c:
3335 Added -n, -k, and -raw switches.
3336 (noparserflag, toknumflag, rawtoknumflag): New variables.
3338 * src/symtab.h (SALIAS):
3339 New #define for adding aliases to %token.
3340 (struct bucket): Added `alias' field.
3342 * src/reduce.c (reduce_grammar):
3343 Revise error message.
3344 (print_notices): Remove final `.' from error message.
3346 * src/reader.c (reader_output_yylsp):
3348 (readgram): Use `#if 0' around code that accepted %command
3349 inside grammar rules: The documentation doesn't allow it,
3350 and it will fail since the %command processors scan for the next %.
3351 (parse_token_decl): Extended the %token
3352 declaration to allow a multi-character symbol as an alias.
3353 (parse_thong_decl): New function.
3354 (read_declarations): Added %thong declarations.
3355 (read_declarations): Handle NOOP to deal with allowing
3356 % declarations as another means to specify the flags.
3357 (readgram): Allow %prec prior to semantics embedded in a rule.
3358 (skip_to_char, read_declarations, copy_definition)
3359 (parse_token_decl, parse_start_decl, parse_type_decl)
3360 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3361 (get_type_name, copy_guard, copy_action, readgram)
3362 (get_type, packsymbols): Revised most error messages.
3363 Changed `fatal' to `warnxxx' to avoid aborting for error.
3364 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3365 (read_declarations): Improve the error message for
3366 an invalid character. Do not abort.
3367 (read_declarations, copy_guard, copy_action): Use
3368 printable_version to avoid unprintable characters in printed output.
3369 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3370 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3371 Allow the type of a non-terminal can be given
3372 more than once, as long as all specifications give the same type.
3375 (output_headers, output_trailers, output, output_gram)
3376 (output_rule_data): Implement noparserflag variable.
3377 Implement toknumflag variable.
3378 (output): Call reader_output_yylsp to output LTYPESTR.
3380 * src/main.c (main):
3381 If reader sees an error, don't process the grammar.
3382 (fatals): Updated to not use VARARGS1.
3383 (printable_version, int_to_string, warn, warni, warns, warnss)
3384 (warnsss): New error reporting functions. Avoid abort for error.
3387 Added THONG and NOOP for alias processing.
3388 Added SETOPT for the new code that allows setting options with %flags.
3391 Include getopt.h. Add some extern decls.
3392 (safegetc): New function to deal with EOF gracefully.
3393 (literalchar); new function to deal with reading \ escapes.
3394 (lex): Use literalchar.
3395 (lex): Implemented "..." tokens.
3396 (literalchar, lex, parse_percent_token): Made tokenbuffer
3397 always contain the token. This includes growing the token
3398 buffer while reading an integer.
3399 (parse_percent_token): Replaced if-else statement with percent_table.
3400 (parse_percent_token): Added % declarations as another
3401 way to specify the flags -n, -l, and -r. Also added hooks for
3402 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3403 major changes to files.c.
3404 (lex) Retain in the incoming stream a character following
3406 (skip_white_space, lex): Revised most error messages
3407 and changed fatal to warn to avoid aborting.
3408 (percent_table): Added %thong declarations.
3410 * src/gram.h: Comment changes.
3412 * src/files.c (openfiles, open_extra_files, done):
3414 and actfile file. Handle noparserflag. Both for -n switch.
3416 * src/conflicts.c (resolve_sr_conflict):
3417 Remove use of alloca.
3419 1995-06-01 Jim Meyering <meyering@gnu.org>
3421 * doc/bison.texinfo: *** empty log message ***
3423 1995-05-06 Richard Stallman <rms@gnu.org>
3425 * src/bison.s1: Comment change.
3427 1995-05-06 Richard Stallman <rms@gnu.org>
3429 * bison.simple: Comment change.
3431 1995-05-03 Richard Stallman <rms@gnu.org>
3433 * src/version.c: Version now 1.24.
3435 * src/bison.s1: Change distribution terms.
3437 * src/version.c: Version now 1.23.
3439 1995-05-03 Richard Stallman <rms@gnu.org>
3441 * doc/bison.texinfo:
3442 Rewrite "Conditions for Using Bison".
3443 Update version to 1.24.
3445 1995-05-03 Richard Stallman <rms@gnu.org>
3447 * bison.simple: Change distribution terms.
3449 1995-02-23 Richard Stallman <rms@gnu.org>
3451 * src/files.c: Test __VMS_POSIX as well as VMS.
3453 1995-02-14 Jim Meyering <meyering@gnu.org>
3455 * src/bison.s1 (__yy_memcpy):
3456 Renamed from __yy_bcopy to avoid
3457 confusion. Reverse FROM and TO arguments to be consistent with
3460 1995-02-14 Jim Meyering <meyering@gnu.org>
3462 * bison.simple (__yy_memcpy):
3463 Renamed from __yy_bcopy to avoid
3464 confusion. Reverse FROM and TO arguments to be consistent with
3467 1994-11-10 David J. MacKenzie <djm@gnu.org>
3473 * Makefile.in (DISTFILES): Include NEWS.
3475 * Makefile.in (DISTFILES):
3476 Include install-sh, not install.sh.
3478 * configure.in: Update to Autoconf v2 macro names.
3480 1994-10-05 David J. MacKenzie <djm@gnu.org>
3482 * Makefile.in: fix typo
3484 * Makefile.in (prefix, exec_prefix):
3485 Let configure set them.
3487 1994-09-28 David J. MacKenzie <djm@gnu.org>
3489 * Makefile.in: Set datadir to $(prefix)/share.
3491 1994-09-15 Richard Stallman <rms@gnu.org>
3494 Update copyright notice and GPL version.
3496 1994-09-15 Richard Stallman <rms@gnu.org>
3499 Update copyright notice and GPL version.
3501 1994-07-12 Richard Stallman <rms@gnu.org>
3503 * src/reduce.c, src/reader.c:
3506 1994-05-05 David J. MacKenzie <djm@gnu.org>
3508 * Makefile.in: entered into RCS
3510 1994-03-26 Richard Stallman <rms@gnu.org>
3512 * src/bison.s1: entered into RCS
3514 1994-03-26 Richard Stallman <rms@gnu.org>
3516 * bison.simple: entered into RCS
3518 1994-03-25 Richard Stallman <rms@gnu.org>
3520 * src/main.c: entered into RCS
3522 1994-03-24 Richard Stallman <rms@gnu.org>
3524 * src/conflicts.c: entered into RCS
3526 1994-01-02 Richard Stallman <rms@gnu.org>
3528 * Makefile.in: *** empty log message ***
3530 1993-11-21 Richard Stallman <rms@gnu.org>
3532 * src/bison.s1: *** empty log message ***
3534 1993-11-21 Richard Stallman <rms@gnu.org>
3536 * doc/bison.texinfo: entered into RCS
3538 * doc/bison.texinfo: *** empty log message ***
3540 1993-11-21 Richard Stallman <rms@gnu.org>
3542 * bison.simple: *** empty log message ***
3544 1993-10-25 David J. MacKenzie <djm@gnu.org>
3546 * doc/bison.texinfo: *** empty log message ***
3548 1993-10-19 Richard Stallman <rms@gnu.org>
3550 * src/bison.s1: *** empty log message ***
3552 1993-10-19 Richard Stallman <rms@gnu.org>
3554 * bison.simple: *** empty log message ***
3556 1993-10-14 Richard Stallman <rms@gnu.org>
3558 * src/bison.s1: *** empty log message ***
3560 1993-10-14 Richard Stallman <rms@gnu.org>
3562 * bison.simple: *** empty log message ***
3564 1993-09-14 David J. MacKenzie <djm@gnu.org>
3566 * doc/bison.texinfo: *** empty log message ***
3568 1993-09-13 Noah Friedman <friedman@gnu.org>
3570 * Makefile.in: *** empty log message ***
3572 1993-09-10 Richard Stallman <rms@gnu.org>
3574 * src/conflicts.c: *** empty log message ***
3576 * src/system.h: entered into RCS
3578 1993-09-10 Richard Stallman <rms@gnu.org>
3580 * doc/bison.1: entered into RCS
3582 1993-09-06 Noah Friedman <friedman@gnu.org>
3584 * src/version.c: entered into RCS
3586 1993-09-06 Noah Friedman <friedman@gnu.org>
3588 * Makefile.in: *** empty log message ***
3590 1993-07-30 David J. MacKenzie <djm@gnu.org>
3592 * Makefile.in: *** empty log message ***
3594 1993-07-24 Richard Stallman <rms@gnu.org>
3596 * src/bison.s1: *** empty log message ***
3598 1993-07-24 Richard Stallman <rms@gnu.org>
3600 * bison.simple: *** empty log message ***
3602 1993-07-08 David J. MacKenzie <djm@gnu.org>
3604 * Makefile.in: *** empty log message ***
3606 1993-07-04 Richard Stallman <rms@gnu.org>
3608 * src/bison.s1: *** empty log message ***
3610 1993-07-04 Richard Stallman <rms@gnu.org>
3612 * bison.simple: *** empty log message ***
3614 1993-06-26 David J. MacKenzie <djm@gnu.org>
3616 * src/getargs.c: entered into RCS
3618 1993-06-26 David J. MacKenzie <djm@gnu.org>
3620 * doc/bison.texinfo: *** empty log message ***
3622 * doc/bison.1: New file.
3624 1993-06-25 Richard Stallman <rms@gnu.org>
3626 * src/getargs.c: New file.
3628 1993-06-16 Richard Stallman <rms@gnu.org>
3630 * src/bison.s1: *** empty log message ***
3632 1993-06-16 Richard Stallman <rms@gnu.org>
3634 * bison.simple: *** empty log message ***
3636 1993-06-03 Richard Stallman <rms@gnu.org>
3638 * src/bison.s1: New file.
3640 1993-06-03 Richard Stallman <rms@gnu.org>
3642 * doc/bison.texinfo: *** empty log message ***
3644 1993-06-03 Richard Stallman <rms@gnu.org>
3646 * bison.simple: New file.
3648 1993-05-19 Richard Stallman <rms@gnu.org>
3650 * doc/bison.texinfo: New file.
3652 1993-05-07 Noah Friedman <friedman@gnu.org>
3654 * Makefile.in: *** empty log message ***
3656 1993-04-28 Noah Friedman <friedman@gnu.org>
3658 * src/reader.c: *** empty log message ***
3660 1993-04-23 Noah Friedman <friedman@gnu.org>
3662 * src/alloc.h: entered into RCS
3664 1993-04-20 David J. MacKenzie <djm@gnu.org>
3666 * src/version.c: *** empty log message ***
3668 * src/files.c, src/allocate.c:
3671 * src/reader.c: *** empty log message ***
3673 * src/lex.c: entered into RCS
3675 * src/conflicts.c: New file.
3677 * src/symtab.c: entered into RCS
3679 * src/alloc.h: New file.
3681 * src/LR0.c: entered into RCS
3683 1993-04-18 Noah Friedman <friedman@gnu.org>
3685 * src/reader.c: New file.
3687 * src/version.c: *** empty log message ***
3689 1993-04-18 Noah Friedman <friedman@gnu.org>
3691 * Makefile.in: *** empty log message ***
3693 1993-04-17 Noah Friedman <friedman@gnu.org>
3695 * Makefile.in: *** empty log message ***
3697 1993-04-15 Richard Stallman <rms@gnu.org>
3699 * src/main.c, src/files.c:
3702 1993-04-15 Noah Friedman <friedman@gnu.org>
3704 * configure.in: entered into RCS
3706 * configure.in: *** empty log message ***
3708 * configure.in: New file.
3710 1993-04-14 Richard Stallman <rms@gnu.org>
3712 * Makefile.in: New file.
3714 1993-04-13 Richard Stallman <rms@gnu.org>
3716 * src/version.c: New file.
3718 1993-03-25 Richard Stallman <rms@gnu.org>
3720 * src/output.c: entered into RCS
3722 1992-09-25 Richard Stallman <rms@gnu.org>
3724 * configure.bat: entered into RCS
3726 1992-06-22 Richard Stallman <rms@gnu.org>
3728 * src/vmsgetargs.c: entered into RCS
3730 1992-06-22 Richard Stallman <rms@gnu.org>
3732 * doc/bison.rnh: entered into RCS
3734 1992-04-20 David J. MacKenzie <djm@gnu.org>
3736 * README: entered into RCS
3738 1992-01-22 Richard Stallman <rms@gnu.org>
3740 * src/machine.h: entered into RCS
3742 1991-12-21 Richard Stallman <rms@gnu.org>
3744 * src/lalr.c, src/closure.c:
3747 1991-12-20 Richard Stallman <rms@gnu.org>
3749 * src/state.h: entered into RCS
3751 1991-12-18 Richard Stallman <rms@gnu.org>
3753 * src/print.c, src/nullable.c, src/derives.c:
3756 1991-11-03 David J. MacKenzie <djm@gnu.org>
3758 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3761 1988-09-09 Richard Stallman <rms@gnu.org>
3763 * src/bison.hairy: entered into RCS
3765 1987-12-16 Richard Stallman <rms@gnu.org>
3767 * REFERENCES: entered into RCS