1 2002-01-12 Akim Demaille <akim@epita.fr>
5 2002-01-12 Akim Demaille <akim@epita.fr>
7 * lib/Makefile.am (EXTRA_DIST): Add strnlen.c: Automake is still
8 not using Autoconf traces and does not see Autoconf's AC_LIBOBJ.
10 2002-01-11 Akim Demaille <akim@epita.fr>
14 2002-01-11 Akim Demaille <akim@epita.fr>
16 * configure.in: Use AC_FUNC_STRNLEN.
17 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
19 2002-01-09 Akim Demaille <akim@epita.fr>
23 2002-01-09 Akim Demaille <akim@epita.fr>
25 * configure.in (WERROR_CFLAGS): Compute it.
26 * src/Makefile.am (CFLAGS): Pass it.
27 * tests/atlocal.in (CFLAGS): Idem.
29 2002-01-08 Akim Demaille <akim@epita.fr>
31 * lib/Makefile.am (libbison_a_SOURCES): Add xstrndup.c.
32 * src/getargs.c (AS_FILE_NAME): New.
33 (getargs): Use it to convert DOSish file names.
34 * src/files.c (base_name): Rename as full_base_name to avoid
35 clashes with `base_name ()'.
36 (get_extension_index): Remove.
37 (filename_split): New.
38 (compute_base_names): N-th rewrite, using filename_split.
40 2002-01-08 Akim Demaille <akim@epita.fr>
42 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c,
43 * lib/xstrndup.c, lib/strchr.c:
44 New, stolen from the Fileutils 4.1.
45 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
46 * configure.in: Check for the presence of memrchr, strchr,
47 strnlen, and of their prototypes.
48 Don't check for strndup: we no longer use it.
49 * src/system.h: Adjust the prototypes.
51 2002-01-07 Akim Demaille <akim@epita.fr>
53 * src/conflicts.c (count_rr_conflicts): The previous RR conflicts
54 patch was improperly applied: fix it.
56 2002-01-07 Akim Demaille <akim@epita.fr>
58 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
59 'switch' without a following semicolon.
60 * tests/regression.at (braces parsing): New.
62 2002-01-06 Akim Demaille <akim@epita.fr>
64 Bison is dead wrong in its RR conflict reports.
66 * tests/torture.at (GNU Cim Grammar): New.
67 * src/conflicts.c (count_rr_conflicts): Fix.
69 2002-01-06 Akim Demaille <akim@epita.fr>
71 Creating package.m4 from configure.ac causes too many problems.
73 * tests/Makefile.am (package.m4): Create it by hand,
74 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
76 2002-01-04 Paul Eggert <eggert@twinsun.com>
78 * doc/bison.texinfo (Debugging):
79 Remove YYSTDERR; it's no longer defined or used.
80 Also, s/cstdio.h/cstdio/.
82 2002-01-03 Akim Demaille <akim@epita.fr>
84 * src/files.h: Add it prototype.
86 2002-01-03 Akim Demaille <akim@epita.fr>
88 * src/files.c, src/files.h (strsuffix): Not static.
89 * src/conflicts.c (conflicts_print): Don't consider it is an error
90 to have a %expectation violation on a file ending by `plural.y'.
93 2002-01-03 Akim Demaille <akim@epita.fr>
95 * tests/bison.in: Adjust to CVS Autoconf.
96 * tests/calc.at (exp): We no longer need to special case GCC as
97 the warning flags are passed by configure.
98 * tests/atlocal.in: Adjust.
99 * configure.in: Bump to 1.30j.
101 2002-01-03 Akim Demaille <akim@epita.fr>
105 2002-01-03 Akim Demaille <akim@epita.fr>
107 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
108 The ISO C++ standard is extremely clear about it: stderr is
109 considered a macro, not a regular symbol (see table 94 `Header
110 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
111 Therefore std:: does not apply to it. It still does with fprintf.
112 Also, s/cstdio.h/cstdio/.
114 2002-01-03 Akim Demaille <akim@epita.fr>
116 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
117 for non system headers.
119 2001-12-27 Paul Eggert <eggert@twinsun.com>
121 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
122 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
123 Sparc, as they were causing more porting problems than the
124 (minor) performance improvement was worth.
126 2001-12-22 Akim Demaille <akim@epita.fr>
128 * src/output.c (output_short_table, output_short_or_char_table):
129 Change the prototype to use `int' for array ranges: some
130 invocations do pass an int, not a short.
131 Reported by Wayne Green.
133 2001-12-22 Akim Demaille <akim@epita.fr>
135 Some actions of web2c.y are improperly triggered.
136 Reported by Mike Castle.
138 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
139 * tests/regression.at (Web2c): Rename as...
140 (Web2c Report): this.
141 (Web2c Actions): New.
143 2001-12-22 Akim Demaille <akim@epita.fr>
145 Reductions in web2c.y are improperly reported.
146 Reported by Mike Castle.
148 * src/conflicts.c (print_reductions): Fix.
149 * tests/regression.at (Web2c): New.
151 2001-12-18 Akim Demaille <akim@epita.fr>
155 2001-12-18 Akim Demaille <akim@epita.fr>
157 Some host fail on `assert (!"foo")', which expands to
158 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
159 Reported by Nelson Beebee.
161 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
162 `#define it_succeeded 0' and `assert (it_succeeded)'.
164 2001-12-17 Paul Eggert <eggert@twinsun.com>
166 * src/bison.simple (YYSTD): New macro.
167 (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE, YYFPRINTF, YYSTDERR): Use
168 it to simplify macros, and fix some C++ porting problems reported
171 * src/output.c (output): Define YYDEBUG to 0 if it is not defined
172 and if we are not debugging. POSIX requires this.
173 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document this.
175 * src/output.c (output_gram, output_rule_data): Do not assume that
176 the user defines YYDEBUG to a properly parenthesized expression.
178 2001-12-15 Akim Demaille <akim@epita.fr>
180 * src/nullable.c (set_nullable): Useless rules must be skipped,
181 otherwise, since we range over their symbols, we might look at a
182 nonterminal which no longer ``exists'', i.e., it is not counted in
183 `nvars', hence we overflow our arrays.
185 2001-12-15 Akim Demaille <akim@epita.fr>
187 * src/reader.c (copy_action): When --yacc, don't append a `;'
188 to the user action: let it fail if lacking.
189 Suggested by Arnold Robbins and Tom Tromey.
191 2001-12-13 Akim Demaille <akim@epita.fr>
195 2001-12-13 Akim Demaille <akim@epita.fr>
197 The computation of nullable is broken: it doesn't handle empty
200 * tests/torture.at (GNU AWK Grammar): New.
201 * tests/sets.at (Nullable): New.
202 * src/nullable.c (set_nullable): Instead of blindly looping over
203 `ritems', loop over the rules, and then over their rhs's.
205 Work around Autotest bugs.
207 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
208 frame, because Autotest understand lines starting with a `+' as
209 traces from the shell. Then, they are not processed properly.
210 Admittedly an Autotest bug, but we don't have time to wait for
211 Autotest to catch up.
212 * tests/regression.at (Broken Closure): Adjust to the new table
215 * tests/sets.at: here.
217 2001-12-12 Paul Eggert <eggert@twinsun.com>
219 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
220 Do not infringe on the global user namespace when using C++.
221 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
222 All uses of `fprintf' and `stderr' changed.
224 * src/output.c (output): Do not output "#include <stdio.h>"; that
225 is bison.simple's job. stdio.h should be included only if
226 necessary, to avoid infringing on the user name space when
229 2001-12-12 Akim Demaille <akim@epita.fr>
231 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
232 on that of lib/error.c.
234 2001-12-12 Akim Demaille <akim@epita.fr>
236 Some hosts don't like `/' in includes.
238 * src/system.h: Include libgettext.h without qualifying the path.
239 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
242 2001-12-10 Akim Demaille <akim@epita.fr>
244 Bison dumps core on bash.y.
245 Reported by Pascal Bart.
247 * src/warshall.c (bitmatrix_print): New.
249 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
250 j must be the outer loop.
251 * tests/regression.at (Broken Closure): New.
253 2001-12-05 Akim Demaille <akim@epita.fr>
257 2001-12-05 Akim Demaille <akim@epita.fr>
259 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
261 Reported by Peter Hámorský.
263 2001-12-05 Akim Demaille <akim@epita.fr>
265 * src/conflicts.c (err_table): Remove.
266 (resolve_sr_conflict): Adjust.
267 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
269 (state_t.reductions, state_t.shifts): this.
271 2001-12-05 Akim Demaille <akim@epita.fr>
273 * src/reduce.c (reduce_grammar_tables): No longer disable the
274 removal of useless rules via CPP but via `if (0)', so that the
275 compiler still check the code is valid.
276 For instance, it should have noticed `rline' no longer exists: use
277 the `line' member of rule_t.
278 * src/gram.c (dummy, rline): Remove, unused.
280 2001-12-05 Akim Demaille <akim@epita.fr>
282 * src/output.c (pack_vector): Use assert, not berror.
283 * src/main.c (berror): Remove, unused.
285 2001-12-05 Akim Demaille <akim@epita.fr>
287 New experimental feature: if --verbose --trace output all the
288 items of a state, not only its kernel.
290 * src/print.c (print_core): If `trace_flag', then invoke closure
291 before outputting the items of the state (print_core is no longer
292 a correct name them).
293 (print_results): Invoke new_closure/free_closure if needed.
295 2001-12-05 Akim Demaille <akim@epita.fr>
297 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
298 * src/closure.c, src/closure.h (itemsetsize): Rename as...
299 (nitemset): for consistency with the rest of the project.
301 2001-12-05 Akim Demaille <akim@epita.fr>
303 * src/closure.c (print_closure): Improve.
304 (closure): Use it for printing input and output.
306 2001-12-05 Akim Demaille <akim@epita.fr>
308 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
309 indexed by nonterminals.
311 2001-12-05 Akim Demaille <akim@epita.fr>
313 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
315 * src/warshall.h: Remove accidental duplication of the content.
317 2001-12-05 Akim Demaille <akim@epita.fr>
319 * src/closure.c (set_fderives): De-obfuscate.
321 2001-12-05 Akim Demaille <akim@epita.fr>
323 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
325 2001-12-05 Akim Demaille <akim@epita.fr>
327 * src/closure.c (set_firsts): De-obfuscate.
329 2001-12-05 Akim Demaille <akim@epita.fr>
331 * src/output.c (action_row): De-obfuscate
332 using the good o' techniques: arrays not pointers, variable
333 locality, BITISSET, RESETBIT etc.
335 2001-12-05 Akim Demaille <akim@epita.fr>
337 Pessimize the code to simplify it: from now on, all the states
338 have a valid SHIFTS, which NSHIFTS is possibly 0.
340 * src/LR0.c (shifts_new): Be global and move to..
341 * src/state.c, src/state.h: here.
342 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
343 * src/print_graph: Adjust.
345 2001-12-05 Akim Demaille <akim@epita.fr>
347 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
348 * src/conflicts.c: Use it.
349 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
350 incorrectly ``simplified''.
352 2001-12-05 Akim Demaille <akim@epita.fr>
354 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
355 using the good o' techniques: arrays not pointers, variable
356 locality, BITISSET, RESETBIT etc.
358 2001-12-05 Akim Demaille <akim@epita.fr>
360 * src/state.h (SHIFT_SYMBOL): New.
361 * src/conflicts.c: Use it to deobfuscate.
363 2001-12-05 Akim Demaille <akim@epita.fr>
365 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
366 (print_reductions): De-obfuscate using the good o' techniques:
367 arrays not pointers, variable locality, BITISSET.
369 2001-12-05 Akim Demaille <akim@epita.fr>
371 * src/conflicts.c (print_reductions): Arrays, not pointers.
374 2001-12-05 Akim Demaille <akim@epita.fr>
376 * src/conflicts.c (print_reductions): Pessimize, but clarify.
378 2001-12-05 Akim Demaille <akim@epita.fr>
380 * src/conflicts.c (print_reductions): Improve variable locality.
382 2001-12-05 Akim Demaille <akim@epita.fr>
384 * src/conflicts.c (print_reductions): Pessimize, but clarify.
386 2001-12-05 Akim Demaille <akim@epita.fr>
388 * src/conflicts.c (print_reductions): Improve variable locality.
390 2001-12-05 Akim Demaille <akim@epita.fr>
392 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
393 * src/lalr.c: Use them.
395 2001-12-05 Akim Demaille <akim@epita.fr>
397 * src/LR0.c (augment_automaton): Formatting changes.
398 Better variable locality.
400 2001-12-05 Akim Demaille <akim@epita.fr>
402 * src/lalr.c (matrix_print): New.
404 Use arrays instead of pointers.
406 2001-12-05 Akim Demaille <akim@epita.fr>
408 * src/lalr.c (maxrhs): Move to...
409 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
410 * src/lalr.c (build_relations): Adjust.
412 2001-12-05 Akim Demaille <akim@epita.fr>
414 * src/lalr.c (transpose): Free the memory allocated to the
415 argument, as it is replaced by the results by the unique caller.
416 (build_relations): Merely invoke transpose: it handles the memory
418 Improve variable locality.
419 Avoid variables used as mere abbreviations.
420 (compute_lookaheads): Use arrays instead of pointers.
422 2001-12-05 Akim Demaille <akim@epita.fr>
424 * src/lalr.c (initialize_F): Improve variable locality.
425 Avoid variables used as mere abbreviations.
427 2001-12-05 Akim Demaille <akim@epita.fr>
429 * src/derives.c (print_derives): Display the ruleno.
430 * src/lalr.c (initialize_F, transpose): Better variable locality
431 to improve readability.
432 Avoid variables used as mere abbreviations.
434 2001-12-05 Akim Demaille <akim@epita.fr>
436 * src/lalr.c (traverse): Use arrays instead of pointers.
438 2001-12-05 Akim Demaille <akim@epita.fr>
440 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
441 the handling of squeue.
442 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
444 2001-12-05 Akim Demaille <akim@epita.fr>
446 Because useless nonterminals are now kept alive (instead of being
447 `destroyed'), we now sometimes examine them, and store information
448 related to them. Hence we need to know their number, and adjust
451 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
453 * src/LR0.c (allocate_itemsets): The memory allocated to
454 `symbol_count' was used for two different purpose: once to count
455 the number of occurrences of each symbol, and later reassigned to
456 `shift_symbol', containing the symbol that can be shifted from a
458 Deobfuscate, i.e., allocate, use and free `symbol_count' here
460 (new_itemsets): Allocate `shift_symbol' here.
461 (allocate_itemsets): symbol_count includes useless nonterminals.
463 (free_storage): Use `free', not `XFREE', for pointers that cannot
466 2001-12-05 Akim Demaille <akim@epita.fr>
468 * src/nullable.c (set_nullable): Deobfuscate the handling of
470 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
472 2001-12-05 Akim Demaille <akim@epita.fr>
474 * src/gram.c, src/gram.h (ritem_print): New.
475 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
476 (This useless function was defined only to work around VMS linkers
477 that can't handle compilation units with variables only).
478 * src/reduce.c (dump_grammar): Use it to trace the construction of
481 2001-12-04 Paul Eggert <eggert@twinsun.com>
483 * src/bison.simple (union yyalloc): Change member names
484 to be the same as the stack names.
485 (yyparse): yyptr is now union yyalloc *, not char *.
486 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
487 and may generate better code on some machines.
488 (yystpcpy): Use prototype if __STDC__ is defined, not just
489 if __cplusplus is defined.
491 2001-11-30 Akim Demaille <akim@epita.fr>
493 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
494 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
495 Gettext doesn't compile cleanly, and dies with -Werror.
496 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
497 Include WARNING_CFLAGS here.
498 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
499 before being defined.
501 2001-11-30 Paul Eggert <eggert@twinsun.com>
503 * lib/quotearg.h (quotearg_n, quotearg_n_style):
504 First arg is int, not unsigned.
505 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
506 (SIZE_MAX, UINT_MAX): New macros.
507 (quotearg_n_options): Abort if N is negative.
508 Avoid overflow check on hosts where size_t is 64 bits and int
509 is 32 bits, as overflow is impossible there.
510 Fix off-by-one typo that caused unnecessary reallocation.
512 2001-11-30 Paul Eggert <eggert@twinsun.com>
514 Name space cleanup in generated parser.
516 * doc/bison.texinfo (Bison Parser): Discuss system headers
517 and their effect on the user name space.
520 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
521 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
522 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
524 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
525 on user names when possible.
527 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
528 Simplify test for whather <alloca.h> exists.
530 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
532 (<stdio.h>): Include if YYDEBUG.
534 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
535 ! defined (yyoverflow) && ! defined (yymemcpy).
537 (yymemcpy, yyparse): Rename local variables as needed so that
538 they all begin with 'yy'.
540 (yystrlen, yystpcpy): New functions.
542 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
545 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
546 instead of relying on string.h functions. Use YYSTACK_ALLOC
547 and YYSTACK_FREE instead of malloc and free.
549 2001-11-30 Akim Demaille <akim@epita.fr>
551 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
552 if body instead of `;' to pacify GCC's warnings.
554 2001-11-30 Akim Demaille <akim@epita.fr>
556 Instead of mapping the LHS of unused rules to -1, keep the LHS
557 valid, but flag the rules as invalid.
559 * src/gram.h (rule_t): `useful' is a new member.
560 * src/print.c (print_grammar): Adjust.
561 * src/derives.c (set_derives): Likewise.
562 * src/reader.c (packgram, reduce_output): Likewise.
563 * src/reduce.c (reduce_grammar_tables): Likewise.
564 * tests/reduce.at (Underivable Rules, Useless Rules): New.
566 2001-11-30 Akim Demaille <akim@epita.fr>
568 * src/reduce.c (reduce_output): Formatting changes.
569 * src/print.c (print_results, print_grammar): Likewise.
570 * tests/regression.at (Rule Line Numbers)
571 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
573 2001-11-30 Akim Demaille <akim@epita.fr>
575 * src/reduce.c (nonterminals_reduce): Instead of throwing away
576 useless nonterminals, move them at the end of the symbol arrays.
577 (reduce_output): Adjust.
578 * tests/reduce.at (Useless Nonterminals): Adjust.
580 2001-11-30 Akim Demaille <akim@epita.fr>
582 * src/reduce.c: Various comment/formatting changes.
583 (nonterminals_reduce): New, extracted from...
584 (reduce_grammar_tables): here.
585 (reduce_grammar): Call nonterminals_reduce.
587 2001-11-29 Paul Eggert <eggert@twinsun.com>
589 * src/bison.simple (YYSTACK_REALLOC): Remove.
590 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
591 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
593 (union yyalloc): New type.
594 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
595 an arbitrary restriction on hosts where size_t is wider than int.
597 (yyparse): Don't dump core if alloca or malloc fails; instead, report
598 a parser stack overflow. Allocate just one block of memory for all
599 three stacks, instead of allocating three blocks; this typically is
600 faster and reduces fragmentation.
602 Do not limit the number of items in the stack to a value that fits
603 in 'int', as this is an arbitrary limit on hosts with 64-bit
604 size_t and 32-bit int.
606 2001-11-28 Akim Demaille <akim@epita.fr>
608 * src/LR0.c (shifts_new): New.
609 (save_shifts, insert_start_shift, augment_automaton): Use it.
611 2001-11-28 Akim Demaille <akim@epita.fr>
613 * src/closure.c (closure): `b' and `ruleno' denote the same value:
616 2001-11-28 Akim Demaille <akim@epita.fr>
618 * src/closure.c (closure): Instead of looping over word in array
619 then bits in words, loop over bits in array.
621 2001-11-28 Akim Demaille <akim@epita.fr>
623 * src/closure.c (closure): No longer optimize the special case
624 where all the bits of `ruleset[r]' are set to 0, to make the code
627 2001-11-28 Akim Demaille <akim@epita.fr>
629 * src/closure.c (closure): `r' and `c' are new variables, used to
630 de-obfuscate accesses to RULESET and CORE.
632 2001-11-28 Akim Demaille <akim@epita.fr>
634 * src/reduce.c (reduce_print): Use ngettext.
635 (dump_grammar): Improve the trace accuracy.
637 2001-11-28 Akim Demaille <akim@epita.fr>
639 * src/reduce.c (dump_grammar): Don't translate trace messages.
641 2001-11-28 Akim Demaille <akim@epita.fr>
643 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
644 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
645 as all tags are free'ed afterwards.
648 2001-11-27 Akim Demaille <akim@epita.fr>
650 * src/system.h: Use intl/libgettext.h.
651 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
653 2001-11-27 Paul Eggert <eggert@twinsun.com>
655 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
656 use alloca when we didn't want to, and vice versa.
658 2001-11-27 Akim Demaille <akim@epita.fr>
660 * tests/torture.at (Exploding the Stack Size with Malloc):
661 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
663 2001-11-27 Akim Demaille <akim@epita.fr>
665 * src/files.c: Include error.h.
668 2001-11-26 Akim Demaille <akim@epita.fr>
672 2001-11-26 Akim Demaille <akim@epita.fr>
674 * src/reader.c (readgram): Make sure rules for mid-rule actions
675 have a lineno equal to that of their host rule.
676 Reported by Hans Aberg.
677 * tests/regression.at (Rule Line Numbers): New.
679 2001-11-26 Akim Demaille <akim@epita.fr>
681 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
683 Reported by Hans Aberg.
685 2001-11-26 Akim Demaille <akim@epita.fr>
687 * src/complain.c, src/complain.h (error): Remove, provided by
690 2001-11-26 Akim Demaille <akim@epita.fr>
692 * src/reader.c (read_declarations): Don't abort on tok_illegal,
693 issue an error message.
694 * tests/regression.at (Invalid %directive): New.
695 Reported by Hans Aberg.
697 2001-11-26 Akim Demaille <akim@epita.fr>
699 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
700 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
702 2001-11-26 Akim Demaille <akim@epita.fr>
704 * src/conflicts.c (conflicts_print): Don't complain at all when
705 there are no reduce/reduce conflicts, and as many shift/reduce
706 conflicts as expected.
707 * tests/regression.at (%expect right): Adjust.
709 2001-11-23 Akim Demaille <akim@epita.fr>
711 * lib/alloca.c: Update, from fileutils.
713 2001-11-23 Akim Demaille <akim@epita.fr>
715 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
717 2001-11-23 Akim Demaille <akim@epita.fr>
719 * src/system.h: Include alloca.h.
720 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
722 2001-11-23 Akim Demaille <akim@epita.fr>
724 * src/print_graph.c (print_actions): Remove `rule', unused.
725 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
726 pacify GCC's signed < unsigned warnings.
727 * src/closure.c (itemsetsize): Likewise.
728 * src/reader.c (symbol_list_new): Static.
730 2001-11-23 Akim Demaille <akim@epita.fr>
732 Attaching lineno to buckets is stupid, since only one copy of each
733 symbol is kept, only the line of the first occurrence is kept too.
735 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
736 * src/reader.c (rline_allocated): Remove, unused.
737 (symbol_list): Have a `line' member.
738 (symbol_list_new): New.
740 * src/print.c (print_grammar): Output the rule line numbers.
741 * tests/regression.at (Solved SR Conflicts)
742 (Unresolved SR Conflicts): Adjust.
743 Reported by Hans Aberg.
745 2001-11-20 Akim Demaille <akim@epita.fr>
749 2001-11-20 Akim Demaille <akim@epita.fr>
752 * configure.in (ALL_LINGUAS): Adjust.
753 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
754 longer contains strings to translate.
756 2001-11-19 Akim Demaille <akim@epita.fr>
758 * src/conflicts.c (conflicts_print): Add a missing \n.
760 2001-11-19 Akim Demaille <akim@epita.fr>
762 * src/nullable.c (nullable_print): New.
763 (set_nullable): Call it when tracing.
764 Better locality of variables.
766 2001-11-19 Akim Demaille <akim@epita.fr>
768 * src/print.c (print_actions): Better locality of variables.
770 2001-11-19 Akim Demaille <akim@epita.fr>
772 * src/derives.c (print_derives): Fix and enrich.
773 * src/closure.c (print_fderives): Likewise.
775 2001-11-19 Akim Demaille <akim@epita.fr>
777 * src/closure.c (itemsetend): Remove, replaced with...
780 2001-11-19 Akim Demaille <akim@epita.fr>
782 * src/LR0.c (kernel_end): Remove, replaced with...
785 2001-11-19 Akim Demaille <akim@epita.fr>
787 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
790 2001-11-19 Akim Demaille <akim@epita.fr>
792 * src/closure.c (closure): Use arrays instead of pointers to clarify.
794 2001-11-19 Akim Demaille <akim@epita.fr>
796 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
798 * src/LR0.c: Likewise.
799 (allocate_itemsets): Use arrays instead of pointers to clarify.
801 2001-11-19 Akim Demaille <akim@epita.fr>
803 * src/getargs.c (statistics_flag): Replace with...
805 (longopts): Accept --trace instead of --statistics.
806 * src/getargs.h: Adjust.
807 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
808 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
810 2001-11-19 Akim Demaille <akim@epita.fr>
812 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
813 pointers to clarify the code.
814 (save_reductions, save_shifts): Factor common parts of alternatives.
816 2001-11-19 Akim Demaille <akim@epita.fr>
818 * src/LR0.c (new_state, get_state): Complete TRACE code.
819 * src/closure.c: Include `reader.h' to get `tags', needed by the
821 Rename the conditional DEBUG as TRACE.
822 Output consistently TRACEs to stderr, not stdout.
823 * src/derives.c: Likewise.
824 * src/reduce.c: (inaccessable_symbols): Using if is better style
826 Use `#if TRACE' instead of `#if 0' for tracing code.
828 2001-11-19 Akim Demaille <akim@epita.fr>
830 * src/system.h (LIST_FREE, shortcpy): New.
831 * src/LR0.c: Use them.
832 * src/output.c (free_itemsets, free_reductions, free_shifts):
833 Remove, replaced by LIST_FREE.
835 2001-11-19 Akim Demaille <akim@epita.fr>
837 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
838 (REDUCTIONS_ALLOC): New.
839 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
842 2001-11-19 Akim Demaille <akim@epita.fr>
844 * src/LR0.c (new_state): Complete trace code.
845 * src/nullable.c (set_nullable): Don't translate traces.
847 2001-11-19 Akim Demaille <akim@epita.fr>
849 * src/print_graph.c (print_core): Better locality of variables.
850 * src/print.c (print_core): Likewise.
852 2001-11-19 Akim Demaille <akim@epita.fr>
854 * src/vcg.c: You do the output, so you are responsible of the
855 handling of VCG syntax, in particular: use quotearg.
856 * src/print_graph.c: Don't.
857 (print_actions): Don't output the actions as part of the nodes,
858 since that's the job of the edges.
859 (print_state): Don't output by hand: fill the node description,
860 and ask for its output.
862 2001-11-19 Akim Demaille <akim@epita.fr>
864 * src/bison.simple (yyparse): When verbosely reporting an error,
865 no longer put additional quotes around token names.
866 * tests/calc.at: Adjust.
868 2001-11-19 Akim Demaille <akim@epita.fr>
870 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
871 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
872 * src/output.c: Adjust.
874 2001-11-19 Akim Demaille <akim@epita.fr>
876 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
878 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
880 2001-11-19 Akim Demaille <akim@epita.fr>
882 * src/gram.h (rule_t): New.
884 (rrhs, rlhs): Remove, part of state_t.
885 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
886 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
887 * src/reader.c, src/reduce.c: Adjust.
889 2001-11-19 Akim Demaille <akim@epita.fr>
891 * src/reader.c (symbols_output): New, extracted from...
895 2001-11-19 Akim Demaille <akim@epita.fr>
897 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
898 (maxrhs): this new function.
900 2001-11-19 Akim Demaille <akim@epita.fr>
902 * src/lalr.c (F): New macro to access the variable F.
905 2001-11-19 Akim Demaille <akim@epita.fr>
907 * src/lalr.h (LA): New macro to access the variable LA.
908 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
909 * src/lalr.c: Adjust.
911 2001-11-19 Akim Demaille <akim@epita.fr>
913 * src/lalr.c (initialize_LA): Only initialize LA. Let...
914 (set_state_table): handle the `lookaheads' members.
916 2001-11-19 Akim Demaille <akim@epita.fr>
918 * src/lalr.h (lookaheads): Removed array, whose contents is now
920 (state_t): this structure.
921 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
924 2001-11-19 Akim Demaille <akim@epita.fr>
926 * src/lalr.h (consistent): Removed array, whose contents is now
928 (state_t): this structure.
929 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
932 2001-11-19 Akim Demaille <akim@epita.fr>
934 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
935 contents are now members of...
936 (state_t): this structure.
937 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
940 2001-11-19 Akim Demaille <akim@epita.fr>
942 * src/lalr.h (state_t): New.
943 (state_table): Be a state_t * instead of a core **.
944 (accessing_symbol): Remove, part of state_t.
945 * src/lalr.c: Adjust.
946 (set_accessing_symbol): Merge into...
947 (set_state_table): this.
948 * src/print_graph.c, src/conflicts.c: Adjust.
950 2001-11-14 Akim Demaille <akim@epita.fr>
954 2001-11-14 Akim Demaille <akim@epita.fr>
956 * tests/calc.at, tests/output.at, tests/regression.at,
957 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
958 now the tests are run in private dirs, therefore AC_CLEANUP and
959 family can be simplified to 0-ary.
960 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
961 use abs. path to find config.h.
963 2001-11-14 Akim Demaille <akim@epita.fr>
965 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
966 stderr, there can be way too much random noise.
967 Instead pass -Werror to GCC and rely on the exit status.
968 Reported by Wolfram Wagner.
970 2001-11-14 Akim Demaille <akim@epita.fr>
972 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
973 defined only if yyoverflow is defined, to avoid `warning: unused
975 Reported by The Test Suite.
977 2001-11-14 Akim Demaille <akim@epita.fr>
979 * src/print.c: Include reduce.h.
980 Reported by Hans Aberg.
982 2001-11-14 Akim Demaille <akim@epita.fr>
984 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
985 Revert a previous patch: these are really const.
986 * src/conflicts.c (conflict_report): Additional useless pair of
987 braces to pacify GCC's warnings for `if () if () {} else {}'.
988 * src/lex.c (parse_percent_token): Replace equal_offset with
991 Be sure to strdup `arg' when used, since there is no reason for
992 token_buffer not to change.
994 2001-11-14 Akim Demaille <akim@epita.fr>
996 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
998 * src/main.c (main): Use them.
999 Suggested by Hans Aberg.
1001 2001-11-12 Akim Demaille <akim@epita.fr>
1005 * src/system.h (ngettext): Now that we use ngettext, be sure to
1006 provide a default definition when NLS are not used that takes care
1009 2001-11-12 Akim Demaille <akim@epita.fr>
1011 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
1012 Use @kbd to denote user input.
1013 (Language and Grammar): ANSIfy the example.
1014 Adjust its layout for info/notinfo.
1015 (Location Tracking Calc): Output error messages to stderr.
1016 Output locations in a more GNUtically correct way.
1017 Fix a couple of Englishos.
1018 Adjust @group/@end group pairs.
1020 2001-11-12 Akim Demaille <akim@epita.fr>
1022 %expext was not functioning at all.
1024 * src/conflicts.c (expected_conflicts): Set to -1.
1025 (conflict_report): Use ngettext.
1026 (conflicts_print): Check %expect and make its violation an error.
1027 * doc/bison.texinfo (Expect Decl): Adjust.
1028 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
1029 * tests/regression.at (%expect not enough, %expect right)
1030 (%expect too much): New.
1032 2001-11-12 Akim Demaille <akim@epita.fr>
1034 * tests/regression.at (Conflicts): Rename as...
1035 (Unresolved SR Conflicts): this.
1036 (Solved SR Conflicts): New.
1038 2001-11-12 Akim Demaille <akim@epita.fr>
1040 * src/reduce.c (print_results): Rename as...
1041 (reduce_output): This.
1042 Output to OUT, passed as argument, instead of output_obstack.
1043 (dump_grammar): Likewise.
1046 (reduce_grammar): No longer call reduce_output, since...
1047 * src/print.c (print_results): do it.
1048 * src/main.c (main): Call reduce_free;
1050 2001-11-12 Akim Demaille <akim@epita.fr>
1052 * src/conflicts.c (print_reductions): Accept OUT as argument.
1053 Output to it, not to output_obstack.
1054 * src/print.c (print_actions): Adjust.
1056 2001-11-12 Akim Demaille <akim@epita.fr>
1058 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
1059 the result instead of using...
1060 (src_total, rrc_total, src_count, rrc_count): Remove.
1061 (any_conflicts): Remove.
1062 (print_conflicts): Split into...
1063 (conflicts_print, conflicts_output): New.
1064 * src/conflicts.h: Adjust.
1065 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
1066 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
1067 * tests/regression.at (Conflicts): New.
1068 Reported by Tom Lane.
1070 2001-11-12 Akim Demaille <akim@epita.fr>
1072 * tests/regression.at (Invalid input): Remove, duplicate with
1073 ``Invalid input: 1''.
1075 2001-11-12 Akim Demaille <akim@epita.fr>
1077 * tests/torture.at (AT_DATA_STACK_TORTURE)
1078 (Exploding the Stack Size with Alloca)
1079 (Exploding the Stack Size with Malloc): New.
1081 2001-11-12 Akim Demaille <akim@epita.fr>
1083 * src/bison.simple (YYSTACK_REALLOC): New.
1084 (yyparse) [!yyoverflow]: Use it and free the old stack.
1085 Reported by Per Allansson.
1087 2001-11-05 Akim Demaille <akim@epita.fr>
1090 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1092 2001-11-05 Akim Demaille <akim@epita.fr>
1094 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1097 2001-11-05 Akim Demaille <akim@epita.fr>
1099 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1100 with yyltype/YYLTYPE. This allows inclusion of the generated
1101 header within the parser if the compiler, such as GGC, accepts
1102 multiple equivalent #defines.
1104 2001-11-04 Akim Demaille <akim@epita.fr>
1106 * src/getargs.c (longopts): Support `--output'. getopt is now
1107 able to understand that `--out' is OK: the two racing long options
1110 * src/lex.h (tok_setopt): Remove, replaced with...
1111 (tok_intopt, tok_stropt): these new guys.
1112 * src/lex.c (getopt.h): Not needed.
1113 (token_buffer, unlexed_token_buffer): Not const.
1114 (percent_table): Promote `-' over `_' in directive names.
1115 Active `%name-prefix', `file-prefix', and `output'.
1116 (parse_percent_token): Accept possible arguments to directives.
1117 Promote `-' over `_' in directive names.
1118 * doc/bison.texinfo (Decl Summary): Split the list into
1119 `directives for grammars' and `directives for bison'.
1121 Add description of `%name-prefix', `file-prefix', and `output'.
1122 Promote `-' over `_' in directive names.
1123 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1124 Simplify the description of `--name-prefix'.
1125 Promote `-' over `_' in directive names.
1126 Promote `--output' over `--output-file'.
1127 Fix the description of `--defines'.
1128 * tests/output.at: Exercise %file-prefix and %output.
1130 2001-11-02 Akim Demaille <akim@epita.fr>
1132 * doc/refcard.tex: Update.
1134 2001-11-02 Akim Demaille <akim@epita.fr>
1136 * src/symtab.h (SUNDEF): New.
1137 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1138 stand for `uninitialized', instead of 0.
1139 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1140 * src/lex.c (lex): Adjust.
1142 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1144 Let yylex return it instead of a plain 0.
1145 Reported by Dick Streefland.
1147 2001-11-02 Akim Demaille <akim@epita.fr>
1149 * tests/regression.at (Mixing %token styles): New test.
1151 2001-11-02 Akim Demaille <akim@epita.fr>
1153 * src/reader.c (parse_thong_decl): Formatting changes.
1154 (token_translations_init): New, extracted from...
1155 (packsymbols): Here.
1158 2001-11-01 Akim Demaille <akim@epita.fr>
1160 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1161 Check that `9foo.y' produces correct cpp guards.
1162 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1166 2001-11-01 Akim Demaille <akim@epita.fr>
1168 * tests/regression.at (Invalid input: 2): New.
1169 * src/lex.c (unlexed_token_buffer): New.
1170 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1174 2001-11-01 Akim Demaille <akim@epita.fr>
1176 * configure.in: Bump to 1.30a.
1177 Adjust to newer Autotest.
1179 2001-10-26 Akim Demaille <akim@epita.fr>
1183 2001-10-26 Paul Eggert <eggert@twinsun.com>
1185 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
1186 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
1187 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
1188 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
1189 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
1190 Sync with fileutils 4.1.1.
1192 2001-10-18 Akim Demaille <akim@epita.fr>
1195 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1196 avoid spurious failures.
1198 2001-10-18 Akim Demaille <akim@epita.fr>
1202 2001-10-18 Akim Demaille <akim@epita.fr>
1204 * tests/atlocal.in (GCC): Add.
1205 * tests/calc.at: s/m4_match/m4_bmatch/.
1206 s/m4_patsubst/m4_bpatsubst/.
1207 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1208 * configure.in: AC_SUBST(GCC).
1210 2001-10-10 Akim Demaille <akim@epita.fr>
1213 * configure.in: M4 is no longer needed, but autom4te is.
1214 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1217 2001-10-10 Akim Demaille <akim@epita.fr>
1221 2001-10-10 Akim Demaille <akim@epita.fr>
1224 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1225 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1226 Reported by Airy Andre.
1228 2001-10-10 Akim Demaille <akim@epita.fr>
1230 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1231 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1233 2001-10-02 Akim Demaille <akim@epita.fr>
1237 2001-10-02 Akim Demaille <akim@epita.fr>
1241 2001-10-02 Akim Demaille <akim@epita.fr>
1243 * tests/regression.at (Invalid CPP headers): New.
1244 From Alexander Belopolsky.
1245 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1247 2001-10-02 Akim Demaille <akim@epita.fr>
1249 * tests/regression.at (Invalid input): New.
1250 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1253 2001-10-02 Akim Demaille <akim@epita.fr>
1255 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1257 2001-10-02 Akim Demaille <akim@epita.fr>
1259 * src/output.c (output_parser): Assert `skeleton'.
1260 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1264 2001-10-01 Marc Autret <autret_m@epita.fr>
1266 * src/lex.h: Echo modifications.
1267 * src/lex.c (unlex): Parameter is now token_t.
1270 2001-10-01 Marc Autret <autret_m@epita.fr>
1272 * src/main.c: Include lex.h.
1275 2001-09-29 Akim Demaille <akim@epita.fr>
1277 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1279 2001-09-28 Akim Demaille <akim@epita.fr>
1281 * tests/testsuite.at: Update to newer Autotest.
1282 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1284 2001-09-27 Akim Demaille <akim@epita.fr>
1286 Position independent wrapper.
1288 * tests/bison: Remove.
1289 * tests/bison.in: New.
1290 * configure.in: Adjust.
1292 2001-09-27 Paul Eggert <eggert@twinsun.com>
1294 Port quotearg fixes from tar 1.13.24.
1296 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1298 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1299 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1301 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1302 * m4/mbrtowc.m4: New file.
1303 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1304 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1306 2001-09-27 Akim Demaille <akim@epita.fr>
1310 2001-09-27 Akim Demaille <akim@epita.fr>
1314 2001-09-25 Akim Demaille <akim@epita.fr>
1316 * src/system.h: Include `xalloc.h'.
1317 Remove it from the C files.
1318 * src/files.c (output_files): Free the obstacks.
1319 * src/lex.c (init_lex): Rename as...
1322 * src/main.c (main): Use it.
1324 2001-09-24 Marc Autret <autret_m@epita.fr>
1326 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1327 to output informations in fout (FILE*).
1328 (open_graph, close_graph): Likewise.
1329 (output_graph, output_edge, output_node): Likewise.
1330 * src/vcg.h: Update function prototypes.
1331 * src/print_graph.c (print_graph): Open output graph file.
1332 (print_actions): Adjust.
1333 * src/files.h: Remove extern declaration.
1334 * src/files.c: Remove graph_obstack declaration.
1335 (open_files): Remove graph_obstack initialization.
1336 (output_files): Remove graph_obstack saving.
1338 2001-09-24 Marc Autret <autret_m@epita.fr>
1340 * src/files.c (compute_output_file_names): Fix.
1342 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1344 * src/reader.c (reader): Remove call to free_symtab ().
1345 * src/main.c (main): Call it here.
1347 * src/conflicts.c (initialize_conflicts): Rename as...
1348 (solve_conflicts): this.
1349 * src/print.c (print_core, print_actions, print_state)
1350 (print_grammar): Dump to a file instead a `output_obstack'.
1351 (print_results): Dump `output_obstack', and then proceed with the
1353 * src/files.c (compute_output_file_names, close_files): New.
1354 (output_files): Adjust.
1355 * src/main.c (main): Adjust.
1357 2001-09-23 Marc Autret <autret_m@epita.fr>
1359 * src/files.c (compute_header_macro): Computes header macro name
1360 from spec_defines_file when given.
1362 2001-09-23 Marc Autret <autret_m@epita.fr>
1364 * src/files.c (output_files): Add default extensions.
1366 2001-09-22 Akim Demaille <akim@epita.fr>
1368 * src/conflicts.c (finalize_conflicts): Rename as...
1369 (free_conflicts): this.
1371 2001-09-22 Akim Demaille <akim@epita.fr>
1373 * src/gram.c (gram_free): Rename back as...
1375 (output_token_translations): Free `token_translations'.
1376 * src/symtab.c (free_symtab): Free the tag field.
1378 2001-09-22 Akim Demaille <akim@epita.fr>
1380 Remove `translations' as it is always set to true.
1382 * src/gram.h: Adjust.
1383 * src/reader.c (packsymbols, parse_token_decl): Adjust
1384 * src/print.c (print_grammar): Adjust.
1385 * src/output.c (output_token_translations): Adjust.
1386 * src/lex.c (lex): Adjust.
1387 * src/gram.c: Be sure the set pointers to NULL.
1388 (dummy): Rename as...
1391 2001-09-22 Akim Demaille <akim@epita.fr>
1393 * configure.in: Invoke AM_LIB_DMALLOC.
1394 * src/system.h: Use dmalloc.
1395 * src/LR0.c: Be sure to have pointers initialized to NULL.
1396 (allocate_itemsets): Allocate kernel_items only if needed.
1398 2001-09-22 Akim Demaille <akim@epita.fr>
1400 * configure.in: Bump to 1.29b.
1401 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1402 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1403 need xmalloc.c in calc.y.
1406 2001-09-21 Akim Demaille <akim@epita.fr>
1409 * Makefile.maint, config/config.guess, config/config.sub,
1410 * config/missing: Update from masters.
1411 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1413 * configure.in (ALL_LINGUAS): Add `tr'.
1415 2001-09-21 Akim Demaille <akim@epita.fr>
1417 * tests/Makefile.am (package.m4): Move to...
1418 ($(srcdir)/$(TESTSUITE)): here.
1420 2001-09-20 Akim Demaille <akim@epita.fr>
1422 * src/complain.c: No longer try to be standalone: use system.h.
1423 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1424 * src/complain.h: Likewise.
1425 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1426 Remove the unused variable `n'.
1427 From Albert Chin-A-Young.
1429 2001-09-18 Marc Autret <autret_m@epita.fr>
1431 * doc/bison.1: Update.
1432 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1434 (Option Cross Key): Update.
1437 2001-09-18 Marc Autret <autret_m@epita.fr>
1439 * tests/regression.at: New test (comment in %union).
1441 2001-09-18 Marc Autret <autret_m@epita.fr>
1443 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1445 Reported by Keith Browne.
1447 2001-09-18 Marc Autret <autret_m@epita.fr>
1449 * tests/output.at: Add tests for --defines and --graph.
1451 2001-09-18 Marc Autret <autret_m@epita.fr>
1453 * tests/output.at: Removes tests of %{header,src}_extension features.
1455 2001-09-18 Akim Demaille <akim@epita.fr>
1457 * tests/Makefile.am (package.m4): New.
1458 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1459 (_AT_CHECK_CALC_ERROR): Likewise.
1460 Factor the `, ' part of verbose error messages.
1462 2001-09-18 Marc Autret <autret_m@epita.fr>
1464 * src/getargs.c (longopts): Declare --defines and --graph as options
1465 with optional arguments.
1466 * src/files.h: Add extern declarations.
1467 * src/files.c (spec_graph_file, spec_defines_file): New.
1468 (output_files): Update.
1469 Remove CPP-outed code.
1471 2001-09-18 Marc Autret <autret_m@epita.fr>
1473 Turn off %{source,header}_extension feature.
1475 * src/files.c (compute_exts_from_gf): Update.
1476 (compute_exts_from_src): Update.
1477 (output_files): CPP-out useless code.
1478 * src/files.h: Remove {header,source}_extension extern declarations.
1479 * src/reader.c (parse_dquoted_param): CPP-out.
1480 (parse_header_extension_decl): Remove.
1481 (parse_source_extension_decl): Remove.
1482 (read_declarations): Remove cases tok_{hdrext,srcext}.
1483 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1484 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1486 2001-09-10 Akim Demaille <akim@epita.fr>
1488 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1489 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1490 (AT_CHECK_OUTPUT): this.
1491 Merely check ls' exit status, its output is useless.
1493 2001-09-10 Akim Demaille <akim@epita.fr>
1495 * tests/calc.at: Use m4_match.
1496 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1498 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1500 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1502 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1504 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1505 * src/lex.h: Adjust prototype.
1506 (token_t): Add `tok_undef'.
1507 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1508 (parse_percent_token): Now returns token_t.
1509 Add default statement in switch.
1510 (lex): Separate `c' as an input variable, from the token_t result
1512 (unlexed): Is a token_t.
1514 2001-09-10 Akim Demaille <akim@epita.fr>
1516 * configure.in: Bump to 1.29a.
1518 2001-09-07 Akim Demaille <akim@epita.fr>
1522 2001-08-30 Akim Demaille <akim@epita.fr>
1524 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1525 * m4/atconfig.m4: Remove.
1526 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1528 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1529 m4_if, m4_patsubst, and m4_regexp.
1530 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1531 `input' file instead of echo.
1533 2001-08-29 Akim Demaille <akim@epita.fr>
1537 2001-08-29 Akim Demaille <akim@epita.fr>
1541 2001-08-29 Paul Eggert <eggert@twinsun.com>
1543 * src/bison.simple (yyparse): Don't take the address of an
1544 item before the start of an array, as that doesn't conform to
1547 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1549 * doc/bison.texinfo (Location Tracking Calc): New node.
1551 2001-08-29 Paul Eggert <eggert@twinsun.com>
1553 * src/output.c (output): Do not define const, as this now
1554 causes more problems than it cures.
1556 2001-08-29 Akim Demaille <akim@epita.fr>
1558 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1560 Be sure to tag the `detailmenu'.
1562 2001-08-29 Akim Demaille <akim@epita.fr>
1564 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1565 download in a tmp dir.
1567 2001-08-28 Marc Autret <autret_m@epita.fr>
1569 * config/depcomp: New file.
1571 2001-08-28 Marc Autret <autret_m@epita.fr>
1573 * doc/bison.1 (mandoc): Adjust.
1574 From Juan Manuel Guerrero.
1576 2001-08-28 Marc Autret <autret_m@epita.fr>
1578 * src/print_graph.c (print_state): Fix.
1580 2001-08-27 Marc Autret <autret_m@epita.fr>
1582 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1584 Echo modifications to the functions prototypes.
1585 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1587 2001-08-27 Marc Autret <autret_m@epita.fr>
1589 * src/vcg.c: Include `xalloc.h'.
1590 (add_colorentry): New.
1591 (add_classname): New.
1592 (add_infoname): New.
1593 * src/vcg.h: Add new prototypes.
1595 2001-08-27 Akim Demaille <akim@epita.fr>
1597 * Makefile.maint: Sync. again with CVS Autoconf.
1599 2001-08-27 Akim Demaille <akim@epita.fr>
1601 * Makefile.maint: Formatting changes.
1602 (po-update, cvs-update, update): New targets.
1605 2001-08-27 Akim Demaille <akim@epita.fr>
1607 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1608 * Makefile.maint: Sync. with CVS Autoconf.
1610 2001-08-27 Marc Autret <autret_m@epita.fr>
1612 * src/vcg.h (struct infoname_s): New.
1613 (struct colorentry_s): New.
1614 (graph_s): New fields {vertical,horizontal}_order in structure.
1615 Add `infoname' field.
1616 Add `colorentry' field;
1617 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1618 (G_HORIZONTAL_ORDER): New.
1620 (G_COLORENTRY): New.
1621 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1622 Add output of `infoname'.
1623 Add output of `colorentry'.
1625 2001-08-27 Marc Autret <autret_m@epita.fr>
1627 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1628 This one shadowed a global parameter.
1630 2001-08-24 Marc Autret <autret_m@epita.fr>
1632 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1633 instead of `unsigned'.
1634 (print_state): Do not call obstack_object_size () in obstack_grow ()
1635 to avoid macro variables shadowing.
1637 2001-08-23 Marc Autret <autret_m@epita.fr>
1639 * src/lex.c (percent_table): Typo: s/naem/name/.
1641 Normalize new options declarations.
1643 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1645 * tests/suite.at: Exercise %header_extension and %source_extension.
1647 2001-08-16 Marc Autret <autret_m@epita.fr>
1649 * src/reader.c (parse_dquoted_param): New.
1650 (parse_header_extension_decl): Use it.
1651 (parse_source_extension_decl): Likewise.
1653 2001-08-16 Marc Autret <autret_m@epita.fr>
1655 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1656 (get_xxxx_str): Use assert () instead of complain ().
1657 Remove return invokations in default cases.
1658 (get_decision_str): Modify default behaviour. Remove second argument.
1659 Echo modifications on calls.
1660 (output_graph): Fix.
1662 2001-08-16 Marc Autret <autret_m@epita.fr>
1664 * src/getargs.c (usage): Update with ``-g, --graph''.
1666 2001-08-16 Marc Autret <autret_m@epita.fr>
1668 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1669 (Option Cross Key): Likewise.
1670 * doc/bison.1: Update.
1672 2001-08-15 Akim Demaille <akim@epita.fr>
1676 2001-08-15 Marc Autret <autret_m@epita.fr>
1678 * src/reader.c (readgram): Indent output macro YYSTYPE.
1679 (packsymbols): Likewise.
1680 (output_token_defines): Likewise.
1681 * src/files.c: Standardize.
1682 (compute_header_macro): New.
1683 (defines_obstack_save): New. Use compute_header_macro.
1684 (output_files): Update. Use defines_obstack_save.
1686 2001-08-15 Akim Demaille <akim@epita.fr>
1688 * doc/bison.texinfo (Table of Symbols): Document
1691 2001-08-15 Akim Demaille <akim@epita.fr>
1693 * missing: Update from CVS Automake.
1694 * config/config.guess, config/config.sub, config/texinfo.tex:
1695 Update from gnu.org.
1697 2001-08-15 Akim Demaille <akim@epita.fr>
1699 * Makefile.maint: Sync with CVS Autoconf.
1701 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1703 * doc/bison.texinfo: Include GNU Free Documentation License from
1705 * doc/fdl.texi: Add to package.
1707 2001-08-14 Marc Autret <autret_m@epita.fr>
1709 Turn on %{source,header}_extension features.
1711 * src/lex.c (percent_table): Un-CPP out header_extension and
1713 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1714 (compute_exts_from_src): Remove conditions. It restores priorities
1717 2001-08-14 Marc Autret <autret_m@epita.fr>
1719 * src/files.c (compute_base_names): Add extensions computing when
1720 `--file-prefix' used.
1721 Standardize function calls.
1723 2001-08-13 Marc Autret <autret_m@epita.fr>
1725 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1726 defining it (defined but null disables alloca).
1728 2001-08-13 Marc Autret <autret_m@epita.fr>
1730 * src/bison.simple (_yy_memcpy): CPP reformat.
1732 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1734 * tests/atconfig.in (CPPFLAGS): Fix.
1736 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1738 * doc/bison.texinfo: Include GNU General Public License from
1740 * doc/gpl.texi: Add to package.
1742 2001-08-10 Marc Autret <autret_m@epita.fr>
1744 * src/print_graph.h: Fix.
1745 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1747 2001-08-10 Akim Demaille <akim@epita.fr>
1749 * src/system.h: Provide default declarations for stpcpy, strndup,
1752 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1754 * doc/bison.texinfo (Locations): Update @$ stuff.
1756 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1758 * src/bison.simple (YYLLOC_DEFAULT): Update.
1761 2001-08-08 Marc Autret <autret_m@epita.fr>
1763 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1764 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1765 Reported by Fabrice Bauzac.
1767 2001-08-08 Marc Autret <autret_m@epita.fr>
1769 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1770 * src/vcg.c (output_node): Fix.
1771 * src/vcg.h: Cleanup.
1772 * src/print_graph.c: Add comments.
1773 (node_output_size): New global variable. Simplify the formatting of
1774 the VCG graph output.
1775 (print_actions): Unused code is now used. It notifies the final state
1776 and no action states in the VCG graph. It also give the reduce actions.
1777 The `shift and goto' edges are red and the `go to state' edges are
1779 Get the current node name and node_obstack by argument.
1780 (node_obstack): New variable.
1781 (print_state): Manage node_obstack.
1782 (print_core): Use node_obstack given by argument.
1783 A node is not only computed here but in print_actions also.
1784 (print_graph): CPP out useless code instead of commenting it.
1786 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1788 * tests/atconfig.in (CPPFLAGS): Fix.
1790 2001-08-07 Akim Demaille <akim@epita.fr>
1792 * src/print_graph.c (quote): New.
1793 (print_core): Use it.
1795 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1797 * src/vcg.c (complain.h): Include it.
1798 Unepitaize `return' invocations.
1799 [NDEBUG] (main): Remove.
1800 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1801 * src/files.c (open_files): Initialize graph_obstack.
1802 * src/print_graph.c (print_actions): CPP out useless code.
1803 (print_core): Don't output the last `\n' in labels.
1805 * src/files.c (output_files): Output the VCG file.
1806 * src/main.c (main): Invoke print_graph ();
1808 2001-08-06 Marc Autret <autret_m@epita.fr>
1810 Automaton VCG graph output.
1811 Using option ``-g'' or long option ``--graph'', you can generate
1812 a gram_filename.vcg file containing a VCG description of the LALR (1)
1813 automaton of your grammar.
1815 * src/main.c: Call to print_graph() function.
1816 * src/getargs.h: Update.
1817 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1818 (graph_flag): New flag.
1820 (getargs): Add case `g'.
1821 * src/files.c (graph_obstack): New obstack struct.
1822 (open_files): Initialize new obstack.
1823 (output_files): Saves graph_obstack if required.
1824 * src/files.h (graph_obstack): New extern declaration.
1825 * src/Makefile.am: Add new source files.
1827 2001-08-06 Marc Autret <autret_m@epita.fr>
1829 * src/print_graph.c, src/print_graph.h (graph): New.
1830 * src/vcg.h: New file.
1831 * src/vcg.c: New file, VCG graph handling.
1833 2001-08-06 Marc Autret <autret_m@epita.fr>
1835 Add of %source_extension and %header_extension which specify
1836 the source or/and the header output file extension.
1838 * src/files.c (compute_base_names): Remove initialisation of
1839 src_extension and header_extension.
1840 (compute_exts_from_gf): Update.
1841 (compute_exts_from_src): Update.
1842 (output_files): Update.
1843 * src/reader.c (parse_header_extension_decl): New.
1844 (parse_source_extension_decl): New.
1845 (read_declarations): New case statements for the new tokens.
1846 * src/lex.c (percent_table): Add entries for %source_extension
1847 and %header_extension.
1848 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1850 2001-08-06 Marc Autret <autret_m@epita.fr>
1852 * configure.in: Bump to 1.28c.
1853 * doc/bison.texinfo: Texinfo thingies.
1855 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1857 * tests/atconfig.in (CPPFLAGS): Add.
1858 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1860 2001-08-03 Akim Demaille <akim@epita.fr>
1864 2001-08-03 Akim Demaille <akim@epita.fr>
1866 * tests/Makefile.am (check-local): Ship testsuite.
1867 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1870 2001-08-03 Akim Demaille <akim@epita.fr>
1872 * configure.in: Try using -Wformat when compiling.
1874 2001-08-03 Akim Demaille <akim@epita.fr>
1876 * configure.in: Bump to 1.28b.
1878 2001-08-03 Akim Demaille <akim@epita.fr>
1880 * src/complain.c: Adjust strerror_r portability issues.
1882 2001-08-03 Akim Demaille <akim@epita.fr>
1886 2001-08-03 Akim Demaille <akim@epita.fr>
1888 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1889 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1890 * src/getargs.c: Include complain.h.
1891 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1892 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1894 2001-08-03 Akim Demaille <akim@epita.fr>
1896 * src/reader.c (readgram): Display hidden chars in error messages.
1898 2001-08-03 Akim Demaille <akim@epita.fr>
1900 Update to gettext 0.10.39.
1902 2001-08-03 Akim Demaille <akim@epita.fr>
1904 * lib/strspn.c: New.
1906 2001-08-01 Marc Autret <autret_m@epita.fr>
1908 * doc/bison.texinfo: Update.
1909 * doc/bison.1 (mandoc): Update.
1910 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1911 * src/files.c: Support output files extensions computing.
1912 (src_extension): New static variable.
1913 (header_extension): New static variable.
1915 (get_extension_index): New function, gets the index of an extension
1916 filename in a string.
1917 (compute_exts_from_gf): New function, computes extensions from the
1918 grammar file extension.
1919 (compute_exts_from_src): New functions, computes extensions from the
1920 C source file extension, file given by ``-o'' option.
1921 (compute_base_names): Update.
1922 (output_files): Update.
1924 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1926 * doc/bison.texi: Document @$.
1927 (Locations): New section.
1929 2001-07-18 Akim Demaille <akim@epita.fr>
1931 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1932 * config/prev-version.txt, config/move-if-change: New.
1933 * Makefile.am: Adjust.
1935 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1937 * src/bison.simple (yyparse): Suppress warning `comparaison
1938 between signed and unsigned'.
1940 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1942 * src/getargs.h (raw_flag): Remove.
1943 * src/getargs.c: Die on `-r'/`--raw'.
1944 * src/lex.c (parse_percent_token): Die on `%raw'.
1945 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1946 * tests/calc.at: Suppress test with option `--raw'.
1948 2001-07-14 Akim Demaille <akim@epita.fr>
1951 * configure.in: Require Autoconf 2.50.
1952 Update to gettext 0.10.38.
1954 2001-03-16 Akim Demaille <akim@epita.fr>
1956 * doc/bison.texinfo: ANSIfy the examples.
1958 2001-03-16 Akim Demaille <akim@epita.fr>
1960 * getargs.c (skeleton): New variable.
1961 (longopts): --skeleton is a new option.
1962 (shortopts, getargs): -S is a new option.
1963 * getargs.h: Declare skeleton.
1964 * output.c (output_parser): Use it.
1966 2001-03-16 Akim Demaille <akim@epita.fr>
1968 * m4/strerror_r.m4: New.
1969 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1970 * lib/error.h, lib/error.c: Update.
1972 2001-03-16 Akim Demaille <akim@epita.fr>
1974 * src/getargs.c (longopts): Clean up.
1976 2001-02-21 Akim Demaille <akim@epita.fr>
1978 * src/reader.c (gensym): `gensym_count' is your own.
1979 Use a static buf to create the symbol name, as token_buffer is no
1982 2001-02-08 Akim Demaille <akim@epita.fr>
1984 * src/conflicts.c (conflict_report): Be sure not to append to res
1985 between two calls, which could happen if both first sprintf were
1986 skipped, but not the first cp += strlen.
1988 2001-02-08 Akim Demaille <akim@epita.fr>
1990 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1991 New, from fileutils 4.0.37.
1992 * configure.in: Require Autoconf 2.49c. I took some time before
1993 making this decision. This is the only way out for portability
1994 issues in Bison, it would mean way too much duplicate effort to
1995 import in Bison features implemented in 2.49c since 2.13.
1996 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1998 2001-02-02 Akim Demaille <akim@epita.fr>
2000 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2001 * lib/xalloc.h, lib/xmalloc.c: Update.
2003 2001-01-19 Akim Demaille <akim@epita.fr>
2005 Get rid of the ad hoc handling of token_buffer in the scanner: use
2008 * src/lex.c (token_obstack): New.
2009 (init_lex): Initialize it. No longer call...
2010 (grow_token_buffer): this. Remove it.
2011 Adjust all the places which used it to use the obstack.
2013 2001-01-19 Akim Demaille <akim@epita.fr>
2015 * src/lex.h: Rename all the tokens:
2016 s/\bENDFILE\b/tok_eof/g;
2017 s/\bIDENTIFIER\b/tok_identifier/g;
2019 Let them be enums, not #define, to ease debugging.
2020 Adjust all the code.
2022 2001-01-18 Akim Demaille <akim@epita.fr>
2024 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2025 * src/lex.c (maxtoken, grow_token_buffer): Static.
2027 2001-01-18 Akim Demaille <akim@epita.fr>
2029 Since we now use obstacks, more % directives can be enabled.
2031 * src/lex.c (percent_table): Also accept `%yacc',
2032 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2034 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2035 instead of returning a token.
2036 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2037 * src/reader.c (read_declarations): Adjust.
2038 * src/files.c (open_files): Don't call `compute_base_names', don't
2039 compute `attrsfile' since they depend upon data which might be
2040 *in* the input file now.
2041 (output_files): Do it here.
2042 * src/output.c (output_headers): Document the fact that this patch
2043 introduces a guaranteed SEGV for semantic parsers.
2044 * doc/bison.texinfo: Document them.
2045 * tests/suite.at: Exercise these %options.
2047 2000-12-20 Akim Demaille <akim@epita.fr>
2049 Also handle the output file (--verbose) with obstacks.
2051 * files.c (foutput): Remove.
2052 (output_obstack): New.
2053 Adjust all dependencies.
2054 * src/conflicts.c: Return a string.
2055 * src/system.h (obstack_grow_string): Rename as...
2056 (obstack_sgrow): this. Be ready to work with non literals.
2057 (obstack_fgrow4): New.
2059 2000-12-20 Akim Demaille <akim@epita.fr>
2061 * src/files.c (open_files): Fix the computation of short_base_name
2062 in the case of `-o foo.tab.c'.
2064 2000-12-20 Akim Demaille <akim@epita.fr>
2066 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2067 (copy_dollar): Now that everything uses obstacks, get rid of the
2070 2000-12-20 Akim Demaille <akim@epita.fr>
2072 * src/files.c (open_files): Actually the `.output' file is based
2073 on the short_base_name, not base_name.
2074 * tests/suite.at (Checking output file names): Adjust.
2076 2000-12-20 Akim Demaille <akim@epita.fr>
2078 * src/bison.s1: Remove, we now use directly...
2079 * src/bison.simple: this.
2080 * src/Makefile.am: Use pkgdata instead of data.
2082 2000-12-20 Akim Demaille <akim@epita.fr>
2084 * src/files.c (guard_obstack): New.
2085 (open_files): Initialize it.
2086 (output_files): Dump it...
2087 * src/files.h: Export it.
2088 * src/reader.c (copy_guard): Use it.
2090 2000-12-19 Akim Demaille <akim@epita.fr>
2092 * src/files.c (outfile, defsfile, actfile): Removed as global
2094 (open_files): Don't compute them.
2095 (output_files): Adjust.
2096 (base_name, short_base_name): Be global.
2097 Adjust dependencies.
2099 2000-12-19 Akim Demaille <akim@epita.fr>
2101 * src/files.c (strsuffix): New.
2102 (stringappend): Be just like strcat but allocate.
2103 (base_names): Eve out from open_files.
2104 Try to simplify the rather hairy computation of base_name and
2106 (open_files): Use it.
2107 * tests/suite.at (Checking output file names): New test.
2109 2000-12-19 Akim Demaille <akim@epita.fr>
2111 * src/system.h (obstack_grow_literal_string): Rename as...
2112 (obstack_grow_string): this.
2113 * src/output.c (output_parser): Recognize `%% actions' instead of
2115 * src/bison.s1: s/$/%% actions/.
2116 * src/bison.hairy: Likewise.
2118 2000-12-19 Akim Demaille <akim@epita.fr>
2120 * src/output.c (output_parser): Compute the `#line' lines when
2122 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2123 Suggested by Hans Aberg.
2125 2000-12-19 Akim Demaille <akim@epita.fr>
2127 Let the handling of the skeleton files be local to the procedures
2130 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2132 (fparser, open_extra_files): Remove.
2133 (open_files, output_files): Don't take care of fparser.
2134 * src/files.h: Adjust.
2135 * src/output.c (output_parser): Open and close the file to the
2137 * src/reader.c (read_declarations): When %semantic_parser, open
2140 2000-12-19 Akim Demaille <akim@epita.fr>
2142 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2143 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2145 2000-12-19 Akim Demaille <akim@epita.fr>
2147 * src/files.c (open_files): Yipee! We no longer need all the code
2148 looking for `/tmp' since we have no tmp file.
2150 2000-12-19 Akim Demaille <akim@epita.fr>
2152 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2154 * src/files.c (open_files): Less dependency on MSDOS etc.
2156 2000-12-14 Akim Demaille <akim@epita.fr>
2158 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2159 Provide a default definition.
2160 Use it when executing the default @ action.
2161 * src/reader.c (reader_output_yylsp): No longer include
2162 `timestamp' and `text' in the default YYLTYPE.
2164 2000-12-12 Akim Demaille <akim@epita.fr>
2166 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2167 (copy_guard): Quote the file names.
2168 Reported by Laurent Mascherpa.
2170 2000-12-12 Akim Demaille <akim@epita.fr>
2172 * src/output.c (output_headers, output_program, output): Be sure
2173 to escape special characters when outputting filenames.
2174 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2175 (output_headers): Don't depend on them, Use ACTSTR.
2177 2000-11-17 Akim Demaille <akim@epita.fr>
2179 * lib/obstack.h: Formatting changes.
2180 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2181 prevents type checking.
2182 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2183 cast the value to (void *): assigning a `foo *' to a `void *'
2185 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2186 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2189 2000-11-17 Akim Demaille <akim@epita.fr>
2191 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2193 (suite.m4, regression.m4, calc.m4): these.
2194 * tests/atgeneral.m4: Update from CVS Autoconf.
2196 2000-11-17 Akim Demaille <akim@epita.fr>
2198 * tests/regression.m4 (%union and --defines): New test,
2199 demonstrating a current bug in the obstack implementation.
2201 2000-11-17 Akim Demaille <akim@epita.fr>
2203 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2205 Use them to declare the variables which are global or local to
2208 2000-11-17 Akim Demaille <akim@epita.fr>
2210 * acconfig.h: Remove, no longer used.
2212 2000-11-07 Akim Demaille <akim@epita.fr>
2214 * src: s/Copyright (C)/Copyright/g.
2216 2000-11-07 Akim Demaille <akim@epita.fr>
2218 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2220 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2222 2000-11-07 Akim Demaille <akim@epita.fr>
2224 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2225 Merge in a single CPP if/else.
2227 2000-11-07 Akim Demaille <akim@epita.fr>
2229 * src/output.c (output): Remove useless variables.
2230 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2231 argument `data' for consistency with the prototypes.
2233 (obstack_copy, obstack_copy0): Rename the second argument as
2234 `address' for consistency. Qualify it `const'.
2235 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2236 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2237 `const' their input argument (`data' or `address').
2238 Adjust the corresponding macros to include `const' in casts.
2240 2000-11-03 Akim Demaille <akim@epita.fr>
2242 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2243 s/PFILE1/BISON_HAIRY/.
2244 Adjust dependencies.
2246 2000-11-03 Akim Demaille <akim@epita.fr>
2248 For some reason, this was not applied.
2250 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2251 `unlink': it's no longer used.
2253 2000-11-03 Akim Demaille <akim@epita.fr>
2255 * src/files.c (skeleton_find): New function, eved out of...
2256 (open_files, open_extra_files): here.
2258 2000-11-03 Akim Demaille <akim@epita.fr>
2262 * src/files.c (obstack_save): New function.
2263 (done): Rename as...
2264 (output_files): this.
2266 * src/main.c (main): Don't use `atexit' to register `done', since
2267 it no longer has to remove tmp files, just call `output_files'
2268 when there are no errors.
2270 2000-11-02 Akim Demaille <akim@epita.fr>
2272 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2273 `unlink': it's no longer used.
2274 * src/files.h: Formatting changes.
2276 2000-11-02 Akim Demaille <akim@epita.fr>
2278 Remove the last uses of mktemp and unlink/delete.
2280 * src/files.c (fdefines, ftable): Removed.
2281 (defines_ostack, table_obstack): New.
2282 Adjust dependencies of the former into uses of the latter.
2283 * src/output.c (output_short_or_char_table, output_short_table):
2284 Convert to using obstacks.
2285 * src/reader.c (copy_comment2): Accept one FILE * and two
2287 (output_token_defines, reader_output_yylsp): Use obstacks.
2288 * src/system.h (obstack_fgrow3): New.
2290 2000-11-01 Akim Demaille <akim@epita.fr>
2292 Change each use of `fattrs' into a use of `attrs_obstack'.
2294 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2295 * src/files.c (fattrs): Remove.
2296 (attrs_obstack): New.
2297 Adjust all dependencies.
2298 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2300 2000-11-01 Akim Demaille <akim@epita.fr>
2303 Change each use of `faction' into a use of `action_obstack'.
2305 * lib/obstack.h, lib/obstack.c: New files.
2306 * src/files.c (faction): Remove.
2307 (action_obstack): New.
2308 Adjust all dependencies.
2310 2000-10-20 Akim Demaille <akim@epita.fr>
2312 * lib/quote.h (PARAMS): New macro. Use it.
2314 2000-10-16 Akim Demaille <akim@epita.fr>
2316 * src/output.c (output_short_or_char_table): New function.
2317 (output_short_table, output_token_translations): Use it.
2318 (goto_actions): Use output_short_table.
2320 2000-10-16 Akim Demaille <akim@epita.fr>
2322 * src/symtab.c (bucket_new): New function.
2325 * src/output.c (output_short_table): New argument to display the
2326 comment associated with the table.
2327 Adjust dependencies.
2328 (output_gram): Use it.
2329 (output_rule_data): Nicer output layout for YYTNAME.
2331 2000-10-16 Akim Demaille <akim@epita.fr>
2333 * src/lex.c (read_typename): New function.
2335 * src/reader.c (copy_dollar): Likewise.
2337 2000-10-16 Akim Demaille <akim@epita.fr>
2339 * src/reader.c (copy_comment2): Expect the input stream to be on
2340 the `/' which is suspected to open a comment, instead of being
2341 called after `//' or `/*' was read.
2342 (copy_comment, copy_definition, parse_union_decl, copy_action)
2343 (copy_guard): Adjust.
2345 2000-10-16 Akim Demaille <akim@epita.fr>
2347 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2348 `read_signed_integer'.
2350 2000-10-16 Akim Demaille <akim@epita.fr>
2352 * src/reader.c (copy_dollar): New function.
2353 (copy_guard, copy_action): Use it.
2355 2000-10-16 Akim Demaille <akim@epita.fr>
2357 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2358 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2359 New files, from Fileutils 4.0.27.
2360 * src/main.c (printable_version): Remove.
2361 * src/lex.c, src/reader.c: Use `quote'.
2363 2000-10-04 Akim Demaille <akim@epita.fr>
2365 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2367 2000-10-04 Akim Demaille <akim@epita.fr>
2369 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2371 2000-10-04 Akim Demaille <akim@epita.fr>
2373 When a literal string is used to define two different tokens,
2374 `bison -v' segfaults.
2375 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2377 * tests/regression.m4: New file.
2378 Include the core of the sample provided by Piotr Gackiewicz.
2379 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2382 2000-10-04 Akim Demaille <akim@epita.fr>
2384 * src/reader.c (parse_expect_decl): Keep `count' within the size
2388 2000-10-02 Paul Eggert <eggert@twinsun.com>
2390 * bison.s1 (yyparse): Assign the default value
2391 unconditionally, to avoid a GCC warning and make the parser a
2394 2000-10-02 Akim Demaille <akim@epita.fr>
2396 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2399 2000-10-02 Akim Demaille <akim@epita.fr>
2401 * src/derives.c, src/print.c, src/reduce.c: To ease the
2402 translation, move some `\n' out of the translated strings.
2404 2000-10-02 Akim Demaille <akim@epita.fr>
2406 The location tracking mechanism is precious for parse error
2407 messages. Nevertheless, it is enabled only when `@n' is used in
2408 the grammar, which is a different issue (you can use it in error
2409 message, but not in the grammar per se). Therefore, there should
2410 be another means to enable it.
2412 * src/getargs.c (getargs): Support `--locations'.
2414 * src/getargs.h (locationsflag): Export it.
2415 * src/lex.c (percent_table): Support `%locations'.
2416 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2417 with `locationsflag'.
2418 * doc/bison.texinfo: Document `--locations' and `%locations'.
2420 * tests/calc.m4: Test it.
2422 For regularity of the names, replace each
2423 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2424 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2425 In addition replace each `flag' with `_flag'.
2427 2000-10-02 Akim Demaille <akim@epita.fr>
2429 Also test parse error messages, including with YYERROR_VERBOSE.
2431 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2433 Use it to check the computations.
2434 Use it to check `nonassoc' is honored.
2435 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2436 `--yyerror-verbose'.
2437 (_AT_CHECK_CALC): Adjust to this option.
2438 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2440 2000-10-02 Akim Demaille <akim@epita.fr>
2442 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2443 the latter demonstrates a flaw in the handling of non debugging
2444 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2445 was used in order to simplify:
2461 unfortunately this leads to a CPP conflict when
2462 `--name-prefix=foo' is used since it produces `#define yydebug
2465 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2466 (YYDPRINTF): New macro.
2468 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2470 Also test `--verbose', `--defines' and `--name-prefix'.
2472 2000-10-02 Akim Demaille <akim@epita.fr>
2474 Improve the readability of the produced parsers.
2476 * src/bison.s1: Formatting changes.
2477 Improve the comment related to the `$' mark.
2478 (yydefault): Don't fall through to `yyresume': `goto' there.
2479 * src/output.c (output_parser): When the `$' is met, skip the end
2481 New variable, `number_of_dollar_signs', to check there's exactly
2482 one `$' in the parser skeleton.
2484 2000-10-02 Akim Demaille <akim@epita.fr>
2486 * lib/xstrdup.c: New file, from the fileutils.
2487 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2488 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2489 instead of strlen + xmalloc + strcpy.
2490 * src/symtab.c (copys): Remove, use xstrdup instead.
2492 2000-10-02 Akim Demaille <akim@epita.fr>
2494 * src/gram.h (associativity): New enum type which replaces the
2495 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2496 `right_assoc', `left_assoc' and `non_assoc'.
2497 Adjust all dependencies.
2498 * src/reader.c: Formatting changes.
2499 (LTYPESTR): Don't define it, use it as a literal in
2500 `reader_output_yylsp'.
2501 * src/symtab.h (symbol_class): New enum type which replaces the
2502 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2503 `sunknown', `stoken and `snterm'.
2505 2000-10-02 Akim Demaille <akim@epita.fr>
2507 * src/getargs.c (fixed_outfiles): Rename as...
2508 (yaccflag): for consistency and accuracy.
2509 Adjust dependencies.
2511 2000-10-02 Akim Demaille <akim@epita.fr>
2513 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2514 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2515 difficult and introduced a lot of core dump. It turns out that
2516 Bison used an implementation of `xmalloc' based on `calloc', and
2517 at various places it does depend upon the initialization to 0. I
2518 have not tried to isolate the pertinent places, and all the former
2519 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2520 someone should address this issue.
2522 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2523 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2525 Adjust dependencies.
2526 * src/warshall.h: New file.
2529 2000-10-02 Akim Demaille <akim@epita.fr>
2531 Various anti-`extern in *.c' changes.
2533 * src/system.h: Include `assert.h'.
2535 2000-10-02 Akim Demaille <akim@epita.fr>
2537 * src/state.h (nstates, final_state, first_state, first_shift)
2538 (first_reduction): Move their exportation from here...
2539 * src/LR0.h: to here.
2540 Adjust dependencies.
2541 * src/getargs.c (statisticsflag): New variable.
2542 Add support for `--statistics'.
2543 Adjust dependencies.
2545 Remove a lot of now useless `extern' statements in most files.
2547 2000-10-02 Akim Demaille <akim@epita.fr>
2549 * src/LR0.h: New file.
2552 2000-10-02 Akim Demaille <akim@epita.fr>
2554 * src/print.h: New file.
2556 * src/print.c: Formatting and ordering changes.
2557 (verbose, terse): Replace with...
2558 (print_results): this new function.
2559 Adjust dependencies.
2561 2000-10-02 Akim Demaille <akim@epita.fr>
2563 * src/conflicts.c (conflict_report): New function.
2564 (conflict_log, verbose_conflict_log): Replace with...
2565 (print_conflicts): this function.
2566 Adjust dependencies.
2567 * src/conflicts.h: New file.
2568 Propagate its inclusion.
2570 2000-10-02 Akim Demaille <akim@epita.fr>
2572 * src/nullable.h: New file.
2573 Propagate its inclusion.
2574 * src/nullable.c: Formatting changes.
2576 2000-10-02 Akim Demaille <akim@epita.fr>
2578 * src/reduce.h: New file.
2579 Propagate its inclusion.
2580 * src/reduce.c: Topological sort and other formatting changes.
2581 (bool, TRUE, FALSE): Move their definition to...
2582 * src/system.h: here.
2584 2000-10-02 Akim Demaille <akim@epita.fr>
2586 * src/files.c: Formatting changes.
2587 (tryopen, tryclose, openfiles): Rename as...
2588 (xfopen, xfclose, open_files): this.
2589 (stringappend): static.
2590 * src/files.h: Complete the list of exported symbols.
2593 2000-10-02 Akim Demaille <akim@epita.fr>
2595 * src/reader.h: New file.
2596 Propagate its use instead of tedious list of `extern' and
2598 * src/reader.c: Formatting changes, topological sort,
2601 2000-10-02 Akim Demaille <akim@epita.fr>
2603 * src/lex.h: Prototype `lex.c' exported functions.
2604 * src/reader.c: Adjust.
2605 * src/lex.c: Formatting changes.
2606 (safegetc): Rename as...
2609 2000-10-02 Akim Demaille <akim@epita.fr>
2611 * src/lalr.h: New file.
2612 Propagate its inclusion instead of prototypes and `extern'.
2613 * src/lalr.c: Formatting changes, topological sorting etc.
2615 2000-10-02 Akim Demaille <akim@epita.fr>
2617 * src/output.c (token_actions): Introduce a temporary array,
2618 YYDEFACT, that makes it possible for this function to use
2621 2000-10-02 Akim Demaille <akim@epita.fr>
2623 `user_toknums' is output as a `short[]' in `output.c', while it is
2624 defined as a `int[]' in `reader.c'. For consistency with the
2625 other output tables, `user_toknums' is now defined as a table of
2628 * src/reader.c (user_toknums): Be a short table instead of an int
2630 Adjust dependencies.
2632 Factor the short table outputs.
2634 * src/output.c (output_short_table): New function.
2635 * src/output.c (output_gram, output_stos, output_rule_data)
2636 (output_base, output_table, output_check): Use it.
2638 2000-10-02 Akim Demaille <akim@epita.fr>
2640 * src/output.c (output): Topological sort of the functions, in
2641 order to get rid of the `static' prototypes.
2642 No longer use `register'.
2643 * src/output.h: New file.
2644 Propagate its inclusion in files explicitly prototyping functions
2647 2000-09-21 Akim Demaille <akim@epita.fr>
2649 * src/atgeneral.m4: Update from Autoconf.
2651 2000-09-21 Akim Demaille <akim@epita.fr>
2653 * src/closure.h: New file.
2654 * src/closure.c: Formatting changes, topological sort over the
2655 functions, use of closure.h.
2656 (initialize_closure, finalize_closure): Rename as...
2657 (new_closure, free_closure): these. Adjust dependencies.
2658 * src/LR0.c: Formatting changes, topological sort, use of
2660 (initialize_states): Rename as...
2662 * src/Makefile.am (noinst_HEADERS): Adjust.
2664 2000-09-20 Akim Demaille <akim@epita.fr>
2666 * src/acconfig.h: Don't protect config.h against multiple
2668 Don't define PARAMS.
2669 * src/system.h: Define PARAMS.
2670 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2671 purpose of config.h. system.h must not try to fix wrong
2672 definitions in config.h.
2674 2000-09-20 Akim Demaille <akim@epita.fr>
2676 * src/derives.h: New file.
2677 * src/main.c, src/derives.h: Use it.
2679 * src/Makefile.am (noinst_HEADERS): Adjust.
2681 2000-09-20 Akim Demaille <akim@epita.fr>
2683 * tests/atgeneral.m4: Update from Autoconf.
2684 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2685 (AT_CHECK_CALC): New macros.
2686 Use these macros to test bison with options `', `--raw',
2687 `--debug', `--yacc', `--yacc --debug'.
2689 2000-09-19 Akim Demaille <akim@epita.fr>
2691 * src/output.c: Formatting changes.
2692 * src/machine.h: Remove, leaving its contents in...
2693 * src/system.h: here.
2695 Adjust all dependencies on stdio.h and machine.h.
2696 * src/getargs.h: New file.
2697 Let all `extern' declarations about getargs.c be replaced with
2698 inclusion of `getargs.h'.
2699 * src/Makefile.am (noinst_HEADERS): Adjust.
2701 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2703 (yyerror): Returns void, not int.
2704 * doc/bison.texinfo: Formatting changes.
2706 2000-09-19 Akim Demaille <akim@epita.fr>
2708 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2711 2000-09-18 Akim Demaille <akim@epita.fr>
2713 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2714 * src/Makefile.am (INCLUDES): Don't.
2715 Be ready to fetch headers in lib/.
2717 2000-09-18 Akim Demaille <akim@epita.fr>
2719 * doc/bison.texinfo: Update the copyright.
2720 ANSIfy and GNUify the examples.
2721 Remove the old menu.
2723 2000-09-18 Akim Demaille <akim@epita.fr>
2725 First set of tests: use the `calc' example from the documentation.
2727 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2728 is defined only when YYDEBUG is.
2729 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2730 * src/files.c (tryopen, tryclose): Formatting changes.
2731 Move to the top and be static.
2732 * src/reader.c (read_signed_integer): Likewise.
2733 * tests/calc.m4: New file.
2734 * Makefile.am, suite.m4: Adjust.
2735 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2737 2000-09-18 Akim Demaille <akim@epita.fr>
2739 Add support for an Autotest test suite for Bison.
2741 * m4/m4.m4, m4/atconfig.m4: New files.
2742 * m4/Makefile.am (EXTRA_DIST): Adjust.
2743 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2745 * src/getargs.c: Display a more standard --version message.
2746 * src/reader.c (reader): Formatting changes.
2747 No longer depend upon VERSION_STRING.
2748 * configure.in: No longer use `dnl'.
2749 Set up the test suite and the new directory `tests/.
2750 (VERSION_STRING): Remove.
2752 2000-04-14 Akim Demaille <akim@epita.fr>
2754 * src/reader.c (copy_comment2): New function, same as former
2755 `copy_comment', but outputs into two FILE *.
2756 (copy_comment): Use it.
2757 (parse_union_decl): Use it.
2758 (get_type, parse_start_decl): Use the same `invalid' message.
2759 (parse_start_decl, parse_union_decl): Use the same `multiple'
2761 (parse_union_decl, copy_guard, copy_action): Use the same
2762 `unmatched' message.
2763 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2765 2000-03-31 Akim Demaille <akim@epita.fr>
2767 * src/files.c (tryopen, tryclose): Move to the top.
2770 2000-03-31 Akim Demaille <akim@epita.fr>
2772 * src/main.c (main): Don't call `done', exit does it.
2774 2000-03-31 Akim Demaille <akim@epita.fr>
2776 * allocate.c: s/return (foo)/return foo/.
2779 * output.c: Likewise.
2780 * reader.c: Likewise.
2781 * symtab.c: Likewise.
2782 * vmsgetargs.c: Likewise.
2784 2000-03-31 Akim Demaille <akim@epita.fr>
2786 Clean up the error reporting functions.
2788 * src/report.c: New file.
2789 * src/report.h: Likewise.
2790 * src/Makefile.am: Adjust.
2791 * m4/error.m4: New file.
2792 * m4/Makefile.am: Adjust.
2793 * configure.in (jm_PREREQ_ERROR): Call it.
2794 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2796 (fatal, fatals): Remove. All callers use complain.c::fatal.
2797 (warn, warni, warns, warnss, warnss): Remove. All callers use
2798 complain.c::complain.
2799 (toomany): Remove, use fatal instead.
2800 * src/files.c (done): No argument, use complain_message_count.
2801 * src/main.c (main): Register `done' to `atexit'.
2803 * src/getargs.c (usage): More `fputs', less `fprintf'.
2805 2000-03-28 Akim Demaille <akim@epita.fr>
2807 * lib/: New directory.
2808 * Makefile.am (SUBDIRS): Adjust.
2809 * configure.in: Adjust.
2810 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2812 * src/alloca.c: Moved to lib/.
2813 * src/getopt.c: Likewise.
2814 * src/getopt1.c: Likewise.
2815 * src/getopt.h: Likewise.
2816 * src/ansi2knr.c: Likewise.
2817 * src/ansi2knr.1: Likewise.
2818 * src/Makefile.am: Adjust.
2819 * lib/Makefile.am: New file.
2821 2000-03-28 Akim Demaille <akim@epita.fr>
2823 * src/getargs.c (usage): Refresh the help message.
2825 2000-03-17 Akim Demaille <akim@epita.fr>
2827 * src/getopt1.c: Updated from textutils 2.0e
2828 * src/getopt.c: Likewise.
2829 * src/getopt.h: Likewise.
2831 2000-03-17 Akim Demaille <akim@epita.fr>
2833 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2834 the file name, not the whole `#line LINE FILE'.
2836 2000-03-17 Akim Demaille <akim@epita.fr>
2838 On syntax errors, report the token on which we choked.
2840 * src/bison.s1 (yyparse): In the label yyerrlab, when
2841 YYERROR_VERBOSE, add yychar in msg.
2843 2000-03-17 Akim Demaille <akim@epita.fr>
2845 * src/reader.c (copy_at): New function.
2846 (copy_guard): Use it.
2847 (copy_action): Use it.
2849 2000-03-17 Akim Demaille <akim@epita.fr>
2851 Be kind to translators, save some useless translations.
2853 * src/main.c (banner): New function.
2854 (fatal_banner): Use it.
2855 (warn_banner): Use it.
2857 2000-03-17 Akim Demaille <akim@epita.fr>
2859 * src/reader.c (copy_definition): Use copy_string and
2860 copy_comment. Removed now unused `match', `ended',
2862 (copy_comment, copy_string): Moved, to be visible from
2865 2000-03-17 Akim Demaille <akim@epita.fr>
2867 * src/reader.c (copy_string): Declare `static inline'. No
2868 problems with inline, since it is checked by configure.
2869 (copy_comment): Likewise.
2871 2000-03-17 Akim Demaille <akim@epita.fr>
2873 * src/reader.c (packsymbols): Formatting changes.
2875 2000-03-17 Akim Demaille <akim@epita.fr>
2877 * src/reader.c (copy_comment): New function, factored out from:
2878 (copy_action): Use it. Removed now unused `match', `ended',
2880 (copy_guard): Likewise.
2882 2000-03-17 Akim Demaille <akim@epita.fr>
2884 * src/reader.c (copy_string): New function, factored out from:
2885 (copy_action): Use it.
2886 (copy_guard): Likewise.
2888 2000-03-17 Akim Demaille <akim@epita.fr>
2890 Change the handling of @s so that they behave exactly like $s.
2891 There is now a pseudo variable @$ (readble and writable), location
2892 of the lhs of the rule (by default ranging from the location of
2893 the first symbol of the rhs, to the location of the last symbol,
2894 or, if the rhs is empty, YYLLOC).
2896 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2898 (yyparse): When providing a default semantic action, provide a
2899 default location action.
2900 (after the $): No longer change `*YYLSP', just stack YYLOC the
2901 same way you stack YYVAL.
2902 * src/reader.c (read_declarations): Use warns.
2903 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2904 (copy_action, case '@'): Likewise.
2905 Use a standard error message, to save useless work from
2908 2000-03-17 Akim Demaille <akim@epita.fr>
2910 * src/bison.s1: Formatting and cosmetics changes.
2911 * src/reader.c: Likewise.
2912 Update the Copyright notice.
2914 2000-03-17 Akim Demaille <akim@epita.fr>
2916 * src/bison.s1 (#line): All set to `#line' only, since the
2917 Makefile now handles them.
2919 2000-03-16 Akim Demaille <akim@epita.fr>
2921 * src/output.c (output_rule_data): Output the documentation of
2923 (Copyright notice): Update.
2926 2000-03-16 Akim Demaille <akim@epita.fr>
2928 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2929 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2930 One `#if YYDEBUG' remains, since it uses variables which are
2931 defined only if `YYDEBUG != 0'.
2933 2000-03-16 Akim Demaille <akim@epita.fr>
2935 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2936 and related variables so that the similarities are highlighted.
2938 2000-03-16 Akim Demaille <akim@epita.fr>
2940 * src/bison.s1: Properly indent CPP directives.
2942 2000-03-16 Akim Demaille <akim@epita.fr>
2944 * src/bison.s1: Properly indent the `alloca' CPP section.
2946 2000-03-16 Akim Demaille <akim@epita.fr>
2948 Do not hard code values of directories in `configure.in'.
2949 Update the `configure' tool chain.
2951 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2953 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2954 (AC_OUTPUT): Add m4/Makefile.
2955 Bump to bison 1.28a, 1.29 has never been released.
2956 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2957 handled via src/Makefile.am.
2958 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2959 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2961 * Makefile.am (SUBDIRS): Add m4.
2962 (ACLOCAL_AM_FLAGS): New variable.
2963 (AUTOMAKE_OPTIONS): Add check-news.
2964 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2965 the proper line number and file name.
2966 (DEFS): Propagate the location of bison library files and of the
2968 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2970 * acinclude.m4: Remove, replaced by the directory m4.
2971 * m4/Makefile.am (EXTRA_DIST): New variable.
2972 * m4/gettext.m4: New file, from the fileutils.
2973 * m4/lcmessage.m4: Likewise
2974 * m4/progtest.m4: Likewise.
2975 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2977 2000-03-10 Akim Demaille <akim@epita.fr>
2980 Formatting changes of various comments.
2981 Respect the GNU coding standards at various places.
2982 Don't use `_()' when no translation is needed.
2984 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2987 OS/2 honors TMPDIR environment variable.
2989 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2991 * doc/bison.texinfo: Tweaked spelling and grammar.
2993 Removed reference to price of printed copy.
2994 Mention BISON_SIMPLE and BISON_HAIRY.
2996 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2998 * configure.in, NEWS:
2999 Bison 1.29 released.
3001 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3003 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3004 Added reference card.
3006 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3008 * po/ru.po: Added Russian translation.
3010 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3012 * configure.in: Added Russian translation.
3014 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3016 * configure.in, NEWS, README:
3017 Released version 1.28.
3019 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3022 Squashed redefinition warning on some systems.
3024 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3025 Have configure build version string instead of relying on ANSI string
3028 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3030 * po/POTFILES.in: Got rid of version.c.
3032 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3034 * acconfig.h, configure.in:
3035 Have configure build version string instead of relying on ANSI string
3038 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3041 Dropped mention of `+' for long-named options.
3043 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3045 * src/files.c: Added <unistd.h> for unlink().
3047 * src/Makefile.am, src/system.h:
3050 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3052 * README: Added a FAQ list.
3054 * configure.in, acconfig.h:
3057 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3059 * doc/FAQ, doc/Makefile.am:
3062 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3064 * src/alloc.h, src/symtab.h, src/version.c:
3065 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3067 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3069 * src/.cvsignore, src/Makefile.am:
3070 Reorganized: sources in `src', documentation in `doc'.
3072 * src/lex.c (literalchar):
3073 fixed the code for escaping double quotes (thanks
3076 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3078 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3079 Adjusted paths to reflect directory reorganization.
3081 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3083 * doc/.cvsignore, doc/Makefile.am:
3084 Reorganized: sources in `src', documentation in `doc'.
3086 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3089 Updated AC_INIT file to reflect directory reorganization.
3091 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3092 Reorganized: sources in `src', documentation in `doc'.
3094 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3097 Don't declare calloc() and realloc() if not necessary.
3099 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3101 * configure.in, acconfig.h, acinclude.m4:
3102 Don't declare calloc() and realloc() if not necessary.
3104 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3106 * po/.cvsignore: Added i18n support.
3108 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3110 * acconfig.h, configure.in, Makefile.am:
3113 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3115 * src/bison.s1: Fixed #line numbers.
3117 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3119 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3120 Added PO files from Translation Project.
3122 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3125 Added support for non-ANSI compilers (ansi2knr).
3127 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3129 * configure.in: Bumped version number to 1.27.
3132 Added `bison.simple' to list of files removed by `make distclean'.
3134 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3136 * src/files.c, src/files.h:
3137 Defined locations of parser files in config.h instead of Makefile.
3139 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3141 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3142 Defined locations of parser files in config.h instead of Makefile.
3144 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3147 Removed inappropriate use of $< macro.
3149 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3151 * po/Makefile.in.in, po/POTFILES.in:
3152 Add `po' directory skeleton.
3154 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3156 * README: Document help-bison list.
3158 * configure.in: Add check for mkstemp().
3160 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3162 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3163 Hush a few compiler warnings.
3166 Add tryclose(), which verifies that fclose was successful.
3167 Hush a couple of compiler warnings.
3169 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3171 * Makefile.am, OChangeLog:
3172 ChangeLog is now automatically generated. Include the old version as
3175 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3177 * 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:
3180 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3182 * doc/bison.texinfo: Fix formatting glitch.
3184 * doc/bison.texinfo: Update FSF address.
3186 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3188 * acconfig.h: Update FSF address.
3190 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3193 Don't define PACKAGE here, since config.h defines it.
3195 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3197 * src/reader.c: Update copyright date.
3200 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3201 favor of output directly to stderr (avoids buffer overruns).
3203 * src/reader.c: Some checks for premature EOF.
3205 * 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:
3206 Use prototypes if the compiler understands them.
3208 * src/files.c: Honor TMPDIR on Unix hosts.
3209 Use prototypes if the compiler understands them.
3212 Fix a couple of buffer overrun bugs.
3213 Use prototypes if the compiler understands them.
3215 * src/system.h: Include unistd.h and ctype.h.
3216 Use #ifdef instead of #if for NLS symbols.
3218 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3220 * doc/bison.texinfo:
3221 Delete comment "consider using @set for edition number, etc..." since
3222 we now are doing so.
3224 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3227 Use prototypes if the compiler understands them.
3229 * NEWS: Document 1.26 highlights.
3231 * Makefile.am: Require Automake 1.3 or later.
3234 Use prototypes if the compiler understands them.
3236 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3239 Use VERSION symbol from automake for version number.
3241 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3243 * acconfig.h, configure.in, version.cin:
3244 Use VERSION symbol from automake for version number.
3246 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3249 Distribute original version of simple parser (bison.s1), not built
3250 version (bison.simple).
3252 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3254 * doc/bison.texinfo: Add info dir entry.
3256 * doc/bison.texinfo:
3257 Let automake put version number into documentation.
3259 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3261 * src/bison.cld, src/build.com, src/vmshlp.mar:
3262 Add non-RCS files from /gd/gnu/bison.
3264 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3267 Document the BISON_HAIRY and BISON_SIMPLE variables.
3269 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3271 * src/version.c: Build version.c automatically.
3274 Fix token numbering (used to start at 258, not 257).
3276 * src/system.h: Include config.h.
3278 * src/getargs.c: Update bug report address.
3280 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3281 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3283 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3286 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3288 * configure.in, version.cin:
3289 Build version.c automatically.
3291 * AUTHORS: Add AUTHORS file.
3293 * README: Update bug report address.
3296 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3298 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3301 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3303 * doc/bison.texinfo: Clean up some formatting.
3305 1998-05-05 Richard Stallman <rms@gnu.org>
3307 * doc/bison.texinfo:
3308 Explain better why to make a pure parser.
3310 1998-01-05 Richard Stallman <rms@gnu.org>
3312 * src/files.c (openfiles):
3313 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3314 find a temporary directory, if possible. Do not unlink files while
3317 1997-08-25 Richard Stallman <rms@gnu.org>
3319 * src/reader.c (stack_offset;):
3320 Change some warni to warns.
3322 * src/lex.c (literalchar): Use warns, not warni.
3324 1997-06-28 Richard Stallman <rms@gnu.org>
3326 * src/bison.s1: Add a Bison version comment.
3328 * src/main.c (fatal, warn, berror):
3331 1997-06-28 Richard Stallman <rms@gnu.org>
3333 * Makefile.in (bison_version): New variable.
3334 (dist): Use that variable.
3335 (bison.s1): Substitute the Bison version into bison.simple.
3337 * bison.simple: Add a Bison version comment.
3339 1997-06-18 Richard Stallman <rms@gnu.org>
3341 * src/main.c (fatal, warn, berror):
3342 Make error messages standard.
3343 (toomany): Improve error message text.
3345 * 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:
3346 new.h renamed to alloc.h.
3348 1997-06-18 Richard Stallman <rms@gnu.org>
3350 * Makefile.in: new.h renamed to alloc.h.
3352 1997-05-24 Richard Stallman <rms@gnu.org>
3354 * src/lex.c (literalchar):
3355 Fix the code for escaping \, " and '.
3357 (lex): Avoid trouble when there are many chars
3358 to discard in a char literal with just several chars in it.
3360 1997-05-17 Richard Stallman <rms@gnu.org>
3363 Use malloc, if using alloca is troublesome.
3364 (YYSTACK_USE_ALLOCA): New flag macro.
3365 Define it for some systems and compilers.
3366 (YYSTACK_ALLOC): New macro.
3367 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3368 If it was malloc'd, free it.
3370 1997-05-17 Richard Stallman <rms@gnu.org>
3373 Use malloc, if using alloca is troublesome.
3374 (YYSTACK_USE_ALLOCA): New flag macro.
3375 Define it for some systems and compilers.
3376 (YYSTACK_ALLOC): New macro.
3377 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3378 If it was malloc'd, free it.
3380 1997-04-23 Richard Stallman <rms@gnu.org>
3383 (alloca) [__hpux]: Always define as __builtin_alloca.
3385 1997-04-23 Richard Stallman <rms@gnu.org>
3388 (alloca) [__hpux]: Always define as __builtin_alloca.
3390 1997-04-22 Richard Stallman <rms@gnu.org>
3393 [__hpux]: Include alloca.h (right for HPUX 10)
3394 instead of declaring alloca (right for HPUX 9).
3396 * src/bison.s1 (__yy_memcpy):
3397 Declare arg `count' as unsigned int.
3398 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3400 1997-04-22 Richard Stallman <rms@gnu.org>
3403 [__hpux]: Include alloca.h (right for HPUX 10)
3404 instead of declaring alloca (right for HPUX 9).
3406 * bison.simple (__yy_memcpy):
3407 Declare arg `count' as unsigned int.
3408 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3410 1997-01-03 Richard Stallman <rms@gnu.org>
3412 * src/allocate.c: [__STDC__ or _MSC_VER]:
3413 Declare calloc and realloc to return void *.
3415 1997-01-02 Richard Stallman <rms@gnu.org>
3418 [_MSC_VER]: Include stdlib.h and process.h.
3419 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3421 * src/main.c (main): Return FAILURE as a value.
3422 (printable_version): Declare arg as int, not char.
3424 1997-01-02 Richard Stallman <rms@gnu.org>
3426 * Makefile.in (dist):
3427 Explicitly check for symlinks, and copy them.
3429 1996-12-19 Richard Stallman <rms@gnu.org>
3432 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3434 1996-12-18 Paul Eggert <eggert@gnu.org>
3436 * src/bison.s1 (yyparse):
3437 If __GNUC__ and YYPARSE_PARAM are both defined,
3438 declare yyparse to have a void * argument.
3440 1996-12-18 Paul Eggert <eggert@gnu.org>
3442 * bison.simple (yyparse):
3443 If __GNUC__ and YYPARSE_PARAM are both defined,
3444 declare yyparse to have a void * argument.
3446 1996-12-17 Richard Stallman <rms@gnu.org>
3448 * src/reduce.c (nbits): Add some casts.
3450 1996-08-12 Richard Stallman <rms@gnu.org>
3452 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3454 1996-08-12 Richard Stallman <rms@gnu.org>
3456 * bison.simple: Test _MSDOS as well as _MSDOS_.
3458 1996-07-31 Richard Stallman <rms@gnu.org>
3461 [__sun && __i386]: Include alloca.h.
3463 1996-07-31 Richard Stallman <rms@gnu.org>
3466 [__sun && __i386]: Include alloca.h.
3468 1996-07-30 Richard Stallman <rms@gnu.org>
3470 * src/bison.s1: Comment change.
3472 * src/bison.s1: Test _MSDOS_, not MSDOS.
3474 1996-07-30 Richard Stallman <rms@gnu.org>
3476 * bison.simple: Comment change.
3478 * bison.simple: Test _MSDOS_, not MSDOS.
3480 1996-06-01 Richard Stallman <rms@gnu.org>
3482 * 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:
3483 Insert `_' macro around many string constants.
3486 Insert `_' macro around many string constants.
3488 (main): Call setlocale, bindtextdomain and textdomain.
3490 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3491 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3492 [ENABLE_NLS]: Include libintl.h.
3493 [ENABLE_NLS] (gettext): Define.
3494 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3495 (N_, PACKAGE, LOCALEDIR): New macros.
3497 1996-06-01 Richard Stallman <rms@gnu.org>
3499 * POTFILES.in: New file.
3501 * Makefile.in (allocate.o):
3502 Define target explicitly.
3504 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3505 (LDFLAGS): Set to @LDFLAGS@.
3506 (configure): Run autoconf only if preceding `cd' succeeds.
3507 (bison.s1): Redirect output to temporary file then move the
3508 temporary to the target, rather than redirecting directly to bison.s1.
3509 (clean): Remove config.status and config.log.
3510 (distclean): Don't remove config.status here.
3512 1996-05-12 Richard Stallman <rms@gnu.org>
3515 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3517 1996-05-12 Richard Stallman <rms@gnu.org>
3520 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3522 1996-05-11 Richard Stallman <rms@gnu.org>
3524 * src/bison.s1 (__yy_memcpy):
3525 Really reorder the args, as was supposedly done on Feb 14 1995.
3526 (yyparse): Calls changed accordingly.
3528 1996-05-11 Richard Stallman <rms@gnu.org>
3530 * Makefile.in (dist): Don't use $(srcdir).
3532 * bison.simple (__yy_memcpy):
3533 Really reorder the args, as was supposedly done on Feb 14 1995.
3534 (yyparse): Calls changed accordingly.
3536 1996-01-27 Richard Stallman <rms@gnu.org>
3538 * src/output.c (output_rule_data):
3539 Test YYERROR_VERBOSE in the conditional
3540 around the definition of ttyname.
3542 1995-12-29 Richard Stallman <rms@gnu.org>
3545 Fix line numbers in #line commands.
3547 1995-12-29 Richard Stallman <rms@gnu.org>
3550 Fix line numbers in #line commands.
3552 1995-12-27 Richard Stallman <rms@gnu.org>
3554 * src/bison.s1 (YYPARSE_PARAM_DECL):
3555 In C++, make it always null.
3556 (YYPARSE_PARAM_ARG): New macro.
3557 (yyparse): Use YYPARSE_PARAM_ARG.
3559 1995-12-27 Richard Stallman <rms@gnu.org>
3561 * bison.simple (YYPARSE_PARAM_DECL):
3562 In C++, make it always null.
3563 (YYPARSE_PARAM_ARG): New macro.
3564 (yyparse): Use YYPARSE_PARAM_ARG.
3566 1995-11-29 Richard Stallman <rms@gnu.org>
3568 * doc/bison.texinfo:
3569 Describe literal string tokens, %raw, %no_lines, %token_table.
3571 1995-11-29 Daniel Hagerty <hag@gnu.org>
3573 * doc/bison.texinfo: Fixed update date
3575 1995-10-16 Richard Stallman <rms@gnu.org>
3577 * src/version.c: Version 1.25.
3579 1995-10-16 Richard Stallman <rms@gnu.org>
3581 * NEWS: *** empty log message ***
3583 1995-10-16 Richard Stallman <rms@gnu.org>
3585 * doc/bison.1, doc/bison.rnh:
3588 1995-10-15 Richard Stallman <rms@gnu.org>
3590 * src/vmsgetargs.c, src/getargs.c:
3591 Added -n, -k, and -raw switches.
3592 (noparserflag, toknumflag, rawtoknumflag): New variables.
3594 * src/symtab.h (SALIAS):
3595 New #define for adding aliases to %token.
3596 (struct bucket): Added `alias' field.
3598 * src/reduce.c (reduce_grammar):
3599 Revise error message.
3600 (print_notices): Remove final `.' from error message.
3602 * src/reader.c (reader_output_yylsp):
3604 (readgram): Use `#if 0' around code that accepted %command
3605 inside grammar rules: The documentation doesn't allow it,
3606 and it will fail since the %command processors scan for the next %.
3607 (parse_token_decl): Extended the %token
3608 declaration to allow a multi-character symbol as an alias.
3609 (parse_thong_decl): New function.
3610 (read_declarations): Added %thong declarations.
3611 (read_declarations): Handle NOOP to deal with allowing
3612 % declarations as another means to specify the flags.
3613 (readgram): Allow %prec prior to semantics embedded in a rule.
3614 (skip_to_char, read_declarations, copy_definition)
3615 (parse_token_decl, parse_start_decl, parse_type_decl)
3616 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3617 (get_type_name, copy_guard, copy_action, readgram)
3618 (get_type, packsymbols): Revised most error messages.
3619 Changed `fatal' to `warnxxx' to avoid aborting for error.
3620 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3621 (read_declarations): Improve the error message for
3622 an invalid character. Do not abort.
3623 (read_declarations, copy_guard, copy_action): Use
3624 printable_version to avoid unprintable characters in printed output.
3625 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3626 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3627 Allow the type of a non-terminal can be given
3628 more than once, as long as all specifications give the same type.
3631 (output_headers, output_trailers, output, output_gram)
3632 (output_rule_data): Implement noparserflag variable.
3633 Implement toknumflag variable.
3634 (output): Call reader_output_yylsp to output LTYPESTR.
3636 * src/main.c (main):
3637 If reader sees an error, don't process the grammar.
3638 (fatals): Updated to not use VARARGS1.
3639 (printable_version, int_to_string, warn, warni, warns, warnss)
3640 (warnsss): New error reporting functions. Avoid abort for error.
3643 Added THONG and NOOP for alias processing.
3644 Added SETOPT for the new code that allows setting options with %flags.
3647 Include getopt.h. Add some extern decls.
3648 (safegetc): New function to deal with EOF gracefully.
3649 (literalchar); new function to deal with reading \ escapes.
3650 (lex): Use literalchar.
3651 (lex): Implemented "..." tokens.
3652 (literalchar, lex, parse_percent_token): Made tokenbuffer
3653 always contain the token. This includes growing the token
3654 buffer while reading an integer.
3655 (parse_percent_token): Replaced if-else statement with percent_table.
3656 (parse_percent_token): Added % declarations as another
3657 way to specify the flags -n, -l, and -r. Also added hooks for
3658 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3659 major changes to files.c.
3660 (lex) Retain in the incoming stream a character following
3662 (skip_white_space, lex): Revised most error messages
3663 and changed fatal to warn to avoid aborting.
3664 (percent_table): Added %thong declarations.
3666 * src/gram.h: Comment changes.
3668 * src/files.c (openfiles, open_extra_files, done):
3670 and actfile file. Handle noparserflag. Both for -n switch.
3672 * src/conflicts.c (resolve_sr_conflict):
3673 Remove use of alloca.
3675 1995-06-01 Jim Meyering <meyering@gnu.org>
3677 * doc/bison.texinfo: *** empty log message ***
3679 1995-05-06 Richard Stallman <rms@gnu.org>
3681 * src/bison.s1: Comment change.
3683 1995-05-06 Richard Stallman <rms@gnu.org>
3685 * bison.simple: Comment change.
3687 1995-05-03 Richard Stallman <rms@gnu.org>
3689 * src/version.c: Version now 1.24.
3691 * src/bison.s1: Change distribution terms.
3693 * src/version.c: Version now 1.23.
3695 1995-05-03 Richard Stallman <rms@gnu.org>
3697 * doc/bison.texinfo:
3698 Rewrite "Conditions for Using Bison".
3699 Update version to 1.24.
3701 1995-05-03 Richard Stallman <rms@gnu.org>
3703 * bison.simple: Change distribution terms.
3705 1995-02-23 Richard Stallman <rms@gnu.org>
3707 * src/files.c: Test __VMS_POSIX as well as VMS.
3709 1995-02-14 Jim Meyering <meyering@gnu.org>
3711 * src/bison.s1 (__yy_memcpy):
3712 Renamed from __yy_bcopy to avoid
3713 confusion. Reverse FROM and TO arguments to be consistent with
3716 1995-02-14 Jim Meyering <meyering@gnu.org>
3718 * bison.simple (__yy_memcpy):
3719 Renamed from __yy_bcopy to avoid
3720 confusion. Reverse FROM and TO arguments to be consistent with
3723 1994-11-10 David J. MacKenzie <djm@gnu.org>
3729 * Makefile.in (DISTFILES): Include NEWS.
3731 * Makefile.in (DISTFILES):
3732 Include install-sh, not install.sh.
3734 * configure.in: Update to Autoconf v2 macro names.
3736 1994-10-05 David J. MacKenzie <djm@gnu.org>
3738 * Makefile.in: fix typo
3740 * Makefile.in (prefix, exec_prefix):
3741 Let configure set them.
3743 1994-09-28 David J. MacKenzie <djm@gnu.org>
3745 * Makefile.in: Set datadir to $(prefix)/share.
3747 1994-09-15 Richard Stallman <rms@gnu.org>
3750 Update copyright notice and GPL version.
3752 1994-09-15 Richard Stallman <rms@gnu.org>
3755 Update copyright notice and GPL version.
3757 1994-07-12 Richard Stallman <rms@gnu.org>
3759 * src/reduce.c, src/reader.c:
3762 1994-05-05 David J. MacKenzie <djm@gnu.org>
3764 * Makefile.in: entered into RCS
3766 1994-03-26 Richard Stallman <rms@gnu.org>
3768 * src/bison.s1: entered into RCS
3770 1994-03-26 Richard Stallman <rms@gnu.org>
3772 * bison.simple: entered into RCS
3774 1994-03-25 Richard Stallman <rms@gnu.org>
3776 * src/main.c: entered into RCS
3778 1994-03-24 Richard Stallman <rms@gnu.org>
3780 * src/conflicts.c: entered into RCS
3782 1994-01-02 Richard Stallman <rms@gnu.org>
3784 * Makefile.in: *** empty log message ***
3786 1993-11-21 Richard Stallman <rms@gnu.org>
3788 * src/bison.s1: *** empty log message ***
3790 1993-11-21 Richard Stallman <rms@gnu.org>
3792 * doc/bison.texinfo: entered into RCS
3794 * doc/bison.texinfo: *** empty log message ***
3796 1993-11-21 Richard Stallman <rms@gnu.org>
3798 * bison.simple: *** empty log message ***
3800 1993-10-25 David J. MacKenzie <djm@gnu.org>
3802 * doc/bison.texinfo: *** empty log message ***
3804 1993-10-19 Richard Stallman <rms@gnu.org>
3806 * src/bison.s1: *** empty log message ***
3808 1993-10-19 Richard Stallman <rms@gnu.org>
3810 * bison.simple: *** empty log message ***
3812 1993-10-14 Richard Stallman <rms@gnu.org>
3814 * src/bison.s1: *** empty log message ***
3816 1993-10-14 Richard Stallman <rms@gnu.org>
3818 * bison.simple: *** empty log message ***
3820 1993-09-14 David J. MacKenzie <djm@gnu.org>
3822 * doc/bison.texinfo: *** empty log message ***
3824 1993-09-13 Noah Friedman <friedman@gnu.org>
3826 * Makefile.in: *** empty log message ***
3828 1993-09-10 Richard Stallman <rms@gnu.org>
3830 * src/conflicts.c: *** empty log message ***
3832 * src/system.h: entered into RCS
3834 1993-09-10 Richard Stallman <rms@gnu.org>
3836 * doc/bison.1: entered into RCS
3838 1993-09-06 Noah Friedman <friedman@gnu.org>
3840 * src/version.c: entered into RCS
3842 1993-09-06 Noah Friedman <friedman@gnu.org>
3844 * Makefile.in: *** empty log message ***
3846 1993-07-30 David J. MacKenzie <djm@gnu.org>
3848 * Makefile.in: *** empty log message ***
3850 1993-07-24 Richard Stallman <rms@gnu.org>
3852 * src/bison.s1: *** empty log message ***
3854 1993-07-24 Richard Stallman <rms@gnu.org>
3856 * bison.simple: *** empty log message ***
3858 1993-07-08 David J. MacKenzie <djm@gnu.org>
3860 * Makefile.in: *** empty log message ***
3862 1993-07-04 Richard Stallman <rms@gnu.org>
3864 * src/bison.s1: *** empty log message ***
3866 1993-07-04 Richard Stallman <rms@gnu.org>
3868 * bison.simple: *** empty log message ***
3870 1993-06-26 David J. MacKenzie <djm@gnu.org>
3872 * src/getargs.c: entered into RCS
3874 1993-06-26 David J. MacKenzie <djm@gnu.org>
3876 * doc/bison.texinfo: *** empty log message ***
3878 * doc/bison.1: New file.
3880 1993-06-25 Richard Stallman <rms@gnu.org>
3882 * src/getargs.c: New file.
3884 1993-06-16 Richard Stallman <rms@gnu.org>
3886 * src/bison.s1: *** empty log message ***
3888 1993-06-16 Richard Stallman <rms@gnu.org>
3890 * bison.simple: *** empty log message ***
3892 1993-06-03 Richard Stallman <rms@gnu.org>
3894 * src/bison.s1: New file.
3896 1993-06-03 Richard Stallman <rms@gnu.org>
3898 * doc/bison.texinfo: *** empty log message ***
3900 1993-06-03 Richard Stallman <rms@gnu.org>
3902 * bison.simple: New file.
3904 1993-05-19 Richard Stallman <rms@gnu.org>
3906 * doc/bison.texinfo: New file.
3908 1993-05-07 Noah Friedman <friedman@gnu.org>
3910 * Makefile.in: *** empty log message ***
3912 1993-04-28 Noah Friedman <friedman@gnu.org>
3914 * src/reader.c: *** empty log message ***
3916 1993-04-23 Noah Friedman <friedman@gnu.org>
3918 * src/alloc.h: entered into RCS
3920 1993-04-20 David J. MacKenzie <djm@gnu.org>
3922 * src/version.c: *** empty log message ***
3924 * src/files.c, src/allocate.c:
3927 * src/reader.c: *** empty log message ***
3929 * src/lex.c: entered into RCS
3931 * src/conflicts.c: New file.
3933 * src/symtab.c: entered into RCS
3935 * src/alloc.h: New file.
3937 * src/LR0.c: entered into RCS
3939 1993-04-18 Noah Friedman <friedman@gnu.org>
3941 * src/reader.c: New file.
3943 * src/version.c: *** empty log message ***
3945 1993-04-18 Noah Friedman <friedman@gnu.org>
3947 * Makefile.in: *** empty log message ***
3949 1993-04-17 Noah Friedman <friedman@gnu.org>
3951 * Makefile.in: *** empty log message ***
3953 1993-04-15 Richard Stallman <rms@gnu.org>
3955 * src/main.c, src/files.c:
3958 1993-04-15 Noah Friedman <friedman@gnu.org>
3960 * configure.in: entered into RCS
3962 * configure.in: *** empty log message ***
3964 * configure.in: New file.
3966 1993-04-14 Richard Stallman <rms@gnu.org>
3968 * Makefile.in: New file.
3970 1993-04-13 Richard Stallman <rms@gnu.org>
3972 * src/version.c: New file.
3974 1993-03-25 Richard Stallman <rms@gnu.org>
3976 * src/output.c: entered into RCS
3978 1992-09-25 Richard Stallman <rms@gnu.org>
3980 * configure.bat: entered into RCS
3982 1992-06-22 Richard Stallman <rms@gnu.org>
3984 * src/vmsgetargs.c: entered into RCS
3986 1992-06-22 Richard Stallman <rms@gnu.org>
3988 * doc/bison.rnh: entered into RCS
3990 1992-04-20 David J. MacKenzie <djm@gnu.org>
3992 * README: entered into RCS
3994 1992-01-22 Richard Stallman <rms@gnu.org>
3996 * src/machine.h: entered into RCS
3998 1991-12-21 Richard Stallman <rms@gnu.org>
4000 * src/lalr.c, src/closure.c:
4003 1991-12-20 Richard Stallman <rms@gnu.org>
4005 * src/state.h: entered into RCS
4007 1991-12-18 Richard Stallman <rms@gnu.org>
4009 * src/print.c, src/nullable.c, src/derives.c:
4012 1991-11-03 David J. MacKenzie <djm@gnu.org>
4014 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4017 1988-09-09 Richard Stallman <rms@gnu.org>
4019 * src/bison.hairy: entered into RCS
4021 1987-12-16 Richard Stallman <rms@gnu.org>
4023 * REFERENCES: entered into RCS