1 2001-11-12 Akim Demaille <akim@epita.fr>
3 * tests/regression.at (Invalid input): Remove, duplicate with
7 2001-11-12 Akim Demaille <akim@epita.fr>
9 * tests/torture.at (AT_DATA_STACK_TORTURE)
10 (Exploding the Stack Size with Alloca)
11 (Exploding the Stack Size with Malloc): New.
13 2001-11-12 Akim Demaille <akim@epita.fr>
15 * src/bison.simple (YYSTACK_REALLOC): New.
16 (yyparse) [!yyoverflow]: Use it and free the old stack.
17 Reported by FIXME: Who.
19 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
21 * src/bison.simple: Define type yystype instead of YYSTYPE, and
22 define CPP macro, which substitute YYSTYPE by yystype.
23 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
24 with yyltype/YYLTYPE. This allows inclusion of the generated
25 header within the parser if the compiler, such as GGC, accepts
26 multiple equivalent #defines.
29 2001-11-05 Akim Demaille <akim@epita.fr>
31 * src/reader.c (symbols_output): New, extracted from...
35 2001-11-05 Akim Demaille <akim@epita.fr>
37 * src/lex.c (parse_percent_token): s/quotearg/quote/.
39 2001-11-05 Akim Demaille <akim@epita.fr>
41 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
44 2001-11-05 Akim Demaille <akim@epita.fr>
46 * src/options.h (struct option_table_struct): set_flags is void*.
47 * src/options.c (longopts): Support `--output' and `%output'.
49 * src/lex.h (tok_setopt): Remove, replaced with...
50 (tok_intopt, tok_stropt): these new guys.
51 * src/lex.c (getopt.h): Not needed.
52 (token_buffer, unlexed_token_buffer): Not const.
53 (percent_table): Promote `-' over `_' in directive names.
54 Active `%name-prefix', `file-prefix', and `output'.
55 (parse_percent_token): Accept possible arguments to directives.
56 Promote `-' over `_' in directive names.
58 2001-11-04 Akim Demaille <akim@epita.fr>
60 * doc/bison.texinfo (Decl Summary): Split the list into
61 `directives for grammars' and `directives for bison'.
63 Add description of `%name-prefix', `file-prefix', and `output'.
64 Promote `-' over `_' in directive names.
65 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
66 Simplify the description of `--name-prefix'.
67 Promote `-' over `_' in directive names.
68 Promote `--output' over `--output-file'.
69 Fix the description of `--defines'.
70 * tests/output.at: Exercise %file-prefix and %output.
72 2001-11-02 Akim Demaille <akim@epita.fr>
74 * doc/refcard.tex: Update.
76 2001-11-02 Akim Demaille <akim@epita.fr>
78 * src/symtab.h (SUNDEF): New.
79 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
80 stand for `uninitialized', instead of 0.
81 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
82 * src/lex.c (lex): Adjust.
84 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
86 Let yylex return it instead of a plain 0.
87 Reported by Dick Streefland.
89 2001-11-02 Akim Demaille <akim@epita.fr>
91 * tests/regression.at (Mixing %token styles): New test.
93 2001-11-02 Akim Demaille <akim@epita.fr>
95 * src/reader.c (parse_thong_decl): Formatting changes.
96 (token_translations_init): New, extracted from...
100 2001-11-01 Akim Demaille <akim@epita.fr>
102 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
103 Check that `9foo.y' produces correct cpp guards.
104 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
108 2001-11-01 Akim Demaille <akim@epita.fr>
110 * tests/regression.at (Invalid input: 2): New.
111 * src/lex.c (unlexed_token_buffer): New.
112 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
116 2001-11-01 Akim Demaille <akim@epita.fr>
118 * tests/calc.at: Catch up with 1.30.
119 * configure.in: Bump to 1.49a.
120 Adjust to newer Autotest.
122 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
124 * src/conflicts.c: Move global variables rrc_total and src_total ...
125 (print_conflicts): here.
126 * src/output.c (output): Free global variable user_toknums.
127 * src/lex.c (token_obstack): Become static.
129 2001-10-18 Akim Demaille <akim@epita.fr>
131 * tests/atlocal.in (GCC): Add.
132 * tests/calc.at: s/m4_match/m4_bmatch/.
133 s/m4_patsubst/m4_bpatsubst/.
134 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
135 * configure.in: AC_SUBST(GCC).
137 2001-10-14 Marc Autret <autret_m@epita.fr>
139 * src/options.c (create_long_option_table): Fix.
141 2001-10-10 Akim Demaille <akim@epita.fr>
143 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
145 2001-10-04 Akim Demaille <akim@epita.fr>
147 * src/reader.c (parse_union_decl): Push the caracters in
148 union_obstack, not attrs_obstack.
150 2001-10-04 Akim Demaille <akim@epita.fr>
152 Merge in the branch 1.29.
154 * src/reader.c (packsymbols): Use a temporary obstack for
155 `%%tokendef', since output_stack is already used elsewhere.
157 2001-10-02 Akim Demaille <akim@epita.fr>
161 2001-10-02 Akim Demaille <akim@epita.fr>
165 2001-10-02 Akim Demaille <akim@epita.fr>
167 * tests/regression.at (Invalid CPP headers): New.
168 From Alexander Belopolsky.
169 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
171 2001-10-02 Akim Demaille <akim@epita.fr>
173 * tests/regression.at (Invalid input): New.
174 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
177 2001-10-02 Akim Demaille <akim@epita.fr>
179 * tests/calc.at: Now that --debug works, the tests must be adjusted.
181 2001-10-02 Akim Demaille <akim@epita.fr>
183 * src/output.c (output_parser): Assert `skeleton'.
184 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
188 2001-10-01 Marc Autret <autret_m@epita.fr>
190 * src/lex.h: Echo modifications.
191 * src/lex.c (unlex): Parameter is now token_t.
194 2001-10-01 Marc Autret <autret_m@epita.fr>
196 * src/main.c: Include lex.h.
199 2001-09-29 Akim Demaille <akim@epita.fr>
201 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
203 2001-09-28 Akim Demaille <akim@epita.fr>
205 * tests/testsuite.at: Update to newer Autotest.
206 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
208 2001-09-27 Akim Demaille <akim@epita.fr>
210 Position independent wrapper.
212 * tests/bison: Remove.
213 * tests/bison.in: New.
214 * configure.in: Adjust.
216 2001-09-27 Paul Eggert <eggert@twinsun.com>
218 Port quotearg fixes from tar 1.13.24.
220 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
222 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
223 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
225 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
226 * m4/mbrtowc.m4: New file.
227 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
228 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
230 2001-09-27 Akim Demaille <akim@epita.fr>
234 2001-09-27 Akim Demaille <akim@epita.fr>
238 2001-09-25 Akim Demaille <akim@epita.fr>
240 * src/system.h: Include `xalloc.h'.
241 Remove it from the C files.
242 * src/files.c (output_files): Free the obstacks.
243 * src/lex.c (init_lex): Rename as...
246 * src/main.c (main): Use it.
248 2001-09-24 Marc Autret <autret_m@epita.fr>
250 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
251 to output informations in fout (FILE*).
252 (open_graph, close_graph): Likewise.
253 (output_graph, output_edge, output_node): Likewise.
254 * src/vcg.h: Update function prototypes.
255 * src/print_graph.c (print_graph): Open output graph file.
256 (print_actions): Adjust.
257 * src/files.h: Remove extern declaration.
258 * src/files.c: Remove graph_obstack declaration.
259 (open_files): Remove graph_obstack initialization.
260 (output_files): Remove graph_obstack saving.
262 2001-09-24 Marc Autret <autret_m@epita.fr>
264 * src/files.c (compute_output_file_names): Fix.
266 2001-09-24 Marc Autret <autret_m@epita.fr>,
267 Akim Demaille <akim@epita.fr>
269 * src/reader.c (reader): Remove call to free_symtab ().
270 * src/main.c (main): Call it here.
272 * src/conflicts.c (initialize_conflicts): Rename as...
273 (solve_conflicts): this.
274 * src/print.c (print_core, print_actions, print_state)
275 (print_grammar): Dump to a file instead a `output_obstack'.
276 (print_results): Dump `output_obstack', and then proceed with the
278 * src/files.c (compute_output_file_names, close_files): New.
279 (output_files): Adjust.
280 * src/main.c (main): Adjust.
282 2001-09-23 Marc Autret <autret_m@epita.fr>
284 * src/files.c (compute_header_macro): Computes header macro name
285 from spec_defines_file when given.
287 2001-09-23 Marc Autret <autret_m@epita.fr>
289 * src/files.c (output_files): Add default extensions.
291 2001-09-22 Akim Demaille <akim@epita.fr>
293 * src/conflicts.c (finalize_conflicts): Rename as...
294 (free_conflicts): this.
296 2001-09-22 Akim Demaille <akim@epita.fr>
298 * src/gram.c (gram_free): Rename back as...
300 (output_token_translations): Free `token_translations'.
301 * src/symtab.c (free_symtab): Free the tag field.
303 2001-09-22 Akim Demaille <akim@epita.fr>
305 Remove `translations' as it is always set to true.
307 * src/gram.h: Adjust.
308 * src/reader.c (packsymbols, parse_token_decl): Adjust
309 * src/print.c (print_grammar): Adjust.
310 * src/output.c (output_token_translations): Adjust.
311 * src/lex.c (lex): Adjust.
312 * src/gram.c: Be sure the set pointers to NULL.
313 (dummy): Rename as...
316 2001-09-22 Akim Demaille <akim@epita.fr>
318 * configure.in: Invoke AM_LIB_DMALLOC.
319 * src/system.h: Use dmalloc.
320 * src/LR0.c: Be sure to have pointers initialized to NULL.
321 (allocate_itemsets): Allocate kernel_items only if needed.
323 2001-09-22 Akim Demaille <akim@epita.fr>
325 * configure.in: Bump to 1.29b.
326 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
327 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
328 need xmalloc.c in calc.y.
331 2001-09-21 Akim Demaille <akim@epita.fr>
334 * Makefile.maint, config/config.guess, config/config.sub,
335 * config/missing: Update from masters.
336 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
338 * configure.in (ALL_LINGUAS): Add `tr'.
340 2001-09-21 Akim Demaille <akim@epita.fr>
342 * tests/Makefile.am (package.m4): Move to...
343 ($(srcdir)/$(TESTSUITE)): here.
345 2001-09-20 Akim Demaille <akim@epita.fr>
347 * src/complain.c: No longer try to be standalone: use system.h.
348 Don't assume __STDC__ is defined to 1. Just test if it is defined.
349 * src/complain.h: Likewise.
350 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
351 Remove the unused variable `n'.
352 From Albert Chin-A-Young.
354 2001-09-18 Marc Autret <autret_m@epita.fr>
356 * doc/bison.1: Update.
357 * doc/bison.texinfo (Bison Options): Update --defines and --graph
359 (Option Cross Key): Update.
362 2001-09-18 Marc Autret <autret_m@epita.fr>
364 * tests/regression.at: New test (comment in %union).
366 2001-09-18 Marc Autret <autret_m@epita.fr>
368 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
370 Reported by Keith Browne.
372 2001-09-18 Marc Autret <autret_m@epita.fr>
374 * tests/output.at: Add tests for --defines and --graph.
376 2001-09-18 Marc Autret <autret_m@epita.fr>
378 * tests/output.at: Removes tests of %{header,src}_extension features.
380 2001-09-18 Akim Demaille <akim@epita.fr>
382 * tests/Makefile.am (package.m4): New.
383 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
384 (_AT_CHECK_CALC_ERROR): Likewise.
385 Factor the `, ' part of verbose error messages.
387 2001-09-18 Marc Autret <autret_m@epita.fr>
389 * src/getargs.c (longopts): Declare --defines and --graph as options
390 with optional arguments.
391 * src/files.h: Add extern declarations.
392 * src/files.c (spec_graph_file, spec_defines_file): New.
393 (output_files): Update.
394 Remove CPP-outed code.
396 2001-09-18 Marc Autret <autret_m@epita.fr>
398 Turn off %{source,header}_extension feature.
400 * src/files.c (compute_exts_from_gf): Update.
401 (compute_exts_from_src): Update.
402 (output_files): CPP-out useless code.
403 * src/files.h: Remove {header,source}_extension extern declarations.
404 * src/reader.c (parse_dquoted_param): CPP-out.
405 (parse_header_extension_decl): Remove.
406 (parse_source_extension_decl): Remove.
407 (read_declarations): Remove cases tok_{hdrext,srcext}.
408 * src/lex.c (percent_table): Remove {header,source}_extension entries.
409 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
411 2001-09-10 Akim Demaille <akim@epita.fr>
413 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
414 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
415 (AT_CHECK_OUTPUT): this.
416 Merely check ls' exit status, its output is useless.
418 2001-09-10 Akim Demaille <akim@epita.fr>
420 * tests/calc.at: Use m4_match.
421 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
423 2001-09-10 Marc Autret <autret_m@epita.fr>,
424 Akim Demaille <akim@epita.fr>
426 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
428 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
430 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
431 * src/lex.h: Adjust prototype.
432 (token_t): Add `tok_undef'.
433 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
434 (parse_percent_token): Now returns token_t.
435 Add default statement in switch.
436 (lex): Separate `c' as an input variable, from the token_t result
438 (unlexed): Is a token_t.
440 2001-09-10 Akim Demaille <akim@epita.fr>
442 * configure.in: Bump to 1.29a.
444 2001-09-07 Akim Demaille <akim@epita.fr>
448 2001-08-30 Akim Demaille <akim@epita.fr>
450 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
451 * m4/atconfig.m4: Remove.
452 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
454 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
455 m4_if, m4_patsubst, and m4_regexp.
456 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
457 `input' file instead of echo.
459 2001-08-29 Akim Demaille <akim@epita.fr>
463 2001-08-29 Akim Demaille <akim@epita.fr>
467 2001-08-29 Paul Eggert <eggert@twinsun.com>
469 * src/bison.simple (yyparse): Don't take the address of an
470 item before the start of an array, as that doesn't conform to
473 2001-08-29 Robert Anisko <anisko_r@epita.fr>
475 * doc/bison.texinfo (Location Tracking Calc): New node.
477 2001-08-29 Paul Eggert <eggert@twinsun.com>
479 * src/output.c (output): Do not define const, as this now
480 causes more problems than it cures.
482 2001-08-29 Akim Demaille <akim@epita.fr>
484 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
486 Be sure to tag the `detailmenu'.
488 2001-08-29 Akim Demaille <akim@epita.fr>
490 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
491 download in a tmp dir.
493 2001-08-28 Marc Autret <autret_m@epita.fr>
495 * config/depcomp: New file.
497 2001-08-28 Marc Autret <autret_m@epita.fr>
499 * doc/bison.1 (mandoc): Adjust.
500 From Juan Manuel Guerrero.
502 2001-08-28 Marc Autret <autret_m@epita.fr>
504 * src/print_graph.c (print_state): Fix.
506 2001-08-27 Marc Autret <autret_m@epita.fr>
508 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
510 Echo modifications to the functions prototypes.
511 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
513 2001-08-27 Marc Autret <autret_m@epita.fr>
515 * src/vcg.c: Include `xalloc.h'.
516 (add_colorentry): New.
517 (add_classname): New.
519 * src/vcg.h: Add new prototypes.
521 2001-08-27 Akim Demaille <akim@epita.fr>
523 * Makefile.maint: Sync. again with CVS Autoconf.
525 2001-08-27 Akim Demaille <akim@epita.fr>
527 * Makefile.maint: Formatting changes.
528 (po-update, cvs-update, update): New targets.
531 2001-08-27 Akim Demaille <akim@epita.fr>
533 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
534 * Makefile.maint: Sync. with CVS Autoconf.
536 2001-08-27 Marc Autret <autret_m@epita.fr>
538 * src/vcg.h (struct infoname_s): New.
539 (struct colorentry_s): New.
540 (graph_s): New fields {vertical,horizontal}_order in structure.
541 Add `infoname' field.
542 Add `colorentry' field;
543 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
544 (G_HORIZONTAL_ORDER): New.
547 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
548 Add output of `infoname'.
549 Add output of `colorentry'.
551 2001-08-27 Marc Autret <autret_m@epita.fr>
553 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
554 This one shadowed a global parameter.
556 2001-08-24 Marc Autret <autret_m@epita.fr>
558 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
559 instead of `unsigned'.
560 (print_state): Do not call obstack_object_size () in obstack_grow ()
561 to avoid macro variables shadowing.
563 2001-08-23 Marc Autret <autret_m@epita.fr>
565 * src/lex.c (percent_table): Typo: s/naem/name/.
567 Normalize new options declarations.
569 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
571 * tests/suite.at: Exercise %header_extension and %source_extension.
573 2001-08-16 Marc Autret <autret_m@epita.fr>
575 * src/reader.c (parse_dquoted_param): New.
576 (parse_header_extension_decl): Use it.
577 (parse_source_extension_decl): Likewise.
579 2001-08-16 Marc Autret <autret_m@epita.fr>
581 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
582 (get_xxxx_str): Use assert () instead of complain ().
583 Remove return invokations in default cases.
584 (get_decision_str): Modify default behaviour. Remove second argument.
585 Echo modifications on calls.
588 2001-08-16 Marc Autret <autret_m@epita.fr>
590 * src/getargs.c (usage): Update with ``-g, --graph''.
592 2001-08-16 Marc Autret <autret_m@epita.fr>
594 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
595 (Option Cross Key): Likewise.
596 * doc/bison.1: Update.
598 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
600 * src/output.c (output_master_parser): Don't finish action_obstack.
601 (output_parser): Don't care about the muscle action, here.
602 (prepare): Copy the action_obstack in the action muscle.
603 (output): Free action_obstack.
605 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
607 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
608 will contain `%union' declaration.
609 (parse_union_decl): Delete #line directive output.
610 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
611 informations about %union.
612 (parse_union_decl): Copy the union_obstack in the muscle stype.
613 * src/bison.simple: Add new #line directive.
614 Add typdef %%stype YYSTYPE.
616 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
618 * src/bison.simple: Add new `#line' directive.
620 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
622 * src/bison.simple: New `#line' directive.
623 * src/output.c (output_parser): Support new dynamic muscle input_line.
625 2001-09-22 Marc Autret <autret_m@epita.fr>
627 * src/output.c (output_master_parser): New.
628 (output_parser): Be more re-entrant.
630 2001-09-21 Marc Autret <autret_m@epita.fr>
632 * src/reader.c (copy_definition, parse_union_decl): Update and use
634 (copy_action): Likewise.
635 Use obstack_1grow ().
636 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
638 2001-09-21 Marc Autret <autret_m@epita.fr>
640 * src/options.c (option_table): Adjust.
641 * src/lex.c (parse_percent_token): Fix.
643 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
645 * src/options.c (symtab.h): Include it, need by lex.h.
647 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
649 * src/lex.c (parse_percent_token): Change type of variable `tx', which
650 is now an option_table_struct*.
651 (option_strcmp): New function option_strcmp.
652 (parse_percent_token): Call option_strcmp.
653 * src/getargs.c (xalloc.h, options.h): Include it.
654 (getargs): Call create_long_option_table.
655 (getargs): Free longopts at the end of the function.
656 (shortopts): Move in options.c.
657 * src/options.c (create_long_option_table): New function. Convert
658 information from option_table to option structure.
659 * src/reader.c (options.h): Include it.
661 * src/Makefile.am: Adjust.
662 * src/options.c (option_table): Create from longopts and percent_table.
663 * src/getargs.c (longopts): Delete.
664 * src/lex.c (struct percent_table_struct): Delete.
665 (percent_table): Delete.
666 (options.h): Include it.
667 * src/options.c: Create.
668 * src/options.h: Create.
669 Declare enum opt_access_e.
670 Define struct option_table_struct.
672 2001-09-20 Marc Autret <autret_m@epita.fr>
674 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
677 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
679 * src/bison.simple: s/%%filename/%%skeleton.
680 * src/muscle_tab.c (getargs.h): Include it.
681 (muscle_init): Insert new muscle skeleton.
683 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
685 * src/output.c (output_parser): Delete unused variable actions_dumped.
687 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
689 * src/output.c (output): Delete call to reader_output_yylsp.
690 * src/reader.c (reader): Likewise.
691 * src/reader.h: Delete declaration of reader_output_yylsp.
693 2001-09-02 Marc Autret <autret_m@epita.fr>
695 * src/reader.c: Include muscle_tab.h.
696 (parse_union_decl): Update.
697 (parse_macro_decl): Rename parse_muscle_decl.
698 Update to use renamed functions and variable.
699 (read_declarations, copy_action, read_additionnal_code, : Updated
700 with correct variables and functions names.
701 (packsymbols, reader): Likewise.
703 * src/reader.h (muscle_obstack): Extern declaration update.
705 * src/output.c: Include muscle_tab.h
706 In all functions using macro_insert, change by using muscle_insert ().
707 (macro_obstack): Rename muscle_obstack.
708 Echo modifications in the whole file.
709 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
710 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
711 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
713 * src/muscle_tab.h: Update double inclusion macros.
714 (macro_entry_s): Rename muscle_entry_s.
717 * src/muscle_tab.c: Include muscle_tab.h.
718 Rename macro_tabble to muscle_table.
719 (mhash1, mhash2, mcmp): Use muscle_entry.
720 (macro_init): Rename muscle_init. Update.
721 (macro_insert): Rename muscle_insert. Update.
722 (macro_find): Rename muscle_find. Update.
724 * src/main.c: Include muscle_tab.h.
725 (main): Call muscle_init ().
726 * src/Makefile.am (bison_SOURCES): Echo modifications.
728 2001-09-02 Marc Autret <autret_m@epita.fr>
730 Now the files macro_tab.[ch] are named muscle_tab.[ch].
732 * src/muscle_tab.c, src/muscle_tab.h: Add files.
734 2001-09-02 Marc Autret <autret_m@epita.fr>
736 * src/macrotab.c, src/macrotab.h: Remove.
738 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
740 * src/reader.c (copy_guard): Use muscle to specify the `#line'
743 2001-09-01 Marc Autret <autret_m@epita.fr>
745 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
746 to an explicit value to activate the feature. We do it here.
748 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
750 * src/output.c (prepare): Delete the `filename' muscule insertion.
751 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
752 (parse_union_decl): Likewise.
753 * src/macrotab.c (macro_init): Initialize filename by infile.
755 2001-08-31 Marc Autret <autret_m@epita.fr>
757 * src/bison.simple (YYLSP_NEEDED): New definition.
758 * src/output.c (prepare): Add macro insertion of `locations_flag'
760 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
762 * src/output.c (prepare): Delete insertion of previous muscles,
763 and insert the `prefix' muscles.
764 * src/macrotab.c (macro_init): Likewise.
765 (macro_init): Initialization prefix directive by `yy'.
766 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
767 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
768 yylval, yydebug, yyerror, yynerrs and yyparse.
769 New directive `#define' to substitute yydebug, ... with option
772 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
774 * src/main.c (main): Standardize.
775 * src/output.c (output_table_data, output_parser): Likewise.
776 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
778 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
780 * src/reader.c (read_additionnal_code): Rename %%user_code to
782 * src/output.c (output): Rename %%declarations to %%prologue.
783 * src/bison.simple: Echo modifications.
785 2001-08-31 Marc Autret <autret_m@epita.fr>
787 * src/reader.c (readgram): CleanUp.
788 (output_token_defines): Likewise.
789 (packsymbols): Likewise.
791 * src/output.c (output): CPP-out useless code.
793 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
795 * src/reader.c (reader): Delete obsolete call to function
796 output_trailers and output_headers.
797 * src/output.h: Remove obsolete functions prototypes of output_headers
800 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
802 * src/main.c: Include macrotab.h.
803 * src/macrotab.h (macro_entry_s): Constify fields.
804 Adjust functions prototypes.
805 * src/macrotab.c (macro_insert): Constify key and value.
806 (macro_find): Constify key.
807 (macro_insert): Include 'xalloc.h'
808 (macro_insert): Use XMALLOC.
809 (macro_find): Constify return value.
810 * src/output.c (output_table_data): Rename table to table_data.
811 (output_parser): Constify macro_key, macro_value.
813 2001-08-30 Marc Autret <autret_m@epita.fr>
815 * src/reader.c (parse_skel_decl): New.
816 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
817 * src/lex.h (token_t): New token `tok_skel'.
818 * src/lex.c (percent_table): Add skeleton option entry.
821 2001-08-29 Marc Autret <autret_m@epita.fr>
823 * src/bison.simple: Add %%user_code directive at the end.
824 * src/reader.c (read_additionnal_code): New.
826 * src/output.c (output_program): Remove.
829 2001-08-28 Marc Autret <autret_m@epita.fr>
831 * src/output.c (output_actions): Clean up.
832 (output_gram): CPP-out useless code.
833 * src/reader.c (reader): Clean up, CPP-out useless code.
835 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
837 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
839 * src/bison.simple: Add `%%definitions'.
841 2001-08-28 Marc Autret <autret_m@epita.fr>
843 * config/depcomp: New file.
845 2001-08-27 Paul Eggert <eggert@twinsun.com>
847 * src/bison.simple (yyparse): Don't take the address of an
848 item before the start of an array, as that doesn't conform to
851 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
853 * src/output.c (output): Remove the initialization of the macro
854 obstack. It was done too late here.
856 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
858 (reader): Initialize the macro obstack here, since we need it to grow
859 '%define' directives.
861 * src/reader.h: Declare the macro obstack as extern.
863 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
865 * src/output.c (output_parser): Fix. Store single '%' characters in
866 the output obstack instead of throwing them away.
868 2001-08-27 Akim Demaille <akim@epita.fr>
870 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
872 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
874 * lib/Makefile.am: Adjust.
876 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
878 * src/bison.simple: Update and add '%%' directives.
880 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
882 * src/reader.c (reader): Remove calls to 'output_headers' and
883 'output_trailers'. Remove some C output.
884 (readgram): Disable a piece of code that was writing a default
885 definition for 'YYSTYPE'.
886 (reader_output_yylsp): Remove.
887 (packsymbols): Output token defintions to a macro.
888 (copy_definition): Disable C output.
890 * src/reader.c (parse_macro_decl): New function used to parse macro
892 (copy_string2): Put the body of copy_string into this new function.
893 Add a parameter to let the caller choose whether he wants to copy the
894 string delimiters or not.
895 (copy_string): Be a simple call to copy_string2 with the last argument
897 (read_declarations): Add case for macro definition.
898 (copy_identifier): New.
899 (parse_macro_decl): Read macro identifiers using copy_identifier
902 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
904 * src/output.c (prepare): Add prefixed names.
905 (output_parser): Output semantic actions.
906 (output_parser): Fix bug on '%%line' directives.
908 * src/output.c (output_headers): Remove. The C code printed by this
909 function should now be in the skeletons.
910 (output_trailers): Remove.
911 (output): Disable call to 'reader_output_yylsp'.
912 (output_rule_data): Do not output tables to the table obstack.
914 * src/output.c: Remove some C dedicated output.
915 Improve the use of macro and output obstacks.
916 (output_defines): Remove.
918 * src/output.c (output_token_translations): Associate 'translate'
919 table with a macro. No output to the table obstack.
920 (output_gram): Same for 'rhs' and 'prhs'.
921 (output_stos): Same for 'stos'.
922 (output_rule_data): Same for 'r1' and 'r2'.
923 (token_actions): Same for 'defact'.
924 (goto_actions): Same for 'defgoto'.
925 (output_base): Same for 'pact' and 'pgoto'.
926 (output_table): Same for 'table'.
927 (output_check): Same for 'check'.
929 * src/output.c (output_table_data): New function.
930 (output_short_table): Remove.
931 (output_short_or_char_table): Remove.
933 * src/output.c (output_parser): Replace most of the skeleton copy code
934 with something new. Skeletons are now processed character by character
935 rather than line by line, and Bison looks for '%%' macros. This is the
936 first step in making Bison's output process (a lot) more flexible.
937 (output_parser): Use the macro table.
939 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
941 * src/main.c (main): Initialize the macro table.
943 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
945 * src/lex.c (percent_table): Add tok_define.
946 * src/lex.h: Add tok_define.
948 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
950 * src/macrotab.c: New file.
951 * src/macrotab.h: New file.
952 * src/Makefile.am: Update.
954 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
956 * lib/hash.c: New file.
957 * lib/hash.h: New file.
958 * lib/Makefile.am: Update.
960 2001-08-15 Akim Demaille <akim@epita.fr>
964 2001-08-15 Marc Autret <autret_m@epita.fr>
966 * src/reader.c (readgram): Indent output macro YYSTYPE.
967 (packsymbols): Likewise.
968 (output_token_defines): Likewise.
969 * src/files.c: Standardize.
970 (compute_header_macro): New.
971 (defines_obstack_save): New. Use compute_header_macro.
972 (output_files): Update. Use defines_obstack_save.
974 2001-08-15 Akim Demaille <akim@epita.fr>
976 * doc/bison.texinfo (Table of Symbols): Document
979 2001-08-15 Akim Demaille <akim@epita.fr>
981 * missing: Update from CVS Automake.
982 * config/config.guess, config/config.sub, config/texinfo.tex:
985 2001-08-15 Akim Demaille <akim@epita.fr>
987 * Makefile.maint: Sync with CVS Autoconf.
989 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
991 * doc/bison.texinfo: Include GNU Free Documentation License from
993 * doc/fdl.texi: Add to package.
995 2001-08-14 Marc Autret <autret_m@epita.fr>
997 Turn on %{source,header}_extension features.
999 * src/lex.c (percent_table): Un-CPP out header_extension and
1001 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1002 (compute_exts_from_src): Remove conditions. It restores priorities
1005 2001-08-14 Marc Autret <autret_m@epita.fr>
1007 * src/files.c (compute_base_names): Add extensions computing when
1008 `--file-prefix' used.
1009 Standardize function calls.
1011 2001-08-13 Marc Autret <autret_m@epita.fr>
1013 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1014 defining it (defined but null disables alloca).
1016 2001-08-13 Marc Autret <autret_m@epita.fr>
1018 * src/bison.simple (_yy_memcpy): CPP reformat.
1020 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1022 * tests/atconfig.in (CPPFLAGS): Fix.
1024 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1026 * doc/bison.texinfo: Include GNU General Public License from
1028 * doc/gpl.texi: Add to package.
1030 2001-08-10 Marc Autret <autret_m@epita.fr>
1032 * src/print_graph.h: Fix.
1033 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1035 2001-08-10 Akim Demaille <akim@epita.fr>
1037 * src/system.h: Provide default declarations for stpcpy, strndup,
1040 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1042 * doc/bison.texinfo (Locations): Update @$ stuff.
1044 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1046 * src/bison.simple (YYLLOC_DEFAULT): Update.
1049 2001-08-08 Marc Autret <autret_m@epita.fr>
1051 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1052 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1053 Reported by Fabrice Bauzac.
1055 2001-08-08 Marc Autret <autret_m@epita.fr>
1057 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1058 * src/vcg.c (output_node): Fix.
1059 * src/vcg.h: Cleanup.
1060 * src/print_graph.c: Add comments.
1061 (node_output_size): New global variable. Simplify the formatting of
1062 the VCG graph output.
1063 (print_actions): Unused code is now used. It notifies the final state
1064 and no action states in the VCG graph. It also give the reduce actions.
1065 The `shift and goto' edges are red and the `go to state' edges are
1067 Get the current node name and node_obstack by argument.
1068 (node_obstack): New variable.
1069 (print_state): Manage node_obstack.
1070 (print_core): Use node_obstack given by argument.
1071 A node is not only computed here but in print_actions also.
1072 (print_graph): CPP out useless code instead of commenting it.
1074 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1076 * tests/atconfig.in (CPPFLAGS): Fix.
1078 2001-08-07 Akim Demaille <akim@epita.fr>
1080 * src/print_graph.c (quote): New.
1081 (print_core): Use it.
1083 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1085 * src/vcg.c (complain.h): Include it.
1086 Unepitaize `return' invocations.
1087 [NDEBUG] (main): Remove.
1088 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1089 * src/files.c (open_files): Initialize graph_obstack.
1090 * src/print_graph.c (print_actions): CPP out useless code.
1091 (print_core): Don't output the last `\n' in labels.
1093 * src/files.c (output_files): Output the VCG file.
1094 * src/main.c (main): Invoke print_graph ();
1096 2001-08-06 Marc Autret <autret_m@epita.fr>
1098 Automaton VCG graph output.
1099 Using option ``-g'' or long option ``--graph'', you can generate
1100 a gram_filename.vcg file containing a VCG description of the LALR (1)
1101 automaton of your grammar.
1103 * src/main.c: Call to print_graph() function.
1104 * src/getargs.h: Update.
1105 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1106 (graph_flag): New flag.
1108 (getargs): Add case `g'.
1109 * src/files.c (graph_obstack): New obstack struct.
1110 (open_files): Initialize new obstack.
1111 (output_files): Saves graph_obstack if required.
1112 * src/files.h (graph_obstack): New extern declaration.
1113 * src/Makefile.am: Add new source files.
1115 2001-08-06 Marc Autret <autret_m@epita.fr>
1117 * src/print_graph.c, src/print_graph.h (graph): New.
1118 * src/vcg.h: New file.
1119 * src/vcg.c: New file, VCG graph handling.
1121 2001-08-06 Marc Autret <autret_m@epita.fr>
1123 Add of %source_extension and %header_extension which specify
1124 the source or/and the header output file extension.
1126 * src/files.c (compute_base_names): Remove initialisation of
1127 src_extension and header_extension.
1128 (compute_exts_from_gf): Update.
1129 (compute_exts_from_src): Update.
1130 (output_files): Update.
1131 * src/reader.c (parse_header_extension_decl): New.
1132 (parse_source_extension_decl): New.
1133 (read_declarations): New case statements for the new tokens.
1134 * src/lex.c (percent_table): Add entries for %source_extension
1135 and %header_extension.
1136 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1138 2001-08-06 Marc Autret <autret_m@epita.fr>
1140 * configure.in: Bump to 1.28c.
1141 * doc/bison.texinfo: Texinfo thingies.
1143 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1145 * tests/atconfig.in (CPPFLAGS): Add.
1146 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1148 2001-08-03 Akim Demaille <akim@epita.fr>
1152 2001-08-03 Akim Demaille <akim@epita.fr>
1154 * tests/Makefile.am (check-local): Ship testsuite.
1155 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1158 2001-08-03 Akim Demaille <akim@epita.fr>
1160 * configure.in: Try using -Wformat when compiling.
1162 2001-08-03 Akim Demaille <akim@epita.fr>
1164 * configure.in: Bump to 1.28b.
1166 2001-08-03 Akim Demaille <akim@epita.fr>
1168 * src/complain.c: Adjust strerror_r portability issues.
1170 2001-08-03 Akim Demaille <akim@epita.fr>
1174 2001-08-03 Akim Demaille <akim@epita.fr>
1176 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1177 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1178 * src/getargs.c: Include complain.h.
1179 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1180 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1182 2001-08-03 Akim Demaille <akim@epita.fr>
1184 * src/reader.c (readgram): Display hidden chars in error messages.
1186 2001-08-03 Akim Demaille <akim@epita.fr>
1188 Update to gettext 0.10.39.
1190 2001-08-03 Akim Demaille <akim@epita.fr>
1192 * lib/strspn.c: New.
1194 2001-08-01 Marc Autret <autret_m@epita.fr>
1196 * doc/bison.texinfo: Update.
1197 * doc/bison.1 (mandoc): Update.
1198 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1199 * src/files.c: Support output files extensions computing.
1200 (src_extension): New static variable.
1201 (header_extension): New static variable.
1203 (get_extension_index): New function, gets the index of an extension
1204 filename in a string.
1205 (compute_exts_from_gf): New function, computes extensions from the
1206 grammar file extension.
1207 (compute_exts_from_src): New functions, computes extensions from the
1208 C source file extension, file given by ``-o'' option.
1209 (compute_base_names): Update.
1210 (output_files): Update.
1212 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1214 * doc/bison.texi: Document @$.
1215 (Locations): New section.
1217 2001-07-18 Akim Demaille <akim@epita.fr>
1219 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1220 * config/prev-version.txt, config/move-if-change: New.
1221 * Makefile.am: Adjust.
1223 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1225 * src/bison.simple (yyparse): Suppress warning `comparaison
1226 between signed and unsigned'.
1228 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1230 * src/getargs.h (raw_flag): Remove.
1231 * src/getargs.c: Die on `-r'/`--raw'.
1232 * src/lex.c (parse_percent_token): Die on `%raw'.
1233 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1234 * tests/calc.at: Suppress test with option `--raw'.
1236 2001-07-14 Akim Demaille <akim@epita.fr>
1239 * configure.in: Require Autoconf 2.50.
1240 Update to gettext 0.10.38.
1242 2001-03-16 Akim Demaille <akim@epita.fr>
1244 * doc/bison.texinfo: ANSIfy the examples.
1246 2001-03-16 Akim Demaille <akim@epita.fr>
1248 * getargs.c (skeleton): New variable.
1249 (longopts): --skeleton is a new option.
1250 (shortopts, getargs): -S is a new option.
1251 * getargs.h: Declare skeleton.
1252 * output.c (output_parser): Use it.
1254 2001-03-16 Akim Demaille <akim@epita.fr>
1256 * m4/strerror_r.m4: New.
1257 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1258 * lib/error.h, lib/error.c: Update.
1260 2001-03-16 Akim Demaille <akim@epita.fr>
1262 * src/getargs.c (longopts): Clean up.
1264 2001-02-21 Akim Demaille <akim@epita.fr>
1266 * src/reader.c (gensym): `gensym_count' is your own.
1267 Use a static buf to create the symbol name, as token_buffer is no
1270 2001-02-08 Akim Demaille <akim@epita.fr>
1272 * src/conflicts.c (conflict_report): Be sure not to append to res
1273 between two calls, which could happen if both first sprintf were
1274 skipped, but not the first cp += strlen.
1276 2001-02-08 Akim Demaille <akim@epita.fr>
1278 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1279 New, from fileutils 4.0.37.
1280 * configure.in: Require Autoconf 2.49c. I took some time before
1281 making this decision. This is the only way out for portability
1282 issues in Bison, it would mean way too much duplicate effort to
1283 import in Bison features implemented in 2.49c since 2.13.
1284 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1286 2001-02-02 Akim Demaille <akim@epita.fr>
1288 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1289 * lib/xalloc.h, lib/xmalloc.c: Update.
1291 2001-01-19 Akim Demaille <akim@epita.fr>
1293 Get rid of the ad hoc handling of token_buffer in the scanner: use
1296 * src/lex.c (token_obstack): New.
1297 (init_lex): Initialize it. No longer call...
1298 (grow_token_buffer): this. Remove it.
1299 Adjust all the places which used it to use the obstack.
1301 2001-01-19 Akim Demaille <akim@epita.fr>
1303 * src/lex.h: Rename all the tokens:
1304 s/\bENDFILE\b/tok_eof/g;
1305 s/\bIDENTIFIER\b/tok_identifier/g;
1307 Let them be enums, not #define, to ease debugging.
1308 Adjust all the code.
1310 2001-01-18 Akim Demaille <akim@epita.fr>
1312 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1313 * src/lex.c (maxtoken, grow_token_buffer): Static.
1315 2001-01-18 Akim Demaille <akim@epita.fr>
1317 Since we now use obstacks, more % directives can be enabled.
1319 * src/lex.c (percent_table): Also accept `%yacc',
1320 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1322 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1323 instead of returning a token.
1324 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1325 * src/reader.c (read_declarations): Adjust.
1326 * src/files.c (open_files): Don't call `compute_base_names', don't
1327 compute `attrsfile' since they depend upon data which might be
1328 *in* the input file now.
1329 (output_files): Do it here.
1330 * src/output.c (output_headers): Document the fact that this patch
1331 introduces a guaranteed SEGV for semantic parsers.
1332 * doc/bison.texinfo: Document them.
1333 * tests/suite.at: Exercise these %options.
1335 2000-12-20 Akim Demaille <akim@epita.fr>
1337 Also handle the output file (--verbose) with obstacks.
1339 * files.c (foutput): Remove.
1340 (output_obstack): New.
1341 Adjust all dependencies.
1342 * src/conflicts.c: Return a string.
1343 * src/system.h (obstack_grow_string): Rename as...
1344 (obstack_sgrow): this. Be ready to work with non literals.
1345 (obstack_fgrow4): New.
1347 2000-12-20 Akim Demaille <akim@epita.fr>
1349 * src/files.c (open_files): Fix the computation of short_base_name
1350 in the case of `-o foo.tab.c'.
1352 2000-12-20 Akim Demaille <akim@epita.fr>
1354 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1355 (copy_dollar): Now that everything uses obstacks, get rid of the
1358 2000-12-20 Akim Demaille <akim@epita.fr>
1360 * src/files.c (open_files): Actually the `.output' file is based
1361 on the short_base_name, not base_name.
1362 * tests/suite.at (Checking output file names): Adjust.
1364 2000-12-20 Akim Demaille <akim@epita.fr>
1366 * src/bison.s1: Remove, we now use directly...
1367 * src/bison.simple: this.
1368 * src/Makefile.am: Use pkgdata instead of data.
1370 2000-12-20 Akim Demaille <akim@epita.fr>
1372 * src/files.c (guard_obstack): New.
1373 (open_files): Initialize it.
1374 (output_files): Dump it...
1375 * src/files.h: Export it.
1376 * src/reader.c (copy_guard): Use it.
1378 2000-12-19 Akim Demaille <akim@epita.fr>
1380 * src/files.c (outfile, defsfile, actfile): Removed as global
1382 (open_files): Don't compute them.
1383 (output_files): Adjust.
1384 (base_name, short_base_name): Be global.
1385 Adjust dependencies.
1387 2000-12-19 Akim Demaille <akim@epita.fr>
1389 * src/files.c (strsuffix): New.
1390 (stringappend): Be just like strcat but allocate.
1391 (base_names): Eve out from open_files.
1392 Try to simplify the rather hairy computation of base_name and
1394 (open_files): Use it.
1395 * tests/suite.at (Checking output file names): New test.
1397 2000-12-19 Akim Demaille <akim@epita.fr>
1399 * src/system.h (obstack_grow_literal_string): Rename as...
1400 (obstack_grow_string): this.
1401 * src/output.c (output_parser): Recognize `%% actions' instead of
1403 * src/bison.s1: s/$/%% actions/.
1404 * src/bison.hairy: Likewise.
1406 2000-12-19 Akim Demaille <akim@epita.fr>
1408 * src/output.c (output_parser): Compute the `#line' lines when
1410 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1411 Suggested by Hans Aberg.
1413 2000-12-19 Akim Demaille <akim@epita.fr>
1415 Let the handling of the skeleton files be local to the procedures
1418 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1420 (fparser, open_extra_files): Remove.
1421 (open_files, output_files): Don't take care of fparser.
1422 * src/files.h: Adjust.
1423 * src/output.c (output_parser): Open and close the file to the
1425 * src/reader.c (read_declarations): When %semantic_parser, open
1428 2000-12-19 Akim Demaille <akim@epita.fr>
1430 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1431 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1433 2000-12-19 Akim Demaille <akim@epita.fr>
1435 * src/files.c (open_files): Yipee! We no longer need all the code
1436 looking for `/tmp' since we have no tmp file.
1438 2000-12-19 Akim Demaille <akim@epita.fr>
1440 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1442 * src/files.c (open_files): Less dependency on MSDOS etc.
1444 2000-12-14 Akim Demaille <akim@epita.fr>
1446 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1447 Provide a default definition.
1448 Use it when executing the default @ action.
1449 * src/reader.c (reader_output_yylsp): No longer include
1450 `timestamp' and `text' in the default YYLTYPE.
1452 2000-12-12 Akim Demaille <akim@epita.fr>
1454 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1455 (copy_guard): Quote the file names.
1456 Reported by Laurent Mascherpa.
1458 2000-12-12 Akim Demaille <akim@epita.fr>
1460 * src/output.c (output_headers, output_program, output): Be sure
1461 to escape special characters when outputting filenames.
1462 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1463 (output_headers): Don't depend on them, Use ACTSTR.
1465 2000-11-17 Akim Demaille <akim@epita.fr>
1467 * lib/obstack.h: Formatting changes.
1468 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1469 prevents type checking.
1470 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1471 cast the value to (void *): assigning a `foo *' to a `void *'
1473 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1474 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1477 2000-11-17 Akim Demaille <akim@epita.fr>
1479 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1481 (suite.m4, regression.m4, calc.m4): these.
1482 * tests/atgeneral.m4: Update from CVS Autoconf.
1484 2000-11-17 Akim Demaille <akim@epita.fr>
1486 * tests/regression.m4 (%union and --defines): New test,
1487 demonstrating a current bug in the obstack implementation.
1489 2000-11-17 Akim Demaille <akim@epita.fr>
1491 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1493 Use them to declare the variables which are global or local to
1496 2000-11-17 Akim Demaille <akim@epita.fr>
1498 * acconfig.h: Remove, no longer used.
1500 2000-11-07 Akim Demaille <akim@epita.fr>
1502 * src: s/Copyright (C)/Copyright/g.
1504 2000-11-07 Akim Demaille <akim@epita.fr>
1506 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1508 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1510 2000-11-07 Akim Demaille <akim@epita.fr>
1512 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1513 Merge in a single CPP if/else.
1515 2000-11-07 Akim Demaille <akim@epita.fr>
1517 * src/output.c (output): Remove useless variables.
1518 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1519 argument `data' for consistency with the prototypes.
1521 (obstack_copy, obstack_copy0): Rename the second argument as
1522 `address' for consistency. Qualify it `const'.
1523 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1524 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1525 `const' their input argument (`data' or `address').
1526 Adjust the corresponding macros to include `const' in casts.
1528 2000-11-03 Akim Demaille <akim@epita.fr>
1530 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1531 s/PFILE1/BISON_HAIRY/.
1532 Adjust dependencies.
1534 2000-11-03 Akim Demaille <akim@epita.fr>
1536 For some reason, this was not applied.
1538 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1539 `unlink': it's no longer used.
1541 2000-11-03 Akim Demaille <akim@epita.fr>
1543 * src/files.c (skeleton_find): New function, eved out of...
1544 (open_files, open_extra_files): here.
1546 2000-11-03 Akim Demaille <akim@epita.fr>
1550 * src/files.c (obstack_save): New function.
1551 (done): Rename as...
1552 (output_files): this.
1554 * src/main.c (main): Don't use `atexit' to register `done', since
1555 it no longer has to remove tmp files, just call `output_files'
1556 when there are no errors.
1558 2000-11-02 Akim Demaille <akim@epita.fr>
1560 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1561 `unlink': it's no longer used.
1562 * src/files.h: Formatting changes.
1564 2000-11-02 Akim Demaille <akim@epita.fr>
1566 Remove the last uses of mktemp and unlink/delete.
1568 * src/files.c (fdefines, ftable): Removed.
1569 (defines_ostack, table_obstack): New.
1570 Adjust dependencies of the former into uses of the latter.
1571 * src/output.c (output_short_or_char_table, output_short_table):
1572 Convert to using obstacks.
1573 * src/reader.c (copy_comment2): Accept one FILE * and two
1575 (output_token_defines, reader_output_yylsp): Use obstacks.
1576 * src/system.h (obstack_fgrow3): New.
1578 2000-11-01 Akim Demaille <akim@epita.fr>
1580 Change each use of `fattrs' into a use of `attrs_obstack'.
1582 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1583 * src/files.c (fattrs): Remove.
1584 (attrs_obstack): New.
1585 Adjust all dependencies.
1586 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1588 2000-11-01 Akim Demaille <akim@epita.fr>
1591 Change each use of `faction' into a use of `action_obstack'.
1593 * lib/obstack.h, lib/obstack.c: New files.
1594 * src/files.c (faction): Remove.
1595 (action_obstack): New.
1596 Adjust all dependencies.
1598 2000-10-20 Akim Demaille <akim@epita.fr>
1600 * lib/quote.h (PARAMS): New macro. Use it.
1602 2000-10-16 Akim Demaille <akim@epita.fr>
1604 * src/output.c (output_short_or_char_table): New function.
1605 (output_short_table, output_token_translations): Use it.
1606 (goto_actions): Use output_short_table.
1608 2000-10-16 Akim Demaille <akim@epita.fr>
1610 * src/symtab.c (bucket_new): New function.
1613 * src/output.c (output_short_table): New argument to display the
1614 comment associated with the table.
1615 Adjust dependencies.
1616 (output_gram): Use it.
1617 (output_rule_data): Nicer output layout for YYTNAME.
1619 2000-10-16 Akim Demaille <akim@epita.fr>
1621 * src/lex.c (read_typename): New function.
1623 * src/reader.c (copy_dollar): Likewise.
1625 2000-10-16 Akim Demaille <akim@epita.fr>
1627 * src/reader.c (copy_comment2): Expect the input stream to be on
1628 the `/' which is suspected to open a comment, instead of being
1629 called after `//' or `/*' was read.
1630 (copy_comment, copy_definition, parse_union_decl, copy_action)
1631 (copy_guard): Adjust.
1633 2000-10-16 Akim Demaille <akim@epita.fr>
1635 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1636 `read_signed_integer'.
1638 2000-10-16 Akim Demaille <akim@epita.fr>
1640 * src/reader.c (copy_dollar): New function.
1641 (copy_guard, copy_action): Use it.
1643 2000-10-16 Akim Demaille <akim@epita.fr>
1645 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1646 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1647 New files, from Fileutils 4.0.27.
1648 * src/main.c (printable_version): Remove.
1649 * src/lex.c, src/reader.c: Use `quote'.
1651 2000-10-04 Akim Demaille <akim@epita.fr>
1653 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1655 2000-10-04 Akim Demaille <akim@epita.fr>
1657 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1659 2000-10-04 Akim Demaille <akim@epita.fr>
1661 When a literal string is used to define two different tokens,
1662 `bison -v' segfaults.
1663 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1665 * tests/regression.m4: New file.
1666 Include the core of the sample provided by Piotr Gackiewicz.
1667 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1670 2000-10-04 Akim Demaille <akim@epita.fr>
1672 * src/reader.c (parse_expect_decl): Keep `count' within the size
1676 2000-10-02 Paul Eggert <eggert@twinsun.com>
1678 * bison.s1 (yyparse): Assign the default value
1679 unconditionally, to avoid a GCC warning and make the parser a
1682 2000-10-02 Akim Demaille <akim@epita.fr>
1684 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1687 2000-10-02 Akim Demaille <akim@epita.fr>
1689 * src/derives.c, src/print.c, src/reduce.c: To ease the
1690 translation, move some `\n' out of the translated strings.
1692 2000-10-02 Akim Demaille <akim@epita.fr>
1694 The location tracking mechanism is precious for parse error
1695 messages. Nevertheless, it is enabled only when `@n' is used in
1696 the grammar, which is a different issue (you can use it in error
1697 message, but not in the grammar per se). Therefore, there should
1698 be another means to enable it.
1700 * src/getargs.c (getargs): Support `--locations'.
1702 * src/getargs.h (locationsflag): Export it.
1703 * src/lex.c (percent_table): Support `%locations'.
1704 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1705 with `locationsflag'.
1706 * doc/bison.texinfo: Document `--locations' and `%locations'.
1708 * tests/calc.m4: Test it.
1710 For regularity of the names, replace each
1711 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1712 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1713 In addition replace each `flag' with `_flag'.
1715 2000-10-02 Akim Demaille <akim@epita.fr>
1717 Also test parse error messages, including with YYERROR_VERBOSE.
1719 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1721 Use it to check the computations.
1722 Use it to check `nonassoc' is honored.
1723 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1724 `--yyerror-verbose'.
1725 (_AT_CHECK_CALC): Adjust to this option.
1726 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1728 2000-10-02 Akim Demaille <akim@epita.fr>
1730 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1731 the latter demonstrates a flaw in the handling of non debugging
1732 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1733 was used in order to simplify:
1749 unfortunately this leads to a CPP conflict when
1750 `--name-prefix=foo' is used since it produces `#define yydebug
1753 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1754 (YYDPRINTF): New macro.
1756 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1758 Also test `--verbose', `--defines' and `--name-prefix'.
1760 2000-10-02 Akim Demaille <akim@epita.fr>
1762 Improve the readability of the produced parsers.
1764 * src/bison.s1: Formatting changes.
1765 Improve the comment related to the `$' mark.
1766 (yydefault): Don't fall through to `yyresume': `goto' there.
1767 * src/output.c (output_parser): When the `$' is met, skip the end
1769 New variable, `number_of_dollar_signs', to check there's exactly
1770 one `$' in the parser skeleton.
1772 2000-10-02 Akim Demaille <akim@epita.fr>
1774 * lib/xstrdup.c: New file, from the fileutils.
1775 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1776 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1777 instead of strlen + xmalloc + strcpy.
1778 * src/symtab.c (copys): Remove, use xstrdup instead.
1780 2000-10-02 Akim Demaille <akim@epita.fr>
1782 * src/gram.h (associativity): New enum type which replaces the
1783 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1784 `right_assoc', `left_assoc' and `non_assoc'.
1785 Adjust all dependencies.
1786 * src/reader.c: Formatting changes.
1787 (LTYPESTR): Don't define it, use it as a literal in
1788 `reader_output_yylsp'.
1789 * src/symtab.h (symbol_class): New enum type which replaces the
1790 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1791 `sunknown', `stoken and `snterm'.
1793 2000-10-02 Akim Demaille <akim@epita.fr>
1795 * src/getargs.c (fixed_outfiles): Rename as...
1796 (yaccflag): for consistency and accuracy.
1797 Adjust dependencies.
1799 2000-10-02 Akim Demaille <akim@epita.fr>
1801 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1802 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1803 difficult and introduced a lot of core dump. It turns out that
1804 Bison used an implementation of `xmalloc' based on `calloc', and
1805 at various places it does depend upon the initialization to 0. I
1806 have not tried to isolate the pertinent places, and all the former
1807 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1808 someone should address this issue.
1810 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1811 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1813 Adjust dependencies.
1814 * src/warshall.h: New file.
1817 2000-10-02 Akim Demaille <akim@epita.fr>
1819 Various anti-`extern in *.c' changes.
1821 * src/system.h: Include `assert.h'.
1823 2000-10-02 Akim Demaille <akim@epita.fr>
1825 * src/state.h (nstates, final_state, first_state, first_shift)
1826 (first_reduction): Move their exportation from here...
1827 * src/LR0.h: to here.
1828 Adjust dependencies.
1829 * src/getargs.c (statisticsflag): New variable.
1830 Add support for `--statistics'.
1831 Adjust dependencies.
1833 Remove a lot of now useless `extern' statements in most files.
1835 2000-10-02 Akim Demaille <akim@epita.fr>
1837 * src/LR0.h: New file.
1840 2000-10-02 Akim Demaille <akim@epita.fr>
1842 * src/print.h: New file.
1844 * src/print.c: Formatting and ordering changes.
1845 (verbose, terse): Replace with...
1846 (print_results): this new function.
1847 Adjust dependencies.
1849 2000-10-02 Akim Demaille <akim@epita.fr>
1851 * src/conflicts.c (conflict_report): New function.
1852 (conflict_log, verbose_conflict_log): Replace with...
1853 (print_conflicts): this function.
1854 Adjust dependencies.
1855 * src/conflicts.h: New file.
1856 Propagate its inclusion.
1858 2000-10-02 Akim Demaille <akim@epita.fr>
1860 * src/nullable.h: New file.
1861 Propagate its inclusion.
1862 * src/nullable.c: Formatting changes.
1864 2000-10-02 Akim Demaille <akim@epita.fr>
1866 * src/reduce.h: New file.
1867 Propagate its inclusion.
1868 * src/reduce.c: Topological sort and other formatting changes.
1869 (bool, TRUE, FALSE): Move their definition to...
1870 * src/system.h: here.
1872 2000-10-02 Akim Demaille <akim@epita.fr>
1874 * src/files.c: Formatting changes.
1875 (tryopen, tryclose, openfiles): Rename as...
1876 (xfopen, xfclose, open_files): this.
1877 (stringappend): static.
1878 * src/files.h: Complete the list of exported symbols.
1881 2000-10-02 Akim Demaille <akim@epita.fr>
1883 * src/reader.h: New file.
1884 Propagate its use instead of tedious list of `extern' and
1886 * src/reader.c: Formatting changes, topological sort,
1889 2000-10-02 Akim Demaille <akim@epita.fr>
1891 * src/lex.h: Prototype `lex.c' exported functions.
1892 * src/reader.c: Adjust.
1893 * src/lex.c: Formatting changes.
1894 (safegetc): Rename as...
1897 2000-10-02 Akim Demaille <akim@epita.fr>
1899 * src/lalr.h: New file.
1900 Propagate its inclusion instead of prototypes and `extern'.
1901 * src/lalr.c: Formatting changes, topological sorting etc.
1903 2000-10-02 Akim Demaille <akim@epita.fr>
1905 * src/output.c (token_actions): Introduce a temporary array,
1906 YYDEFACT, that makes it possible for this function to use
1909 2000-10-02 Akim Demaille <akim@epita.fr>
1911 `user_toknums' is output as a `short[]' in `output.c', while it is
1912 defined as a `int[]' in `reader.c'. For consistency with the
1913 other output tables, `user_toknums' is now defined as a table of
1916 * src/reader.c (user_toknums): Be a short table instead of an int
1918 Adjust dependencies.
1920 Factor the short table outputs.
1922 * src/output.c (output_short_table): New function.
1923 * src/output.c (output_gram, output_stos, output_rule_data)
1924 (output_base, output_table, output_check): Use it.
1926 2000-10-02 Akim Demaille <akim@epita.fr>
1928 * src/output.c (output): Topological sort of the functions, in
1929 order to get rid of the `static' prototypes.
1930 No longer use `register'.
1931 * src/output.h: New file.
1932 Propagate its inclusion in files explicitly prototyping functions
1935 2000-09-21 Akim Demaille <akim@epita.fr>
1937 * src/atgeneral.m4: Update from Autoconf.
1939 2000-09-21 Akim Demaille <akim@epita.fr>
1941 * src/closure.h: New file.
1942 * src/closure.c: Formatting changes, topological sort over the
1943 functions, use of closure.h.
1944 (initialize_closure, finalize_closure): Rename as...
1945 (new_closure, free_closure): these. Adjust dependencies.
1946 * src/LR0.c: Formatting changes, topological sort, use of
1948 (initialize_states): Rename as...
1950 * src/Makefile.am (noinst_HEADERS): Adjust.
1952 2000-09-20 Akim Demaille <akim@epita.fr>
1954 * src/acconfig.h: Don't protect config.h against multiple
1956 Don't define PARAMS.
1957 * src/system.h: Define PARAMS.
1958 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1959 purpose of config.h. system.h must not try to fix wrong
1960 definitions in config.h.
1962 2000-09-20 Akim Demaille <akim@epita.fr>
1964 * src/derives.h: New file.
1965 * src/main.c, src/derives.h: Use it.
1967 * src/Makefile.am (noinst_HEADERS): Adjust.
1969 2000-09-20 Akim Demaille <akim@epita.fr>
1971 * tests/atgeneral.m4: Update from Autoconf.
1972 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1973 (AT_CHECK_CALC): New macros.
1974 Use these macros to test bison with options `', `--raw',
1975 `--debug', `--yacc', `--yacc --debug'.
1977 2000-09-19 Akim Demaille <akim@epita.fr>
1979 * src/output.c: Formatting changes.
1980 * src/machine.h: Remove, leaving its contents in...
1981 * src/system.h: here.
1983 Adjust all dependencies on stdio.h and machine.h.
1984 * src/getargs.h: New file.
1985 Let all `extern' declarations about getargs.c be replaced with
1986 inclusion of `getargs.h'.
1987 * src/Makefile.am (noinst_HEADERS): Adjust.
1989 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1991 (yyerror): Returns void, not int.
1992 * doc/bison.texinfo: Formatting changes.
1994 2000-09-19 Akim Demaille <akim@epita.fr>
1996 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1999 2000-09-18 Akim Demaille <akim@epita.fr>
2001 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2002 * src/Makefile.am (INCLUDES): Don't.
2003 Be ready to fetch headers in lib/.
2005 2000-09-18 Akim Demaille <akim@epita.fr>
2007 * doc/bison.texinfo: Update the copyright.
2008 ANSIfy and GNUify the examples.
2009 Remove the old menu.
2011 2000-09-18 Akim Demaille <akim@epita.fr>
2013 First set of tests: use the `calc' example from the documentation.
2015 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2016 is defined only when YYDEBUG is.
2017 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2018 * src/files.c (tryopen, tryclose): Formatting changes.
2019 Move to the top and be static.
2020 * src/reader.c (read_signed_integer): Likewise.
2021 * tests/calc.m4: New file.
2022 * Makefile.am, suite.m4: Adjust.
2023 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2025 2000-09-18 Akim Demaille <akim@epita.fr>
2027 Add support for an Autotest test suite for Bison.
2029 * m4/m4.m4, m4/atconfig.m4: New files.
2030 * m4/Makefile.am (EXTRA_DIST): Adjust.
2031 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2033 * src/getargs.c: Display a more standard --version message.
2034 * src/reader.c (reader): Formatting changes.
2035 No longer depend upon VERSION_STRING.
2036 * configure.in: No longer use `dnl'.
2037 Set up the test suite and the new directory `tests/.
2038 (VERSION_STRING): Remove.
2040 2000-04-14 Akim Demaille <akim@epita.fr>
2042 * src/reader.c (copy_comment2): New function, same as former
2043 `copy_comment', but outputs into two FILE *.
2044 (copy_comment): Use it.
2045 (parse_union_decl): Use it.
2046 (get_type, parse_start_decl): Use the same `invalid' message.
2047 (parse_start_decl, parse_union_decl): Use the same `multiple'
2049 (parse_union_decl, copy_guard, copy_action): Use the same
2050 `unmatched' message.
2051 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2053 2000-03-31 Akim Demaille <akim@epita.fr>
2055 * src/files.c (tryopen, tryclose): Move to the top.
2058 2000-03-31 Akim Demaille <akim@epita.fr>
2060 * src/main.c (main): Don't call `done', exit does it.
2062 2000-03-31 Akim Demaille <akim@epita.fr>
2064 * allocate.c: s/return (foo)/return foo/.
2067 * output.c: Likewise.
2068 * reader.c: Likewise.
2069 * symtab.c: Likewise.
2070 * vmsgetargs.c: Likewise.
2072 2000-03-31 Akim Demaille <akim@epita.fr>
2074 Clean up the error reporting functions.
2076 * src/report.c: New file.
2077 * src/report.h: Likewise.
2078 * src/Makefile.am: Adjust.
2079 * m4/error.m4: New file.
2080 * m4/Makefile.am: Adjust.
2081 * configure.in (jm_PREREQ_ERROR): Call it.
2082 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2084 (fatal, fatals): Remove. All callers use complain.c::fatal.
2085 (warn, warni, warns, warnss, warnss): Remove. All callers use
2086 complain.c::complain.
2087 (toomany): Remove, use fatal instead.
2088 * src/files.c (done): No argument, use complain_message_count.
2089 * src/main.c (main): Register `done' to `atexit'.
2091 * src/getargs.c (usage): More `fputs', less `fprintf'.
2093 2000-03-28 Akim Demaille <akim@epita.fr>
2095 * lib/: New directory.
2096 * Makefile.am (SUBDIRS): Adjust.
2097 * configure.in: Adjust.
2098 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2100 * src/alloca.c: Moved to lib/.
2101 * src/getopt.c: Likewise.
2102 * src/getopt1.c: Likewise.
2103 * src/getopt.h: Likewise.
2104 * src/ansi2knr.c: Likewise.
2105 * src/ansi2knr.1: Likewise.
2106 * src/Makefile.am: Adjust.
2107 * lib/Makefile.am: New file.
2109 2000-03-28 Akim Demaille <akim@epita.fr>
2111 * src/getargs.c (usage): Refresh the help message.
2113 2000-03-17 Akim Demaille <akim@epita.fr>
2115 * src/getopt1.c: Updated from textutils 2.0e
2116 * src/getopt.c: Likewise.
2117 * src/getopt.h: Likewise.
2119 2000-03-17 Akim Demaille <akim@epita.fr>
2121 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2122 the file name, not the whole `#line LINE FILE'.
2124 2000-03-17 Akim Demaille <akim@epita.fr>
2126 On syntax errors, report the token on which we choked.
2128 * src/bison.s1 (yyparse): In the label yyerrlab, when
2129 YYERROR_VERBOSE, add yychar in msg.
2131 2000-03-17 Akim Demaille <akim@epita.fr>
2133 * src/reader.c (copy_at): New function.
2134 (copy_guard): Use it.
2135 (copy_action): Use it.
2137 2000-03-17 Akim Demaille <akim@epita.fr>
2139 Be kind to translators, save some useless translations.
2141 * src/main.c (banner): New function.
2142 (fatal_banner): Use it.
2143 (warn_banner): Use it.
2145 2000-03-17 Akim Demaille <akim@epita.fr>
2147 * src/reader.c (copy_definition): Use copy_string and
2148 copy_comment. Removed now unused `match', `ended',
2150 (copy_comment, copy_string): Moved, to be visible from
2153 2000-03-17 Akim Demaille <akim@epita.fr>
2155 * src/reader.c (copy_string): Declare `static inline'. No
2156 problems with inline, since it is checked by configure.
2157 (copy_comment): Likewise.
2159 2000-03-17 Akim Demaille <akim@epita.fr>
2161 * src/reader.c (packsymbols): Formatting changes.
2163 2000-03-17 Akim Demaille <akim@epita.fr>
2165 * src/reader.c (copy_comment): New function, factored out from:
2166 (copy_action): Use it. Removed now unused `match', `ended',
2168 (copy_guard): Likewise.
2170 2000-03-17 Akim Demaille <akim@epita.fr>
2172 * src/reader.c (copy_string): New function, factored out from:
2173 (copy_action): Use it.
2174 (copy_guard): Likewise.
2176 2000-03-17 Akim Demaille <akim@epita.fr>
2178 Change the handling of @s so that they behave exactly like $s.
2179 There is now a pseudo variable @$ (readble and writable), location
2180 of the lhs of the rule (by default ranging from the location of
2181 the first symbol of the rhs, to the location of the last symbol,
2182 or, if the rhs is empty, YYLLOC).
2184 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2186 (yyparse): When providing a default semantic action, provide a
2187 default location action.
2188 (after the $): No longer change `*YYLSP', just stack YYLOC the
2189 same way you stack YYVAL.
2190 * src/reader.c (read_declarations): Use warns.
2191 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2192 (copy_action, case '@'): Likewise.
2193 Use a standard error message, to save useless work from
2196 2000-03-17 Akim Demaille <akim@epita.fr>
2198 * src/bison.s1: Formatting and cosmetics changes.
2199 * src/reader.c: Likewise.
2200 Update the Copyright notice.
2202 2000-03-17 Akim Demaille <akim@epita.fr>
2204 * src/bison.s1 (#line): All set to `#line' only, since the
2205 Makefile now handles them.
2207 2000-03-16 Akim Demaille <akim@epita.fr>
2209 * src/output.c (output_rule_data): Output the documentation of
2211 (Copyright notice): Update.
2214 2000-03-16 Akim Demaille <akim@epita.fr>
2216 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2217 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2218 One `#if YYDEBUG' remains, since it uses variables which are
2219 defined only if `YYDEBUG != 0'.
2221 2000-03-16 Akim Demaille <akim@epita.fr>
2223 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2224 and related variables so that the similarities are highlighted.
2226 2000-03-16 Akim Demaille <akim@epita.fr>
2228 * src/bison.s1: Properly indent CPP directives.
2230 2000-03-16 Akim Demaille <akim@epita.fr>
2232 * src/bison.s1: Properly indent the `alloca' CPP section.
2234 2000-03-16 Akim Demaille <akim@epita.fr>
2236 Do not hard code values of directories in `configure.in'.
2237 Update the `configure' tool chain.
2239 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2241 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2242 (AC_OUTPUT): Add m4/Makefile.
2243 Bump to bison 1.28a, 1.29 has never been released.
2244 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2245 handled via src/Makefile.am.
2246 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2247 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2249 * Makefile.am (SUBDIRS): Add m4.
2250 (ACLOCAL_AM_FLAGS): New variable.
2251 (AUTOMAKE_OPTIONS): Add check-news.
2252 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2253 the proper line number and file name.
2254 (DEFS): Propagate the location of bison library files and of the
2256 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2258 * acinclude.m4: Remove, replaced by the directory m4.
2259 * m4/Makefile.am (EXTRA_DIST): New variable.
2260 * m4/gettext.m4: New file, from the fileutils.
2261 * m4/lcmessage.m4: Likewise
2262 * m4/progtest.m4: Likewise.
2263 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2265 2000-03-10 Akim Demaille <akim@epita.fr>
2268 Formatting changes of various comments.
2269 Respect the GNU coding standards at various places.
2270 Don't use `_()' when no translation is needed.
2272 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2275 OS/2 honors TMPDIR environment variable.
2277 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2279 * doc/bison.texinfo: Tweaked spelling and grammar.
2281 Removed reference to price of printed copy.
2282 Mention BISON_SIMPLE and BISON_HAIRY.
2284 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2286 * configure.in, NEWS:
2287 Bison 1.29 released.
2289 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2291 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2292 Added reference card.
2294 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2296 * po/ru.po: Added Russian translation.
2298 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2300 * configure.in: Added Russian translation.
2302 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2304 * configure.in, NEWS, README:
2305 Released version 1.28.
2307 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2310 Squashed redefinition warning on some systems.
2312 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2313 Have configure build version string instead of relying on ANSI string
2316 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2318 * po/POTFILES.in: Got rid of version.c.
2320 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2322 * acconfig.h, configure.in:
2323 Have configure build version string instead of relying on ANSI string
2326 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2329 Dropped mention of `+' for long-named options.
2331 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2333 * src/files.c: Added <unistd.h> for unlink().
2335 * src/Makefile.am, src/system.h:
2338 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2340 * README: Added a FAQ list.
2342 * configure.in, acconfig.h:
2345 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2347 * doc/FAQ, doc/Makefile.am:
2350 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2352 * src/alloc.h, src/symtab.h, src/version.c:
2353 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2355 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2357 * src/.cvsignore, src/Makefile.am:
2358 Reorganized: sources in `src', documentation in `doc'.
2360 * src/lex.c (literalchar):
2361 fixed the code for escaping double quotes (thanks
2364 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2366 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2367 Adjusted paths to reflect directory reorganization.
2369 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2371 * doc/.cvsignore, doc/Makefile.am:
2372 Reorganized: sources in `src', documentation in `doc'.
2374 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2377 Updated AC_INIT file to reflect directory reorganization.
2379 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2380 Reorganized: sources in `src', documentation in `doc'.
2382 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2385 Don't declare calloc() and realloc() if not necessary.
2387 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2389 * configure.in, acconfig.h, acinclude.m4:
2390 Don't declare calloc() and realloc() if not necessary.
2392 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2394 * po/.cvsignore: Added i18n support.
2396 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2398 * acconfig.h, configure.in, Makefile.am:
2401 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2403 * src/bison.s1: Fixed #line numbers.
2405 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2407 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2408 Added PO files from Translation Project.
2410 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2413 Added support for non-ANSI compilers (ansi2knr).
2415 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2417 * configure.in: Bumped version number to 1.27.
2420 Added `bison.simple' to list of files removed by `make distclean'.
2422 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2424 * src/files.c, src/files.h:
2425 Defined locations of parser files in config.h instead of Makefile.
2427 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2429 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2430 Defined locations of parser files in config.h instead of Makefile.
2432 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2435 Removed inappropriate use of $< macro.
2437 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2439 * po/Makefile.in.in, po/POTFILES.in:
2440 Add `po' directory skeleton.
2442 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2444 * README: Document help-bison list.
2446 * configure.in: Add check for mkstemp().
2448 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2450 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2451 Hush a few compiler warnings.
2454 Add tryclose(), which verifies that fclose was successful.
2455 Hush a couple of compiler warnings.
2457 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2459 * Makefile.am, OChangeLog:
2460 ChangeLog is now automatically generated. Include the old version as
2463 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2465 * 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:
2468 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2470 * doc/bison.texinfo: Fix formatting glitch.
2472 * doc/bison.texinfo: Update FSF address.
2474 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2476 * acconfig.h: Update FSF address.
2478 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2481 Don't define PACKAGE here, since config.h defines it.
2483 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2485 * src/reader.c: Update copyright date.
2488 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2489 favor of output directly to stderr (avoids buffer overruns).
2491 * src/reader.c: Some checks for premature EOF.
2493 * 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:
2494 Use prototypes if the compiler understands them.
2496 * src/files.c: Honor TMPDIR on Unix hosts.
2497 Use prototypes if the compiler understands them.
2500 Fix a couple of buffer overrun bugs.
2501 Use prototypes if the compiler understands them.
2503 * src/system.h: Include unistd.h and ctype.h.
2504 Use #ifdef instead of #if for NLS symbols.
2506 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2508 * doc/bison.texinfo:
2509 Delete comment "consider using @set for edition number, etc..." since
2510 we now are doing so.
2512 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2515 Use prototypes if the compiler understands them.
2517 * NEWS: Document 1.26 highlights.
2519 * Makefile.am: Require Automake 1.3 or later.
2522 Use prototypes if the compiler understands them.
2524 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2527 Use VERSION symbol from automake for version number.
2529 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2531 * acconfig.h, configure.in, version.cin:
2532 Use VERSION symbol from automake for version number.
2534 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2537 Distribute original version of simple parser (bison.s1), not built
2538 version (bison.simple).
2540 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2542 * doc/bison.texinfo: Add info dir entry.
2544 * doc/bison.texinfo:
2545 Let automake put version number into documentation.
2547 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2549 * src/bison.cld, src/build.com, src/vmshlp.mar:
2550 Add non-RCS files from /gd/gnu/bison.
2552 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2555 Document the BISON_HAIRY and BISON_SIMPLE variables.
2557 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2559 * src/version.c: Build version.c automatically.
2562 Fix token numbering (used to start at 258, not 257).
2564 * src/system.h: Include config.h.
2566 * src/getargs.c: Update bug report address.
2568 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2569 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2571 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2574 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2576 * configure.in, version.cin:
2577 Build version.c automatically.
2579 * AUTHORS: Add AUTHORS file.
2581 * README: Update bug report address.
2584 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2586 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2589 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2591 * doc/bison.texinfo: Clean up some formatting.
2593 1998-05-05 Richard Stallman <rms@gnu.org>
2595 * doc/bison.texinfo:
2596 Explain better why to make a pure parser.
2598 1998-01-05 Richard Stallman <rms@gnu.org>
2600 * src/files.c (openfiles):
2601 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2602 find a temporary directory, if possible. Do not unlink files while
2605 1997-08-25 Richard Stallman <rms@gnu.org>
2607 * src/reader.c (stack_offset;):
2608 Change some warni to warns.
2610 * src/lex.c (literalchar): Use warns, not warni.
2612 1997-06-28 Richard Stallman <rms@gnu.org>
2614 * src/bison.s1: Add a Bison version comment.
2616 * src/main.c (fatal, warn, berror):
2619 1997-06-28 Richard Stallman <rms@gnu.org>
2621 * Makefile.in (bison_version): New variable.
2622 (dist): Use that variable.
2623 (bison.s1): Substitute the Bison version into bison.simple.
2625 * bison.simple: Add a Bison version comment.
2627 1997-06-18 Richard Stallman <rms@gnu.org>
2629 * src/main.c (fatal, warn, berror):
2630 Make error messages standard.
2631 (toomany): Improve error message text.
2633 * 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:
2634 new.h renamed to alloc.h.
2636 1997-06-18 Richard Stallman <rms@gnu.org>
2638 * Makefile.in: new.h renamed to alloc.h.
2640 1997-05-24 Richard Stallman <rms@gnu.org>
2642 * src/lex.c (literalchar):
2643 Fix the code for escaping \, " and '.
2645 (lex): Avoid trouble when there are many chars
2646 to discard in a char literal with just several chars in it.
2648 1997-05-17 Richard Stallman <rms@gnu.org>
2651 Use malloc, if using alloca is troublesome.
2652 (YYSTACK_USE_ALLOCA): New flag macro.
2653 Define it for some systems and compilers.
2654 (YYSTACK_ALLOC): New macro.
2655 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2656 If it was malloc'd, free it.
2658 1997-05-17 Richard Stallman <rms@gnu.org>
2661 Use malloc, if using alloca is troublesome.
2662 (YYSTACK_USE_ALLOCA): New flag macro.
2663 Define it for some systems and compilers.
2664 (YYSTACK_ALLOC): New macro.
2665 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2666 If it was malloc'd, free it.
2668 1997-04-23 Richard Stallman <rms@gnu.org>
2671 (alloca) [__hpux]: Always define as __builtin_alloca.
2673 1997-04-23 Richard Stallman <rms@gnu.org>
2676 (alloca) [__hpux]: Always define as __builtin_alloca.
2678 1997-04-22 Richard Stallman <rms@gnu.org>
2681 [__hpux]: Include alloca.h (right for HPUX 10)
2682 instead of declaring alloca (right for HPUX 9).
2684 * src/bison.s1 (__yy_memcpy):
2685 Declare arg `count' as unsigned int.
2686 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2688 1997-04-22 Richard Stallman <rms@gnu.org>
2691 [__hpux]: Include alloca.h (right for HPUX 10)
2692 instead of declaring alloca (right for HPUX 9).
2694 * bison.simple (__yy_memcpy):
2695 Declare arg `count' as unsigned int.
2696 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2698 1997-01-03 Richard Stallman <rms@gnu.org>
2700 * src/allocate.c: [__STDC__ or _MSC_VER]:
2701 Declare calloc and realloc to return void *.
2703 1997-01-02 Richard Stallman <rms@gnu.org>
2706 [_MSC_VER]: Include stdlib.h and process.h.
2707 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2709 * src/main.c (main): Return FAILURE as a value.
2710 (printable_version): Declare arg as int, not char.
2712 1997-01-02 Richard Stallman <rms@gnu.org>
2714 * Makefile.in (dist):
2715 Explicitly check for symlinks, and copy them.
2717 1996-12-19 Richard Stallman <rms@gnu.org>
2720 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2722 1996-12-18 Paul Eggert <eggert@gnu.org>
2724 * src/bison.s1 (yyparse):
2725 If __GNUC__ and YYPARSE_PARAM are both defined,
2726 declare yyparse to have a void * argument.
2728 1996-12-18 Paul Eggert <eggert@gnu.org>
2730 * bison.simple (yyparse):
2731 If __GNUC__ and YYPARSE_PARAM are both defined,
2732 declare yyparse to have a void * argument.
2734 1996-12-17 Richard Stallman <rms@gnu.org>
2736 * src/reduce.c (nbits): Add some casts.
2738 1996-08-12 Richard Stallman <rms@gnu.org>
2740 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2742 1996-08-12 Richard Stallman <rms@gnu.org>
2744 * bison.simple: Test _MSDOS as well as _MSDOS_.
2746 1996-07-31 Richard Stallman <rms@gnu.org>
2749 [__sun && __i386]: Include alloca.h.
2751 1996-07-31 Richard Stallman <rms@gnu.org>
2754 [__sun && __i386]: Include alloca.h.
2756 1996-07-30 Richard Stallman <rms@gnu.org>
2758 * src/bison.s1: Comment change.
2760 * src/bison.s1: Test _MSDOS_, not MSDOS.
2762 1996-07-30 Richard Stallman <rms@gnu.org>
2764 * bison.simple: Comment change.
2766 * bison.simple: Test _MSDOS_, not MSDOS.
2768 1996-06-01 Richard Stallman <rms@gnu.org>
2770 * 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:
2771 Insert `_' macro around many string constants.
2774 Insert `_' macro around many string constants.
2776 (main): Call setlocale, bindtextdomain and textdomain.
2778 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2779 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2780 [ENABLE_NLS]: Include libintl.h.
2781 [ENABLE_NLS] (gettext): Define.
2782 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2783 (N_, PACKAGE, LOCALEDIR): New macros.
2785 1996-06-01 Richard Stallman <rms@gnu.org>
2787 * POTFILES.in: New file.
2789 * Makefile.in (allocate.o):
2790 Define target explicitly.
2792 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2793 (LDFLAGS): Set to @LDFLAGS@.
2794 (configure): Run autoconf only if preceding `cd' succeeds.
2795 (bison.s1): Redirect output to temporary file then move the
2796 temporary to the target, rather than redirecting directly to bison.s1.
2797 (clean): Remove config.status and config.log.
2798 (distclean): Don't remove config.status here.
2800 1996-05-12 Richard Stallman <rms@gnu.org>
2803 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2805 1996-05-12 Richard Stallman <rms@gnu.org>
2808 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2810 1996-05-11 Richard Stallman <rms@gnu.org>
2812 * src/bison.s1 (__yy_memcpy):
2813 Really reorder the args, as was supposedly done on Feb 14 1995.
2814 (yyparse): Calls changed accordingly.
2816 1996-05-11 Richard Stallman <rms@gnu.org>
2818 * Makefile.in (dist): Don't use $(srcdir).
2820 * bison.simple (__yy_memcpy):
2821 Really reorder the args, as was supposedly done on Feb 14 1995.
2822 (yyparse): Calls changed accordingly.
2824 1996-01-27 Richard Stallman <rms@gnu.org>
2826 * src/output.c (output_rule_data):
2827 Test YYERROR_VERBOSE in the conditional
2828 around the definition of ttyname.
2830 1995-12-29 Richard Stallman <rms@gnu.org>
2833 Fix line numbers in #line commands.
2835 1995-12-29 Richard Stallman <rms@gnu.org>
2838 Fix line numbers in #line commands.
2840 1995-12-27 Richard Stallman <rms@gnu.org>
2842 * src/bison.s1 (YYPARSE_PARAM_DECL):
2843 In C++, make it always null.
2844 (YYPARSE_PARAM_ARG): New macro.
2845 (yyparse): Use YYPARSE_PARAM_ARG.
2847 1995-12-27 Richard Stallman <rms@gnu.org>
2849 * bison.simple (YYPARSE_PARAM_DECL):
2850 In C++, make it always null.
2851 (YYPARSE_PARAM_ARG): New macro.
2852 (yyparse): Use YYPARSE_PARAM_ARG.
2854 1995-11-29 Richard Stallman <rms@gnu.org>
2856 * doc/bison.texinfo:
2857 Describe literal string tokens, %raw, %no_lines, %token_table.
2859 1995-11-29 Daniel Hagerty <hag@gnu.org>
2861 * doc/bison.texinfo: Fixed update date
2863 1995-10-16 Richard Stallman <rms@gnu.org>
2865 * src/version.c: Version 1.25.
2867 1995-10-16 Richard Stallman <rms@gnu.org>
2869 * NEWS: *** empty log message ***
2871 1995-10-16 Richard Stallman <rms@gnu.org>
2873 * doc/bison.1, doc/bison.rnh:
2876 1995-10-15 Richard Stallman <rms@gnu.org>
2878 * src/vmsgetargs.c, src/getargs.c:
2879 Added -n, -k, and -raw switches.
2880 (noparserflag, toknumflag, rawtoknumflag): New variables.
2882 * src/symtab.h (SALIAS):
2883 New #define for adding aliases to %token.
2884 (struct bucket): Added `alias' field.
2886 * src/reduce.c (reduce_grammar):
2887 Revise error message.
2888 (print_notices): Remove final `.' from error message.
2890 * src/reader.c (reader_output_yylsp):
2892 (readgram): Use `#if 0' around code that accepted %command
2893 inside grammar rules: The documentation doesn't allow it,
2894 and it will fail since the %command processors scan for the next %.
2895 (parse_token_decl): Extended the %token
2896 declaration to allow a multi-character symbol as an alias.
2897 (parse_thong_decl): New function.
2898 (read_declarations): Added %thong declarations.
2899 (read_declarations): Handle NOOP to deal with allowing
2900 % declarations as another means to specify the flags.
2901 (readgram): Allow %prec prior to semantics embedded in a rule.
2902 (skip_to_char, read_declarations, copy_definition)
2903 (parse_token_decl, parse_start_decl, parse_type_decl)
2904 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2905 (get_type_name, copy_guard, copy_action, readgram)
2906 (get_type, packsymbols): Revised most error messages.
2907 Changed `fatal' to `warnxxx' to avoid aborting for error.
2908 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2909 (read_declarations): Improve the error message for
2910 an invalid character. Do not abort.
2911 (read_declarations, copy_guard, copy_action): Use
2912 printable_version to avoid unprintable characters in printed output.
2913 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2914 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2915 Allow the type of a non-terminal can be given
2916 more than once, as long as all specifications give the same type.
2919 (output_headers, output_trailers, output, output_gram)
2920 (output_rule_data): Implement noparserflag variable.
2921 Implement toknumflag variable.
2922 (output): Call reader_output_yylsp to output LTYPESTR.
2924 * src/main.c (main):
2925 If reader sees an error, don't process the grammar.
2926 (fatals): Updated to not use VARARGS1.
2927 (printable_version, int_to_string, warn, warni, warns, warnss)
2928 (warnsss): New error reporting functions. Avoid abort for error.
2931 Added THONG and NOOP for alias processing.
2932 Added SETOPT for the new code that allows setting options with %flags.
2935 Include getopt.h. Add some extern decls.
2936 (safegetc): New function to deal with EOF gracefully.
2937 (literalchar); new function to deal with reading \ escapes.
2938 (lex): Use literalchar.
2939 (lex): Implemented "..." tokens.
2940 (literalchar, lex, parse_percent_token): Made tokenbuffer
2941 always contain the token. This includes growing the token
2942 buffer while reading an integer.
2943 (parse_percent_token): Replaced if-else statement with percent_table.
2944 (parse_percent_token): Added % declarations as another
2945 way to specify the flags -n, -l, and -r. Also added hooks for
2946 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2947 major changes to files.c.
2948 (lex) Retain in the incoming stream a character following
2950 (skip_white_space, lex): Revised most error messages
2951 and changed fatal to warn to avoid aborting.
2952 (percent_table): Added %thong declarations.
2954 * src/gram.h: Comment changes.
2956 * src/files.c (openfiles, open_extra_files, done):
2958 and actfile file. Handle noparserflag. Both for -n switch.
2960 * src/conflicts.c (resolve_sr_conflict):
2961 Remove use of alloca.
2963 1995-06-01 Jim Meyering <meyering@gnu.org>
2965 * doc/bison.texinfo: *** empty log message ***
2967 1995-05-06 Richard Stallman <rms@gnu.org>
2969 * src/bison.s1: Comment change.
2971 1995-05-06 Richard Stallman <rms@gnu.org>
2973 * bison.simple: Comment change.
2975 1995-05-03 Richard Stallman <rms@gnu.org>
2977 * src/version.c: Version now 1.24.
2979 * src/bison.s1: Change distribution terms.
2981 * src/version.c: Version now 1.23.
2983 1995-05-03 Richard Stallman <rms@gnu.org>
2985 * doc/bison.texinfo:
2986 Rewrite "Conditions for Using Bison".
2987 Update version to 1.24.
2989 1995-05-03 Richard Stallman <rms@gnu.org>
2991 * bison.simple: Change distribution terms.
2993 1995-02-23 Richard Stallman <rms@gnu.org>
2995 * src/files.c: Test __VMS_POSIX as well as VMS.
2997 1995-02-14 Jim Meyering <meyering@gnu.org>
2999 * src/bison.s1 (__yy_memcpy):
3000 Renamed from __yy_bcopy to avoid
3001 confusion. Reverse FROM and TO arguments to be consistent with
3004 1995-02-14 Jim Meyering <meyering@gnu.org>
3006 * bison.simple (__yy_memcpy):
3007 Renamed from __yy_bcopy to avoid
3008 confusion. Reverse FROM and TO arguments to be consistent with
3011 1994-11-10 David J. MacKenzie <djm@gnu.org>
3017 * Makefile.in (DISTFILES): Include NEWS.
3019 * Makefile.in (DISTFILES):
3020 Include install-sh, not install.sh.
3022 * configure.in: Update to Autoconf v2 macro names.
3024 1994-10-05 David J. MacKenzie <djm@gnu.org>
3026 * Makefile.in: fix typo
3028 * Makefile.in (prefix, exec_prefix):
3029 Let configure set them.
3031 1994-09-28 David J. MacKenzie <djm@gnu.org>
3033 * Makefile.in: Set datadir to $(prefix)/share.
3035 1994-09-15 Richard Stallman <rms@gnu.org>
3038 Update copyright notice and GPL version.
3040 1994-09-15 Richard Stallman <rms@gnu.org>
3043 Update copyright notice and GPL version.
3045 1994-07-12 Richard Stallman <rms@gnu.org>
3047 * src/reduce.c, src/reader.c:
3050 1994-05-05 David J. MacKenzie <djm@gnu.org>
3052 * Makefile.in: entered into RCS
3054 1994-03-26 Richard Stallman <rms@gnu.org>
3056 * src/bison.s1: entered into RCS
3058 1994-03-26 Richard Stallman <rms@gnu.org>
3060 * bison.simple: entered into RCS
3062 1994-03-25 Richard Stallman <rms@gnu.org>
3064 * src/main.c: entered into RCS
3066 1994-03-24 Richard Stallman <rms@gnu.org>
3068 * src/conflicts.c: entered into RCS
3070 1994-01-02 Richard Stallman <rms@gnu.org>
3072 * Makefile.in: *** empty log message ***
3074 1993-11-21 Richard Stallman <rms@gnu.org>
3076 * src/bison.s1: *** empty log message ***
3078 1993-11-21 Richard Stallman <rms@gnu.org>
3080 * doc/bison.texinfo: entered into RCS
3082 * doc/bison.texinfo: *** empty log message ***
3084 1993-11-21 Richard Stallman <rms@gnu.org>
3086 * bison.simple: *** empty log message ***
3088 1993-10-25 David J. MacKenzie <djm@gnu.org>
3090 * doc/bison.texinfo: *** empty log message ***
3092 1993-10-19 Richard Stallman <rms@gnu.org>
3094 * src/bison.s1: *** empty log message ***
3096 1993-10-19 Richard Stallman <rms@gnu.org>
3098 * bison.simple: *** empty log message ***
3100 1993-10-14 Richard Stallman <rms@gnu.org>
3102 * src/bison.s1: *** empty log message ***
3104 1993-10-14 Richard Stallman <rms@gnu.org>
3106 * bison.simple: *** empty log message ***
3108 1993-09-14 David J. MacKenzie <djm@gnu.org>
3110 * doc/bison.texinfo: *** empty log message ***
3112 1993-09-13 Noah Friedman <friedman@gnu.org>
3114 * Makefile.in: *** empty log message ***
3116 1993-09-10 Richard Stallman <rms@gnu.org>
3118 * src/conflicts.c: *** empty log message ***
3120 * src/system.h: entered into RCS
3122 1993-09-10 Richard Stallman <rms@gnu.org>
3124 * doc/bison.1: entered into RCS
3126 1993-09-06 Noah Friedman <friedman@gnu.org>
3128 * src/version.c: entered into RCS
3130 1993-09-06 Noah Friedman <friedman@gnu.org>
3132 * Makefile.in: *** empty log message ***
3134 1993-07-30 David J. MacKenzie <djm@gnu.org>
3136 * Makefile.in: *** empty log message ***
3138 1993-07-24 Richard Stallman <rms@gnu.org>
3140 * src/bison.s1: *** empty log message ***
3142 1993-07-24 Richard Stallman <rms@gnu.org>
3144 * bison.simple: *** empty log message ***
3146 1993-07-08 David J. MacKenzie <djm@gnu.org>
3148 * Makefile.in: *** empty log message ***
3150 1993-07-04 Richard Stallman <rms@gnu.org>
3152 * src/bison.s1: *** empty log message ***
3154 1993-07-04 Richard Stallman <rms@gnu.org>
3156 * bison.simple: *** empty log message ***
3158 1993-06-26 David J. MacKenzie <djm@gnu.org>
3160 * src/getargs.c: entered into RCS
3162 1993-06-26 David J. MacKenzie <djm@gnu.org>
3164 * doc/bison.texinfo: *** empty log message ***
3166 * doc/bison.1: New file.
3168 1993-06-25 Richard Stallman <rms@gnu.org>
3170 * src/getargs.c: New file.
3172 1993-06-16 Richard Stallman <rms@gnu.org>
3174 * src/bison.s1: *** empty log message ***
3176 1993-06-16 Richard Stallman <rms@gnu.org>
3178 * bison.simple: *** empty log message ***
3180 1993-06-03 Richard Stallman <rms@gnu.org>
3182 * src/bison.s1: New file.
3184 1993-06-03 Richard Stallman <rms@gnu.org>
3186 * doc/bison.texinfo: *** empty log message ***
3188 1993-06-03 Richard Stallman <rms@gnu.org>
3190 * bison.simple: New file.
3192 1993-05-19 Richard Stallman <rms@gnu.org>
3194 * doc/bison.texinfo: New file.
3196 1993-05-07 Noah Friedman <friedman@gnu.org>
3198 * Makefile.in: *** empty log message ***
3200 1993-04-28 Noah Friedman <friedman@gnu.org>
3202 * src/reader.c: *** empty log message ***
3204 1993-04-23 Noah Friedman <friedman@gnu.org>
3206 * src/alloc.h: entered into RCS
3208 1993-04-20 David J. MacKenzie <djm@gnu.org>
3210 * src/version.c: *** empty log message ***
3212 * src/files.c, src/allocate.c:
3215 * src/reader.c: *** empty log message ***
3217 * src/lex.c: entered into RCS
3219 * src/conflicts.c: New file.
3221 * src/symtab.c: entered into RCS
3223 * src/alloc.h: New file.
3225 * src/LR0.c: entered into RCS
3227 1993-04-18 Noah Friedman <friedman@gnu.org>
3229 * src/reader.c: New file.
3231 * src/version.c: *** empty log message ***
3233 1993-04-18 Noah Friedman <friedman@gnu.org>
3235 * Makefile.in: *** empty log message ***
3237 1993-04-17 Noah Friedman <friedman@gnu.org>
3239 * Makefile.in: *** empty log message ***
3241 1993-04-15 Richard Stallman <rms@gnu.org>
3243 * src/main.c, src/files.c:
3246 1993-04-15 Noah Friedman <friedman@gnu.org>
3248 * configure.in: entered into RCS
3250 * configure.in: *** empty log message ***
3252 * configure.in: New file.
3254 1993-04-14 Richard Stallman <rms@gnu.org>
3256 * Makefile.in: New file.
3258 1993-04-13 Richard Stallman <rms@gnu.org>
3260 * src/version.c: New file.
3262 1993-03-25 Richard Stallman <rms@gnu.org>
3264 * src/output.c: entered into RCS
3266 1992-09-25 Richard Stallman <rms@gnu.org>
3268 * configure.bat: entered into RCS
3270 1992-06-22 Richard Stallman <rms@gnu.org>
3272 * src/vmsgetargs.c: entered into RCS
3274 1992-06-22 Richard Stallman <rms@gnu.org>
3276 * doc/bison.rnh: entered into RCS
3278 1992-04-20 David J. MacKenzie <djm@gnu.org>
3280 * README: entered into RCS
3282 1992-01-22 Richard Stallman <rms@gnu.org>
3284 * src/machine.h: entered into RCS
3286 1991-12-21 Richard Stallman <rms@gnu.org>
3288 * src/lalr.c, src/closure.c:
3291 1991-12-20 Richard Stallman <rms@gnu.org>
3293 * src/state.h: entered into RCS
3295 1991-12-18 Richard Stallman <rms@gnu.org>
3297 * src/print.c, src/nullable.c, src/derives.c:
3300 1991-11-03 David J. MacKenzie <djm@gnu.org>
3302 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3305 1988-09-09 Richard Stallman <rms@gnu.org>
3307 * src/bison.hairy: entered into RCS
3309 1987-12-16 Richard Stallman <rms@gnu.org>
3311 * REFERENCES: entered into RCS