1 2001-11-02 Akim Demaille <akim@epita.fr>
3 * doc/refcard.tex: Update.
5 2001-11-02 Akim Demaille <akim@epita.fr>
7 * src/symtab.h (SUNDEF): New.
8 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
9 stand for `uninitialized', instead of 0.
10 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
11 * src/lex.c (lex): Adjust.
13 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
15 Let yylex return it instead of a plain 0.
16 Reported by Dick Streefland.
18 2001-11-02 Akim Demaille <akim@epita.fr>
20 * tests/regression.at (Mixing %token styles): New test.
22 2001-11-02 Akim Demaille <akim@epita.fr>
24 * src/reader.c (parse_thong_decl): Formatting changes.
25 (token_translations_init): New, extracted from...
29 2001-11-01 Akim Demaille <akim@epita.fr>
31 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
32 Check that `9foo.y' produces correct cpp guards.
33 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
37 2001-11-01 Akim Demaille <akim@epita.fr>
39 * tests/regression.at (Invalid input: 2): New.
40 * src/lex.c (unlexed_token_buffer): New.
41 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
45 2001-11-01 Akim Demaille <akim@epita.fr>
47 * tests/calc.at: Catch up with 1.30.
48 * configure.in: Bump to 1.49a.
49 Adjust to newer Autotest.
51 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
53 * src/conflicts.c: Move global variables rrc_total and src_total ...
54 (print_conflicts): here.
55 * src/output.c (output): Free global variable user_toknums.
56 * src/lex.c (token_obstack): Become static.
58 2001-10-18 Akim Demaille <akim@epita.fr>
60 * tests/atlocal.in (GCC): Add.
61 * tests/calc.at: s/m4_match/m4_bmatch/.
62 s/m4_patsubst/m4_bpatsubst/.
63 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
64 * configure.in: AC_SUBST(GCC).
66 2001-10-14 Marc Autret <autret_m@epita.fr>
68 * src/options.c (create_long_option_table): Fix.
70 2001-10-10 Akim Demaille <akim@epita.fr>
72 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
74 2001-10-04 Akim Demaille <akim@epita.fr>
76 * src/reader.c (parse_union_decl): Push the caracters in
77 union_obstack, not attrs_obstack.
79 2001-10-04 Akim Demaille <akim@epita.fr>
81 Merge in the branch 1.29.
83 * src/reader.c (packsymbols): Use a temporary obstack for
84 `%%tokendef', since output_stack is already used elsewhere.
86 2001-10-02 Akim Demaille <akim@epita.fr>
90 2001-10-02 Akim Demaille <akim@epita.fr>
94 2001-10-02 Akim Demaille <akim@epita.fr>
96 * tests/regression.at (Invalid CPP headers): New.
97 From Alexander Belopolsky.
98 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
100 2001-10-02 Akim Demaille <akim@epita.fr>
102 * tests/regression.at (Invalid input): New.
103 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
106 2001-10-02 Akim Demaille <akim@epita.fr>
108 * tests/calc.at: Now that --debug works, the tests must be adjusted.
110 2001-10-02 Akim Demaille <akim@epita.fr>
112 * src/output.c (output_parser): Assert `skeleton'.
113 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
117 2001-10-01 Marc Autret <autret_m@epita.fr>
119 * src/lex.h: Echo modifications.
120 * src/lex.c (unlex): Parameter is now token_t.
123 2001-10-01 Marc Autret <autret_m@epita.fr>
125 * src/main.c: Include lex.h.
128 2001-09-29 Akim Demaille <akim@epita.fr>
130 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
132 2001-09-28 Akim Demaille <akim@epita.fr>
134 * tests/testsuite.at: Update to newer Autotest.
135 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
137 2001-09-27 Akim Demaille <akim@epita.fr>
139 Position independent wrapper.
141 * tests/bison: Remove.
142 * tests/bison.in: New.
143 * configure.in: Adjust.
145 2001-09-27 Paul Eggert <eggert@twinsun.com>
147 Port quotearg fixes from tar 1.13.24.
149 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
151 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
152 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
154 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
155 * m4/mbrtowc.m4: New file.
156 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
157 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
159 2001-09-27 Akim Demaille <akim@epita.fr>
163 2001-09-27 Akim Demaille <akim@epita.fr>
167 2001-09-25 Akim Demaille <akim@epita.fr>
169 * src/system.h: Include `xalloc.h'.
170 Remove it from the C files.
171 * src/files.c (output_files): Free the obstacks.
172 * src/lex.c (init_lex): Rename as...
175 * src/main.c (main): Use it.
177 2001-09-24 Marc Autret <autret_m@epita.fr>
179 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
180 to output informations in fout (FILE*).
181 (open_graph, close_graph): Likewise.
182 (output_graph, output_edge, output_node): Likewise.
183 * src/vcg.h: Update function prototypes.
184 * src/print_graph.c (print_graph): Open output graph file.
185 (print_actions): Adjust.
186 * src/files.h: Remove extern declaration.
187 * src/files.c: Remove graph_obstack declaration.
188 (open_files): Remove graph_obstack initialization.
189 (output_files): Remove graph_obstack saving.
191 2001-09-24 Marc Autret <autret_m@epita.fr>
193 * src/files.c (compute_output_file_names): Fix.
195 2001-09-24 Marc Autret <autret_m@epita.fr>,
196 Akim Demaille <akim@epita.fr>
198 * src/reader.c (reader): Remove call to free_symtab ().
199 * src/main.c (main): Call it here.
201 * src/conflicts.c (initialize_conflicts): Rename as...
202 (solve_conflicts): this.
203 * src/print.c (print_core, print_actions, print_state)
204 (print_grammar): Dump to a file instead a `output_obstack'.
205 (print_results): Dump `output_obstack', and then proceed with the
207 * src/files.c (compute_output_file_names, close_files): New.
208 (output_files): Adjust.
209 * src/main.c (main): Adjust.
211 2001-09-23 Marc Autret <autret_m@epita.fr>
213 * src/files.c (compute_header_macro): Computes header macro name
214 from spec_defines_file when given.
216 2001-09-23 Marc Autret <autret_m@epita.fr>
218 * src/files.c (output_files): Add default extensions.
220 2001-09-22 Akim Demaille <akim@epita.fr>
222 * src/conflicts.c (finalize_conflicts): Rename as...
223 (free_conflicts): this.
225 2001-09-22 Akim Demaille <akim@epita.fr>
227 * src/gram.c (gram_free): Rename back as...
229 (output_token_translations): Free `token_translations'.
230 * src/symtab.c (free_symtab): Free the tag field.
232 2001-09-22 Akim Demaille <akim@epita.fr>
234 Remove `translations' as it is always set to true.
236 * src/gram.h: Adjust.
237 * src/reader.c (packsymbols, parse_token_decl): Adjust
238 * src/print.c (print_grammar): Adjust.
239 * src/output.c (output_token_translations): Adjust.
240 * src/lex.c (lex): Adjust.
241 * src/gram.c: Be sure the set pointers to NULL.
242 (dummy): Rename as...
245 2001-09-22 Akim Demaille <akim@epita.fr>
247 * configure.in: Invoke AM_LIB_DMALLOC.
248 * src/system.h: Use dmalloc.
249 * src/LR0.c: Be sure to have pointers initialized to NULL.
250 (allocate_itemsets): Allocate kernel_items only if needed.
252 2001-09-22 Akim Demaille <akim@epita.fr>
254 * configure.in: Bump to 1.29b.
255 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
256 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
257 need xmalloc.c in calc.y.
260 2001-09-21 Akim Demaille <akim@epita.fr>
263 * Makefile.maint, config/config.guess, config/config.sub,
264 * config/missing: Update from masters.
265 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
267 * configure.in (ALL_LINGUAS): Add `tr'.
269 2001-09-21 Akim Demaille <akim@epita.fr>
271 * tests/Makefile.am (package.m4): Move to...
272 ($(srcdir)/$(TESTSUITE)): here.
274 2001-09-20 Akim Demaille <akim@epita.fr>
276 * src/complain.c: No longer try to be standalone: use system.h.
277 Don't assume __STDC__ is defined to 1. Just test if it is defined.
278 * src/complain.h: Likewise.
279 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
280 Remove the unused variable `n'.
281 From Albert Chin-A-Young.
283 2001-09-18 Marc Autret <autret_m@epita.fr>
285 * doc/bison.1: Update.
286 * doc/bison.texinfo (Bison Options): Update --defines and --graph
288 (Option Cross Key): Update.
291 2001-09-18 Marc Autret <autret_m@epita.fr>
293 * tests/regression.at: New test (comment in %union).
295 2001-09-18 Marc Autret <autret_m@epita.fr>
297 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
299 Reported by Keith Browne.
301 2001-09-18 Marc Autret <autret_m@epita.fr>
303 * tests/output.at: Add tests for --defines and --graph.
305 2001-09-18 Marc Autret <autret_m@epita.fr>
307 * tests/output.at: Removes tests of %{header,src}_extension features.
309 2001-09-18 Akim Demaille <akim@epita.fr>
311 * tests/Makefile.am (package.m4): New.
312 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
313 (_AT_CHECK_CALC_ERROR): Likewise.
314 Factor the `, ' part of verbose error messages.
316 2001-09-18 Marc Autret <autret_m@epita.fr>
318 * src/getargs.c (longopts): Declare --defines and --graph as options
319 with optional arguments.
320 * src/files.h: Add extern declarations.
321 * src/files.c (spec_graph_file, spec_defines_file): New.
322 (output_files): Update.
323 Remove CPP-outed code.
325 2001-09-18 Marc Autret <autret_m@epita.fr>
327 Turn off %{source,header}_extension feature.
329 * src/files.c (compute_exts_from_gf): Update.
330 (compute_exts_from_src): Update.
331 (output_files): CPP-out useless code.
332 * src/files.h: Remove {header,source}_extension extern declarations.
333 * src/reader.c (parse_dquoted_param): CPP-out.
334 (parse_header_extension_decl): Remove.
335 (parse_source_extension_decl): Remove.
336 (read_declarations): Remove cases tok_{hdrext,srcext}.
337 * src/lex.c (percent_table): Remove {header,source}_extension entries.
338 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
340 2001-09-10 Akim Demaille <akim@epita.fr>
342 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
343 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
344 (AT_CHECK_OUTPUT): this.
345 Merely check ls' exit status, its output is useless.
347 2001-09-10 Akim Demaille <akim@epita.fr>
349 * tests/calc.at: Use m4_match.
350 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
352 2001-09-10 Marc Autret <autret_m@epita.fr>,
353 Akim Demaille <akim@epita.fr>
355 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
357 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
359 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
360 * src/lex.h: Adjust prototype.
361 (token_t): Add `tok_undef'.
362 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
363 (parse_percent_token): Now returns token_t.
364 Add default statement in switch.
365 (lex): Separate `c' as an input variable, from the token_t result
367 (unlexed): Is a token_t.
369 2001-09-10 Akim Demaille <akim@epita.fr>
371 * configure.in: Bump to 1.29a.
373 2001-09-07 Akim Demaille <akim@epita.fr>
377 2001-08-30 Akim Demaille <akim@epita.fr>
379 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
380 * m4/atconfig.m4: Remove.
381 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
383 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
384 m4_if, m4_patsubst, and m4_regexp.
385 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
386 `input' file instead of echo.
388 2001-08-29 Akim Demaille <akim@epita.fr>
392 2001-08-29 Akim Demaille <akim@epita.fr>
396 2001-08-29 Paul Eggert <eggert@twinsun.com>
398 * src/bison.simple (yyparse): Don't take the address of an
399 item before the start of an array, as that doesn't conform to
402 2001-08-29 Robert Anisko <anisko_r@epita.fr>
404 * doc/bison.texinfo (Location Tracking Calc): New node.
406 2001-08-29 Paul Eggert <eggert@twinsun.com>
408 * src/output.c (output): Do not define const, as this now
409 causes more problems than it cures.
411 2001-08-29 Akim Demaille <akim@epita.fr>
413 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
415 Be sure to tag the `detailmenu'.
417 2001-08-29 Akim Demaille <akim@epita.fr>
419 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
420 download in a tmp dir.
422 2001-08-28 Marc Autret <autret_m@epita.fr>
424 * config/depcomp: New file.
426 2001-08-28 Marc Autret <autret_m@epita.fr>
428 * doc/bison.1 (mandoc): Adjust.
429 From Juan Manuel Guerrero.
431 2001-08-28 Marc Autret <autret_m@epita.fr>
433 * src/print_graph.c (print_state): Fix.
435 2001-08-27 Marc Autret <autret_m@epita.fr>
437 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
439 Echo modifications to the functions prototypes.
440 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
442 2001-08-27 Marc Autret <autret_m@epita.fr>
444 * src/vcg.c: Include `xalloc.h'.
445 (add_colorentry): New.
446 (add_classname): New.
448 * src/vcg.h: Add new prototypes.
450 2001-08-27 Akim Demaille <akim@epita.fr>
452 * Makefile.maint: Sync. again with CVS Autoconf.
454 2001-08-27 Akim Demaille <akim@epita.fr>
456 * Makefile.maint: Formatting changes.
457 (po-update, cvs-update, update): New targets.
460 2001-08-27 Akim Demaille <akim@epita.fr>
462 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
463 * Makefile.maint: Sync. with CVS Autoconf.
465 2001-08-27 Marc Autret <autret_m@epita.fr>
467 * src/vcg.h (struct infoname_s): New.
468 (struct colorentry_s): New.
469 (graph_s): New fields {vertical,horizontal}_order in structure.
470 Add `infoname' field.
471 Add `colorentry' field;
472 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
473 (G_HORIZONTAL_ORDER): New.
476 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
477 Add output of `infoname'.
478 Add output of `colorentry'.
480 2001-08-27 Marc Autret <autret_m@epita.fr>
482 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
483 This one shadowed a global parameter.
485 2001-08-24 Marc Autret <autret_m@epita.fr>
487 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
488 instead of `unsigned'.
489 (print_state): Do not call obstack_object_size () in obstack_grow ()
490 to avoid macro variables shadowing.
492 2001-08-23 Marc Autret <autret_m@epita.fr>
494 * src/lex.c (percent_table): Typo: s/naem/name/.
496 Normalize new options declarations.
498 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
500 * tests/suite.at: Exercise %header_extension and %source_extension.
502 2001-08-16 Marc Autret <autret_m@epita.fr>
504 * src/reader.c (parse_dquoted_param): New.
505 (parse_header_extension_decl): Use it.
506 (parse_source_extension_decl): Likewise.
508 2001-08-16 Marc Autret <autret_m@epita.fr>
510 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
511 (get_xxxx_str): Use assert () instead of complain ().
512 Remove return invokations in default cases.
513 (get_decision_str): Modify default behaviour. Remove second argument.
514 Echo modifications on calls.
517 2001-08-16 Marc Autret <autret_m@epita.fr>
519 * src/getargs.c (usage): Update with ``-g, --graph''.
521 2001-08-16 Marc Autret <autret_m@epita.fr>
523 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
524 (Option Cross Key): Likewise.
525 * doc/bison.1: Update.
527 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
529 * src/output.c (output_master_parser): Don't finish action_obstack.
530 (output_parser): Don't care about the muscle action, here.
531 (prepare): Copy the action_obstack in the action muscle.
532 (output): Free action_obstack.
534 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
536 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
537 will contain `%union' declaration.
538 (parse_union_decl): Delete #line directive output.
539 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
540 informations about %union.
541 (parse_union_decl): Copy the union_obstack in the muscle stype.
542 * src/bison.simple: Add new #line directive.
543 Add typdef %%stype YYSTYPE.
545 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
547 * src/bison.simple: Add new `#line' directive.
549 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
551 * src/bison.simple: New `#line' directive.
552 * src/output.c (output_parser): Support new dynamic muscle input_line.
554 2001-09-22 Marc Autret <autret_m@epita.fr>
556 * src/output.c (output_master_parser): New.
557 (output_parser): Be more re-entrant.
559 2001-09-21 Marc Autret <autret_m@epita.fr>
561 * src/reader.c (copy_definition, parse_union_decl): Update and use
563 (copy_action): Likewise.
564 Use obstack_1grow ().
565 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
567 2001-09-21 Marc Autret <autret_m@epita.fr>
569 * src/options.c (option_table): Adjust.
570 * src/lex.c (parse_percent_token): Fix.
572 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
574 * src/options.c (symtab.h): Include it, need by lex.h.
576 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
578 * src/lex.c (parse_percent_token): Change type of variable `tx', which
579 is now an option_table_struct*.
580 (option_strcmp): New function option_strcmp.
581 (parse_percent_token): Call option_strcmp.
582 * src/getargs.c (xalloc.h, options.h): Include it.
583 (getargs): Call create_long_option_table.
584 (getargs): Free longopts at the end of the function.
585 (shortopts): Move in options.c.
586 * src/options.c (create_long_option_table): New function. Convert
587 information from option_table to option structure.
588 * src/reader.c (options.h): Include it.
590 * src/Makefile.am: Adjust.
591 * src/options.c (option_table): Create from longopts and percent_table.
592 * src/getargs.c (longopts): Delete.
593 * src/lex.c (struct percent_table_struct): Delete.
594 (percent_table): Delete.
595 (options.h): Include it.
596 * src/options.c: Create.
597 * src/options.h: Create.
598 Declare enum opt_access_e.
599 Define struct option_table_struct.
601 2001-09-20 Marc Autret <autret_m@epita.fr>
603 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
606 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
608 * src/bison.simple: s/%%filename/%%skeleton.
609 * src/muscle_tab.c (getargs.h): Include it.
610 (muscle_init): Insert new muscle skeleton.
612 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
614 * src/output.c (output_parser): Delete unused variable actions_dumped.
616 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
618 * src/output.c (output): Delete call to reader_output_yylsp.
619 * src/reader.c (reader): Likewise.
620 * src/reader.h: Delete declaration of reader_output_yylsp.
622 2001-09-02 Marc Autret <autret_m@epita.fr>
624 * src/reader.c: Include muscle_tab.h.
625 (parse_union_decl): Update.
626 (parse_macro_decl): Rename parse_muscle_decl.
627 Update to use renamed functions and variable.
628 (read_declarations, copy_action, read_additionnal_code, : Updated
629 with correct variables and functions names.
630 (packsymbols, reader): Likewise.
632 * src/reader.h (muscle_obstack): Extern declaration update.
634 * src/output.c: Include muscle_tab.h
635 In all functions using macro_insert, change by using muscle_insert ().
636 (macro_obstack): Rename muscle_obstack.
637 Echo modifications in the whole file.
638 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
639 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
640 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
642 * src/muscle_tab.h: Update double inclusion macros.
643 (macro_entry_s): Rename muscle_entry_s.
646 * src/muscle_tab.c: Include muscle_tab.h.
647 Rename macro_tabble to muscle_table.
648 (mhash1, mhash2, mcmp): Use muscle_entry.
649 (macro_init): Rename muscle_init. Update.
650 (macro_insert): Rename muscle_insert. Update.
651 (macro_find): Rename muscle_find. Update.
653 * src/main.c: Include muscle_tab.h.
654 (main): Call muscle_init ().
655 * src/Makefile.am (bison_SOURCES): Echo modifications.
657 2001-09-02 Marc Autret <autret_m@epita.fr>
659 Now the files macro_tab.[ch] are named muscle_tab.[ch].
661 * src/muscle_tab.c, src/muscle_tab.h: Add files.
663 2001-09-02 Marc Autret <autret_m@epita.fr>
665 * src/macrotab.c, src/macrotab.h: Remove.
667 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
669 * src/reader.c (copy_guard): Use muscle to specify the `#line'
672 2001-09-01 Marc Autret <autret_m@epita.fr>
674 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
675 to an explicit value to activate the feature. We do it here.
677 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
679 * src/output.c (prepare): Delete the `filename' muscule insertion.
680 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
681 (parse_union_decl): Likewise.
682 * src/macrotab.c (macro_init): Initialize filename by infile.
684 2001-08-31 Marc Autret <autret_m@epita.fr>
686 * src/bison.simple (YYLSP_NEEDED): New definition.
687 * src/output.c (prepare): Add macro insertion of `locations_flag'
689 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
691 * src/output.c (prepare): Delete insertion of previous muscles,
692 and insert the `prefix' muscles.
693 * src/macrotab.c (macro_init): Likewise.
694 (macro_init): Initialization prefix directive by `yy'.
695 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
696 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
697 yylval, yydebug, yyerror, yynerrs and yyparse.
698 New directive `#define' to substitute yydebug, ... with option
701 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
703 * src/main.c (main): Standardize.
704 * src/output.c (output_table_data, output_parser): Likewise.
705 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
707 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
709 * src/reader.c (read_additionnal_code): Rename %%user_code to
711 * src/output.c (output): Rename %%declarations to %%prologue.
712 * src/bison.simple: Echo modifications.
714 2001-08-31 Marc Autret <autret_m@epita.fr>
716 * src/reader.c (readgram): CleanUp.
717 (output_token_defines): Likewise.
718 (packsymbols): Likewise.
720 * src/output.c (output): CPP-out useless code.
722 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
724 * src/reader.c (reader): Delete obsolete call to function
725 output_trailers and output_headers.
726 * src/output.h: Remove obsolete functions prototypes of output_headers
729 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
731 * src/main.c: Include macrotab.h.
732 * src/macrotab.h (macro_entry_s): Constify fields.
733 Adjust functions prototypes.
734 * src/macrotab.c (macro_insert): Constify key and value.
735 (macro_find): Constify key.
736 (macro_insert): Include 'xalloc.h'
737 (macro_insert): Use XMALLOC.
738 (macro_find): Constify return value.
739 * src/output.c (output_table_data): Rename table to table_data.
740 (output_parser): Constify macro_key, macro_value.
742 2001-08-30 Marc Autret <autret_m@epita.fr>
744 * src/reader.c (parse_skel_decl): New.
745 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
746 * src/lex.h (token_t): New token `tok_skel'.
747 * src/lex.c (percent_table): Add skeleton option entry.
750 2001-08-29 Marc Autret <autret_m@epita.fr>
752 * src/bison.simple: Add %%user_code directive at the end.
753 * src/reader.c (read_additionnal_code): New.
755 * src/output.c (output_program): Remove.
758 2001-08-28 Marc Autret <autret_m@epita.fr>
760 * src/output.c (output_actions): Clean up.
761 (output_gram): CPP-out useless code.
762 * src/reader.c (reader): Clean up, CPP-out useless code.
764 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
766 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
768 * src/bison.simple: Add `%%definitions'.
770 2001-08-28 Marc Autret <autret_m@epita.fr>
772 * config/depcomp: New file.
774 2001-08-27 Paul Eggert <eggert@twinsun.com>
776 * src/bison.simple (yyparse): Don't take the address of an
777 item before the start of an array, as that doesn't conform to
780 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
782 * src/output.c (output): Remove the initialization of the macro
783 obstack. It was done too late here.
785 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
787 (reader): Initialize the macro obstack here, since we need it to grow
788 '%define' directives.
790 * src/reader.h: Declare the macro obstack as extern.
792 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
794 * src/output.c (output_parser): Fix. Store single '%' characters in
795 the output obstack instead of throwing them away.
797 2001-08-27 Akim Demaille <akim@epita.fr>
799 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
801 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
803 * lib/Makefile.am: Adjust.
805 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
807 * src/bison.simple: Update and add '%%' directives.
809 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
811 * src/reader.c (reader): Remove calls to 'output_headers' and
812 'output_trailers'. Remove some C output.
813 (readgram): Disable a piece of code that was writing a default
814 definition for 'YYSTYPE'.
815 (reader_output_yylsp): Remove.
816 (packsymbols): Output token defintions to a macro.
817 (copy_definition): Disable C output.
819 * src/reader.c (parse_macro_decl): New function used to parse macro
821 (copy_string2): Put the body of copy_string into this new function.
822 Add a parameter to let the caller choose whether he wants to copy the
823 string delimiters or not.
824 (copy_string): Be a simple call to copy_string2 with the last argument
826 (read_declarations): Add case for macro definition.
827 (copy_identifier): New.
828 (parse_macro_decl): Read macro identifiers using copy_identifier
831 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
833 * src/output.c (prepare): Add prefixed names.
834 (output_parser): Output semantic actions.
835 (output_parser): Fix bug on '%%line' directives.
837 * src/output.c (output_headers): Remove. The C code printed by this
838 function should now be in the skeletons.
839 (output_trailers): Remove.
840 (output): Disable call to 'reader_output_yylsp'.
841 (output_rule_data): Do not output tables to the table obstack.
843 * src/output.c: Remove some C dedicated output.
844 Improve the use of macro and output obstacks.
845 (output_defines): Remove.
847 * src/output.c (output_token_translations): Associate 'translate'
848 table with a macro. No output to the table obstack.
849 (output_gram): Same for 'rhs' and 'prhs'.
850 (output_stos): Same for 'stos'.
851 (output_rule_data): Same for 'r1' and 'r2'.
852 (token_actions): Same for 'defact'.
853 (goto_actions): Same for 'defgoto'.
854 (output_base): Same for 'pact' and 'pgoto'.
855 (output_table): Same for 'table'.
856 (output_check): Same for 'check'.
858 * src/output.c (output_table_data): New function.
859 (output_short_table): Remove.
860 (output_short_or_char_table): Remove.
862 * src/output.c (output_parser): Replace most of the skeleton copy code
863 with something new. Skeletons are now processed character by character
864 rather than line by line, and Bison looks for '%%' macros. This is the
865 first step in making Bison's output process (a lot) more flexible.
866 (output_parser): Use the macro table.
868 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
870 * src/main.c (main): Initialize the macro table.
872 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
874 * src/lex.c (percent_table): Add tok_define.
875 * src/lex.h: Add tok_define.
877 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
879 * src/macrotab.c: New file.
880 * src/macrotab.h: New file.
881 * src/Makefile.am: Update.
883 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
885 * lib/hash.c: New file.
886 * lib/hash.h: New file.
887 * lib/Makefile.am: Update.
889 2001-08-15 Akim Demaille <akim@epita.fr>
893 2001-08-15 Marc Autret <autret_m@epita.fr>
895 * src/reader.c (readgram): Indent output macro YYSTYPE.
896 (packsymbols): Likewise.
897 (output_token_defines): Likewise.
898 * src/files.c: Standardize.
899 (compute_header_macro): New.
900 (defines_obstack_save): New. Use compute_header_macro.
901 (output_files): Update. Use defines_obstack_save.
903 2001-08-15 Akim Demaille <akim@epita.fr>
905 * doc/bison.texinfo (Table of Symbols): Document
908 2001-08-15 Akim Demaille <akim@epita.fr>
910 * missing: Update from CVS Automake.
911 * config/config.guess, config/config.sub, config/texinfo.tex:
914 2001-08-15 Akim Demaille <akim@epita.fr>
916 * Makefile.maint: Sync with CVS Autoconf.
918 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
920 * doc/bison.texinfo: Include GNU Free Documentation License from
922 * doc/fdl.texi: Add to package.
924 2001-08-14 Marc Autret <autret_m@epita.fr>
926 Turn on %{source,header}_extension features.
928 * src/lex.c (percent_table): Un-CPP out header_extension and
930 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
931 (compute_exts_from_src): Remove conditions. It restores priorities
934 2001-08-14 Marc Autret <autret_m@epita.fr>
936 * src/files.c (compute_base_names): Add extensions computing when
937 `--file-prefix' used.
938 Standardize function calls.
940 2001-08-13 Marc Autret <autret_m@epita.fr>
942 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
943 defining it (defined but null disables alloca).
945 2001-08-13 Marc Autret <autret_m@epita.fr>
947 * src/bison.simple (_yy_memcpy): CPP reformat.
949 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
951 * tests/atconfig.in (CPPFLAGS): Fix.
953 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
955 * doc/bison.texinfo: Include GNU General Public License from
957 * doc/gpl.texi: Add to package.
959 2001-08-10 Marc Autret <autret_m@epita.fr>
961 * src/print_graph.h: Fix.
962 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
964 2001-08-10 Akim Demaille <akim@epita.fr>
966 * src/system.h: Provide default declarations for stpcpy, strndup,
969 2001-08-10 Robert Anisko <anisko_r@epita.fr>
971 * doc/bison.texinfo (Locations): Update @$ stuff.
973 2001-08-09 Robert Anisko <anisko_r@epita.fr>
975 * src/bison.simple (YYLLOC_DEFAULT): Update.
978 2001-08-08 Marc Autret <autret_m@epita.fr>
980 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
981 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
982 Reported by Fabrice Bauzac.
984 2001-08-08 Marc Autret <autret_m@epita.fr>
986 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
987 * src/vcg.c (output_node): Fix.
988 * src/vcg.h: Cleanup.
989 * src/print_graph.c: Add comments.
990 (node_output_size): New global variable. Simplify the formatting of
991 the VCG graph output.
992 (print_actions): Unused code is now used. It notifies the final state
993 and no action states in the VCG graph. It also give the reduce actions.
994 The `shift and goto' edges are red and the `go to state' edges are
996 Get the current node name and node_obstack by argument.
997 (node_obstack): New variable.
998 (print_state): Manage node_obstack.
999 (print_core): Use node_obstack given by argument.
1000 A node is not only computed here but in print_actions also.
1001 (print_graph): CPP out useless code instead of commenting it.
1003 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1005 * tests/atconfig.in (CPPFLAGS): Fix.
1007 2001-08-07 Akim Demaille <akim@epita.fr>
1009 * src/print_graph.c (quote): New.
1010 (print_core): Use it.
1012 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1014 * src/vcg.c (complain.h): Include it.
1015 Unepitaize `return' invocations.
1016 [NDEBUG] (main): Remove.
1017 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1018 * src/files.c (open_files): Initialize graph_obstack.
1019 * src/print_graph.c (print_actions): CPP out useless code.
1020 (print_core): Don't output the last `\n' in labels.
1022 * src/files.c (output_files): Output the VCG file.
1023 * src/main.c (main): Invoke print_graph ();
1025 2001-08-06 Marc Autret <autret_m@epita.fr>
1027 Automaton VCG graph output.
1028 Using option ``-g'' or long option ``--graph'', you can generate
1029 a gram_filename.vcg file containing a VCG description of the LALR (1)
1030 automaton of your grammar.
1032 * src/main.c: Call to print_graph() function.
1033 * src/getargs.h: Update.
1034 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1035 (graph_flag): New flag.
1037 (getargs): Add case `g'.
1038 * src/files.c (graph_obstack): New obstack struct.
1039 (open_files): Initialize new obstack.
1040 (output_files): Saves graph_obstack if required.
1041 * src/files.h (graph_obstack): New extern declaration.
1042 * src/Makefile.am: Add new source files.
1044 2001-08-06 Marc Autret <autret_m@epita.fr>
1046 * src/print_graph.c, src/print_graph.h (graph): New.
1047 * src/vcg.h: New file.
1048 * src/vcg.c: New file, VCG graph handling.
1050 2001-08-06 Marc Autret <autret_m@epita.fr>
1052 Add of %source_extension and %header_extension which specify
1053 the source or/and the header output file extension.
1055 * src/files.c (compute_base_names): Remove initialisation of
1056 src_extension and header_extension.
1057 (compute_exts_from_gf): Update.
1058 (compute_exts_from_src): Update.
1059 (output_files): Update.
1060 * src/reader.c (parse_header_extension_decl): New.
1061 (parse_source_extension_decl): New.
1062 (read_declarations): New case statements for the new tokens.
1063 * src/lex.c (percent_table): Add entries for %source_extension
1064 and %header_extension.
1065 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1067 2001-08-06 Marc Autret <autret_m@epita.fr>
1069 * configure.in: Bump to 1.28c.
1070 * doc/bison.texinfo: Texinfo thingies.
1072 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1074 * tests/atconfig.in (CPPFLAGS): Add.
1075 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1077 2001-08-03 Akim Demaille <akim@epita.fr>
1081 2001-08-03 Akim Demaille <akim@epita.fr>
1083 * tests/Makefile.am (check-local): Ship testsuite.
1084 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1087 2001-08-03 Akim Demaille <akim@epita.fr>
1089 * configure.in: Try using -Wformat when compiling.
1091 2001-08-03 Akim Demaille <akim@epita.fr>
1093 * configure.in: Bump to 1.28b.
1095 2001-08-03 Akim Demaille <akim@epita.fr>
1097 * src/complain.c: Adjust strerror_r portability issues.
1099 2001-08-03 Akim Demaille <akim@epita.fr>
1103 2001-08-03 Akim Demaille <akim@epita.fr>
1105 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1106 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1107 * src/getargs.c: Include complain.h.
1108 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1109 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1111 2001-08-03 Akim Demaille <akim@epita.fr>
1113 * src/reader.c (readgram): Display hidden chars in error messages.
1115 2001-08-03 Akim Demaille <akim@epita.fr>
1117 Update to gettext 0.10.39.
1119 2001-08-03 Akim Demaille <akim@epita.fr>
1121 * lib/strspn.c: New.
1123 2001-08-01 Marc Autret <autret_m@epita.fr>
1125 * doc/bison.texinfo: Update.
1126 * doc/bison.1 (mandoc): Update.
1127 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1128 * src/files.c: Support output files extensions computing.
1129 (src_extension): New static variable.
1130 (header_extension): New static variable.
1132 (get_extension_index): New function, gets the index of an extension
1133 filename in a string.
1134 (compute_exts_from_gf): New function, computes extensions from the
1135 grammar file extension.
1136 (compute_exts_from_src): New functions, computes extensions from the
1137 C source file extension, file given by ``-o'' option.
1138 (compute_base_names): Update.
1139 (output_files): Update.
1141 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1143 * doc/bison.texi: Document @$.
1144 (Locations): New section.
1146 2001-07-18 Akim Demaille <akim@epita.fr>
1148 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1149 * config/prev-version.txt, config/move-if-change: New.
1150 * Makefile.am: Adjust.
1152 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1154 * src/bison.simple (yyparse): Suppress warning `comparaison
1155 between signed and unsigned'.
1157 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1159 * src/getargs.h (raw_flag): Remove.
1160 * src/getargs.c: Die on `-r'/`--raw'.
1161 * src/lex.c (parse_percent_token): Die on `%raw'.
1162 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1163 * tests/calc.at: Suppress test with option `--raw'.
1165 2001-07-14 Akim Demaille <akim@epita.fr>
1168 * configure.in: Require Autoconf 2.50.
1169 Update to gettext 0.10.38.
1171 2001-03-16 Akim Demaille <akim@epita.fr>
1173 * doc/bison.texinfo: ANSIfy the examples.
1175 2001-03-16 Akim Demaille <akim@epita.fr>
1177 * getargs.c (skeleton): New variable.
1178 (longopts): --skeleton is a new option.
1179 (shortopts, getargs): -S is a new option.
1180 * getargs.h: Declare skeleton.
1181 * output.c (output_parser): Use it.
1183 2001-03-16 Akim Demaille <akim@epita.fr>
1185 * m4/strerror_r.m4: New.
1186 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1187 * lib/error.h, lib/error.c: Update.
1189 2001-03-16 Akim Demaille <akim@epita.fr>
1191 * src/getargs.c (longopts): Clean up.
1193 2001-02-21 Akim Demaille <akim@epita.fr>
1195 * src/reader.c (gensym): `gensym_count' is your own.
1196 Use a static buf to create the symbol name, as token_buffer is no
1199 2001-02-08 Akim Demaille <akim@epita.fr>
1201 * src/conflicts.c (conflict_report): Be sure not to append to res
1202 between two calls, which could happen if both first sprintf were
1203 skipped, but not the first cp += strlen.
1205 2001-02-08 Akim Demaille <akim@epita.fr>
1207 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1208 New, from fileutils 4.0.37.
1209 * configure.in: Require Autoconf 2.49c. I took some time before
1210 making this decision. This is the only way out for portability
1211 issues in Bison, it would mean way too much duplicate effort to
1212 import in Bison features implemented in 2.49c since 2.13.
1213 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1215 2001-02-02 Akim Demaille <akim@epita.fr>
1217 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1218 * lib/xalloc.h, lib/xmalloc.c: Update.
1220 2001-01-19 Akim Demaille <akim@epita.fr>
1222 Get rid of the ad hoc handling of token_buffer in the scanner: use
1225 * src/lex.c (token_obstack): New.
1226 (init_lex): Initialize it. No longer call...
1227 (grow_token_buffer): this. Remove it.
1228 Adjust all the places which used it to use the obstack.
1230 2001-01-19 Akim Demaille <akim@epita.fr>
1232 * src/lex.h: Rename all the tokens:
1233 s/\bENDFILE\b/tok_eof/g;
1234 s/\bIDENTIFIER\b/tok_identifier/g;
1236 Let them be enums, not #define, to ease debugging.
1237 Adjust all the code.
1239 2001-01-18 Akim Demaille <akim@epita.fr>
1241 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1242 * src/lex.c (maxtoken, grow_token_buffer): Static.
1244 2001-01-18 Akim Demaille <akim@epita.fr>
1246 Since we now use obstacks, more % directives can be enabled.
1248 * src/lex.c (percent_table): Also accept `%yacc',
1249 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1251 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1252 instead of returning a token.
1253 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1254 * src/reader.c (read_declarations): Adjust.
1255 * src/files.c (open_files): Don't call `compute_base_names', don't
1256 compute `attrsfile' since they depend upon data which might be
1257 *in* the input file now.
1258 (output_files): Do it here.
1259 * src/output.c (output_headers): Document the fact that this patch
1260 introduces a guaranteed SEGV for semantic parsers.
1261 * doc/bison.texinfo: Document them.
1262 * tests/suite.at: Exercise these %options.
1264 2000-12-20 Akim Demaille <akim@epita.fr>
1266 Also handle the output file (--verbose) with obstacks.
1268 * files.c (foutput): Remove.
1269 (output_obstack): New.
1270 Adjust all dependencies.
1271 * src/conflicts.c: Return a string.
1272 * src/system.h (obstack_grow_string): Rename as...
1273 (obstack_sgrow): this. Be ready to work with non literals.
1274 (obstack_fgrow4): New.
1276 2000-12-20 Akim Demaille <akim@epita.fr>
1278 * src/files.c (open_files): Fix the computation of short_base_name
1279 in the case of `-o foo.tab.c'.
1281 2000-12-20 Akim Demaille <akim@epita.fr>
1283 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1284 (copy_dollar): Now that everything uses obstacks, get rid of the
1287 2000-12-20 Akim Demaille <akim@epita.fr>
1289 * src/files.c (open_files): Actually the `.output' file is based
1290 on the short_base_name, not base_name.
1291 * tests/suite.at (Checking output file names): Adjust.
1293 2000-12-20 Akim Demaille <akim@epita.fr>
1295 * src/bison.s1: Remove, we now use directly...
1296 * src/bison.simple: this.
1297 * src/Makefile.am: Use pkgdata instead of data.
1299 2000-12-20 Akim Demaille <akim@epita.fr>
1301 * src/files.c (guard_obstack): New.
1302 (open_files): Initialize it.
1303 (output_files): Dump it...
1304 * src/files.h: Export it.
1305 * src/reader.c (copy_guard): Use it.
1307 2000-12-19 Akim Demaille <akim@epita.fr>
1309 * src/files.c (outfile, defsfile, actfile): Removed as global
1311 (open_files): Don't compute them.
1312 (output_files): Adjust.
1313 (base_name, short_base_name): Be global.
1314 Adjust dependencies.
1316 2000-12-19 Akim Demaille <akim@epita.fr>
1318 * src/files.c (strsuffix): New.
1319 (stringappend): Be just like strcat but allocate.
1320 (base_names): Eve out from open_files.
1321 Try to simplify the rather hairy computation of base_name and
1323 (open_files): Use it.
1324 * tests/suite.at (Checking output file names): New test.
1326 2000-12-19 Akim Demaille <akim@epita.fr>
1328 * src/system.h (obstack_grow_literal_string): Rename as...
1329 (obstack_grow_string): this.
1330 * src/output.c (output_parser): Recognize `%% actions' instead of
1332 * src/bison.s1: s/$/%% actions/.
1333 * src/bison.hairy: Likewise.
1335 2000-12-19 Akim Demaille <akim@epita.fr>
1337 * src/output.c (output_parser): Compute the `#line' lines when
1339 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1340 Suggested by Hans Aberg.
1342 2000-12-19 Akim Demaille <akim@epita.fr>
1344 Let the handling of the skeleton files be local to the procedures
1347 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1349 (fparser, open_extra_files): Remove.
1350 (open_files, output_files): Don't take care of fparser.
1351 * src/files.h: Adjust.
1352 * src/output.c (output_parser): Open and close the file to the
1354 * src/reader.c (read_declarations): When %semantic_parser, open
1357 2000-12-19 Akim Demaille <akim@epita.fr>
1359 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1360 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1362 2000-12-19 Akim Demaille <akim@epita.fr>
1364 * src/files.c (open_files): Yipee! We no longer need all the code
1365 looking for `/tmp' since we have no tmp file.
1367 2000-12-19 Akim Demaille <akim@epita.fr>
1369 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1371 * src/files.c (open_files): Less dependency on MSDOS etc.
1373 2000-12-14 Akim Demaille <akim@epita.fr>
1375 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1376 Provide a default definition.
1377 Use it when executing the default @ action.
1378 * src/reader.c (reader_output_yylsp): No longer include
1379 `timestamp' and `text' in the default YYLTYPE.
1381 2000-12-12 Akim Demaille <akim@epita.fr>
1383 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1384 (copy_guard): Quote the file names.
1385 Reported by Laurent Mascherpa.
1387 2000-12-12 Akim Demaille <akim@epita.fr>
1389 * src/output.c (output_headers, output_program, output): Be sure
1390 to escape special characters when outputting filenames.
1391 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1392 (output_headers): Don't depend on them, Use ACTSTR.
1394 2000-11-17 Akim Demaille <akim@epita.fr>
1396 * lib/obstack.h: Formatting changes.
1397 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1398 prevents type checking.
1399 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1400 cast the value to (void *): assigning a `foo *' to a `void *'
1402 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1403 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1406 2000-11-17 Akim Demaille <akim@epita.fr>
1408 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1410 (suite.m4, regression.m4, calc.m4): these.
1411 * tests/atgeneral.m4: Update from CVS Autoconf.
1413 2000-11-17 Akim Demaille <akim@epita.fr>
1415 * tests/regression.m4 (%union and --defines): New test,
1416 demonstrating a current bug in the obstack implementation.
1418 2000-11-17 Akim Demaille <akim@epita.fr>
1420 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1422 Use them to declare the variables which are global or local to
1425 2000-11-17 Akim Demaille <akim@epita.fr>
1427 * acconfig.h: Remove, no longer used.
1429 2000-11-07 Akim Demaille <akim@epita.fr>
1431 * src: s/Copyright (C)/Copyright/g.
1433 2000-11-07 Akim Demaille <akim@epita.fr>
1435 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1437 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1439 2000-11-07 Akim Demaille <akim@epita.fr>
1441 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1442 Merge in a single CPP if/else.
1444 2000-11-07 Akim Demaille <akim@epita.fr>
1446 * src/output.c (output): Remove useless variables.
1447 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1448 argument `data' for consistency with the prototypes.
1450 (obstack_copy, obstack_copy0): Rename the second argument as
1451 `address' for consistency. Qualify it `const'.
1452 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1453 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1454 `const' their input argument (`data' or `address').
1455 Adjust the corresponding macros to include `const' in casts.
1457 2000-11-03 Akim Demaille <akim@epita.fr>
1459 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1460 s/PFILE1/BISON_HAIRY/.
1461 Adjust dependencies.
1463 2000-11-03 Akim Demaille <akim@epita.fr>
1465 For some reason, this was not applied.
1467 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1468 `unlink': it's no longer used.
1470 2000-11-03 Akim Demaille <akim@epita.fr>
1472 * src/files.c (skeleton_find): New function, eved out of...
1473 (open_files, open_extra_files): here.
1475 2000-11-03 Akim Demaille <akim@epita.fr>
1479 * src/files.c (obstack_save): New function.
1480 (done): Rename as...
1481 (output_files): this.
1483 * src/main.c (main): Don't use `atexit' to register `done', since
1484 it no longer has to remove tmp files, just call `output_files'
1485 when there are no errors.
1487 2000-11-02 Akim Demaille <akim@epita.fr>
1489 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1490 `unlink': it's no longer used.
1491 * src/files.h: Formatting changes.
1493 2000-11-02 Akim Demaille <akim@epita.fr>
1495 Remove the last uses of mktemp and unlink/delete.
1497 * src/files.c (fdefines, ftable): Removed.
1498 (defines_ostack, table_obstack): New.
1499 Adjust dependencies of the former into uses of the latter.
1500 * src/output.c (output_short_or_char_table, output_short_table):
1501 Convert to using obstacks.
1502 * src/reader.c (copy_comment2): Accept one FILE * and two
1504 (output_token_defines, reader_output_yylsp): Use obstacks.
1505 * src/system.h (obstack_fgrow3): New.
1507 2000-11-01 Akim Demaille <akim@epita.fr>
1509 Change each use of `fattrs' into a use of `attrs_obstack'.
1511 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1512 * src/files.c (fattrs): Remove.
1513 (attrs_obstack): New.
1514 Adjust all dependencies.
1515 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1517 2000-11-01 Akim Demaille <akim@epita.fr>
1520 Change each use of `faction' into a use of `action_obstack'.
1522 * lib/obstack.h, lib/obstack.c: New files.
1523 * src/files.c (faction): Remove.
1524 (action_obstack): New.
1525 Adjust all dependencies.
1527 2000-10-20 Akim Demaille <akim@epita.fr>
1529 * lib/quote.h (PARAMS): New macro. Use it.
1531 2000-10-16 Akim Demaille <akim@epita.fr>
1533 * src/output.c (output_short_or_char_table): New function.
1534 (output_short_table, output_token_translations): Use it.
1535 (goto_actions): Use output_short_table.
1537 2000-10-16 Akim Demaille <akim@epita.fr>
1539 * src/symtab.c (bucket_new): New function.
1542 * src/output.c (output_short_table): New argument to display the
1543 comment associated with the table.
1544 Adjust dependencies.
1545 (output_gram): Use it.
1546 (output_rule_data): Nicer output layout for YYTNAME.
1548 2000-10-16 Akim Demaille <akim@epita.fr>
1550 * src/lex.c (read_typename): New function.
1552 * src/reader.c (copy_dollar): Likewise.
1554 2000-10-16 Akim Demaille <akim@epita.fr>
1556 * src/reader.c (copy_comment2): Expect the input stream to be on
1557 the `/' which is suspected to open a comment, instead of being
1558 called after `//' or `/*' was read.
1559 (copy_comment, copy_definition, parse_union_decl, copy_action)
1560 (copy_guard): Adjust.
1562 2000-10-16 Akim Demaille <akim@epita.fr>
1564 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1565 `read_signed_integer'.
1567 2000-10-16 Akim Demaille <akim@epita.fr>
1569 * src/reader.c (copy_dollar): New function.
1570 (copy_guard, copy_action): Use it.
1572 2000-10-16 Akim Demaille <akim@epita.fr>
1574 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1575 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1576 New files, from Fileutils 4.0.27.
1577 * src/main.c (printable_version): Remove.
1578 * src/lex.c, src/reader.c: Use `quote'.
1580 2000-10-04 Akim Demaille <akim@epita.fr>
1582 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1584 2000-10-04 Akim Demaille <akim@epita.fr>
1586 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1588 2000-10-04 Akim Demaille <akim@epita.fr>
1590 When a literal string is used to define two different tokens,
1591 `bison -v' segfaults.
1592 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1594 * tests/regression.m4: New file.
1595 Include the core of the sample provided by Piotr Gackiewicz.
1596 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1599 2000-10-04 Akim Demaille <akim@epita.fr>
1601 * src/reader.c (parse_expect_decl): Keep `count' within the size
1605 2000-10-02 Paul Eggert <eggert@twinsun.com>
1607 * bison.s1 (yyparse): Assign the default value
1608 unconditionally, to avoid a GCC warning and make the parser a
1611 2000-10-02 Akim Demaille <akim@epita.fr>
1613 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1616 2000-10-02 Akim Demaille <akim@epita.fr>
1618 * src/derives.c, src/print.c, src/reduce.c: To ease the
1619 translation, move some `\n' out of the translated strings.
1621 2000-10-02 Akim Demaille <akim@epita.fr>
1623 The location tracking mechanism is precious for parse error
1624 messages. Nevertheless, it is enabled only when `@n' is used in
1625 the grammar, which is a different issue (you can use it in error
1626 message, but not in the grammar per se). Therefore, there should
1627 be another means to enable it.
1629 * src/getargs.c (getargs): Support `--locations'.
1631 * src/getargs.h (locationsflag): Export it.
1632 * src/lex.c (percent_table): Support `%locations'.
1633 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1634 with `locationsflag'.
1635 * doc/bison.texinfo: Document `--locations' and `%locations'.
1637 * tests/calc.m4: Test it.
1639 For regularity of the names, replace each
1640 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1641 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1642 In addition replace each `flag' with `_flag'.
1644 2000-10-02 Akim Demaille <akim@epita.fr>
1646 Also test parse error messages, including with YYERROR_VERBOSE.
1648 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1650 Use it to check the computations.
1651 Use it to check `nonassoc' is honored.
1652 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1653 `--yyerror-verbose'.
1654 (_AT_CHECK_CALC): Adjust to this option.
1655 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1657 2000-10-02 Akim Demaille <akim@epita.fr>
1659 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1660 the latter demonstrates a flaw in the handling of non debugging
1661 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1662 was used in order to simplify:
1678 unfortunately this leads to a CPP conflict when
1679 `--name-prefix=foo' is used since it produces `#define yydebug
1682 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1683 (YYDPRINTF): New macro.
1685 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1687 Also test `--verbose', `--defines' and `--name-prefix'.
1689 2000-10-02 Akim Demaille <akim@epita.fr>
1691 Improve the readability of the produced parsers.
1693 * src/bison.s1: Formatting changes.
1694 Improve the comment related to the `$' mark.
1695 (yydefault): Don't fall through to `yyresume': `goto' there.
1696 * src/output.c (output_parser): When the `$' is met, skip the end
1698 New variable, `number_of_dollar_signs', to check there's exactly
1699 one `$' in the parser skeleton.
1701 2000-10-02 Akim Demaille <akim@epita.fr>
1703 * lib/xstrdup.c: New file, from the fileutils.
1704 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1705 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1706 instead of strlen + xmalloc + strcpy.
1707 * src/symtab.c (copys): Remove, use xstrdup instead.
1709 2000-10-02 Akim Demaille <akim@epita.fr>
1711 * src/gram.h (associativity): New enum type which replaces the
1712 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1713 `right_assoc', `left_assoc' and `non_assoc'.
1714 Adjust all dependencies.
1715 * src/reader.c: Formatting changes.
1716 (LTYPESTR): Don't define it, use it as a literal in
1717 `reader_output_yylsp'.
1718 * src/symtab.h (symbol_class): New enum type which replaces the
1719 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1720 `sunknown', `stoken and `snterm'.
1722 2000-10-02 Akim Demaille <akim@epita.fr>
1724 * src/getargs.c (fixed_outfiles): Rename as...
1725 (yaccflag): for consistency and accuracy.
1726 Adjust dependencies.
1728 2000-10-02 Akim Demaille <akim@epita.fr>
1730 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1731 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1732 difficult and introduced a lot of core dump. It turns out that
1733 Bison used an implementation of `xmalloc' based on `calloc', and
1734 at various places it does depend upon the initialization to 0. I
1735 have not tried to isolate the pertinent places, and all the former
1736 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1737 someone should address this issue.
1739 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1740 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1742 Adjust dependencies.
1743 * src/warshall.h: New file.
1746 2000-10-02 Akim Demaille <akim@epita.fr>
1748 Various anti-`extern in *.c' changes.
1750 * src/system.h: Include `assert.h'.
1752 2000-10-02 Akim Demaille <akim@epita.fr>
1754 * src/state.h (nstates, final_state, first_state, first_shift)
1755 (first_reduction): Move their exportation from here...
1756 * src/LR0.h: to here.
1757 Adjust dependencies.
1758 * src/getargs.c (statisticsflag): New variable.
1759 Add support for `--statistics'.
1760 Adjust dependencies.
1762 Remove a lot of now useless `extern' statements in most files.
1764 2000-10-02 Akim Demaille <akim@epita.fr>
1766 * src/LR0.h: New file.
1769 2000-10-02 Akim Demaille <akim@epita.fr>
1771 * src/print.h: New file.
1773 * src/print.c: Formatting and ordering changes.
1774 (verbose, terse): Replace with...
1775 (print_results): this new function.
1776 Adjust dependencies.
1778 2000-10-02 Akim Demaille <akim@epita.fr>
1780 * src/conflicts.c (conflict_report): New function.
1781 (conflict_log, verbose_conflict_log): Replace with...
1782 (print_conflicts): this function.
1783 Adjust dependencies.
1784 * src/conflicts.h: New file.
1785 Propagate its inclusion.
1787 2000-10-02 Akim Demaille <akim@epita.fr>
1789 * src/nullable.h: New file.
1790 Propagate its inclusion.
1791 * src/nullable.c: Formatting changes.
1793 2000-10-02 Akim Demaille <akim@epita.fr>
1795 * src/reduce.h: New file.
1796 Propagate its inclusion.
1797 * src/reduce.c: Topological sort and other formatting changes.
1798 (bool, TRUE, FALSE): Move their definition to...
1799 * src/system.h: here.
1801 2000-10-02 Akim Demaille <akim@epita.fr>
1803 * src/files.c: Formatting changes.
1804 (tryopen, tryclose, openfiles): Rename as...
1805 (xfopen, xfclose, open_files): this.
1806 (stringappend): static.
1807 * src/files.h: Complete the list of exported symbols.
1810 2000-10-02 Akim Demaille <akim@epita.fr>
1812 * src/reader.h: New file.
1813 Propagate its use instead of tedious list of `extern' and
1815 * src/reader.c: Formatting changes, topological sort,
1818 2000-10-02 Akim Demaille <akim@epita.fr>
1820 * src/lex.h: Prototype `lex.c' exported functions.
1821 * src/reader.c: Adjust.
1822 * src/lex.c: Formatting changes.
1823 (safegetc): Rename as...
1826 2000-10-02 Akim Demaille <akim@epita.fr>
1828 * src/lalr.h: New file.
1829 Propagate its inclusion instead of prototypes and `extern'.
1830 * src/lalr.c: Formatting changes, topological sorting etc.
1832 2000-10-02 Akim Demaille <akim@epita.fr>
1834 * src/output.c (token_actions): Introduce a temporary array,
1835 YYDEFACT, that makes it possible for this function to use
1838 2000-10-02 Akim Demaille <akim@epita.fr>
1840 `user_toknums' is output as a `short[]' in `output.c', while it is
1841 defined as a `int[]' in `reader.c'. For consistency with the
1842 other output tables, `user_toknums' is now defined as a table of
1845 * src/reader.c (user_toknums): Be a short table instead of an int
1847 Adjust dependencies.
1849 Factor the short table outputs.
1851 * src/output.c (output_short_table): New function.
1852 * src/output.c (output_gram, output_stos, output_rule_data)
1853 (output_base, output_table, output_check): Use it.
1855 2000-10-02 Akim Demaille <akim@epita.fr>
1857 * src/output.c (output): Topological sort of the functions, in
1858 order to get rid of the `static' prototypes.
1859 No longer use `register'.
1860 * src/output.h: New file.
1861 Propagate its inclusion in files explicitly prototyping functions
1864 2000-09-21 Akim Demaille <akim@epita.fr>
1866 * src/atgeneral.m4: Update from Autoconf.
1868 2000-09-21 Akim Demaille <akim@epita.fr>
1870 * src/closure.h: New file.
1871 * src/closure.c: Formatting changes, topological sort over the
1872 functions, use of closure.h.
1873 (initialize_closure, finalize_closure): Rename as...
1874 (new_closure, free_closure): these. Adjust dependencies.
1875 * src/LR0.c: Formatting changes, topological sort, use of
1877 (initialize_states): Rename as...
1879 * src/Makefile.am (noinst_HEADERS): Adjust.
1881 2000-09-20 Akim Demaille <akim@epita.fr>
1883 * src/acconfig.h: Don't protect config.h against multiple
1885 Don't define PARAMS.
1886 * src/system.h: Define PARAMS.
1887 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1888 purpose of config.h. system.h must not try to fix wrong
1889 definitions in config.h.
1891 2000-09-20 Akim Demaille <akim@epita.fr>
1893 * src/derives.h: New file.
1894 * src/main.c, src/derives.h: Use it.
1896 * src/Makefile.am (noinst_HEADERS): Adjust.
1898 2000-09-20 Akim Demaille <akim@epita.fr>
1900 * tests/atgeneral.m4: Update from Autoconf.
1901 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1902 (AT_CHECK_CALC): New macros.
1903 Use these macros to test bison with options `', `--raw',
1904 `--debug', `--yacc', `--yacc --debug'.
1906 2000-09-19 Akim Demaille <akim@epita.fr>
1908 * src/output.c: Formatting changes.
1909 * src/machine.h: Remove, leaving its contents in...
1910 * src/system.h: here.
1912 Adjust all dependencies on stdio.h and machine.h.
1913 * src/getargs.h: New file.
1914 Let all `extern' declarations about getargs.c be replaced with
1915 inclusion of `getargs.h'.
1916 * src/Makefile.am (noinst_HEADERS): Adjust.
1918 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1920 (yyerror): Returns void, not int.
1921 * doc/bison.texinfo: Formatting changes.
1923 2000-09-19 Akim Demaille <akim@epita.fr>
1925 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1928 2000-09-18 Akim Demaille <akim@epita.fr>
1930 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1931 * src/Makefile.am (INCLUDES): Don't.
1932 Be ready to fetch headers in lib/.
1934 2000-09-18 Akim Demaille <akim@epita.fr>
1936 * doc/bison.texinfo: Update the copyright.
1937 ANSIfy and GNUify the examples.
1938 Remove the old menu.
1940 2000-09-18 Akim Demaille <akim@epita.fr>
1942 First set of tests: use the `calc' example from the documentation.
1944 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1945 is defined only when YYDEBUG is.
1946 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1947 * src/files.c (tryopen, tryclose): Formatting changes.
1948 Move to the top and be static.
1949 * src/reader.c (read_signed_integer): Likewise.
1950 * tests/calc.m4: New file.
1951 * Makefile.am, suite.m4: Adjust.
1952 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1954 2000-09-18 Akim Demaille <akim@epita.fr>
1956 Add support for an Autotest test suite for Bison.
1958 * m4/m4.m4, m4/atconfig.m4: New files.
1959 * m4/Makefile.am (EXTRA_DIST): Adjust.
1960 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1962 * src/getargs.c: Display a more standard --version message.
1963 * src/reader.c (reader): Formatting changes.
1964 No longer depend upon VERSION_STRING.
1965 * configure.in: No longer use `dnl'.
1966 Set up the test suite and the new directory `tests/.
1967 (VERSION_STRING): Remove.
1969 2000-04-14 Akim Demaille <akim@epita.fr>
1971 * src/reader.c (copy_comment2): New function, same as former
1972 `copy_comment', but outputs into two FILE *.
1973 (copy_comment): Use it.
1974 (parse_union_decl): Use it.
1975 (get_type, parse_start_decl): Use the same `invalid' message.
1976 (parse_start_decl, parse_union_decl): Use the same `multiple'
1978 (parse_union_decl, copy_guard, copy_action): Use the same
1979 `unmatched' message.
1980 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1982 2000-03-31 Akim Demaille <akim@epita.fr>
1984 * src/files.c (tryopen, tryclose): Move to the top.
1987 2000-03-31 Akim Demaille <akim@epita.fr>
1989 * src/main.c (main): Don't call `done', exit does it.
1991 2000-03-31 Akim Demaille <akim@epita.fr>
1993 * allocate.c: s/return (foo)/return foo/.
1996 * output.c: Likewise.
1997 * reader.c: Likewise.
1998 * symtab.c: Likewise.
1999 * vmsgetargs.c: Likewise.
2001 2000-03-31 Akim Demaille <akim@epita.fr>
2003 Clean up the error reporting functions.
2005 * src/report.c: New file.
2006 * src/report.h: Likewise.
2007 * src/Makefile.am: Adjust.
2008 * m4/error.m4: New file.
2009 * m4/Makefile.am: Adjust.
2010 * configure.in (jm_PREREQ_ERROR): Call it.
2011 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2013 (fatal, fatals): Remove. All callers use complain.c::fatal.
2014 (warn, warni, warns, warnss, warnss): Remove. All callers use
2015 complain.c::complain.
2016 (toomany): Remove, use fatal instead.
2017 * src/files.c (done): No argument, use complain_message_count.
2018 * src/main.c (main): Register `done' to `atexit'.
2020 * src/getargs.c (usage): More `fputs', less `fprintf'.
2022 2000-03-28 Akim Demaille <akim@epita.fr>
2024 * lib/: New directory.
2025 * Makefile.am (SUBDIRS): Adjust.
2026 * configure.in: Adjust.
2027 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2029 * src/alloca.c: Moved to lib/.
2030 * src/getopt.c: Likewise.
2031 * src/getopt1.c: Likewise.
2032 * src/getopt.h: Likewise.
2033 * src/ansi2knr.c: Likewise.
2034 * src/ansi2knr.1: Likewise.
2035 * src/Makefile.am: Adjust.
2036 * lib/Makefile.am: New file.
2038 2000-03-28 Akim Demaille <akim@epita.fr>
2040 * src/getargs.c (usage): Refresh the help message.
2042 2000-03-17 Akim Demaille <akim@epita.fr>
2044 * src/getopt1.c: Updated from textutils 2.0e
2045 * src/getopt.c: Likewise.
2046 * src/getopt.h: Likewise.
2048 2000-03-17 Akim Demaille <akim@epita.fr>
2050 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2051 the file name, not the whole `#line LINE FILE'.
2053 2000-03-17 Akim Demaille <akim@epita.fr>
2055 On syntax errors, report the token on which we choked.
2057 * src/bison.s1 (yyparse): In the label yyerrlab, when
2058 YYERROR_VERBOSE, add yychar in msg.
2060 2000-03-17 Akim Demaille <akim@epita.fr>
2062 * src/reader.c (copy_at): New function.
2063 (copy_guard): Use it.
2064 (copy_action): Use it.
2066 2000-03-17 Akim Demaille <akim@epita.fr>
2068 Be kind to translators, save some useless translations.
2070 * src/main.c (banner): New function.
2071 (fatal_banner): Use it.
2072 (warn_banner): Use it.
2074 2000-03-17 Akim Demaille <akim@epita.fr>
2076 * src/reader.c (copy_definition): Use copy_string and
2077 copy_comment. Removed now unused `match', `ended',
2079 (copy_comment, copy_string): Moved, to be visible from
2082 2000-03-17 Akim Demaille <akim@epita.fr>
2084 * src/reader.c (copy_string): Declare `static inline'. No
2085 problems with inline, since it is checked by configure.
2086 (copy_comment): Likewise.
2088 2000-03-17 Akim Demaille <akim@epita.fr>
2090 * src/reader.c (packsymbols): Formatting changes.
2092 2000-03-17 Akim Demaille <akim@epita.fr>
2094 * src/reader.c (copy_comment): New function, factored out from:
2095 (copy_action): Use it. Removed now unused `match', `ended',
2097 (copy_guard): Likewise.
2099 2000-03-17 Akim Demaille <akim@epita.fr>
2101 * src/reader.c (copy_string): New function, factored out from:
2102 (copy_action): Use it.
2103 (copy_guard): Likewise.
2105 2000-03-17 Akim Demaille <akim@epita.fr>
2107 Change the handling of @s so that they behave exactly like $s.
2108 There is now a pseudo variable @$ (readble and writable), location
2109 of the lhs of the rule (by default ranging from the location of
2110 the first symbol of the rhs, to the location of the last symbol,
2111 or, if the rhs is empty, YYLLOC).
2113 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2115 (yyparse): When providing a default semantic action, provide a
2116 default location action.
2117 (after the $): No longer change `*YYLSP', just stack YYLOC the
2118 same way you stack YYVAL.
2119 * src/reader.c (read_declarations): Use warns.
2120 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2121 (copy_action, case '@'): Likewise.
2122 Use a standard error message, to save useless work from
2125 2000-03-17 Akim Demaille <akim@epita.fr>
2127 * src/bison.s1: Formatting and cosmetics changes.
2128 * src/reader.c: Likewise.
2129 Update the Copyright notice.
2131 2000-03-17 Akim Demaille <akim@epita.fr>
2133 * src/bison.s1 (#line): All set to `#line' only, since the
2134 Makefile now handles them.
2136 2000-03-16 Akim Demaille <akim@epita.fr>
2138 * src/output.c (output_rule_data): Output the documentation of
2140 (Copyright notice): Update.
2143 2000-03-16 Akim Demaille <akim@epita.fr>
2145 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2146 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2147 One `#if YYDEBUG' remains, since it uses variables which are
2148 defined only if `YYDEBUG != 0'.
2150 2000-03-16 Akim Demaille <akim@epita.fr>
2152 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2153 and related variables so that the similarities are highlighted.
2155 2000-03-16 Akim Demaille <akim@epita.fr>
2157 * src/bison.s1: Properly indent CPP directives.
2159 2000-03-16 Akim Demaille <akim@epita.fr>
2161 * src/bison.s1: Properly indent the `alloca' CPP section.
2163 2000-03-16 Akim Demaille <akim@epita.fr>
2165 Do not hard code values of directories in `configure.in'.
2166 Update the `configure' tool chain.
2168 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2170 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2171 (AC_OUTPUT): Add m4/Makefile.
2172 Bump to bison 1.28a, 1.29 has never been released.
2173 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2174 handled via src/Makefile.am.
2175 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2176 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2178 * Makefile.am (SUBDIRS): Add m4.
2179 (ACLOCAL_AM_FLAGS): New variable.
2180 (AUTOMAKE_OPTIONS): Add check-news.
2181 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2182 the proper line number and file name.
2183 (DEFS): Propagate the location of bison library files and of the
2185 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2187 * acinclude.m4: Remove, replaced by the directory m4.
2188 * m4/Makefile.am (EXTRA_DIST): New variable.
2189 * m4/gettext.m4: New file, from the fileutils.
2190 * m4/lcmessage.m4: Likewise
2191 * m4/progtest.m4: Likewise.
2192 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2194 2000-03-10 Akim Demaille <akim@epita.fr>
2197 Formatting changes of various comments.
2198 Respect the GNU coding standards at various places.
2199 Don't use `_()' when no translation is needed.
2201 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2204 OS/2 honors TMPDIR environment variable.
2206 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2208 * doc/bison.texinfo: Tweaked spelling and grammar.
2210 Removed reference to price of printed copy.
2211 Mention BISON_SIMPLE and BISON_HAIRY.
2213 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2215 * configure.in, NEWS:
2216 Bison 1.29 released.
2218 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2220 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2221 Added reference card.
2223 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2225 * po/ru.po: Added Russian translation.
2227 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2229 * configure.in: Added Russian translation.
2231 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2233 * configure.in, NEWS, README:
2234 Released version 1.28.
2236 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2239 Squashed redefinition warning on some systems.
2241 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2242 Have configure build version string instead of relying on ANSI string
2245 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2247 * po/POTFILES.in: Got rid of version.c.
2249 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2251 * acconfig.h, configure.in:
2252 Have configure build version string instead of relying on ANSI string
2255 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2258 Dropped mention of `+' for long-named options.
2260 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2262 * src/files.c: Added <unistd.h> for unlink().
2264 * src/Makefile.am, src/system.h:
2267 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2269 * README: Added a FAQ list.
2271 * configure.in, acconfig.h:
2274 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2276 * doc/FAQ, doc/Makefile.am:
2279 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2281 * src/alloc.h, src/symtab.h, src/version.c:
2282 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2284 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2286 * src/.cvsignore, src/Makefile.am:
2287 Reorganized: sources in `src', documentation in `doc'.
2289 * src/lex.c (literalchar):
2290 fixed the code for escaping double quotes (thanks
2293 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2295 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2296 Adjusted paths to reflect directory reorganization.
2298 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2300 * doc/.cvsignore, doc/Makefile.am:
2301 Reorganized: sources in `src', documentation in `doc'.
2303 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2306 Updated AC_INIT file to reflect directory reorganization.
2308 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2309 Reorganized: sources in `src', documentation in `doc'.
2311 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2314 Don't declare calloc() and realloc() if not necessary.
2316 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2318 * configure.in, acconfig.h, acinclude.m4:
2319 Don't declare calloc() and realloc() if not necessary.
2321 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2323 * po/.cvsignore: Added i18n support.
2325 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2327 * acconfig.h, configure.in, Makefile.am:
2330 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2332 * src/bison.s1: Fixed #line numbers.
2334 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2336 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2337 Added PO files from Translation Project.
2339 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2342 Added support for non-ANSI compilers (ansi2knr).
2344 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2346 * configure.in: Bumped version number to 1.27.
2349 Added `bison.simple' to list of files removed by `make distclean'.
2351 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2353 * src/files.c, src/files.h:
2354 Defined locations of parser files in config.h instead of Makefile.
2356 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2358 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2359 Defined locations of parser files in config.h instead of Makefile.
2361 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2364 Removed inappropriate use of $< macro.
2366 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2368 * po/Makefile.in.in, po/POTFILES.in:
2369 Add `po' directory skeleton.
2371 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2373 * README: Document help-bison list.
2375 * configure.in: Add check for mkstemp().
2377 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2379 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2380 Hush a few compiler warnings.
2383 Add tryclose(), which verifies that fclose was successful.
2384 Hush a couple of compiler warnings.
2386 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2388 * Makefile.am, OChangeLog:
2389 ChangeLog is now automatically generated. Include the old version as
2392 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2394 * 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:
2397 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2399 * doc/bison.texinfo: Fix formatting glitch.
2401 * doc/bison.texinfo: Update FSF address.
2403 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2405 * acconfig.h: Update FSF address.
2407 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2410 Don't define PACKAGE here, since config.h defines it.
2412 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2414 * src/reader.c: Update copyright date.
2417 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2418 favor of output directly to stderr (avoids buffer overruns).
2420 * src/reader.c: Some checks for premature EOF.
2422 * 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:
2423 Use prototypes if the compiler understands them.
2425 * src/files.c: Honor TMPDIR on Unix hosts.
2426 Use prototypes if the compiler understands them.
2429 Fix a couple of buffer overrun bugs.
2430 Use prototypes if the compiler understands them.
2432 * src/system.h: Include unistd.h and ctype.h.
2433 Use #ifdef instead of #if for NLS symbols.
2435 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2437 * doc/bison.texinfo:
2438 Delete comment "consider using @set for edition number, etc..." since
2439 we now are doing so.
2441 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2444 Use prototypes if the compiler understands them.
2446 * NEWS: Document 1.26 highlights.
2448 * Makefile.am: Require Automake 1.3 or later.
2451 Use prototypes if the compiler understands them.
2453 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2456 Use VERSION symbol from automake for version number.
2458 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2460 * acconfig.h, configure.in, version.cin:
2461 Use VERSION symbol from automake for version number.
2463 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2466 Distribute original version of simple parser (bison.s1), not built
2467 version (bison.simple).
2469 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2471 * doc/bison.texinfo: Add info dir entry.
2473 * doc/bison.texinfo:
2474 Let automake put version number into documentation.
2476 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2478 * src/bison.cld, src/build.com, src/vmshlp.mar:
2479 Add non-RCS files from /gd/gnu/bison.
2481 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2484 Document the BISON_HAIRY and BISON_SIMPLE variables.
2486 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2488 * src/version.c: Build version.c automatically.
2491 Fix token numbering (used to start at 258, not 257).
2493 * src/system.h: Include config.h.
2495 * src/getargs.c: Update bug report address.
2497 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2498 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2500 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2503 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2505 * configure.in, version.cin:
2506 Build version.c automatically.
2508 * AUTHORS: Add AUTHORS file.
2510 * README: Update bug report address.
2513 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2515 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2518 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2520 * doc/bison.texinfo: Clean up some formatting.
2522 1998-05-05 Richard Stallman <rms@gnu.org>
2524 * doc/bison.texinfo:
2525 Explain better why to make a pure parser.
2527 1998-01-05 Richard Stallman <rms@gnu.org>
2529 * src/files.c (openfiles):
2530 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2531 find a temporary directory, if possible. Do not unlink files while
2534 1997-08-25 Richard Stallman <rms@gnu.org>
2536 * src/reader.c (stack_offset;):
2537 Change some warni to warns.
2539 * src/lex.c (literalchar): Use warns, not warni.
2541 1997-06-28 Richard Stallman <rms@gnu.org>
2543 * src/bison.s1: Add a Bison version comment.
2545 * src/main.c (fatal, warn, berror):
2548 1997-06-28 Richard Stallman <rms@gnu.org>
2550 * Makefile.in (bison_version): New variable.
2551 (dist): Use that variable.
2552 (bison.s1): Substitute the Bison version into bison.simple.
2554 * bison.simple: Add a Bison version comment.
2556 1997-06-18 Richard Stallman <rms@gnu.org>
2558 * src/main.c (fatal, warn, berror):
2559 Make error messages standard.
2560 (toomany): Improve error message text.
2562 * 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:
2563 new.h renamed to alloc.h.
2565 1997-06-18 Richard Stallman <rms@gnu.org>
2567 * Makefile.in: new.h renamed to alloc.h.
2569 1997-05-24 Richard Stallman <rms@gnu.org>
2571 * src/lex.c (literalchar):
2572 Fix the code for escaping \, " and '.
2574 (lex): Avoid trouble when there are many chars
2575 to discard in a char literal with just several chars in it.
2577 1997-05-17 Richard Stallman <rms@gnu.org>
2580 Use malloc, if using alloca is troublesome.
2581 (YYSTACK_USE_ALLOCA): New flag macro.
2582 Define it for some systems and compilers.
2583 (YYSTACK_ALLOC): New macro.
2584 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2585 If it was malloc'd, free it.
2587 1997-05-17 Richard Stallman <rms@gnu.org>
2590 Use malloc, if using alloca is troublesome.
2591 (YYSTACK_USE_ALLOCA): New flag macro.
2592 Define it for some systems and compilers.
2593 (YYSTACK_ALLOC): New macro.
2594 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2595 If it was malloc'd, free it.
2597 1997-04-23 Richard Stallman <rms@gnu.org>
2600 (alloca) [__hpux]: Always define as __builtin_alloca.
2602 1997-04-23 Richard Stallman <rms@gnu.org>
2605 (alloca) [__hpux]: Always define as __builtin_alloca.
2607 1997-04-22 Richard Stallman <rms@gnu.org>
2610 [__hpux]: Include alloca.h (right for HPUX 10)
2611 instead of declaring alloca (right for HPUX 9).
2613 * src/bison.s1 (__yy_memcpy):
2614 Declare arg `count' as unsigned int.
2615 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2617 1997-04-22 Richard Stallman <rms@gnu.org>
2620 [__hpux]: Include alloca.h (right for HPUX 10)
2621 instead of declaring alloca (right for HPUX 9).
2623 * bison.simple (__yy_memcpy):
2624 Declare arg `count' as unsigned int.
2625 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2627 1997-01-03 Richard Stallman <rms@gnu.org>
2629 * src/allocate.c: [__STDC__ or _MSC_VER]:
2630 Declare calloc and realloc to return void *.
2632 1997-01-02 Richard Stallman <rms@gnu.org>
2635 [_MSC_VER]: Include stdlib.h and process.h.
2636 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2638 * src/main.c (main): Return FAILURE as a value.
2639 (printable_version): Declare arg as int, not char.
2641 1997-01-02 Richard Stallman <rms@gnu.org>
2643 * Makefile.in (dist):
2644 Explicitly check for symlinks, and copy them.
2646 1996-12-19 Richard Stallman <rms@gnu.org>
2649 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2651 1996-12-18 Paul Eggert <eggert@gnu.org>
2653 * src/bison.s1 (yyparse):
2654 If __GNUC__ and YYPARSE_PARAM are both defined,
2655 declare yyparse to have a void * argument.
2657 1996-12-18 Paul Eggert <eggert@gnu.org>
2659 * bison.simple (yyparse):
2660 If __GNUC__ and YYPARSE_PARAM are both defined,
2661 declare yyparse to have a void * argument.
2663 1996-12-17 Richard Stallman <rms@gnu.org>
2665 * src/reduce.c (nbits): Add some casts.
2667 1996-08-12 Richard Stallman <rms@gnu.org>
2669 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2671 1996-08-12 Richard Stallman <rms@gnu.org>
2673 * bison.simple: Test _MSDOS as well as _MSDOS_.
2675 1996-07-31 Richard Stallman <rms@gnu.org>
2678 [__sun && __i386]: Include alloca.h.
2680 1996-07-31 Richard Stallman <rms@gnu.org>
2683 [__sun && __i386]: Include alloca.h.
2685 1996-07-30 Richard Stallman <rms@gnu.org>
2687 * src/bison.s1: Comment change.
2689 * src/bison.s1: Test _MSDOS_, not MSDOS.
2691 1996-07-30 Richard Stallman <rms@gnu.org>
2693 * bison.simple: Comment change.
2695 * bison.simple: Test _MSDOS_, not MSDOS.
2697 1996-06-01 Richard Stallman <rms@gnu.org>
2699 * 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:
2700 Insert `_' macro around many string constants.
2703 Insert `_' macro around many string constants.
2705 (main): Call setlocale, bindtextdomain and textdomain.
2707 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2708 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2709 [ENABLE_NLS]: Include libintl.h.
2710 [ENABLE_NLS] (gettext): Define.
2711 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2712 (N_, PACKAGE, LOCALEDIR): New macros.
2714 1996-06-01 Richard Stallman <rms@gnu.org>
2716 * POTFILES.in: New file.
2718 * Makefile.in (allocate.o):
2719 Define target explicitly.
2721 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2722 (LDFLAGS): Set to @LDFLAGS@.
2723 (configure): Run autoconf only if preceding `cd' succeeds.
2724 (bison.s1): Redirect output to temporary file then move the
2725 temporary to the target, rather than redirecting directly to bison.s1.
2726 (clean): Remove config.status and config.log.
2727 (distclean): Don't remove config.status here.
2729 1996-05-12 Richard Stallman <rms@gnu.org>
2732 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2734 1996-05-12 Richard Stallman <rms@gnu.org>
2737 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2739 1996-05-11 Richard Stallman <rms@gnu.org>
2741 * src/bison.s1 (__yy_memcpy):
2742 Really reorder the args, as was supposedly done on Feb 14 1995.
2743 (yyparse): Calls changed accordingly.
2745 1996-05-11 Richard Stallman <rms@gnu.org>
2747 * Makefile.in (dist): Don't use $(srcdir).
2749 * bison.simple (__yy_memcpy):
2750 Really reorder the args, as was supposedly done on Feb 14 1995.
2751 (yyparse): Calls changed accordingly.
2753 1996-01-27 Richard Stallman <rms@gnu.org>
2755 * src/output.c (output_rule_data):
2756 Test YYERROR_VERBOSE in the conditional
2757 around the definition of ttyname.
2759 1995-12-29 Richard Stallman <rms@gnu.org>
2762 Fix line numbers in #line commands.
2764 1995-12-29 Richard Stallman <rms@gnu.org>
2767 Fix line numbers in #line commands.
2769 1995-12-27 Richard Stallman <rms@gnu.org>
2771 * src/bison.s1 (YYPARSE_PARAM_DECL):
2772 In C++, make it always null.
2773 (YYPARSE_PARAM_ARG): New macro.
2774 (yyparse): Use YYPARSE_PARAM_ARG.
2776 1995-12-27 Richard Stallman <rms@gnu.org>
2778 * bison.simple (YYPARSE_PARAM_DECL):
2779 In C++, make it always null.
2780 (YYPARSE_PARAM_ARG): New macro.
2781 (yyparse): Use YYPARSE_PARAM_ARG.
2783 1995-11-29 Richard Stallman <rms@gnu.org>
2785 * doc/bison.texinfo:
2786 Describe literal string tokens, %raw, %no_lines, %token_table.
2788 1995-11-29 Daniel Hagerty <hag@gnu.org>
2790 * doc/bison.texinfo: Fixed update date
2792 1995-10-16 Richard Stallman <rms@gnu.org>
2794 * src/version.c: Version 1.25.
2796 1995-10-16 Richard Stallman <rms@gnu.org>
2798 * NEWS: *** empty log message ***
2800 1995-10-16 Richard Stallman <rms@gnu.org>
2802 * doc/bison.1, doc/bison.rnh:
2805 1995-10-15 Richard Stallman <rms@gnu.org>
2807 * src/vmsgetargs.c, src/getargs.c:
2808 Added -n, -k, and -raw switches.
2809 (noparserflag, toknumflag, rawtoknumflag): New variables.
2811 * src/symtab.h (SALIAS):
2812 New #define for adding aliases to %token.
2813 (struct bucket): Added `alias' field.
2815 * src/reduce.c (reduce_grammar):
2816 Revise error message.
2817 (print_notices): Remove final `.' from error message.
2819 * src/reader.c (reader_output_yylsp):
2821 (readgram): Use `#if 0' around code that accepted %command
2822 inside grammar rules: The documentation doesn't allow it,
2823 and it will fail since the %command processors scan for the next %.
2824 (parse_token_decl): Extended the %token
2825 declaration to allow a multi-character symbol as an alias.
2826 (parse_thong_decl): New function.
2827 (read_declarations): Added %thong declarations.
2828 (read_declarations): Handle NOOP to deal with allowing
2829 % declarations as another means to specify the flags.
2830 (readgram): Allow %prec prior to semantics embedded in a rule.
2831 (skip_to_char, read_declarations, copy_definition)
2832 (parse_token_decl, parse_start_decl, parse_type_decl)
2833 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2834 (get_type_name, copy_guard, copy_action, readgram)
2835 (get_type, packsymbols): Revised most error messages.
2836 Changed `fatal' to `warnxxx' to avoid aborting for error.
2837 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2838 (read_declarations): Improve the error message for
2839 an invalid character. Do not abort.
2840 (read_declarations, copy_guard, copy_action): Use
2841 printable_version to avoid unprintable characters in printed output.
2842 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2843 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2844 Allow the type of a non-terminal can be given
2845 more than once, as long as all specifications give the same type.
2848 (output_headers, output_trailers, output, output_gram)
2849 (output_rule_data): Implement noparserflag variable.
2850 Implement toknumflag variable.
2851 (output): Call reader_output_yylsp to output LTYPESTR.
2853 * src/main.c (main):
2854 If reader sees an error, don't process the grammar.
2855 (fatals): Updated to not use VARARGS1.
2856 (printable_version, int_to_string, warn, warni, warns, warnss)
2857 (warnsss): New error reporting functions. Avoid abort for error.
2860 Added THONG and NOOP for alias processing.
2861 Added SETOPT for the new code that allows setting options with %flags.
2864 Include getopt.h. Add some extern decls.
2865 (safegetc): New function to deal with EOF gracefully.
2866 (literalchar); new function to deal with reading \ escapes.
2867 (lex): Use literalchar.
2868 (lex): Implemented "..." tokens.
2869 (literalchar, lex, parse_percent_token): Made tokenbuffer
2870 always contain the token. This includes growing the token
2871 buffer while reading an integer.
2872 (parse_percent_token): Replaced if-else statement with percent_table.
2873 (parse_percent_token): Added % declarations as another
2874 way to specify the flags -n, -l, and -r. Also added hooks for
2875 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2876 major changes to files.c.
2877 (lex) Retain in the incoming stream a character following
2879 (skip_white_space, lex): Revised most error messages
2880 and changed fatal to warn to avoid aborting.
2881 (percent_table): Added %thong declarations.
2883 * src/gram.h: Comment changes.
2885 * src/files.c (openfiles, open_extra_files, done):
2887 and actfile file. Handle noparserflag. Both for -n switch.
2889 * src/conflicts.c (resolve_sr_conflict):
2890 Remove use of alloca.
2892 1995-06-01 Jim Meyering <meyering@gnu.org>
2894 * doc/bison.texinfo: *** empty log message ***
2896 1995-05-06 Richard Stallman <rms@gnu.org>
2898 * src/bison.s1: Comment change.
2900 1995-05-06 Richard Stallman <rms@gnu.org>
2902 * bison.simple: Comment change.
2904 1995-05-03 Richard Stallman <rms@gnu.org>
2906 * src/version.c: Version now 1.24.
2908 * src/bison.s1: Change distribution terms.
2910 * src/version.c: Version now 1.23.
2912 1995-05-03 Richard Stallman <rms@gnu.org>
2914 * doc/bison.texinfo:
2915 Rewrite "Conditions for Using Bison".
2916 Update version to 1.24.
2918 1995-05-03 Richard Stallman <rms@gnu.org>
2920 * bison.simple: Change distribution terms.
2922 1995-02-23 Richard Stallman <rms@gnu.org>
2924 * src/files.c: Test __VMS_POSIX as well as VMS.
2926 1995-02-14 Jim Meyering <meyering@gnu.org>
2928 * src/bison.s1 (__yy_memcpy):
2929 Renamed from __yy_bcopy to avoid
2930 confusion. Reverse FROM and TO arguments to be consistent with
2933 1995-02-14 Jim Meyering <meyering@gnu.org>
2935 * bison.simple (__yy_memcpy):
2936 Renamed from __yy_bcopy to avoid
2937 confusion. Reverse FROM and TO arguments to be consistent with
2940 1994-11-10 David J. MacKenzie <djm@gnu.org>
2946 * Makefile.in (DISTFILES): Include NEWS.
2948 * Makefile.in (DISTFILES):
2949 Include install-sh, not install.sh.
2951 * configure.in: Update to Autoconf v2 macro names.
2953 1994-10-05 David J. MacKenzie <djm@gnu.org>
2955 * Makefile.in: fix typo
2957 * Makefile.in (prefix, exec_prefix):
2958 Let configure set them.
2960 1994-09-28 David J. MacKenzie <djm@gnu.org>
2962 * Makefile.in: Set datadir to $(prefix)/share.
2964 1994-09-15 Richard Stallman <rms@gnu.org>
2967 Update copyright notice and GPL version.
2969 1994-09-15 Richard Stallman <rms@gnu.org>
2972 Update copyright notice and GPL version.
2974 1994-07-12 Richard Stallman <rms@gnu.org>
2976 * src/reduce.c, src/reader.c:
2979 1994-05-05 David J. MacKenzie <djm@gnu.org>
2981 * Makefile.in: entered into RCS
2983 1994-03-26 Richard Stallman <rms@gnu.org>
2985 * src/bison.s1: entered into RCS
2987 1994-03-26 Richard Stallman <rms@gnu.org>
2989 * bison.simple: entered into RCS
2991 1994-03-25 Richard Stallman <rms@gnu.org>
2993 * src/main.c: entered into RCS
2995 1994-03-24 Richard Stallman <rms@gnu.org>
2997 * src/conflicts.c: entered into RCS
2999 1994-01-02 Richard Stallman <rms@gnu.org>
3001 * Makefile.in: *** empty log message ***
3003 1993-11-21 Richard Stallman <rms@gnu.org>
3005 * src/bison.s1: *** empty log message ***
3007 1993-11-21 Richard Stallman <rms@gnu.org>
3009 * doc/bison.texinfo: entered into RCS
3011 * doc/bison.texinfo: *** empty log message ***
3013 1993-11-21 Richard Stallman <rms@gnu.org>
3015 * bison.simple: *** empty log message ***
3017 1993-10-25 David J. MacKenzie <djm@gnu.org>
3019 * doc/bison.texinfo: *** empty log message ***
3021 1993-10-19 Richard Stallman <rms@gnu.org>
3023 * src/bison.s1: *** empty log message ***
3025 1993-10-19 Richard Stallman <rms@gnu.org>
3027 * bison.simple: *** empty log message ***
3029 1993-10-14 Richard Stallman <rms@gnu.org>
3031 * src/bison.s1: *** empty log message ***
3033 1993-10-14 Richard Stallman <rms@gnu.org>
3035 * bison.simple: *** empty log message ***
3037 1993-09-14 David J. MacKenzie <djm@gnu.org>
3039 * doc/bison.texinfo: *** empty log message ***
3041 1993-09-13 Noah Friedman <friedman@gnu.org>
3043 * Makefile.in: *** empty log message ***
3045 1993-09-10 Richard Stallman <rms@gnu.org>
3047 * src/conflicts.c: *** empty log message ***
3049 * src/system.h: entered into RCS
3051 1993-09-10 Richard Stallman <rms@gnu.org>
3053 * doc/bison.1: entered into RCS
3055 1993-09-06 Noah Friedman <friedman@gnu.org>
3057 * src/version.c: entered into RCS
3059 1993-09-06 Noah Friedman <friedman@gnu.org>
3061 * Makefile.in: *** empty log message ***
3063 1993-07-30 David J. MacKenzie <djm@gnu.org>
3065 * Makefile.in: *** empty log message ***
3067 1993-07-24 Richard Stallman <rms@gnu.org>
3069 * src/bison.s1: *** empty log message ***
3071 1993-07-24 Richard Stallman <rms@gnu.org>
3073 * bison.simple: *** empty log message ***
3075 1993-07-08 David J. MacKenzie <djm@gnu.org>
3077 * Makefile.in: *** empty log message ***
3079 1993-07-04 Richard Stallman <rms@gnu.org>
3081 * src/bison.s1: *** empty log message ***
3083 1993-07-04 Richard Stallman <rms@gnu.org>
3085 * bison.simple: *** empty log message ***
3087 1993-06-26 David J. MacKenzie <djm@gnu.org>
3089 * src/getargs.c: entered into RCS
3091 1993-06-26 David J. MacKenzie <djm@gnu.org>
3093 * doc/bison.texinfo: *** empty log message ***
3095 * doc/bison.1: New file.
3097 1993-06-25 Richard Stallman <rms@gnu.org>
3099 * src/getargs.c: New file.
3101 1993-06-16 Richard Stallman <rms@gnu.org>
3103 * src/bison.s1: *** empty log message ***
3105 1993-06-16 Richard Stallman <rms@gnu.org>
3107 * bison.simple: *** empty log message ***
3109 1993-06-03 Richard Stallman <rms@gnu.org>
3111 * src/bison.s1: New file.
3113 1993-06-03 Richard Stallman <rms@gnu.org>
3115 * doc/bison.texinfo: *** empty log message ***
3117 1993-06-03 Richard Stallman <rms@gnu.org>
3119 * bison.simple: New file.
3121 1993-05-19 Richard Stallman <rms@gnu.org>
3123 * doc/bison.texinfo: New file.
3125 1993-05-07 Noah Friedman <friedman@gnu.org>
3127 * Makefile.in: *** empty log message ***
3129 1993-04-28 Noah Friedman <friedman@gnu.org>
3131 * src/reader.c: *** empty log message ***
3133 1993-04-23 Noah Friedman <friedman@gnu.org>
3135 * src/alloc.h: entered into RCS
3137 1993-04-20 David J. MacKenzie <djm@gnu.org>
3139 * src/version.c: *** empty log message ***
3141 * src/files.c, src/allocate.c:
3144 * src/reader.c: *** empty log message ***
3146 * src/lex.c: entered into RCS
3148 * src/conflicts.c: New file.
3150 * src/symtab.c: entered into RCS
3152 * src/alloc.h: New file.
3154 * src/LR0.c: entered into RCS
3156 1993-04-18 Noah Friedman <friedman@gnu.org>
3158 * src/reader.c: New file.
3160 * src/version.c: *** empty log message ***
3162 1993-04-18 Noah Friedman <friedman@gnu.org>
3164 * Makefile.in: *** empty log message ***
3166 1993-04-17 Noah Friedman <friedman@gnu.org>
3168 * Makefile.in: *** empty log message ***
3170 1993-04-15 Richard Stallman <rms@gnu.org>
3172 * src/main.c, src/files.c:
3175 1993-04-15 Noah Friedman <friedman@gnu.org>
3177 * configure.in: entered into RCS
3179 * configure.in: *** empty log message ***
3181 * configure.in: New file.
3183 1993-04-14 Richard Stallman <rms@gnu.org>
3185 * Makefile.in: New file.
3187 1993-04-13 Richard Stallman <rms@gnu.org>
3189 * src/version.c: New file.
3191 1993-03-25 Richard Stallman <rms@gnu.org>
3193 * src/output.c: entered into RCS
3195 1992-09-25 Richard Stallman <rms@gnu.org>
3197 * configure.bat: entered into RCS
3199 1992-06-22 Richard Stallman <rms@gnu.org>
3201 * src/vmsgetargs.c: entered into RCS
3203 1992-06-22 Richard Stallman <rms@gnu.org>
3205 * doc/bison.rnh: entered into RCS
3207 1992-04-20 David J. MacKenzie <djm@gnu.org>
3209 * README: entered into RCS
3211 1992-01-22 Richard Stallman <rms@gnu.org>
3213 * src/machine.h: entered into RCS
3215 1991-12-21 Richard Stallman <rms@gnu.org>
3217 * src/lalr.c, src/closure.c:
3220 1991-12-20 Richard Stallman <rms@gnu.org>
3222 * src/state.h: entered into RCS
3224 1991-12-18 Richard Stallman <rms@gnu.org>
3226 * src/print.c, src/nullable.c, src/derives.c:
3229 1991-11-03 David J. MacKenzie <djm@gnu.org>
3231 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3234 1988-09-09 Richard Stallman <rms@gnu.org>
3236 * src/bison.hairy: entered into RCS
3238 1987-12-16 Richard Stallman <rms@gnu.org>
3240 * REFERENCES: entered into RCS