1 2001-12-18 Akim Demaille <akim@epita.fr>
5 2001-12-18 Akim Demaille <akim@epita.fr>
7 Some host fail on `assert (!"foo")', which expands to
8 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
9 Reported by Nelson Beebee.
11 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
12 `#define it_succeeded 0' and `assert (it_succeeded)'.
14 2001-12-17 Paul Eggert <eggert@twinsun.com>
16 * src/bison.simple (YYSTD): New macro.
17 (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE, YYFPRINTF, YYSTDERR): Use
18 it to simplify macros, and fix some C++ porting problems reported
21 * src/output.c (output): Define YYDEBUG to 0 if it is not defined
22 and if we are not debugging. POSIX requires this.
23 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document this.
25 * src/output.c (output_gram, output_rule_data): Do not assume that
26 the user defines YYDEBUG to a properly parenthesized expression.
28 2001-12-15 Akim Demaille <akim@epita.fr>
30 * src/nullable.c (set_nullable): Useless rules must be skipped,
31 otherwise, since we range over their symbols, we might look at a
32 nonterminal which no longer ``exists'', i.e., it is not counted in
33 `nvars', hence we overflow our arrays.
35 2001-12-15 Akim Demaille <akim@epita.fr>
37 * src/reader.c (copy_action): When --yacc, don't append a `;'
38 to the user action: let it fail if lacking.
39 Suggested by Aharon Robbins and Tom Tromey.
41 2001-12-13 Akim Demaille <akim@epita.fr>
45 2001-12-13 Akim Demaille <akim@epita.fr>
47 The computation of nullable is broken: it doesn't handle empty
50 * tests/torture.at (GNU AWK Grammar): New.
51 * tests/sets.at (Nullable): New.
52 * src/nullable.c (set_nullable): Instead of blindly looping over
53 `ritems', loop over the rules, and then over their rhs's.
55 Work around Autotest bugs.
57 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
58 frame, because Autotest understand lines starting with a `+' as
59 traces from the shell. Then, they are not processed properly.
60 Admittedly an Autotest bug, but we don't have time to wait for
62 * tests/regression.at (Broken Closure): Adjust to the new table
65 * tests/sets.at: here.
67 2001-12-12 Paul Eggert <eggert@twinsun.com>
69 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
70 Do not infringe on the global user namespace when using C++.
71 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
72 All uses of `fprintf' and `stderr' changed.
74 * src/output.c (output): Do not output "#include <stdio.h>"; that
75 is bison.simple's job. stdio.h should be included only if
76 necessary, to avoid infringing on the user name space when
79 2001-12-12 Akim Demaille <akim@epita.fr>
81 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
82 on that of lib/error.c.
84 2001-12-12 Akim Demaille <akim@epita.fr>
86 Some hosts don't like `/' in includes.
88 * src/system.h: Include libgettext.h without qualifying the path.
89 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
92 2001-12-10 Akim Demaille <akim@epita.fr>
94 Bison dumps core on bash.y.
95 Reported by Pascal Bart.
97 * src/warshall.c (bitmatrix_print): New.
99 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
100 j must be the outer loop.
101 * tests/regression.at (Broken Closure): New.
103 2001-12-05 Akim Demaille <akim@epita.fr>
107 2001-12-05 Akim Demaille <akim@epita.fr>
109 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
111 Reported by Peter Hámorský.
113 2001-12-05 Akim Demaille <akim@epita.fr>
115 * src/conflicts.c (err_table): Remove.
116 (resolve_sr_conflict): Adjust.
117 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
119 (state_t.reductions, state_t.shifts): this.
121 2001-12-05 Akim Demaille <akim@epita.fr>
123 * src/reduce.c (reduce_grammar_tables): No longer disable the
124 removal of useless rules via CPP but via `if (0)', so that the
125 compiler still check the code is valid.
126 For instance, it should have noticed `rline' no longer exists: use
127 the `line' member of rule_t.
128 * src/gram.c (dummy, rline): Remove, unused.
130 2001-12-05 Akim Demaille <akim@epita.fr>
132 * src/output.c (pack_vector): Use assert, not berror.
133 * src/main.c (berror): Remove, unused.
135 2001-12-05 Akim Demaille <akim@epita.fr>
137 New experimental feature: if --verbose --trace output all the
138 items of a state, not only its kernel.
140 * src/print.c (print_core): If `trace_flag', then invoke closure
141 before outputting the items of the state (print_core is no longer
142 a correct name them).
143 (print_results): Invoke new_closure/free_closure if needed.
145 2001-12-05 Akim Demaille <akim@epita.fr>
147 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
148 * src/closure.c, src/closure.h (itemsetsize): Rename as...
149 (nitemset): for consistency with the rest of the project.
151 2001-12-05 Akim Demaille <akim@epita.fr>
153 * src/closure.c (print_closure): Improve.
154 (closure): Use it for printing input and output.
156 2001-12-05 Akim Demaille <akim@epita.fr>
158 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
159 indexed by nonterminals.
161 2001-12-05 Akim Demaille <akim@epita.fr>
163 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
165 * src/warshall.h: Remove accidental duplication of the content.
167 2001-12-05 Akim Demaille <akim@epita.fr>
169 * src/closure.c (set_fderives): De-obfuscate.
171 2001-12-05 Akim Demaille <akim@epita.fr>
173 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
175 2001-12-05 Akim Demaille <akim@epita.fr>
177 * src/closure.c (set_firsts): De-obfuscate.
179 2001-12-05 Akim Demaille <akim@epita.fr>
181 * src/output.c (action_row): De-obfuscate
182 using the good o' techniques: arrays not pointers, variable
183 locality, BITISSET, RESETBIT etc.
185 2001-12-05 Akim Demaille <akim@epita.fr>
187 Pessimize the code to simplify it: from now on, all the states
188 have a valid SHIFTS, which NSHIFTS is possibly 0.
190 * src/LR0.c (shifts_new): Be global and move to..
191 * src/state.c, src/state.h: here.
192 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
193 * src/print_graph: Adjust.
195 2001-12-05 Akim Demaille <akim@epita.fr>
197 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
198 * src/conflicts.c: Use it.
199 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
200 incorrectly ``simplified''.
202 2001-12-05 Akim Demaille <akim@epita.fr>
204 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
205 using the good o' techniques: arrays not pointers, variable
206 locality, BITISSET, RESETBIT etc.
208 2001-12-05 Akim Demaille <akim@epita.fr>
210 * src/state.h (SHIFT_SYMBOL): New.
211 * src/conflicts.c: Use it to deobfuscate.
213 2001-12-05 Akim Demaille <akim@epita.fr>
215 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
216 (print_reductions): De-obfuscate using the good o' techniques:
217 arrays not pointers, variable locality, BITISSET.
219 2001-12-05 Akim Demaille <akim@epita.fr>
221 * src/conflicts.c (print_reductions): Arrays, not pointers.
224 2001-12-05 Akim Demaille <akim@epita.fr>
226 * src/conflicts.c (print_reductions): Pessimize, but clarify.
228 2001-12-05 Akim Demaille <akim@epita.fr>
230 * src/conflicts.c (print_reductions): Improve variable locality.
232 2001-12-05 Akim Demaille <akim@epita.fr>
234 * src/conflicts.c (print_reductions): Pessimize, but clarify.
236 2001-12-05 Akim Demaille <akim@epita.fr>
238 * src/conflicts.c (print_reductions): Improve variable locality.
240 2001-12-05 Akim Demaille <akim@epita.fr>
242 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
243 * src/lalr.c: Use them.
245 2001-12-05 Akim Demaille <akim@epita.fr>
247 * src/LR0.c (augment_automaton): Formatting changes.
248 Better variable locality.
250 2001-12-05 Akim Demaille <akim@epita.fr>
252 * src/lalr.c (matrix_print): New.
254 Use arrays instead of pointers.
256 2001-12-05 Akim Demaille <akim@epita.fr>
258 * src/lalr.c (maxrhs): Move to...
259 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
260 * src/lalr.c (build_relations): Adjust.
262 2001-12-05 Akim Demaille <akim@epita.fr>
264 * src/lalr.c (transpose): Free the memory allocated to the
265 argument, as it is replaced by the results by the unique caller.
266 (build_relations): Merely invoke transpose: it handles the memory
268 Improve variable locality.
269 Avoid variables used as mere abbreviations.
270 (compute_lookaheads): Use arrays instead of pointers.
272 2001-12-05 Akim Demaille <akim@epita.fr>
274 * src/lalr.c (initialize_F): Improve variable locality.
275 Avoid variables used as mere abbreviations.
277 2001-12-05 Akim Demaille <akim@epita.fr>
279 * src/derives.c (print_derives): Display the ruleno.
280 * src/lalr.c (initialize_F, transpose): Better variable locality
281 to improve readability.
282 Avoid variables used as mere abbreviations.
284 2001-12-05 Akim Demaille <akim@epita.fr>
286 * src/lalr.c (traverse): Use arrays instead of pointers.
288 2001-12-05 Akim Demaille <akim@epita.fr>
290 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
291 the handling of squeue.
292 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
294 2001-12-05 Akim Demaille <akim@epita.fr>
296 Because useless nonterminals are now kept alive (instead of being
297 `destroyed'), we now sometimes examine them, and store information
298 related to them. Hence we need to know their number, and adjust
301 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
303 * src/LR0.c (allocate_itemsets): The memory allocated to
304 `symbol_count' was used for two different purpose: once to count
305 the number of occurrences of each symbol, and later reassigned to
306 `shift_symbol', containing the symbol that can be shifted from a
308 Deobfuscate, i.e., allocate, use and free `symbol_count' here
310 (new_itemsets): Allocate `shift_symbol' here.
311 (allocate_itemsets): symbol_count includes useless nonterminals.
313 (free_storage): Use `free', not `XFREE', for pointers that cannot
316 2001-12-05 Akim Demaille <akim@epita.fr>
318 * src/nullable.c (set_nullable): Deobfuscate the handling of
320 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
322 2001-12-05 Akim Demaille <akim@epita.fr>
324 * src/gram.c, src/gram.h (ritem_print): New.
325 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
326 (This useless function was defined only to work around VMS linkers
327 that can't handle compilation units with variables only).
328 * src/reduce.c (dump_grammar): Use it to trace the construction of
331 2001-12-04 Paul Eggert <eggert@twinsun.com>
333 * src/bison.simple (union yyalloc): Change member names
334 to be the same as the stack names.
335 (yyparse): yyptr is now union yyalloc *, not char *.
336 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
337 and may generate better code on some machines.
338 (yystpcpy): Use prototype if __STDC__ is defined, not just
339 if __cplusplus is defined.
341 2001-11-30 Akim Demaille <akim@epita.fr>
343 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
344 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
345 Gettext doesn't compile cleanly, and dies with -Werror.
346 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
347 Include WARNING_CFLAGS here.
348 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
349 before being defined.
351 2001-11-30 Paul Eggert <eggert@twinsun.com>
353 * lib/quotearg.h (quotearg_n, quotearg_n_style):
354 First arg is int, not unsigned.
355 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
356 (SIZE_MAX, UINT_MAX): New macros.
357 (quotearg_n_options): Abort if N is negative.
358 Avoid overflow check on hosts where size_t is 64 bits and int
359 is 32 bits, as overflow is impossible there.
360 Fix off-by-one typo that caused unnecessary reallocation.
362 2001-11-30 Paul Eggert <eggert@twinsun.com>
364 Name space cleanup in generated parser.
366 * doc/bison.texinfo (Bison Parser): Discuss system headers
367 and their effect on the user name space.
370 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
371 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
372 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
374 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
375 on user names when possible.
377 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
378 Simplify test for whather <alloca.h> exists.
380 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
382 (<stdio.h>): Include if YYDEBUG.
384 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
385 ! defined (yyoverflow) && ! defined (yymemcpy).
387 (yymemcpy, yyparse): Rename local variables as needed so that
388 they all begin with 'yy'.
390 (yystrlen, yystpcpy): New functions.
392 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
395 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
396 instead of relying on string.h functions. Use YYSTACK_ALLOC
397 and YYSTACK_FREE instead of malloc and free.
399 2001-11-30 Akim Demaille <akim@epita.fr>
401 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
402 if body instead of `;' to pacify GCC's warnings.
404 2001-11-30 Akim Demaille <akim@epita.fr>
406 Instead of mapping the LHS of unused rules to -1, keep the LHS
407 valid, but flag the rules as invalid.
409 * src/gram.h (rule_t): `useful' is a new member.
410 * src/print.c (print_grammar): Adjust.
411 * src/derives.c (set_derives): Likewise.
412 * src/reader.c (packgram, reduce_output): Likewise.
413 * src/reduce.c (reduce_grammar_tables): Likewise.
414 * tests/reduce.at (Underivable Rules, Useless Rules): New.
416 2001-11-30 Akim Demaille <akim@epita.fr>
418 * src/reduce.c (reduce_output): Formatting changes.
419 * src/print.c (print_results, print_grammar): Likewise.
420 * tests/regression.at (Rule Line Numbers)
421 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
423 2001-11-30 Akim Demaille <akim@epita.fr>
425 * src/reduce.c (nonterminals_reduce): Instead of throwing away
426 useless nonterminals, move them at the end of the symbol arrays.
427 (reduce_output): Adjust.
428 * tests/reduce.at (Useless Nonterminals): Adjust.
430 2001-11-30 Akim Demaille <akim@epita.fr>
432 * src/reduce.c: Various comment/formatting changes.
433 (nonterminals_reduce): New, extracted from...
434 (reduce_grammar_tables): here.
435 (reduce_grammar): Call nonterminals_reduce.
437 2001-11-29 Paul Eggert <eggert@twinsun.com>
439 * src/bison.simple (YYSTACK_REALLOC): Remove.
440 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
441 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
443 (union yyalloc): New type.
444 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
445 an arbitrary restriction on hosts where size_t is wider than int.
447 (yyparse): Don't dump core if alloca or malloc fails; instead, report
448 a parser stack overflow. Allocate just one block of memory for all
449 three stacks, instead of allocating three blocks; this typically is
450 faster and reduces fragmentation.
452 Do not limit the number of items in the stack to a value that fits
453 in 'int', as this is an arbitrary limit on hosts with 64-bit
454 size_t and 32-bit int.
456 2001-11-28 Akim Demaille <akim@epita.fr>
458 * src/LR0.c (shifts_new): New.
459 (save_shifts, insert_start_shift, augment_automaton): Use it.
461 2001-11-28 Akim Demaille <akim@epita.fr>
463 * src/closure.c (closure): `b' and `ruleno' denote the same value:
466 2001-11-28 Akim Demaille <akim@epita.fr>
468 * src/closure.c (closure): Instead of looping over word in array
469 then bits in words, loop over bits in array.
471 2001-11-28 Akim Demaille <akim@epita.fr>
473 * src/closure.c (closure): No longer optimize the special case
474 where all the bits of `ruleset[r]' are set to 0, to make the code
477 2001-11-28 Akim Demaille <akim@epita.fr>
479 * src/closure.c (closure): `r' and `c' are new variables, used to
480 de-obfuscate accesses to RULESET and CORE.
482 2001-11-28 Akim Demaille <akim@epita.fr>
484 * src/reduce.c (reduce_print): Use ngettext.
485 (dump_grammar): Improve the trace accuracy.
487 2001-11-28 Akim Demaille <akim@epita.fr>
489 * src/reduce.c (dump_grammar): Don't translate trace messages.
491 2001-11-28 Akim Demaille <akim@epita.fr>
493 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
494 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
495 as all tags are free'ed afterwards.
498 2001-11-27 Akim Demaille <akim@epita.fr>
500 * src/system.h: Use intl/libgettext.h.
501 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
503 2001-11-27 Paul Eggert <eggert@twinsun.com>
505 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
506 use alloca when we didn't want to, and vice versa.
508 2001-11-27 Akim Demaille <akim@epita.fr>
510 * tests/torture.at (Exploding the Stack Size with Malloc):
511 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
513 2001-11-27 Akim Demaille <akim@epita.fr>
515 * src/files.c: Include error.h.
518 2001-11-26 Akim Demaille <akim@epita.fr>
522 2001-11-26 Akim Demaille <akim@epita.fr>
524 * src/reader.c (readgram): Make sure rules for mid-rule actions
525 have a lineno equal to that of their host rule.
526 Reported by Hans Aberg.
527 * tests/regression.at (Rule Line Numbers): New.
529 2001-11-26 Akim Demaille <akim@epita.fr>
531 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
533 Reported by Hans Aberg.
535 2001-11-26 Akim Demaille <akim@epita.fr>
537 * src/complain.c, src/complain.h (error): Remove, provided by
540 2001-11-26 Akim Demaille <akim@epita.fr>
542 * src/reader.c (read_declarations): Don't abort on tok_illegal,
543 issue an error message.
544 * tests/regression.at (Invalid %directive): New.
545 Reported by Hans Aberg.
547 2001-11-26 Akim Demaille <akim@epita.fr>
549 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
550 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
552 2001-11-26 Akim Demaille <akim@epita.fr>
554 * src/conflicts.c (conflicts_print): Don't complain at all when
555 there are no reduce/reduce conflicts, and as many shift/reduce
556 conflicts as expected.
557 * tests/regression.at (%expect right): Adjust.
559 2001-11-23 Akim Demaille <akim@epita.fr>
561 * lib/alloca.c: Update, from fileutils.
563 2001-11-23 Akim Demaille <akim@epita.fr>
565 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
567 2001-11-23 Akim Demaille <akim@epita.fr>
569 * src/system.h: Include alloca.h.
570 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
572 2001-11-23 Akim Demaille <akim@epita.fr>
574 * src/print_graph.c (print_actions): Remove `rule', unused.
575 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
576 pacify GCC's signed < unsigned warnings.
577 * src/closure.c (itemsetsize): Likewise.
578 * src/reader.c (symbol_list_new): Static.
580 2001-11-23 Akim Demaille <akim@epita.fr>
582 Attaching lineno to buckets is stupid, since only one copy of each
583 symbol is kept, only the line of the first occurrence is kept too.
585 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
586 * src/reader.c (rline_allocated): Remove, unused.
587 (symbol_list): Have a `line' member.
588 (symbol_list_new): New.
590 * src/print.c (print_grammar): Output the rule line numbers.
591 * tests/regression.at (Solved SR Conflicts)
592 (Unresolved SR Conflicts): Adjust.
593 Reported by Hans Aberg.
595 2001-11-20 Akim Demaille <akim@epita.fr>
599 2001-11-20 Akim Demaille <akim@epita.fr>
602 * configure.in (ALL_LINGUAS): Adjust.
603 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
604 longer contains strings to translate.
606 2001-11-19 Akim Demaille <akim@epita.fr>
608 * src/conflicts.c (conflicts_print): Add a missing \n.
610 2001-11-19 Akim Demaille <akim@epita.fr>
612 * src/nullable.c (nullable_print): New.
613 (set_nullable): Call it when tracing.
614 Better locality of variables.
616 2001-11-19 Akim Demaille <akim@epita.fr>
618 * src/print.c (print_actions): Better locality of variables.
620 2001-11-19 Akim Demaille <akim@epita.fr>
622 * src/derives.c (print_derives): Fix and enrich.
623 * src/closure.c (print_fderives): Likewise.
625 2001-11-19 Akim Demaille <akim@epita.fr>
627 * src/closure.c (itemsetend): Remove, replaced with...
630 2001-11-19 Akim Demaille <akim@epita.fr>
632 * src/LR0.c (kernel_end): Remove, replaced with...
635 2001-11-19 Akim Demaille <akim@epita.fr>
637 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
640 2001-11-19 Akim Demaille <akim@epita.fr>
642 * src/closure.c (closure): Use arrays instead of pointers to clarify.
644 2001-11-19 Akim Demaille <akim@epita.fr>
646 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
648 * src/LR0.c: Likewise.
649 (allocate_itemsets): Use arrays instead of pointers to clarify.
651 2001-11-19 Akim Demaille <akim@epita.fr>
653 * src/getargs.c (statistics_flag): Replace with...
655 (longopts): Accept --trace instead of --statistics.
656 * src/getargs.h: Adjust.
657 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
658 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
660 2001-11-19 Akim Demaille <akim@epita.fr>
662 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
663 pointers to clarify the code.
664 (save_reductions, save_shifts): Factor common parts of alternatives.
666 2001-11-19 Akim Demaille <akim@epita.fr>
668 * src/LR0.c (new_state, get_state): Complete TRACE code.
669 * src/closure.c: Include `reader.h' to get `tags', needed by the
671 Rename the conditional DEBUG as TRACE.
672 Output consistently TRACEs to stderr, not stdout.
673 * src/derives.c: Likewise.
674 * src/reduce.c: (inaccessable_symbols): Using if is better style
676 Use `#if TRACE' instead of `#if 0' for tracing code.
678 2001-11-19 Akim Demaille <akim@epita.fr>
680 * src/system.h (LIST_FREE, shortcpy): New.
681 * src/LR0.c: Use them.
682 * src/output.c (free_itemsets, free_reductions, free_shifts):
683 Remove, replaced by LIST_FREE.
685 2001-11-19 Akim Demaille <akim@epita.fr>
687 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
688 (REDUCTIONS_ALLOC): New.
689 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
692 2001-11-19 Akim Demaille <akim@epita.fr>
694 * src/LR0.c (new_state): Complete trace code.
695 * src/nullable.c (set_nullable): Don't translate traces.
697 2001-11-19 Akim Demaille <akim@epita.fr>
699 * src/print_graph.c (print_core): Better locality of variables.
700 * src/print.c (print_core): Likewise.
702 2001-11-19 Akim Demaille <akim@epita.fr>
704 * src/vcg.c: You do the output, so you are responsible of the
705 handling of VCG syntax, in particular: use quotearg.
706 * src/print_graph.c: Don't.
707 (print_actions): Don't output the actions as part of the nodes,
708 since that's the job of the edges.
709 (print_state): Don't output by hand: fill the node description,
710 and ask for its output.
712 2001-11-19 Akim Demaille <akim@epita.fr>
714 * src/bison.simple (yyparse): When verbosely reporting an error,
715 no longer put additional quotes around token names.
716 * tests/calc.at: Adjust.
718 2001-11-19 Akim Demaille <akim@epita.fr>
720 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
721 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
722 * src/output.c: Adjust.
724 2001-11-19 Akim Demaille <akim@epita.fr>
726 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
728 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
730 2001-11-19 Akim Demaille <akim@epita.fr>
732 * src/gram.h (rule_t): New.
734 (rrhs, rlhs): Remove, part of state_t.
735 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
736 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
737 * src/reader.c, src/reduce.c: Adjust.
739 2001-11-19 Akim Demaille <akim@epita.fr>
741 * src/reader.c (symbols_output): New, extracted from...
745 2001-11-19 Akim Demaille <akim@epita.fr>
747 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
748 (maxrhs): this new function.
750 2001-11-19 Akim Demaille <akim@epita.fr>
752 * src/lalr.c (F): New macro to access the variable F.
755 2001-11-19 Akim Demaille <akim@epita.fr>
757 * src/lalr.h (LA): New macro to access the variable LA.
758 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
759 * src/lalr.c: Adjust.
761 2001-11-19 Akim Demaille <akim@epita.fr>
763 * src/lalr.c (initialize_LA): Only initialize LA. Let...
764 (set_state_table): handle the `lookaheads' members.
766 2001-11-19 Akim Demaille <akim@epita.fr>
768 * src/lalr.h (lookaheads): Removed array, whose contents is now
770 (state_t): this structure.
771 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
774 2001-11-19 Akim Demaille <akim@epita.fr>
776 * src/lalr.h (consistent): Removed array, whose contents is now
778 (state_t): this structure.
779 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
782 2001-11-19 Akim Demaille <akim@epita.fr>
784 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
785 contents are now members of...
786 (state_t): this structure.
787 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
790 2001-11-19 Akim Demaille <akim@epita.fr>
792 * src/lalr.h (state_t): New.
793 (state_table): Be a state_t * instead of a core **.
794 (accessing_symbol): Remove, part of state_t.
795 * src/lalr.c: Adjust.
796 (set_accessing_symbol): Merge into...
797 (set_state_table): this.
798 * src/print_graph.c, src/conflicts.c: Adjust.
800 2001-11-14 Akim Demaille <akim@epita.fr>
804 2001-11-14 Akim Demaille <akim@epita.fr>
806 * tests/calc.at, tests/output.at, tests/regression.at,
807 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
808 now the tests are run in private dirs, therefore AC_CLEANUP and
809 family can be simplified to 0-ary.
810 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
811 use abs. path to find config.h.
813 2001-11-14 Akim Demaille <akim@epita.fr>
815 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
816 stderr, there can be way too much random noise.
817 Instead pass -Werror to GCC and rely on the exit status.
818 Reported by Wolfram Wagner.
820 2001-11-14 Akim Demaille <akim@epita.fr>
822 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
823 defined only if yyoverflow is defined, to avoid `warning: unused
825 Reported by The Test Suite.
827 2001-11-14 Akim Demaille <akim@epita.fr>
829 * src/print.c: Include reduce.h.
830 Reported by Hans Aberg.
832 2001-11-14 Akim Demaille <akim@epita.fr>
834 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
835 Revert a previous patch: these are really const.
836 * src/conflicts.c (conflict_report): Additional useless pair of
837 braces to pacify GCC's warnings for `if () if () {} else {}'.
838 * src/lex.c (parse_percent_token): Replace equal_offset with
841 Be sure to strdup `arg' when used, since there is no reason for
842 token_buffer not to change.
844 2001-11-14 Akim Demaille <akim@epita.fr>
846 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
848 * src/main.c (main): Use them.
849 Suggested by Hans Aberg.
851 2001-11-12 Akim Demaille <akim@epita.fr>
855 * src/system.h (ngettext): Now that we use ngettext, be sure to
856 provide a default definition when NLS are not used that takes care
859 2001-11-12 Akim Demaille <akim@epita.fr>
861 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
862 Use @kbd to denote user input.
863 (Language and Grammar): ANSIfy the example.
864 Adjust its layout for info/notinfo.
865 (Location Tracking Calc): Output error messages to stderr.
866 Output locations in a more GNUtically correct way.
867 Fix a couple of Englishos.
868 Adjust @group/@end group pairs.
870 2001-11-12 Akim Demaille <akim@epita.fr>
872 %expext was not functioning at all.
874 * src/conflicts.c (expected_conflicts): Set to -1.
875 (conflict_report): Use ngettext.
876 (conflicts_print): Check %expect and make its violation an error.
877 * doc/bison.texinfo (Expect Decl): Adjust.
878 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
879 * tests/regression.at (%expect not enough, %expect right)
880 (%expect too much): New.
882 2001-11-12 Akim Demaille <akim@epita.fr>
884 * tests/regression.at (Conflicts): Rename as...
885 (Unresolved SR Conflicts): this.
886 (Solved SR Conflicts): New.
888 2001-11-12 Akim Demaille <akim@epita.fr>
890 * src/reduce.c (print_results): Rename as...
891 (reduce_output): This.
892 Output to OUT, passed as argument, instead of output_obstack.
893 (dump_grammar): Likewise.
896 (reduce_grammar): No longer call reduce_output, since...
897 * src/print.c (print_results): do it.
898 * src/main.c (main): Call reduce_free;
900 2001-11-12 Akim Demaille <akim@epita.fr>
902 * src/conflicts.c (print_reductions): Accept OUT as argument.
903 Output to it, not to output_obstack.
904 * src/print.c (print_actions): Adjust.
906 2001-11-12 Akim Demaille <akim@epita.fr>
908 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
909 the result instead of using...
910 (src_total, rrc_total, src_count, rrc_count): Remove.
911 (any_conflicts): Remove.
912 (print_conflicts): Split into...
913 (conflicts_print, conflicts_output): New.
914 * src/conflicts.h: Adjust.
915 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
916 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
917 * tests/regression.at (Conflicts): New.
918 Reported by Tom Lane.
920 2001-11-12 Akim Demaille <akim@epita.fr>
922 * tests/regression.at (Invalid input): Remove, duplicate with
923 ``Invalid input: 1''.
925 2001-11-12 Akim Demaille <akim@epita.fr>
927 * tests/torture.at (AT_DATA_STACK_TORTURE)
928 (Exploding the Stack Size with Alloca)
929 (Exploding the Stack Size with Malloc): New.
931 2001-11-12 Akim Demaille <akim@epita.fr>
933 * src/bison.simple (YYSTACK_REALLOC): New.
934 (yyparse) [!yyoverflow]: Use it and free the old stack.
935 Reported by Per Allansson.
937 2001-11-05 Akim Demaille <akim@epita.fr>
940 * src/lex.c (parse_percent_token): s/quotearg/quote/.
942 2001-11-05 Akim Demaille <akim@epita.fr>
944 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
947 2001-11-05 Akim Demaille <akim@epita.fr>
949 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
950 with yyltype/YYLTYPE. This allows inclusion of the generated
951 header within the parser if the compiler, such as GGC, accepts
952 multiple equivalent #defines.
954 2001-11-04 Akim Demaille <akim@epita.fr>
956 * src/getargs.c (longopts): Support `--output'. getopt is now
957 able to understand that `--out' is OK: the two racing long options
960 * src/lex.h (tok_setopt): Remove, replaced with...
961 (tok_intopt, tok_stropt): these new guys.
962 * src/lex.c (getopt.h): Not needed.
963 (token_buffer, unlexed_token_buffer): Not const.
964 (percent_table): Promote `-' over `_' in directive names.
965 Active `%name-prefix', `file-prefix', and `output'.
966 (parse_percent_token): Accept possible arguments to directives.
967 Promote `-' over `_' in directive names.
968 * doc/bison.texinfo (Decl Summary): Split the list into
969 `directives for grammars' and `directives for bison'.
971 Add description of `%name-prefix', `file-prefix', and `output'.
972 Promote `-' over `_' in directive names.
973 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
974 Simplify the description of `--name-prefix'.
975 Promote `-' over `_' in directive names.
976 Promote `--output' over `--output-file'.
977 Fix the description of `--defines'.
978 * tests/output.at: Exercise %file-prefix and %output.
980 2001-11-02 Akim Demaille <akim@epita.fr>
982 * doc/refcard.tex: Update.
984 2001-11-02 Akim Demaille <akim@epita.fr>
986 * src/symtab.h (SUNDEF): New.
987 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
988 stand for `uninitialized', instead of 0.
989 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
990 * src/lex.c (lex): Adjust.
992 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
994 Let yylex return it instead of a plain 0.
995 Reported by Dick Streefland.
997 2001-11-02 Akim Demaille <akim@epita.fr>
999 * tests/regression.at (Mixing %token styles): New test.
1001 2001-11-02 Akim Demaille <akim@epita.fr>
1003 * src/reader.c (parse_thong_decl): Formatting changes.
1004 (token_translations_init): New, extracted from...
1005 (packsymbols): Here.
1008 2001-11-01 Akim Demaille <akim@epita.fr>
1010 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1011 Check that `9foo.y' produces correct cpp guards.
1012 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1016 2001-11-01 Akim Demaille <akim@epita.fr>
1018 * tests/regression.at (Invalid input: 2): New.
1019 * src/lex.c (unlexed_token_buffer): New.
1020 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1024 2001-11-01 Akim Demaille <akim@epita.fr>
1026 * configure.in: Bump to 1.30a.
1027 Adjust to newer Autotest.
1029 2001-10-26 Akim Demaille <akim@epita.fr>
1033 2001-10-26 Paul Eggert <eggert@twinsun.com>
1035 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
1036 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
1037 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
1038 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
1039 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
1040 Sync with fileutils 4.1.1.
1042 2001-10-18 Akim Demaille <akim@epita.fr>
1045 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1046 avoid spurious failures.
1048 2001-10-18 Akim Demaille <akim@epita.fr>
1052 2001-10-18 Akim Demaille <akim@epita.fr>
1054 * tests/atlocal.in (GCC): Add.
1055 * tests/calc.at: s/m4_match/m4_bmatch/.
1056 s/m4_patsubst/m4_bpatsubst/.
1057 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1058 * configure.in: AC_SUBST(GCC).
1060 2001-10-10 Akim Demaille <akim@epita.fr>
1063 * configure.in: M4 is no longer needed, but autom4te is.
1064 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1067 2001-10-10 Akim Demaille <akim@epita.fr>
1071 2001-10-10 Akim Demaille <akim@epita.fr>
1074 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1075 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1076 Reported by Airy Andre.
1078 2001-10-10 Akim Demaille <akim@epita.fr>
1080 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1081 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1083 2001-10-02 Akim Demaille <akim@epita.fr>
1087 2001-10-02 Akim Demaille <akim@epita.fr>
1091 2001-10-02 Akim Demaille <akim@epita.fr>
1093 * tests/regression.at (Invalid CPP headers): New.
1094 From Alexander Belopolsky.
1095 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1097 2001-10-02 Akim Demaille <akim@epita.fr>
1099 * tests/regression.at (Invalid input): New.
1100 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1103 2001-10-02 Akim Demaille <akim@epita.fr>
1105 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1107 2001-10-02 Akim Demaille <akim@epita.fr>
1109 * src/output.c (output_parser): Assert `skeleton'.
1110 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1114 2001-10-01 Marc Autret <autret_m@epita.fr>
1116 * src/lex.h: Echo modifications.
1117 * src/lex.c (unlex): Parameter is now token_t.
1120 2001-10-01 Marc Autret <autret_m@epita.fr>
1122 * src/main.c: Include lex.h.
1125 2001-09-29 Akim Demaille <akim@epita.fr>
1127 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1129 2001-09-28 Akim Demaille <akim@epita.fr>
1131 * tests/testsuite.at: Update to newer Autotest.
1132 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1134 2001-09-27 Akim Demaille <akim@epita.fr>
1136 Position independent wrapper.
1138 * tests/bison: Remove.
1139 * tests/bison.in: New.
1140 * configure.in: Adjust.
1142 2001-09-27 Paul Eggert <eggert@twinsun.com>
1144 Port quotearg fixes from tar 1.13.24.
1146 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1148 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1149 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1151 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1152 * m4/mbrtowc.m4: New file.
1153 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1154 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1156 2001-09-27 Akim Demaille <akim@epita.fr>
1160 2001-09-27 Akim Demaille <akim@epita.fr>
1164 2001-09-25 Akim Demaille <akim@epita.fr>
1166 * src/system.h: Include `xalloc.h'.
1167 Remove it from the C files.
1168 * src/files.c (output_files): Free the obstacks.
1169 * src/lex.c (init_lex): Rename as...
1172 * src/main.c (main): Use it.
1174 2001-09-24 Marc Autret <autret_m@epita.fr>
1176 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1177 to output informations in fout (FILE*).
1178 (open_graph, close_graph): Likewise.
1179 (output_graph, output_edge, output_node): Likewise.
1180 * src/vcg.h: Update function prototypes.
1181 * src/print_graph.c (print_graph): Open output graph file.
1182 (print_actions): Adjust.
1183 * src/files.h: Remove extern declaration.
1184 * src/files.c: Remove graph_obstack declaration.
1185 (open_files): Remove graph_obstack initialization.
1186 (output_files): Remove graph_obstack saving.
1188 2001-09-24 Marc Autret <autret_m@epita.fr>
1190 * src/files.c (compute_output_file_names): Fix.
1192 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1194 * src/reader.c (reader): Remove call to free_symtab ().
1195 * src/main.c (main): Call it here.
1197 * src/conflicts.c (initialize_conflicts): Rename as...
1198 (solve_conflicts): this.
1199 * src/print.c (print_core, print_actions, print_state)
1200 (print_grammar): Dump to a file instead a `output_obstack'.
1201 (print_results): Dump `output_obstack', and then proceed with the
1203 * src/files.c (compute_output_file_names, close_files): New.
1204 (output_files): Adjust.
1205 * src/main.c (main): Adjust.
1207 2001-09-23 Marc Autret <autret_m@epita.fr>
1209 * src/files.c (compute_header_macro): Computes header macro name
1210 from spec_defines_file when given.
1212 2001-09-23 Marc Autret <autret_m@epita.fr>
1214 * src/files.c (output_files): Add default extensions.
1216 2001-09-22 Akim Demaille <akim@epita.fr>
1218 * src/conflicts.c (finalize_conflicts): Rename as...
1219 (free_conflicts): this.
1221 2001-09-22 Akim Demaille <akim@epita.fr>
1223 * src/gram.c (gram_free): Rename back as...
1225 (output_token_translations): Free `token_translations'.
1226 * src/symtab.c (free_symtab): Free the tag field.
1228 2001-09-22 Akim Demaille <akim@epita.fr>
1230 Remove `translations' as it is always set to true.
1232 * src/gram.h: Adjust.
1233 * src/reader.c (packsymbols, parse_token_decl): Adjust
1234 * src/print.c (print_grammar): Adjust.
1235 * src/output.c (output_token_translations): Adjust.
1236 * src/lex.c (lex): Adjust.
1237 * src/gram.c: Be sure the set pointers to NULL.
1238 (dummy): Rename as...
1241 2001-09-22 Akim Demaille <akim@epita.fr>
1243 * configure.in: Invoke AM_LIB_DMALLOC.
1244 * src/system.h: Use dmalloc.
1245 * src/LR0.c: Be sure to have pointers initialized to NULL.
1246 (allocate_itemsets): Allocate kernel_items only if needed.
1248 2001-09-22 Akim Demaille <akim@epita.fr>
1250 * configure.in: Bump to 1.29b.
1251 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1252 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1253 need xmalloc.c in calc.y.
1256 2001-09-21 Akim Demaille <akim@epita.fr>
1259 * Makefile.maint, config/config.guess, config/config.sub,
1260 * config/missing: Update from masters.
1261 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1263 * configure.in (ALL_LINGUAS): Add `tr'.
1265 2001-09-21 Akim Demaille <akim@epita.fr>
1267 * tests/Makefile.am (package.m4): Move to...
1268 ($(srcdir)/$(TESTSUITE)): here.
1270 2001-09-20 Akim Demaille <akim@epita.fr>
1272 * src/complain.c: No longer try to be standalone: use system.h.
1273 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1274 * src/complain.h: Likewise.
1275 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1276 Remove the unused variable `n'.
1277 From Albert Chin-A-Young.
1279 2001-09-18 Marc Autret <autret_m@epita.fr>
1281 * doc/bison.1: Update.
1282 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1284 (Option Cross Key): Update.
1287 2001-09-18 Marc Autret <autret_m@epita.fr>
1289 * tests/regression.at: New test (comment in %union).
1291 2001-09-18 Marc Autret <autret_m@epita.fr>
1293 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1295 Reported by Keith Browne.
1297 2001-09-18 Marc Autret <autret_m@epita.fr>
1299 * tests/output.at: Add tests for --defines and --graph.
1301 2001-09-18 Marc Autret <autret_m@epita.fr>
1303 * tests/output.at: Removes tests of %{header,src}_extension features.
1305 2001-09-18 Akim Demaille <akim@epita.fr>
1307 * tests/Makefile.am (package.m4): New.
1308 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1309 (_AT_CHECK_CALC_ERROR): Likewise.
1310 Factor the `, ' part of verbose error messages.
1312 2001-09-18 Marc Autret <autret_m@epita.fr>
1314 * src/getargs.c (longopts): Declare --defines and --graph as options
1315 with optional arguments.
1316 * src/files.h: Add extern declarations.
1317 * src/files.c (spec_graph_file, spec_defines_file): New.
1318 (output_files): Update.
1319 Remove CPP-outed code.
1321 2001-09-18 Marc Autret <autret_m@epita.fr>
1323 Turn off %{source,header}_extension feature.
1325 * src/files.c (compute_exts_from_gf): Update.
1326 (compute_exts_from_src): Update.
1327 (output_files): CPP-out useless code.
1328 * src/files.h: Remove {header,source}_extension extern declarations.
1329 * src/reader.c (parse_dquoted_param): CPP-out.
1330 (parse_header_extension_decl): Remove.
1331 (parse_source_extension_decl): Remove.
1332 (read_declarations): Remove cases tok_{hdrext,srcext}.
1333 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1334 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1336 2001-09-10 Akim Demaille <akim@epita.fr>
1338 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1339 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1340 (AT_CHECK_OUTPUT): this.
1341 Merely check ls' exit status, its output is useless.
1343 2001-09-10 Akim Demaille <akim@epita.fr>
1345 * tests/calc.at: Use m4_match.
1346 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1348 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1350 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1352 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1354 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1355 * src/lex.h: Adjust prototype.
1356 (token_t): Add `tok_undef'.
1357 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1358 (parse_percent_token): Now returns token_t.
1359 Add default statement in switch.
1360 (lex): Separate `c' as an input variable, from the token_t result
1362 (unlexed): Is a token_t.
1364 2001-09-10 Akim Demaille <akim@epita.fr>
1366 * configure.in: Bump to 1.29a.
1368 2001-09-07 Akim Demaille <akim@epita.fr>
1372 2001-08-30 Akim Demaille <akim@epita.fr>
1374 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1375 * m4/atconfig.m4: Remove.
1376 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1378 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1379 m4_if, m4_patsubst, and m4_regexp.
1380 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1381 `input' file instead of echo.
1383 2001-08-29 Akim Demaille <akim@epita.fr>
1387 2001-08-29 Akim Demaille <akim@epita.fr>
1391 2001-08-29 Paul Eggert <eggert@twinsun.com>
1393 * src/bison.simple (yyparse): Don't take the address of an
1394 item before the start of an array, as that doesn't conform to
1397 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1399 * doc/bison.texinfo (Location Tracking Calc): New node.
1401 2001-08-29 Paul Eggert <eggert@twinsun.com>
1403 * src/output.c (output): Do not define const, as this now
1404 causes more problems than it cures.
1406 2001-08-29 Akim Demaille <akim@epita.fr>
1408 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1410 Be sure to tag the `detailmenu'.
1412 2001-08-29 Akim Demaille <akim@epita.fr>
1414 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1415 download in a tmp dir.
1417 2001-08-28 Marc Autret <autret_m@epita.fr>
1419 * config/depcomp: New file.
1421 2001-08-28 Marc Autret <autret_m@epita.fr>
1423 * doc/bison.1 (mandoc): Adjust.
1424 From Juan Manuel Guerrero.
1426 2001-08-28 Marc Autret <autret_m@epita.fr>
1428 * src/print_graph.c (print_state): Fix.
1430 2001-08-27 Marc Autret <autret_m@epita.fr>
1432 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1434 Echo modifications to the functions prototypes.
1435 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1437 2001-08-27 Marc Autret <autret_m@epita.fr>
1439 * src/vcg.c: Include `xalloc.h'.
1440 (add_colorentry): New.
1441 (add_classname): New.
1442 (add_infoname): New.
1443 * src/vcg.h: Add new prototypes.
1445 2001-08-27 Akim Demaille <akim@epita.fr>
1447 * Makefile.maint: Sync. again with CVS Autoconf.
1449 2001-08-27 Akim Demaille <akim@epita.fr>
1451 * Makefile.maint: Formatting changes.
1452 (po-update, cvs-update, update): New targets.
1455 2001-08-27 Akim Demaille <akim@epita.fr>
1457 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1458 * Makefile.maint: Sync. with CVS Autoconf.
1460 2001-08-27 Marc Autret <autret_m@epita.fr>
1462 * src/vcg.h (struct infoname_s): New.
1463 (struct colorentry_s): New.
1464 (graph_s): New fields {vertical,horizontal}_order in structure.
1465 Add `infoname' field.
1466 Add `colorentry' field;
1467 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1468 (G_HORIZONTAL_ORDER): New.
1470 (G_COLORENTRY): New.
1471 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1472 Add output of `infoname'.
1473 Add output of `colorentry'.
1475 2001-08-27 Marc Autret <autret_m@epita.fr>
1477 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1478 This one shadowed a global parameter.
1480 2001-08-24 Marc Autret <autret_m@epita.fr>
1482 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1483 instead of `unsigned'.
1484 (print_state): Do not call obstack_object_size () in obstack_grow ()
1485 to avoid macro variables shadowing.
1487 2001-08-23 Marc Autret <autret_m@epita.fr>
1489 * src/lex.c (percent_table): Typo: s/naem/name/.
1491 Normalize new options declarations.
1493 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1495 * tests/suite.at: Exercise %header_extension and %source_extension.
1497 2001-08-16 Marc Autret <autret_m@epita.fr>
1499 * src/reader.c (parse_dquoted_param): New.
1500 (parse_header_extension_decl): Use it.
1501 (parse_source_extension_decl): Likewise.
1503 2001-08-16 Marc Autret <autret_m@epita.fr>
1505 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1506 (get_xxxx_str): Use assert () instead of complain ().
1507 Remove return invokations in default cases.
1508 (get_decision_str): Modify default behaviour. Remove second argument.
1509 Echo modifications on calls.
1510 (output_graph): Fix.
1512 2001-08-16 Marc Autret <autret_m@epita.fr>
1514 * src/getargs.c (usage): Update with ``-g, --graph''.
1516 2001-08-16 Marc Autret <autret_m@epita.fr>
1518 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1519 (Option Cross Key): Likewise.
1520 * doc/bison.1: Update.
1522 2001-08-15 Akim Demaille <akim@epita.fr>
1526 2001-08-15 Marc Autret <autret_m@epita.fr>
1528 * src/reader.c (readgram): Indent output macro YYSTYPE.
1529 (packsymbols): Likewise.
1530 (output_token_defines): Likewise.
1531 * src/files.c: Standardize.
1532 (compute_header_macro): New.
1533 (defines_obstack_save): New. Use compute_header_macro.
1534 (output_files): Update. Use defines_obstack_save.
1536 2001-08-15 Akim Demaille <akim@epita.fr>
1538 * doc/bison.texinfo (Table of Symbols): Document
1541 2001-08-15 Akim Demaille <akim@epita.fr>
1543 * missing: Update from CVS Automake.
1544 * config/config.guess, config/config.sub, config/texinfo.tex:
1545 Update from gnu.org.
1547 2001-08-15 Akim Demaille <akim@epita.fr>
1549 * Makefile.maint: Sync with CVS Autoconf.
1551 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1553 * doc/bison.texinfo: Include GNU Free Documentation License from
1555 * doc/fdl.texi: Add to package.
1557 2001-08-14 Marc Autret <autret_m@epita.fr>
1559 Turn on %{source,header}_extension features.
1561 * src/lex.c (percent_table): Un-CPP out header_extension and
1563 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1564 (compute_exts_from_src): Remove conditions. It restores priorities
1567 2001-08-14 Marc Autret <autret_m@epita.fr>
1569 * src/files.c (compute_base_names): Add extensions computing when
1570 `--file-prefix' used.
1571 Standardize function calls.
1573 2001-08-13 Marc Autret <autret_m@epita.fr>
1575 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1576 defining it (defined but null disables alloca).
1578 2001-08-13 Marc Autret <autret_m@epita.fr>
1580 * src/bison.simple (_yy_memcpy): CPP reformat.
1582 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1584 * tests/atconfig.in (CPPFLAGS): Fix.
1586 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1588 * doc/bison.texinfo: Include GNU General Public License from
1590 * doc/gpl.texi: Add to package.
1592 2001-08-10 Marc Autret <autret_m@epita.fr>
1594 * src/print_graph.h: Fix.
1595 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1597 2001-08-10 Akim Demaille <akim@epita.fr>
1599 * src/system.h: Provide default declarations for stpcpy, strndup,
1602 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1604 * doc/bison.texinfo (Locations): Update @$ stuff.
1606 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1608 * src/bison.simple (YYLLOC_DEFAULT): Update.
1611 2001-08-08 Marc Autret <autret_m@epita.fr>
1613 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1614 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1615 Reported by Fabrice Bauzac.
1617 2001-08-08 Marc Autret <autret_m@epita.fr>
1619 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1620 * src/vcg.c (output_node): Fix.
1621 * src/vcg.h: Cleanup.
1622 * src/print_graph.c: Add comments.
1623 (node_output_size): New global variable. Simplify the formatting of
1624 the VCG graph output.
1625 (print_actions): Unused code is now used. It notifies the final state
1626 and no action states in the VCG graph. It also give the reduce actions.
1627 The `shift and goto' edges are red and the `go to state' edges are
1629 Get the current node name and node_obstack by argument.
1630 (node_obstack): New variable.
1631 (print_state): Manage node_obstack.
1632 (print_core): Use node_obstack given by argument.
1633 A node is not only computed here but in print_actions also.
1634 (print_graph): CPP out useless code instead of commenting it.
1636 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1638 * tests/atconfig.in (CPPFLAGS): Fix.
1640 2001-08-07 Akim Demaille <akim@epita.fr>
1642 * src/print_graph.c (quote): New.
1643 (print_core): Use it.
1645 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1647 * src/vcg.c (complain.h): Include it.
1648 Unepitaize `return' invocations.
1649 [NDEBUG] (main): Remove.
1650 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1651 * src/files.c (open_files): Initialize graph_obstack.
1652 * src/print_graph.c (print_actions): CPP out useless code.
1653 (print_core): Don't output the last `\n' in labels.
1655 * src/files.c (output_files): Output the VCG file.
1656 * src/main.c (main): Invoke print_graph ();
1658 2001-08-06 Marc Autret <autret_m@epita.fr>
1660 Automaton VCG graph output.
1661 Using option ``-g'' or long option ``--graph'', you can generate
1662 a gram_filename.vcg file containing a VCG description of the LALR (1)
1663 automaton of your grammar.
1665 * src/main.c: Call to print_graph() function.
1666 * src/getargs.h: Update.
1667 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1668 (graph_flag): New flag.
1670 (getargs): Add case `g'.
1671 * src/files.c (graph_obstack): New obstack struct.
1672 (open_files): Initialize new obstack.
1673 (output_files): Saves graph_obstack if required.
1674 * src/files.h (graph_obstack): New extern declaration.
1675 * src/Makefile.am: Add new source files.
1677 2001-08-06 Marc Autret <autret_m@epita.fr>
1679 * src/print_graph.c, src/print_graph.h (graph): New.
1680 * src/vcg.h: New file.
1681 * src/vcg.c: New file, VCG graph handling.
1683 2001-08-06 Marc Autret <autret_m@epita.fr>
1685 Add of %source_extension and %header_extension which specify
1686 the source or/and the header output file extension.
1688 * src/files.c (compute_base_names): Remove initialisation of
1689 src_extension and header_extension.
1690 (compute_exts_from_gf): Update.
1691 (compute_exts_from_src): Update.
1692 (output_files): Update.
1693 * src/reader.c (parse_header_extension_decl): New.
1694 (parse_source_extension_decl): New.
1695 (read_declarations): New case statements for the new tokens.
1696 * src/lex.c (percent_table): Add entries for %source_extension
1697 and %header_extension.
1698 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1700 2001-08-06 Marc Autret <autret_m@epita.fr>
1702 * configure.in: Bump to 1.28c.
1703 * doc/bison.texinfo: Texinfo thingies.
1705 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1707 * tests/atconfig.in (CPPFLAGS): Add.
1708 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1710 2001-08-03 Akim Demaille <akim@epita.fr>
1714 2001-08-03 Akim Demaille <akim@epita.fr>
1716 * tests/Makefile.am (check-local): Ship testsuite.
1717 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1720 2001-08-03 Akim Demaille <akim@epita.fr>
1722 * configure.in: Try using -Wformat when compiling.
1724 2001-08-03 Akim Demaille <akim@epita.fr>
1726 * configure.in: Bump to 1.28b.
1728 2001-08-03 Akim Demaille <akim@epita.fr>
1730 * src/complain.c: Adjust strerror_r portability issues.
1732 2001-08-03 Akim Demaille <akim@epita.fr>
1736 2001-08-03 Akim Demaille <akim@epita.fr>
1738 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1739 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1740 * src/getargs.c: Include complain.h.
1741 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1742 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1744 2001-08-03 Akim Demaille <akim@epita.fr>
1746 * src/reader.c (readgram): Display hidden chars in error messages.
1748 2001-08-03 Akim Demaille <akim@epita.fr>
1750 Update to gettext 0.10.39.
1752 2001-08-03 Akim Demaille <akim@epita.fr>
1754 * lib/strspn.c: New.
1756 2001-08-01 Marc Autret <autret_m@epita.fr>
1758 * doc/bison.texinfo: Update.
1759 * doc/bison.1 (mandoc): Update.
1760 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1761 * src/files.c: Support output files extensions computing.
1762 (src_extension): New static variable.
1763 (header_extension): New static variable.
1765 (get_extension_index): New function, gets the index of an extension
1766 filename in a string.
1767 (compute_exts_from_gf): New function, computes extensions from the
1768 grammar file extension.
1769 (compute_exts_from_src): New functions, computes extensions from the
1770 C source file extension, file given by ``-o'' option.
1771 (compute_base_names): Update.
1772 (output_files): Update.
1774 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1776 * doc/bison.texi: Document @$.
1777 (Locations): New section.
1779 2001-07-18 Akim Demaille <akim@epita.fr>
1781 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1782 * config/prev-version.txt, config/move-if-change: New.
1783 * Makefile.am: Adjust.
1785 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1787 * src/bison.simple (yyparse): Suppress warning `comparaison
1788 between signed and unsigned'.
1790 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1792 * src/getargs.h (raw_flag): Remove.
1793 * src/getargs.c: Die on `-r'/`--raw'.
1794 * src/lex.c (parse_percent_token): Die on `%raw'.
1795 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1796 * tests/calc.at: Suppress test with option `--raw'.
1798 2001-07-14 Akim Demaille <akim@epita.fr>
1801 * configure.in: Require Autoconf 2.50.
1802 Update to gettext 0.10.38.
1804 2001-03-16 Akim Demaille <akim@epita.fr>
1806 * doc/bison.texinfo: ANSIfy the examples.
1808 2001-03-16 Akim Demaille <akim@epita.fr>
1810 * getargs.c (skeleton): New variable.
1811 (longopts): --skeleton is a new option.
1812 (shortopts, getargs): -S is a new option.
1813 * getargs.h: Declare skeleton.
1814 * output.c (output_parser): Use it.
1816 2001-03-16 Akim Demaille <akim@epita.fr>
1818 * m4/strerror_r.m4: New.
1819 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1820 * lib/error.h, lib/error.c: Update.
1822 2001-03-16 Akim Demaille <akim@epita.fr>
1824 * src/getargs.c (longopts): Clean up.
1826 2001-02-21 Akim Demaille <akim@epita.fr>
1828 * src/reader.c (gensym): `gensym_count' is your own.
1829 Use a static buf to create the symbol name, as token_buffer is no
1832 2001-02-08 Akim Demaille <akim@epita.fr>
1834 * src/conflicts.c (conflict_report): Be sure not to append to res
1835 between two calls, which could happen if both first sprintf were
1836 skipped, but not the first cp += strlen.
1838 2001-02-08 Akim Demaille <akim@epita.fr>
1840 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1841 New, from fileutils 4.0.37.
1842 * configure.in: Require Autoconf 2.49c. I took some time before
1843 making this decision. This is the only way out for portability
1844 issues in Bison, it would mean way too much duplicate effort to
1845 import in Bison features implemented in 2.49c since 2.13.
1846 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1848 2001-02-02 Akim Demaille <akim@epita.fr>
1850 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1851 * lib/xalloc.h, lib/xmalloc.c: Update.
1853 2001-01-19 Akim Demaille <akim@epita.fr>
1855 Get rid of the ad hoc handling of token_buffer in the scanner: use
1858 * src/lex.c (token_obstack): New.
1859 (init_lex): Initialize it. No longer call...
1860 (grow_token_buffer): this. Remove it.
1861 Adjust all the places which used it to use the obstack.
1863 2001-01-19 Akim Demaille <akim@epita.fr>
1865 * src/lex.h: Rename all the tokens:
1866 s/\bENDFILE\b/tok_eof/g;
1867 s/\bIDENTIFIER\b/tok_identifier/g;
1869 Let them be enums, not #define, to ease debugging.
1870 Adjust all the code.
1872 2001-01-18 Akim Demaille <akim@epita.fr>
1874 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1875 * src/lex.c (maxtoken, grow_token_buffer): Static.
1877 2001-01-18 Akim Demaille <akim@epita.fr>
1879 Since we now use obstacks, more % directives can be enabled.
1881 * src/lex.c (percent_table): Also accept `%yacc',
1882 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1884 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1885 instead of returning a token.
1886 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1887 * src/reader.c (read_declarations): Adjust.
1888 * src/files.c (open_files): Don't call `compute_base_names', don't
1889 compute `attrsfile' since they depend upon data which might be
1890 *in* the input file now.
1891 (output_files): Do it here.
1892 * src/output.c (output_headers): Document the fact that this patch
1893 introduces a guaranteed SEGV for semantic parsers.
1894 * doc/bison.texinfo: Document them.
1895 * tests/suite.at: Exercise these %options.
1897 2000-12-20 Akim Demaille <akim@epita.fr>
1899 Also handle the output file (--verbose) with obstacks.
1901 * files.c (foutput): Remove.
1902 (output_obstack): New.
1903 Adjust all dependencies.
1904 * src/conflicts.c: Return a string.
1905 * src/system.h (obstack_grow_string): Rename as...
1906 (obstack_sgrow): this. Be ready to work with non literals.
1907 (obstack_fgrow4): New.
1909 2000-12-20 Akim Demaille <akim@epita.fr>
1911 * src/files.c (open_files): Fix the computation of short_base_name
1912 in the case of `-o foo.tab.c'.
1914 2000-12-20 Akim Demaille <akim@epita.fr>
1916 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1917 (copy_dollar): Now that everything uses obstacks, get rid of the
1920 2000-12-20 Akim Demaille <akim@epita.fr>
1922 * src/files.c (open_files): Actually the `.output' file is based
1923 on the short_base_name, not base_name.
1924 * tests/suite.at (Checking output file names): Adjust.
1926 2000-12-20 Akim Demaille <akim@epita.fr>
1928 * src/bison.s1: Remove, we now use directly...
1929 * src/bison.simple: this.
1930 * src/Makefile.am: Use pkgdata instead of data.
1932 2000-12-20 Akim Demaille <akim@epita.fr>
1934 * src/files.c (guard_obstack): New.
1935 (open_files): Initialize it.
1936 (output_files): Dump it...
1937 * src/files.h: Export it.
1938 * src/reader.c (copy_guard): Use it.
1940 2000-12-19 Akim Demaille <akim@epita.fr>
1942 * src/files.c (outfile, defsfile, actfile): Removed as global
1944 (open_files): Don't compute them.
1945 (output_files): Adjust.
1946 (base_name, short_base_name): Be global.
1947 Adjust dependencies.
1949 2000-12-19 Akim Demaille <akim@epita.fr>
1951 * src/files.c (strsuffix): New.
1952 (stringappend): Be just like strcat but allocate.
1953 (base_names): Eve out from open_files.
1954 Try to simplify the rather hairy computation of base_name and
1956 (open_files): Use it.
1957 * tests/suite.at (Checking output file names): New test.
1959 2000-12-19 Akim Demaille <akim@epita.fr>
1961 * src/system.h (obstack_grow_literal_string): Rename as...
1962 (obstack_grow_string): this.
1963 * src/output.c (output_parser): Recognize `%% actions' instead of
1965 * src/bison.s1: s/$/%% actions/.
1966 * src/bison.hairy: Likewise.
1968 2000-12-19 Akim Demaille <akim@epita.fr>
1970 * src/output.c (output_parser): Compute the `#line' lines when
1972 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1973 Suggested by Hans Aberg.
1975 2000-12-19 Akim Demaille <akim@epita.fr>
1977 Let the handling of the skeleton files be local to the procedures
1980 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1982 (fparser, open_extra_files): Remove.
1983 (open_files, output_files): Don't take care of fparser.
1984 * src/files.h: Adjust.
1985 * src/output.c (output_parser): Open and close the file to the
1987 * src/reader.c (read_declarations): When %semantic_parser, open
1990 2000-12-19 Akim Demaille <akim@epita.fr>
1992 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1993 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1995 2000-12-19 Akim Demaille <akim@epita.fr>
1997 * src/files.c (open_files): Yipee! We no longer need all the code
1998 looking for `/tmp' since we have no tmp file.
2000 2000-12-19 Akim Demaille <akim@epita.fr>
2002 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2004 * src/files.c (open_files): Less dependency on MSDOS etc.
2006 2000-12-14 Akim Demaille <akim@epita.fr>
2008 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2009 Provide a default definition.
2010 Use it when executing the default @ action.
2011 * src/reader.c (reader_output_yylsp): No longer include
2012 `timestamp' and `text' in the default YYLTYPE.
2014 2000-12-12 Akim Demaille <akim@epita.fr>
2016 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2017 (copy_guard): Quote the file names.
2018 Reported by Laurent Mascherpa.
2020 2000-12-12 Akim Demaille <akim@epita.fr>
2022 * src/output.c (output_headers, output_program, output): Be sure
2023 to escape special characters when outputting filenames.
2024 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2025 (output_headers): Don't depend on them, Use ACTSTR.
2027 2000-11-17 Akim Demaille <akim@epita.fr>
2029 * lib/obstack.h: Formatting changes.
2030 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2031 prevents type checking.
2032 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2033 cast the value to (void *): assigning a `foo *' to a `void *'
2035 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2036 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2039 2000-11-17 Akim Demaille <akim@epita.fr>
2041 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2043 (suite.m4, regression.m4, calc.m4): these.
2044 * tests/atgeneral.m4: Update from CVS Autoconf.
2046 2000-11-17 Akim Demaille <akim@epita.fr>
2048 * tests/regression.m4 (%union and --defines): New test,
2049 demonstrating a current bug in the obstack implementation.
2051 2000-11-17 Akim Demaille <akim@epita.fr>
2053 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2055 Use them to declare the variables which are global or local to
2058 2000-11-17 Akim Demaille <akim@epita.fr>
2060 * acconfig.h: Remove, no longer used.
2062 2000-11-07 Akim Demaille <akim@epita.fr>
2064 * src: s/Copyright (C)/Copyright/g.
2066 2000-11-07 Akim Demaille <akim@epita.fr>
2068 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2070 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2072 2000-11-07 Akim Demaille <akim@epita.fr>
2074 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2075 Merge in a single CPP if/else.
2077 2000-11-07 Akim Demaille <akim@epita.fr>
2079 * src/output.c (output): Remove useless variables.
2080 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2081 argument `data' for consistency with the prototypes.
2083 (obstack_copy, obstack_copy0): Rename the second argument as
2084 `address' for consistency. Qualify it `const'.
2085 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2086 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2087 `const' their input argument (`data' or `address').
2088 Adjust the corresponding macros to include `const' in casts.
2090 2000-11-03 Akim Demaille <akim@epita.fr>
2092 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2093 s/PFILE1/BISON_HAIRY/.
2094 Adjust dependencies.
2096 2000-11-03 Akim Demaille <akim@epita.fr>
2098 For some reason, this was not applied.
2100 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2101 `unlink': it's no longer used.
2103 2000-11-03 Akim Demaille <akim@epita.fr>
2105 * src/files.c (skeleton_find): New function, eved out of...
2106 (open_files, open_extra_files): here.
2108 2000-11-03 Akim Demaille <akim@epita.fr>
2112 * src/files.c (obstack_save): New function.
2113 (done): Rename as...
2114 (output_files): this.
2116 * src/main.c (main): Don't use `atexit' to register `done', since
2117 it no longer has to remove tmp files, just call `output_files'
2118 when there are no errors.
2120 2000-11-02 Akim Demaille <akim@epita.fr>
2122 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2123 `unlink': it's no longer used.
2124 * src/files.h: Formatting changes.
2126 2000-11-02 Akim Demaille <akim@epita.fr>
2128 Remove the last uses of mktemp and unlink/delete.
2130 * src/files.c (fdefines, ftable): Removed.
2131 (defines_ostack, table_obstack): New.
2132 Adjust dependencies of the former into uses of the latter.
2133 * src/output.c (output_short_or_char_table, output_short_table):
2134 Convert to using obstacks.
2135 * src/reader.c (copy_comment2): Accept one FILE * and two
2137 (output_token_defines, reader_output_yylsp): Use obstacks.
2138 * src/system.h (obstack_fgrow3): New.
2140 2000-11-01 Akim Demaille <akim@epita.fr>
2142 Change each use of `fattrs' into a use of `attrs_obstack'.
2144 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2145 * src/files.c (fattrs): Remove.
2146 (attrs_obstack): New.
2147 Adjust all dependencies.
2148 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2150 2000-11-01 Akim Demaille <akim@epita.fr>
2153 Change each use of `faction' into a use of `action_obstack'.
2155 * lib/obstack.h, lib/obstack.c: New files.
2156 * src/files.c (faction): Remove.
2157 (action_obstack): New.
2158 Adjust all dependencies.
2160 2000-10-20 Akim Demaille <akim@epita.fr>
2162 * lib/quote.h (PARAMS): New macro. Use it.
2164 2000-10-16 Akim Demaille <akim@epita.fr>
2166 * src/output.c (output_short_or_char_table): New function.
2167 (output_short_table, output_token_translations): Use it.
2168 (goto_actions): Use output_short_table.
2170 2000-10-16 Akim Demaille <akim@epita.fr>
2172 * src/symtab.c (bucket_new): New function.
2175 * src/output.c (output_short_table): New argument to display the
2176 comment associated with the table.
2177 Adjust dependencies.
2178 (output_gram): Use it.
2179 (output_rule_data): Nicer output layout for YYTNAME.
2181 2000-10-16 Akim Demaille <akim@epita.fr>
2183 * src/lex.c (read_typename): New function.
2185 * src/reader.c (copy_dollar): Likewise.
2187 2000-10-16 Akim Demaille <akim@epita.fr>
2189 * src/reader.c (copy_comment2): Expect the input stream to be on
2190 the `/' which is suspected to open a comment, instead of being
2191 called after `//' or `/*' was read.
2192 (copy_comment, copy_definition, parse_union_decl, copy_action)
2193 (copy_guard): Adjust.
2195 2000-10-16 Akim Demaille <akim@epita.fr>
2197 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2198 `read_signed_integer'.
2200 2000-10-16 Akim Demaille <akim@epita.fr>
2202 * src/reader.c (copy_dollar): New function.
2203 (copy_guard, copy_action): Use it.
2205 2000-10-16 Akim Demaille <akim@epita.fr>
2207 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2208 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2209 New files, from Fileutils 4.0.27.
2210 * src/main.c (printable_version): Remove.
2211 * src/lex.c, src/reader.c: Use `quote'.
2213 2000-10-04 Akim Demaille <akim@epita.fr>
2215 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2217 2000-10-04 Akim Demaille <akim@epita.fr>
2219 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2221 2000-10-04 Akim Demaille <akim@epita.fr>
2223 When a literal string is used to define two different tokens,
2224 `bison -v' segfaults.
2225 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2227 * tests/regression.m4: New file.
2228 Include the core of the sample provided by Piotr Gackiewicz.
2229 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2232 2000-10-04 Akim Demaille <akim@epita.fr>
2234 * src/reader.c (parse_expect_decl): Keep `count' within the size
2238 2000-10-02 Paul Eggert <eggert@twinsun.com>
2240 * bison.s1 (yyparse): Assign the default value
2241 unconditionally, to avoid a GCC warning and make the parser a
2244 2000-10-02 Akim Demaille <akim@epita.fr>
2246 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2249 2000-10-02 Akim Demaille <akim@epita.fr>
2251 * src/derives.c, src/print.c, src/reduce.c: To ease the
2252 translation, move some `\n' out of the translated strings.
2254 2000-10-02 Akim Demaille <akim@epita.fr>
2256 The location tracking mechanism is precious for parse error
2257 messages. Nevertheless, it is enabled only when `@n' is used in
2258 the grammar, which is a different issue (you can use it in error
2259 message, but not in the grammar per se). Therefore, there should
2260 be another means to enable it.
2262 * src/getargs.c (getargs): Support `--locations'.
2264 * src/getargs.h (locationsflag): Export it.
2265 * src/lex.c (percent_table): Support `%locations'.
2266 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2267 with `locationsflag'.
2268 * doc/bison.texinfo: Document `--locations' and `%locations'.
2270 * tests/calc.m4: Test it.
2272 For regularity of the names, replace each
2273 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2274 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2275 In addition replace each `flag' with `_flag'.
2277 2000-10-02 Akim Demaille <akim@epita.fr>
2279 Also test parse error messages, including with YYERROR_VERBOSE.
2281 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2283 Use it to check the computations.
2284 Use it to check `nonassoc' is honored.
2285 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2286 `--yyerror-verbose'.
2287 (_AT_CHECK_CALC): Adjust to this option.
2288 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2290 2000-10-02 Akim Demaille <akim@epita.fr>
2292 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2293 the latter demonstrates a flaw in the handling of non debugging
2294 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2295 was used in order to simplify:
2311 unfortunately this leads to a CPP conflict when
2312 `--name-prefix=foo' is used since it produces `#define yydebug
2315 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2316 (YYDPRINTF): New macro.
2318 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2320 Also test `--verbose', `--defines' and `--name-prefix'.
2322 2000-10-02 Akim Demaille <akim@epita.fr>
2324 Improve the readability of the produced parsers.
2326 * src/bison.s1: Formatting changes.
2327 Improve the comment related to the `$' mark.
2328 (yydefault): Don't fall through to `yyresume': `goto' there.
2329 * src/output.c (output_parser): When the `$' is met, skip the end
2331 New variable, `number_of_dollar_signs', to check there's exactly
2332 one `$' in the parser skeleton.
2334 2000-10-02 Akim Demaille <akim@epita.fr>
2336 * lib/xstrdup.c: New file, from the fileutils.
2337 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2338 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2339 instead of strlen + xmalloc + strcpy.
2340 * src/symtab.c (copys): Remove, use xstrdup instead.
2342 2000-10-02 Akim Demaille <akim@epita.fr>
2344 * src/gram.h (associativity): New enum type which replaces the
2345 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2346 `right_assoc', `left_assoc' and `non_assoc'.
2347 Adjust all dependencies.
2348 * src/reader.c: Formatting changes.
2349 (LTYPESTR): Don't define it, use it as a literal in
2350 `reader_output_yylsp'.
2351 * src/symtab.h (symbol_class): New enum type which replaces the
2352 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2353 `sunknown', `stoken and `snterm'.
2355 2000-10-02 Akim Demaille <akim@epita.fr>
2357 * src/getargs.c (fixed_outfiles): Rename as...
2358 (yaccflag): for consistency and accuracy.
2359 Adjust dependencies.
2361 2000-10-02 Akim Demaille <akim@epita.fr>
2363 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2364 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2365 difficult and introduced a lot of core dump. It turns out that
2366 Bison used an implementation of `xmalloc' based on `calloc', and
2367 at various places it does depend upon the initialization to 0. I
2368 have not tried to isolate the pertinent places, and all the former
2369 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2370 someone should address this issue.
2372 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2373 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2375 Adjust dependencies.
2376 * src/warshall.h: New file.
2379 2000-10-02 Akim Demaille <akim@epita.fr>
2381 Various anti-`extern in *.c' changes.
2383 * src/system.h: Include `assert.h'.
2385 2000-10-02 Akim Demaille <akim@epita.fr>
2387 * src/state.h (nstates, final_state, first_state, first_shift)
2388 (first_reduction): Move their exportation from here...
2389 * src/LR0.h: to here.
2390 Adjust dependencies.
2391 * src/getargs.c (statisticsflag): New variable.
2392 Add support for `--statistics'.
2393 Adjust dependencies.
2395 Remove a lot of now useless `extern' statements in most files.
2397 2000-10-02 Akim Demaille <akim@epita.fr>
2399 * src/LR0.h: New file.
2402 2000-10-02 Akim Demaille <akim@epita.fr>
2404 * src/print.h: New file.
2406 * src/print.c: Formatting and ordering changes.
2407 (verbose, terse): Replace with...
2408 (print_results): this new function.
2409 Adjust dependencies.
2411 2000-10-02 Akim Demaille <akim@epita.fr>
2413 * src/conflicts.c (conflict_report): New function.
2414 (conflict_log, verbose_conflict_log): Replace with...
2415 (print_conflicts): this function.
2416 Adjust dependencies.
2417 * src/conflicts.h: New file.
2418 Propagate its inclusion.
2420 2000-10-02 Akim Demaille <akim@epita.fr>
2422 * src/nullable.h: New file.
2423 Propagate its inclusion.
2424 * src/nullable.c: Formatting changes.
2426 2000-10-02 Akim Demaille <akim@epita.fr>
2428 * src/reduce.h: New file.
2429 Propagate its inclusion.
2430 * src/reduce.c: Topological sort and other formatting changes.
2431 (bool, TRUE, FALSE): Move their definition to...
2432 * src/system.h: here.
2434 2000-10-02 Akim Demaille <akim@epita.fr>
2436 * src/files.c: Formatting changes.
2437 (tryopen, tryclose, openfiles): Rename as...
2438 (xfopen, xfclose, open_files): this.
2439 (stringappend): static.
2440 * src/files.h: Complete the list of exported symbols.
2443 2000-10-02 Akim Demaille <akim@epita.fr>
2445 * src/reader.h: New file.
2446 Propagate its use instead of tedious list of `extern' and
2448 * src/reader.c: Formatting changes, topological sort,
2451 2000-10-02 Akim Demaille <akim@epita.fr>
2453 * src/lex.h: Prototype `lex.c' exported functions.
2454 * src/reader.c: Adjust.
2455 * src/lex.c: Formatting changes.
2456 (safegetc): Rename as...
2459 2000-10-02 Akim Demaille <akim@epita.fr>
2461 * src/lalr.h: New file.
2462 Propagate its inclusion instead of prototypes and `extern'.
2463 * src/lalr.c: Formatting changes, topological sorting etc.
2465 2000-10-02 Akim Demaille <akim@epita.fr>
2467 * src/output.c (token_actions): Introduce a temporary array,
2468 YYDEFACT, that makes it possible for this function to use
2471 2000-10-02 Akim Demaille <akim@epita.fr>
2473 `user_toknums' is output as a `short[]' in `output.c', while it is
2474 defined as a `int[]' in `reader.c'. For consistency with the
2475 other output tables, `user_toknums' is now defined as a table of
2478 * src/reader.c (user_toknums): Be a short table instead of an int
2480 Adjust dependencies.
2482 Factor the short table outputs.
2484 * src/output.c (output_short_table): New function.
2485 * src/output.c (output_gram, output_stos, output_rule_data)
2486 (output_base, output_table, output_check): Use it.
2488 2000-10-02 Akim Demaille <akim@epita.fr>
2490 * src/output.c (output): Topological sort of the functions, in
2491 order to get rid of the `static' prototypes.
2492 No longer use `register'.
2493 * src/output.h: New file.
2494 Propagate its inclusion in files explicitly prototyping functions
2497 2000-09-21 Akim Demaille <akim@epita.fr>
2499 * src/atgeneral.m4: Update from Autoconf.
2501 2000-09-21 Akim Demaille <akim@epita.fr>
2503 * src/closure.h: New file.
2504 * src/closure.c: Formatting changes, topological sort over the
2505 functions, use of closure.h.
2506 (initialize_closure, finalize_closure): Rename as...
2507 (new_closure, free_closure): these. Adjust dependencies.
2508 * src/LR0.c: Formatting changes, topological sort, use of
2510 (initialize_states): Rename as...
2512 * src/Makefile.am (noinst_HEADERS): Adjust.
2514 2000-09-20 Akim Demaille <akim@epita.fr>
2516 * src/acconfig.h: Don't protect config.h against multiple
2518 Don't define PARAMS.
2519 * src/system.h: Define PARAMS.
2520 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2521 purpose of config.h. system.h must not try to fix wrong
2522 definitions in config.h.
2524 2000-09-20 Akim Demaille <akim@epita.fr>
2526 * src/derives.h: New file.
2527 * src/main.c, src/derives.h: Use it.
2529 * src/Makefile.am (noinst_HEADERS): Adjust.
2531 2000-09-20 Akim Demaille <akim@epita.fr>
2533 * tests/atgeneral.m4: Update from Autoconf.
2534 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2535 (AT_CHECK_CALC): New macros.
2536 Use these macros to test bison with options `', `--raw',
2537 `--debug', `--yacc', `--yacc --debug'.
2539 2000-09-19 Akim Demaille <akim@epita.fr>
2541 * src/output.c: Formatting changes.
2542 * src/machine.h: Remove, leaving its contents in...
2543 * src/system.h: here.
2545 Adjust all dependencies on stdio.h and machine.h.
2546 * src/getargs.h: New file.
2547 Let all `extern' declarations about getargs.c be replaced with
2548 inclusion of `getargs.h'.
2549 * src/Makefile.am (noinst_HEADERS): Adjust.
2551 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2553 (yyerror): Returns void, not int.
2554 * doc/bison.texinfo: Formatting changes.
2556 2000-09-19 Akim Demaille <akim@epita.fr>
2558 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2561 2000-09-18 Akim Demaille <akim@epita.fr>
2563 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2564 * src/Makefile.am (INCLUDES): Don't.
2565 Be ready to fetch headers in lib/.
2567 2000-09-18 Akim Demaille <akim@epita.fr>
2569 * doc/bison.texinfo: Update the copyright.
2570 ANSIfy and GNUify the examples.
2571 Remove the old menu.
2573 2000-09-18 Akim Demaille <akim@epita.fr>
2575 First set of tests: use the `calc' example from the documentation.
2577 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2578 is defined only when YYDEBUG is.
2579 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2580 * src/files.c (tryopen, tryclose): Formatting changes.
2581 Move to the top and be static.
2582 * src/reader.c (read_signed_integer): Likewise.
2583 * tests/calc.m4: New file.
2584 * Makefile.am, suite.m4: Adjust.
2585 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2587 2000-09-18 Akim Demaille <akim@epita.fr>
2589 Add support for an Autotest test suite for Bison.
2591 * m4/m4.m4, m4/atconfig.m4: New files.
2592 * m4/Makefile.am (EXTRA_DIST): Adjust.
2593 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2595 * src/getargs.c: Display a more standard --version message.
2596 * src/reader.c (reader): Formatting changes.
2597 No longer depend upon VERSION_STRING.
2598 * configure.in: No longer use `dnl'.
2599 Set up the test suite and the new directory `tests/.
2600 (VERSION_STRING): Remove.
2602 2000-04-14 Akim Demaille <akim@epita.fr>
2604 * src/reader.c (copy_comment2): New function, same as former
2605 `copy_comment', but outputs into two FILE *.
2606 (copy_comment): Use it.
2607 (parse_union_decl): Use it.
2608 (get_type, parse_start_decl): Use the same `invalid' message.
2609 (parse_start_decl, parse_union_decl): Use the same `multiple'
2611 (parse_union_decl, copy_guard, copy_action): Use the same
2612 `unmatched' message.
2613 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2615 2000-03-31 Akim Demaille <akim@epita.fr>
2617 * src/files.c (tryopen, tryclose): Move to the top.
2620 2000-03-31 Akim Demaille <akim@epita.fr>
2622 * src/main.c (main): Don't call `done', exit does it.
2624 2000-03-31 Akim Demaille <akim@epita.fr>
2626 * allocate.c: s/return (foo)/return foo/.
2629 * output.c: Likewise.
2630 * reader.c: Likewise.
2631 * symtab.c: Likewise.
2632 * vmsgetargs.c: Likewise.
2634 2000-03-31 Akim Demaille <akim@epita.fr>
2636 Clean up the error reporting functions.
2638 * src/report.c: New file.
2639 * src/report.h: Likewise.
2640 * src/Makefile.am: Adjust.
2641 * m4/error.m4: New file.
2642 * m4/Makefile.am: Adjust.
2643 * configure.in (jm_PREREQ_ERROR): Call it.
2644 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2646 (fatal, fatals): Remove. All callers use complain.c::fatal.
2647 (warn, warni, warns, warnss, warnss): Remove. All callers use
2648 complain.c::complain.
2649 (toomany): Remove, use fatal instead.
2650 * src/files.c (done): No argument, use complain_message_count.
2651 * src/main.c (main): Register `done' to `atexit'.
2653 * src/getargs.c (usage): More `fputs', less `fprintf'.
2655 2000-03-28 Akim Demaille <akim@epita.fr>
2657 * lib/: New directory.
2658 * Makefile.am (SUBDIRS): Adjust.
2659 * configure.in: Adjust.
2660 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2662 * src/alloca.c: Moved to lib/.
2663 * src/getopt.c: Likewise.
2664 * src/getopt1.c: Likewise.
2665 * src/getopt.h: Likewise.
2666 * src/ansi2knr.c: Likewise.
2667 * src/ansi2knr.1: Likewise.
2668 * src/Makefile.am: Adjust.
2669 * lib/Makefile.am: New file.
2671 2000-03-28 Akim Demaille <akim@epita.fr>
2673 * src/getargs.c (usage): Refresh the help message.
2675 2000-03-17 Akim Demaille <akim@epita.fr>
2677 * src/getopt1.c: Updated from textutils 2.0e
2678 * src/getopt.c: Likewise.
2679 * src/getopt.h: Likewise.
2681 2000-03-17 Akim Demaille <akim@epita.fr>
2683 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2684 the file name, not the whole `#line LINE FILE'.
2686 2000-03-17 Akim Demaille <akim@epita.fr>
2688 On syntax errors, report the token on which we choked.
2690 * src/bison.s1 (yyparse): In the label yyerrlab, when
2691 YYERROR_VERBOSE, add yychar in msg.
2693 2000-03-17 Akim Demaille <akim@epita.fr>
2695 * src/reader.c (copy_at): New function.
2696 (copy_guard): Use it.
2697 (copy_action): Use it.
2699 2000-03-17 Akim Demaille <akim@epita.fr>
2701 Be kind to translators, save some useless translations.
2703 * src/main.c (banner): New function.
2704 (fatal_banner): Use it.
2705 (warn_banner): Use it.
2707 2000-03-17 Akim Demaille <akim@epita.fr>
2709 * src/reader.c (copy_definition): Use copy_string and
2710 copy_comment. Removed now unused `match', `ended',
2712 (copy_comment, copy_string): Moved, to be visible from
2715 2000-03-17 Akim Demaille <akim@epita.fr>
2717 * src/reader.c (copy_string): Declare `static inline'. No
2718 problems with inline, since it is checked by configure.
2719 (copy_comment): Likewise.
2721 2000-03-17 Akim Demaille <akim@epita.fr>
2723 * src/reader.c (packsymbols): Formatting changes.
2725 2000-03-17 Akim Demaille <akim@epita.fr>
2727 * src/reader.c (copy_comment): New function, factored out from:
2728 (copy_action): Use it. Removed now unused `match', `ended',
2730 (copy_guard): Likewise.
2732 2000-03-17 Akim Demaille <akim@epita.fr>
2734 * src/reader.c (copy_string): New function, factored out from:
2735 (copy_action): Use it.
2736 (copy_guard): Likewise.
2738 2000-03-17 Akim Demaille <akim@epita.fr>
2740 Change the handling of @s so that they behave exactly like $s.
2741 There is now a pseudo variable @$ (readble and writable), location
2742 of the lhs of the rule (by default ranging from the location of
2743 the first symbol of the rhs, to the location of the last symbol,
2744 or, if the rhs is empty, YYLLOC).
2746 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2748 (yyparse): When providing a default semantic action, provide a
2749 default location action.
2750 (after the $): No longer change `*YYLSP', just stack YYLOC the
2751 same way you stack YYVAL.
2752 * src/reader.c (read_declarations): Use warns.
2753 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2754 (copy_action, case '@'): Likewise.
2755 Use a standard error message, to save useless work from
2758 2000-03-17 Akim Demaille <akim@epita.fr>
2760 * src/bison.s1: Formatting and cosmetics changes.
2761 * src/reader.c: Likewise.
2762 Update the Copyright notice.
2764 2000-03-17 Akim Demaille <akim@epita.fr>
2766 * src/bison.s1 (#line): All set to `#line' only, since the
2767 Makefile now handles them.
2769 2000-03-16 Akim Demaille <akim@epita.fr>
2771 * src/output.c (output_rule_data): Output the documentation of
2773 (Copyright notice): Update.
2776 2000-03-16 Akim Demaille <akim@epita.fr>
2778 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2779 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2780 One `#if YYDEBUG' remains, since it uses variables which are
2781 defined only if `YYDEBUG != 0'.
2783 2000-03-16 Akim Demaille <akim@epita.fr>
2785 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2786 and related variables so that the similarities are highlighted.
2788 2000-03-16 Akim Demaille <akim@epita.fr>
2790 * src/bison.s1: Properly indent CPP directives.
2792 2000-03-16 Akim Demaille <akim@epita.fr>
2794 * src/bison.s1: Properly indent the `alloca' CPP section.
2796 2000-03-16 Akim Demaille <akim@epita.fr>
2798 Do not hard code values of directories in `configure.in'.
2799 Update the `configure' tool chain.
2801 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2803 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2804 (AC_OUTPUT): Add m4/Makefile.
2805 Bump to bison 1.28a, 1.29 has never been released.
2806 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2807 handled via src/Makefile.am.
2808 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2809 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2811 * Makefile.am (SUBDIRS): Add m4.
2812 (ACLOCAL_AM_FLAGS): New variable.
2813 (AUTOMAKE_OPTIONS): Add check-news.
2814 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2815 the proper line number and file name.
2816 (DEFS): Propagate the location of bison library files and of the
2818 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2820 * acinclude.m4: Remove, replaced by the directory m4.
2821 * m4/Makefile.am (EXTRA_DIST): New variable.
2822 * m4/gettext.m4: New file, from the fileutils.
2823 * m4/lcmessage.m4: Likewise
2824 * m4/progtest.m4: Likewise.
2825 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2827 2000-03-10 Akim Demaille <akim@epita.fr>
2830 Formatting changes of various comments.
2831 Respect the GNU coding standards at various places.
2832 Don't use `_()' when no translation is needed.
2834 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2837 OS/2 honors TMPDIR environment variable.
2839 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2841 * doc/bison.texinfo: Tweaked spelling and grammar.
2843 Removed reference to price of printed copy.
2844 Mention BISON_SIMPLE and BISON_HAIRY.
2846 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2848 * configure.in, NEWS:
2849 Bison 1.29 released.
2851 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2853 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2854 Added reference card.
2856 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2858 * po/ru.po: Added Russian translation.
2860 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2862 * configure.in: Added Russian translation.
2864 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2866 * configure.in, NEWS, README:
2867 Released version 1.28.
2869 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2872 Squashed redefinition warning on some systems.
2874 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2875 Have configure build version string instead of relying on ANSI string
2878 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2880 * po/POTFILES.in: Got rid of version.c.
2882 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2884 * acconfig.h, configure.in:
2885 Have configure build version string instead of relying on ANSI string
2888 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2891 Dropped mention of `+' for long-named options.
2893 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2895 * src/files.c: Added <unistd.h> for unlink().
2897 * src/Makefile.am, src/system.h:
2900 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2902 * README: Added a FAQ list.
2904 * configure.in, acconfig.h:
2907 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2909 * doc/FAQ, doc/Makefile.am:
2912 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2914 * src/alloc.h, src/symtab.h, src/version.c:
2915 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2917 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2919 * src/.cvsignore, src/Makefile.am:
2920 Reorganized: sources in `src', documentation in `doc'.
2922 * src/lex.c (literalchar):
2923 fixed the code for escaping double quotes (thanks
2926 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2928 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2929 Adjusted paths to reflect directory reorganization.
2931 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2933 * doc/.cvsignore, doc/Makefile.am:
2934 Reorganized: sources in `src', documentation in `doc'.
2936 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2939 Updated AC_INIT file to reflect directory reorganization.
2941 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2942 Reorganized: sources in `src', documentation in `doc'.
2944 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2947 Don't declare calloc() and realloc() if not necessary.
2949 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2951 * configure.in, acconfig.h, acinclude.m4:
2952 Don't declare calloc() and realloc() if not necessary.
2954 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2956 * po/.cvsignore: Added i18n support.
2958 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2960 * acconfig.h, configure.in, Makefile.am:
2963 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2965 * src/bison.s1: Fixed #line numbers.
2967 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2969 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2970 Added PO files from Translation Project.
2972 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2975 Added support for non-ANSI compilers (ansi2knr).
2977 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2979 * configure.in: Bumped version number to 1.27.
2982 Added `bison.simple' to list of files removed by `make distclean'.
2984 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2986 * src/files.c, src/files.h:
2987 Defined locations of parser files in config.h instead of Makefile.
2989 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2991 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2992 Defined locations of parser files in config.h instead of Makefile.
2994 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2997 Removed inappropriate use of $< macro.
2999 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3001 * po/Makefile.in.in, po/POTFILES.in:
3002 Add `po' directory skeleton.
3004 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3006 * README: Document help-bison list.
3008 * configure.in: Add check for mkstemp().
3010 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3012 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3013 Hush a few compiler warnings.
3016 Add tryclose(), which verifies that fclose was successful.
3017 Hush a couple of compiler warnings.
3019 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3021 * Makefile.am, OChangeLog:
3022 ChangeLog is now automatically generated. Include the old version as
3025 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3027 * 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:
3030 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3032 * doc/bison.texinfo: Fix formatting glitch.
3034 * doc/bison.texinfo: Update FSF address.
3036 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3038 * acconfig.h: Update FSF address.
3040 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3043 Don't define PACKAGE here, since config.h defines it.
3045 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3047 * src/reader.c: Update copyright date.
3050 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3051 favor of output directly to stderr (avoids buffer overruns).
3053 * src/reader.c: Some checks for premature EOF.
3055 * 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:
3056 Use prototypes if the compiler understands them.
3058 * src/files.c: Honor TMPDIR on Unix hosts.
3059 Use prototypes if the compiler understands them.
3062 Fix a couple of buffer overrun bugs.
3063 Use prototypes if the compiler understands them.
3065 * src/system.h: Include unistd.h and ctype.h.
3066 Use #ifdef instead of #if for NLS symbols.
3068 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3070 * doc/bison.texinfo:
3071 Delete comment "consider using @set for edition number, etc..." since
3072 we now are doing so.
3074 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3077 Use prototypes if the compiler understands them.
3079 * NEWS: Document 1.26 highlights.
3081 * Makefile.am: Require Automake 1.3 or later.
3084 Use prototypes if the compiler understands them.
3086 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3089 Use VERSION symbol from automake for version number.
3091 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3093 * acconfig.h, configure.in, version.cin:
3094 Use VERSION symbol from automake for version number.
3096 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3099 Distribute original version of simple parser (bison.s1), not built
3100 version (bison.simple).
3102 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3104 * doc/bison.texinfo: Add info dir entry.
3106 * doc/bison.texinfo:
3107 Let automake put version number into documentation.
3109 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3111 * src/bison.cld, src/build.com, src/vmshlp.mar:
3112 Add non-RCS files from /gd/gnu/bison.
3114 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3117 Document the BISON_HAIRY and BISON_SIMPLE variables.
3119 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3121 * src/version.c: Build version.c automatically.
3124 Fix token numbering (used to start at 258, not 257).
3126 * src/system.h: Include config.h.
3128 * src/getargs.c: Update bug report address.
3130 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3131 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3133 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3136 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3138 * configure.in, version.cin:
3139 Build version.c automatically.
3141 * AUTHORS: Add AUTHORS file.
3143 * README: Update bug report address.
3146 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3148 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3151 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3153 * doc/bison.texinfo: Clean up some formatting.
3155 1998-05-05 Richard Stallman <rms@gnu.org>
3157 * doc/bison.texinfo:
3158 Explain better why to make a pure parser.
3160 1998-01-05 Richard Stallman <rms@gnu.org>
3162 * src/files.c (openfiles):
3163 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3164 find a temporary directory, if possible. Do not unlink files while
3167 1997-08-25 Richard Stallman <rms@gnu.org>
3169 * src/reader.c (stack_offset;):
3170 Change some warni to warns.
3172 * src/lex.c (literalchar): Use warns, not warni.
3174 1997-06-28 Richard Stallman <rms@gnu.org>
3176 * src/bison.s1: Add a Bison version comment.
3178 * src/main.c (fatal, warn, berror):
3181 1997-06-28 Richard Stallman <rms@gnu.org>
3183 * Makefile.in (bison_version): New variable.
3184 (dist): Use that variable.
3185 (bison.s1): Substitute the Bison version into bison.simple.
3187 * bison.simple: Add a Bison version comment.
3189 1997-06-18 Richard Stallman <rms@gnu.org>
3191 * src/main.c (fatal, warn, berror):
3192 Make error messages standard.
3193 (toomany): Improve error message text.
3195 * 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:
3196 new.h renamed to alloc.h.
3198 1997-06-18 Richard Stallman <rms@gnu.org>
3200 * Makefile.in: new.h renamed to alloc.h.
3202 1997-05-24 Richard Stallman <rms@gnu.org>
3204 * src/lex.c (literalchar):
3205 Fix the code for escaping \, " and '.
3207 (lex): Avoid trouble when there are many chars
3208 to discard in a char literal with just several chars in it.
3210 1997-05-17 Richard Stallman <rms@gnu.org>
3213 Use malloc, if using alloca is troublesome.
3214 (YYSTACK_USE_ALLOCA): New flag macro.
3215 Define it for some systems and compilers.
3216 (YYSTACK_ALLOC): New macro.
3217 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3218 If it was malloc'd, free it.
3220 1997-05-17 Richard Stallman <rms@gnu.org>
3223 Use malloc, if using alloca is troublesome.
3224 (YYSTACK_USE_ALLOCA): New flag macro.
3225 Define it for some systems and compilers.
3226 (YYSTACK_ALLOC): New macro.
3227 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3228 If it was malloc'd, free it.
3230 1997-04-23 Richard Stallman <rms@gnu.org>
3233 (alloca) [__hpux]: Always define as __builtin_alloca.
3235 1997-04-23 Richard Stallman <rms@gnu.org>
3238 (alloca) [__hpux]: Always define as __builtin_alloca.
3240 1997-04-22 Richard Stallman <rms@gnu.org>
3243 [__hpux]: Include alloca.h (right for HPUX 10)
3244 instead of declaring alloca (right for HPUX 9).
3246 * src/bison.s1 (__yy_memcpy):
3247 Declare arg `count' as unsigned int.
3248 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3250 1997-04-22 Richard Stallman <rms@gnu.org>
3253 [__hpux]: Include alloca.h (right for HPUX 10)
3254 instead of declaring alloca (right for HPUX 9).
3256 * bison.simple (__yy_memcpy):
3257 Declare arg `count' as unsigned int.
3258 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3260 1997-01-03 Richard Stallman <rms@gnu.org>
3262 * src/allocate.c: [__STDC__ or _MSC_VER]:
3263 Declare calloc and realloc to return void *.
3265 1997-01-02 Richard Stallman <rms@gnu.org>
3268 [_MSC_VER]: Include stdlib.h and process.h.
3269 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3271 * src/main.c (main): Return FAILURE as a value.
3272 (printable_version): Declare arg as int, not char.
3274 1997-01-02 Richard Stallman <rms@gnu.org>
3276 * Makefile.in (dist):
3277 Explicitly check for symlinks, and copy them.
3279 1996-12-19 Richard Stallman <rms@gnu.org>
3282 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3284 1996-12-18 Paul Eggert <eggert@gnu.org>
3286 * src/bison.s1 (yyparse):
3287 If __GNUC__ and YYPARSE_PARAM are both defined,
3288 declare yyparse to have a void * argument.
3290 1996-12-18 Paul Eggert <eggert@gnu.org>
3292 * bison.simple (yyparse):
3293 If __GNUC__ and YYPARSE_PARAM are both defined,
3294 declare yyparse to have a void * argument.
3296 1996-12-17 Richard Stallman <rms@gnu.org>
3298 * src/reduce.c (nbits): Add some casts.
3300 1996-08-12 Richard Stallman <rms@gnu.org>
3302 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3304 1996-08-12 Richard Stallman <rms@gnu.org>
3306 * bison.simple: Test _MSDOS as well as _MSDOS_.
3308 1996-07-31 Richard Stallman <rms@gnu.org>
3311 [__sun && __i386]: Include alloca.h.
3313 1996-07-31 Richard Stallman <rms@gnu.org>
3316 [__sun && __i386]: Include alloca.h.
3318 1996-07-30 Richard Stallman <rms@gnu.org>
3320 * src/bison.s1: Comment change.
3322 * src/bison.s1: Test _MSDOS_, not MSDOS.
3324 1996-07-30 Richard Stallman <rms@gnu.org>
3326 * bison.simple: Comment change.
3328 * bison.simple: Test _MSDOS_, not MSDOS.
3330 1996-06-01 Richard Stallman <rms@gnu.org>
3332 * 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:
3333 Insert `_' macro around many string constants.
3336 Insert `_' macro around many string constants.
3338 (main): Call setlocale, bindtextdomain and textdomain.
3340 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3341 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3342 [ENABLE_NLS]: Include libintl.h.
3343 [ENABLE_NLS] (gettext): Define.
3344 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3345 (N_, PACKAGE, LOCALEDIR): New macros.
3347 1996-06-01 Richard Stallman <rms@gnu.org>
3349 * POTFILES.in: New file.
3351 * Makefile.in (allocate.o):
3352 Define target explicitly.
3354 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3355 (LDFLAGS): Set to @LDFLAGS@.
3356 (configure): Run autoconf only if preceding `cd' succeeds.
3357 (bison.s1): Redirect output to temporary file then move the
3358 temporary to the target, rather than redirecting directly to bison.s1.
3359 (clean): Remove config.status and config.log.
3360 (distclean): Don't remove config.status here.
3362 1996-05-12 Richard Stallman <rms@gnu.org>
3365 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3367 1996-05-12 Richard Stallman <rms@gnu.org>
3370 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3372 1996-05-11 Richard Stallman <rms@gnu.org>
3374 * src/bison.s1 (__yy_memcpy):
3375 Really reorder the args, as was supposedly done on Feb 14 1995.
3376 (yyparse): Calls changed accordingly.
3378 1996-05-11 Richard Stallman <rms@gnu.org>
3380 * Makefile.in (dist): Don't use $(srcdir).
3382 * bison.simple (__yy_memcpy):
3383 Really reorder the args, as was supposedly done on Feb 14 1995.
3384 (yyparse): Calls changed accordingly.
3386 1996-01-27 Richard Stallman <rms@gnu.org>
3388 * src/output.c (output_rule_data):
3389 Test YYERROR_VERBOSE in the conditional
3390 around the definition of ttyname.
3392 1995-12-29 Richard Stallman <rms@gnu.org>
3395 Fix line numbers in #line commands.
3397 1995-12-29 Richard Stallman <rms@gnu.org>
3400 Fix line numbers in #line commands.
3402 1995-12-27 Richard Stallman <rms@gnu.org>
3404 * src/bison.s1 (YYPARSE_PARAM_DECL):
3405 In C++, make it always null.
3406 (YYPARSE_PARAM_ARG): New macro.
3407 (yyparse): Use YYPARSE_PARAM_ARG.
3409 1995-12-27 Richard Stallman <rms@gnu.org>
3411 * bison.simple (YYPARSE_PARAM_DECL):
3412 In C++, make it always null.
3413 (YYPARSE_PARAM_ARG): New macro.
3414 (yyparse): Use YYPARSE_PARAM_ARG.
3416 1995-11-29 Richard Stallman <rms@gnu.org>
3418 * doc/bison.texinfo:
3419 Describe literal string tokens, %raw, %no_lines, %token_table.
3421 1995-11-29 Daniel Hagerty <hag@gnu.org>
3423 * doc/bison.texinfo: Fixed update date
3425 1995-10-16 Richard Stallman <rms@gnu.org>
3427 * src/version.c: Version 1.25.
3429 1995-10-16 Richard Stallman <rms@gnu.org>
3431 * NEWS: *** empty log message ***
3433 1995-10-16 Richard Stallman <rms@gnu.org>
3435 * doc/bison.1, doc/bison.rnh:
3438 1995-10-15 Richard Stallman <rms@gnu.org>
3440 * src/vmsgetargs.c, src/getargs.c:
3441 Added -n, -k, and -raw switches.
3442 (noparserflag, toknumflag, rawtoknumflag): New variables.
3444 * src/symtab.h (SALIAS):
3445 New #define for adding aliases to %token.
3446 (struct bucket): Added `alias' field.
3448 * src/reduce.c (reduce_grammar):
3449 Revise error message.
3450 (print_notices): Remove final `.' from error message.
3452 * src/reader.c (reader_output_yylsp):
3454 (readgram): Use `#if 0' around code that accepted %command
3455 inside grammar rules: The documentation doesn't allow it,
3456 and it will fail since the %command processors scan for the next %.
3457 (parse_token_decl): Extended the %token
3458 declaration to allow a multi-character symbol as an alias.
3459 (parse_thong_decl): New function.
3460 (read_declarations): Added %thong declarations.
3461 (read_declarations): Handle NOOP to deal with allowing
3462 % declarations as another means to specify the flags.
3463 (readgram): Allow %prec prior to semantics embedded in a rule.
3464 (skip_to_char, read_declarations, copy_definition)
3465 (parse_token_decl, parse_start_decl, parse_type_decl)
3466 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3467 (get_type_name, copy_guard, copy_action, readgram)
3468 (get_type, packsymbols): Revised most error messages.
3469 Changed `fatal' to `warnxxx' to avoid aborting for error.
3470 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3471 (read_declarations): Improve the error message for
3472 an invalid character. Do not abort.
3473 (read_declarations, copy_guard, copy_action): Use
3474 printable_version to avoid unprintable characters in printed output.
3475 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3476 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3477 Allow the type of a non-terminal can be given
3478 more than once, as long as all specifications give the same type.
3481 (output_headers, output_trailers, output, output_gram)
3482 (output_rule_data): Implement noparserflag variable.
3483 Implement toknumflag variable.
3484 (output): Call reader_output_yylsp to output LTYPESTR.
3486 * src/main.c (main):
3487 If reader sees an error, don't process the grammar.
3488 (fatals): Updated to not use VARARGS1.
3489 (printable_version, int_to_string, warn, warni, warns, warnss)
3490 (warnsss): New error reporting functions. Avoid abort for error.
3493 Added THONG and NOOP for alias processing.
3494 Added SETOPT for the new code that allows setting options with %flags.
3497 Include getopt.h. Add some extern decls.
3498 (safegetc): New function to deal with EOF gracefully.
3499 (literalchar); new function to deal with reading \ escapes.
3500 (lex): Use literalchar.
3501 (lex): Implemented "..." tokens.
3502 (literalchar, lex, parse_percent_token): Made tokenbuffer
3503 always contain the token. This includes growing the token
3504 buffer while reading an integer.
3505 (parse_percent_token): Replaced if-else statement with percent_table.
3506 (parse_percent_token): Added % declarations as another
3507 way to specify the flags -n, -l, and -r. Also added hooks for
3508 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3509 major changes to files.c.
3510 (lex) Retain in the incoming stream a character following
3512 (skip_white_space, lex): Revised most error messages
3513 and changed fatal to warn to avoid aborting.
3514 (percent_table): Added %thong declarations.
3516 * src/gram.h: Comment changes.
3518 * src/files.c (openfiles, open_extra_files, done):
3520 and actfile file. Handle noparserflag. Both for -n switch.
3522 * src/conflicts.c (resolve_sr_conflict):
3523 Remove use of alloca.
3525 1995-06-01 Jim Meyering <meyering@gnu.org>
3527 * doc/bison.texinfo: *** empty log message ***
3529 1995-05-06 Richard Stallman <rms@gnu.org>
3531 * src/bison.s1: Comment change.
3533 1995-05-06 Richard Stallman <rms@gnu.org>
3535 * bison.simple: Comment change.
3537 1995-05-03 Richard Stallman <rms@gnu.org>
3539 * src/version.c: Version now 1.24.
3541 * src/bison.s1: Change distribution terms.
3543 * src/version.c: Version now 1.23.
3545 1995-05-03 Richard Stallman <rms@gnu.org>
3547 * doc/bison.texinfo:
3548 Rewrite "Conditions for Using Bison".
3549 Update version to 1.24.
3551 1995-05-03 Richard Stallman <rms@gnu.org>
3553 * bison.simple: Change distribution terms.
3555 1995-02-23 Richard Stallman <rms@gnu.org>
3557 * src/files.c: Test __VMS_POSIX as well as VMS.
3559 1995-02-14 Jim Meyering <meyering@gnu.org>
3561 * src/bison.s1 (__yy_memcpy):
3562 Renamed from __yy_bcopy to avoid
3563 confusion. Reverse FROM and TO arguments to be consistent with
3566 1995-02-14 Jim Meyering <meyering@gnu.org>
3568 * bison.simple (__yy_memcpy):
3569 Renamed from __yy_bcopy to avoid
3570 confusion. Reverse FROM and TO arguments to be consistent with
3573 1994-11-10 David J. MacKenzie <djm@gnu.org>
3579 * Makefile.in (DISTFILES): Include NEWS.
3581 * Makefile.in (DISTFILES):
3582 Include install-sh, not install.sh.
3584 * configure.in: Update to Autoconf v2 macro names.
3586 1994-10-05 David J. MacKenzie <djm@gnu.org>
3588 * Makefile.in: fix typo
3590 * Makefile.in (prefix, exec_prefix):
3591 Let configure set them.
3593 1994-09-28 David J. MacKenzie <djm@gnu.org>
3595 * Makefile.in: Set datadir to $(prefix)/share.
3597 1994-09-15 Richard Stallman <rms@gnu.org>
3600 Update copyright notice and GPL version.
3602 1994-09-15 Richard Stallman <rms@gnu.org>
3605 Update copyright notice and GPL version.
3607 1994-07-12 Richard Stallman <rms@gnu.org>
3609 * src/reduce.c, src/reader.c:
3612 1994-05-05 David J. MacKenzie <djm@gnu.org>
3614 * Makefile.in: entered into RCS
3616 1994-03-26 Richard Stallman <rms@gnu.org>
3618 * src/bison.s1: entered into RCS
3620 1994-03-26 Richard Stallman <rms@gnu.org>
3622 * bison.simple: entered into RCS
3624 1994-03-25 Richard Stallman <rms@gnu.org>
3626 * src/main.c: entered into RCS
3628 1994-03-24 Richard Stallman <rms@gnu.org>
3630 * src/conflicts.c: entered into RCS
3632 1994-01-02 Richard Stallman <rms@gnu.org>
3634 * Makefile.in: *** empty log message ***
3636 1993-11-21 Richard Stallman <rms@gnu.org>
3638 * src/bison.s1: *** empty log message ***
3640 1993-11-21 Richard Stallman <rms@gnu.org>
3642 * doc/bison.texinfo: entered into RCS
3644 * doc/bison.texinfo: *** empty log message ***
3646 1993-11-21 Richard Stallman <rms@gnu.org>
3648 * bison.simple: *** empty log message ***
3650 1993-10-25 David J. MacKenzie <djm@gnu.org>
3652 * doc/bison.texinfo: *** empty log message ***
3654 1993-10-19 Richard Stallman <rms@gnu.org>
3656 * src/bison.s1: *** empty log message ***
3658 1993-10-19 Richard Stallman <rms@gnu.org>
3660 * bison.simple: *** empty log message ***
3662 1993-10-14 Richard Stallman <rms@gnu.org>
3664 * src/bison.s1: *** empty log message ***
3666 1993-10-14 Richard Stallman <rms@gnu.org>
3668 * bison.simple: *** empty log message ***
3670 1993-09-14 David J. MacKenzie <djm@gnu.org>
3672 * doc/bison.texinfo: *** empty log message ***
3674 1993-09-13 Noah Friedman <friedman@gnu.org>
3676 * Makefile.in: *** empty log message ***
3678 1993-09-10 Richard Stallman <rms@gnu.org>
3680 * src/conflicts.c: *** empty log message ***
3682 * src/system.h: entered into RCS
3684 1993-09-10 Richard Stallman <rms@gnu.org>
3686 * doc/bison.1: entered into RCS
3688 1993-09-06 Noah Friedman <friedman@gnu.org>
3690 * src/version.c: entered into RCS
3692 1993-09-06 Noah Friedman <friedman@gnu.org>
3694 * Makefile.in: *** empty log message ***
3696 1993-07-30 David J. MacKenzie <djm@gnu.org>
3698 * Makefile.in: *** empty log message ***
3700 1993-07-24 Richard Stallman <rms@gnu.org>
3702 * src/bison.s1: *** empty log message ***
3704 1993-07-24 Richard Stallman <rms@gnu.org>
3706 * bison.simple: *** empty log message ***
3708 1993-07-08 David J. MacKenzie <djm@gnu.org>
3710 * Makefile.in: *** empty log message ***
3712 1993-07-04 Richard Stallman <rms@gnu.org>
3714 * src/bison.s1: *** empty log message ***
3716 1993-07-04 Richard Stallman <rms@gnu.org>
3718 * bison.simple: *** empty log message ***
3720 1993-06-26 David J. MacKenzie <djm@gnu.org>
3722 * src/getargs.c: entered into RCS
3724 1993-06-26 David J. MacKenzie <djm@gnu.org>
3726 * doc/bison.texinfo: *** empty log message ***
3728 * doc/bison.1: New file.
3730 1993-06-25 Richard Stallman <rms@gnu.org>
3732 * src/getargs.c: New file.
3734 1993-06-16 Richard Stallman <rms@gnu.org>
3736 * src/bison.s1: *** empty log message ***
3738 1993-06-16 Richard Stallman <rms@gnu.org>
3740 * bison.simple: *** empty log message ***
3742 1993-06-03 Richard Stallman <rms@gnu.org>
3744 * src/bison.s1: New file.
3746 1993-06-03 Richard Stallman <rms@gnu.org>
3748 * doc/bison.texinfo: *** empty log message ***
3750 1993-06-03 Richard Stallman <rms@gnu.org>
3752 * bison.simple: New file.
3754 1993-05-19 Richard Stallman <rms@gnu.org>
3756 * doc/bison.texinfo: New file.
3758 1993-05-07 Noah Friedman <friedman@gnu.org>
3760 * Makefile.in: *** empty log message ***
3762 1993-04-28 Noah Friedman <friedman@gnu.org>
3764 * src/reader.c: *** empty log message ***
3766 1993-04-23 Noah Friedman <friedman@gnu.org>
3768 * src/alloc.h: entered into RCS
3770 1993-04-20 David J. MacKenzie <djm@gnu.org>
3772 * src/version.c: *** empty log message ***
3774 * src/files.c, src/allocate.c:
3777 * src/reader.c: *** empty log message ***
3779 * src/lex.c: entered into RCS
3781 * src/conflicts.c: New file.
3783 * src/symtab.c: entered into RCS
3785 * src/alloc.h: New file.
3787 * src/LR0.c: entered into RCS
3789 1993-04-18 Noah Friedman <friedman@gnu.org>
3791 * src/reader.c: New file.
3793 * src/version.c: *** empty log message ***
3795 1993-04-18 Noah Friedman <friedman@gnu.org>
3797 * Makefile.in: *** empty log message ***
3799 1993-04-17 Noah Friedman <friedman@gnu.org>
3801 * Makefile.in: *** empty log message ***
3803 1993-04-15 Richard Stallman <rms@gnu.org>
3805 * src/main.c, src/files.c:
3808 1993-04-15 Noah Friedman <friedman@gnu.org>
3810 * configure.in: entered into RCS
3812 * configure.in: *** empty log message ***
3814 * configure.in: New file.
3816 1993-04-14 Richard Stallman <rms@gnu.org>
3818 * Makefile.in: New file.
3820 1993-04-13 Richard Stallman <rms@gnu.org>
3822 * src/version.c: New file.
3824 1993-03-25 Richard Stallman <rms@gnu.org>
3826 * src/output.c: entered into RCS
3828 1992-09-25 Richard Stallman <rms@gnu.org>
3830 * configure.bat: entered into RCS
3832 1992-06-22 Richard Stallman <rms@gnu.org>
3834 * src/vmsgetargs.c: entered into RCS
3836 1992-06-22 Richard Stallman <rms@gnu.org>
3838 * doc/bison.rnh: entered into RCS
3840 1992-04-20 David J. MacKenzie <djm@gnu.org>
3842 * README: entered into RCS
3844 1992-01-22 Richard Stallman <rms@gnu.org>
3846 * src/machine.h: entered into RCS
3848 1991-12-21 Richard Stallman <rms@gnu.org>
3850 * src/lalr.c, src/closure.c:
3853 1991-12-20 Richard Stallman <rms@gnu.org>
3855 * src/state.h: entered into RCS
3857 1991-12-18 Richard Stallman <rms@gnu.org>
3859 * src/print.c, src/nullable.c, src/derives.c:
3862 1991-11-03 David J. MacKenzie <djm@gnu.org>
3864 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3867 1988-09-09 Richard Stallman <rms@gnu.org>
3869 * src/bison.hairy: entered into RCS
3871 1987-12-16 Richard Stallman <rms@gnu.org>
3873 * REFERENCES: entered into RCS