1 2001-11-12 Akim Demaille <akim@epita.fr>
3 %expext was not functioning at all.
5 * src/conflicts.c (expected_conflicts): Set to -1.
6 (conflict_report): Use ngettext.
7 (conflicts_print): Check %expect and make its violation an error.
8 * doc/bison.texinfo (Expect Decl): Adjust.
9 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
10 * tests/regression.at (%expect not enough, %expect right)
11 (%expect too much): New.
13 2001-11-12 Akim Demaille <akim@epita.fr>
15 * tests/regression.at (Conflicts): Rename as...
16 (Unresolved SR Conflicts): this.
17 (Solved SR Conflicts): New.
19 2001-11-12 Akim Demaille <akim@epita.fr>
21 * src/reduce.c (print_results): Rename as...
22 (reduce_output): This.
23 Output to OUT, passed as argument, instead of output_obstack.
24 (dump_grammar): Likewise.
27 (reduce_grammar): No longer call reduce_output, since...
28 * src/print.c (print_results): do it.
29 * src/main.c (main): Call reduce_free;
31 2001-11-12 Akim Demaille <akim@epita.fr>
33 * src/conflicts.c (print_reductions): Accept OUT as argument.
34 Output to it, not to output_obstack.
35 * src/print.c (print_actions): Adjust.
37 2001-11-12 Akim Demaille <akim@epita.fr>
39 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
40 the result instead of using...
41 (src_total, rrc_total, src_count, rrc_count): Remove.
42 (any_conflicts): Remove.
43 (print_conflicts): Split into...
44 (conflicts_print, conflicts_output): New.
45 * src/conflicts.h: Adjust.
46 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
47 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
48 * tests/regression.at (Conflicts): New.
51 2001-11-12 Akim Demaille <akim@epita.fr>
53 * tests/regression.at (Invalid input): Remove, duplicate with
56 2001-11-12 Akim Demaille <akim@epita.fr>
58 * tests/torture.at (AT_DATA_STACK_TORTURE)
59 (Exploding the Stack Size with Alloca)
60 (Exploding the Stack Size with Malloc): New.
62 2001-11-12 Akim Demaille <akim@epita.fr>
64 * src/bison.simple (YYSTACK_REALLOC): New.
65 (yyparse) [!yyoverflow]: Use it and free the old stack.
66 Reported by FIXME: Who.
68 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
70 * src/bison.simple: Define type yystype instead of YYSTYPE, and
71 define CPP macro, which substitute YYSTYPE by yystype.
72 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
73 with yyltype/YYLTYPE. This allows inclusion of the generated
74 header within the parser if the compiler, such as GGC, accepts
75 multiple equivalent #defines.
78 2001-11-05 Akim Demaille <akim@epita.fr>
80 * src/reader.c (symbols_output): New, extracted from...
84 2001-11-05 Akim Demaille <akim@epita.fr>
86 * src/lex.c (parse_percent_token): s/quotearg/quote/.
88 2001-11-05 Akim Demaille <akim@epita.fr>
90 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
93 2001-11-05 Akim Demaille <akim@epita.fr>
95 * src/options.h (struct option_table_struct): set_flags is void*.
96 * src/options.c (longopts): Support `--output' and `%output'.
98 * src/lex.h (tok_setopt): Remove, replaced with...
99 (tok_intopt, tok_stropt): these new guys.
100 * src/lex.c (getopt.h): Not needed.
101 (token_buffer, unlexed_token_buffer): Not const.
102 (percent_table): Promote `-' over `_' in directive names.
103 Active `%name-prefix', `file-prefix', and `output'.
104 (parse_percent_token): Accept possible arguments to directives.
105 Promote `-' over `_' in directive names.
107 2001-11-04 Akim Demaille <akim@epita.fr>
109 * doc/bison.texinfo (Decl Summary): Split the list into
110 `directives for grammars' and `directives for bison'.
112 Add description of `%name-prefix', `file-prefix', and `output'.
113 Promote `-' over `_' in directive names.
114 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
115 Simplify the description of `--name-prefix'.
116 Promote `-' over `_' in directive names.
117 Promote `--output' over `--output-file'.
118 Fix the description of `--defines'.
119 * tests/output.at: Exercise %file-prefix and %output.
121 2001-11-02 Akim Demaille <akim@epita.fr>
123 * doc/refcard.tex: Update.
125 2001-11-02 Akim Demaille <akim@epita.fr>
127 * src/symtab.h (SUNDEF): New.
128 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
129 stand for `uninitialized', instead of 0.
130 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
131 * src/lex.c (lex): Adjust.
133 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
135 Let yylex return it instead of a plain 0.
136 Reported by Dick Streefland.
138 2001-11-02 Akim Demaille <akim@epita.fr>
140 * tests/regression.at (Mixing %token styles): New test.
142 2001-11-02 Akim Demaille <akim@epita.fr>
144 * src/reader.c (parse_thong_decl): Formatting changes.
145 (token_translations_init): New, extracted from...
149 2001-11-01 Akim Demaille <akim@epita.fr>
151 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
152 Check that `9foo.y' produces correct cpp guards.
153 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
157 2001-11-01 Akim Demaille <akim@epita.fr>
159 * tests/regression.at (Invalid input: 2): New.
160 * src/lex.c (unlexed_token_buffer): New.
161 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
165 2001-11-01 Akim Demaille <akim@epita.fr>
167 * tests/calc.at: Catch up with 1.30.
168 * configure.in: Bump to 1.49a.
169 Adjust to newer Autotest.
171 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
173 * src/conflicts.c: Move global variables rrc_total and src_total ...
174 (print_conflicts): here.
175 * src/output.c (output): Free global variable user_toknums.
176 * src/lex.c (token_obstack): Become static.
178 2001-10-18 Akim Demaille <akim@epita.fr>
180 * tests/atlocal.in (GCC): Add.
181 * tests/calc.at: s/m4_match/m4_bmatch/.
182 s/m4_patsubst/m4_bpatsubst/.
183 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
184 * configure.in: AC_SUBST(GCC).
186 2001-10-14 Marc Autret <autret_m@epita.fr>
188 * src/options.c (create_long_option_table): Fix.
190 2001-10-10 Akim Demaille <akim@epita.fr>
192 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
194 2001-10-04 Akim Demaille <akim@epita.fr>
196 * src/reader.c (parse_union_decl): Push the caracters in
197 union_obstack, not attrs_obstack.
199 2001-10-04 Akim Demaille <akim@epita.fr>
201 Merge in the branch 1.29.
203 * src/reader.c (packsymbols): Use a temporary obstack for
204 `%%tokendef', since output_stack is already used elsewhere.
206 2001-10-02 Akim Demaille <akim@epita.fr>
210 2001-10-02 Akim Demaille <akim@epita.fr>
214 2001-10-02 Akim Demaille <akim@epita.fr>
216 * tests/regression.at (Invalid CPP headers): New.
217 From Alexander Belopolsky.
218 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
220 2001-10-02 Akim Demaille <akim@epita.fr>
222 * tests/regression.at (Invalid input): New.
223 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
226 2001-10-02 Akim Demaille <akim@epita.fr>
228 * tests/calc.at: Now that --debug works, the tests must be adjusted.
230 2001-10-02 Akim Demaille <akim@epita.fr>
232 * src/output.c (output_parser): Assert `skeleton'.
233 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
237 2001-10-01 Marc Autret <autret_m@epita.fr>
239 * src/lex.h: Echo modifications.
240 * src/lex.c (unlex): Parameter is now token_t.
243 2001-10-01 Marc Autret <autret_m@epita.fr>
245 * src/main.c: Include lex.h.
248 2001-09-29 Akim Demaille <akim@epita.fr>
250 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
252 2001-09-28 Akim Demaille <akim@epita.fr>
254 * tests/testsuite.at: Update to newer Autotest.
255 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
257 2001-09-27 Akim Demaille <akim@epita.fr>
259 Position independent wrapper.
261 * tests/bison: Remove.
262 * tests/bison.in: New.
263 * configure.in: Adjust.
265 2001-09-27 Paul Eggert <eggert@twinsun.com>
267 Port quotearg fixes from tar 1.13.24.
269 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
271 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
272 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
274 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
275 * m4/mbrtowc.m4: New file.
276 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
277 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
279 2001-09-27 Akim Demaille <akim@epita.fr>
283 2001-09-27 Akim Demaille <akim@epita.fr>
287 2001-09-25 Akim Demaille <akim@epita.fr>
289 * src/system.h: Include `xalloc.h'.
290 Remove it from the C files.
291 * src/files.c (output_files): Free the obstacks.
292 * src/lex.c (init_lex): Rename as...
295 * src/main.c (main): Use it.
297 2001-09-24 Marc Autret <autret_m@epita.fr>
299 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
300 to output informations in fout (FILE*).
301 (open_graph, close_graph): Likewise.
302 (output_graph, output_edge, output_node): Likewise.
303 * src/vcg.h: Update function prototypes.
304 * src/print_graph.c (print_graph): Open output graph file.
305 (print_actions): Adjust.
306 * src/files.h: Remove extern declaration.
307 * src/files.c: Remove graph_obstack declaration.
308 (open_files): Remove graph_obstack initialization.
309 (output_files): Remove graph_obstack saving.
311 2001-09-24 Marc Autret <autret_m@epita.fr>
313 * src/files.c (compute_output_file_names): Fix.
315 2001-09-24 Marc Autret <autret_m@epita.fr>,
316 Akim Demaille <akim@epita.fr>
318 * src/reader.c (reader): Remove call to free_symtab ().
319 * src/main.c (main): Call it here.
321 * src/conflicts.c (initialize_conflicts): Rename as...
322 (solve_conflicts): this.
323 * src/print.c (print_core, print_actions, print_state)
324 (print_grammar): Dump to a file instead a `output_obstack'.
325 (print_results): Dump `output_obstack', and then proceed with the
327 * src/files.c (compute_output_file_names, close_files): New.
328 (output_files): Adjust.
329 * src/main.c (main): Adjust.
331 2001-09-23 Marc Autret <autret_m@epita.fr>
333 * src/files.c (compute_header_macro): Computes header macro name
334 from spec_defines_file when given.
336 2001-09-23 Marc Autret <autret_m@epita.fr>
338 * src/files.c (output_files): Add default extensions.
340 2001-09-22 Akim Demaille <akim@epita.fr>
342 * src/conflicts.c (finalize_conflicts): Rename as...
343 (free_conflicts): this.
345 2001-09-22 Akim Demaille <akim@epita.fr>
347 * src/gram.c (gram_free): Rename back as...
349 (output_token_translations): Free `token_translations'.
350 * src/symtab.c (free_symtab): Free the tag field.
352 2001-09-22 Akim Demaille <akim@epita.fr>
354 Remove `translations' as it is always set to true.
356 * src/gram.h: Adjust.
357 * src/reader.c (packsymbols, parse_token_decl): Adjust
358 * src/print.c (print_grammar): Adjust.
359 * src/output.c (output_token_translations): Adjust.
360 * src/lex.c (lex): Adjust.
361 * src/gram.c: Be sure the set pointers to NULL.
362 (dummy): Rename as...
365 2001-09-22 Akim Demaille <akim@epita.fr>
367 * configure.in: Invoke AM_LIB_DMALLOC.
368 * src/system.h: Use dmalloc.
369 * src/LR0.c: Be sure to have pointers initialized to NULL.
370 (allocate_itemsets): Allocate kernel_items only if needed.
372 2001-09-22 Akim Demaille <akim@epita.fr>
374 * configure.in: Bump to 1.29b.
375 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
376 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
377 need xmalloc.c in calc.y.
380 2001-09-21 Akim Demaille <akim@epita.fr>
383 * Makefile.maint, config/config.guess, config/config.sub,
384 * config/missing: Update from masters.
385 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
387 * configure.in (ALL_LINGUAS): Add `tr'.
389 2001-09-21 Akim Demaille <akim@epita.fr>
391 * tests/Makefile.am (package.m4): Move to...
392 ($(srcdir)/$(TESTSUITE)): here.
394 2001-09-20 Akim Demaille <akim@epita.fr>
396 * src/complain.c: No longer try to be standalone: use system.h.
397 Don't assume __STDC__ is defined to 1. Just test if it is defined.
398 * src/complain.h: Likewise.
399 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
400 Remove the unused variable `n'.
401 From Albert Chin-A-Young.
403 2001-09-18 Marc Autret <autret_m@epita.fr>
405 * doc/bison.1: Update.
406 * doc/bison.texinfo (Bison Options): Update --defines and --graph
408 (Option Cross Key): Update.
411 2001-09-18 Marc Autret <autret_m@epita.fr>
413 * tests/regression.at: New test (comment in %union).
415 2001-09-18 Marc Autret <autret_m@epita.fr>
417 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
419 Reported by Keith Browne.
421 2001-09-18 Marc Autret <autret_m@epita.fr>
423 * tests/output.at: Add tests for --defines and --graph.
425 2001-09-18 Marc Autret <autret_m@epita.fr>
427 * tests/output.at: Removes tests of %{header,src}_extension features.
429 2001-09-18 Akim Demaille <akim@epita.fr>
431 * tests/Makefile.am (package.m4): New.
432 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
433 (_AT_CHECK_CALC_ERROR): Likewise.
434 Factor the `, ' part of verbose error messages.
436 2001-09-18 Marc Autret <autret_m@epita.fr>
438 * src/getargs.c (longopts): Declare --defines and --graph as options
439 with optional arguments.
440 * src/files.h: Add extern declarations.
441 * src/files.c (spec_graph_file, spec_defines_file): New.
442 (output_files): Update.
443 Remove CPP-outed code.
445 2001-09-18 Marc Autret <autret_m@epita.fr>
447 Turn off %{source,header}_extension feature.
449 * src/files.c (compute_exts_from_gf): Update.
450 (compute_exts_from_src): Update.
451 (output_files): CPP-out useless code.
452 * src/files.h: Remove {header,source}_extension extern declarations.
453 * src/reader.c (parse_dquoted_param): CPP-out.
454 (parse_header_extension_decl): Remove.
455 (parse_source_extension_decl): Remove.
456 (read_declarations): Remove cases tok_{hdrext,srcext}.
457 * src/lex.c (percent_table): Remove {header,source}_extension entries.
458 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
460 2001-09-10 Akim Demaille <akim@epita.fr>
462 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
463 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
464 (AT_CHECK_OUTPUT): this.
465 Merely check ls' exit status, its output is useless.
467 2001-09-10 Akim Demaille <akim@epita.fr>
469 * tests/calc.at: Use m4_match.
470 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
472 2001-09-10 Marc Autret <autret_m@epita.fr>,
473 Akim Demaille <akim@epita.fr>
475 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
477 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
479 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
480 * src/lex.h: Adjust prototype.
481 (token_t): Add `tok_undef'.
482 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
483 (parse_percent_token): Now returns token_t.
484 Add default statement in switch.
485 (lex): Separate `c' as an input variable, from the token_t result
487 (unlexed): Is a token_t.
489 2001-09-10 Akim Demaille <akim@epita.fr>
491 * configure.in: Bump to 1.29a.
493 2001-09-07 Akim Demaille <akim@epita.fr>
497 2001-08-30 Akim Demaille <akim@epita.fr>
499 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
500 * m4/atconfig.m4: Remove.
501 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
503 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
504 m4_if, m4_patsubst, and m4_regexp.
505 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
506 `input' file instead of echo.
508 2001-08-29 Akim Demaille <akim@epita.fr>
512 2001-08-29 Akim Demaille <akim@epita.fr>
516 2001-08-29 Paul Eggert <eggert@twinsun.com>
518 * src/bison.simple (yyparse): Don't take the address of an
519 item before the start of an array, as that doesn't conform to
522 2001-08-29 Robert Anisko <anisko_r@epita.fr>
524 * doc/bison.texinfo (Location Tracking Calc): New node.
526 2001-08-29 Paul Eggert <eggert@twinsun.com>
528 * src/output.c (output): Do not define const, as this now
529 causes more problems than it cures.
531 2001-08-29 Akim Demaille <akim@epita.fr>
533 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
535 Be sure to tag the `detailmenu'.
537 2001-08-29 Akim Demaille <akim@epita.fr>
539 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
540 download in a tmp dir.
542 2001-08-28 Marc Autret <autret_m@epita.fr>
544 * config/depcomp: New file.
546 2001-08-28 Marc Autret <autret_m@epita.fr>
548 * doc/bison.1 (mandoc): Adjust.
549 From Juan Manuel Guerrero.
551 2001-08-28 Marc Autret <autret_m@epita.fr>
553 * src/print_graph.c (print_state): Fix.
555 2001-08-27 Marc Autret <autret_m@epita.fr>
557 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
559 Echo modifications to the functions prototypes.
560 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
562 2001-08-27 Marc Autret <autret_m@epita.fr>
564 * src/vcg.c: Include `xalloc.h'.
565 (add_colorentry): New.
566 (add_classname): New.
568 * src/vcg.h: Add new prototypes.
570 2001-08-27 Akim Demaille <akim@epita.fr>
572 * Makefile.maint: Sync. again with CVS Autoconf.
574 2001-08-27 Akim Demaille <akim@epita.fr>
576 * Makefile.maint: Formatting changes.
577 (po-update, cvs-update, update): New targets.
580 2001-08-27 Akim Demaille <akim@epita.fr>
582 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
583 * Makefile.maint: Sync. with CVS Autoconf.
585 2001-08-27 Marc Autret <autret_m@epita.fr>
587 * src/vcg.h (struct infoname_s): New.
588 (struct colorentry_s): New.
589 (graph_s): New fields {vertical,horizontal}_order in structure.
590 Add `infoname' field.
591 Add `colorentry' field;
592 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
593 (G_HORIZONTAL_ORDER): New.
596 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
597 Add output of `infoname'.
598 Add output of `colorentry'.
600 2001-08-27 Marc Autret <autret_m@epita.fr>
602 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
603 This one shadowed a global parameter.
605 2001-08-24 Marc Autret <autret_m@epita.fr>
607 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
608 instead of `unsigned'.
609 (print_state): Do not call obstack_object_size () in obstack_grow ()
610 to avoid macro variables shadowing.
612 2001-08-23 Marc Autret <autret_m@epita.fr>
614 * src/lex.c (percent_table): Typo: s/naem/name/.
616 Normalize new options declarations.
618 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
620 * tests/suite.at: Exercise %header_extension and %source_extension.
622 2001-08-16 Marc Autret <autret_m@epita.fr>
624 * src/reader.c (parse_dquoted_param): New.
625 (parse_header_extension_decl): Use it.
626 (parse_source_extension_decl): Likewise.
628 2001-08-16 Marc Autret <autret_m@epita.fr>
630 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
631 (get_xxxx_str): Use assert () instead of complain ().
632 Remove return invokations in default cases.
633 (get_decision_str): Modify default behaviour. Remove second argument.
634 Echo modifications on calls.
637 2001-08-16 Marc Autret <autret_m@epita.fr>
639 * src/getargs.c (usage): Update with ``-g, --graph''.
641 2001-08-16 Marc Autret <autret_m@epita.fr>
643 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
644 (Option Cross Key): Likewise.
645 * doc/bison.1: Update.
647 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
649 * src/output.c (output_master_parser): Don't finish action_obstack.
650 (output_parser): Don't care about the muscle action, here.
651 (prepare): Copy the action_obstack in the action muscle.
652 (output): Free action_obstack.
654 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
656 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
657 will contain `%union' declaration.
658 (parse_union_decl): Delete #line directive output.
659 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
660 informations about %union.
661 (parse_union_decl): Copy the union_obstack in the muscle stype.
662 * src/bison.simple: Add new #line directive.
663 Add typdef %%stype YYSTYPE.
665 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
667 * src/bison.simple: Add new `#line' directive.
669 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
671 * src/bison.simple: New `#line' directive.
672 * src/output.c (output_parser): Support new dynamic muscle input_line.
674 2001-09-22 Marc Autret <autret_m@epita.fr>
676 * src/output.c (output_master_parser): New.
677 (output_parser): Be more re-entrant.
679 2001-09-21 Marc Autret <autret_m@epita.fr>
681 * src/reader.c (copy_definition, parse_union_decl): Update and use
683 (copy_action): Likewise.
684 Use obstack_1grow ().
685 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
687 2001-09-21 Marc Autret <autret_m@epita.fr>
689 * src/options.c (option_table): Adjust.
690 * src/lex.c (parse_percent_token): Fix.
692 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
694 * src/options.c (symtab.h): Include it, need by lex.h.
696 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
698 * src/lex.c (parse_percent_token): Change type of variable `tx', which
699 is now an option_table_struct*.
700 (option_strcmp): New function option_strcmp.
701 (parse_percent_token): Call option_strcmp.
702 * src/getargs.c (xalloc.h, options.h): Include it.
703 (getargs): Call create_long_option_table.
704 (getargs): Free longopts at the end of the function.
705 (shortopts): Move in options.c.
706 * src/options.c (create_long_option_table): New function. Convert
707 information from option_table to option structure.
708 * src/reader.c (options.h): Include it.
710 * src/Makefile.am: Adjust.
711 * src/options.c (option_table): Create from longopts and percent_table.
712 * src/getargs.c (longopts): Delete.
713 * src/lex.c (struct percent_table_struct): Delete.
714 (percent_table): Delete.
715 (options.h): Include it.
716 * src/options.c: Create.
717 * src/options.h: Create.
718 Declare enum opt_access_e.
719 Define struct option_table_struct.
721 2001-09-20 Marc Autret <autret_m@epita.fr>
723 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
726 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
728 * src/bison.simple: s/%%filename/%%skeleton.
729 * src/muscle_tab.c (getargs.h): Include it.
730 (muscle_init): Insert new muscle skeleton.
732 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
734 * src/output.c (output_parser): Delete unused variable actions_dumped.
736 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
738 * src/output.c (output): Delete call to reader_output_yylsp.
739 * src/reader.c (reader): Likewise.
740 * src/reader.h: Delete declaration of reader_output_yylsp.
742 2001-09-02 Marc Autret <autret_m@epita.fr>
744 * src/reader.c: Include muscle_tab.h.
745 (parse_union_decl): Update.
746 (parse_macro_decl): Rename parse_muscle_decl.
747 Update to use renamed functions and variable.
748 (read_declarations, copy_action, read_additionnal_code, : Updated
749 with correct variables and functions names.
750 (packsymbols, reader): Likewise.
752 * src/reader.h (muscle_obstack): Extern declaration update.
754 * src/output.c: Include muscle_tab.h
755 In all functions using macro_insert, change by using muscle_insert ().
756 (macro_obstack): Rename muscle_obstack.
757 Echo modifications in the whole file.
758 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
759 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
760 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
762 * src/muscle_tab.h: Update double inclusion macros.
763 (macro_entry_s): Rename muscle_entry_s.
766 * src/muscle_tab.c: Include muscle_tab.h.
767 Rename macro_tabble to muscle_table.
768 (mhash1, mhash2, mcmp): Use muscle_entry.
769 (macro_init): Rename muscle_init. Update.
770 (macro_insert): Rename muscle_insert. Update.
771 (macro_find): Rename muscle_find. Update.
773 * src/main.c: Include muscle_tab.h.
774 (main): Call muscle_init ().
775 * src/Makefile.am (bison_SOURCES): Echo modifications.
777 2001-09-02 Marc Autret <autret_m@epita.fr>
779 Now the files macro_tab.[ch] are named muscle_tab.[ch].
781 * src/muscle_tab.c, src/muscle_tab.h: Add files.
783 2001-09-02 Marc Autret <autret_m@epita.fr>
785 * src/macrotab.c, src/macrotab.h: Remove.
787 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
789 * src/reader.c (copy_guard): Use muscle to specify the `#line'
792 2001-09-01 Marc Autret <autret_m@epita.fr>
794 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
795 to an explicit value to activate the feature. We do it here.
797 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
799 * src/output.c (prepare): Delete the `filename' muscule insertion.
800 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
801 (parse_union_decl): Likewise.
802 * src/macrotab.c (macro_init): Initialize filename by infile.
804 2001-08-31 Marc Autret <autret_m@epita.fr>
806 * src/bison.simple (YYLSP_NEEDED): New definition.
807 * src/output.c (prepare): Add macro insertion of `locations_flag'
809 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
811 * src/output.c (prepare): Delete insertion of previous muscles,
812 and insert the `prefix' muscles.
813 * src/macrotab.c (macro_init): Likewise.
814 (macro_init): Initialization prefix directive by `yy'.
815 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
816 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
817 yylval, yydebug, yyerror, yynerrs and yyparse.
818 New directive `#define' to substitute yydebug, ... with option
821 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
823 * src/main.c (main): Standardize.
824 * src/output.c (output_table_data, output_parser): Likewise.
825 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
827 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
829 * src/reader.c (read_additionnal_code): Rename %%user_code to
831 * src/output.c (output): Rename %%declarations to %%prologue.
832 * src/bison.simple: Echo modifications.
834 2001-08-31 Marc Autret <autret_m@epita.fr>
836 * src/reader.c (readgram): CleanUp.
837 (output_token_defines): Likewise.
838 (packsymbols): Likewise.
840 * src/output.c (output): CPP-out useless code.
842 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
844 * src/reader.c (reader): Delete obsolete call to function
845 output_trailers and output_headers.
846 * src/output.h: Remove obsolete functions prototypes of output_headers
849 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
851 * src/main.c: Include macrotab.h.
852 * src/macrotab.h (macro_entry_s): Constify fields.
853 Adjust functions prototypes.
854 * src/macrotab.c (macro_insert): Constify key and value.
855 (macro_find): Constify key.
856 (macro_insert): Include 'xalloc.h'
857 (macro_insert): Use XMALLOC.
858 (macro_find): Constify return value.
859 * src/output.c (output_table_data): Rename table to table_data.
860 (output_parser): Constify macro_key, macro_value.
862 2001-08-30 Marc Autret <autret_m@epita.fr>
864 * src/reader.c (parse_skel_decl): New.
865 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
866 * src/lex.h (token_t): New token `tok_skel'.
867 * src/lex.c (percent_table): Add skeleton option entry.
870 2001-08-29 Marc Autret <autret_m@epita.fr>
872 * src/bison.simple: Add %%user_code directive at the end.
873 * src/reader.c (read_additionnal_code): New.
875 * src/output.c (output_program): Remove.
878 2001-08-28 Marc Autret <autret_m@epita.fr>
880 * src/output.c (output_actions): Clean up.
881 (output_gram): CPP-out useless code.
882 * src/reader.c (reader): Clean up, CPP-out useless code.
884 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
886 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
888 * src/bison.simple: Add `%%definitions'.
890 2001-08-28 Marc Autret <autret_m@epita.fr>
892 * config/depcomp: New file.
894 2001-08-27 Paul Eggert <eggert@twinsun.com>
896 * src/bison.simple (yyparse): Don't take the address of an
897 item before the start of an array, as that doesn't conform to
900 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
902 * src/output.c (output): Remove the initialization of the macro
903 obstack. It was done too late here.
905 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
907 (reader): Initialize the macro obstack here, since we need it to grow
908 '%define' directives.
910 * src/reader.h: Declare the macro obstack as extern.
912 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
914 * src/output.c (output_parser): Fix. Store single '%' characters in
915 the output obstack instead of throwing them away.
917 2001-08-27 Akim Demaille <akim@epita.fr>
919 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
921 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
923 * lib/Makefile.am: Adjust.
925 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
927 * src/bison.simple: Update and add '%%' directives.
929 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
931 * src/reader.c (reader): Remove calls to 'output_headers' and
932 'output_trailers'. Remove some C output.
933 (readgram): Disable a piece of code that was writing a default
934 definition for 'YYSTYPE'.
935 (reader_output_yylsp): Remove.
936 (packsymbols): Output token defintions to a macro.
937 (copy_definition): Disable C output.
939 * src/reader.c (parse_macro_decl): New function used to parse macro
941 (copy_string2): Put the body of copy_string into this new function.
942 Add a parameter to let the caller choose whether he wants to copy the
943 string delimiters or not.
944 (copy_string): Be a simple call to copy_string2 with the last argument
946 (read_declarations): Add case for macro definition.
947 (copy_identifier): New.
948 (parse_macro_decl): Read macro identifiers using copy_identifier
951 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
953 * src/output.c (prepare): Add prefixed names.
954 (output_parser): Output semantic actions.
955 (output_parser): Fix bug on '%%line' directives.
957 * src/output.c (output_headers): Remove. The C code printed by this
958 function should now be in the skeletons.
959 (output_trailers): Remove.
960 (output): Disable call to 'reader_output_yylsp'.
961 (output_rule_data): Do not output tables to the table obstack.
963 * src/output.c: Remove some C dedicated output.
964 Improve the use of macro and output obstacks.
965 (output_defines): Remove.
967 * src/output.c (output_token_translations): Associate 'translate'
968 table with a macro. No output to the table obstack.
969 (output_gram): Same for 'rhs' and 'prhs'.
970 (output_stos): Same for 'stos'.
971 (output_rule_data): Same for 'r1' and 'r2'.
972 (token_actions): Same for 'defact'.
973 (goto_actions): Same for 'defgoto'.
974 (output_base): Same for 'pact' and 'pgoto'.
975 (output_table): Same for 'table'.
976 (output_check): Same for 'check'.
978 * src/output.c (output_table_data): New function.
979 (output_short_table): Remove.
980 (output_short_or_char_table): Remove.
982 * src/output.c (output_parser): Replace most of the skeleton copy code
983 with something new. Skeletons are now processed character by character
984 rather than line by line, and Bison looks for '%%' macros. This is the
985 first step in making Bison's output process (a lot) more flexible.
986 (output_parser): Use the macro table.
988 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
990 * src/main.c (main): Initialize the macro table.
992 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
994 * src/lex.c (percent_table): Add tok_define.
995 * src/lex.h: Add tok_define.
997 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
999 * src/macrotab.c: New file.
1000 * src/macrotab.h: New file.
1001 * src/Makefile.am: Update.
1003 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1005 * lib/hash.c: New file.
1006 * lib/hash.h: New file.
1007 * lib/Makefile.am: Update.
1009 2001-08-15 Akim Demaille <akim@epita.fr>
1013 2001-08-15 Marc Autret <autret_m@epita.fr>
1015 * src/reader.c (readgram): Indent output macro YYSTYPE.
1016 (packsymbols): Likewise.
1017 (output_token_defines): Likewise.
1018 * src/files.c: Standardize.
1019 (compute_header_macro): New.
1020 (defines_obstack_save): New. Use compute_header_macro.
1021 (output_files): Update. Use defines_obstack_save.
1023 2001-08-15 Akim Demaille <akim@epita.fr>
1025 * doc/bison.texinfo (Table of Symbols): Document
1028 2001-08-15 Akim Demaille <akim@epita.fr>
1030 * missing: Update from CVS Automake.
1031 * config/config.guess, config/config.sub, config/texinfo.tex:
1032 Update from gnu.org.
1034 2001-08-15 Akim Demaille <akim@epita.fr>
1036 * Makefile.maint: Sync with CVS Autoconf.
1038 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1040 * doc/bison.texinfo: Include GNU Free Documentation License from
1042 * doc/fdl.texi: Add to package.
1044 2001-08-14 Marc Autret <autret_m@epita.fr>
1046 Turn on %{source,header}_extension features.
1048 * src/lex.c (percent_table): Un-CPP out header_extension and
1050 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1051 (compute_exts_from_src): Remove conditions. It restores priorities
1054 2001-08-14 Marc Autret <autret_m@epita.fr>
1056 * src/files.c (compute_base_names): Add extensions computing when
1057 `--file-prefix' used.
1058 Standardize function calls.
1060 2001-08-13 Marc Autret <autret_m@epita.fr>
1062 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1063 defining it (defined but null disables alloca).
1065 2001-08-13 Marc Autret <autret_m@epita.fr>
1067 * src/bison.simple (_yy_memcpy): CPP reformat.
1069 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1071 * tests/atconfig.in (CPPFLAGS): Fix.
1073 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1075 * doc/bison.texinfo: Include GNU General Public License from
1077 * doc/gpl.texi: Add to package.
1079 2001-08-10 Marc Autret <autret_m@epita.fr>
1081 * src/print_graph.h: Fix.
1082 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1084 2001-08-10 Akim Demaille <akim@epita.fr>
1086 * src/system.h: Provide default declarations for stpcpy, strndup,
1089 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1091 * doc/bison.texinfo (Locations): Update @$ stuff.
1093 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1095 * src/bison.simple (YYLLOC_DEFAULT): Update.
1098 2001-08-08 Marc Autret <autret_m@epita.fr>
1100 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1101 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1102 Reported by Fabrice Bauzac.
1104 2001-08-08 Marc Autret <autret_m@epita.fr>
1106 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1107 * src/vcg.c (output_node): Fix.
1108 * src/vcg.h: Cleanup.
1109 * src/print_graph.c: Add comments.
1110 (node_output_size): New global variable. Simplify the formatting of
1111 the VCG graph output.
1112 (print_actions): Unused code is now used. It notifies the final state
1113 and no action states in the VCG graph. It also give the reduce actions.
1114 The `shift and goto' edges are red and the `go to state' edges are
1116 Get the current node name and node_obstack by argument.
1117 (node_obstack): New variable.
1118 (print_state): Manage node_obstack.
1119 (print_core): Use node_obstack given by argument.
1120 A node is not only computed here but in print_actions also.
1121 (print_graph): CPP out useless code instead of commenting it.
1123 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1125 * tests/atconfig.in (CPPFLAGS): Fix.
1127 2001-08-07 Akim Demaille <akim@epita.fr>
1129 * src/print_graph.c (quote): New.
1130 (print_core): Use it.
1132 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1134 * src/vcg.c (complain.h): Include it.
1135 Unepitaize `return' invocations.
1136 [NDEBUG] (main): Remove.
1137 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1138 * src/files.c (open_files): Initialize graph_obstack.
1139 * src/print_graph.c (print_actions): CPP out useless code.
1140 (print_core): Don't output the last `\n' in labels.
1142 * src/files.c (output_files): Output the VCG file.
1143 * src/main.c (main): Invoke print_graph ();
1145 2001-08-06 Marc Autret <autret_m@epita.fr>
1147 Automaton VCG graph output.
1148 Using option ``-g'' or long option ``--graph'', you can generate
1149 a gram_filename.vcg file containing a VCG description of the LALR (1)
1150 automaton of your grammar.
1152 * src/main.c: Call to print_graph() function.
1153 * src/getargs.h: Update.
1154 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1155 (graph_flag): New flag.
1157 (getargs): Add case `g'.
1158 * src/files.c (graph_obstack): New obstack struct.
1159 (open_files): Initialize new obstack.
1160 (output_files): Saves graph_obstack if required.
1161 * src/files.h (graph_obstack): New extern declaration.
1162 * src/Makefile.am: Add new source files.
1164 2001-08-06 Marc Autret <autret_m@epita.fr>
1166 * src/print_graph.c, src/print_graph.h (graph): New.
1167 * src/vcg.h: New file.
1168 * src/vcg.c: New file, VCG graph handling.
1170 2001-08-06 Marc Autret <autret_m@epita.fr>
1172 Add of %source_extension and %header_extension which specify
1173 the source or/and the header output file extension.
1175 * src/files.c (compute_base_names): Remove initialisation of
1176 src_extension and header_extension.
1177 (compute_exts_from_gf): Update.
1178 (compute_exts_from_src): Update.
1179 (output_files): Update.
1180 * src/reader.c (parse_header_extension_decl): New.
1181 (parse_source_extension_decl): New.
1182 (read_declarations): New case statements for the new tokens.
1183 * src/lex.c (percent_table): Add entries for %source_extension
1184 and %header_extension.
1185 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1187 2001-08-06 Marc Autret <autret_m@epita.fr>
1189 * configure.in: Bump to 1.28c.
1190 * doc/bison.texinfo: Texinfo thingies.
1192 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1194 * tests/atconfig.in (CPPFLAGS): Add.
1195 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1197 2001-08-03 Akim Demaille <akim@epita.fr>
1201 2001-08-03 Akim Demaille <akim@epita.fr>
1203 * tests/Makefile.am (check-local): Ship testsuite.
1204 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1207 2001-08-03 Akim Demaille <akim@epita.fr>
1209 * configure.in: Try using -Wformat when compiling.
1211 2001-08-03 Akim Demaille <akim@epita.fr>
1213 * configure.in: Bump to 1.28b.
1215 2001-08-03 Akim Demaille <akim@epita.fr>
1217 * src/complain.c: Adjust strerror_r portability issues.
1219 2001-08-03 Akim Demaille <akim@epita.fr>
1223 2001-08-03 Akim Demaille <akim@epita.fr>
1225 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1226 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1227 * src/getargs.c: Include complain.h.
1228 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1229 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1231 2001-08-03 Akim Demaille <akim@epita.fr>
1233 * src/reader.c (readgram): Display hidden chars in error messages.
1235 2001-08-03 Akim Demaille <akim@epita.fr>
1237 Update to gettext 0.10.39.
1239 2001-08-03 Akim Demaille <akim@epita.fr>
1241 * lib/strspn.c: New.
1243 2001-08-01 Marc Autret <autret_m@epita.fr>
1245 * doc/bison.texinfo: Update.
1246 * doc/bison.1 (mandoc): Update.
1247 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1248 * src/files.c: Support output files extensions computing.
1249 (src_extension): New static variable.
1250 (header_extension): New static variable.
1252 (get_extension_index): New function, gets the index of an extension
1253 filename in a string.
1254 (compute_exts_from_gf): New function, computes extensions from the
1255 grammar file extension.
1256 (compute_exts_from_src): New functions, computes extensions from the
1257 C source file extension, file given by ``-o'' option.
1258 (compute_base_names): Update.
1259 (output_files): Update.
1261 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1263 * doc/bison.texi: Document @$.
1264 (Locations): New section.
1266 2001-07-18 Akim Demaille <akim@epita.fr>
1268 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1269 * config/prev-version.txt, config/move-if-change: New.
1270 * Makefile.am: Adjust.
1272 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1274 * src/bison.simple (yyparse): Suppress warning `comparaison
1275 between signed and unsigned'.
1277 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1279 * src/getargs.h (raw_flag): Remove.
1280 * src/getargs.c: Die on `-r'/`--raw'.
1281 * src/lex.c (parse_percent_token): Die on `%raw'.
1282 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1283 * tests/calc.at: Suppress test with option `--raw'.
1285 2001-07-14 Akim Demaille <akim@epita.fr>
1288 * configure.in: Require Autoconf 2.50.
1289 Update to gettext 0.10.38.
1291 2001-03-16 Akim Demaille <akim@epita.fr>
1293 * doc/bison.texinfo: ANSIfy the examples.
1295 2001-03-16 Akim Demaille <akim@epita.fr>
1297 * getargs.c (skeleton): New variable.
1298 (longopts): --skeleton is a new option.
1299 (shortopts, getargs): -S is a new option.
1300 * getargs.h: Declare skeleton.
1301 * output.c (output_parser): Use it.
1303 2001-03-16 Akim Demaille <akim@epita.fr>
1305 * m4/strerror_r.m4: New.
1306 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1307 * lib/error.h, lib/error.c: Update.
1309 2001-03-16 Akim Demaille <akim@epita.fr>
1311 * src/getargs.c (longopts): Clean up.
1313 2001-02-21 Akim Demaille <akim@epita.fr>
1315 * src/reader.c (gensym): `gensym_count' is your own.
1316 Use a static buf to create the symbol name, as token_buffer is no
1319 2001-02-08 Akim Demaille <akim@epita.fr>
1321 * src/conflicts.c (conflict_report): Be sure not to append to res
1322 between two calls, which could happen if both first sprintf were
1323 skipped, but not the first cp += strlen.
1325 2001-02-08 Akim Demaille <akim@epita.fr>
1327 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1328 New, from fileutils 4.0.37.
1329 * configure.in: Require Autoconf 2.49c. I took some time before
1330 making this decision. This is the only way out for portability
1331 issues in Bison, it would mean way too much duplicate effort to
1332 import in Bison features implemented in 2.49c since 2.13.
1333 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1335 2001-02-02 Akim Demaille <akim@epita.fr>
1337 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1338 * lib/xalloc.h, lib/xmalloc.c: Update.
1340 2001-01-19 Akim Demaille <akim@epita.fr>
1342 Get rid of the ad hoc handling of token_buffer in the scanner: use
1345 * src/lex.c (token_obstack): New.
1346 (init_lex): Initialize it. No longer call...
1347 (grow_token_buffer): this. Remove it.
1348 Adjust all the places which used it to use the obstack.
1350 2001-01-19 Akim Demaille <akim@epita.fr>
1352 * src/lex.h: Rename all the tokens:
1353 s/\bENDFILE\b/tok_eof/g;
1354 s/\bIDENTIFIER\b/tok_identifier/g;
1356 Let them be enums, not #define, to ease debugging.
1357 Adjust all the code.
1359 2001-01-18 Akim Demaille <akim@epita.fr>
1361 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1362 * src/lex.c (maxtoken, grow_token_buffer): Static.
1364 2001-01-18 Akim Demaille <akim@epita.fr>
1366 Since we now use obstacks, more % directives can be enabled.
1368 * src/lex.c (percent_table): Also accept `%yacc',
1369 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1371 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1372 instead of returning a token.
1373 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1374 * src/reader.c (read_declarations): Adjust.
1375 * src/files.c (open_files): Don't call `compute_base_names', don't
1376 compute `attrsfile' since they depend upon data which might be
1377 *in* the input file now.
1378 (output_files): Do it here.
1379 * src/output.c (output_headers): Document the fact that this patch
1380 introduces a guaranteed SEGV for semantic parsers.
1381 * doc/bison.texinfo: Document them.
1382 * tests/suite.at: Exercise these %options.
1384 2000-12-20 Akim Demaille <akim@epita.fr>
1386 Also handle the output file (--verbose) with obstacks.
1388 * files.c (foutput): Remove.
1389 (output_obstack): New.
1390 Adjust all dependencies.
1391 * src/conflicts.c: Return a string.
1392 * src/system.h (obstack_grow_string): Rename as...
1393 (obstack_sgrow): this. Be ready to work with non literals.
1394 (obstack_fgrow4): New.
1396 2000-12-20 Akim Demaille <akim@epita.fr>
1398 * src/files.c (open_files): Fix the computation of short_base_name
1399 in the case of `-o foo.tab.c'.
1401 2000-12-20 Akim Demaille <akim@epita.fr>
1403 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1404 (copy_dollar): Now that everything uses obstacks, get rid of the
1407 2000-12-20 Akim Demaille <akim@epita.fr>
1409 * src/files.c (open_files): Actually the `.output' file is based
1410 on the short_base_name, not base_name.
1411 * tests/suite.at (Checking output file names): Adjust.
1413 2000-12-20 Akim Demaille <akim@epita.fr>
1415 * src/bison.s1: Remove, we now use directly...
1416 * src/bison.simple: this.
1417 * src/Makefile.am: Use pkgdata instead of data.
1419 2000-12-20 Akim Demaille <akim@epita.fr>
1421 * src/files.c (guard_obstack): New.
1422 (open_files): Initialize it.
1423 (output_files): Dump it...
1424 * src/files.h: Export it.
1425 * src/reader.c (copy_guard): Use it.
1427 2000-12-19 Akim Demaille <akim@epita.fr>
1429 * src/files.c (outfile, defsfile, actfile): Removed as global
1431 (open_files): Don't compute them.
1432 (output_files): Adjust.
1433 (base_name, short_base_name): Be global.
1434 Adjust dependencies.
1436 2000-12-19 Akim Demaille <akim@epita.fr>
1438 * src/files.c (strsuffix): New.
1439 (stringappend): Be just like strcat but allocate.
1440 (base_names): Eve out from open_files.
1441 Try to simplify the rather hairy computation of base_name and
1443 (open_files): Use it.
1444 * tests/suite.at (Checking output file names): New test.
1446 2000-12-19 Akim Demaille <akim@epita.fr>
1448 * src/system.h (obstack_grow_literal_string): Rename as...
1449 (obstack_grow_string): this.
1450 * src/output.c (output_parser): Recognize `%% actions' instead of
1452 * src/bison.s1: s/$/%% actions/.
1453 * src/bison.hairy: Likewise.
1455 2000-12-19 Akim Demaille <akim@epita.fr>
1457 * src/output.c (output_parser): Compute the `#line' lines when
1459 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1460 Suggested by Hans Aberg.
1462 2000-12-19 Akim Demaille <akim@epita.fr>
1464 Let the handling of the skeleton files be local to the procedures
1467 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1469 (fparser, open_extra_files): Remove.
1470 (open_files, output_files): Don't take care of fparser.
1471 * src/files.h: Adjust.
1472 * src/output.c (output_parser): Open and close the file to the
1474 * src/reader.c (read_declarations): When %semantic_parser, open
1477 2000-12-19 Akim Demaille <akim@epita.fr>
1479 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1480 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1482 2000-12-19 Akim Demaille <akim@epita.fr>
1484 * src/files.c (open_files): Yipee! We no longer need all the code
1485 looking for `/tmp' since we have no tmp file.
1487 2000-12-19 Akim Demaille <akim@epita.fr>
1489 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1491 * src/files.c (open_files): Less dependency on MSDOS etc.
1493 2000-12-14 Akim Demaille <akim@epita.fr>
1495 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1496 Provide a default definition.
1497 Use it when executing the default @ action.
1498 * src/reader.c (reader_output_yylsp): No longer include
1499 `timestamp' and `text' in the default YYLTYPE.
1501 2000-12-12 Akim Demaille <akim@epita.fr>
1503 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1504 (copy_guard): Quote the file names.
1505 Reported by Laurent Mascherpa.
1507 2000-12-12 Akim Demaille <akim@epita.fr>
1509 * src/output.c (output_headers, output_program, output): Be sure
1510 to escape special characters when outputting filenames.
1511 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1512 (output_headers): Don't depend on them, Use ACTSTR.
1514 2000-11-17 Akim Demaille <akim@epita.fr>
1516 * lib/obstack.h: Formatting changes.
1517 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1518 prevents type checking.
1519 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1520 cast the value to (void *): assigning a `foo *' to a `void *'
1522 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1523 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1526 2000-11-17 Akim Demaille <akim@epita.fr>
1528 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1530 (suite.m4, regression.m4, calc.m4): these.
1531 * tests/atgeneral.m4: Update from CVS Autoconf.
1533 2000-11-17 Akim Demaille <akim@epita.fr>
1535 * tests/regression.m4 (%union and --defines): New test,
1536 demonstrating a current bug in the obstack implementation.
1538 2000-11-17 Akim Demaille <akim@epita.fr>
1540 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1542 Use them to declare the variables which are global or local to
1545 2000-11-17 Akim Demaille <akim@epita.fr>
1547 * acconfig.h: Remove, no longer used.
1549 2000-11-07 Akim Demaille <akim@epita.fr>
1551 * src: s/Copyright (C)/Copyright/g.
1553 2000-11-07 Akim Demaille <akim@epita.fr>
1555 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1557 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1559 2000-11-07 Akim Demaille <akim@epita.fr>
1561 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1562 Merge in a single CPP if/else.
1564 2000-11-07 Akim Demaille <akim@epita.fr>
1566 * src/output.c (output): Remove useless variables.
1567 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1568 argument `data' for consistency with the prototypes.
1570 (obstack_copy, obstack_copy0): Rename the second argument as
1571 `address' for consistency. Qualify it `const'.
1572 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1573 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1574 `const' their input argument (`data' or `address').
1575 Adjust the corresponding macros to include `const' in casts.
1577 2000-11-03 Akim Demaille <akim@epita.fr>
1579 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1580 s/PFILE1/BISON_HAIRY/.
1581 Adjust dependencies.
1583 2000-11-03 Akim Demaille <akim@epita.fr>
1585 For some reason, this was not applied.
1587 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1588 `unlink': it's no longer used.
1590 2000-11-03 Akim Demaille <akim@epita.fr>
1592 * src/files.c (skeleton_find): New function, eved out of...
1593 (open_files, open_extra_files): here.
1595 2000-11-03 Akim Demaille <akim@epita.fr>
1599 * src/files.c (obstack_save): New function.
1600 (done): Rename as...
1601 (output_files): this.
1603 * src/main.c (main): Don't use `atexit' to register `done', since
1604 it no longer has to remove tmp files, just call `output_files'
1605 when there are no errors.
1607 2000-11-02 Akim Demaille <akim@epita.fr>
1609 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1610 `unlink': it's no longer used.
1611 * src/files.h: Formatting changes.
1613 2000-11-02 Akim Demaille <akim@epita.fr>
1615 Remove the last uses of mktemp and unlink/delete.
1617 * src/files.c (fdefines, ftable): Removed.
1618 (defines_ostack, table_obstack): New.
1619 Adjust dependencies of the former into uses of the latter.
1620 * src/output.c (output_short_or_char_table, output_short_table):
1621 Convert to using obstacks.
1622 * src/reader.c (copy_comment2): Accept one FILE * and two
1624 (output_token_defines, reader_output_yylsp): Use obstacks.
1625 * src/system.h (obstack_fgrow3): New.
1627 2000-11-01 Akim Demaille <akim@epita.fr>
1629 Change each use of `fattrs' into a use of `attrs_obstack'.
1631 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1632 * src/files.c (fattrs): Remove.
1633 (attrs_obstack): New.
1634 Adjust all dependencies.
1635 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1637 2000-11-01 Akim Demaille <akim@epita.fr>
1640 Change each use of `faction' into a use of `action_obstack'.
1642 * lib/obstack.h, lib/obstack.c: New files.
1643 * src/files.c (faction): Remove.
1644 (action_obstack): New.
1645 Adjust all dependencies.
1647 2000-10-20 Akim Demaille <akim@epita.fr>
1649 * lib/quote.h (PARAMS): New macro. Use it.
1651 2000-10-16 Akim Demaille <akim@epita.fr>
1653 * src/output.c (output_short_or_char_table): New function.
1654 (output_short_table, output_token_translations): Use it.
1655 (goto_actions): Use output_short_table.
1657 2000-10-16 Akim Demaille <akim@epita.fr>
1659 * src/symtab.c (bucket_new): New function.
1662 * src/output.c (output_short_table): New argument to display the
1663 comment associated with the table.
1664 Adjust dependencies.
1665 (output_gram): Use it.
1666 (output_rule_data): Nicer output layout for YYTNAME.
1668 2000-10-16 Akim Demaille <akim@epita.fr>
1670 * src/lex.c (read_typename): New function.
1672 * src/reader.c (copy_dollar): Likewise.
1674 2000-10-16 Akim Demaille <akim@epita.fr>
1676 * src/reader.c (copy_comment2): Expect the input stream to be on
1677 the `/' which is suspected to open a comment, instead of being
1678 called after `//' or `/*' was read.
1679 (copy_comment, copy_definition, parse_union_decl, copy_action)
1680 (copy_guard): Adjust.
1682 2000-10-16 Akim Demaille <akim@epita.fr>
1684 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1685 `read_signed_integer'.
1687 2000-10-16 Akim Demaille <akim@epita.fr>
1689 * src/reader.c (copy_dollar): New function.
1690 (copy_guard, copy_action): Use it.
1692 2000-10-16 Akim Demaille <akim@epita.fr>
1694 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1695 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1696 New files, from Fileutils 4.0.27.
1697 * src/main.c (printable_version): Remove.
1698 * src/lex.c, src/reader.c: Use `quote'.
1700 2000-10-04 Akim Demaille <akim@epita.fr>
1702 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1704 2000-10-04 Akim Demaille <akim@epita.fr>
1706 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1708 2000-10-04 Akim Demaille <akim@epita.fr>
1710 When a literal string is used to define two different tokens,
1711 `bison -v' segfaults.
1712 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1714 * tests/regression.m4: New file.
1715 Include the core of the sample provided by Piotr Gackiewicz.
1716 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1719 2000-10-04 Akim Demaille <akim@epita.fr>
1721 * src/reader.c (parse_expect_decl): Keep `count' within the size
1725 2000-10-02 Paul Eggert <eggert@twinsun.com>
1727 * bison.s1 (yyparse): Assign the default value
1728 unconditionally, to avoid a GCC warning and make the parser a
1731 2000-10-02 Akim Demaille <akim@epita.fr>
1733 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1736 2000-10-02 Akim Demaille <akim@epita.fr>
1738 * src/derives.c, src/print.c, src/reduce.c: To ease the
1739 translation, move some `\n' out of the translated strings.
1741 2000-10-02 Akim Demaille <akim@epita.fr>
1743 The location tracking mechanism is precious for parse error
1744 messages. Nevertheless, it is enabled only when `@n' is used in
1745 the grammar, which is a different issue (you can use it in error
1746 message, but not in the grammar per se). Therefore, there should
1747 be another means to enable it.
1749 * src/getargs.c (getargs): Support `--locations'.
1751 * src/getargs.h (locationsflag): Export it.
1752 * src/lex.c (percent_table): Support `%locations'.
1753 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1754 with `locationsflag'.
1755 * doc/bison.texinfo: Document `--locations' and `%locations'.
1757 * tests/calc.m4: Test it.
1759 For regularity of the names, replace each
1760 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1761 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1762 In addition replace each `flag' with `_flag'.
1764 2000-10-02 Akim Demaille <akim@epita.fr>
1766 Also test parse error messages, including with YYERROR_VERBOSE.
1768 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1770 Use it to check the computations.
1771 Use it to check `nonassoc' is honored.
1772 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1773 `--yyerror-verbose'.
1774 (_AT_CHECK_CALC): Adjust to this option.
1775 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1777 2000-10-02 Akim Demaille <akim@epita.fr>
1779 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1780 the latter demonstrates a flaw in the handling of non debugging
1781 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1782 was used in order to simplify:
1798 unfortunately this leads to a CPP conflict when
1799 `--name-prefix=foo' is used since it produces `#define yydebug
1802 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1803 (YYDPRINTF): New macro.
1805 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1807 Also test `--verbose', `--defines' and `--name-prefix'.
1809 2000-10-02 Akim Demaille <akim@epita.fr>
1811 Improve the readability of the produced parsers.
1813 * src/bison.s1: Formatting changes.
1814 Improve the comment related to the `$' mark.
1815 (yydefault): Don't fall through to `yyresume': `goto' there.
1816 * src/output.c (output_parser): When the `$' is met, skip the end
1818 New variable, `number_of_dollar_signs', to check there's exactly
1819 one `$' in the parser skeleton.
1821 2000-10-02 Akim Demaille <akim@epita.fr>
1823 * lib/xstrdup.c: New file, from the fileutils.
1824 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1825 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1826 instead of strlen + xmalloc + strcpy.
1827 * src/symtab.c (copys): Remove, use xstrdup instead.
1829 2000-10-02 Akim Demaille <akim@epita.fr>
1831 * src/gram.h (associativity): New enum type which replaces the
1832 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1833 `right_assoc', `left_assoc' and `non_assoc'.
1834 Adjust all dependencies.
1835 * src/reader.c: Formatting changes.
1836 (LTYPESTR): Don't define it, use it as a literal in
1837 `reader_output_yylsp'.
1838 * src/symtab.h (symbol_class): New enum type which replaces the
1839 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1840 `sunknown', `stoken and `snterm'.
1842 2000-10-02 Akim Demaille <akim@epita.fr>
1844 * src/getargs.c (fixed_outfiles): Rename as...
1845 (yaccflag): for consistency and accuracy.
1846 Adjust dependencies.
1848 2000-10-02 Akim Demaille <akim@epita.fr>
1850 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1851 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1852 difficult and introduced a lot of core dump. It turns out that
1853 Bison used an implementation of `xmalloc' based on `calloc', and
1854 at various places it does depend upon the initialization to 0. I
1855 have not tried to isolate the pertinent places, and all the former
1856 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1857 someone should address this issue.
1859 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1860 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1862 Adjust dependencies.
1863 * src/warshall.h: New file.
1866 2000-10-02 Akim Demaille <akim@epita.fr>
1868 Various anti-`extern in *.c' changes.
1870 * src/system.h: Include `assert.h'.
1872 2000-10-02 Akim Demaille <akim@epita.fr>
1874 * src/state.h (nstates, final_state, first_state, first_shift)
1875 (first_reduction): Move their exportation from here...
1876 * src/LR0.h: to here.
1877 Adjust dependencies.
1878 * src/getargs.c (statisticsflag): New variable.
1879 Add support for `--statistics'.
1880 Adjust dependencies.
1882 Remove a lot of now useless `extern' statements in most files.
1884 2000-10-02 Akim Demaille <akim@epita.fr>
1886 * src/LR0.h: New file.
1889 2000-10-02 Akim Demaille <akim@epita.fr>
1891 * src/print.h: New file.
1893 * src/print.c: Formatting and ordering changes.
1894 (verbose, terse): Replace with...
1895 (print_results): this new function.
1896 Adjust dependencies.
1898 2000-10-02 Akim Demaille <akim@epita.fr>
1900 * src/conflicts.c (conflict_report): New function.
1901 (conflict_log, verbose_conflict_log): Replace with...
1902 (print_conflicts): this function.
1903 Adjust dependencies.
1904 * src/conflicts.h: New file.
1905 Propagate its inclusion.
1907 2000-10-02 Akim Demaille <akim@epita.fr>
1909 * src/nullable.h: New file.
1910 Propagate its inclusion.
1911 * src/nullable.c: Formatting changes.
1913 2000-10-02 Akim Demaille <akim@epita.fr>
1915 * src/reduce.h: New file.
1916 Propagate its inclusion.
1917 * src/reduce.c: Topological sort and other formatting changes.
1918 (bool, TRUE, FALSE): Move their definition to...
1919 * src/system.h: here.
1921 2000-10-02 Akim Demaille <akim@epita.fr>
1923 * src/files.c: Formatting changes.
1924 (tryopen, tryclose, openfiles): Rename as...
1925 (xfopen, xfclose, open_files): this.
1926 (stringappend): static.
1927 * src/files.h: Complete the list of exported symbols.
1930 2000-10-02 Akim Demaille <akim@epita.fr>
1932 * src/reader.h: New file.
1933 Propagate its use instead of tedious list of `extern' and
1935 * src/reader.c: Formatting changes, topological sort,
1938 2000-10-02 Akim Demaille <akim@epita.fr>
1940 * src/lex.h: Prototype `lex.c' exported functions.
1941 * src/reader.c: Adjust.
1942 * src/lex.c: Formatting changes.
1943 (safegetc): Rename as...
1946 2000-10-02 Akim Demaille <akim@epita.fr>
1948 * src/lalr.h: New file.
1949 Propagate its inclusion instead of prototypes and `extern'.
1950 * src/lalr.c: Formatting changes, topological sorting etc.
1952 2000-10-02 Akim Demaille <akim@epita.fr>
1954 * src/output.c (token_actions): Introduce a temporary array,
1955 YYDEFACT, that makes it possible for this function to use
1958 2000-10-02 Akim Demaille <akim@epita.fr>
1960 `user_toknums' is output as a `short[]' in `output.c', while it is
1961 defined as a `int[]' in `reader.c'. For consistency with the
1962 other output tables, `user_toknums' is now defined as a table of
1965 * src/reader.c (user_toknums): Be a short table instead of an int
1967 Adjust dependencies.
1969 Factor the short table outputs.
1971 * src/output.c (output_short_table): New function.
1972 * src/output.c (output_gram, output_stos, output_rule_data)
1973 (output_base, output_table, output_check): Use it.
1975 2000-10-02 Akim Demaille <akim@epita.fr>
1977 * src/output.c (output): Topological sort of the functions, in
1978 order to get rid of the `static' prototypes.
1979 No longer use `register'.
1980 * src/output.h: New file.
1981 Propagate its inclusion in files explicitly prototyping functions
1984 2000-09-21 Akim Demaille <akim@epita.fr>
1986 * src/atgeneral.m4: Update from Autoconf.
1988 2000-09-21 Akim Demaille <akim@epita.fr>
1990 * src/closure.h: New file.
1991 * src/closure.c: Formatting changes, topological sort over the
1992 functions, use of closure.h.
1993 (initialize_closure, finalize_closure): Rename as...
1994 (new_closure, free_closure): these. Adjust dependencies.
1995 * src/LR0.c: Formatting changes, topological sort, use of
1997 (initialize_states): Rename as...
1999 * src/Makefile.am (noinst_HEADERS): Adjust.
2001 2000-09-20 Akim Demaille <akim@epita.fr>
2003 * src/acconfig.h: Don't protect config.h against multiple
2005 Don't define PARAMS.
2006 * src/system.h: Define PARAMS.
2007 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2008 purpose of config.h. system.h must not try to fix wrong
2009 definitions in config.h.
2011 2000-09-20 Akim Demaille <akim@epita.fr>
2013 * src/derives.h: New file.
2014 * src/main.c, src/derives.h: Use it.
2016 * src/Makefile.am (noinst_HEADERS): Adjust.
2018 2000-09-20 Akim Demaille <akim@epita.fr>
2020 * tests/atgeneral.m4: Update from Autoconf.
2021 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2022 (AT_CHECK_CALC): New macros.
2023 Use these macros to test bison with options `', `--raw',
2024 `--debug', `--yacc', `--yacc --debug'.
2026 2000-09-19 Akim Demaille <akim@epita.fr>
2028 * src/output.c: Formatting changes.
2029 * src/machine.h: Remove, leaving its contents in...
2030 * src/system.h: here.
2032 Adjust all dependencies on stdio.h and machine.h.
2033 * src/getargs.h: New file.
2034 Let all `extern' declarations about getargs.c be replaced with
2035 inclusion of `getargs.h'.
2036 * src/Makefile.am (noinst_HEADERS): Adjust.
2038 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2040 (yyerror): Returns void, not int.
2041 * doc/bison.texinfo: Formatting changes.
2043 2000-09-19 Akim Demaille <akim@epita.fr>
2045 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2048 2000-09-18 Akim Demaille <akim@epita.fr>
2050 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2051 * src/Makefile.am (INCLUDES): Don't.
2052 Be ready to fetch headers in lib/.
2054 2000-09-18 Akim Demaille <akim@epita.fr>
2056 * doc/bison.texinfo: Update the copyright.
2057 ANSIfy and GNUify the examples.
2058 Remove the old menu.
2060 2000-09-18 Akim Demaille <akim@epita.fr>
2062 First set of tests: use the `calc' example from the documentation.
2064 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2065 is defined only when YYDEBUG is.
2066 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2067 * src/files.c (tryopen, tryclose): Formatting changes.
2068 Move to the top and be static.
2069 * src/reader.c (read_signed_integer): Likewise.
2070 * tests/calc.m4: New file.
2071 * Makefile.am, suite.m4: Adjust.
2072 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2074 2000-09-18 Akim Demaille <akim@epita.fr>
2076 Add support for an Autotest test suite for Bison.
2078 * m4/m4.m4, m4/atconfig.m4: New files.
2079 * m4/Makefile.am (EXTRA_DIST): Adjust.
2080 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2082 * src/getargs.c: Display a more standard --version message.
2083 * src/reader.c (reader): Formatting changes.
2084 No longer depend upon VERSION_STRING.
2085 * configure.in: No longer use `dnl'.
2086 Set up the test suite and the new directory `tests/.
2087 (VERSION_STRING): Remove.
2089 2000-04-14 Akim Demaille <akim@epita.fr>
2091 * src/reader.c (copy_comment2): New function, same as former
2092 `copy_comment', but outputs into two FILE *.
2093 (copy_comment): Use it.
2094 (parse_union_decl): Use it.
2095 (get_type, parse_start_decl): Use the same `invalid' message.
2096 (parse_start_decl, parse_union_decl): Use the same `multiple'
2098 (parse_union_decl, copy_guard, copy_action): Use the same
2099 `unmatched' message.
2100 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2102 2000-03-31 Akim Demaille <akim@epita.fr>
2104 * src/files.c (tryopen, tryclose): Move to the top.
2107 2000-03-31 Akim Demaille <akim@epita.fr>
2109 * src/main.c (main): Don't call `done', exit does it.
2111 2000-03-31 Akim Demaille <akim@epita.fr>
2113 * allocate.c: s/return (foo)/return foo/.
2116 * output.c: Likewise.
2117 * reader.c: Likewise.
2118 * symtab.c: Likewise.
2119 * vmsgetargs.c: Likewise.
2121 2000-03-31 Akim Demaille <akim@epita.fr>
2123 Clean up the error reporting functions.
2125 * src/report.c: New file.
2126 * src/report.h: Likewise.
2127 * src/Makefile.am: Adjust.
2128 * m4/error.m4: New file.
2129 * m4/Makefile.am: Adjust.
2130 * configure.in (jm_PREREQ_ERROR): Call it.
2131 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2133 (fatal, fatals): Remove. All callers use complain.c::fatal.
2134 (warn, warni, warns, warnss, warnss): Remove. All callers use
2135 complain.c::complain.
2136 (toomany): Remove, use fatal instead.
2137 * src/files.c (done): No argument, use complain_message_count.
2138 * src/main.c (main): Register `done' to `atexit'.
2140 * src/getargs.c (usage): More `fputs', less `fprintf'.
2142 2000-03-28 Akim Demaille <akim@epita.fr>
2144 * lib/: New directory.
2145 * Makefile.am (SUBDIRS): Adjust.
2146 * configure.in: Adjust.
2147 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2149 * src/alloca.c: Moved to lib/.
2150 * src/getopt.c: Likewise.
2151 * src/getopt1.c: Likewise.
2152 * src/getopt.h: Likewise.
2153 * src/ansi2knr.c: Likewise.
2154 * src/ansi2knr.1: Likewise.
2155 * src/Makefile.am: Adjust.
2156 * lib/Makefile.am: New file.
2158 2000-03-28 Akim Demaille <akim@epita.fr>
2160 * src/getargs.c (usage): Refresh the help message.
2162 2000-03-17 Akim Demaille <akim@epita.fr>
2164 * src/getopt1.c: Updated from textutils 2.0e
2165 * src/getopt.c: Likewise.
2166 * src/getopt.h: Likewise.
2168 2000-03-17 Akim Demaille <akim@epita.fr>
2170 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2171 the file name, not the whole `#line LINE FILE'.
2173 2000-03-17 Akim Demaille <akim@epita.fr>
2175 On syntax errors, report the token on which we choked.
2177 * src/bison.s1 (yyparse): In the label yyerrlab, when
2178 YYERROR_VERBOSE, add yychar in msg.
2180 2000-03-17 Akim Demaille <akim@epita.fr>
2182 * src/reader.c (copy_at): New function.
2183 (copy_guard): Use it.
2184 (copy_action): Use it.
2186 2000-03-17 Akim Demaille <akim@epita.fr>
2188 Be kind to translators, save some useless translations.
2190 * src/main.c (banner): New function.
2191 (fatal_banner): Use it.
2192 (warn_banner): Use it.
2194 2000-03-17 Akim Demaille <akim@epita.fr>
2196 * src/reader.c (copy_definition): Use copy_string and
2197 copy_comment. Removed now unused `match', `ended',
2199 (copy_comment, copy_string): Moved, to be visible from
2202 2000-03-17 Akim Demaille <akim@epita.fr>
2204 * src/reader.c (copy_string): Declare `static inline'. No
2205 problems with inline, since it is checked by configure.
2206 (copy_comment): Likewise.
2208 2000-03-17 Akim Demaille <akim@epita.fr>
2210 * src/reader.c (packsymbols): Formatting changes.
2212 2000-03-17 Akim Demaille <akim@epita.fr>
2214 * src/reader.c (copy_comment): New function, factored out from:
2215 (copy_action): Use it. Removed now unused `match', `ended',
2217 (copy_guard): Likewise.
2219 2000-03-17 Akim Demaille <akim@epita.fr>
2221 * src/reader.c (copy_string): New function, factored out from:
2222 (copy_action): Use it.
2223 (copy_guard): Likewise.
2225 2000-03-17 Akim Demaille <akim@epita.fr>
2227 Change the handling of @s so that they behave exactly like $s.
2228 There is now a pseudo variable @$ (readble and writable), location
2229 of the lhs of the rule (by default ranging from the location of
2230 the first symbol of the rhs, to the location of the last symbol,
2231 or, if the rhs is empty, YYLLOC).
2233 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2235 (yyparse): When providing a default semantic action, provide a
2236 default location action.
2237 (after the $): No longer change `*YYLSP', just stack YYLOC the
2238 same way you stack YYVAL.
2239 * src/reader.c (read_declarations): Use warns.
2240 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2241 (copy_action, case '@'): Likewise.
2242 Use a standard error message, to save useless work from
2245 2000-03-17 Akim Demaille <akim@epita.fr>
2247 * src/bison.s1: Formatting and cosmetics changes.
2248 * src/reader.c: Likewise.
2249 Update the Copyright notice.
2251 2000-03-17 Akim Demaille <akim@epita.fr>
2253 * src/bison.s1 (#line): All set to `#line' only, since the
2254 Makefile now handles them.
2256 2000-03-16 Akim Demaille <akim@epita.fr>
2258 * src/output.c (output_rule_data): Output the documentation of
2260 (Copyright notice): Update.
2263 2000-03-16 Akim Demaille <akim@epita.fr>
2265 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2266 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2267 One `#if YYDEBUG' remains, since it uses variables which are
2268 defined only if `YYDEBUG != 0'.
2270 2000-03-16 Akim Demaille <akim@epita.fr>
2272 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2273 and related variables so that the similarities are highlighted.
2275 2000-03-16 Akim Demaille <akim@epita.fr>
2277 * src/bison.s1: Properly indent CPP directives.
2279 2000-03-16 Akim Demaille <akim@epita.fr>
2281 * src/bison.s1: Properly indent the `alloca' CPP section.
2283 2000-03-16 Akim Demaille <akim@epita.fr>
2285 Do not hard code values of directories in `configure.in'.
2286 Update the `configure' tool chain.
2288 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2290 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2291 (AC_OUTPUT): Add m4/Makefile.
2292 Bump to bison 1.28a, 1.29 has never been released.
2293 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2294 handled via src/Makefile.am.
2295 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2296 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2298 * Makefile.am (SUBDIRS): Add m4.
2299 (ACLOCAL_AM_FLAGS): New variable.
2300 (AUTOMAKE_OPTIONS): Add check-news.
2301 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2302 the proper line number and file name.
2303 (DEFS): Propagate the location of bison library files and of the
2305 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2307 * acinclude.m4: Remove, replaced by the directory m4.
2308 * m4/Makefile.am (EXTRA_DIST): New variable.
2309 * m4/gettext.m4: New file, from the fileutils.
2310 * m4/lcmessage.m4: Likewise
2311 * m4/progtest.m4: Likewise.
2312 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2314 2000-03-10 Akim Demaille <akim@epita.fr>
2317 Formatting changes of various comments.
2318 Respect the GNU coding standards at various places.
2319 Don't use `_()' when no translation is needed.
2321 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2324 OS/2 honors TMPDIR environment variable.
2326 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2328 * doc/bison.texinfo: Tweaked spelling and grammar.
2330 Removed reference to price of printed copy.
2331 Mention BISON_SIMPLE and BISON_HAIRY.
2333 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2335 * configure.in, NEWS:
2336 Bison 1.29 released.
2338 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2340 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2341 Added reference card.
2343 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2345 * po/ru.po: Added Russian translation.
2347 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2349 * configure.in: Added Russian translation.
2351 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2353 * configure.in, NEWS, README:
2354 Released version 1.28.
2356 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2359 Squashed redefinition warning on some systems.
2361 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2362 Have configure build version string instead of relying on ANSI string
2365 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2367 * po/POTFILES.in: Got rid of version.c.
2369 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2371 * acconfig.h, configure.in:
2372 Have configure build version string instead of relying on ANSI string
2375 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2378 Dropped mention of `+' for long-named options.
2380 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2382 * src/files.c: Added <unistd.h> for unlink().
2384 * src/Makefile.am, src/system.h:
2387 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2389 * README: Added a FAQ list.
2391 * configure.in, acconfig.h:
2394 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2396 * doc/FAQ, doc/Makefile.am:
2399 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2401 * src/alloc.h, src/symtab.h, src/version.c:
2402 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2404 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2406 * src/.cvsignore, src/Makefile.am:
2407 Reorganized: sources in `src', documentation in `doc'.
2409 * src/lex.c (literalchar):
2410 fixed the code for escaping double quotes (thanks
2413 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2415 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2416 Adjusted paths to reflect directory reorganization.
2418 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2420 * doc/.cvsignore, doc/Makefile.am:
2421 Reorganized: sources in `src', documentation in `doc'.
2423 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2426 Updated AC_INIT file to reflect directory reorganization.
2428 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2429 Reorganized: sources in `src', documentation in `doc'.
2431 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2434 Don't declare calloc() and realloc() if not necessary.
2436 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2438 * configure.in, acconfig.h, acinclude.m4:
2439 Don't declare calloc() and realloc() if not necessary.
2441 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2443 * po/.cvsignore: Added i18n support.
2445 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2447 * acconfig.h, configure.in, Makefile.am:
2450 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2452 * src/bison.s1: Fixed #line numbers.
2454 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2456 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2457 Added PO files from Translation Project.
2459 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2462 Added support for non-ANSI compilers (ansi2knr).
2464 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2466 * configure.in: Bumped version number to 1.27.
2469 Added `bison.simple' to list of files removed by `make distclean'.
2471 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2473 * src/files.c, src/files.h:
2474 Defined locations of parser files in config.h instead of Makefile.
2476 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2478 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2479 Defined locations of parser files in config.h instead of Makefile.
2481 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2484 Removed inappropriate use of $< macro.
2486 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2488 * po/Makefile.in.in, po/POTFILES.in:
2489 Add `po' directory skeleton.
2491 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2493 * README: Document help-bison list.
2495 * configure.in: Add check for mkstemp().
2497 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2499 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2500 Hush a few compiler warnings.
2503 Add tryclose(), which verifies that fclose was successful.
2504 Hush a couple of compiler warnings.
2506 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2508 * Makefile.am, OChangeLog:
2509 ChangeLog is now automatically generated. Include the old version as
2512 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2514 * 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:
2517 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2519 * doc/bison.texinfo: Fix formatting glitch.
2521 * doc/bison.texinfo: Update FSF address.
2523 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2525 * acconfig.h: Update FSF address.
2527 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2530 Don't define PACKAGE here, since config.h defines it.
2532 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2534 * src/reader.c: Update copyright date.
2537 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2538 favor of output directly to stderr (avoids buffer overruns).
2540 * src/reader.c: Some checks for premature EOF.
2542 * 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:
2543 Use prototypes if the compiler understands them.
2545 * src/files.c: Honor TMPDIR on Unix hosts.
2546 Use prototypes if the compiler understands them.
2549 Fix a couple of buffer overrun bugs.
2550 Use prototypes if the compiler understands them.
2552 * src/system.h: Include unistd.h and ctype.h.
2553 Use #ifdef instead of #if for NLS symbols.
2555 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2557 * doc/bison.texinfo:
2558 Delete comment "consider using @set for edition number, etc..." since
2559 we now are doing so.
2561 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2564 Use prototypes if the compiler understands them.
2566 * NEWS: Document 1.26 highlights.
2568 * Makefile.am: Require Automake 1.3 or later.
2571 Use prototypes if the compiler understands them.
2573 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2576 Use VERSION symbol from automake for version number.
2578 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2580 * acconfig.h, configure.in, version.cin:
2581 Use VERSION symbol from automake for version number.
2583 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2586 Distribute original version of simple parser (bison.s1), not built
2587 version (bison.simple).
2589 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2591 * doc/bison.texinfo: Add info dir entry.
2593 * doc/bison.texinfo:
2594 Let automake put version number into documentation.
2596 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2598 * src/bison.cld, src/build.com, src/vmshlp.mar:
2599 Add non-RCS files from /gd/gnu/bison.
2601 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2604 Document the BISON_HAIRY and BISON_SIMPLE variables.
2606 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2608 * src/version.c: Build version.c automatically.
2611 Fix token numbering (used to start at 258, not 257).
2613 * src/system.h: Include config.h.
2615 * src/getargs.c: Update bug report address.
2617 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2618 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2620 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2623 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2625 * configure.in, version.cin:
2626 Build version.c automatically.
2628 * AUTHORS: Add AUTHORS file.
2630 * README: Update bug report address.
2633 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2635 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2638 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2640 * doc/bison.texinfo: Clean up some formatting.
2642 1998-05-05 Richard Stallman <rms@gnu.org>
2644 * doc/bison.texinfo:
2645 Explain better why to make a pure parser.
2647 1998-01-05 Richard Stallman <rms@gnu.org>
2649 * src/files.c (openfiles):
2650 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2651 find a temporary directory, if possible. Do not unlink files while
2654 1997-08-25 Richard Stallman <rms@gnu.org>
2656 * src/reader.c (stack_offset;):
2657 Change some warni to warns.
2659 * src/lex.c (literalchar): Use warns, not warni.
2661 1997-06-28 Richard Stallman <rms@gnu.org>
2663 * src/bison.s1: Add a Bison version comment.
2665 * src/main.c (fatal, warn, berror):
2668 1997-06-28 Richard Stallman <rms@gnu.org>
2670 * Makefile.in (bison_version): New variable.
2671 (dist): Use that variable.
2672 (bison.s1): Substitute the Bison version into bison.simple.
2674 * bison.simple: Add a Bison version comment.
2676 1997-06-18 Richard Stallman <rms@gnu.org>
2678 * src/main.c (fatal, warn, berror):
2679 Make error messages standard.
2680 (toomany): Improve error message text.
2682 * 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:
2683 new.h renamed to alloc.h.
2685 1997-06-18 Richard Stallman <rms@gnu.org>
2687 * Makefile.in: new.h renamed to alloc.h.
2689 1997-05-24 Richard Stallman <rms@gnu.org>
2691 * src/lex.c (literalchar):
2692 Fix the code for escaping \, " and '.
2694 (lex): Avoid trouble when there are many chars
2695 to discard in a char literal with just several chars in it.
2697 1997-05-17 Richard Stallman <rms@gnu.org>
2700 Use malloc, if using alloca is troublesome.
2701 (YYSTACK_USE_ALLOCA): New flag macro.
2702 Define it for some systems and compilers.
2703 (YYSTACK_ALLOC): New macro.
2704 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2705 If it was malloc'd, free it.
2707 1997-05-17 Richard Stallman <rms@gnu.org>
2710 Use malloc, if using alloca is troublesome.
2711 (YYSTACK_USE_ALLOCA): New flag macro.
2712 Define it for some systems and compilers.
2713 (YYSTACK_ALLOC): New macro.
2714 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2715 If it was malloc'd, free it.
2717 1997-04-23 Richard Stallman <rms@gnu.org>
2720 (alloca) [__hpux]: Always define as __builtin_alloca.
2722 1997-04-23 Richard Stallman <rms@gnu.org>
2725 (alloca) [__hpux]: Always define as __builtin_alloca.
2727 1997-04-22 Richard Stallman <rms@gnu.org>
2730 [__hpux]: Include alloca.h (right for HPUX 10)
2731 instead of declaring alloca (right for HPUX 9).
2733 * src/bison.s1 (__yy_memcpy):
2734 Declare arg `count' as unsigned int.
2735 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2737 1997-04-22 Richard Stallman <rms@gnu.org>
2740 [__hpux]: Include alloca.h (right for HPUX 10)
2741 instead of declaring alloca (right for HPUX 9).
2743 * bison.simple (__yy_memcpy):
2744 Declare arg `count' as unsigned int.
2745 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2747 1997-01-03 Richard Stallman <rms@gnu.org>
2749 * src/allocate.c: [__STDC__ or _MSC_VER]:
2750 Declare calloc and realloc to return void *.
2752 1997-01-02 Richard Stallman <rms@gnu.org>
2755 [_MSC_VER]: Include stdlib.h and process.h.
2756 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2758 * src/main.c (main): Return FAILURE as a value.
2759 (printable_version): Declare arg as int, not char.
2761 1997-01-02 Richard Stallman <rms@gnu.org>
2763 * Makefile.in (dist):
2764 Explicitly check for symlinks, and copy them.
2766 1996-12-19 Richard Stallman <rms@gnu.org>
2769 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2771 1996-12-18 Paul Eggert <eggert@gnu.org>
2773 * src/bison.s1 (yyparse):
2774 If __GNUC__ and YYPARSE_PARAM are both defined,
2775 declare yyparse to have a void * argument.
2777 1996-12-18 Paul Eggert <eggert@gnu.org>
2779 * bison.simple (yyparse):
2780 If __GNUC__ and YYPARSE_PARAM are both defined,
2781 declare yyparse to have a void * argument.
2783 1996-12-17 Richard Stallman <rms@gnu.org>
2785 * src/reduce.c (nbits): Add some casts.
2787 1996-08-12 Richard Stallman <rms@gnu.org>
2789 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2791 1996-08-12 Richard Stallman <rms@gnu.org>
2793 * bison.simple: Test _MSDOS as well as _MSDOS_.
2795 1996-07-31 Richard Stallman <rms@gnu.org>
2798 [__sun && __i386]: Include alloca.h.
2800 1996-07-31 Richard Stallman <rms@gnu.org>
2803 [__sun && __i386]: Include alloca.h.
2805 1996-07-30 Richard Stallman <rms@gnu.org>
2807 * src/bison.s1: Comment change.
2809 * src/bison.s1: Test _MSDOS_, not MSDOS.
2811 1996-07-30 Richard Stallman <rms@gnu.org>
2813 * bison.simple: Comment change.
2815 * bison.simple: Test _MSDOS_, not MSDOS.
2817 1996-06-01 Richard Stallman <rms@gnu.org>
2819 * 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:
2820 Insert `_' macro around many string constants.
2823 Insert `_' macro around many string constants.
2825 (main): Call setlocale, bindtextdomain and textdomain.
2827 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2828 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2829 [ENABLE_NLS]: Include libintl.h.
2830 [ENABLE_NLS] (gettext): Define.
2831 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2832 (N_, PACKAGE, LOCALEDIR): New macros.
2834 1996-06-01 Richard Stallman <rms@gnu.org>
2836 * POTFILES.in: New file.
2838 * Makefile.in (allocate.o):
2839 Define target explicitly.
2841 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2842 (LDFLAGS): Set to @LDFLAGS@.
2843 (configure): Run autoconf only if preceding `cd' succeeds.
2844 (bison.s1): Redirect output to temporary file then move the
2845 temporary to the target, rather than redirecting directly to bison.s1.
2846 (clean): Remove config.status and config.log.
2847 (distclean): Don't remove config.status here.
2849 1996-05-12 Richard Stallman <rms@gnu.org>
2852 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2854 1996-05-12 Richard Stallman <rms@gnu.org>
2857 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2859 1996-05-11 Richard Stallman <rms@gnu.org>
2861 * src/bison.s1 (__yy_memcpy):
2862 Really reorder the args, as was supposedly done on Feb 14 1995.
2863 (yyparse): Calls changed accordingly.
2865 1996-05-11 Richard Stallman <rms@gnu.org>
2867 * Makefile.in (dist): Don't use $(srcdir).
2869 * bison.simple (__yy_memcpy):
2870 Really reorder the args, as was supposedly done on Feb 14 1995.
2871 (yyparse): Calls changed accordingly.
2873 1996-01-27 Richard Stallman <rms@gnu.org>
2875 * src/output.c (output_rule_data):
2876 Test YYERROR_VERBOSE in the conditional
2877 around the definition of ttyname.
2879 1995-12-29 Richard Stallman <rms@gnu.org>
2882 Fix line numbers in #line commands.
2884 1995-12-29 Richard Stallman <rms@gnu.org>
2887 Fix line numbers in #line commands.
2889 1995-12-27 Richard Stallman <rms@gnu.org>
2891 * src/bison.s1 (YYPARSE_PARAM_DECL):
2892 In C++, make it always null.
2893 (YYPARSE_PARAM_ARG): New macro.
2894 (yyparse): Use YYPARSE_PARAM_ARG.
2896 1995-12-27 Richard Stallman <rms@gnu.org>
2898 * bison.simple (YYPARSE_PARAM_DECL):
2899 In C++, make it always null.
2900 (YYPARSE_PARAM_ARG): New macro.
2901 (yyparse): Use YYPARSE_PARAM_ARG.
2903 1995-11-29 Richard Stallman <rms@gnu.org>
2905 * doc/bison.texinfo:
2906 Describe literal string tokens, %raw, %no_lines, %token_table.
2908 1995-11-29 Daniel Hagerty <hag@gnu.org>
2910 * doc/bison.texinfo: Fixed update date
2912 1995-10-16 Richard Stallman <rms@gnu.org>
2914 * src/version.c: Version 1.25.
2916 1995-10-16 Richard Stallman <rms@gnu.org>
2918 * NEWS: *** empty log message ***
2920 1995-10-16 Richard Stallman <rms@gnu.org>
2922 * doc/bison.1, doc/bison.rnh:
2925 1995-10-15 Richard Stallman <rms@gnu.org>
2927 * src/vmsgetargs.c, src/getargs.c:
2928 Added -n, -k, and -raw switches.
2929 (noparserflag, toknumflag, rawtoknumflag): New variables.
2931 * src/symtab.h (SALIAS):
2932 New #define for adding aliases to %token.
2933 (struct bucket): Added `alias' field.
2935 * src/reduce.c (reduce_grammar):
2936 Revise error message.
2937 (print_notices): Remove final `.' from error message.
2939 * src/reader.c (reader_output_yylsp):
2941 (readgram): Use `#if 0' around code that accepted %command
2942 inside grammar rules: The documentation doesn't allow it,
2943 and it will fail since the %command processors scan for the next %.
2944 (parse_token_decl): Extended the %token
2945 declaration to allow a multi-character symbol as an alias.
2946 (parse_thong_decl): New function.
2947 (read_declarations): Added %thong declarations.
2948 (read_declarations): Handle NOOP to deal with allowing
2949 % declarations as another means to specify the flags.
2950 (readgram): Allow %prec prior to semantics embedded in a rule.
2951 (skip_to_char, read_declarations, copy_definition)
2952 (parse_token_decl, parse_start_decl, parse_type_decl)
2953 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2954 (get_type_name, copy_guard, copy_action, readgram)
2955 (get_type, packsymbols): Revised most error messages.
2956 Changed `fatal' to `warnxxx' to avoid aborting for error.
2957 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2958 (read_declarations): Improve the error message for
2959 an invalid character. Do not abort.
2960 (read_declarations, copy_guard, copy_action): Use
2961 printable_version to avoid unprintable characters in printed output.
2962 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2963 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2964 Allow the type of a non-terminal can be given
2965 more than once, as long as all specifications give the same type.
2968 (output_headers, output_trailers, output, output_gram)
2969 (output_rule_data): Implement noparserflag variable.
2970 Implement toknumflag variable.
2971 (output): Call reader_output_yylsp to output LTYPESTR.
2973 * src/main.c (main):
2974 If reader sees an error, don't process the grammar.
2975 (fatals): Updated to not use VARARGS1.
2976 (printable_version, int_to_string, warn, warni, warns, warnss)
2977 (warnsss): New error reporting functions. Avoid abort for error.
2980 Added THONG and NOOP for alias processing.
2981 Added SETOPT for the new code that allows setting options with %flags.
2984 Include getopt.h. Add some extern decls.
2985 (safegetc): New function to deal with EOF gracefully.
2986 (literalchar); new function to deal with reading \ escapes.
2987 (lex): Use literalchar.
2988 (lex): Implemented "..." tokens.
2989 (literalchar, lex, parse_percent_token): Made tokenbuffer
2990 always contain the token. This includes growing the token
2991 buffer while reading an integer.
2992 (parse_percent_token): Replaced if-else statement with percent_table.
2993 (parse_percent_token): Added % declarations as another
2994 way to specify the flags -n, -l, and -r. Also added hooks for
2995 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2996 major changes to files.c.
2997 (lex) Retain in the incoming stream a character following
2999 (skip_white_space, lex): Revised most error messages
3000 and changed fatal to warn to avoid aborting.
3001 (percent_table): Added %thong declarations.
3003 * src/gram.h: Comment changes.
3005 * src/files.c (openfiles, open_extra_files, done):
3007 and actfile file. Handle noparserflag. Both for -n switch.
3009 * src/conflicts.c (resolve_sr_conflict):
3010 Remove use of alloca.
3012 1995-06-01 Jim Meyering <meyering@gnu.org>
3014 * doc/bison.texinfo: *** empty log message ***
3016 1995-05-06 Richard Stallman <rms@gnu.org>
3018 * src/bison.s1: Comment change.
3020 1995-05-06 Richard Stallman <rms@gnu.org>
3022 * bison.simple: Comment change.
3024 1995-05-03 Richard Stallman <rms@gnu.org>
3026 * src/version.c: Version now 1.24.
3028 * src/bison.s1: Change distribution terms.
3030 * src/version.c: Version now 1.23.
3032 1995-05-03 Richard Stallman <rms@gnu.org>
3034 * doc/bison.texinfo:
3035 Rewrite "Conditions for Using Bison".
3036 Update version to 1.24.
3038 1995-05-03 Richard Stallman <rms@gnu.org>
3040 * bison.simple: Change distribution terms.
3042 1995-02-23 Richard Stallman <rms@gnu.org>
3044 * src/files.c: Test __VMS_POSIX as well as VMS.
3046 1995-02-14 Jim Meyering <meyering@gnu.org>
3048 * src/bison.s1 (__yy_memcpy):
3049 Renamed from __yy_bcopy to avoid
3050 confusion. Reverse FROM and TO arguments to be consistent with
3053 1995-02-14 Jim Meyering <meyering@gnu.org>
3055 * bison.simple (__yy_memcpy):
3056 Renamed from __yy_bcopy to avoid
3057 confusion. Reverse FROM and TO arguments to be consistent with
3060 1994-11-10 David J. MacKenzie <djm@gnu.org>
3066 * Makefile.in (DISTFILES): Include NEWS.
3068 * Makefile.in (DISTFILES):
3069 Include install-sh, not install.sh.
3071 * configure.in: Update to Autoconf v2 macro names.
3073 1994-10-05 David J. MacKenzie <djm@gnu.org>
3075 * Makefile.in: fix typo
3077 * Makefile.in (prefix, exec_prefix):
3078 Let configure set them.
3080 1994-09-28 David J. MacKenzie <djm@gnu.org>
3082 * Makefile.in: Set datadir to $(prefix)/share.
3084 1994-09-15 Richard Stallman <rms@gnu.org>
3087 Update copyright notice and GPL version.
3089 1994-09-15 Richard Stallman <rms@gnu.org>
3092 Update copyright notice and GPL version.
3094 1994-07-12 Richard Stallman <rms@gnu.org>
3096 * src/reduce.c, src/reader.c:
3099 1994-05-05 David J. MacKenzie <djm@gnu.org>
3101 * Makefile.in: entered into RCS
3103 1994-03-26 Richard Stallman <rms@gnu.org>
3105 * src/bison.s1: entered into RCS
3107 1994-03-26 Richard Stallman <rms@gnu.org>
3109 * bison.simple: entered into RCS
3111 1994-03-25 Richard Stallman <rms@gnu.org>
3113 * src/main.c: entered into RCS
3115 1994-03-24 Richard Stallman <rms@gnu.org>
3117 * src/conflicts.c: entered into RCS
3119 1994-01-02 Richard Stallman <rms@gnu.org>
3121 * Makefile.in: *** empty log message ***
3123 1993-11-21 Richard Stallman <rms@gnu.org>
3125 * src/bison.s1: *** empty log message ***
3127 1993-11-21 Richard Stallman <rms@gnu.org>
3129 * doc/bison.texinfo: entered into RCS
3131 * doc/bison.texinfo: *** empty log message ***
3133 1993-11-21 Richard Stallman <rms@gnu.org>
3135 * bison.simple: *** empty log message ***
3137 1993-10-25 David J. MacKenzie <djm@gnu.org>
3139 * doc/bison.texinfo: *** empty log message ***
3141 1993-10-19 Richard Stallman <rms@gnu.org>
3143 * src/bison.s1: *** empty log message ***
3145 1993-10-19 Richard Stallman <rms@gnu.org>
3147 * bison.simple: *** empty log message ***
3149 1993-10-14 Richard Stallman <rms@gnu.org>
3151 * src/bison.s1: *** empty log message ***
3153 1993-10-14 Richard Stallman <rms@gnu.org>
3155 * bison.simple: *** empty log message ***
3157 1993-09-14 David J. MacKenzie <djm@gnu.org>
3159 * doc/bison.texinfo: *** empty log message ***
3161 1993-09-13 Noah Friedman <friedman@gnu.org>
3163 * Makefile.in: *** empty log message ***
3165 1993-09-10 Richard Stallman <rms@gnu.org>
3167 * src/conflicts.c: *** empty log message ***
3169 * src/system.h: entered into RCS
3171 1993-09-10 Richard Stallman <rms@gnu.org>
3173 * doc/bison.1: entered into RCS
3175 1993-09-06 Noah Friedman <friedman@gnu.org>
3177 * src/version.c: entered into RCS
3179 1993-09-06 Noah Friedman <friedman@gnu.org>
3181 * Makefile.in: *** empty log message ***
3183 1993-07-30 David J. MacKenzie <djm@gnu.org>
3185 * Makefile.in: *** empty log message ***
3187 1993-07-24 Richard Stallman <rms@gnu.org>
3189 * src/bison.s1: *** empty log message ***
3191 1993-07-24 Richard Stallman <rms@gnu.org>
3193 * bison.simple: *** empty log message ***
3195 1993-07-08 David J. MacKenzie <djm@gnu.org>
3197 * Makefile.in: *** empty log message ***
3199 1993-07-04 Richard Stallman <rms@gnu.org>
3201 * src/bison.s1: *** empty log message ***
3203 1993-07-04 Richard Stallman <rms@gnu.org>
3205 * bison.simple: *** empty log message ***
3207 1993-06-26 David J. MacKenzie <djm@gnu.org>
3209 * src/getargs.c: entered into RCS
3211 1993-06-26 David J. MacKenzie <djm@gnu.org>
3213 * doc/bison.texinfo: *** empty log message ***
3215 * doc/bison.1: New file.
3217 1993-06-25 Richard Stallman <rms@gnu.org>
3219 * src/getargs.c: New file.
3221 1993-06-16 Richard Stallman <rms@gnu.org>
3223 * src/bison.s1: *** empty log message ***
3225 1993-06-16 Richard Stallman <rms@gnu.org>
3227 * bison.simple: *** empty log message ***
3229 1993-06-03 Richard Stallman <rms@gnu.org>
3231 * src/bison.s1: New file.
3233 1993-06-03 Richard Stallman <rms@gnu.org>
3235 * doc/bison.texinfo: *** empty log message ***
3237 1993-06-03 Richard Stallman <rms@gnu.org>
3239 * bison.simple: New file.
3241 1993-05-19 Richard Stallman <rms@gnu.org>
3243 * doc/bison.texinfo: New file.
3245 1993-05-07 Noah Friedman <friedman@gnu.org>
3247 * Makefile.in: *** empty log message ***
3249 1993-04-28 Noah Friedman <friedman@gnu.org>
3251 * src/reader.c: *** empty log message ***
3253 1993-04-23 Noah Friedman <friedman@gnu.org>
3255 * src/alloc.h: entered into RCS
3257 1993-04-20 David J. MacKenzie <djm@gnu.org>
3259 * src/version.c: *** empty log message ***
3261 * src/files.c, src/allocate.c:
3264 * src/reader.c: *** empty log message ***
3266 * src/lex.c: entered into RCS
3268 * src/conflicts.c: New file.
3270 * src/symtab.c: entered into RCS
3272 * src/alloc.h: New file.
3274 * src/LR0.c: entered into RCS
3276 1993-04-18 Noah Friedman <friedman@gnu.org>
3278 * src/reader.c: New file.
3280 * src/version.c: *** empty log message ***
3282 1993-04-18 Noah Friedman <friedman@gnu.org>
3284 * Makefile.in: *** empty log message ***
3286 1993-04-17 Noah Friedman <friedman@gnu.org>
3288 * Makefile.in: *** empty log message ***
3290 1993-04-15 Richard Stallman <rms@gnu.org>
3292 * src/main.c, src/files.c:
3295 1993-04-15 Noah Friedman <friedman@gnu.org>
3297 * configure.in: entered into RCS
3299 * configure.in: *** empty log message ***
3301 * configure.in: New file.
3303 1993-04-14 Richard Stallman <rms@gnu.org>
3305 * Makefile.in: New file.
3307 1993-04-13 Richard Stallman <rms@gnu.org>
3309 * src/version.c: New file.
3311 1993-03-25 Richard Stallman <rms@gnu.org>
3313 * src/output.c: entered into RCS
3315 1992-09-25 Richard Stallman <rms@gnu.org>
3317 * configure.bat: entered into RCS
3319 1992-06-22 Richard Stallman <rms@gnu.org>
3321 * src/vmsgetargs.c: entered into RCS
3323 1992-06-22 Richard Stallman <rms@gnu.org>
3325 * doc/bison.rnh: entered into RCS
3327 1992-04-20 David J. MacKenzie <djm@gnu.org>
3329 * README: entered into RCS
3331 1992-01-22 Richard Stallman <rms@gnu.org>
3333 * src/machine.h: entered into RCS
3335 1991-12-21 Richard Stallman <rms@gnu.org>
3337 * src/lalr.c, src/closure.c:
3340 1991-12-20 Richard Stallman <rms@gnu.org>
3342 * src/state.h: entered into RCS
3344 1991-12-18 Richard Stallman <rms@gnu.org>
3346 * src/print.c, src/nullable.c, src/derives.c:
3349 1991-11-03 David J. MacKenzie <djm@gnu.org>
3351 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3354 1988-09-09 Richard Stallman <rms@gnu.org>
3356 * src/bison.hairy: entered into RCS
3358 1987-12-16 Richard Stallman <rms@gnu.org>
3360 * REFERENCES: entered into RCS