1 2001-11-12 Akim Demaille <akim@epita.fr>
3 * tests/regression.at (Conflicts): Rename as...
4 (Unresolved SR Conflicts): this.
5 (Solved SR Conflicts): New.
7 2001-11-12 Akim Demaille <akim@epita.fr>
9 * src/reduce.c (print_results): Rename as...
10 (reduce_output): This.
11 Output to OUT, passed as argument, instead of output_obstack.
12 (dump_grammar): Likewise.
15 (reduce_grammar): No longer call reduce_output, since...
16 * src/print.c (print_results): do it.
17 * src/main.c (main): Call reduce_free;
19 2001-11-12 Akim Demaille <akim@epita.fr>
21 * src/conflicts.c (print_reductions): Accept OUT as argument.
22 Output to it, not to output_obstack.
23 * src/print.c (print_actions): Adjust.
25 2001-11-12 Akim Demaille <akim@epita.fr>
27 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
28 the result instead of using...
29 (src_total, rrc_total, src_count, rrc_count): Remove.
30 (any_conflicts): Remove.
31 (print_conflicts): Split into...
32 (conflicts_print, conflicts_output): New.
33 * src/conflicts.h: Adjust.
34 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
35 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
36 * tests/regression.at (Conflicts): New.
39 2001-11-12 Akim Demaille <akim@epita.fr>
41 * tests/regression.at (Invalid input): Remove, duplicate with
44 2001-11-12 Akim Demaille <akim@epita.fr>
46 * tests/torture.at (AT_DATA_STACK_TORTURE)
47 (Exploding the Stack Size with Alloca)
48 (Exploding the Stack Size with Malloc): New.
50 2001-11-12 Akim Demaille <akim@epita.fr>
52 * src/bison.simple (YYSTACK_REALLOC): New.
53 (yyparse) [!yyoverflow]: Use it and free the old stack.
54 Reported by FIXME: Who.
56 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
58 * src/bison.simple: Define type yystype instead of YYSTYPE, and
59 define CPP macro, which substitute YYSTYPE by yystype.
60 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
61 with yyltype/YYLTYPE. This allows inclusion of the generated
62 header within the parser if the compiler, such as GGC, accepts
63 multiple equivalent #defines.
66 2001-11-05 Akim Demaille <akim@epita.fr>
68 * src/reader.c (symbols_output): New, extracted from...
72 2001-11-05 Akim Demaille <akim@epita.fr>
74 * src/lex.c (parse_percent_token): s/quotearg/quote/.
76 2001-11-05 Akim Demaille <akim@epita.fr>
78 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
81 2001-11-05 Akim Demaille <akim@epita.fr>
83 * src/options.h (struct option_table_struct): set_flags is void*.
84 * src/options.c (longopts): Support `--output' and `%output'.
86 * src/lex.h (tok_setopt): Remove, replaced with...
87 (tok_intopt, tok_stropt): these new guys.
88 * src/lex.c (getopt.h): Not needed.
89 (token_buffer, unlexed_token_buffer): Not const.
90 (percent_table): Promote `-' over `_' in directive names.
91 Active `%name-prefix', `file-prefix', and `output'.
92 (parse_percent_token): Accept possible arguments to directives.
93 Promote `-' over `_' in directive names.
95 2001-11-04 Akim Demaille <akim@epita.fr>
97 * doc/bison.texinfo (Decl Summary): Split the list into
98 `directives for grammars' and `directives for bison'.
100 Add description of `%name-prefix', `file-prefix', and `output'.
101 Promote `-' over `_' in directive names.
102 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
103 Simplify the description of `--name-prefix'.
104 Promote `-' over `_' in directive names.
105 Promote `--output' over `--output-file'.
106 Fix the description of `--defines'.
107 * tests/output.at: Exercise %file-prefix and %output.
109 2001-11-02 Akim Demaille <akim@epita.fr>
111 * doc/refcard.tex: Update.
113 2001-11-02 Akim Demaille <akim@epita.fr>
115 * src/symtab.h (SUNDEF): New.
116 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
117 stand for `uninitialized', instead of 0.
118 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
119 * src/lex.c (lex): Adjust.
121 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
123 Let yylex return it instead of a plain 0.
124 Reported by Dick Streefland.
126 2001-11-02 Akim Demaille <akim@epita.fr>
128 * tests/regression.at (Mixing %token styles): New test.
130 2001-11-02 Akim Demaille <akim@epita.fr>
132 * src/reader.c (parse_thong_decl): Formatting changes.
133 (token_translations_init): New, extracted from...
137 2001-11-01 Akim Demaille <akim@epita.fr>
139 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
140 Check that `9foo.y' produces correct cpp guards.
141 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
145 2001-11-01 Akim Demaille <akim@epita.fr>
147 * tests/regression.at (Invalid input: 2): New.
148 * src/lex.c (unlexed_token_buffer): New.
149 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
153 2001-11-01 Akim Demaille <akim@epita.fr>
155 * tests/calc.at: Catch up with 1.30.
156 * configure.in: Bump to 1.49a.
157 Adjust to newer Autotest.
159 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
161 * src/conflicts.c: Move global variables rrc_total and src_total ...
162 (print_conflicts): here.
163 * src/output.c (output): Free global variable user_toknums.
164 * src/lex.c (token_obstack): Become static.
166 2001-10-18 Akim Demaille <akim@epita.fr>
168 * tests/atlocal.in (GCC): Add.
169 * tests/calc.at: s/m4_match/m4_bmatch/.
170 s/m4_patsubst/m4_bpatsubst/.
171 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
172 * configure.in: AC_SUBST(GCC).
174 2001-10-14 Marc Autret <autret_m@epita.fr>
176 * src/options.c (create_long_option_table): Fix.
178 2001-10-10 Akim Demaille <akim@epita.fr>
180 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
182 2001-10-04 Akim Demaille <akim@epita.fr>
184 * src/reader.c (parse_union_decl): Push the caracters in
185 union_obstack, not attrs_obstack.
187 2001-10-04 Akim Demaille <akim@epita.fr>
189 Merge in the branch 1.29.
191 * src/reader.c (packsymbols): Use a temporary obstack for
192 `%%tokendef', since output_stack is already used elsewhere.
194 2001-10-02 Akim Demaille <akim@epita.fr>
198 2001-10-02 Akim Demaille <akim@epita.fr>
202 2001-10-02 Akim Demaille <akim@epita.fr>
204 * tests/regression.at (Invalid CPP headers): New.
205 From Alexander Belopolsky.
206 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
208 2001-10-02 Akim Demaille <akim@epita.fr>
210 * tests/regression.at (Invalid input): New.
211 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
214 2001-10-02 Akim Demaille <akim@epita.fr>
216 * tests/calc.at: Now that --debug works, the tests must be adjusted.
218 2001-10-02 Akim Demaille <akim@epita.fr>
220 * src/output.c (output_parser): Assert `skeleton'.
221 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
225 2001-10-01 Marc Autret <autret_m@epita.fr>
227 * src/lex.h: Echo modifications.
228 * src/lex.c (unlex): Parameter is now token_t.
231 2001-10-01 Marc Autret <autret_m@epita.fr>
233 * src/main.c: Include lex.h.
236 2001-09-29 Akim Demaille <akim@epita.fr>
238 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
240 2001-09-28 Akim Demaille <akim@epita.fr>
242 * tests/testsuite.at: Update to newer Autotest.
243 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
245 2001-09-27 Akim Demaille <akim@epita.fr>
247 Position independent wrapper.
249 * tests/bison: Remove.
250 * tests/bison.in: New.
251 * configure.in: Adjust.
253 2001-09-27 Paul Eggert <eggert@twinsun.com>
255 Port quotearg fixes from tar 1.13.24.
257 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
259 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
260 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
262 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
263 * m4/mbrtowc.m4: New file.
264 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
265 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
267 2001-09-27 Akim Demaille <akim@epita.fr>
271 2001-09-27 Akim Demaille <akim@epita.fr>
275 2001-09-25 Akim Demaille <akim@epita.fr>
277 * src/system.h: Include `xalloc.h'.
278 Remove it from the C files.
279 * src/files.c (output_files): Free the obstacks.
280 * src/lex.c (init_lex): Rename as...
283 * src/main.c (main): Use it.
285 2001-09-24 Marc Autret <autret_m@epita.fr>
287 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
288 to output informations in fout (FILE*).
289 (open_graph, close_graph): Likewise.
290 (output_graph, output_edge, output_node): Likewise.
291 * src/vcg.h: Update function prototypes.
292 * src/print_graph.c (print_graph): Open output graph file.
293 (print_actions): Adjust.
294 * src/files.h: Remove extern declaration.
295 * src/files.c: Remove graph_obstack declaration.
296 (open_files): Remove graph_obstack initialization.
297 (output_files): Remove graph_obstack saving.
299 2001-09-24 Marc Autret <autret_m@epita.fr>
301 * src/files.c (compute_output_file_names): Fix.
303 2001-09-24 Marc Autret <autret_m@epita.fr>,
304 Akim Demaille <akim@epita.fr>
306 * src/reader.c (reader): Remove call to free_symtab ().
307 * src/main.c (main): Call it here.
309 * src/conflicts.c (initialize_conflicts): Rename as...
310 (solve_conflicts): this.
311 * src/print.c (print_core, print_actions, print_state)
312 (print_grammar): Dump to a file instead a `output_obstack'.
313 (print_results): Dump `output_obstack', and then proceed with the
315 * src/files.c (compute_output_file_names, close_files): New.
316 (output_files): Adjust.
317 * src/main.c (main): Adjust.
319 2001-09-23 Marc Autret <autret_m@epita.fr>
321 * src/files.c (compute_header_macro): Computes header macro name
322 from spec_defines_file when given.
324 2001-09-23 Marc Autret <autret_m@epita.fr>
326 * src/files.c (output_files): Add default extensions.
328 2001-09-22 Akim Demaille <akim@epita.fr>
330 * src/conflicts.c (finalize_conflicts): Rename as...
331 (free_conflicts): this.
333 2001-09-22 Akim Demaille <akim@epita.fr>
335 * src/gram.c (gram_free): Rename back as...
337 (output_token_translations): Free `token_translations'.
338 * src/symtab.c (free_symtab): Free the tag field.
340 2001-09-22 Akim Demaille <akim@epita.fr>
342 Remove `translations' as it is always set to true.
344 * src/gram.h: Adjust.
345 * src/reader.c (packsymbols, parse_token_decl): Adjust
346 * src/print.c (print_grammar): Adjust.
347 * src/output.c (output_token_translations): Adjust.
348 * src/lex.c (lex): Adjust.
349 * src/gram.c: Be sure the set pointers to NULL.
350 (dummy): Rename as...
353 2001-09-22 Akim Demaille <akim@epita.fr>
355 * configure.in: Invoke AM_LIB_DMALLOC.
356 * src/system.h: Use dmalloc.
357 * src/LR0.c: Be sure to have pointers initialized to NULL.
358 (allocate_itemsets): Allocate kernel_items only if needed.
360 2001-09-22 Akim Demaille <akim@epita.fr>
362 * configure.in: Bump to 1.29b.
363 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
364 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
365 need xmalloc.c in calc.y.
368 2001-09-21 Akim Demaille <akim@epita.fr>
371 * Makefile.maint, config/config.guess, config/config.sub,
372 * config/missing: Update from masters.
373 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
375 * configure.in (ALL_LINGUAS): Add `tr'.
377 2001-09-21 Akim Demaille <akim@epita.fr>
379 * tests/Makefile.am (package.m4): Move to...
380 ($(srcdir)/$(TESTSUITE)): here.
382 2001-09-20 Akim Demaille <akim@epita.fr>
384 * src/complain.c: No longer try to be standalone: use system.h.
385 Don't assume __STDC__ is defined to 1. Just test if it is defined.
386 * src/complain.h: Likewise.
387 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
388 Remove the unused variable `n'.
389 From Albert Chin-A-Young.
391 2001-09-18 Marc Autret <autret_m@epita.fr>
393 * doc/bison.1: Update.
394 * doc/bison.texinfo (Bison Options): Update --defines and --graph
396 (Option Cross Key): Update.
399 2001-09-18 Marc Autret <autret_m@epita.fr>
401 * tests/regression.at: New test (comment in %union).
403 2001-09-18 Marc Autret <autret_m@epita.fr>
405 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
407 Reported by Keith Browne.
409 2001-09-18 Marc Autret <autret_m@epita.fr>
411 * tests/output.at: Add tests for --defines and --graph.
413 2001-09-18 Marc Autret <autret_m@epita.fr>
415 * tests/output.at: Removes tests of %{header,src}_extension features.
417 2001-09-18 Akim Demaille <akim@epita.fr>
419 * tests/Makefile.am (package.m4): New.
420 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
421 (_AT_CHECK_CALC_ERROR): Likewise.
422 Factor the `, ' part of verbose error messages.
424 2001-09-18 Marc Autret <autret_m@epita.fr>
426 * src/getargs.c (longopts): Declare --defines and --graph as options
427 with optional arguments.
428 * src/files.h: Add extern declarations.
429 * src/files.c (spec_graph_file, spec_defines_file): New.
430 (output_files): Update.
431 Remove CPP-outed code.
433 2001-09-18 Marc Autret <autret_m@epita.fr>
435 Turn off %{source,header}_extension feature.
437 * src/files.c (compute_exts_from_gf): Update.
438 (compute_exts_from_src): Update.
439 (output_files): CPP-out useless code.
440 * src/files.h: Remove {header,source}_extension extern declarations.
441 * src/reader.c (parse_dquoted_param): CPP-out.
442 (parse_header_extension_decl): Remove.
443 (parse_source_extension_decl): Remove.
444 (read_declarations): Remove cases tok_{hdrext,srcext}.
445 * src/lex.c (percent_table): Remove {header,source}_extension entries.
446 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
448 2001-09-10 Akim Demaille <akim@epita.fr>
450 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
451 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
452 (AT_CHECK_OUTPUT): this.
453 Merely check ls' exit status, its output is useless.
455 2001-09-10 Akim Demaille <akim@epita.fr>
457 * tests/calc.at: Use m4_match.
458 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
460 2001-09-10 Marc Autret <autret_m@epita.fr>,
461 Akim Demaille <akim@epita.fr>
463 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
465 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
467 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
468 * src/lex.h: Adjust prototype.
469 (token_t): Add `tok_undef'.
470 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
471 (parse_percent_token): Now returns token_t.
472 Add default statement in switch.
473 (lex): Separate `c' as an input variable, from the token_t result
475 (unlexed): Is a token_t.
477 2001-09-10 Akim Demaille <akim@epita.fr>
479 * configure.in: Bump to 1.29a.
481 2001-09-07 Akim Demaille <akim@epita.fr>
485 2001-08-30 Akim Demaille <akim@epita.fr>
487 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
488 * m4/atconfig.m4: Remove.
489 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
491 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
492 m4_if, m4_patsubst, and m4_regexp.
493 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
494 `input' file instead of echo.
496 2001-08-29 Akim Demaille <akim@epita.fr>
500 2001-08-29 Akim Demaille <akim@epita.fr>
504 2001-08-29 Paul Eggert <eggert@twinsun.com>
506 * src/bison.simple (yyparse): Don't take the address of an
507 item before the start of an array, as that doesn't conform to
510 2001-08-29 Robert Anisko <anisko_r@epita.fr>
512 * doc/bison.texinfo (Location Tracking Calc): New node.
514 2001-08-29 Paul Eggert <eggert@twinsun.com>
516 * src/output.c (output): Do not define const, as this now
517 causes more problems than it cures.
519 2001-08-29 Akim Demaille <akim@epita.fr>
521 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
523 Be sure to tag the `detailmenu'.
525 2001-08-29 Akim Demaille <akim@epita.fr>
527 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
528 download in a tmp dir.
530 2001-08-28 Marc Autret <autret_m@epita.fr>
532 * config/depcomp: New file.
534 2001-08-28 Marc Autret <autret_m@epita.fr>
536 * doc/bison.1 (mandoc): Adjust.
537 From Juan Manuel Guerrero.
539 2001-08-28 Marc Autret <autret_m@epita.fr>
541 * src/print_graph.c (print_state): Fix.
543 2001-08-27 Marc Autret <autret_m@epita.fr>
545 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
547 Echo modifications to the functions prototypes.
548 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
550 2001-08-27 Marc Autret <autret_m@epita.fr>
552 * src/vcg.c: Include `xalloc.h'.
553 (add_colorentry): New.
554 (add_classname): New.
556 * src/vcg.h: Add new prototypes.
558 2001-08-27 Akim Demaille <akim@epita.fr>
560 * Makefile.maint: Sync. again with CVS Autoconf.
562 2001-08-27 Akim Demaille <akim@epita.fr>
564 * Makefile.maint: Formatting changes.
565 (po-update, cvs-update, update): New targets.
568 2001-08-27 Akim Demaille <akim@epita.fr>
570 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
571 * Makefile.maint: Sync. with CVS Autoconf.
573 2001-08-27 Marc Autret <autret_m@epita.fr>
575 * src/vcg.h (struct infoname_s): New.
576 (struct colorentry_s): New.
577 (graph_s): New fields {vertical,horizontal}_order in structure.
578 Add `infoname' field.
579 Add `colorentry' field;
580 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
581 (G_HORIZONTAL_ORDER): New.
584 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
585 Add output of `infoname'.
586 Add output of `colorentry'.
588 2001-08-27 Marc Autret <autret_m@epita.fr>
590 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
591 This one shadowed a global parameter.
593 2001-08-24 Marc Autret <autret_m@epita.fr>
595 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
596 instead of `unsigned'.
597 (print_state): Do not call obstack_object_size () in obstack_grow ()
598 to avoid macro variables shadowing.
600 2001-08-23 Marc Autret <autret_m@epita.fr>
602 * src/lex.c (percent_table): Typo: s/naem/name/.
604 Normalize new options declarations.
606 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
608 * tests/suite.at: Exercise %header_extension and %source_extension.
610 2001-08-16 Marc Autret <autret_m@epita.fr>
612 * src/reader.c (parse_dquoted_param): New.
613 (parse_header_extension_decl): Use it.
614 (parse_source_extension_decl): Likewise.
616 2001-08-16 Marc Autret <autret_m@epita.fr>
618 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
619 (get_xxxx_str): Use assert () instead of complain ().
620 Remove return invokations in default cases.
621 (get_decision_str): Modify default behaviour. Remove second argument.
622 Echo modifications on calls.
625 2001-08-16 Marc Autret <autret_m@epita.fr>
627 * src/getargs.c (usage): Update with ``-g, --graph''.
629 2001-08-16 Marc Autret <autret_m@epita.fr>
631 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
632 (Option Cross Key): Likewise.
633 * doc/bison.1: Update.
635 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
637 * src/output.c (output_master_parser): Don't finish action_obstack.
638 (output_parser): Don't care about the muscle action, here.
639 (prepare): Copy the action_obstack in the action muscle.
640 (output): Free action_obstack.
642 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
644 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
645 will contain `%union' declaration.
646 (parse_union_decl): Delete #line directive output.
647 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
648 informations about %union.
649 (parse_union_decl): Copy the union_obstack in the muscle stype.
650 * src/bison.simple: Add new #line directive.
651 Add typdef %%stype YYSTYPE.
653 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
655 * src/bison.simple: Add new `#line' directive.
657 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
659 * src/bison.simple: New `#line' directive.
660 * src/output.c (output_parser): Support new dynamic muscle input_line.
662 2001-09-22 Marc Autret <autret_m@epita.fr>
664 * src/output.c (output_master_parser): New.
665 (output_parser): Be more re-entrant.
667 2001-09-21 Marc Autret <autret_m@epita.fr>
669 * src/reader.c (copy_definition, parse_union_decl): Update and use
671 (copy_action): Likewise.
672 Use obstack_1grow ().
673 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
675 2001-09-21 Marc Autret <autret_m@epita.fr>
677 * src/options.c (option_table): Adjust.
678 * src/lex.c (parse_percent_token): Fix.
680 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
682 * src/options.c (symtab.h): Include it, need by lex.h.
684 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
686 * src/lex.c (parse_percent_token): Change type of variable `tx', which
687 is now an option_table_struct*.
688 (option_strcmp): New function option_strcmp.
689 (parse_percent_token): Call option_strcmp.
690 * src/getargs.c (xalloc.h, options.h): Include it.
691 (getargs): Call create_long_option_table.
692 (getargs): Free longopts at the end of the function.
693 (shortopts): Move in options.c.
694 * src/options.c (create_long_option_table): New function. Convert
695 information from option_table to option structure.
696 * src/reader.c (options.h): Include it.
698 * src/Makefile.am: Adjust.
699 * src/options.c (option_table): Create from longopts and percent_table.
700 * src/getargs.c (longopts): Delete.
701 * src/lex.c (struct percent_table_struct): Delete.
702 (percent_table): Delete.
703 (options.h): Include it.
704 * src/options.c: Create.
705 * src/options.h: Create.
706 Declare enum opt_access_e.
707 Define struct option_table_struct.
709 2001-09-20 Marc Autret <autret_m@epita.fr>
711 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
714 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
716 * src/bison.simple: s/%%filename/%%skeleton.
717 * src/muscle_tab.c (getargs.h): Include it.
718 (muscle_init): Insert new muscle skeleton.
720 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
722 * src/output.c (output_parser): Delete unused variable actions_dumped.
724 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
726 * src/output.c (output): Delete call to reader_output_yylsp.
727 * src/reader.c (reader): Likewise.
728 * src/reader.h: Delete declaration of reader_output_yylsp.
730 2001-09-02 Marc Autret <autret_m@epita.fr>
732 * src/reader.c: Include muscle_tab.h.
733 (parse_union_decl): Update.
734 (parse_macro_decl): Rename parse_muscle_decl.
735 Update to use renamed functions and variable.
736 (read_declarations, copy_action, read_additionnal_code, : Updated
737 with correct variables and functions names.
738 (packsymbols, reader): Likewise.
740 * src/reader.h (muscle_obstack): Extern declaration update.
742 * src/output.c: Include muscle_tab.h
743 In all functions using macro_insert, change by using muscle_insert ().
744 (macro_obstack): Rename muscle_obstack.
745 Echo modifications in the whole file.
746 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
747 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
748 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
750 * src/muscle_tab.h: Update double inclusion macros.
751 (macro_entry_s): Rename muscle_entry_s.
754 * src/muscle_tab.c: Include muscle_tab.h.
755 Rename macro_tabble to muscle_table.
756 (mhash1, mhash2, mcmp): Use muscle_entry.
757 (macro_init): Rename muscle_init. Update.
758 (macro_insert): Rename muscle_insert. Update.
759 (macro_find): Rename muscle_find. Update.
761 * src/main.c: Include muscle_tab.h.
762 (main): Call muscle_init ().
763 * src/Makefile.am (bison_SOURCES): Echo modifications.
765 2001-09-02 Marc Autret <autret_m@epita.fr>
767 Now the files macro_tab.[ch] are named muscle_tab.[ch].
769 * src/muscle_tab.c, src/muscle_tab.h: Add files.
771 2001-09-02 Marc Autret <autret_m@epita.fr>
773 * src/macrotab.c, src/macrotab.h: Remove.
775 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
777 * src/reader.c (copy_guard): Use muscle to specify the `#line'
780 2001-09-01 Marc Autret <autret_m@epita.fr>
782 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
783 to an explicit value to activate the feature. We do it here.
785 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
787 * src/output.c (prepare): Delete the `filename' muscule insertion.
788 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
789 (parse_union_decl): Likewise.
790 * src/macrotab.c (macro_init): Initialize filename by infile.
792 2001-08-31 Marc Autret <autret_m@epita.fr>
794 * src/bison.simple (YYLSP_NEEDED): New definition.
795 * src/output.c (prepare): Add macro insertion of `locations_flag'
797 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
799 * src/output.c (prepare): Delete insertion of previous muscles,
800 and insert the `prefix' muscles.
801 * src/macrotab.c (macro_init): Likewise.
802 (macro_init): Initialization prefix directive by `yy'.
803 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
804 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
805 yylval, yydebug, yyerror, yynerrs and yyparse.
806 New directive `#define' to substitute yydebug, ... with option
809 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
811 * src/main.c (main): Standardize.
812 * src/output.c (output_table_data, output_parser): Likewise.
813 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
815 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
817 * src/reader.c (read_additionnal_code): Rename %%user_code to
819 * src/output.c (output): Rename %%declarations to %%prologue.
820 * src/bison.simple: Echo modifications.
822 2001-08-31 Marc Autret <autret_m@epita.fr>
824 * src/reader.c (readgram): CleanUp.
825 (output_token_defines): Likewise.
826 (packsymbols): Likewise.
828 * src/output.c (output): CPP-out useless code.
830 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
832 * src/reader.c (reader): Delete obsolete call to function
833 output_trailers and output_headers.
834 * src/output.h: Remove obsolete functions prototypes of output_headers
837 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
839 * src/main.c: Include macrotab.h.
840 * src/macrotab.h (macro_entry_s): Constify fields.
841 Adjust functions prototypes.
842 * src/macrotab.c (macro_insert): Constify key and value.
843 (macro_find): Constify key.
844 (macro_insert): Include 'xalloc.h'
845 (macro_insert): Use XMALLOC.
846 (macro_find): Constify return value.
847 * src/output.c (output_table_data): Rename table to table_data.
848 (output_parser): Constify macro_key, macro_value.
850 2001-08-30 Marc Autret <autret_m@epita.fr>
852 * src/reader.c (parse_skel_decl): New.
853 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
854 * src/lex.h (token_t): New token `tok_skel'.
855 * src/lex.c (percent_table): Add skeleton option entry.
858 2001-08-29 Marc Autret <autret_m@epita.fr>
860 * src/bison.simple: Add %%user_code directive at the end.
861 * src/reader.c (read_additionnal_code): New.
863 * src/output.c (output_program): Remove.
866 2001-08-28 Marc Autret <autret_m@epita.fr>
868 * src/output.c (output_actions): Clean up.
869 (output_gram): CPP-out useless code.
870 * src/reader.c (reader): Clean up, CPP-out useless code.
872 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
874 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
876 * src/bison.simple: Add `%%definitions'.
878 2001-08-28 Marc Autret <autret_m@epita.fr>
880 * config/depcomp: New file.
882 2001-08-27 Paul Eggert <eggert@twinsun.com>
884 * src/bison.simple (yyparse): Don't take the address of an
885 item before the start of an array, as that doesn't conform to
888 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
890 * src/output.c (output): Remove the initialization of the macro
891 obstack. It was done too late here.
893 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
895 (reader): Initialize the macro obstack here, since we need it to grow
896 '%define' directives.
898 * src/reader.h: Declare the macro obstack as extern.
900 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
902 * src/output.c (output_parser): Fix. Store single '%' characters in
903 the output obstack instead of throwing them away.
905 2001-08-27 Akim Demaille <akim@epita.fr>
907 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
909 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
911 * lib/Makefile.am: Adjust.
913 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
915 * src/bison.simple: Update and add '%%' directives.
917 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
919 * src/reader.c (reader): Remove calls to 'output_headers' and
920 'output_trailers'. Remove some C output.
921 (readgram): Disable a piece of code that was writing a default
922 definition for 'YYSTYPE'.
923 (reader_output_yylsp): Remove.
924 (packsymbols): Output token defintions to a macro.
925 (copy_definition): Disable C output.
927 * src/reader.c (parse_macro_decl): New function used to parse macro
929 (copy_string2): Put the body of copy_string into this new function.
930 Add a parameter to let the caller choose whether he wants to copy the
931 string delimiters or not.
932 (copy_string): Be a simple call to copy_string2 with the last argument
934 (read_declarations): Add case for macro definition.
935 (copy_identifier): New.
936 (parse_macro_decl): Read macro identifiers using copy_identifier
939 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
941 * src/output.c (prepare): Add prefixed names.
942 (output_parser): Output semantic actions.
943 (output_parser): Fix bug on '%%line' directives.
945 * src/output.c (output_headers): Remove. The C code printed by this
946 function should now be in the skeletons.
947 (output_trailers): Remove.
948 (output): Disable call to 'reader_output_yylsp'.
949 (output_rule_data): Do not output tables to the table obstack.
951 * src/output.c: Remove some C dedicated output.
952 Improve the use of macro and output obstacks.
953 (output_defines): Remove.
955 * src/output.c (output_token_translations): Associate 'translate'
956 table with a macro. No output to the table obstack.
957 (output_gram): Same for 'rhs' and 'prhs'.
958 (output_stos): Same for 'stos'.
959 (output_rule_data): Same for 'r1' and 'r2'.
960 (token_actions): Same for 'defact'.
961 (goto_actions): Same for 'defgoto'.
962 (output_base): Same for 'pact' and 'pgoto'.
963 (output_table): Same for 'table'.
964 (output_check): Same for 'check'.
966 * src/output.c (output_table_data): New function.
967 (output_short_table): Remove.
968 (output_short_or_char_table): Remove.
970 * src/output.c (output_parser): Replace most of the skeleton copy code
971 with something new. Skeletons are now processed character by character
972 rather than line by line, and Bison looks for '%%' macros. This is the
973 first step in making Bison's output process (a lot) more flexible.
974 (output_parser): Use the macro table.
976 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
978 * src/main.c (main): Initialize the macro table.
980 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
982 * src/lex.c (percent_table): Add tok_define.
983 * src/lex.h: Add tok_define.
985 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
987 * src/macrotab.c: New file.
988 * src/macrotab.h: New file.
989 * src/Makefile.am: Update.
991 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
993 * lib/hash.c: New file.
994 * lib/hash.h: New file.
995 * lib/Makefile.am: Update.
997 2001-08-15 Akim Demaille <akim@epita.fr>
1001 2001-08-15 Marc Autret <autret_m@epita.fr>
1003 * src/reader.c (readgram): Indent output macro YYSTYPE.
1004 (packsymbols): Likewise.
1005 (output_token_defines): Likewise.
1006 * src/files.c: Standardize.
1007 (compute_header_macro): New.
1008 (defines_obstack_save): New. Use compute_header_macro.
1009 (output_files): Update. Use defines_obstack_save.
1011 2001-08-15 Akim Demaille <akim@epita.fr>
1013 * doc/bison.texinfo (Table of Symbols): Document
1016 2001-08-15 Akim Demaille <akim@epita.fr>
1018 * missing: Update from CVS Automake.
1019 * config/config.guess, config/config.sub, config/texinfo.tex:
1020 Update from gnu.org.
1022 2001-08-15 Akim Demaille <akim@epita.fr>
1024 * Makefile.maint: Sync with CVS Autoconf.
1026 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1028 * doc/bison.texinfo: Include GNU Free Documentation License from
1030 * doc/fdl.texi: Add to package.
1032 2001-08-14 Marc Autret <autret_m@epita.fr>
1034 Turn on %{source,header}_extension features.
1036 * src/lex.c (percent_table): Un-CPP out header_extension and
1038 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1039 (compute_exts_from_src): Remove conditions. It restores priorities
1042 2001-08-14 Marc Autret <autret_m@epita.fr>
1044 * src/files.c (compute_base_names): Add extensions computing when
1045 `--file-prefix' used.
1046 Standardize function calls.
1048 2001-08-13 Marc Autret <autret_m@epita.fr>
1050 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1051 defining it (defined but null disables alloca).
1053 2001-08-13 Marc Autret <autret_m@epita.fr>
1055 * src/bison.simple (_yy_memcpy): CPP reformat.
1057 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1059 * tests/atconfig.in (CPPFLAGS): Fix.
1061 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1063 * doc/bison.texinfo: Include GNU General Public License from
1065 * doc/gpl.texi: Add to package.
1067 2001-08-10 Marc Autret <autret_m@epita.fr>
1069 * src/print_graph.h: Fix.
1070 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1072 2001-08-10 Akim Demaille <akim@epita.fr>
1074 * src/system.h: Provide default declarations for stpcpy, strndup,
1077 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1079 * doc/bison.texinfo (Locations): Update @$ stuff.
1081 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1083 * src/bison.simple (YYLLOC_DEFAULT): Update.
1086 2001-08-08 Marc Autret <autret_m@epita.fr>
1088 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1089 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1090 Reported by Fabrice Bauzac.
1092 2001-08-08 Marc Autret <autret_m@epita.fr>
1094 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1095 * src/vcg.c (output_node): Fix.
1096 * src/vcg.h: Cleanup.
1097 * src/print_graph.c: Add comments.
1098 (node_output_size): New global variable. Simplify the formatting of
1099 the VCG graph output.
1100 (print_actions): Unused code is now used. It notifies the final state
1101 and no action states in the VCG graph. It also give the reduce actions.
1102 The `shift and goto' edges are red and the `go to state' edges are
1104 Get the current node name and node_obstack by argument.
1105 (node_obstack): New variable.
1106 (print_state): Manage node_obstack.
1107 (print_core): Use node_obstack given by argument.
1108 A node is not only computed here but in print_actions also.
1109 (print_graph): CPP out useless code instead of commenting it.
1111 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1113 * tests/atconfig.in (CPPFLAGS): Fix.
1115 2001-08-07 Akim Demaille <akim@epita.fr>
1117 * src/print_graph.c (quote): New.
1118 (print_core): Use it.
1120 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1122 * src/vcg.c (complain.h): Include it.
1123 Unepitaize `return' invocations.
1124 [NDEBUG] (main): Remove.
1125 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1126 * src/files.c (open_files): Initialize graph_obstack.
1127 * src/print_graph.c (print_actions): CPP out useless code.
1128 (print_core): Don't output the last `\n' in labels.
1130 * src/files.c (output_files): Output the VCG file.
1131 * src/main.c (main): Invoke print_graph ();
1133 2001-08-06 Marc Autret <autret_m@epita.fr>
1135 Automaton VCG graph output.
1136 Using option ``-g'' or long option ``--graph'', you can generate
1137 a gram_filename.vcg file containing a VCG description of the LALR (1)
1138 automaton of your grammar.
1140 * src/main.c: Call to print_graph() function.
1141 * src/getargs.h: Update.
1142 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1143 (graph_flag): New flag.
1145 (getargs): Add case `g'.
1146 * src/files.c (graph_obstack): New obstack struct.
1147 (open_files): Initialize new obstack.
1148 (output_files): Saves graph_obstack if required.
1149 * src/files.h (graph_obstack): New extern declaration.
1150 * src/Makefile.am: Add new source files.
1152 2001-08-06 Marc Autret <autret_m@epita.fr>
1154 * src/print_graph.c, src/print_graph.h (graph): New.
1155 * src/vcg.h: New file.
1156 * src/vcg.c: New file, VCG graph handling.
1158 2001-08-06 Marc Autret <autret_m@epita.fr>
1160 Add of %source_extension and %header_extension which specify
1161 the source or/and the header output file extension.
1163 * src/files.c (compute_base_names): Remove initialisation of
1164 src_extension and header_extension.
1165 (compute_exts_from_gf): Update.
1166 (compute_exts_from_src): Update.
1167 (output_files): Update.
1168 * src/reader.c (parse_header_extension_decl): New.
1169 (parse_source_extension_decl): New.
1170 (read_declarations): New case statements for the new tokens.
1171 * src/lex.c (percent_table): Add entries for %source_extension
1172 and %header_extension.
1173 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1175 2001-08-06 Marc Autret <autret_m@epita.fr>
1177 * configure.in: Bump to 1.28c.
1178 * doc/bison.texinfo: Texinfo thingies.
1180 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1182 * tests/atconfig.in (CPPFLAGS): Add.
1183 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1185 2001-08-03 Akim Demaille <akim@epita.fr>
1189 2001-08-03 Akim Demaille <akim@epita.fr>
1191 * tests/Makefile.am (check-local): Ship testsuite.
1192 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1195 2001-08-03 Akim Demaille <akim@epita.fr>
1197 * configure.in: Try using -Wformat when compiling.
1199 2001-08-03 Akim Demaille <akim@epita.fr>
1201 * configure.in: Bump to 1.28b.
1203 2001-08-03 Akim Demaille <akim@epita.fr>
1205 * src/complain.c: Adjust strerror_r portability issues.
1207 2001-08-03 Akim Demaille <akim@epita.fr>
1211 2001-08-03 Akim Demaille <akim@epita.fr>
1213 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1214 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1215 * src/getargs.c: Include complain.h.
1216 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1217 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1219 2001-08-03 Akim Demaille <akim@epita.fr>
1221 * src/reader.c (readgram): Display hidden chars in error messages.
1223 2001-08-03 Akim Demaille <akim@epita.fr>
1225 Update to gettext 0.10.39.
1227 2001-08-03 Akim Demaille <akim@epita.fr>
1229 * lib/strspn.c: New.
1231 2001-08-01 Marc Autret <autret_m@epita.fr>
1233 * doc/bison.texinfo: Update.
1234 * doc/bison.1 (mandoc): Update.
1235 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1236 * src/files.c: Support output files extensions computing.
1237 (src_extension): New static variable.
1238 (header_extension): New static variable.
1240 (get_extension_index): New function, gets the index of an extension
1241 filename in a string.
1242 (compute_exts_from_gf): New function, computes extensions from the
1243 grammar file extension.
1244 (compute_exts_from_src): New functions, computes extensions from the
1245 C source file extension, file given by ``-o'' option.
1246 (compute_base_names): Update.
1247 (output_files): Update.
1249 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1251 * doc/bison.texi: Document @$.
1252 (Locations): New section.
1254 2001-07-18 Akim Demaille <akim@epita.fr>
1256 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1257 * config/prev-version.txt, config/move-if-change: New.
1258 * Makefile.am: Adjust.
1260 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1262 * src/bison.simple (yyparse): Suppress warning `comparaison
1263 between signed and unsigned'.
1265 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1267 * src/getargs.h (raw_flag): Remove.
1268 * src/getargs.c: Die on `-r'/`--raw'.
1269 * src/lex.c (parse_percent_token): Die on `%raw'.
1270 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1271 * tests/calc.at: Suppress test with option `--raw'.
1273 2001-07-14 Akim Demaille <akim@epita.fr>
1276 * configure.in: Require Autoconf 2.50.
1277 Update to gettext 0.10.38.
1279 2001-03-16 Akim Demaille <akim@epita.fr>
1281 * doc/bison.texinfo: ANSIfy the examples.
1283 2001-03-16 Akim Demaille <akim@epita.fr>
1285 * getargs.c (skeleton): New variable.
1286 (longopts): --skeleton is a new option.
1287 (shortopts, getargs): -S is a new option.
1288 * getargs.h: Declare skeleton.
1289 * output.c (output_parser): Use it.
1291 2001-03-16 Akim Demaille <akim@epita.fr>
1293 * m4/strerror_r.m4: New.
1294 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1295 * lib/error.h, lib/error.c: Update.
1297 2001-03-16 Akim Demaille <akim@epita.fr>
1299 * src/getargs.c (longopts): Clean up.
1301 2001-02-21 Akim Demaille <akim@epita.fr>
1303 * src/reader.c (gensym): `gensym_count' is your own.
1304 Use a static buf to create the symbol name, as token_buffer is no
1307 2001-02-08 Akim Demaille <akim@epita.fr>
1309 * src/conflicts.c (conflict_report): Be sure not to append to res
1310 between two calls, which could happen if both first sprintf were
1311 skipped, but not the first cp += strlen.
1313 2001-02-08 Akim Demaille <akim@epita.fr>
1315 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1316 New, from fileutils 4.0.37.
1317 * configure.in: Require Autoconf 2.49c. I took some time before
1318 making this decision. This is the only way out for portability
1319 issues in Bison, it would mean way too much duplicate effort to
1320 import in Bison features implemented in 2.49c since 2.13.
1321 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1323 2001-02-02 Akim Demaille <akim@epita.fr>
1325 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1326 * lib/xalloc.h, lib/xmalloc.c: Update.
1328 2001-01-19 Akim Demaille <akim@epita.fr>
1330 Get rid of the ad hoc handling of token_buffer in the scanner: use
1333 * src/lex.c (token_obstack): New.
1334 (init_lex): Initialize it. No longer call...
1335 (grow_token_buffer): this. Remove it.
1336 Adjust all the places which used it to use the obstack.
1338 2001-01-19 Akim Demaille <akim@epita.fr>
1340 * src/lex.h: Rename all the tokens:
1341 s/\bENDFILE\b/tok_eof/g;
1342 s/\bIDENTIFIER\b/tok_identifier/g;
1344 Let them be enums, not #define, to ease debugging.
1345 Adjust all the code.
1347 2001-01-18 Akim Demaille <akim@epita.fr>
1349 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1350 * src/lex.c (maxtoken, grow_token_buffer): Static.
1352 2001-01-18 Akim Demaille <akim@epita.fr>
1354 Since we now use obstacks, more % directives can be enabled.
1356 * src/lex.c (percent_table): Also accept `%yacc',
1357 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1359 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1360 instead of returning a token.
1361 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1362 * src/reader.c (read_declarations): Adjust.
1363 * src/files.c (open_files): Don't call `compute_base_names', don't
1364 compute `attrsfile' since they depend upon data which might be
1365 *in* the input file now.
1366 (output_files): Do it here.
1367 * src/output.c (output_headers): Document the fact that this patch
1368 introduces a guaranteed SEGV for semantic parsers.
1369 * doc/bison.texinfo: Document them.
1370 * tests/suite.at: Exercise these %options.
1372 2000-12-20 Akim Demaille <akim@epita.fr>
1374 Also handle the output file (--verbose) with obstacks.
1376 * files.c (foutput): Remove.
1377 (output_obstack): New.
1378 Adjust all dependencies.
1379 * src/conflicts.c: Return a string.
1380 * src/system.h (obstack_grow_string): Rename as...
1381 (obstack_sgrow): this. Be ready to work with non literals.
1382 (obstack_fgrow4): New.
1384 2000-12-20 Akim Demaille <akim@epita.fr>
1386 * src/files.c (open_files): Fix the computation of short_base_name
1387 in the case of `-o foo.tab.c'.
1389 2000-12-20 Akim Demaille <akim@epita.fr>
1391 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1392 (copy_dollar): Now that everything uses obstacks, get rid of the
1395 2000-12-20 Akim Demaille <akim@epita.fr>
1397 * src/files.c (open_files): Actually the `.output' file is based
1398 on the short_base_name, not base_name.
1399 * tests/suite.at (Checking output file names): Adjust.
1401 2000-12-20 Akim Demaille <akim@epita.fr>
1403 * src/bison.s1: Remove, we now use directly...
1404 * src/bison.simple: this.
1405 * src/Makefile.am: Use pkgdata instead of data.
1407 2000-12-20 Akim Demaille <akim@epita.fr>
1409 * src/files.c (guard_obstack): New.
1410 (open_files): Initialize it.
1411 (output_files): Dump it...
1412 * src/files.h: Export it.
1413 * src/reader.c (copy_guard): Use it.
1415 2000-12-19 Akim Demaille <akim@epita.fr>
1417 * src/files.c (outfile, defsfile, actfile): Removed as global
1419 (open_files): Don't compute them.
1420 (output_files): Adjust.
1421 (base_name, short_base_name): Be global.
1422 Adjust dependencies.
1424 2000-12-19 Akim Demaille <akim@epita.fr>
1426 * src/files.c (strsuffix): New.
1427 (stringappend): Be just like strcat but allocate.
1428 (base_names): Eve out from open_files.
1429 Try to simplify the rather hairy computation of base_name and
1431 (open_files): Use it.
1432 * tests/suite.at (Checking output file names): New test.
1434 2000-12-19 Akim Demaille <akim@epita.fr>
1436 * src/system.h (obstack_grow_literal_string): Rename as...
1437 (obstack_grow_string): this.
1438 * src/output.c (output_parser): Recognize `%% actions' instead of
1440 * src/bison.s1: s/$/%% actions/.
1441 * src/bison.hairy: Likewise.
1443 2000-12-19 Akim Demaille <akim@epita.fr>
1445 * src/output.c (output_parser): Compute the `#line' lines when
1447 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1448 Suggested by Hans Aberg.
1450 2000-12-19 Akim Demaille <akim@epita.fr>
1452 Let the handling of the skeleton files be local to the procedures
1455 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1457 (fparser, open_extra_files): Remove.
1458 (open_files, output_files): Don't take care of fparser.
1459 * src/files.h: Adjust.
1460 * src/output.c (output_parser): Open and close the file to the
1462 * src/reader.c (read_declarations): When %semantic_parser, open
1465 2000-12-19 Akim Demaille <akim@epita.fr>
1467 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1468 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1470 2000-12-19 Akim Demaille <akim@epita.fr>
1472 * src/files.c (open_files): Yipee! We no longer need all the code
1473 looking for `/tmp' since we have no tmp file.
1475 2000-12-19 Akim Demaille <akim@epita.fr>
1477 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1479 * src/files.c (open_files): Less dependency on MSDOS etc.
1481 2000-12-14 Akim Demaille <akim@epita.fr>
1483 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1484 Provide a default definition.
1485 Use it when executing the default @ action.
1486 * src/reader.c (reader_output_yylsp): No longer include
1487 `timestamp' and `text' in the default YYLTYPE.
1489 2000-12-12 Akim Demaille <akim@epita.fr>
1491 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1492 (copy_guard): Quote the file names.
1493 Reported by Laurent Mascherpa.
1495 2000-12-12 Akim Demaille <akim@epita.fr>
1497 * src/output.c (output_headers, output_program, output): Be sure
1498 to escape special characters when outputting filenames.
1499 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1500 (output_headers): Don't depend on them, Use ACTSTR.
1502 2000-11-17 Akim Demaille <akim@epita.fr>
1504 * lib/obstack.h: Formatting changes.
1505 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1506 prevents type checking.
1507 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1508 cast the value to (void *): assigning a `foo *' to a `void *'
1510 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1511 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1514 2000-11-17 Akim Demaille <akim@epita.fr>
1516 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1518 (suite.m4, regression.m4, calc.m4): these.
1519 * tests/atgeneral.m4: Update from CVS Autoconf.
1521 2000-11-17 Akim Demaille <akim@epita.fr>
1523 * tests/regression.m4 (%union and --defines): New test,
1524 demonstrating a current bug in the obstack implementation.
1526 2000-11-17 Akim Demaille <akim@epita.fr>
1528 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1530 Use them to declare the variables which are global or local to
1533 2000-11-17 Akim Demaille <akim@epita.fr>
1535 * acconfig.h: Remove, no longer used.
1537 2000-11-07 Akim Demaille <akim@epita.fr>
1539 * src: s/Copyright (C)/Copyright/g.
1541 2000-11-07 Akim Demaille <akim@epita.fr>
1543 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1545 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1547 2000-11-07 Akim Demaille <akim@epita.fr>
1549 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1550 Merge in a single CPP if/else.
1552 2000-11-07 Akim Demaille <akim@epita.fr>
1554 * src/output.c (output): Remove useless variables.
1555 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1556 argument `data' for consistency with the prototypes.
1558 (obstack_copy, obstack_copy0): Rename the second argument as
1559 `address' for consistency. Qualify it `const'.
1560 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1561 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1562 `const' their input argument (`data' or `address').
1563 Adjust the corresponding macros to include `const' in casts.
1565 2000-11-03 Akim Demaille <akim@epita.fr>
1567 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1568 s/PFILE1/BISON_HAIRY/.
1569 Adjust dependencies.
1571 2000-11-03 Akim Demaille <akim@epita.fr>
1573 For some reason, this was not applied.
1575 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1576 `unlink': it's no longer used.
1578 2000-11-03 Akim Demaille <akim@epita.fr>
1580 * src/files.c (skeleton_find): New function, eved out of...
1581 (open_files, open_extra_files): here.
1583 2000-11-03 Akim Demaille <akim@epita.fr>
1587 * src/files.c (obstack_save): New function.
1588 (done): Rename as...
1589 (output_files): this.
1591 * src/main.c (main): Don't use `atexit' to register `done', since
1592 it no longer has to remove tmp files, just call `output_files'
1593 when there are no errors.
1595 2000-11-02 Akim Demaille <akim@epita.fr>
1597 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1598 `unlink': it's no longer used.
1599 * src/files.h: Formatting changes.
1601 2000-11-02 Akim Demaille <akim@epita.fr>
1603 Remove the last uses of mktemp and unlink/delete.
1605 * src/files.c (fdefines, ftable): Removed.
1606 (defines_ostack, table_obstack): New.
1607 Adjust dependencies of the former into uses of the latter.
1608 * src/output.c (output_short_or_char_table, output_short_table):
1609 Convert to using obstacks.
1610 * src/reader.c (copy_comment2): Accept one FILE * and two
1612 (output_token_defines, reader_output_yylsp): Use obstacks.
1613 * src/system.h (obstack_fgrow3): New.
1615 2000-11-01 Akim Demaille <akim@epita.fr>
1617 Change each use of `fattrs' into a use of `attrs_obstack'.
1619 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1620 * src/files.c (fattrs): Remove.
1621 (attrs_obstack): New.
1622 Adjust all dependencies.
1623 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1625 2000-11-01 Akim Demaille <akim@epita.fr>
1628 Change each use of `faction' into a use of `action_obstack'.
1630 * lib/obstack.h, lib/obstack.c: New files.
1631 * src/files.c (faction): Remove.
1632 (action_obstack): New.
1633 Adjust all dependencies.
1635 2000-10-20 Akim Demaille <akim@epita.fr>
1637 * lib/quote.h (PARAMS): New macro. Use it.
1639 2000-10-16 Akim Demaille <akim@epita.fr>
1641 * src/output.c (output_short_or_char_table): New function.
1642 (output_short_table, output_token_translations): Use it.
1643 (goto_actions): Use output_short_table.
1645 2000-10-16 Akim Demaille <akim@epita.fr>
1647 * src/symtab.c (bucket_new): New function.
1650 * src/output.c (output_short_table): New argument to display the
1651 comment associated with the table.
1652 Adjust dependencies.
1653 (output_gram): Use it.
1654 (output_rule_data): Nicer output layout for YYTNAME.
1656 2000-10-16 Akim Demaille <akim@epita.fr>
1658 * src/lex.c (read_typename): New function.
1660 * src/reader.c (copy_dollar): Likewise.
1662 2000-10-16 Akim Demaille <akim@epita.fr>
1664 * src/reader.c (copy_comment2): Expect the input stream to be on
1665 the `/' which is suspected to open a comment, instead of being
1666 called after `//' or `/*' was read.
1667 (copy_comment, copy_definition, parse_union_decl, copy_action)
1668 (copy_guard): Adjust.
1670 2000-10-16 Akim Demaille <akim@epita.fr>
1672 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1673 `read_signed_integer'.
1675 2000-10-16 Akim Demaille <akim@epita.fr>
1677 * src/reader.c (copy_dollar): New function.
1678 (copy_guard, copy_action): Use it.
1680 2000-10-16 Akim Demaille <akim@epita.fr>
1682 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1683 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1684 New files, from Fileutils 4.0.27.
1685 * src/main.c (printable_version): Remove.
1686 * src/lex.c, src/reader.c: Use `quote'.
1688 2000-10-04 Akim Demaille <akim@epita.fr>
1690 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1692 2000-10-04 Akim Demaille <akim@epita.fr>
1694 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1696 2000-10-04 Akim Demaille <akim@epita.fr>
1698 When a literal string is used to define two different tokens,
1699 `bison -v' segfaults.
1700 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1702 * tests/regression.m4: New file.
1703 Include the core of the sample provided by Piotr Gackiewicz.
1704 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1707 2000-10-04 Akim Demaille <akim@epita.fr>
1709 * src/reader.c (parse_expect_decl): Keep `count' within the size
1713 2000-10-02 Paul Eggert <eggert@twinsun.com>
1715 * bison.s1 (yyparse): Assign the default value
1716 unconditionally, to avoid a GCC warning and make the parser a
1719 2000-10-02 Akim Demaille <akim@epita.fr>
1721 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1724 2000-10-02 Akim Demaille <akim@epita.fr>
1726 * src/derives.c, src/print.c, src/reduce.c: To ease the
1727 translation, move some `\n' out of the translated strings.
1729 2000-10-02 Akim Demaille <akim@epita.fr>
1731 The location tracking mechanism is precious for parse error
1732 messages. Nevertheless, it is enabled only when `@n' is used in
1733 the grammar, which is a different issue (you can use it in error
1734 message, but not in the grammar per se). Therefore, there should
1735 be another means to enable it.
1737 * src/getargs.c (getargs): Support `--locations'.
1739 * src/getargs.h (locationsflag): Export it.
1740 * src/lex.c (percent_table): Support `%locations'.
1741 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1742 with `locationsflag'.
1743 * doc/bison.texinfo: Document `--locations' and `%locations'.
1745 * tests/calc.m4: Test it.
1747 For regularity of the names, replace each
1748 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1749 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1750 In addition replace each `flag' with `_flag'.
1752 2000-10-02 Akim Demaille <akim@epita.fr>
1754 Also test parse error messages, including with YYERROR_VERBOSE.
1756 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1758 Use it to check the computations.
1759 Use it to check `nonassoc' is honored.
1760 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1761 `--yyerror-verbose'.
1762 (_AT_CHECK_CALC): Adjust to this option.
1763 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1765 2000-10-02 Akim Demaille <akim@epita.fr>
1767 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1768 the latter demonstrates a flaw in the handling of non debugging
1769 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1770 was used in order to simplify:
1786 unfortunately this leads to a CPP conflict when
1787 `--name-prefix=foo' is used since it produces `#define yydebug
1790 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1791 (YYDPRINTF): New macro.
1793 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1795 Also test `--verbose', `--defines' and `--name-prefix'.
1797 2000-10-02 Akim Demaille <akim@epita.fr>
1799 Improve the readability of the produced parsers.
1801 * src/bison.s1: Formatting changes.
1802 Improve the comment related to the `$' mark.
1803 (yydefault): Don't fall through to `yyresume': `goto' there.
1804 * src/output.c (output_parser): When the `$' is met, skip the end
1806 New variable, `number_of_dollar_signs', to check there's exactly
1807 one `$' in the parser skeleton.
1809 2000-10-02 Akim Demaille <akim@epita.fr>
1811 * lib/xstrdup.c: New file, from the fileutils.
1812 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1813 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1814 instead of strlen + xmalloc + strcpy.
1815 * src/symtab.c (copys): Remove, use xstrdup instead.
1817 2000-10-02 Akim Demaille <akim@epita.fr>
1819 * src/gram.h (associativity): New enum type which replaces the
1820 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1821 `right_assoc', `left_assoc' and `non_assoc'.
1822 Adjust all dependencies.
1823 * src/reader.c: Formatting changes.
1824 (LTYPESTR): Don't define it, use it as a literal in
1825 `reader_output_yylsp'.
1826 * src/symtab.h (symbol_class): New enum type which replaces the
1827 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1828 `sunknown', `stoken and `snterm'.
1830 2000-10-02 Akim Demaille <akim@epita.fr>
1832 * src/getargs.c (fixed_outfiles): Rename as...
1833 (yaccflag): for consistency and accuracy.
1834 Adjust dependencies.
1836 2000-10-02 Akim Demaille <akim@epita.fr>
1838 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1839 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1840 difficult and introduced a lot of core dump. It turns out that
1841 Bison used an implementation of `xmalloc' based on `calloc', and
1842 at various places it does depend upon the initialization to 0. I
1843 have not tried to isolate the pertinent places, and all the former
1844 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1845 someone should address this issue.
1847 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1848 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1850 Adjust dependencies.
1851 * src/warshall.h: New file.
1854 2000-10-02 Akim Demaille <akim@epita.fr>
1856 Various anti-`extern in *.c' changes.
1858 * src/system.h: Include `assert.h'.
1860 2000-10-02 Akim Demaille <akim@epita.fr>
1862 * src/state.h (nstates, final_state, first_state, first_shift)
1863 (first_reduction): Move their exportation from here...
1864 * src/LR0.h: to here.
1865 Adjust dependencies.
1866 * src/getargs.c (statisticsflag): New variable.
1867 Add support for `--statistics'.
1868 Adjust dependencies.
1870 Remove a lot of now useless `extern' statements in most files.
1872 2000-10-02 Akim Demaille <akim@epita.fr>
1874 * src/LR0.h: New file.
1877 2000-10-02 Akim Demaille <akim@epita.fr>
1879 * src/print.h: New file.
1881 * src/print.c: Formatting and ordering changes.
1882 (verbose, terse): Replace with...
1883 (print_results): this new function.
1884 Adjust dependencies.
1886 2000-10-02 Akim Demaille <akim@epita.fr>
1888 * src/conflicts.c (conflict_report): New function.
1889 (conflict_log, verbose_conflict_log): Replace with...
1890 (print_conflicts): this function.
1891 Adjust dependencies.
1892 * src/conflicts.h: New file.
1893 Propagate its inclusion.
1895 2000-10-02 Akim Demaille <akim@epita.fr>
1897 * src/nullable.h: New file.
1898 Propagate its inclusion.
1899 * src/nullable.c: Formatting changes.
1901 2000-10-02 Akim Demaille <akim@epita.fr>
1903 * src/reduce.h: New file.
1904 Propagate its inclusion.
1905 * src/reduce.c: Topological sort and other formatting changes.
1906 (bool, TRUE, FALSE): Move their definition to...
1907 * src/system.h: here.
1909 2000-10-02 Akim Demaille <akim@epita.fr>
1911 * src/files.c: Formatting changes.
1912 (tryopen, tryclose, openfiles): Rename as...
1913 (xfopen, xfclose, open_files): this.
1914 (stringappend): static.
1915 * src/files.h: Complete the list of exported symbols.
1918 2000-10-02 Akim Demaille <akim@epita.fr>
1920 * src/reader.h: New file.
1921 Propagate its use instead of tedious list of `extern' and
1923 * src/reader.c: Formatting changes, topological sort,
1926 2000-10-02 Akim Demaille <akim@epita.fr>
1928 * src/lex.h: Prototype `lex.c' exported functions.
1929 * src/reader.c: Adjust.
1930 * src/lex.c: Formatting changes.
1931 (safegetc): Rename as...
1934 2000-10-02 Akim Demaille <akim@epita.fr>
1936 * src/lalr.h: New file.
1937 Propagate its inclusion instead of prototypes and `extern'.
1938 * src/lalr.c: Formatting changes, topological sorting etc.
1940 2000-10-02 Akim Demaille <akim@epita.fr>
1942 * src/output.c (token_actions): Introduce a temporary array,
1943 YYDEFACT, that makes it possible for this function to use
1946 2000-10-02 Akim Demaille <akim@epita.fr>
1948 `user_toknums' is output as a `short[]' in `output.c', while it is
1949 defined as a `int[]' in `reader.c'. For consistency with the
1950 other output tables, `user_toknums' is now defined as a table of
1953 * src/reader.c (user_toknums): Be a short table instead of an int
1955 Adjust dependencies.
1957 Factor the short table outputs.
1959 * src/output.c (output_short_table): New function.
1960 * src/output.c (output_gram, output_stos, output_rule_data)
1961 (output_base, output_table, output_check): Use it.
1963 2000-10-02 Akim Demaille <akim@epita.fr>
1965 * src/output.c (output): Topological sort of the functions, in
1966 order to get rid of the `static' prototypes.
1967 No longer use `register'.
1968 * src/output.h: New file.
1969 Propagate its inclusion in files explicitly prototyping functions
1972 2000-09-21 Akim Demaille <akim@epita.fr>
1974 * src/atgeneral.m4: Update from Autoconf.
1976 2000-09-21 Akim Demaille <akim@epita.fr>
1978 * src/closure.h: New file.
1979 * src/closure.c: Formatting changes, topological sort over the
1980 functions, use of closure.h.
1981 (initialize_closure, finalize_closure): Rename as...
1982 (new_closure, free_closure): these. Adjust dependencies.
1983 * src/LR0.c: Formatting changes, topological sort, use of
1985 (initialize_states): Rename as...
1987 * src/Makefile.am (noinst_HEADERS): Adjust.
1989 2000-09-20 Akim Demaille <akim@epita.fr>
1991 * src/acconfig.h: Don't protect config.h against multiple
1993 Don't define PARAMS.
1994 * src/system.h: Define PARAMS.
1995 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1996 purpose of config.h. system.h must not try to fix wrong
1997 definitions in config.h.
1999 2000-09-20 Akim Demaille <akim@epita.fr>
2001 * src/derives.h: New file.
2002 * src/main.c, src/derives.h: Use it.
2004 * src/Makefile.am (noinst_HEADERS): Adjust.
2006 2000-09-20 Akim Demaille <akim@epita.fr>
2008 * tests/atgeneral.m4: Update from Autoconf.
2009 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2010 (AT_CHECK_CALC): New macros.
2011 Use these macros to test bison with options `', `--raw',
2012 `--debug', `--yacc', `--yacc --debug'.
2014 2000-09-19 Akim Demaille <akim@epita.fr>
2016 * src/output.c: Formatting changes.
2017 * src/machine.h: Remove, leaving its contents in...
2018 * src/system.h: here.
2020 Adjust all dependencies on stdio.h and machine.h.
2021 * src/getargs.h: New file.
2022 Let all `extern' declarations about getargs.c be replaced with
2023 inclusion of `getargs.h'.
2024 * src/Makefile.am (noinst_HEADERS): Adjust.
2026 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2028 (yyerror): Returns void, not int.
2029 * doc/bison.texinfo: Formatting changes.
2031 2000-09-19 Akim Demaille <akim@epita.fr>
2033 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2036 2000-09-18 Akim Demaille <akim@epita.fr>
2038 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2039 * src/Makefile.am (INCLUDES): Don't.
2040 Be ready to fetch headers in lib/.
2042 2000-09-18 Akim Demaille <akim@epita.fr>
2044 * doc/bison.texinfo: Update the copyright.
2045 ANSIfy and GNUify the examples.
2046 Remove the old menu.
2048 2000-09-18 Akim Demaille <akim@epita.fr>
2050 First set of tests: use the `calc' example from the documentation.
2052 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2053 is defined only when YYDEBUG is.
2054 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2055 * src/files.c (tryopen, tryclose): Formatting changes.
2056 Move to the top and be static.
2057 * src/reader.c (read_signed_integer): Likewise.
2058 * tests/calc.m4: New file.
2059 * Makefile.am, suite.m4: Adjust.
2060 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2062 2000-09-18 Akim Demaille <akim@epita.fr>
2064 Add support for an Autotest test suite for Bison.
2066 * m4/m4.m4, m4/atconfig.m4: New files.
2067 * m4/Makefile.am (EXTRA_DIST): Adjust.
2068 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2070 * src/getargs.c: Display a more standard --version message.
2071 * src/reader.c (reader): Formatting changes.
2072 No longer depend upon VERSION_STRING.
2073 * configure.in: No longer use `dnl'.
2074 Set up the test suite and the new directory `tests/.
2075 (VERSION_STRING): Remove.
2077 2000-04-14 Akim Demaille <akim@epita.fr>
2079 * src/reader.c (copy_comment2): New function, same as former
2080 `copy_comment', but outputs into two FILE *.
2081 (copy_comment): Use it.
2082 (parse_union_decl): Use it.
2083 (get_type, parse_start_decl): Use the same `invalid' message.
2084 (parse_start_decl, parse_union_decl): Use the same `multiple'
2086 (parse_union_decl, copy_guard, copy_action): Use the same
2087 `unmatched' message.
2088 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2090 2000-03-31 Akim Demaille <akim@epita.fr>
2092 * src/files.c (tryopen, tryclose): Move to the top.
2095 2000-03-31 Akim Demaille <akim@epita.fr>
2097 * src/main.c (main): Don't call `done', exit does it.
2099 2000-03-31 Akim Demaille <akim@epita.fr>
2101 * allocate.c: s/return (foo)/return foo/.
2104 * output.c: Likewise.
2105 * reader.c: Likewise.
2106 * symtab.c: Likewise.
2107 * vmsgetargs.c: Likewise.
2109 2000-03-31 Akim Demaille <akim@epita.fr>
2111 Clean up the error reporting functions.
2113 * src/report.c: New file.
2114 * src/report.h: Likewise.
2115 * src/Makefile.am: Adjust.
2116 * m4/error.m4: New file.
2117 * m4/Makefile.am: Adjust.
2118 * configure.in (jm_PREREQ_ERROR): Call it.
2119 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2121 (fatal, fatals): Remove. All callers use complain.c::fatal.
2122 (warn, warni, warns, warnss, warnss): Remove. All callers use
2123 complain.c::complain.
2124 (toomany): Remove, use fatal instead.
2125 * src/files.c (done): No argument, use complain_message_count.
2126 * src/main.c (main): Register `done' to `atexit'.
2128 * src/getargs.c (usage): More `fputs', less `fprintf'.
2130 2000-03-28 Akim Demaille <akim@epita.fr>
2132 * lib/: New directory.
2133 * Makefile.am (SUBDIRS): Adjust.
2134 * configure.in: Adjust.
2135 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2137 * src/alloca.c: Moved to lib/.
2138 * src/getopt.c: Likewise.
2139 * src/getopt1.c: Likewise.
2140 * src/getopt.h: Likewise.
2141 * src/ansi2knr.c: Likewise.
2142 * src/ansi2knr.1: Likewise.
2143 * src/Makefile.am: Adjust.
2144 * lib/Makefile.am: New file.
2146 2000-03-28 Akim Demaille <akim@epita.fr>
2148 * src/getargs.c (usage): Refresh the help message.
2150 2000-03-17 Akim Demaille <akim@epita.fr>
2152 * src/getopt1.c: Updated from textutils 2.0e
2153 * src/getopt.c: Likewise.
2154 * src/getopt.h: Likewise.
2156 2000-03-17 Akim Demaille <akim@epita.fr>
2158 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2159 the file name, not the whole `#line LINE FILE'.
2161 2000-03-17 Akim Demaille <akim@epita.fr>
2163 On syntax errors, report the token on which we choked.
2165 * src/bison.s1 (yyparse): In the label yyerrlab, when
2166 YYERROR_VERBOSE, add yychar in msg.
2168 2000-03-17 Akim Demaille <akim@epita.fr>
2170 * src/reader.c (copy_at): New function.
2171 (copy_guard): Use it.
2172 (copy_action): Use it.
2174 2000-03-17 Akim Demaille <akim@epita.fr>
2176 Be kind to translators, save some useless translations.
2178 * src/main.c (banner): New function.
2179 (fatal_banner): Use it.
2180 (warn_banner): Use it.
2182 2000-03-17 Akim Demaille <akim@epita.fr>
2184 * src/reader.c (copy_definition): Use copy_string and
2185 copy_comment. Removed now unused `match', `ended',
2187 (copy_comment, copy_string): Moved, to be visible from
2190 2000-03-17 Akim Demaille <akim@epita.fr>
2192 * src/reader.c (copy_string): Declare `static inline'. No
2193 problems with inline, since it is checked by configure.
2194 (copy_comment): Likewise.
2196 2000-03-17 Akim Demaille <akim@epita.fr>
2198 * src/reader.c (packsymbols): Formatting changes.
2200 2000-03-17 Akim Demaille <akim@epita.fr>
2202 * src/reader.c (copy_comment): New function, factored out from:
2203 (copy_action): Use it. Removed now unused `match', `ended',
2205 (copy_guard): Likewise.
2207 2000-03-17 Akim Demaille <akim@epita.fr>
2209 * src/reader.c (copy_string): New function, factored out from:
2210 (copy_action): Use it.
2211 (copy_guard): Likewise.
2213 2000-03-17 Akim Demaille <akim@epita.fr>
2215 Change the handling of @s so that they behave exactly like $s.
2216 There is now a pseudo variable @$ (readble and writable), location
2217 of the lhs of the rule (by default ranging from the location of
2218 the first symbol of the rhs, to the location of the last symbol,
2219 or, if the rhs is empty, YYLLOC).
2221 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2223 (yyparse): When providing a default semantic action, provide a
2224 default location action.
2225 (after the $): No longer change `*YYLSP', just stack YYLOC the
2226 same way you stack YYVAL.
2227 * src/reader.c (read_declarations): Use warns.
2228 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2229 (copy_action, case '@'): Likewise.
2230 Use a standard error message, to save useless work from
2233 2000-03-17 Akim Demaille <akim@epita.fr>
2235 * src/bison.s1: Formatting and cosmetics changes.
2236 * src/reader.c: Likewise.
2237 Update the Copyright notice.
2239 2000-03-17 Akim Demaille <akim@epita.fr>
2241 * src/bison.s1 (#line): All set to `#line' only, since the
2242 Makefile now handles them.
2244 2000-03-16 Akim Demaille <akim@epita.fr>
2246 * src/output.c (output_rule_data): Output the documentation of
2248 (Copyright notice): Update.
2251 2000-03-16 Akim Demaille <akim@epita.fr>
2253 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2254 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2255 One `#if YYDEBUG' remains, since it uses variables which are
2256 defined only if `YYDEBUG != 0'.
2258 2000-03-16 Akim Demaille <akim@epita.fr>
2260 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2261 and related variables so that the similarities are highlighted.
2263 2000-03-16 Akim Demaille <akim@epita.fr>
2265 * src/bison.s1: Properly indent CPP directives.
2267 2000-03-16 Akim Demaille <akim@epita.fr>
2269 * src/bison.s1: Properly indent the `alloca' CPP section.
2271 2000-03-16 Akim Demaille <akim@epita.fr>
2273 Do not hard code values of directories in `configure.in'.
2274 Update the `configure' tool chain.
2276 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2278 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2279 (AC_OUTPUT): Add m4/Makefile.
2280 Bump to bison 1.28a, 1.29 has never been released.
2281 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2282 handled via src/Makefile.am.
2283 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2284 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2286 * Makefile.am (SUBDIRS): Add m4.
2287 (ACLOCAL_AM_FLAGS): New variable.
2288 (AUTOMAKE_OPTIONS): Add check-news.
2289 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2290 the proper line number and file name.
2291 (DEFS): Propagate the location of bison library files and of the
2293 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2295 * acinclude.m4: Remove, replaced by the directory m4.
2296 * m4/Makefile.am (EXTRA_DIST): New variable.
2297 * m4/gettext.m4: New file, from the fileutils.
2298 * m4/lcmessage.m4: Likewise
2299 * m4/progtest.m4: Likewise.
2300 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2302 2000-03-10 Akim Demaille <akim@epita.fr>
2305 Formatting changes of various comments.
2306 Respect the GNU coding standards at various places.
2307 Don't use `_()' when no translation is needed.
2309 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2312 OS/2 honors TMPDIR environment variable.
2314 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2316 * doc/bison.texinfo: Tweaked spelling and grammar.
2318 Removed reference to price of printed copy.
2319 Mention BISON_SIMPLE and BISON_HAIRY.
2321 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2323 * configure.in, NEWS:
2324 Bison 1.29 released.
2326 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2328 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2329 Added reference card.
2331 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2333 * po/ru.po: Added Russian translation.
2335 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2337 * configure.in: Added Russian translation.
2339 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2341 * configure.in, NEWS, README:
2342 Released version 1.28.
2344 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2347 Squashed redefinition warning on some systems.
2349 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2350 Have configure build version string instead of relying on ANSI string
2353 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2355 * po/POTFILES.in: Got rid of version.c.
2357 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2359 * acconfig.h, configure.in:
2360 Have configure build version string instead of relying on ANSI string
2363 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2366 Dropped mention of `+' for long-named options.
2368 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2370 * src/files.c: Added <unistd.h> for unlink().
2372 * src/Makefile.am, src/system.h:
2375 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2377 * README: Added a FAQ list.
2379 * configure.in, acconfig.h:
2382 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2384 * doc/FAQ, doc/Makefile.am:
2387 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2389 * src/alloc.h, src/symtab.h, src/version.c:
2390 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2392 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2394 * src/.cvsignore, src/Makefile.am:
2395 Reorganized: sources in `src', documentation in `doc'.
2397 * src/lex.c (literalchar):
2398 fixed the code for escaping double quotes (thanks
2401 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2403 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2404 Adjusted paths to reflect directory reorganization.
2406 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2408 * doc/.cvsignore, doc/Makefile.am:
2409 Reorganized: sources in `src', documentation in `doc'.
2411 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2414 Updated AC_INIT file to reflect directory reorganization.
2416 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2417 Reorganized: sources in `src', documentation in `doc'.
2419 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2422 Don't declare calloc() and realloc() if not necessary.
2424 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2426 * configure.in, acconfig.h, acinclude.m4:
2427 Don't declare calloc() and realloc() if not necessary.
2429 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2431 * po/.cvsignore: Added i18n support.
2433 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2435 * acconfig.h, configure.in, Makefile.am:
2438 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2440 * src/bison.s1: Fixed #line numbers.
2442 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2444 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2445 Added PO files from Translation Project.
2447 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2450 Added support for non-ANSI compilers (ansi2knr).
2452 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2454 * configure.in: Bumped version number to 1.27.
2457 Added `bison.simple' to list of files removed by `make distclean'.
2459 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2461 * src/files.c, src/files.h:
2462 Defined locations of parser files in config.h instead of Makefile.
2464 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2466 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2467 Defined locations of parser files in config.h instead of Makefile.
2469 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2472 Removed inappropriate use of $< macro.
2474 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2476 * po/Makefile.in.in, po/POTFILES.in:
2477 Add `po' directory skeleton.
2479 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2481 * README: Document help-bison list.
2483 * configure.in: Add check for mkstemp().
2485 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2487 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2488 Hush a few compiler warnings.
2491 Add tryclose(), which verifies that fclose was successful.
2492 Hush a couple of compiler warnings.
2494 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2496 * Makefile.am, OChangeLog:
2497 ChangeLog is now automatically generated. Include the old version as
2500 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2502 * 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:
2505 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2507 * doc/bison.texinfo: Fix formatting glitch.
2509 * doc/bison.texinfo: Update FSF address.
2511 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2513 * acconfig.h: Update FSF address.
2515 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2518 Don't define PACKAGE here, since config.h defines it.
2520 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2522 * src/reader.c: Update copyright date.
2525 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2526 favor of output directly to stderr (avoids buffer overruns).
2528 * src/reader.c: Some checks for premature EOF.
2530 * 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:
2531 Use prototypes if the compiler understands them.
2533 * src/files.c: Honor TMPDIR on Unix hosts.
2534 Use prototypes if the compiler understands them.
2537 Fix a couple of buffer overrun bugs.
2538 Use prototypes if the compiler understands them.
2540 * src/system.h: Include unistd.h and ctype.h.
2541 Use #ifdef instead of #if for NLS symbols.
2543 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2545 * doc/bison.texinfo:
2546 Delete comment "consider using @set for edition number, etc..." since
2547 we now are doing so.
2549 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2552 Use prototypes if the compiler understands them.
2554 * NEWS: Document 1.26 highlights.
2556 * Makefile.am: Require Automake 1.3 or later.
2559 Use prototypes if the compiler understands them.
2561 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2564 Use VERSION symbol from automake for version number.
2566 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2568 * acconfig.h, configure.in, version.cin:
2569 Use VERSION symbol from automake for version number.
2571 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2574 Distribute original version of simple parser (bison.s1), not built
2575 version (bison.simple).
2577 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2579 * doc/bison.texinfo: Add info dir entry.
2581 * doc/bison.texinfo:
2582 Let automake put version number into documentation.
2584 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2586 * src/bison.cld, src/build.com, src/vmshlp.mar:
2587 Add non-RCS files from /gd/gnu/bison.
2589 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2592 Document the BISON_HAIRY and BISON_SIMPLE variables.
2594 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2596 * src/version.c: Build version.c automatically.
2599 Fix token numbering (used to start at 258, not 257).
2601 * src/system.h: Include config.h.
2603 * src/getargs.c: Update bug report address.
2605 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2606 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2608 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2611 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2613 * configure.in, version.cin:
2614 Build version.c automatically.
2616 * AUTHORS: Add AUTHORS file.
2618 * README: Update bug report address.
2621 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2623 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2626 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2628 * doc/bison.texinfo: Clean up some formatting.
2630 1998-05-05 Richard Stallman <rms@gnu.org>
2632 * doc/bison.texinfo:
2633 Explain better why to make a pure parser.
2635 1998-01-05 Richard Stallman <rms@gnu.org>
2637 * src/files.c (openfiles):
2638 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2639 find a temporary directory, if possible. Do not unlink files while
2642 1997-08-25 Richard Stallman <rms@gnu.org>
2644 * src/reader.c (stack_offset;):
2645 Change some warni to warns.
2647 * src/lex.c (literalchar): Use warns, not warni.
2649 1997-06-28 Richard Stallman <rms@gnu.org>
2651 * src/bison.s1: Add a Bison version comment.
2653 * src/main.c (fatal, warn, berror):
2656 1997-06-28 Richard Stallman <rms@gnu.org>
2658 * Makefile.in (bison_version): New variable.
2659 (dist): Use that variable.
2660 (bison.s1): Substitute the Bison version into bison.simple.
2662 * bison.simple: Add a Bison version comment.
2664 1997-06-18 Richard Stallman <rms@gnu.org>
2666 * src/main.c (fatal, warn, berror):
2667 Make error messages standard.
2668 (toomany): Improve error message text.
2670 * 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:
2671 new.h renamed to alloc.h.
2673 1997-06-18 Richard Stallman <rms@gnu.org>
2675 * Makefile.in: new.h renamed to alloc.h.
2677 1997-05-24 Richard Stallman <rms@gnu.org>
2679 * src/lex.c (literalchar):
2680 Fix the code for escaping \, " and '.
2682 (lex): Avoid trouble when there are many chars
2683 to discard in a char literal with just several chars in it.
2685 1997-05-17 Richard Stallman <rms@gnu.org>
2688 Use malloc, if using alloca is troublesome.
2689 (YYSTACK_USE_ALLOCA): New flag macro.
2690 Define it for some systems and compilers.
2691 (YYSTACK_ALLOC): New macro.
2692 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2693 If it was malloc'd, free it.
2695 1997-05-17 Richard Stallman <rms@gnu.org>
2698 Use malloc, if using alloca is troublesome.
2699 (YYSTACK_USE_ALLOCA): New flag macro.
2700 Define it for some systems and compilers.
2701 (YYSTACK_ALLOC): New macro.
2702 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2703 If it was malloc'd, free it.
2705 1997-04-23 Richard Stallman <rms@gnu.org>
2708 (alloca) [__hpux]: Always define as __builtin_alloca.
2710 1997-04-23 Richard Stallman <rms@gnu.org>
2713 (alloca) [__hpux]: Always define as __builtin_alloca.
2715 1997-04-22 Richard Stallman <rms@gnu.org>
2718 [__hpux]: Include alloca.h (right for HPUX 10)
2719 instead of declaring alloca (right for HPUX 9).
2721 * src/bison.s1 (__yy_memcpy):
2722 Declare arg `count' as unsigned int.
2723 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2725 1997-04-22 Richard Stallman <rms@gnu.org>
2728 [__hpux]: Include alloca.h (right for HPUX 10)
2729 instead of declaring alloca (right for HPUX 9).
2731 * bison.simple (__yy_memcpy):
2732 Declare arg `count' as unsigned int.
2733 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2735 1997-01-03 Richard Stallman <rms@gnu.org>
2737 * src/allocate.c: [__STDC__ or _MSC_VER]:
2738 Declare calloc and realloc to return void *.
2740 1997-01-02 Richard Stallman <rms@gnu.org>
2743 [_MSC_VER]: Include stdlib.h and process.h.
2744 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2746 * src/main.c (main): Return FAILURE as a value.
2747 (printable_version): Declare arg as int, not char.
2749 1997-01-02 Richard Stallman <rms@gnu.org>
2751 * Makefile.in (dist):
2752 Explicitly check for symlinks, and copy them.
2754 1996-12-19 Richard Stallman <rms@gnu.org>
2757 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2759 1996-12-18 Paul Eggert <eggert@gnu.org>
2761 * src/bison.s1 (yyparse):
2762 If __GNUC__ and YYPARSE_PARAM are both defined,
2763 declare yyparse to have a void * argument.
2765 1996-12-18 Paul Eggert <eggert@gnu.org>
2767 * bison.simple (yyparse):
2768 If __GNUC__ and YYPARSE_PARAM are both defined,
2769 declare yyparse to have a void * argument.
2771 1996-12-17 Richard Stallman <rms@gnu.org>
2773 * src/reduce.c (nbits): Add some casts.
2775 1996-08-12 Richard Stallman <rms@gnu.org>
2777 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2779 1996-08-12 Richard Stallman <rms@gnu.org>
2781 * bison.simple: Test _MSDOS as well as _MSDOS_.
2783 1996-07-31 Richard Stallman <rms@gnu.org>
2786 [__sun && __i386]: Include alloca.h.
2788 1996-07-31 Richard Stallman <rms@gnu.org>
2791 [__sun && __i386]: Include alloca.h.
2793 1996-07-30 Richard Stallman <rms@gnu.org>
2795 * src/bison.s1: Comment change.
2797 * src/bison.s1: Test _MSDOS_, not MSDOS.
2799 1996-07-30 Richard Stallman <rms@gnu.org>
2801 * bison.simple: Comment change.
2803 * bison.simple: Test _MSDOS_, not MSDOS.
2805 1996-06-01 Richard Stallman <rms@gnu.org>
2807 * 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:
2808 Insert `_' macro around many string constants.
2811 Insert `_' macro around many string constants.
2813 (main): Call setlocale, bindtextdomain and textdomain.
2815 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2816 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2817 [ENABLE_NLS]: Include libintl.h.
2818 [ENABLE_NLS] (gettext): Define.
2819 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2820 (N_, PACKAGE, LOCALEDIR): New macros.
2822 1996-06-01 Richard Stallman <rms@gnu.org>
2824 * POTFILES.in: New file.
2826 * Makefile.in (allocate.o):
2827 Define target explicitly.
2829 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2830 (LDFLAGS): Set to @LDFLAGS@.
2831 (configure): Run autoconf only if preceding `cd' succeeds.
2832 (bison.s1): Redirect output to temporary file then move the
2833 temporary to the target, rather than redirecting directly to bison.s1.
2834 (clean): Remove config.status and config.log.
2835 (distclean): Don't remove config.status here.
2837 1996-05-12 Richard Stallman <rms@gnu.org>
2840 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2842 1996-05-12 Richard Stallman <rms@gnu.org>
2845 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2847 1996-05-11 Richard Stallman <rms@gnu.org>
2849 * src/bison.s1 (__yy_memcpy):
2850 Really reorder the args, as was supposedly done on Feb 14 1995.
2851 (yyparse): Calls changed accordingly.
2853 1996-05-11 Richard Stallman <rms@gnu.org>
2855 * Makefile.in (dist): Don't use $(srcdir).
2857 * bison.simple (__yy_memcpy):
2858 Really reorder the args, as was supposedly done on Feb 14 1995.
2859 (yyparse): Calls changed accordingly.
2861 1996-01-27 Richard Stallman <rms@gnu.org>
2863 * src/output.c (output_rule_data):
2864 Test YYERROR_VERBOSE in the conditional
2865 around the definition of ttyname.
2867 1995-12-29 Richard Stallman <rms@gnu.org>
2870 Fix line numbers in #line commands.
2872 1995-12-29 Richard Stallman <rms@gnu.org>
2875 Fix line numbers in #line commands.
2877 1995-12-27 Richard Stallman <rms@gnu.org>
2879 * src/bison.s1 (YYPARSE_PARAM_DECL):
2880 In C++, make it always null.
2881 (YYPARSE_PARAM_ARG): New macro.
2882 (yyparse): Use YYPARSE_PARAM_ARG.
2884 1995-12-27 Richard Stallman <rms@gnu.org>
2886 * bison.simple (YYPARSE_PARAM_DECL):
2887 In C++, make it always null.
2888 (YYPARSE_PARAM_ARG): New macro.
2889 (yyparse): Use YYPARSE_PARAM_ARG.
2891 1995-11-29 Richard Stallman <rms@gnu.org>
2893 * doc/bison.texinfo:
2894 Describe literal string tokens, %raw, %no_lines, %token_table.
2896 1995-11-29 Daniel Hagerty <hag@gnu.org>
2898 * doc/bison.texinfo: Fixed update date
2900 1995-10-16 Richard Stallman <rms@gnu.org>
2902 * src/version.c: Version 1.25.
2904 1995-10-16 Richard Stallman <rms@gnu.org>
2906 * NEWS: *** empty log message ***
2908 1995-10-16 Richard Stallman <rms@gnu.org>
2910 * doc/bison.1, doc/bison.rnh:
2913 1995-10-15 Richard Stallman <rms@gnu.org>
2915 * src/vmsgetargs.c, src/getargs.c:
2916 Added -n, -k, and -raw switches.
2917 (noparserflag, toknumflag, rawtoknumflag): New variables.
2919 * src/symtab.h (SALIAS):
2920 New #define for adding aliases to %token.
2921 (struct bucket): Added `alias' field.
2923 * src/reduce.c (reduce_grammar):
2924 Revise error message.
2925 (print_notices): Remove final `.' from error message.
2927 * src/reader.c (reader_output_yylsp):
2929 (readgram): Use `#if 0' around code that accepted %command
2930 inside grammar rules: The documentation doesn't allow it,
2931 and it will fail since the %command processors scan for the next %.
2932 (parse_token_decl): Extended the %token
2933 declaration to allow a multi-character symbol as an alias.
2934 (parse_thong_decl): New function.
2935 (read_declarations): Added %thong declarations.
2936 (read_declarations): Handle NOOP to deal with allowing
2937 % declarations as another means to specify the flags.
2938 (readgram): Allow %prec prior to semantics embedded in a rule.
2939 (skip_to_char, read_declarations, copy_definition)
2940 (parse_token_decl, parse_start_decl, parse_type_decl)
2941 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2942 (get_type_name, copy_guard, copy_action, readgram)
2943 (get_type, packsymbols): Revised most error messages.
2944 Changed `fatal' to `warnxxx' to avoid aborting for error.
2945 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2946 (read_declarations): Improve the error message for
2947 an invalid character. Do not abort.
2948 (read_declarations, copy_guard, copy_action): Use
2949 printable_version to avoid unprintable characters in printed output.
2950 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2951 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2952 Allow the type of a non-terminal can be given
2953 more than once, as long as all specifications give the same type.
2956 (output_headers, output_trailers, output, output_gram)
2957 (output_rule_data): Implement noparserflag variable.
2958 Implement toknumflag variable.
2959 (output): Call reader_output_yylsp to output LTYPESTR.
2961 * src/main.c (main):
2962 If reader sees an error, don't process the grammar.
2963 (fatals): Updated to not use VARARGS1.
2964 (printable_version, int_to_string, warn, warni, warns, warnss)
2965 (warnsss): New error reporting functions. Avoid abort for error.
2968 Added THONG and NOOP for alias processing.
2969 Added SETOPT for the new code that allows setting options with %flags.
2972 Include getopt.h. Add some extern decls.
2973 (safegetc): New function to deal with EOF gracefully.
2974 (literalchar); new function to deal with reading \ escapes.
2975 (lex): Use literalchar.
2976 (lex): Implemented "..." tokens.
2977 (literalchar, lex, parse_percent_token): Made tokenbuffer
2978 always contain the token. This includes growing the token
2979 buffer while reading an integer.
2980 (parse_percent_token): Replaced if-else statement with percent_table.
2981 (parse_percent_token): Added % declarations as another
2982 way to specify the flags -n, -l, and -r. Also added hooks for
2983 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2984 major changes to files.c.
2985 (lex) Retain in the incoming stream a character following
2987 (skip_white_space, lex): Revised most error messages
2988 and changed fatal to warn to avoid aborting.
2989 (percent_table): Added %thong declarations.
2991 * src/gram.h: Comment changes.
2993 * src/files.c (openfiles, open_extra_files, done):
2995 and actfile file. Handle noparserflag. Both for -n switch.
2997 * src/conflicts.c (resolve_sr_conflict):
2998 Remove use of alloca.
3000 1995-06-01 Jim Meyering <meyering@gnu.org>
3002 * doc/bison.texinfo: *** empty log message ***
3004 1995-05-06 Richard Stallman <rms@gnu.org>
3006 * src/bison.s1: Comment change.
3008 1995-05-06 Richard Stallman <rms@gnu.org>
3010 * bison.simple: Comment change.
3012 1995-05-03 Richard Stallman <rms@gnu.org>
3014 * src/version.c: Version now 1.24.
3016 * src/bison.s1: Change distribution terms.
3018 * src/version.c: Version now 1.23.
3020 1995-05-03 Richard Stallman <rms@gnu.org>
3022 * doc/bison.texinfo:
3023 Rewrite "Conditions for Using Bison".
3024 Update version to 1.24.
3026 1995-05-03 Richard Stallman <rms@gnu.org>
3028 * bison.simple: Change distribution terms.
3030 1995-02-23 Richard Stallman <rms@gnu.org>
3032 * src/files.c: Test __VMS_POSIX as well as VMS.
3034 1995-02-14 Jim Meyering <meyering@gnu.org>
3036 * src/bison.s1 (__yy_memcpy):
3037 Renamed from __yy_bcopy to avoid
3038 confusion. Reverse FROM and TO arguments to be consistent with
3041 1995-02-14 Jim Meyering <meyering@gnu.org>
3043 * bison.simple (__yy_memcpy):
3044 Renamed from __yy_bcopy to avoid
3045 confusion. Reverse FROM and TO arguments to be consistent with
3048 1994-11-10 David J. MacKenzie <djm@gnu.org>
3054 * Makefile.in (DISTFILES): Include NEWS.
3056 * Makefile.in (DISTFILES):
3057 Include install-sh, not install.sh.
3059 * configure.in: Update to Autoconf v2 macro names.
3061 1994-10-05 David J. MacKenzie <djm@gnu.org>
3063 * Makefile.in: fix typo
3065 * Makefile.in (prefix, exec_prefix):
3066 Let configure set them.
3068 1994-09-28 David J. MacKenzie <djm@gnu.org>
3070 * Makefile.in: Set datadir to $(prefix)/share.
3072 1994-09-15 Richard Stallman <rms@gnu.org>
3075 Update copyright notice and GPL version.
3077 1994-09-15 Richard Stallman <rms@gnu.org>
3080 Update copyright notice and GPL version.
3082 1994-07-12 Richard Stallman <rms@gnu.org>
3084 * src/reduce.c, src/reader.c:
3087 1994-05-05 David J. MacKenzie <djm@gnu.org>
3089 * Makefile.in: entered into RCS
3091 1994-03-26 Richard Stallman <rms@gnu.org>
3093 * src/bison.s1: entered into RCS
3095 1994-03-26 Richard Stallman <rms@gnu.org>
3097 * bison.simple: entered into RCS
3099 1994-03-25 Richard Stallman <rms@gnu.org>
3101 * src/main.c: entered into RCS
3103 1994-03-24 Richard Stallman <rms@gnu.org>
3105 * src/conflicts.c: entered into RCS
3107 1994-01-02 Richard Stallman <rms@gnu.org>
3109 * Makefile.in: *** empty log message ***
3111 1993-11-21 Richard Stallman <rms@gnu.org>
3113 * src/bison.s1: *** empty log message ***
3115 1993-11-21 Richard Stallman <rms@gnu.org>
3117 * doc/bison.texinfo: entered into RCS
3119 * doc/bison.texinfo: *** empty log message ***
3121 1993-11-21 Richard Stallman <rms@gnu.org>
3123 * bison.simple: *** empty log message ***
3125 1993-10-25 David J. MacKenzie <djm@gnu.org>
3127 * doc/bison.texinfo: *** empty log message ***
3129 1993-10-19 Richard Stallman <rms@gnu.org>
3131 * src/bison.s1: *** empty log message ***
3133 1993-10-19 Richard Stallman <rms@gnu.org>
3135 * bison.simple: *** empty log message ***
3137 1993-10-14 Richard Stallman <rms@gnu.org>
3139 * src/bison.s1: *** empty log message ***
3141 1993-10-14 Richard Stallman <rms@gnu.org>
3143 * bison.simple: *** empty log message ***
3145 1993-09-14 David J. MacKenzie <djm@gnu.org>
3147 * doc/bison.texinfo: *** empty log message ***
3149 1993-09-13 Noah Friedman <friedman@gnu.org>
3151 * Makefile.in: *** empty log message ***
3153 1993-09-10 Richard Stallman <rms@gnu.org>
3155 * src/conflicts.c: *** empty log message ***
3157 * src/system.h: entered into RCS
3159 1993-09-10 Richard Stallman <rms@gnu.org>
3161 * doc/bison.1: entered into RCS
3163 1993-09-06 Noah Friedman <friedman@gnu.org>
3165 * src/version.c: entered into RCS
3167 1993-09-06 Noah Friedman <friedman@gnu.org>
3169 * Makefile.in: *** empty log message ***
3171 1993-07-30 David J. MacKenzie <djm@gnu.org>
3173 * Makefile.in: *** empty log message ***
3175 1993-07-24 Richard Stallman <rms@gnu.org>
3177 * src/bison.s1: *** empty log message ***
3179 1993-07-24 Richard Stallman <rms@gnu.org>
3181 * bison.simple: *** empty log message ***
3183 1993-07-08 David J. MacKenzie <djm@gnu.org>
3185 * Makefile.in: *** empty log message ***
3187 1993-07-04 Richard Stallman <rms@gnu.org>
3189 * src/bison.s1: *** empty log message ***
3191 1993-07-04 Richard Stallman <rms@gnu.org>
3193 * bison.simple: *** empty log message ***
3195 1993-06-26 David J. MacKenzie <djm@gnu.org>
3197 * src/getargs.c: entered into RCS
3199 1993-06-26 David J. MacKenzie <djm@gnu.org>
3201 * doc/bison.texinfo: *** empty log message ***
3203 * doc/bison.1: New file.
3205 1993-06-25 Richard Stallman <rms@gnu.org>
3207 * src/getargs.c: New file.
3209 1993-06-16 Richard Stallman <rms@gnu.org>
3211 * src/bison.s1: *** empty log message ***
3213 1993-06-16 Richard Stallman <rms@gnu.org>
3215 * bison.simple: *** empty log message ***
3217 1993-06-03 Richard Stallman <rms@gnu.org>
3219 * src/bison.s1: New file.
3221 1993-06-03 Richard Stallman <rms@gnu.org>
3223 * doc/bison.texinfo: *** empty log message ***
3225 1993-06-03 Richard Stallman <rms@gnu.org>
3227 * bison.simple: New file.
3229 1993-05-19 Richard Stallman <rms@gnu.org>
3231 * doc/bison.texinfo: New file.
3233 1993-05-07 Noah Friedman <friedman@gnu.org>
3235 * Makefile.in: *** empty log message ***
3237 1993-04-28 Noah Friedman <friedman@gnu.org>
3239 * src/reader.c: *** empty log message ***
3241 1993-04-23 Noah Friedman <friedman@gnu.org>
3243 * src/alloc.h: entered into RCS
3245 1993-04-20 David J. MacKenzie <djm@gnu.org>
3247 * src/version.c: *** empty log message ***
3249 * src/files.c, src/allocate.c:
3252 * src/reader.c: *** empty log message ***
3254 * src/lex.c: entered into RCS
3256 * src/conflicts.c: New file.
3258 * src/symtab.c: entered into RCS
3260 * src/alloc.h: New file.
3262 * src/LR0.c: entered into RCS
3264 1993-04-18 Noah Friedman <friedman@gnu.org>
3266 * src/reader.c: New file.
3268 * src/version.c: *** empty log message ***
3270 1993-04-18 Noah Friedman <friedman@gnu.org>
3272 * Makefile.in: *** empty log message ***
3274 1993-04-17 Noah Friedman <friedman@gnu.org>
3276 * Makefile.in: *** empty log message ***
3278 1993-04-15 Richard Stallman <rms@gnu.org>
3280 * src/main.c, src/files.c:
3283 1993-04-15 Noah Friedman <friedman@gnu.org>
3285 * configure.in: entered into RCS
3287 * configure.in: *** empty log message ***
3289 * configure.in: New file.
3291 1993-04-14 Richard Stallman <rms@gnu.org>
3293 * Makefile.in: New file.
3295 1993-04-13 Richard Stallman <rms@gnu.org>
3297 * src/version.c: New file.
3299 1993-03-25 Richard Stallman <rms@gnu.org>
3301 * src/output.c: entered into RCS
3303 1992-09-25 Richard Stallman <rms@gnu.org>
3305 * configure.bat: entered into RCS
3307 1992-06-22 Richard Stallman <rms@gnu.org>
3309 * src/vmsgetargs.c: entered into RCS
3311 1992-06-22 Richard Stallman <rms@gnu.org>
3313 * doc/bison.rnh: entered into RCS
3315 1992-04-20 David J. MacKenzie <djm@gnu.org>
3317 * README: entered into RCS
3319 1992-01-22 Richard Stallman <rms@gnu.org>
3321 * src/machine.h: entered into RCS
3323 1991-12-21 Richard Stallman <rms@gnu.org>
3325 * src/lalr.c, src/closure.c:
3328 1991-12-20 Richard Stallman <rms@gnu.org>
3330 * src/state.h: entered into RCS
3332 1991-12-18 Richard Stallman <rms@gnu.org>
3334 * src/print.c, src/nullable.c, src/derives.c:
3337 1991-11-03 David J. MacKenzie <djm@gnu.org>
3339 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3342 1988-09-09 Richard Stallman <rms@gnu.org>
3344 * src/bison.hairy: entered into RCS
3346 1987-12-16 Richard Stallman <rms@gnu.org>
3348 * REFERENCES: entered into RCS