1 2002-01-22 Akim Demaille <akim@epita.fr>
3 Bison dumps core when trying to complain about broken input files.
4 Reported by Cris van Pelt.
6 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
7 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
9 (Invalid inputs): Strengthen: exercise parse_percent_token.
11 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
15 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
17 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
19 2002-01-20 Marc Autret <marc@gnu.org>
21 * src/system.h: Need to define __attribute__ away for non-GCC
22 compilers as well (i.e. the vendor C compiler).
23 Suggested by Albert Chin-A-Young.
25 2002-01-19 Marc Autret <marc@gnu.org>
27 * tests/output.at: New test.
28 * src/files.c (compute_base_names): Don't map extensions when
29 the YACC flag is set, use defaults.
30 Reported by Evgeny Stambulchik.
32 2002-01-19 Marc Autret <marc@gnu.org>
34 * configure.in, doc/version.texi: Bump to 1.31a.
36 2002-01-14 Akim Demaille <akim@epita.fr>
40 2002-01-14 Akim Demaille <akim@epita.fr>
42 * tests/regression.at (Invalid CPP headers): Remove.
44 2002-01-12 Akim Demaille <akim@epita.fr>
48 2002-01-12 Akim Demaille <akim@epita.fr>
50 * lib/Makefile.am (EXTRA_DIST): Add strnlen.c: Automake is still
51 not using Autoconf traces and does not see Autoconf's AC_LIBOBJ.
53 2002-01-11 Akim Demaille <akim@epita.fr>
57 2002-01-11 Akim Demaille <akim@epita.fr>
59 * configure.in: Use AC_FUNC_STRNLEN.
60 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
62 2002-01-09 Akim Demaille <akim@epita.fr>
66 2002-01-09 Akim Demaille <akim@epita.fr>
68 * configure.in (WERROR_CFLAGS): Compute it.
69 * src/Makefile.am (CFLAGS): Pass it.
70 * tests/atlocal.in (CFLAGS): Idem.
72 2002-01-08 Akim Demaille <akim@epita.fr>
74 * lib/Makefile.am (libbison_a_SOURCES): Add xstrndup.c.
75 * src/getargs.c (AS_FILE_NAME): New.
76 (getargs): Use it to convert DOSish file names.
77 * src/files.c (base_name): Rename as full_base_name to avoid
78 clashes with `base_name ()'.
79 (get_extension_index): Remove.
80 (filename_split): New.
81 (compute_base_names): N-th rewrite, using filename_split.
83 2002-01-08 Akim Demaille <akim@epita.fr>
85 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c,
86 * lib/xstrndup.c, lib/strchr.c:
87 New, stolen from the Fileutils 4.1.
88 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
89 * configure.in: Check for the presence of memrchr, strchr,
90 strnlen, and of their prototypes.
91 Don't check for strndup: we no longer use it.
92 * src/system.h: Adjust the prototypes.
94 2002-01-07 Akim Demaille <akim@epita.fr>
96 * src/conflicts.c (count_rr_conflicts): The previous RR conflicts
97 patch was improperly applied: fix it.
99 2002-01-07 Akim Demaille <akim@epita.fr>
101 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
102 'switch' without a following semicolon.
103 * tests/regression.at (braces parsing): New.
105 2002-01-06 Akim Demaille <akim@epita.fr>
107 Bison is dead wrong in its RR conflict reports.
109 * tests/torture.at (GNU Cim Grammar): New.
110 * src/conflicts.c (count_rr_conflicts): Fix.
112 2002-01-06 Akim Demaille <akim@epita.fr>
114 Creating package.m4 from configure.ac causes too many problems.
116 * tests/Makefile.am (package.m4): Create it by hand,
117 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
119 2002-01-04 Paul Eggert <eggert@twinsun.com>
121 * doc/bison.texinfo (Debugging):
122 Remove YYSTDERR; it's no longer defined or used.
123 Also, s/cstdio.h/cstdio/.
125 2002-01-03 Akim Demaille <akim@epita.fr>
127 * src/files.h: Add it prototype.
129 2002-01-03 Akim Demaille <akim@epita.fr>
131 * src/files.c, src/files.h (strsuffix): Not static.
132 * src/conflicts.c (conflicts_print): Don't consider it is an error
133 to have a %expectation violation on a file ending by `plural.y'.
136 2002-01-03 Akim Demaille <akim@epita.fr>
138 * tests/bison.in: Adjust to CVS Autoconf.
139 * tests/calc.at (exp): We no longer need to special case GCC as
140 the warning flags are passed by configure.
141 * tests/atlocal.in: Adjust.
142 * configure.in: Bump to 1.30j.
144 2002-01-03 Akim Demaille <akim@epita.fr>
148 2002-01-03 Akim Demaille <akim@epita.fr>
150 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
151 The ISO C++ standard is extremely clear about it: stderr is
152 considered a macro, not a regular symbol (see table 94 `Header
153 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
154 Therefore std:: does not apply to it. It still does with fprintf.
155 Also, s/cstdio.h/cstdio/.
157 2002-01-03 Akim Demaille <akim@epita.fr>
159 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
160 for non system headers.
162 2001-12-27 Paul Eggert <eggert@twinsun.com>
164 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
165 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
166 Sparc, as they were causing more porting problems than the
167 (minor) performance improvement was worth.
169 2001-12-22 Akim Demaille <akim@epita.fr>
171 * src/output.c (output_short_table, output_short_or_char_table):
172 Change the prototype to use `int' for array ranges: some
173 invocations do pass an int, not a short.
174 Reported by Wayne Green.
176 2001-12-22 Akim Demaille <akim@epita.fr>
178 Some actions of web2c.y are improperly triggered.
179 Reported by Mike Castle.
181 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
182 * tests/regression.at (Web2c): Rename as...
183 (Web2c Report): this.
184 (Web2c Actions): New.
186 2001-12-22 Akim Demaille <akim@epita.fr>
188 Reductions in web2c.y are improperly reported.
189 Reported by Mike Castle.
191 * src/conflicts.c (print_reductions): Fix.
192 * tests/regression.at (Web2c): New.
194 2001-12-18 Akim Demaille <akim@epita.fr>
198 2001-12-18 Akim Demaille <akim@epita.fr>
200 Some host fail on `assert (!"foo")', which expands to
201 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
202 Reported by Nelson Beebee.
204 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
205 `#define it_succeeded 0' and `assert (it_succeeded)'.
207 2001-12-17 Paul Eggert <eggert@twinsun.com>
209 * src/bison.simple (YYSTD): New macro.
210 (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE, YYFPRINTF, YYSTDERR): Use
211 it to simplify macros, and fix some C++ porting problems reported
214 * src/output.c (output): Define YYDEBUG to 0 if it is not defined
215 and if we are not debugging. POSIX requires this.
216 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document this.
218 * src/output.c (output_gram, output_rule_data): Do not assume that
219 the user defines YYDEBUG to a properly parenthesized expression.
221 2001-12-15 Akim Demaille <akim@epita.fr>
223 * src/nullable.c (set_nullable): Useless rules must be skipped,
224 otherwise, since we range over their symbols, we might look at a
225 nonterminal which no longer ``exists'', i.e., it is not counted in
226 `nvars', hence we overflow our arrays.
228 2001-12-15 Akim Demaille <akim@epita.fr>
230 * src/reader.c (copy_action): When --yacc, don't append a `;'
231 to the user action: let it fail if lacking.
232 Suggested by Arnold Robbins and Tom Tromey.
234 2001-12-13 Akim Demaille <akim@epita.fr>
238 2001-12-13 Akim Demaille <akim@epita.fr>
240 The computation of nullable is broken: it doesn't handle empty
243 * tests/torture.at (GNU AWK Grammar): New.
244 * tests/sets.at (Nullable): New.
245 * src/nullable.c (set_nullable): Instead of blindly looping over
246 `ritems', loop over the rules, and then over their rhs's.
248 Work around Autotest bugs.
250 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
251 frame, because Autotest understand lines starting with a `+' as
252 traces from the shell. Then, they are not processed properly.
253 Admittedly an Autotest bug, but we don't have time to wait for
254 Autotest to catch up.
255 * tests/regression.at (Broken Closure): Adjust to the new table
258 * tests/sets.at: here.
260 2001-12-12 Paul Eggert <eggert@twinsun.com>
262 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
263 Do not infringe on the global user namespace when using C++.
264 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
265 All uses of `fprintf' and `stderr' changed.
267 * src/output.c (output): Do not output "#include <stdio.h>"; that
268 is bison.simple's job. stdio.h should be included only if
269 necessary, to avoid infringing on the user name space when
272 2001-12-12 Akim Demaille <akim@epita.fr>
274 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
275 on that of lib/error.c.
277 2001-12-12 Akim Demaille <akim@epita.fr>
279 Some hosts don't like `/' in includes.
281 * src/system.h: Include libgettext.h without qualifying the path.
282 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
285 2001-12-10 Akim Demaille <akim@epita.fr>
287 Bison dumps core on bash.y.
288 Reported by Pascal Bart.
290 * src/warshall.c (bitmatrix_print): New.
292 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
293 j must be the outer loop.
294 * tests/regression.at (Broken Closure): New.
296 2001-12-05 Akim Demaille <akim@epita.fr>
300 2001-12-05 Akim Demaille <akim@epita.fr>
302 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
304 Reported by Peter Hámorský.
306 2001-12-05 Akim Demaille <akim@epita.fr>
308 * src/conflicts.c (err_table): Remove.
309 (resolve_sr_conflict): Adjust.
310 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
312 (state_t.reductions, state_t.shifts): this.
314 2001-12-05 Akim Demaille <akim@epita.fr>
316 * src/reduce.c (reduce_grammar_tables): No longer disable the
317 removal of useless rules via CPP but via `if (0)', so that the
318 compiler still check the code is valid.
319 For instance, it should have noticed `rline' no longer exists: use
320 the `line' member of rule_t.
321 * src/gram.c (dummy, rline): Remove, unused.
323 2001-12-05 Akim Demaille <akim@epita.fr>
325 * src/output.c (pack_vector): Use assert, not berror.
326 * src/main.c (berror): Remove, unused.
328 2001-12-05 Akim Demaille <akim@epita.fr>
330 New experimental feature: if --verbose --trace output all the
331 items of a state, not only its kernel.
333 * src/print.c (print_core): If `trace_flag', then invoke closure
334 before outputting the items of the state (print_core is no longer
335 a correct name them).
336 (print_results): Invoke new_closure/free_closure if needed.
338 2001-12-05 Akim Demaille <akim@epita.fr>
340 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
341 * src/closure.c, src/closure.h (itemsetsize): Rename as...
342 (nitemset): for consistency with the rest of the project.
344 2001-12-05 Akim Demaille <akim@epita.fr>
346 * src/closure.c (print_closure): Improve.
347 (closure): Use it for printing input and output.
349 2001-12-05 Akim Demaille <akim@epita.fr>
351 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
352 indexed by nonterminals.
354 2001-12-05 Akim Demaille <akim@epita.fr>
356 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
358 * src/warshall.h: Remove accidental duplication of the content.
360 2001-12-05 Akim Demaille <akim@epita.fr>
362 * src/closure.c (set_fderives): De-obfuscate.
364 2001-12-05 Akim Demaille <akim@epita.fr>
366 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
368 2001-12-05 Akim Demaille <akim@epita.fr>
370 * src/closure.c (set_firsts): De-obfuscate.
372 2001-12-05 Akim Demaille <akim@epita.fr>
374 * src/output.c (action_row): De-obfuscate
375 using the good o' techniques: arrays not pointers, variable
376 locality, BITISSET, RESETBIT etc.
378 2001-12-05 Akim Demaille <akim@epita.fr>
380 Pessimize the code to simplify it: from now on, all the states
381 have a valid SHIFTS, which NSHIFTS is possibly 0.
383 * src/LR0.c (shifts_new): Be global and move to..
384 * src/state.c, src/state.h: here.
385 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
386 * src/print_graph: Adjust.
388 2001-12-05 Akim Demaille <akim@epita.fr>
390 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
391 * src/conflicts.c: Use it.
392 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
393 incorrectly ``simplified''.
395 2001-12-05 Akim Demaille <akim@epita.fr>
397 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
398 using the good o' techniques: arrays not pointers, variable
399 locality, BITISSET, RESETBIT etc.
401 2001-12-05 Akim Demaille <akim@epita.fr>
403 * src/state.h (SHIFT_SYMBOL): New.
404 * src/conflicts.c: Use it to deobfuscate.
406 2001-12-05 Akim Demaille <akim@epita.fr>
408 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
409 (print_reductions): De-obfuscate using the good o' techniques:
410 arrays not pointers, variable locality, BITISSET.
412 2001-12-05 Akim Demaille <akim@epita.fr>
414 * src/conflicts.c (print_reductions): Arrays, not pointers.
417 2001-12-05 Akim Demaille <akim@epita.fr>
419 * src/conflicts.c (print_reductions): Pessimize, but clarify.
421 2001-12-05 Akim Demaille <akim@epita.fr>
423 * src/conflicts.c (print_reductions): Improve variable locality.
425 2001-12-05 Akim Demaille <akim@epita.fr>
427 * src/conflicts.c (print_reductions): Pessimize, but clarify.
429 2001-12-05 Akim Demaille <akim@epita.fr>
431 * src/conflicts.c (print_reductions): Improve variable locality.
433 2001-12-05 Akim Demaille <akim@epita.fr>
435 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
436 * src/lalr.c: Use them.
438 2001-12-05 Akim Demaille <akim@epita.fr>
440 * src/LR0.c (augment_automaton): Formatting changes.
441 Better variable locality.
443 2001-12-05 Akim Demaille <akim@epita.fr>
445 * src/lalr.c (matrix_print): New.
447 Use arrays instead of pointers.
449 2001-12-05 Akim Demaille <akim@epita.fr>
451 * src/lalr.c (maxrhs): Move to...
452 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
453 * src/lalr.c (build_relations): Adjust.
455 2001-12-05 Akim Demaille <akim@epita.fr>
457 * src/lalr.c (transpose): Free the memory allocated to the
458 argument, as it is replaced by the results by the unique caller.
459 (build_relations): Merely invoke transpose: it handles the memory
461 Improve variable locality.
462 Avoid variables used as mere abbreviations.
463 (compute_lookaheads): Use arrays instead of pointers.
465 2001-12-05 Akim Demaille <akim@epita.fr>
467 * src/lalr.c (initialize_F): Improve variable locality.
468 Avoid variables used as mere abbreviations.
470 2001-12-05 Akim Demaille <akim@epita.fr>
472 * src/derives.c (print_derives): Display the ruleno.
473 * src/lalr.c (initialize_F, transpose): Better variable locality
474 to improve readability.
475 Avoid variables used as mere abbreviations.
477 2001-12-05 Akim Demaille <akim@epita.fr>
479 * src/lalr.c (traverse): Use arrays instead of pointers.
481 2001-12-05 Akim Demaille <akim@epita.fr>
483 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
484 the handling of squeue.
485 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
487 2001-12-05 Akim Demaille <akim@epita.fr>
489 Because useless nonterminals are now kept alive (instead of being
490 `destroyed'), we now sometimes examine them, and store information
491 related to them. Hence we need to know their number, and adjust
494 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
496 * src/LR0.c (allocate_itemsets): The memory allocated to
497 `symbol_count' was used for two different purpose: once to count
498 the number of occurrences of each symbol, and later reassigned to
499 `shift_symbol', containing the symbol that can be shifted from a
501 Deobfuscate, i.e., allocate, use and free `symbol_count' here
503 (new_itemsets): Allocate `shift_symbol' here.
504 (allocate_itemsets): symbol_count includes useless nonterminals.
506 (free_storage): Use `free', not `XFREE', for pointers that cannot
509 2001-12-05 Akim Demaille <akim@epita.fr>
511 * src/nullable.c (set_nullable): Deobfuscate the handling of
513 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
515 2001-12-05 Akim Demaille <akim@epita.fr>
517 * src/gram.c, src/gram.h (ritem_print): New.
518 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
519 (This useless function was defined only to work around VMS linkers
520 that can't handle compilation units with variables only).
521 * src/reduce.c (dump_grammar): Use it to trace the construction of
524 2001-12-04 Paul Eggert <eggert@twinsun.com>
526 * src/bison.simple (union yyalloc): Change member names
527 to be the same as the stack names.
528 (yyparse): yyptr is now union yyalloc *, not char *.
529 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
530 and may generate better code on some machines.
531 (yystpcpy): Use prototype if __STDC__ is defined, not just
532 if __cplusplus is defined.
534 2001-11-30 Akim Demaille <akim@epita.fr>
536 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
537 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
538 Gettext doesn't compile cleanly, and dies with -Werror.
539 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
540 Include WARNING_CFLAGS here.
541 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
542 before being defined.
544 2001-11-30 Paul Eggert <eggert@twinsun.com>
546 * lib/quotearg.h (quotearg_n, quotearg_n_style):
547 First arg is int, not unsigned.
548 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
549 (SIZE_MAX, UINT_MAX): New macros.
550 (quotearg_n_options): Abort if N is negative.
551 Avoid overflow check on hosts where size_t is 64 bits and int
552 is 32 bits, as overflow is impossible there.
553 Fix off-by-one typo that caused unnecessary reallocation.
555 2001-11-30 Paul Eggert <eggert@twinsun.com>
557 Name space cleanup in generated parser.
559 * doc/bison.texinfo (Bison Parser): Discuss system headers
560 and their effect on the user name space.
563 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
564 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
565 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
567 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
568 on user names when possible.
570 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
571 Simplify test for whather <alloca.h> exists.
573 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
575 (<stdio.h>): Include if YYDEBUG.
577 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
578 ! defined (yyoverflow) && ! defined (yymemcpy).
580 (yymemcpy, yyparse): Rename local variables as needed so that
581 they all begin with 'yy'.
583 (yystrlen, yystpcpy): New functions.
585 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
588 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
589 instead of relying on string.h functions. Use YYSTACK_ALLOC
590 and YYSTACK_FREE instead of malloc and free.
592 2001-11-30 Akim Demaille <akim@epita.fr>
594 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
595 if body instead of `;' to pacify GCC's warnings.
597 2001-11-30 Akim Demaille <akim@epita.fr>
599 Instead of mapping the LHS of unused rules to -1, keep the LHS
600 valid, but flag the rules as invalid.
602 * src/gram.h (rule_t): `useful' is a new member.
603 * src/print.c (print_grammar): Adjust.
604 * src/derives.c (set_derives): Likewise.
605 * src/reader.c (packgram, reduce_output): Likewise.
606 * src/reduce.c (reduce_grammar_tables): Likewise.
607 * tests/reduce.at (Underivable Rules, Useless Rules): New.
609 2001-11-30 Akim Demaille <akim@epita.fr>
611 * src/reduce.c (reduce_output): Formatting changes.
612 * src/print.c (print_results, print_grammar): Likewise.
613 * tests/regression.at (Rule Line Numbers)
614 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
616 2001-11-30 Akim Demaille <akim@epita.fr>
618 * src/reduce.c (nonterminals_reduce): Instead of throwing away
619 useless nonterminals, move them at the end of the symbol arrays.
620 (reduce_output): Adjust.
621 * tests/reduce.at (Useless Nonterminals): Adjust.
623 2001-11-30 Akim Demaille <akim@epita.fr>
625 * src/reduce.c: Various comment/formatting changes.
626 (nonterminals_reduce): New, extracted from...
627 (reduce_grammar_tables): here.
628 (reduce_grammar): Call nonterminals_reduce.
630 2001-11-29 Paul Eggert <eggert@twinsun.com>
632 * src/bison.simple (YYSTACK_REALLOC): Remove.
633 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
634 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
636 (union yyalloc): New type.
637 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
638 an arbitrary restriction on hosts where size_t is wider than int.
640 (yyparse): Don't dump core if alloca or malloc fails; instead, report
641 a parser stack overflow. Allocate just one block of memory for all
642 three stacks, instead of allocating three blocks; this typically is
643 faster and reduces fragmentation.
645 Do not limit the number of items in the stack to a value that fits
646 in 'int', as this is an arbitrary limit on hosts with 64-bit
647 size_t and 32-bit int.
649 2001-11-28 Akim Demaille <akim@epita.fr>
651 * src/LR0.c (shifts_new): New.
652 (save_shifts, insert_start_shift, augment_automaton): Use it.
654 2001-11-28 Akim Demaille <akim@epita.fr>
656 * src/closure.c (closure): `b' and `ruleno' denote the same value:
659 2001-11-28 Akim Demaille <akim@epita.fr>
661 * src/closure.c (closure): Instead of looping over word in array
662 then bits in words, loop over bits in array.
664 2001-11-28 Akim Demaille <akim@epita.fr>
666 * src/closure.c (closure): No longer optimize the special case
667 where all the bits of `ruleset[r]' are set to 0, to make the code
670 2001-11-28 Akim Demaille <akim@epita.fr>
672 * src/closure.c (closure): `r' and `c' are new variables, used to
673 de-obfuscate accesses to RULESET and CORE.
675 2001-11-28 Akim Demaille <akim@epita.fr>
677 * src/reduce.c (reduce_print): Use ngettext.
678 (dump_grammar): Improve the trace accuracy.
680 2001-11-28 Akim Demaille <akim@epita.fr>
682 * src/reduce.c (dump_grammar): Don't translate trace messages.
684 2001-11-28 Akim Demaille <akim@epita.fr>
686 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
687 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
688 as all tags are free'ed afterwards.
691 2001-11-27 Akim Demaille <akim@epita.fr>
693 * src/system.h: Use intl/libgettext.h.
694 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
696 2001-11-27 Paul Eggert <eggert@twinsun.com>
698 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
699 use alloca when we didn't want to, and vice versa.
701 2001-11-27 Akim Demaille <akim@epita.fr>
703 * tests/torture.at (Exploding the Stack Size with Malloc):
704 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
706 2001-11-27 Akim Demaille <akim@epita.fr>
708 * src/files.c: Include error.h.
711 2001-11-26 Akim Demaille <akim@epita.fr>
715 2001-11-26 Akim Demaille <akim@epita.fr>
717 * src/reader.c (readgram): Make sure rules for mid-rule actions
718 have a lineno equal to that of their host rule.
719 Reported by Hans Aberg.
720 * tests/regression.at (Rule Line Numbers): New.
722 2001-11-26 Akim Demaille <akim@epita.fr>
724 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
726 Reported by Hans Aberg.
728 2001-11-26 Akim Demaille <akim@epita.fr>
730 * src/complain.c, src/complain.h (error): Remove, provided by
733 2001-11-26 Akim Demaille <akim@epita.fr>
735 * src/reader.c (read_declarations): Don't abort on tok_illegal,
736 issue an error message.
737 * tests/regression.at (Invalid %directive): New.
738 Reported by Hans Aberg.
740 2001-11-26 Akim Demaille <akim@epita.fr>
742 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
743 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
745 2001-11-26 Akim Demaille <akim@epita.fr>
747 * src/conflicts.c (conflicts_print): Don't complain at all when
748 there are no reduce/reduce conflicts, and as many shift/reduce
749 conflicts as expected.
750 * tests/regression.at (%expect right): Adjust.
752 2001-11-23 Akim Demaille <akim@epita.fr>
754 * lib/alloca.c: Update, from fileutils.
756 2001-11-23 Akim Demaille <akim@epita.fr>
758 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
760 2001-11-23 Akim Demaille <akim@epita.fr>
762 * src/system.h: Include alloca.h.
763 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
765 2001-11-23 Akim Demaille <akim@epita.fr>
767 * src/print_graph.c (print_actions): Remove `rule', unused.
768 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
769 pacify GCC's signed < unsigned warnings.
770 * src/closure.c (itemsetsize): Likewise.
771 * src/reader.c (symbol_list_new): Static.
773 2001-11-23 Akim Demaille <akim@epita.fr>
775 Attaching lineno to buckets is stupid, since only one copy of each
776 symbol is kept, only the line of the first occurrence is kept too.
778 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
779 * src/reader.c (rline_allocated): Remove, unused.
780 (symbol_list): Have a `line' member.
781 (symbol_list_new): New.
783 * src/print.c (print_grammar): Output the rule line numbers.
784 * tests/regression.at (Solved SR Conflicts)
785 (Unresolved SR Conflicts): Adjust.
786 Reported by Hans Aberg.
788 2001-11-20 Akim Demaille <akim@epita.fr>
792 2001-11-20 Akim Demaille <akim@epita.fr>
795 * configure.in (ALL_LINGUAS): Adjust.
796 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
797 longer contains strings to translate.
799 2001-11-19 Akim Demaille <akim@epita.fr>
801 * src/conflicts.c (conflicts_print): Add a missing \n.
803 2001-11-19 Akim Demaille <akim@epita.fr>
805 * src/nullable.c (nullable_print): New.
806 (set_nullable): Call it when tracing.
807 Better locality of variables.
809 2001-11-19 Akim Demaille <akim@epita.fr>
811 * src/print.c (print_actions): Better locality of variables.
813 2001-11-19 Akim Demaille <akim@epita.fr>
815 * src/derives.c (print_derives): Fix and enrich.
816 * src/closure.c (print_fderives): Likewise.
818 2001-11-19 Akim Demaille <akim@epita.fr>
820 * src/closure.c (itemsetend): Remove, replaced with...
823 2001-11-19 Akim Demaille <akim@epita.fr>
825 * src/LR0.c (kernel_end): Remove, replaced with...
828 2001-11-19 Akim Demaille <akim@epita.fr>
830 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
833 2001-11-19 Akim Demaille <akim@epita.fr>
835 * src/closure.c (closure): Use arrays instead of pointers to clarify.
837 2001-11-19 Akim Demaille <akim@epita.fr>
839 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
841 * src/LR0.c: Likewise.
842 (allocate_itemsets): Use arrays instead of pointers to clarify.
844 2001-11-19 Akim Demaille <akim@epita.fr>
846 * src/getargs.c (statistics_flag): Replace with...
848 (longopts): Accept --trace instead of --statistics.
849 * src/getargs.h: Adjust.
850 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
851 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
853 2001-11-19 Akim Demaille <akim@epita.fr>
855 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
856 pointers to clarify the code.
857 (save_reductions, save_shifts): Factor common parts of alternatives.
859 2001-11-19 Akim Demaille <akim@epita.fr>
861 * src/LR0.c (new_state, get_state): Complete TRACE code.
862 * src/closure.c: Include `reader.h' to get `tags', needed by the
864 Rename the conditional DEBUG as TRACE.
865 Output consistently TRACEs to stderr, not stdout.
866 * src/derives.c: Likewise.
867 * src/reduce.c: (inaccessable_symbols): Using if is better style
869 Use `#if TRACE' instead of `#if 0' for tracing code.
871 2001-11-19 Akim Demaille <akim@epita.fr>
873 * src/system.h (LIST_FREE, shortcpy): New.
874 * src/LR0.c: Use them.
875 * src/output.c (free_itemsets, free_reductions, free_shifts):
876 Remove, replaced by LIST_FREE.
878 2001-11-19 Akim Demaille <akim@epita.fr>
880 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
881 (REDUCTIONS_ALLOC): New.
882 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
885 2001-11-19 Akim Demaille <akim@epita.fr>
887 * src/LR0.c (new_state): Complete trace code.
888 * src/nullable.c (set_nullable): Don't translate traces.
890 2001-11-19 Akim Demaille <akim@epita.fr>
892 * src/print_graph.c (print_core): Better locality of variables.
893 * src/print.c (print_core): Likewise.
895 2001-11-19 Akim Demaille <akim@epita.fr>
897 * src/vcg.c: You do the output, so you are responsible of the
898 handling of VCG syntax, in particular: use quotearg.
899 * src/print_graph.c: Don't.
900 (print_actions): Don't output the actions as part of the nodes,
901 since that's the job of the edges.
902 (print_state): Don't output by hand: fill the node description,
903 and ask for its output.
905 2001-11-19 Akim Demaille <akim@epita.fr>
907 * src/bison.simple (yyparse): When verbosely reporting an error,
908 no longer put additional quotes around token names.
909 * tests/calc.at: Adjust.
911 2001-11-19 Akim Demaille <akim@epita.fr>
913 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
914 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
915 * src/output.c: Adjust.
917 2001-11-19 Akim Demaille <akim@epita.fr>
919 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
921 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
923 2001-11-19 Akim Demaille <akim@epita.fr>
925 * src/gram.h (rule_t): New.
927 (rrhs, rlhs): Remove, part of state_t.
928 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
929 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
930 * src/reader.c, src/reduce.c: Adjust.
932 2001-11-19 Akim Demaille <akim@epita.fr>
934 * src/reader.c (symbols_output): New, extracted from...
938 2001-11-19 Akim Demaille <akim@epita.fr>
940 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
941 (maxrhs): this new function.
943 2001-11-19 Akim Demaille <akim@epita.fr>
945 * src/lalr.c (F): New macro to access the variable F.
948 2001-11-19 Akim Demaille <akim@epita.fr>
950 * src/lalr.h (LA): New macro to access the variable LA.
951 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
952 * src/lalr.c: Adjust.
954 2001-11-19 Akim Demaille <akim@epita.fr>
956 * src/lalr.c (initialize_LA): Only initialize LA. Let...
957 (set_state_table): handle the `lookaheads' members.
959 2001-11-19 Akim Demaille <akim@epita.fr>
961 * src/lalr.h (lookaheads): Removed array, whose contents is now
963 (state_t): this structure.
964 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
967 2001-11-19 Akim Demaille <akim@epita.fr>
969 * src/lalr.h (consistent): Removed array, whose contents is now
971 (state_t): this structure.
972 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
975 2001-11-19 Akim Demaille <akim@epita.fr>
977 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
978 contents are now members of...
979 (state_t): this structure.
980 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
983 2001-11-19 Akim Demaille <akim@epita.fr>
985 * src/lalr.h (state_t): New.
986 (state_table): Be a state_t * instead of a core **.
987 (accessing_symbol): Remove, part of state_t.
988 * src/lalr.c: Adjust.
989 (set_accessing_symbol): Merge into...
990 (set_state_table): this.
991 * src/print_graph.c, src/conflicts.c: Adjust.
993 2001-11-14 Akim Demaille <akim@epita.fr>
997 2001-11-14 Akim Demaille <akim@epita.fr>
999 * tests/calc.at, tests/output.at, tests/regression.at,
1000 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
1001 now the tests are run in private dirs, therefore AC_CLEANUP and
1002 family can be simplified to 0-ary.
1003 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
1004 use abs. path to find config.h.
1006 2001-11-14 Akim Demaille <akim@epita.fr>
1008 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
1009 stderr, there can be way too much random noise.
1010 Instead pass -Werror to GCC and rely on the exit status.
1011 Reported by Wolfram Wagner.
1013 2001-11-14 Akim Demaille <akim@epita.fr>
1015 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
1016 defined only if yyoverflow is defined, to avoid `warning: unused
1018 Reported by The Test Suite.
1020 2001-11-14 Akim Demaille <akim@epita.fr>
1022 * src/print.c: Include reduce.h.
1023 Reported by Hans Aberg.
1025 2001-11-14 Akim Demaille <akim@epita.fr>
1027 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
1028 Revert a previous patch: these are really const.
1029 * src/conflicts.c (conflict_report): Additional useless pair of
1030 braces to pacify GCC's warnings for `if () if () {} else {}'.
1031 * src/lex.c (parse_percent_token): Replace equal_offset with
1034 Be sure to strdup `arg' when used, since there is no reason for
1035 token_buffer not to change.
1037 2001-11-14 Akim Demaille <akim@epita.fr>
1039 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
1041 * src/main.c (main): Use them.
1042 Suggested by Hans Aberg.
1044 2001-11-12 Akim Demaille <akim@epita.fr>
1048 * src/system.h (ngettext): Now that we use ngettext, be sure to
1049 provide a default definition when NLS are not used that takes care
1052 2001-11-12 Akim Demaille <akim@epita.fr>
1054 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
1055 Use @kbd to denote user input.
1056 (Language and Grammar): ANSIfy the example.
1057 Adjust its layout for info/notinfo.
1058 (Location Tracking Calc): Output error messages to stderr.
1059 Output locations in a more GNUtically correct way.
1060 Fix a couple of Englishos.
1061 Adjust @group/@end group pairs.
1063 2001-11-12 Akim Demaille <akim@epita.fr>
1065 %expext was not functioning at all.
1067 * src/conflicts.c (expected_conflicts): Set to -1.
1068 (conflict_report): Use ngettext.
1069 (conflicts_print): Check %expect and make its violation an error.
1070 * doc/bison.texinfo (Expect Decl): Adjust.
1071 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
1072 * tests/regression.at (%expect not enough, %expect right)
1073 (%expect too much): New.
1075 2001-11-12 Akim Demaille <akim@epita.fr>
1077 * tests/regression.at (Conflicts): Rename as...
1078 (Unresolved SR Conflicts): this.
1079 (Solved SR Conflicts): New.
1081 2001-11-12 Akim Demaille <akim@epita.fr>
1083 * src/reduce.c (print_results): Rename as...
1084 (reduce_output): This.
1085 Output to OUT, passed as argument, instead of output_obstack.
1086 (dump_grammar): Likewise.
1089 (reduce_grammar): No longer call reduce_output, since...
1090 * src/print.c (print_results): do it.
1091 * src/main.c (main): Call reduce_free;
1093 2001-11-12 Akim Demaille <akim@epita.fr>
1095 * src/conflicts.c (print_reductions): Accept OUT as argument.
1096 Output to it, not to output_obstack.
1097 * src/print.c (print_actions): Adjust.
1099 2001-11-12 Akim Demaille <akim@epita.fr>
1101 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
1102 the result instead of using...
1103 (src_total, rrc_total, src_count, rrc_count): Remove.
1104 (any_conflicts): Remove.
1105 (print_conflicts): Split into...
1106 (conflicts_print, conflicts_output): New.
1107 * src/conflicts.h: Adjust.
1108 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
1109 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
1110 * tests/regression.at (Conflicts): New.
1111 Reported by Tom Lane.
1113 2001-11-12 Akim Demaille <akim@epita.fr>
1115 * tests/regression.at (Invalid input): Remove, duplicate with
1116 ``Invalid input: 1''.
1118 2001-11-12 Akim Demaille <akim@epita.fr>
1120 * tests/torture.at (AT_DATA_STACK_TORTURE)
1121 (Exploding the Stack Size with Alloca)
1122 (Exploding the Stack Size with Malloc): New.
1124 2001-11-12 Akim Demaille <akim@epita.fr>
1126 * src/bison.simple (YYSTACK_REALLOC): New.
1127 (yyparse) [!yyoverflow]: Use it and free the old stack.
1128 Reported by Per Allansson.
1130 2001-11-05 Akim Demaille <akim@epita.fr>
1133 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1135 2001-11-05 Akim Demaille <akim@epita.fr>
1137 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1140 2001-11-05 Akim Demaille <akim@epita.fr>
1142 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1143 with yyltype/YYLTYPE. This allows inclusion of the generated
1144 header within the parser if the compiler, such as GGC, accepts
1145 multiple equivalent #defines.
1147 2001-11-04 Akim Demaille <akim@epita.fr>
1149 * src/getargs.c (longopts): Support `--output'. getopt is now
1150 able to understand that `--out' is OK: the two racing long options
1153 * src/lex.h (tok_setopt): Remove, replaced with...
1154 (tok_intopt, tok_stropt): these new guys.
1155 * src/lex.c (getopt.h): Not needed.
1156 (token_buffer, unlexed_token_buffer): Not const.
1157 (percent_table): Promote `-' over `_' in directive names.
1158 Active `%name-prefix', `file-prefix', and `output'.
1159 (parse_percent_token): Accept possible arguments to directives.
1160 Promote `-' over `_' in directive names.
1161 * doc/bison.texinfo (Decl Summary): Split the list into
1162 `directives for grammars' and `directives for bison'.
1164 Add description of `%name-prefix', `file-prefix', and `output'.
1165 Promote `-' over `_' in directive names.
1166 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1167 Simplify the description of `--name-prefix'.
1168 Promote `-' over `_' in directive names.
1169 Promote `--output' over `--output-file'.
1170 Fix the description of `--defines'.
1171 * tests/output.at: Exercise %file-prefix and %output.
1173 2001-11-02 Akim Demaille <akim@epita.fr>
1175 * doc/refcard.tex: Update.
1177 2001-11-02 Akim Demaille <akim@epita.fr>
1179 * src/symtab.h (SUNDEF): New.
1180 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1181 stand for `uninitialized', instead of 0.
1182 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1183 * src/lex.c (lex): Adjust.
1185 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1187 Let yylex return it instead of a plain 0.
1188 Reported by Dick Streefland.
1190 2001-11-02 Akim Demaille <akim@epita.fr>
1192 * tests/regression.at (Mixing %token styles): New test.
1194 2001-11-02 Akim Demaille <akim@epita.fr>
1196 * src/reader.c (parse_thong_decl): Formatting changes.
1197 (token_translations_init): New, extracted from...
1198 (packsymbols): Here.
1201 2001-11-01 Akim Demaille <akim@epita.fr>
1203 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1204 Check that `9foo.y' produces correct cpp guards.
1205 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1209 2001-11-01 Akim Demaille <akim@epita.fr>
1211 * tests/regression.at (Invalid input: 2): New.
1212 * src/lex.c (unlexed_token_buffer): New.
1213 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1217 2001-11-01 Akim Demaille <akim@epita.fr>
1219 * configure.in: Bump to 1.30a.
1220 Adjust to newer Autotest.
1222 2001-10-26 Akim Demaille <akim@epita.fr>
1226 2001-10-26 Paul Eggert <eggert@twinsun.com>
1228 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
1229 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
1230 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
1231 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
1232 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
1233 Sync with fileutils 4.1.1.
1235 2001-10-18 Akim Demaille <akim@epita.fr>
1238 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1239 avoid spurious failures.
1241 2001-10-18 Akim Demaille <akim@epita.fr>
1245 2001-10-18 Akim Demaille <akim@epita.fr>
1247 * tests/atlocal.in (GCC): Add.
1248 * tests/calc.at: s/m4_match/m4_bmatch/.
1249 s/m4_patsubst/m4_bpatsubst/.
1250 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1251 * configure.in: AC_SUBST(GCC).
1253 2001-10-10 Akim Demaille <akim@epita.fr>
1256 * configure.in: M4 is no longer needed, but autom4te is.
1257 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1260 2001-10-10 Akim Demaille <akim@epita.fr>
1264 2001-10-10 Akim Demaille <akim@epita.fr>
1267 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1268 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1269 Reported by Airy Andre.
1271 2001-10-10 Akim Demaille <akim@epita.fr>
1273 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1274 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1276 2001-10-02 Akim Demaille <akim@epita.fr>
1280 2001-10-02 Akim Demaille <akim@epita.fr>
1284 2001-10-02 Akim Demaille <akim@epita.fr>
1286 * tests/regression.at (Invalid CPP headers): New.
1287 From Alexander Belopolsky.
1288 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1290 2001-10-02 Akim Demaille <akim@epita.fr>
1292 * tests/regression.at (Invalid input): New.
1293 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1296 2001-10-02 Akim Demaille <akim@epita.fr>
1298 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1300 2001-10-02 Akim Demaille <akim@epita.fr>
1302 * src/output.c (output_parser): Assert `skeleton'.
1303 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1307 2001-10-01 Marc Autret <autret_m@epita.fr>
1309 * src/lex.h: Echo modifications.
1310 * src/lex.c (unlex): Parameter is now token_t.
1313 2001-10-01 Marc Autret <autret_m@epita.fr>
1315 * src/main.c: Include lex.h.
1318 2001-09-29 Akim Demaille <akim@epita.fr>
1320 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1322 2001-09-28 Akim Demaille <akim@epita.fr>
1324 * tests/testsuite.at: Update to newer Autotest.
1325 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1327 2001-09-27 Akim Demaille <akim@epita.fr>
1329 Position independent wrapper.
1331 * tests/bison: Remove.
1332 * tests/bison.in: New.
1333 * configure.in: Adjust.
1335 2001-09-27 Paul Eggert <eggert@twinsun.com>
1337 Port quotearg fixes from tar 1.13.24.
1339 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1341 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1342 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1344 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1345 * m4/mbrtowc.m4: New file.
1346 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1347 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1349 2001-09-27 Akim Demaille <akim@epita.fr>
1353 2001-09-27 Akim Demaille <akim@epita.fr>
1357 2001-09-25 Akim Demaille <akim@epita.fr>
1359 * src/system.h: Include `xalloc.h'.
1360 Remove it from the C files.
1361 * src/files.c (output_files): Free the obstacks.
1362 * src/lex.c (init_lex): Rename as...
1365 * src/main.c (main): Use it.
1367 2001-09-24 Marc Autret <autret_m@epita.fr>
1369 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1370 to output informations in fout (FILE*).
1371 (open_graph, close_graph): Likewise.
1372 (output_graph, output_edge, output_node): Likewise.
1373 * src/vcg.h: Update function prototypes.
1374 * src/print_graph.c (print_graph): Open output graph file.
1375 (print_actions): Adjust.
1376 * src/files.h: Remove extern declaration.
1377 * src/files.c: Remove graph_obstack declaration.
1378 (open_files): Remove graph_obstack initialization.
1379 (output_files): Remove graph_obstack saving.
1381 2001-09-24 Marc Autret <autret_m@epita.fr>
1383 * src/files.c (compute_output_file_names): Fix.
1385 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1387 * src/reader.c (reader): Remove call to free_symtab ().
1388 * src/main.c (main): Call it here.
1390 * src/conflicts.c (initialize_conflicts): Rename as...
1391 (solve_conflicts): this.
1392 * src/print.c (print_core, print_actions, print_state)
1393 (print_grammar): Dump to a file instead a `output_obstack'.
1394 (print_results): Dump `output_obstack', and then proceed with the
1396 * src/files.c (compute_output_file_names, close_files): New.
1397 (output_files): Adjust.
1398 * src/main.c (main): Adjust.
1400 2001-09-23 Marc Autret <autret_m@epita.fr>
1402 * src/files.c (compute_header_macro): Computes header macro name
1403 from spec_defines_file when given.
1405 2001-09-23 Marc Autret <autret_m@epita.fr>
1407 * src/files.c (output_files): Add default extensions.
1409 2001-09-22 Akim Demaille <akim@epita.fr>
1411 * src/conflicts.c (finalize_conflicts): Rename as...
1412 (free_conflicts): this.
1414 2001-09-22 Akim Demaille <akim@epita.fr>
1416 * src/gram.c (gram_free): Rename back as...
1418 (output_token_translations): Free `token_translations'.
1419 * src/symtab.c (free_symtab): Free the tag field.
1421 2001-09-22 Akim Demaille <akim@epita.fr>
1423 Remove `translations' as it is always set to true.
1425 * src/gram.h: Adjust.
1426 * src/reader.c (packsymbols, parse_token_decl): Adjust
1427 * src/print.c (print_grammar): Adjust.
1428 * src/output.c (output_token_translations): Adjust.
1429 * src/lex.c (lex): Adjust.
1430 * src/gram.c: Be sure the set pointers to NULL.
1431 (dummy): Rename as...
1434 2001-09-22 Akim Demaille <akim@epita.fr>
1436 * configure.in: Invoke AM_LIB_DMALLOC.
1437 * src/system.h: Use dmalloc.
1438 * src/LR0.c: Be sure to have pointers initialized to NULL.
1439 (allocate_itemsets): Allocate kernel_items only if needed.
1441 2001-09-22 Akim Demaille <akim@epita.fr>
1443 * configure.in: Bump to 1.29b.
1444 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1445 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1446 need xmalloc.c in calc.y.
1449 2001-09-21 Akim Demaille <akim@epita.fr>
1452 * Makefile.maint, config/config.guess, config/config.sub,
1453 * config/missing: Update from masters.
1454 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1456 * configure.in (ALL_LINGUAS): Add `tr'.
1458 2001-09-21 Akim Demaille <akim@epita.fr>
1460 * tests/Makefile.am (package.m4): Move to...
1461 ($(srcdir)/$(TESTSUITE)): here.
1463 2001-09-20 Akim Demaille <akim@epita.fr>
1465 * src/complain.c: No longer try to be standalone: use system.h.
1466 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1467 * src/complain.h: Likewise.
1468 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1469 Remove the unused variable `n'.
1470 From Albert Chin-A-Young.
1472 2001-09-18 Marc Autret <autret_m@epita.fr>
1474 * doc/bison.1: Update.
1475 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1477 (Option Cross Key): Update.
1480 2001-09-18 Marc Autret <autret_m@epita.fr>
1482 * tests/regression.at: New test (comment in %union).
1484 2001-09-18 Marc Autret <autret_m@epita.fr>
1486 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1488 Reported by Keith Browne.
1490 2001-09-18 Marc Autret <autret_m@epita.fr>
1492 * tests/output.at: Add tests for --defines and --graph.
1494 2001-09-18 Marc Autret <autret_m@epita.fr>
1496 * tests/output.at: Removes tests of %{header,src}_extension features.
1498 2001-09-18 Akim Demaille <akim@epita.fr>
1500 * tests/Makefile.am (package.m4): New.
1501 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1502 (_AT_CHECK_CALC_ERROR): Likewise.
1503 Factor the `, ' part of verbose error messages.
1505 2001-09-18 Marc Autret <autret_m@epita.fr>
1507 * src/getargs.c (longopts): Declare --defines and --graph as options
1508 with optional arguments.
1509 * src/files.h: Add extern declarations.
1510 * src/files.c (spec_graph_file, spec_defines_file): New.
1511 (output_files): Update.
1512 Remove CPP-outed code.
1514 2001-09-18 Marc Autret <autret_m@epita.fr>
1516 Turn off %{source,header}_extension feature.
1518 * src/files.c (compute_exts_from_gf): Update.
1519 (compute_exts_from_src): Update.
1520 (output_files): CPP-out useless code.
1521 * src/files.h: Remove {header,source}_extension extern declarations.
1522 * src/reader.c (parse_dquoted_param): CPP-out.
1523 (parse_header_extension_decl): Remove.
1524 (parse_source_extension_decl): Remove.
1525 (read_declarations): Remove cases tok_{hdrext,srcext}.
1526 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1527 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1529 2001-09-10 Akim Demaille <akim@epita.fr>
1531 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1532 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1533 (AT_CHECK_OUTPUT): this.
1534 Merely check ls' exit status, its output is useless.
1536 2001-09-10 Akim Demaille <akim@epita.fr>
1538 * tests/calc.at: Use m4_match.
1539 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1541 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1543 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1545 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1547 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1548 * src/lex.h: Adjust prototype.
1549 (token_t): Add `tok_undef'.
1550 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1551 (parse_percent_token): Now returns token_t.
1552 Add default statement in switch.
1553 (lex): Separate `c' as an input variable, from the token_t result
1555 (unlexed): Is a token_t.
1557 2001-09-10 Akim Demaille <akim@epita.fr>
1559 * configure.in: Bump to 1.29a.
1561 2001-09-07 Akim Demaille <akim@epita.fr>
1565 2001-08-30 Akim Demaille <akim@epita.fr>
1567 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1568 * m4/atconfig.m4: Remove.
1569 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1571 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1572 m4_if, m4_patsubst, and m4_regexp.
1573 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1574 `input' file instead of echo.
1576 2001-08-29 Akim Demaille <akim@epita.fr>
1580 2001-08-29 Akim Demaille <akim@epita.fr>
1584 2001-08-29 Paul Eggert <eggert@twinsun.com>
1586 * src/bison.simple (yyparse): Don't take the address of an
1587 item before the start of an array, as that doesn't conform to
1590 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1592 * doc/bison.texinfo (Location Tracking Calc): New node.
1594 2001-08-29 Paul Eggert <eggert@twinsun.com>
1596 * src/output.c (output): Do not define const, as this now
1597 causes more problems than it cures.
1599 2001-08-29 Akim Demaille <akim@epita.fr>
1601 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1603 Be sure to tag the `detailmenu'.
1605 2001-08-29 Akim Demaille <akim@epita.fr>
1607 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1608 download in a tmp dir.
1610 2001-08-28 Marc Autret <autret_m@epita.fr>
1612 * config/depcomp: New file.
1614 2001-08-28 Marc Autret <autret_m@epita.fr>
1616 * doc/bison.1 (mandoc): Adjust.
1617 From Juan Manuel Guerrero.
1619 2001-08-28 Marc Autret <autret_m@epita.fr>
1621 * src/print_graph.c (print_state): Fix.
1623 2001-08-27 Marc Autret <autret_m@epita.fr>
1625 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1627 Echo modifications to the functions prototypes.
1628 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1630 2001-08-27 Marc Autret <autret_m@epita.fr>
1632 * src/vcg.c: Include `xalloc.h'.
1633 (add_colorentry): New.
1634 (add_classname): New.
1635 (add_infoname): New.
1636 * src/vcg.h: Add new prototypes.
1638 2001-08-27 Akim Demaille <akim@epita.fr>
1640 * Makefile.maint: Sync. again with CVS Autoconf.
1642 2001-08-27 Akim Demaille <akim@epita.fr>
1644 * Makefile.maint: Formatting changes.
1645 (po-update, cvs-update, update): New targets.
1648 2001-08-27 Akim Demaille <akim@epita.fr>
1650 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1651 * Makefile.maint: Sync. with CVS Autoconf.
1653 2001-08-27 Marc Autret <autret_m@epita.fr>
1655 * src/vcg.h (struct infoname_s): New.
1656 (struct colorentry_s): New.
1657 (graph_s): New fields {vertical,horizontal}_order in structure.
1658 Add `infoname' field.
1659 Add `colorentry' field;
1660 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1661 (G_HORIZONTAL_ORDER): New.
1663 (G_COLORENTRY): New.
1664 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1665 Add output of `infoname'.
1666 Add output of `colorentry'.
1668 2001-08-27 Marc Autret <autret_m@epita.fr>
1670 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1671 This one shadowed a global parameter.
1673 2001-08-24 Marc Autret <autret_m@epita.fr>
1675 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1676 instead of `unsigned'.
1677 (print_state): Do not call obstack_object_size () in obstack_grow ()
1678 to avoid macro variables shadowing.
1680 2001-08-23 Marc Autret <autret_m@epita.fr>
1682 * src/lex.c (percent_table): Typo: s/naem/name/.
1684 Normalize new options declarations.
1686 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1688 * tests/suite.at: Exercise %header_extension and %source_extension.
1690 2001-08-16 Marc Autret <autret_m@epita.fr>
1692 * src/reader.c (parse_dquoted_param): New.
1693 (parse_header_extension_decl): Use it.
1694 (parse_source_extension_decl): Likewise.
1696 2001-08-16 Marc Autret <autret_m@epita.fr>
1698 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1699 (get_xxxx_str): Use assert () instead of complain ().
1700 Remove return invokations in default cases.
1701 (get_decision_str): Modify default behaviour. Remove second argument.
1702 Echo modifications on calls.
1703 (output_graph): Fix.
1705 2001-08-16 Marc Autret <autret_m@epita.fr>
1707 * src/getargs.c (usage): Update with ``-g, --graph''.
1709 2001-08-16 Marc Autret <autret_m@epita.fr>
1711 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1712 (Option Cross Key): Likewise.
1713 * doc/bison.1: Update.
1715 2001-08-15 Akim Demaille <akim@epita.fr>
1719 2001-08-15 Marc Autret <autret_m@epita.fr>
1721 * src/reader.c (readgram): Indent output macro YYSTYPE.
1722 (packsymbols): Likewise.
1723 (output_token_defines): Likewise.
1724 * src/files.c: Standardize.
1725 (compute_header_macro): New.
1726 (defines_obstack_save): New. Use compute_header_macro.
1727 (output_files): Update. Use defines_obstack_save.
1729 2001-08-15 Akim Demaille <akim@epita.fr>
1731 * doc/bison.texinfo (Table of Symbols): Document
1734 2001-08-15 Akim Demaille <akim@epita.fr>
1736 * missing: Update from CVS Automake.
1737 * config/config.guess, config/config.sub, config/texinfo.tex:
1738 Update from gnu.org.
1740 2001-08-15 Akim Demaille <akim@epita.fr>
1742 * Makefile.maint: Sync with CVS Autoconf.
1744 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1746 * doc/bison.texinfo: Include GNU Free Documentation License from
1748 * doc/fdl.texi: Add to package.
1750 2001-08-14 Marc Autret <autret_m@epita.fr>
1752 Turn on %{source,header}_extension features.
1754 * src/lex.c (percent_table): Un-CPP out header_extension and
1756 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1757 (compute_exts_from_src): Remove conditions. It restores priorities
1760 2001-08-14 Marc Autret <autret_m@epita.fr>
1762 * src/files.c (compute_base_names): Add extensions computing when
1763 `--file-prefix' used.
1764 Standardize function calls.
1766 2001-08-13 Marc Autret <autret_m@epita.fr>
1768 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1769 defining it (defined but null disables alloca).
1771 2001-08-13 Marc Autret <autret_m@epita.fr>
1773 * src/bison.simple (_yy_memcpy): CPP reformat.
1775 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1777 * tests/atconfig.in (CPPFLAGS): Fix.
1779 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1781 * doc/bison.texinfo: Include GNU General Public License from
1783 * doc/gpl.texi: Add to package.
1785 2001-08-10 Marc Autret <autret_m@epita.fr>
1787 * src/print_graph.h: Fix.
1788 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1790 2001-08-10 Akim Demaille <akim@epita.fr>
1792 * src/system.h: Provide default declarations for stpcpy, strndup,
1795 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1797 * doc/bison.texinfo (Locations): Update @$ stuff.
1799 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1801 * src/bison.simple (YYLLOC_DEFAULT): Update.
1804 2001-08-08 Marc Autret <autret_m@epita.fr>
1806 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1807 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1808 Reported by Fabrice Bauzac.
1810 2001-08-08 Marc Autret <autret_m@epita.fr>
1812 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1813 * src/vcg.c (output_node): Fix.
1814 * src/vcg.h: Cleanup.
1815 * src/print_graph.c: Add comments.
1816 (node_output_size): New global variable. Simplify the formatting of
1817 the VCG graph output.
1818 (print_actions): Unused code is now used. It notifies the final state
1819 and no action states in the VCG graph. It also give the reduce actions.
1820 The `shift and goto' edges are red and the `go to state' edges are
1822 Get the current node name and node_obstack by argument.
1823 (node_obstack): New variable.
1824 (print_state): Manage node_obstack.
1825 (print_core): Use node_obstack given by argument.
1826 A node is not only computed here but in print_actions also.
1827 (print_graph): CPP out useless code instead of commenting it.
1829 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1831 * tests/atconfig.in (CPPFLAGS): Fix.
1833 2001-08-07 Akim Demaille <akim@epita.fr>
1835 * src/print_graph.c (quote): New.
1836 (print_core): Use it.
1838 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1840 * src/vcg.c (complain.h): Include it.
1841 Unepitaize `return' invocations.
1842 [NDEBUG] (main): Remove.
1843 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1844 * src/files.c (open_files): Initialize graph_obstack.
1845 * src/print_graph.c (print_actions): CPP out useless code.
1846 (print_core): Don't output the last `\n' in labels.
1848 * src/files.c (output_files): Output the VCG file.
1849 * src/main.c (main): Invoke print_graph ();
1851 2001-08-06 Marc Autret <autret_m@epita.fr>
1853 Automaton VCG graph output.
1854 Using option ``-g'' or long option ``--graph'', you can generate
1855 a gram_filename.vcg file containing a VCG description of the LALR (1)
1856 automaton of your grammar.
1858 * src/main.c: Call to print_graph() function.
1859 * src/getargs.h: Update.
1860 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1861 (graph_flag): New flag.
1863 (getargs): Add case `g'.
1864 * src/files.c (graph_obstack): New obstack struct.
1865 (open_files): Initialize new obstack.
1866 (output_files): Saves graph_obstack if required.
1867 * src/files.h (graph_obstack): New extern declaration.
1868 * src/Makefile.am: Add new source files.
1870 2001-08-06 Marc Autret <autret_m@epita.fr>
1872 * src/print_graph.c, src/print_graph.h (graph): New.
1873 * src/vcg.h: New file.
1874 * src/vcg.c: New file, VCG graph handling.
1876 2001-08-06 Marc Autret <autret_m@epita.fr>
1878 Add of %source_extension and %header_extension which specify
1879 the source or/and the header output file extension.
1881 * src/files.c (compute_base_names): Remove initialisation of
1882 src_extension and header_extension.
1883 (compute_exts_from_gf): Update.
1884 (compute_exts_from_src): Update.
1885 (output_files): Update.
1886 * src/reader.c (parse_header_extension_decl): New.
1887 (parse_source_extension_decl): New.
1888 (read_declarations): New case statements for the new tokens.
1889 * src/lex.c (percent_table): Add entries for %source_extension
1890 and %header_extension.
1891 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1893 2001-08-06 Marc Autret <autret_m@epita.fr>
1895 * configure.in: Bump to 1.28c.
1896 * doc/bison.texinfo: Texinfo thingies.
1898 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1900 * tests/atconfig.in (CPPFLAGS): Add.
1901 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1903 2001-08-03 Akim Demaille <akim@epita.fr>
1907 2001-08-03 Akim Demaille <akim@epita.fr>
1909 * tests/Makefile.am (check-local): Ship testsuite.
1910 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1913 2001-08-03 Akim Demaille <akim@epita.fr>
1915 * configure.in: Try using -Wformat when compiling.
1917 2001-08-03 Akim Demaille <akim@epita.fr>
1919 * configure.in: Bump to 1.28b.
1921 2001-08-03 Akim Demaille <akim@epita.fr>
1923 * src/complain.c: Adjust strerror_r portability issues.
1925 2001-08-03 Akim Demaille <akim@epita.fr>
1929 2001-08-03 Akim Demaille <akim@epita.fr>
1931 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1932 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1933 * src/getargs.c: Include complain.h.
1934 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1935 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1937 2001-08-03 Akim Demaille <akim@epita.fr>
1939 * src/reader.c (readgram): Display hidden chars in error messages.
1941 2001-08-03 Akim Demaille <akim@epita.fr>
1943 Update to gettext 0.10.39.
1945 2001-08-03 Akim Demaille <akim@epita.fr>
1947 * lib/strspn.c: New.
1949 2001-08-01 Marc Autret <autret_m@epita.fr>
1951 * doc/bison.texinfo: Update.
1952 * doc/bison.1 (mandoc): Update.
1953 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1954 * src/files.c: Support output files extensions computing.
1955 (src_extension): New static variable.
1956 (header_extension): New static variable.
1958 (get_extension_index): New function, gets the index of an extension
1959 filename in a string.
1960 (compute_exts_from_gf): New function, computes extensions from the
1961 grammar file extension.
1962 (compute_exts_from_src): New functions, computes extensions from the
1963 C source file extension, file given by ``-o'' option.
1964 (compute_base_names): Update.
1965 (output_files): Update.
1967 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1969 * doc/bison.texi: Document @$.
1970 (Locations): New section.
1972 2001-07-18 Akim Demaille <akim@epita.fr>
1974 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1975 * config/prev-version.txt, config/move-if-change: New.
1976 * Makefile.am: Adjust.
1978 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1980 * src/bison.simple (yyparse): Suppress warning `comparaison
1981 between signed and unsigned'.
1983 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1985 * src/getargs.h (raw_flag): Remove.
1986 * src/getargs.c: Die on `-r'/`--raw'.
1987 * src/lex.c (parse_percent_token): Die on `%raw'.
1988 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1989 * tests/calc.at: Suppress test with option `--raw'.
1991 2001-07-14 Akim Demaille <akim@epita.fr>
1994 * configure.in: Require Autoconf 2.50.
1995 Update to gettext 0.10.38.
1997 2001-03-16 Akim Demaille <akim@epita.fr>
1999 * doc/bison.texinfo: ANSIfy the examples.
2001 2001-03-16 Akim Demaille <akim@epita.fr>
2003 * getargs.c (skeleton): New variable.
2004 (longopts): --skeleton is a new option.
2005 (shortopts, getargs): -S is a new option.
2006 * getargs.h: Declare skeleton.
2007 * output.c (output_parser): Use it.
2009 2001-03-16 Akim Demaille <akim@epita.fr>
2011 * m4/strerror_r.m4: New.
2012 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2013 * lib/error.h, lib/error.c: Update.
2015 2001-03-16 Akim Demaille <akim@epita.fr>
2017 * src/getargs.c (longopts): Clean up.
2019 2001-02-21 Akim Demaille <akim@epita.fr>
2021 * src/reader.c (gensym): `gensym_count' is your own.
2022 Use a static buf to create the symbol name, as token_buffer is no
2025 2001-02-08 Akim Demaille <akim@epita.fr>
2027 * src/conflicts.c (conflict_report): Be sure not to append to res
2028 between two calls, which could happen if both first sprintf were
2029 skipped, but not the first cp += strlen.
2031 2001-02-08 Akim Demaille <akim@epita.fr>
2033 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2034 New, from fileutils 4.0.37.
2035 * configure.in: Require Autoconf 2.49c. I took some time before
2036 making this decision. This is the only way out for portability
2037 issues in Bison, it would mean way too much duplicate effort to
2038 import in Bison features implemented in 2.49c since 2.13.
2039 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2041 2001-02-02 Akim Demaille <akim@epita.fr>
2043 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2044 * lib/xalloc.h, lib/xmalloc.c: Update.
2046 2001-01-19 Akim Demaille <akim@epita.fr>
2048 Get rid of the ad hoc handling of token_buffer in the scanner: use
2051 * src/lex.c (token_obstack): New.
2052 (init_lex): Initialize it. No longer call...
2053 (grow_token_buffer): this. Remove it.
2054 Adjust all the places which used it to use the obstack.
2056 2001-01-19 Akim Demaille <akim@epita.fr>
2058 * src/lex.h: Rename all the tokens:
2059 s/\bENDFILE\b/tok_eof/g;
2060 s/\bIDENTIFIER\b/tok_identifier/g;
2062 Let them be enums, not #define, to ease debugging.
2063 Adjust all the code.
2065 2001-01-18 Akim Demaille <akim@epita.fr>
2067 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2068 * src/lex.c (maxtoken, grow_token_buffer): Static.
2070 2001-01-18 Akim Demaille <akim@epita.fr>
2072 Since we now use obstacks, more % directives can be enabled.
2074 * src/lex.c (percent_table): Also accept `%yacc',
2075 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2077 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2078 instead of returning a token.
2079 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2080 * src/reader.c (read_declarations): Adjust.
2081 * src/files.c (open_files): Don't call `compute_base_names', don't
2082 compute `attrsfile' since they depend upon data which might be
2083 *in* the input file now.
2084 (output_files): Do it here.
2085 * src/output.c (output_headers): Document the fact that this patch
2086 introduces a guaranteed SEGV for semantic parsers.
2087 * doc/bison.texinfo: Document them.
2088 * tests/suite.at: Exercise these %options.
2090 2000-12-20 Akim Demaille <akim@epita.fr>
2092 Also handle the output file (--verbose) with obstacks.
2094 * files.c (foutput): Remove.
2095 (output_obstack): New.
2096 Adjust all dependencies.
2097 * src/conflicts.c: Return a string.
2098 * src/system.h (obstack_grow_string): Rename as...
2099 (obstack_sgrow): this. Be ready to work with non literals.
2100 (obstack_fgrow4): New.
2102 2000-12-20 Akim Demaille <akim@epita.fr>
2104 * src/files.c (open_files): Fix the computation of short_base_name
2105 in the case of `-o foo.tab.c'.
2107 2000-12-20 Akim Demaille <akim@epita.fr>
2109 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2110 (copy_dollar): Now that everything uses obstacks, get rid of the
2113 2000-12-20 Akim Demaille <akim@epita.fr>
2115 * src/files.c (open_files): Actually the `.output' file is based
2116 on the short_base_name, not base_name.
2117 * tests/suite.at (Checking output file names): Adjust.
2119 2000-12-20 Akim Demaille <akim@epita.fr>
2121 * src/bison.s1: Remove, we now use directly...
2122 * src/bison.simple: this.
2123 * src/Makefile.am: Use pkgdata instead of data.
2125 2000-12-20 Akim Demaille <akim@epita.fr>
2127 * src/files.c (guard_obstack): New.
2128 (open_files): Initialize it.
2129 (output_files): Dump it...
2130 * src/files.h: Export it.
2131 * src/reader.c (copy_guard): Use it.
2133 2000-12-19 Akim Demaille <akim@epita.fr>
2135 * src/files.c (outfile, defsfile, actfile): Removed as global
2137 (open_files): Don't compute them.
2138 (output_files): Adjust.
2139 (base_name, short_base_name): Be global.
2140 Adjust dependencies.
2142 2000-12-19 Akim Demaille <akim@epita.fr>
2144 * src/files.c (strsuffix): New.
2145 (stringappend): Be just like strcat but allocate.
2146 (base_names): Eve out from open_files.
2147 Try to simplify the rather hairy computation of base_name and
2149 (open_files): Use it.
2150 * tests/suite.at (Checking output file names): New test.
2152 2000-12-19 Akim Demaille <akim@epita.fr>
2154 * src/system.h (obstack_grow_literal_string): Rename as...
2155 (obstack_grow_string): this.
2156 * src/output.c (output_parser): Recognize `%% actions' instead of
2158 * src/bison.s1: s/$/%% actions/.
2159 * src/bison.hairy: Likewise.
2161 2000-12-19 Akim Demaille <akim@epita.fr>
2163 * src/output.c (output_parser): Compute the `#line' lines when
2165 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2166 Suggested by Hans Aberg.
2168 2000-12-19 Akim Demaille <akim@epita.fr>
2170 Let the handling of the skeleton files be local to the procedures
2173 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2175 (fparser, open_extra_files): Remove.
2176 (open_files, output_files): Don't take care of fparser.
2177 * src/files.h: Adjust.
2178 * src/output.c (output_parser): Open and close the file to the
2180 * src/reader.c (read_declarations): When %semantic_parser, open
2183 2000-12-19 Akim Demaille <akim@epita.fr>
2185 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2186 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2188 2000-12-19 Akim Demaille <akim@epita.fr>
2190 * src/files.c (open_files): Yipee! We no longer need all the code
2191 looking for `/tmp' since we have no tmp file.
2193 2000-12-19 Akim Demaille <akim@epita.fr>
2195 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2197 * src/files.c (open_files): Less dependency on MSDOS etc.
2199 2000-12-14 Akim Demaille <akim@epita.fr>
2201 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2202 Provide a default definition.
2203 Use it when executing the default @ action.
2204 * src/reader.c (reader_output_yylsp): No longer include
2205 `timestamp' and `text' in the default YYLTYPE.
2207 2000-12-12 Akim Demaille <akim@epita.fr>
2209 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2210 (copy_guard): Quote the file names.
2211 Reported by Laurent Mascherpa.
2213 2000-12-12 Akim Demaille <akim@epita.fr>
2215 * src/output.c (output_headers, output_program, output): Be sure
2216 to escape special characters when outputting filenames.
2217 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2218 (output_headers): Don't depend on them, Use ACTSTR.
2220 2000-11-17 Akim Demaille <akim@epita.fr>
2222 * lib/obstack.h: Formatting changes.
2223 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2224 prevents type checking.
2225 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2226 cast the value to (void *): assigning a `foo *' to a `void *'
2228 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2229 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2232 2000-11-17 Akim Demaille <akim@epita.fr>
2234 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2236 (suite.m4, regression.m4, calc.m4): these.
2237 * tests/atgeneral.m4: Update from CVS Autoconf.
2239 2000-11-17 Akim Demaille <akim@epita.fr>
2241 * tests/regression.m4 (%union and --defines): New test,
2242 demonstrating a current bug in the obstack implementation.
2244 2000-11-17 Akim Demaille <akim@epita.fr>
2246 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2248 Use them to declare the variables which are global or local to
2251 2000-11-17 Akim Demaille <akim@epita.fr>
2253 * acconfig.h: Remove, no longer used.
2255 2000-11-07 Akim Demaille <akim@epita.fr>
2257 * src: s/Copyright (C)/Copyright/g.
2259 2000-11-07 Akim Demaille <akim@epita.fr>
2261 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2263 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2265 2000-11-07 Akim Demaille <akim@epita.fr>
2267 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2268 Merge in a single CPP if/else.
2270 2000-11-07 Akim Demaille <akim@epita.fr>
2272 * src/output.c (output): Remove useless variables.
2273 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2274 argument `data' for consistency with the prototypes.
2276 (obstack_copy, obstack_copy0): Rename the second argument as
2277 `address' for consistency. Qualify it `const'.
2278 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2279 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2280 `const' their input argument (`data' or `address').
2281 Adjust the corresponding macros to include `const' in casts.
2283 2000-11-03 Akim Demaille <akim@epita.fr>
2285 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2286 s/PFILE1/BISON_HAIRY/.
2287 Adjust dependencies.
2289 2000-11-03 Akim Demaille <akim@epita.fr>
2291 For some reason, this was not applied.
2293 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2294 `unlink': it's no longer used.
2296 2000-11-03 Akim Demaille <akim@epita.fr>
2298 * src/files.c (skeleton_find): New function, eved out of...
2299 (open_files, open_extra_files): here.
2301 2000-11-03 Akim Demaille <akim@epita.fr>
2305 * src/files.c (obstack_save): New function.
2306 (done): Rename as...
2307 (output_files): this.
2309 * src/main.c (main): Don't use `atexit' to register `done', since
2310 it no longer has to remove tmp files, just call `output_files'
2311 when there are no errors.
2313 2000-11-02 Akim Demaille <akim@epita.fr>
2315 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2316 `unlink': it's no longer used.
2317 * src/files.h: Formatting changes.
2319 2000-11-02 Akim Demaille <akim@epita.fr>
2321 Remove the last uses of mktemp and unlink/delete.
2323 * src/files.c (fdefines, ftable): Removed.
2324 (defines_ostack, table_obstack): New.
2325 Adjust dependencies of the former into uses of the latter.
2326 * src/output.c (output_short_or_char_table, output_short_table):
2327 Convert to using obstacks.
2328 * src/reader.c (copy_comment2): Accept one FILE * and two
2330 (output_token_defines, reader_output_yylsp): Use obstacks.
2331 * src/system.h (obstack_fgrow3): New.
2333 2000-11-01 Akim Demaille <akim@epita.fr>
2335 Change each use of `fattrs' into a use of `attrs_obstack'.
2337 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2338 * src/files.c (fattrs): Remove.
2339 (attrs_obstack): New.
2340 Adjust all dependencies.
2341 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2343 2000-11-01 Akim Demaille <akim@epita.fr>
2346 Change each use of `faction' into a use of `action_obstack'.
2348 * lib/obstack.h, lib/obstack.c: New files.
2349 * src/files.c (faction): Remove.
2350 (action_obstack): New.
2351 Adjust all dependencies.
2353 2000-10-20 Akim Demaille <akim@epita.fr>
2355 * lib/quote.h (PARAMS): New macro. Use it.
2357 2000-10-16 Akim Demaille <akim@epita.fr>
2359 * src/output.c (output_short_or_char_table): New function.
2360 (output_short_table, output_token_translations): Use it.
2361 (goto_actions): Use output_short_table.
2363 2000-10-16 Akim Demaille <akim@epita.fr>
2365 * src/symtab.c (bucket_new): New function.
2368 * src/output.c (output_short_table): New argument to display the
2369 comment associated with the table.
2370 Adjust dependencies.
2371 (output_gram): Use it.
2372 (output_rule_data): Nicer output layout for YYTNAME.
2374 2000-10-16 Akim Demaille <akim@epita.fr>
2376 * src/lex.c (read_typename): New function.
2378 * src/reader.c (copy_dollar): Likewise.
2380 2000-10-16 Akim Demaille <akim@epita.fr>
2382 * src/reader.c (copy_comment2): Expect the input stream to be on
2383 the `/' which is suspected to open a comment, instead of being
2384 called after `//' or `/*' was read.
2385 (copy_comment, copy_definition, parse_union_decl, copy_action)
2386 (copy_guard): Adjust.
2388 2000-10-16 Akim Demaille <akim@epita.fr>
2390 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2391 `read_signed_integer'.
2393 2000-10-16 Akim Demaille <akim@epita.fr>
2395 * src/reader.c (copy_dollar): New function.
2396 (copy_guard, copy_action): Use it.
2398 2000-10-16 Akim Demaille <akim@epita.fr>
2400 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2401 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2402 New files, from Fileutils 4.0.27.
2403 * src/main.c (printable_version): Remove.
2404 * src/lex.c, src/reader.c: Use `quote'.
2406 2000-10-04 Akim Demaille <akim@epita.fr>
2408 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2410 2000-10-04 Akim Demaille <akim@epita.fr>
2412 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2414 2000-10-04 Akim Demaille <akim@epita.fr>
2416 When a literal string is used to define two different tokens,
2417 `bison -v' segfaults.
2418 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2420 * tests/regression.m4: New file.
2421 Include the core of the sample provided by Piotr Gackiewicz.
2422 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2425 2000-10-04 Akim Demaille <akim@epita.fr>
2427 * src/reader.c (parse_expect_decl): Keep `count' within the size
2431 2000-10-02 Paul Eggert <eggert@twinsun.com>
2433 * bison.s1 (yyparse): Assign the default value
2434 unconditionally, to avoid a GCC warning and make the parser a
2437 2000-10-02 Akim Demaille <akim@epita.fr>
2439 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2442 2000-10-02 Akim Demaille <akim@epita.fr>
2444 * src/derives.c, src/print.c, src/reduce.c: To ease the
2445 translation, move some `\n' out of the translated strings.
2447 2000-10-02 Akim Demaille <akim@epita.fr>
2449 The location tracking mechanism is precious for parse error
2450 messages. Nevertheless, it is enabled only when `@n' is used in
2451 the grammar, which is a different issue (you can use it in error
2452 message, but not in the grammar per se). Therefore, there should
2453 be another means to enable it.
2455 * src/getargs.c (getargs): Support `--locations'.
2457 * src/getargs.h (locationsflag): Export it.
2458 * src/lex.c (percent_table): Support `%locations'.
2459 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2460 with `locationsflag'.
2461 * doc/bison.texinfo: Document `--locations' and `%locations'.
2463 * tests/calc.m4: Test it.
2465 For regularity of the names, replace each
2466 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2467 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2468 In addition replace each `flag' with `_flag'.
2470 2000-10-02 Akim Demaille <akim@epita.fr>
2472 Also test parse error messages, including with YYERROR_VERBOSE.
2474 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2476 Use it to check the computations.
2477 Use it to check `nonassoc' is honored.
2478 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2479 `--yyerror-verbose'.
2480 (_AT_CHECK_CALC): Adjust to this option.
2481 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2483 2000-10-02 Akim Demaille <akim@epita.fr>
2485 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2486 the latter demonstrates a flaw in the handling of non debugging
2487 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2488 was used in order to simplify:
2504 unfortunately this leads to a CPP conflict when
2505 `--name-prefix=foo' is used since it produces `#define yydebug
2508 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2509 (YYDPRINTF): New macro.
2511 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2513 Also test `--verbose', `--defines' and `--name-prefix'.
2515 2000-10-02 Akim Demaille <akim@epita.fr>
2517 Improve the readability of the produced parsers.
2519 * src/bison.s1: Formatting changes.
2520 Improve the comment related to the `$' mark.
2521 (yydefault): Don't fall through to `yyresume': `goto' there.
2522 * src/output.c (output_parser): When the `$' is met, skip the end
2524 New variable, `number_of_dollar_signs', to check there's exactly
2525 one `$' in the parser skeleton.
2527 2000-10-02 Akim Demaille <akim@epita.fr>
2529 * lib/xstrdup.c: New file, from the fileutils.
2530 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2531 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2532 instead of strlen + xmalloc + strcpy.
2533 * src/symtab.c (copys): Remove, use xstrdup instead.
2535 2000-10-02 Akim Demaille <akim@epita.fr>
2537 * src/gram.h (associativity): New enum type which replaces the
2538 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2539 `right_assoc', `left_assoc' and `non_assoc'.
2540 Adjust all dependencies.
2541 * src/reader.c: Formatting changes.
2542 (LTYPESTR): Don't define it, use it as a literal in
2543 `reader_output_yylsp'.
2544 * src/symtab.h (symbol_class): New enum type which replaces the
2545 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2546 `sunknown', `stoken and `snterm'.
2548 2000-10-02 Akim Demaille <akim@epita.fr>
2550 * src/getargs.c (fixed_outfiles): Rename as...
2551 (yaccflag): for consistency and accuracy.
2552 Adjust dependencies.
2554 2000-10-02 Akim Demaille <akim@epita.fr>
2556 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2557 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2558 difficult and introduced a lot of core dump. It turns out that
2559 Bison used an implementation of `xmalloc' based on `calloc', and
2560 at various places it does depend upon the initialization to 0. I
2561 have not tried to isolate the pertinent places, and all the former
2562 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2563 someone should address this issue.
2565 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2566 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2568 Adjust dependencies.
2569 * src/warshall.h: New file.
2572 2000-10-02 Akim Demaille <akim@epita.fr>
2574 Various anti-`extern in *.c' changes.
2576 * src/system.h: Include `assert.h'.
2578 2000-10-02 Akim Demaille <akim@epita.fr>
2580 * src/state.h (nstates, final_state, first_state, first_shift)
2581 (first_reduction): Move their exportation from here...
2582 * src/LR0.h: to here.
2583 Adjust dependencies.
2584 * src/getargs.c (statisticsflag): New variable.
2585 Add support for `--statistics'.
2586 Adjust dependencies.
2588 Remove a lot of now useless `extern' statements in most files.
2590 2000-10-02 Akim Demaille <akim@epita.fr>
2592 * src/LR0.h: New file.
2595 2000-10-02 Akim Demaille <akim@epita.fr>
2597 * src/print.h: New file.
2599 * src/print.c: Formatting and ordering changes.
2600 (verbose, terse): Replace with...
2601 (print_results): this new function.
2602 Adjust dependencies.
2604 2000-10-02 Akim Demaille <akim@epita.fr>
2606 * src/conflicts.c (conflict_report): New function.
2607 (conflict_log, verbose_conflict_log): Replace with...
2608 (print_conflicts): this function.
2609 Adjust dependencies.
2610 * src/conflicts.h: New file.
2611 Propagate its inclusion.
2613 2000-10-02 Akim Demaille <akim@epita.fr>
2615 * src/nullable.h: New file.
2616 Propagate its inclusion.
2617 * src/nullable.c: Formatting changes.
2619 2000-10-02 Akim Demaille <akim@epita.fr>
2621 * src/reduce.h: New file.
2622 Propagate its inclusion.
2623 * src/reduce.c: Topological sort and other formatting changes.
2624 (bool, TRUE, FALSE): Move their definition to...
2625 * src/system.h: here.
2627 2000-10-02 Akim Demaille <akim@epita.fr>
2629 * src/files.c: Formatting changes.
2630 (tryopen, tryclose, openfiles): Rename as...
2631 (xfopen, xfclose, open_files): this.
2632 (stringappend): static.
2633 * src/files.h: Complete the list of exported symbols.
2636 2000-10-02 Akim Demaille <akim@epita.fr>
2638 * src/reader.h: New file.
2639 Propagate its use instead of tedious list of `extern' and
2641 * src/reader.c: Formatting changes, topological sort,
2644 2000-10-02 Akim Demaille <akim@epita.fr>
2646 * src/lex.h: Prototype `lex.c' exported functions.
2647 * src/reader.c: Adjust.
2648 * src/lex.c: Formatting changes.
2649 (safegetc): Rename as...
2652 2000-10-02 Akim Demaille <akim@epita.fr>
2654 * src/lalr.h: New file.
2655 Propagate its inclusion instead of prototypes and `extern'.
2656 * src/lalr.c: Formatting changes, topological sorting etc.
2658 2000-10-02 Akim Demaille <akim@epita.fr>
2660 * src/output.c (token_actions): Introduce a temporary array,
2661 YYDEFACT, that makes it possible for this function to use
2664 2000-10-02 Akim Demaille <akim@epita.fr>
2666 `user_toknums' is output as a `short[]' in `output.c', while it is
2667 defined as a `int[]' in `reader.c'. For consistency with the
2668 other output tables, `user_toknums' is now defined as a table of
2671 * src/reader.c (user_toknums): Be a short table instead of an int
2673 Adjust dependencies.
2675 Factor the short table outputs.
2677 * src/output.c (output_short_table): New function.
2678 * src/output.c (output_gram, output_stos, output_rule_data)
2679 (output_base, output_table, output_check): Use it.
2681 2000-10-02 Akim Demaille <akim@epita.fr>
2683 * src/output.c (output): Topological sort of the functions, in
2684 order to get rid of the `static' prototypes.
2685 No longer use `register'.
2686 * src/output.h: New file.
2687 Propagate its inclusion in files explicitly prototyping functions
2690 2000-09-21 Akim Demaille <akim@epita.fr>
2692 * src/atgeneral.m4: Update from Autoconf.
2694 2000-09-21 Akim Demaille <akim@epita.fr>
2696 * src/closure.h: New file.
2697 * src/closure.c: Formatting changes, topological sort over the
2698 functions, use of closure.h.
2699 (initialize_closure, finalize_closure): Rename as...
2700 (new_closure, free_closure): these. Adjust dependencies.
2701 * src/LR0.c: Formatting changes, topological sort, use of
2703 (initialize_states): Rename as...
2705 * src/Makefile.am (noinst_HEADERS): Adjust.
2707 2000-09-20 Akim Demaille <akim@epita.fr>
2709 * src/acconfig.h: Don't protect config.h against multiple
2711 Don't define PARAMS.
2712 * src/system.h: Define PARAMS.
2713 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2714 purpose of config.h. system.h must not try to fix wrong
2715 definitions in config.h.
2717 2000-09-20 Akim Demaille <akim@epita.fr>
2719 * src/derives.h: New file.
2720 * src/main.c, src/derives.h: Use it.
2722 * src/Makefile.am (noinst_HEADERS): Adjust.
2724 2000-09-20 Akim Demaille <akim@epita.fr>
2726 * tests/atgeneral.m4: Update from Autoconf.
2727 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2728 (AT_CHECK_CALC): New macros.
2729 Use these macros to test bison with options `', `--raw',
2730 `--debug', `--yacc', `--yacc --debug'.
2732 2000-09-19 Akim Demaille <akim@epita.fr>
2734 * src/output.c: Formatting changes.
2735 * src/machine.h: Remove, leaving its contents in...
2736 * src/system.h: here.
2738 Adjust all dependencies on stdio.h and machine.h.
2739 * src/getargs.h: New file.
2740 Let all `extern' declarations about getargs.c be replaced with
2741 inclusion of `getargs.h'.
2742 * src/Makefile.am (noinst_HEADERS): Adjust.
2744 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2746 (yyerror): Returns void, not int.
2747 * doc/bison.texinfo: Formatting changes.
2749 2000-09-19 Akim Demaille <akim@epita.fr>
2751 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2754 2000-09-18 Akim Demaille <akim@epita.fr>
2756 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2757 * src/Makefile.am (INCLUDES): Don't.
2758 Be ready to fetch headers in lib/.
2760 2000-09-18 Akim Demaille <akim@epita.fr>
2762 * doc/bison.texinfo: Update the copyright.
2763 ANSIfy and GNUify the examples.
2764 Remove the old menu.
2766 2000-09-18 Akim Demaille <akim@epita.fr>
2768 First set of tests: use the `calc' example from the documentation.
2770 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2771 is defined only when YYDEBUG is.
2772 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2773 * src/files.c (tryopen, tryclose): Formatting changes.
2774 Move to the top and be static.
2775 * src/reader.c (read_signed_integer): Likewise.
2776 * tests/calc.m4: New file.
2777 * Makefile.am, suite.m4: Adjust.
2778 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2780 2000-09-18 Akim Demaille <akim@epita.fr>
2782 Add support for an Autotest test suite for Bison.
2784 * m4/m4.m4, m4/atconfig.m4: New files.
2785 * m4/Makefile.am (EXTRA_DIST): Adjust.
2786 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2788 * src/getargs.c: Display a more standard --version message.
2789 * src/reader.c (reader): Formatting changes.
2790 No longer depend upon VERSION_STRING.
2791 * configure.in: No longer use `dnl'.
2792 Set up the test suite and the new directory `tests/.
2793 (VERSION_STRING): Remove.
2795 2000-04-14 Akim Demaille <akim@epita.fr>
2797 * src/reader.c (copy_comment2): New function, same as former
2798 `copy_comment', but outputs into two FILE *.
2799 (copy_comment): Use it.
2800 (parse_union_decl): Use it.
2801 (get_type, parse_start_decl): Use the same `invalid' message.
2802 (parse_start_decl, parse_union_decl): Use the same `multiple'
2804 (parse_union_decl, copy_guard, copy_action): Use the same
2805 `unmatched' message.
2806 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2808 2000-03-31 Akim Demaille <akim@epita.fr>
2810 * src/files.c (tryopen, tryclose): Move to the top.
2813 2000-03-31 Akim Demaille <akim@epita.fr>
2815 * src/main.c (main): Don't call `done', exit does it.
2817 2000-03-31 Akim Demaille <akim@epita.fr>
2819 * allocate.c: s/return (foo)/return foo/.
2822 * output.c: Likewise.
2823 * reader.c: Likewise.
2824 * symtab.c: Likewise.
2825 * vmsgetargs.c: Likewise.
2827 2000-03-31 Akim Demaille <akim@epita.fr>
2829 Clean up the error reporting functions.
2831 * src/report.c: New file.
2832 * src/report.h: Likewise.
2833 * src/Makefile.am: Adjust.
2834 * m4/error.m4: New file.
2835 * m4/Makefile.am: Adjust.
2836 * configure.in (jm_PREREQ_ERROR): Call it.
2837 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2839 (fatal, fatals): Remove. All callers use complain.c::fatal.
2840 (warn, warni, warns, warnss, warnss): Remove. All callers use
2841 complain.c::complain.
2842 (toomany): Remove, use fatal instead.
2843 * src/files.c (done): No argument, use complain_message_count.
2844 * src/main.c (main): Register `done' to `atexit'.
2846 * src/getargs.c (usage): More `fputs', less `fprintf'.
2848 2000-03-28 Akim Demaille <akim@epita.fr>
2850 * lib/: New directory.
2851 * Makefile.am (SUBDIRS): Adjust.
2852 * configure.in: Adjust.
2853 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2855 * src/alloca.c: Moved to lib/.
2856 * src/getopt.c: Likewise.
2857 * src/getopt1.c: Likewise.
2858 * src/getopt.h: Likewise.
2859 * src/ansi2knr.c: Likewise.
2860 * src/ansi2knr.1: Likewise.
2861 * src/Makefile.am: Adjust.
2862 * lib/Makefile.am: New file.
2864 2000-03-28 Akim Demaille <akim@epita.fr>
2866 * src/getargs.c (usage): Refresh the help message.
2868 2000-03-17 Akim Demaille <akim@epita.fr>
2870 * src/getopt1.c: Updated from textutils 2.0e
2871 * src/getopt.c: Likewise.
2872 * src/getopt.h: Likewise.
2874 2000-03-17 Akim Demaille <akim@epita.fr>
2876 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2877 the file name, not the whole `#line LINE FILE'.
2879 2000-03-17 Akim Demaille <akim@epita.fr>
2881 On syntax errors, report the token on which we choked.
2883 * src/bison.s1 (yyparse): In the label yyerrlab, when
2884 YYERROR_VERBOSE, add yychar in msg.
2886 2000-03-17 Akim Demaille <akim@epita.fr>
2888 * src/reader.c (copy_at): New function.
2889 (copy_guard): Use it.
2890 (copy_action): Use it.
2892 2000-03-17 Akim Demaille <akim@epita.fr>
2894 Be kind to translators, save some useless translations.
2896 * src/main.c (banner): New function.
2897 (fatal_banner): Use it.
2898 (warn_banner): Use it.
2900 2000-03-17 Akim Demaille <akim@epita.fr>
2902 * src/reader.c (copy_definition): Use copy_string and
2903 copy_comment. Removed now unused `match', `ended',
2905 (copy_comment, copy_string): Moved, to be visible from
2908 2000-03-17 Akim Demaille <akim@epita.fr>
2910 * src/reader.c (copy_string): Declare `static inline'. No
2911 problems with inline, since it is checked by configure.
2912 (copy_comment): Likewise.
2914 2000-03-17 Akim Demaille <akim@epita.fr>
2916 * src/reader.c (packsymbols): Formatting changes.
2918 2000-03-17 Akim Demaille <akim@epita.fr>
2920 * src/reader.c (copy_comment): New function, factored out from:
2921 (copy_action): Use it. Removed now unused `match', `ended',
2923 (copy_guard): Likewise.
2925 2000-03-17 Akim Demaille <akim@epita.fr>
2927 * src/reader.c (copy_string): New function, factored out from:
2928 (copy_action): Use it.
2929 (copy_guard): Likewise.
2931 2000-03-17 Akim Demaille <akim@epita.fr>
2933 Change the handling of @s so that they behave exactly like $s.
2934 There is now a pseudo variable @$ (readble and writable), location
2935 of the lhs of the rule (by default ranging from the location of
2936 the first symbol of the rhs, to the location of the last symbol,
2937 or, if the rhs is empty, YYLLOC).
2939 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2941 (yyparse): When providing a default semantic action, provide a
2942 default location action.
2943 (after the $): No longer change `*YYLSP', just stack YYLOC the
2944 same way you stack YYVAL.
2945 * src/reader.c (read_declarations): Use warns.
2946 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2947 (copy_action, case '@'): Likewise.
2948 Use a standard error message, to save useless work from
2951 2000-03-17 Akim Demaille <akim@epita.fr>
2953 * src/bison.s1: Formatting and cosmetics changes.
2954 * src/reader.c: Likewise.
2955 Update the Copyright notice.
2957 2000-03-17 Akim Demaille <akim@epita.fr>
2959 * src/bison.s1 (#line): All set to `#line' only, since the
2960 Makefile now handles them.
2962 2000-03-16 Akim Demaille <akim@epita.fr>
2964 * src/output.c (output_rule_data): Output the documentation of
2966 (Copyright notice): Update.
2969 2000-03-16 Akim Demaille <akim@epita.fr>
2971 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2972 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2973 One `#if YYDEBUG' remains, since it uses variables which are
2974 defined only if `YYDEBUG != 0'.
2976 2000-03-16 Akim Demaille <akim@epita.fr>
2978 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2979 and related variables so that the similarities are highlighted.
2981 2000-03-16 Akim Demaille <akim@epita.fr>
2983 * src/bison.s1: Properly indent CPP directives.
2985 2000-03-16 Akim Demaille <akim@epita.fr>
2987 * src/bison.s1: Properly indent the `alloca' CPP section.
2989 2000-03-16 Akim Demaille <akim@epita.fr>
2991 Do not hard code values of directories in `configure.in'.
2992 Update the `configure' tool chain.
2994 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2996 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2997 (AC_OUTPUT): Add m4/Makefile.
2998 Bump to bison 1.28a, 1.29 has never been released.
2999 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3000 handled via src/Makefile.am.
3001 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3002 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3004 * Makefile.am (SUBDIRS): Add m4.
3005 (ACLOCAL_AM_FLAGS): New variable.
3006 (AUTOMAKE_OPTIONS): Add check-news.
3007 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3008 the proper line number and file name.
3009 (DEFS): Propagate the location of bison library files and of the
3011 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3013 * acinclude.m4: Remove, replaced by the directory m4.
3014 * m4/Makefile.am (EXTRA_DIST): New variable.
3015 * m4/gettext.m4: New file, from the fileutils.
3016 * m4/lcmessage.m4: Likewise
3017 * m4/progtest.m4: Likewise.
3018 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3020 2000-03-10 Akim Demaille <akim@epita.fr>
3023 Formatting changes of various comments.
3024 Respect the GNU coding standards at various places.
3025 Don't use `_()' when no translation is needed.
3027 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3030 OS/2 honors TMPDIR environment variable.
3032 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3034 * doc/bison.texinfo: Tweaked spelling and grammar.
3036 Removed reference to price of printed copy.
3037 Mention BISON_SIMPLE and BISON_HAIRY.
3039 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3041 * configure.in, NEWS:
3042 Bison 1.29 released.
3044 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3046 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3047 Added reference card.
3049 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3051 * po/ru.po: Added Russian translation.
3053 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3055 * configure.in: Added Russian translation.
3057 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3059 * configure.in, NEWS, README:
3060 Released version 1.28.
3062 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3065 Squashed redefinition warning on some systems.
3067 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3068 Have configure build version string instead of relying on ANSI string
3071 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3073 * po/POTFILES.in: Got rid of version.c.
3075 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3077 * acconfig.h, configure.in:
3078 Have configure build version string instead of relying on ANSI string
3081 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3084 Dropped mention of `+' for long-named options.
3086 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3088 * src/files.c: Added <unistd.h> for unlink().
3090 * src/Makefile.am, src/system.h:
3093 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3095 * README: Added a FAQ list.
3097 * configure.in, acconfig.h:
3100 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3102 * doc/FAQ, doc/Makefile.am:
3105 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3107 * src/alloc.h, src/symtab.h, src/version.c:
3108 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3110 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3112 * src/.cvsignore, src/Makefile.am:
3113 Reorganized: sources in `src', documentation in `doc'.
3115 * src/lex.c (literalchar):
3116 fixed the code for escaping double quotes (thanks
3119 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3121 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3122 Adjusted paths to reflect directory reorganization.
3124 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3126 * doc/.cvsignore, doc/Makefile.am:
3127 Reorganized: sources in `src', documentation in `doc'.
3129 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3132 Updated AC_INIT file to reflect directory reorganization.
3134 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3135 Reorganized: sources in `src', documentation in `doc'.
3137 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3140 Don't declare calloc() and realloc() if not necessary.
3142 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3144 * configure.in, acconfig.h, acinclude.m4:
3145 Don't declare calloc() and realloc() if not necessary.
3147 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3149 * po/.cvsignore: Added i18n support.
3151 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3153 * acconfig.h, configure.in, Makefile.am:
3156 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3158 * src/bison.s1: Fixed #line numbers.
3160 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3162 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3163 Added PO files from Translation Project.
3165 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3168 Added support for non-ANSI compilers (ansi2knr).
3170 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3172 * configure.in: Bumped version number to 1.27.
3175 Added `bison.simple' to list of files removed by `make distclean'.
3177 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3179 * src/files.c, src/files.h:
3180 Defined locations of parser files in config.h instead of Makefile.
3182 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3184 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3185 Defined locations of parser files in config.h instead of Makefile.
3187 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3190 Removed inappropriate use of $< macro.
3192 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3194 * po/Makefile.in.in, po/POTFILES.in:
3195 Add `po' directory skeleton.
3197 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3199 * README: Document help-bison list.
3201 * configure.in: Add check for mkstemp().
3203 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3205 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3206 Hush a few compiler warnings.
3209 Add tryclose(), which verifies that fclose was successful.
3210 Hush a couple of compiler warnings.
3212 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3214 * Makefile.am, OChangeLog:
3215 ChangeLog is now automatically generated. Include the old version as
3218 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3220 * 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:
3223 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3225 * doc/bison.texinfo: Fix formatting glitch.
3227 * doc/bison.texinfo: Update FSF address.
3229 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3231 * acconfig.h: Update FSF address.
3233 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3236 Don't define PACKAGE here, since config.h defines it.
3238 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3240 * src/reader.c: Update copyright date.
3243 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3244 favor of output directly to stderr (avoids buffer overruns).
3246 * src/reader.c: Some checks for premature EOF.
3248 * 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:
3249 Use prototypes if the compiler understands them.
3251 * src/files.c: Honor TMPDIR on Unix hosts.
3252 Use prototypes if the compiler understands them.
3255 Fix a couple of buffer overrun bugs.
3256 Use prototypes if the compiler understands them.
3258 * src/system.h: Include unistd.h and ctype.h.
3259 Use #ifdef instead of #if for NLS symbols.
3261 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3263 * doc/bison.texinfo:
3264 Delete comment "consider using @set for edition number, etc..." since
3265 we now are doing so.
3267 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3270 Use prototypes if the compiler understands them.
3272 * NEWS: Document 1.26 highlights.
3274 * Makefile.am: Require Automake 1.3 or later.
3277 Use prototypes if the compiler understands them.
3279 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3282 Use VERSION symbol from automake for version number.
3284 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3286 * acconfig.h, configure.in, version.cin:
3287 Use VERSION symbol from automake for version number.
3289 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3292 Distribute original version of simple parser (bison.s1), not built
3293 version (bison.simple).
3295 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3297 * doc/bison.texinfo: Add info dir entry.
3299 * doc/bison.texinfo:
3300 Let automake put version number into documentation.
3302 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3304 * src/bison.cld, src/build.com, src/vmshlp.mar:
3305 Add non-RCS files from /gd/gnu/bison.
3307 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3310 Document the BISON_HAIRY and BISON_SIMPLE variables.
3312 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3314 * src/version.c: Build version.c automatically.
3317 Fix token numbering (used to start at 258, not 257).
3319 * src/system.h: Include config.h.
3321 * src/getargs.c: Update bug report address.
3323 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3324 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3326 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3329 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3331 * configure.in, version.cin:
3332 Build version.c automatically.
3334 * AUTHORS: Add AUTHORS file.
3336 * README: Update bug report address.
3339 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3341 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3344 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3346 * doc/bison.texinfo: Clean up some formatting.
3348 1998-05-05 Richard Stallman <rms@gnu.org>
3350 * doc/bison.texinfo:
3351 Explain better why to make a pure parser.
3353 1998-01-05 Richard Stallman <rms@gnu.org>
3355 * src/files.c (openfiles):
3356 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3357 find a temporary directory, if possible. Do not unlink files while
3360 1997-08-25 Richard Stallman <rms@gnu.org>
3362 * src/reader.c (stack_offset;):
3363 Change some warni to warns.
3365 * src/lex.c (literalchar): Use warns, not warni.
3367 1997-06-28 Richard Stallman <rms@gnu.org>
3369 * src/bison.s1: Add a Bison version comment.
3371 * src/main.c (fatal, warn, berror):
3374 1997-06-28 Richard Stallman <rms@gnu.org>
3376 * Makefile.in (bison_version): New variable.
3377 (dist): Use that variable.
3378 (bison.s1): Substitute the Bison version into bison.simple.
3380 * bison.simple: Add a Bison version comment.
3382 1997-06-18 Richard Stallman <rms@gnu.org>
3384 * src/main.c (fatal, warn, berror):
3385 Make error messages standard.
3386 (toomany): Improve error message text.
3388 * 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:
3389 new.h renamed to alloc.h.
3391 1997-06-18 Richard Stallman <rms@gnu.org>
3393 * Makefile.in: new.h renamed to alloc.h.
3395 1997-05-24 Richard Stallman <rms@gnu.org>
3397 * src/lex.c (literalchar):
3398 Fix the code for escaping \, " and '.
3400 (lex): Avoid trouble when there are many chars
3401 to discard in a char literal with just several chars in it.
3403 1997-05-17 Richard Stallman <rms@gnu.org>
3406 Use malloc, if using alloca is troublesome.
3407 (YYSTACK_USE_ALLOCA): New flag macro.
3408 Define it for some systems and compilers.
3409 (YYSTACK_ALLOC): New macro.
3410 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3411 If it was malloc'd, free it.
3413 1997-05-17 Richard Stallman <rms@gnu.org>
3416 Use malloc, if using alloca is troublesome.
3417 (YYSTACK_USE_ALLOCA): New flag macro.
3418 Define it for some systems and compilers.
3419 (YYSTACK_ALLOC): New macro.
3420 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3421 If it was malloc'd, free it.
3423 1997-04-23 Richard Stallman <rms@gnu.org>
3426 (alloca) [__hpux]: Always define as __builtin_alloca.
3428 1997-04-23 Richard Stallman <rms@gnu.org>
3431 (alloca) [__hpux]: Always define as __builtin_alloca.
3433 1997-04-22 Richard Stallman <rms@gnu.org>
3436 [__hpux]: Include alloca.h (right for HPUX 10)
3437 instead of declaring alloca (right for HPUX 9).
3439 * src/bison.s1 (__yy_memcpy):
3440 Declare arg `count' as unsigned int.
3441 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3443 1997-04-22 Richard Stallman <rms@gnu.org>
3446 [__hpux]: Include alloca.h (right for HPUX 10)
3447 instead of declaring alloca (right for HPUX 9).
3449 * bison.simple (__yy_memcpy):
3450 Declare arg `count' as unsigned int.
3451 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3453 1997-01-03 Richard Stallman <rms@gnu.org>
3455 * src/allocate.c: [__STDC__ or _MSC_VER]:
3456 Declare calloc and realloc to return void *.
3458 1997-01-02 Richard Stallman <rms@gnu.org>
3461 [_MSC_VER]: Include stdlib.h and process.h.
3462 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3464 * src/main.c (main): Return FAILURE as a value.
3465 (printable_version): Declare arg as int, not char.
3467 1997-01-02 Richard Stallman <rms@gnu.org>
3469 * Makefile.in (dist):
3470 Explicitly check for symlinks, and copy them.
3472 1996-12-19 Richard Stallman <rms@gnu.org>
3475 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3477 1996-12-18 Paul Eggert <eggert@gnu.org>
3479 * src/bison.s1 (yyparse):
3480 If __GNUC__ and YYPARSE_PARAM are both defined,
3481 declare yyparse to have a void * argument.
3483 1996-12-18 Paul Eggert <eggert@gnu.org>
3485 * bison.simple (yyparse):
3486 If __GNUC__ and YYPARSE_PARAM are both defined,
3487 declare yyparse to have a void * argument.
3489 1996-12-17 Richard Stallman <rms@gnu.org>
3491 * src/reduce.c (nbits): Add some casts.
3493 1996-08-12 Richard Stallman <rms@gnu.org>
3495 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3497 1996-08-12 Richard Stallman <rms@gnu.org>
3499 * bison.simple: Test _MSDOS as well as _MSDOS_.
3501 1996-07-31 Richard Stallman <rms@gnu.org>
3504 [__sun && __i386]: Include alloca.h.
3506 1996-07-31 Richard Stallman <rms@gnu.org>
3509 [__sun && __i386]: Include alloca.h.
3511 1996-07-30 Richard Stallman <rms@gnu.org>
3513 * src/bison.s1: Comment change.
3515 * src/bison.s1: Test _MSDOS_, not MSDOS.
3517 1996-07-30 Richard Stallman <rms@gnu.org>
3519 * bison.simple: Comment change.
3521 * bison.simple: Test _MSDOS_, not MSDOS.
3523 1996-06-01 Richard Stallman <rms@gnu.org>
3525 * 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:
3526 Insert `_' macro around many string constants.
3529 Insert `_' macro around many string constants.
3531 (main): Call setlocale, bindtextdomain and textdomain.
3533 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3534 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3535 [ENABLE_NLS]: Include libintl.h.
3536 [ENABLE_NLS] (gettext): Define.
3537 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3538 (N_, PACKAGE, LOCALEDIR): New macros.
3540 1996-06-01 Richard Stallman <rms@gnu.org>
3542 * POTFILES.in: New file.
3544 * Makefile.in (allocate.o):
3545 Define target explicitly.
3547 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3548 (LDFLAGS): Set to @LDFLAGS@.
3549 (configure): Run autoconf only if preceding `cd' succeeds.
3550 (bison.s1): Redirect output to temporary file then move the
3551 temporary to the target, rather than redirecting directly to bison.s1.
3552 (clean): Remove config.status and config.log.
3553 (distclean): Don't remove config.status here.
3555 1996-05-12 Richard Stallman <rms@gnu.org>
3558 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3560 1996-05-12 Richard Stallman <rms@gnu.org>
3563 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3565 1996-05-11 Richard Stallman <rms@gnu.org>
3567 * src/bison.s1 (__yy_memcpy):
3568 Really reorder the args, as was supposedly done on Feb 14 1995.
3569 (yyparse): Calls changed accordingly.
3571 1996-05-11 Richard Stallman <rms@gnu.org>
3573 * Makefile.in (dist): Don't use $(srcdir).
3575 * bison.simple (__yy_memcpy):
3576 Really reorder the args, as was supposedly done on Feb 14 1995.
3577 (yyparse): Calls changed accordingly.
3579 1996-01-27 Richard Stallman <rms@gnu.org>
3581 * src/output.c (output_rule_data):
3582 Test YYERROR_VERBOSE in the conditional
3583 around the definition of ttyname.
3585 1995-12-29 Richard Stallman <rms@gnu.org>
3588 Fix line numbers in #line commands.
3590 1995-12-29 Richard Stallman <rms@gnu.org>
3593 Fix line numbers in #line commands.
3595 1995-12-27 Richard Stallman <rms@gnu.org>
3597 * src/bison.s1 (YYPARSE_PARAM_DECL):
3598 In C++, make it always null.
3599 (YYPARSE_PARAM_ARG): New macro.
3600 (yyparse): Use YYPARSE_PARAM_ARG.
3602 1995-12-27 Richard Stallman <rms@gnu.org>
3604 * bison.simple (YYPARSE_PARAM_DECL):
3605 In C++, make it always null.
3606 (YYPARSE_PARAM_ARG): New macro.
3607 (yyparse): Use YYPARSE_PARAM_ARG.
3609 1995-11-29 Richard Stallman <rms@gnu.org>
3611 * doc/bison.texinfo:
3612 Describe literal string tokens, %raw, %no_lines, %token_table.
3614 1995-11-29 Daniel Hagerty <hag@gnu.org>
3616 * doc/bison.texinfo: Fixed update date
3618 1995-10-16 Richard Stallman <rms@gnu.org>
3620 * src/version.c: Version 1.25.
3622 1995-10-16 Richard Stallman <rms@gnu.org>
3624 * NEWS: *** empty log message ***
3626 1995-10-16 Richard Stallman <rms@gnu.org>
3628 * doc/bison.1, doc/bison.rnh:
3631 1995-10-15 Richard Stallman <rms@gnu.org>
3633 * src/vmsgetargs.c, src/getargs.c:
3634 Added -n, -k, and -raw switches.
3635 (noparserflag, toknumflag, rawtoknumflag): New variables.
3637 * src/symtab.h (SALIAS):
3638 New #define for adding aliases to %token.
3639 (struct bucket): Added `alias' field.
3641 * src/reduce.c (reduce_grammar):
3642 Revise error message.
3643 (print_notices): Remove final `.' from error message.
3645 * src/reader.c (reader_output_yylsp):
3647 (readgram): Use `#if 0' around code that accepted %command
3648 inside grammar rules: The documentation doesn't allow it,
3649 and it will fail since the %command processors scan for the next %.
3650 (parse_token_decl): Extended the %token
3651 declaration to allow a multi-character symbol as an alias.
3652 (parse_thong_decl): New function.
3653 (read_declarations): Added %thong declarations.
3654 (read_declarations): Handle NOOP to deal with allowing
3655 % declarations as another means to specify the flags.
3656 (readgram): Allow %prec prior to semantics embedded in a rule.
3657 (skip_to_char, read_declarations, copy_definition)
3658 (parse_token_decl, parse_start_decl, parse_type_decl)
3659 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3660 (get_type_name, copy_guard, copy_action, readgram)
3661 (get_type, packsymbols): Revised most error messages.
3662 Changed `fatal' to `warnxxx' to avoid aborting for error.
3663 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3664 (read_declarations): Improve the error message for
3665 an invalid character. Do not abort.
3666 (read_declarations, copy_guard, copy_action): Use
3667 printable_version to avoid unprintable characters in printed output.
3668 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3669 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3670 Allow the type of a non-terminal can be given
3671 more than once, as long as all specifications give the same type.
3674 (output_headers, output_trailers, output, output_gram)
3675 (output_rule_data): Implement noparserflag variable.
3676 Implement toknumflag variable.
3677 (output): Call reader_output_yylsp to output LTYPESTR.
3679 * src/main.c (main):
3680 If reader sees an error, don't process the grammar.
3681 (fatals): Updated to not use VARARGS1.
3682 (printable_version, int_to_string, warn, warni, warns, warnss)
3683 (warnsss): New error reporting functions. Avoid abort for error.
3686 Added THONG and NOOP for alias processing.
3687 Added SETOPT for the new code that allows setting options with %flags.
3690 Include getopt.h. Add some extern decls.
3691 (safegetc): New function to deal with EOF gracefully.
3692 (literalchar); new function to deal with reading \ escapes.
3693 (lex): Use literalchar.
3694 (lex): Implemented "..." tokens.
3695 (literalchar, lex, parse_percent_token): Made tokenbuffer
3696 always contain the token. This includes growing the token
3697 buffer while reading an integer.
3698 (parse_percent_token): Replaced if-else statement with percent_table.
3699 (parse_percent_token): Added % declarations as another
3700 way to specify the flags -n, -l, and -r. Also added hooks for
3701 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3702 major changes to files.c.
3703 (lex) Retain in the incoming stream a character following
3705 (skip_white_space, lex): Revised most error messages
3706 and changed fatal to warn to avoid aborting.
3707 (percent_table): Added %thong declarations.
3709 * src/gram.h: Comment changes.
3711 * src/files.c (openfiles, open_extra_files, done):
3713 and actfile file. Handle noparserflag. Both for -n switch.
3715 * src/conflicts.c (resolve_sr_conflict):
3716 Remove use of alloca.
3718 1995-06-01 Jim Meyering <meyering@gnu.org>
3720 * doc/bison.texinfo: *** empty log message ***
3722 1995-05-06 Richard Stallman <rms@gnu.org>
3724 * src/bison.s1: Comment change.
3726 1995-05-06 Richard Stallman <rms@gnu.org>
3728 * bison.simple: Comment change.
3730 1995-05-03 Richard Stallman <rms@gnu.org>
3732 * src/version.c: Version now 1.24.
3734 * src/bison.s1: Change distribution terms.
3736 * src/version.c: Version now 1.23.
3738 1995-05-03 Richard Stallman <rms@gnu.org>
3740 * doc/bison.texinfo:
3741 Rewrite "Conditions for Using Bison".
3742 Update version to 1.24.
3744 1995-05-03 Richard Stallman <rms@gnu.org>
3746 * bison.simple: Change distribution terms.
3748 1995-02-23 Richard Stallman <rms@gnu.org>
3750 * src/files.c: Test __VMS_POSIX as well as VMS.
3752 1995-02-14 Jim Meyering <meyering@gnu.org>
3754 * src/bison.s1 (__yy_memcpy):
3755 Renamed from __yy_bcopy to avoid
3756 confusion. Reverse FROM and TO arguments to be consistent with
3759 1995-02-14 Jim Meyering <meyering@gnu.org>
3761 * bison.simple (__yy_memcpy):
3762 Renamed from __yy_bcopy to avoid
3763 confusion. Reverse FROM and TO arguments to be consistent with
3766 1994-11-10 David J. MacKenzie <djm@gnu.org>
3772 * Makefile.in (DISTFILES): Include NEWS.
3774 * Makefile.in (DISTFILES):
3775 Include install-sh, not install.sh.
3777 * configure.in: Update to Autoconf v2 macro names.
3779 1994-10-05 David J. MacKenzie <djm@gnu.org>
3781 * Makefile.in: fix typo
3783 * Makefile.in (prefix, exec_prefix):
3784 Let configure set them.
3786 1994-09-28 David J. MacKenzie <djm@gnu.org>
3788 * Makefile.in: Set datadir to $(prefix)/share.
3790 1994-09-15 Richard Stallman <rms@gnu.org>
3793 Update copyright notice and GPL version.
3795 1994-09-15 Richard Stallman <rms@gnu.org>
3798 Update copyright notice and GPL version.
3800 1994-07-12 Richard Stallman <rms@gnu.org>
3802 * src/reduce.c, src/reader.c:
3805 1994-05-05 David J. MacKenzie <djm@gnu.org>
3807 * Makefile.in: entered into RCS
3809 1994-03-26 Richard Stallman <rms@gnu.org>
3811 * src/bison.s1: entered into RCS
3813 1994-03-26 Richard Stallman <rms@gnu.org>
3815 * bison.simple: entered into RCS
3817 1994-03-25 Richard Stallman <rms@gnu.org>
3819 * src/main.c: entered into RCS
3821 1994-03-24 Richard Stallman <rms@gnu.org>
3823 * src/conflicts.c: entered into RCS
3825 1994-01-02 Richard Stallman <rms@gnu.org>
3827 * Makefile.in: *** empty log message ***
3829 1993-11-21 Richard Stallman <rms@gnu.org>
3831 * src/bison.s1: *** empty log message ***
3833 1993-11-21 Richard Stallman <rms@gnu.org>
3835 * doc/bison.texinfo: entered into RCS
3837 * doc/bison.texinfo: *** empty log message ***
3839 1993-11-21 Richard Stallman <rms@gnu.org>
3841 * bison.simple: *** empty log message ***
3843 1993-10-25 David J. MacKenzie <djm@gnu.org>
3845 * doc/bison.texinfo: *** empty log message ***
3847 1993-10-19 Richard Stallman <rms@gnu.org>
3849 * src/bison.s1: *** empty log message ***
3851 1993-10-19 Richard Stallman <rms@gnu.org>
3853 * bison.simple: *** empty log message ***
3855 1993-10-14 Richard Stallman <rms@gnu.org>
3857 * src/bison.s1: *** empty log message ***
3859 1993-10-14 Richard Stallman <rms@gnu.org>
3861 * bison.simple: *** empty log message ***
3863 1993-09-14 David J. MacKenzie <djm@gnu.org>
3865 * doc/bison.texinfo: *** empty log message ***
3867 1993-09-13 Noah Friedman <friedman@gnu.org>
3869 * Makefile.in: *** empty log message ***
3871 1993-09-10 Richard Stallman <rms@gnu.org>
3873 * src/conflicts.c: *** empty log message ***
3875 * src/system.h: entered into RCS
3877 1993-09-10 Richard Stallman <rms@gnu.org>
3879 * doc/bison.1: entered into RCS
3881 1993-09-06 Noah Friedman <friedman@gnu.org>
3883 * src/version.c: entered into RCS
3885 1993-09-06 Noah Friedman <friedman@gnu.org>
3887 * Makefile.in: *** empty log message ***
3889 1993-07-30 David J. MacKenzie <djm@gnu.org>
3891 * Makefile.in: *** empty log message ***
3893 1993-07-24 Richard Stallman <rms@gnu.org>
3895 * src/bison.s1: *** empty log message ***
3897 1993-07-24 Richard Stallman <rms@gnu.org>
3899 * bison.simple: *** empty log message ***
3901 1993-07-08 David J. MacKenzie <djm@gnu.org>
3903 * Makefile.in: *** empty log message ***
3905 1993-07-04 Richard Stallman <rms@gnu.org>
3907 * src/bison.s1: *** empty log message ***
3909 1993-07-04 Richard Stallman <rms@gnu.org>
3911 * bison.simple: *** empty log message ***
3913 1993-06-26 David J. MacKenzie <djm@gnu.org>
3915 * src/getargs.c: entered into RCS
3917 1993-06-26 David J. MacKenzie <djm@gnu.org>
3919 * doc/bison.texinfo: *** empty log message ***
3921 * doc/bison.1: New file.
3923 1993-06-25 Richard Stallman <rms@gnu.org>
3925 * src/getargs.c: New file.
3927 1993-06-16 Richard Stallman <rms@gnu.org>
3929 * src/bison.s1: *** empty log message ***
3931 1993-06-16 Richard Stallman <rms@gnu.org>
3933 * bison.simple: *** empty log message ***
3935 1993-06-03 Richard Stallman <rms@gnu.org>
3937 * src/bison.s1: New file.
3939 1993-06-03 Richard Stallman <rms@gnu.org>
3941 * doc/bison.texinfo: *** empty log message ***
3943 1993-06-03 Richard Stallman <rms@gnu.org>
3945 * bison.simple: New file.
3947 1993-05-19 Richard Stallman <rms@gnu.org>
3949 * doc/bison.texinfo: New file.
3951 1993-05-07 Noah Friedman <friedman@gnu.org>
3953 * Makefile.in: *** empty log message ***
3955 1993-04-28 Noah Friedman <friedman@gnu.org>
3957 * src/reader.c: *** empty log message ***
3959 1993-04-23 Noah Friedman <friedman@gnu.org>
3961 * src/alloc.h: entered into RCS
3963 1993-04-20 David J. MacKenzie <djm@gnu.org>
3965 * src/version.c: *** empty log message ***
3967 * src/files.c, src/allocate.c:
3970 * src/reader.c: *** empty log message ***
3972 * src/lex.c: entered into RCS
3974 * src/conflicts.c: New file.
3976 * src/symtab.c: entered into RCS
3978 * src/alloc.h: New file.
3980 * src/LR0.c: entered into RCS
3982 1993-04-18 Noah Friedman <friedman@gnu.org>
3984 * src/reader.c: New file.
3986 * src/version.c: *** empty log message ***
3988 1993-04-18 Noah Friedman <friedman@gnu.org>
3990 * Makefile.in: *** empty log message ***
3992 1993-04-17 Noah Friedman <friedman@gnu.org>
3994 * Makefile.in: *** empty log message ***
3996 1993-04-15 Richard Stallman <rms@gnu.org>
3998 * src/main.c, src/files.c:
4001 1993-04-15 Noah Friedman <friedman@gnu.org>
4003 * configure.in: entered into RCS
4005 * configure.in: *** empty log message ***
4007 * configure.in: New file.
4009 1993-04-14 Richard Stallman <rms@gnu.org>
4011 * Makefile.in: New file.
4013 1993-04-13 Richard Stallman <rms@gnu.org>
4015 * src/version.c: New file.
4017 1993-03-25 Richard Stallman <rms@gnu.org>
4019 * src/output.c: entered into RCS
4021 1992-09-25 Richard Stallman <rms@gnu.org>
4023 * configure.bat: entered into RCS
4025 1992-06-22 Richard Stallman <rms@gnu.org>
4027 * src/vmsgetargs.c: entered into RCS
4029 1992-06-22 Richard Stallman <rms@gnu.org>
4031 * doc/bison.rnh: entered into RCS
4033 1992-04-20 David J. MacKenzie <djm@gnu.org>
4035 * README: entered into RCS
4037 1992-01-22 Richard Stallman <rms@gnu.org>
4039 * src/machine.h: entered into RCS
4041 1991-12-21 Richard Stallman <rms@gnu.org>
4043 * src/lalr.c, src/closure.c:
4046 1991-12-20 Richard Stallman <rms@gnu.org>
4048 * src/state.h: entered into RCS
4050 1991-12-18 Richard Stallman <rms@gnu.org>
4052 * src/print.c, src/nullable.c, src/derives.c:
4055 1991-11-03 David J. MacKenzie <djm@gnu.org>
4057 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4060 1988-09-09 Richard Stallman <rms@gnu.org>
4062 * src/bison.hairy: entered into RCS
4064 1987-12-16 Richard Stallman <rms@gnu.org>
4066 * REFERENCES: entered into RCS