1 2002-01-06 Akim Demaille <akim@epita.fr>
3 Creating package.m4 from configure.ac causes too many problems.
5 * tests/Makefile.am (package.m4): Create it by hand,
6 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
8 2002-01-04 Paul Eggert <eggert@twinsun.com>
10 * doc/bison.texinfo (Debugging):
11 Remove YYSTDERR; it's no longer defined or used.
12 Also, s/cstdio.h/cstdio/.
14 2002-01-03 Akim Demaille <akim@epita.fr>
16 * src/files.h: Add it prototype.
18 2002-01-03 Akim Demaille <akim@epita.fr>
20 * src/files.c, src/files.h (strsuffix): Not static.
21 * src/conflicts.c (conflicts_print): Don't consider it is an error
22 to have a %expectation violation on a file ending by `plural.y'.
25 2002-01-03 Akim Demaille <akim@epita.fr>
27 * tests/bison.in: Adjust to CVS Autoconf.
28 * tests/calc.at (exp): We no longer need to special case GCC as
29 the warning flags are passed by configure.
30 * tests/atlocal.in: Adjust.
31 * configure.in: Bump to 1.30j.
33 2002-01-03 Akim Demaille <akim@epita.fr>
37 2002-01-03 Akim Demaille <akim@epita.fr>
39 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
40 The ISO C++ standard is extremely clear about it: stderr is
41 considered a macro, not a regular symbol (see table 94 `Header
42 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
43 Therefore std:: does not apply to it. It still does with fprintf.
44 Also, s/cstdio.h/cstdio/.
46 2002-01-03 Akim Demaille <akim@epita.fr>
48 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
49 for non system headers.
51 2001-12-27 Paul Eggert <eggert@twinsun.com>
53 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
54 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
55 Sparc, as they were causing more porting problems than the
56 (minor) performance improvement was worth.
58 2001-12-22 Akim Demaille <akim@epita.fr>
60 * src/output.c (output_short_table, output_short_or_char_table):
61 Change the prototype to use `int' for array ranges: some
62 invocations do pass an int, not a short.
63 Reported by Wayne Green.
65 2001-12-22 Akim Demaille <akim@epita.fr>
67 Some actions of web2c.y are improperly triggered.
68 Reported by Mike Castle.
70 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
71 * tests/regression.at (Web2c): Rename as...
75 2001-12-22 Akim Demaille <akim@epita.fr>
77 Reductions in web2c.y are improperly reported.
78 Reported by Mike Castle.
80 * src/conflicts.c (print_reductions): Fix.
81 * tests/regression.at (Web2c): New.
83 2001-12-18 Akim Demaille <akim@epita.fr>
87 2001-12-18 Akim Demaille <akim@epita.fr>
89 Some host fail on `assert (!"foo")', which expands to
90 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
91 Reported by Nelson Beebee.
93 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
94 `#define it_succeeded 0' and `assert (it_succeeded)'.
96 2001-12-17 Paul Eggert <eggert@twinsun.com>
98 * src/bison.simple (YYSTD): New macro.
99 (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE, YYFPRINTF, YYSTDERR): Use
100 it to simplify macros, and fix some C++ porting problems reported
103 * src/output.c (output): Define YYDEBUG to 0 if it is not defined
104 and if we are not debugging. POSIX requires this.
105 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document this.
107 * src/output.c (output_gram, output_rule_data): Do not assume that
108 the user defines YYDEBUG to a properly parenthesized expression.
110 2001-12-15 Akim Demaille <akim@epita.fr>
112 * src/nullable.c (set_nullable): Useless rules must be skipped,
113 otherwise, since we range over their symbols, we might look at a
114 nonterminal which no longer ``exists'', i.e., it is not counted in
115 `nvars', hence we overflow our arrays.
117 2001-12-15 Akim Demaille <akim@epita.fr>
119 * src/reader.c (copy_action): When --yacc, don't append a `;'
120 to the user action: let it fail if lacking.
121 Suggested by Arnold Robbins and Tom Tromey.
123 2001-12-13 Akim Demaille <akim@epita.fr>
127 2001-12-13 Akim Demaille <akim@epita.fr>
129 The computation of nullable is broken: it doesn't handle empty
132 * tests/torture.at (GNU AWK Grammar): New.
133 * tests/sets.at (Nullable): New.
134 * src/nullable.c (set_nullable): Instead of blindly looping over
135 `ritems', loop over the rules, and then over their rhs's.
137 Work around Autotest bugs.
139 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
140 frame, because Autotest understand lines starting with a `+' as
141 traces from the shell. Then, they are not processed properly.
142 Admittedly an Autotest bug, but we don't have time to wait for
143 Autotest to catch up.
144 * tests/regression.at (Broken Closure): Adjust to the new table
147 * tests/sets.at: here.
149 2001-12-12 Paul Eggert <eggert@twinsun.com>
151 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
152 Do not infringe on the global user namespace when using C++.
153 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
154 All uses of `fprintf' and `stderr' changed.
156 * src/output.c (output): Do not output "#include <stdio.h>"; that
157 is bison.simple's job. stdio.h should be included only if
158 necessary, to avoid infringing on the user name space when
161 2001-12-12 Akim Demaille <akim@epita.fr>
163 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
164 on that of lib/error.c.
166 2001-12-12 Akim Demaille <akim@epita.fr>
168 Some hosts don't like `/' in includes.
170 * src/system.h: Include libgettext.h without qualifying the path.
171 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
174 2001-12-10 Akim Demaille <akim@epita.fr>
176 Bison dumps core on bash.y.
177 Reported by Pascal Bart.
179 * src/warshall.c (bitmatrix_print): New.
181 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
182 j must be the outer loop.
183 * tests/regression.at (Broken Closure): New.
185 2001-12-05 Akim Demaille <akim@epita.fr>
189 2001-12-05 Akim Demaille <akim@epita.fr>
191 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
193 Reported by Peter Hámorský.
195 2001-12-05 Akim Demaille <akim@epita.fr>
197 * src/conflicts.c (err_table): Remove.
198 (resolve_sr_conflict): Adjust.
199 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
201 (state_t.reductions, state_t.shifts): this.
203 2001-12-05 Akim Demaille <akim@epita.fr>
205 * src/reduce.c (reduce_grammar_tables): No longer disable the
206 removal of useless rules via CPP but via `if (0)', so that the
207 compiler still check the code is valid.
208 For instance, it should have noticed `rline' no longer exists: use
209 the `line' member of rule_t.
210 * src/gram.c (dummy, rline): Remove, unused.
212 2001-12-05 Akim Demaille <akim@epita.fr>
214 * src/output.c (pack_vector): Use assert, not berror.
215 * src/main.c (berror): Remove, unused.
217 2001-12-05 Akim Demaille <akim@epita.fr>
219 New experimental feature: if --verbose --trace output all the
220 items of a state, not only its kernel.
222 * src/print.c (print_core): If `trace_flag', then invoke closure
223 before outputting the items of the state (print_core is no longer
224 a correct name them).
225 (print_results): Invoke new_closure/free_closure if needed.
227 2001-12-05 Akim Demaille <akim@epita.fr>
229 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
230 * src/closure.c, src/closure.h (itemsetsize): Rename as...
231 (nitemset): for consistency with the rest of the project.
233 2001-12-05 Akim Demaille <akim@epita.fr>
235 * src/closure.c (print_closure): Improve.
236 (closure): Use it for printing input and output.
238 2001-12-05 Akim Demaille <akim@epita.fr>
240 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
241 indexed by nonterminals.
243 2001-12-05 Akim Demaille <akim@epita.fr>
245 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
247 * src/warshall.h: Remove accidental duplication of the content.
249 2001-12-05 Akim Demaille <akim@epita.fr>
251 * src/closure.c (set_fderives): De-obfuscate.
253 2001-12-05 Akim Demaille <akim@epita.fr>
255 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
257 2001-12-05 Akim Demaille <akim@epita.fr>
259 * src/closure.c (set_firsts): De-obfuscate.
261 2001-12-05 Akim Demaille <akim@epita.fr>
263 * src/output.c (action_row): De-obfuscate
264 using the good o' techniques: arrays not pointers, variable
265 locality, BITISSET, RESETBIT etc.
267 2001-12-05 Akim Demaille <akim@epita.fr>
269 Pessimize the code to simplify it: from now on, all the states
270 have a valid SHIFTS, which NSHIFTS is possibly 0.
272 * src/LR0.c (shifts_new): Be global and move to..
273 * src/state.c, src/state.h: here.
274 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
275 * src/print_graph: Adjust.
277 2001-12-05 Akim Demaille <akim@epita.fr>
279 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
280 * src/conflicts.c: Use it.
281 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
282 incorrectly ``simplified''.
284 2001-12-05 Akim Demaille <akim@epita.fr>
286 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
287 using the good o' techniques: arrays not pointers, variable
288 locality, BITISSET, RESETBIT etc.
290 2001-12-05 Akim Demaille <akim@epita.fr>
292 * src/state.h (SHIFT_SYMBOL): New.
293 * src/conflicts.c: Use it to deobfuscate.
295 2001-12-05 Akim Demaille <akim@epita.fr>
297 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
298 (print_reductions): De-obfuscate using the good o' techniques:
299 arrays not pointers, variable locality, BITISSET.
301 2001-12-05 Akim Demaille <akim@epita.fr>
303 * src/conflicts.c (print_reductions): Arrays, not pointers.
306 2001-12-05 Akim Demaille <akim@epita.fr>
308 * src/conflicts.c (print_reductions): Pessimize, but clarify.
310 2001-12-05 Akim Demaille <akim@epita.fr>
312 * src/conflicts.c (print_reductions): Improve variable locality.
314 2001-12-05 Akim Demaille <akim@epita.fr>
316 * src/conflicts.c (print_reductions): Pessimize, but clarify.
318 2001-12-05 Akim Demaille <akim@epita.fr>
320 * src/conflicts.c (print_reductions): Improve variable locality.
322 2001-12-05 Akim Demaille <akim@epita.fr>
324 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
325 * src/lalr.c: Use them.
327 2001-12-05 Akim Demaille <akim@epita.fr>
329 * src/LR0.c (augment_automaton): Formatting changes.
330 Better variable locality.
332 2001-12-05 Akim Demaille <akim@epita.fr>
334 * src/lalr.c (matrix_print): New.
336 Use arrays instead of pointers.
338 2001-12-05 Akim Demaille <akim@epita.fr>
340 * src/lalr.c (maxrhs): Move to...
341 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
342 * src/lalr.c (build_relations): Adjust.
344 2001-12-05 Akim Demaille <akim@epita.fr>
346 * src/lalr.c (transpose): Free the memory allocated to the
347 argument, as it is replaced by the results by the unique caller.
348 (build_relations): Merely invoke transpose: it handles the memory
350 Improve variable locality.
351 Avoid variables used as mere abbreviations.
352 (compute_lookaheads): Use arrays instead of pointers.
354 2001-12-05 Akim Demaille <akim@epita.fr>
356 * src/lalr.c (initialize_F): Improve variable locality.
357 Avoid variables used as mere abbreviations.
359 2001-12-05 Akim Demaille <akim@epita.fr>
361 * src/derives.c (print_derives): Display the ruleno.
362 * src/lalr.c (initialize_F, transpose): Better variable locality
363 to improve readability.
364 Avoid variables used as mere abbreviations.
366 2001-12-05 Akim Demaille <akim@epita.fr>
368 * src/lalr.c (traverse): Use arrays instead of pointers.
370 2001-12-05 Akim Demaille <akim@epita.fr>
372 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
373 the handling of squeue.
374 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
376 2001-12-05 Akim Demaille <akim@epita.fr>
378 Because useless nonterminals are now kept alive (instead of being
379 `destroyed'), we now sometimes examine them, and store information
380 related to them. Hence we need to know their number, and adjust
383 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
385 * src/LR0.c (allocate_itemsets): The memory allocated to
386 `symbol_count' was used for two different purpose: once to count
387 the number of occurrences of each symbol, and later reassigned to
388 `shift_symbol', containing the symbol that can be shifted from a
390 Deobfuscate, i.e., allocate, use and free `symbol_count' here
392 (new_itemsets): Allocate `shift_symbol' here.
393 (allocate_itemsets): symbol_count includes useless nonterminals.
395 (free_storage): Use `free', not `XFREE', for pointers that cannot
398 2001-12-05 Akim Demaille <akim@epita.fr>
400 * src/nullable.c (set_nullable): Deobfuscate the handling of
402 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
404 2001-12-05 Akim Demaille <akim@epita.fr>
406 * src/gram.c, src/gram.h (ritem_print): New.
407 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
408 (This useless function was defined only to work around VMS linkers
409 that can't handle compilation units with variables only).
410 * src/reduce.c (dump_grammar): Use it to trace the construction of
413 2001-12-04 Paul Eggert <eggert@twinsun.com>
415 * src/bison.simple (union yyalloc): Change member names
416 to be the same as the stack names.
417 (yyparse): yyptr is now union yyalloc *, not char *.
418 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
419 and may generate better code on some machines.
420 (yystpcpy): Use prototype if __STDC__ is defined, not just
421 if __cplusplus is defined.
423 2001-11-30 Akim Demaille <akim@epita.fr>
425 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
426 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
427 Gettext doesn't compile cleanly, and dies with -Werror.
428 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
429 Include WARNING_CFLAGS here.
430 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
431 before being defined.
433 2001-11-30 Paul Eggert <eggert@twinsun.com>
435 * lib/quotearg.h (quotearg_n, quotearg_n_style):
436 First arg is int, not unsigned.
437 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
438 (SIZE_MAX, UINT_MAX): New macros.
439 (quotearg_n_options): Abort if N is negative.
440 Avoid overflow check on hosts where size_t is 64 bits and int
441 is 32 bits, as overflow is impossible there.
442 Fix off-by-one typo that caused unnecessary reallocation.
444 2001-11-30 Paul Eggert <eggert@twinsun.com>
446 Name space cleanup in generated parser.
448 * doc/bison.texinfo (Bison Parser): Discuss system headers
449 and their effect on the user name space.
452 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
453 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
454 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
456 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
457 on user names when possible.
459 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
460 Simplify test for whather <alloca.h> exists.
462 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
464 (<stdio.h>): Include if YYDEBUG.
466 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
467 ! defined (yyoverflow) && ! defined (yymemcpy).
469 (yymemcpy, yyparse): Rename local variables as needed so that
470 they all begin with 'yy'.
472 (yystrlen, yystpcpy): New functions.
474 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
477 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
478 instead of relying on string.h functions. Use YYSTACK_ALLOC
479 and YYSTACK_FREE instead of malloc and free.
481 2001-11-30 Akim Demaille <akim@epita.fr>
483 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
484 if body instead of `;' to pacify GCC's warnings.
486 2001-11-30 Akim Demaille <akim@epita.fr>
488 Instead of mapping the LHS of unused rules to -1, keep the LHS
489 valid, but flag the rules as invalid.
491 * src/gram.h (rule_t): `useful' is a new member.
492 * src/print.c (print_grammar): Adjust.
493 * src/derives.c (set_derives): Likewise.
494 * src/reader.c (packgram, reduce_output): Likewise.
495 * src/reduce.c (reduce_grammar_tables): Likewise.
496 * tests/reduce.at (Underivable Rules, Useless Rules): New.
498 2001-11-30 Akim Demaille <akim@epita.fr>
500 * src/reduce.c (reduce_output): Formatting changes.
501 * src/print.c (print_results, print_grammar): Likewise.
502 * tests/regression.at (Rule Line Numbers)
503 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
505 2001-11-30 Akim Demaille <akim@epita.fr>
507 * src/reduce.c (nonterminals_reduce): Instead of throwing away
508 useless nonterminals, move them at the end of the symbol arrays.
509 (reduce_output): Adjust.
510 * tests/reduce.at (Useless Nonterminals): Adjust.
512 2001-11-30 Akim Demaille <akim@epita.fr>
514 * src/reduce.c: Various comment/formatting changes.
515 (nonterminals_reduce): New, extracted from...
516 (reduce_grammar_tables): here.
517 (reduce_grammar): Call nonterminals_reduce.
519 2001-11-29 Paul Eggert <eggert@twinsun.com>
521 * src/bison.simple (YYSTACK_REALLOC): Remove.
522 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
523 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
525 (union yyalloc): New type.
526 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
527 an arbitrary restriction on hosts where size_t is wider than int.
529 (yyparse): Don't dump core if alloca or malloc fails; instead, report
530 a parser stack overflow. Allocate just one block of memory for all
531 three stacks, instead of allocating three blocks; this typically is
532 faster and reduces fragmentation.
534 Do not limit the number of items in the stack to a value that fits
535 in 'int', as this is an arbitrary limit on hosts with 64-bit
536 size_t and 32-bit int.
538 2001-11-28 Akim Demaille <akim@epita.fr>
540 * src/LR0.c (shifts_new): New.
541 (save_shifts, insert_start_shift, augment_automaton): Use it.
543 2001-11-28 Akim Demaille <akim@epita.fr>
545 * src/closure.c (closure): `b' and `ruleno' denote the same value:
548 2001-11-28 Akim Demaille <akim@epita.fr>
550 * src/closure.c (closure): Instead of looping over word in array
551 then bits in words, loop over bits in array.
553 2001-11-28 Akim Demaille <akim@epita.fr>
555 * src/closure.c (closure): No longer optimize the special case
556 where all the bits of `ruleset[r]' are set to 0, to make the code
559 2001-11-28 Akim Demaille <akim@epita.fr>
561 * src/closure.c (closure): `r' and `c' are new variables, used to
562 de-obfuscate accesses to RULESET and CORE.
564 2001-11-28 Akim Demaille <akim@epita.fr>
566 * src/reduce.c (reduce_print): Use ngettext.
567 (dump_grammar): Improve the trace accuracy.
569 2001-11-28 Akim Demaille <akim@epita.fr>
571 * src/reduce.c (dump_grammar): Don't translate trace messages.
573 2001-11-28 Akim Demaille <akim@epita.fr>
575 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
576 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
577 as all tags are free'ed afterwards.
580 2001-11-27 Akim Demaille <akim@epita.fr>
582 * src/system.h: Use intl/libgettext.h.
583 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
585 2001-11-27 Paul Eggert <eggert@twinsun.com>
587 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
588 use alloca when we didn't want to, and vice versa.
590 2001-11-27 Akim Demaille <akim@epita.fr>
592 * tests/torture.at (Exploding the Stack Size with Malloc):
593 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
595 2001-11-27 Akim Demaille <akim@epita.fr>
597 * src/files.c: Include error.h.
600 2001-11-26 Akim Demaille <akim@epita.fr>
604 2001-11-26 Akim Demaille <akim@epita.fr>
606 * src/reader.c (readgram): Make sure rules for mid-rule actions
607 have a lineno equal to that of their host rule.
608 Reported by Hans Aberg.
609 * tests/regression.at (Rule Line Numbers): New.
611 2001-11-26 Akim Demaille <akim@epita.fr>
613 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
615 Reported by Hans Aberg.
617 2001-11-26 Akim Demaille <akim@epita.fr>
619 * src/complain.c, src/complain.h (error): Remove, provided by
622 2001-11-26 Akim Demaille <akim@epita.fr>
624 * src/reader.c (read_declarations): Don't abort on tok_illegal,
625 issue an error message.
626 * tests/regression.at (Invalid %directive): New.
627 Reported by Hans Aberg.
629 2001-11-26 Akim Demaille <akim@epita.fr>
631 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
632 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
634 2001-11-26 Akim Demaille <akim@epita.fr>
636 * src/conflicts.c (conflicts_print): Don't complain at all when
637 there are no reduce/reduce conflicts, and as many shift/reduce
638 conflicts as expected.
639 * tests/regression.at (%expect right): Adjust.
641 2001-11-23 Akim Demaille <akim@epita.fr>
643 * lib/alloca.c: Update, from fileutils.
645 2001-11-23 Akim Demaille <akim@epita.fr>
647 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
649 2001-11-23 Akim Demaille <akim@epita.fr>
651 * src/system.h: Include alloca.h.
652 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
654 2001-11-23 Akim Demaille <akim@epita.fr>
656 * src/print_graph.c (print_actions): Remove `rule', unused.
657 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
658 pacify GCC's signed < unsigned warnings.
659 * src/closure.c (itemsetsize): Likewise.
660 * src/reader.c (symbol_list_new): Static.
662 2001-11-23 Akim Demaille <akim@epita.fr>
664 Attaching lineno to buckets is stupid, since only one copy of each
665 symbol is kept, only the line of the first occurrence is kept too.
667 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
668 * src/reader.c (rline_allocated): Remove, unused.
669 (symbol_list): Have a `line' member.
670 (symbol_list_new): New.
672 * src/print.c (print_grammar): Output the rule line numbers.
673 * tests/regression.at (Solved SR Conflicts)
674 (Unresolved SR Conflicts): Adjust.
675 Reported by Hans Aberg.
677 2001-11-20 Akim Demaille <akim@epita.fr>
681 2001-11-20 Akim Demaille <akim@epita.fr>
684 * configure.in (ALL_LINGUAS): Adjust.
685 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
686 longer contains strings to translate.
688 2001-11-19 Akim Demaille <akim@epita.fr>
690 * src/conflicts.c (conflicts_print): Add a missing \n.
692 2001-11-19 Akim Demaille <akim@epita.fr>
694 * src/nullable.c (nullable_print): New.
695 (set_nullable): Call it when tracing.
696 Better locality of variables.
698 2001-11-19 Akim Demaille <akim@epita.fr>
700 * src/print.c (print_actions): Better locality of variables.
702 2001-11-19 Akim Demaille <akim@epita.fr>
704 * src/derives.c (print_derives): Fix and enrich.
705 * src/closure.c (print_fderives): Likewise.
707 2001-11-19 Akim Demaille <akim@epita.fr>
709 * src/closure.c (itemsetend): Remove, replaced with...
712 2001-11-19 Akim Demaille <akim@epita.fr>
714 * src/LR0.c (kernel_end): Remove, replaced with...
717 2001-11-19 Akim Demaille <akim@epita.fr>
719 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
722 2001-11-19 Akim Demaille <akim@epita.fr>
724 * src/closure.c (closure): Use arrays instead of pointers to clarify.
726 2001-11-19 Akim Demaille <akim@epita.fr>
728 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
730 * src/LR0.c: Likewise.
731 (allocate_itemsets): Use arrays instead of pointers to clarify.
733 2001-11-19 Akim Demaille <akim@epita.fr>
735 * src/getargs.c (statistics_flag): Replace with...
737 (longopts): Accept --trace instead of --statistics.
738 * src/getargs.h: Adjust.
739 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
740 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
742 2001-11-19 Akim Demaille <akim@epita.fr>
744 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
745 pointers to clarify the code.
746 (save_reductions, save_shifts): Factor common parts of alternatives.
748 2001-11-19 Akim Demaille <akim@epita.fr>
750 * src/LR0.c (new_state, get_state): Complete TRACE code.
751 * src/closure.c: Include `reader.h' to get `tags', needed by the
753 Rename the conditional DEBUG as TRACE.
754 Output consistently TRACEs to stderr, not stdout.
755 * src/derives.c: Likewise.
756 * src/reduce.c: (inaccessable_symbols): Using if is better style
758 Use `#if TRACE' instead of `#if 0' for tracing code.
760 2001-11-19 Akim Demaille <akim@epita.fr>
762 * src/system.h (LIST_FREE, shortcpy): New.
763 * src/LR0.c: Use them.
764 * src/output.c (free_itemsets, free_reductions, free_shifts):
765 Remove, replaced by LIST_FREE.
767 2001-11-19 Akim Demaille <akim@epita.fr>
769 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
770 (REDUCTIONS_ALLOC): New.
771 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
774 2001-11-19 Akim Demaille <akim@epita.fr>
776 * src/LR0.c (new_state): Complete trace code.
777 * src/nullable.c (set_nullable): Don't translate traces.
779 2001-11-19 Akim Demaille <akim@epita.fr>
781 * src/print_graph.c (print_core): Better locality of variables.
782 * src/print.c (print_core): Likewise.
784 2001-11-19 Akim Demaille <akim@epita.fr>
786 * src/vcg.c: You do the output, so you are responsible of the
787 handling of VCG syntax, in particular: use quotearg.
788 * src/print_graph.c: Don't.
789 (print_actions): Don't output the actions as part of the nodes,
790 since that's the job of the edges.
791 (print_state): Don't output by hand: fill the node description,
792 and ask for its output.
794 2001-11-19 Akim Demaille <akim@epita.fr>
796 * src/bison.simple (yyparse): When verbosely reporting an error,
797 no longer put additional quotes around token names.
798 * tests/calc.at: Adjust.
800 2001-11-19 Akim Demaille <akim@epita.fr>
802 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
803 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
804 * src/output.c: Adjust.
806 2001-11-19 Akim Demaille <akim@epita.fr>
808 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
810 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
812 2001-11-19 Akim Demaille <akim@epita.fr>
814 * src/gram.h (rule_t): New.
816 (rrhs, rlhs): Remove, part of state_t.
817 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
818 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
819 * src/reader.c, src/reduce.c: Adjust.
821 2001-11-19 Akim Demaille <akim@epita.fr>
823 * src/reader.c (symbols_output): New, extracted from...
827 2001-11-19 Akim Demaille <akim@epita.fr>
829 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
830 (maxrhs): this new function.
832 2001-11-19 Akim Demaille <akim@epita.fr>
834 * src/lalr.c (F): New macro to access the variable F.
837 2001-11-19 Akim Demaille <akim@epita.fr>
839 * src/lalr.h (LA): New macro to access the variable LA.
840 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
841 * src/lalr.c: Adjust.
843 2001-11-19 Akim Demaille <akim@epita.fr>
845 * src/lalr.c (initialize_LA): Only initialize LA. Let...
846 (set_state_table): handle the `lookaheads' members.
848 2001-11-19 Akim Demaille <akim@epita.fr>
850 * src/lalr.h (lookaheads): Removed array, whose contents is now
852 (state_t): this structure.
853 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
856 2001-11-19 Akim Demaille <akim@epita.fr>
858 * src/lalr.h (consistent): Removed array, whose contents is now
860 (state_t): this structure.
861 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
864 2001-11-19 Akim Demaille <akim@epita.fr>
866 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
867 contents are now members of...
868 (state_t): this structure.
869 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
872 2001-11-19 Akim Demaille <akim@epita.fr>
874 * src/lalr.h (state_t): New.
875 (state_table): Be a state_t * instead of a core **.
876 (accessing_symbol): Remove, part of state_t.
877 * src/lalr.c: Adjust.
878 (set_accessing_symbol): Merge into...
879 (set_state_table): this.
880 * src/print_graph.c, src/conflicts.c: Adjust.
882 2001-11-14 Akim Demaille <akim@epita.fr>
886 2001-11-14 Akim Demaille <akim@epita.fr>
888 * tests/calc.at, tests/output.at, tests/regression.at,
889 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
890 now the tests are run in private dirs, therefore AC_CLEANUP and
891 family can be simplified to 0-ary.
892 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
893 use abs. path to find config.h.
895 2001-11-14 Akim Demaille <akim@epita.fr>
897 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
898 stderr, there can be way too much random noise.
899 Instead pass -Werror to GCC and rely on the exit status.
900 Reported by Wolfram Wagner.
902 2001-11-14 Akim Demaille <akim@epita.fr>
904 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
905 defined only if yyoverflow is defined, to avoid `warning: unused
907 Reported by The Test Suite.
909 2001-11-14 Akim Demaille <akim@epita.fr>
911 * src/print.c: Include reduce.h.
912 Reported by Hans Aberg.
914 2001-11-14 Akim Demaille <akim@epita.fr>
916 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
917 Revert a previous patch: these are really const.
918 * src/conflicts.c (conflict_report): Additional useless pair of
919 braces to pacify GCC's warnings for `if () if () {} else {}'.
920 * src/lex.c (parse_percent_token): Replace equal_offset with
923 Be sure to strdup `arg' when used, since there is no reason for
924 token_buffer not to change.
926 2001-11-14 Akim Demaille <akim@epita.fr>
928 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
930 * src/main.c (main): Use them.
931 Suggested by Hans Aberg.
933 2001-11-12 Akim Demaille <akim@epita.fr>
937 * src/system.h (ngettext): Now that we use ngettext, be sure to
938 provide a default definition when NLS are not used that takes care
941 2001-11-12 Akim Demaille <akim@epita.fr>
943 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
944 Use @kbd to denote user input.
945 (Language and Grammar): ANSIfy the example.
946 Adjust its layout for info/notinfo.
947 (Location Tracking Calc): Output error messages to stderr.
948 Output locations in a more GNUtically correct way.
949 Fix a couple of Englishos.
950 Adjust @group/@end group pairs.
952 2001-11-12 Akim Demaille <akim@epita.fr>
954 %expext was not functioning at all.
956 * src/conflicts.c (expected_conflicts): Set to -1.
957 (conflict_report): Use ngettext.
958 (conflicts_print): Check %expect and make its violation an error.
959 * doc/bison.texinfo (Expect Decl): Adjust.
960 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
961 * tests/regression.at (%expect not enough, %expect right)
962 (%expect too much): New.
964 2001-11-12 Akim Demaille <akim@epita.fr>
966 * tests/regression.at (Conflicts): Rename as...
967 (Unresolved SR Conflicts): this.
968 (Solved SR Conflicts): New.
970 2001-11-12 Akim Demaille <akim@epita.fr>
972 * src/reduce.c (print_results): Rename as...
973 (reduce_output): This.
974 Output to OUT, passed as argument, instead of output_obstack.
975 (dump_grammar): Likewise.
978 (reduce_grammar): No longer call reduce_output, since...
979 * src/print.c (print_results): do it.
980 * src/main.c (main): Call reduce_free;
982 2001-11-12 Akim Demaille <akim@epita.fr>
984 * src/conflicts.c (print_reductions): Accept OUT as argument.
985 Output to it, not to output_obstack.
986 * src/print.c (print_actions): Adjust.
988 2001-11-12 Akim Demaille <akim@epita.fr>
990 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
991 the result instead of using...
992 (src_total, rrc_total, src_count, rrc_count): Remove.
993 (any_conflicts): Remove.
994 (print_conflicts): Split into...
995 (conflicts_print, conflicts_output): New.
996 * src/conflicts.h: Adjust.
997 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
998 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
999 * tests/regression.at (Conflicts): New.
1000 Reported by Tom Lane.
1002 2001-11-12 Akim Demaille <akim@epita.fr>
1004 * tests/regression.at (Invalid input): Remove, duplicate with
1005 ``Invalid input: 1''.
1007 2001-11-12 Akim Demaille <akim@epita.fr>
1009 * tests/torture.at (AT_DATA_STACK_TORTURE)
1010 (Exploding the Stack Size with Alloca)
1011 (Exploding the Stack Size with Malloc): New.
1013 2001-11-12 Akim Demaille <akim@epita.fr>
1015 * src/bison.simple (YYSTACK_REALLOC): New.
1016 (yyparse) [!yyoverflow]: Use it and free the old stack.
1017 Reported by Per Allansson.
1019 2001-11-05 Akim Demaille <akim@epita.fr>
1022 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1024 2001-11-05 Akim Demaille <akim@epita.fr>
1026 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1029 2001-11-05 Akim Demaille <akim@epita.fr>
1031 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1032 with yyltype/YYLTYPE. This allows inclusion of the generated
1033 header within the parser if the compiler, such as GGC, accepts
1034 multiple equivalent #defines.
1036 2001-11-04 Akim Demaille <akim@epita.fr>
1038 * src/getargs.c (longopts): Support `--output'. getopt is now
1039 able to understand that `--out' is OK: the two racing long options
1042 * src/lex.h (tok_setopt): Remove, replaced with...
1043 (tok_intopt, tok_stropt): these new guys.
1044 * src/lex.c (getopt.h): Not needed.
1045 (token_buffer, unlexed_token_buffer): Not const.
1046 (percent_table): Promote `-' over `_' in directive names.
1047 Active `%name-prefix', `file-prefix', and `output'.
1048 (parse_percent_token): Accept possible arguments to directives.
1049 Promote `-' over `_' in directive names.
1050 * doc/bison.texinfo (Decl Summary): Split the list into
1051 `directives for grammars' and `directives for bison'.
1053 Add description of `%name-prefix', `file-prefix', and `output'.
1054 Promote `-' over `_' in directive names.
1055 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1056 Simplify the description of `--name-prefix'.
1057 Promote `-' over `_' in directive names.
1058 Promote `--output' over `--output-file'.
1059 Fix the description of `--defines'.
1060 * tests/output.at: Exercise %file-prefix and %output.
1062 2001-11-02 Akim Demaille <akim@epita.fr>
1064 * doc/refcard.tex: Update.
1066 2001-11-02 Akim Demaille <akim@epita.fr>
1068 * src/symtab.h (SUNDEF): New.
1069 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1070 stand for `uninitialized', instead of 0.
1071 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1072 * src/lex.c (lex): Adjust.
1074 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1076 Let yylex return it instead of a plain 0.
1077 Reported by Dick Streefland.
1079 2001-11-02 Akim Demaille <akim@epita.fr>
1081 * tests/regression.at (Mixing %token styles): New test.
1083 2001-11-02 Akim Demaille <akim@epita.fr>
1085 * src/reader.c (parse_thong_decl): Formatting changes.
1086 (token_translations_init): New, extracted from...
1087 (packsymbols): Here.
1090 2001-11-01 Akim Demaille <akim@epita.fr>
1092 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1093 Check that `9foo.y' produces correct cpp guards.
1094 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1098 2001-11-01 Akim Demaille <akim@epita.fr>
1100 * tests/regression.at (Invalid input: 2): New.
1101 * src/lex.c (unlexed_token_buffer): New.
1102 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1106 2001-11-01 Akim Demaille <akim@epita.fr>
1108 * configure.in: Bump to 1.30a.
1109 Adjust to newer Autotest.
1111 2001-10-26 Akim Demaille <akim@epita.fr>
1115 2001-10-26 Paul Eggert <eggert@twinsun.com>
1117 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
1118 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
1119 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
1120 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
1121 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
1122 Sync with fileutils 4.1.1.
1124 2001-10-18 Akim Demaille <akim@epita.fr>
1127 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
1128 avoid spurious failures.
1130 2001-10-18 Akim Demaille <akim@epita.fr>
1134 2001-10-18 Akim Demaille <akim@epita.fr>
1136 * tests/atlocal.in (GCC): Add.
1137 * tests/calc.at: s/m4_match/m4_bmatch/.
1138 s/m4_patsubst/m4_bpatsubst/.
1139 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1140 * configure.in: AC_SUBST(GCC).
1142 2001-10-10 Akim Demaille <akim@epita.fr>
1145 * configure.in: M4 is no longer needed, but autom4te is.
1146 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
1149 2001-10-10 Akim Demaille <akim@epita.fr>
1153 2001-10-10 Akim Demaille <akim@epita.fr>
1156 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1157 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
1158 Reported by Airy Andre.
1160 2001-10-10 Akim Demaille <akim@epita.fr>
1162 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
1163 * config/mkinstalldirs, lib/ansi2knr.c: Update.
1165 2001-10-02 Akim Demaille <akim@epita.fr>
1169 2001-10-02 Akim Demaille <akim@epita.fr>
1173 2001-10-02 Akim Demaille <akim@epita.fr>
1175 * tests/regression.at (Invalid CPP headers): New.
1176 From Alexander Belopolsky.
1177 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1179 2001-10-02 Akim Demaille <akim@epita.fr>
1181 * tests/regression.at (Invalid input): New.
1182 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1185 2001-10-02 Akim Demaille <akim@epita.fr>
1187 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1189 2001-10-02 Akim Demaille <akim@epita.fr>
1191 * src/output.c (output_parser): Assert `skeleton'.
1192 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1196 2001-10-01 Marc Autret <autret_m@epita.fr>
1198 * src/lex.h: Echo modifications.
1199 * src/lex.c (unlex): Parameter is now token_t.
1202 2001-10-01 Marc Autret <autret_m@epita.fr>
1204 * src/main.c: Include lex.h.
1207 2001-09-29 Akim Demaille <akim@epita.fr>
1209 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1211 2001-09-28 Akim Demaille <akim@epita.fr>
1213 * tests/testsuite.at: Update to newer Autotest.
1214 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1216 2001-09-27 Akim Demaille <akim@epita.fr>
1218 Position independent wrapper.
1220 * tests/bison: Remove.
1221 * tests/bison.in: New.
1222 * configure.in: Adjust.
1224 2001-09-27 Paul Eggert <eggert@twinsun.com>
1226 Port quotearg fixes from tar 1.13.24.
1228 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1230 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1231 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1233 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1234 * m4/mbrtowc.m4: New file.
1235 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1236 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1238 2001-09-27 Akim Demaille <akim@epita.fr>
1242 2001-09-27 Akim Demaille <akim@epita.fr>
1246 2001-09-25 Akim Demaille <akim@epita.fr>
1248 * src/system.h: Include `xalloc.h'.
1249 Remove it from the C files.
1250 * src/files.c (output_files): Free the obstacks.
1251 * src/lex.c (init_lex): Rename as...
1254 * src/main.c (main): Use it.
1256 2001-09-24 Marc Autret <autret_m@epita.fr>
1258 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1259 to output informations in fout (FILE*).
1260 (open_graph, close_graph): Likewise.
1261 (output_graph, output_edge, output_node): Likewise.
1262 * src/vcg.h: Update function prototypes.
1263 * src/print_graph.c (print_graph): Open output graph file.
1264 (print_actions): Adjust.
1265 * src/files.h: Remove extern declaration.
1266 * src/files.c: Remove graph_obstack declaration.
1267 (open_files): Remove graph_obstack initialization.
1268 (output_files): Remove graph_obstack saving.
1270 2001-09-24 Marc Autret <autret_m@epita.fr>
1272 * src/files.c (compute_output_file_names): Fix.
1274 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1276 * src/reader.c (reader): Remove call to free_symtab ().
1277 * src/main.c (main): Call it here.
1279 * src/conflicts.c (initialize_conflicts): Rename as...
1280 (solve_conflicts): this.
1281 * src/print.c (print_core, print_actions, print_state)
1282 (print_grammar): Dump to a file instead a `output_obstack'.
1283 (print_results): Dump `output_obstack', and then proceed with the
1285 * src/files.c (compute_output_file_names, close_files): New.
1286 (output_files): Adjust.
1287 * src/main.c (main): Adjust.
1289 2001-09-23 Marc Autret <autret_m@epita.fr>
1291 * src/files.c (compute_header_macro): Computes header macro name
1292 from spec_defines_file when given.
1294 2001-09-23 Marc Autret <autret_m@epita.fr>
1296 * src/files.c (output_files): Add default extensions.
1298 2001-09-22 Akim Demaille <akim@epita.fr>
1300 * src/conflicts.c (finalize_conflicts): Rename as...
1301 (free_conflicts): this.
1303 2001-09-22 Akim Demaille <akim@epita.fr>
1305 * src/gram.c (gram_free): Rename back as...
1307 (output_token_translations): Free `token_translations'.
1308 * src/symtab.c (free_symtab): Free the tag field.
1310 2001-09-22 Akim Demaille <akim@epita.fr>
1312 Remove `translations' as it is always set to true.
1314 * src/gram.h: Adjust.
1315 * src/reader.c (packsymbols, parse_token_decl): Adjust
1316 * src/print.c (print_grammar): Adjust.
1317 * src/output.c (output_token_translations): Adjust.
1318 * src/lex.c (lex): Adjust.
1319 * src/gram.c: Be sure the set pointers to NULL.
1320 (dummy): Rename as...
1323 2001-09-22 Akim Demaille <akim@epita.fr>
1325 * configure.in: Invoke AM_LIB_DMALLOC.
1326 * src/system.h: Use dmalloc.
1327 * src/LR0.c: Be sure to have pointers initialized to NULL.
1328 (allocate_itemsets): Allocate kernel_items only if needed.
1330 2001-09-22 Akim Demaille <akim@epita.fr>
1332 * configure.in: Bump to 1.29b.
1333 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1334 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1335 need xmalloc.c in calc.y.
1338 2001-09-21 Akim Demaille <akim@epita.fr>
1341 * Makefile.maint, config/config.guess, config/config.sub,
1342 * config/missing: Update from masters.
1343 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1345 * configure.in (ALL_LINGUAS): Add `tr'.
1347 2001-09-21 Akim Demaille <akim@epita.fr>
1349 * tests/Makefile.am (package.m4): Move to...
1350 ($(srcdir)/$(TESTSUITE)): here.
1352 2001-09-20 Akim Demaille <akim@epita.fr>
1354 * src/complain.c: No longer try to be standalone: use system.h.
1355 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1356 * src/complain.h: Likewise.
1357 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1358 Remove the unused variable `n'.
1359 From Albert Chin-A-Young.
1361 2001-09-18 Marc Autret <autret_m@epita.fr>
1363 * doc/bison.1: Update.
1364 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1366 (Option Cross Key): Update.
1369 2001-09-18 Marc Autret <autret_m@epita.fr>
1371 * tests/regression.at: New test (comment in %union).
1373 2001-09-18 Marc Autret <autret_m@epita.fr>
1375 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1377 Reported by Keith Browne.
1379 2001-09-18 Marc Autret <autret_m@epita.fr>
1381 * tests/output.at: Add tests for --defines and --graph.
1383 2001-09-18 Marc Autret <autret_m@epita.fr>
1385 * tests/output.at: Removes tests of %{header,src}_extension features.
1387 2001-09-18 Akim Demaille <akim@epita.fr>
1389 * tests/Makefile.am (package.m4): New.
1390 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1391 (_AT_CHECK_CALC_ERROR): Likewise.
1392 Factor the `, ' part of verbose error messages.
1394 2001-09-18 Marc Autret <autret_m@epita.fr>
1396 * src/getargs.c (longopts): Declare --defines and --graph as options
1397 with optional arguments.
1398 * src/files.h: Add extern declarations.
1399 * src/files.c (spec_graph_file, spec_defines_file): New.
1400 (output_files): Update.
1401 Remove CPP-outed code.
1403 2001-09-18 Marc Autret <autret_m@epita.fr>
1405 Turn off %{source,header}_extension feature.
1407 * src/files.c (compute_exts_from_gf): Update.
1408 (compute_exts_from_src): Update.
1409 (output_files): CPP-out useless code.
1410 * src/files.h: Remove {header,source}_extension extern declarations.
1411 * src/reader.c (parse_dquoted_param): CPP-out.
1412 (parse_header_extension_decl): Remove.
1413 (parse_source_extension_decl): Remove.
1414 (read_declarations): Remove cases tok_{hdrext,srcext}.
1415 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1416 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1418 2001-09-10 Akim Demaille <akim@epita.fr>
1420 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1421 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1422 (AT_CHECK_OUTPUT): this.
1423 Merely check ls' exit status, its output is useless.
1425 2001-09-10 Akim Demaille <akim@epita.fr>
1427 * tests/calc.at: Use m4_match.
1428 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1430 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1432 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1434 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1436 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1437 * src/lex.h: Adjust prototype.
1438 (token_t): Add `tok_undef'.
1439 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1440 (parse_percent_token): Now returns token_t.
1441 Add default statement in switch.
1442 (lex): Separate `c' as an input variable, from the token_t result
1444 (unlexed): Is a token_t.
1446 2001-09-10 Akim Demaille <akim@epita.fr>
1448 * configure.in: Bump to 1.29a.
1450 2001-09-07 Akim Demaille <akim@epita.fr>
1454 2001-08-30 Akim Demaille <akim@epita.fr>
1456 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1457 * m4/atconfig.m4: Remove.
1458 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1460 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1461 m4_if, m4_patsubst, and m4_regexp.
1462 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1463 `input' file instead of echo.
1465 2001-08-29 Akim Demaille <akim@epita.fr>
1469 2001-08-29 Akim Demaille <akim@epita.fr>
1473 2001-08-29 Paul Eggert <eggert@twinsun.com>
1475 * src/bison.simple (yyparse): Don't take the address of an
1476 item before the start of an array, as that doesn't conform to
1479 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1481 * doc/bison.texinfo (Location Tracking Calc): New node.
1483 2001-08-29 Paul Eggert <eggert@twinsun.com>
1485 * src/output.c (output): Do not define const, as this now
1486 causes more problems than it cures.
1488 2001-08-29 Akim Demaille <akim@epita.fr>
1490 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1492 Be sure to tag the `detailmenu'.
1494 2001-08-29 Akim Demaille <akim@epita.fr>
1496 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1497 download in a tmp dir.
1499 2001-08-28 Marc Autret <autret_m@epita.fr>
1501 * config/depcomp: New file.
1503 2001-08-28 Marc Autret <autret_m@epita.fr>
1505 * doc/bison.1 (mandoc): Adjust.
1506 From Juan Manuel Guerrero.
1508 2001-08-28 Marc Autret <autret_m@epita.fr>
1510 * src/print_graph.c (print_state): Fix.
1512 2001-08-27 Marc Autret <autret_m@epita.fr>
1514 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1516 Echo modifications to the functions prototypes.
1517 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1519 2001-08-27 Marc Autret <autret_m@epita.fr>
1521 * src/vcg.c: Include `xalloc.h'.
1522 (add_colorentry): New.
1523 (add_classname): New.
1524 (add_infoname): New.
1525 * src/vcg.h: Add new prototypes.
1527 2001-08-27 Akim Demaille <akim@epita.fr>
1529 * Makefile.maint: Sync. again with CVS Autoconf.
1531 2001-08-27 Akim Demaille <akim@epita.fr>
1533 * Makefile.maint: Formatting changes.
1534 (po-update, cvs-update, update): New targets.
1537 2001-08-27 Akim Demaille <akim@epita.fr>
1539 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1540 * Makefile.maint: Sync. with CVS Autoconf.
1542 2001-08-27 Marc Autret <autret_m@epita.fr>
1544 * src/vcg.h (struct infoname_s): New.
1545 (struct colorentry_s): New.
1546 (graph_s): New fields {vertical,horizontal}_order in structure.
1547 Add `infoname' field.
1548 Add `colorentry' field;
1549 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1550 (G_HORIZONTAL_ORDER): New.
1552 (G_COLORENTRY): New.
1553 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1554 Add output of `infoname'.
1555 Add output of `colorentry'.
1557 2001-08-27 Marc Autret <autret_m@epita.fr>
1559 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1560 This one shadowed a global parameter.
1562 2001-08-24 Marc Autret <autret_m@epita.fr>
1564 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1565 instead of `unsigned'.
1566 (print_state): Do not call obstack_object_size () in obstack_grow ()
1567 to avoid macro variables shadowing.
1569 2001-08-23 Marc Autret <autret_m@epita.fr>
1571 * src/lex.c (percent_table): Typo: s/naem/name/.
1573 Normalize new options declarations.
1575 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1577 * tests/suite.at: Exercise %header_extension and %source_extension.
1579 2001-08-16 Marc Autret <autret_m@epita.fr>
1581 * src/reader.c (parse_dquoted_param): New.
1582 (parse_header_extension_decl): Use it.
1583 (parse_source_extension_decl): Likewise.
1585 2001-08-16 Marc Autret <autret_m@epita.fr>
1587 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1588 (get_xxxx_str): Use assert () instead of complain ().
1589 Remove return invokations in default cases.
1590 (get_decision_str): Modify default behaviour. Remove second argument.
1591 Echo modifications on calls.
1592 (output_graph): Fix.
1594 2001-08-16 Marc Autret <autret_m@epita.fr>
1596 * src/getargs.c (usage): Update with ``-g, --graph''.
1598 2001-08-16 Marc Autret <autret_m@epita.fr>
1600 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1601 (Option Cross Key): Likewise.
1602 * doc/bison.1: Update.
1604 2001-08-15 Akim Demaille <akim@epita.fr>
1608 2001-08-15 Marc Autret <autret_m@epita.fr>
1610 * src/reader.c (readgram): Indent output macro YYSTYPE.
1611 (packsymbols): Likewise.
1612 (output_token_defines): Likewise.
1613 * src/files.c: Standardize.
1614 (compute_header_macro): New.
1615 (defines_obstack_save): New. Use compute_header_macro.
1616 (output_files): Update. Use defines_obstack_save.
1618 2001-08-15 Akim Demaille <akim@epita.fr>
1620 * doc/bison.texinfo (Table of Symbols): Document
1623 2001-08-15 Akim Demaille <akim@epita.fr>
1625 * missing: Update from CVS Automake.
1626 * config/config.guess, config/config.sub, config/texinfo.tex:
1627 Update from gnu.org.
1629 2001-08-15 Akim Demaille <akim@epita.fr>
1631 * Makefile.maint: Sync with CVS Autoconf.
1633 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1635 * doc/bison.texinfo: Include GNU Free Documentation License from
1637 * doc/fdl.texi: Add to package.
1639 2001-08-14 Marc Autret <autret_m@epita.fr>
1641 Turn on %{source,header}_extension features.
1643 * src/lex.c (percent_table): Un-CPP out header_extension and
1645 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1646 (compute_exts_from_src): Remove conditions. It restores priorities
1649 2001-08-14 Marc Autret <autret_m@epita.fr>
1651 * src/files.c (compute_base_names): Add extensions computing when
1652 `--file-prefix' used.
1653 Standardize function calls.
1655 2001-08-13 Marc Autret <autret_m@epita.fr>
1657 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1658 defining it (defined but null disables alloca).
1660 2001-08-13 Marc Autret <autret_m@epita.fr>
1662 * src/bison.simple (_yy_memcpy): CPP reformat.
1664 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1666 * tests/atconfig.in (CPPFLAGS): Fix.
1668 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1670 * doc/bison.texinfo: Include GNU General Public License from
1672 * doc/gpl.texi: Add to package.
1674 2001-08-10 Marc Autret <autret_m@epita.fr>
1676 * src/print_graph.h: Fix.
1677 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1679 2001-08-10 Akim Demaille <akim@epita.fr>
1681 * src/system.h: Provide default declarations for stpcpy, strndup,
1684 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1686 * doc/bison.texinfo (Locations): Update @$ stuff.
1688 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1690 * src/bison.simple (YYLLOC_DEFAULT): Update.
1693 2001-08-08 Marc Autret <autret_m@epita.fr>
1695 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1696 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1697 Reported by Fabrice Bauzac.
1699 2001-08-08 Marc Autret <autret_m@epita.fr>
1701 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1702 * src/vcg.c (output_node): Fix.
1703 * src/vcg.h: Cleanup.
1704 * src/print_graph.c: Add comments.
1705 (node_output_size): New global variable. Simplify the formatting of
1706 the VCG graph output.
1707 (print_actions): Unused code is now used. It notifies the final state
1708 and no action states in the VCG graph. It also give the reduce actions.
1709 The `shift and goto' edges are red and the `go to state' edges are
1711 Get the current node name and node_obstack by argument.
1712 (node_obstack): New variable.
1713 (print_state): Manage node_obstack.
1714 (print_core): Use node_obstack given by argument.
1715 A node is not only computed here but in print_actions also.
1716 (print_graph): CPP out useless code instead of commenting it.
1718 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1720 * tests/atconfig.in (CPPFLAGS): Fix.
1722 2001-08-07 Akim Demaille <akim@epita.fr>
1724 * src/print_graph.c (quote): New.
1725 (print_core): Use it.
1727 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1729 * src/vcg.c (complain.h): Include it.
1730 Unepitaize `return' invocations.
1731 [NDEBUG] (main): Remove.
1732 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1733 * src/files.c (open_files): Initialize graph_obstack.
1734 * src/print_graph.c (print_actions): CPP out useless code.
1735 (print_core): Don't output the last `\n' in labels.
1737 * src/files.c (output_files): Output the VCG file.
1738 * src/main.c (main): Invoke print_graph ();
1740 2001-08-06 Marc Autret <autret_m@epita.fr>
1742 Automaton VCG graph output.
1743 Using option ``-g'' or long option ``--graph'', you can generate
1744 a gram_filename.vcg file containing a VCG description of the LALR (1)
1745 automaton of your grammar.
1747 * src/main.c: Call to print_graph() function.
1748 * src/getargs.h: Update.
1749 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1750 (graph_flag): New flag.
1752 (getargs): Add case `g'.
1753 * src/files.c (graph_obstack): New obstack struct.
1754 (open_files): Initialize new obstack.
1755 (output_files): Saves graph_obstack if required.
1756 * src/files.h (graph_obstack): New extern declaration.
1757 * src/Makefile.am: Add new source files.
1759 2001-08-06 Marc Autret <autret_m@epita.fr>
1761 * src/print_graph.c, src/print_graph.h (graph): New.
1762 * src/vcg.h: New file.
1763 * src/vcg.c: New file, VCG graph handling.
1765 2001-08-06 Marc Autret <autret_m@epita.fr>
1767 Add of %source_extension and %header_extension which specify
1768 the source or/and the header output file extension.
1770 * src/files.c (compute_base_names): Remove initialisation of
1771 src_extension and header_extension.
1772 (compute_exts_from_gf): Update.
1773 (compute_exts_from_src): Update.
1774 (output_files): Update.
1775 * src/reader.c (parse_header_extension_decl): New.
1776 (parse_source_extension_decl): New.
1777 (read_declarations): New case statements for the new tokens.
1778 * src/lex.c (percent_table): Add entries for %source_extension
1779 and %header_extension.
1780 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1782 2001-08-06 Marc Autret <autret_m@epita.fr>
1784 * configure.in: Bump to 1.28c.
1785 * doc/bison.texinfo: Texinfo thingies.
1787 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1789 * tests/atconfig.in (CPPFLAGS): Add.
1790 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1792 2001-08-03 Akim Demaille <akim@epita.fr>
1796 2001-08-03 Akim Demaille <akim@epita.fr>
1798 * tests/Makefile.am (check-local): Ship testsuite.
1799 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1802 2001-08-03 Akim Demaille <akim@epita.fr>
1804 * configure.in: Try using -Wformat when compiling.
1806 2001-08-03 Akim Demaille <akim@epita.fr>
1808 * configure.in: Bump to 1.28b.
1810 2001-08-03 Akim Demaille <akim@epita.fr>
1812 * src/complain.c: Adjust strerror_r portability issues.
1814 2001-08-03 Akim Demaille <akim@epita.fr>
1818 2001-08-03 Akim Demaille <akim@epita.fr>
1820 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1821 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1822 * src/getargs.c: Include complain.h.
1823 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1824 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1826 2001-08-03 Akim Demaille <akim@epita.fr>
1828 * src/reader.c (readgram): Display hidden chars in error messages.
1830 2001-08-03 Akim Demaille <akim@epita.fr>
1832 Update to gettext 0.10.39.
1834 2001-08-03 Akim Demaille <akim@epita.fr>
1836 * lib/strspn.c: New.
1838 2001-08-01 Marc Autret <autret_m@epita.fr>
1840 * doc/bison.texinfo: Update.
1841 * doc/bison.1 (mandoc): Update.
1842 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1843 * src/files.c: Support output files extensions computing.
1844 (src_extension): New static variable.
1845 (header_extension): New static variable.
1847 (get_extension_index): New function, gets the index of an extension
1848 filename in a string.
1849 (compute_exts_from_gf): New function, computes extensions from the
1850 grammar file extension.
1851 (compute_exts_from_src): New functions, computes extensions from the
1852 C source file extension, file given by ``-o'' option.
1853 (compute_base_names): Update.
1854 (output_files): Update.
1856 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1858 * doc/bison.texi: Document @$.
1859 (Locations): New section.
1861 2001-07-18 Akim Demaille <akim@epita.fr>
1863 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1864 * config/prev-version.txt, config/move-if-change: New.
1865 * Makefile.am: Adjust.
1867 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1869 * src/bison.simple (yyparse): Suppress warning `comparaison
1870 between signed and unsigned'.
1872 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1874 * src/getargs.h (raw_flag): Remove.
1875 * src/getargs.c: Die on `-r'/`--raw'.
1876 * src/lex.c (parse_percent_token): Die on `%raw'.
1877 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1878 * tests/calc.at: Suppress test with option `--raw'.
1880 2001-07-14 Akim Demaille <akim@epita.fr>
1883 * configure.in: Require Autoconf 2.50.
1884 Update to gettext 0.10.38.
1886 2001-03-16 Akim Demaille <akim@epita.fr>
1888 * doc/bison.texinfo: ANSIfy the examples.
1890 2001-03-16 Akim Demaille <akim@epita.fr>
1892 * getargs.c (skeleton): New variable.
1893 (longopts): --skeleton is a new option.
1894 (shortopts, getargs): -S is a new option.
1895 * getargs.h: Declare skeleton.
1896 * output.c (output_parser): Use it.
1898 2001-03-16 Akim Demaille <akim@epita.fr>
1900 * m4/strerror_r.m4: New.
1901 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1902 * lib/error.h, lib/error.c: Update.
1904 2001-03-16 Akim Demaille <akim@epita.fr>
1906 * src/getargs.c (longopts): Clean up.
1908 2001-02-21 Akim Demaille <akim@epita.fr>
1910 * src/reader.c (gensym): `gensym_count' is your own.
1911 Use a static buf to create the symbol name, as token_buffer is no
1914 2001-02-08 Akim Demaille <akim@epita.fr>
1916 * src/conflicts.c (conflict_report): Be sure not to append to res
1917 between two calls, which could happen if both first sprintf were
1918 skipped, but not the first cp += strlen.
1920 2001-02-08 Akim Demaille <akim@epita.fr>
1922 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1923 New, from fileutils 4.0.37.
1924 * configure.in: Require Autoconf 2.49c. I took some time before
1925 making this decision. This is the only way out for portability
1926 issues in Bison, it would mean way too much duplicate effort to
1927 import in Bison features implemented in 2.49c since 2.13.
1928 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1930 2001-02-02 Akim Demaille <akim@epita.fr>
1932 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1933 * lib/xalloc.h, lib/xmalloc.c: Update.
1935 2001-01-19 Akim Demaille <akim@epita.fr>
1937 Get rid of the ad hoc handling of token_buffer in the scanner: use
1940 * src/lex.c (token_obstack): New.
1941 (init_lex): Initialize it. No longer call...
1942 (grow_token_buffer): this. Remove it.
1943 Adjust all the places which used it to use the obstack.
1945 2001-01-19 Akim Demaille <akim@epita.fr>
1947 * src/lex.h: Rename all the tokens:
1948 s/\bENDFILE\b/tok_eof/g;
1949 s/\bIDENTIFIER\b/tok_identifier/g;
1951 Let them be enums, not #define, to ease debugging.
1952 Adjust all the code.
1954 2001-01-18 Akim Demaille <akim@epita.fr>
1956 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1957 * src/lex.c (maxtoken, grow_token_buffer): Static.
1959 2001-01-18 Akim Demaille <akim@epita.fr>
1961 Since we now use obstacks, more % directives can be enabled.
1963 * src/lex.c (percent_table): Also accept `%yacc',
1964 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1966 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1967 instead of returning a token.
1968 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1969 * src/reader.c (read_declarations): Adjust.
1970 * src/files.c (open_files): Don't call `compute_base_names', don't
1971 compute `attrsfile' since they depend upon data which might be
1972 *in* the input file now.
1973 (output_files): Do it here.
1974 * src/output.c (output_headers): Document the fact that this patch
1975 introduces a guaranteed SEGV for semantic parsers.
1976 * doc/bison.texinfo: Document them.
1977 * tests/suite.at: Exercise these %options.
1979 2000-12-20 Akim Demaille <akim@epita.fr>
1981 Also handle the output file (--verbose) with obstacks.
1983 * files.c (foutput): Remove.
1984 (output_obstack): New.
1985 Adjust all dependencies.
1986 * src/conflicts.c: Return a string.
1987 * src/system.h (obstack_grow_string): Rename as...
1988 (obstack_sgrow): this. Be ready to work with non literals.
1989 (obstack_fgrow4): New.
1991 2000-12-20 Akim Demaille <akim@epita.fr>
1993 * src/files.c (open_files): Fix the computation of short_base_name
1994 in the case of `-o foo.tab.c'.
1996 2000-12-20 Akim Demaille <akim@epita.fr>
1998 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1999 (copy_dollar): Now that everything uses obstacks, get rid of the
2002 2000-12-20 Akim Demaille <akim@epita.fr>
2004 * src/files.c (open_files): Actually the `.output' file is based
2005 on the short_base_name, not base_name.
2006 * tests/suite.at (Checking output file names): Adjust.
2008 2000-12-20 Akim Demaille <akim@epita.fr>
2010 * src/bison.s1: Remove, we now use directly...
2011 * src/bison.simple: this.
2012 * src/Makefile.am: Use pkgdata instead of data.
2014 2000-12-20 Akim Demaille <akim@epita.fr>
2016 * src/files.c (guard_obstack): New.
2017 (open_files): Initialize it.
2018 (output_files): Dump it...
2019 * src/files.h: Export it.
2020 * src/reader.c (copy_guard): Use it.
2022 2000-12-19 Akim Demaille <akim@epita.fr>
2024 * src/files.c (outfile, defsfile, actfile): Removed as global
2026 (open_files): Don't compute them.
2027 (output_files): Adjust.
2028 (base_name, short_base_name): Be global.
2029 Adjust dependencies.
2031 2000-12-19 Akim Demaille <akim@epita.fr>
2033 * src/files.c (strsuffix): New.
2034 (stringappend): Be just like strcat but allocate.
2035 (base_names): Eve out from open_files.
2036 Try to simplify the rather hairy computation of base_name and
2038 (open_files): Use it.
2039 * tests/suite.at (Checking output file names): New test.
2041 2000-12-19 Akim Demaille <akim@epita.fr>
2043 * src/system.h (obstack_grow_literal_string): Rename as...
2044 (obstack_grow_string): this.
2045 * src/output.c (output_parser): Recognize `%% actions' instead of
2047 * src/bison.s1: s/$/%% actions/.
2048 * src/bison.hairy: Likewise.
2050 2000-12-19 Akim Demaille <akim@epita.fr>
2052 * src/output.c (output_parser): Compute the `#line' lines when
2054 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2055 Suggested by Hans Aberg.
2057 2000-12-19 Akim Demaille <akim@epita.fr>
2059 Let the handling of the skeleton files be local to the procedures
2062 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2064 (fparser, open_extra_files): Remove.
2065 (open_files, output_files): Don't take care of fparser.
2066 * src/files.h: Adjust.
2067 * src/output.c (output_parser): Open and close the file to the
2069 * src/reader.c (read_declarations): When %semantic_parser, open
2072 2000-12-19 Akim Demaille <akim@epita.fr>
2074 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2075 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2077 2000-12-19 Akim Demaille <akim@epita.fr>
2079 * src/files.c (open_files): Yipee! We no longer need all the code
2080 looking for `/tmp' since we have no tmp file.
2082 2000-12-19 Akim Demaille <akim@epita.fr>
2084 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2086 * src/files.c (open_files): Less dependency on MSDOS etc.
2088 2000-12-14 Akim Demaille <akim@epita.fr>
2090 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2091 Provide a default definition.
2092 Use it when executing the default @ action.
2093 * src/reader.c (reader_output_yylsp): No longer include
2094 `timestamp' and `text' in the default YYLTYPE.
2096 2000-12-12 Akim Demaille <akim@epita.fr>
2098 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2099 (copy_guard): Quote the file names.
2100 Reported by Laurent Mascherpa.
2102 2000-12-12 Akim Demaille <akim@epita.fr>
2104 * src/output.c (output_headers, output_program, output): Be sure
2105 to escape special characters when outputting filenames.
2106 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2107 (output_headers): Don't depend on them, Use ACTSTR.
2109 2000-11-17 Akim Demaille <akim@epita.fr>
2111 * lib/obstack.h: Formatting changes.
2112 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2113 prevents type checking.
2114 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2115 cast the value to (void *): assigning a `foo *' to a `void *'
2117 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2118 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2121 2000-11-17 Akim Demaille <akim@epita.fr>
2123 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2125 (suite.m4, regression.m4, calc.m4): these.
2126 * tests/atgeneral.m4: Update from CVS Autoconf.
2128 2000-11-17 Akim Demaille <akim@epita.fr>
2130 * tests/regression.m4 (%union and --defines): New test,
2131 demonstrating a current bug in the obstack implementation.
2133 2000-11-17 Akim Demaille <akim@epita.fr>
2135 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2137 Use them to declare the variables which are global or local to
2140 2000-11-17 Akim Demaille <akim@epita.fr>
2142 * acconfig.h: Remove, no longer used.
2144 2000-11-07 Akim Demaille <akim@epita.fr>
2146 * src: s/Copyright (C)/Copyright/g.
2148 2000-11-07 Akim Demaille <akim@epita.fr>
2150 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2152 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2154 2000-11-07 Akim Demaille <akim@epita.fr>
2156 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2157 Merge in a single CPP if/else.
2159 2000-11-07 Akim Demaille <akim@epita.fr>
2161 * src/output.c (output): Remove useless variables.
2162 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2163 argument `data' for consistency with the prototypes.
2165 (obstack_copy, obstack_copy0): Rename the second argument as
2166 `address' for consistency. Qualify it `const'.
2167 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2168 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2169 `const' their input argument (`data' or `address').
2170 Adjust the corresponding macros to include `const' in casts.
2172 2000-11-03 Akim Demaille <akim@epita.fr>
2174 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2175 s/PFILE1/BISON_HAIRY/.
2176 Adjust dependencies.
2178 2000-11-03 Akim Demaille <akim@epita.fr>
2180 For some reason, this was not applied.
2182 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2183 `unlink': it's no longer used.
2185 2000-11-03 Akim Demaille <akim@epita.fr>
2187 * src/files.c (skeleton_find): New function, eved out of...
2188 (open_files, open_extra_files): here.
2190 2000-11-03 Akim Demaille <akim@epita.fr>
2194 * src/files.c (obstack_save): New function.
2195 (done): Rename as...
2196 (output_files): this.
2198 * src/main.c (main): Don't use `atexit' to register `done', since
2199 it no longer has to remove tmp files, just call `output_files'
2200 when there are no errors.
2202 2000-11-02 Akim Demaille <akim@epita.fr>
2204 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2205 `unlink': it's no longer used.
2206 * src/files.h: Formatting changes.
2208 2000-11-02 Akim Demaille <akim@epita.fr>
2210 Remove the last uses of mktemp and unlink/delete.
2212 * src/files.c (fdefines, ftable): Removed.
2213 (defines_ostack, table_obstack): New.
2214 Adjust dependencies of the former into uses of the latter.
2215 * src/output.c (output_short_or_char_table, output_short_table):
2216 Convert to using obstacks.
2217 * src/reader.c (copy_comment2): Accept one FILE * and two
2219 (output_token_defines, reader_output_yylsp): Use obstacks.
2220 * src/system.h (obstack_fgrow3): New.
2222 2000-11-01 Akim Demaille <akim@epita.fr>
2224 Change each use of `fattrs' into a use of `attrs_obstack'.
2226 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2227 * src/files.c (fattrs): Remove.
2228 (attrs_obstack): New.
2229 Adjust all dependencies.
2230 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2232 2000-11-01 Akim Demaille <akim@epita.fr>
2235 Change each use of `faction' into a use of `action_obstack'.
2237 * lib/obstack.h, lib/obstack.c: New files.
2238 * src/files.c (faction): Remove.
2239 (action_obstack): New.
2240 Adjust all dependencies.
2242 2000-10-20 Akim Demaille <akim@epita.fr>
2244 * lib/quote.h (PARAMS): New macro. Use it.
2246 2000-10-16 Akim Demaille <akim@epita.fr>
2248 * src/output.c (output_short_or_char_table): New function.
2249 (output_short_table, output_token_translations): Use it.
2250 (goto_actions): Use output_short_table.
2252 2000-10-16 Akim Demaille <akim@epita.fr>
2254 * src/symtab.c (bucket_new): New function.
2257 * src/output.c (output_short_table): New argument to display the
2258 comment associated with the table.
2259 Adjust dependencies.
2260 (output_gram): Use it.
2261 (output_rule_data): Nicer output layout for YYTNAME.
2263 2000-10-16 Akim Demaille <akim@epita.fr>
2265 * src/lex.c (read_typename): New function.
2267 * src/reader.c (copy_dollar): Likewise.
2269 2000-10-16 Akim Demaille <akim@epita.fr>
2271 * src/reader.c (copy_comment2): Expect the input stream to be on
2272 the `/' which is suspected to open a comment, instead of being
2273 called after `//' or `/*' was read.
2274 (copy_comment, copy_definition, parse_union_decl, copy_action)
2275 (copy_guard): Adjust.
2277 2000-10-16 Akim Demaille <akim@epita.fr>
2279 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2280 `read_signed_integer'.
2282 2000-10-16 Akim Demaille <akim@epita.fr>
2284 * src/reader.c (copy_dollar): New function.
2285 (copy_guard, copy_action): Use it.
2287 2000-10-16 Akim Demaille <akim@epita.fr>
2289 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2290 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2291 New files, from Fileutils 4.0.27.
2292 * src/main.c (printable_version): Remove.
2293 * src/lex.c, src/reader.c: Use `quote'.
2295 2000-10-04 Akim Demaille <akim@epita.fr>
2297 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2299 2000-10-04 Akim Demaille <akim@epita.fr>
2301 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2303 2000-10-04 Akim Demaille <akim@epita.fr>
2305 When a literal string is used to define two different tokens,
2306 `bison -v' segfaults.
2307 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2309 * tests/regression.m4: New file.
2310 Include the core of the sample provided by Piotr Gackiewicz.
2311 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2314 2000-10-04 Akim Demaille <akim@epita.fr>
2316 * src/reader.c (parse_expect_decl): Keep `count' within the size
2320 2000-10-02 Paul Eggert <eggert@twinsun.com>
2322 * bison.s1 (yyparse): Assign the default value
2323 unconditionally, to avoid a GCC warning and make the parser a
2326 2000-10-02 Akim Demaille <akim@epita.fr>
2328 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2331 2000-10-02 Akim Demaille <akim@epita.fr>
2333 * src/derives.c, src/print.c, src/reduce.c: To ease the
2334 translation, move some `\n' out of the translated strings.
2336 2000-10-02 Akim Demaille <akim@epita.fr>
2338 The location tracking mechanism is precious for parse error
2339 messages. Nevertheless, it is enabled only when `@n' is used in
2340 the grammar, which is a different issue (you can use it in error
2341 message, but not in the grammar per se). Therefore, there should
2342 be another means to enable it.
2344 * src/getargs.c (getargs): Support `--locations'.
2346 * src/getargs.h (locationsflag): Export it.
2347 * src/lex.c (percent_table): Support `%locations'.
2348 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2349 with `locationsflag'.
2350 * doc/bison.texinfo: Document `--locations' and `%locations'.
2352 * tests/calc.m4: Test it.
2354 For regularity of the names, replace each
2355 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2356 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2357 In addition replace each `flag' with `_flag'.
2359 2000-10-02 Akim Demaille <akim@epita.fr>
2361 Also test parse error messages, including with YYERROR_VERBOSE.
2363 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2365 Use it to check the computations.
2366 Use it to check `nonassoc' is honored.
2367 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2368 `--yyerror-verbose'.
2369 (_AT_CHECK_CALC): Adjust to this option.
2370 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2372 2000-10-02 Akim Demaille <akim@epita.fr>
2374 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2375 the latter demonstrates a flaw in the handling of non debugging
2376 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2377 was used in order to simplify:
2393 unfortunately this leads to a CPP conflict when
2394 `--name-prefix=foo' is used since it produces `#define yydebug
2397 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2398 (YYDPRINTF): New macro.
2400 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2402 Also test `--verbose', `--defines' and `--name-prefix'.
2404 2000-10-02 Akim Demaille <akim@epita.fr>
2406 Improve the readability of the produced parsers.
2408 * src/bison.s1: Formatting changes.
2409 Improve the comment related to the `$' mark.
2410 (yydefault): Don't fall through to `yyresume': `goto' there.
2411 * src/output.c (output_parser): When the `$' is met, skip the end
2413 New variable, `number_of_dollar_signs', to check there's exactly
2414 one `$' in the parser skeleton.
2416 2000-10-02 Akim Demaille <akim@epita.fr>
2418 * lib/xstrdup.c: New file, from the fileutils.
2419 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2420 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2421 instead of strlen + xmalloc + strcpy.
2422 * src/symtab.c (copys): Remove, use xstrdup instead.
2424 2000-10-02 Akim Demaille <akim@epita.fr>
2426 * src/gram.h (associativity): New enum type which replaces the
2427 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2428 `right_assoc', `left_assoc' and `non_assoc'.
2429 Adjust all dependencies.
2430 * src/reader.c: Formatting changes.
2431 (LTYPESTR): Don't define it, use it as a literal in
2432 `reader_output_yylsp'.
2433 * src/symtab.h (symbol_class): New enum type which replaces the
2434 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2435 `sunknown', `stoken and `snterm'.
2437 2000-10-02 Akim Demaille <akim@epita.fr>
2439 * src/getargs.c (fixed_outfiles): Rename as...
2440 (yaccflag): for consistency and accuracy.
2441 Adjust dependencies.
2443 2000-10-02 Akim Demaille <akim@epita.fr>
2445 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2446 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2447 difficult and introduced a lot of core dump. It turns out that
2448 Bison used an implementation of `xmalloc' based on `calloc', and
2449 at various places it does depend upon the initialization to 0. I
2450 have not tried to isolate the pertinent places, and all the former
2451 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2452 someone should address this issue.
2454 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2455 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2457 Adjust dependencies.
2458 * src/warshall.h: New file.
2461 2000-10-02 Akim Demaille <akim@epita.fr>
2463 Various anti-`extern in *.c' changes.
2465 * src/system.h: Include `assert.h'.
2467 2000-10-02 Akim Demaille <akim@epita.fr>
2469 * src/state.h (nstates, final_state, first_state, first_shift)
2470 (first_reduction): Move their exportation from here...
2471 * src/LR0.h: to here.
2472 Adjust dependencies.
2473 * src/getargs.c (statisticsflag): New variable.
2474 Add support for `--statistics'.
2475 Adjust dependencies.
2477 Remove a lot of now useless `extern' statements in most files.
2479 2000-10-02 Akim Demaille <akim@epita.fr>
2481 * src/LR0.h: New file.
2484 2000-10-02 Akim Demaille <akim@epita.fr>
2486 * src/print.h: New file.
2488 * src/print.c: Formatting and ordering changes.
2489 (verbose, terse): Replace with...
2490 (print_results): this new function.
2491 Adjust dependencies.
2493 2000-10-02 Akim Demaille <akim@epita.fr>
2495 * src/conflicts.c (conflict_report): New function.
2496 (conflict_log, verbose_conflict_log): Replace with...
2497 (print_conflicts): this function.
2498 Adjust dependencies.
2499 * src/conflicts.h: New file.
2500 Propagate its inclusion.
2502 2000-10-02 Akim Demaille <akim@epita.fr>
2504 * src/nullable.h: New file.
2505 Propagate its inclusion.
2506 * src/nullable.c: Formatting changes.
2508 2000-10-02 Akim Demaille <akim@epita.fr>
2510 * src/reduce.h: New file.
2511 Propagate its inclusion.
2512 * src/reduce.c: Topological sort and other formatting changes.
2513 (bool, TRUE, FALSE): Move their definition to...
2514 * src/system.h: here.
2516 2000-10-02 Akim Demaille <akim@epita.fr>
2518 * src/files.c: Formatting changes.
2519 (tryopen, tryclose, openfiles): Rename as...
2520 (xfopen, xfclose, open_files): this.
2521 (stringappend): static.
2522 * src/files.h: Complete the list of exported symbols.
2525 2000-10-02 Akim Demaille <akim@epita.fr>
2527 * src/reader.h: New file.
2528 Propagate its use instead of tedious list of `extern' and
2530 * src/reader.c: Formatting changes, topological sort,
2533 2000-10-02 Akim Demaille <akim@epita.fr>
2535 * src/lex.h: Prototype `lex.c' exported functions.
2536 * src/reader.c: Adjust.
2537 * src/lex.c: Formatting changes.
2538 (safegetc): Rename as...
2541 2000-10-02 Akim Demaille <akim@epita.fr>
2543 * src/lalr.h: New file.
2544 Propagate its inclusion instead of prototypes and `extern'.
2545 * src/lalr.c: Formatting changes, topological sorting etc.
2547 2000-10-02 Akim Demaille <akim@epita.fr>
2549 * src/output.c (token_actions): Introduce a temporary array,
2550 YYDEFACT, that makes it possible for this function to use
2553 2000-10-02 Akim Demaille <akim@epita.fr>
2555 `user_toknums' is output as a `short[]' in `output.c', while it is
2556 defined as a `int[]' in `reader.c'. For consistency with the
2557 other output tables, `user_toknums' is now defined as a table of
2560 * src/reader.c (user_toknums): Be a short table instead of an int
2562 Adjust dependencies.
2564 Factor the short table outputs.
2566 * src/output.c (output_short_table): New function.
2567 * src/output.c (output_gram, output_stos, output_rule_data)
2568 (output_base, output_table, output_check): Use it.
2570 2000-10-02 Akim Demaille <akim@epita.fr>
2572 * src/output.c (output): Topological sort of the functions, in
2573 order to get rid of the `static' prototypes.
2574 No longer use `register'.
2575 * src/output.h: New file.
2576 Propagate its inclusion in files explicitly prototyping functions
2579 2000-09-21 Akim Demaille <akim@epita.fr>
2581 * src/atgeneral.m4: Update from Autoconf.
2583 2000-09-21 Akim Demaille <akim@epita.fr>
2585 * src/closure.h: New file.
2586 * src/closure.c: Formatting changes, topological sort over the
2587 functions, use of closure.h.
2588 (initialize_closure, finalize_closure): Rename as...
2589 (new_closure, free_closure): these. Adjust dependencies.
2590 * src/LR0.c: Formatting changes, topological sort, use of
2592 (initialize_states): Rename as...
2594 * src/Makefile.am (noinst_HEADERS): Adjust.
2596 2000-09-20 Akim Demaille <akim@epita.fr>
2598 * src/acconfig.h: Don't protect config.h against multiple
2600 Don't define PARAMS.
2601 * src/system.h: Define PARAMS.
2602 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2603 purpose of config.h. system.h must not try to fix wrong
2604 definitions in config.h.
2606 2000-09-20 Akim Demaille <akim@epita.fr>
2608 * src/derives.h: New file.
2609 * src/main.c, src/derives.h: Use it.
2611 * src/Makefile.am (noinst_HEADERS): Adjust.
2613 2000-09-20 Akim Demaille <akim@epita.fr>
2615 * tests/atgeneral.m4: Update from Autoconf.
2616 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2617 (AT_CHECK_CALC): New macros.
2618 Use these macros to test bison with options `', `--raw',
2619 `--debug', `--yacc', `--yacc --debug'.
2621 2000-09-19 Akim Demaille <akim@epita.fr>
2623 * src/output.c: Formatting changes.
2624 * src/machine.h: Remove, leaving its contents in...
2625 * src/system.h: here.
2627 Adjust all dependencies on stdio.h and machine.h.
2628 * src/getargs.h: New file.
2629 Let all `extern' declarations about getargs.c be replaced with
2630 inclusion of `getargs.h'.
2631 * src/Makefile.am (noinst_HEADERS): Adjust.
2633 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2635 (yyerror): Returns void, not int.
2636 * doc/bison.texinfo: Formatting changes.
2638 2000-09-19 Akim Demaille <akim@epita.fr>
2640 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2643 2000-09-18 Akim Demaille <akim@epita.fr>
2645 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2646 * src/Makefile.am (INCLUDES): Don't.
2647 Be ready to fetch headers in lib/.
2649 2000-09-18 Akim Demaille <akim@epita.fr>
2651 * doc/bison.texinfo: Update the copyright.
2652 ANSIfy and GNUify the examples.
2653 Remove the old menu.
2655 2000-09-18 Akim Demaille <akim@epita.fr>
2657 First set of tests: use the `calc' example from the documentation.
2659 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2660 is defined only when YYDEBUG is.
2661 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2662 * src/files.c (tryopen, tryclose): Formatting changes.
2663 Move to the top and be static.
2664 * src/reader.c (read_signed_integer): Likewise.
2665 * tests/calc.m4: New file.
2666 * Makefile.am, suite.m4: Adjust.
2667 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2669 2000-09-18 Akim Demaille <akim@epita.fr>
2671 Add support for an Autotest test suite for Bison.
2673 * m4/m4.m4, m4/atconfig.m4: New files.
2674 * m4/Makefile.am (EXTRA_DIST): Adjust.
2675 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2677 * src/getargs.c: Display a more standard --version message.
2678 * src/reader.c (reader): Formatting changes.
2679 No longer depend upon VERSION_STRING.
2680 * configure.in: No longer use `dnl'.
2681 Set up the test suite and the new directory `tests/.
2682 (VERSION_STRING): Remove.
2684 2000-04-14 Akim Demaille <akim@epita.fr>
2686 * src/reader.c (copy_comment2): New function, same as former
2687 `copy_comment', but outputs into two FILE *.
2688 (copy_comment): Use it.
2689 (parse_union_decl): Use it.
2690 (get_type, parse_start_decl): Use the same `invalid' message.
2691 (parse_start_decl, parse_union_decl): Use the same `multiple'
2693 (parse_union_decl, copy_guard, copy_action): Use the same
2694 `unmatched' message.
2695 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2697 2000-03-31 Akim Demaille <akim@epita.fr>
2699 * src/files.c (tryopen, tryclose): Move to the top.
2702 2000-03-31 Akim Demaille <akim@epita.fr>
2704 * src/main.c (main): Don't call `done', exit does it.
2706 2000-03-31 Akim Demaille <akim@epita.fr>
2708 * allocate.c: s/return (foo)/return foo/.
2711 * output.c: Likewise.
2712 * reader.c: Likewise.
2713 * symtab.c: Likewise.
2714 * vmsgetargs.c: Likewise.
2716 2000-03-31 Akim Demaille <akim@epita.fr>
2718 Clean up the error reporting functions.
2720 * src/report.c: New file.
2721 * src/report.h: Likewise.
2722 * src/Makefile.am: Adjust.
2723 * m4/error.m4: New file.
2724 * m4/Makefile.am: Adjust.
2725 * configure.in (jm_PREREQ_ERROR): Call it.
2726 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2728 (fatal, fatals): Remove. All callers use complain.c::fatal.
2729 (warn, warni, warns, warnss, warnss): Remove. All callers use
2730 complain.c::complain.
2731 (toomany): Remove, use fatal instead.
2732 * src/files.c (done): No argument, use complain_message_count.
2733 * src/main.c (main): Register `done' to `atexit'.
2735 * src/getargs.c (usage): More `fputs', less `fprintf'.
2737 2000-03-28 Akim Demaille <akim@epita.fr>
2739 * lib/: New directory.
2740 * Makefile.am (SUBDIRS): Adjust.
2741 * configure.in: Adjust.
2742 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2744 * src/alloca.c: Moved to lib/.
2745 * src/getopt.c: Likewise.
2746 * src/getopt1.c: Likewise.
2747 * src/getopt.h: Likewise.
2748 * src/ansi2knr.c: Likewise.
2749 * src/ansi2knr.1: Likewise.
2750 * src/Makefile.am: Adjust.
2751 * lib/Makefile.am: New file.
2753 2000-03-28 Akim Demaille <akim@epita.fr>
2755 * src/getargs.c (usage): Refresh the help message.
2757 2000-03-17 Akim Demaille <akim@epita.fr>
2759 * src/getopt1.c: Updated from textutils 2.0e
2760 * src/getopt.c: Likewise.
2761 * src/getopt.h: Likewise.
2763 2000-03-17 Akim Demaille <akim@epita.fr>
2765 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2766 the file name, not the whole `#line LINE FILE'.
2768 2000-03-17 Akim Demaille <akim@epita.fr>
2770 On syntax errors, report the token on which we choked.
2772 * src/bison.s1 (yyparse): In the label yyerrlab, when
2773 YYERROR_VERBOSE, add yychar in msg.
2775 2000-03-17 Akim Demaille <akim@epita.fr>
2777 * src/reader.c (copy_at): New function.
2778 (copy_guard): Use it.
2779 (copy_action): Use it.
2781 2000-03-17 Akim Demaille <akim@epita.fr>
2783 Be kind to translators, save some useless translations.
2785 * src/main.c (banner): New function.
2786 (fatal_banner): Use it.
2787 (warn_banner): Use it.
2789 2000-03-17 Akim Demaille <akim@epita.fr>
2791 * src/reader.c (copy_definition): Use copy_string and
2792 copy_comment. Removed now unused `match', `ended',
2794 (copy_comment, copy_string): Moved, to be visible from
2797 2000-03-17 Akim Demaille <akim@epita.fr>
2799 * src/reader.c (copy_string): Declare `static inline'. No
2800 problems with inline, since it is checked by configure.
2801 (copy_comment): Likewise.
2803 2000-03-17 Akim Demaille <akim@epita.fr>
2805 * src/reader.c (packsymbols): Formatting changes.
2807 2000-03-17 Akim Demaille <akim@epita.fr>
2809 * src/reader.c (copy_comment): New function, factored out from:
2810 (copy_action): Use it. Removed now unused `match', `ended',
2812 (copy_guard): Likewise.
2814 2000-03-17 Akim Demaille <akim@epita.fr>
2816 * src/reader.c (copy_string): New function, factored out from:
2817 (copy_action): Use it.
2818 (copy_guard): Likewise.
2820 2000-03-17 Akim Demaille <akim@epita.fr>
2822 Change the handling of @s so that they behave exactly like $s.
2823 There is now a pseudo variable @$ (readble and writable), location
2824 of the lhs of the rule (by default ranging from the location of
2825 the first symbol of the rhs, to the location of the last symbol,
2826 or, if the rhs is empty, YYLLOC).
2828 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2830 (yyparse): When providing a default semantic action, provide a
2831 default location action.
2832 (after the $): No longer change `*YYLSP', just stack YYLOC the
2833 same way you stack YYVAL.
2834 * src/reader.c (read_declarations): Use warns.
2835 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2836 (copy_action, case '@'): Likewise.
2837 Use a standard error message, to save useless work from
2840 2000-03-17 Akim Demaille <akim@epita.fr>
2842 * src/bison.s1: Formatting and cosmetics changes.
2843 * src/reader.c: Likewise.
2844 Update the Copyright notice.
2846 2000-03-17 Akim Demaille <akim@epita.fr>
2848 * src/bison.s1 (#line): All set to `#line' only, since the
2849 Makefile now handles them.
2851 2000-03-16 Akim Demaille <akim@epita.fr>
2853 * src/output.c (output_rule_data): Output the documentation of
2855 (Copyright notice): Update.
2858 2000-03-16 Akim Demaille <akim@epita.fr>
2860 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2861 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2862 One `#if YYDEBUG' remains, since it uses variables which are
2863 defined only if `YYDEBUG != 0'.
2865 2000-03-16 Akim Demaille <akim@epita.fr>
2867 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2868 and related variables so that the similarities are highlighted.
2870 2000-03-16 Akim Demaille <akim@epita.fr>
2872 * src/bison.s1: Properly indent CPP directives.
2874 2000-03-16 Akim Demaille <akim@epita.fr>
2876 * src/bison.s1: Properly indent the `alloca' CPP section.
2878 2000-03-16 Akim Demaille <akim@epita.fr>
2880 Do not hard code values of directories in `configure.in'.
2881 Update the `configure' tool chain.
2883 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2885 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2886 (AC_OUTPUT): Add m4/Makefile.
2887 Bump to bison 1.28a, 1.29 has never been released.
2888 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2889 handled via src/Makefile.am.
2890 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2891 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2893 * Makefile.am (SUBDIRS): Add m4.
2894 (ACLOCAL_AM_FLAGS): New variable.
2895 (AUTOMAKE_OPTIONS): Add check-news.
2896 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2897 the proper line number and file name.
2898 (DEFS): Propagate the location of bison library files and of the
2900 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2902 * acinclude.m4: Remove, replaced by the directory m4.
2903 * m4/Makefile.am (EXTRA_DIST): New variable.
2904 * m4/gettext.m4: New file, from the fileutils.
2905 * m4/lcmessage.m4: Likewise
2906 * m4/progtest.m4: Likewise.
2907 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2909 2000-03-10 Akim Demaille <akim@epita.fr>
2912 Formatting changes of various comments.
2913 Respect the GNU coding standards at various places.
2914 Don't use `_()' when no translation is needed.
2916 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2919 OS/2 honors TMPDIR environment variable.
2921 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2923 * doc/bison.texinfo: Tweaked spelling and grammar.
2925 Removed reference to price of printed copy.
2926 Mention BISON_SIMPLE and BISON_HAIRY.
2928 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2930 * configure.in, NEWS:
2931 Bison 1.29 released.
2933 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2935 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2936 Added reference card.
2938 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2940 * po/ru.po: Added Russian translation.
2942 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2944 * configure.in: Added Russian translation.
2946 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2948 * configure.in, NEWS, README:
2949 Released version 1.28.
2951 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2954 Squashed redefinition warning on some systems.
2956 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2957 Have configure build version string instead of relying on ANSI string
2960 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2962 * po/POTFILES.in: Got rid of version.c.
2964 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2966 * acconfig.h, configure.in:
2967 Have configure build version string instead of relying on ANSI string
2970 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2973 Dropped mention of `+' for long-named options.
2975 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2977 * src/files.c: Added <unistd.h> for unlink().
2979 * src/Makefile.am, src/system.h:
2982 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2984 * README: Added a FAQ list.
2986 * configure.in, acconfig.h:
2989 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2991 * doc/FAQ, doc/Makefile.am:
2994 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2996 * src/alloc.h, src/symtab.h, src/version.c:
2997 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2999 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3001 * src/.cvsignore, src/Makefile.am:
3002 Reorganized: sources in `src', documentation in `doc'.
3004 * src/lex.c (literalchar):
3005 fixed the code for escaping double quotes (thanks
3008 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3010 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3011 Adjusted paths to reflect directory reorganization.
3013 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3015 * doc/.cvsignore, doc/Makefile.am:
3016 Reorganized: sources in `src', documentation in `doc'.
3018 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3021 Updated AC_INIT file to reflect directory reorganization.
3023 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3024 Reorganized: sources in `src', documentation in `doc'.
3026 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3029 Don't declare calloc() and realloc() if not necessary.
3031 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3033 * configure.in, acconfig.h, acinclude.m4:
3034 Don't declare calloc() and realloc() if not necessary.
3036 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3038 * po/.cvsignore: Added i18n support.
3040 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3042 * acconfig.h, configure.in, Makefile.am:
3045 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3047 * src/bison.s1: Fixed #line numbers.
3049 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3051 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3052 Added PO files from Translation Project.
3054 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3057 Added support for non-ANSI compilers (ansi2knr).
3059 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3061 * configure.in: Bumped version number to 1.27.
3064 Added `bison.simple' to list of files removed by `make distclean'.
3066 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3068 * src/files.c, src/files.h:
3069 Defined locations of parser files in config.h instead of Makefile.
3071 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3073 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3074 Defined locations of parser files in config.h instead of Makefile.
3076 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3079 Removed inappropriate use of $< macro.
3081 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3083 * po/Makefile.in.in, po/POTFILES.in:
3084 Add `po' directory skeleton.
3086 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3088 * README: Document help-bison list.
3090 * configure.in: Add check for mkstemp().
3092 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3094 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3095 Hush a few compiler warnings.
3098 Add tryclose(), which verifies that fclose was successful.
3099 Hush a couple of compiler warnings.
3101 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3103 * Makefile.am, OChangeLog:
3104 ChangeLog is now automatically generated. Include the old version as
3107 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3109 * 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:
3112 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3114 * doc/bison.texinfo: Fix formatting glitch.
3116 * doc/bison.texinfo: Update FSF address.
3118 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3120 * acconfig.h: Update FSF address.
3122 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3125 Don't define PACKAGE here, since config.h defines it.
3127 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3129 * src/reader.c: Update copyright date.
3132 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3133 favor of output directly to stderr (avoids buffer overruns).
3135 * src/reader.c: Some checks for premature EOF.
3137 * 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:
3138 Use prototypes if the compiler understands them.
3140 * src/files.c: Honor TMPDIR on Unix hosts.
3141 Use prototypes if the compiler understands them.
3144 Fix a couple of buffer overrun bugs.
3145 Use prototypes if the compiler understands them.
3147 * src/system.h: Include unistd.h and ctype.h.
3148 Use #ifdef instead of #if for NLS symbols.
3150 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3152 * doc/bison.texinfo:
3153 Delete comment "consider using @set for edition number, etc..." since
3154 we now are doing so.
3156 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3159 Use prototypes if the compiler understands them.
3161 * NEWS: Document 1.26 highlights.
3163 * Makefile.am: Require Automake 1.3 or later.
3166 Use prototypes if the compiler understands them.
3168 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3171 Use VERSION symbol from automake for version number.
3173 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3175 * acconfig.h, configure.in, version.cin:
3176 Use VERSION symbol from automake for version number.
3178 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3181 Distribute original version of simple parser (bison.s1), not built
3182 version (bison.simple).
3184 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3186 * doc/bison.texinfo: Add info dir entry.
3188 * doc/bison.texinfo:
3189 Let automake put version number into documentation.
3191 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3193 * src/bison.cld, src/build.com, src/vmshlp.mar:
3194 Add non-RCS files from /gd/gnu/bison.
3196 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3199 Document the BISON_HAIRY and BISON_SIMPLE variables.
3201 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3203 * src/version.c: Build version.c automatically.
3206 Fix token numbering (used to start at 258, not 257).
3208 * src/system.h: Include config.h.
3210 * src/getargs.c: Update bug report address.
3212 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3213 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3215 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3218 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3220 * configure.in, version.cin:
3221 Build version.c automatically.
3223 * AUTHORS: Add AUTHORS file.
3225 * README: Update bug report address.
3228 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3230 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3233 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3235 * doc/bison.texinfo: Clean up some formatting.
3237 1998-05-05 Richard Stallman <rms@gnu.org>
3239 * doc/bison.texinfo:
3240 Explain better why to make a pure parser.
3242 1998-01-05 Richard Stallman <rms@gnu.org>
3244 * src/files.c (openfiles):
3245 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3246 find a temporary directory, if possible. Do not unlink files while
3249 1997-08-25 Richard Stallman <rms@gnu.org>
3251 * src/reader.c (stack_offset;):
3252 Change some warni to warns.
3254 * src/lex.c (literalchar): Use warns, not warni.
3256 1997-06-28 Richard Stallman <rms@gnu.org>
3258 * src/bison.s1: Add a Bison version comment.
3260 * src/main.c (fatal, warn, berror):
3263 1997-06-28 Richard Stallman <rms@gnu.org>
3265 * Makefile.in (bison_version): New variable.
3266 (dist): Use that variable.
3267 (bison.s1): Substitute the Bison version into bison.simple.
3269 * bison.simple: Add a Bison version comment.
3271 1997-06-18 Richard Stallman <rms@gnu.org>
3273 * src/main.c (fatal, warn, berror):
3274 Make error messages standard.
3275 (toomany): Improve error message text.
3277 * 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:
3278 new.h renamed to alloc.h.
3280 1997-06-18 Richard Stallman <rms@gnu.org>
3282 * Makefile.in: new.h renamed to alloc.h.
3284 1997-05-24 Richard Stallman <rms@gnu.org>
3286 * src/lex.c (literalchar):
3287 Fix the code for escaping \, " and '.
3289 (lex): Avoid trouble when there are many chars
3290 to discard in a char literal with just several chars in it.
3292 1997-05-17 Richard Stallman <rms@gnu.org>
3295 Use malloc, if using alloca is troublesome.
3296 (YYSTACK_USE_ALLOCA): New flag macro.
3297 Define it for some systems and compilers.
3298 (YYSTACK_ALLOC): New macro.
3299 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3300 If it was malloc'd, free it.
3302 1997-05-17 Richard Stallman <rms@gnu.org>
3305 Use malloc, if using alloca is troublesome.
3306 (YYSTACK_USE_ALLOCA): New flag macro.
3307 Define it for some systems and compilers.
3308 (YYSTACK_ALLOC): New macro.
3309 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3310 If it was malloc'd, free it.
3312 1997-04-23 Richard Stallman <rms@gnu.org>
3315 (alloca) [__hpux]: Always define as __builtin_alloca.
3317 1997-04-23 Richard Stallman <rms@gnu.org>
3320 (alloca) [__hpux]: Always define as __builtin_alloca.
3322 1997-04-22 Richard Stallman <rms@gnu.org>
3325 [__hpux]: Include alloca.h (right for HPUX 10)
3326 instead of declaring alloca (right for HPUX 9).
3328 * src/bison.s1 (__yy_memcpy):
3329 Declare arg `count' as unsigned int.
3330 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3332 1997-04-22 Richard Stallman <rms@gnu.org>
3335 [__hpux]: Include alloca.h (right for HPUX 10)
3336 instead of declaring alloca (right for HPUX 9).
3338 * bison.simple (__yy_memcpy):
3339 Declare arg `count' as unsigned int.
3340 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3342 1997-01-03 Richard Stallman <rms@gnu.org>
3344 * src/allocate.c: [__STDC__ or _MSC_VER]:
3345 Declare calloc and realloc to return void *.
3347 1997-01-02 Richard Stallman <rms@gnu.org>
3350 [_MSC_VER]: Include stdlib.h and process.h.
3351 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3353 * src/main.c (main): Return FAILURE as a value.
3354 (printable_version): Declare arg as int, not char.
3356 1997-01-02 Richard Stallman <rms@gnu.org>
3358 * Makefile.in (dist):
3359 Explicitly check for symlinks, and copy them.
3361 1996-12-19 Richard Stallman <rms@gnu.org>
3364 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3366 1996-12-18 Paul Eggert <eggert@gnu.org>
3368 * src/bison.s1 (yyparse):
3369 If __GNUC__ and YYPARSE_PARAM are both defined,
3370 declare yyparse to have a void * argument.
3372 1996-12-18 Paul Eggert <eggert@gnu.org>
3374 * bison.simple (yyparse):
3375 If __GNUC__ and YYPARSE_PARAM are both defined,
3376 declare yyparse to have a void * argument.
3378 1996-12-17 Richard Stallman <rms@gnu.org>
3380 * src/reduce.c (nbits): Add some casts.
3382 1996-08-12 Richard Stallman <rms@gnu.org>
3384 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3386 1996-08-12 Richard Stallman <rms@gnu.org>
3388 * bison.simple: Test _MSDOS as well as _MSDOS_.
3390 1996-07-31 Richard Stallman <rms@gnu.org>
3393 [__sun && __i386]: Include alloca.h.
3395 1996-07-31 Richard Stallman <rms@gnu.org>
3398 [__sun && __i386]: Include alloca.h.
3400 1996-07-30 Richard Stallman <rms@gnu.org>
3402 * src/bison.s1: Comment change.
3404 * src/bison.s1: Test _MSDOS_, not MSDOS.
3406 1996-07-30 Richard Stallman <rms@gnu.org>
3408 * bison.simple: Comment change.
3410 * bison.simple: Test _MSDOS_, not MSDOS.
3412 1996-06-01 Richard Stallman <rms@gnu.org>
3414 * 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:
3415 Insert `_' macro around many string constants.
3418 Insert `_' macro around many string constants.
3420 (main): Call setlocale, bindtextdomain and textdomain.
3422 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3423 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3424 [ENABLE_NLS]: Include libintl.h.
3425 [ENABLE_NLS] (gettext): Define.
3426 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3427 (N_, PACKAGE, LOCALEDIR): New macros.
3429 1996-06-01 Richard Stallman <rms@gnu.org>
3431 * POTFILES.in: New file.
3433 * Makefile.in (allocate.o):
3434 Define target explicitly.
3436 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3437 (LDFLAGS): Set to @LDFLAGS@.
3438 (configure): Run autoconf only if preceding `cd' succeeds.
3439 (bison.s1): Redirect output to temporary file then move the
3440 temporary to the target, rather than redirecting directly to bison.s1.
3441 (clean): Remove config.status and config.log.
3442 (distclean): Don't remove config.status here.
3444 1996-05-12 Richard Stallman <rms@gnu.org>
3447 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3449 1996-05-12 Richard Stallman <rms@gnu.org>
3452 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3454 1996-05-11 Richard Stallman <rms@gnu.org>
3456 * src/bison.s1 (__yy_memcpy):
3457 Really reorder the args, as was supposedly done on Feb 14 1995.
3458 (yyparse): Calls changed accordingly.
3460 1996-05-11 Richard Stallman <rms@gnu.org>
3462 * Makefile.in (dist): Don't use $(srcdir).
3464 * bison.simple (__yy_memcpy):
3465 Really reorder the args, as was supposedly done on Feb 14 1995.
3466 (yyparse): Calls changed accordingly.
3468 1996-01-27 Richard Stallman <rms@gnu.org>
3470 * src/output.c (output_rule_data):
3471 Test YYERROR_VERBOSE in the conditional
3472 around the definition of ttyname.
3474 1995-12-29 Richard Stallman <rms@gnu.org>
3477 Fix line numbers in #line commands.
3479 1995-12-29 Richard Stallman <rms@gnu.org>
3482 Fix line numbers in #line commands.
3484 1995-12-27 Richard Stallman <rms@gnu.org>
3486 * src/bison.s1 (YYPARSE_PARAM_DECL):
3487 In C++, make it always null.
3488 (YYPARSE_PARAM_ARG): New macro.
3489 (yyparse): Use YYPARSE_PARAM_ARG.
3491 1995-12-27 Richard Stallman <rms@gnu.org>
3493 * bison.simple (YYPARSE_PARAM_DECL):
3494 In C++, make it always null.
3495 (YYPARSE_PARAM_ARG): New macro.
3496 (yyparse): Use YYPARSE_PARAM_ARG.
3498 1995-11-29 Richard Stallman <rms@gnu.org>
3500 * doc/bison.texinfo:
3501 Describe literal string tokens, %raw, %no_lines, %token_table.
3503 1995-11-29 Daniel Hagerty <hag@gnu.org>
3505 * doc/bison.texinfo: Fixed update date
3507 1995-10-16 Richard Stallman <rms@gnu.org>
3509 * src/version.c: Version 1.25.
3511 1995-10-16 Richard Stallman <rms@gnu.org>
3513 * NEWS: *** empty log message ***
3515 1995-10-16 Richard Stallman <rms@gnu.org>
3517 * doc/bison.1, doc/bison.rnh:
3520 1995-10-15 Richard Stallman <rms@gnu.org>
3522 * src/vmsgetargs.c, src/getargs.c:
3523 Added -n, -k, and -raw switches.
3524 (noparserflag, toknumflag, rawtoknumflag): New variables.
3526 * src/symtab.h (SALIAS):
3527 New #define for adding aliases to %token.
3528 (struct bucket): Added `alias' field.
3530 * src/reduce.c (reduce_grammar):
3531 Revise error message.
3532 (print_notices): Remove final `.' from error message.
3534 * src/reader.c (reader_output_yylsp):
3536 (readgram): Use `#if 0' around code that accepted %command
3537 inside grammar rules: The documentation doesn't allow it,
3538 and it will fail since the %command processors scan for the next %.
3539 (parse_token_decl): Extended the %token
3540 declaration to allow a multi-character symbol as an alias.
3541 (parse_thong_decl): New function.
3542 (read_declarations): Added %thong declarations.
3543 (read_declarations): Handle NOOP to deal with allowing
3544 % declarations as another means to specify the flags.
3545 (readgram): Allow %prec prior to semantics embedded in a rule.
3546 (skip_to_char, read_declarations, copy_definition)
3547 (parse_token_decl, parse_start_decl, parse_type_decl)
3548 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3549 (get_type_name, copy_guard, copy_action, readgram)
3550 (get_type, packsymbols): Revised most error messages.
3551 Changed `fatal' to `warnxxx' to avoid aborting for error.
3552 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3553 (read_declarations): Improve the error message for
3554 an invalid character. Do not abort.
3555 (read_declarations, copy_guard, copy_action): Use
3556 printable_version to avoid unprintable characters in printed output.
3557 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3558 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3559 Allow the type of a non-terminal can be given
3560 more than once, as long as all specifications give the same type.
3563 (output_headers, output_trailers, output, output_gram)
3564 (output_rule_data): Implement noparserflag variable.
3565 Implement toknumflag variable.
3566 (output): Call reader_output_yylsp to output LTYPESTR.
3568 * src/main.c (main):
3569 If reader sees an error, don't process the grammar.
3570 (fatals): Updated to not use VARARGS1.
3571 (printable_version, int_to_string, warn, warni, warns, warnss)
3572 (warnsss): New error reporting functions. Avoid abort for error.
3575 Added THONG and NOOP for alias processing.
3576 Added SETOPT for the new code that allows setting options with %flags.
3579 Include getopt.h. Add some extern decls.
3580 (safegetc): New function to deal with EOF gracefully.
3581 (literalchar); new function to deal with reading \ escapes.
3582 (lex): Use literalchar.
3583 (lex): Implemented "..." tokens.
3584 (literalchar, lex, parse_percent_token): Made tokenbuffer
3585 always contain the token. This includes growing the token
3586 buffer while reading an integer.
3587 (parse_percent_token): Replaced if-else statement with percent_table.
3588 (parse_percent_token): Added % declarations as another
3589 way to specify the flags -n, -l, and -r. Also added hooks for
3590 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3591 major changes to files.c.
3592 (lex) Retain in the incoming stream a character following
3594 (skip_white_space, lex): Revised most error messages
3595 and changed fatal to warn to avoid aborting.
3596 (percent_table): Added %thong declarations.
3598 * src/gram.h: Comment changes.
3600 * src/files.c (openfiles, open_extra_files, done):
3602 and actfile file. Handle noparserflag. Both for -n switch.
3604 * src/conflicts.c (resolve_sr_conflict):
3605 Remove use of alloca.
3607 1995-06-01 Jim Meyering <meyering@gnu.org>
3609 * doc/bison.texinfo: *** empty log message ***
3611 1995-05-06 Richard Stallman <rms@gnu.org>
3613 * src/bison.s1: Comment change.
3615 1995-05-06 Richard Stallman <rms@gnu.org>
3617 * bison.simple: Comment change.
3619 1995-05-03 Richard Stallman <rms@gnu.org>
3621 * src/version.c: Version now 1.24.
3623 * src/bison.s1: Change distribution terms.
3625 * src/version.c: Version now 1.23.
3627 1995-05-03 Richard Stallman <rms@gnu.org>
3629 * doc/bison.texinfo:
3630 Rewrite "Conditions for Using Bison".
3631 Update version to 1.24.
3633 1995-05-03 Richard Stallman <rms@gnu.org>
3635 * bison.simple: Change distribution terms.
3637 1995-02-23 Richard Stallman <rms@gnu.org>
3639 * src/files.c: Test __VMS_POSIX as well as VMS.
3641 1995-02-14 Jim Meyering <meyering@gnu.org>
3643 * src/bison.s1 (__yy_memcpy):
3644 Renamed from __yy_bcopy to avoid
3645 confusion. Reverse FROM and TO arguments to be consistent with
3648 1995-02-14 Jim Meyering <meyering@gnu.org>
3650 * bison.simple (__yy_memcpy):
3651 Renamed from __yy_bcopy to avoid
3652 confusion. Reverse FROM and TO arguments to be consistent with
3655 1994-11-10 David J. MacKenzie <djm@gnu.org>
3661 * Makefile.in (DISTFILES): Include NEWS.
3663 * Makefile.in (DISTFILES):
3664 Include install-sh, not install.sh.
3666 * configure.in: Update to Autoconf v2 macro names.
3668 1994-10-05 David J. MacKenzie <djm@gnu.org>
3670 * Makefile.in: fix typo
3672 * Makefile.in (prefix, exec_prefix):
3673 Let configure set them.
3675 1994-09-28 David J. MacKenzie <djm@gnu.org>
3677 * Makefile.in: Set datadir to $(prefix)/share.
3679 1994-09-15 Richard Stallman <rms@gnu.org>
3682 Update copyright notice and GPL version.
3684 1994-09-15 Richard Stallman <rms@gnu.org>
3687 Update copyright notice and GPL version.
3689 1994-07-12 Richard Stallman <rms@gnu.org>
3691 * src/reduce.c, src/reader.c:
3694 1994-05-05 David J. MacKenzie <djm@gnu.org>
3696 * Makefile.in: entered into RCS
3698 1994-03-26 Richard Stallman <rms@gnu.org>
3700 * src/bison.s1: entered into RCS
3702 1994-03-26 Richard Stallman <rms@gnu.org>
3704 * bison.simple: entered into RCS
3706 1994-03-25 Richard Stallman <rms@gnu.org>
3708 * src/main.c: entered into RCS
3710 1994-03-24 Richard Stallman <rms@gnu.org>
3712 * src/conflicts.c: entered into RCS
3714 1994-01-02 Richard Stallman <rms@gnu.org>
3716 * Makefile.in: *** empty log message ***
3718 1993-11-21 Richard Stallman <rms@gnu.org>
3720 * src/bison.s1: *** empty log message ***
3722 1993-11-21 Richard Stallman <rms@gnu.org>
3724 * doc/bison.texinfo: entered into RCS
3726 * doc/bison.texinfo: *** empty log message ***
3728 1993-11-21 Richard Stallman <rms@gnu.org>
3730 * bison.simple: *** empty log message ***
3732 1993-10-25 David J. MacKenzie <djm@gnu.org>
3734 * doc/bison.texinfo: *** empty log message ***
3736 1993-10-19 Richard Stallman <rms@gnu.org>
3738 * src/bison.s1: *** empty log message ***
3740 1993-10-19 Richard Stallman <rms@gnu.org>
3742 * bison.simple: *** empty log message ***
3744 1993-10-14 Richard Stallman <rms@gnu.org>
3746 * src/bison.s1: *** empty log message ***
3748 1993-10-14 Richard Stallman <rms@gnu.org>
3750 * bison.simple: *** empty log message ***
3752 1993-09-14 David J. MacKenzie <djm@gnu.org>
3754 * doc/bison.texinfo: *** empty log message ***
3756 1993-09-13 Noah Friedman <friedman@gnu.org>
3758 * Makefile.in: *** empty log message ***
3760 1993-09-10 Richard Stallman <rms@gnu.org>
3762 * src/conflicts.c: *** empty log message ***
3764 * src/system.h: entered into RCS
3766 1993-09-10 Richard Stallman <rms@gnu.org>
3768 * doc/bison.1: entered into RCS
3770 1993-09-06 Noah Friedman <friedman@gnu.org>
3772 * src/version.c: entered into RCS
3774 1993-09-06 Noah Friedman <friedman@gnu.org>
3776 * Makefile.in: *** empty log message ***
3778 1993-07-30 David J. MacKenzie <djm@gnu.org>
3780 * Makefile.in: *** empty log message ***
3782 1993-07-24 Richard Stallman <rms@gnu.org>
3784 * src/bison.s1: *** empty log message ***
3786 1993-07-24 Richard Stallman <rms@gnu.org>
3788 * bison.simple: *** empty log message ***
3790 1993-07-08 David J. MacKenzie <djm@gnu.org>
3792 * Makefile.in: *** empty log message ***
3794 1993-07-04 Richard Stallman <rms@gnu.org>
3796 * src/bison.s1: *** empty log message ***
3798 1993-07-04 Richard Stallman <rms@gnu.org>
3800 * bison.simple: *** empty log message ***
3802 1993-06-26 David J. MacKenzie <djm@gnu.org>
3804 * src/getargs.c: entered into RCS
3806 1993-06-26 David J. MacKenzie <djm@gnu.org>
3808 * doc/bison.texinfo: *** empty log message ***
3810 * doc/bison.1: New file.
3812 1993-06-25 Richard Stallman <rms@gnu.org>
3814 * src/getargs.c: New file.
3816 1993-06-16 Richard Stallman <rms@gnu.org>
3818 * src/bison.s1: *** empty log message ***
3820 1993-06-16 Richard Stallman <rms@gnu.org>
3822 * bison.simple: *** empty log message ***
3824 1993-06-03 Richard Stallman <rms@gnu.org>
3826 * src/bison.s1: New file.
3828 1993-06-03 Richard Stallman <rms@gnu.org>
3830 * doc/bison.texinfo: *** empty log message ***
3832 1993-06-03 Richard Stallman <rms@gnu.org>
3834 * bison.simple: New file.
3836 1993-05-19 Richard Stallman <rms@gnu.org>
3838 * doc/bison.texinfo: New file.
3840 1993-05-07 Noah Friedman <friedman@gnu.org>
3842 * Makefile.in: *** empty log message ***
3844 1993-04-28 Noah Friedman <friedman@gnu.org>
3846 * src/reader.c: *** empty log message ***
3848 1993-04-23 Noah Friedman <friedman@gnu.org>
3850 * src/alloc.h: entered into RCS
3852 1993-04-20 David J. MacKenzie <djm@gnu.org>
3854 * src/version.c: *** empty log message ***
3856 * src/files.c, src/allocate.c:
3859 * src/reader.c: *** empty log message ***
3861 * src/lex.c: entered into RCS
3863 * src/conflicts.c: New file.
3865 * src/symtab.c: entered into RCS
3867 * src/alloc.h: New file.
3869 * src/LR0.c: entered into RCS
3871 1993-04-18 Noah Friedman <friedman@gnu.org>
3873 * src/reader.c: New file.
3875 * src/version.c: *** empty log message ***
3877 1993-04-18 Noah Friedman <friedman@gnu.org>
3879 * Makefile.in: *** empty log message ***
3881 1993-04-17 Noah Friedman <friedman@gnu.org>
3883 * Makefile.in: *** empty log message ***
3885 1993-04-15 Richard Stallman <rms@gnu.org>
3887 * src/main.c, src/files.c:
3890 1993-04-15 Noah Friedman <friedman@gnu.org>
3892 * configure.in: entered into RCS
3894 * configure.in: *** empty log message ***
3896 * configure.in: New file.
3898 1993-04-14 Richard Stallman <rms@gnu.org>
3900 * Makefile.in: New file.
3902 1993-04-13 Richard Stallman <rms@gnu.org>
3904 * src/version.c: New file.
3906 1993-03-25 Richard Stallman <rms@gnu.org>
3908 * src/output.c: entered into RCS
3910 1992-09-25 Richard Stallman <rms@gnu.org>
3912 * configure.bat: entered into RCS
3914 1992-06-22 Richard Stallman <rms@gnu.org>
3916 * src/vmsgetargs.c: entered into RCS
3918 1992-06-22 Richard Stallman <rms@gnu.org>
3920 * doc/bison.rnh: entered into RCS
3922 1992-04-20 David J. MacKenzie <djm@gnu.org>
3924 * README: entered into RCS
3926 1992-01-22 Richard Stallman <rms@gnu.org>
3928 * src/machine.h: entered into RCS
3930 1991-12-21 Richard Stallman <rms@gnu.org>
3932 * src/lalr.c, src/closure.c:
3935 1991-12-20 Richard Stallman <rms@gnu.org>
3937 * src/state.h: entered into RCS
3939 1991-12-18 Richard Stallman <rms@gnu.org>
3941 * src/print.c, src/nullable.c, src/derives.c:
3944 1991-11-03 David J. MacKenzie <djm@gnu.org>
3946 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3949 1988-09-09 Richard Stallman <rms@gnu.org>
3951 * src/bison.hairy: entered into RCS
3953 1987-12-16 Richard Stallman <rms@gnu.org>
3955 * REFERENCES: entered into RCS