1 2001-12-15 Akim Demaille <akim@epita.fr>
3 * src/nullable.c (set_nullable): Useless rules must be skipped,
4 otherwise, since we range over their symbols, we might look at a
5 nonterminal which no longer ``exists'', i.e., it is not counted in
6 `nvars', hence we overflow our arrays.
8 2001-12-15 Akim Demaille <akim@epita.fr>
10 * src/reader.c (copy_action): When --yacc, don't append a `;'
11 to the user action: let it fail if lacking.
12 Suggested by Aharon Robbins and Tom Tromey.
14 2001-12-13 Akim Demaille <akim@epita.fr>
18 2001-12-13 Akim Demaille <akim@epita.fr>
20 The computation of nullable is broken: it doesn't handle empty
23 * tests/torture.at (GNU AWK Grammar): New.
24 * tests/sets.at (Nullable): New.
25 * src/nullable.c (set_nullable): Instead of blindly looping over
26 `ritems', loop over the rules, and then over their rhs's.
28 Work around Autotest bugs.
30 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
31 frame, because Autotest understand lines starting with a `+' as
32 traces from the shell. Then, they are not processed properly.
33 Admittedly an Autotest bug, but we don't have time to wait for
35 * tests/regression.at (Broken Closure): Adjust to the new table
38 * tests/sets.at: here.
40 2001-12-12 Paul Eggert <eggert@twinsun.com>
42 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
43 Do not infringe on the global user namespace when using C++.
44 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
45 All uses of `fprintf' and `stderr' changed.
47 * src/output.c (output): Do not output "#include <stdio.h>"; that
48 is bison.simple's job. stdio.h should be included only if
49 necessary, to avoid infringing on the user name space when
52 2001-12-12 Akim Demaille <akim@epita.fr>
54 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
55 on that of lib/error.c.
57 2001-12-12 Akim Demaille <akim@epita.fr>
59 Some hosts don't like `/' in includes.
61 * src/system.h: Include libgettext.h without qualifying the path.
62 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
65 2001-12-10 Akim Demaille <akim@epita.fr>
67 Bison dumps core on bash.y.
68 Reported by Pascal Bart.
70 * src/warshall.c (bitmatrix_print): New.
72 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
73 j must be the outer loop.
74 * tests/regression.at (Broken Closure): New.
76 2001-12-05 Akim Demaille <akim@epita.fr>
80 2001-12-05 Akim Demaille <akim@epita.fr>
82 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
84 Reported by Peter Hámorský.
86 2001-12-05 Akim Demaille <akim@epita.fr>
88 * src/conflicts.c (err_table): Remove.
89 (resolve_sr_conflict): Adjust.
90 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
92 (state_t.reductions, state_t.shifts): this.
94 2001-12-05 Akim Demaille <akim@epita.fr>
96 * src/reduce.c (reduce_grammar_tables): No longer disable the
97 removal of useless rules via CPP but via `if (0)', so that the
98 compiler still check the code is valid.
99 For instance, it should have noticed `rline' no longer exists: use
100 the `line' member of rule_t.
101 * src/gram.c (dummy, rline): Remove, unused.
103 2001-12-05 Akim Demaille <akim@epita.fr>
105 * src/output.c (pack_vector): Use assert, not berror.
106 * src/main.c (berror): Remove, unused.
108 2001-12-05 Akim Demaille <akim@epita.fr>
110 New experimental feature: if --verbose --trace output all the
111 items of a state, not only its kernel.
113 * src/print.c (print_core): If `trace_flag', then invoke closure
114 before outputting the items of the state (print_core is no longer
115 a correct name them).
116 (print_results): Invoke new_closure/free_closure if needed.
118 2001-12-05 Akim Demaille <akim@epita.fr>
120 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
121 * src/closure.c, src/closure.h (itemsetsize): Rename as...
122 (nitemset): for consistency with the rest of the project.
124 2001-12-05 Akim Demaille <akim@epita.fr>
126 * src/closure.c (print_closure): Improve.
127 (closure): Use it for printing input and output.
129 2001-12-05 Akim Demaille <akim@epita.fr>
131 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
132 indexed by nonterminals.
134 2001-12-05 Akim Demaille <akim@epita.fr>
136 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
138 * src/warshall.h: Remove accidental duplication of the content.
140 2001-12-05 Akim Demaille <akim@epita.fr>
142 * src/closure.c (set_fderives): De-obfuscate.
144 2001-12-05 Akim Demaille <akim@epita.fr>
146 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
148 2001-12-05 Akim Demaille <akim@epita.fr>
150 * src/closure.c (set_firsts): De-obfuscate.
152 2001-12-05 Akim Demaille <akim@epita.fr>
154 * src/output.c (action_row): De-obfuscate
155 using the good o' techniques: arrays not pointers, variable
156 locality, BITISSET, RESETBIT etc.
158 2001-12-05 Akim Demaille <akim@epita.fr>
160 Pessimize the code to simplify it: from now on, all the states
161 have a valid SHIFTS, which NSHIFTS is possibly 0.
163 * src/LR0.c (shifts_new): Be global and move to..
164 * src/state.c, src/state.h: here.
165 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
166 * src/print_graph: Adjust.
168 2001-12-05 Akim Demaille <akim@epita.fr>
170 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
171 * src/conflicts.c: Use it.
172 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
173 incorrectly ``simplified''.
175 2001-12-05 Akim Demaille <akim@epita.fr>
177 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
178 using the good o' techniques: arrays not pointers, variable
179 locality, BITISSET, RESETBIT etc.
181 2001-12-05 Akim Demaille <akim@epita.fr>
183 * src/state.h (SHIFT_SYMBOL): New.
184 * src/conflicts.c: Use it to deobfuscate.
186 2001-12-05 Akim Demaille <akim@epita.fr>
188 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
189 (print_reductions): De-obfuscate using the good o' techniques:
190 arrays not pointers, variable locality, BITISSET.
192 2001-12-05 Akim Demaille <akim@epita.fr>
194 * src/conflicts.c (print_reductions): Arrays, not pointers.
197 2001-12-05 Akim Demaille <akim@epita.fr>
199 * src/conflicts.c (print_reductions): Pessimize, but clarify.
201 2001-12-05 Akim Demaille <akim@epita.fr>
203 * src/conflicts.c (print_reductions): Improve variable locality.
205 2001-12-05 Akim Demaille <akim@epita.fr>
207 * src/conflicts.c (print_reductions): Pessimize, but clarify.
209 2001-12-05 Akim Demaille <akim@epita.fr>
211 * src/conflicts.c (print_reductions): Improve variable locality.
213 2001-12-05 Akim Demaille <akim@epita.fr>
215 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
216 * src/lalr.c: Use them.
218 2001-12-05 Akim Demaille <akim@epita.fr>
220 * src/LR0.c (augment_automaton): Formatting changes.
221 Better variable locality.
223 2001-12-05 Akim Demaille <akim@epita.fr>
225 * src/lalr.c (matrix_print): New.
227 Use arrays instead of pointers.
229 2001-12-05 Akim Demaille <akim@epita.fr>
231 * src/lalr.c (maxrhs): Move to...
232 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
233 * src/lalr.c (build_relations): Adjust.
235 2001-12-05 Akim Demaille <akim@epita.fr>
237 * src/lalr.c (transpose): Free the memory allocated to the
238 argument, as it is replaced by the results by the unique caller.
239 (build_relations): Merely invoke transpose: it handles the memory
241 Improve variable locality.
242 Avoid variables used as mere abbreviations.
243 (compute_lookaheads): Use arrays instead of pointers.
245 2001-12-05 Akim Demaille <akim@epita.fr>
247 * src/lalr.c (initialize_F): Improve variable locality.
248 Avoid variables used as mere abbreviations.
250 2001-12-05 Akim Demaille <akim@epita.fr>
252 * src/derives.c (print_derives): Display the ruleno.
253 * src/lalr.c (initialize_F, transpose): Better variable locality
254 to improve readability.
255 Avoid variables used as mere abbreviations.
257 2001-12-05 Akim Demaille <akim@epita.fr>
259 * src/lalr.c (traverse): Use arrays instead of pointers.
261 2001-12-05 Akim Demaille <akim@epita.fr>
263 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
264 the handling of squeue.
265 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
267 2001-12-05 Akim Demaille <akim@epita.fr>
269 Because useless nonterminals are now kept alive (instead of being
270 `destroyed'), we now sometimes examine them, and store information
271 related to them. Hence we need to know their number, and adjust
274 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
276 * src/LR0.c (allocate_itemsets): The memory allocated to
277 `symbol_count' was used for two different purpose: once to count
278 the number of occurrences of each symbol, and later reassigned to
279 `shift_symbol', containing the symbol that can be shifted from a
281 Deobfuscate, i.e., allocate, use and free `symbol_count' here
283 (new_itemsets): Allocate `shift_symbol' here.
284 (allocate_itemsets): symbol_count includes useless nonterminals.
286 (free_storage): Use `free', not `XFREE', for pointers that cannot
289 2001-12-05 Akim Demaille <akim@epita.fr>
291 * src/nullable.c (set_nullable): Deobfuscate the handling of
293 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
295 2001-12-05 Akim Demaille <akim@epita.fr>
297 * src/gram.c, src/gram.h (ritem_print): New.
298 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
299 (This useless function was defined only to work around VMS linkers
300 that can't handle compilation units with variables only).
301 * src/reduce.c (dump_grammar): Use it to trace the construction of
304 2001-12-04 Paul Eggert <eggert@twinsun.com>
306 * src/bison.simple (union yyalloc): Change member names
307 to be the same as the stack names.
308 (yyparse): yyptr is now union yyalloc *, not char *.
309 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
310 and may generate better code on some machines.
311 (yystpcpy): Use prototype if __STDC__ is defined, not just
312 if __cplusplus is defined.
314 2001-11-30 Akim Demaille <akim@epita.fr>
316 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
317 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
318 Gettext doesn't compile cleanly, and dies with -Werror.
319 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
320 Include WARNING_CFLAGS here.
321 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
322 before being defined.
324 2001-11-30 Paul Eggert <eggert@twinsun.com>
326 * lib/quotearg.h (quotearg_n, quotearg_n_style):
327 First arg is int, not unsigned.
328 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
329 (SIZE_MAX, UINT_MAX): New macros.
330 (quotearg_n_options): Abort if N is negative.
331 Avoid overflow check on hosts where size_t is 64 bits and int
332 is 32 bits, as overflow is impossible there.
333 Fix off-by-one typo that caused unnecessary reallocation.
335 2001-11-30 Paul Eggert <eggert@twinsun.com>
337 Name space cleanup in generated parser.
339 * doc/bison.texinfo (Bison Parser): Discuss system headers
340 and their effect on the user name space.
343 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
344 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
345 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
347 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
348 on user names when possible.
350 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
351 Simplify test for whather <alloca.h> exists.
353 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
355 (<stdio.h>): Include if YYDEBUG.
357 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
358 ! defined (yyoverflow) && ! defined (yymemcpy).
360 (yymemcpy, yyparse): Rename local variables as needed so that
361 they all begin with 'yy'.
363 (yystrlen, yystpcpy): New functions.
365 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
368 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
369 instead of relying on string.h functions. Use YYSTACK_ALLOC
370 and YYSTACK_FREE instead of malloc and free.
372 2001-11-30 Akim Demaille <akim@epita.fr>
374 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
375 if body instead of `;' to pacify GCC's warnings.
377 2001-11-30 Akim Demaille <akim@epita.fr>
379 Instead of mapping the LHS of unused rules to -1, keep the LHS
380 valid, but flag the rules as invalid.
382 * src/gram.h (rule_t): `useful' is a new member.
383 * src/print.c (print_grammar): Adjust.
384 * src/derives.c (set_derives): Likewise.
385 * src/reader.c (packgram, reduce_output): Likewise.
386 * src/reduce.c (reduce_grammar_tables): Likewise.
387 * tests/reduce.at (Underivable Rules, Useless Rules): New.
389 2001-11-30 Akim Demaille <akim@epita.fr>
391 * src/reduce.c (reduce_output): Formatting changes.
392 * src/print.c (print_results, print_grammar): Likewise.
393 * tests/regression.at (Rule Line Numbers)
394 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
396 2001-11-30 Akim Demaille <akim@epita.fr>
398 * src/reduce.c (nonterminals_reduce): Instead of throwing away
399 useless nonterminals, move them at the end of the symbol arrays.
400 (reduce_output): Adjust.
401 * tests/reduce.at (Useless Nonterminals): Adjust.
403 2001-11-30 Akim Demaille <akim@epita.fr>
405 * src/reduce.c: Various comment/formatting changes.
406 (nonterminals_reduce): New, extracted from...
407 (reduce_grammar_tables): here.
408 (reduce_grammar): Call nonterminals_reduce.
410 2001-11-29 Paul Eggert <eggert@twinsun.com>
412 * src/bison.simple (YYSTACK_REALLOC): Remove.
413 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
414 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
416 (union yyalloc): New type.
417 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
418 an arbitrary restriction on hosts where size_t is wider than int.
420 (yyparse): Don't dump core if alloca or malloc fails; instead, report
421 a parser stack overflow. Allocate just one block of memory for all
422 three stacks, instead of allocating three blocks; this typically is
423 faster and reduces fragmentation.
425 Do not limit the number of items in the stack to a value that fits
426 in 'int', as this is an arbitrary limit on hosts with 64-bit
427 size_t and 32-bit int.
429 2001-11-28 Akim Demaille <akim@epita.fr>
431 * src/LR0.c (shifts_new): New.
432 (save_shifts, insert_start_shift, augment_automaton): Use it.
434 2001-11-28 Akim Demaille <akim@epita.fr>
436 * src/closure.c (closure): `b' and `ruleno' denote the same value:
439 2001-11-28 Akim Demaille <akim@epita.fr>
441 * src/closure.c (closure): Instead of looping over word in array
442 then bits in words, loop over bits in array.
444 2001-11-28 Akim Demaille <akim@epita.fr>
446 * src/closure.c (closure): No longer optimize the special case
447 where all the bits of `ruleset[r]' are set to 0, to make the code
450 2001-11-28 Akim Demaille <akim@epita.fr>
452 * src/closure.c (closure): `r' and `c' are new variables, used to
453 de-obfuscate accesses to RULESET and CORE.
455 2001-11-28 Akim Demaille <akim@epita.fr>
457 * src/reduce.c (reduce_print): Use ngettext.
458 (dump_grammar): Improve the trace accuracy.
460 2001-11-28 Akim Demaille <akim@epita.fr>
462 * src/reduce.c (dump_grammar): Don't translate trace messages.
464 2001-11-28 Akim Demaille <akim@epita.fr>
466 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
467 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
468 as all tags are free'ed afterwards.
471 2001-11-27 Akim Demaille <akim@epita.fr>
473 * src/system.h: Use intl/libgettext.h.
474 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
476 2001-11-27 Paul Eggert <eggert@twinsun.com>
478 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
479 use alloca when we didn't want to, and vice versa.
481 2001-11-27 Akim Demaille <akim@epita.fr>
483 * tests/torture.at (Exploding the Stack Size with Malloc):
484 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
486 2001-11-27 Akim Demaille <akim@epita.fr>
488 * src/files.c: Include error.h.
491 2001-11-26 Akim Demaille <akim@epita.fr>
495 2001-11-26 Akim Demaille <akim@epita.fr>
497 * src/reader.c (readgram): Make sure rules for mid-rule actions
498 have a lineno equal to that of their host rule.
499 Reported by Hans Aberg.
500 * tests/regression.at (Rule Line Numbers): New.
502 2001-11-26 Akim Demaille <akim@epita.fr>
504 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
506 Reported by Hans Aberg.
508 2001-11-26 Akim Demaille <akim@epita.fr>
510 * src/complain.c, src/complain.h (error): Remove, provided by
513 2001-11-26 Akim Demaille <akim@epita.fr>
515 * src/reader.c (read_declarations): Don't abort on tok_illegal,
516 issue an error message.
517 * tests/regression.at (Invalid %directive): New.
518 Reported by Hans Aberg.
520 2001-11-26 Akim Demaille <akim@epita.fr>
522 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
523 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
525 2001-11-26 Akim Demaille <akim@epita.fr>
527 * src/conflicts.c (conflicts_print): Don't complain at all when
528 there are no reduce/reduce conflicts, and as many shift/reduce
529 conflicts as expected.
530 * tests/regression.at (%expect right): Adjust.
532 2001-11-23 Akim Demaille <akim@epita.fr>
534 * lib/alloca.c: Update, from fileutils.
536 2001-11-23 Akim Demaille <akim@epita.fr>
538 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
540 2001-11-23 Akim Demaille <akim@epita.fr>
542 * src/system.h: Include alloca.h.
543 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
545 2001-11-23 Akim Demaille <akim@epita.fr>
547 * src/print_graph.c (print_actions): Remove `rule', unused.
548 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
549 pacify GCC's signed < unsigned warnings.
550 * src/closure.c (itemsetsize): Likewise.
551 * src/reader.c (symbol_list_new): Static.
553 2001-11-23 Akim Demaille <akim@epita.fr>
555 Attaching lineno to buckets is stupid, since only one copy of each
556 symbol is kept, only the line of the first occurrence is kept too.
558 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
559 * src/reader.c (rline_allocated): Remove, unused.
560 (symbol_list): Have a `line' member.
561 (symbol_list_new): New.
563 * src/print.c (print_grammar): Output the rule line numbers.
564 * tests/regression.at (Solved SR Conflicts)
565 (Unresolved SR Conflicts): Adjust.
566 Reported by Hans Aberg.
568 2001-11-20 Akim Demaille <akim@epita.fr>
572 2001-11-20 Akim Demaille <akim@epita.fr>
575 * configure.in (ALL_LINGUAS): Adjust.
576 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
577 longer contains strings to translate.
579 2001-11-19 Akim Demaille <akim@epita.fr>
581 * src/conflicts.c (conflicts_print): Add a missing \n.
583 2001-11-19 Akim Demaille <akim@epita.fr>
585 * src/nullable.c (nullable_print): New.
586 (set_nullable): Call it when tracing.
587 Better locality of variables.
589 2001-11-19 Akim Demaille <akim@epita.fr>
591 * src/print.c (print_actions): Better locality of variables.
593 2001-11-19 Akim Demaille <akim@epita.fr>
595 * src/derives.c (print_derives): Fix and enrich.
596 * src/closure.c (print_fderives): Likewise.
598 2001-11-19 Akim Demaille <akim@epita.fr>
600 * src/closure.c (itemsetend): Remove, replaced with...
603 2001-11-19 Akim Demaille <akim@epita.fr>
605 * src/LR0.c (kernel_end): Remove, replaced with...
608 2001-11-19 Akim Demaille <akim@epita.fr>
610 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
613 2001-11-19 Akim Demaille <akim@epita.fr>
615 * src/closure.c (closure): Use arrays instead of pointers to clarify.
617 2001-11-19 Akim Demaille <akim@epita.fr>
619 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
621 * src/LR0.c: Likewise.
622 (allocate_itemsets): Use arrays instead of pointers to clarify.
624 2001-11-19 Akim Demaille <akim@epita.fr>
626 * src/getargs.c (statistics_flag): Replace with...
628 (longopts): Accept --trace instead of --statistics.
629 * src/getargs.h: Adjust.
630 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
631 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
633 2001-11-19 Akim Demaille <akim@epita.fr>
635 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
636 pointers to clarify the code.
637 (save_reductions, save_shifts): Factor common parts of alternatives.
639 2001-11-19 Akim Demaille <akim@epita.fr>
641 * src/LR0.c (new_state, get_state): Complete TRACE code.
642 * src/closure.c: Include `reader.h' to get `tags', needed by the
644 Rename the conditional DEBUG as TRACE.
645 Output consistently TRACEs to stderr, not stdout.
646 * src/derives.c: Likewise.
647 * src/reduce.c: (inaccessable_symbols): Using if is better style
649 Use `#if TRACE' instead of `#if 0' for tracing code.
651 2001-11-19 Akim Demaille <akim@epita.fr>
653 * src/system.h (LIST_FREE, shortcpy): New.
654 * src/LR0.c: Use them.
655 * src/output.c (free_itemsets, free_reductions, free_shifts):
656 Remove, replaced by LIST_FREE.
658 2001-11-19 Akim Demaille <akim@epita.fr>
660 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
661 (REDUCTIONS_ALLOC): New.
662 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
665 2001-11-19 Akim Demaille <akim@epita.fr>
667 * src/LR0.c (new_state): Complete trace code.
668 * src/nullable.c (set_nullable): Don't translate traces.
670 2001-11-19 Akim Demaille <akim@epita.fr>
672 * src/print_graph.c (print_core): Better locality of variables.
673 * src/print.c (print_core): Likewise.
675 2001-11-19 Akim Demaille <akim@epita.fr>
677 * src/vcg.c: You do the output, so you are responsible of the
678 handling of VCG syntax, in particular: use quotearg.
679 * src/print_graph.c: Don't.
680 (print_actions): Don't output the actions as part of the nodes,
681 since that's the job of the edges.
682 (print_state): Don't output by hand: fill the node description,
683 and ask for its output.
685 2001-11-19 Akim Demaille <akim@epita.fr>
687 * src/bison.simple (yyparse): When verbosely reporting an error,
688 no longer put additional quotes around token names.
689 * tests/calc.at: Adjust.
691 2001-11-19 Akim Demaille <akim@epita.fr>
693 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
694 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
695 * src/output.c: Adjust.
697 2001-11-19 Akim Demaille <akim@epita.fr>
699 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
701 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
703 2001-11-19 Akim Demaille <akim@epita.fr>
705 * src/gram.h (rule_t): New.
707 (rrhs, rlhs): Remove, part of state_t.
708 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
709 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
710 * src/reader.c, src/reduce.c: Adjust.
712 2001-11-19 Akim Demaille <akim@epita.fr>
714 * src/reader.c (symbols_output): New, extracted from...
718 2001-11-19 Akim Demaille <akim@epita.fr>
720 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
721 (maxrhs): this new function.
723 2001-11-19 Akim Demaille <akim@epita.fr>
725 * src/lalr.c (F): New macro to access the variable F.
728 2001-11-19 Akim Demaille <akim@epita.fr>
730 * src/lalr.h (LA): New macro to access the variable LA.
731 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
732 * src/lalr.c: Adjust.
734 2001-11-19 Akim Demaille <akim@epita.fr>
736 * src/lalr.c (initialize_LA): Only initialize LA. Let...
737 (set_state_table): handle the `lookaheads' members.
739 2001-11-19 Akim Demaille <akim@epita.fr>
741 * src/lalr.h (lookaheads): Removed array, whose contents is now
743 (state_t): this structure.
744 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
747 2001-11-19 Akim Demaille <akim@epita.fr>
749 * src/lalr.h (consistent): Removed array, whose contents is now
751 (state_t): this structure.
752 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
755 2001-11-19 Akim Demaille <akim@epita.fr>
757 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
758 contents are now members of...
759 (state_t): this structure.
760 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
763 2001-11-19 Akim Demaille <akim@epita.fr>
765 * src/lalr.h (state_t): New.
766 (state_table): Be a state_t * instead of a core **.
767 (accessing_symbol): Remove, part of state_t.
768 * src/lalr.c: Adjust.
769 (set_accessing_symbol): Merge into...
770 (set_state_table): this.
771 * src/print_graph.c, src/conflicts.c: Adjust.
773 2001-11-14 Akim Demaille <akim@epita.fr>
777 2001-11-14 Akim Demaille <akim@epita.fr>
779 * tests/calc.at, tests/output.at, tests/regression.at,
780 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
781 now the tests are run in private dirs, therefore AC_CLEANUP and
782 family can be simplified to 0-ary.
783 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
784 use abs. path to find config.h.
786 2001-11-14 Akim Demaille <akim@epita.fr>
788 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
789 stderr, there can be way too much random noise.
790 Instead pass -Werror to GCC and rely on the exit status.
791 Reported by Wolfram Wagner.
793 2001-11-14 Akim Demaille <akim@epita.fr>
795 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
796 defined only if yyoverflow is defined, to avoid `warning: unused
798 Reported by The Test Suite.
800 2001-11-14 Akim Demaille <akim@epita.fr>
802 * src/print.c: Include reduce.h.
803 Reported by Hans Aberg.
805 2001-11-14 Akim Demaille <akim@epita.fr>
807 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
808 Revert a previous patch: these are really const.
809 * src/conflicts.c (conflict_report): Additional useless pair of
810 braces to pacify GCC's warnings for `if () if () {} else {}'.
811 * src/lex.c (parse_percent_token): Replace equal_offset with
814 Be sure to strdup `arg' when used, since there is no reason for
815 token_buffer not to change.
817 2001-11-14 Akim Demaille <akim@epita.fr>
819 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
821 * src/main.c (main): Use them.
822 Suggested by Hans Aberg.
824 2001-11-12 Akim Demaille <akim@epita.fr>
828 * src/system.h (ngettext): Now that we use ngettext, be sure to
829 provide a default definition when NLS are not used that takes care
832 2001-11-12 Akim Demaille <akim@epita.fr>
834 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
835 Use @kbd to denote user input.
836 (Language and Grammar): ANSIfy the example.
837 Adjust its layout for info/notinfo.
838 (Location Tracking Calc): Output error messages to stderr.
839 Output locations in a more GNUtically correct way.
840 Fix a couple of Englishos.
841 Adjust @group/@end group pairs.
843 2001-11-12 Akim Demaille <akim@epita.fr>
845 %expext was not functioning at all.
847 * src/conflicts.c (expected_conflicts): Set to -1.
848 (conflict_report): Use ngettext.
849 (conflicts_print): Check %expect and make its violation an error.
850 * doc/bison.texinfo (Expect Decl): Adjust.
851 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
852 * tests/regression.at (%expect not enough, %expect right)
853 (%expect too much): New.
855 2001-11-12 Akim Demaille <akim@epita.fr>
857 * tests/regression.at (Conflicts): Rename as...
858 (Unresolved SR Conflicts): this.
859 (Solved SR Conflicts): New.
861 2001-11-12 Akim Demaille <akim@epita.fr>
863 * src/reduce.c (print_results): Rename as...
864 (reduce_output): This.
865 Output to OUT, passed as argument, instead of output_obstack.
866 (dump_grammar): Likewise.
869 (reduce_grammar): No longer call reduce_output, since...
870 * src/print.c (print_results): do it.
871 * src/main.c (main): Call reduce_free;
873 2001-11-12 Akim Demaille <akim@epita.fr>
875 * src/conflicts.c (print_reductions): Accept OUT as argument.
876 Output to it, not to output_obstack.
877 * src/print.c (print_actions): Adjust.
879 2001-11-12 Akim Demaille <akim@epita.fr>
881 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
882 the result instead of using...
883 (src_total, rrc_total, src_count, rrc_count): Remove.
884 (any_conflicts): Remove.
885 (print_conflicts): Split into...
886 (conflicts_print, conflicts_output): New.
887 * src/conflicts.h: Adjust.
888 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
889 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
890 * tests/regression.at (Conflicts): New.
891 Reported by Tom Lane.
893 2001-11-12 Akim Demaille <akim@epita.fr>
895 * tests/regression.at (Invalid input): Remove, duplicate with
896 ``Invalid input: 1''.
898 2001-11-12 Akim Demaille <akim@epita.fr>
900 * tests/torture.at (AT_DATA_STACK_TORTURE)
901 (Exploding the Stack Size with Alloca)
902 (Exploding the Stack Size with Malloc): New.
904 2001-11-12 Akim Demaille <akim@epita.fr>
906 * src/bison.simple (YYSTACK_REALLOC): New.
907 (yyparse) [!yyoverflow]: Use it and free the old stack.
908 Reported by Per Allansson.
910 2001-11-05 Akim Demaille <akim@epita.fr>
913 * src/lex.c (parse_percent_token): s/quotearg/quote/.
915 2001-11-05 Akim Demaille <akim@epita.fr>
917 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
920 2001-11-05 Akim Demaille <akim@epita.fr>
922 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
923 with yyltype/YYLTYPE. This allows inclusion of the generated
924 header within the parser if the compiler, such as GGC, accepts
925 multiple equivalent #defines.
927 2001-11-04 Akim Demaille <akim@epita.fr>
929 * src/getargs.c (longopts): Support `--output'. getopt is now
930 able to understand that `--out' is OK: the two racing long options
933 * src/lex.h (tok_setopt): Remove, replaced with...
934 (tok_intopt, tok_stropt): these new guys.
935 * src/lex.c (getopt.h): Not needed.
936 (token_buffer, unlexed_token_buffer): Not const.
937 (percent_table): Promote `-' over `_' in directive names.
938 Active `%name-prefix', `file-prefix', and `output'.
939 (parse_percent_token): Accept possible arguments to directives.
940 Promote `-' over `_' in directive names.
941 * doc/bison.texinfo (Decl Summary): Split the list into
942 `directives for grammars' and `directives for bison'.
944 Add description of `%name-prefix', `file-prefix', and `output'.
945 Promote `-' over `_' in directive names.
946 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
947 Simplify the description of `--name-prefix'.
948 Promote `-' over `_' in directive names.
949 Promote `--output' over `--output-file'.
950 Fix the description of `--defines'.
951 * tests/output.at: Exercise %file-prefix and %output.
953 2001-11-02 Akim Demaille <akim@epita.fr>
955 * doc/refcard.tex: Update.
957 2001-11-02 Akim Demaille <akim@epita.fr>
959 * src/symtab.h (SUNDEF): New.
960 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
961 stand for `uninitialized', instead of 0.
962 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
963 * src/lex.c (lex): Adjust.
965 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
967 Let yylex return it instead of a plain 0.
968 Reported by Dick Streefland.
970 2001-11-02 Akim Demaille <akim@epita.fr>
972 * tests/regression.at (Mixing %token styles): New test.
974 2001-11-02 Akim Demaille <akim@epita.fr>
976 * src/reader.c (parse_thong_decl): Formatting changes.
977 (token_translations_init): New, extracted from...
981 2001-11-01 Akim Demaille <akim@epita.fr>
983 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
984 Check that `9foo.y' produces correct cpp guards.
985 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
989 2001-11-01 Akim Demaille <akim@epita.fr>
991 * tests/regression.at (Invalid input: 2): New.
992 * src/lex.c (unlexed_token_buffer): New.
993 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
997 2001-11-01 Akim Demaille <akim@epita.fr>
999 * configure.in: Bump to 1.30a.
1000 Adjust to newer Autotest.
1002 2001-10-26 Akim Demaille <akim@epita.fr>
1006 2001-10-26 Paul Eggert <eggert@twinsun.com>
1008 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
1009 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
1010 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
1011 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
1012 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
1013 Sync with fileutils 4.1.1.
1015 2001-10-18 Akim Demaille <akim@epita.fr>
1018 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1019 avoid spurious failures.
1021 2001-10-18 Akim Demaille <akim@epita.fr>
1025 2001-10-18 Akim Demaille <akim@epita.fr>
1027 * tests/atlocal.in (GCC): Add.
1028 * tests/calc.at: s/m4_match/m4_bmatch/.
1029 s/m4_patsubst/m4_bpatsubst/.
1030 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1031 * configure.in: AC_SUBST(GCC).
1033 2001-10-10 Akim Demaille <akim@epita.fr>
1036 * configure.in: M4 is no longer needed, but autom4te is.
1037 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1040 2001-10-10 Akim Demaille <akim@epita.fr>
1044 2001-10-10 Akim Demaille <akim@epita.fr>
1047 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1048 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1049 Reported by Airy Andre.
1051 2001-10-10 Akim Demaille <akim@epita.fr>
1053 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1054 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1056 2001-10-02 Akim Demaille <akim@epita.fr>
1060 2001-10-02 Akim Demaille <akim@epita.fr>
1064 2001-10-02 Akim Demaille <akim@epita.fr>
1066 * tests/regression.at (Invalid CPP headers): New.
1067 From Alexander Belopolsky.
1068 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1070 2001-10-02 Akim Demaille <akim@epita.fr>
1072 * tests/regression.at (Invalid input): New.
1073 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1076 2001-10-02 Akim Demaille <akim@epita.fr>
1078 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1080 2001-10-02 Akim Demaille <akim@epita.fr>
1082 * src/output.c (output_parser): Assert `skeleton'.
1083 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1087 2001-10-01 Marc Autret <autret_m@epita.fr>
1089 * src/lex.h: Echo modifications.
1090 * src/lex.c (unlex): Parameter is now token_t.
1093 2001-10-01 Marc Autret <autret_m@epita.fr>
1095 * src/main.c: Include lex.h.
1098 2001-09-29 Akim Demaille <akim@epita.fr>
1100 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1102 2001-09-28 Akim Demaille <akim@epita.fr>
1104 * tests/testsuite.at: Update to newer Autotest.
1105 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1107 2001-09-27 Akim Demaille <akim@epita.fr>
1109 Position independent wrapper.
1111 * tests/bison: Remove.
1112 * tests/bison.in: New.
1113 * configure.in: Adjust.
1115 2001-09-27 Paul Eggert <eggert@twinsun.com>
1117 Port quotearg fixes from tar 1.13.24.
1119 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1121 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1122 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1124 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1125 * m4/mbrtowc.m4: New file.
1126 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1127 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1129 2001-09-27 Akim Demaille <akim@epita.fr>
1133 2001-09-27 Akim Demaille <akim@epita.fr>
1137 2001-09-25 Akim Demaille <akim@epita.fr>
1139 * src/system.h: Include `xalloc.h'.
1140 Remove it from the C files.
1141 * src/files.c (output_files): Free the obstacks.
1142 * src/lex.c (init_lex): Rename as...
1145 * src/main.c (main): Use it.
1147 2001-09-24 Marc Autret <autret_m@epita.fr>
1149 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1150 to output informations in fout (FILE*).
1151 (open_graph, close_graph): Likewise.
1152 (output_graph, output_edge, output_node): Likewise.
1153 * src/vcg.h: Update function prototypes.
1154 * src/print_graph.c (print_graph): Open output graph file.
1155 (print_actions): Adjust.
1156 * src/files.h: Remove extern declaration.
1157 * src/files.c: Remove graph_obstack declaration.
1158 (open_files): Remove graph_obstack initialization.
1159 (output_files): Remove graph_obstack saving.
1161 2001-09-24 Marc Autret <autret_m@epita.fr>
1163 * src/files.c (compute_output_file_names): Fix.
1165 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1167 * src/reader.c (reader): Remove call to free_symtab ().
1168 * src/main.c (main): Call it here.
1170 * src/conflicts.c (initialize_conflicts): Rename as...
1171 (solve_conflicts): this.
1172 * src/print.c (print_core, print_actions, print_state)
1173 (print_grammar): Dump to a file instead a `output_obstack'.
1174 (print_results): Dump `output_obstack', and then proceed with the
1176 * src/files.c (compute_output_file_names, close_files): New.
1177 (output_files): Adjust.
1178 * src/main.c (main): Adjust.
1180 2001-09-23 Marc Autret <autret_m@epita.fr>
1182 * src/files.c (compute_header_macro): Computes header macro name
1183 from spec_defines_file when given.
1185 2001-09-23 Marc Autret <autret_m@epita.fr>
1187 * src/files.c (output_files): Add default extensions.
1189 2001-09-22 Akim Demaille <akim@epita.fr>
1191 * src/conflicts.c (finalize_conflicts): Rename as...
1192 (free_conflicts): this.
1194 2001-09-22 Akim Demaille <akim@epita.fr>
1196 * src/gram.c (gram_free): Rename back as...
1198 (output_token_translations): Free `token_translations'.
1199 * src/symtab.c (free_symtab): Free the tag field.
1201 2001-09-22 Akim Demaille <akim@epita.fr>
1203 Remove `translations' as it is always set to true.
1205 * src/gram.h: Adjust.
1206 * src/reader.c (packsymbols, parse_token_decl): Adjust
1207 * src/print.c (print_grammar): Adjust.
1208 * src/output.c (output_token_translations): Adjust.
1209 * src/lex.c (lex): Adjust.
1210 * src/gram.c: Be sure the set pointers to NULL.
1211 (dummy): Rename as...
1214 2001-09-22 Akim Demaille <akim@epita.fr>
1216 * configure.in: Invoke AM_LIB_DMALLOC.
1217 * src/system.h: Use dmalloc.
1218 * src/LR0.c: Be sure to have pointers initialized to NULL.
1219 (allocate_itemsets): Allocate kernel_items only if needed.
1221 2001-09-22 Akim Demaille <akim@epita.fr>
1223 * configure.in: Bump to 1.29b.
1224 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1225 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1226 need xmalloc.c in calc.y.
1229 2001-09-21 Akim Demaille <akim@epita.fr>
1232 * Makefile.maint, config/config.guess, config/config.sub,
1233 * config/missing: Update from masters.
1234 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1236 * configure.in (ALL_LINGUAS): Add `tr'.
1238 2001-09-21 Akim Demaille <akim@epita.fr>
1240 * tests/Makefile.am (package.m4): Move to...
1241 ($(srcdir)/$(TESTSUITE)): here.
1243 2001-09-20 Akim Demaille <akim@epita.fr>
1245 * src/complain.c: No longer try to be standalone: use system.h.
1246 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1247 * src/complain.h: Likewise.
1248 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1249 Remove the unused variable `n'.
1250 From Albert Chin-A-Young.
1252 2001-09-18 Marc Autret <autret_m@epita.fr>
1254 * doc/bison.1: Update.
1255 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1257 (Option Cross Key): Update.
1260 2001-09-18 Marc Autret <autret_m@epita.fr>
1262 * tests/regression.at: New test (comment in %union).
1264 2001-09-18 Marc Autret <autret_m@epita.fr>
1266 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1268 Reported by Keith Browne.
1270 2001-09-18 Marc Autret <autret_m@epita.fr>
1272 * tests/output.at: Add tests for --defines and --graph.
1274 2001-09-18 Marc Autret <autret_m@epita.fr>
1276 * tests/output.at: Removes tests of %{header,src}_extension features.
1278 2001-09-18 Akim Demaille <akim@epita.fr>
1280 * tests/Makefile.am (package.m4): New.
1281 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1282 (_AT_CHECK_CALC_ERROR): Likewise.
1283 Factor the `, ' part of verbose error messages.
1285 2001-09-18 Marc Autret <autret_m@epita.fr>
1287 * src/getargs.c (longopts): Declare --defines and --graph as options
1288 with optional arguments.
1289 * src/files.h: Add extern declarations.
1290 * src/files.c (spec_graph_file, spec_defines_file): New.
1291 (output_files): Update.
1292 Remove CPP-outed code.
1294 2001-09-18 Marc Autret <autret_m@epita.fr>
1296 Turn off %{source,header}_extension feature.
1298 * src/files.c (compute_exts_from_gf): Update.
1299 (compute_exts_from_src): Update.
1300 (output_files): CPP-out useless code.
1301 * src/files.h: Remove {header,source}_extension extern declarations.
1302 * src/reader.c (parse_dquoted_param): CPP-out.
1303 (parse_header_extension_decl): Remove.
1304 (parse_source_extension_decl): Remove.
1305 (read_declarations): Remove cases tok_{hdrext,srcext}.
1306 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1307 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1309 2001-09-10 Akim Demaille <akim@epita.fr>
1311 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1312 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1313 (AT_CHECK_OUTPUT): this.
1314 Merely check ls' exit status, its output is useless.
1316 2001-09-10 Akim Demaille <akim@epita.fr>
1318 * tests/calc.at: Use m4_match.
1319 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1321 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1323 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1325 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1327 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1328 * src/lex.h: Adjust prototype.
1329 (token_t): Add `tok_undef'.
1330 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1331 (parse_percent_token): Now returns token_t.
1332 Add default statement in switch.
1333 (lex): Separate `c' as an input variable, from the token_t result
1335 (unlexed): Is a token_t.
1337 2001-09-10 Akim Demaille <akim@epita.fr>
1339 * configure.in: Bump to 1.29a.
1341 2001-09-07 Akim Demaille <akim@epita.fr>
1345 2001-08-30 Akim Demaille <akim@epita.fr>
1347 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1348 * m4/atconfig.m4: Remove.
1349 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1351 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1352 m4_if, m4_patsubst, and m4_regexp.
1353 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1354 `input' file instead of echo.
1356 2001-08-29 Akim Demaille <akim@epita.fr>
1360 2001-08-29 Akim Demaille <akim@epita.fr>
1364 2001-08-29 Paul Eggert <eggert@twinsun.com>
1366 * src/bison.simple (yyparse): Don't take the address of an
1367 item before the start of an array, as that doesn't conform to
1370 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1372 * doc/bison.texinfo (Location Tracking Calc): New node.
1374 2001-08-29 Paul Eggert <eggert@twinsun.com>
1376 * src/output.c (output): Do not define const, as this now
1377 causes more problems than it cures.
1379 2001-08-29 Akim Demaille <akim@epita.fr>
1381 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1383 Be sure to tag the `detailmenu'.
1385 2001-08-29 Akim Demaille <akim@epita.fr>
1387 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1388 download in a tmp dir.
1390 2001-08-28 Marc Autret <autret_m@epita.fr>
1392 * config/depcomp: New file.
1394 2001-08-28 Marc Autret <autret_m@epita.fr>
1396 * doc/bison.1 (mandoc): Adjust.
1397 From Juan Manuel Guerrero.
1399 2001-08-28 Marc Autret <autret_m@epita.fr>
1401 * src/print_graph.c (print_state): Fix.
1403 2001-08-27 Marc Autret <autret_m@epita.fr>
1405 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1407 Echo modifications to the functions prototypes.
1408 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1410 2001-08-27 Marc Autret <autret_m@epita.fr>
1412 * src/vcg.c: Include `xalloc.h'.
1413 (add_colorentry): New.
1414 (add_classname): New.
1415 (add_infoname): New.
1416 * src/vcg.h: Add new prototypes.
1418 2001-08-27 Akim Demaille <akim@epita.fr>
1420 * Makefile.maint: Sync. again with CVS Autoconf.
1422 2001-08-27 Akim Demaille <akim@epita.fr>
1424 * Makefile.maint: Formatting changes.
1425 (po-update, cvs-update, update): New targets.
1428 2001-08-27 Akim Demaille <akim@epita.fr>
1430 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1431 * Makefile.maint: Sync. with CVS Autoconf.
1433 2001-08-27 Marc Autret <autret_m@epita.fr>
1435 * src/vcg.h (struct infoname_s): New.
1436 (struct colorentry_s): New.
1437 (graph_s): New fields {vertical,horizontal}_order in structure.
1438 Add `infoname' field.
1439 Add `colorentry' field;
1440 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1441 (G_HORIZONTAL_ORDER): New.
1443 (G_COLORENTRY): New.
1444 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1445 Add output of `infoname'.
1446 Add output of `colorentry'.
1448 2001-08-27 Marc Autret <autret_m@epita.fr>
1450 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1451 This one shadowed a global parameter.
1453 2001-08-24 Marc Autret <autret_m@epita.fr>
1455 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1456 instead of `unsigned'.
1457 (print_state): Do not call obstack_object_size () in obstack_grow ()
1458 to avoid macro variables shadowing.
1460 2001-08-23 Marc Autret <autret_m@epita.fr>
1462 * src/lex.c (percent_table): Typo: s/naem/name/.
1464 Normalize new options declarations.
1466 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1468 * tests/suite.at: Exercise %header_extension and %source_extension.
1470 2001-08-16 Marc Autret <autret_m@epita.fr>
1472 * src/reader.c (parse_dquoted_param): New.
1473 (parse_header_extension_decl): Use it.
1474 (parse_source_extension_decl): Likewise.
1476 2001-08-16 Marc Autret <autret_m@epita.fr>
1478 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1479 (get_xxxx_str): Use assert () instead of complain ().
1480 Remove return invokations in default cases.
1481 (get_decision_str): Modify default behaviour. Remove second argument.
1482 Echo modifications on calls.
1483 (output_graph): Fix.
1485 2001-08-16 Marc Autret <autret_m@epita.fr>
1487 * src/getargs.c (usage): Update with ``-g, --graph''.
1489 2001-08-16 Marc Autret <autret_m@epita.fr>
1491 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1492 (Option Cross Key): Likewise.
1493 * doc/bison.1: Update.
1495 2001-08-15 Akim Demaille <akim@epita.fr>
1499 2001-08-15 Marc Autret <autret_m@epita.fr>
1501 * src/reader.c (readgram): Indent output macro YYSTYPE.
1502 (packsymbols): Likewise.
1503 (output_token_defines): Likewise.
1504 * src/files.c: Standardize.
1505 (compute_header_macro): New.
1506 (defines_obstack_save): New. Use compute_header_macro.
1507 (output_files): Update. Use defines_obstack_save.
1509 2001-08-15 Akim Demaille <akim@epita.fr>
1511 * doc/bison.texinfo (Table of Symbols): Document
1514 2001-08-15 Akim Demaille <akim@epita.fr>
1516 * missing: Update from CVS Automake.
1517 * config/config.guess, config/config.sub, config/texinfo.tex:
1518 Update from gnu.org.
1520 2001-08-15 Akim Demaille <akim@epita.fr>
1522 * Makefile.maint: Sync with CVS Autoconf.
1524 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1526 * doc/bison.texinfo: Include GNU Free Documentation License from
1528 * doc/fdl.texi: Add to package.
1530 2001-08-14 Marc Autret <autret_m@epita.fr>
1532 Turn on %{source,header}_extension features.
1534 * src/lex.c (percent_table): Un-CPP out header_extension and
1536 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1537 (compute_exts_from_src): Remove conditions. It restores priorities
1540 2001-08-14 Marc Autret <autret_m@epita.fr>
1542 * src/files.c (compute_base_names): Add extensions computing when
1543 `--file-prefix' used.
1544 Standardize function calls.
1546 2001-08-13 Marc Autret <autret_m@epita.fr>
1548 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1549 defining it (defined but null disables alloca).
1551 2001-08-13 Marc Autret <autret_m@epita.fr>
1553 * src/bison.simple (_yy_memcpy): CPP reformat.
1555 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1557 * tests/atconfig.in (CPPFLAGS): Fix.
1559 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1561 * doc/bison.texinfo: Include GNU General Public License from
1563 * doc/gpl.texi: Add to package.
1565 2001-08-10 Marc Autret <autret_m@epita.fr>
1567 * src/print_graph.h: Fix.
1568 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1570 2001-08-10 Akim Demaille <akim@epita.fr>
1572 * src/system.h: Provide default declarations for stpcpy, strndup,
1575 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1577 * doc/bison.texinfo (Locations): Update @$ stuff.
1579 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1581 * src/bison.simple (YYLLOC_DEFAULT): Update.
1584 2001-08-08 Marc Autret <autret_m@epita.fr>
1586 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1587 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1588 Reported by Fabrice Bauzac.
1590 2001-08-08 Marc Autret <autret_m@epita.fr>
1592 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1593 * src/vcg.c (output_node): Fix.
1594 * src/vcg.h: Cleanup.
1595 * src/print_graph.c: Add comments.
1596 (node_output_size): New global variable. Simplify the formatting of
1597 the VCG graph output.
1598 (print_actions): Unused code is now used. It notifies the final state
1599 and no action states in the VCG graph. It also give the reduce actions.
1600 The `shift and goto' edges are red and the `go to state' edges are
1602 Get the current node name and node_obstack by argument.
1603 (node_obstack): New variable.
1604 (print_state): Manage node_obstack.
1605 (print_core): Use node_obstack given by argument.
1606 A node is not only computed here but in print_actions also.
1607 (print_graph): CPP out useless code instead of commenting it.
1609 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1611 * tests/atconfig.in (CPPFLAGS): Fix.
1613 2001-08-07 Akim Demaille <akim@epita.fr>
1615 * src/print_graph.c (quote): New.
1616 (print_core): Use it.
1618 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1620 * src/vcg.c (complain.h): Include it.
1621 Unepitaize `return' invocations.
1622 [NDEBUG] (main): Remove.
1623 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1624 * src/files.c (open_files): Initialize graph_obstack.
1625 * src/print_graph.c (print_actions): CPP out useless code.
1626 (print_core): Don't output the last `\n' in labels.
1628 * src/files.c (output_files): Output the VCG file.
1629 * src/main.c (main): Invoke print_graph ();
1631 2001-08-06 Marc Autret <autret_m@epita.fr>
1633 Automaton VCG graph output.
1634 Using option ``-g'' or long option ``--graph'', you can generate
1635 a gram_filename.vcg file containing a VCG description of the LALR (1)
1636 automaton of your grammar.
1638 * src/main.c: Call to print_graph() function.
1639 * src/getargs.h: Update.
1640 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1641 (graph_flag): New flag.
1643 (getargs): Add case `g'.
1644 * src/files.c (graph_obstack): New obstack struct.
1645 (open_files): Initialize new obstack.
1646 (output_files): Saves graph_obstack if required.
1647 * src/files.h (graph_obstack): New extern declaration.
1648 * src/Makefile.am: Add new source files.
1650 2001-08-06 Marc Autret <autret_m@epita.fr>
1652 * src/print_graph.c, src/print_graph.h (graph): New.
1653 * src/vcg.h: New file.
1654 * src/vcg.c: New file, VCG graph handling.
1656 2001-08-06 Marc Autret <autret_m@epita.fr>
1658 Add of %source_extension and %header_extension which specify
1659 the source or/and the header output file extension.
1661 * src/files.c (compute_base_names): Remove initialisation of
1662 src_extension and header_extension.
1663 (compute_exts_from_gf): Update.
1664 (compute_exts_from_src): Update.
1665 (output_files): Update.
1666 * src/reader.c (parse_header_extension_decl): New.
1667 (parse_source_extension_decl): New.
1668 (read_declarations): New case statements for the new tokens.
1669 * src/lex.c (percent_table): Add entries for %source_extension
1670 and %header_extension.
1671 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1673 2001-08-06 Marc Autret <autret_m@epita.fr>
1675 * configure.in: Bump to 1.28c.
1676 * doc/bison.texinfo: Texinfo thingies.
1678 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1680 * tests/atconfig.in (CPPFLAGS): Add.
1681 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1683 2001-08-03 Akim Demaille <akim@epita.fr>
1687 2001-08-03 Akim Demaille <akim@epita.fr>
1689 * tests/Makefile.am (check-local): Ship testsuite.
1690 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1693 2001-08-03 Akim Demaille <akim@epita.fr>
1695 * configure.in: Try using -Wformat when compiling.
1697 2001-08-03 Akim Demaille <akim@epita.fr>
1699 * configure.in: Bump to 1.28b.
1701 2001-08-03 Akim Demaille <akim@epita.fr>
1703 * src/complain.c: Adjust strerror_r portability issues.
1705 2001-08-03 Akim Demaille <akim@epita.fr>
1709 2001-08-03 Akim Demaille <akim@epita.fr>
1711 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1712 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1713 * src/getargs.c: Include complain.h.
1714 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1715 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1717 2001-08-03 Akim Demaille <akim@epita.fr>
1719 * src/reader.c (readgram): Display hidden chars in error messages.
1721 2001-08-03 Akim Demaille <akim@epita.fr>
1723 Update to gettext 0.10.39.
1725 2001-08-03 Akim Demaille <akim@epita.fr>
1727 * lib/strspn.c: New.
1729 2001-08-01 Marc Autret <autret_m@epita.fr>
1731 * doc/bison.texinfo: Update.
1732 * doc/bison.1 (mandoc): Update.
1733 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1734 * src/files.c: Support output files extensions computing.
1735 (src_extension): New static variable.
1736 (header_extension): New static variable.
1738 (get_extension_index): New function, gets the index of an extension
1739 filename in a string.
1740 (compute_exts_from_gf): New function, computes extensions from the
1741 grammar file extension.
1742 (compute_exts_from_src): New functions, computes extensions from the
1743 C source file extension, file given by ``-o'' option.
1744 (compute_base_names): Update.
1745 (output_files): Update.
1747 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1749 * doc/bison.texi: Document @$.
1750 (Locations): New section.
1752 2001-07-18 Akim Demaille <akim@epita.fr>
1754 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1755 * config/prev-version.txt, config/move-if-change: New.
1756 * Makefile.am: Adjust.
1758 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1760 * src/bison.simple (yyparse): Suppress warning `comparaison
1761 between signed and unsigned'.
1763 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1765 * src/getargs.h (raw_flag): Remove.
1766 * src/getargs.c: Die on `-r'/`--raw'.
1767 * src/lex.c (parse_percent_token): Die on `%raw'.
1768 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1769 * tests/calc.at: Suppress test with option `--raw'.
1771 2001-07-14 Akim Demaille <akim@epita.fr>
1774 * configure.in: Require Autoconf 2.50.
1775 Update to gettext 0.10.38.
1777 2001-03-16 Akim Demaille <akim@epita.fr>
1779 * doc/bison.texinfo: ANSIfy the examples.
1781 2001-03-16 Akim Demaille <akim@epita.fr>
1783 * getargs.c (skeleton): New variable.
1784 (longopts): --skeleton is a new option.
1785 (shortopts, getargs): -S is a new option.
1786 * getargs.h: Declare skeleton.
1787 * output.c (output_parser): Use it.
1789 2001-03-16 Akim Demaille <akim@epita.fr>
1791 * m4/strerror_r.m4: New.
1792 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1793 * lib/error.h, lib/error.c: Update.
1795 2001-03-16 Akim Demaille <akim@epita.fr>
1797 * src/getargs.c (longopts): Clean up.
1799 2001-02-21 Akim Demaille <akim@epita.fr>
1801 * src/reader.c (gensym): `gensym_count' is your own.
1802 Use a static buf to create the symbol name, as token_buffer is no
1805 2001-02-08 Akim Demaille <akim@epita.fr>
1807 * src/conflicts.c (conflict_report): Be sure not to append to res
1808 between two calls, which could happen if both first sprintf were
1809 skipped, but not the first cp += strlen.
1811 2001-02-08 Akim Demaille <akim@epita.fr>
1813 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1814 New, from fileutils 4.0.37.
1815 * configure.in: Require Autoconf 2.49c. I took some time before
1816 making this decision. This is the only way out for portability
1817 issues in Bison, it would mean way too much duplicate effort to
1818 import in Bison features implemented in 2.49c since 2.13.
1819 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1821 2001-02-02 Akim Demaille <akim@epita.fr>
1823 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1824 * lib/xalloc.h, lib/xmalloc.c: Update.
1826 2001-01-19 Akim Demaille <akim@epita.fr>
1828 Get rid of the ad hoc handling of token_buffer in the scanner: use
1831 * src/lex.c (token_obstack): New.
1832 (init_lex): Initialize it. No longer call...
1833 (grow_token_buffer): this. Remove it.
1834 Adjust all the places which used it to use the obstack.
1836 2001-01-19 Akim Demaille <akim@epita.fr>
1838 * src/lex.h: Rename all the tokens:
1839 s/\bENDFILE\b/tok_eof/g;
1840 s/\bIDENTIFIER\b/tok_identifier/g;
1842 Let them be enums, not #define, to ease debugging.
1843 Adjust all the code.
1845 2001-01-18 Akim Demaille <akim@epita.fr>
1847 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1848 * src/lex.c (maxtoken, grow_token_buffer): Static.
1850 2001-01-18 Akim Demaille <akim@epita.fr>
1852 Since we now use obstacks, more % directives can be enabled.
1854 * src/lex.c (percent_table): Also accept `%yacc',
1855 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1857 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1858 instead of returning a token.
1859 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1860 * src/reader.c (read_declarations): Adjust.
1861 * src/files.c (open_files): Don't call `compute_base_names', don't
1862 compute `attrsfile' since they depend upon data which might be
1863 *in* the input file now.
1864 (output_files): Do it here.
1865 * src/output.c (output_headers): Document the fact that this patch
1866 introduces a guaranteed SEGV for semantic parsers.
1867 * doc/bison.texinfo: Document them.
1868 * tests/suite.at: Exercise these %options.
1870 2000-12-20 Akim Demaille <akim@epita.fr>
1872 Also handle the output file (--verbose) with obstacks.
1874 * files.c (foutput): Remove.
1875 (output_obstack): New.
1876 Adjust all dependencies.
1877 * src/conflicts.c: Return a string.
1878 * src/system.h (obstack_grow_string): Rename as...
1879 (obstack_sgrow): this. Be ready to work with non literals.
1880 (obstack_fgrow4): New.
1882 2000-12-20 Akim Demaille <akim@epita.fr>
1884 * src/files.c (open_files): Fix the computation of short_base_name
1885 in the case of `-o foo.tab.c'.
1887 2000-12-20 Akim Demaille <akim@epita.fr>
1889 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1890 (copy_dollar): Now that everything uses obstacks, get rid of the
1893 2000-12-20 Akim Demaille <akim@epita.fr>
1895 * src/files.c (open_files): Actually the `.output' file is based
1896 on the short_base_name, not base_name.
1897 * tests/suite.at (Checking output file names): Adjust.
1899 2000-12-20 Akim Demaille <akim@epita.fr>
1901 * src/bison.s1: Remove, we now use directly...
1902 * src/bison.simple: this.
1903 * src/Makefile.am: Use pkgdata instead of data.
1905 2000-12-20 Akim Demaille <akim@epita.fr>
1907 * src/files.c (guard_obstack): New.
1908 (open_files): Initialize it.
1909 (output_files): Dump it...
1910 * src/files.h: Export it.
1911 * src/reader.c (copy_guard): Use it.
1913 2000-12-19 Akim Demaille <akim@epita.fr>
1915 * src/files.c (outfile, defsfile, actfile): Removed as global
1917 (open_files): Don't compute them.
1918 (output_files): Adjust.
1919 (base_name, short_base_name): Be global.
1920 Adjust dependencies.
1922 2000-12-19 Akim Demaille <akim@epita.fr>
1924 * src/files.c (strsuffix): New.
1925 (stringappend): Be just like strcat but allocate.
1926 (base_names): Eve out from open_files.
1927 Try to simplify the rather hairy computation of base_name and
1929 (open_files): Use it.
1930 * tests/suite.at (Checking output file names): New test.
1932 2000-12-19 Akim Demaille <akim@epita.fr>
1934 * src/system.h (obstack_grow_literal_string): Rename as...
1935 (obstack_grow_string): this.
1936 * src/output.c (output_parser): Recognize `%% actions' instead of
1938 * src/bison.s1: s/$/%% actions/.
1939 * src/bison.hairy: Likewise.
1941 2000-12-19 Akim Demaille <akim@epita.fr>
1943 * src/output.c (output_parser): Compute the `#line' lines when
1945 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1946 Suggested by Hans Aberg.
1948 2000-12-19 Akim Demaille <akim@epita.fr>
1950 Let the handling of the skeleton files be local to the procedures
1953 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1955 (fparser, open_extra_files): Remove.
1956 (open_files, output_files): Don't take care of fparser.
1957 * src/files.h: Adjust.
1958 * src/output.c (output_parser): Open and close the file to the
1960 * src/reader.c (read_declarations): When %semantic_parser, open
1963 2000-12-19 Akim Demaille <akim@epita.fr>
1965 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1966 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1968 2000-12-19 Akim Demaille <akim@epita.fr>
1970 * src/files.c (open_files): Yipee! We no longer need all the code
1971 looking for `/tmp' since we have no tmp file.
1973 2000-12-19 Akim Demaille <akim@epita.fr>
1975 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1977 * src/files.c (open_files): Less dependency on MSDOS etc.
1979 2000-12-14 Akim Demaille <akim@epita.fr>
1981 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1982 Provide a default definition.
1983 Use it when executing the default @ action.
1984 * src/reader.c (reader_output_yylsp): No longer include
1985 `timestamp' and `text' in the default YYLTYPE.
1987 2000-12-12 Akim Demaille <akim@epita.fr>
1989 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1990 (copy_guard): Quote the file names.
1991 Reported by Laurent Mascherpa.
1993 2000-12-12 Akim Demaille <akim@epita.fr>
1995 * src/output.c (output_headers, output_program, output): Be sure
1996 to escape special characters when outputting filenames.
1997 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1998 (output_headers): Don't depend on them, Use ACTSTR.
2000 2000-11-17 Akim Demaille <akim@epita.fr>
2002 * lib/obstack.h: Formatting changes.
2003 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2004 prevents type checking.
2005 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2006 cast the value to (void *): assigning a `foo *' to a `void *'
2008 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2009 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2012 2000-11-17 Akim Demaille <akim@epita.fr>
2014 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2016 (suite.m4, regression.m4, calc.m4): these.
2017 * tests/atgeneral.m4: Update from CVS Autoconf.
2019 2000-11-17 Akim Demaille <akim@epita.fr>
2021 * tests/regression.m4 (%union and --defines): New test,
2022 demonstrating a current bug in the obstack implementation.
2024 2000-11-17 Akim Demaille <akim@epita.fr>
2026 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2028 Use them to declare the variables which are global or local to
2031 2000-11-17 Akim Demaille <akim@epita.fr>
2033 * acconfig.h: Remove, no longer used.
2035 2000-11-07 Akim Demaille <akim@epita.fr>
2037 * src: s/Copyright (C)/Copyright/g.
2039 2000-11-07 Akim Demaille <akim@epita.fr>
2041 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2043 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2045 2000-11-07 Akim Demaille <akim@epita.fr>
2047 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2048 Merge in a single CPP if/else.
2050 2000-11-07 Akim Demaille <akim@epita.fr>
2052 * src/output.c (output): Remove useless variables.
2053 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2054 argument `data' for consistency with the prototypes.
2056 (obstack_copy, obstack_copy0): Rename the second argument as
2057 `address' for consistency. Qualify it `const'.
2058 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2059 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2060 `const' their input argument (`data' or `address').
2061 Adjust the corresponding macros to include `const' in casts.
2063 2000-11-03 Akim Demaille <akim@epita.fr>
2065 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2066 s/PFILE1/BISON_HAIRY/.
2067 Adjust dependencies.
2069 2000-11-03 Akim Demaille <akim@epita.fr>
2071 For some reason, this was not applied.
2073 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2074 `unlink': it's no longer used.
2076 2000-11-03 Akim Demaille <akim@epita.fr>
2078 * src/files.c (skeleton_find): New function, eved out of...
2079 (open_files, open_extra_files): here.
2081 2000-11-03 Akim Demaille <akim@epita.fr>
2085 * src/files.c (obstack_save): New function.
2086 (done): Rename as...
2087 (output_files): this.
2089 * src/main.c (main): Don't use `atexit' to register `done', since
2090 it no longer has to remove tmp files, just call `output_files'
2091 when there are no errors.
2093 2000-11-02 Akim Demaille <akim@epita.fr>
2095 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2096 `unlink': it's no longer used.
2097 * src/files.h: Formatting changes.
2099 2000-11-02 Akim Demaille <akim@epita.fr>
2101 Remove the last uses of mktemp and unlink/delete.
2103 * src/files.c (fdefines, ftable): Removed.
2104 (defines_ostack, table_obstack): New.
2105 Adjust dependencies of the former into uses of the latter.
2106 * src/output.c (output_short_or_char_table, output_short_table):
2107 Convert to using obstacks.
2108 * src/reader.c (copy_comment2): Accept one FILE * and two
2110 (output_token_defines, reader_output_yylsp): Use obstacks.
2111 * src/system.h (obstack_fgrow3): New.
2113 2000-11-01 Akim Demaille <akim@epita.fr>
2115 Change each use of `fattrs' into a use of `attrs_obstack'.
2117 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2118 * src/files.c (fattrs): Remove.
2119 (attrs_obstack): New.
2120 Adjust all dependencies.
2121 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2123 2000-11-01 Akim Demaille <akim@epita.fr>
2126 Change each use of `faction' into a use of `action_obstack'.
2128 * lib/obstack.h, lib/obstack.c: New files.
2129 * src/files.c (faction): Remove.
2130 (action_obstack): New.
2131 Adjust all dependencies.
2133 2000-10-20 Akim Demaille <akim@epita.fr>
2135 * lib/quote.h (PARAMS): New macro. Use it.
2137 2000-10-16 Akim Demaille <akim@epita.fr>
2139 * src/output.c (output_short_or_char_table): New function.
2140 (output_short_table, output_token_translations): Use it.
2141 (goto_actions): Use output_short_table.
2143 2000-10-16 Akim Demaille <akim@epita.fr>
2145 * src/symtab.c (bucket_new): New function.
2148 * src/output.c (output_short_table): New argument to display the
2149 comment associated with the table.
2150 Adjust dependencies.
2151 (output_gram): Use it.
2152 (output_rule_data): Nicer output layout for YYTNAME.
2154 2000-10-16 Akim Demaille <akim@epita.fr>
2156 * src/lex.c (read_typename): New function.
2158 * src/reader.c (copy_dollar): Likewise.
2160 2000-10-16 Akim Demaille <akim@epita.fr>
2162 * src/reader.c (copy_comment2): Expect the input stream to be on
2163 the `/' which is suspected to open a comment, instead of being
2164 called after `//' or `/*' was read.
2165 (copy_comment, copy_definition, parse_union_decl, copy_action)
2166 (copy_guard): Adjust.
2168 2000-10-16 Akim Demaille <akim@epita.fr>
2170 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2171 `read_signed_integer'.
2173 2000-10-16 Akim Demaille <akim@epita.fr>
2175 * src/reader.c (copy_dollar): New function.
2176 (copy_guard, copy_action): Use it.
2178 2000-10-16 Akim Demaille <akim@epita.fr>
2180 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2181 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2182 New files, from Fileutils 4.0.27.
2183 * src/main.c (printable_version): Remove.
2184 * src/lex.c, src/reader.c: Use `quote'.
2186 2000-10-04 Akim Demaille <akim@epita.fr>
2188 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2190 2000-10-04 Akim Demaille <akim@epita.fr>
2192 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2194 2000-10-04 Akim Demaille <akim@epita.fr>
2196 When a literal string is used to define two different tokens,
2197 `bison -v' segfaults.
2198 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2200 * tests/regression.m4: New file.
2201 Include the core of the sample provided by Piotr Gackiewicz.
2202 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2205 2000-10-04 Akim Demaille <akim@epita.fr>
2207 * src/reader.c (parse_expect_decl): Keep `count' within the size
2211 2000-10-02 Paul Eggert <eggert@twinsun.com>
2213 * bison.s1 (yyparse): Assign the default value
2214 unconditionally, to avoid a GCC warning and make the parser a
2217 2000-10-02 Akim Demaille <akim@epita.fr>
2219 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2222 2000-10-02 Akim Demaille <akim@epita.fr>
2224 * src/derives.c, src/print.c, src/reduce.c: To ease the
2225 translation, move some `\n' out of the translated strings.
2227 2000-10-02 Akim Demaille <akim@epita.fr>
2229 The location tracking mechanism is precious for parse error
2230 messages. Nevertheless, it is enabled only when `@n' is used in
2231 the grammar, which is a different issue (you can use it in error
2232 message, but not in the grammar per se). Therefore, there should
2233 be another means to enable it.
2235 * src/getargs.c (getargs): Support `--locations'.
2237 * src/getargs.h (locationsflag): Export it.
2238 * src/lex.c (percent_table): Support `%locations'.
2239 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2240 with `locationsflag'.
2241 * doc/bison.texinfo: Document `--locations' and `%locations'.
2243 * tests/calc.m4: Test it.
2245 For regularity of the names, replace each
2246 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2247 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2248 In addition replace each `flag' with `_flag'.
2250 2000-10-02 Akim Demaille <akim@epita.fr>
2252 Also test parse error messages, including with YYERROR_VERBOSE.
2254 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2256 Use it to check the computations.
2257 Use it to check `nonassoc' is honored.
2258 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2259 `--yyerror-verbose'.
2260 (_AT_CHECK_CALC): Adjust to this option.
2261 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2263 2000-10-02 Akim Demaille <akim@epita.fr>
2265 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2266 the latter demonstrates a flaw in the handling of non debugging
2267 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2268 was used in order to simplify:
2284 unfortunately this leads to a CPP conflict when
2285 `--name-prefix=foo' is used since it produces `#define yydebug
2288 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2289 (YYDPRINTF): New macro.
2291 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2293 Also test `--verbose', `--defines' and `--name-prefix'.
2295 2000-10-02 Akim Demaille <akim@epita.fr>
2297 Improve the readability of the produced parsers.
2299 * src/bison.s1: Formatting changes.
2300 Improve the comment related to the `$' mark.
2301 (yydefault): Don't fall through to `yyresume': `goto' there.
2302 * src/output.c (output_parser): When the `$' is met, skip the end
2304 New variable, `number_of_dollar_signs', to check there's exactly
2305 one `$' in the parser skeleton.
2307 2000-10-02 Akim Demaille <akim@epita.fr>
2309 * lib/xstrdup.c: New file, from the fileutils.
2310 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2311 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2312 instead of strlen + xmalloc + strcpy.
2313 * src/symtab.c (copys): Remove, use xstrdup instead.
2315 2000-10-02 Akim Demaille <akim@epita.fr>
2317 * src/gram.h (associativity): New enum type which replaces the
2318 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2319 `right_assoc', `left_assoc' and `non_assoc'.
2320 Adjust all dependencies.
2321 * src/reader.c: Formatting changes.
2322 (LTYPESTR): Don't define it, use it as a literal in
2323 `reader_output_yylsp'.
2324 * src/symtab.h (symbol_class): New enum type which replaces the
2325 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2326 `sunknown', `stoken and `snterm'.
2328 2000-10-02 Akim Demaille <akim@epita.fr>
2330 * src/getargs.c (fixed_outfiles): Rename as...
2331 (yaccflag): for consistency and accuracy.
2332 Adjust dependencies.
2334 2000-10-02 Akim Demaille <akim@epita.fr>
2336 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2337 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2338 difficult and introduced a lot of core dump. It turns out that
2339 Bison used an implementation of `xmalloc' based on `calloc', and
2340 at various places it does depend upon the initialization to 0. I
2341 have not tried to isolate the pertinent places, and all the former
2342 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2343 someone should address this issue.
2345 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2346 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2348 Adjust dependencies.
2349 * src/warshall.h: New file.
2352 2000-10-02 Akim Demaille <akim@epita.fr>
2354 Various anti-`extern in *.c' changes.
2356 * src/system.h: Include `assert.h'.
2358 2000-10-02 Akim Demaille <akim@epita.fr>
2360 * src/state.h (nstates, final_state, first_state, first_shift)
2361 (first_reduction): Move their exportation from here...
2362 * src/LR0.h: to here.
2363 Adjust dependencies.
2364 * src/getargs.c (statisticsflag): New variable.
2365 Add support for `--statistics'.
2366 Adjust dependencies.
2368 Remove a lot of now useless `extern' statements in most files.
2370 2000-10-02 Akim Demaille <akim@epita.fr>
2372 * src/LR0.h: New file.
2375 2000-10-02 Akim Demaille <akim@epita.fr>
2377 * src/print.h: New file.
2379 * src/print.c: Formatting and ordering changes.
2380 (verbose, terse): Replace with...
2381 (print_results): this new function.
2382 Adjust dependencies.
2384 2000-10-02 Akim Demaille <akim@epita.fr>
2386 * src/conflicts.c (conflict_report): New function.
2387 (conflict_log, verbose_conflict_log): Replace with...
2388 (print_conflicts): this function.
2389 Adjust dependencies.
2390 * src/conflicts.h: New file.
2391 Propagate its inclusion.
2393 2000-10-02 Akim Demaille <akim@epita.fr>
2395 * src/nullable.h: New file.
2396 Propagate its inclusion.
2397 * src/nullable.c: Formatting changes.
2399 2000-10-02 Akim Demaille <akim@epita.fr>
2401 * src/reduce.h: New file.
2402 Propagate its inclusion.
2403 * src/reduce.c: Topological sort and other formatting changes.
2404 (bool, TRUE, FALSE): Move their definition to...
2405 * src/system.h: here.
2407 2000-10-02 Akim Demaille <akim@epita.fr>
2409 * src/files.c: Formatting changes.
2410 (tryopen, tryclose, openfiles): Rename as...
2411 (xfopen, xfclose, open_files): this.
2412 (stringappend): static.
2413 * src/files.h: Complete the list of exported symbols.
2416 2000-10-02 Akim Demaille <akim@epita.fr>
2418 * src/reader.h: New file.
2419 Propagate its use instead of tedious list of `extern' and
2421 * src/reader.c: Formatting changes, topological sort,
2424 2000-10-02 Akim Demaille <akim@epita.fr>
2426 * src/lex.h: Prototype `lex.c' exported functions.
2427 * src/reader.c: Adjust.
2428 * src/lex.c: Formatting changes.
2429 (safegetc): Rename as...
2432 2000-10-02 Akim Demaille <akim@epita.fr>
2434 * src/lalr.h: New file.
2435 Propagate its inclusion instead of prototypes and `extern'.
2436 * src/lalr.c: Formatting changes, topological sorting etc.
2438 2000-10-02 Akim Demaille <akim@epita.fr>
2440 * src/output.c (token_actions): Introduce a temporary array,
2441 YYDEFACT, that makes it possible for this function to use
2444 2000-10-02 Akim Demaille <akim@epita.fr>
2446 `user_toknums' is output as a `short[]' in `output.c', while it is
2447 defined as a `int[]' in `reader.c'. For consistency with the
2448 other output tables, `user_toknums' is now defined as a table of
2451 * src/reader.c (user_toknums): Be a short table instead of an int
2453 Adjust dependencies.
2455 Factor the short table outputs.
2457 * src/output.c (output_short_table): New function.
2458 * src/output.c (output_gram, output_stos, output_rule_data)
2459 (output_base, output_table, output_check): Use it.
2461 2000-10-02 Akim Demaille <akim@epita.fr>
2463 * src/output.c (output): Topological sort of the functions, in
2464 order to get rid of the `static' prototypes.
2465 No longer use `register'.
2466 * src/output.h: New file.
2467 Propagate its inclusion in files explicitly prototyping functions
2470 2000-09-21 Akim Demaille <akim@epita.fr>
2472 * src/atgeneral.m4: Update from Autoconf.
2474 2000-09-21 Akim Demaille <akim@epita.fr>
2476 * src/closure.h: New file.
2477 * src/closure.c: Formatting changes, topological sort over the
2478 functions, use of closure.h.
2479 (initialize_closure, finalize_closure): Rename as...
2480 (new_closure, free_closure): these. Adjust dependencies.
2481 * src/LR0.c: Formatting changes, topological sort, use of
2483 (initialize_states): Rename as...
2485 * src/Makefile.am (noinst_HEADERS): Adjust.
2487 2000-09-20 Akim Demaille <akim@epita.fr>
2489 * src/acconfig.h: Don't protect config.h against multiple
2491 Don't define PARAMS.
2492 * src/system.h: Define PARAMS.
2493 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2494 purpose of config.h. system.h must not try to fix wrong
2495 definitions in config.h.
2497 2000-09-20 Akim Demaille <akim@epita.fr>
2499 * src/derives.h: New file.
2500 * src/main.c, src/derives.h: Use it.
2502 * src/Makefile.am (noinst_HEADERS): Adjust.
2504 2000-09-20 Akim Demaille <akim@epita.fr>
2506 * tests/atgeneral.m4: Update from Autoconf.
2507 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2508 (AT_CHECK_CALC): New macros.
2509 Use these macros to test bison with options `', `--raw',
2510 `--debug', `--yacc', `--yacc --debug'.
2512 2000-09-19 Akim Demaille <akim@epita.fr>
2514 * src/output.c: Formatting changes.
2515 * src/machine.h: Remove, leaving its contents in...
2516 * src/system.h: here.
2518 Adjust all dependencies on stdio.h and machine.h.
2519 * src/getargs.h: New file.
2520 Let all `extern' declarations about getargs.c be replaced with
2521 inclusion of `getargs.h'.
2522 * src/Makefile.am (noinst_HEADERS): Adjust.
2524 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2526 (yyerror): Returns void, not int.
2527 * doc/bison.texinfo: Formatting changes.
2529 2000-09-19 Akim Demaille <akim@epita.fr>
2531 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2534 2000-09-18 Akim Demaille <akim@epita.fr>
2536 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2537 * src/Makefile.am (INCLUDES): Don't.
2538 Be ready to fetch headers in lib/.
2540 2000-09-18 Akim Demaille <akim@epita.fr>
2542 * doc/bison.texinfo: Update the copyright.
2543 ANSIfy and GNUify the examples.
2544 Remove the old menu.
2546 2000-09-18 Akim Demaille <akim@epita.fr>
2548 First set of tests: use the `calc' example from the documentation.
2550 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2551 is defined only when YYDEBUG is.
2552 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2553 * src/files.c (tryopen, tryclose): Formatting changes.
2554 Move to the top and be static.
2555 * src/reader.c (read_signed_integer): Likewise.
2556 * tests/calc.m4: New file.
2557 * Makefile.am, suite.m4: Adjust.
2558 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2560 2000-09-18 Akim Demaille <akim@epita.fr>
2562 Add support for an Autotest test suite for Bison.
2564 * m4/m4.m4, m4/atconfig.m4: New files.
2565 * m4/Makefile.am (EXTRA_DIST): Adjust.
2566 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2568 * src/getargs.c: Display a more standard --version message.
2569 * src/reader.c (reader): Formatting changes.
2570 No longer depend upon VERSION_STRING.
2571 * configure.in: No longer use `dnl'.
2572 Set up the test suite and the new directory `tests/.
2573 (VERSION_STRING): Remove.
2575 2000-04-14 Akim Demaille <akim@epita.fr>
2577 * src/reader.c (copy_comment2): New function, same as former
2578 `copy_comment', but outputs into two FILE *.
2579 (copy_comment): Use it.
2580 (parse_union_decl): Use it.
2581 (get_type, parse_start_decl): Use the same `invalid' message.
2582 (parse_start_decl, parse_union_decl): Use the same `multiple'
2584 (parse_union_decl, copy_guard, copy_action): Use the same
2585 `unmatched' message.
2586 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2588 2000-03-31 Akim Demaille <akim@epita.fr>
2590 * src/files.c (tryopen, tryclose): Move to the top.
2593 2000-03-31 Akim Demaille <akim@epita.fr>
2595 * src/main.c (main): Don't call `done', exit does it.
2597 2000-03-31 Akim Demaille <akim@epita.fr>
2599 * allocate.c: s/return (foo)/return foo/.
2602 * output.c: Likewise.
2603 * reader.c: Likewise.
2604 * symtab.c: Likewise.
2605 * vmsgetargs.c: Likewise.
2607 2000-03-31 Akim Demaille <akim@epita.fr>
2609 Clean up the error reporting functions.
2611 * src/report.c: New file.
2612 * src/report.h: Likewise.
2613 * src/Makefile.am: Adjust.
2614 * m4/error.m4: New file.
2615 * m4/Makefile.am: Adjust.
2616 * configure.in (jm_PREREQ_ERROR): Call it.
2617 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2619 (fatal, fatals): Remove. All callers use complain.c::fatal.
2620 (warn, warni, warns, warnss, warnss): Remove. All callers use
2621 complain.c::complain.
2622 (toomany): Remove, use fatal instead.
2623 * src/files.c (done): No argument, use complain_message_count.
2624 * src/main.c (main): Register `done' to `atexit'.
2626 * src/getargs.c (usage): More `fputs', less `fprintf'.
2628 2000-03-28 Akim Demaille <akim@epita.fr>
2630 * lib/: New directory.
2631 * Makefile.am (SUBDIRS): Adjust.
2632 * configure.in: Adjust.
2633 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2635 * src/alloca.c: Moved to lib/.
2636 * src/getopt.c: Likewise.
2637 * src/getopt1.c: Likewise.
2638 * src/getopt.h: Likewise.
2639 * src/ansi2knr.c: Likewise.
2640 * src/ansi2knr.1: Likewise.
2641 * src/Makefile.am: Adjust.
2642 * lib/Makefile.am: New file.
2644 2000-03-28 Akim Demaille <akim@epita.fr>
2646 * src/getargs.c (usage): Refresh the help message.
2648 2000-03-17 Akim Demaille <akim@epita.fr>
2650 * src/getopt1.c: Updated from textutils 2.0e
2651 * src/getopt.c: Likewise.
2652 * src/getopt.h: Likewise.
2654 2000-03-17 Akim Demaille <akim@epita.fr>
2656 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2657 the file name, not the whole `#line LINE FILE'.
2659 2000-03-17 Akim Demaille <akim@epita.fr>
2661 On syntax errors, report the token on which we choked.
2663 * src/bison.s1 (yyparse): In the label yyerrlab, when
2664 YYERROR_VERBOSE, add yychar in msg.
2666 2000-03-17 Akim Demaille <akim@epita.fr>
2668 * src/reader.c (copy_at): New function.
2669 (copy_guard): Use it.
2670 (copy_action): Use it.
2672 2000-03-17 Akim Demaille <akim@epita.fr>
2674 Be kind to translators, save some useless translations.
2676 * src/main.c (banner): New function.
2677 (fatal_banner): Use it.
2678 (warn_banner): Use it.
2680 2000-03-17 Akim Demaille <akim@epita.fr>
2682 * src/reader.c (copy_definition): Use copy_string and
2683 copy_comment. Removed now unused `match', `ended',
2685 (copy_comment, copy_string): Moved, to be visible from
2688 2000-03-17 Akim Demaille <akim@epita.fr>
2690 * src/reader.c (copy_string): Declare `static inline'. No
2691 problems with inline, since it is checked by configure.
2692 (copy_comment): Likewise.
2694 2000-03-17 Akim Demaille <akim@epita.fr>
2696 * src/reader.c (packsymbols): Formatting changes.
2698 2000-03-17 Akim Demaille <akim@epita.fr>
2700 * src/reader.c (copy_comment): New function, factored out from:
2701 (copy_action): Use it. Removed now unused `match', `ended',
2703 (copy_guard): Likewise.
2705 2000-03-17 Akim Demaille <akim@epita.fr>
2707 * src/reader.c (copy_string): New function, factored out from:
2708 (copy_action): Use it.
2709 (copy_guard): Likewise.
2711 2000-03-17 Akim Demaille <akim@epita.fr>
2713 Change the handling of @s so that they behave exactly like $s.
2714 There is now a pseudo variable @$ (readble and writable), location
2715 of the lhs of the rule (by default ranging from the location of
2716 the first symbol of the rhs, to the location of the last symbol,
2717 or, if the rhs is empty, YYLLOC).
2719 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2721 (yyparse): When providing a default semantic action, provide a
2722 default location action.
2723 (after the $): No longer change `*YYLSP', just stack YYLOC the
2724 same way you stack YYVAL.
2725 * src/reader.c (read_declarations): Use warns.
2726 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2727 (copy_action, case '@'): Likewise.
2728 Use a standard error message, to save useless work from
2731 2000-03-17 Akim Demaille <akim@epita.fr>
2733 * src/bison.s1: Formatting and cosmetics changes.
2734 * src/reader.c: Likewise.
2735 Update the Copyright notice.
2737 2000-03-17 Akim Demaille <akim@epita.fr>
2739 * src/bison.s1 (#line): All set to `#line' only, since the
2740 Makefile now handles them.
2742 2000-03-16 Akim Demaille <akim@epita.fr>
2744 * src/output.c (output_rule_data): Output the documentation of
2746 (Copyright notice): Update.
2749 2000-03-16 Akim Demaille <akim@epita.fr>
2751 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2752 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2753 One `#if YYDEBUG' remains, since it uses variables which are
2754 defined only if `YYDEBUG != 0'.
2756 2000-03-16 Akim Demaille <akim@epita.fr>
2758 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2759 and related variables so that the similarities are highlighted.
2761 2000-03-16 Akim Demaille <akim@epita.fr>
2763 * src/bison.s1: Properly indent CPP directives.
2765 2000-03-16 Akim Demaille <akim@epita.fr>
2767 * src/bison.s1: Properly indent the `alloca' CPP section.
2769 2000-03-16 Akim Demaille <akim@epita.fr>
2771 Do not hard code values of directories in `configure.in'.
2772 Update the `configure' tool chain.
2774 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2776 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2777 (AC_OUTPUT): Add m4/Makefile.
2778 Bump to bison 1.28a, 1.29 has never been released.
2779 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2780 handled via src/Makefile.am.
2781 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2782 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2784 * Makefile.am (SUBDIRS): Add m4.
2785 (ACLOCAL_AM_FLAGS): New variable.
2786 (AUTOMAKE_OPTIONS): Add check-news.
2787 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2788 the proper line number and file name.
2789 (DEFS): Propagate the location of bison library files and of the
2791 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2793 * acinclude.m4: Remove, replaced by the directory m4.
2794 * m4/Makefile.am (EXTRA_DIST): New variable.
2795 * m4/gettext.m4: New file, from the fileutils.
2796 * m4/lcmessage.m4: Likewise
2797 * m4/progtest.m4: Likewise.
2798 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2800 2000-03-10 Akim Demaille <akim@epita.fr>
2803 Formatting changes of various comments.
2804 Respect the GNU coding standards at various places.
2805 Don't use `_()' when no translation is needed.
2807 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2810 OS/2 honors TMPDIR environment variable.
2812 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2814 * doc/bison.texinfo: Tweaked spelling and grammar.
2816 Removed reference to price of printed copy.
2817 Mention BISON_SIMPLE and BISON_HAIRY.
2819 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2821 * configure.in, NEWS:
2822 Bison 1.29 released.
2824 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2826 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2827 Added reference card.
2829 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2831 * po/ru.po: Added Russian translation.
2833 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2835 * configure.in: Added Russian translation.
2837 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2839 * configure.in, NEWS, README:
2840 Released version 1.28.
2842 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2845 Squashed redefinition warning on some systems.
2847 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2848 Have configure build version string instead of relying on ANSI string
2851 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2853 * po/POTFILES.in: Got rid of version.c.
2855 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2857 * acconfig.h, configure.in:
2858 Have configure build version string instead of relying on ANSI string
2861 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2864 Dropped mention of `+' for long-named options.
2866 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2868 * src/files.c: Added <unistd.h> for unlink().
2870 * src/Makefile.am, src/system.h:
2873 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2875 * README: Added a FAQ list.
2877 * configure.in, acconfig.h:
2880 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2882 * doc/FAQ, doc/Makefile.am:
2885 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2887 * src/alloc.h, src/symtab.h, src/version.c:
2888 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2890 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2892 * src/.cvsignore, src/Makefile.am:
2893 Reorganized: sources in `src', documentation in `doc'.
2895 * src/lex.c (literalchar):
2896 fixed the code for escaping double quotes (thanks
2899 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2901 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2902 Adjusted paths to reflect directory reorganization.
2904 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2906 * doc/.cvsignore, doc/Makefile.am:
2907 Reorganized: sources in `src', documentation in `doc'.
2909 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2912 Updated AC_INIT file to reflect directory reorganization.
2914 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2915 Reorganized: sources in `src', documentation in `doc'.
2917 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2920 Don't declare calloc() and realloc() if not necessary.
2922 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2924 * configure.in, acconfig.h, acinclude.m4:
2925 Don't declare calloc() and realloc() if not necessary.
2927 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2929 * po/.cvsignore: Added i18n support.
2931 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2933 * acconfig.h, configure.in, Makefile.am:
2936 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2938 * src/bison.s1: Fixed #line numbers.
2940 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2942 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2943 Added PO files from Translation Project.
2945 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2948 Added support for non-ANSI compilers (ansi2knr).
2950 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2952 * configure.in: Bumped version number to 1.27.
2955 Added `bison.simple' to list of files removed by `make distclean'.
2957 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2959 * src/files.c, src/files.h:
2960 Defined locations of parser files in config.h instead of Makefile.
2962 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2964 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2965 Defined locations of parser files in config.h instead of Makefile.
2967 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2970 Removed inappropriate use of $< macro.
2972 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2974 * po/Makefile.in.in, po/POTFILES.in:
2975 Add `po' directory skeleton.
2977 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2979 * README: Document help-bison list.
2981 * configure.in: Add check for mkstemp().
2983 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2985 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2986 Hush a few compiler warnings.
2989 Add tryclose(), which verifies that fclose was successful.
2990 Hush a couple of compiler warnings.
2992 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2994 * Makefile.am, OChangeLog:
2995 ChangeLog is now automatically generated. Include the old version as
2998 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3000 * 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:
3003 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3005 * doc/bison.texinfo: Fix formatting glitch.
3007 * doc/bison.texinfo: Update FSF address.
3009 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3011 * acconfig.h: Update FSF address.
3013 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3016 Don't define PACKAGE here, since config.h defines it.
3018 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3020 * src/reader.c: Update copyright date.
3023 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3024 favor of output directly to stderr (avoids buffer overruns).
3026 * src/reader.c: Some checks for premature EOF.
3028 * 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:
3029 Use prototypes if the compiler understands them.
3031 * src/files.c: Honor TMPDIR on Unix hosts.
3032 Use prototypes if the compiler understands them.
3035 Fix a couple of buffer overrun bugs.
3036 Use prototypes if the compiler understands them.
3038 * src/system.h: Include unistd.h and ctype.h.
3039 Use #ifdef instead of #if for NLS symbols.
3041 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3043 * doc/bison.texinfo:
3044 Delete comment "consider using @set for edition number, etc..." since
3045 we now are doing so.
3047 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3050 Use prototypes if the compiler understands them.
3052 * NEWS: Document 1.26 highlights.
3054 * Makefile.am: Require Automake 1.3 or later.
3057 Use prototypes if the compiler understands them.
3059 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3062 Use VERSION symbol from automake for version number.
3064 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3066 * acconfig.h, configure.in, version.cin:
3067 Use VERSION symbol from automake for version number.
3069 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3072 Distribute original version of simple parser (bison.s1), not built
3073 version (bison.simple).
3075 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3077 * doc/bison.texinfo: Add info dir entry.
3079 * doc/bison.texinfo:
3080 Let automake put version number into documentation.
3082 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3084 * src/bison.cld, src/build.com, src/vmshlp.mar:
3085 Add non-RCS files from /gd/gnu/bison.
3087 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3090 Document the BISON_HAIRY and BISON_SIMPLE variables.
3092 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3094 * src/version.c: Build version.c automatically.
3097 Fix token numbering (used to start at 258, not 257).
3099 * src/system.h: Include config.h.
3101 * src/getargs.c: Update bug report address.
3103 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3104 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3106 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3109 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3111 * configure.in, version.cin:
3112 Build version.c automatically.
3114 * AUTHORS: Add AUTHORS file.
3116 * README: Update bug report address.
3119 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3121 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3124 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3126 * doc/bison.texinfo: Clean up some formatting.
3128 1998-05-05 Richard Stallman <rms@gnu.org>
3130 * doc/bison.texinfo:
3131 Explain better why to make a pure parser.
3133 1998-01-05 Richard Stallman <rms@gnu.org>
3135 * src/files.c (openfiles):
3136 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3137 find a temporary directory, if possible. Do not unlink files while
3140 1997-08-25 Richard Stallman <rms@gnu.org>
3142 * src/reader.c (stack_offset;):
3143 Change some warni to warns.
3145 * src/lex.c (literalchar): Use warns, not warni.
3147 1997-06-28 Richard Stallman <rms@gnu.org>
3149 * src/bison.s1: Add a Bison version comment.
3151 * src/main.c (fatal, warn, berror):
3154 1997-06-28 Richard Stallman <rms@gnu.org>
3156 * Makefile.in (bison_version): New variable.
3157 (dist): Use that variable.
3158 (bison.s1): Substitute the Bison version into bison.simple.
3160 * bison.simple: Add a Bison version comment.
3162 1997-06-18 Richard Stallman <rms@gnu.org>
3164 * src/main.c (fatal, warn, berror):
3165 Make error messages standard.
3166 (toomany): Improve error message text.
3168 * 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:
3169 new.h renamed to alloc.h.
3171 1997-06-18 Richard Stallman <rms@gnu.org>
3173 * Makefile.in: new.h renamed to alloc.h.
3175 1997-05-24 Richard Stallman <rms@gnu.org>
3177 * src/lex.c (literalchar):
3178 Fix the code for escaping \, " and '.
3180 (lex): Avoid trouble when there are many chars
3181 to discard in a char literal with just several chars in it.
3183 1997-05-17 Richard Stallman <rms@gnu.org>
3186 Use malloc, if using alloca is troublesome.
3187 (YYSTACK_USE_ALLOCA): New flag macro.
3188 Define it for some systems and compilers.
3189 (YYSTACK_ALLOC): New macro.
3190 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3191 If it was malloc'd, free it.
3193 1997-05-17 Richard Stallman <rms@gnu.org>
3196 Use malloc, if using alloca is troublesome.
3197 (YYSTACK_USE_ALLOCA): New flag macro.
3198 Define it for some systems and compilers.
3199 (YYSTACK_ALLOC): New macro.
3200 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3201 If it was malloc'd, free it.
3203 1997-04-23 Richard Stallman <rms@gnu.org>
3206 (alloca) [__hpux]: Always define as __builtin_alloca.
3208 1997-04-23 Richard Stallman <rms@gnu.org>
3211 (alloca) [__hpux]: Always define as __builtin_alloca.
3213 1997-04-22 Richard Stallman <rms@gnu.org>
3216 [__hpux]: Include alloca.h (right for HPUX 10)
3217 instead of declaring alloca (right for HPUX 9).
3219 * src/bison.s1 (__yy_memcpy):
3220 Declare arg `count' as unsigned int.
3221 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3223 1997-04-22 Richard Stallman <rms@gnu.org>
3226 [__hpux]: Include alloca.h (right for HPUX 10)
3227 instead of declaring alloca (right for HPUX 9).
3229 * bison.simple (__yy_memcpy):
3230 Declare arg `count' as unsigned int.
3231 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3233 1997-01-03 Richard Stallman <rms@gnu.org>
3235 * src/allocate.c: [__STDC__ or _MSC_VER]:
3236 Declare calloc and realloc to return void *.
3238 1997-01-02 Richard Stallman <rms@gnu.org>
3241 [_MSC_VER]: Include stdlib.h and process.h.
3242 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3244 * src/main.c (main): Return FAILURE as a value.
3245 (printable_version): Declare arg as int, not char.
3247 1997-01-02 Richard Stallman <rms@gnu.org>
3249 * Makefile.in (dist):
3250 Explicitly check for symlinks, and copy them.
3252 1996-12-19 Richard Stallman <rms@gnu.org>
3255 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3257 1996-12-18 Paul Eggert <eggert@gnu.org>
3259 * src/bison.s1 (yyparse):
3260 If __GNUC__ and YYPARSE_PARAM are both defined,
3261 declare yyparse to have a void * argument.
3263 1996-12-18 Paul Eggert <eggert@gnu.org>
3265 * bison.simple (yyparse):
3266 If __GNUC__ and YYPARSE_PARAM are both defined,
3267 declare yyparse to have a void * argument.
3269 1996-12-17 Richard Stallman <rms@gnu.org>
3271 * src/reduce.c (nbits): Add some casts.
3273 1996-08-12 Richard Stallman <rms@gnu.org>
3275 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3277 1996-08-12 Richard Stallman <rms@gnu.org>
3279 * bison.simple: Test _MSDOS as well as _MSDOS_.
3281 1996-07-31 Richard Stallman <rms@gnu.org>
3284 [__sun && __i386]: Include alloca.h.
3286 1996-07-31 Richard Stallman <rms@gnu.org>
3289 [__sun && __i386]: Include alloca.h.
3291 1996-07-30 Richard Stallman <rms@gnu.org>
3293 * src/bison.s1: Comment change.
3295 * src/bison.s1: Test _MSDOS_, not MSDOS.
3297 1996-07-30 Richard Stallman <rms@gnu.org>
3299 * bison.simple: Comment change.
3301 * bison.simple: Test _MSDOS_, not MSDOS.
3303 1996-06-01 Richard Stallman <rms@gnu.org>
3305 * 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:
3306 Insert `_' macro around many string constants.
3309 Insert `_' macro around many string constants.
3311 (main): Call setlocale, bindtextdomain and textdomain.
3313 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3314 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3315 [ENABLE_NLS]: Include libintl.h.
3316 [ENABLE_NLS] (gettext): Define.
3317 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3318 (N_, PACKAGE, LOCALEDIR): New macros.
3320 1996-06-01 Richard Stallman <rms@gnu.org>
3322 * POTFILES.in: New file.
3324 * Makefile.in (allocate.o):
3325 Define target explicitly.
3327 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3328 (LDFLAGS): Set to @LDFLAGS@.
3329 (configure): Run autoconf only if preceding `cd' succeeds.
3330 (bison.s1): Redirect output to temporary file then move the
3331 temporary to the target, rather than redirecting directly to bison.s1.
3332 (clean): Remove config.status and config.log.
3333 (distclean): Don't remove config.status here.
3335 1996-05-12 Richard Stallman <rms@gnu.org>
3338 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3340 1996-05-12 Richard Stallman <rms@gnu.org>
3343 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3345 1996-05-11 Richard Stallman <rms@gnu.org>
3347 * src/bison.s1 (__yy_memcpy):
3348 Really reorder the args, as was supposedly done on Feb 14 1995.
3349 (yyparse): Calls changed accordingly.
3351 1996-05-11 Richard Stallman <rms@gnu.org>
3353 * Makefile.in (dist): Don't use $(srcdir).
3355 * bison.simple (__yy_memcpy):
3356 Really reorder the args, as was supposedly done on Feb 14 1995.
3357 (yyparse): Calls changed accordingly.
3359 1996-01-27 Richard Stallman <rms@gnu.org>
3361 * src/output.c (output_rule_data):
3362 Test YYERROR_VERBOSE in the conditional
3363 around the definition of ttyname.
3365 1995-12-29 Richard Stallman <rms@gnu.org>
3368 Fix line numbers in #line commands.
3370 1995-12-29 Richard Stallman <rms@gnu.org>
3373 Fix line numbers in #line commands.
3375 1995-12-27 Richard Stallman <rms@gnu.org>
3377 * src/bison.s1 (YYPARSE_PARAM_DECL):
3378 In C++, make it always null.
3379 (YYPARSE_PARAM_ARG): New macro.
3380 (yyparse): Use YYPARSE_PARAM_ARG.
3382 1995-12-27 Richard Stallman <rms@gnu.org>
3384 * bison.simple (YYPARSE_PARAM_DECL):
3385 In C++, make it always null.
3386 (YYPARSE_PARAM_ARG): New macro.
3387 (yyparse): Use YYPARSE_PARAM_ARG.
3389 1995-11-29 Richard Stallman <rms@gnu.org>
3391 * doc/bison.texinfo:
3392 Describe literal string tokens, %raw, %no_lines, %token_table.
3394 1995-11-29 Daniel Hagerty <hag@gnu.org>
3396 * doc/bison.texinfo: Fixed update date
3398 1995-10-16 Richard Stallman <rms@gnu.org>
3400 * src/version.c: Version 1.25.
3402 1995-10-16 Richard Stallman <rms@gnu.org>
3404 * NEWS: *** empty log message ***
3406 1995-10-16 Richard Stallman <rms@gnu.org>
3408 * doc/bison.1, doc/bison.rnh:
3411 1995-10-15 Richard Stallman <rms@gnu.org>
3413 * src/vmsgetargs.c, src/getargs.c:
3414 Added -n, -k, and -raw switches.
3415 (noparserflag, toknumflag, rawtoknumflag): New variables.
3417 * src/symtab.h (SALIAS):
3418 New #define for adding aliases to %token.
3419 (struct bucket): Added `alias' field.
3421 * src/reduce.c (reduce_grammar):
3422 Revise error message.
3423 (print_notices): Remove final `.' from error message.
3425 * src/reader.c (reader_output_yylsp):
3427 (readgram): Use `#if 0' around code that accepted %command
3428 inside grammar rules: The documentation doesn't allow it,
3429 and it will fail since the %command processors scan for the next %.
3430 (parse_token_decl): Extended the %token
3431 declaration to allow a multi-character symbol as an alias.
3432 (parse_thong_decl): New function.
3433 (read_declarations): Added %thong declarations.
3434 (read_declarations): Handle NOOP to deal with allowing
3435 % declarations as another means to specify the flags.
3436 (readgram): Allow %prec prior to semantics embedded in a rule.
3437 (skip_to_char, read_declarations, copy_definition)
3438 (parse_token_decl, parse_start_decl, parse_type_decl)
3439 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3440 (get_type_name, copy_guard, copy_action, readgram)
3441 (get_type, packsymbols): Revised most error messages.
3442 Changed `fatal' to `warnxxx' to avoid aborting for error.
3443 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3444 (read_declarations): Improve the error message for
3445 an invalid character. Do not abort.
3446 (read_declarations, copy_guard, copy_action): Use
3447 printable_version to avoid unprintable characters in printed output.
3448 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3449 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3450 Allow the type of a non-terminal can be given
3451 more than once, as long as all specifications give the same type.
3454 (output_headers, output_trailers, output, output_gram)
3455 (output_rule_data): Implement noparserflag variable.
3456 Implement toknumflag variable.
3457 (output): Call reader_output_yylsp to output LTYPESTR.
3459 * src/main.c (main):
3460 If reader sees an error, don't process the grammar.
3461 (fatals): Updated to not use VARARGS1.
3462 (printable_version, int_to_string, warn, warni, warns, warnss)
3463 (warnsss): New error reporting functions. Avoid abort for error.
3466 Added THONG and NOOP for alias processing.
3467 Added SETOPT for the new code that allows setting options with %flags.
3470 Include getopt.h. Add some extern decls.
3471 (safegetc): New function to deal with EOF gracefully.
3472 (literalchar); new function to deal with reading \ escapes.
3473 (lex): Use literalchar.
3474 (lex): Implemented "..." tokens.
3475 (literalchar, lex, parse_percent_token): Made tokenbuffer
3476 always contain the token. This includes growing the token
3477 buffer while reading an integer.
3478 (parse_percent_token): Replaced if-else statement with percent_table.
3479 (parse_percent_token): Added % declarations as another
3480 way to specify the flags -n, -l, and -r. Also added hooks for
3481 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3482 major changes to files.c.
3483 (lex) Retain in the incoming stream a character following
3485 (skip_white_space, lex): Revised most error messages
3486 and changed fatal to warn to avoid aborting.
3487 (percent_table): Added %thong declarations.
3489 * src/gram.h: Comment changes.
3491 * src/files.c (openfiles, open_extra_files, done):
3493 and actfile file. Handle noparserflag. Both for -n switch.
3495 * src/conflicts.c (resolve_sr_conflict):
3496 Remove use of alloca.
3498 1995-06-01 Jim Meyering <meyering@gnu.org>
3500 * doc/bison.texinfo: *** empty log message ***
3502 1995-05-06 Richard Stallman <rms@gnu.org>
3504 * src/bison.s1: Comment change.
3506 1995-05-06 Richard Stallman <rms@gnu.org>
3508 * bison.simple: Comment change.
3510 1995-05-03 Richard Stallman <rms@gnu.org>
3512 * src/version.c: Version now 1.24.
3514 * src/bison.s1: Change distribution terms.
3516 * src/version.c: Version now 1.23.
3518 1995-05-03 Richard Stallman <rms@gnu.org>
3520 * doc/bison.texinfo:
3521 Rewrite "Conditions for Using Bison".
3522 Update version to 1.24.
3524 1995-05-03 Richard Stallman <rms@gnu.org>
3526 * bison.simple: Change distribution terms.
3528 1995-02-23 Richard Stallman <rms@gnu.org>
3530 * src/files.c: Test __VMS_POSIX as well as VMS.
3532 1995-02-14 Jim Meyering <meyering@gnu.org>
3534 * src/bison.s1 (__yy_memcpy):
3535 Renamed from __yy_bcopy to avoid
3536 confusion. Reverse FROM and TO arguments to be consistent with
3539 1995-02-14 Jim Meyering <meyering@gnu.org>
3541 * bison.simple (__yy_memcpy):
3542 Renamed from __yy_bcopy to avoid
3543 confusion. Reverse FROM and TO arguments to be consistent with
3546 1994-11-10 David J. MacKenzie <djm@gnu.org>
3552 * Makefile.in (DISTFILES): Include NEWS.
3554 * Makefile.in (DISTFILES):
3555 Include install-sh, not install.sh.
3557 * configure.in: Update to Autoconf v2 macro names.
3559 1994-10-05 David J. MacKenzie <djm@gnu.org>
3561 * Makefile.in: fix typo
3563 * Makefile.in (prefix, exec_prefix):
3564 Let configure set them.
3566 1994-09-28 David J. MacKenzie <djm@gnu.org>
3568 * Makefile.in: Set datadir to $(prefix)/share.
3570 1994-09-15 Richard Stallman <rms@gnu.org>
3573 Update copyright notice and GPL version.
3575 1994-09-15 Richard Stallman <rms@gnu.org>
3578 Update copyright notice and GPL version.
3580 1994-07-12 Richard Stallman <rms@gnu.org>
3582 * src/reduce.c, src/reader.c:
3585 1994-05-05 David J. MacKenzie <djm@gnu.org>
3587 * Makefile.in: entered into RCS
3589 1994-03-26 Richard Stallman <rms@gnu.org>
3591 * src/bison.s1: entered into RCS
3593 1994-03-26 Richard Stallman <rms@gnu.org>
3595 * bison.simple: entered into RCS
3597 1994-03-25 Richard Stallman <rms@gnu.org>
3599 * src/main.c: entered into RCS
3601 1994-03-24 Richard Stallman <rms@gnu.org>
3603 * src/conflicts.c: entered into RCS
3605 1994-01-02 Richard Stallman <rms@gnu.org>
3607 * Makefile.in: *** empty log message ***
3609 1993-11-21 Richard Stallman <rms@gnu.org>
3611 * src/bison.s1: *** empty log message ***
3613 1993-11-21 Richard Stallman <rms@gnu.org>
3615 * doc/bison.texinfo: entered into RCS
3617 * doc/bison.texinfo: *** empty log message ***
3619 1993-11-21 Richard Stallman <rms@gnu.org>
3621 * bison.simple: *** empty log message ***
3623 1993-10-25 David J. MacKenzie <djm@gnu.org>
3625 * doc/bison.texinfo: *** empty log message ***
3627 1993-10-19 Richard Stallman <rms@gnu.org>
3629 * src/bison.s1: *** empty log message ***
3631 1993-10-19 Richard Stallman <rms@gnu.org>
3633 * bison.simple: *** empty log message ***
3635 1993-10-14 Richard Stallman <rms@gnu.org>
3637 * src/bison.s1: *** empty log message ***
3639 1993-10-14 Richard Stallman <rms@gnu.org>
3641 * bison.simple: *** empty log message ***
3643 1993-09-14 David J. MacKenzie <djm@gnu.org>
3645 * doc/bison.texinfo: *** empty log message ***
3647 1993-09-13 Noah Friedman <friedman@gnu.org>
3649 * Makefile.in: *** empty log message ***
3651 1993-09-10 Richard Stallman <rms@gnu.org>
3653 * src/conflicts.c: *** empty log message ***
3655 * src/system.h: entered into RCS
3657 1993-09-10 Richard Stallman <rms@gnu.org>
3659 * doc/bison.1: entered into RCS
3661 1993-09-06 Noah Friedman <friedman@gnu.org>
3663 * src/version.c: entered into RCS
3665 1993-09-06 Noah Friedman <friedman@gnu.org>
3667 * Makefile.in: *** empty log message ***
3669 1993-07-30 David J. MacKenzie <djm@gnu.org>
3671 * Makefile.in: *** empty log message ***
3673 1993-07-24 Richard Stallman <rms@gnu.org>
3675 * src/bison.s1: *** empty log message ***
3677 1993-07-24 Richard Stallman <rms@gnu.org>
3679 * bison.simple: *** empty log message ***
3681 1993-07-08 David J. MacKenzie <djm@gnu.org>
3683 * Makefile.in: *** empty log message ***
3685 1993-07-04 Richard Stallman <rms@gnu.org>
3687 * src/bison.s1: *** empty log message ***
3689 1993-07-04 Richard Stallman <rms@gnu.org>
3691 * bison.simple: *** empty log message ***
3693 1993-06-26 David J. MacKenzie <djm@gnu.org>
3695 * src/getargs.c: entered into RCS
3697 1993-06-26 David J. MacKenzie <djm@gnu.org>
3699 * doc/bison.texinfo: *** empty log message ***
3701 * doc/bison.1: New file.
3703 1993-06-25 Richard Stallman <rms@gnu.org>
3705 * src/getargs.c: New file.
3707 1993-06-16 Richard Stallman <rms@gnu.org>
3709 * src/bison.s1: *** empty log message ***
3711 1993-06-16 Richard Stallman <rms@gnu.org>
3713 * bison.simple: *** empty log message ***
3715 1993-06-03 Richard Stallman <rms@gnu.org>
3717 * src/bison.s1: New file.
3719 1993-06-03 Richard Stallman <rms@gnu.org>
3721 * doc/bison.texinfo: *** empty log message ***
3723 1993-06-03 Richard Stallman <rms@gnu.org>
3725 * bison.simple: New file.
3727 1993-05-19 Richard Stallman <rms@gnu.org>
3729 * doc/bison.texinfo: New file.
3731 1993-05-07 Noah Friedman <friedman@gnu.org>
3733 * Makefile.in: *** empty log message ***
3735 1993-04-28 Noah Friedman <friedman@gnu.org>
3737 * src/reader.c: *** empty log message ***
3739 1993-04-23 Noah Friedman <friedman@gnu.org>
3741 * src/alloc.h: entered into RCS
3743 1993-04-20 David J. MacKenzie <djm@gnu.org>
3745 * src/version.c: *** empty log message ***
3747 * src/files.c, src/allocate.c:
3750 * src/reader.c: *** empty log message ***
3752 * src/lex.c: entered into RCS
3754 * src/conflicts.c: New file.
3756 * src/symtab.c: entered into RCS
3758 * src/alloc.h: New file.
3760 * src/LR0.c: entered into RCS
3762 1993-04-18 Noah Friedman <friedman@gnu.org>
3764 * src/reader.c: New file.
3766 * src/version.c: *** empty log message ***
3768 1993-04-18 Noah Friedman <friedman@gnu.org>
3770 * Makefile.in: *** empty log message ***
3772 1993-04-17 Noah Friedman <friedman@gnu.org>
3774 * Makefile.in: *** empty log message ***
3776 1993-04-15 Richard Stallman <rms@gnu.org>
3778 * src/main.c, src/files.c:
3781 1993-04-15 Noah Friedman <friedman@gnu.org>
3783 * configure.in: entered into RCS
3785 * configure.in: *** empty log message ***
3787 * configure.in: New file.
3789 1993-04-14 Richard Stallman <rms@gnu.org>
3791 * Makefile.in: New file.
3793 1993-04-13 Richard Stallman <rms@gnu.org>
3795 * src/version.c: New file.
3797 1993-03-25 Richard Stallman <rms@gnu.org>
3799 * src/output.c: entered into RCS
3801 1992-09-25 Richard Stallman <rms@gnu.org>
3803 * configure.bat: entered into RCS
3805 1992-06-22 Richard Stallman <rms@gnu.org>
3807 * src/vmsgetargs.c: entered into RCS
3809 1992-06-22 Richard Stallman <rms@gnu.org>
3811 * doc/bison.rnh: entered into RCS
3813 1992-04-20 David J. MacKenzie <djm@gnu.org>
3815 * README: entered into RCS
3817 1992-01-22 Richard Stallman <rms@gnu.org>
3819 * src/machine.h: entered into RCS
3821 1991-12-21 Richard Stallman <rms@gnu.org>
3823 * src/lalr.c, src/closure.c:
3826 1991-12-20 Richard Stallman <rms@gnu.org>
3828 * src/state.h: entered into RCS
3830 1991-12-18 Richard Stallman <rms@gnu.org>
3832 * src/print.c, src/nullable.c, src/derives.c:
3835 1991-11-03 David J. MacKenzie <djm@gnu.org>
3837 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3840 1988-09-09 Richard Stallman <rms@gnu.org>
3842 * src/bison.hairy: entered into RCS
3844 1987-12-16 Richard Stallman <rms@gnu.org>
3846 * REFERENCES: entered into RCS