1 2002-03-19 Paul Eggert <eggert@twinsun.com>
3 * src/bison.simple (YYCOPY): New macro.
4 (YYSTACK_RELOCATE): Use it.
5 Remove Type arg; no longer needed. All callers changed.
6 (yymemcpy): Remove; no longer needed.
8 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
9 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
10 * Makefile.in, aclocal.m4, config.hin, configure,
11 config/Makefile.in, config/depcomp, config/install-sh,
12 doc/Makefile.am, lib/Makefile.in, m4/Makefile.in, src/Makefile.in,
13 tests/Makefile.in: Regenerate using Automake 1.6.
15 2002-03-18 Paul Eggert <eggert@twinsun.com>
17 Fix the problem with union yyalloc and C++.
19 * src/bison.simple (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES,
20 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or if
21 this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
22 constructors or destructors.
23 (yymemcpy) [! defined YYSTACK_RELOCATE]: Do not define; not needed.
24 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
26 * src/reader.c (parse_union_decl): Define YYSTYPE_IS_TRIVIAL if we
27 use our YYSTYPE. It must be trivial, or our own union wouldn't be
29 (readgram): Define YYSTYPE_IS_TRIVIAL if it is int.
30 (reader_output_yylsp): Define YYLTYPE_IS_TRIVIAL if we use our
33 2002-03-12 Akim Demaille <akim@epita.fr>
35 * src/files.c (compute_output_file_names): s/would be both named/
36 /would both be named/.
37 Reported by Jim Meyering.
38 * tests/output.at (Clashing Output Files): Adjust.
40 2002-03-12 Akim Demaille <akim@epita.fr>
44 2002-03-04 Akim Demaille <akim@epita.fr>
48 2002-03-04 Akim Demaille <akim@epita.fr>
50 * tests/output.at (AT_CHECK_OUTPUT): Another test, making sure
51 bison fails when trying to output a parser and a header under the
53 * src/files.c (compute_output_file_names): Refuse when parser and
54 header have the same name.
56 2002-03-04 Akim Demaille <akim@epita.fr>
58 * src/reader.c (readgram): A missing `;' is a warning, not an
61 2002-03-04 Akim Demaille <akim@epita.fr>
63 * tests/sets.at (Broken Closure): Add the ending `;'.
64 * tests/input.at (Invalid $n, Invalid @n): Likewise.
65 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
66 * src/reader.at (readgram): Complain if a rule is not ended with a
69 2002-02-28 Akim Demaille <akim@epita.fr>
71 * tests/Makefile.am (check_SCRIPTS): New.
73 2002-02-28 Akim Demaille <akim@epita.fr>
77 2002-02-25 Akim Demaille <akim@epita.fr>
79 * src/bison.simple (yydebug): Fix the comment.
82 2002-02-21 Guerrero, Juan Manuel <st001906@hrz1.hrz.tu-darmstadt.de>
84 * src/getargs.c [AS_FILE_NAME] [__DJGPP__]: New macro STRLWR.
85 Check that no NULL pointer is passed to strlwr.
87 2002-02-14 Paul Eggert <eggert@twinsun.com>
89 Remove the support for C++ namespace cleanliness; it was
90 causing more problems than it was curing, since it didn't work
91 properly on some nonstandard C++ compilers. This can wait
92 for a proper C++ parser.
94 * NEWS: Document this.
95 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
96 of C++, as it's treated like C now.
97 * src/bison.simple (YYSTD): Remove.
98 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
99 Treat C++ just like Standard C instead of trying to support
100 namespace cleanliness.
102 2002-02-14 Akim Demaille <akim@epita.fr>
104 * tests/regression.at (else): Adjust to Andreas' change.
106 2002-02-13 Andreas Schwab <schwab@suse.de>
108 * src/output.c (output_rule_data): Don't output NULL, it might
111 2002-02-13 Guerrero, Juan Manuel <st001906@hrz1.hrz.tu-darmstadt.de>
113 * doc/bison.texinfo: Add DJGPP specific information about
114 file name extensions used on different file systems.
116 * src/files.c (output_files): MSDOS conditional removed.
117 New macro EXT_TYPE will provide at runtime the appropiate
118 output file extension.
119 (skeleton_find) [MSDOS]: __DJGPP__ conditional added to
120 inhibit the use of DOSish code. POSIX like behaviour.
122 * src/getargs.c [AS_FILE_NAME]: __DJGPP__ conditional added.
123 Check at runtime if LFN-API (case preserving) is available or not.
124 Do not unconditionly convert upper case strings in lower case strings.
126 * src/system.h [MSDOS] [__GO32__]: __DJGPP__ conditional added.
127 __GO32__ is obsolete and its use is deprecated.
128 [MSDOS]: __DJGPP__ conditional added. Use pathconf
129 to choose POSIX or DOS file extensions at run time.
130 [MSDOS] [__DJGPP__]: New macro EXT_TYPE. If LFN-API is
131 available, the src or header file extension (.c or .h) will be
132 added to the output file name. If no LFN-API is available no src
133 or header file extension will be added to the output file name.
134 [MSDOS] [!__DJGPP__]: New macro EXT_TYPE. Src file and header
135 file extension will never be added to the output file name.
136 [!MSDOS]: New macro EXT_TYPE. Src file and header file
137 extensions will always be added to the output file name.
139 2002-02-11 Akim Demaille <akim@epita.fr>
141 * tests/regression.at (%nonassoc and eof): Don't include non
144 2002-02-07 Akim Demaille <akim@epita.fr>
148 2002-02-07 Akim Demaille <akim@epita.fr>
150 * tests/regression.at, tests/torture.at, tests/calc.at: Adjust to
151 newest Autotest, where `.' is not in the PATH.
153 2002-02-07 Florian Krohm <florian@edamail.fishkill.ibm.com>
155 * src/reader.c (copy_at): Detect invalid @N values.
157 2002-02-07 Akim Demaille <akim@epita.fr>
159 * tests/input.at: New.
161 2002-01-29 Paul Eggert <eggert@twinsun.com>
163 * src/bison.simple (YYSIZE_T): Do not define merely because
164 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
165 On some platforms, <alloca.h> does not declare YYSTD (size_t).
167 2002-01-25 Akim Demaille <akim@epita.fr>
169 * tests/regression.at (%nonassoc and eof): New.
170 Suggested by Robert Anisko.
172 2002-01-23 Akim Demaille <akim@epita.fr>
176 2002-01-23 Akim Demaille <akim@epita.fr>
178 * src/getargs.c (version): Bump to 2002.
179 Patch the PO files to help translators.
181 2002-01-22 Akim Demaille <akim@epita.fr>
183 Bison dumps core when trying to complain about broken input files.
184 Reported by Cris van Pelt.
186 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
187 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
189 (Invalid inputs): Strengthen: exercise parse_percent_token.
191 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
195 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
197 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
199 2002-01-20 Marc Autret <marc@gnu.org>
201 * src/system.h: Need to define __attribute__ away for non-GCC
202 compilers as well (i.e. the vendor C compiler).
203 Suggested by Albert Chin-A-Young.
205 2002-01-19 Marc Autret <marc@gnu.org>
207 * tests/output.at: New test.
208 * src/files.c (compute_base_names): Don't map extensions when
209 the YACC flag is set, use defaults.
210 Reported by Evgeny Stambulchik.
212 2002-01-19 Marc Autret <marc@gnu.org>
214 * configure.in, doc/version.texi: Bump to 1.31a.
216 2002-01-14 Akim Demaille <akim@epita.fr>
220 2002-01-14 Akim Demaille <akim@epita.fr>
222 * tests/regression.at (Invalid CPP headers): Remove.
224 2002-01-12 Akim Demaille <akim@epita.fr>
228 2002-01-12 Akim Demaille <akim@epita.fr>
230 * lib/Makefile.am (EXTRA_DIST): Add strnlen.c: Automake is still
231 not using Autoconf traces and does not see Autoconf's AC_LIBOBJ.
233 2002-01-11 Akim Demaille <akim@epita.fr>
237 2002-01-11 Akim Demaille <akim@epita.fr>
239 * configure.in: Use AC_FUNC_STRNLEN.
240 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
242 2002-01-09 Akim Demaille <akim@epita.fr>
246 2002-01-09 Akim Demaille <akim@epita.fr>
248 * configure.in (WERROR_CFLAGS): Compute it.
249 * src/Makefile.am (CFLAGS): Pass it.
250 * tests/atlocal.in (CFLAGS): Idem.
252 2002-01-08 Akim Demaille <akim@epita.fr>
254 * lib/Makefile.am (libbison_a_SOURCES): Add xstrndup.c.
255 * src/getargs.c (AS_FILE_NAME): New.
256 (getargs): Use it to convert DOSish file names.
257 * src/files.c (base_name): Rename as full_base_name to avoid
258 clashes with `base_name ()'.
259 (get_extension_index): Remove.
260 (filename_split): New.
261 (compute_base_names): N-th rewrite, using filename_split.
263 2002-01-08 Akim Demaille <akim@epita.fr>
265 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c,
266 * lib/xstrndup.c, lib/strchr.c:
267 New, stolen from the Fileutils 4.1.
268 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
269 * configure.in: Check for the presence of memrchr, strchr,
270 strnlen, and of their prototypes.
271 Don't check for strndup: we no longer use it.
272 * src/system.h: Adjust the prototypes.
274 2002-01-07 Akim Demaille <akim@epita.fr>
276 * src/conflicts.c (count_rr_conflicts): The previous RR conflicts
277 patch was improperly applied: fix it.
279 2002-01-07 Akim Demaille <akim@epita.fr>
281 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
282 'switch' without a following semicolon.
283 * tests/regression.at (braces parsing): New.
285 2002-01-06 Akim Demaille <akim@epita.fr>
287 Bison is dead wrong in its RR conflict reports.
289 * tests/torture.at (GNU Cim Grammar): New.
290 * src/conflicts.c (count_rr_conflicts): Fix.
292 2002-01-06 Akim Demaille <akim@epita.fr>
294 Creating package.m4 from configure.ac causes too many problems.
296 * tests/Makefile.am (package.m4): Create it by hand,
297 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
299 2002-01-04 Paul Eggert <eggert@twinsun.com>
301 * doc/bison.texinfo (Debugging):
302 Remove YYSTDERR; it's no longer defined or used.
303 Also, s/cstdio.h/cstdio/.
305 2002-01-03 Akim Demaille <akim@epita.fr>
307 * src/files.h: Add it prototype.
309 2002-01-03 Akim Demaille <akim@epita.fr>
311 * src/files.c, src/files.h (strsuffix): Not static.
312 * src/conflicts.c (conflicts_print): Don't consider it is an error
313 to have a %expectation violation on a file ending by `plural.y'.
316 2002-01-03 Akim Demaille <akim@epita.fr>
318 * tests/bison.in: Adjust to CVS Autoconf.
319 * tests/calc.at (exp): We no longer need to special case GCC as
320 the warning flags are passed by configure.
321 * tests/atlocal.in: Adjust.
322 * configure.in: Bump to 1.30j.
324 2002-01-03 Akim Demaille <akim@epita.fr>
328 2002-01-03 Akim Demaille <akim@epita.fr>
330 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
331 The ISO C++ standard is extremely clear about it: stderr is
332 considered a macro, not a regular symbol (see table 94 `Header
333 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
334 Therefore std:: does not apply to it. It still does with fprintf.
335 Also, s/cstdio.h/cstdio/.
337 2002-01-03 Akim Demaille <akim@epita.fr>
339 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
340 for non system headers.
342 2001-12-27 Paul Eggert <eggert@twinsun.com>
344 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
345 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
346 Sparc, as they were causing more porting problems than the
347 (minor) performance improvement was worth.
349 2001-12-22 Akim Demaille <akim@epita.fr>
351 * src/output.c (output_short_table, output_short_or_char_table):
352 Change the prototype to use `int' for array ranges: some
353 invocations do pass an int, not a short.
354 Reported by Wayne Green.
356 2001-12-22 Akim Demaille <akim@epita.fr>
358 Some actions of web2c.y are improperly triggered.
359 Reported by Mike Castle.
361 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
362 * tests/regression.at (Web2c): Rename as...
363 (Web2c Report): this.
364 (Web2c Actions): New.
366 2001-12-22 Akim Demaille <akim@epita.fr>
368 Reductions in web2c.y are improperly reported.
369 Reported by Mike Castle.
371 * src/conflicts.c (print_reductions): Fix.
372 * tests/regression.at (Web2c): New.
374 2001-12-18 Akim Demaille <akim@epita.fr>
378 2001-12-18 Akim Demaille <akim@epita.fr>
380 Some host fail on `assert (!"foo")', which expands to
381 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
382 Reported by Nelson Beebee.
384 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
385 `#define it_succeeded 0' and `assert (it_succeeded)'.
387 2001-12-17 Paul Eggert <eggert@twinsun.com>
389 * src/bison.simple (YYSTD): New macro.
390 (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE, YYFPRINTF, YYSTDERR): Use
391 it to simplify macros, and fix some C++ porting problems reported
394 * src/output.c (output): Define YYDEBUG to 0 if it is not defined
395 and if we are not debugging. POSIX requires this.
396 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document this.
398 * src/output.c (output_gram, output_rule_data): Do not assume that
399 the user defines YYDEBUG to a properly parenthesized expression.
401 2001-12-15 Akim Demaille <akim@epita.fr>
403 * src/nullable.c (set_nullable): Useless rules must be skipped,
404 otherwise, since we range over their symbols, we might look at a
405 nonterminal which no longer ``exists'', i.e., it is not counted in
406 `nvars', hence we overflow our arrays.
408 2001-12-15 Akim Demaille <akim@epita.fr>
410 * src/reader.c (copy_action): When --yacc, don't append a `;'
411 to the user action: let it fail if lacking.
412 Suggested by Arnold Robbins and Tom Tromey.
414 2001-12-13 Akim Demaille <akim@epita.fr>
418 2001-12-13 Akim Demaille <akim@epita.fr>
420 The computation of nullable is broken: it doesn't handle empty
423 * tests/torture.at (GNU AWK Grammar): New.
424 * tests/sets.at (Nullable): New.
425 * src/nullable.c (set_nullable): Instead of blindly looping over
426 `ritems', loop over the rules, and then over their rhs's.
428 Work around Autotest bugs.
430 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
431 frame, because Autotest understand lines starting with a `+' as
432 traces from the shell. Then, they are not processed properly.
433 Admittedly an Autotest bug, but we don't have time to wait for
434 Autotest to catch up.
435 * tests/regression.at (Broken Closure): Adjust to the new table
438 * tests/sets.at: here.
440 2001-12-12 Paul Eggert <eggert@twinsun.com>
442 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
443 Do not infringe on the global user namespace when using C++.
444 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
445 All uses of `fprintf' and `stderr' changed.
447 * src/output.c (output): Do not output "#include <stdio.h>"; that
448 is bison.simple's job. stdio.h should be included only if
449 necessary, to avoid infringing on the user name space when
452 2001-12-12 Akim Demaille <akim@epita.fr>
454 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
455 on that of lib/error.c.
457 2001-12-12 Akim Demaille <akim@epita.fr>
459 Some hosts don't like `/' in includes.
461 * src/system.h: Include libgettext.h without qualifying the path.
462 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
465 2001-12-10 Akim Demaille <akim@epita.fr>
467 Bison dumps core on bash.y.
468 Reported by Pascal Bart.
470 * src/warshall.c (bitmatrix_print): New.
472 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
473 j must be the outer loop.
474 * tests/regression.at (Broken Closure): New.
476 2001-12-05 Akim Demaille <akim@epita.fr>
480 2001-12-05 Akim Demaille <akim@epita.fr>
482 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
484 Reported by Peter Hámorský.
486 2001-12-05 Akim Demaille <akim@epita.fr>
488 * src/conflicts.c (err_table): Remove.
489 (resolve_sr_conflict): Adjust.
490 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
492 (state_t.reductions, state_t.shifts): this.
494 2001-12-05 Akim Demaille <akim@epita.fr>
496 * src/reduce.c (reduce_grammar_tables): No longer disable the
497 removal of useless rules via CPP but via `if (0)', so that the
498 compiler still check the code is valid.
499 For instance, it should have noticed `rline' no longer exists: use
500 the `line' member of rule_t.
501 * src/gram.c (dummy, rline): Remove, unused.
503 2001-12-05 Akim Demaille <akim@epita.fr>
505 * src/output.c (pack_vector): Use assert, not berror.
506 * src/main.c (berror): Remove, unused.
508 2001-12-05 Akim Demaille <akim@epita.fr>
510 New experimental feature: if --verbose --trace output all the
511 items of a state, not only its kernel.
513 * src/print.c (print_core): If `trace_flag', then invoke closure
514 before outputting the items of the state (print_core is no longer
515 a correct name them).
516 (print_results): Invoke new_closure/free_closure if needed.
518 2001-12-05 Akim Demaille <akim@epita.fr>
520 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
521 * src/closure.c, src/closure.h (itemsetsize): Rename as...
522 (nitemset): for consistency with the rest of the project.
524 2001-12-05 Akim Demaille <akim@epita.fr>
526 * src/closure.c (print_closure): Improve.
527 (closure): Use it for printing input and output.
529 2001-12-05 Akim Demaille <akim@epita.fr>
531 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
532 indexed by nonterminals.
534 2001-12-05 Akim Demaille <akim@epita.fr>
536 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
538 * src/warshall.h: Remove accidental duplication of the content.
540 2001-12-05 Akim Demaille <akim@epita.fr>
542 * src/closure.c (set_fderives): De-obfuscate.
544 2001-12-05 Akim Demaille <akim@epita.fr>
546 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
548 2001-12-05 Akim Demaille <akim@epita.fr>
550 * src/closure.c (set_firsts): De-obfuscate.
552 2001-12-05 Akim Demaille <akim@epita.fr>
554 * src/output.c (action_row): De-obfuscate
555 using the good o' techniques: arrays not pointers, variable
556 locality, BITISSET, RESETBIT etc.
558 2001-12-05 Akim Demaille <akim@epita.fr>
560 Pessimize the code to simplify it: from now on, all the states
561 have a valid SHIFTS, which NSHIFTS is possibly 0.
563 * src/LR0.c (shifts_new): Be global and move to..
564 * src/state.c, src/state.h: here.
565 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
566 * src/print_graph: Adjust.
568 2001-12-05 Akim Demaille <akim@epita.fr>
570 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
571 * src/conflicts.c: Use it.
572 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
573 incorrectly ``simplified''.
575 2001-12-05 Akim Demaille <akim@epita.fr>
577 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
578 using the good o' techniques: arrays not pointers, variable
579 locality, BITISSET, RESETBIT etc.
581 2001-12-05 Akim Demaille <akim@epita.fr>
583 * src/state.h (SHIFT_SYMBOL): New.
584 * src/conflicts.c: Use it to deobfuscate.
586 2001-12-05 Akim Demaille <akim@epita.fr>
588 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
589 (print_reductions): De-obfuscate using the good o' techniques:
590 arrays not pointers, variable locality, BITISSET.
592 2001-12-05 Akim Demaille <akim@epita.fr>
594 * src/conflicts.c (print_reductions): Arrays, not pointers.
597 2001-12-05 Akim Demaille <akim@epita.fr>
599 * src/conflicts.c (print_reductions): Pessimize, but clarify.
601 2001-12-05 Akim Demaille <akim@epita.fr>
603 * src/conflicts.c (print_reductions): Improve variable locality.
605 2001-12-05 Akim Demaille <akim@epita.fr>
607 * src/conflicts.c (print_reductions): Pessimize, but clarify.
609 2001-12-05 Akim Demaille <akim@epita.fr>
611 * src/conflicts.c (print_reductions): Improve variable locality.
613 2001-12-05 Akim Demaille <akim@epita.fr>
615 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
616 * src/lalr.c: Use them.
618 2001-12-05 Akim Demaille <akim@epita.fr>
620 * src/LR0.c (augment_automaton): Formatting changes.
621 Better variable locality.
623 2001-12-05 Akim Demaille <akim@epita.fr>
625 * src/lalr.c (matrix_print): New.
627 Use arrays instead of pointers.
629 2001-12-05 Akim Demaille <akim@epita.fr>
631 * src/lalr.c (maxrhs): Move to...
632 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
633 * src/lalr.c (build_relations): Adjust.
635 2001-12-05 Akim Demaille <akim@epita.fr>
637 * src/lalr.c (transpose): Free the memory allocated to the
638 argument, as it is replaced by the results by the unique caller.
639 (build_relations): Merely invoke transpose: it handles the memory
641 Improve variable locality.
642 Avoid variables used as mere abbreviations.
643 (compute_lookaheads): Use arrays instead of pointers.
645 2001-12-05 Akim Demaille <akim@epita.fr>
647 * src/lalr.c (initialize_F): Improve variable locality.
648 Avoid variables used as mere abbreviations.
650 2001-12-05 Akim Demaille <akim@epita.fr>
652 * src/derives.c (print_derives): Display the ruleno.
653 * src/lalr.c (initialize_F, transpose): Better variable locality
654 to improve readability.
655 Avoid variables used as mere abbreviations.
657 2001-12-05 Akim Demaille <akim@epita.fr>
659 * src/lalr.c (traverse): Use arrays instead of pointers.
661 2001-12-05 Akim Demaille <akim@epita.fr>
663 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
664 the handling of squeue.
665 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
667 2001-12-05 Akim Demaille <akim@epita.fr>
669 Because useless nonterminals are now kept alive (instead of being
670 `destroyed'), we now sometimes examine them, and store information
671 related to them. Hence we need to know their number, and adjust
674 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
676 * src/LR0.c (allocate_itemsets): The memory allocated to
677 `symbol_count' was used for two different purpose: once to count
678 the number of occurrences of each symbol, and later reassigned to
679 `shift_symbol', containing the symbol that can be shifted from a
681 Deobfuscate, i.e., allocate, use and free `symbol_count' here
683 (new_itemsets): Allocate `shift_symbol' here.
684 (allocate_itemsets): symbol_count includes useless nonterminals.
686 (free_storage): Use `free', not `XFREE', for pointers that cannot
689 2001-12-05 Akim Demaille <akim@epita.fr>
691 * src/nullable.c (set_nullable): Deobfuscate the handling of
693 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
695 2001-12-05 Akim Demaille <akim@epita.fr>
697 * src/gram.c, src/gram.h (ritem_print): New.
698 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
699 (This useless function was defined only to work around VMS linkers
700 that can't handle compilation units with variables only).
701 * src/reduce.c (dump_grammar): Use it to trace the construction of
704 2001-12-04 Paul Eggert <eggert@twinsun.com>
706 * src/bison.simple (union yyalloc): Change member names
707 to be the same as the stack names.
708 (yyparse): yyptr is now union yyalloc *, not char *.
709 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
710 and may generate better code on some machines.
711 (yystpcpy): Use prototype if __STDC__ is defined, not just
712 if __cplusplus is defined.
714 2001-11-30 Akim Demaille <akim@epita.fr>
716 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
717 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
718 Gettext doesn't compile cleanly, and dies with -Werror.
719 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
720 Include WARNING_CFLAGS here.
721 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
722 before being defined.
724 2001-11-30 Paul Eggert <eggert@twinsun.com>
726 * lib/quotearg.h (quotearg_n, quotearg_n_style):
727 First arg is int, not unsigned.
728 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
729 (SIZE_MAX, UINT_MAX): New macros.
730 (quotearg_n_options): Abort if N is negative.
731 Avoid overflow check on hosts where size_t is 64 bits and int
732 is 32 bits, as overflow is impossible there.
733 Fix off-by-one typo that caused unnecessary reallocation.
735 2001-11-30 Paul Eggert <eggert@twinsun.com>
737 Name space cleanup in generated parser.
739 * doc/bison.texinfo (Bison Parser): Discuss system headers
740 and their effect on the user name space.
743 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
744 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
745 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
747 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
748 on user names when possible.
750 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
751 Simplify test for whather <alloca.h> exists.
753 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
755 (<stdio.h>): Include if YYDEBUG.
757 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
758 ! defined (yyoverflow) && ! defined (yymemcpy).
760 (yymemcpy, yyparse): Rename local variables as needed so that
761 they all begin with 'yy'.
763 (yystrlen, yystpcpy): New functions.
765 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
768 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
769 instead of relying on string.h functions. Use YYSTACK_ALLOC
770 and YYSTACK_FREE instead of malloc and free.
772 2001-11-30 Akim Demaille <akim@epita.fr>
774 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
775 if body instead of `;' to pacify GCC's warnings.
777 2001-11-30 Akim Demaille <akim@epita.fr>
779 Instead of mapping the LHS of unused rules to -1, keep the LHS
780 valid, but flag the rules as invalid.
782 * src/gram.h (rule_t): `useful' is a new member.
783 * src/print.c (print_grammar): Adjust.
784 * src/derives.c (set_derives): Likewise.
785 * src/reader.c (packgram, reduce_output): Likewise.
786 * src/reduce.c (reduce_grammar_tables): Likewise.
787 * tests/reduce.at (Underivable Rules, Useless Rules): New.
789 2001-11-30 Akim Demaille <akim@epita.fr>
791 * src/reduce.c (reduce_output): Formatting changes.
792 * src/print.c (print_results, print_grammar): Likewise.
793 * tests/regression.at (Rule Line Numbers)
794 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
796 2001-11-30 Akim Demaille <akim@epita.fr>
798 * src/reduce.c (nonterminals_reduce): Instead of throwing away
799 useless nonterminals, move them at the end of the symbol arrays.
800 (reduce_output): Adjust.
801 * tests/reduce.at (Useless Nonterminals): Adjust.
803 2001-11-30 Akim Demaille <akim@epita.fr>
805 * src/reduce.c: Various comment/formatting changes.
806 (nonterminals_reduce): New, extracted from...
807 (reduce_grammar_tables): here.
808 (reduce_grammar): Call nonterminals_reduce.
810 2001-11-29 Paul Eggert <eggert@twinsun.com>
812 * src/bison.simple (YYSTACK_REALLOC): Remove.
813 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
814 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
816 (union yyalloc): New type.
817 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
818 an arbitrary restriction on hosts where size_t is wider than int.
820 (yyparse): Don't dump core if alloca or malloc fails; instead, report
821 a parser stack overflow. Allocate just one block of memory for all
822 three stacks, instead of allocating three blocks; this typically is
823 faster and reduces fragmentation.
825 Do not limit the number of items in the stack to a value that fits
826 in 'int', as this is an arbitrary limit on hosts with 64-bit
827 size_t and 32-bit int.
829 2001-11-28 Akim Demaille <akim@epita.fr>
831 * src/LR0.c (shifts_new): New.
832 (save_shifts, insert_start_shift, augment_automaton): Use it.
834 2001-11-28 Akim Demaille <akim@epita.fr>
836 * src/closure.c (closure): `b' and `ruleno' denote the same value:
839 2001-11-28 Akim Demaille <akim@epita.fr>
841 * src/closure.c (closure): Instead of looping over word in array
842 then bits in words, loop over bits in array.
844 2001-11-28 Akim Demaille <akim@epita.fr>
846 * src/closure.c (closure): No longer optimize the special case
847 where all the bits of `ruleset[r]' are set to 0, to make the code
850 2001-11-28 Akim Demaille <akim@epita.fr>
852 * src/closure.c (closure): `r' and `c' are new variables, used to
853 de-obfuscate accesses to RULESET and CORE.
855 2001-11-28 Akim Demaille <akim@epita.fr>
857 * src/reduce.c (reduce_print): Use ngettext.
858 (dump_grammar): Improve the trace accuracy.
860 2001-11-28 Akim Demaille <akim@epita.fr>
862 * src/reduce.c (dump_grammar): Don't translate trace messages.
864 2001-11-28 Akim Demaille <akim@epita.fr>
866 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
867 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
868 as all tags are free'ed afterwards.
871 2001-11-27 Akim Demaille <akim@epita.fr>
873 * src/system.h: Use intl/libgettext.h.
874 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
876 2001-11-27 Paul Eggert <eggert@twinsun.com>
878 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
879 use alloca when we didn't want to, and vice versa.
881 2001-11-27 Akim Demaille <akim@epita.fr>
883 * tests/torture.at (Exploding the Stack Size with Malloc):
884 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
886 2001-11-27 Akim Demaille <akim@epita.fr>
888 * src/files.c: Include error.h.
891 2001-11-26 Akim Demaille <akim@epita.fr>
895 2001-11-26 Akim Demaille <akim@epita.fr>
897 * src/reader.c (readgram): Make sure rules for mid-rule actions
898 have a lineno equal to that of their host rule.
899 Reported by Hans Aberg.
900 * tests/regression.at (Rule Line Numbers): New.
902 2001-11-26 Akim Demaille <akim@epita.fr>
904 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
906 Reported by Hans Aberg.
908 2001-11-26 Akim Demaille <akim@epita.fr>
910 * src/complain.c, src/complain.h (error): Remove, provided by
913 2001-11-26 Akim Demaille <akim@epita.fr>
915 * src/reader.c (read_declarations): Don't abort on tok_illegal,
916 issue an error message.
917 * tests/regression.at (Invalid %directive): New.
918 Reported by Hans Aberg.
920 2001-11-26 Akim Demaille <akim@epita.fr>
922 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
923 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
925 2001-11-26 Akim Demaille <akim@epita.fr>
927 * src/conflicts.c (conflicts_print): Don't complain at all when
928 there are no reduce/reduce conflicts, and as many shift/reduce
929 conflicts as expected.
930 * tests/regression.at (%expect right): Adjust.
932 2001-11-23 Akim Demaille <akim@epita.fr>
934 * lib/alloca.c: Update, from fileutils.
936 2001-11-23 Akim Demaille <akim@epita.fr>
938 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
940 2001-11-23 Akim Demaille <akim@epita.fr>
942 * src/system.h: Include alloca.h.
943 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
945 2001-11-23 Akim Demaille <akim@epita.fr>
947 * src/print_graph.c (print_actions): Remove `rule', unused.
948 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
949 pacify GCC's signed < unsigned warnings.
950 * src/closure.c (itemsetsize): Likewise.
951 * src/reader.c (symbol_list_new): Static.
953 2001-11-23 Akim Demaille <akim@epita.fr>
955 Attaching lineno to buckets is stupid, since only one copy of each
956 symbol is kept, only the line of the first occurrence is kept too.
958 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
959 * src/reader.c (rline_allocated): Remove, unused.
960 (symbol_list): Have a `line' member.
961 (symbol_list_new): New.
963 * src/print.c (print_grammar): Output the rule line numbers.
964 * tests/regression.at (Solved SR Conflicts)
965 (Unresolved SR Conflicts): Adjust.
966 Reported by Hans Aberg.
968 2001-11-20 Akim Demaille <akim@epita.fr>
972 2001-11-20 Akim Demaille <akim@epita.fr>
975 * configure.in (ALL_LINGUAS): Adjust.
976 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
977 longer contains strings to translate.
979 2001-11-19 Akim Demaille <akim@epita.fr>
981 * src/conflicts.c (conflicts_print): Add a missing \n.
983 2001-11-19 Akim Demaille <akim@epita.fr>
985 * src/nullable.c (nullable_print): New.
986 (set_nullable): Call it when tracing.
987 Better locality of variables.
989 2001-11-19 Akim Demaille <akim@epita.fr>
991 * src/print.c (print_actions): Better locality of variables.
993 2001-11-19 Akim Demaille <akim@epita.fr>
995 * src/derives.c (print_derives): Fix and enrich.
996 * src/closure.c (print_fderives): Likewise.
998 2001-11-19 Akim Demaille <akim@epita.fr>
1000 * src/closure.c (itemsetend): Remove, replaced with...
1003 2001-11-19 Akim Demaille <akim@epita.fr>
1005 * src/LR0.c (kernel_end): Remove, replaced with...
1008 2001-11-19 Akim Demaille <akim@epita.fr>
1010 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1013 2001-11-19 Akim Demaille <akim@epita.fr>
1015 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1017 2001-11-19 Akim Demaille <akim@epita.fr>
1019 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1021 * src/LR0.c: Likewise.
1022 (allocate_itemsets): Use arrays instead of pointers to clarify.
1024 2001-11-19 Akim Demaille <akim@epita.fr>
1026 * src/getargs.c (statistics_flag): Replace with...
1028 (longopts): Accept --trace instead of --statistics.
1029 * src/getargs.h: Adjust.
1030 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1031 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1033 2001-11-19 Akim Demaille <akim@epita.fr>
1035 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1036 pointers to clarify the code.
1037 (save_reductions, save_shifts): Factor common parts of alternatives.
1039 2001-11-19 Akim Demaille <akim@epita.fr>
1041 * src/LR0.c (new_state, get_state): Complete TRACE code.
1042 * src/closure.c: Include `reader.h' to get `tags', needed by the
1044 Rename the conditional DEBUG as TRACE.
1045 Output consistently TRACEs to stderr, not stdout.
1046 * src/derives.c: Likewise.
1047 * src/reduce.c: (inaccessable_symbols): Using if is better style
1049 Use `#if TRACE' instead of `#if 0' for tracing code.
1051 2001-11-19 Akim Demaille <akim@epita.fr>
1053 * src/system.h (LIST_FREE, shortcpy): New.
1054 * src/LR0.c: Use them.
1055 * src/output.c (free_itemsets, free_reductions, free_shifts):
1056 Remove, replaced by LIST_FREE.
1058 2001-11-19 Akim Demaille <akim@epita.fr>
1060 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1061 (REDUCTIONS_ALLOC): New.
1062 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1065 2001-11-19 Akim Demaille <akim@epita.fr>
1067 * src/LR0.c (new_state): Complete trace code.
1068 * src/nullable.c (set_nullable): Don't translate traces.
1070 2001-11-19 Akim Demaille <akim@epita.fr>
1072 * src/print_graph.c (print_core): Better locality of variables.
1073 * src/print.c (print_core): Likewise.
1075 2001-11-19 Akim Demaille <akim@epita.fr>
1077 * src/vcg.c: You do the output, so you are responsible of the
1078 handling of VCG syntax, in particular: use quotearg.
1079 * src/print_graph.c: Don't.
1080 (print_actions): Don't output the actions as part of the nodes,
1081 since that's the job of the edges.
1082 (print_state): Don't output by hand: fill the node description,
1083 and ask for its output.
1085 2001-11-19 Akim Demaille <akim@epita.fr>
1087 * src/bison.simple (yyparse): When verbosely reporting an error,
1088 no longer put additional quotes around token names.
1089 * tests/calc.at: Adjust.
1091 2001-11-19 Akim Demaille <akim@epita.fr>
1093 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
1094 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
1095 * src/output.c: Adjust.
1097 2001-11-19 Akim Demaille <akim@epita.fr>
1099 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
1101 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
1103 2001-11-19 Akim Demaille <akim@epita.fr>
1105 * src/gram.h (rule_t): New.
1107 (rrhs, rlhs): Remove, part of state_t.
1108 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
1109 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1110 * src/reader.c, src/reduce.c: Adjust.
1112 2001-11-19 Akim Demaille <akim@epita.fr>
1114 * src/reader.c (symbols_output): New, extracted from...
1115 (packsymbols): Here.
1118 2001-11-19 Akim Demaille <akim@epita.fr>
1120 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
1121 (maxrhs): this new function.
1123 2001-11-19 Akim Demaille <akim@epita.fr>
1125 * src/lalr.c (F): New macro to access the variable F.
1128 2001-11-19 Akim Demaille <akim@epita.fr>
1130 * src/lalr.h (LA): New macro to access the variable LA.
1131 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1132 * src/lalr.c: Adjust.
1134 2001-11-19 Akim Demaille <akim@epita.fr>
1136 * src/lalr.c (initialize_LA): Only initialize LA. Let...
1137 (set_state_table): handle the `lookaheads' members.
1139 2001-11-19 Akim Demaille <akim@epita.fr>
1141 * src/lalr.h (lookaheads): Removed array, whose contents is now
1143 (state_t): this structure.
1144 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1147 2001-11-19 Akim Demaille <akim@epita.fr>
1149 * src/lalr.h (consistent): Removed array, whose contents is now
1151 (state_t): this structure.
1152 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1155 2001-11-19 Akim Demaille <akim@epita.fr>
1157 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
1158 contents are now members of...
1159 (state_t): this structure.
1160 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1163 2001-11-19 Akim Demaille <akim@epita.fr>
1165 * src/lalr.h (state_t): New.
1166 (state_table): Be a state_t * instead of a core **.
1167 (accessing_symbol): Remove, part of state_t.
1168 * src/lalr.c: Adjust.
1169 (set_accessing_symbol): Merge into...
1170 (set_state_table): this.
1171 * src/print_graph.c, src/conflicts.c: Adjust.
1173 2001-11-14 Akim Demaille <akim@epita.fr>
1177 2001-11-14 Akim Demaille <akim@epita.fr>
1179 * tests/calc.at, tests/output.at, tests/regression.at,
1180 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
1181 now the tests are run in private dirs, therefore AC_CLEANUP and
1182 family can be simplified to 0-ary.
1183 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
1184 use abs. path to find config.h.
1186 2001-11-14 Akim Demaille <akim@epita.fr>
1188 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
1189 stderr, there can be way too much random noise.
1190 Instead pass -Werror to GCC and rely on the exit status.
1191 Reported by Wolfram Wagner.
1193 2001-11-14 Akim Demaille <akim@epita.fr>
1195 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
1196 defined only if yyoverflow is defined, to avoid `warning: unused
1198 Reported by The Test Suite.
1200 2001-11-14 Akim Demaille <akim@epita.fr>
1202 * src/print.c: Include reduce.h.
1203 Reported by Hans Aberg.
1205 2001-11-14 Akim Demaille <akim@epita.fr>
1207 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
1208 Revert a previous patch: these are really const.
1209 * src/conflicts.c (conflict_report): Additional useless pair of
1210 braces to pacify GCC's warnings for `if () if () {} else {}'.
1211 * src/lex.c (parse_percent_token): Replace equal_offset with
1214 Be sure to strdup `arg' when used, since there is no reason for
1215 token_buffer not to change.
1217 2001-11-14 Akim Demaille <akim@epita.fr>
1219 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
1221 * src/main.c (main): Use them.
1222 Suggested by Hans Aberg.
1224 2001-11-12 Akim Demaille <akim@epita.fr>
1228 * src/system.h (ngettext): Now that we use ngettext, be sure to
1229 provide a default definition when NLS are not used that takes care
1232 2001-11-12 Akim Demaille <akim@epita.fr>
1234 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
1235 Use @kbd to denote user input.
1236 (Language and Grammar): ANSIfy the example.
1237 Adjust its layout for info/notinfo.
1238 (Location Tracking Calc): Output error messages to stderr.
1239 Output locations in a more GNUtically correct way.
1240 Fix a couple of Englishos.
1241 Adjust @group/@end group pairs.
1243 2001-11-12 Akim Demaille <akim@epita.fr>
1245 %expext was not functioning at all.
1247 * src/conflicts.c (expected_conflicts): Set to -1.
1248 (conflict_report): Use ngettext.
1249 (conflicts_print): Check %expect and make its violation an error.
1250 * doc/bison.texinfo (Expect Decl): Adjust.
1251 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
1252 * tests/regression.at (%expect not enough, %expect right)
1253 (%expect too much): New.
1255 2001-11-12 Akim Demaille <akim@epita.fr>
1257 * tests/regression.at (Conflicts): Rename as...
1258 (Unresolved SR Conflicts): this.
1259 (Solved SR Conflicts): New.
1261 2001-11-12 Akim Demaille <akim@epita.fr>
1263 * src/reduce.c (print_results): Rename as...
1264 (reduce_output): This.
1265 Output to OUT, passed as argument, instead of output_obstack.
1266 (dump_grammar): Likewise.
1269 (reduce_grammar): No longer call reduce_output, since...
1270 * src/print.c (print_results): do it.
1271 * src/main.c (main): Call reduce_free;
1273 2001-11-12 Akim Demaille <akim@epita.fr>
1275 * src/conflicts.c (print_reductions): Accept OUT as argument.
1276 Output to it, not to output_obstack.
1277 * src/print.c (print_actions): Adjust.
1279 2001-11-12 Akim Demaille <akim@epita.fr>
1281 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
1282 the result instead of using...
1283 (src_total, rrc_total, src_count, rrc_count): Remove.
1284 (any_conflicts): Remove.
1285 (print_conflicts): Split into...
1286 (conflicts_print, conflicts_output): New.
1287 * src/conflicts.h: Adjust.
1288 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
1289 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
1290 * tests/regression.at (Conflicts): New.
1291 Reported by Tom Lane.
1293 2001-11-12 Akim Demaille <akim@epita.fr>
1295 * tests/regression.at (Invalid input): Remove, duplicate with
1296 ``Invalid input: 1''.
1298 2001-11-12 Akim Demaille <akim@epita.fr>
1300 * tests/torture.at (AT_DATA_STACK_TORTURE)
1301 (Exploding the Stack Size with Alloca)
1302 (Exploding the Stack Size with Malloc): New.
1304 2001-11-12 Akim Demaille <akim@epita.fr>
1306 * src/bison.simple (YYSTACK_REALLOC): New.
1307 (yyparse) [!yyoverflow]: Use it and free the old stack.
1308 Reported by Per Allansson.
1310 2001-11-05 Akim Demaille <akim@epita.fr>
1313 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1315 2001-11-05 Akim Demaille <akim@epita.fr>
1317 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1320 2001-11-05 Akim Demaille <akim@epita.fr>
1322 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1323 with yyltype/YYLTYPE. This allows inclusion of the generated
1324 header within the parser if the compiler, such as GGC, accepts
1325 multiple equivalent #defines.
1327 2001-11-04 Akim Demaille <akim@epita.fr>
1329 * src/getargs.c (longopts): Support `--output'. getopt is now
1330 able to understand that `--out' is OK: the two racing long options
1333 * src/lex.h (tok_setopt): Remove, replaced with...
1334 (tok_intopt, tok_stropt): these new guys.
1335 * src/lex.c (getopt.h): Not needed.
1336 (token_buffer, unlexed_token_buffer): Not const.
1337 (percent_table): Promote `-' over `_' in directive names.
1338 Active `%name-prefix', `file-prefix', and `output'.
1339 (parse_percent_token): Accept possible arguments to directives.
1340 Promote `-' over `_' in directive names.
1341 * doc/bison.texinfo (Decl Summary): Split the list into
1342 `directives for grammars' and `directives for bison'.
1344 Add description of `%name-prefix', `file-prefix', and `output'.
1345 Promote `-' over `_' in directive names.
1346 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1347 Simplify the description of `--name-prefix'.
1348 Promote `-' over `_' in directive names.
1349 Promote `--output' over `--output-file'.
1350 Fix the description of `--defines'.
1351 * tests/output.at: Exercise %file-prefix and %output.
1353 2001-11-02 Akim Demaille <akim@epita.fr>
1355 * doc/refcard.tex: Update.
1357 2001-11-02 Akim Demaille <akim@epita.fr>
1359 * src/symtab.h (SUNDEF): New.
1360 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1361 stand for `uninitialized', instead of 0.
1362 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1363 * src/lex.c (lex): Adjust.
1365 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1367 Let yylex return it instead of a plain 0.
1368 Reported by Dick Streefland.
1370 2001-11-02 Akim Demaille <akim@epita.fr>
1372 * tests/regression.at (Mixing %token styles): New test.
1374 2001-11-02 Akim Demaille <akim@epita.fr>
1376 * src/reader.c (parse_thong_decl): Formatting changes.
1377 (token_translations_init): New, extracted from...
1378 (packsymbols): Here.
1381 2001-11-01 Akim Demaille <akim@epita.fr>
1383 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1384 Check that `9foo.y' produces correct cpp guards.
1385 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1389 2001-11-01 Akim Demaille <akim@epita.fr>
1391 * tests/regression.at (Invalid input: 2): New.
1392 * src/lex.c (unlexed_token_buffer): New.
1393 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1397 2001-11-01 Akim Demaille <akim@epita.fr>
1399 * configure.in: Bump to 1.30a.
1400 Adjust to newer Autotest.
1402 2001-10-26 Akim Demaille <akim@epita.fr>
1406 2001-10-26 Paul Eggert <eggert@twinsun.com>
1408 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
1409 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
1410 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
1411 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
1412 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
1413 Sync with fileutils 4.1.1.
1415 2001-10-18 Akim Demaille <akim@epita.fr>
1418 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1419 avoid spurious failures.
1421 2001-10-18 Akim Demaille <akim@epita.fr>
1425 2001-10-18 Akim Demaille <akim@epita.fr>
1427 * tests/atlocal.in (GCC): Add.
1428 * tests/calc.at: s/m4_match/m4_bmatch/.
1429 s/m4_patsubst/m4_bpatsubst/.
1430 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1431 * configure.in: AC_SUBST(GCC).
1433 2001-10-10 Akim Demaille <akim@epita.fr>
1436 * configure.in: M4 is no longer needed, but autom4te is.
1437 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1440 2001-10-10 Akim Demaille <akim@epita.fr>
1444 2001-10-10 Akim Demaille <akim@epita.fr>
1447 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1448 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1449 Reported by Airy Andre.
1451 2001-10-10 Akim Demaille <akim@epita.fr>
1453 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1454 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1456 2001-10-02 Akim Demaille <akim@epita.fr>
1460 2001-10-02 Akim Demaille <akim@epita.fr>
1464 2001-10-02 Akim Demaille <akim@epita.fr>
1466 * tests/regression.at (Invalid CPP headers): New.
1467 From Alexander Belopolsky.
1468 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1470 2001-10-02 Akim Demaille <akim@epita.fr>
1472 * tests/regression.at (Invalid input): New.
1473 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1476 2001-10-02 Akim Demaille <akim@epita.fr>
1478 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1480 2001-10-02 Akim Demaille <akim@epita.fr>
1482 * src/output.c (output_parser): Assert `skeleton'.
1483 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1487 2001-10-01 Marc Autret <autret_m@epita.fr>
1489 * src/lex.h: Echo modifications.
1490 * src/lex.c (unlex): Parameter is now token_t.
1493 2001-10-01 Marc Autret <autret_m@epita.fr>
1495 * src/main.c: Include lex.h.
1498 2001-09-29 Akim Demaille <akim@epita.fr>
1500 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1502 2001-09-28 Akim Demaille <akim@epita.fr>
1504 * tests/testsuite.at: Update to newer Autotest.
1505 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1507 2001-09-27 Akim Demaille <akim@epita.fr>
1509 Position independent wrapper.
1511 * tests/bison: Remove.
1512 * tests/bison.in: New.
1513 * configure.in: Adjust.
1515 2001-09-27 Paul Eggert <eggert@twinsun.com>
1517 Port quotearg fixes from tar 1.13.24.
1519 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1521 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1522 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1524 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1525 * m4/mbrtowc.m4: New file.
1526 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1527 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1529 2001-09-27 Akim Demaille <akim@epita.fr>
1533 2001-09-27 Akim Demaille <akim@epita.fr>
1537 2001-09-25 Akim Demaille <akim@epita.fr>
1539 * src/system.h: Include `xalloc.h'.
1540 Remove it from the C files.
1541 * src/files.c (output_files): Free the obstacks.
1542 * src/lex.c (init_lex): Rename as...
1545 * src/main.c (main): Use it.
1547 2001-09-24 Marc Autret <autret_m@epita.fr>
1549 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1550 to output informations in fout (FILE*).
1551 (open_graph, close_graph): Likewise.
1552 (output_graph, output_edge, output_node): Likewise.
1553 * src/vcg.h: Update function prototypes.
1554 * src/print_graph.c (print_graph): Open output graph file.
1555 (print_actions): Adjust.
1556 * src/files.h: Remove extern declaration.
1557 * src/files.c: Remove graph_obstack declaration.
1558 (open_files): Remove graph_obstack initialization.
1559 (output_files): Remove graph_obstack saving.
1561 2001-09-24 Marc Autret <autret_m@epita.fr>
1563 * src/files.c (compute_output_file_names): Fix.
1565 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1567 * src/reader.c (reader): Remove call to free_symtab ().
1568 * src/main.c (main): Call it here.
1570 * src/conflicts.c (initialize_conflicts): Rename as...
1571 (solve_conflicts): this.
1572 * src/print.c (print_core, print_actions, print_state)
1573 (print_grammar): Dump to a file instead a `output_obstack'.
1574 (print_results): Dump `output_obstack', and then proceed with the
1576 * src/files.c (compute_output_file_names, close_files): New.
1577 (output_files): Adjust.
1578 * src/main.c (main): Adjust.
1580 2001-09-23 Marc Autret <autret_m@epita.fr>
1582 * src/files.c (compute_header_macro): Computes header macro name
1583 from spec_defines_file when given.
1585 2001-09-23 Marc Autret <autret_m@epita.fr>
1587 * src/files.c (output_files): Add default extensions.
1589 2001-09-22 Akim Demaille <akim@epita.fr>
1591 * src/conflicts.c (finalize_conflicts): Rename as...
1592 (free_conflicts): this.
1594 2001-09-22 Akim Demaille <akim@epita.fr>
1596 * src/gram.c (gram_free): Rename back as...
1598 (output_token_translations): Free `token_translations'.
1599 * src/symtab.c (free_symtab): Free the tag field.
1601 2001-09-22 Akim Demaille <akim@epita.fr>
1603 Remove `translations' as it is always set to true.
1605 * src/gram.h: Adjust.
1606 * src/reader.c (packsymbols, parse_token_decl): Adjust
1607 * src/print.c (print_grammar): Adjust.
1608 * src/output.c (output_token_translations): Adjust.
1609 * src/lex.c (lex): Adjust.
1610 * src/gram.c: Be sure the set pointers to NULL.
1611 (dummy): Rename as...
1614 2001-09-22 Akim Demaille <akim@epita.fr>
1616 * configure.in: Invoke AM_LIB_DMALLOC.
1617 * src/system.h: Use dmalloc.
1618 * src/LR0.c: Be sure to have pointers initialized to NULL.
1619 (allocate_itemsets): Allocate kernel_items only if needed.
1621 2001-09-22 Akim Demaille <akim@epita.fr>
1623 * configure.in: Bump to 1.29b.
1624 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1625 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1626 need xmalloc.c in calc.y.
1629 2001-09-21 Akim Demaille <akim@epita.fr>
1632 * Makefile.maint, config/config.guess, config/config.sub,
1633 * config/missing: Update from masters.
1634 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1636 * configure.in (ALL_LINGUAS): Add `tr'.
1638 2001-09-21 Akim Demaille <akim@epita.fr>
1640 * tests/Makefile.am (package.m4): Move to...
1641 ($(srcdir)/$(TESTSUITE)): here.
1643 2001-09-20 Akim Demaille <akim@epita.fr>
1645 * src/complain.c: No longer try to be standalone: use system.h.
1646 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1647 * src/complain.h: Likewise.
1648 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1649 Remove the unused variable `n'.
1650 From Albert Chin-A-Young.
1652 2001-09-18 Marc Autret <autret_m@epita.fr>
1654 * doc/bison.1: Update.
1655 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1657 (Option Cross Key): Update.
1660 2001-09-18 Marc Autret <autret_m@epita.fr>
1662 * tests/regression.at: New test (comment in %union).
1664 2001-09-18 Marc Autret <autret_m@epita.fr>
1666 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1668 Reported by Keith Browne.
1670 2001-09-18 Marc Autret <autret_m@epita.fr>
1672 * tests/output.at: Add tests for --defines and --graph.
1674 2001-09-18 Marc Autret <autret_m@epita.fr>
1676 * tests/output.at: Removes tests of %{header,src}_extension features.
1678 2001-09-18 Akim Demaille <akim@epita.fr>
1680 * tests/Makefile.am (package.m4): New.
1681 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1682 (_AT_CHECK_CALC_ERROR): Likewise.
1683 Factor the `, ' part of verbose error messages.
1685 2001-09-18 Marc Autret <autret_m@epita.fr>
1687 * src/getargs.c (longopts): Declare --defines and --graph as options
1688 with optional arguments.
1689 * src/files.h: Add extern declarations.
1690 * src/files.c (spec_graph_file, spec_defines_file): New.
1691 (output_files): Update.
1692 Remove CPP-outed code.
1694 2001-09-18 Marc Autret <autret_m@epita.fr>
1696 Turn off %{source,header}_extension feature.
1698 * src/files.c (compute_exts_from_gf): Update.
1699 (compute_exts_from_src): Update.
1700 (output_files): CPP-out useless code.
1701 * src/files.h: Remove {header,source}_extension extern declarations.
1702 * src/reader.c (parse_dquoted_param): CPP-out.
1703 (parse_header_extension_decl): Remove.
1704 (parse_source_extension_decl): Remove.
1705 (read_declarations): Remove cases tok_{hdrext,srcext}.
1706 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1707 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1709 2001-09-10 Akim Demaille <akim@epita.fr>
1711 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1712 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1713 (AT_CHECK_OUTPUT): this.
1714 Merely check ls' exit status, its output is useless.
1716 2001-09-10 Akim Demaille <akim@epita.fr>
1718 * tests/calc.at: Use m4_match.
1719 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1721 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1723 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1725 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1727 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1728 * src/lex.h: Adjust prototype.
1729 (token_t): Add `tok_undef'.
1730 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1731 (parse_percent_token): Now returns token_t.
1732 Add default statement in switch.
1733 (lex): Separate `c' as an input variable, from the token_t result
1735 (unlexed): Is a token_t.
1737 2001-09-10 Akim Demaille <akim@epita.fr>
1739 * configure.in: Bump to 1.29a.
1741 2001-09-07 Akim Demaille <akim@epita.fr>
1745 2001-08-30 Akim Demaille <akim@epita.fr>
1747 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1748 * m4/atconfig.m4: Remove.
1749 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1751 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1752 m4_if, m4_patsubst, and m4_regexp.
1753 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1754 `input' file instead of echo.
1756 2001-08-29 Akim Demaille <akim@epita.fr>
1760 2001-08-29 Akim Demaille <akim@epita.fr>
1764 2001-08-29 Paul Eggert <eggert@twinsun.com>
1766 * src/bison.simple (yyparse): Don't take the address of an
1767 item before the start of an array, as that doesn't conform to
1770 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1772 * doc/bison.texinfo (Location Tracking Calc): New node.
1774 2001-08-29 Paul Eggert <eggert@twinsun.com>
1776 * src/output.c (output): Do not define const, as this now
1777 causes more problems than it cures.
1779 2001-08-29 Akim Demaille <akim@epita.fr>
1781 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1783 Be sure to tag the `detailmenu'.
1785 2001-08-29 Akim Demaille <akim@epita.fr>
1787 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1788 download in a tmp dir.
1790 2001-08-28 Marc Autret <autret_m@epita.fr>
1792 * config/depcomp: New file.
1794 2001-08-28 Marc Autret <autret_m@epita.fr>
1796 * doc/bison.1 (mandoc): Adjust.
1797 From Juan Manuel Guerrero.
1799 2001-08-28 Marc Autret <autret_m@epita.fr>
1801 * src/print_graph.c (print_state): Fix.
1803 2001-08-27 Marc Autret <autret_m@epita.fr>
1805 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1807 Echo modifications to the functions prototypes.
1808 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1810 2001-08-27 Marc Autret <autret_m@epita.fr>
1812 * src/vcg.c: Include `xalloc.h'.
1813 (add_colorentry): New.
1814 (add_classname): New.
1815 (add_infoname): New.
1816 * src/vcg.h: Add new prototypes.
1818 2001-08-27 Akim Demaille <akim@epita.fr>
1820 * Makefile.maint: Sync. again with CVS Autoconf.
1822 2001-08-27 Akim Demaille <akim@epita.fr>
1824 * Makefile.maint: Formatting changes.
1825 (po-update, cvs-update, update): New targets.
1828 2001-08-27 Akim Demaille <akim@epita.fr>
1830 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1831 * Makefile.maint: Sync. with CVS Autoconf.
1833 2001-08-27 Marc Autret <autret_m@epita.fr>
1835 * src/vcg.h (struct infoname_s): New.
1836 (struct colorentry_s): New.
1837 (graph_s): New fields {vertical,horizontal}_order in structure.
1838 Add `infoname' field.
1839 Add `colorentry' field;
1840 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1841 (G_HORIZONTAL_ORDER): New.
1843 (G_COLORENTRY): New.
1844 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1845 Add output of `infoname'.
1846 Add output of `colorentry'.
1848 2001-08-27 Marc Autret <autret_m@epita.fr>
1850 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1851 This one shadowed a global parameter.
1853 2001-08-24 Marc Autret <autret_m@epita.fr>
1855 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1856 instead of `unsigned'.
1857 (print_state): Do not call obstack_object_size () in obstack_grow ()
1858 to avoid macro variables shadowing.
1860 2001-08-23 Marc Autret <autret_m@epita.fr>
1862 * src/lex.c (percent_table): Typo: s/naem/name/.
1864 Normalize new options declarations.
1866 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1868 * tests/suite.at: Exercise %header_extension and %source_extension.
1870 2001-08-16 Marc Autret <autret_m@epita.fr>
1872 * src/reader.c (parse_dquoted_param): New.
1873 (parse_header_extension_decl): Use it.
1874 (parse_source_extension_decl): Likewise.
1876 2001-08-16 Marc Autret <autret_m@epita.fr>
1878 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1879 (get_xxxx_str): Use assert () instead of complain ().
1880 Remove return invokations in default cases.
1881 (get_decision_str): Modify default behaviour. Remove second argument.
1882 Echo modifications on calls.
1883 (output_graph): Fix.
1885 2001-08-16 Marc Autret <autret_m@epita.fr>
1887 * src/getargs.c (usage): Update with ``-g, --graph''.
1889 2001-08-16 Marc Autret <autret_m@epita.fr>
1891 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1892 (Option Cross Key): Likewise.
1893 * doc/bison.1: Update.
1895 2001-08-15 Akim Demaille <akim@epita.fr>
1899 2001-08-15 Marc Autret <autret_m@epita.fr>
1901 * src/reader.c (readgram): Indent output macro YYSTYPE.
1902 (packsymbols): Likewise.
1903 (output_token_defines): Likewise.
1904 * src/files.c: Standardize.
1905 (compute_header_macro): New.
1906 (defines_obstack_save): New. Use compute_header_macro.
1907 (output_files): Update. Use defines_obstack_save.
1909 2001-08-15 Akim Demaille <akim@epita.fr>
1911 * doc/bison.texinfo (Table of Symbols): Document
1914 2001-08-15 Akim Demaille <akim@epita.fr>
1916 * missing: Update from CVS Automake.
1917 * config/config.guess, config/config.sub, config/texinfo.tex:
1918 Update from gnu.org.
1920 2001-08-15 Akim Demaille <akim@epita.fr>
1922 * Makefile.maint: Sync with CVS Autoconf.
1924 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1926 * doc/bison.texinfo: Include GNU Free Documentation License from
1928 * doc/fdl.texi: Add to package.
1930 2001-08-14 Marc Autret <autret_m@epita.fr>
1932 Turn on %{source,header}_extension features.
1934 * src/lex.c (percent_table): Un-CPP out header_extension and
1936 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1937 (compute_exts_from_src): Remove conditions. It restores priorities
1940 2001-08-14 Marc Autret <autret_m@epita.fr>
1942 * src/files.c (compute_base_names): Add extensions computing when
1943 `--file-prefix' used.
1944 Standardize function calls.
1946 2001-08-13 Marc Autret <autret_m@epita.fr>
1948 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1949 defining it (defined but null disables alloca).
1951 2001-08-13 Marc Autret <autret_m@epita.fr>
1953 * src/bison.simple (_yy_memcpy): CPP reformat.
1955 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1957 * tests/atconfig.in (CPPFLAGS): Fix.
1959 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1961 * doc/bison.texinfo: Include GNU General Public License from
1963 * doc/gpl.texi: Add to package.
1965 2001-08-10 Marc Autret <autret_m@epita.fr>
1967 * src/print_graph.h: Fix.
1968 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1970 2001-08-10 Akim Demaille <akim@epita.fr>
1972 * src/system.h: Provide default declarations for stpcpy, strndup,
1975 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1977 * doc/bison.texinfo (Locations): Update @$ stuff.
1979 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1981 * src/bison.simple (YYLLOC_DEFAULT): Update.
1984 2001-08-08 Marc Autret <autret_m@epita.fr>
1986 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1987 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1988 Reported by Fabrice Bauzac.
1990 2001-08-08 Marc Autret <autret_m@epita.fr>
1992 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1993 * src/vcg.c (output_node): Fix.
1994 * src/vcg.h: Cleanup.
1995 * src/print_graph.c: Add comments.
1996 (node_output_size): New global variable. Simplify the formatting of
1997 the VCG graph output.
1998 (print_actions): Unused code is now used. It notifies the final state
1999 and no action states in the VCG graph. It also give the reduce actions.
2000 The `shift and goto' edges are red and the `go to state' edges are
2002 Get the current node name and node_obstack by argument.
2003 (node_obstack): New variable.
2004 (print_state): Manage node_obstack.
2005 (print_core): Use node_obstack given by argument.
2006 A node is not only computed here but in print_actions also.
2007 (print_graph): CPP out useless code instead of commenting it.
2009 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
2011 * tests/atconfig.in (CPPFLAGS): Fix.
2013 2001-08-07 Akim Demaille <akim@epita.fr>
2015 * src/print_graph.c (quote): New.
2016 (print_core): Use it.
2018 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
2020 * src/vcg.c (complain.h): Include it.
2021 Unepitaize `return' invocations.
2022 [NDEBUG] (main): Remove.
2023 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
2024 * src/files.c (open_files): Initialize graph_obstack.
2025 * src/print_graph.c (print_actions): CPP out useless code.
2026 (print_core): Don't output the last `\n' in labels.
2028 * src/files.c (output_files): Output the VCG file.
2029 * src/main.c (main): Invoke print_graph ();
2031 2001-08-06 Marc Autret <autret_m@epita.fr>
2033 Automaton VCG graph output.
2034 Using option ``-g'' or long option ``--graph'', you can generate
2035 a gram_filename.vcg file containing a VCG description of the LALR (1)
2036 automaton of your grammar.
2038 * src/main.c: Call to print_graph() function.
2039 * src/getargs.h: Update.
2040 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
2041 (graph_flag): New flag.
2043 (getargs): Add case `g'.
2044 * src/files.c (graph_obstack): New obstack struct.
2045 (open_files): Initialize new obstack.
2046 (output_files): Saves graph_obstack if required.
2047 * src/files.h (graph_obstack): New extern declaration.
2048 * src/Makefile.am: Add new source files.
2050 2001-08-06 Marc Autret <autret_m@epita.fr>
2052 * src/print_graph.c, src/print_graph.h (graph): New.
2053 * src/vcg.h: New file.
2054 * src/vcg.c: New file, VCG graph handling.
2056 2001-08-06 Marc Autret <autret_m@epita.fr>
2058 Add of %source_extension and %header_extension which specify
2059 the source or/and the header output file extension.
2061 * src/files.c (compute_base_names): Remove initialisation of
2062 src_extension and header_extension.
2063 (compute_exts_from_gf): Update.
2064 (compute_exts_from_src): Update.
2065 (output_files): Update.
2066 * src/reader.c (parse_header_extension_decl): New.
2067 (parse_source_extension_decl): New.
2068 (read_declarations): New case statements for the new tokens.
2069 * src/lex.c (percent_table): Add entries for %source_extension
2070 and %header_extension.
2071 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
2073 2001-08-06 Marc Autret <autret_m@epita.fr>
2075 * configure.in: Bump to 1.28c.
2076 * doc/bison.texinfo: Texinfo thingies.
2078 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
2080 * tests/atconfig.in (CPPFLAGS): Add.
2081 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
2083 2001-08-03 Akim Demaille <akim@epita.fr>
2087 2001-08-03 Akim Demaille <akim@epita.fr>
2089 * tests/Makefile.am (check-local): Ship testsuite.
2090 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
2093 2001-08-03 Akim Demaille <akim@epita.fr>
2095 * configure.in: Try using -Wformat when compiling.
2097 2001-08-03 Akim Demaille <akim@epita.fr>
2099 * configure.in: Bump to 1.28b.
2101 2001-08-03 Akim Demaille <akim@epita.fr>
2103 * src/complain.c: Adjust strerror_r portability issues.
2105 2001-08-03 Akim Demaille <akim@epita.fr>
2109 2001-08-03 Akim Demaille <akim@epita.fr>
2111 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2112 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2113 * src/getargs.c: Include complain.h.
2114 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2115 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2117 2001-08-03 Akim Demaille <akim@epita.fr>
2119 * src/reader.c (readgram): Display hidden chars in error messages.
2121 2001-08-03 Akim Demaille <akim@epita.fr>
2123 Update to gettext 0.10.39.
2125 2001-08-03 Akim Demaille <akim@epita.fr>
2127 * lib/strspn.c: New.
2129 2001-08-01 Marc Autret <autret_m@epita.fr>
2131 * doc/bison.texinfo: Update.
2132 * doc/bison.1 (mandoc): Update.
2133 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2134 * src/files.c: Support output files extensions computing.
2135 (src_extension): New static variable.
2136 (header_extension): New static variable.
2138 (get_extension_index): New function, gets the index of an extension
2139 filename in a string.
2140 (compute_exts_from_gf): New function, computes extensions from the
2141 grammar file extension.
2142 (compute_exts_from_src): New functions, computes extensions from the
2143 C source file extension, file given by ``-o'' option.
2144 (compute_base_names): Update.
2145 (output_files): Update.
2147 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2149 * doc/bison.texi: Document @$.
2150 (Locations): New section.
2152 2001-07-18 Akim Demaille <akim@epita.fr>
2154 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2155 * config/prev-version.txt, config/move-if-change: New.
2156 * Makefile.am: Adjust.
2158 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2160 * src/bison.simple (yyparse): Suppress warning `comparaison
2161 between signed and unsigned'.
2163 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2165 * src/getargs.h (raw_flag): Remove.
2166 * src/getargs.c: Die on `-r'/`--raw'.
2167 * src/lex.c (parse_percent_token): Die on `%raw'.
2168 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2169 * tests/calc.at: Suppress test with option `--raw'.
2171 2001-07-14 Akim Demaille <akim@epita.fr>
2174 * configure.in: Require Autoconf 2.50.
2175 Update to gettext 0.10.38.
2177 2001-03-16 Akim Demaille <akim@epita.fr>
2179 * doc/bison.texinfo: ANSIfy the examples.
2181 2001-03-16 Akim Demaille <akim@epita.fr>
2183 * getargs.c (skeleton): New variable.
2184 (longopts): --skeleton is a new option.
2185 (shortopts, getargs): -S is a new option.
2186 * getargs.h: Declare skeleton.
2187 * output.c (output_parser): Use it.
2189 2001-03-16 Akim Demaille <akim@epita.fr>
2191 * m4/strerror_r.m4: New.
2192 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2193 * lib/error.h, lib/error.c: Update.
2195 2001-03-16 Akim Demaille <akim@epita.fr>
2197 * src/getargs.c (longopts): Clean up.
2199 2001-02-21 Akim Demaille <akim@epita.fr>
2201 * src/reader.c (gensym): `gensym_count' is your own.
2202 Use a static buf to create the symbol name, as token_buffer is no
2205 2001-02-08 Akim Demaille <akim@epita.fr>
2207 * src/conflicts.c (conflict_report): Be sure not to append to res
2208 between two calls, which could happen if both first sprintf were
2209 skipped, but not the first cp += strlen.
2211 2001-02-08 Akim Demaille <akim@epita.fr>
2213 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2214 New, from fileutils 4.0.37.
2215 * configure.in: Require Autoconf 2.49c. I took some time before
2216 making this decision. This is the only way out for portability
2217 issues in Bison, it would mean way too much duplicate effort to
2218 import in Bison features implemented in 2.49c since 2.13.
2219 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2221 2001-02-02 Akim Demaille <akim@epita.fr>
2223 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2224 * lib/xalloc.h, lib/xmalloc.c: Update.
2226 2001-01-19 Akim Demaille <akim@epita.fr>
2228 Get rid of the ad hoc handling of token_buffer in the scanner: use
2231 * src/lex.c (token_obstack): New.
2232 (init_lex): Initialize it. No longer call...
2233 (grow_token_buffer): this. Remove it.
2234 Adjust all the places which used it to use the obstack.
2236 2001-01-19 Akim Demaille <akim@epita.fr>
2238 * src/lex.h: Rename all the tokens:
2239 s/\bENDFILE\b/tok_eof/g;
2240 s/\bIDENTIFIER\b/tok_identifier/g;
2242 Let them be enums, not #define, to ease debugging.
2243 Adjust all the code.
2245 2001-01-18 Akim Demaille <akim@epita.fr>
2247 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2248 * src/lex.c (maxtoken, grow_token_buffer): Static.
2250 2001-01-18 Akim Demaille <akim@epita.fr>
2252 Since we now use obstacks, more % directives can be enabled.
2254 * src/lex.c (percent_table): Also accept `%yacc',
2255 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2257 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2258 instead of returning a token.
2259 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2260 * src/reader.c (read_declarations): Adjust.
2261 * src/files.c (open_files): Don't call `compute_base_names', don't
2262 compute `attrsfile' since they depend upon data which might be
2263 *in* the input file now.
2264 (output_files): Do it here.
2265 * src/output.c (output_headers): Document the fact that this patch
2266 introduces a guaranteed SEGV for semantic parsers.
2267 * doc/bison.texinfo: Document them.
2268 * tests/suite.at: Exercise these %options.
2270 2000-12-20 Akim Demaille <akim@epita.fr>
2272 Also handle the output file (--verbose) with obstacks.
2274 * files.c (foutput): Remove.
2275 (output_obstack): New.
2276 Adjust all dependencies.
2277 * src/conflicts.c: Return a string.
2278 * src/system.h (obstack_grow_string): Rename as...
2279 (obstack_sgrow): this. Be ready to work with non literals.
2280 (obstack_fgrow4): New.
2282 2000-12-20 Akim Demaille <akim@epita.fr>
2284 * src/files.c (open_files): Fix the computation of short_base_name
2285 in the case of `-o foo.tab.c'.
2287 2000-12-20 Akim Demaille <akim@epita.fr>
2289 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2290 (copy_dollar): Now that everything uses obstacks, get rid of the
2293 2000-12-20 Akim Demaille <akim@epita.fr>
2295 * src/files.c (open_files): Actually the `.output' file is based
2296 on the short_base_name, not base_name.
2297 * tests/suite.at (Checking output file names): Adjust.
2299 2000-12-20 Akim Demaille <akim@epita.fr>
2301 * src/bison.s1: Remove, we now use directly...
2302 * src/bison.simple: this.
2303 * src/Makefile.am: Use pkgdata instead of data.
2305 2000-12-20 Akim Demaille <akim@epita.fr>
2307 * src/files.c (guard_obstack): New.
2308 (open_files): Initialize it.
2309 (output_files): Dump it...
2310 * src/files.h: Export it.
2311 * src/reader.c (copy_guard): Use it.
2313 2000-12-19 Akim Demaille <akim@epita.fr>
2315 * src/files.c (outfile, defsfile, actfile): Removed as global
2317 (open_files): Don't compute them.
2318 (output_files): Adjust.
2319 (base_name, short_base_name): Be global.
2320 Adjust dependencies.
2322 2000-12-19 Akim Demaille <akim@epita.fr>
2324 * src/files.c (strsuffix): New.
2325 (stringappend): Be just like strcat but allocate.
2326 (base_names): Eve out from open_files.
2327 Try to simplify the rather hairy computation of base_name and
2329 (open_files): Use it.
2330 * tests/suite.at (Checking output file names): New test.
2332 2000-12-19 Akim Demaille <akim@epita.fr>
2334 * src/system.h (obstack_grow_literal_string): Rename as...
2335 (obstack_grow_string): this.
2336 * src/output.c (output_parser): Recognize `%% actions' instead of
2338 * src/bison.s1: s/$/%% actions/.
2339 * src/bison.hairy: Likewise.
2341 2000-12-19 Akim Demaille <akim@epita.fr>
2343 * src/output.c (output_parser): Compute the `#line' lines when
2345 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2346 Suggested by Hans Aberg.
2348 2000-12-19 Akim Demaille <akim@epita.fr>
2350 Let the handling of the skeleton files be local to the procedures
2353 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2355 (fparser, open_extra_files): Remove.
2356 (open_files, output_files): Don't take care of fparser.
2357 * src/files.h: Adjust.
2358 * src/output.c (output_parser): Open and close the file to the
2360 * src/reader.c (read_declarations): When %semantic_parser, open
2363 2000-12-19 Akim Demaille <akim@epita.fr>
2365 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2366 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2368 2000-12-19 Akim Demaille <akim@epita.fr>
2370 * src/files.c (open_files): Yipee! We no longer need all the code
2371 looking for `/tmp' since we have no tmp file.
2373 2000-12-19 Akim Demaille <akim@epita.fr>
2375 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2377 * src/files.c (open_files): Less dependency on MSDOS etc.
2379 2000-12-14 Akim Demaille <akim@epita.fr>
2381 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2382 Provide a default definition.
2383 Use it when executing the default @ action.
2384 * src/reader.c (reader_output_yylsp): No longer include
2385 `timestamp' and `text' in the default YYLTYPE.
2387 2000-12-12 Akim Demaille <akim@epita.fr>
2389 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2390 (copy_guard): Quote the file names.
2391 Reported by Laurent Mascherpa.
2393 2000-12-12 Akim Demaille <akim@epita.fr>
2395 * src/output.c (output_headers, output_program, output): Be sure
2396 to escape special characters when outputting filenames.
2397 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2398 (output_headers): Don't depend on them, Use ACTSTR.
2400 2000-11-17 Akim Demaille <akim@epita.fr>
2402 * lib/obstack.h: Formatting changes.
2403 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2404 prevents type checking.
2405 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2406 cast the value to (void *): assigning a `foo *' to a `void *'
2408 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2409 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2412 2000-11-17 Akim Demaille <akim@epita.fr>
2414 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2416 (suite.m4, regression.m4, calc.m4): these.
2417 * tests/atgeneral.m4: Update from CVS Autoconf.
2419 2000-11-17 Akim Demaille <akim@epita.fr>
2421 * tests/regression.m4 (%union and --defines): New test,
2422 demonstrating a current bug in the obstack implementation.
2424 2000-11-17 Akim Demaille <akim@epita.fr>
2426 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2428 Use them to declare the variables which are global or local to
2431 2000-11-17 Akim Demaille <akim@epita.fr>
2433 * acconfig.h: Remove, no longer used.
2435 2000-11-07 Akim Demaille <akim@epita.fr>
2437 * src: s/Copyright (C)/Copyright/g.
2439 2000-11-07 Akim Demaille <akim@epita.fr>
2441 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2443 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2445 2000-11-07 Akim Demaille <akim@epita.fr>
2447 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2448 Merge in a single CPP if/else.
2450 2000-11-07 Akim Demaille <akim@epita.fr>
2452 * src/output.c (output): Remove useless variables.
2453 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2454 argument `data' for consistency with the prototypes.
2456 (obstack_copy, obstack_copy0): Rename the second argument as
2457 `address' for consistency. Qualify it `const'.
2458 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2459 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2460 `const' their input argument (`data' or `address').
2461 Adjust the corresponding macros to include `const' in casts.
2463 2000-11-03 Akim Demaille <akim@epita.fr>
2465 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2466 s/PFILE1/BISON_HAIRY/.
2467 Adjust dependencies.
2469 2000-11-03 Akim Demaille <akim@epita.fr>
2471 For some reason, this was not applied.
2473 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2474 `unlink': it's no longer used.
2476 2000-11-03 Akim Demaille <akim@epita.fr>
2478 * src/files.c (skeleton_find): New function, eved out of...
2479 (open_files, open_extra_files): here.
2481 2000-11-03 Akim Demaille <akim@epita.fr>
2485 * src/files.c (obstack_save): New function.
2486 (done): Rename as...
2487 (output_files): this.
2489 * src/main.c (main): Don't use `atexit' to register `done', since
2490 it no longer has to remove tmp files, just call `output_files'
2491 when there are no errors.
2493 2000-11-02 Akim Demaille <akim@epita.fr>
2495 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2496 `unlink': it's no longer used.
2497 * src/files.h: Formatting changes.
2499 2000-11-02 Akim Demaille <akim@epita.fr>
2501 Remove the last uses of mktemp and unlink/delete.
2503 * src/files.c (fdefines, ftable): Removed.
2504 (defines_ostack, table_obstack): New.
2505 Adjust dependencies of the former into uses of the latter.
2506 * src/output.c (output_short_or_char_table, output_short_table):
2507 Convert to using obstacks.
2508 * src/reader.c (copy_comment2): Accept one FILE * and two
2510 (output_token_defines, reader_output_yylsp): Use obstacks.
2511 * src/system.h (obstack_fgrow3): New.
2513 2000-11-01 Akim Demaille <akim@epita.fr>
2515 Change each use of `fattrs' into a use of `attrs_obstack'.
2517 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2518 * src/files.c (fattrs): Remove.
2519 (attrs_obstack): New.
2520 Adjust all dependencies.
2521 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2523 2000-11-01 Akim Demaille <akim@epita.fr>
2526 Change each use of `faction' into a use of `action_obstack'.
2528 * lib/obstack.h, lib/obstack.c: New files.
2529 * src/files.c (faction): Remove.
2530 (action_obstack): New.
2531 Adjust all dependencies.
2533 2000-10-20 Akim Demaille <akim@epita.fr>
2535 * lib/quote.h (PARAMS): New macro. Use it.
2537 2000-10-16 Akim Demaille <akim@epita.fr>
2539 * src/output.c (output_short_or_char_table): New function.
2540 (output_short_table, output_token_translations): Use it.
2541 (goto_actions): Use output_short_table.
2543 2000-10-16 Akim Demaille <akim@epita.fr>
2545 * src/symtab.c (bucket_new): New function.
2548 * src/output.c (output_short_table): New argument to display the
2549 comment associated with the table.
2550 Adjust dependencies.
2551 (output_gram): Use it.
2552 (output_rule_data): Nicer output layout for YYTNAME.
2554 2000-10-16 Akim Demaille <akim@epita.fr>
2556 * src/lex.c (read_typename): New function.
2558 * src/reader.c (copy_dollar): Likewise.
2560 2000-10-16 Akim Demaille <akim@epita.fr>
2562 * src/reader.c (copy_comment2): Expect the input stream to be on
2563 the `/' which is suspected to open a comment, instead of being
2564 called after `//' or `/*' was read.
2565 (copy_comment, copy_definition, parse_union_decl, copy_action)
2566 (copy_guard): Adjust.
2568 2000-10-16 Akim Demaille <akim@epita.fr>
2570 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2571 `read_signed_integer'.
2573 2000-10-16 Akim Demaille <akim@epita.fr>
2575 * src/reader.c (copy_dollar): New function.
2576 (copy_guard, copy_action): Use it.
2578 2000-10-16 Akim Demaille <akim@epita.fr>
2580 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2581 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2582 New files, from Fileutils 4.0.27.
2583 * src/main.c (printable_version): Remove.
2584 * src/lex.c, src/reader.c: Use `quote'.
2586 2000-10-04 Akim Demaille <akim@epita.fr>
2588 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2590 2000-10-04 Akim Demaille <akim@epita.fr>
2592 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2594 2000-10-04 Akim Demaille <akim@epita.fr>
2596 When a literal string is used to define two different tokens,
2597 `bison -v' segfaults.
2598 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2600 * tests/regression.m4: New file.
2601 Include the core of the sample provided by Piotr Gackiewicz.
2602 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2605 2000-10-04 Akim Demaille <akim@epita.fr>
2607 * src/reader.c (parse_expect_decl): Keep `count' within the size
2611 2000-10-02 Paul Eggert <eggert@twinsun.com>
2613 * bison.s1 (yyparse): Assign the default value
2614 unconditionally, to avoid a GCC warning and make the parser a
2617 2000-10-02 Akim Demaille <akim@epita.fr>
2619 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2622 2000-10-02 Akim Demaille <akim@epita.fr>
2624 * src/derives.c, src/print.c, src/reduce.c: To ease the
2625 translation, move some `\n' out of the translated strings.
2627 2000-10-02 Akim Demaille <akim@epita.fr>
2629 The location tracking mechanism is precious for parse error
2630 messages. Nevertheless, it is enabled only when `@n' is used in
2631 the grammar, which is a different issue (you can use it in error
2632 message, but not in the grammar per se). Therefore, there should
2633 be another means to enable it.
2635 * src/getargs.c (getargs): Support `--locations'.
2637 * src/getargs.h (locationsflag): Export it.
2638 * src/lex.c (percent_table): Support `%locations'.
2639 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2640 with `locationsflag'.
2641 * doc/bison.texinfo: Document `--locations' and `%locations'.
2643 * tests/calc.m4: Test it.
2645 For regularity of the names, replace each
2646 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2647 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2648 In addition replace each `flag' with `_flag'.
2650 2000-10-02 Akim Demaille <akim@epita.fr>
2652 Also test parse error messages, including with YYERROR_VERBOSE.
2654 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2656 Use it to check the computations.
2657 Use it to check `nonassoc' is honored.
2658 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2659 `--yyerror-verbose'.
2660 (_AT_CHECK_CALC): Adjust to this option.
2661 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2663 2000-10-02 Akim Demaille <akim@epita.fr>
2665 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2666 the latter demonstrates a flaw in the handling of non debugging
2667 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2668 was used in order to simplify:
2684 unfortunately this leads to a CPP conflict when
2685 `--name-prefix=foo' is used since it produces `#define yydebug
2688 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2689 (YYDPRINTF): New macro.
2691 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2693 Also test `--verbose', `--defines' and `--name-prefix'.
2695 2000-10-02 Akim Demaille <akim@epita.fr>
2697 Improve the readability of the produced parsers.
2699 * src/bison.s1: Formatting changes.
2700 Improve the comment related to the `$' mark.
2701 (yydefault): Don't fall through to `yyresume': `goto' there.
2702 * src/output.c (output_parser): When the `$' is met, skip the end
2704 New variable, `number_of_dollar_signs', to check there's exactly
2705 one `$' in the parser skeleton.
2707 2000-10-02 Akim Demaille <akim@epita.fr>
2709 * lib/xstrdup.c: New file, from the fileutils.
2710 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2711 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2712 instead of strlen + xmalloc + strcpy.
2713 * src/symtab.c (copys): Remove, use xstrdup instead.
2715 2000-10-02 Akim Demaille <akim@epita.fr>
2717 * src/gram.h (associativity): New enum type which replaces the
2718 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2719 `right_assoc', `left_assoc' and `non_assoc'.
2720 Adjust all dependencies.
2721 * src/reader.c: Formatting changes.
2722 (LTYPESTR): Don't define it, use it as a literal in
2723 `reader_output_yylsp'.
2724 * src/symtab.h (symbol_class): New enum type which replaces the
2725 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2726 `sunknown', `stoken and `snterm'.
2728 2000-10-02 Akim Demaille <akim@epita.fr>
2730 * src/getargs.c (fixed_outfiles): Rename as...
2731 (yaccflag): for consistency and accuracy.
2732 Adjust dependencies.
2734 2000-10-02 Akim Demaille <akim@epita.fr>
2736 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2737 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2738 difficult and introduced a lot of core dump. It turns out that
2739 Bison used an implementation of `xmalloc' based on `calloc', and
2740 at various places it does depend upon the initialization to 0. I
2741 have not tried to isolate the pertinent places, and all the former
2742 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2743 someone should address this issue.
2745 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2746 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2748 Adjust dependencies.
2749 * src/warshall.h: New file.
2752 2000-10-02 Akim Demaille <akim@epita.fr>
2754 Various anti-`extern in *.c' changes.
2756 * src/system.h: Include `assert.h'.
2758 2000-10-02 Akim Demaille <akim@epita.fr>
2760 * src/state.h (nstates, final_state, first_state, first_shift)
2761 (first_reduction): Move their exportation from here...
2762 * src/LR0.h: to here.
2763 Adjust dependencies.
2764 * src/getargs.c (statisticsflag): New variable.
2765 Add support for `--statistics'.
2766 Adjust dependencies.
2768 Remove a lot of now useless `extern' statements in most files.
2770 2000-10-02 Akim Demaille <akim@epita.fr>
2772 * src/LR0.h: New file.
2775 2000-10-02 Akim Demaille <akim@epita.fr>
2777 * src/print.h: New file.
2779 * src/print.c: Formatting and ordering changes.
2780 (verbose, terse): Replace with...
2781 (print_results): this new function.
2782 Adjust dependencies.
2784 2000-10-02 Akim Demaille <akim@epita.fr>
2786 * src/conflicts.c (conflict_report): New function.
2787 (conflict_log, verbose_conflict_log): Replace with...
2788 (print_conflicts): this function.
2789 Adjust dependencies.
2790 * src/conflicts.h: New file.
2791 Propagate its inclusion.
2793 2000-10-02 Akim Demaille <akim@epita.fr>
2795 * src/nullable.h: New file.
2796 Propagate its inclusion.
2797 * src/nullable.c: Formatting changes.
2799 2000-10-02 Akim Demaille <akim@epita.fr>
2801 * src/reduce.h: New file.
2802 Propagate its inclusion.
2803 * src/reduce.c: Topological sort and other formatting changes.
2804 (bool, TRUE, FALSE): Move their definition to...
2805 * src/system.h: here.
2807 2000-10-02 Akim Demaille <akim@epita.fr>
2809 * src/files.c: Formatting changes.
2810 (tryopen, tryclose, openfiles): Rename as...
2811 (xfopen, xfclose, open_files): this.
2812 (stringappend): static.
2813 * src/files.h: Complete the list of exported symbols.
2816 2000-10-02 Akim Demaille <akim@epita.fr>
2818 * src/reader.h: New file.
2819 Propagate its use instead of tedious list of `extern' and
2821 * src/reader.c: Formatting changes, topological sort,
2824 2000-10-02 Akim Demaille <akim@epita.fr>
2826 * src/lex.h: Prototype `lex.c' exported functions.
2827 * src/reader.c: Adjust.
2828 * src/lex.c: Formatting changes.
2829 (safegetc): Rename as...
2832 2000-10-02 Akim Demaille <akim@epita.fr>
2834 * src/lalr.h: New file.
2835 Propagate its inclusion instead of prototypes and `extern'.
2836 * src/lalr.c: Formatting changes, topological sorting etc.
2838 2000-10-02 Akim Demaille <akim@epita.fr>
2840 * src/output.c (token_actions): Introduce a temporary array,
2841 YYDEFACT, that makes it possible for this function to use
2844 2000-10-02 Akim Demaille <akim@epita.fr>
2846 `user_toknums' is output as a `short[]' in `output.c', while it is
2847 defined as a `int[]' in `reader.c'. For consistency with the
2848 other output tables, `user_toknums' is now defined as a table of
2851 * src/reader.c (user_toknums): Be a short table instead of an int
2853 Adjust dependencies.
2855 Factor the short table outputs.
2857 * src/output.c (output_short_table): New function.
2858 * src/output.c (output_gram, output_stos, output_rule_data)
2859 (output_base, output_table, output_check): Use it.
2861 2000-10-02 Akim Demaille <akim@epita.fr>
2863 * src/output.c (output): Topological sort of the functions, in
2864 order to get rid of the `static' prototypes.
2865 No longer use `register'.
2866 * src/output.h: New file.
2867 Propagate its inclusion in files explicitly prototyping functions
2870 2000-09-21 Akim Demaille <akim@epita.fr>
2872 * src/atgeneral.m4: Update from Autoconf.
2874 2000-09-21 Akim Demaille <akim@epita.fr>
2876 * src/closure.h: New file.
2877 * src/closure.c: Formatting changes, topological sort over the
2878 functions, use of closure.h.
2879 (initialize_closure, finalize_closure): Rename as...
2880 (new_closure, free_closure): these. Adjust dependencies.
2881 * src/LR0.c: Formatting changes, topological sort, use of
2883 (initialize_states): Rename as...
2885 * src/Makefile.am (noinst_HEADERS): Adjust.
2887 2000-09-20 Akim Demaille <akim@epita.fr>
2889 * src/acconfig.h: Don't protect config.h against multiple
2891 Don't define PARAMS.
2892 * src/system.h: Define PARAMS.
2893 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2894 purpose of config.h. system.h must not try to fix wrong
2895 definitions in config.h.
2897 2000-09-20 Akim Demaille <akim@epita.fr>
2899 * src/derives.h: New file.
2900 * src/main.c, src/derives.h: Use it.
2902 * src/Makefile.am (noinst_HEADERS): Adjust.
2904 2000-09-20 Akim Demaille <akim@epita.fr>
2906 * tests/atgeneral.m4: Update from Autoconf.
2907 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2908 (AT_CHECK_CALC): New macros.
2909 Use these macros to test bison with options `', `--raw',
2910 `--debug', `--yacc', `--yacc --debug'.
2912 2000-09-19 Akim Demaille <akim@epita.fr>
2914 * src/output.c: Formatting changes.
2915 * src/machine.h: Remove, leaving its contents in...
2916 * src/system.h: here.
2918 Adjust all dependencies on stdio.h and machine.h.
2919 * src/getargs.h: New file.
2920 Let all `extern' declarations about getargs.c be replaced with
2921 inclusion of `getargs.h'.
2922 * src/Makefile.am (noinst_HEADERS): Adjust.
2924 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2926 (yyerror): Returns void, not int.
2927 * doc/bison.texinfo: Formatting changes.
2929 2000-09-19 Akim Demaille <akim@epita.fr>
2931 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2934 2000-09-18 Akim Demaille <akim@epita.fr>
2936 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2937 * src/Makefile.am (INCLUDES): Don't.
2938 Be ready to fetch headers in lib/.
2940 2000-09-18 Akim Demaille <akim@epita.fr>
2942 * doc/bison.texinfo: Update the copyright.
2943 ANSIfy and GNUify the examples.
2944 Remove the old menu.
2946 2000-09-18 Akim Demaille <akim@epita.fr>
2948 First set of tests: use the `calc' example from the documentation.
2950 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2951 is defined only when YYDEBUG is.
2952 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2953 * src/files.c (tryopen, tryclose): Formatting changes.
2954 Move to the top and be static.
2955 * src/reader.c (read_signed_integer): Likewise.
2956 * tests/calc.m4: New file.
2957 * Makefile.am, suite.m4: Adjust.
2958 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2960 2000-09-18 Akim Demaille <akim@epita.fr>
2962 Add support for an Autotest test suite for Bison.
2964 * m4/m4.m4, m4/atconfig.m4: New files.
2965 * m4/Makefile.am (EXTRA_DIST): Adjust.
2966 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2968 * src/getargs.c: Display a more standard --version message.
2969 * src/reader.c (reader): Formatting changes.
2970 No longer depend upon VERSION_STRING.
2971 * configure.in: No longer use `dnl'.
2972 Set up the test suite and the new directory `tests/.
2973 (VERSION_STRING): Remove.
2975 2000-04-14 Akim Demaille <akim@epita.fr>
2977 * src/reader.c (copy_comment2): New function, same as former
2978 `copy_comment', but outputs into two FILE *.
2979 (copy_comment): Use it.
2980 (parse_union_decl): Use it.
2981 (get_type, parse_start_decl): Use the same `invalid' message.
2982 (parse_start_decl, parse_union_decl): Use the same `multiple'
2984 (parse_union_decl, copy_guard, copy_action): Use the same
2985 `unmatched' message.
2986 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2988 2000-03-31 Akim Demaille <akim@epita.fr>
2990 * src/files.c (tryopen, tryclose): Move to the top.
2993 2000-03-31 Akim Demaille <akim@epita.fr>
2995 * src/main.c (main): Don't call `done', exit does it.
2997 2000-03-31 Akim Demaille <akim@epita.fr>
2999 * allocate.c: s/return (foo)/return foo/.
3002 * output.c: Likewise.
3003 * reader.c: Likewise.
3004 * symtab.c: Likewise.
3005 * vmsgetargs.c: Likewise.
3007 2000-03-31 Akim Demaille <akim@epita.fr>
3009 Clean up the error reporting functions.
3011 * src/report.c: New file.
3012 * src/report.h: Likewise.
3013 * src/Makefile.am: Adjust.
3014 * m4/error.m4: New file.
3015 * m4/Makefile.am: Adjust.
3016 * configure.in (jm_PREREQ_ERROR): Call it.
3017 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
3019 (fatal, fatals): Remove. All callers use complain.c::fatal.
3020 (warn, warni, warns, warnss, warnss): Remove. All callers use
3021 complain.c::complain.
3022 (toomany): Remove, use fatal instead.
3023 * src/files.c (done): No argument, use complain_message_count.
3024 * src/main.c (main): Register `done' to `atexit'.
3026 * src/getargs.c (usage): More `fputs', less `fprintf'.
3028 2000-03-28 Akim Demaille <akim@epita.fr>
3030 * lib/: New directory.
3031 * Makefile.am (SUBDIRS): Adjust.
3032 * configure.in: Adjust.
3033 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
3035 * src/alloca.c: Moved to lib/.
3036 * src/getopt.c: Likewise.
3037 * src/getopt1.c: Likewise.
3038 * src/getopt.h: Likewise.
3039 * src/ansi2knr.c: Likewise.
3040 * src/ansi2knr.1: Likewise.
3041 * src/Makefile.am: Adjust.
3042 * lib/Makefile.am: New file.
3044 2000-03-28 Akim Demaille <akim@epita.fr>
3046 * src/getargs.c (usage): Refresh the help message.
3048 2000-03-17 Akim Demaille <akim@epita.fr>
3050 * src/getopt1.c: Updated from textutils 2.0e
3051 * src/getopt.c: Likewise.
3052 * src/getopt.h: Likewise.
3054 2000-03-17 Akim Demaille <akim@epita.fr>
3056 * src/Makefile.am (bison.simple): Fix the awk program: quote only
3057 the file name, not the whole `#line LINE FILE'.
3059 2000-03-17 Akim Demaille <akim@epita.fr>
3061 On syntax errors, report the token on which we choked.
3063 * src/bison.s1 (yyparse): In the label yyerrlab, when
3064 YYERROR_VERBOSE, add yychar in msg.
3066 2000-03-17 Akim Demaille <akim@epita.fr>
3068 * src/reader.c (copy_at): New function.
3069 (copy_guard): Use it.
3070 (copy_action): Use it.
3072 2000-03-17 Akim Demaille <akim@epita.fr>
3074 Be kind to translators, save some useless translations.
3076 * src/main.c (banner): New function.
3077 (fatal_banner): Use it.
3078 (warn_banner): Use it.
3080 2000-03-17 Akim Demaille <akim@epita.fr>
3082 * src/reader.c (copy_definition): Use copy_string and
3083 copy_comment. Removed now unused `match', `ended',
3085 (copy_comment, copy_string): Moved, to be visible from
3088 2000-03-17 Akim Demaille <akim@epita.fr>
3090 * src/reader.c (copy_string): Declare `static inline'. No
3091 problems with inline, since it is checked by configure.
3092 (copy_comment): Likewise.
3094 2000-03-17 Akim Demaille <akim@epita.fr>
3096 * src/reader.c (packsymbols): Formatting changes.
3098 2000-03-17 Akim Demaille <akim@epita.fr>
3100 * src/reader.c (copy_comment): New function, factored out from:
3101 (copy_action): Use it. Removed now unused `match', `ended',
3103 (copy_guard): Likewise.
3105 2000-03-17 Akim Demaille <akim@epita.fr>
3107 * src/reader.c (copy_string): New function, factored out from:
3108 (copy_action): Use it.
3109 (copy_guard): Likewise.
3111 2000-03-17 Akim Demaille <akim@epita.fr>
3113 Change the handling of @s so that they behave exactly like $s.
3114 There is now a pseudo variable @$ (readble and writable), location
3115 of the lhs of the rule (by default ranging from the location of
3116 the first symbol of the rhs, to the location of the last symbol,
3117 or, if the rhs is empty, YYLLOC).
3119 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3121 (yyparse): When providing a default semantic action, provide a
3122 default location action.
3123 (after the $): No longer change `*YYLSP', just stack YYLOC the
3124 same way you stack YYVAL.
3125 * src/reader.c (read_declarations): Use warns.
3126 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3127 (copy_action, case '@'): Likewise.
3128 Use a standard error message, to save useless work from
3131 2000-03-17 Akim Demaille <akim@epita.fr>
3133 * src/bison.s1: Formatting and cosmetics changes.
3134 * src/reader.c: Likewise.
3135 Update the Copyright notice.
3137 2000-03-17 Akim Demaille <akim@epita.fr>
3139 * src/bison.s1 (#line): All set to `#line' only, since the
3140 Makefile now handles them.
3142 2000-03-16 Akim Demaille <akim@epita.fr>
3144 * src/output.c (output_rule_data): Output the documentation of
3146 (Copyright notice): Update.
3149 2000-03-16 Akim Demaille <akim@epita.fr>
3151 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3152 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3153 One `#if YYDEBUG' remains, since it uses variables which are
3154 defined only if `YYDEBUG != 0'.
3156 2000-03-16 Akim Demaille <akim@epita.fr>
3158 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3159 and related variables so that the similarities are highlighted.
3161 2000-03-16 Akim Demaille <akim@epita.fr>
3163 * src/bison.s1: Properly indent CPP directives.
3165 2000-03-16 Akim Demaille <akim@epita.fr>
3167 * src/bison.s1: Properly indent the `alloca' CPP section.
3169 2000-03-16 Akim Demaille <akim@epita.fr>
3171 Do not hard code values of directories in `configure.in'.
3172 Update the `configure' tool chain.
3174 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3176 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3177 (AC_OUTPUT): Add m4/Makefile.
3178 Bump to bison 1.28a, 1.29 has never been released.
3179 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3180 handled via src/Makefile.am.
3181 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3182 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3184 * Makefile.am (SUBDIRS): Add m4.
3185 (ACLOCAL_AM_FLAGS): New variable.
3186 (AUTOMAKE_OPTIONS): Add check-news.
3187 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3188 the proper line number and file name.
3189 (DEFS): Propagate the location of bison library files and of the
3191 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3193 * acinclude.m4: Remove, replaced by the directory m4.
3194 * m4/Makefile.am (EXTRA_DIST): New variable.
3195 * m4/gettext.m4: New file, from the fileutils.
3196 * m4/lcmessage.m4: Likewise
3197 * m4/progtest.m4: Likewise.
3198 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3200 2000-03-10 Akim Demaille <akim@epita.fr>
3203 Formatting changes of various comments.
3204 Respect the GNU coding standards at various places.
3205 Don't use `_()' when no translation is needed.
3207 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3210 OS/2 honors TMPDIR environment variable.
3212 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3214 * doc/bison.texinfo: Tweaked spelling and grammar.
3216 Removed reference to price of printed copy.
3217 Mention BISON_SIMPLE and BISON_HAIRY.
3219 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3221 * configure.in, NEWS:
3222 Bison 1.29 released.
3224 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3226 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3227 Added reference card.
3229 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3231 * po/ru.po: Added Russian translation.
3233 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3235 * configure.in: Added Russian translation.
3237 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3239 * configure.in, NEWS, README:
3240 Released version 1.28.
3242 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3245 Squashed redefinition warning on some systems.
3247 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3248 Have configure build version string instead of relying on ANSI string
3251 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3253 * po/POTFILES.in: Got rid of version.c.
3255 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3257 * acconfig.h, configure.in:
3258 Have configure build version string instead of relying on ANSI string
3261 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3264 Dropped mention of `+' for long-named options.
3266 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3268 * src/files.c: Added <unistd.h> for unlink().
3270 * src/Makefile.am, src/system.h:
3273 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3275 * README: Added a FAQ list.
3277 * configure.in, acconfig.h:
3280 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3282 * doc/FAQ, doc/Makefile.am:
3285 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3287 * src/alloc.h, src/symtab.h, src/version.c:
3288 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3290 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3292 * src/.cvsignore, src/Makefile.am:
3293 Reorganized: sources in `src', documentation in `doc'.
3295 * src/lex.c (literalchar):
3296 fixed the code for escaping double quotes (thanks
3299 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3301 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3302 Adjusted paths to reflect directory reorganization.
3304 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3306 * doc/.cvsignore, doc/Makefile.am:
3307 Reorganized: sources in `src', documentation in `doc'.
3309 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3312 Updated AC_INIT file to reflect directory reorganization.
3314 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3315 Reorganized: sources in `src', documentation in `doc'.
3317 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3320 Don't declare calloc() and realloc() if not necessary.
3322 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3324 * configure.in, acconfig.h, acinclude.m4:
3325 Don't declare calloc() and realloc() if not necessary.
3327 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3329 * po/.cvsignore: Added i18n support.
3331 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3333 * acconfig.h, configure.in, Makefile.am:
3336 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3338 * src/bison.s1: Fixed #line numbers.
3340 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3342 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3343 Added PO files from Translation Project.
3345 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3348 Added support for non-ANSI compilers (ansi2knr).
3350 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3352 * configure.in: Bumped version number to 1.27.
3355 Added `bison.simple' to list of files removed by `make distclean'.
3357 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3359 * src/files.c, src/files.h:
3360 Defined locations of parser files in config.h instead of Makefile.
3362 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3364 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3365 Defined locations of parser files in config.h instead of Makefile.
3367 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3370 Removed inappropriate use of $< macro.
3372 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3374 * po/Makefile.in.in, po/POTFILES.in:
3375 Add `po' directory skeleton.
3377 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3379 * README: Document help-bison list.
3381 * configure.in: Add check for mkstemp().
3383 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3385 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3386 Hush a few compiler warnings.
3389 Add tryclose(), which verifies that fclose was successful.
3390 Hush a couple of compiler warnings.
3392 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3394 * Makefile.am, OChangeLog:
3395 ChangeLog is now automatically generated. Include the old version as
3398 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3400 * 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:
3403 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3405 * doc/bison.texinfo: Fix formatting glitch.
3407 * doc/bison.texinfo: Update FSF address.
3409 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3411 * acconfig.h: Update FSF address.
3413 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3416 Don't define PACKAGE here, since config.h defines it.
3418 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3420 * src/reader.c: Update copyright date.
3423 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3424 favor of output directly to stderr (avoids buffer overruns).
3426 * src/reader.c: Some checks for premature EOF.
3428 * 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:
3429 Use prototypes if the compiler understands them.
3431 * src/files.c: Honor TMPDIR on Unix hosts.
3432 Use prototypes if the compiler understands them.
3435 Fix a couple of buffer overrun bugs.
3436 Use prototypes if the compiler understands them.
3438 * src/system.h: Include unistd.h and ctype.h.
3439 Use #ifdef instead of #if for NLS symbols.
3441 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3443 * doc/bison.texinfo:
3444 Delete comment "consider using @set for edition number, etc..." since
3445 we now are doing so.
3447 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3450 Use prototypes if the compiler understands them.
3452 * NEWS: Document 1.26 highlights.
3454 * Makefile.am: Require Automake 1.3 or later.
3457 Use prototypes if the compiler understands them.
3459 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3462 Use VERSION symbol from automake for version number.
3464 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3466 * acconfig.h, configure.in, version.cin:
3467 Use VERSION symbol from automake for version number.
3469 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3472 Distribute original version of simple parser (bison.s1), not built
3473 version (bison.simple).
3475 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3477 * doc/bison.texinfo: Add info dir entry.
3479 * doc/bison.texinfo:
3480 Let automake put version number into documentation.
3482 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3484 * src/bison.cld, src/build.com, src/vmshlp.mar:
3485 Add non-RCS files from /gd/gnu/bison.
3487 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3490 Document the BISON_HAIRY and BISON_SIMPLE variables.
3492 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3494 * src/version.c: Build version.c automatically.
3497 Fix token numbering (used to start at 258, not 257).
3499 * src/system.h: Include config.h.
3501 * src/getargs.c: Update bug report address.
3503 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3504 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3506 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3509 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3511 * configure.in, version.cin:
3512 Build version.c automatically.
3514 * AUTHORS: Add AUTHORS file.
3516 * README: Update bug report address.
3519 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3521 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3524 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3526 * doc/bison.texinfo: Clean up some formatting.
3528 1998-05-05 Richard Stallman <rms@gnu.org>
3530 * doc/bison.texinfo:
3531 Explain better why to make a pure parser.
3533 1998-01-05 Richard Stallman <rms@gnu.org>
3535 * src/files.c (openfiles):
3536 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3537 find a temporary directory, if possible. Do not unlink files while
3540 1997-08-25 Richard Stallman <rms@gnu.org>
3542 * src/reader.c (stack_offset;):
3543 Change some warni to warns.
3545 * src/lex.c (literalchar): Use warns, not warni.
3547 1997-06-28 Richard Stallman <rms@gnu.org>
3549 * src/bison.s1: Add a Bison version comment.
3551 * src/main.c (fatal, warn, berror):
3554 1997-06-28 Richard Stallman <rms@gnu.org>
3556 * Makefile.in (bison_version): New variable.
3557 (dist): Use that variable.
3558 (bison.s1): Substitute the Bison version into bison.simple.
3560 * bison.simple: Add a Bison version comment.
3562 1997-06-18 Richard Stallman <rms@gnu.org>
3564 * src/main.c (fatal, warn, berror):
3565 Make error messages standard.
3566 (toomany): Improve error message text.
3568 * 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:
3569 new.h renamed to alloc.h.
3571 1997-06-18 Richard Stallman <rms@gnu.org>
3573 * Makefile.in: new.h renamed to alloc.h.
3575 1997-05-24 Richard Stallman <rms@gnu.org>
3577 * src/lex.c (literalchar):
3578 Fix the code for escaping \, " and '.
3580 (lex): Avoid trouble when there are many chars
3581 to discard in a char literal with just several chars in it.
3583 1997-05-17 Richard Stallman <rms@gnu.org>
3586 Use malloc, if using alloca is troublesome.
3587 (YYSTACK_USE_ALLOCA): New flag macro.
3588 Define it for some systems and compilers.
3589 (YYSTACK_ALLOC): New macro.
3590 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3591 If it was malloc'd, free it.
3593 1997-05-17 Richard Stallman <rms@gnu.org>
3596 Use malloc, if using alloca is troublesome.
3597 (YYSTACK_USE_ALLOCA): New flag macro.
3598 Define it for some systems and compilers.
3599 (YYSTACK_ALLOC): New macro.
3600 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3601 If it was malloc'd, free it.
3603 1997-04-23 Richard Stallman <rms@gnu.org>
3606 (alloca) [__hpux]: Always define as __builtin_alloca.
3608 1997-04-23 Richard Stallman <rms@gnu.org>
3611 (alloca) [__hpux]: Always define as __builtin_alloca.
3613 1997-04-22 Richard Stallman <rms@gnu.org>
3616 [__hpux]: Include alloca.h (right for HPUX 10)
3617 instead of declaring alloca (right for HPUX 9).
3619 * src/bison.s1 (__yy_memcpy):
3620 Declare arg `count' as unsigned int.
3621 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3623 1997-04-22 Richard Stallman <rms@gnu.org>
3626 [__hpux]: Include alloca.h (right for HPUX 10)
3627 instead of declaring alloca (right for HPUX 9).
3629 * bison.simple (__yy_memcpy):
3630 Declare arg `count' as unsigned int.
3631 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3633 1997-01-03 Richard Stallman <rms@gnu.org>
3635 * src/allocate.c: [__STDC__ or _MSC_VER]:
3636 Declare calloc and realloc to return void *.
3638 1997-01-02 Richard Stallman <rms@gnu.org>
3641 [_MSC_VER]: Include stdlib.h and process.h.
3642 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3644 * src/main.c (main): Return FAILURE as a value.
3645 (printable_version): Declare arg as int, not char.
3647 1997-01-02 Richard Stallman <rms@gnu.org>
3649 * Makefile.in (dist):
3650 Explicitly check for symlinks, and copy them.
3652 1996-12-19 Richard Stallman <rms@gnu.org>
3655 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3657 1996-12-18 Paul Eggert <eggert@gnu.org>
3659 * src/bison.s1 (yyparse):
3660 If __GNUC__ and YYPARSE_PARAM are both defined,
3661 declare yyparse to have a void * argument.
3663 1996-12-18 Paul Eggert <eggert@gnu.org>
3665 * bison.simple (yyparse):
3666 If __GNUC__ and YYPARSE_PARAM are both defined,
3667 declare yyparse to have a void * argument.
3669 1996-12-17 Richard Stallman <rms@gnu.org>
3671 * src/reduce.c (nbits): Add some casts.
3673 1996-08-12 Richard Stallman <rms@gnu.org>
3675 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3677 1996-08-12 Richard Stallman <rms@gnu.org>
3679 * bison.simple: Test _MSDOS as well as _MSDOS_.
3681 1996-07-31 Richard Stallman <rms@gnu.org>
3684 [__sun && __i386]: Include alloca.h.
3686 1996-07-31 Richard Stallman <rms@gnu.org>
3689 [__sun && __i386]: Include alloca.h.
3691 1996-07-30 Richard Stallman <rms@gnu.org>
3693 * src/bison.s1: Comment change.
3695 * src/bison.s1: Test _MSDOS_, not MSDOS.
3697 1996-07-30 Richard Stallman <rms@gnu.org>
3699 * bison.simple: Comment change.
3701 * bison.simple: Test _MSDOS_, not MSDOS.
3703 1996-06-01 Richard Stallman <rms@gnu.org>
3705 * 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:
3706 Insert `_' macro around many string constants.
3709 Insert `_' macro around many string constants.
3711 (main): Call setlocale, bindtextdomain and textdomain.
3713 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3714 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3715 [ENABLE_NLS]: Include libintl.h.
3716 [ENABLE_NLS] (gettext): Define.
3717 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3718 (N_, PACKAGE, LOCALEDIR): New macros.
3720 1996-06-01 Richard Stallman <rms@gnu.org>
3722 * POTFILES.in: New file.
3724 * Makefile.in (allocate.o):
3725 Define target explicitly.
3727 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3728 (LDFLAGS): Set to @LDFLAGS@.
3729 (configure): Run autoconf only if preceding `cd' succeeds.
3730 (bison.s1): Redirect output to temporary file then move the
3731 temporary to the target, rather than redirecting directly to bison.s1.
3732 (clean): Remove config.status and config.log.
3733 (distclean): Don't remove config.status here.
3735 1996-05-12 Richard Stallman <rms@gnu.org>
3738 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3740 1996-05-12 Richard Stallman <rms@gnu.org>
3743 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3745 1996-05-11 Richard Stallman <rms@gnu.org>
3747 * src/bison.s1 (__yy_memcpy):
3748 Really reorder the args, as was supposedly done on Feb 14 1995.
3749 (yyparse): Calls changed accordingly.
3751 1996-05-11 Richard Stallman <rms@gnu.org>
3753 * Makefile.in (dist): Don't use $(srcdir).
3755 * bison.simple (__yy_memcpy):
3756 Really reorder the args, as was supposedly done on Feb 14 1995.
3757 (yyparse): Calls changed accordingly.
3759 1996-01-27 Richard Stallman <rms@gnu.org>
3761 * src/output.c (output_rule_data):
3762 Test YYERROR_VERBOSE in the conditional
3763 around the definition of ttyname.
3765 1995-12-29 Richard Stallman <rms@gnu.org>
3768 Fix line numbers in #line commands.
3770 1995-12-29 Richard Stallman <rms@gnu.org>
3773 Fix line numbers in #line commands.
3775 1995-12-27 Richard Stallman <rms@gnu.org>
3777 * src/bison.s1 (YYPARSE_PARAM_DECL):
3778 In C++, make it always null.
3779 (YYPARSE_PARAM_ARG): New macro.
3780 (yyparse): Use YYPARSE_PARAM_ARG.
3782 1995-12-27 Richard Stallman <rms@gnu.org>
3784 * bison.simple (YYPARSE_PARAM_DECL):
3785 In C++, make it always null.
3786 (YYPARSE_PARAM_ARG): New macro.
3787 (yyparse): Use YYPARSE_PARAM_ARG.
3789 1995-11-29 Richard Stallman <rms@gnu.org>
3791 * doc/bison.texinfo:
3792 Describe literal string tokens, %raw, %no_lines, %token_table.
3794 1995-11-29 Daniel Hagerty <hag@gnu.org>
3796 * doc/bison.texinfo: Fixed update date
3798 1995-10-16 Richard Stallman <rms@gnu.org>
3800 * src/version.c: Version 1.25.
3802 1995-10-16 Richard Stallman <rms@gnu.org>
3804 * NEWS: *** empty log message ***
3806 1995-10-16 Richard Stallman <rms@gnu.org>
3808 * doc/bison.1, doc/bison.rnh:
3811 1995-10-15 Richard Stallman <rms@gnu.org>
3813 * src/vmsgetargs.c, src/getargs.c:
3814 Added -n, -k, and -raw switches.
3815 (noparserflag, toknumflag, rawtoknumflag): New variables.
3817 * src/symtab.h (SALIAS):
3818 New #define for adding aliases to %token.
3819 (struct bucket): Added `alias' field.
3821 * src/reduce.c (reduce_grammar):
3822 Revise error message.
3823 (print_notices): Remove final `.' from error message.
3825 * src/reader.c (reader_output_yylsp):
3827 (readgram): Use `#if 0' around code that accepted %command
3828 inside grammar rules: The documentation doesn't allow it,
3829 and it will fail since the %command processors scan for the next %.
3830 (parse_token_decl): Extended the %token
3831 declaration to allow a multi-character symbol as an alias.
3832 (parse_thong_decl): New function.
3833 (read_declarations): Added %thong declarations.
3834 (read_declarations): Handle NOOP to deal with allowing
3835 % declarations as another means to specify the flags.
3836 (readgram): Allow %prec prior to semantics embedded in a rule.
3837 (skip_to_char, read_declarations, copy_definition)
3838 (parse_token_decl, parse_start_decl, parse_type_decl)
3839 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3840 (get_type_name, copy_guard, copy_action, readgram)
3841 (get_type, packsymbols): Revised most error messages.
3842 Changed `fatal' to `warnxxx' to avoid aborting for error.
3843 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3844 (read_declarations): Improve the error message for
3845 an invalid character. Do not abort.
3846 (read_declarations, copy_guard, copy_action): Use
3847 printable_version to avoid unprintable characters in printed output.
3848 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3849 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3850 Allow the type of a non-terminal can be given
3851 more than once, as long as all specifications give the same type.
3854 (output_headers, output_trailers, output, output_gram)
3855 (output_rule_data): Implement noparserflag variable.
3856 Implement toknumflag variable.
3857 (output): Call reader_output_yylsp to output LTYPESTR.
3859 * src/main.c (main):
3860 If reader sees an error, don't process the grammar.
3861 (fatals): Updated to not use VARARGS1.
3862 (printable_version, int_to_string, warn, warni, warns, warnss)
3863 (warnsss): New error reporting functions. Avoid abort for error.
3866 Added THONG and NOOP for alias processing.
3867 Added SETOPT for the new code that allows setting options with %flags.
3870 Include getopt.h. Add some extern decls.
3871 (safegetc): New function to deal with EOF gracefully.
3872 (literalchar); new function to deal with reading \ escapes.
3873 (lex): Use literalchar.
3874 (lex): Implemented "..." tokens.
3875 (literalchar, lex, parse_percent_token): Made tokenbuffer
3876 always contain the token. This includes growing the token
3877 buffer while reading an integer.
3878 (parse_percent_token): Replaced if-else statement with percent_table.
3879 (parse_percent_token): Added % declarations as another
3880 way to specify the flags -n, -l, and -r. Also added hooks for
3881 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3882 major changes to files.c.
3883 (lex) Retain in the incoming stream a character following
3885 (skip_white_space, lex): Revised most error messages
3886 and changed fatal to warn to avoid aborting.
3887 (percent_table): Added %thong declarations.
3889 * src/gram.h: Comment changes.
3891 * src/files.c (openfiles, open_extra_files, done):
3893 and actfile file. Handle noparserflag. Both for -n switch.
3895 * src/conflicts.c (resolve_sr_conflict):
3896 Remove use of alloca.
3898 1995-06-01 Jim Meyering <meyering@gnu.org>
3900 * doc/bison.texinfo: *** empty log message ***
3902 1995-05-06 Richard Stallman <rms@gnu.org>
3904 * src/bison.s1: Comment change.
3906 1995-05-06 Richard Stallman <rms@gnu.org>
3908 * bison.simple: Comment change.
3910 1995-05-03 Richard Stallman <rms@gnu.org>
3912 * src/version.c: Version now 1.24.
3914 * src/bison.s1: Change distribution terms.
3916 * src/version.c: Version now 1.23.
3918 1995-05-03 Richard Stallman <rms@gnu.org>
3920 * doc/bison.texinfo:
3921 Rewrite "Conditions for Using Bison".
3922 Update version to 1.24.
3924 1995-05-03 Richard Stallman <rms@gnu.org>
3926 * bison.simple: Change distribution terms.
3928 1995-02-23 Richard Stallman <rms@gnu.org>
3930 * src/files.c: Test __VMS_POSIX as well as VMS.
3932 1995-02-14 Jim Meyering <meyering@gnu.org>
3934 * src/bison.s1 (__yy_memcpy):
3935 Renamed from __yy_bcopy to avoid
3936 confusion. Reverse FROM and TO arguments to be consistent with
3939 1995-02-14 Jim Meyering <meyering@gnu.org>
3941 * bison.simple (__yy_memcpy):
3942 Renamed from __yy_bcopy to avoid
3943 confusion. Reverse FROM and TO arguments to be consistent with
3946 1994-11-10 David J. MacKenzie <djm@gnu.org>
3952 * Makefile.in (DISTFILES): Include NEWS.
3954 * Makefile.in (DISTFILES):
3955 Include install-sh, not install.sh.
3957 * configure.in: Update to Autoconf v2 macro names.
3959 1994-10-05 David J. MacKenzie <djm@gnu.org>
3961 * Makefile.in: fix typo
3963 * Makefile.in (prefix, exec_prefix):
3964 Let configure set them.
3966 1994-09-28 David J. MacKenzie <djm@gnu.org>
3968 * Makefile.in: Set datadir to $(prefix)/share.
3970 1994-09-15 Richard Stallman <rms@gnu.org>
3973 Update copyright notice and GPL version.
3975 1994-09-15 Richard Stallman <rms@gnu.org>
3978 Update copyright notice and GPL version.
3980 1994-07-12 Richard Stallman <rms@gnu.org>
3982 * src/reduce.c, src/reader.c:
3985 1994-05-05 David J. MacKenzie <djm@gnu.org>
3987 * Makefile.in: entered into RCS
3989 1994-03-26 Richard Stallman <rms@gnu.org>
3991 * src/bison.s1: entered into RCS
3993 1994-03-26 Richard Stallman <rms@gnu.org>
3995 * bison.simple: entered into RCS
3997 1994-03-25 Richard Stallman <rms@gnu.org>
3999 * src/main.c: entered into RCS
4001 1994-03-24 Richard Stallman <rms@gnu.org>
4003 * src/conflicts.c: entered into RCS
4005 1994-01-02 Richard Stallman <rms@gnu.org>
4007 * Makefile.in: *** empty log message ***
4009 1993-11-21 Richard Stallman <rms@gnu.org>
4011 * src/bison.s1: *** empty log message ***
4013 1993-11-21 Richard Stallman <rms@gnu.org>
4015 * doc/bison.texinfo: entered into RCS
4017 * doc/bison.texinfo: *** empty log message ***
4019 1993-11-21 Richard Stallman <rms@gnu.org>
4021 * bison.simple: *** empty log message ***
4023 1993-10-25 David J. MacKenzie <djm@gnu.org>
4025 * doc/bison.texinfo: *** empty log message ***
4027 1993-10-19 Richard Stallman <rms@gnu.org>
4029 * src/bison.s1: *** empty log message ***
4031 1993-10-19 Richard Stallman <rms@gnu.org>
4033 * bison.simple: *** empty log message ***
4035 1993-10-14 Richard Stallman <rms@gnu.org>
4037 * src/bison.s1: *** empty log message ***
4039 1993-10-14 Richard Stallman <rms@gnu.org>
4041 * bison.simple: *** empty log message ***
4043 1993-09-14 David J. MacKenzie <djm@gnu.org>
4045 * doc/bison.texinfo: *** empty log message ***
4047 1993-09-13 Noah Friedman <friedman@gnu.org>
4049 * Makefile.in: *** empty log message ***
4051 1993-09-10 Richard Stallman <rms@gnu.org>
4053 * src/conflicts.c: *** empty log message ***
4055 * src/system.h: entered into RCS
4057 1993-09-10 Richard Stallman <rms@gnu.org>
4059 * doc/bison.1: entered into RCS
4061 1993-09-06 Noah Friedman <friedman@gnu.org>
4063 * src/version.c: entered into RCS
4065 1993-09-06 Noah Friedman <friedman@gnu.org>
4067 * Makefile.in: *** empty log message ***
4069 1993-07-30 David J. MacKenzie <djm@gnu.org>
4071 * Makefile.in: *** empty log message ***
4073 1993-07-24 Richard Stallman <rms@gnu.org>
4075 * src/bison.s1: *** empty log message ***
4077 1993-07-24 Richard Stallman <rms@gnu.org>
4079 * bison.simple: *** empty log message ***
4081 1993-07-08 David J. MacKenzie <djm@gnu.org>
4083 * Makefile.in: *** empty log message ***
4085 1993-07-04 Richard Stallman <rms@gnu.org>
4087 * src/bison.s1: *** empty log message ***
4089 1993-07-04 Richard Stallman <rms@gnu.org>
4091 * bison.simple: *** empty log message ***
4093 1993-06-26 David J. MacKenzie <djm@gnu.org>
4095 * src/getargs.c: entered into RCS
4097 1993-06-26 David J. MacKenzie <djm@gnu.org>
4099 * doc/bison.texinfo: *** empty log message ***
4101 * doc/bison.1: New file.
4103 1993-06-25 Richard Stallman <rms@gnu.org>
4105 * src/getargs.c: New file.
4107 1993-06-16 Richard Stallman <rms@gnu.org>
4109 * src/bison.s1: *** empty log message ***
4111 1993-06-16 Richard Stallman <rms@gnu.org>
4113 * bison.simple: *** empty log message ***
4115 1993-06-03 Richard Stallman <rms@gnu.org>
4117 * src/bison.s1: New file.
4119 1993-06-03 Richard Stallman <rms@gnu.org>
4121 * doc/bison.texinfo: *** empty log message ***
4123 1993-06-03 Richard Stallman <rms@gnu.org>
4125 * bison.simple: New file.
4127 1993-05-19 Richard Stallman <rms@gnu.org>
4129 * doc/bison.texinfo: New file.
4131 1993-05-07 Noah Friedman <friedman@gnu.org>
4133 * Makefile.in: *** empty log message ***
4135 1993-04-28 Noah Friedman <friedman@gnu.org>
4137 * src/reader.c: *** empty log message ***
4139 1993-04-23 Noah Friedman <friedman@gnu.org>
4141 * src/alloc.h: entered into RCS
4143 1993-04-20 David J. MacKenzie <djm@gnu.org>
4145 * src/version.c: *** empty log message ***
4147 * src/files.c, src/allocate.c:
4150 * src/reader.c: *** empty log message ***
4152 * src/lex.c: entered into RCS
4154 * src/conflicts.c: New file.
4156 * src/symtab.c: entered into RCS
4158 * src/alloc.h: New file.
4160 * src/LR0.c: entered into RCS
4162 1993-04-18 Noah Friedman <friedman@gnu.org>
4164 * src/reader.c: New file.
4166 * src/version.c: *** empty log message ***
4168 1993-04-18 Noah Friedman <friedman@gnu.org>
4170 * Makefile.in: *** empty log message ***
4172 1993-04-17 Noah Friedman <friedman@gnu.org>
4174 * Makefile.in: *** empty log message ***
4176 1993-04-15 Richard Stallman <rms@gnu.org>
4178 * src/main.c, src/files.c:
4181 1993-04-15 Noah Friedman <friedman@gnu.org>
4183 * configure.in: entered into RCS
4185 * configure.in: *** empty log message ***
4187 * configure.in: New file.
4189 1993-04-14 Richard Stallman <rms@gnu.org>
4191 * Makefile.in: New file.
4193 1993-04-13 Richard Stallman <rms@gnu.org>
4195 * src/version.c: New file.
4197 1993-03-25 Richard Stallman <rms@gnu.org>
4199 * src/output.c: entered into RCS
4201 1992-09-25 Richard Stallman <rms@gnu.org>
4203 * configure.bat: entered into RCS
4205 1992-06-22 Richard Stallman <rms@gnu.org>
4207 * src/vmsgetargs.c: entered into RCS
4209 1992-06-22 Richard Stallman <rms@gnu.org>
4211 * doc/bison.rnh: entered into RCS
4213 1992-04-20 David J. MacKenzie <djm@gnu.org>
4215 * README: entered into RCS
4217 1992-01-22 Richard Stallman <rms@gnu.org>
4219 * src/machine.h: entered into RCS
4221 1991-12-21 Richard Stallman <rms@gnu.org>
4223 * src/lalr.c, src/closure.c:
4226 1991-12-20 Richard Stallman <rms@gnu.org>
4228 * src/state.h: entered into RCS
4230 1991-12-18 Richard Stallman <rms@gnu.org>
4232 * src/print.c, src/nullable.c, src/derives.c:
4235 1991-11-03 David J. MacKenzie <djm@gnu.org>
4237 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4240 1988-09-09 Richard Stallman <rms@gnu.org>
4242 * src/bison.hairy: entered into RCS
4244 1987-12-16 Richard Stallman <rms@gnu.org>
4246 * REFERENCES: entered into RCS