1 2001-11-26 Akim Demaille <akim@epita.fr>
5 2001-11-26 Akim Demaille <akim@epita.fr>
7 * src/reader.c (readgram): Make sure rules for mid-rule actions
8 have a lineno equal to that of their host rule.
9 Reported by Hans Aberg.
10 * tests/regression.at (Rule Line Numbers): New.
12 2001-11-26 Akim Demaille <akim@epita.fr>
14 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
16 Reported by Hans Aberg.
18 2001-11-26 Akim Demaille <akim@epita.fr>
20 * src/complain.c, src/complain.h (error): Remove, provided by
23 2001-11-26 Akim Demaille <akim@epita.fr>
25 * src/reader.c (read_declarations): Don't abort on tok_illegal,
26 issue an error message.
27 * tests/regression.at (Invalid %directive): New.
28 Reported by Hans Aberg.
30 2001-11-26 Akim Demaille <akim@epita.fr>
32 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
33 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
35 2001-11-26 Akim Demaille <akim@epita.fr>
37 * src/conflicts.c (conflicts_print): Don't complain at all when
38 there are no reduce/reduce conflicts, and as many shift/reduce
39 conflicts as expected.
40 * tests/regression.at (%expect right): Adjust.
42 2001-11-23 Akim Demaille <akim@epita.fr>
44 * lib/alloca.c: Update, from fileutils.
46 2001-11-23 Akim Demaille <akim@epita.fr>
48 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
50 2001-11-23 Akim Demaille <akim@epita.fr>
52 * src/system.h: Include alloca.h.
53 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
55 2001-11-23 Akim Demaille <akim@epita.fr>
57 * src/print_graph.c (print_actions): Remove `rule', unused.
58 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
59 pacify GCC's signed < unsigned warnings.
60 * src/closure.c (itemsetsize): Likewise.
61 * src/reader.c (symbol_list_new): Static.
63 2001-11-23 Akim Demaille <akim@epita.fr>
65 Attaching lineno to buckets is stupid, since only one copy of each
66 symbol is kept, only the line of the first occurrence is kept too.
68 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
69 * src/reader.c (rline_allocated): Remove, unused.
70 (symbol_list): Have a `line' member.
71 (symbol_list_new): New.
73 * src/print.c (print_grammar): Output the rule line numbers.
74 * tests/regression.at (Solved SR Conflicts)
75 (Unresolved SR Conflicts): Adjust.
76 Reported by Hans Aberg.
78 2001-11-20 Akim Demaille <akim@epita.fr>
82 2001-11-20 Akim Demaille <akim@epita.fr>
85 * configure.in (ALL_LINGUAS): Adjust.
86 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
87 longer contains strings to translate.
89 2001-11-19 Akim Demaille <akim@epita.fr>
91 * src/conflicts.c (conflicts_print): Add a missing \n.
93 2001-11-19 Akim Demaille <akim@epita.fr>
95 * src/nullable.c (nullable_print): New.
96 (set_nullable): Call it when tracing.
97 Better locality of variables.
99 2001-11-19 Akim Demaille <akim@epita.fr>
101 * src/print.c (print_actions): Better locality of variables.
103 2001-11-19 Akim Demaille <akim@epita.fr>
105 * src/derives.c (print_derives): Fix and enrich.
106 * src/closure.c (print_fderives): Likewise.
108 2001-11-19 Akim Demaille <akim@epita.fr>
110 * src/closure.c (itemsetend): Remove, replaced with...
113 2001-11-19 Akim Demaille <akim@epita.fr>
115 * src/LR0.c (kernel_end): Remove, replaced with...
118 2001-11-19 Akim Demaille <akim@epita.fr>
120 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
123 2001-11-19 Akim Demaille <akim@epita.fr>
125 * src/closure.c (closure): Use arrays instead of pointers to clarify.
127 2001-11-19 Akim Demaille <akim@epita.fr>
129 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
131 * src/LR0.c: Likewise.
132 (allocate_itemsets): Use arrays instead of pointers to clarify.
134 2001-11-19 Akim Demaille <akim@epita.fr>
136 * src/getargs.c (statistics_flag): Replace with...
138 (longopts): Accept --trace instead of --statistics.
139 * src/getargs.h: Adjust.
140 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
141 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
143 2001-11-19 Akim Demaille <akim@epita.fr>
145 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
146 pointers to clarify the code.
147 (save_reductions, save_shifts): Factor common parts of alternatives.
149 2001-11-19 Akim Demaille <akim@epita.fr>
151 * src/LR0.c (new_state, get_state): Complete TRACE code.
152 * src/closure.c: Include `reader.h' to get `tags', needed by the
154 Rename the conditional DEBUG as TRACE.
155 Output consistently TRACEs to stderr, not stdout.
156 * src/derives.c: Likewise.
157 * src/reduce.c: (inaccessable_symbols): Using if is better style
159 Use `#if TRACE' instead of `#if 0' for tracing code.
161 2001-11-19 Akim Demaille <akim@epita.fr>
163 * src/system.h (LIST_FREE, shortcpy): New.
164 * src/LR0.c: Use them.
165 * src/output.c (free_itemsets, free_reductions, free_shifts):
166 Remove, replaced by LIST_FREE.
168 2001-11-19 Akim Demaille <akim@epita.fr>
170 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
171 (REDUCTIONS_ALLOC): New.
172 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
175 2001-11-19 Akim Demaille <akim@epita.fr>
177 * src/LR0.c (new_state): Complete trace code.
178 * src/nullable.c (set_nullable): Don't translate traces.
180 2001-11-19 Akim Demaille <akim@epita.fr>
182 * src/print_graph.c (print_core): Better locality of variables.
183 * src/print.c (print_core): Likewise.
185 2001-11-19 Akim Demaille <akim@epita.fr>
187 * src/vcg.c: You do the output, so you are responsible of the
188 handling of VCG syntax, in particular: use quotearg.
189 * src/print_graph.c: Don't.
190 (print_actions): Don't output the actions as part of the nodes,
191 since that's the job of the edges.
192 (print_state): Don't output by hand: fill the node description,
193 and ask for its output.
195 2001-11-19 Akim Demaille <akim@epita.fr>
197 * src/bison.simple (yyparse): When verbosely reporting an error,
198 no longer put additional quotes around token names.
199 * tests/calc.at: Adjust.
201 2001-11-19 Akim Demaille <akim@epita.fr>
203 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
204 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
205 * src/output.c: Adjust.
207 2001-11-19 Akim Demaille <akim@epita.fr>
209 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
211 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
213 2001-11-19 Akim Demaille <akim@epita.fr>
215 * src/gram.h (rule_t): New.
217 (rrhs, rlhs): Remove, part of state_t.
218 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
219 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
220 * src/reader.c, src/reduce.c: Adjust.
222 2001-11-19 Akim Demaille <akim@epita.fr>
224 * src/reader.c (symbols_output): New, extracted from...
228 2001-11-19 Akim Demaille <akim@epita.fr>
230 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
231 (maxrhs): this new function.
233 2001-11-19 Akim Demaille <akim@epita.fr>
235 * src/lalr.c (F): New macro to access the variable F.
238 2001-11-19 Akim Demaille <akim@epita.fr>
240 * src/lalr.h (LA): New macro to access the variable LA.
241 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
242 * src/lalr.c: Adjust.
244 2001-11-19 Akim Demaille <akim@epita.fr>
246 * src/lalr.c (initialize_LA): Only initialize LA. Let...
247 (set_state_table): handle the `lookaheads' members.
249 2001-11-19 Akim Demaille <akim@epita.fr>
251 * src/lalr.h (lookaheads): Removed array, whose contents is now
253 (state_t): this structure.
254 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
257 2001-11-19 Akim Demaille <akim@epita.fr>
259 * src/lalr.h (consistent): Removed array, whose contents is now
261 (state_t): this structure.
262 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
265 2001-11-19 Akim Demaille <akim@epita.fr>
267 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
268 contents are now members of...
269 (state_t): this structure.
270 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
273 2001-11-19 Akim Demaille <akim@epita.fr>
275 * src/lalr.h (state_t): New.
276 (state_table): Be a state_t * instead of a core **.
277 (accessing_symbol): Remove, part of state_t.
278 * src/lalr.c: Adjust.
279 (set_accessing_symbol): Merge into...
280 (set_state_table): this.
281 * src/print_graph.c, src/conflicts.c: Adjust.
283 2001-11-14 Akim Demaille <akim@epita.fr>
287 2001-11-14 Akim Demaille <akim@epita.fr>
289 * tests/calc.at, tests/output.at, tests/regression.at,
290 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
291 now the tests are run in private dirs, therefore AC_CLEANUP and
292 family can be simplified to 0-ary.
293 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
294 use abs. path to find config.h.
296 2001-11-14 Akim Demaille <akim@epita.fr>
298 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
299 stderr, there can be way too much random noise.
300 Instead pass -Werror to GCC and rely on the exit status.
301 Reported by Wolfram Wagner.
303 2001-11-14 Akim Demaille <akim@epita.fr>
305 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
306 defined only if yyoverflow is defined, to avoid `warning: unused
308 Reported by The Test Suite.
310 2001-11-14 Akim Demaille <akim@epita.fr>
312 * src/print.c: Include reduce.h.
313 Reported by Hans Aberg.
315 2001-11-14 Akim Demaille <akim@epita.fr>
317 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
318 Revert a previous patch: these are really const.
319 * src/conflicts.c (conflict_report): Additional useless pair of
320 braces to pacify GCC's warnings for `if () if () {} else {}'.
321 * src/lex.c (parse_percent_token): Replace equal_offset with
324 Be sure to strdup `arg' when used, since there is no reason for
325 token_buffer not to change.
327 2001-11-14 Akim Demaille <akim@epita.fr>
329 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
331 * src/main.c (main): Use them.
332 Suggested by Hans Aberg.
334 2001-11-12 Akim Demaille <akim@epita.fr>
338 * src/system.h (ngettext): Now that we use ngettext, be sure to
339 provide a default definition when NLS are not used that takes care
342 2001-11-12 Akim Demaille <akim@epita.fr>
344 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
345 Use @kbd to denote user input.
346 (Language and Grammar): ANSIfy the example.
347 Adjust its layout for info/notinfo.
348 (Location Tracking Calc): Output error messages to stderr.
349 Output locations in a more GNUtically correct way.
350 Fix a couple of Englishos.
351 Adjust @group/@end group pairs.
353 2001-11-12 Akim Demaille <akim@epita.fr>
355 %expext was not functioning at all.
357 * src/conflicts.c (expected_conflicts): Set to -1.
358 (conflict_report): Use ngettext.
359 (conflicts_print): Check %expect and make its violation an error.
360 * doc/bison.texinfo (Expect Decl): Adjust.
361 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
362 * tests/regression.at (%expect not enough, %expect right)
363 (%expect too much): New.
365 2001-11-12 Akim Demaille <akim@epita.fr>
367 * tests/regression.at (Conflicts): Rename as...
368 (Unresolved SR Conflicts): this.
369 (Solved SR Conflicts): New.
371 2001-11-12 Akim Demaille <akim@epita.fr>
373 * src/reduce.c (print_results): Rename as...
374 (reduce_output): This.
375 Output to OUT, passed as argument, instead of output_obstack.
376 (dump_grammar): Likewise.
379 (reduce_grammar): No longer call reduce_output, since...
380 * src/print.c (print_results): do it.
381 * src/main.c (main): Call reduce_free;
383 2001-11-12 Akim Demaille <akim@epita.fr>
385 * src/conflicts.c (print_reductions): Accept OUT as argument.
386 Output to it, not to output_obstack.
387 * src/print.c (print_actions): Adjust.
389 2001-11-12 Akim Demaille <akim@epita.fr>
391 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
392 the result instead of using...
393 (src_total, rrc_total, src_count, rrc_count): Remove.
394 (any_conflicts): Remove.
395 (print_conflicts): Split into...
396 (conflicts_print, conflicts_output): New.
397 * src/conflicts.h: Adjust.
398 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
399 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
400 * tests/regression.at (Conflicts): New.
401 Reported by Tom Lane.
403 2001-11-12 Akim Demaille <akim@epita.fr>
405 * tests/regression.at (Invalid input): Remove, duplicate with
406 ``Invalid input: 1''.
408 2001-11-12 Akim Demaille <akim@epita.fr>
410 * tests/torture.at (AT_DATA_STACK_TORTURE)
411 (Exploding the Stack Size with Alloca)
412 (Exploding the Stack Size with Malloc): New.
414 2001-11-12 Akim Demaille <akim@epita.fr>
416 * src/bison.simple (YYSTACK_REALLOC): New.
417 (yyparse) [!yyoverflow]: Use it and free the old stack.
418 Reported by Per Allansson.
420 2001-11-05 Akim Demaille <akim@epita.fr>
423 * src/lex.c (parse_percent_token): s/quotearg/quote/.
425 2001-11-05 Akim Demaille <akim@epita.fr>
427 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
430 2001-11-05 Akim Demaille <akim@epita.fr>
432 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
433 with yyltype/YYLTYPE. This allows inclusion of the generated
434 header within the parser if the compiler, such as GGC, accepts
435 multiple equivalent #defines.
437 2001-11-04 Akim Demaille <akim@epita.fr>
439 * src/getargs.c (longopts): Support `--output'. getopt is now
440 able to understand that `--out' is OK: the two racing long options
443 * src/lex.h (tok_setopt): Remove, replaced with...
444 (tok_intopt, tok_stropt): these new guys.
445 * src/lex.c (getopt.h): Not needed.
446 (token_buffer, unlexed_token_buffer): Not const.
447 (percent_table): Promote `-' over `_' in directive names.
448 Active `%name-prefix', `file-prefix', and `output'.
449 (parse_percent_token): Accept possible arguments to directives.
450 Promote `-' over `_' in directive names.
451 * doc/bison.texinfo (Decl Summary): Split the list into
452 `directives for grammars' and `directives for bison'.
454 Add description of `%name-prefix', `file-prefix', and `output'.
455 Promote `-' over `_' in directive names.
456 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
457 Simplify the description of `--name-prefix'.
458 Promote `-' over `_' in directive names.
459 Promote `--output' over `--output-file'.
460 Fix the description of `--defines'.
461 * tests/output.at: Exercise %file-prefix and %output.
463 2001-11-02 Akim Demaille <akim@epita.fr>
465 * doc/refcard.tex: Update.
467 2001-11-02 Akim Demaille <akim@epita.fr>
469 * src/symtab.h (SUNDEF): New.
470 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
471 stand for `uninitialized', instead of 0.
472 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
473 * src/lex.c (lex): Adjust.
475 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
477 Let yylex return it instead of a plain 0.
478 Reported by Dick Streefland.
480 2001-11-02 Akim Demaille <akim@epita.fr>
482 * tests/regression.at (Mixing %token styles): New test.
484 2001-11-02 Akim Demaille <akim@epita.fr>
486 * src/reader.c (parse_thong_decl): Formatting changes.
487 (token_translations_init): New, extracted from...
491 2001-11-01 Akim Demaille <akim@epita.fr>
493 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
494 Check that `9foo.y' produces correct cpp guards.
495 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
499 2001-11-01 Akim Demaille <akim@epita.fr>
501 * tests/regression.at (Invalid input: 2): New.
502 * src/lex.c (unlexed_token_buffer): New.
503 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
507 2001-11-01 Akim Demaille <akim@epita.fr>
509 * configure.in: Bump to 1.30a.
510 Adjust to newer Autotest.
512 2001-10-26 Akim Demaille <akim@epita.fr>
516 2001-10-26 Paul Eggert <eggert@twinsun.com>
518 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
519 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
520 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
521 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
522 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
523 Sync with fileutils 4.1.1.
525 2001-10-18 Akim Demaille <akim@epita.fr>
528 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
529 avoid spurious failures.
531 2001-10-18 Akim Demaille <akim@epita.fr>
535 2001-10-18 Akim Demaille <akim@epita.fr>
537 * tests/atlocal.in (GCC): Add.
538 * tests/calc.at: s/m4_match/m4_bmatch/.
539 s/m4_patsubst/m4_bpatsubst/.
540 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
541 * configure.in: AC_SUBST(GCC).
543 2001-10-10 Akim Demaille <akim@epita.fr>
546 * configure.in: M4 is no longer needed, but autom4te is.
547 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
550 2001-10-10 Akim Demaille <akim@epita.fr>
554 2001-10-10 Akim Demaille <akim@epita.fr>
557 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
558 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
559 Reported by Airy Andre.
561 2001-10-10 Akim Demaille <akim@epita.fr>
563 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
564 * config/mkinstalldirs, lib/ansi2knr.c: Update.
566 2001-10-02 Akim Demaille <akim@epita.fr>
570 2001-10-02 Akim Demaille <akim@epita.fr>
574 2001-10-02 Akim Demaille <akim@epita.fr>
576 * tests/regression.at (Invalid CPP headers): New.
577 From Alexander Belopolsky.
578 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
580 2001-10-02 Akim Demaille <akim@epita.fr>
582 * tests/regression.at (Invalid input): New.
583 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
586 2001-10-02 Akim Demaille <akim@epita.fr>
588 * tests/calc.at: Now that --debug works, the tests must be adjusted.
590 2001-10-02 Akim Demaille <akim@epita.fr>
592 * src/output.c (output_parser): Assert `skeleton'.
593 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
597 2001-10-01 Marc Autret <autret_m@epita.fr>
599 * src/lex.h: Echo modifications.
600 * src/lex.c (unlex): Parameter is now token_t.
603 2001-10-01 Marc Autret <autret_m@epita.fr>
605 * src/main.c: Include lex.h.
608 2001-09-29 Akim Demaille <akim@epita.fr>
610 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
612 2001-09-28 Akim Demaille <akim@epita.fr>
614 * tests/testsuite.at: Update to newer Autotest.
615 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
617 2001-09-27 Akim Demaille <akim@epita.fr>
619 Position independent wrapper.
621 * tests/bison: Remove.
622 * tests/bison.in: New.
623 * configure.in: Adjust.
625 2001-09-27 Paul Eggert <eggert@twinsun.com>
627 Port quotearg fixes from tar 1.13.24.
629 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
631 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
632 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
634 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
635 * m4/mbrtowc.m4: New file.
636 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
637 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
639 2001-09-27 Akim Demaille <akim@epita.fr>
643 2001-09-27 Akim Demaille <akim@epita.fr>
647 2001-09-25 Akim Demaille <akim@epita.fr>
649 * src/system.h: Include `xalloc.h'.
650 Remove it from the C files.
651 * src/files.c (output_files): Free the obstacks.
652 * src/lex.c (init_lex): Rename as...
655 * src/main.c (main): Use it.
657 2001-09-24 Marc Autret <autret_m@epita.fr>
659 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
660 to output informations in fout (FILE*).
661 (open_graph, close_graph): Likewise.
662 (output_graph, output_edge, output_node): Likewise.
663 * src/vcg.h: Update function prototypes.
664 * src/print_graph.c (print_graph): Open output graph file.
665 (print_actions): Adjust.
666 * src/files.h: Remove extern declaration.
667 * src/files.c: Remove graph_obstack declaration.
668 (open_files): Remove graph_obstack initialization.
669 (output_files): Remove graph_obstack saving.
671 2001-09-24 Marc Autret <autret_m@epita.fr>
673 * src/files.c (compute_output_file_names): Fix.
675 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
677 * src/reader.c (reader): Remove call to free_symtab ().
678 * src/main.c (main): Call it here.
680 * src/conflicts.c (initialize_conflicts): Rename as...
681 (solve_conflicts): this.
682 * src/print.c (print_core, print_actions, print_state)
683 (print_grammar): Dump to a file instead a `output_obstack'.
684 (print_results): Dump `output_obstack', and then proceed with the
686 * src/files.c (compute_output_file_names, close_files): New.
687 (output_files): Adjust.
688 * src/main.c (main): Adjust.
690 2001-09-23 Marc Autret <autret_m@epita.fr>
692 * src/files.c (compute_header_macro): Computes header macro name
693 from spec_defines_file when given.
695 2001-09-23 Marc Autret <autret_m@epita.fr>
697 * src/files.c (output_files): Add default extensions.
699 2001-09-22 Akim Demaille <akim@epita.fr>
701 * src/conflicts.c (finalize_conflicts): Rename as...
702 (free_conflicts): this.
704 2001-09-22 Akim Demaille <akim@epita.fr>
706 * src/gram.c (gram_free): Rename back as...
708 (output_token_translations): Free `token_translations'.
709 * src/symtab.c (free_symtab): Free the tag field.
711 2001-09-22 Akim Demaille <akim@epita.fr>
713 Remove `translations' as it is always set to true.
715 * src/gram.h: Adjust.
716 * src/reader.c (packsymbols, parse_token_decl): Adjust
717 * src/print.c (print_grammar): Adjust.
718 * src/output.c (output_token_translations): Adjust.
719 * src/lex.c (lex): Adjust.
720 * src/gram.c: Be sure the set pointers to NULL.
721 (dummy): Rename as...
724 2001-09-22 Akim Demaille <akim@epita.fr>
726 * configure.in: Invoke AM_LIB_DMALLOC.
727 * src/system.h: Use dmalloc.
728 * src/LR0.c: Be sure to have pointers initialized to NULL.
729 (allocate_itemsets): Allocate kernel_items only if needed.
731 2001-09-22 Akim Demaille <akim@epita.fr>
733 * configure.in: Bump to 1.29b.
734 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
735 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
736 need xmalloc.c in calc.y.
739 2001-09-21 Akim Demaille <akim@epita.fr>
742 * Makefile.maint, config/config.guess, config/config.sub,
743 * config/missing: Update from masters.
744 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
746 * configure.in (ALL_LINGUAS): Add `tr'.
748 2001-09-21 Akim Demaille <akim@epita.fr>
750 * tests/Makefile.am (package.m4): Move to...
751 ($(srcdir)/$(TESTSUITE)): here.
753 2001-09-20 Akim Demaille <akim@epita.fr>
755 * src/complain.c: No longer try to be standalone: use system.h.
756 Don't assume __STDC__ is defined to 1. Just test if it is defined.
757 * src/complain.h: Likewise.
758 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
759 Remove the unused variable `n'.
760 From Albert Chin-A-Young.
762 2001-09-18 Marc Autret <autret_m@epita.fr>
764 * doc/bison.1: Update.
765 * doc/bison.texinfo (Bison Options): Update --defines and --graph
767 (Option Cross Key): Update.
770 2001-09-18 Marc Autret <autret_m@epita.fr>
772 * tests/regression.at: New test (comment in %union).
774 2001-09-18 Marc Autret <autret_m@epita.fr>
776 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
778 Reported by Keith Browne.
780 2001-09-18 Marc Autret <autret_m@epita.fr>
782 * tests/output.at: Add tests for --defines and --graph.
784 2001-09-18 Marc Autret <autret_m@epita.fr>
786 * tests/output.at: Removes tests of %{header,src}_extension features.
788 2001-09-18 Akim Demaille <akim@epita.fr>
790 * tests/Makefile.am (package.m4): New.
791 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
792 (_AT_CHECK_CALC_ERROR): Likewise.
793 Factor the `, ' part of verbose error messages.
795 2001-09-18 Marc Autret <autret_m@epita.fr>
797 * src/getargs.c (longopts): Declare --defines and --graph as options
798 with optional arguments.
799 * src/files.h: Add extern declarations.
800 * src/files.c (spec_graph_file, spec_defines_file): New.
801 (output_files): Update.
802 Remove CPP-outed code.
804 2001-09-18 Marc Autret <autret_m@epita.fr>
806 Turn off %{source,header}_extension feature.
808 * src/files.c (compute_exts_from_gf): Update.
809 (compute_exts_from_src): Update.
810 (output_files): CPP-out useless code.
811 * src/files.h: Remove {header,source}_extension extern declarations.
812 * src/reader.c (parse_dquoted_param): CPP-out.
813 (parse_header_extension_decl): Remove.
814 (parse_source_extension_decl): Remove.
815 (read_declarations): Remove cases tok_{hdrext,srcext}.
816 * src/lex.c (percent_table): Remove {header,source}_extension entries.
817 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
819 2001-09-10 Akim Demaille <akim@epita.fr>
821 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
822 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
823 (AT_CHECK_OUTPUT): this.
824 Merely check ls' exit status, its output is useless.
826 2001-09-10 Akim Demaille <akim@epita.fr>
828 * tests/calc.at: Use m4_match.
829 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
831 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
833 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
835 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
837 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
838 * src/lex.h: Adjust prototype.
839 (token_t): Add `tok_undef'.
840 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
841 (parse_percent_token): Now returns token_t.
842 Add default statement in switch.
843 (lex): Separate `c' as an input variable, from the token_t result
845 (unlexed): Is a token_t.
847 2001-09-10 Akim Demaille <akim@epita.fr>
849 * configure.in: Bump to 1.29a.
851 2001-09-07 Akim Demaille <akim@epita.fr>
855 2001-08-30 Akim Demaille <akim@epita.fr>
857 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
858 * m4/atconfig.m4: Remove.
859 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
861 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
862 m4_if, m4_patsubst, and m4_regexp.
863 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
864 `input' file instead of echo.
866 2001-08-29 Akim Demaille <akim@epita.fr>
870 2001-08-29 Akim Demaille <akim@epita.fr>
874 2001-08-29 Paul Eggert <eggert@twinsun.com>
876 * src/bison.simple (yyparse): Don't take the address of an
877 item before the start of an array, as that doesn't conform to
880 2001-08-29 Robert Anisko <anisko_r@epita.fr>
882 * doc/bison.texinfo (Location Tracking Calc): New node.
884 2001-08-29 Paul Eggert <eggert@twinsun.com>
886 * src/output.c (output): Do not define const, as this now
887 causes more problems than it cures.
889 2001-08-29 Akim Demaille <akim@epita.fr>
891 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
893 Be sure to tag the `detailmenu'.
895 2001-08-29 Akim Demaille <akim@epita.fr>
897 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
898 download in a tmp dir.
900 2001-08-28 Marc Autret <autret_m@epita.fr>
902 * config/depcomp: New file.
904 2001-08-28 Marc Autret <autret_m@epita.fr>
906 * doc/bison.1 (mandoc): Adjust.
907 From Juan Manuel Guerrero.
909 2001-08-28 Marc Autret <autret_m@epita.fr>
911 * src/print_graph.c (print_state): Fix.
913 2001-08-27 Marc Autret <autret_m@epita.fr>
915 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
917 Echo modifications to the functions prototypes.
918 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
920 2001-08-27 Marc Autret <autret_m@epita.fr>
922 * src/vcg.c: Include `xalloc.h'.
923 (add_colorentry): New.
924 (add_classname): New.
926 * src/vcg.h: Add new prototypes.
928 2001-08-27 Akim Demaille <akim@epita.fr>
930 * Makefile.maint: Sync. again with CVS Autoconf.
932 2001-08-27 Akim Demaille <akim@epita.fr>
934 * Makefile.maint: Formatting changes.
935 (po-update, cvs-update, update): New targets.
938 2001-08-27 Akim Demaille <akim@epita.fr>
940 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
941 * Makefile.maint: Sync. with CVS Autoconf.
943 2001-08-27 Marc Autret <autret_m@epita.fr>
945 * src/vcg.h (struct infoname_s): New.
946 (struct colorentry_s): New.
947 (graph_s): New fields {vertical,horizontal}_order in structure.
948 Add `infoname' field.
949 Add `colorentry' field;
950 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
951 (G_HORIZONTAL_ORDER): New.
954 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
955 Add output of `infoname'.
956 Add output of `colorentry'.
958 2001-08-27 Marc Autret <autret_m@epita.fr>
960 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
961 This one shadowed a global parameter.
963 2001-08-24 Marc Autret <autret_m@epita.fr>
965 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
966 instead of `unsigned'.
967 (print_state): Do not call obstack_object_size () in obstack_grow ()
968 to avoid macro variables shadowing.
970 2001-08-23 Marc Autret <autret_m@epita.fr>
972 * src/lex.c (percent_table): Typo: s/naem/name/.
974 Normalize new options declarations.
976 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
978 * tests/suite.at: Exercise %header_extension and %source_extension.
980 2001-08-16 Marc Autret <autret_m@epita.fr>
982 * src/reader.c (parse_dquoted_param): New.
983 (parse_header_extension_decl): Use it.
984 (parse_source_extension_decl): Likewise.
986 2001-08-16 Marc Autret <autret_m@epita.fr>
988 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
989 (get_xxxx_str): Use assert () instead of complain ().
990 Remove return invokations in default cases.
991 (get_decision_str): Modify default behaviour. Remove second argument.
992 Echo modifications on calls.
995 2001-08-16 Marc Autret <autret_m@epita.fr>
997 * src/getargs.c (usage): Update with ``-g, --graph''.
999 2001-08-16 Marc Autret <autret_m@epita.fr>
1001 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1002 (Option Cross Key): Likewise.
1003 * doc/bison.1: Update.
1005 2001-08-15 Akim Demaille <akim@epita.fr>
1009 2001-08-15 Marc Autret <autret_m@epita.fr>
1011 * src/reader.c (readgram): Indent output macro YYSTYPE.
1012 (packsymbols): Likewise.
1013 (output_token_defines): Likewise.
1014 * src/files.c: Standardize.
1015 (compute_header_macro): New.
1016 (defines_obstack_save): New. Use compute_header_macro.
1017 (output_files): Update. Use defines_obstack_save.
1019 2001-08-15 Akim Demaille <akim@epita.fr>
1021 * doc/bison.texinfo (Table of Symbols): Document
1024 2001-08-15 Akim Demaille <akim@epita.fr>
1026 * missing: Update from CVS Automake.
1027 * config/config.guess, config/config.sub, config/texinfo.tex:
1028 Update from gnu.org.
1030 2001-08-15 Akim Demaille <akim@epita.fr>
1032 * Makefile.maint: Sync with CVS Autoconf.
1034 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1036 * doc/bison.texinfo: Include GNU Free Documentation License from
1038 * doc/fdl.texi: Add to package.
1040 2001-08-14 Marc Autret <autret_m@epita.fr>
1042 Turn on %{source,header}_extension features.
1044 * src/lex.c (percent_table): Un-CPP out header_extension and
1046 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1047 (compute_exts_from_src): Remove conditions. It restores priorities
1050 2001-08-14 Marc Autret <autret_m@epita.fr>
1052 * src/files.c (compute_base_names): Add extensions computing when
1053 `--file-prefix' used.
1054 Standardize function calls.
1056 2001-08-13 Marc Autret <autret_m@epita.fr>
1058 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1059 defining it (defined but null disables alloca).
1061 2001-08-13 Marc Autret <autret_m@epita.fr>
1063 * src/bison.simple (_yy_memcpy): CPP reformat.
1065 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1067 * tests/atconfig.in (CPPFLAGS): Fix.
1069 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1071 * doc/bison.texinfo: Include GNU General Public License from
1073 * doc/gpl.texi: Add to package.
1075 2001-08-10 Marc Autret <autret_m@epita.fr>
1077 * src/print_graph.h: Fix.
1078 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1080 2001-08-10 Akim Demaille <akim@epita.fr>
1082 * src/system.h: Provide default declarations for stpcpy, strndup,
1085 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1087 * doc/bison.texinfo (Locations): Update @$ stuff.
1089 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1091 * src/bison.simple (YYLLOC_DEFAULT): Update.
1094 2001-08-08 Marc Autret <autret_m@epita.fr>
1096 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1097 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1098 Reported by Fabrice Bauzac.
1100 2001-08-08 Marc Autret <autret_m@epita.fr>
1102 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1103 * src/vcg.c (output_node): Fix.
1104 * src/vcg.h: Cleanup.
1105 * src/print_graph.c: Add comments.
1106 (node_output_size): New global variable. Simplify the formatting of
1107 the VCG graph output.
1108 (print_actions): Unused code is now used. It notifies the final state
1109 and no action states in the VCG graph. It also give the reduce actions.
1110 The `shift and goto' edges are red and the `go to state' edges are
1112 Get the current node name and node_obstack by argument.
1113 (node_obstack): New variable.
1114 (print_state): Manage node_obstack.
1115 (print_core): Use node_obstack given by argument.
1116 A node is not only computed here but in print_actions also.
1117 (print_graph): CPP out useless code instead of commenting it.
1119 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1121 * tests/atconfig.in (CPPFLAGS): Fix.
1123 2001-08-07 Akim Demaille <akim@epita.fr>
1125 * src/print_graph.c (quote): New.
1126 (print_core): Use it.
1128 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1130 * src/vcg.c (complain.h): Include it.
1131 Unepitaize `return' invocations.
1132 [NDEBUG] (main): Remove.
1133 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1134 * src/files.c (open_files): Initialize graph_obstack.
1135 * src/print_graph.c (print_actions): CPP out useless code.
1136 (print_core): Don't output the last `\n' in labels.
1138 * src/files.c (output_files): Output the VCG file.
1139 * src/main.c (main): Invoke print_graph ();
1141 2001-08-06 Marc Autret <autret_m@epita.fr>
1143 Automaton VCG graph output.
1144 Using option ``-g'' or long option ``--graph'', you can generate
1145 a gram_filename.vcg file containing a VCG description of the LALR (1)
1146 automaton of your grammar.
1148 * src/main.c: Call to print_graph() function.
1149 * src/getargs.h: Update.
1150 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1151 (graph_flag): New flag.
1153 (getargs): Add case `g'.
1154 * src/files.c (graph_obstack): New obstack struct.
1155 (open_files): Initialize new obstack.
1156 (output_files): Saves graph_obstack if required.
1157 * src/files.h (graph_obstack): New extern declaration.
1158 * src/Makefile.am: Add new source files.
1160 2001-08-06 Marc Autret <autret_m@epita.fr>
1162 * src/print_graph.c, src/print_graph.h (graph): New.
1163 * src/vcg.h: New file.
1164 * src/vcg.c: New file, VCG graph handling.
1166 2001-08-06 Marc Autret <autret_m@epita.fr>
1168 Add of %source_extension and %header_extension which specify
1169 the source or/and the header output file extension.
1171 * src/files.c (compute_base_names): Remove initialisation of
1172 src_extension and header_extension.
1173 (compute_exts_from_gf): Update.
1174 (compute_exts_from_src): Update.
1175 (output_files): Update.
1176 * src/reader.c (parse_header_extension_decl): New.
1177 (parse_source_extension_decl): New.
1178 (read_declarations): New case statements for the new tokens.
1179 * src/lex.c (percent_table): Add entries for %source_extension
1180 and %header_extension.
1181 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1183 2001-08-06 Marc Autret <autret_m@epita.fr>
1185 * configure.in: Bump to 1.28c.
1186 * doc/bison.texinfo: Texinfo thingies.
1188 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1190 * tests/atconfig.in (CPPFLAGS): Add.
1191 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1193 2001-08-03 Akim Demaille <akim@epita.fr>
1197 2001-08-03 Akim Demaille <akim@epita.fr>
1199 * tests/Makefile.am (check-local): Ship testsuite.
1200 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1203 2001-08-03 Akim Demaille <akim@epita.fr>
1205 * configure.in: Try using -Wformat when compiling.
1207 2001-08-03 Akim Demaille <akim@epita.fr>
1209 * configure.in: Bump to 1.28b.
1211 2001-08-03 Akim Demaille <akim@epita.fr>
1213 * src/complain.c: Adjust strerror_r portability issues.
1215 2001-08-03 Akim Demaille <akim@epita.fr>
1219 2001-08-03 Akim Demaille <akim@epita.fr>
1221 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1222 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1223 * src/getargs.c: Include complain.h.
1224 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1225 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1227 2001-08-03 Akim Demaille <akim@epita.fr>
1229 * src/reader.c (readgram): Display hidden chars in error messages.
1231 2001-08-03 Akim Demaille <akim@epita.fr>
1233 Update to gettext 0.10.39.
1235 2001-08-03 Akim Demaille <akim@epita.fr>
1237 * lib/strspn.c: New.
1239 2001-08-01 Marc Autret <autret_m@epita.fr>
1241 * doc/bison.texinfo: Update.
1242 * doc/bison.1 (mandoc): Update.
1243 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1244 * src/files.c: Support output files extensions computing.
1245 (src_extension): New static variable.
1246 (header_extension): New static variable.
1248 (get_extension_index): New function, gets the index of an extension
1249 filename in a string.
1250 (compute_exts_from_gf): New function, computes extensions from the
1251 grammar file extension.
1252 (compute_exts_from_src): New functions, computes extensions from the
1253 C source file extension, file given by ``-o'' option.
1254 (compute_base_names): Update.
1255 (output_files): Update.
1257 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1259 * doc/bison.texi: Document @$.
1260 (Locations): New section.
1262 2001-07-18 Akim Demaille <akim@epita.fr>
1264 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1265 * config/prev-version.txt, config/move-if-change: New.
1266 * Makefile.am: Adjust.
1268 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1270 * src/bison.simple (yyparse): Suppress warning `comparaison
1271 between signed and unsigned'.
1273 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1275 * src/getargs.h (raw_flag): Remove.
1276 * src/getargs.c: Die on `-r'/`--raw'.
1277 * src/lex.c (parse_percent_token): Die on `%raw'.
1278 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1279 * tests/calc.at: Suppress test with option `--raw'.
1281 2001-07-14 Akim Demaille <akim@epita.fr>
1284 * configure.in: Require Autoconf 2.50.
1285 Update to gettext 0.10.38.
1287 2001-03-16 Akim Demaille <akim@epita.fr>
1289 * doc/bison.texinfo: ANSIfy the examples.
1291 2001-03-16 Akim Demaille <akim@epita.fr>
1293 * getargs.c (skeleton): New variable.
1294 (longopts): --skeleton is a new option.
1295 (shortopts, getargs): -S is a new option.
1296 * getargs.h: Declare skeleton.
1297 * output.c (output_parser): Use it.
1299 2001-03-16 Akim Demaille <akim@epita.fr>
1301 * m4/strerror_r.m4: New.
1302 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1303 * lib/error.h, lib/error.c: Update.
1305 2001-03-16 Akim Demaille <akim@epita.fr>
1307 * src/getargs.c (longopts): Clean up.
1309 2001-02-21 Akim Demaille <akim@epita.fr>
1311 * src/reader.c (gensym): `gensym_count' is your own.
1312 Use a static buf to create the symbol name, as token_buffer is no
1315 2001-02-08 Akim Demaille <akim@epita.fr>
1317 * src/conflicts.c (conflict_report): Be sure not to append to res
1318 between two calls, which could happen if both first sprintf were
1319 skipped, but not the first cp += strlen.
1321 2001-02-08 Akim Demaille <akim@epita.fr>
1323 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1324 New, from fileutils 4.0.37.
1325 * configure.in: Require Autoconf 2.49c. I took some time before
1326 making this decision. This is the only way out for portability
1327 issues in Bison, it would mean way too much duplicate effort to
1328 import in Bison features implemented in 2.49c since 2.13.
1329 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1331 2001-02-02 Akim Demaille <akim@epita.fr>
1333 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1334 * lib/xalloc.h, lib/xmalloc.c: Update.
1336 2001-01-19 Akim Demaille <akim@epita.fr>
1338 Get rid of the ad hoc handling of token_buffer in the scanner: use
1341 * src/lex.c (token_obstack): New.
1342 (init_lex): Initialize it. No longer call...
1343 (grow_token_buffer): this. Remove it.
1344 Adjust all the places which used it to use the obstack.
1346 2001-01-19 Akim Demaille <akim@epita.fr>
1348 * src/lex.h: Rename all the tokens:
1349 s/\bENDFILE\b/tok_eof/g;
1350 s/\bIDENTIFIER\b/tok_identifier/g;
1352 Let them be enums, not #define, to ease debugging.
1353 Adjust all the code.
1355 2001-01-18 Akim Demaille <akim@epita.fr>
1357 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1358 * src/lex.c (maxtoken, grow_token_buffer): Static.
1360 2001-01-18 Akim Demaille <akim@epita.fr>
1362 Since we now use obstacks, more % directives can be enabled.
1364 * src/lex.c (percent_table): Also accept `%yacc',
1365 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1367 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1368 instead of returning a token.
1369 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1370 * src/reader.c (read_declarations): Adjust.
1371 * src/files.c (open_files): Don't call `compute_base_names', don't
1372 compute `attrsfile' since they depend upon data which might be
1373 *in* the input file now.
1374 (output_files): Do it here.
1375 * src/output.c (output_headers): Document the fact that this patch
1376 introduces a guaranteed SEGV for semantic parsers.
1377 * doc/bison.texinfo: Document them.
1378 * tests/suite.at: Exercise these %options.
1380 2000-12-20 Akim Demaille <akim@epita.fr>
1382 Also handle the output file (--verbose) with obstacks.
1384 * files.c (foutput): Remove.
1385 (output_obstack): New.
1386 Adjust all dependencies.
1387 * src/conflicts.c: Return a string.
1388 * src/system.h (obstack_grow_string): Rename as...
1389 (obstack_sgrow): this. Be ready to work with non literals.
1390 (obstack_fgrow4): New.
1392 2000-12-20 Akim Demaille <akim@epita.fr>
1394 * src/files.c (open_files): Fix the computation of short_base_name
1395 in the case of `-o foo.tab.c'.
1397 2000-12-20 Akim Demaille <akim@epita.fr>
1399 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1400 (copy_dollar): Now that everything uses obstacks, get rid of the
1403 2000-12-20 Akim Demaille <akim@epita.fr>
1405 * src/files.c (open_files): Actually the `.output' file is based
1406 on the short_base_name, not base_name.
1407 * tests/suite.at (Checking output file names): Adjust.
1409 2000-12-20 Akim Demaille <akim@epita.fr>
1411 * src/bison.s1: Remove, we now use directly...
1412 * src/bison.simple: this.
1413 * src/Makefile.am: Use pkgdata instead of data.
1415 2000-12-20 Akim Demaille <akim@epita.fr>
1417 * src/files.c (guard_obstack): New.
1418 (open_files): Initialize it.
1419 (output_files): Dump it...
1420 * src/files.h: Export it.
1421 * src/reader.c (copy_guard): Use it.
1423 2000-12-19 Akim Demaille <akim@epita.fr>
1425 * src/files.c (outfile, defsfile, actfile): Removed as global
1427 (open_files): Don't compute them.
1428 (output_files): Adjust.
1429 (base_name, short_base_name): Be global.
1430 Adjust dependencies.
1432 2000-12-19 Akim Demaille <akim@epita.fr>
1434 * src/files.c (strsuffix): New.
1435 (stringappend): Be just like strcat but allocate.
1436 (base_names): Eve out from open_files.
1437 Try to simplify the rather hairy computation of base_name and
1439 (open_files): Use it.
1440 * tests/suite.at (Checking output file names): New test.
1442 2000-12-19 Akim Demaille <akim@epita.fr>
1444 * src/system.h (obstack_grow_literal_string): Rename as...
1445 (obstack_grow_string): this.
1446 * src/output.c (output_parser): Recognize `%% actions' instead of
1448 * src/bison.s1: s/$/%% actions/.
1449 * src/bison.hairy: Likewise.
1451 2000-12-19 Akim Demaille <akim@epita.fr>
1453 * src/output.c (output_parser): Compute the `#line' lines when
1455 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1456 Suggested by Hans Aberg.
1458 2000-12-19 Akim Demaille <akim@epita.fr>
1460 Let the handling of the skeleton files be local to the procedures
1463 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1465 (fparser, open_extra_files): Remove.
1466 (open_files, output_files): Don't take care of fparser.
1467 * src/files.h: Adjust.
1468 * src/output.c (output_parser): Open and close the file to the
1470 * src/reader.c (read_declarations): When %semantic_parser, open
1473 2000-12-19 Akim Demaille <akim@epita.fr>
1475 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1476 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1478 2000-12-19 Akim Demaille <akim@epita.fr>
1480 * src/files.c (open_files): Yipee! We no longer need all the code
1481 looking for `/tmp' since we have no tmp file.
1483 2000-12-19 Akim Demaille <akim@epita.fr>
1485 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1487 * src/files.c (open_files): Less dependency on MSDOS etc.
1489 2000-12-14 Akim Demaille <akim@epita.fr>
1491 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1492 Provide a default definition.
1493 Use it when executing the default @ action.
1494 * src/reader.c (reader_output_yylsp): No longer include
1495 `timestamp' and `text' in the default YYLTYPE.
1497 2000-12-12 Akim Demaille <akim@epita.fr>
1499 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1500 (copy_guard): Quote the file names.
1501 Reported by Laurent Mascherpa.
1503 2000-12-12 Akim Demaille <akim@epita.fr>
1505 * src/output.c (output_headers, output_program, output): Be sure
1506 to escape special characters when outputting filenames.
1507 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1508 (output_headers): Don't depend on them, Use ACTSTR.
1510 2000-11-17 Akim Demaille <akim@epita.fr>
1512 * lib/obstack.h: Formatting changes.
1513 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1514 prevents type checking.
1515 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1516 cast the value to (void *): assigning a `foo *' to a `void *'
1518 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1519 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1522 2000-11-17 Akim Demaille <akim@epita.fr>
1524 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1526 (suite.m4, regression.m4, calc.m4): these.
1527 * tests/atgeneral.m4: Update from CVS Autoconf.
1529 2000-11-17 Akim Demaille <akim@epita.fr>
1531 * tests/regression.m4 (%union and --defines): New test,
1532 demonstrating a current bug in the obstack implementation.
1534 2000-11-17 Akim Demaille <akim@epita.fr>
1536 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1538 Use them to declare the variables which are global or local to
1541 2000-11-17 Akim Demaille <akim@epita.fr>
1543 * acconfig.h: Remove, no longer used.
1545 2000-11-07 Akim Demaille <akim@epita.fr>
1547 * src: s/Copyright (C)/Copyright/g.
1549 2000-11-07 Akim Demaille <akim@epita.fr>
1551 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1553 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1555 2000-11-07 Akim Demaille <akim@epita.fr>
1557 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1558 Merge in a single CPP if/else.
1560 2000-11-07 Akim Demaille <akim@epita.fr>
1562 * src/output.c (output): Remove useless variables.
1563 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1564 argument `data' for consistency with the prototypes.
1566 (obstack_copy, obstack_copy0): Rename the second argument as
1567 `address' for consistency. Qualify it `const'.
1568 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1569 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1570 `const' their input argument (`data' or `address').
1571 Adjust the corresponding macros to include `const' in casts.
1573 2000-11-03 Akim Demaille <akim@epita.fr>
1575 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1576 s/PFILE1/BISON_HAIRY/.
1577 Adjust dependencies.
1579 2000-11-03 Akim Demaille <akim@epita.fr>
1581 For some reason, this was not applied.
1583 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1584 `unlink': it's no longer used.
1586 2000-11-03 Akim Demaille <akim@epita.fr>
1588 * src/files.c (skeleton_find): New function, eved out of...
1589 (open_files, open_extra_files): here.
1591 2000-11-03 Akim Demaille <akim@epita.fr>
1595 * src/files.c (obstack_save): New function.
1596 (done): Rename as...
1597 (output_files): this.
1599 * src/main.c (main): Don't use `atexit' to register `done', since
1600 it no longer has to remove tmp files, just call `output_files'
1601 when there are no errors.
1603 2000-11-02 Akim Demaille <akim@epita.fr>
1605 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1606 `unlink': it's no longer used.
1607 * src/files.h: Formatting changes.
1609 2000-11-02 Akim Demaille <akim@epita.fr>
1611 Remove the last uses of mktemp and unlink/delete.
1613 * src/files.c (fdefines, ftable): Removed.
1614 (defines_ostack, table_obstack): New.
1615 Adjust dependencies of the former into uses of the latter.
1616 * src/output.c (output_short_or_char_table, output_short_table):
1617 Convert to using obstacks.
1618 * src/reader.c (copy_comment2): Accept one FILE * and two
1620 (output_token_defines, reader_output_yylsp): Use obstacks.
1621 * src/system.h (obstack_fgrow3): New.
1623 2000-11-01 Akim Demaille <akim@epita.fr>
1625 Change each use of `fattrs' into a use of `attrs_obstack'.
1627 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1628 * src/files.c (fattrs): Remove.
1629 (attrs_obstack): New.
1630 Adjust all dependencies.
1631 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1633 2000-11-01 Akim Demaille <akim@epita.fr>
1636 Change each use of `faction' into a use of `action_obstack'.
1638 * lib/obstack.h, lib/obstack.c: New files.
1639 * src/files.c (faction): Remove.
1640 (action_obstack): New.
1641 Adjust all dependencies.
1643 2000-10-20 Akim Demaille <akim@epita.fr>
1645 * lib/quote.h (PARAMS): New macro. Use it.
1647 2000-10-16 Akim Demaille <akim@epita.fr>
1649 * src/output.c (output_short_or_char_table): New function.
1650 (output_short_table, output_token_translations): Use it.
1651 (goto_actions): Use output_short_table.
1653 2000-10-16 Akim Demaille <akim@epita.fr>
1655 * src/symtab.c (bucket_new): New function.
1658 * src/output.c (output_short_table): New argument to display the
1659 comment associated with the table.
1660 Adjust dependencies.
1661 (output_gram): Use it.
1662 (output_rule_data): Nicer output layout for YYTNAME.
1664 2000-10-16 Akim Demaille <akim@epita.fr>
1666 * src/lex.c (read_typename): New function.
1668 * src/reader.c (copy_dollar): Likewise.
1670 2000-10-16 Akim Demaille <akim@epita.fr>
1672 * src/reader.c (copy_comment2): Expect the input stream to be on
1673 the `/' which is suspected to open a comment, instead of being
1674 called after `//' or `/*' was read.
1675 (copy_comment, copy_definition, parse_union_decl, copy_action)
1676 (copy_guard): Adjust.
1678 2000-10-16 Akim Demaille <akim@epita.fr>
1680 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1681 `read_signed_integer'.
1683 2000-10-16 Akim Demaille <akim@epita.fr>
1685 * src/reader.c (copy_dollar): New function.
1686 (copy_guard, copy_action): Use it.
1688 2000-10-16 Akim Demaille <akim@epita.fr>
1690 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1691 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1692 New files, from Fileutils 4.0.27.
1693 * src/main.c (printable_version): Remove.
1694 * src/lex.c, src/reader.c: Use `quote'.
1696 2000-10-04 Akim Demaille <akim@epita.fr>
1698 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1700 2000-10-04 Akim Demaille <akim@epita.fr>
1702 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1704 2000-10-04 Akim Demaille <akim@epita.fr>
1706 When a literal string is used to define two different tokens,
1707 `bison -v' segfaults.
1708 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1710 * tests/regression.m4: New file.
1711 Include the core of the sample provided by Piotr Gackiewicz.
1712 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1715 2000-10-04 Akim Demaille <akim@epita.fr>
1717 * src/reader.c (parse_expect_decl): Keep `count' within the size
1721 2000-10-02 Paul Eggert <eggert@twinsun.com>
1723 * bison.s1 (yyparse): Assign the default value
1724 unconditionally, to avoid a GCC warning and make the parser a
1727 2000-10-02 Akim Demaille <akim@epita.fr>
1729 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1732 2000-10-02 Akim Demaille <akim@epita.fr>
1734 * src/derives.c, src/print.c, src/reduce.c: To ease the
1735 translation, move some `\n' out of the translated strings.
1737 2000-10-02 Akim Demaille <akim@epita.fr>
1739 The location tracking mechanism is precious for parse error
1740 messages. Nevertheless, it is enabled only when `@n' is used in
1741 the grammar, which is a different issue (you can use it in error
1742 message, but not in the grammar per se). Therefore, there should
1743 be another means to enable it.
1745 * src/getargs.c (getargs): Support `--locations'.
1747 * src/getargs.h (locationsflag): Export it.
1748 * src/lex.c (percent_table): Support `%locations'.
1749 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1750 with `locationsflag'.
1751 * doc/bison.texinfo: Document `--locations' and `%locations'.
1753 * tests/calc.m4: Test it.
1755 For regularity of the names, replace each
1756 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1757 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1758 In addition replace each `flag' with `_flag'.
1760 2000-10-02 Akim Demaille <akim@epita.fr>
1762 Also test parse error messages, including with YYERROR_VERBOSE.
1764 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1766 Use it to check the computations.
1767 Use it to check `nonassoc' is honored.
1768 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1769 `--yyerror-verbose'.
1770 (_AT_CHECK_CALC): Adjust to this option.
1771 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1773 2000-10-02 Akim Demaille <akim@epita.fr>
1775 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1776 the latter demonstrates a flaw in the handling of non debugging
1777 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1778 was used in order to simplify:
1794 unfortunately this leads to a CPP conflict when
1795 `--name-prefix=foo' is used since it produces `#define yydebug
1798 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1799 (YYDPRINTF): New macro.
1801 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1803 Also test `--verbose', `--defines' and `--name-prefix'.
1805 2000-10-02 Akim Demaille <akim@epita.fr>
1807 Improve the readability of the produced parsers.
1809 * src/bison.s1: Formatting changes.
1810 Improve the comment related to the `$' mark.
1811 (yydefault): Don't fall through to `yyresume': `goto' there.
1812 * src/output.c (output_parser): When the `$' is met, skip the end
1814 New variable, `number_of_dollar_signs', to check there's exactly
1815 one `$' in the parser skeleton.
1817 2000-10-02 Akim Demaille <akim@epita.fr>
1819 * lib/xstrdup.c: New file, from the fileutils.
1820 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1821 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1822 instead of strlen + xmalloc + strcpy.
1823 * src/symtab.c (copys): Remove, use xstrdup instead.
1825 2000-10-02 Akim Demaille <akim@epita.fr>
1827 * src/gram.h (associativity): New enum type which replaces the
1828 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1829 `right_assoc', `left_assoc' and `non_assoc'.
1830 Adjust all dependencies.
1831 * src/reader.c: Formatting changes.
1832 (LTYPESTR): Don't define it, use it as a literal in
1833 `reader_output_yylsp'.
1834 * src/symtab.h (symbol_class): New enum type which replaces the
1835 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1836 `sunknown', `stoken and `snterm'.
1838 2000-10-02 Akim Demaille <akim@epita.fr>
1840 * src/getargs.c (fixed_outfiles): Rename as...
1841 (yaccflag): for consistency and accuracy.
1842 Adjust dependencies.
1844 2000-10-02 Akim Demaille <akim@epita.fr>
1846 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1847 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1848 difficult and introduced a lot of core dump. It turns out that
1849 Bison used an implementation of `xmalloc' based on `calloc', and
1850 at various places it does depend upon the initialization to 0. I
1851 have not tried to isolate the pertinent places, and all the former
1852 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1853 someone should address this issue.
1855 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1856 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1858 Adjust dependencies.
1859 * src/warshall.h: New file.
1862 2000-10-02 Akim Demaille <akim@epita.fr>
1864 Various anti-`extern in *.c' changes.
1866 * src/system.h: Include `assert.h'.
1868 2000-10-02 Akim Demaille <akim@epita.fr>
1870 * src/state.h (nstates, final_state, first_state, first_shift)
1871 (first_reduction): Move their exportation from here...
1872 * src/LR0.h: to here.
1873 Adjust dependencies.
1874 * src/getargs.c (statisticsflag): New variable.
1875 Add support for `--statistics'.
1876 Adjust dependencies.
1878 Remove a lot of now useless `extern' statements in most files.
1880 2000-10-02 Akim Demaille <akim@epita.fr>
1882 * src/LR0.h: New file.
1885 2000-10-02 Akim Demaille <akim@epita.fr>
1887 * src/print.h: New file.
1889 * src/print.c: Formatting and ordering changes.
1890 (verbose, terse): Replace with...
1891 (print_results): this new function.
1892 Adjust dependencies.
1894 2000-10-02 Akim Demaille <akim@epita.fr>
1896 * src/conflicts.c (conflict_report): New function.
1897 (conflict_log, verbose_conflict_log): Replace with...
1898 (print_conflicts): this function.
1899 Adjust dependencies.
1900 * src/conflicts.h: New file.
1901 Propagate its inclusion.
1903 2000-10-02 Akim Demaille <akim@epita.fr>
1905 * src/nullable.h: New file.
1906 Propagate its inclusion.
1907 * src/nullable.c: Formatting changes.
1909 2000-10-02 Akim Demaille <akim@epita.fr>
1911 * src/reduce.h: New file.
1912 Propagate its inclusion.
1913 * src/reduce.c: Topological sort and other formatting changes.
1914 (bool, TRUE, FALSE): Move their definition to...
1915 * src/system.h: here.
1917 2000-10-02 Akim Demaille <akim@epita.fr>
1919 * src/files.c: Formatting changes.
1920 (tryopen, tryclose, openfiles): Rename as...
1921 (xfopen, xfclose, open_files): this.
1922 (stringappend): static.
1923 * src/files.h: Complete the list of exported symbols.
1926 2000-10-02 Akim Demaille <akim@epita.fr>
1928 * src/reader.h: New file.
1929 Propagate its use instead of tedious list of `extern' and
1931 * src/reader.c: Formatting changes, topological sort,
1934 2000-10-02 Akim Demaille <akim@epita.fr>
1936 * src/lex.h: Prototype `lex.c' exported functions.
1937 * src/reader.c: Adjust.
1938 * src/lex.c: Formatting changes.
1939 (safegetc): Rename as...
1942 2000-10-02 Akim Demaille <akim@epita.fr>
1944 * src/lalr.h: New file.
1945 Propagate its inclusion instead of prototypes and `extern'.
1946 * src/lalr.c: Formatting changes, topological sorting etc.
1948 2000-10-02 Akim Demaille <akim@epita.fr>
1950 * src/output.c (token_actions): Introduce a temporary array,
1951 YYDEFACT, that makes it possible for this function to use
1954 2000-10-02 Akim Demaille <akim@epita.fr>
1956 `user_toknums' is output as a `short[]' in `output.c', while it is
1957 defined as a `int[]' in `reader.c'. For consistency with the
1958 other output tables, `user_toknums' is now defined as a table of
1961 * src/reader.c (user_toknums): Be a short table instead of an int
1963 Adjust dependencies.
1965 Factor the short table outputs.
1967 * src/output.c (output_short_table): New function.
1968 * src/output.c (output_gram, output_stos, output_rule_data)
1969 (output_base, output_table, output_check): Use it.
1971 2000-10-02 Akim Demaille <akim@epita.fr>
1973 * src/output.c (output): Topological sort of the functions, in
1974 order to get rid of the `static' prototypes.
1975 No longer use `register'.
1976 * src/output.h: New file.
1977 Propagate its inclusion in files explicitly prototyping functions
1980 2000-09-21 Akim Demaille <akim@epita.fr>
1982 * src/atgeneral.m4: Update from Autoconf.
1984 2000-09-21 Akim Demaille <akim@epita.fr>
1986 * src/closure.h: New file.
1987 * src/closure.c: Formatting changes, topological sort over the
1988 functions, use of closure.h.
1989 (initialize_closure, finalize_closure): Rename as...
1990 (new_closure, free_closure): these. Adjust dependencies.
1991 * src/LR0.c: Formatting changes, topological sort, use of
1993 (initialize_states): Rename as...
1995 * src/Makefile.am (noinst_HEADERS): Adjust.
1997 2000-09-20 Akim Demaille <akim@epita.fr>
1999 * src/acconfig.h: Don't protect config.h against multiple
2001 Don't define PARAMS.
2002 * src/system.h: Define PARAMS.
2003 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2004 purpose of config.h. system.h must not try to fix wrong
2005 definitions in config.h.
2007 2000-09-20 Akim Demaille <akim@epita.fr>
2009 * src/derives.h: New file.
2010 * src/main.c, src/derives.h: Use it.
2012 * src/Makefile.am (noinst_HEADERS): Adjust.
2014 2000-09-20 Akim Demaille <akim@epita.fr>
2016 * tests/atgeneral.m4: Update from Autoconf.
2017 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2018 (AT_CHECK_CALC): New macros.
2019 Use these macros to test bison with options `', `--raw',
2020 `--debug', `--yacc', `--yacc --debug'.
2022 2000-09-19 Akim Demaille <akim@epita.fr>
2024 * src/output.c: Formatting changes.
2025 * src/machine.h: Remove, leaving its contents in...
2026 * src/system.h: here.
2028 Adjust all dependencies on stdio.h and machine.h.
2029 * src/getargs.h: New file.
2030 Let all `extern' declarations about getargs.c be replaced with
2031 inclusion of `getargs.h'.
2032 * src/Makefile.am (noinst_HEADERS): Adjust.
2034 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2036 (yyerror): Returns void, not int.
2037 * doc/bison.texinfo: Formatting changes.
2039 2000-09-19 Akim Demaille <akim@epita.fr>
2041 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2044 2000-09-18 Akim Demaille <akim@epita.fr>
2046 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2047 * src/Makefile.am (INCLUDES): Don't.
2048 Be ready to fetch headers in lib/.
2050 2000-09-18 Akim Demaille <akim@epita.fr>
2052 * doc/bison.texinfo: Update the copyright.
2053 ANSIfy and GNUify the examples.
2054 Remove the old menu.
2056 2000-09-18 Akim Demaille <akim@epita.fr>
2058 First set of tests: use the `calc' example from the documentation.
2060 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2061 is defined only when YYDEBUG is.
2062 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2063 * src/files.c (tryopen, tryclose): Formatting changes.
2064 Move to the top and be static.
2065 * src/reader.c (read_signed_integer): Likewise.
2066 * tests/calc.m4: New file.
2067 * Makefile.am, suite.m4: Adjust.
2068 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2070 2000-09-18 Akim Demaille <akim@epita.fr>
2072 Add support for an Autotest test suite for Bison.
2074 * m4/m4.m4, m4/atconfig.m4: New files.
2075 * m4/Makefile.am (EXTRA_DIST): Adjust.
2076 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2078 * src/getargs.c: Display a more standard --version message.
2079 * src/reader.c (reader): Formatting changes.
2080 No longer depend upon VERSION_STRING.
2081 * configure.in: No longer use `dnl'.
2082 Set up the test suite and the new directory `tests/.
2083 (VERSION_STRING): Remove.
2085 2000-04-14 Akim Demaille <akim@epita.fr>
2087 * src/reader.c (copy_comment2): New function, same as former
2088 `copy_comment', but outputs into two FILE *.
2089 (copy_comment): Use it.
2090 (parse_union_decl): Use it.
2091 (get_type, parse_start_decl): Use the same `invalid' message.
2092 (parse_start_decl, parse_union_decl): Use the same `multiple'
2094 (parse_union_decl, copy_guard, copy_action): Use the same
2095 `unmatched' message.
2096 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2098 2000-03-31 Akim Demaille <akim@epita.fr>
2100 * src/files.c (tryopen, tryclose): Move to the top.
2103 2000-03-31 Akim Demaille <akim@epita.fr>
2105 * src/main.c (main): Don't call `done', exit does it.
2107 2000-03-31 Akim Demaille <akim@epita.fr>
2109 * allocate.c: s/return (foo)/return foo/.
2112 * output.c: Likewise.
2113 * reader.c: Likewise.
2114 * symtab.c: Likewise.
2115 * vmsgetargs.c: Likewise.
2117 2000-03-31 Akim Demaille <akim@epita.fr>
2119 Clean up the error reporting functions.
2121 * src/report.c: New file.
2122 * src/report.h: Likewise.
2123 * src/Makefile.am: Adjust.
2124 * m4/error.m4: New file.
2125 * m4/Makefile.am: Adjust.
2126 * configure.in (jm_PREREQ_ERROR): Call it.
2127 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2129 (fatal, fatals): Remove. All callers use complain.c::fatal.
2130 (warn, warni, warns, warnss, warnss): Remove. All callers use
2131 complain.c::complain.
2132 (toomany): Remove, use fatal instead.
2133 * src/files.c (done): No argument, use complain_message_count.
2134 * src/main.c (main): Register `done' to `atexit'.
2136 * src/getargs.c (usage): More `fputs', less `fprintf'.
2138 2000-03-28 Akim Demaille <akim@epita.fr>
2140 * lib/: New directory.
2141 * Makefile.am (SUBDIRS): Adjust.
2142 * configure.in: Adjust.
2143 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2145 * src/alloca.c: Moved to lib/.
2146 * src/getopt.c: Likewise.
2147 * src/getopt1.c: Likewise.
2148 * src/getopt.h: Likewise.
2149 * src/ansi2knr.c: Likewise.
2150 * src/ansi2knr.1: Likewise.
2151 * src/Makefile.am: Adjust.
2152 * lib/Makefile.am: New file.
2154 2000-03-28 Akim Demaille <akim@epita.fr>
2156 * src/getargs.c (usage): Refresh the help message.
2158 2000-03-17 Akim Demaille <akim@epita.fr>
2160 * src/getopt1.c: Updated from textutils 2.0e
2161 * src/getopt.c: Likewise.
2162 * src/getopt.h: Likewise.
2164 2000-03-17 Akim Demaille <akim@epita.fr>
2166 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2167 the file name, not the whole `#line LINE FILE'.
2169 2000-03-17 Akim Demaille <akim@epita.fr>
2171 On syntax errors, report the token on which we choked.
2173 * src/bison.s1 (yyparse): In the label yyerrlab, when
2174 YYERROR_VERBOSE, add yychar in msg.
2176 2000-03-17 Akim Demaille <akim@epita.fr>
2178 * src/reader.c (copy_at): New function.
2179 (copy_guard): Use it.
2180 (copy_action): Use it.
2182 2000-03-17 Akim Demaille <akim@epita.fr>
2184 Be kind to translators, save some useless translations.
2186 * src/main.c (banner): New function.
2187 (fatal_banner): Use it.
2188 (warn_banner): Use it.
2190 2000-03-17 Akim Demaille <akim@epita.fr>
2192 * src/reader.c (copy_definition): Use copy_string and
2193 copy_comment. Removed now unused `match', `ended',
2195 (copy_comment, copy_string): Moved, to be visible from
2198 2000-03-17 Akim Demaille <akim@epita.fr>
2200 * src/reader.c (copy_string): Declare `static inline'. No
2201 problems with inline, since it is checked by configure.
2202 (copy_comment): Likewise.
2204 2000-03-17 Akim Demaille <akim@epita.fr>
2206 * src/reader.c (packsymbols): Formatting changes.
2208 2000-03-17 Akim Demaille <akim@epita.fr>
2210 * src/reader.c (copy_comment): New function, factored out from:
2211 (copy_action): Use it. Removed now unused `match', `ended',
2213 (copy_guard): Likewise.
2215 2000-03-17 Akim Demaille <akim@epita.fr>
2217 * src/reader.c (copy_string): New function, factored out from:
2218 (copy_action): Use it.
2219 (copy_guard): Likewise.
2221 2000-03-17 Akim Demaille <akim@epita.fr>
2223 Change the handling of @s so that they behave exactly like $s.
2224 There is now a pseudo variable @$ (readble and writable), location
2225 of the lhs of the rule (by default ranging from the location of
2226 the first symbol of the rhs, to the location of the last symbol,
2227 or, if the rhs is empty, YYLLOC).
2229 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2231 (yyparse): When providing a default semantic action, provide a
2232 default location action.
2233 (after the $): No longer change `*YYLSP', just stack YYLOC the
2234 same way you stack YYVAL.
2235 * src/reader.c (read_declarations): Use warns.
2236 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2237 (copy_action, case '@'): Likewise.
2238 Use a standard error message, to save useless work from
2241 2000-03-17 Akim Demaille <akim@epita.fr>
2243 * src/bison.s1: Formatting and cosmetics changes.
2244 * src/reader.c: Likewise.
2245 Update the Copyright notice.
2247 2000-03-17 Akim Demaille <akim@epita.fr>
2249 * src/bison.s1 (#line): All set to `#line' only, since the
2250 Makefile now handles them.
2252 2000-03-16 Akim Demaille <akim@epita.fr>
2254 * src/output.c (output_rule_data): Output the documentation of
2256 (Copyright notice): Update.
2259 2000-03-16 Akim Demaille <akim@epita.fr>
2261 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2262 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2263 One `#if YYDEBUG' remains, since it uses variables which are
2264 defined only if `YYDEBUG != 0'.
2266 2000-03-16 Akim Demaille <akim@epita.fr>
2268 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2269 and related variables so that the similarities are highlighted.
2271 2000-03-16 Akim Demaille <akim@epita.fr>
2273 * src/bison.s1: Properly indent CPP directives.
2275 2000-03-16 Akim Demaille <akim@epita.fr>
2277 * src/bison.s1: Properly indent the `alloca' CPP section.
2279 2000-03-16 Akim Demaille <akim@epita.fr>
2281 Do not hard code values of directories in `configure.in'.
2282 Update the `configure' tool chain.
2284 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2286 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2287 (AC_OUTPUT): Add m4/Makefile.
2288 Bump to bison 1.28a, 1.29 has never been released.
2289 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2290 handled via src/Makefile.am.
2291 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2292 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2294 * Makefile.am (SUBDIRS): Add m4.
2295 (ACLOCAL_AM_FLAGS): New variable.
2296 (AUTOMAKE_OPTIONS): Add check-news.
2297 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2298 the proper line number and file name.
2299 (DEFS): Propagate the location of bison library files and of the
2301 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2303 * acinclude.m4: Remove, replaced by the directory m4.
2304 * m4/Makefile.am (EXTRA_DIST): New variable.
2305 * m4/gettext.m4: New file, from the fileutils.
2306 * m4/lcmessage.m4: Likewise
2307 * m4/progtest.m4: Likewise.
2308 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2310 2000-03-10 Akim Demaille <akim@epita.fr>
2313 Formatting changes of various comments.
2314 Respect the GNU coding standards at various places.
2315 Don't use `_()' when no translation is needed.
2317 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2320 OS/2 honors TMPDIR environment variable.
2322 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2324 * doc/bison.texinfo: Tweaked spelling and grammar.
2326 Removed reference to price of printed copy.
2327 Mention BISON_SIMPLE and BISON_HAIRY.
2329 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2331 * configure.in, NEWS:
2332 Bison 1.29 released.
2334 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2336 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2337 Added reference card.
2339 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2341 * po/ru.po: Added Russian translation.
2343 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2345 * configure.in: Added Russian translation.
2347 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2349 * configure.in, NEWS, README:
2350 Released version 1.28.
2352 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2355 Squashed redefinition warning on some systems.
2357 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2358 Have configure build version string instead of relying on ANSI string
2361 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2363 * po/POTFILES.in: Got rid of version.c.
2365 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2367 * acconfig.h, configure.in:
2368 Have configure build version string instead of relying on ANSI string
2371 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2374 Dropped mention of `+' for long-named options.
2376 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2378 * src/files.c: Added <unistd.h> for unlink().
2380 * src/Makefile.am, src/system.h:
2383 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2385 * README: Added a FAQ list.
2387 * configure.in, acconfig.h:
2390 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2392 * doc/FAQ, doc/Makefile.am:
2395 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2397 * src/alloc.h, src/symtab.h, src/version.c:
2398 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2400 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2402 * src/.cvsignore, src/Makefile.am:
2403 Reorganized: sources in `src', documentation in `doc'.
2405 * src/lex.c (literalchar):
2406 fixed the code for escaping double quotes (thanks
2409 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2411 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2412 Adjusted paths to reflect directory reorganization.
2414 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2416 * doc/.cvsignore, doc/Makefile.am:
2417 Reorganized: sources in `src', documentation in `doc'.
2419 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2422 Updated AC_INIT file to reflect directory reorganization.
2424 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2425 Reorganized: sources in `src', documentation in `doc'.
2427 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2430 Don't declare calloc() and realloc() if not necessary.
2432 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2434 * configure.in, acconfig.h, acinclude.m4:
2435 Don't declare calloc() and realloc() if not necessary.
2437 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2439 * po/.cvsignore: Added i18n support.
2441 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2443 * acconfig.h, configure.in, Makefile.am:
2446 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2448 * src/bison.s1: Fixed #line numbers.
2450 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2452 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2453 Added PO files from Translation Project.
2455 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2458 Added support for non-ANSI compilers (ansi2knr).
2460 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2462 * configure.in: Bumped version number to 1.27.
2465 Added `bison.simple' to list of files removed by `make distclean'.
2467 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2469 * src/files.c, src/files.h:
2470 Defined locations of parser files in config.h instead of Makefile.
2472 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2474 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2475 Defined locations of parser files in config.h instead of Makefile.
2477 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2480 Removed inappropriate use of $< macro.
2482 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2484 * po/Makefile.in.in, po/POTFILES.in:
2485 Add `po' directory skeleton.
2487 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2489 * README: Document help-bison list.
2491 * configure.in: Add check for mkstemp().
2493 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2495 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2496 Hush a few compiler warnings.
2499 Add tryclose(), which verifies that fclose was successful.
2500 Hush a couple of compiler warnings.
2502 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2504 * Makefile.am, OChangeLog:
2505 ChangeLog is now automatically generated. Include the old version as
2508 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2510 * 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:
2513 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2515 * doc/bison.texinfo: Fix formatting glitch.
2517 * doc/bison.texinfo: Update FSF address.
2519 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2521 * acconfig.h: Update FSF address.
2523 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2526 Don't define PACKAGE here, since config.h defines it.
2528 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2530 * src/reader.c: Update copyright date.
2533 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2534 favor of output directly to stderr (avoids buffer overruns).
2536 * src/reader.c: Some checks for premature EOF.
2538 * 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:
2539 Use prototypes if the compiler understands them.
2541 * src/files.c: Honor TMPDIR on Unix hosts.
2542 Use prototypes if the compiler understands them.
2545 Fix a couple of buffer overrun bugs.
2546 Use prototypes if the compiler understands them.
2548 * src/system.h: Include unistd.h and ctype.h.
2549 Use #ifdef instead of #if for NLS symbols.
2551 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2553 * doc/bison.texinfo:
2554 Delete comment "consider using @set for edition number, etc..." since
2555 we now are doing so.
2557 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2560 Use prototypes if the compiler understands them.
2562 * NEWS: Document 1.26 highlights.
2564 * Makefile.am: Require Automake 1.3 or later.
2567 Use prototypes if the compiler understands them.
2569 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2572 Use VERSION symbol from automake for version number.
2574 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2576 * acconfig.h, configure.in, version.cin:
2577 Use VERSION symbol from automake for version number.
2579 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2582 Distribute original version of simple parser (bison.s1), not built
2583 version (bison.simple).
2585 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2587 * doc/bison.texinfo: Add info dir entry.
2589 * doc/bison.texinfo:
2590 Let automake put version number into documentation.
2592 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2594 * src/bison.cld, src/build.com, src/vmshlp.mar:
2595 Add non-RCS files from /gd/gnu/bison.
2597 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2600 Document the BISON_HAIRY and BISON_SIMPLE variables.
2602 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2604 * src/version.c: Build version.c automatically.
2607 Fix token numbering (used to start at 258, not 257).
2609 * src/system.h: Include config.h.
2611 * src/getargs.c: Update bug report address.
2613 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2614 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2616 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2619 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2621 * configure.in, version.cin:
2622 Build version.c automatically.
2624 * AUTHORS: Add AUTHORS file.
2626 * README: Update bug report address.
2629 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2631 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2634 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2636 * doc/bison.texinfo: Clean up some formatting.
2638 1998-05-05 Richard Stallman <rms@gnu.org>
2640 * doc/bison.texinfo:
2641 Explain better why to make a pure parser.
2643 1998-01-05 Richard Stallman <rms@gnu.org>
2645 * src/files.c (openfiles):
2646 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2647 find a temporary directory, if possible. Do not unlink files while
2650 1997-08-25 Richard Stallman <rms@gnu.org>
2652 * src/reader.c (stack_offset;):
2653 Change some warni to warns.
2655 * src/lex.c (literalchar): Use warns, not warni.
2657 1997-06-28 Richard Stallman <rms@gnu.org>
2659 * src/bison.s1: Add a Bison version comment.
2661 * src/main.c (fatal, warn, berror):
2664 1997-06-28 Richard Stallman <rms@gnu.org>
2666 * Makefile.in (bison_version): New variable.
2667 (dist): Use that variable.
2668 (bison.s1): Substitute the Bison version into bison.simple.
2670 * bison.simple: Add a Bison version comment.
2672 1997-06-18 Richard Stallman <rms@gnu.org>
2674 * src/main.c (fatal, warn, berror):
2675 Make error messages standard.
2676 (toomany): Improve error message text.
2678 * 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:
2679 new.h renamed to alloc.h.
2681 1997-06-18 Richard Stallman <rms@gnu.org>
2683 * Makefile.in: new.h renamed to alloc.h.
2685 1997-05-24 Richard Stallman <rms@gnu.org>
2687 * src/lex.c (literalchar):
2688 Fix the code for escaping \, " and '.
2690 (lex): Avoid trouble when there are many chars
2691 to discard in a char literal with just several chars in it.
2693 1997-05-17 Richard Stallman <rms@gnu.org>
2696 Use malloc, if using alloca is troublesome.
2697 (YYSTACK_USE_ALLOCA): New flag macro.
2698 Define it for some systems and compilers.
2699 (YYSTACK_ALLOC): New macro.
2700 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2701 If it was malloc'd, free it.
2703 1997-05-17 Richard Stallman <rms@gnu.org>
2706 Use malloc, if using alloca is troublesome.
2707 (YYSTACK_USE_ALLOCA): New flag macro.
2708 Define it for some systems and compilers.
2709 (YYSTACK_ALLOC): New macro.
2710 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2711 If it was malloc'd, free it.
2713 1997-04-23 Richard Stallman <rms@gnu.org>
2716 (alloca) [__hpux]: Always define as __builtin_alloca.
2718 1997-04-23 Richard Stallman <rms@gnu.org>
2721 (alloca) [__hpux]: Always define as __builtin_alloca.
2723 1997-04-22 Richard Stallman <rms@gnu.org>
2726 [__hpux]: Include alloca.h (right for HPUX 10)
2727 instead of declaring alloca (right for HPUX 9).
2729 * src/bison.s1 (__yy_memcpy):
2730 Declare arg `count' as unsigned int.
2731 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2733 1997-04-22 Richard Stallman <rms@gnu.org>
2736 [__hpux]: Include alloca.h (right for HPUX 10)
2737 instead of declaring alloca (right for HPUX 9).
2739 * bison.simple (__yy_memcpy):
2740 Declare arg `count' as unsigned int.
2741 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2743 1997-01-03 Richard Stallman <rms@gnu.org>
2745 * src/allocate.c: [__STDC__ or _MSC_VER]:
2746 Declare calloc and realloc to return void *.
2748 1997-01-02 Richard Stallman <rms@gnu.org>
2751 [_MSC_VER]: Include stdlib.h and process.h.
2752 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2754 * src/main.c (main): Return FAILURE as a value.
2755 (printable_version): Declare arg as int, not char.
2757 1997-01-02 Richard Stallman <rms@gnu.org>
2759 * Makefile.in (dist):
2760 Explicitly check for symlinks, and copy them.
2762 1996-12-19 Richard Stallman <rms@gnu.org>
2765 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2767 1996-12-18 Paul Eggert <eggert@gnu.org>
2769 * src/bison.s1 (yyparse):
2770 If __GNUC__ and YYPARSE_PARAM are both defined,
2771 declare yyparse to have a void * argument.
2773 1996-12-18 Paul Eggert <eggert@gnu.org>
2775 * bison.simple (yyparse):
2776 If __GNUC__ and YYPARSE_PARAM are both defined,
2777 declare yyparse to have a void * argument.
2779 1996-12-17 Richard Stallman <rms@gnu.org>
2781 * src/reduce.c (nbits): Add some casts.
2783 1996-08-12 Richard Stallman <rms@gnu.org>
2785 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2787 1996-08-12 Richard Stallman <rms@gnu.org>
2789 * bison.simple: Test _MSDOS as well as _MSDOS_.
2791 1996-07-31 Richard Stallman <rms@gnu.org>
2794 [__sun && __i386]: Include alloca.h.
2796 1996-07-31 Richard Stallman <rms@gnu.org>
2799 [__sun && __i386]: Include alloca.h.
2801 1996-07-30 Richard Stallman <rms@gnu.org>
2803 * src/bison.s1: Comment change.
2805 * src/bison.s1: Test _MSDOS_, not MSDOS.
2807 1996-07-30 Richard Stallman <rms@gnu.org>
2809 * bison.simple: Comment change.
2811 * bison.simple: Test _MSDOS_, not MSDOS.
2813 1996-06-01 Richard Stallman <rms@gnu.org>
2815 * 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:
2816 Insert `_' macro around many string constants.
2819 Insert `_' macro around many string constants.
2821 (main): Call setlocale, bindtextdomain and textdomain.
2823 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2824 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2825 [ENABLE_NLS]: Include libintl.h.
2826 [ENABLE_NLS] (gettext): Define.
2827 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2828 (N_, PACKAGE, LOCALEDIR): New macros.
2830 1996-06-01 Richard Stallman <rms@gnu.org>
2832 * POTFILES.in: New file.
2834 * Makefile.in (allocate.o):
2835 Define target explicitly.
2837 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2838 (LDFLAGS): Set to @LDFLAGS@.
2839 (configure): Run autoconf only if preceding `cd' succeeds.
2840 (bison.s1): Redirect output to temporary file then move the
2841 temporary to the target, rather than redirecting directly to bison.s1.
2842 (clean): Remove config.status and config.log.
2843 (distclean): Don't remove config.status here.
2845 1996-05-12 Richard Stallman <rms@gnu.org>
2848 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2850 1996-05-12 Richard Stallman <rms@gnu.org>
2853 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2855 1996-05-11 Richard Stallman <rms@gnu.org>
2857 * src/bison.s1 (__yy_memcpy):
2858 Really reorder the args, as was supposedly done on Feb 14 1995.
2859 (yyparse): Calls changed accordingly.
2861 1996-05-11 Richard Stallman <rms@gnu.org>
2863 * Makefile.in (dist): Don't use $(srcdir).
2865 * bison.simple (__yy_memcpy):
2866 Really reorder the args, as was supposedly done on Feb 14 1995.
2867 (yyparse): Calls changed accordingly.
2869 1996-01-27 Richard Stallman <rms@gnu.org>
2871 * src/output.c (output_rule_data):
2872 Test YYERROR_VERBOSE in the conditional
2873 around the definition of ttyname.
2875 1995-12-29 Richard Stallman <rms@gnu.org>
2878 Fix line numbers in #line commands.
2880 1995-12-29 Richard Stallman <rms@gnu.org>
2883 Fix line numbers in #line commands.
2885 1995-12-27 Richard Stallman <rms@gnu.org>
2887 * src/bison.s1 (YYPARSE_PARAM_DECL):
2888 In C++, make it always null.
2889 (YYPARSE_PARAM_ARG): New macro.
2890 (yyparse): Use YYPARSE_PARAM_ARG.
2892 1995-12-27 Richard Stallman <rms@gnu.org>
2894 * bison.simple (YYPARSE_PARAM_DECL):
2895 In C++, make it always null.
2896 (YYPARSE_PARAM_ARG): New macro.
2897 (yyparse): Use YYPARSE_PARAM_ARG.
2899 1995-11-29 Richard Stallman <rms@gnu.org>
2901 * doc/bison.texinfo:
2902 Describe literal string tokens, %raw, %no_lines, %token_table.
2904 1995-11-29 Daniel Hagerty <hag@gnu.org>
2906 * doc/bison.texinfo: Fixed update date
2908 1995-10-16 Richard Stallman <rms@gnu.org>
2910 * src/version.c: Version 1.25.
2912 1995-10-16 Richard Stallman <rms@gnu.org>
2914 * NEWS: *** empty log message ***
2916 1995-10-16 Richard Stallman <rms@gnu.org>
2918 * doc/bison.1, doc/bison.rnh:
2921 1995-10-15 Richard Stallman <rms@gnu.org>
2923 * src/vmsgetargs.c, src/getargs.c:
2924 Added -n, -k, and -raw switches.
2925 (noparserflag, toknumflag, rawtoknumflag): New variables.
2927 * src/symtab.h (SALIAS):
2928 New #define for adding aliases to %token.
2929 (struct bucket): Added `alias' field.
2931 * src/reduce.c (reduce_grammar):
2932 Revise error message.
2933 (print_notices): Remove final `.' from error message.
2935 * src/reader.c (reader_output_yylsp):
2937 (readgram): Use `#if 0' around code that accepted %command
2938 inside grammar rules: The documentation doesn't allow it,
2939 and it will fail since the %command processors scan for the next %.
2940 (parse_token_decl): Extended the %token
2941 declaration to allow a multi-character symbol as an alias.
2942 (parse_thong_decl): New function.
2943 (read_declarations): Added %thong declarations.
2944 (read_declarations): Handle NOOP to deal with allowing
2945 % declarations as another means to specify the flags.
2946 (readgram): Allow %prec prior to semantics embedded in a rule.
2947 (skip_to_char, read_declarations, copy_definition)
2948 (parse_token_decl, parse_start_decl, parse_type_decl)
2949 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2950 (get_type_name, copy_guard, copy_action, readgram)
2951 (get_type, packsymbols): Revised most error messages.
2952 Changed `fatal' to `warnxxx' to avoid aborting for error.
2953 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2954 (read_declarations): Improve the error message for
2955 an invalid character. Do not abort.
2956 (read_declarations, copy_guard, copy_action): Use
2957 printable_version to avoid unprintable characters in printed output.
2958 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2959 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2960 Allow the type of a non-terminal can be given
2961 more than once, as long as all specifications give the same type.
2964 (output_headers, output_trailers, output, output_gram)
2965 (output_rule_data): Implement noparserflag variable.
2966 Implement toknumflag variable.
2967 (output): Call reader_output_yylsp to output LTYPESTR.
2969 * src/main.c (main):
2970 If reader sees an error, don't process the grammar.
2971 (fatals): Updated to not use VARARGS1.
2972 (printable_version, int_to_string, warn, warni, warns, warnss)
2973 (warnsss): New error reporting functions. Avoid abort for error.
2976 Added THONG and NOOP for alias processing.
2977 Added SETOPT for the new code that allows setting options with %flags.
2980 Include getopt.h. Add some extern decls.
2981 (safegetc): New function to deal with EOF gracefully.
2982 (literalchar); new function to deal with reading \ escapes.
2983 (lex): Use literalchar.
2984 (lex): Implemented "..." tokens.
2985 (literalchar, lex, parse_percent_token): Made tokenbuffer
2986 always contain the token. This includes growing the token
2987 buffer while reading an integer.
2988 (parse_percent_token): Replaced if-else statement with percent_table.
2989 (parse_percent_token): Added % declarations as another
2990 way to specify the flags -n, -l, and -r. Also added hooks for
2991 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2992 major changes to files.c.
2993 (lex) Retain in the incoming stream a character following
2995 (skip_white_space, lex): Revised most error messages
2996 and changed fatal to warn to avoid aborting.
2997 (percent_table): Added %thong declarations.
2999 * src/gram.h: Comment changes.
3001 * src/files.c (openfiles, open_extra_files, done):
3003 and actfile file. Handle noparserflag. Both for -n switch.
3005 * src/conflicts.c (resolve_sr_conflict):
3006 Remove use of alloca.
3008 1995-06-01 Jim Meyering <meyering@gnu.org>
3010 * doc/bison.texinfo: *** empty log message ***
3012 1995-05-06 Richard Stallman <rms@gnu.org>
3014 * src/bison.s1: Comment change.
3016 1995-05-06 Richard Stallman <rms@gnu.org>
3018 * bison.simple: Comment change.
3020 1995-05-03 Richard Stallman <rms@gnu.org>
3022 * src/version.c: Version now 1.24.
3024 * src/bison.s1: Change distribution terms.
3026 * src/version.c: Version now 1.23.
3028 1995-05-03 Richard Stallman <rms@gnu.org>
3030 * doc/bison.texinfo:
3031 Rewrite "Conditions for Using Bison".
3032 Update version to 1.24.
3034 1995-05-03 Richard Stallman <rms@gnu.org>
3036 * bison.simple: Change distribution terms.
3038 1995-02-23 Richard Stallman <rms@gnu.org>
3040 * src/files.c: Test __VMS_POSIX as well as VMS.
3042 1995-02-14 Jim Meyering <meyering@gnu.org>
3044 * src/bison.s1 (__yy_memcpy):
3045 Renamed from __yy_bcopy to avoid
3046 confusion. Reverse FROM and TO arguments to be consistent with
3049 1995-02-14 Jim Meyering <meyering@gnu.org>
3051 * bison.simple (__yy_memcpy):
3052 Renamed from __yy_bcopy to avoid
3053 confusion. Reverse FROM and TO arguments to be consistent with
3056 1994-11-10 David J. MacKenzie <djm@gnu.org>
3062 * Makefile.in (DISTFILES): Include NEWS.
3064 * Makefile.in (DISTFILES):
3065 Include install-sh, not install.sh.
3067 * configure.in: Update to Autoconf v2 macro names.
3069 1994-10-05 David J. MacKenzie <djm@gnu.org>
3071 * Makefile.in: fix typo
3073 * Makefile.in (prefix, exec_prefix):
3074 Let configure set them.
3076 1994-09-28 David J. MacKenzie <djm@gnu.org>
3078 * Makefile.in: Set datadir to $(prefix)/share.
3080 1994-09-15 Richard Stallman <rms@gnu.org>
3083 Update copyright notice and GPL version.
3085 1994-09-15 Richard Stallman <rms@gnu.org>
3088 Update copyright notice and GPL version.
3090 1994-07-12 Richard Stallman <rms@gnu.org>
3092 * src/reduce.c, src/reader.c:
3095 1994-05-05 David J. MacKenzie <djm@gnu.org>
3097 * Makefile.in: entered into RCS
3099 1994-03-26 Richard Stallman <rms@gnu.org>
3101 * src/bison.s1: entered into RCS
3103 1994-03-26 Richard Stallman <rms@gnu.org>
3105 * bison.simple: entered into RCS
3107 1994-03-25 Richard Stallman <rms@gnu.org>
3109 * src/main.c: entered into RCS
3111 1994-03-24 Richard Stallman <rms@gnu.org>
3113 * src/conflicts.c: entered into RCS
3115 1994-01-02 Richard Stallman <rms@gnu.org>
3117 * Makefile.in: *** empty log message ***
3119 1993-11-21 Richard Stallman <rms@gnu.org>
3121 * src/bison.s1: *** empty log message ***
3123 1993-11-21 Richard Stallman <rms@gnu.org>
3125 * doc/bison.texinfo: entered into RCS
3127 * doc/bison.texinfo: *** empty log message ***
3129 1993-11-21 Richard Stallman <rms@gnu.org>
3131 * bison.simple: *** empty log message ***
3133 1993-10-25 David J. MacKenzie <djm@gnu.org>
3135 * doc/bison.texinfo: *** empty log message ***
3137 1993-10-19 Richard Stallman <rms@gnu.org>
3139 * src/bison.s1: *** empty log message ***
3141 1993-10-19 Richard Stallman <rms@gnu.org>
3143 * bison.simple: *** empty log message ***
3145 1993-10-14 Richard Stallman <rms@gnu.org>
3147 * src/bison.s1: *** empty log message ***
3149 1993-10-14 Richard Stallman <rms@gnu.org>
3151 * bison.simple: *** empty log message ***
3153 1993-09-14 David J. MacKenzie <djm@gnu.org>
3155 * doc/bison.texinfo: *** empty log message ***
3157 1993-09-13 Noah Friedman <friedman@gnu.org>
3159 * Makefile.in: *** empty log message ***
3161 1993-09-10 Richard Stallman <rms@gnu.org>
3163 * src/conflicts.c: *** empty log message ***
3165 * src/system.h: entered into RCS
3167 1993-09-10 Richard Stallman <rms@gnu.org>
3169 * doc/bison.1: entered into RCS
3171 1993-09-06 Noah Friedman <friedman@gnu.org>
3173 * src/version.c: entered into RCS
3175 1993-09-06 Noah Friedman <friedman@gnu.org>
3177 * Makefile.in: *** empty log message ***
3179 1993-07-30 David J. MacKenzie <djm@gnu.org>
3181 * Makefile.in: *** empty log message ***
3183 1993-07-24 Richard Stallman <rms@gnu.org>
3185 * src/bison.s1: *** empty log message ***
3187 1993-07-24 Richard Stallman <rms@gnu.org>
3189 * bison.simple: *** empty log message ***
3191 1993-07-08 David J. MacKenzie <djm@gnu.org>
3193 * Makefile.in: *** empty log message ***
3195 1993-07-04 Richard Stallman <rms@gnu.org>
3197 * src/bison.s1: *** empty log message ***
3199 1993-07-04 Richard Stallman <rms@gnu.org>
3201 * bison.simple: *** empty log message ***
3203 1993-06-26 David J. MacKenzie <djm@gnu.org>
3205 * src/getargs.c: entered into RCS
3207 1993-06-26 David J. MacKenzie <djm@gnu.org>
3209 * doc/bison.texinfo: *** empty log message ***
3211 * doc/bison.1: New file.
3213 1993-06-25 Richard Stallman <rms@gnu.org>
3215 * src/getargs.c: New file.
3217 1993-06-16 Richard Stallman <rms@gnu.org>
3219 * src/bison.s1: *** empty log message ***
3221 1993-06-16 Richard Stallman <rms@gnu.org>
3223 * bison.simple: *** empty log message ***
3225 1993-06-03 Richard Stallman <rms@gnu.org>
3227 * src/bison.s1: New file.
3229 1993-06-03 Richard Stallman <rms@gnu.org>
3231 * doc/bison.texinfo: *** empty log message ***
3233 1993-06-03 Richard Stallman <rms@gnu.org>
3235 * bison.simple: New file.
3237 1993-05-19 Richard Stallman <rms@gnu.org>
3239 * doc/bison.texinfo: New file.
3241 1993-05-07 Noah Friedman <friedman@gnu.org>
3243 * Makefile.in: *** empty log message ***
3245 1993-04-28 Noah Friedman <friedman@gnu.org>
3247 * src/reader.c: *** empty log message ***
3249 1993-04-23 Noah Friedman <friedman@gnu.org>
3251 * src/alloc.h: entered into RCS
3253 1993-04-20 David J. MacKenzie <djm@gnu.org>
3255 * src/version.c: *** empty log message ***
3257 * src/files.c, src/allocate.c:
3260 * src/reader.c: *** empty log message ***
3262 * src/lex.c: entered into RCS
3264 * src/conflicts.c: New file.
3266 * src/symtab.c: entered into RCS
3268 * src/alloc.h: New file.
3270 * src/LR0.c: entered into RCS
3272 1993-04-18 Noah Friedman <friedman@gnu.org>
3274 * src/reader.c: New file.
3276 * src/version.c: *** empty log message ***
3278 1993-04-18 Noah Friedman <friedman@gnu.org>
3280 * Makefile.in: *** empty log message ***
3282 1993-04-17 Noah Friedman <friedman@gnu.org>
3284 * Makefile.in: *** empty log message ***
3286 1993-04-15 Richard Stallman <rms@gnu.org>
3288 * src/main.c, src/files.c:
3291 1993-04-15 Noah Friedman <friedman@gnu.org>
3293 * configure.in: entered into RCS
3295 * configure.in: *** empty log message ***
3297 * configure.in: New file.
3299 1993-04-14 Richard Stallman <rms@gnu.org>
3301 * Makefile.in: New file.
3303 1993-04-13 Richard Stallman <rms@gnu.org>
3305 * src/version.c: New file.
3307 1993-03-25 Richard Stallman <rms@gnu.org>
3309 * src/output.c: entered into RCS
3311 1992-09-25 Richard Stallman <rms@gnu.org>
3313 * configure.bat: entered into RCS
3315 1992-06-22 Richard Stallman <rms@gnu.org>
3317 * src/vmsgetargs.c: entered into RCS
3319 1992-06-22 Richard Stallman <rms@gnu.org>
3321 * doc/bison.rnh: entered into RCS
3323 1992-04-20 David J. MacKenzie <djm@gnu.org>
3325 * README: entered into RCS
3327 1992-01-22 Richard Stallman <rms@gnu.org>
3329 * src/machine.h: entered into RCS
3331 1991-12-21 Richard Stallman <rms@gnu.org>
3333 * src/lalr.c, src/closure.c:
3336 1991-12-20 Richard Stallman <rms@gnu.org>
3338 * src/state.h: entered into RCS
3340 1991-12-18 Richard Stallman <rms@gnu.org>
3342 * src/print.c, src/nullable.c, src/derives.c:
3345 1991-11-03 David J. MacKenzie <djm@gnu.org>
3347 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3350 1988-09-09 Richard Stallman <rms@gnu.org>
3352 * src/bison.hairy: entered into RCS
3354 1987-12-16 Richard Stallman <rms@gnu.org>
3356 * REFERENCES: entered into RCS