1 2001-11-14 Akim Demaille <akim@epita.fr>
5 2001-11-14 Akim Demaille <akim@epita.fr>
7 * tests/calc.at, tests/output.at, tests/regression.at,
8 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
9 now the tests are run in private dirs, therefore AC_CLEANUP and
10 family can be simplified to 0-ary.
11 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
12 use abs. path to find config.h.
14 2001-11-14 Akim Demaille <akim@epita.fr>
16 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
17 stderr, there can be way too much random noise.
18 Instead pass -Werror to GCC and rely on the exit status.
19 Reported by Wolfram Wagner.
21 2001-11-14 Akim Demaille <akim@epita.fr>
23 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
24 defined only if yyoverflow is defined, to avoid `warning: unused
26 Reported by The Test Suite.
28 2001-11-14 Akim Demaille <akim@epita.fr>
30 * src/print.c: Include reduce.h.
31 Reported by Hans Aberg.
33 2001-11-14 Akim Demaille <akim@epita.fr>
35 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
36 Revert a previous patch: these are really const.
37 * src/conflicts.c (conflict_report): Additional useless pair of
38 braces to pacify GCC's warnings for `if () if () {} else {}'.
39 * src/lex.c (parse_percent_token): Replace equal_offset with
42 Be sure to strdup `arg' when used, since there is no reason for
43 token_buffer not to change.
45 2001-11-14 Akim Demaille <akim@epita.fr>
47 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
49 * src/main.c (main): Use them.
50 Suggested by Hans Aberg.
52 2001-11-12 Akim Demaille <akim@epita.fr>
56 * src/system.h (ngettext): Now that we use ngettext, be sure to
57 provide a default definition when NLS are not used that takes care
60 2001-11-12 Akim Demaille <akim@epita.fr>
62 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
63 Use @kbd to denote user input.
64 (Language and Grammar): ANSIfy the example.
65 Adjust its layout for info/notinfo.
66 (Location Tracking Calc): Output error messages to stderr.
67 Output locations in a more GNUtically correct way.
68 Fix a couple of Englishos.
69 Adjust @group/@end group pairs.
71 2001-11-12 Akim Demaille <akim@epita.fr>
73 %expext was not functioning at all.
75 * src/conflicts.c (expected_conflicts): Set to -1.
76 (conflict_report): Use ngettext.
77 (conflicts_print): Check %expect and make its violation an error.
78 * doc/bison.texinfo (Expect Decl): Adjust.
79 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
80 * tests/regression.at (%expect not enough, %expect right)
81 (%expect too much): New.
83 2001-11-12 Akim Demaille <akim@epita.fr>
85 * tests/regression.at (Conflicts): Rename as...
86 (Unresolved SR Conflicts): this.
87 (Solved SR Conflicts): New.
89 2001-11-12 Akim Demaille <akim@epita.fr>
91 * src/reduce.c (print_results): Rename as...
92 (reduce_output): This.
93 Output to OUT, passed as argument, instead of output_obstack.
94 (dump_grammar): Likewise.
97 (reduce_grammar): No longer call reduce_output, since...
98 * src/print.c (print_results): do it.
99 * src/main.c (main): Call reduce_free;
101 2001-11-12 Akim Demaille <akim@epita.fr>
103 * src/conflicts.c (print_reductions): Accept OUT as argument.
104 Output to it, not to output_obstack.
105 * src/print.c (print_actions): Adjust.
107 2001-11-12 Akim Demaille <akim@epita.fr>
109 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
110 the result instead of using...
111 (src_total, rrc_total, src_count, rrc_count): Remove.
112 (any_conflicts): Remove.
113 (print_conflicts): Split into...
114 (conflicts_print, conflicts_output): New.
115 * src/conflicts.h: Adjust.
116 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
117 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
118 * tests/regression.at (Conflicts): New.
119 Reported by Tom Lane.
121 2001-11-12 Akim Demaille <akim@epita.fr>
123 * tests/regression.at (Invalid input): Remove, duplicate with
124 ``Invalid input: 1''.
126 2001-11-12 Akim Demaille <akim@epita.fr>
128 * tests/torture.at (AT_DATA_STACK_TORTURE)
129 (Exploding the Stack Size with Alloca)
130 (Exploding the Stack Size with Malloc): New.
132 2001-11-12 Akim Demaille <akim@epita.fr>
134 * src/bison.simple (YYSTACK_REALLOC): New.
135 (yyparse) [!yyoverflow]: Use it and free the old stack.
136 Reported by Per Allansson.
138 2001-11-05 Akim Demaille <akim@epita.fr>
141 * src/lex.c (parse_percent_token): s/quotearg/quote/.
143 2001-11-05 Akim Demaille <akim@epita.fr>
145 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
148 2001-11-05 Akim Demaille <akim@epita.fr>
150 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
151 with yyltype/YYLTYPE. This allows inclusion of the generated
152 header within the parser if the compiler, such as GGC, accepts
153 multiple equivalent #defines.
155 2001-11-04 Akim Demaille <akim@epita.fr>
157 * src/getargs.c (longopts): Support `--output'. getopt is now
158 able to understand that `--out' is OK: the two racing long options
161 * src/lex.h (tok_setopt): Remove, replaced with...
162 (tok_intopt, tok_stropt): these new guys.
163 * src/lex.c (getopt.h): Not needed.
164 (token_buffer, unlexed_token_buffer): Not const.
165 (percent_table): Promote `-' over `_' in directive names.
166 Active `%name-prefix', `file-prefix', and `output'.
167 (parse_percent_token): Accept possible arguments to directives.
168 Promote `-' over `_' in directive names.
169 * doc/bison.texinfo (Decl Summary): Split the list into
170 `directives for grammars' and `directives for bison'.
172 Add description of `%name-prefix', `file-prefix', and `output'.
173 Promote `-' over `_' in directive names.
174 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
175 Simplify the description of `--name-prefix'.
176 Promote `-' over `_' in directive names.
177 Promote `--output' over `--output-file'.
178 Fix the description of `--defines'.
179 * tests/output.at: Exercise %file-prefix and %output.
181 2001-11-02 Akim Demaille <akim@epita.fr>
183 * doc/refcard.tex: Update.
185 2001-11-02 Akim Demaille <akim@epita.fr>
187 * src/symtab.h (SUNDEF): New.
188 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
189 stand for `uninitialized', instead of 0.
190 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
191 * src/lex.c (lex): Adjust.
193 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
195 Let yylex return it instead of a plain 0.
196 Reported by Dick Streefland.
198 2001-11-02 Akim Demaille <akim@epita.fr>
200 * tests/regression.at (Mixing %token styles): New test.
202 2001-11-02 Akim Demaille <akim@epita.fr>
204 * src/reader.c (parse_thong_decl): Formatting changes.
205 (token_translations_init): New, extracted from...
209 2001-11-01 Akim Demaille <akim@epita.fr>
211 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
212 Check that `9foo.y' produces correct cpp guards.
213 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
217 2001-11-01 Akim Demaille <akim@epita.fr>
219 * tests/regression.at (Invalid input: 2): New.
220 * src/lex.c (unlexed_token_buffer): New.
221 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
225 2001-11-01 Akim Demaille <akim@epita.fr>
227 * configure.in: Bump to 1.30a.
228 Adjust to newer Autotest.
230 2001-10-26 Akim Demaille <akim@epita.fr>
234 2001-10-26 Paul Eggert <eggert@twinsun.com>
236 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
237 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
238 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
239 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
240 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
241 Sync with fileutils 4.1.1.
243 2001-10-18 Akim Demaille <akim@epita.fr>
246 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
247 avoid spurious failures.
249 2001-10-18 Akim Demaille <akim@epita.fr>
253 2001-10-18 Akim Demaille <akim@epita.fr>
255 * tests/atlocal.in (GCC): Add.
256 * tests/calc.at: s/m4_match/m4_bmatch/.
257 s/m4_patsubst/m4_bpatsubst/.
258 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
259 * configure.in: AC_SUBST(GCC).
261 2001-10-10 Akim Demaille <akim@epita.fr>
264 * configure.in: M4 is no longer needed, but autom4te is.
265 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
268 2001-10-10 Akim Demaille <akim@epita.fr>
272 2001-10-10 Akim Demaille <akim@epita.fr>
275 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
276 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
277 Reported by Airy Andre.
279 2001-10-10 Akim Demaille <akim@epita.fr>
281 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
282 * config/mkinstalldirs, lib/ansi2knr.c: Update.
284 2001-10-02 Akim Demaille <akim@epita.fr>
288 2001-10-02 Akim Demaille <akim@epita.fr>
292 2001-10-02 Akim Demaille <akim@epita.fr>
294 * tests/regression.at (Invalid CPP headers): New.
295 From Alexander Belopolsky.
296 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
298 2001-10-02 Akim Demaille <akim@epita.fr>
300 * tests/regression.at (Invalid input): New.
301 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
304 2001-10-02 Akim Demaille <akim@epita.fr>
306 * tests/calc.at: Now that --debug works, the tests must be adjusted.
308 2001-10-02 Akim Demaille <akim@epita.fr>
310 * src/output.c (output_parser): Assert `skeleton'.
311 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
315 2001-10-01 Marc Autret <autret_m@epita.fr>
317 * src/lex.h: Echo modifications.
318 * src/lex.c (unlex): Parameter is now token_t.
321 2001-10-01 Marc Autret <autret_m@epita.fr>
323 * src/main.c: Include lex.h.
326 2001-09-29 Akim Demaille <akim@epita.fr>
328 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
330 2001-09-28 Akim Demaille <akim@epita.fr>
332 * tests/testsuite.at: Update to newer Autotest.
333 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
335 2001-09-27 Akim Demaille <akim@epita.fr>
337 Position independent wrapper.
339 * tests/bison: Remove.
340 * tests/bison.in: New.
341 * configure.in: Adjust.
343 2001-09-27 Paul Eggert <eggert@twinsun.com>
345 Port quotearg fixes from tar 1.13.24.
347 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
349 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
350 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
352 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
353 * m4/mbrtowc.m4: New file.
354 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
355 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
357 2001-09-27 Akim Demaille <akim@epita.fr>
361 2001-09-27 Akim Demaille <akim@epita.fr>
365 2001-09-25 Akim Demaille <akim@epita.fr>
367 * src/system.h: Include `xalloc.h'.
368 Remove it from the C files.
369 * src/files.c (output_files): Free the obstacks.
370 * src/lex.c (init_lex): Rename as...
373 * src/main.c (main): Use it.
375 2001-09-24 Marc Autret <autret_m@epita.fr>
377 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
378 to output informations in fout (FILE*).
379 (open_graph, close_graph): Likewise.
380 (output_graph, output_edge, output_node): Likewise.
381 * src/vcg.h: Update function prototypes.
382 * src/print_graph.c (print_graph): Open output graph file.
383 (print_actions): Adjust.
384 * src/files.h: Remove extern declaration.
385 * src/files.c: Remove graph_obstack declaration.
386 (open_files): Remove graph_obstack initialization.
387 (output_files): Remove graph_obstack saving.
389 2001-09-24 Marc Autret <autret_m@epita.fr>
391 * src/files.c (compute_output_file_names): Fix.
393 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
395 * src/reader.c (reader): Remove call to free_symtab ().
396 * src/main.c (main): Call it here.
398 * src/conflicts.c (initialize_conflicts): Rename as...
399 (solve_conflicts): this.
400 * src/print.c (print_core, print_actions, print_state)
401 (print_grammar): Dump to a file instead a `output_obstack'.
402 (print_results): Dump `output_obstack', and then proceed with the
404 * src/files.c (compute_output_file_names, close_files): New.
405 (output_files): Adjust.
406 * src/main.c (main): Adjust.
408 2001-09-23 Marc Autret <autret_m@epita.fr>
410 * src/files.c (compute_header_macro): Computes header macro name
411 from spec_defines_file when given.
413 2001-09-23 Marc Autret <autret_m@epita.fr>
415 * src/files.c (output_files): Add default extensions.
417 2001-09-22 Akim Demaille <akim@epita.fr>
419 * src/conflicts.c (finalize_conflicts): Rename as...
420 (free_conflicts): this.
422 2001-09-22 Akim Demaille <akim@epita.fr>
424 * src/gram.c (gram_free): Rename back as...
426 (output_token_translations): Free `token_translations'.
427 * src/symtab.c (free_symtab): Free the tag field.
429 2001-09-22 Akim Demaille <akim@epita.fr>
431 Remove `translations' as it is always set to true.
433 * src/gram.h: Adjust.
434 * src/reader.c (packsymbols, parse_token_decl): Adjust
435 * src/print.c (print_grammar): Adjust.
436 * src/output.c (output_token_translations): Adjust.
437 * src/lex.c (lex): Adjust.
438 * src/gram.c: Be sure the set pointers to NULL.
439 (dummy): Rename as...
442 2001-09-22 Akim Demaille <akim@epita.fr>
444 * configure.in: Invoke AM_LIB_DMALLOC.
445 * src/system.h: Use dmalloc.
446 * src/LR0.c: Be sure to have pointers initialized to NULL.
447 (allocate_itemsets): Allocate kernel_items only if needed.
449 2001-09-22 Akim Demaille <akim@epita.fr>
451 * configure.in: Bump to 1.29b.
452 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
453 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
454 need xmalloc.c in calc.y.
457 2001-09-21 Akim Demaille <akim@epita.fr>
460 * Makefile.maint, config/config.guess, config/config.sub,
461 * config/missing: Update from masters.
462 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
464 * configure.in (ALL_LINGUAS): Add `tr'.
466 2001-09-21 Akim Demaille <akim@epita.fr>
468 * tests/Makefile.am (package.m4): Move to...
469 ($(srcdir)/$(TESTSUITE)): here.
471 2001-09-20 Akim Demaille <akim@epita.fr>
473 * src/complain.c: No longer try to be standalone: use system.h.
474 Don't assume __STDC__ is defined to 1. Just test if it is defined.
475 * src/complain.h: Likewise.
476 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
477 Remove the unused variable `n'.
478 From Albert Chin-A-Young.
480 2001-09-18 Marc Autret <autret_m@epita.fr>
482 * doc/bison.1: Update.
483 * doc/bison.texinfo (Bison Options): Update --defines and --graph
485 (Option Cross Key): Update.
488 2001-09-18 Marc Autret <autret_m@epita.fr>
490 * tests/regression.at: New test (comment in %union).
492 2001-09-18 Marc Autret <autret_m@epita.fr>
494 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
496 Reported by Keith Browne.
498 2001-09-18 Marc Autret <autret_m@epita.fr>
500 * tests/output.at: Add tests for --defines and --graph.
502 2001-09-18 Marc Autret <autret_m@epita.fr>
504 * tests/output.at: Removes tests of %{header,src}_extension features.
506 2001-09-18 Akim Demaille <akim@epita.fr>
508 * tests/Makefile.am (package.m4): New.
509 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
510 (_AT_CHECK_CALC_ERROR): Likewise.
511 Factor the `, ' part of verbose error messages.
513 2001-09-18 Marc Autret <autret_m@epita.fr>
515 * src/getargs.c (longopts): Declare --defines and --graph as options
516 with optional arguments.
517 * src/files.h: Add extern declarations.
518 * src/files.c (spec_graph_file, spec_defines_file): New.
519 (output_files): Update.
520 Remove CPP-outed code.
522 2001-09-18 Marc Autret <autret_m@epita.fr>
524 Turn off %{source,header}_extension feature.
526 * src/files.c (compute_exts_from_gf): Update.
527 (compute_exts_from_src): Update.
528 (output_files): CPP-out useless code.
529 * src/files.h: Remove {header,source}_extension extern declarations.
530 * src/reader.c (parse_dquoted_param): CPP-out.
531 (parse_header_extension_decl): Remove.
532 (parse_source_extension_decl): Remove.
533 (read_declarations): Remove cases tok_{hdrext,srcext}.
534 * src/lex.c (percent_table): Remove {header,source}_extension entries.
535 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
537 2001-09-10 Akim Demaille <akim@epita.fr>
539 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
540 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
541 (AT_CHECK_OUTPUT): this.
542 Merely check ls' exit status, its output is useless.
544 2001-09-10 Akim Demaille <akim@epita.fr>
546 * tests/calc.at: Use m4_match.
547 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
549 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
551 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
553 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
555 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
556 * src/lex.h: Adjust prototype.
557 (token_t): Add `tok_undef'.
558 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
559 (parse_percent_token): Now returns token_t.
560 Add default statement in switch.
561 (lex): Separate `c' as an input variable, from the token_t result
563 (unlexed): Is a token_t.
565 2001-09-10 Akim Demaille <akim@epita.fr>
567 * configure.in: Bump to 1.29a.
569 2001-09-07 Akim Demaille <akim@epita.fr>
573 2001-08-30 Akim Demaille <akim@epita.fr>
575 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
576 * m4/atconfig.m4: Remove.
577 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
579 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
580 m4_if, m4_patsubst, and m4_regexp.
581 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
582 `input' file instead of echo.
584 2001-08-29 Akim Demaille <akim@epita.fr>
588 2001-08-29 Akim Demaille <akim@epita.fr>
592 2001-08-29 Paul Eggert <eggert@twinsun.com>
594 * src/bison.simple (yyparse): Don't take the address of an
595 item before the start of an array, as that doesn't conform to
598 2001-08-29 Robert Anisko <anisko_r@epita.fr>
600 * doc/bison.texinfo (Location Tracking Calc): New node.
602 2001-08-29 Paul Eggert <eggert@twinsun.com>
604 * src/output.c (output): Do not define const, as this now
605 causes more problems than it cures.
607 2001-08-29 Akim Demaille <akim@epita.fr>
609 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
611 Be sure to tag the `detailmenu'.
613 2001-08-29 Akim Demaille <akim@epita.fr>
615 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
616 download in a tmp dir.
618 2001-08-28 Marc Autret <autret_m@epita.fr>
620 * config/depcomp: New file.
622 2001-08-28 Marc Autret <autret_m@epita.fr>
624 * doc/bison.1 (mandoc): Adjust.
625 From Juan Manuel Guerrero.
627 2001-08-28 Marc Autret <autret_m@epita.fr>
629 * src/print_graph.c (print_state): Fix.
631 2001-08-27 Marc Autret <autret_m@epita.fr>
633 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
635 Echo modifications to the functions prototypes.
636 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
638 2001-08-27 Marc Autret <autret_m@epita.fr>
640 * src/vcg.c: Include `xalloc.h'.
641 (add_colorentry): New.
642 (add_classname): New.
644 * src/vcg.h: Add new prototypes.
646 2001-08-27 Akim Demaille <akim@epita.fr>
648 * Makefile.maint: Sync. again with CVS Autoconf.
650 2001-08-27 Akim Demaille <akim@epita.fr>
652 * Makefile.maint: Formatting changes.
653 (po-update, cvs-update, update): New targets.
656 2001-08-27 Akim Demaille <akim@epita.fr>
658 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
659 * Makefile.maint: Sync. with CVS Autoconf.
661 2001-08-27 Marc Autret <autret_m@epita.fr>
663 * src/vcg.h (struct infoname_s): New.
664 (struct colorentry_s): New.
665 (graph_s): New fields {vertical,horizontal}_order in structure.
666 Add `infoname' field.
667 Add `colorentry' field;
668 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
669 (G_HORIZONTAL_ORDER): New.
672 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
673 Add output of `infoname'.
674 Add output of `colorentry'.
676 2001-08-27 Marc Autret <autret_m@epita.fr>
678 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
679 This one shadowed a global parameter.
681 2001-08-24 Marc Autret <autret_m@epita.fr>
683 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
684 instead of `unsigned'.
685 (print_state): Do not call obstack_object_size () in obstack_grow ()
686 to avoid macro variables shadowing.
688 2001-08-23 Marc Autret <autret_m@epita.fr>
690 * src/lex.c (percent_table): Typo: s/naem/name/.
692 Normalize new options declarations.
694 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
696 * tests/suite.at: Exercise %header_extension and %source_extension.
698 2001-08-16 Marc Autret <autret_m@epita.fr>
700 * src/reader.c (parse_dquoted_param): New.
701 (parse_header_extension_decl): Use it.
702 (parse_source_extension_decl): Likewise.
704 2001-08-16 Marc Autret <autret_m@epita.fr>
706 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
707 (get_xxxx_str): Use assert () instead of complain ().
708 Remove return invokations in default cases.
709 (get_decision_str): Modify default behaviour. Remove second argument.
710 Echo modifications on calls.
713 2001-08-16 Marc Autret <autret_m@epita.fr>
715 * src/getargs.c (usage): Update with ``-g, --graph''.
717 2001-08-16 Marc Autret <autret_m@epita.fr>
719 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
720 (Option Cross Key): Likewise.
721 * doc/bison.1: Update.
723 2001-08-15 Akim Demaille <akim@epita.fr>
727 2001-08-15 Marc Autret <autret_m@epita.fr>
729 * src/reader.c (readgram): Indent output macro YYSTYPE.
730 (packsymbols): Likewise.
731 (output_token_defines): Likewise.
732 * src/files.c: Standardize.
733 (compute_header_macro): New.
734 (defines_obstack_save): New. Use compute_header_macro.
735 (output_files): Update. Use defines_obstack_save.
737 2001-08-15 Akim Demaille <akim@epita.fr>
739 * doc/bison.texinfo (Table of Symbols): Document
742 2001-08-15 Akim Demaille <akim@epita.fr>
744 * missing: Update from CVS Automake.
745 * config/config.guess, config/config.sub, config/texinfo.tex:
748 2001-08-15 Akim Demaille <akim@epita.fr>
750 * Makefile.maint: Sync with CVS Autoconf.
752 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
754 * doc/bison.texinfo: Include GNU Free Documentation License from
756 * doc/fdl.texi: Add to package.
758 2001-08-14 Marc Autret <autret_m@epita.fr>
760 Turn on %{source,header}_extension features.
762 * src/lex.c (percent_table): Un-CPP out header_extension and
764 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
765 (compute_exts_from_src): Remove conditions. It restores priorities
768 2001-08-14 Marc Autret <autret_m@epita.fr>
770 * src/files.c (compute_base_names): Add extensions computing when
771 `--file-prefix' used.
772 Standardize function calls.
774 2001-08-13 Marc Autret <autret_m@epita.fr>
776 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
777 defining it (defined but null disables alloca).
779 2001-08-13 Marc Autret <autret_m@epita.fr>
781 * src/bison.simple (_yy_memcpy): CPP reformat.
783 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
785 * tests/atconfig.in (CPPFLAGS): Fix.
787 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
789 * doc/bison.texinfo: Include GNU General Public License from
791 * doc/gpl.texi: Add to package.
793 2001-08-10 Marc Autret <autret_m@epita.fr>
795 * src/print_graph.h: Fix.
796 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
798 2001-08-10 Akim Demaille <akim@epita.fr>
800 * src/system.h: Provide default declarations for stpcpy, strndup,
803 2001-08-10 Robert Anisko <anisko_r@epita.fr>
805 * doc/bison.texinfo (Locations): Update @$ stuff.
807 2001-08-09 Robert Anisko <anisko_r@epita.fr>
809 * src/bison.simple (YYLLOC_DEFAULT): Update.
812 2001-08-08 Marc Autret <autret_m@epita.fr>
814 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
815 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
816 Reported by Fabrice Bauzac.
818 2001-08-08 Marc Autret <autret_m@epita.fr>
820 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
821 * src/vcg.c (output_node): Fix.
822 * src/vcg.h: Cleanup.
823 * src/print_graph.c: Add comments.
824 (node_output_size): New global variable. Simplify the formatting of
825 the VCG graph output.
826 (print_actions): Unused code is now used. It notifies the final state
827 and no action states in the VCG graph. It also give the reduce actions.
828 The `shift and goto' edges are red and the `go to state' edges are
830 Get the current node name and node_obstack by argument.
831 (node_obstack): New variable.
832 (print_state): Manage node_obstack.
833 (print_core): Use node_obstack given by argument.
834 A node is not only computed here but in print_actions also.
835 (print_graph): CPP out useless code instead of commenting it.
837 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
839 * tests/atconfig.in (CPPFLAGS): Fix.
841 2001-08-07 Akim Demaille <akim@epita.fr>
843 * src/print_graph.c (quote): New.
844 (print_core): Use it.
846 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
848 * src/vcg.c (complain.h): Include it.
849 Unepitaize `return' invocations.
850 [NDEBUG] (main): Remove.
851 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
852 * src/files.c (open_files): Initialize graph_obstack.
853 * src/print_graph.c (print_actions): CPP out useless code.
854 (print_core): Don't output the last `\n' in labels.
856 * src/files.c (output_files): Output the VCG file.
857 * src/main.c (main): Invoke print_graph ();
859 2001-08-06 Marc Autret <autret_m@epita.fr>
861 Automaton VCG graph output.
862 Using option ``-g'' or long option ``--graph'', you can generate
863 a gram_filename.vcg file containing a VCG description of the LALR (1)
864 automaton of your grammar.
866 * src/main.c: Call to print_graph() function.
867 * src/getargs.h: Update.
868 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
869 (graph_flag): New flag.
871 (getargs): Add case `g'.
872 * src/files.c (graph_obstack): New obstack struct.
873 (open_files): Initialize new obstack.
874 (output_files): Saves graph_obstack if required.
875 * src/files.h (graph_obstack): New extern declaration.
876 * src/Makefile.am: Add new source files.
878 2001-08-06 Marc Autret <autret_m@epita.fr>
880 * src/print_graph.c, src/print_graph.h (graph): New.
881 * src/vcg.h: New file.
882 * src/vcg.c: New file, VCG graph handling.
884 2001-08-06 Marc Autret <autret_m@epita.fr>
886 Add of %source_extension and %header_extension which specify
887 the source or/and the header output file extension.
889 * src/files.c (compute_base_names): Remove initialisation of
890 src_extension and header_extension.
891 (compute_exts_from_gf): Update.
892 (compute_exts_from_src): Update.
893 (output_files): Update.
894 * src/reader.c (parse_header_extension_decl): New.
895 (parse_source_extension_decl): New.
896 (read_declarations): New case statements for the new tokens.
897 * src/lex.c (percent_table): Add entries for %source_extension
898 and %header_extension.
899 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
901 2001-08-06 Marc Autret <autret_m@epita.fr>
903 * configure.in: Bump to 1.28c.
904 * doc/bison.texinfo: Texinfo thingies.
906 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
908 * tests/atconfig.in (CPPFLAGS): Add.
909 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
911 2001-08-03 Akim Demaille <akim@epita.fr>
915 2001-08-03 Akim Demaille <akim@epita.fr>
917 * tests/Makefile.am (check-local): Ship testsuite.
918 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
921 2001-08-03 Akim Demaille <akim@epita.fr>
923 * configure.in: Try using -Wformat when compiling.
925 2001-08-03 Akim Demaille <akim@epita.fr>
927 * configure.in: Bump to 1.28b.
929 2001-08-03 Akim Demaille <akim@epita.fr>
931 * src/complain.c: Adjust strerror_r portability issues.
933 2001-08-03 Akim Demaille <akim@epita.fr>
937 2001-08-03 Akim Demaille <akim@epita.fr>
939 * src/getargs.c, src/getarg.h (skeleton)): Constify.
940 * src/lex.c (literalchar): Avoid name clashes on `buf'.
941 * src/getargs.c: Include complain.h.
942 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
943 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
945 2001-08-03 Akim Demaille <akim@epita.fr>
947 * src/reader.c (readgram): Display hidden chars in error messages.
949 2001-08-03 Akim Demaille <akim@epita.fr>
951 Update to gettext 0.10.39.
953 2001-08-03 Akim Demaille <akim@epita.fr>
957 2001-08-01 Marc Autret <autret_m@epita.fr>
959 * doc/bison.texinfo: Update.
960 * doc/bison.1 (mandoc): Update.
961 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
962 * src/files.c: Support output files extensions computing.
963 (src_extension): New static variable.
964 (header_extension): New static variable.
966 (get_extension_index): New function, gets the index of an extension
967 filename in a string.
968 (compute_exts_from_gf): New function, computes extensions from the
969 grammar file extension.
970 (compute_exts_from_src): New functions, computes extensions from the
971 C source file extension, file given by ``-o'' option.
972 (compute_base_names): Update.
973 (output_files): Update.
975 2001-08-01 Robert Anisko <anisko_r@epita.fr>
977 * doc/bison.texi: Document @$.
978 (Locations): New section.
980 2001-07-18 Akim Demaille <akim@epita.fr>
982 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
983 * config/prev-version.txt, config/move-if-change: New.
984 * Makefile.am: Adjust.
986 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
988 * src/bison.simple (yyparse): Suppress warning `comparaison
989 between signed and unsigned'.
991 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
993 * src/getargs.h (raw_flag): Remove.
994 * src/getargs.c: Die on `-r'/`--raw'.
995 * src/lex.c (parse_percent_token): Die on `%raw'.
996 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
997 * tests/calc.at: Suppress test with option `--raw'.
999 2001-07-14 Akim Demaille <akim@epita.fr>
1002 * configure.in: Require Autoconf 2.50.
1003 Update to gettext 0.10.38.
1005 2001-03-16 Akim Demaille <akim@epita.fr>
1007 * doc/bison.texinfo: ANSIfy the examples.
1009 2001-03-16 Akim Demaille <akim@epita.fr>
1011 * getargs.c (skeleton): New variable.
1012 (longopts): --skeleton is a new option.
1013 (shortopts, getargs): -S is a new option.
1014 * getargs.h: Declare skeleton.
1015 * output.c (output_parser): Use it.
1017 2001-03-16 Akim Demaille <akim@epita.fr>
1019 * m4/strerror_r.m4: New.
1020 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1021 * lib/error.h, lib/error.c: Update.
1023 2001-03-16 Akim Demaille <akim@epita.fr>
1025 * src/getargs.c (longopts): Clean up.
1027 2001-02-21 Akim Demaille <akim@epita.fr>
1029 * src/reader.c (gensym): `gensym_count' is your own.
1030 Use a static buf to create the symbol name, as token_buffer is no
1033 2001-02-08 Akim Demaille <akim@epita.fr>
1035 * src/conflicts.c (conflict_report): Be sure not to append to res
1036 between two calls, which could happen if both first sprintf were
1037 skipped, but not the first cp += strlen.
1039 2001-02-08 Akim Demaille <akim@epita.fr>
1041 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1042 New, from fileutils 4.0.37.
1043 * configure.in: Require Autoconf 2.49c. I took some time before
1044 making this decision. This is the only way out for portability
1045 issues in Bison, it would mean way too much duplicate effort to
1046 import in Bison features implemented in 2.49c since 2.13.
1047 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1049 2001-02-02 Akim Demaille <akim@epita.fr>
1051 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1052 * lib/xalloc.h, lib/xmalloc.c: Update.
1054 2001-01-19 Akim Demaille <akim@epita.fr>
1056 Get rid of the ad hoc handling of token_buffer in the scanner: use
1059 * src/lex.c (token_obstack): New.
1060 (init_lex): Initialize it. No longer call...
1061 (grow_token_buffer): this. Remove it.
1062 Adjust all the places which used it to use the obstack.
1064 2001-01-19 Akim Demaille <akim@epita.fr>
1066 * src/lex.h: Rename all the tokens:
1067 s/\bENDFILE\b/tok_eof/g;
1068 s/\bIDENTIFIER\b/tok_identifier/g;
1070 Let them be enums, not #define, to ease debugging.
1071 Adjust all the code.
1073 2001-01-18 Akim Demaille <akim@epita.fr>
1075 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1076 * src/lex.c (maxtoken, grow_token_buffer): Static.
1078 2001-01-18 Akim Demaille <akim@epita.fr>
1080 Since we now use obstacks, more % directives can be enabled.
1082 * src/lex.c (percent_table): Also accept `%yacc',
1083 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1085 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1086 instead of returning a token.
1087 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1088 * src/reader.c (read_declarations): Adjust.
1089 * src/files.c (open_files): Don't call `compute_base_names', don't
1090 compute `attrsfile' since they depend upon data which might be
1091 *in* the input file now.
1092 (output_files): Do it here.
1093 * src/output.c (output_headers): Document the fact that this patch
1094 introduces a guaranteed SEGV for semantic parsers.
1095 * doc/bison.texinfo: Document them.
1096 * tests/suite.at: Exercise these %options.
1098 2000-12-20 Akim Demaille <akim@epita.fr>
1100 Also handle the output file (--verbose) with obstacks.
1102 * files.c (foutput): Remove.
1103 (output_obstack): New.
1104 Adjust all dependencies.
1105 * src/conflicts.c: Return a string.
1106 * src/system.h (obstack_grow_string): Rename as...
1107 (obstack_sgrow): this. Be ready to work with non literals.
1108 (obstack_fgrow4): New.
1110 2000-12-20 Akim Demaille <akim@epita.fr>
1112 * src/files.c (open_files): Fix the computation of short_base_name
1113 in the case of `-o foo.tab.c'.
1115 2000-12-20 Akim Demaille <akim@epita.fr>
1117 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1118 (copy_dollar): Now that everything uses obstacks, get rid of the
1121 2000-12-20 Akim Demaille <akim@epita.fr>
1123 * src/files.c (open_files): Actually the `.output' file is based
1124 on the short_base_name, not base_name.
1125 * tests/suite.at (Checking output file names): Adjust.
1127 2000-12-20 Akim Demaille <akim@epita.fr>
1129 * src/bison.s1: Remove, we now use directly...
1130 * src/bison.simple: this.
1131 * src/Makefile.am: Use pkgdata instead of data.
1133 2000-12-20 Akim Demaille <akim@epita.fr>
1135 * src/files.c (guard_obstack): New.
1136 (open_files): Initialize it.
1137 (output_files): Dump it...
1138 * src/files.h: Export it.
1139 * src/reader.c (copy_guard): Use it.
1141 2000-12-19 Akim Demaille <akim@epita.fr>
1143 * src/files.c (outfile, defsfile, actfile): Removed as global
1145 (open_files): Don't compute them.
1146 (output_files): Adjust.
1147 (base_name, short_base_name): Be global.
1148 Adjust dependencies.
1150 2000-12-19 Akim Demaille <akim@epita.fr>
1152 * src/files.c (strsuffix): New.
1153 (stringappend): Be just like strcat but allocate.
1154 (base_names): Eve out from open_files.
1155 Try to simplify the rather hairy computation of base_name and
1157 (open_files): Use it.
1158 * tests/suite.at (Checking output file names): New test.
1160 2000-12-19 Akim Demaille <akim@epita.fr>
1162 * src/system.h (obstack_grow_literal_string): Rename as...
1163 (obstack_grow_string): this.
1164 * src/output.c (output_parser): Recognize `%% actions' instead of
1166 * src/bison.s1: s/$/%% actions/.
1167 * src/bison.hairy: Likewise.
1169 2000-12-19 Akim Demaille <akim@epita.fr>
1171 * src/output.c (output_parser): Compute the `#line' lines when
1173 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1174 Suggested by Hans Aberg.
1176 2000-12-19 Akim Demaille <akim@epita.fr>
1178 Let the handling of the skeleton files be local to the procedures
1181 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1183 (fparser, open_extra_files): Remove.
1184 (open_files, output_files): Don't take care of fparser.
1185 * src/files.h: Adjust.
1186 * src/output.c (output_parser): Open and close the file to the
1188 * src/reader.c (read_declarations): When %semantic_parser, open
1191 2000-12-19 Akim Demaille <akim@epita.fr>
1193 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1194 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1196 2000-12-19 Akim Demaille <akim@epita.fr>
1198 * src/files.c (open_files): Yipee! We no longer need all the code
1199 looking for `/tmp' since we have no tmp file.
1201 2000-12-19 Akim Demaille <akim@epita.fr>
1203 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1205 * src/files.c (open_files): Less dependency on MSDOS etc.
1207 2000-12-14 Akim Demaille <akim@epita.fr>
1209 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1210 Provide a default definition.
1211 Use it when executing the default @ action.
1212 * src/reader.c (reader_output_yylsp): No longer include
1213 `timestamp' and `text' in the default YYLTYPE.
1215 2000-12-12 Akim Demaille <akim@epita.fr>
1217 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1218 (copy_guard): Quote the file names.
1219 Reported by Laurent Mascherpa.
1221 2000-12-12 Akim Demaille <akim@epita.fr>
1223 * src/output.c (output_headers, output_program, output): Be sure
1224 to escape special characters when outputting filenames.
1225 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1226 (output_headers): Don't depend on them, Use ACTSTR.
1228 2000-11-17 Akim Demaille <akim@epita.fr>
1230 * lib/obstack.h: Formatting changes.
1231 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1232 prevents type checking.
1233 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1234 cast the value to (void *): assigning a `foo *' to a `void *'
1236 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1237 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1240 2000-11-17 Akim Demaille <akim@epita.fr>
1242 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1244 (suite.m4, regression.m4, calc.m4): these.
1245 * tests/atgeneral.m4: Update from CVS Autoconf.
1247 2000-11-17 Akim Demaille <akim@epita.fr>
1249 * tests/regression.m4 (%union and --defines): New test,
1250 demonstrating a current bug in the obstack implementation.
1252 2000-11-17 Akim Demaille <akim@epita.fr>
1254 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1256 Use them to declare the variables which are global or local to
1259 2000-11-17 Akim Demaille <akim@epita.fr>
1261 * acconfig.h: Remove, no longer used.
1263 2000-11-07 Akim Demaille <akim@epita.fr>
1265 * src: s/Copyright (C)/Copyright/g.
1267 2000-11-07 Akim Demaille <akim@epita.fr>
1269 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1271 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1273 2000-11-07 Akim Demaille <akim@epita.fr>
1275 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1276 Merge in a single CPP if/else.
1278 2000-11-07 Akim Demaille <akim@epita.fr>
1280 * src/output.c (output): Remove useless variables.
1281 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1282 argument `data' for consistency with the prototypes.
1284 (obstack_copy, obstack_copy0): Rename the second argument as
1285 `address' for consistency. Qualify it `const'.
1286 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1287 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1288 `const' their input argument (`data' or `address').
1289 Adjust the corresponding macros to include `const' in casts.
1291 2000-11-03 Akim Demaille <akim@epita.fr>
1293 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1294 s/PFILE1/BISON_HAIRY/.
1295 Adjust dependencies.
1297 2000-11-03 Akim Demaille <akim@epita.fr>
1299 For some reason, this was not applied.
1301 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1302 `unlink': it's no longer used.
1304 2000-11-03 Akim Demaille <akim@epita.fr>
1306 * src/files.c (skeleton_find): New function, eved out of...
1307 (open_files, open_extra_files): here.
1309 2000-11-03 Akim Demaille <akim@epita.fr>
1313 * src/files.c (obstack_save): New function.
1314 (done): Rename as...
1315 (output_files): this.
1317 * src/main.c (main): Don't use `atexit' to register `done', since
1318 it no longer has to remove tmp files, just call `output_files'
1319 when there are no errors.
1321 2000-11-02 Akim Demaille <akim@epita.fr>
1323 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1324 `unlink': it's no longer used.
1325 * src/files.h: Formatting changes.
1327 2000-11-02 Akim Demaille <akim@epita.fr>
1329 Remove the last uses of mktemp and unlink/delete.
1331 * src/files.c (fdefines, ftable): Removed.
1332 (defines_ostack, table_obstack): New.
1333 Adjust dependencies of the former into uses of the latter.
1334 * src/output.c (output_short_or_char_table, output_short_table):
1335 Convert to using obstacks.
1336 * src/reader.c (copy_comment2): Accept one FILE * and two
1338 (output_token_defines, reader_output_yylsp): Use obstacks.
1339 * src/system.h (obstack_fgrow3): New.
1341 2000-11-01 Akim Demaille <akim@epita.fr>
1343 Change each use of `fattrs' into a use of `attrs_obstack'.
1345 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1346 * src/files.c (fattrs): Remove.
1347 (attrs_obstack): New.
1348 Adjust all dependencies.
1349 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1351 2000-11-01 Akim Demaille <akim@epita.fr>
1354 Change each use of `faction' into a use of `action_obstack'.
1356 * lib/obstack.h, lib/obstack.c: New files.
1357 * src/files.c (faction): Remove.
1358 (action_obstack): New.
1359 Adjust all dependencies.
1361 2000-10-20 Akim Demaille <akim@epita.fr>
1363 * lib/quote.h (PARAMS): New macro. Use it.
1365 2000-10-16 Akim Demaille <akim@epita.fr>
1367 * src/output.c (output_short_or_char_table): New function.
1368 (output_short_table, output_token_translations): Use it.
1369 (goto_actions): Use output_short_table.
1371 2000-10-16 Akim Demaille <akim@epita.fr>
1373 * src/symtab.c (bucket_new): New function.
1376 * src/output.c (output_short_table): New argument to display the
1377 comment associated with the table.
1378 Adjust dependencies.
1379 (output_gram): Use it.
1380 (output_rule_data): Nicer output layout for YYTNAME.
1382 2000-10-16 Akim Demaille <akim@epita.fr>
1384 * src/lex.c (read_typename): New function.
1386 * src/reader.c (copy_dollar): Likewise.
1388 2000-10-16 Akim Demaille <akim@epita.fr>
1390 * src/reader.c (copy_comment2): Expect the input stream to be on
1391 the `/' which is suspected to open a comment, instead of being
1392 called after `//' or `/*' was read.
1393 (copy_comment, copy_definition, parse_union_decl, copy_action)
1394 (copy_guard): Adjust.
1396 2000-10-16 Akim Demaille <akim@epita.fr>
1398 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1399 `read_signed_integer'.
1401 2000-10-16 Akim Demaille <akim@epita.fr>
1403 * src/reader.c (copy_dollar): New function.
1404 (copy_guard, copy_action): Use it.
1406 2000-10-16 Akim Demaille <akim@epita.fr>
1408 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1409 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1410 New files, from Fileutils 4.0.27.
1411 * src/main.c (printable_version): Remove.
1412 * src/lex.c, src/reader.c: Use `quote'.
1414 2000-10-04 Akim Demaille <akim@epita.fr>
1416 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1418 2000-10-04 Akim Demaille <akim@epita.fr>
1420 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1422 2000-10-04 Akim Demaille <akim@epita.fr>
1424 When a literal string is used to define two different tokens,
1425 `bison -v' segfaults.
1426 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1428 * tests/regression.m4: New file.
1429 Include the core of the sample provided by Piotr Gackiewicz.
1430 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1433 2000-10-04 Akim Demaille <akim@epita.fr>
1435 * src/reader.c (parse_expect_decl): Keep `count' within the size
1439 2000-10-02 Paul Eggert <eggert@twinsun.com>
1441 * bison.s1 (yyparse): Assign the default value
1442 unconditionally, to avoid a GCC warning and make the parser a
1445 2000-10-02 Akim Demaille <akim@epita.fr>
1447 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1450 2000-10-02 Akim Demaille <akim@epita.fr>
1452 * src/derives.c, src/print.c, src/reduce.c: To ease the
1453 translation, move some `\n' out of the translated strings.
1455 2000-10-02 Akim Demaille <akim@epita.fr>
1457 The location tracking mechanism is precious for parse error
1458 messages. Nevertheless, it is enabled only when `@n' is used in
1459 the grammar, which is a different issue (you can use it in error
1460 message, but not in the grammar per se). Therefore, there should
1461 be another means to enable it.
1463 * src/getargs.c (getargs): Support `--locations'.
1465 * src/getargs.h (locationsflag): Export it.
1466 * src/lex.c (percent_table): Support `%locations'.
1467 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1468 with `locationsflag'.
1469 * doc/bison.texinfo: Document `--locations' and `%locations'.
1471 * tests/calc.m4: Test it.
1473 For regularity of the names, replace each
1474 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1475 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1476 In addition replace each `flag' with `_flag'.
1478 2000-10-02 Akim Demaille <akim@epita.fr>
1480 Also test parse error messages, including with YYERROR_VERBOSE.
1482 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1484 Use it to check the computations.
1485 Use it to check `nonassoc' is honored.
1486 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1487 `--yyerror-verbose'.
1488 (_AT_CHECK_CALC): Adjust to this option.
1489 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1491 2000-10-02 Akim Demaille <akim@epita.fr>
1493 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1494 the latter demonstrates a flaw in the handling of non debugging
1495 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1496 was used in order to simplify:
1512 unfortunately this leads to a CPP conflict when
1513 `--name-prefix=foo' is used since it produces `#define yydebug
1516 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1517 (YYDPRINTF): New macro.
1519 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1521 Also test `--verbose', `--defines' and `--name-prefix'.
1523 2000-10-02 Akim Demaille <akim@epita.fr>
1525 Improve the readability of the produced parsers.
1527 * src/bison.s1: Formatting changes.
1528 Improve the comment related to the `$' mark.
1529 (yydefault): Don't fall through to `yyresume': `goto' there.
1530 * src/output.c (output_parser): When the `$' is met, skip the end
1532 New variable, `number_of_dollar_signs', to check there's exactly
1533 one `$' in the parser skeleton.
1535 2000-10-02 Akim Demaille <akim@epita.fr>
1537 * lib/xstrdup.c: New file, from the fileutils.
1538 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1539 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1540 instead of strlen + xmalloc + strcpy.
1541 * src/symtab.c (copys): Remove, use xstrdup instead.
1543 2000-10-02 Akim Demaille <akim@epita.fr>
1545 * src/gram.h (associativity): New enum type which replaces the
1546 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1547 `right_assoc', `left_assoc' and `non_assoc'.
1548 Adjust all dependencies.
1549 * src/reader.c: Formatting changes.
1550 (LTYPESTR): Don't define it, use it as a literal in
1551 `reader_output_yylsp'.
1552 * src/symtab.h (symbol_class): New enum type which replaces the
1553 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1554 `sunknown', `stoken and `snterm'.
1556 2000-10-02 Akim Demaille <akim@epita.fr>
1558 * src/getargs.c (fixed_outfiles): Rename as...
1559 (yaccflag): for consistency and accuracy.
1560 Adjust dependencies.
1562 2000-10-02 Akim Demaille <akim@epita.fr>
1564 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1565 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1566 difficult and introduced a lot of core dump. It turns out that
1567 Bison used an implementation of `xmalloc' based on `calloc', and
1568 at various places it does depend upon the initialization to 0. I
1569 have not tried to isolate the pertinent places, and all the former
1570 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1571 someone should address this issue.
1573 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1574 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1576 Adjust dependencies.
1577 * src/warshall.h: New file.
1580 2000-10-02 Akim Demaille <akim@epita.fr>
1582 Various anti-`extern in *.c' changes.
1584 * src/system.h: Include `assert.h'.
1586 2000-10-02 Akim Demaille <akim@epita.fr>
1588 * src/state.h (nstates, final_state, first_state, first_shift)
1589 (first_reduction): Move their exportation from here...
1590 * src/LR0.h: to here.
1591 Adjust dependencies.
1592 * src/getargs.c (statisticsflag): New variable.
1593 Add support for `--statistics'.
1594 Adjust dependencies.
1596 Remove a lot of now useless `extern' statements in most files.
1598 2000-10-02 Akim Demaille <akim@epita.fr>
1600 * src/LR0.h: New file.
1603 2000-10-02 Akim Demaille <akim@epita.fr>
1605 * src/print.h: New file.
1607 * src/print.c: Formatting and ordering changes.
1608 (verbose, terse): Replace with...
1609 (print_results): this new function.
1610 Adjust dependencies.
1612 2000-10-02 Akim Demaille <akim@epita.fr>
1614 * src/conflicts.c (conflict_report): New function.
1615 (conflict_log, verbose_conflict_log): Replace with...
1616 (print_conflicts): this function.
1617 Adjust dependencies.
1618 * src/conflicts.h: New file.
1619 Propagate its inclusion.
1621 2000-10-02 Akim Demaille <akim@epita.fr>
1623 * src/nullable.h: New file.
1624 Propagate its inclusion.
1625 * src/nullable.c: Formatting changes.
1627 2000-10-02 Akim Demaille <akim@epita.fr>
1629 * src/reduce.h: New file.
1630 Propagate its inclusion.
1631 * src/reduce.c: Topological sort and other formatting changes.
1632 (bool, TRUE, FALSE): Move their definition to...
1633 * src/system.h: here.
1635 2000-10-02 Akim Demaille <akim@epita.fr>
1637 * src/files.c: Formatting changes.
1638 (tryopen, tryclose, openfiles): Rename as...
1639 (xfopen, xfclose, open_files): this.
1640 (stringappend): static.
1641 * src/files.h: Complete the list of exported symbols.
1644 2000-10-02 Akim Demaille <akim@epita.fr>
1646 * src/reader.h: New file.
1647 Propagate its use instead of tedious list of `extern' and
1649 * src/reader.c: Formatting changes, topological sort,
1652 2000-10-02 Akim Demaille <akim@epita.fr>
1654 * src/lex.h: Prototype `lex.c' exported functions.
1655 * src/reader.c: Adjust.
1656 * src/lex.c: Formatting changes.
1657 (safegetc): Rename as...
1660 2000-10-02 Akim Demaille <akim@epita.fr>
1662 * src/lalr.h: New file.
1663 Propagate its inclusion instead of prototypes and `extern'.
1664 * src/lalr.c: Formatting changes, topological sorting etc.
1666 2000-10-02 Akim Demaille <akim@epita.fr>
1668 * src/output.c (token_actions): Introduce a temporary array,
1669 YYDEFACT, that makes it possible for this function to use
1672 2000-10-02 Akim Demaille <akim@epita.fr>
1674 `user_toknums' is output as a `short[]' in `output.c', while it is
1675 defined as a `int[]' in `reader.c'. For consistency with the
1676 other output tables, `user_toknums' is now defined as a table of
1679 * src/reader.c (user_toknums): Be a short table instead of an int
1681 Adjust dependencies.
1683 Factor the short table outputs.
1685 * src/output.c (output_short_table): New function.
1686 * src/output.c (output_gram, output_stos, output_rule_data)
1687 (output_base, output_table, output_check): Use it.
1689 2000-10-02 Akim Demaille <akim@epita.fr>
1691 * src/output.c (output): Topological sort of the functions, in
1692 order to get rid of the `static' prototypes.
1693 No longer use `register'.
1694 * src/output.h: New file.
1695 Propagate its inclusion in files explicitly prototyping functions
1698 2000-09-21 Akim Demaille <akim@epita.fr>
1700 * src/atgeneral.m4: Update from Autoconf.
1702 2000-09-21 Akim Demaille <akim@epita.fr>
1704 * src/closure.h: New file.
1705 * src/closure.c: Formatting changes, topological sort over the
1706 functions, use of closure.h.
1707 (initialize_closure, finalize_closure): Rename as...
1708 (new_closure, free_closure): these. Adjust dependencies.
1709 * src/LR0.c: Formatting changes, topological sort, use of
1711 (initialize_states): Rename as...
1713 * src/Makefile.am (noinst_HEADERS): Adjust.
1715 2000-09-20 Akim Demaille <akim@epita.fr>
1717 * src/acconfig.h: Don't protect config.h against multiple
1719 Don't define PARAMS.
1720 * src/system.h: Define PARAMS.
1721 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1722 purpose of config.h. system.h must not try to fix wrong
1723 definitions in config.h.
1725 2000-09-20 Akim Demaille <akim@epita.fr>
1727 * src/derives.h: New file.
1728 * src/main.c, src/derives.h: Use it.
1730 * src/Makefile.am (noinst_HEADERS): Adjust.
1732 2000-09-20 Akim Demaille <akim@epita.fr>
1734 * tests/atgeneral.m4: Update from Autoconf.
1735 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1736 (AT_CHECK_CALC): New macros.
1737 Use these macros to test bison with options `', `--raw',
1738 `--debug', `--yacc', `--yacc --debug'.
1740 2000-09-19 Akim Demaille <akim@epita.fr>
1742 * src/output.c: Formatting changes.
1743 * src/machine.h: Remove, leaving its contents in...
1744 * src/system.h: here.
1746 Adjust all dependencies on stdio.h and machine.h.
1747 * src/getargs.h: New file.
1748 Let all `extern' declarations about getargs.c be replaced with
1749 inclusion of `getargs.h'.
1750 * src/Makefile.am (noinst_HEADERS): Adjust.
1752 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1754 (yyerror): Returns void, not int.
1755 * doc/bison.texinfo: Formatting changes.
1757 2000-09-19 Akim Demaille <akim@epita.fr>
1759 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1762 2000-09-18 Akim Demaille <akim@epita.fr>
1764 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1765 * src/Makefile.am (INCLUDES): Don't.
1766 Be ready to fetch headers in lib/.
1768 2000-09-18 Akim Demaille <akim@epita.fr>
1770 * doc/bison.texinfo: Update the copyright.
1771 ANSIfy and GNUify the examples.
1772 Remove the old menu.
1774 2000-09-18 Akim Demaille <akim@epita.fr>
1776 First set of tests: use the `calc' example from the documentation.
1778 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1779 is defined only when YYDEBUG is.
1780 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1781 * src/files.c (tryopen, tryclose): Formatting changes.
1782 Move to the top and be static.
1783 * src/reader.c (read_signed_integer): Likewise.
1784 * tests/calc.m4: New file.
1785 * Makefile.am, suite.m4: Adjust.
1786 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1788 2000-09-18 Akim Demaille <akim@epita.fr>
1790 Add support for an Autotest test suite for Bison.
1792 * m4/m4.m4, m4/atconfig.m4: New files.
1793 * m4/Makefile.am (EXTRA_DIST): Adjust.
1794 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1796 * src/getargs.c: Display a more standard --version message.
1797 * src/reader.c (reader): Formatting changes.
1798 No longer depend upon VERSION_STRING.
1799 * configure.in: No longer use `dnl'.
1800 Set up the test suite and the new directory `tests/.
1801 (VERSION_STRING): Remove.
1803 2000-04-14 Akim Demaille <akim@epita.fr>
1805 * src/reader.c (copy_comment2): New function, same as former
1806 `copy_comment', but outputs into two FILE *.
1807 (copy_comment): Use it.
1808 (parse_union_decl): Use it.
1809 (get_type, parse_start_decl): Use the same `invalid' message.
1810 (parse_start_decl, parse_union_decl): Use the same `multiple'
1812 (parse_union_decl, copy_guard, copy_action): Use the same
1813 `unmatched' message.
1814 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1816 2000-03-31 Akim Demaille <akim@epita.fr>
1818 * src/files.c (tryopen, tryclose): Move to the top.
1821 2000-03-31 Akim Demaille <akim@epita.fr>
1823 * src/main.c (main): Don't call `done', exit does it.
1825 2000-03-31 Akim Demaille <akim@epita.fr>
1827 * allocate.c: s/return (foo)/return foo/.
1830 * output.c: Likewise.
1831 * reader.c: Likewise.
1832 * symtab.c: Likewise.
1833 * vmsgetargs.c: Likewise.
1835 2000-03-31 Akim Demaille <akim@epita.fr>
1837 Clean up the error reporting functions.
1839 * src/report.c: New file.
1840 * src/report.h: Likewise.
1841 * src/Makefile.am: Adjust.
1842 * m4/error.m4: New file.
1843 * m4/Makefile.am: Adjust.
1844 * configure.in (jm_PREREQ_ERROR): Call it.
1845 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1847 (fatal, fatals): Remove. All callers use complain.c::fatal.
1848 (warn, warni, warns, warnss, warnss): Remove. All callers use
1849 complain.c::complain.
1850 (toomany): Remove, use fatal instead.
1851 * src/files.c (done): No argument, use complain_message_count.
1852 * src/main.c (main): Register `done' to `atexit'.
1854 * src/getargs.c (usage): More `fputs', less `fprintf'.
1856 2000-03-28 Akim Demaille <akim@epita.fr>
1858 * lib/: New directory.
1859 * Makefile.am (SUBDIRS): Adjust.
1860 * configure.in: Adjust.
1861 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1863 * src/alloca.c: Moved to lib/.
1864 * src/getopt.c: Likewise.
1865 * src/getopt1.c: Likewise.
1866 * src/getopt.h: Likewise.
1867 * src/ansi2knr.c: Likewise.
1868 * src/ansi2knr.1: Likewise.
1869 * src/Makefile.am: Adjust.
1870 * lib/Makefile.am: New file.
1872 2000-03-28 Akim Demaille <akim@epita.fr>
1874 * src/getargs.c (usage): Refresh the help message.
1876 2000-03-17 Akim Demaille <akim@epita.fr>
1878 * src/getopt1.c: Updated from textutils 2.0e
1879 * src/getopt.c: Likewise.
1880 * src/getopt.h: Likewise.
1882 2000-03-17 Akim Demaille <akim@epita.fr>
1884 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1885 the file name, not the whole `#line LINE FILE'.
1887 2000-03-17 Akim Demaille <akim@epita.fr>
1889 On syntax errors, report the token on which we choked.
1891 * src/bison.s1 (yyparse): In the label yyerrlab, when
1892 YYERROR_VERBOSE, add yychar in msg.
1894 2000-03-17 Akim Demaille <akim@epita.fr>
1896 * src/reader.c (copy_at): New function.
1897 (copy_guard): Use it.
1898 (copy_action): Use it.
1900 2000-03-17 Akim Demaille <akim@epita.fr>
1902 Be kind to translators, save some useless translations.
1904 * src/main.c (banner): New function.
1905 (fatal_banner): Use it.
1906 (warn_banner): Use it.
1908 2000-03-17 Akim Demaille <akim@epita.fr>
1910 * src/reader.c (copy_definition): Use copy_string and
1911 copy_comment. Removed now unused `match', `ended',
1913 (copy_comment, copy_string): Moved, to be visible from
1916 2000-03-17 Akim Demaille <akim@epita.fr>
1918 * src/reader.c (copy_string): Declare `static inline'. No
1919 problems with inline, since it is checked by configure.
1920 (copy_comment): Likewise.
1922 2000-03-17 Akim Demaille <akim@epita.fr>
1924 * src/reader.c (packsymbols): Formatting changes.
1926 2000-03-17 Akim Demaille <akim@epita.fr>
1928 * src/reader.c (copy_comment): New function, factored out from:
1929 (copy_action): Use it. Removed now unused `match', `ended',
1931 (copy_guard): Likewise.
1933 2000-03-17 Akim Demaille <akim@epita.fr>
1935 * src/reader.c (copy_string): New function, factored out from:
1936 (copy_action): Use it.
1937 (copy_guard): Likewise.
1939 2000-03-17 Akim Demaille <akim@epita.fr>
1941 Change the handling of @s so that they behave exactly like $s.
1942 There is now a pseudo variable @$ (readble and writable), location
1943 of the lhs of the rule (by default ranging from the location of
1944 the first symbol of the rhs, to the location of the last symbol,
1945 or, if the rhs is empty, YYLLOC).
1947 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1949 (yyparse): When providing a default semantic action, provide a
1950 default location action.
1951 (after the $): No longer change `*YYLSP', just stack YYLOC the
1952 same way you stack YYVAL.
1953 * src/reader.c (read_declarations): Use warns.
1954 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1955 (copy_action, case '@'): Likewise.
1956 Use a standard error message, to save useless work from
1959 2000-03-17 Akim Demaille <akim@epita.fr>
1961 * src/bison.s1: Formatting and cosmetics changes.
1962 * src/reader.c: Likewise.
1963 Update the Copyright notice.
1965 2000-03-17 Akim Demaille <akim@epita.fr>
1967 * src/bison.s1 (#line): All set to `#line' only, since the
1968 Makefile now handles them.
1970 2000-03-16 Akim Demaille <akim@epita.fr>
1972 * src/output.c (output_rule_data): Output the documentation of
1974 (Copyright notice): Update.
1977 2000-03-16 Akim Demaille <akim@epita.fr>
1979 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1980 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1981 One `#if YYDEBUG' remains, since it uses variables which are
1982 defined only if `YYDEBUG != 0'.
1984 2000-03-16 Akim Demaille <akim@epita.fr>
1986 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1987 and related variables so that the similarities are highlighted.
1989 2000-03-16 Akim Demaille <akim@epita.fr>
1991 * src/bison.s1: Properly indent CPP directives.
1993 2000-03-16 Akim Demaille <akim@epita.fr>
1995 * src/bison.s1: Properly indent the `alloca' CPP section.
1997 2000-03-16 Akim Demaille <akim@epita.fr>
1999 Do not hard code values of directories in `configure.in'.
2000 Update the `configure' tool chain.
2002 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2004 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2005 (AC_OUTPUT): Add m4/Makefile.
2006 Bump to bison 1.28a, 1.29 has never been released.
2007 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2008 handled via src/Makefile.am.
2009 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2010 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2012 * Makefile.am (SUBDIRS): Add m4.
2013 (ACLOCAL_AM_FLAGS): New variable.
2014 (AUTOMAKE_OPTIONS): Add check-news.
2015 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2016 the proper line number and file name.
2017 (DEFS): Propagate the location of bison library files and of the
2019 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2021 * acinclude.m4: Remove, replaced by the directory m4.
2022 * m4/Makefile.am (EXTRA_DIST): New variable.
2023 * m4/gettext.m4: New file, from the fileutils.
2024 * m4/lcmessage.m4: Likewise
2025 * m4/progtest.m4: Likewise.
2026 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2028 2000-03-10 Akim Demaille <akim@epita.fr>
2031 Formatting changes of various comments.
2032 Respect the GNU coding standards at various places.
2033 Don't use `_()' when no translation is needed.
2035 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2038 OS/2 honors TMPDIR environment variable.
2040 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2042 * doc/bison.texinfo: Tweaked spelling and grammar.
2044 Removed reference to price of printed copy.
2045 Mention BISON_SIMPLE and BISON_HAIRY.
2047 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2049 * configure.in, NEWS:
2050 Bison 1.29 released.
2052 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2054 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2055 Added reference card.
2057 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2059 * po/ru.po: Added Russian translation.
2061 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2063 * configure.in: Added Russian translation.
2065 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2067 * configure.in, NEWS, README:
2068 Released version 1.28.
2070 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2073 Squashed redefinition warning on some systems.
2075 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2076 Have configure build version string instead of relying on ANSI string
2079 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2081 * po/POTFILES.in: Got rid of version.c.
2083 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2085 * acconfig.h, configure.in:
2086 Have configure build version string instead of relying on ANSI string
2089 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2092 Dropped mention of `+' for long-named options.
2094 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2096 * src/files.c: Added <unistd.h> for unlink().
2098 * src/Makefile.am, src/system.h:
2101 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2103 * README: Added a FAQ list.
2105 * configure.in, acconfig.h:
2108 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2110 * doc/FAQ, doc/Makefile.am:
2113 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2115 * src/alloc.h, src/symtab.h, src/version.c:
2116 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2118 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2120 * src/.cvsignore, src/Makefile.am:
2121 Reorganized: sources in `src', documentation in `doc'.
2123 * src/lex.c (literalchar):
2124 fixed the code for escaping double quotes (thanks
2127 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2129 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2130 Adjusted paths to reflect directory reorganization.
2132 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2134 * doc/.cvsignore, doc/Makefile.am:
2135 Reorganized: sources in `src', documentation in `doc'.
2137 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2140 Updated AC_INIT file to reflect directory reorganization.
2142 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2143 Reorganized: sources in `src', documentation in `doc'.
2145 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2148 Don't declare calloc() and realloc() if not necessary.
2150 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2152 * configure.in, acconfig.h, acinclude.m4:
2153 Don't declare calloc() and realloc() if not necessary.
2155 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2157 * po/.cvsignore: Added i18n support.
2159 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2161 * acconfig.h, configure.in, Makefile.am:
2164 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2166 * src/bison.s1: Fixed #line numbers.
2168 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2170 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2171 Added PO files from Translation Project.
2173 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2176 Added support for non-ANSI compilers (ansi2knr).
2178 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2180 * configure.in: Bumped version number to 1.27.
2183 Added `bison.simple' to list of files removed by `make distclean'.
2185 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2187 * src/files.c, src/files.h:
2188 Defined locations of parser files in config.h instead of Makefile.
2190 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2192 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2193 Defined locations of parser files in config.h instead of Makefile.
2195 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2198 Removed inappropriate use of $< macro.
2200 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2202 * po/Makefile.in.in, po/POTFILES.in:
2203 Add `po' directory skeleton.
2205 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2207 * README: Document help-bison list.
2209 * configure.in: Add check for mkstemp().
2211 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2213 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2214 Hush a few compiler warnings.
2217 Add tryclose(), which verifies that fclose was successful.
2218 Hush a couple of compiler warnings.
2220 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2222 * Makefile.am, OChangeLog:
2223 ChangeLog is now automatically generated. Include the old version as
2226 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2228 * 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:
2231 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2233 * doc/bison.texinfo: Fix formatting glitch.
2235 * doc/bison.texinfo: Update FSF address.
2237 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2239 * acconfig.h: Update FSF address.
2241 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2244 Don't define PACKAGE here, since config.h defines it.
2246 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2248 * src/reader.c: Update copyright date.
2251 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2252 favor of output directly to stderr (avoids buffer overruns).
2254 * src/reader.c: Some checks for premature EOF.
2256 * 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:
2257 Use prototypes if the compiler understands them.
2259 * src/files.c: Honor TMPDIR on Unix hosts.
2260 Use prototypes if the compiler understands them.
2263 Fix a couple of buffer overrun bugs.
2264 Use prototypes if the compiler understands them.
2266 * src/system.h: Include unistd.h and ctype.h.
2267 Use #ifdef instead of #if for NLS symbols.
2269 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2271 * doc/bison.texinfo:
2272 Delete comment "consider using @set for edition number, etc..." since
2273 we now are doing so.
2275 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2278 Use prototypes if the compiler understands them.
2280 * NEWS: Document 1.26 highlights.
2282 * Makefile.am: Require Automake 1.3 or later.
2285 Use prototypes if the compiler understands them.
2287 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2290 Use VERSION symbol from automake for version number.
2292 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2294 * acconfig.h, configure.in, version.cin:
2295 Use VERSION symbol from automake for version number.
2297 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2300 Distribute original version of simple parser (bison.s1), not built
2301 version (bison.simple).
2303 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2305 * doc/bison.texinfo: Add info dir entry.
2307 * doc/bison.texinfo:
2308 Let automake put version number into documentation.
2310 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2312 * src/bison.cld, src/build.com, src/vmshlp.mar:
2313 Add non-RCS files from /gd/gnu/bison.
2315 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2318 Document the BISON_HAIRY and BISON_SIMPLE variables.
2320 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2322 * src/version.c: Build version.c automatically.
2325 Fix token numbering (used to start at 258, not 257).
2327 * src/system.h: Include config.h.
2329 * src/getargs.c: Update bug report address.
2331 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2332 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2334 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2337 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2339 * configure.in, version.cin:
2340 Build version.c automatically.
2342 * AUTHORS: Add AUTHORS file.
2344 * README: Update bug report address.
2347 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2349 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2352 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2354 * doc/bison.texinfo: Clean up some formatting.
2356 1998-05-05 Richard Stallman <rms@gnu.org>
2358 * doc/bison.texinfo:
2359 Explain better why to make a pure parser.
2361 1998-01-05 Richard Stallman <rms@gnu.org>
2363 * src/files.c (openfiles):
2364 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2365 find a temporary directory, if possible. Do not unlink files while
2368 1997-08-25 Richard Stallman <rms@gnu.org>
2370 * src/reader.c (stack_offset;):
2371 Change some warni to warns.
2373 * src/lex.c (literalchar): Use warns, not warni.
2375 1997-06-28 Richard Stallman <rms@gnu.org>
2377 * src/bison.s1: Add a Bison version comment.
2379 * src/main.c (fatal, warn, berror):
2382 1997-06-28 Richard Stallman <rms@gnu.org>
2384 * Makefile.in (bison_version): New variable.
2385 (dist): Use that variable.
2386 (bison.s1): Substitute the Bison version into bison.simple.
2388 * bison.simple: Add a Bison version comment.
2390 1997-06-18 Richard Stallman <rms@gnu.org>
2392 * src/main.c (fatal, warn, berror):
2393 Make error messages standard.
2394 (toomany): Improve error message text.
2396 * 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:
2397 new.h renamed to alloc.h.
2399 1997-06-18 Richard Stallman <rms@gnu.org>
2401 * Makefile.in: new.h renamed to alloc.h.
2403 1997-05-24 Richard Stallman <rms@gnu.org>
2405 * src/lex.c (literalchar):
2406 Fix the code for escaping \, " and '.
2408 (lex): Avoid trouble when there are many chars
2409 to discard in a char literal with just several chars in it.
2411 1997-05-17 Richard Stallman <rms@gnu.org>
2414 Use malloc, if using alloca is troublesome.
2415 (YYSTACK_USE_ALLOCA): New flag macro.
2416 Define it for some systems and compilers.
2417 (YYSTACK_ALLOC): New macro.
2418 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2419 If it was malloc'd, free it.
2421 1997-05-17 Richard Stallman <rms@gnu.org>
2424 Use malloc, if using alloca is troublesome.
2425 (YYSTACK_USE_ALLOCA): New flag macro.
2426 Define it for some systems and compilers.
2427 (YYSTACK_ALLOC): New macro.
2428 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2429 If it was malloc'd, free it.
2431 1997-04-23 Richard Stallman <rms@gnu.org>
2434 (alloca) [__hpux]: Always define as __builtin_alloca.
2436 1997-04-23 Richard Stallman <rms@gnu.org>
2439 (alloca) [__hpux]: Always define as __builtin_alloca.
2441 1997-04-22 Richard Stallman <rms@gnu.org>
2444 [__hpux]: Include alloca.h (right for HPUX 10)
2445 instead of declaring alloca (right for HPUX 9).
2447 * src/bison.s1 (__yy_memcpy):
2448 Declare arg `count' as unsigned int.
2449 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2451 1997-04-22 Richard Stallman <rms@gnu.org>
2454 [__hpux]: Include alloca.h (right for HPUX 10)
2455 instead of declaring alloca (right for HPUX 9).
2457 * bison.simple (__yy_memcpy):
2458 Declare arg `count' as unsigned int.
2459 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2461 1997-01-03 Richard Stallman <rms@gnu.org>
2463 * src/allocate.c: [__STDC__ or _MSC_VER]:
2464 Declare calloc and realloc to return void *.
2466 1997-01-02 Richard Stallman <rms@gnu.org>
2469 [_MSC_VER]: Include stdlib.h and process.h.
2470 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2472 * src/main.c (main): Return FAILURE as a value.
2473 (printable_version): Declare arg as int, not char.
2475 1997-01-02 Richard Stallman <rms@gnu.org>
2477 * Makefile.in (dist):
2478 Explicitly check for symlinks, and copy them.
2480 1996-12-19 Richard Stallman <rms@gnu.org>
2483 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2485 1996-12-18 Paul Eggert <eggert@gnu.org>
2487 * src/bison.s1 (yyparse):
2488 If __GNUC__ and YYPARSE_PARAM are both defined,
2489 declare yyparse to have a void * argument.
2491 1996-12-18 Paul Eggert <eggert@gnu.org>
2493 * bison.simple (yyparse):
2494 If __GNUC__ and YYPARSE_PARAM are both defined,
2495 declare yyparse to have a void * argument.
2497 1996-12-17 Richard Stallman <rms@gnu.org>
2499 * src/reduce.c (nbits): Add some casts.
2501 1996-08-12 Richard Stallman <rms@gnu.org>
2503 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2505 1996-08-12 Richard Stallman <rms@gnu.org>
2507 * bison.simple: Test _MSDOS as well as _MSDOS_.
2509 1996-07-31 Richard Stallman <rms@gnu.org>
2512 [__sun && __i386]: Include alloca.h.
2514 1996-07-31 Richard Stallman <rms@gnu.org>
2517 [__sun && __i386]: Include alloca.h.
2519 1996-07-30 Richard Stallman <rms@gnu.org>
2521 * src/bison.s1: Comment change.
2523 * src/bison.s1: Test _MSDOS_, not MSDOS.
2525 1996-07-30 Richard Stallman <rms@gnu.org>
2527 * bison.simple: Comment change.
2529 * bison.simple: Test _MSDOS_, not MSDOS.
2531 1996-06-01 Richard Stallman <rms@gnu.org>
2533 * 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:
2534 Insert `_' macro around many string constants.
2537 Insert `_' macro around many string constants.
2539 (main): Call setlocale, bindtextdomain and textdomain.
2541 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2542 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2543 [ENABLE_NLS]: Include libintl.h.
2544 [ENABLE_NLS] (gettext): Define.
2545 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2546 (N_, PACKAGE, LOCALEDIR): New macros.
2548 1996-06-01 Richard Stallman <rms@gnu.org>
2550 * POTFILES.in: New file.
2552 * Makefile.in (allocate.o):
2553 Define target explicitly.
2555 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2556 (LDFLAGS): Set to @LDFLAGS@.
2557 (configure): Run autoconf only if preceding `cd' succeeds.
2558 (bison.s1): Redirect output to temporary file then move the
2559 temporary to the target, rather than redirecting directly to bison.s1.
2560 (clean): Remove config.status and config.log.
2561 (distclean): Don't remove config.status here.
2563 1996-05-12 Richard Stallman <rms@gnu.org>
2566 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2568 1996-05-12 Richard Stallman <rms@gnu.org>
2571 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2573 1996-05-11 Richard Stallman <rms@gnu.org>
2575 * src/bison.s1 (__yy_memcpy):
2576 Really reorder the args, as was supposedly done on Feb 14 1995.
2577 (yyparse): Calls changed accordingly.
2579 1996-05-11 Richard Stallman <rms@gnu.org>
2581 * Makefile.in (dist): Don't use $(srcdir).
2583 * bison.simple (__yy_memcpy):
2584 Really reorder the args, as was supposedly done on Feb 14 1995.
2585 (yyparse): Calls changed accordingly.
2587 1996-01-27 Richard Stallman <rms@gnu.org>
2589 * src/output.c (output_rule_data):
2590 Test YYERROR_VERBOSE in the conditional
2591 around the definition of ttyname.
2593 1995-12-29 Richard Stallman <rms@gnu.org>
2596 Fix line numbers in #line commands.
2598 1995-12-29 Richard Stallman <rms@gnu.org>
2601 Fix line numbers in #line commands.
2603 1995-12-27 Richard Stallman <rms@gnu.org>
2605 * src/bison.s1 (YYPARSE_PARAM_DECL):
2606 In C++, make it always null.
2607 (YYPARSE_PARAM_ARG): New macro.
2608 (yyparse): Use YYPARSE_PARAM_ARG.
2610 1995-12-27 Richard Stallman <rms@gnu.org>
2612 * bison.simple (YYPARSE_PARAM_DECL):
2613 In C++, make it always null.
2614 (YYPARSE_PARAM_ARG): New macro.
2615 (yyparse): Use YYPARSE_PARAM_ARG.
2617 1995-11-29 Richard Stallman <rms@gnu.org>
2619 * doc/bison.texinfo:
2620 Describe literal string tokens, %raw, %no_lines, %token_table.
2622 1995-11-29 Daniel Hagerty <hag@gnu.org>
2624 * doc/bison.texinfo: Fixed update date
2626 1995-10-16 Richard Stallman <rms@gnu.org>
2628 * src/version.c: Version 1.25.
2630 1995-10-16 Richard Stallman <rms@gnu.org>
2632 * NEWS: *** empty log message ***
2634 1995-10-16 Richard Stallman <rms@gnu.org>
2636 * doc/bison.1, doc/bison.rnh:
2639 1995-10-15 Richard Stallman <rms@gnu.org>
2641 * src/vmsgetargs.c, src/getargs.c:
2642 Added -n, -k, and -raw switches.
2643 (noparserflag, toknumflag, rawtoknumflag): New variables.
2645 * src/symtab.h (SALIAS):
2646 New #define for adding aliases to %token.
2647 (struct bucket): Added `alias' field.
2649 * src/reduce.c (reduce_grammar):
2650 Revise error message.
2651 (print_notices): Remove final `.' from error message.
2653 * src/reader.c (reader_output_yylsp):
2655 (readgram): Use `#if 0' around code that accepted %command
2656 inside grammar rules: The documentation doesn't allow it,
2657 and it will fail since the %command processors scan for the next %.
2658 (parse_token_decl): Extended the %token
2659 declaration to allow a multi-character symbol as an alias.
2660 (parse_thong_decl): New function.
2661 (read_declarations): Added %thong declarations.
2662 (read_declarations): Handle NOOP to deal with allowing
2663 % declarations as another means to specify the flags.
2664 (readgram): Allow %prec prior to semantics embedded in a rule.
2665 (skip_to_char, read_declarations, copy_definition)
2666 (parse_token_decl, parse_start_decl, parse_type_decl)
2667 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2668 (get_type_name, copy_guard, copy_action, readgram)
2669 (get_type, packsymbols): Revised most error messages.
2670 Changed `fatal' to `warnxxx' to avoid aborting for error.
2671 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2672 (read_declarations): Improve the error message for
2673 an invalid character. Do not abort.
2674 (read_declarations, copy_guard, copy_action): Use
2675 printable_version to avoid unprintable characters in printed output.
2676 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2677 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2678 Allow the type of a non-terminal can be given
2679 more than once, as long as all specifications give the same type.
2682 (output_headers, output_trailers, output, output_gram)
2683 (output_rule_data): Implement noparserflag variable.
2684 Implement toknumflag variable.
2685 (output): Call reader_output_yylsp to output LTYPESTR.
2687 * src/main.c (main):
2688 If reader sees an error, don't process the grammar.
2689 (fatals): Updated to not use VARARGS1.
2690 (printable_version, int_to_string, warn, warni, warns, warnss)
2691 (warnsss): New error reporting functions. Avoid abort for error.
2694 Added THONG and NOOP for alias processing.
2695 Added SETOPT for the new code that allows setting options with %flags.
2698 Include getopt.h. Add some extern decls.
2699 (safegetc): New function to deal with EOF gracefully.
2700 (literalchar); new function to deal with reading \ escapes.
2701 (lex): Use literalchar.
2702 (lex): Implemented "..." tokens.
2703 (literalchar, lex, parse_percent_token): Made tokenbuffer
2704 always contain the token. This includes growing the token
2705 buffer while reading an integer.
2706 (parse_percent_token): Replaced if-else statement with percent_table.
2707 (parse_percent_token): Added % declarations as another
2708 way to specify the flags -n, -l, and -r. Also added hooks for
2709 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2710 major changes to files.c.
2711 (lex) Retain in the incoming stream a character following
2713 (skip_white_space, lex): Revised most error messages
2714 and changed fatal to warn to avoid aborting.
2715 (percent_table): Added %thong declarations.
2717 * src/gram.h: Comment changes.
2719 * src/files.c (openfiles, open_extra_files, done):
2721 and actfile file. Handle noparserflag. Both for -n switch.
2723 * src/conflicts.c (resolve_sr_conflict):
2724 Remove use of alloca.
2726 1995-06-01 Jim Meyering <meyering@gnu.org>
2728 * doc/bison.texinfo: *** empty log message ***
2730 1995-05-06 Richard Stallman <rms@gnu.org>
2732 * src/bison.s1: Comment change.
2734 1995-05-06 Richard Stallman <rms@gnu.org>
2736 * bison.simple: Comment change.
2738 1995-05-03 Richard Stallman <rms@gnu.org>
2740 * src/version.c: Version now 1.24.
2742 * src/bison.s1: Change distribution terms.
2744 * src/version.c: Version now 1.23.
2746 1995-05-03 Richard Stallman <rms@gnu.org>
2748 * doc/bison.texinfo:
2749 Rewrite "Conditions for Using Bison".
2750 Update version to 1.24.
2752 1995-05-03 Richard Stallman <rms@gnu.org>
2754 * bison.simple: Change distribution terms.
2756 1995-02-23 Richard Stallman <rms@gnu.org>
2758 * src/files.c: Test __VMS_POSIX as well as VMS.
2760 1995-02-14 Jim Meyering <meyering@gnu.org>
2762 * src/bison.s1 (__yy_memcpy):
2763 Renamed from __yy_bcopy to avoid
2764 confusion. Reverse FROM and TO arguments to be consistent with
2767 1995-02-14 Jim Meyering <meyering@gnu.org>
2769 * bison.simple (__yy_memcpy):
2770 Renamed from __yy_bcopy to avoid
2771 confusion. Reverse FROM and TO arguments to be consistent with
2774 1994-11-10 David J. MacKenzie <djm@gnu.org>
2780 * Makefile.in (DISTFILES): Include NEWS.
2782 * Makefile.in (DISTFILES):
2783 Include install-sh, not install.sh.
2785 * configure.in: Update to Autoconf v2 macro names.
2787 1994-10-05 David J. MacKenzie <djm@gnu.org>
2789 * Makefile.in: fix typo
2791 * Makefile.in (prefix, exec_prefix):
2792 Let configure set them.
2794 1994-09-28 David J. MacKenzie <djm@gnu.org>
2796 * Makefile.in: Set datadir to $(prefix)/share.
2798 1994-09-15 Richard Stallman <rms@gnu.org>
2801 Update copyright notice and GPL version.
2803 1994-09-15 Richard Stallman <rms@gnu.org>
2806 Update copyright notice and GPL version.
2808 1994-07-12 Richard Stallman <rms@gnu.org>
2810 * src/reduce.c, src/reader.c:
2813 1994-05-05 David J. MacKenzie <djm@gnu.org>
2815 * Makefile.in: entered into RCS
2817 1994-03-26 Richard Stallman <rms@gnu.org>
2819 * src/bison.s1: entered into RCS
2821 1994-03-26 Richard Stallman <rms@gnu.org>
2823 * bison.simple: entered into RCS
2825 1994-03-25 Richard Stallman <rms@gnu.org>
2827 * src/main.c: entered into RCS
2829 1994-03-24 Richard Stallman <rms@gnu.org>
2831 * src/conflicts.c: entered into RCS
2833 1994-01-02 Richard Stallman <rms@gnu.org>
2835 * Makefile.in: *** empty log message ***
2837 1993-11-21 Richard Stallman <rms@gnu.org>
2839 * src/bison.s1: *** empty log message ***
2841 1993-11-21 Richard Stallman <rms@gnu.org>
2843 * doc/bison.texinfo: entered into RCS
2845 * doc/bison.texinfo: *** empty log message ***
2847 1993-11-21 Richard Stallman <rms@gnu.org>
2849 * bison.simple: *** empty log message ***
2851 1993-10-25 David J. MacKenzie <djm@gnu.org>
2853 * doc/bison.texinfo: *** empty log message ***
2855 1993-10-19 Richard Stallman <rms@gnu.org>
2857 * src/bison.s1: *** empty log message ***
2859 1993-10-19 Richard Stallman <rms@gnu.org>
2861 * bison.simple: *** empty log message ***
2863 1993-10-14 Richard Stallman <rms@gnu.org>
2865 * src/bison.s1: *** empty log message ***
2867 1993-10-14 Richard Stallman <rms@gnu.org>
2869 * bison.simple: *** empty log message ***
2871 1993-09-14 David J. MacKenzie <djm@gnu.org>
2873 * doc/bison.texinfo: *** empty log message ***
2875 1993-09-13 Noah Friedman <friedman@gnu.org>
2877 * Makefile.in: *** empty log message ***
2879 1993-09-10 Richard Stallman <rms@gnu.org>
2881 * src/conflicts.c: *** empty log message ***
2883 * src/system.h: entered into RCS
2885 1993-09-10 Richard Stallman <rms@gnu.org>
2887 * doc/bison.1: entered into RCS
2889 1993-09-06 Noah Friedman <friedman@gnu.org>
2891 * src/version.c: entered into RCS
2893 1993-09-06 Noah Friedman <friedman@gnu.org>
2895 * Makefile.in: *** empty log message ***
2897 1993-07-30 David J. MacKenzie <djm@gnu.org>
2899 * Makefile.in: *** empty log message ***
2901 1993-07-24 Richard Stallman <rms@gnu.org>
2903 * src/bison.s1: *** empty log message ***
2905 1993-07-24 Richard Stallman <rms@gnu.org>
2907 * bison.simple: *** empty log message ***
2909 1993-07-08 David J. MacKenzie <djm@gnu.org>
2911 * Makefile.in: *** empty log message ***
2913 1993-07-04 Richard Stallman <rms@gnu.org>
2915 * src/bison.s1: *** empty log message ***
2917 1993-07-04 Richard Stallman <rms@gnu.org>
2919 * bison.simple: *** empty log message ***
2921 1993-06-26 David J. MacKenzie <djm@gnu.org>
2923 * src/getargs.c: entered into RCS
2925 1993-06-26 David J. MacKenzie <djm@gnu.org>
2927 * doc/bison.texinfo: *** empty log message ***
2929 * doc/bison.1: New file.
2931 1993-06-25 Richard Stallman <rms@gnu.org>
2933 * src/getargs.c: New file.
2935 1993-06-16 Richard Stallman <rms@gnu.org>
2937 * src/bison.s1: *** empty log message ***
2939 1993-06-16 Richard Stallman <rms@gnu.org>
2941 * bison.simple: *** empty log message ***
2943 1993-06-03 Richard Stallman <rms@gnu.org>
2945 * src/bison.s1: New file.
2947 1993-06-03 Richard Stallman <rms@gnu.org>
2949 * doc/bison.texinfo: *** empty log message ***
2951 1993-06-03 Richard Stallman <rms@gnu.org>
2953 * bison.simple: New file.
2955 1993-05-19 Richard Stallman <rms@gnu.org>
2957 * doc/bison.texinfo: New file.
2959 1993-05-07 Noah Friedman <friedman@gnu.org>
2961 * Makefile.in: *** empty log message ***
2963 1993-04-28 Noah Friedman <friedman@gnu.org>
2965 * src/reader.c: *** empty log message ***
2967 1993-04-23 Noah Friedman <friedman@gnu.org>
2969 * src/alloc.h: entered into RCS
2971 1993-04-20 David J. MacKenzie <djm@gnu.org>
2973 * src/version.c: *** empty log message ***
2975 * src/files.c, src/allocate.c:
2978 * src/reader.c: *** empty log message ***
2980 * src/lex.c: entered into RCS
2982 * src/conflicts.c: New file.
2984 * src/symtab.c: entered into RCS
2986 * src/alloc.h: New file.
2988 * src/LR0.c: entered into RCS
2990 1993-04-18 Noah Friedman <friedman@gnu.org>
2992 * src/reader.c: New file.
2994 * src/version.c: *** empty log message ***
2996 1993-04-18 Noah Friedman <friedman@gnu.org>
2998 * Makefile.in: *** empty log message ***
3000 1993-04-17 Noah Friedman <friedman@gnu.org>
3002 * Makefile.in: *** empty log message ***
3004 1993-04-15 Richard Stallman <rms@gnu.org>
3006 * src/main.c, src/files.c:
3009 1993-04-15 Noah Friedman <friedman@gnu.org>
3011 * configure.in: entered into RCS
3013 * configure.in: *** empty log message ***
3015 * configure.in: New file.
3017 1993-04-14 Richard Stallman <rms@gnu.org>
3019 * Makefile.in: New file.
3021 1993-04-13 Richard Stallman <rms@gnu.org>
3023 * src/version.c: New file.
3025 1993-03-25 Richard Stallman <rms@gnu.org>
3027 * src/output.c: entered into RCS
3029 1992-09-25 Richard Stallman <rms@gnu.org>
3031 * configure.bat: entered into RCS
3033 1992-06-22 Richard Stallman <rms@gnu.org>
3035 * src/vmsgetargs.c: entered into RCS
3037 1992-06-22 Richard Stallman <rms@gnu.org>
3039 * doc/bison.rnh: entered into RCS
3041 1992-04-20 David J. MacKenzie <djm@gnu.org>
3043 * README: entered into RCS
3045 1992-01-22 Richard Stallman <rms@gnu.org>
3047 * src/machine.h: entered into RCS
3049 1991-12-21 Richard Stallman <rms@gnu.org>
3051 * src/lalr.c, src/closure.c:
3054 1991-12-20 Richard Stallman <rms@gnu.org>
3056 * src/state.h: entered into RCS
3058 1991-12-18 Richard Stallman <rms@gnu.org>
3060 * src/print.c, src/nullable.c, src/derives.c:
3063 1991-11-03 David J. MacKenzie <djm@gnu.org>
3065 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3068 1988-09-09 Richard Stallman <rms@gnu.org>
3070 * src/bison.hairy: entered into RCS
3072 1987-12-16 Richard Stallman <rms@gnu.org>
3074 * REFERENCES: entered into RCS