1 2001-11-02 Akim Demaille <akim@epita.fr>
3 * tests/regression.at (Mixing %token styles): New test.
5 2001-11-02 Akim Demaille <akim@epita.fr>
7 * src/reader.c (parse_thong_decl): Formatting changes.
8 (token_translations_init): New, extracted from...
12 2001-11-01 Akim Demaille <akim@epita.fr>
14 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
15 Check that `9foo.y' produces correct cpp guards.
16 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
20 2001-11-01 Akim Demaille <akim@epita.fr>
22 * tests/regression.at (Invalid input: 2): New.
23 * src/lex.c (unlexed_token_buffer): New.
24 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
28 2001-11-01 Akim Demaille <akim@epita.fr>
30 * tests/calc.at: Catch up with 1.30.
31 * configure.in: Bump to 1.49a.
32 Adjust to newer Autotest.
34 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
36 * src/conflicts.c: Move global variables rrc_total and src_total ...
37 (print_conflicts): here.
38 * src/output.c (output): Free global variable user_toknums.
39 * src/lex.c (token_obstack): Become static.
41 2001-10-18 Akim Demaille <akim@epita.fr>
43 * tests/atlocal.in (GCC): Add.
44 * tests/calc.at: s/m4_match/m4_bmatch/.
45 s/m4_patsubst/m4_bpatsubst/.
46 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
47 * configure.in: AC_SUBST(GCC).
49 2001-10-14 Marc Autret <autret_m@epita.fr>
51 * src/options.c (create_long_option_table): Fix.
53 2001-10-10 Akim Demaille <akim@epita.fr>
55 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
57 2001-10-04 Akim Demaille <akim@epita.fr>
59 * src/reader.c (parse_union_decl): Push the caracters in
60 union_obstack, not attrs_obstack.
62 2001-10-04 Akim Demaille <akim@epita.fr>
64 Merge in the branch 1.29.
66 * src/reader.c (packsymbols): Use a temporary obstack for
67 `%%tokendef', since output_stack is already used elsewhere.
69 2001-10-02 Akim Demaille <akim@epita.fr>
73 2001-10-02 Akim Demaille <akim@epita.fr>
77 2001-10-02 Akim Demaille <akim@epita.fr>
79 * tests/regression.at (Invalid CPP headers): New.
80 From Alexander Belopolsky.
81 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
83 2001-10-02 Akim Demaille <akim@epita.fr>
85 * tests/regression.at (Invalid input): New.
86 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
89 2001-10-02 Akim Demaille <akim@epita.fr>
91 * tests/calc.at: Now that --debug works, the tests must be adjusted.
93 2001-10-02 Akim Demaille <akim@epita.fr>
95 * src/output.c (output_parser): Assert `skeleton'.
96 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
100 2001-10-01 Marc Autret <autret_m@epita.fr>
102 * src/lex.h: Echo modifications.
103 * src/lex.c (unlex): Parameter is now token_t.
106 2001-10-01 Marc Autret <autret_m@epita.fr>
108 * src/main.c: Include lex.h.
111 2001-09-29 Akim Demaille <akim@epita.fr>
113 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
115 2001-09-28 Akim Demaille <akim@epita.fr>
117 * tests/testsuite.at: Update to newer Autotest.
118 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
120 2001-09-27 Akim Demaille <akim@epita.fr>
122 Position independent wrapper.
124 * tests/bison: Remove.
125 * tests/bison.in: New.
126 * configure.in: Adjust.
128 2001-09-27 Paul Eggert <eggert@twinsun.com>
130 Port quotearg fixes from tar 1.13.24.
132 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
134 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
135 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
137 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
138 * m4/mbrtowc.m4: New file.
139 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
140 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
142 2001-09-27 Akim Demaille <akim@epita.fr>
146 2001-09-27 Akim Demaille <akim@epita.fr>
150 2001-09-25 Akim Demaille <akim@epita.fr>
152 * src/system.h: Include `xalloc.h'.
153 Remove it from the C files.
154 * src/files.c (output_files): Free the obstacks.
155 * src/lex.c (init_lex): Rename as...
158 * src/main.c (main): Use it.
160 2001-09-24 Marc Autret <autret_m@epita.fr>
162 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
163 to output informations in fout (FILE*).
164 (open_graph, close_graph): Likewise.
165 (output_graph, output_edge, output_node): Likewise.
166 * src/vcg.h: Update function prototypes.
167 * src/print_graph.c (print_graph): Open output graph file.
168 (print_actions): Adjust.
169 * src/files.h: Remove extern declaration.
170 * src/files.c: Remove graph_obstack declaration.
171 (open_files): Remove graph_obstack initialization.
172 (output_files): Remove graph_obstack saving.
174 2001-09-24 Marc Autret <autret_m@epita.fr>
176 * src/files.c (compute_output_file_names): Fix.
178 2001-09-24 Marc Autret <autret_m@epita.fr>,
179 Akim Demaille <akim@epita.fr>
181 * src/reader.c (reader): Remove call to free_symtab ().
182 * src/main.c (main): Call it here.
184 * src/conflicts.c (initialize_conflicts): Rename as...
185 (solve_conflicts): this.
186 * src/print.c (print_core, print_actions, print_state)
187 (print_grammar): Dump to a file instead a `output_obstack'.
188 (print_results): Dump `output_obstack', and then proceed with the
190 * src/files.c (compute_output_file_names, close_files): New.
191 (output_files): Adjust.
192 * src/main.c (main): Adjust.
194 2001-09-23 Marc Autret <autret_m@epita.fr>
196 * src/files.c (compute_header_macro): Computes header macro name
197 from spec_defines_file when given.
199 2001-09-23 Marc Autret <autret_m@epita.fr>
201 * src/files.c (output_files): Add default extensions.
203 2001-09-22 Akim Demaille <akim@epita.fr>
205 * src/conflicts.c (finalize_conflicts): Rename as...
206 (free_conflicts): this.
208 2001-09-22 Akim Demaille <akim@epita.fr>
210 * src/gram.c (gram_free): Rename back as...
212 (output_token_translations): Free `token_translations'.
213 * src/symtab.c (free_symtab): Free the tag field.
215 2001-09-22 Akim Demaille <akim@epita.fr>
217 Remove `translations' as it is always set to true.
219 * src/gram.h: Adjust.
220 * src/reader.c (packsymbols, parse_token_decl): Adjust
221 * src/print.c (print_grammar): Adjust.
222 * src/output.c (output_token_translations): Adjust.
223 * src/lex.c (lex): Adjust.
224 * src/gram.c: Be sure the set pointers to NULL.
225 (dummy): Rename as...
228 2001-09-22 Akim Demaille <akim@epita.fr>
230 * configure.in: Invoke AM_LIB_DMALLOC.
231 * src/system.h: Use dmalloc.
232 * src/LR0.c: Be sure to have pointers initialized to NULL.
233 (allocate_itemsets): Allocate kernel_items only if needed.
235 2001-09-22 Akim Demaille <akim@epita.fr>
237 * configure.in: Bump to 1.29b.
238 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
239 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
240 need xmalloc.c in calc.y.
243 2001-09-21 Akim Demaille <akim@epita.fr>
246 * Makefile.maint, config/config.guess, config/config.sub,
247 * config/missing: Update from masters.
248 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
250 * configure.in (ALL_LINGUAS): Add `tr'.
252 2001-09-21 Akim Demaille <akim@epita.fr>
254 * tests/Makefile.am (package.m4): Move to...
255 ($(srcdir)/$(TESTSUITE)): here.
257 2001-09-20 Akim Demaille <akim@epita.fr>
259 * src/complain.c: No longer try to be standalone: use system.h.
260 Don't assume __STDC__ is defined to 1. Just test if it is defined.
261 * src/complain.h: Likewise.
262 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
263 Remove the unused variable `n'.
264 From Albert Chin-A-Young.
266 2001-09-18 Marc Autret <autret_m@epita.fr>
268 * doc/bison.1: Update.
269 * doc/bison.texinfo (Bison Options): Update --defines and --graph
271 (Option Cross Key): Update.
274 2001-09-18 Marc Autret <autret_m@epita.fr>
276 * tests/regression.at: New test (comment in %union).
278 2001-09-18 Marc Autret <autret_m@epita.fr>
280 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
282 Reported by Keith Browne.
284 2001-09-18 Marc Autret <autret_m@epita.fr>
286 * tests/output.at: Add tests for --defines and --graph.
288 2001-09-18 Marc Autret <autret_m@epita.fr>
290 * tests/output.at: Removes tests of %{header,src}_extension features.
292 2001-09-18 Akim Demaille <akim@epita.fr>
294 * tests/Makefile.am (package.m4): New.
295 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
296 (_AT_CHECK_CALC_ERROR): Likewise.
297 Factor the `, ' part of verbose error messages.
299 2001-09-18 Marc Autret <autret_m@epita.fr>
301 * src/getargs.c (longopts): Declare --defines and --graph as options
302 with optional arguments.
303 * src/files.h: Add extern declarations.
304 * src/files.c (spec_graph_file, spec_defines_file): New.
305 (output_files): Update.
306 Remove CPP-outed code.
308 2001-09-18 Marc Autret <autret_m@epita.fr>
310 Turn off %{source,header}_extension feature.
312 * src/files.c (compute_exts_from_gf): Update.
313 (compute_exts_from_src): Update.
314 (output_files): CPP-out useless code.
315 * src/files.h: Remove {header,source}_extension extern declarations.
316 * src/reader.c (parse_dquoted_param): CPP-out.
317 (parse_header_extension_decl): Remove.
318 (parse_source_extension_decl): Remove.
319 (read_declarations): Remove cases tok_{hdrext,srcext}.
320 * src/lex.c (percent_table): Remove {header,source}_extension entries.
321 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
323 2001-09-10 Akim Demaille <akim@epita.fr>
325 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
326 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
327 (AT_CHECK_OUTPUT): this.
328 Merely check ls' exit status, its output is useless.
330 2001-09-10 Akim Demaille <akim@epita.fr>
332 * tests/calc.at: Use m4_match.
333 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
335 2001-09-10 Marc Autret <autret_m@epita.fr>,
336 Akim Demaille <akim@epita.fr>
338 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
340 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
342 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
343 * src/lex.h: Adjust prototype.
344 (token_t): Add `tok_undef'.
345 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
346 (parse_percent_token): Now returns token_t.
347 Add default statement in switch.
348 (lex): Separate `c' as an input variable, from the token_t result
350 (unlexed): Is a token_t.
352 2001-09-10 Akim Demaille <akim@epita.fr>
354 * configure.in: Bump to 1.29a.
356 2001-09-07 Akim Demaille <akim@epita.fr>
360 2001-08-30 Akim Demaille <akim@epita.fr>
362 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
363 * m4/atconfig.m4: Remove.
364 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
366 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
367 m4_if, m4_patsubst, and m4_regexp.
368 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
369 `input' file instead of echo.
371 2001-08-29 Akim Demaille <akim@epita.fr>
375 2001-08-29 Akim Demaille <akim@epita.fr>
379 2001-08-29 Paul Eggert <eggert@twinsun.com>
381 * src/bison.simple (yyparse): Don't take the address of an
382 item before the start of an array, as that doesn't conform to
385 2001-08-29 Robert Anisko <anisko_r@epita.fr>
387 * doc/bison.texinfo (Location Tracking Calc): New node.
389 2001-08-29 Paul Eggert <eggert@twinsun.com>
391 * src/output.c (output): Do not define const, as this now
392 causes more problems than it cures.
394 2001-08-29 Akim Demaille <akim@epita.fr>
396 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
398 Be sure to tag the `detailmenu'.
400 2001-08-29 Akim Demaille <akim@epita.fr>
402 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
403 download in a tmp dir.
405 2001-08-28 Marc Autret <autret_m@epita.fr>
407 * config/depcomp: New file.
409 2001-08-28 Marc Autret <autret_m@epita.fr>
411 * doc/bison.1 (mandoc): Adjust.
412 From Juan Manuel Guerrero.
414 2001-08-28 Marc Autret <autret_m@epita.fr>
416 * src/print_graph.c (print_state): Fix.
418 2001-08-27 Marc Autret <autret_m@epita.fr>
420 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
422 Echo modifications to the functions prototypes.
423 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
425 2001-08-27 Marc Autret <autret_m@epita.fr>
427 * src/vcg.c: Include `xalloc.h'.
428 (add_colorentry): New.
429 (add_classname): New.
431 * src/vcg.h: Add new prototypes.
433 2001-08-27 Akim Demaille <akim@epita.fr>
435 * Makefile.maint: Sync. again with CVS Autoconf.
437 2001-08-27 Akim Demaille <akim@epita.fr>
439 * Makefile.maint: Formatting changes.
440 (po-update, cvs-update, update): New targets.
443 2001-08-27 Akim Demaille <akim@epita.fr>
445 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
446 * Makefile.maint: Sync. with CVS Autoconf.
448 2001-08-27 Marc Autret <autret_m@epita.fr>
450 * src/vcg.h (struct infoname_s): New.
451 (struct colorentry_s): New.
452 (graph_s): New fields {vertical,horizontal}_order in structure.
453 Add `infoname' field.
454 Add `colorentry' field;
455 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
456 (G_HORIZONTAL_ORDER): New.
459 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
460 Add output of `infoname'.
461 Add output of `colorentry'.
463 2001-08-27 Marc Autret <autret_m@epita.fr>
465 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
466 This one shadowed a global parameter.
468 2001-08-24 Marc Autret <autret_m@epita.fr>
470 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
471 instead of `unsigned'.
472 (print_state): Do not call obstack_object_size () in obstack_grow ()
473 to avoid macro variables shadowing.
475 2001-08-23 Marc Autret <autret_m@epita.fr>
477 * src/lex.c (percent_table): Typo: s/naem/name/.
479 Normalize new options declarations.
481 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
483 * tests/suite.at: Exercise %header_extension and %source_extension.
485 2001-08-16 Marc Autret <autret_m@epita.fr>
487 * src/reader.c (parse_dquoted_param): New.
488 (parse_header_extension_decl): Use it.
489 (parse_source_extension_decl): Likewise.
491 2001-08-16 Marc Autret <autret_m@epita.fr>
493 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
494 (get_xxxx_str): Use assert () instead of complain ().
495 Remove return invokations in default cases.
496 (get_decision_str): Modify default behaviour. Remove second argument.
497 Echo modifications on calls.
500 2001-08-16 Marc Autret <autret_m@epita.fr>
502 * src/getargs.c (usage): Update with ``-g, --graph''.
504 2001-08-16 Marc Autret <autret_m@epita.fr>
506 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
507 (Option Cross Key): Likewise.
508 * doc/bison.1: Update.
510 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
512 * src/output.c (output_master_parser): Don't finish action_obstack.
513 (output_parser): Don't care about the muscle action, here.
514 (prepare): Copy the action_obstack in the action muscle.
515 (output): Free action_obstack.
517 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
519 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
520 will contain `%union' declaration.
521 (parse_union_decl): Delete #line directive output.
522 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
523 informations about %union.
524 (parse_union_decl): Copy the union_obstack in the muscle stype.
525 * src/bison.simple: Add new #line directive.
526 Add typdef %%stype YYSTYPE.
528 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
530 * src/bison.simple: Add new `#line' directive.
532 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
534 * src/bison.simple: New `#line' directive.
535 * src/output.c (output_parser): Support new dynamic muscle input_line.
537 2001-09-22 Marc Autret <autret_m@epita.fr>
539 * src/output.c (output_master_parser): New.
540 (output_parser): Be more re-entrant.
542 2001-09-21 Marc Autret <autret_m@epita.fr>
544 * src/reader.c (copy_definition, parse_union_decl): Update and use
546 (copy_action): Likewise.
547 Use obstack_1grow ().
548 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
550 2001-09-21 Marc Autret <autret_m@epita.fr>
552 * src/options.c (option_table): Adjust.
553 * src/lex.c (parse_percent_token): Fix.
555 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
557 * src/options.c (symtab.h): Include it, need by lex.h.
559 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
561 * src/lex.c (parse_percent_token): Change type of variable `tx', which
562 is now an option_table_struct*.
563 (option_strcmp): New function option_strcmp.
564 (parse_percent_token): Call option_strcmp.
565 * src/getargs.c (xalloc.h, options.h): Include it.
566 (getargs): Call create_long_option_table.
567 (getargs): Free longopts at the end of the function.
568 (shortopts): Move in options.c.
569 * src/options.c (create_long_option_table): New function. Convert
570 information from option_table to option structure.
571 * src/reader.c (options.h): Include it.
573 * src/Makefile.am: Adjust.
574 * src/options.c (option_table): Create from longopts and percent_table.
575 * src/getargs.c (longopts): Delete.
576 * src/lex.c (struct percent_table_struct): Delete.
577 (percent_table): Delete.
578 (options.h): Include it.
579 * src/options.c: Create.
580 * src/options.h: Create.
581 Declare enum opt_access_e.
582 Define struct option_table_struct.
584 2001-09-20 Marc Autret <autret_m@epita.fr>
586 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
589 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
591 * src/bison.simple: s/%%filename/%%skeleton.
592 * src/muscle_tab.c (getargs.h): Include it.
593 (muscle_init): Insert new muscle skeleton.
595 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
597 * src/output.c (output_parser): Delete unused variable actions_dumped.
599 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
601 * src/output.c (output): Delete call to reader_output_yylsp.
602 * src/reader.c (reader): Likewise.
603 * src/reader.h: Delete declaration of reader_output_yylsp.
605 2001-09-02 Marc Autret <autret_m@epita.fr>
607 * src/reader.c: Include muscle_tab.h.
608 (parse_union_decl): Update.
609 (parse_macro_decl): Rename parse_muscle_decl.
610 Update to use renamed functions and variable.
611 (read_declarations, copy_action, read_additionnal_code, : Updated
612 with correct variables and functions names.
613 (packsymbols, reader): Likewise.
615 * src/reader.h (muscle_obstack): Extern declaration update.
617 * src/output.c: Include muscle_tab.h
618 In all functions using macro_insert, change by using muscle_insert ().
619 (macro_obstack): Rename muscle_obstack.
620 Echo modifications in the whole file.
621 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
622 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
623 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
625 * src/muscle_tab.h: Update double inclusion macros.
626 (macro_entry_s): Rename muscle_entry_s.
629 * src/muscle_tab.c: Include muscle_tab.h.
630 Rename macro_tabble to muscle_table.
631 (mhash1, mhash2, mcmp): Use muscle_entry.
632 (macro_init): Rename muscle_init. Update.
633 (macro_insert): Rename muscle_insert. Update.
634 (macro_find): Rename muscle_find. Update.
636 * src/main.c: Include muscle_tab.h.
637 (main): Call muscle_init ().
638 * src/Makefile.am (bison_SOURCES): Echo modifications.
640 2001-09-02 Marc Autret <autret_m@epita.fr>
642 Now the files macro_tab.[ch] are named muscle_tab.[ch].
644 * src/muscle_tab.c, src/muscle_tab.h: Add files.
646 2001-09-02 Marc Autret <autret_m@epita.fr>
648 * src/macrotab.c, src/macrotab.h: Remove.
650 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
652 * src/reader.c (copy_guard): Use muscle to specify the `#line'
655 2001-09-01 Marc Autret <autret_m@epita.fr>
657 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
658 to an explicit value to activate the feature. We do it here.
660 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
662 * src/output.c (prepare): Delete the `filename' muscule insertion.
663 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
664 (parse_union_decl): Likewise.
665 * src/macrotab.c (macro_init): Initialize filename by infile.
667 2001-08-31 Marc Autret <autret_m@epita.fr>
669 * src/bison.simple (YYLSP_NEEDED): New definition.
670 * src/output.c (prepare): Add macro insertion of `locations_flag'
672 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
674 * src/output.c (prepare): Delete insertion of previous muscles,
675 and insert the `prefix' muscles.
676 * src/macrotab.c (macro_init): Likewise.
677 (macro_init): Initialization prefix directive by `yy'.
678 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
679 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
680 yylval, yydebug, yyerror, yynerrs and yyparse.
681 New directive `#define' to substitute yydebug, ... with option
684 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
686 * src/main.c (main): Standardize.
687 * src/output.c (output_table_data, output_parser): Likewise.
688 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
690 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
692 * src/reader.c (read_additionnal_code): Rename %%user_code to
694 * src/output.c (output): Rename %%declarations to %%prologue.
695 * src/bison.simple: Echo modifications.
697 2001-08-31 Marc Autret <autret_m@epita.fr>
699 * src/reader.c (readgram): CleanUp.
700 (output_token_defines): Likewise.
701 (packsymbols): Likewise.
703 * src/output.c (output): CPP-out useless code.
705 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
707 * src/reader.c (reader): Delete obsolete call to function
708 output_trailers and output_headers.
709 * src/output.h: Remove obsolete functions prototypes of output_headers
712 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
714 * src/main.c: Include macrotab.h.
715 * src/macrotab.h (macro_entry_s): Constify fields.
716 Adjust functions prototypes.
717 * src/macrotab.c (macro_insert): Constify key and value.
718 (macro_find): Constify key.
719 (macro_insert): Include 'xalloc.h'
720 (macro_insert): Use XMALLOC.
721 (macro_find): Constify return value.
722 * src/output.c (output_table_data): Rename table to table_data.
723 (output_parser): Constify macro_key, macro_value.
725 2001-08-30 Marc Autret <autret_m@epita.fr>
727 * src/reader.c (parse_skel_decl): New.
728 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
729 * src/lex.h (token_t): New token `tok_skel'.
730 * src/lex.c (percent_table): Add skeleton option entry.
733 2001-08-29 Marc Autret <autret_m@epita.fr>
735 * src/bison.simple: Add %%user_code directive at the end.
736 * src/reader.c (read_additionnal_code): New.
738 * src/output.c (output_program): Remove.
741 2001-08-28 Marc Autret <autret_m@epita.fr>
743 * src/output.c (output_actions): Clean up.
744 (output_gram): CPP-out useless code.
745 * src/reader.c (reader): Clean up, CPP-out useless code.
747 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
749 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
751 * src/bison.simple: Add `%%definitions'.
753 2001-08-28 Marc Autret <autret_m@epita.fr>
755 * config/depcomp: New file.
757 2001-08-27 Paul Eggert <eggert@twinsun.com>
759 * src/bison.simple (yyparse): Don't take the address of an
760 item before the start of an array, as that doesn't conform to
763 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
765 * src/output.c (output): Remove the initialization of the macro
766 obstack. It was done too late here.
768 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
770 (reader): Initialize the macro obstack here, since we need it to grow
771 '%define' directives.
773 * src/reader.h: Declare the macro obstack as extern.
775 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
777 * src/output.c (output_parser): Fix. Store single '%' characters in
778 the output obstack instead of throwing them away.
780 2001-08-27 Akim Demaille <akim@epita.fr>
782 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
784 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
786 * lib/Makefile.am: Adjust.
788 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
790 * src/bison.simple: Update and add '%%' directives.
792 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
794 * src/reader.c (reader): Remove calls to 'output_headers' and
795 'output_trailers'. Remove some C output.
796 (readgram): Disable a piece of code that was writing a default
797 definition for 'YYSTYPE'.
798 (reader_output_yylsp): Remove.
799 (packsymbols): Output token defintions to a macro.
800 (copy_definition): Disable C output.
802 * src/reader.c (parse_macro_decl): New function used to parse macro
804 (copy_string2): Put the body of copy_string into this new function.
805 Add a parameter to let the caller choose whether he wants to copy the
806 string delimiters or not.
807 (copy_string): Be a simple call to copy_string2 with the last argument
809 (read_declarations): Add case for macro definition.
810 (copy_identifier): New.
811 (parse_macro_decl): Read macro identifiers using copy_identifier
814 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
816 * src/output.c (prepare): Add prefixed names.
817 (output_parser): Output semantic actions.
818 (output_parser): Fix bug on '%%line' directives.
820 * src/output.c (output_headers): Remove. The C code printed by this
821 function should now be in the skeletons.
822 (output_trailers): Remove.
823 (output): Disable call to 'reader_output_yylsp'.
824 (output_rule_data): Do not output tables to the table obstack.
826 * src/output.c: Remove some C dedicated output.
827 Improve the use of macro and output obstacks.
828 (output_defines): Remove.
830 * src/output.c (output_token_translations): Associate 'translate'
831 table with a macro. No output to the table obstack.
832 (output_gram): Same for 'rhs' and 'prhs'.
833 (output_stos): Same for 'stos'.
834 (output_rule_data): Same for 'r1' and 'r2'.
835 (token_actions): Same for 'defact'.
836 (goto_actions): Same for 'defgoto'.
837 (output_base): Same for 'pact' and 'pgoto'.
838 (output_table): Same for 'table'.
839 (output_check): Same for 'check'.
841 * src/output.c (output_table_data): New function.
842 (output_short_table): Remove.
843 (output_short_or_char_table): Remove.
845 * src/output.c (output_parser): Replace most of the skeleton copy code
846 with something new. Skeletons are now processed character by character
847 rather than line by line, and Bison looks for '%%' macros. This is the
848 first step in making Bison's output process (a lot) more flexible.
849 (output_parser): Use the macro table.
851 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
853 * src/main.c (main): Initialize the macro table.
855 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
857 * src/lex.c (percent_table): Add tok_define.
858 * src/lex.h: Add tok_define.
860 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
862 * src/macrotab.c: New file.
863 * src/macrotab.h: New file.
864 * src/Makefile.am: Update.
866 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
868 * lib/hash.c: New file.
869 * lib/hash.h: New file.
870 * lib/Makefile.am: Update.
872 2001-08-15 Akim Demaille <akim@epita.fr>
876 2001-08-15 Marc Autret <autret_m@epita.fr>
878 * src/reader.c (readgram): Indent output macro YYSTYPE.
879 (packsymbols): Likewise.
880 (output_token_defines): Likewise.
881 * src/files.c: Standardize.
882 (compute_header_macro): New.
883 (defines_obstack_save): New. Use compute_header_macro.
884 (output_files): Update. Use defines_obstack_save.
886 2001-08-15 Akim Demaille <akim@epita.fr>
888 * doc/bison.texinfo (Table of Symbols): Document
891 2001-08-15 Akim Demaille <akim@epita.fr>
893 * missing: Update from CVS Automake.
894 * config/config.guess, config/config.sub, config/texinfo.tex:
897 2001-08-15 Akim Demaille <akim@epita.fr>
899 * Makefile.maint: Sync with CVS Autoconf.
901 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
903 * doc/bison.texinfo: Include GNU Free Documentation License from
905 * doc/fdl.texi: Add to package.
907 2001-08-14 Marc Autret <autret_m@epita.fr>
909 Turn on %{source,header}_extension features.
911 * src/lex.c (percent_table): Un-CPP out header_extension and
913 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
914 (compute_exts_from_src): Remove conditions. It restores priorities
917 2001-08-14 Marc Autret <autret_m@epita.fr>
919 * src/files.c (compute_base_names): Add extensions computing when
920 `--file-prefix' used.
921 Standardize function calls.
923 2001-08-13 Marc Autret <autret_m@epita.fr>
925 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
926 defining it (defined but null disables alloca).
928 2001-08-13 Marc Autret <autret_m@epita.fr>
930 * src/bison.simple (_yy_memcpy): CPP reformat.
932 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
934 * tests/atconfig.in (CPPFLAGS): Fix.
936 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
938 * doc/bison.texinfo: Include GNU General Public License from
940 * doc/gpl.texi: Add to package.
942 2001-08-10 Marc Autret <autret_m@epita.fr>
944 * src/print_graph.h: Fix.
945 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
947 2001-08-10 Akim Demaille <akim@epita.fr>
949 * src/system.h: Provide default declarations for stpcpy, strndup,
952 2001-08-10 Robert Anisko <anisko_r@epita.fr>
954 * doc/bison.texinfo (Locations): Update @$ stuff.
956 2001-08-09 Robert Anisko <anisko_r@epita.fr>
958 * src/bison.simple (YYLLOC_DEFAULT): Update.
961 2001-08-08 Marc Autret <autret_m@epita.fr>
963 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
964 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
965 Reported by Fabrice Bauzac.
967 2001-08-08 Marc Autret <autret_m@epita.fr>
969 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
970 * src/vcg.c (output_node): Fix.
971 * src/vcg.h: Cleanup.
972 * src/print_graph.c: Add comments.
973 (node_output_size): New global variable. Simplify the formatting of
974 the VCG graph output.
975 (print_actions): Unused code is now used. It notifies the final state
976 and no action states in the VCG graph. It also give the reduce actions.
977 The `shift and goto' edges are red and the `go to state' edges are
979 Get the current node name and node_obstack by argument.
980 (node_obstack): New variable.
981 (print_state): Manage node_obstack.
982 (print_core): Use node_obstack given by argument.
983 A node is not only computed here but in print_actions also.
984 (print_graph): CPP out useless code instead of commenting it.
986 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
988 * tests/atconfig.in (CPPFLAGS): Fix.
990 2001-08-07 Akim Demaille <akim@epita.fr>
992 * src/print_graph.c (quote): New.
993 (print_core): Use it.
995 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
997 * src/vcg.c (complain.h): Include it.
998 Unepitaize `return' invocations.
999 [NDEBUG] (main): Remove.
1000 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1001 * src/files.c (open_files): Initialize graph_obstack.
1002 * src/print_graph.c (print_actions): CPP out useless code.
1003 (print_core): Don't output the last `\n' in labels.
1005 * src/files.c (output_files): Output the VCG file.
1006 * src/main.c (main): Invoke print_graph ();
1008 2001-08-06 Marc Autret <autret_m@epita.fr>
1010 Automaton VCG graph output.
1011 Using option ``-g'' or long option ``--graph'', you can generate
1012 a gram_filename.vcg file containing a VCG description of the LALR (1)
1013 automaton of your grammar.
1015 * src/main.c: Call to print_graph() function.
1016 * src/getargs.h: Update.
1017 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1018 (graph_flag): New flag.
1020 (getargs): Add case `g'.
1021 * src/files.c (graph_obstack): New obstack struct.
1022 (open_files): Initialize new obstack.
1023 (output_files): Saves graph_obstack if required.
1024 * src/files.h (graph_obstack): New extern declaration.
1025 * src/Makefile.am: Add new source files.
1027 2001-08-06 Marc Autret <autret_m@epita.fr>
1029 * src/print_graph.c, src/print_graph.h (graph): New.
1030 * src/vcg.h: New file.
1031 * src/vcg.c: New file, VCG graph handling.
1033 2001-08-06 Marc Autret <autret_m@epita.fr>
1035 Add of %source_extension and %header_extension which specify
1036 the source or/and the header output file extension.
1038 * src/files.c (compute_base_names): Remove initialisation of
1039 src_extension and header_extension.
1040 (compute_exts_from_gf): Update.
1041 (compute_exts_from_src): Update.
1042 (output_files): Update.
1043 * src/reader.c (parse_header_extension_decl): New.
1044 (parse_source_extension_decl): New.
1045 (read_declarations): New case statements for the new tokens.
1046 * src/lex.c (percent_table): Add entries for %source_extension
1047 and %header_extension.
1048 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1050 2001-08-06 Marc Autret <autret_m@epita.fr>
1052 * configure.in: Bump to 1.28c.
1053 * doc/bison.texinfo: Texinfo thingies.
1055 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1057 * tests/atconfig.in (CPPFLAGS): Add.
1058 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1060 2001-08-03 Akim Demaille <akim@epita.fr>
1064 2001-08-03 Akim Demaille <akim@epita.fr>
1066 * tests/Makefile.am (check-local): Ship testsuite.
1067 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1070 2001-08-03 Akim Demaille <akim@epita.fr>
1072 * configure.in: Try using -Wformat when compiling.
1074 2001-08-03 Akim Demaille <akim@epita.fr>
1076 * configure.in: Bump to 1.28b.
1078 2001-08-03 Akim Demaille <akim@epita.fr>
1080 * src/complain.c: Adjust strerror_r portability issues.
1082 2001-08-03 Akim Demaille <akim@epita.fr>
1086 2001-08-03 Akim Demaille <akim@epita.fr>
1088 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1089 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1090 * src/getargs.c: Include complain.h.
1091 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1092 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1094 2001-08-03 Akim Demaille <akim@epita.fr>
1096 * src/reader.c (readgram): Display hidden chars in error messages.
1098 2001-08-03 Akim Demaille <akim@epita.fr>
1100 Update to gettext 0.10.39.
1102 2001-08-03 Akim Demaille <akim@epita.fr>
1104 * lib/strspn.c: New.
1106 2001-08-01 Marc Autret <autret_m@epita.fr>
1108 * doc/bison.texinfo: Update.
1109 * doc/bison.1 (mandoc): Update.
1110 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1111 * src/files.c: Support output files extensions computing.
1112 (src_extension): New static variable.
1113 (header_extension): New static variable.
1115 (get_extension_index): New function, gets the index of an extension
1116 filename in a string.
1117 (compute_exts_from_gf): New function, computes extensions from the
1118 grammar file extension.
1119 (compute_exts_from_src): New functions, computes extensions from the
1120 C source file extension, file given by ``-o'' option.
1121 (compute_base_names): Update.
1122 (output_files): Update.
1124 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1126 * doc/bison.texi: Document @$.
1127 (Locations): New section.
1129 2001-07-18 Akim Demaille <akim@epita.fr>
1131 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1132 * config/prev-version.txt, config/move-if-change: New.
1133 * Makefile.am: Adjust.
1135 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1137 * src/bison.simple (yyparse): Suppress warning `comparaison
1138 between signed and unsigned'.
1140 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1142 * src/getargs.h (raw_flag): Remove.
1143 * src/getargs.c: Die on `-r'/`--raw'.
1144 * src/lex.c (parse_percent_token): Die on `%raw'.
1145 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1146 * tests/calc.at: Suppress test with option `--raw'.
1148 2001-07-14 Akim Demaille <akim@epita.fr>
1151 * configure.in: Require Autoconf 2.50.
1152 Update to gettext 0.10.38.
1154 2001-03-16 Akim Demaille <akim@epita.fr>
1156 * doc/bison.texinfo: ANSIfy the examples.
1158 2001-03-16 Akim Demaille <akim@epita.fr>
1160 * getargs.c (skeleton): New variable.
1161 (longopts): --skeleton is a new option.
1162 (shortopts, getargs): -S is a new option.
1163 * getargs.h: Declare skeleton.
1164 * output.c (output_parser): Use it.
1166 2001-03-16 Akim Demaille <akim@epita.fr>
1168 * m4/strerror_r.m4: New.
1169 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1170 * lib/error.h, lib/error.c: Update.
1172 2001-03-16 Akim Demaille <akim@epita.fr>
1174 * src/getargs.c (longopts): Clean up.
1176 2001-02-21 Akim Demaille <akim@epita.fr>
1178 * src/reader.c (gensym): `gensym_count' is your own.
1179 Use a static buf to create the symbol name, as token_buffer is no
1182 2001-02-08 Akim Demaille <akim@epita.fr>
1184 * src/conflicts.c (conflict_report): Be sure not to append to res
1185 between two calls, which could happen if both first sprintf were
1186 skipped, but not the first cp += strlen.
1188 2001-02-08 Akim Demaille <akim@epita.fr>
1190 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1191 New, from fileutils 4.0.37.
1192 * configure.in: Require Autoconf 2.49c. I took some time before
1193 making this decision. This is the only way out for portability
1194 issues in Bison, it would mean way too much duplicate effort to
1195 import in Bison features implemented in 2.49c since 2.13.
1196 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1198 2001-02-02 Akim Demaille <akim@epita.fr>
1200 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1201 * lib/xalloc.h, lib/xmalloc.c: Update.
1203 2001-01-19 Akim Demaille <akim@epita.fr>
1205 Get rid of the ad hoc handling of token_buffer in the scanner: use
1208 * src/lex.c (token_obstack): New.
1209 (init_lex): Initialize it. No longer call...
1210 (grow_token_buffer): this. Remove it.
1211 Adjust all the places which used it to use the obstack.
1213 2001-01-19 Akim Demaille <akim@epita.fr>
1215 * src/lex.h: Rename all the tokens:
1216 s/\bENDFILE\b/tok_eof/g;
1217 s/\bIDENTIFIER\b/tok_identifier/g;
1219 Let them be enums, not #define, to ease debugging.
1220 Adjust all the code.
1222 2001-01-18 Akim Demaille <akim@epita.fr>
1224 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1225 * src/lex.c (maxtoken, grow_token_buffer): Static.
1227 2001-01-18 Akim Demaille <akim@epita.fr>
1229 Since we now use obstacks, more % directives can be enabled.
1231 * src/lex.c (percent_table): Also accept `%yacc',
1232 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1234 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1235 instead of returning a token.
1236 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1237 * src/reader.c (read_declarations): Adjust.
1238 * src/files.c (open_files): Don't call `compute_base_names', don't
1239 compute `attrsfile' since they depend upon data which might be
1240 *in* the input file now.
1241 (output_files): Do it here.
1242 * src/output.c (output_headers): Document the fact that this patch
1243 introduces a guaranteed SEGV for semantic parsers.
1244 * doc/bison.texinfo: Document them.
1245 * tests/suite.at: Exercise these %options.
1247 2000-12-20 Akim Demaille <akim@epita.fr>
1249 Also handle the output file (--verbose) with obstacks.
1251 * files.c (foutput): Remove.
1252 (output_obstack): New.
1253 Adjust all dependencies.
1254 * src/conflicts.c: Return a string.
1255 * src/system.h (obstack_grow_string): Rename as...
1256 (obstack_sgrow): this. Be ready to work with non literals.
1257 (obstack_fgrow4): New.
1259 2000-12-20 Akim Demaille <akim@epita.fr>
1261 * src/files.c (open_files): Fix the computation of short_base_name
1262 in the case of `-o foo.tab.c'.
1264 2000-12-20 Akim Demaille <akim@epita.fr>
1266 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1267 (copy_dollar): Now that everything uses obstacks, get rid of the
1270 2000-12-20 Akim Demaille <akim@epita.fr>
1272 * src/files.c (open_files): Actually the `.output' file is based
1273 on the short_base_name, not base_name.
1274 * tests/suite.at (Checking output file names): Adjust.
1276 2000-12-20 Akim Demaille <akim@epita.fr>
1278 * src/bison.s1: Remove, we now use directly...
1279 * src/bison.simple: this.
1280 * src/Makefile.am: Use pkgdata instead of data.
1282 2000-12-20 Akim Demaille <akim@epita.fr>
1284 * src/files.c (guard_obstack): New.
1285 (open_files): Initialize it.
1286 (output_files): Dump it...
1287 * src/files.h: Export it.
1288 * src/reader.c (copy_guard): Use it.
1290 2000-12-19 Akim Demaille <akim@epita.fr>
1292 * src/files.c (outfile, defsfile, actfile): Removed as global
1294 (open_files): Don't compute them.
1295 (output_files): Adjust.
1296 (base_name, short_base_name): Be global.
1297 Adjust dependencies.
1299 2000-12-19 Akim Demaille <akim@epita.fr>
1301 * src/files.c (strsuffix): New.
1302 (stringappend): Be just like strcat but allocate.
1303 (base_names): Eve out from open_files.
1304 Try to simplify the rather hairy computation of base_name and
1306 (open_files): Use it.
1307 * tests/suite.at (Checking output file names): New test.
1309 2000-12-19 Akim Demaille <akim@epita.fr>
1311 * src/system.h (obstack_grow_literal_string): Rename as...
1312 (obstack_grow_string): this.
1313 * src/output.c (output_parser): Recognize `%% actions' instead of
1315 * src/bison.s1: s/$/%% actions/.
1316 * src/bison.hairy: Likewise.
1318 2000-12-19 Akim Demaille <akim@epita.fr>
1320 * src/output.c (output_parser): Compute the `#line' lines when
1322 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1323 Suggested by Hans Aberg.
1325 2000-12-19 Akim Demaille <akim@epita.fr>
1327 Let the handling of the skeleton files be local to the procedures
1330 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1332 (fparser, open_extra_files): Remove.
1333 (open_files, output_files): Don't take care of fparser.
1334 * src/files.h: Adjust.
1335 * src/output.c (output_parser): Open and close the file to the
1337 * src/reader.c (read_declarations): When %semantic_parser, open
1340 2000-12-19 Akim Demaille <akim@epita.fr>
1342 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1343 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1345 2000-12-19 Akim Demaille <akim@epita.fr>
1347 * src/files.c (open_files): Yipee! We no longer need all the code
1348 looking for `/tmp' since we have no tmp file.
1350 2000-12-19 Akim Demaille <akim@epita.fr>
1352 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1354 * src/files.c (open_files): Less dependency on MSDOS etc.
1356 2000-12-14 Akim Demaille <akim@epita.fr>
1358 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1359 Provide a default definition.
1360 Use it when executing the default @ action.
1361 * src/reader.c (reader_output_yylsp): No longer include
1362 `timestamp' and `text' in the default YYLTYPE.
1364 2000-12-12 Akim Demaille <akim@epita.fr>
1366 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1367 (copy_guard): Quote the file names.
1368 Reported by Laurent Mascherpa.
1370 2000-12-12 Akim Demaille <akim@epita.fr>
1372 * src/output.c (output_headers, output_program, output): Be sure
1373 to escape special characters when outputting filenames.
1374 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1375 (output_headers): Don't depend on them, Use ACTSTR.
1377 2000-11-17 Akim Demaille <akim@epita.fr>
1379 * lib/obstack.h: Formatting changes.
1380 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1381 prevents type checking.
1382 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1383 cast the value to (void *): assigning a `foo *' to a `void *'
1385 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1386 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1389 2000-11-17 Akim Demaille <akim@epita.fr>
1391 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1393 (suite.m4, regression.m4, calc.m4): these.
1394 * tests/atgeneral.m4: Update from CVS Autoconf.
1396 2000-11-17 Akim Demaille <akim@epita.fr>
1398 * tests/regression.m4 (%union and --defines): New test,
1399 demonstrating a current bug in the obstack implementation.
1401 2000-11-17 Akim Demaille <akim@epita.fr>
1403 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1405 Use them to declare the variables which are global or local to
1408 2000-11-17 Akim Demaille <akim@epita.fr>
1410 * acconfig.h: Remove, no longer used.
1412 2000-11-07 Akim Demaille <akim@epita.fr>
1414 * src: s/Copyright (C)/Copyright/g.
1416 2000-11-07 Akim Demaille <akim@epita.fr>
1418 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1420 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1422 2000-11-07 Akim Demaille <akim@epita.fr>
1424 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1425 Merge in a single CPP if/else.
1427 2000-11-07 Akim Demaille <akim@epita.fr>
1429 * src/output.c (output): Remove useless variables.
1430 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1431 argument `data' for consistency with the prototypes.
1433 (obstack_copy, obstack_copy0): Rename the second argument as
1434 `address' for consistency. Qualify it `const'.
1435 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1436 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1437 `const' their input argument (`data' or `address').
1438 Adjust the corresponding macros to include `const' in casts.
1440 2000-11-03 Akim Demaille <akim@epita.fr>
1442 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1443 s/PFILE1/BISON_HAIRY/.
1444 Adjust dependencies.
1446 2000-11-03 Akim Demaille <akim@epita.fr>
1448 For some reason, this was not applied.
1450 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1451 `unlink': it's no longer used.
1453 2000-11-03 Akim Demaille <akim@epita.fr>
1455 * src/files.c (skeleton_find): New function, eved out of...
1456 (open_files, open_extra_files): here.
1458 2000-11-03 Akim Demaille <akim@epita.fr>
1462 * src/files.c (obstack_save): New function.
1463 (done): Rename as...
1464 (output_files): this.
1466 * src/main.c (main): Don't use `atexit' to register `done', since
1467 it no longer has to remove tmp files, just call `output_files'
1468 when there are no errors.
1470 2000-11-02 Akim Demaille <akim@epita.fr>
1472 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1473 `unlink': it's no longer used.
1474 * src/files.h: Formatting changes.
1476 2000-11-02 Akim Demaille <akim@epita.fr>
1478 Remove the last uses of mktemp and unlink/delete.
1480 * src/files.c (fdefines, ftable): Removed.
1481 (defines_ostack, table_obstack): New.
1482 Adjust dependencies of the former into uses of the latter.
1483 * src/output.c (output_short_or_char_table, output_short_table):
1484 Convert to using obstacks.
1485 * src/reader.c (copy_comment2): Accept one FILE * and two
1487 (output_token_defines, reader_output_yylsp): Use obstacks.
1488 * src/system.h (obstack_fgrow3): New.
1490 2000-11-01 Akim Demaille <akim@epita.fr>
1492 Change each use of `fattrs' into a use of `attrs_obstack'.
1494 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1495 * src/files.c (fattrs): Remove.
1496 (attrs_obstack): New.
1497 Adjust all dependencies.
1498 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1500 2000-11-01 Akim Demaille <akim@epita.fr>
1503 Change each use of `faction' into a use of `action_obstack'.
1505 * lib/obstack.h, lib/obstack.c: New files.
1506 * src/files.c (faction): Remove.
1507 (action_obstack): New.
1508 Adjust all dependencies.
1510 2000-10-20 Akim Demaille <akim@epita.fr>
1512 * lib/quote.h (PARAMS): New macro. Use it.
1514 2000-10-16 Akim Demaille <akim@epita.fr>
1516 * src/output.c (output_short_or_char_table): New function.
1517 (output_short_table, output_token_translations): Use it.
1518 (goto_actions): Use output_short_table.
1520 2000-10-16 Akim Demaille <akim@epita.fr>
1522 * src/symtab.c (bucket_new): New function.
1525 * src/output.c (output_short_table): New argument to display the
1526 comment associated with the table.
1527 Adjust dependencies.
1528 (output_gram): Use it.
1529 (output_rule_data): Nicer output layout for YYTNAME.
1531 2000-10-16 Akim Demaille <akim@epita.fr>
1533 * src/lex.c (read_typename): New function.
1535 * src/reader.c (copy_dollar): Likewise.
1537 2000-10-16 Akim Demaille <akim@epita.fr>
1539 * src/reader.c (copy_comment2): Expect the input stream to be on
1540 the `/' which is suspected to open a comment, instead of being
1541 called after `//' or `/*' was read.
1542 (copy_comment, copy_definition, parse_union_decl, copy_action)
1543 (copy_guard): Adjust.
1545 2000-10-16 Akim Demaille <akim@epita.fr>
1547 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1548 `read_signed_integer'.
1550 2000-10-16 Akim Demaille <akim@epita.fr>
1552 * src/reader.c (copy_dollar): New function.
1553 (copy_guard, copy_action): Use it.
1555 2000-10-16 Akim Demaille <akim@epita.fr>
1557 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1558 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1559 New files, from Fileutils 4.0.27.
1560 * src/main.c (printable_version): Remove.
1561 * src/lex.c, src/reader.c: Use `quote'.
1563 2000-10-04 Akim Demaille <akim@epita.fr>
1565 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1567 2000-10-04 Akim Demaille <akim@epita.fr>
1569 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1571 2000-10-04 Akim Demaille <akim@epita.fr>
1573 When a literal string is used to define two different tokens,
1574 `bison -v' segfaults.
1575 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1577 * tests/regression.m4: New file.
1578 Include the core of the sample provided by Piotr Gackiewicz.
1579 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1582 2000-10-04 Akim Demaille <akim@epita.fr>
1584 * src/reader.c (parse_expect_decl): Keep `count' within the size
1588 2000-10-02 Paul Eggert <eggert@twinsun.com>
1590 * bison.s1 (yyparse): Assign the default value
1591 unconditionally, to avoid a GCC warning and make the parser a
1594 2000-10-02 Akim Demaille <akim@epita.fr>
1596 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1599 2000-10-02 Akim Demaille <akim@epita.fr>
1601 * src/derives.c, src/print.c, src/reduce.c: To ease the
1602 translation, move some `\n' out of the translated strings.
1604 2000-10-02 Akim Demaille <akim@epita.fr>
1606 The location tracking mechanism is precious for parse error
1607 messages. Nevertheless, it is enabled only when `@n' is used in
1608 the grammar, which is a different issue (you can use it in error
1609 message, but not in the grammar per se). Therefore, there should
1610 be another means to enable it.
1612 * src/getargs.c (getargs): Support `--locations'.
1614 * src/getargs.h (locationsflag): Export it.
1615 * src/lex.c (percent_table): Support `%locations'.
1616 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1617 with `locationsflag'.
1618 * doc/bison.texinfo: Document `--locations' and `%locations'.
1620 * tests/calc.m4: Test it.
1622 For regularity of the names, replace each
1623 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1624 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1625 In addition replace each `flag' with `_flag'.
1627 2000-10-02 Akim Demaille <akim@epita.fr>
1629 Also test parse error messages, including with YYERROR_VERBOSE.
1631 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1633 Use it to check the computations.
1634 Use it to check `nonassoc' is honored.
1635 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1636 `--yyerror-verbose'.
1637 (_AT_CHECK_CALC): Adjust to this option.
1638 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1640 2000-10-02 Akim Demaille <akim@epita.fr>
1642 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1643 the latter demonstrates a flaw in the handling of non debugging
1644 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1645 was used in order to simplify:
1661 unfortunately this leads to a CPP conflict when
1662 `--name-prefix=foo' is used since it produces `#define yydebug
1665 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1666 (YYDPRINTF): New macro.
1668 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1670 Also test `--verbose', `--defines' and `--name-prefix'.
1672 2000-10-02 Akim Demaille <akim@epita.fr>
1674 Improve the readability of the produced parsers.
1676 * src/bison.s1: Formatting changes.
1677 Improve the comment related to the `$' mark.
1678 (yydefault): Don't fall through to `yyresume': `goto' there.
1679 * src/output.c (output_parser): When the `$' is met, skip the end
1681 New variable, `number_of_dollar_signs', to check there's exactly
1682 one `$' in the parser skeleton.
1684 2000-10-02 Akim Demaille <akim@epita.fr>
1686 * lib/xstrdup.c: New file, from the fileutils.
1687 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1688 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1689 instead of strlen + xmalloc + strcpy.
1690 * src/symtab.c (copys): Remove, use xstrdup instead.
1692 2000-10-02 Akim Demaille <akim@epita.fr>
1694 * src/gram.h (associativity): New enum type which replaces the
1695 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1696 `right_assoc', `left_assoc' and `non_assoc'.
1697 Adjust all dependencies.
1698 * src/reader.c: Formatting changes.
1699 (LTYPESTR): Don't define it, use it as a literal in
1700 `reader_output_yylsp'.
1701 * src/symtab.h (symbol_class): New enum type which replaces the
1702 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1703 `sunknown', `stoken and `snterm'.
1705 2000-10-02 Akim Demaille <akim@epita.fr>
1707 * src/getargs.c (fixed_outfiles): Rename as...
1708 (yaccflag): for consistency and accuracy.
1709 Adjust dependencies.
1711 2000-10-02 Akim Demaille <akim@epita.fr>
1713 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1714 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1715 difficult and introduced a lot of core dump. It turns out that
1716 Bison used an implementation of `xmalloc' based on `calloc', and
1717 at various places it does depend upon the initialization to 0. I
1718 have not tried to isolate the pertinent places, and all the former
1719 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1720 someone should address this issue.
1722 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1723 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1725 Adjust dependencies.
1726 * src/warshall.h: New file.
1729 2000-10-02 Akim Demaille <akim@epita.fr>
1731 Various anti-`extern in *.c' changes.
1733 * src/system.h: Include `assert.h'.
1735 2000-10-02 Akim Demaille <akim@epita.fr>
1737 * src/state.h (nstates, final_state, first_state, first_shift)
1738 (first_reduction): Move their exportation from here...
1739 * src/LR0.h: to here.
1740 Adjust dependencies.
1741 * src/getargs.c (statisticsflag): New variable.
1742 Add support for `--statistics'.
1743 Adjust dependencies.
1745 Remove a lot of now useless `extern' statements in most files.
1747 2000-10-02 Akim Demaille <akim@epita.fr>
1749 * src/LR0.h: New file.
1752 2000-10-02 Akim Demaille <akim@epita.fr>
1754 * src/print.h: New file.
1756 * src/print.c: Formatting and ordering changes.
1757 (verbose, terse): Replace with...
1758 (print_results): this new function.
1759 Adjust dependencies.
1761 2000-10-02 Akim Demaille <akim@epita.fr>
1763 * src/conflicts.c (conflict_report): New function.
1764 (conflict_log, verbose_conflict_log): Replace with...
1765 (print_conflicts): this function.
1766 Adjust dependencies.
1767 * src/conflicts.h: New file.
1768 Propagate its inclusion.
1770 2000-10-02 Akim Demaille <akim@epita.fr>
1772 * src/nullable.h: New file.
1773 Propagate its inclusion.
1774 * src/nullable.c: Formatting changes.
1776 2000-10-02 Akim Demaille <akim@epita.fr>
1778 * src/reduce.h: New file.
1779 Propagate its inclusion.
1780 * src/reduce.c: Topological sort and other formatting changes.
1781 (bool, TRUE, FALSE): Move their definition to...
1782 * src/system.h: here.
1784 2000-10-02 Akim Demaille <akim@epita.fr>
1786 * src/files.c: Formatting changes.
1787 (tryopen, tryclose, openfiles): Rename as...
1788 (xfopen, xfclose, open_files): this.
1789 (stringappend): static.
1790 * src/files.h: Complete the list of exported symbols.
1793 2000-10-02 Akim Demaille <akim@epita.fr>
1795 * src/reader.h: New file.
1796 Propagate its use instead of tedious list of `extern' and
1798 * src/reader.c: Formatting changes, topological sort,
1801 2000-10-02 Akim Demaille <akim@epita.fr>
1803 * src/lex.h: Prototype `lex.c' exported functions.
1804 * src/reader.c: Adjust.
1805 * src/lex.c: Formatting changes.
1806 (safegetc): Rename as...
1809 2000-10-02 Akim Demaille <akim@epita.fr>
1811 * src/lalr.h: New file.
1812 Propagate its inclusion instead of prototypes and `extern'.
1813 * src/lalr.c: Formatting changes, topological sorting etc.
1815 2000-10-02 Akim Demaille <akim@epita.fr>
1817 * src/output.c (token_actions): Introduce a temporary array,
1818 YYDEFACT, that makes it possible for this function to use
1821 2000-10-02 Akim Demaille <akim@epita.fr>
1823 `user_toknums' is output as a `short[]' in `output.c', while it is
1824 defined as a `int[]' in `reader.c'. For consistency with the
1825 other output tables, `user_toknums' is now defined as a table of
1828 * src/reader.c (user_toknums): Be a short table instead of an int
1830 Adjust dependencies.
1832 Factor the short table outputs.
1834 * src/output.c (output_short_table): New function.
1835 * src/output.c (output_gram, output_stos, output_rule_data)
1836 (output_base, output_table, output_check): Use it.
1838 2000-10-02 Akim Demaille <akim@epita.fr>
1840 * src/output.c (output): Topological sort of the functions, in
1841 order to get rid of the `static' prototypes.
1842 No longer use `register'.
1843 * src/output.h: New file.
1844 Propagate its inclusion in files explicitly prototyping functions
1847 2000-09-21 Akim Demaille <akim@epita.fr>
1849 * src/atgeneral.m4: Update from Autoconf.
1851 2000-09-21 Akim Demaille <akim@epita.fr>
1853 * src/closure.h: New file.
1854 * src/closure.c: Formatting changes, topological sort over the
1855 functions, use of closure.h.
1856 (initialize_closure, finalize_closure): Rename as...
1857 (new_closure, free_closure): these. Adjust dependencies.
1858 * src/LR0.c: Formatting changes, topological sort, use of
1860 (initialize_states): Rename as...
1862 * src/Makefile.am (noinst_HEADERS): Adjust.
1864 2000-09-20 Akim Demaille <akim@epita.fr>
1866 * src/acconfig.h: Don't protect config.h against multiple
1868 Don't define PARAMS.
1869 * src/system.h: Define PARAMS.
1870 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1871 purpose of config.h. system.h must not try to fix wrong
1872 definitions in config.h.
1874 2000-09-20 Akim Demaille <akim@epita.fr>
1876 * src/derives.h: New file.
1877 * src/main.c, src/derives.h: Use it.
1879 * src/Makefile.am (noinst_HEADERS): Adjust.
1881 2000-09-20 Akim Demaille <akim@epita.fr>
1883 * tests/atgeneral.m4: Update from Autoconf.
1884 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1885 (AT_CHECK_CALC): New macros.
1886 Use these macros to test bison with options `', `--raw',
1887 `--debug', `--yacc', `--yacc --debug'.
1889 2000-09-19 Akim Demaille <akim@epita.fr>
1891 * src/output.c: Formatting changes.
1892 * src/machine.h: Remove, leaving its contents in...
1893 * src/system.h: here.
1895 Adjust all dependencies on stdio.h and machine.h.
1896 * src/getargs.h: New file.
1897 Let all `extern' declarations about getargs.c be replaced with
1898 inclusion of `getargs.h'.
1899 * src/Makefile.am (noinst_HEADERS): Adjust.
1901 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1903 (yyerror): Returns void, not int.
1904 * doc/bison.texinfo: Formatting changes.
1906 2000-09-19 Akim Demaille <akim@epita.fr>
1908 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1911 2000-09-18 Akim Demaille <akim@epita.fr>
1913 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1914 * src/Makefile.am (INCLUDES): Don't.
1915 Be ready to fetch headers in lib/.
1917 2000-09-18 Akim Demaille <akim@epita.fr>
1919 * doc/bison.texinfo: Update the copyright.
1920 ANSIfy and GNUify the examples.
1921 Remove the old menu.
1923 2000-09-18 Akim Demaille <akim@epita.fr>
1925 First set of tests: use the `calc' example from the documentation.
1927 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1928 is defined only when YYDEBUG is.
1929 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1930 * src/files.c (tryopen, tryclose): Formatting changes.
1931 Move to the top and be static.
1932 * src/reader.c (read_signed_integer): Likewise.
1933 * tests/calc.m4: New file.
1934 * Makefile.am, suite.m4: Adjust.
1935 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1937 2000-09-18 Akim Demaille <akim@epita.fr>
1939 Add support for an Autotest test suite for Bison.
1941 * m4/m4.m4, m4/atconfig.m4: New files.
1942 * m4/Makefile.am (EXTRA_DIST): Adjust.
1943 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1945 * src/getargs.c: Display a more standard --version message.
1946 * src/reader.c (reader): Formatting changes.
1947 No longer depend upon VERSION_STRING.
1948 * configure.in: No longer use `dnl'.
1949 Set up the test suite and the new directory `tests/.
1950 (VERSION_STRING): Remove.
1952 2000-04-14 Akim Demaille <akim@epita.fr>
1954 * src/reader.c (copy_comment2): New function, same as former
1955 `copy_comment', but outputs into two FILE *.
1956 (copy_comment): Use it.
1957 (parse_union_decl): Use it.
1958 (get_type, parse_start_decl): Use the same `invalid' message.
1959 (parse_start_decl, parse_union_decl): Use the same `multiple'
1961 (parse_union_decl, copy_guard, copy_action): Use the same
1962 `unmatched' message.
1963 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1965 2000-03-31 Akim Demaille <akim@epita.fr>
1967 * src/files.c (tryopen, tryclose): Move to the top.
1970 2000-03-31 Akim Demaille <akim@epita.fr>
1972 * src/main.c (main): Don't call `done', exit does it.
1974 2000-03-31 Akim Demaille <akim@epita.fr>
1976 * allocate.c: s/return (foo)/return foo/.
1979 * output.c: Likewise.
1980 * reader.c: Likewise.
1981 * symtab.c: Likewise.
1982 * vmsgetargs.c: Likewise.
1984 2000-03-31 Akim Demaille <akim@epita.fr>
1986 Clean up the error reporting functions.
1988 * src/report.c: New file.
1989 * src/report.h: Likewise.
1990 * src/Makefile.am: Adjust.
1991 * m4/error.m4: New file.
1992 * m4/Makefile.am: Adjust.
1993 * configure.in (jm_PREREQ_ERROR): Call it.
1994 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1996 (fatal, fatals): Remove. All callers use complain.c::fatal.
1997 (warn, warni, warns, warnss, warnss): Remove. All callers use
1998 complain.c::complain.
1999 (toomany): Remove, use fatal instead.
2000 * src/files.c (done): No argument, use complain_message_count.
2001 * src/main.c (main): Register `done' to `atexit'.
2003 * src/getargs.c (usage): More `fputs', less `fprintf'.
2005 2000-03-28 Akim Demaille <akim@epita.fr>
2007 * lib/: New directory.
2008 * Makefile.am (SUBDIRS): Adjust.
2009 * configure.in: Adjust.
2010 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2012 * src/alloca.c: Moved to lib/.
2013 * src/getopt.c: Likewise.
2014 * src/getopt1.c: Likewise.
2015 * src/getopt.h: Likewise.
2016 * src/ansi2knr.c: Likewise.
2017 * src/ansi2knr.1: Likewise.
2018 * src/Makefile.am: Adjust.
2019 * lib/Makefile.am: New file.
2021 2000-03-28 Akim Demaille <akim@epita.fr>
2023 * src/getargs.c (usage): Refresh the help message.
2025 2000-03-17 Akim Demaille <akim@epita.fr>
2027 * src/getopt1.c: Updated from textutils 2.0e
2028 * src/getopt.c: Likewise.
2029 * src/getopt.h: Likewise.
2031 2000-03-17 Akim Demaille <akim@epita.fr>
2033 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2034 the file name, not the whole `#line LINE FILE'.
2036 2000-03-17 Akim Demaille <akim@epita.fr>
2038 On syntax errors, report the token on which we choked.
2040 * src/bison.s1 (yyparse): In the label yyerrlab, when
2041 YYERROR_VERBOSE, add yychar in msg.
2043 2000-03-17 Akim Demaille <akim@epita.fr>
2045 * src/reader.c (copy_at): New function.
2046 (copy_guard): Use it.
2047 (copy_action): Use it.
2049 2000-03-17 Akim Demaille <akim@epita.fr>
2051 Be kind to translators, save some useless translations.
2053 * src/main.c (banner): New function.
2054 (fatal_banner): Use it.
2055 (warn_banner): Use it.
2057 2000-03-17 Akim Demaille <akim@epita.fr>
2059 * src/reader.c (copy_definition): Use copy_string and
2060 copy_comment. Removed now unused `match', `ended',
2062 (copy_comment, copy_string): Moved, to be visible from
2065 2000-03-17 Akim Demaille <akim@epita.fr>
2067 * src/reader.c (copy_string): Declare `static inline'. No
2068 problems with inline, since it is checked by configure.
2069 (copy_comment): Likewise.
2071 2000-03-17 Akim Demaille <akim@epita.fr>
2073 * src/reader.c (packsymbols): Formatting changes.
2075 2000-03-17 Akim Demaille <akim@epita.fr>
2077 * src/reader.c (copy_comment): New function, factored out from:
2078 (copy_action): Use it. Removed now unused `match', `ended',
2080 (copy_guard): Likewise.
2082 2000-03-17 Akim Demaille <akim@epita.fr>
2084 * src/reader.c (copy_string): New function, factored out from:
2085 (copy_action): Use it.
2086 (copy_guard): Likewise.
2088 2000-03-17 Akim Demaille <akim@epita.fr>
2090 Change the handling of @s so that they behave exactly like $s.
2091 There is now a pseudo variable @$ (readble and writable), location
2092 of the lhs of the rule (by default ranging from the location of
2093 the first symbol of the rhs, to the location of the last symbol,
2094 or, if the rhs is empty, YYLLOC).
2096 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2098 (yyparse): When providing a default semantic action, provide a
2099 default location action.
2100 (after the $): No longer change `*YYLSP', just stack YYLOC the
2101 same way you stack YYVAL.
2102 * src/reader.c (read_declarations): Use warns.
2103 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2104 (copy_action, case '@'): Likewise.
2105 Use a standard error message, to save useless work from
2108 2000-03-17 Akim Demaille <akim@epita.fr>
2110 * src/bison.s1: Formatting and cosmetics changes.
2111 * src/reader.c: Likewise.
2112 Update the Copyright notice.
2114 2000-03-17 Akim Demaille <akim@epita.fr>
2116 * src/bison.s1 (#line): All set to `#line' only, since the
2117 Makefile now handles them.
2119 2000-03-16 Akim Demaille <akim@epita.fr>
2121 * src/output.c (output_rule_data): Output the documentation of
2123 (Copyright notice): Update.
2126 2000-03-16 Akim Demaille <akim@epita.fr>
2128 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2129 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2130 One `#if YYDEBUG' remains, since it uses variables which are
2131 defined only if `YYDEBUG != 0'.
2133 2000-03-16 Akim Demaille <akim@epita.fr>
2135 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2136 and related variables so that the similarities are highlighted.
2138 2000-03-16 Akim Demaille <akim@epita.fr>
2140 * src/bison.s1: Properly indent CPP directives.
2142 2000-03-16 Akim Demaille <akim@epita.fr>
2144 * src/bison.s1: Properly indent the `alloca' CPP section.
2146 2000-03-16 Akim Demaille <akim@epita.fr>
2148 Do not hard code values of directories in `configure.in'.
2149 Update the `configure' tool chain.
2151 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2153 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2154 (AC_OUTPUT): Add m4/Makefile.
2155 Bump to bison 1.28a, 1.29 has never been released.
2156 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2157 handled via src/Makefile.am.
2158 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2159 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2161 * Makefile.am (SUBDIRS): Add m4.
2162 (ACLOCAL_AM_FLAGS): New variable.
2163 (AUTOMAKE_OPTIONS): Add check-news.
2164 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2165 the proper line number and file name.
2166 (DEFS): Propagate the location of bison library files and of the
2168 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2170 * acinclude.m4: Remove, replaced by the directory m4.
2171 * m4/Makefile.am (EXTRA_DIST): New variable.
2172 * m4/gettext.m4: New file, from the fileutils.
2173 * m4/lcmessage.m4: Likewise
2174 * m4/progtest.m4: Likewise.
2175 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2177 2000-03-10 Akim Demaille <akim@epita.fr>
2180 Formatting changes of various comments.
2181 Respect the GNU coding standards at various places.
2182 Don't use `_()' when no translation is needed.
2184 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2187 OS/2 honors TMPDIR environment variable.
2189 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2191 * doc/bison.texinfo: Tweaked spelling and grammar.
2193 Removed reference to price of printed copy.
2194 Mention BISON_SIMPLE and BISON_HAIRY.
2196 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2198 * configure.in, NEWS:
2199 Bison 1.29 released.
2201 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2203 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2204 Added reference card.
2206 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2208 * po/ru.po: Added Russian translation.
2210 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2212 * configure.in: Added Russian translation.
2214 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2216 * configure.in, NEWS, README:
2217 Released version 1.28.
2219 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2222 Squashed redefinition warning on some systems.
2224 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2225 Have configure build version string instead of relying on ANSI string
2228 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2230 * po/POTFILES.in: Got rid of version.c.
2232 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2234 * acconfig.h, configure.in:
2235 Have configure build version string instead of relying on ANSI string
2238 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2241 Dropped mention of `+' for long-named options.
2243 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2245 * src/files.c: Added <unistd.h> for unlink().
2247 * src/Makefile.am, src/system.h:
2250 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2252 * README: Added a FAQ list.
2254 * configure.in, acconfig.h:
2257 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2259 * doc/FAQ, doc/Makefile.am:
2262 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2264 * src/alloc.h, src/symtab.h, src/version.c:
2265 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2267 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2269 * src/.cvsignore, src/Makefile.am:
2270 Reorganized: sources in `src', documentation in `doc'.
2272 * src/lex.c (literalchar):
2273 fixed the code for escaping double quotes (thanks
2276 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2278 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2279 Adjusted paths to reflect directory reorganization.
2281 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2283 * doc/.cvsignore, doc/Makefile.am:
2284 Reorganized: sources in `src', documentation in `doc'.
2286 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2289 Updated AC_INIT file to reflect directory reorganization.
2291 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2292 Reorganized: sources in `src', documentation in `doc'.
2294 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2297 Don't declare calloc() and realloc() if not necessary.
2299 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2301 * configure.in, acconfig.h, acinclude.m4:
2302 Don't declare calloc() and realloc() if not necessary.
2304 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2306 * po/.cvsignore: Added i18n support.
2308 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2310 * acconfig.h, configure.in, Makefile.am:
2313 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2315 * src/bison.s1: Fixed #line numbers.
2317 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2319 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2320 Added PO files from Translation Project.
2322 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2325 Added support for non-ANSI compilers (ansi2knr).
2327 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2329 * configure.in: Bumped version number to 1.27.
2332 Added `bison.simple' to list of files removed by `make distclean'.
2334 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2336 * src/files.c, src/files.h:
2337 Defined locations of parser files in config.h instead of Makefile.
2339 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2341 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2342 Defined locations of parser files in config.h instead of Makefile.
2344 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2347 Removed inappropriate use of $< macro.
2349 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2351 * po/Makefile.in.in, po/POTFILES.in:
2352 Add `po' directory skeleton.
2354 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2356 * README: Document help-bison list.
2358 * configure.in: Add check for mkstemp().
2360 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2362 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2363 Hush a few compiler warnings.
2366 Add tryclose(), which verifies that fclose was successful.
2367 Hush a couple of compiler warnings.
2369 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2371 * Makefile.am, OChangeLog:
2372 ChangeLog is now automatically generated. Include the old version as
2375 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2377 * 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:
2380 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2382 * doc/bison.texinfo: Fix formatting glitch.
2384 * doc/bison.texinfo: Update FSF address.
2386 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2388 * acconfig.h: Update FSF address.
2390 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2393 Don't define PACKAGE here, since config.h defines it.
2395 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2397 * src/reader.c: Update copyright date.
2400 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2401 favor of output directly to stderr (avoids buffer overruns).
2403 * src/reader.c: Some checks for premature EOF.
2405 * 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:
2406 Use prototypes if the compiler understands them.
2408 * src/files.c: Honor TMPDIR on Unix hosts.
2409 Use prototypes if the compiler understands them.
2412 Fix a couple of buffer overrun bugs.
2413 Use prototypes if the compiler understands them.
2415 * src/system.h: Include unistd.h and ctype.h.
2416 Use #ifdef instead of #if for NLS symbols.
2418 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2420 * doc/bison.texinfo:
2421 Delete comment "consider using @set for edition number, etc..." since
2422 we now are doing so.
2424 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2427 Use prototypes if the compiler understands them.
2429 * NEWS: Document 1.26 highlights.
2431 * Makefile.am: Require Automake 1.3 or later.
2434 Use prototypes if the compiler understands them.
2436 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2439 Use VERSION symbol from automake for version number.
2441 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2443 * acconfig.h, configure.in, version.cin:
2444 Use VERSION symbol from automake for version number.
2446 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2449 Distribute original version of simple parser (bison.s1), not built
2450 version (bison.simple).
2452 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2454 * doc/bison.texinfo: Add info dir entry.
2456 * doc/bison.texinfo:
2457 Let automake put version number into documentation.
2459 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2461 * src/bison.cld, src/build.com, src/vmshlp.mar:
2462 Add non-RCS files from /gd/gnu/bison.
2464 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2467 Document the BISON_HAIRY and BISON_SIMPLE variables.
2469 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2471 * src/version.c: Build version.c automatically.
2474 Fix token numbering (used to start at 258, not 257).
2476 * src/system.h: Include config.h.
2478 * src/getargs.c: Update bug report address.
2480 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2481 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2483 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2486 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2488 * configure.in, version.cin:
2489 Build version.c automatically.
2491 * AUTHORS: Add AUTHORS file.
2493 * README: Update bug report address.
2496 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2498 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2501 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2503 * doc/bison.texinfo: Clean up some formatting.
2505 1998-05-05 Richard Stallman <rms@gnu.org>
2507 * doc/bison.texinfo:
2508 Explain better why to make a pure parser.
2510 1998-01-05 Richard Stallman <rms@gnu.org>
2512 * src/files.c (openfiles):
2513 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2514 find a temporary directory, if possible. Do not unlink files while
2517 1997-08-25 Richard Stallman <rms@gnu.org>
2519 * src/reader.c (stack_offset;):
2520 Change some warni to warns.
2522 * src/lex.c (literalchar): Use warns, not warni.
2524 1997-06-28 Richard Stallman <rms@gnu.org>
2526 * src/bison.s1: Add a Bison version comment.
2528 * src/main.c (fatal, warn, berror):
2531 1997-06-28 Richard Stallman <rms@gnu.org>
2533 * Makefile.in (bison_version): New variable.
2534 (dist): Use that variable.
2535 (bison.s1): Substitute the Bison version into bison.simple.
2537 * bison.simple: Add a Bison version comment.
2539 1997-06-18 Richard Stallman <rms@gnu.org>
2541 * src/main.c (fatal, warn, berror):
2542 Make error messages standard.
2543 (toomany): Improve error message text.
2545 * 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:
2546 new.h renamed to alloc.h.
2548 1997-06-18 Richard Stallman <rms@gnu.org>
2550 * Makefile.in: new.h renamed to alloc.h.
2552 1997-05-24 Richard Stallman <rms@gnu.org>
2554 * src/lex.c (literalchar):
2555 Fix the code for escaping \, " and '.
2557 (lex): Avoid trouble when there are many chars
2558 to discard in a char literal with just several chars in it.
2560 1997-05-17 Richard Stallman <rms@gnu.org>
2563 Use malloc, if using alloca is troublesome.
2564 (YYSTACK_USE_ALLOCA): New flag macro.
2565 Define it for some systems and compilers.
2566 (YYSTACK_ALLOC): New macro.
2567 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2568 If it was malloc'd, free it.
2570 1997-05-17 Richard Stallman <rms@gnu.org>
2573 Use malloc, if using alloca is troublesome.
2574 (YYSTACK_USE_ALLOCA): New flag macro.
2575 Define it for some systems and compilers.
2576 (YYSTACK_ALLOC): New macro.
2577 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2578 If it was malloc'd, free it.
2580 1997-04-23 Richard Stallman <rms@gnu.org>
2583 (alloca) [__hpux]: Always define as __builtin_alloca.
2585 1997-04-23 Richard Stallman <rms@gnu.org>
2588 (alloca) [__hpux]: Always define as __builtin_alloca.
2590 1997-04-22 Richard Stallman <rms@gnu.org>
2593 [__hpux]: Include alloca.h (right for HPUX 10)
2594 instead of declaring alloca (right for HPUX 9).
2596 * src/bison.s1 (__yy_memcpy):
2597 Declare arg `count' as unsigned int.
2598 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2600 1997-04-22 Richard Stallman <rms@gnu.org>
2603 [__hpux]: Include alloca.h (right for HPUX 10)
2604 instead of declaring alloca (right for HPUX 9).
2606 * bison.simple (__yy_memcpy):
2607 Declare arg `count' as unsigned int.
2608 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2610 1997-01-03 Richard Stallman <rms@gnu.org>
2612 * src/allocate.c: [__STDC__ or _MSC_VER]:
2613 Declare calloc and realloc to return void *.
2615 1997-01-02 Richard Stallman <rms@gnu.org>
2618 [_MSC_VER]: Include stdlib.h and process.h.
2619 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2621 * src/main.c (main): Return FAILURE as a value.
2622 (printable_version): Declare arg as int, not char.
2624 1997-01-02 Richard Stallman <rms@gnu.org>
2626 * Makefile.in (dist):
2627 Explicitly check for symlinks, and copy them.
2629 1996-12-19 Richard Stallman <rms@gnu.org>
2632 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2634 1996-12-18 Paul Eggert <eggert@gnu.org>
2636 * src/bison.s1 (yyparse):
2637 If __GNUC__ and YYPARSE_PARAM are both defined,
2638 declare yyparse to have a void * argument.
2640 1996-12-18 Paul Eggert <eggert@gnu.org>
2642 * bison.simple (yyparse):
2643 If __GNUC__ and YYPARSE_PARAM are both defined,
2644 declare yyparse to have a void * argument.
2646 1996-12-17 Richard Stallman <rms@gnu.org>
2648 * src/reduce.c (nbits): Add some casts.
2650 1996-08-12 Richard Stallman <rms@gnu.org>
2652 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2654 1996-08-12 Richard Stallman <rms@gnu.org>
2656 * bison.simple: Test _MSDOS as well as _MSDOS_.
2658 1996-07-31 Richard Stallman <rms@gnu.org>
2661 [__sun && __i386]: Include alloca.h.
2663 1996-07-31 Richard Stallman <rms@gnu.org>
2666 [__sun && __i386]: Include alloca.h.
2668 1996-07-30 Richard Stallman <rms@gnu.org>
2670 * src/bison.s1: Comment change.
2672 * src/bison.s1: Test _MSDOS_, not MSDOS.
2674 1996-07-30 Richard Stallman <rms@gnu.org>
2676 * bison.simple: Comment change.
2678 * bison.simple: Test _MSDOS_, not MSDOS.
2680 1996-06-01 Richard Stallman <rms@gnu.org>
2682 * 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:
2683 Insert `_' macro around many string constants.
2686 Insert `_' macro around many string constants.
2688 (main): Call setlocale, bindtextdomain and textdomain.
2690 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2691 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2692 [ENABLE_NLS]: Include libintl.h.
2693 [ENABLE_NLS] (gettext): Define.
2694 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2695 (N_, PACKAGE, LOCALEDIR): New macros.
2697 1996-06-01 Richard Stallman <rms@gnu.org>
2699 * POTFILES.in: New file.
2701 * Makefile.in (allocate.o):
2702 Define target explicitly.
2704 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2705 (LDFLAGS): Set to @LDFLAGS@.
2706 (configure): Run autoconf only if preceding `cd' succeeds.
2707 (bison.s1): Redirect output to temporary file then move the
2708 temporary to the target, rather than redirecting directly to bison.s1.
2709 (clean): Remove config.status and config.log.
2710 (distclean): Don't remove config.status here.
2712 1996-05-12 Richard Stallman <rms@gnu.org>
2715 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2717 1996-05-12 Richard Stallman <rms@gnu.org>
2720 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2722 1996-05-11 Richard Stallman <rms@gnu.org>
2724 * src/bison.s1 (__yy_memcpy):
2725 Really reorder the args, as was supposedly done on Feb 14 1995.
2726 (yyparse): Calls changed accordingly.
2728 1996-05-11 Richard Stallman <rms@gnu.org>
2730 * Makefile.in (dist): Don't use $(srcdir).
2732 * bison.simple (__yy_memcpy):
2733 Really reorder the args, as was supposedly done on Feb 14 1995.
2734 (yyparse): Calls changed accordingly.
2736 1996-01-27 Richard Stallman <rms@gnu.org>
2738 * src/output.c (output_rule_data):
2739 Test YYERROR_VERBOSE in the conditional
2740 around the definition of ttyname.
2742 1995-12-29 Richard Stallman <rms@gnu.org>
2745 Fix line numbers in #line commands.
2747 1995-12-29 Richard Stallman <rms@gnu.org>
2750 Fix line numbers in #line commands.
2752 1995-12-27 Richard Stallman <rms@gnu.org>
2754 * src/bison.s1 (YYPARSE_PARAM_DECL):
2755 In C++, make it always null.
2756 (YYPARSE_PARAM_ARG): New macro.
2757 (yyparse): Use YYPARSE_PARAM_ARG.
2759 1995-12-27 Richard Stallman <rms@gnu.org>
2761 * bison.simple (YYPARSE_PARAM_DECL):
2762 In C++, make it always null.
2763 (YYPARSE_PARAM_ARG): New macro.
2764 (yyparse): Use YYPARSE_PARAM_ARG.
2766 1995-11-29 Richard Stallman <rms@gnu.org>
2768 * doc/bison.texinfo:
2769 Describe literal string tokens, %raw, %no_lines, %token_table.
2771 1995-11-29 Daniel Hagerty <hag@gnu.org>
2773 * doc/bison.texinfo: Fixed update date
2775 1995-10-16 Richard Stallman <rms@gnu.org>
2777 * src/version.c: Version 1.25.
2779 1995-10-16 Richard Stallman <rms@gnu.org>
2781 * NEWS: *** empty log message ***
2783 1995-10-16 Richard Stallman <rms@gnu.org>
2785 * doc/bison.1, doc/bison.rnh:
2788 1995-10-15 Richard Stallman <rms@gnu.org>
2790 * src/vmsgetargs.c, src/getargs.c:
2791 Added -n, -k, and -raw switches.
2792 (noparserflag, toknumflag, rawtoknumflag): New variables.
2794 * src/symtab.h (SALIAS):
2795 New #define for adding aliases to %token.
2796 (struct bucket): Added `alias' field.
2798 * src/reduce.c (reduce_grammar):
2799 Revise error message.
2800 (print_notices): Remove final `.' from error message.
2802 * src/reader.c (reader_output_yylsp):
2804 (readgram): Use `#if 0' around code that accepted %command
2805 inside grammar rules: The documentation doesn't allow it,
2806 and it will fail since the %command processors scan for the next %.
2807 (parse_token_decl): Extended the %token
2808 declaration to allow a multi-character symbol as an alias.
2809 (parse_thong_decl): New function.
2810 (read_declarations): Added %thong declarations.
2811 (read_declarations): Handle NOOP to deal with allowing
2812 % declarations as another means to specify the flags.
2813 (readgram): Allow %prec prior to semantics embedded in a rule.
2814 (skip_to_char, read_declarations, copy_definition)
2815 (parse_token_decl, parse_start_decl, parse_type_decl)
2816 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2817 (get_type_name, copy_guard, copy_action, readgram)
2818 (get_type, packsymbols): Revised most error messages.
2819 Changed `fatal' to `warnxxx' to avoid aborting for error.
2820 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2821 (read_declarations): Improve the error message for
2822 an invalid character. Do not abort.
2823 (read_declarations, copy_guard, copy_action): Use
2824 printable_version to avoid unprintable characters in printed output.
2825 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2826 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2827 Allow the type of a non-terminal can be given
2828 more than once, as long as all specifications give the same type.
2831 (output_headers, output_trailers, output, output_gram)
2832 (output_rule_data): Implement noparserflag variable.
2833 Implement toknumflag variable.
2834 (output): Call reader_output_yylsp to output LTYPESTR.
2836 * src/main.c (main):
2837 If reader sees an error, don't process the grammar.
2838 (fatals): Updated to not use VARARGS1.
2839 (printable_version, int_to_string, warn, warni, warns, warnss)
2840 (warnsss): New error reporting functions. Avoid abort for error.
2843 Added THONG and NOOP for alias processing.
2844 Added SETOPT for the new code that allows setting options with %flags.
2847 Include getopt.h. Add some extern decls.
2848 (safegetc): New function to deal with EOF gracefully.
2849 (literalchar); new function to deal with reading \ escapes.
2850 (lex): Use literalchar.
2851 (lex): Implemented "..." tokens.
2852 (literalchar, lex, parse_percent_token): Made tokenbuffer
2853 always contain the token. This includes growing the token
2854 buffer while reading an integer.
2855 (parse_percent_token): Replaced if-else statement with percent_table.
2856 (parse_percent_token): Added % declarations as another
2857 way to specify the flags -n, -l, and -r. Also added hooks for
2858 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2859 major changes to files.c.
2860 (lex) Retain in the incoming stream a character following
2862 (skip_white_space, lex): Revised most error messages
2863 and changed fatal to warn to avoid aborting.
2864 (percent_table): Added %thong declarations.
2866 * src/gram.h: Comment changes.
2868 * src/files.c (openfiles, open_extra_files, done):
2870 and actfile file. Handle noparserflag. Both for -n switch.
2872 * src/conflicts.c (resolve_sr_conflict):
2873 Remove use of alloca.
2875 1995-06-01 Jim Meyering <meyering@gnu.org>
2877 * doc/bison.texinfo: *** empty log message ***
2879 1995-05-06 Richard Stallman <rms@gnu.org>
2881 * src/bison.s1: Comment change.
2883 1995-05-06 Richard Stallman <rms@gnu.org>
2885 * bison.simple: Comment change.
2887 1995-05-03 Richard Stallman <rms@gnu.org>
2889 * src/version.c: Version now 1.24.
2891 * src/bison.s1: Change distribution terms.
2893 * src/version.c: Version now 1.23.
2895 1995-05-03 Richard Stallman <rms@gnu.org>
2897 * doc/bison.texinfo:
2898 Rewrite "Conditions for Using Bison".
2899 Update version to 1.24.
2901 1995-05-03 Richard Stallman <rms@gnu.org>
2903 * bison.simple: Change distribution terms.
2905 1995-02-23 Richard Stallman <rms@gnu.org>
2907 * src/files.c: Test __VMS_POSIX as well as VMS.
2909 1995-02-14 Jim Meyering <meyering@gnu.org>
2911 * src/bison.s1 (__yy_memcpy):
2912 Renamed from __yy_bcopy to avoid
2913 confusion. Reverse FROM and TO arguments to be consistent with
2916 1995-02-14 Jim Meyering <meyering@gnu.org>
2918 * bison.simple (__yy_memcpy):
2919 Renamed from __yy_bcopy to avoid
2920 confusion. Reverse FROM and TO arguments to be consistent with
2923 1994-11-10 David J. MacKenzie <djm@gnu.org>
2929 * Makefile.in (DISTFILES): Include NEWS.
2931 * Makefile.in (DISTFILES):
2932 Include install-sh, not install.sh.
2934 * configure.in: Update to Autoconf v2 macro names.
2936 1994-10-05 David J. MacKenzie <djm@gnu.org>
2938 * Makefile.in: fix typo
2940 * Makefile.in (prefix, exec_prefix):
2941 Let configure set them.
2943 1994-09-28 David J. MacKenzie <djm@gnu.org>
2945 * Makefile.in: Set datadir to $(prefix)/share.
2947 1994-09-15 Richard Stallman <rms@gnu.org>
2950 Update copyright notice and GPL version.
2952 1994-09-15 Richard Stallman <rms@gnu.org>
2955 Update copyright notice and GPL version.
2957 1994-07-12 Richard Stallman <rms@gnu.org>
2959 * src/reduce.c, src/reader.c:
2962 1994-05-05 David J. MacKenzie <djm@gnu.org>
2964 * Makefile.in: entered into RCS
2966 1994-03-26 Richard Stallman <rms@gnu.org>
2968 * src/bison.s1: entered into RCS
2970 1994-03-26 Richard Stallman <rms@gnu.org>
2972 * bison.simple: entered into RCS
2974 1994-03-25 Richard Stallman <rms@gnu.org>
2976 * src/main.c: entered into RCS
2978 1994-03-24 Richard Stallman <rms@gnu.org>
2980 * src/conflicts.c: entered into RCS
2982 1994-01-02 Richard Stallman <rms@gnu.org>
2984 * Makefile.in: *** empty log message ***
2986 1993-11-21 Richard Stallman <rms@gnu.org>
2988 * src/bison.s1: *** empty log message ***
2990 1993-11-21 Richard Stallman <rms@gnu.org>
2992 * doc/bison.texinfo: entered into RCS
2994 * doc/bison.texinfo: *** empty log message ***
2996 1993-11-21 Richard Stallman <rms@gnu.org>
2998 * bison.simple: *** empty log message ***
3000 1993-10-25 David J. MacKenzie <djm@gnu.org>
3002 * doc/bison.texinfo: *** empty log message ***
3004 1993-10-19 Richard Stallman <rms@gnu.org>
3006 * src/bison.s1: *** empty log message ***
3008 1993-10-19 Richard Stallman <rms@gnu.org>
3010 * bison.simple: *** empty log message ***
3012 1993-10-14 Richard Stallman <rms@gnu.org>
3014 * src/bison.s1: *** empty log message ***
3016 1993-10-14 Richard Stallman <rms@gnu.org>
3018 * bison.simple: *** empty log message ***
3020 1993-09-14 David J. MacKenzie <djm@gnu.org>
3022 * doc/bison.texinfo: *** empty log message ***
3024 1993-09-13 Noah Friedman <friedman@gnu.org>
3026 * Makefile.in: *** empty log message ***
3028 1993-09-10 Richard Stallman <rms@gnu.org>
3030 * src/conflicts.c: *** empty log message ***
3032 * src/system.h: entered into RCS
3034 1993-09-10 Richard Stallman <rms@gnu.org>
3036 * doc/bison.1: entered into RCS
3038 1993-09-06 Noah Friedman <friedman@gnu.org>
3040 * src/version.c: entered into RCS
3042 1993-09-06 Noah Friedman <friedman@gnu.org>
3044 * Makefile.in: *** empty log message ***
3046 1993-07-30 David J. MacKenzie <djm@gnu.org>
3048 * Makefile.in: *** empty log message ***
3050 1993-07-24 Richard Stallman <rms@gnu.org>
3052 * src/bison.s1: *** empty log message ***
3054 1993-07-24 Richard Stallman <rms@gnu.org>
3056 * bison.simple: *** empty log message ***
3058 1993-07-08 David J. MacKenzie <djm@gnu.org>
3060 * Makefile.in: *** empty log message ***
3062 1993-07-04 Richard Stallman <rms@gnu.org>
3064 * src/bison.s1: *** empty log message ***
3066 1993-07-04 Richard Stallman <rms@gnu.org>
3068 * bison.simple: *** empty log message ***
3070 1993-06-26 David J. MacKenzie <djm@gnu.org>
3072 * src/getargs.c: entered into RCS
3074 1993-06-26 David J. MacKenzie <djm@gnu.org>
3076 * doc/bison.texinfo: *** empty log message ***
3078 * doc/bison.1: New file.
3080 1993-06-25 Richard Stallman <rms@gnu.org>
3082 * src/getargs.c: New file.
3084 1993-06-16 Richard Stallman <rms@gnu.org>
3086 * src/bison.s1: *** empty log message ***
3088 1993-06-16 Richard Stallman <rms@gnu.org>
3090 * bison.simple: *** empty log message ***
3092 1993-06-03 Richard Stallman <rms@gnu.org>
3094 * src/bison.s1: New file.
3096 1993-06-03 Richard Stallman <rms@gnu.org>
3098 * doc/bison.texinfo: *** empty log message ***
3100 1993-06-03 Richard Stallman <rms@gnu.org>
3102 * bison.simple: New file.
3104 1993-05-19 Richard Stallman <rms@gnu.org>
3106 * doc/bison.texinfo: New file.
3108 1993-05-07 Noah Friedman <friedman@gnu.org>
3110 * Makefile.in: *** empty log message ***
3112 1993-04-28 Noah Friedman <friedman@gnu.org>
3114 * src/reader.c: *** empty log message ***
3116 1993-04-23 Noah Friedman <friedman@gnu.org>
3118 * src/alloc.h: entered into RCS
3120 1993-04-20 David J. MacKenzie <djm@gnu.org>
3122 * src/version.c: *** empty log message ***
3124 * src/files.c, src/allocate.c:
3127 * src/reader.c: *** empty log message ***
3129 * src/lex.c: entered into RCS
3131 * src/conflicts.c: New file.
3133 * src/symtab.c: entered into RCS
3135 * src/alloc.h: New file.
3137 * src/LR0.c: entered into RCS
3139 1993-04-18 Noah Friedman <friedman@gnu.org>
3141 * src/reader.c: New file.
3143 * src/version.c: *** empty log message ***
3145 1993-04-18 Noah Friedman <friedman@gnu.org>
3147 * Makefile.in: *** empty log message ***
3149 1993-04-17 Noah Friedman <friedman@gnu.org>
3151 * Makefile.in: *** empty log message ***
3153 1993-04-15 Richard Stallman <rms@gnu.org>
3155 * src/main.c, src/files.c:
3158 1993-04-15 Noah Friedman <friedman@gnu.org>
3160 * configure.in: entered into RCS
3162 * configure.in: *** empty log message ***
3164 * configure.in: New file.
3166 1993-04-14 Richard Stallman <rms@gnu.org>
3168 * Makefile.in: New file.
3170 1993-04-13 Richard Stallman <rms@gnu.org>
3172 * src/version.c: New file.
3174 1993-03-25 Richard Stallman <rms@gnu.org>
3176 * src/output.c: entered into RCS
3178 1992-09-25 Richard Stallman <rms@gnu.org>
3180 * configure.bat: entered into RCS
3182 1992-06-22 Richard Stallman <rms@gnu.org>
3184 * src/vmsgetargs.c: entered into RCS
3186 1992-06-22 Richard Stallman <rms@gnu.org>
3188 * doc/bison.rnh: entered into RCS
3190 1992-04-20 David J. MacKenzie <djm@gnu.org>
3192 * README: entered into RCS
3194 1992-01-22 Richard Stallman <rms@gnu.org>
3196 * src/machine.h: entered into RCS
3198 1991-12-21 Richard Stallman <rms@gnu.org>
3200 * src/lalr.c, src/closure.c:
3203 1991-12-20 Richard Stallman <rms@gnu.org>
3205 * src/state.h: entered into RCS
3207 1991-12-18 Richard Stallman <rms@gnu.org>
3209 * src/print.c, src/nullable.c, src/derives.c:
3212 1991-11-03 David J. MacKenzie <djm@gnu.org>
3214 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3217 1988-09-09 Richard Stallman <rms@gnu.org>
3219 * src/bison.hairy: entered into RCS
3221 1987-12-16 Richard Stallman <rms@gnu.org>
3223 * REFERENCES: entered into RCS