1 2001-11-12 Akim Demaille <akim@epita.fr>
3 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
4 Use @kbd to denote user input.
5 (Language and Grammar): ANSIfy the example.
6 Adjust its layout for info/notinfo.
7 (Location Tracking Calc): Output error messages to stderr.
8 Output locations in a more GNUtically correct way.
9 Fix a couple of Englishos.
10 Adjust @group/@end group pairs.
12 2001-11-12 Akim Demaille <akim@epita.fr>
14 %expext was not functioning at all.
16 * src/conflicts.c (expected_conflicts): Set to -1.
17 (conflict_report): Use ngettext.
18 (conflicts_print): Check %expect and make its violation an error.
19 * doc/bison.texinfo (Expect Decl): Adjust.
20 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
21 * tests/regression.at (%expect not enough, %expect right)
22 (%expect too much): New.
24 2001-11-12 Akim Demaille <akim@epita.fr>
26 * tests/regression.at (Conflicts): Rename as...
27 (Unresolved SR Conflicts): this.
28 (Solved SR Conflicts): New.
30 2001-11-12 Akim Demaille <akim@epita.fr>
32 * src/reduce.c (print_results): Rename as...
33 (reduce_output): This.
34 Output to OUT, passed as argument, instead of output_obstack.
35 (dump_grammar): Likewise.
38 (reduce_grammar): No longer call reduce_output, since...
39 * src/print.c (print_results): do it.
40 * src/main.c (main): Call reduce_free;
42 2001-11-12 Akim Demaille <akim@epita.fr>
44 * src/conflicts.c (print_reductions): Accept OUT as argument.
45 Output to it, not to output_obstack.
46 * src/print.c (print_actions): Adjust.
48 2001-11-12 Akim Demaille <akim@epita.fr>
50 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
51 the result instead of using...
52 (src_total, rrc_total, src_count, rrc_count): Remove.
53 (any_conflicts): Remove.
54 (print_conflicts): Split into...
55 (conflicts_print, conflicts_output): New.
56 * src/conflicts.h: Adjust.
57 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
58 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
59 * tests/regression.at (Conflicts): New.
62 2001-11-12 Akim Demaille <akim@epita.fr>
64 * tests/regression.at (Invalid input): Remove, duplicate with
67 2001-11-12 Akim Demaille <akim@epita.fr>
69 * tests/torture.at (AT_DATA_STACK_TORTURE)
70 (Exploding the Stack Size with Alloca)
71 (Exploding the Stack Size with Malloc): New.
73 2001-11-12 Akim Demaille <akim@epita.fr>
75 * src/bison.simple (YYSTACK_REALLOC): New.
76 (yyparse) [!yyoverflow]: Use it and free the old stack.
77 Reported by FIXME: Who.
79 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
81 * src/bison.simple: Define type yystype instead of YYSTYPE, and
82 define CPP macro, which substitute YYSTYPE by yystype.
83 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
84 with yyltype/YYLTYPE. This allows inclusion of the generated
85 header within the parser if the compiler, such as GGC, accepts
86 multiple equivalent #defines.
89 2001-11-05 Akim Demaille <akim@epita.fr>
91 * src/reader.c (symbols_output): New, extracted from...
95 2001-11-05 Akim Demaille <akim@epita.fr>
97 * src/lex.c (parse_percent_token): s/quotearg/quote/.
99 2001-11-05 Akim Demaille <akim@epita.fr>
101 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
104 2001-11-05 Akim Demaille <akim@epita.fr>
106 * src/options.h (struct option_table_struct): set_flags is void*.
107 * src/options.c (longopts): Support `--output' and `%output'.
109 * src/lex.h (tok_setopt): Remove, replaced with...
110 (tok_intopt, tok_stropt): these new guys.
111 * src/lex.c (getopt.h): Not needed.
112 (token_buffer, unlexed_token_buffer): Not const.
113 (percent_table): Promote `-' over `_' in directive names.
114 Active `%name-prefix', `file-prefix', and `output'.
115 (parse_percent_token): Accept possible arguments to directives.
116 Promote `-' over `_' in directive names.
118 2001-11-04 Akim Demaille <akim@epita.fr>
120 * doc/bison.texinfo (Decl Summary): Split the list into
121 `directives for grammars' and `directives for bison'.
123 Add description of `%name-prefix', `file-prefix', and `output'.
124 Promote `-' over `_' in directive names.
125 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
126 Simplify the description of `--name-prefix'.
127 Promote `-' over `_' in directive names.
128 Promote `--output' over `--output-file'.
129 Fix the description of `--defines'.
130 * tests/output.at: Exercise %file-prefix and %output.
132 2001-11-02 Akim Demaille <akim@epita.fr>
134 * doc/refcard.tex: Update.
136 2001-11-02 Akim Demaille <akim@epita.fr>
138 * src/symtab.h (SUNDEF): New.
139 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
140 stand for `uninitialized', instead of 0.
141 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
142 * src/lex.c (lex): Adjust.
144 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
146 Let yylex return it instead of a plain 0.
147 Reported by Dick Streefland.
149 2001-11-02 Akim Demaille <akim@epita.fr>
151 * tests/regression.at (Mixing %token styles): New test.
153 2001-11-02 Akim Demaille <akim@epita.fr>
155 * src/reader.c (parse_thong_decl): Formatting changes.
156 (token_translations_init): New, extracted from...
160 2001-11-01 Akim Demaille <akim@epita.fr>
162 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
163 Check that `9foo.y' produces correct cpp guards.
164 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
168 2001-11-01 Akim Demaille <akim@epita.fr>
170 * tests/regression.at (Invalid input: 2): New.
171 * src/lex.c (unlexed_token_buffer): New.
172 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
176 2001-11-01 Akim Demaille <akim@epita.fr>
178 * tests/calc.at: Catch up with 1.30.
179 * configure.in: Bump to 1.49a.
180 Adjust to newer Autotest.
182 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
184 * src/conflicts.c: Move global variables rrc_total and src_total ...
185 (print_conflicts): here.
186 * src/output.c (output): Free global variable user_toknums.
187 * src/lex.c (token_obstack): Become static.
189 2001-10-18 Akim Demaille <akim@epita.fr>
191 * tests/atlocal.in (GCC): Add.
192 * tests/calc.at: s/m4_match/m4_bmatch/.
193 s/m4_patsubst/m4_bpatsubst/.
194 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
195 * configure.in: AC_SUBST(GCC).
197 2001-10-14 Marc Autret <autret_m@epita.fr>
199 * src/options.c (create_long_option_table): Fix.
201 2001-10-10 Akim Demaille <akim@epita.fr>
203 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
205 2001-10-04 Akim Demaille <akim@epita.fr>
207 * src/reader.c (parse_union_decl): Push the caracters in
208 union_obstack, not attrs_obstack.
210 2001-10-04 Akim Demaille <akim@epita.fr>
212 Merge in the branch 1.29.
214 * src/reader.c (packsymbols): Use a temporary obstack for
215 `%%tokendef', since output_stack is already used elsewhere.
217 2001-10-02 Akim Demaille <akim@epita.fr>
221 2001-10-02 Akim Demaille <akim@epita.fr>
225 2001-10-02 Akim Demaille <akim@epita.fr>
227 * tests/regression.at (Invalid CPP headers): New.
228 From Alexander Belopolsky.
229 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
231 2001-10-02 Akim Demaille <akim@epita.fr>
233 * tests/regression.at (Invalid input): New.
234 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
237 2001-10-02 Akim Demaille <akim@epita.fr>
239 * tests/calc.at: Now that --debug works, the tests must be adjusted.
241 2001-10-02 Akim Demaille <akim@epita.fr>
243 * src/output.c (output_parser): Assert `skeleton'.
244 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
248 2001-10-01 Marc Autret <autret_m@epita.fr>
250 * src/lex.h: Echo modifications.
251 * src/lex.c (unlex): Parameter is now token_t.
254 2001-10-01 Marc Autret <autret_m@epita.fr>
256 * src/main.c: Include lex.h.
259 2001-09-29 Akim Demaille <akim@epita.fr>
261 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
263 2001-09-28 Akim Demaille <akim@epita.fr>
265 * tests/testsuite.at: Update to newer Autotest.
266 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
268 2001-09-27 Akim Demaille <akim@epita.fr>
270 Position independent wrapper.
272 * tests/bison: Remove.
273 * tests/bison.in: New.
274 * configure.in: Adjust.
276 2001-09-27 Paul Eggert <eggert@twinsun.com>
278 Port quotearg fixes from tar 1.13.24.
280 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
282 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
283 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
285 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
286 * m4/mbrtowc.m4: New file.
287 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
288 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
290 2001-09-27 Akim Demaille <akim@epita.fr>
294 2001-09-27 Akim Demaille <akim@epita.fr>
298 2001-09-25 Akim Demaille <akim@epita.fr>
300 * src/system.h: Include `xalloc.h'.
301 Remove it from the C files.
302 * src/files.c (output_files): Free the obstacks.
303 * src/lex.c (init_lex): Rename as...
306 * src/main.c (main): Use it.
308 2001-09-24 Marc Autret <autret_m@epita.fr>
310 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
311 to output informations in fout (FILE*).
312 (open_graph, close_graph): Likewise.
313 (output_graph, output_edge, output_node): Likewise.
314 * src/vcg.h: Update function prototypes.
315 * src/print_graph.c (print_graph): Open output graph file.
316 (print_actions): Adjust.
317 * src/files.h: Remove extern declaration.
318 * src/files.c: Remove graph_obstack declaration.
319 (open_files): Remove graph_obstack initialization.
320 (output_files): Remove graph_obstack saving.
322 2001-09-24 Marc Autret <autret_m@epita.fr>
324 * src/files.c (compute_output_file_names): Fix.
326 2001-09-24 Marc Autret <autret_m@epita.fr>,
327 Akim Demaille <akim@epita.fr>
329 * src/reader.c (reader): Remove call to free_symtab ().
330 * src/main.c (main): Call it here.
332 * src/conflicts.c (initialize_conflicts): Rename as...
333 (solve_conflicts): this.
334 * src/print.c (print_core, print_actions, print_state)
335 (print_grammar): Dump to a file instead a `output_obstack'.
336 (print_results): Dump `output_obstack', and then proceed with the
338 * src/files.c (compute_output_file_names, close_files): New.
339 (output_files): Adjust.
340 * src/main.c (main): Adjust.
342 2001-09-23 Marc Autret <autret_m@epita.fr>
344 * src/files.c (compute_header_macro): Computes header macro name
345 from spec_defines_file when given.
347 2001-09-23 Marc Autret <autret_m@epita.fr>
349 * src/files.c (output_files): Add default extensions.
351 2001-09-22 Akim Demaille <akim@epita.fr>
353 * src/conflicts.c (finalize_conflicts): Rename as...
354 (free_conflicts): this.
356 2001-09-22 Akim Demaille <akim@epita.fr>
358 * src/gram.c (gram_free): Rename back as...
360 (output_token_translations): Free `token_translations'.
361 * src/symtab.c (free_symtab): Free the tag field.
363 2001-09-22 Akim Demaille <akim@epita.fr>
365 Remove `translations' as it is always set to true.
367 * src/gram.h: Adjust.
368 * src/reader.c (packsymbols, parse_token_decl): Adjust
369 * src/print.c (print_grammar): Adjust.
370 * src/output.c (output_token_translations): Adjust.
371 * src/lex.c (lex): Adjust.
372 * src/gram.c: Be sure the set pointers to NULL.
373 (dummy): Rename as...
376 2001-09-22 Akim Demaille <akim@epita.fr>
378 * configure.in: Invoke AM_LIB_DMALLOC.
379 * src/system.h: Use dmalloc.
380 * src/LR0.c: Be sure to have pointers initialized to NULL.
381 (allocate_itemsets): Allocate kernel_items only if needed.
383 2001-09-22 Akim Demaille <akim@epita.fr>
385 * configure.in: Bump to 1.29b.
386 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
387 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
388 need xmalloc.c in calc.y.
391 2001-09-21 Akim Demaille <akim@epita.fr>
394 * Makefile.maint, config/config.guess, config/config.sub,
395 * config/missing: Update from masters.
396 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
398 * configure.in (ALL_LINGUAS): Add `tr'.
400 2001-09-21 Akim Demaille <akim@epita.fr>
402 * tests/Makefile.am (package.m4): Move to...
403 ($(srcdir)/$(TESTSUITE)): here.
405 2001-09-20 Akim Demaille <akim@epita.fr>
407 * src/complain.c: No longer try to be standalone: use system.h.
408 Don't assume __STDC__ is defined to 1. Just test if it is defined.
409 * src/complain.h: Likewise.
410 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
411 Remove the unused variable `n'.
412 From Albert Chin-A-Young.
414 2001-09-18 Marc Autret <autret_m@epita.fr>
416 * doc/bison.1: Update.
417 * doc/bison.texinfo (Bison Options): Update --defines and --graph
419 (Option Cross Key): Update.
422 2001-09-18 Marc Autret <autret_m@epita.fr>
424 * tests/regression.at: New test (comment in %union).
426 2001-09-18 Marc Autret <autret_m@epita.fr>
428 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
430 Reported by Keith Browne.
432 2001-09-18 Marc Autret <autret_m@epita.fr>
434 * tests/output.at: Add tests for --defines and --graph.
436 2001-09-18 Marc Autret <autret_m@epita.fr>
438 * tests/output.at: Removes tests of %{header,src}_extension features.
440 2001-09-18 Akim Demaille <akim@epita.fr>
442 * tests/Makefile.am (package.m4): New.
443 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
444 (_AT_CHECK_CALC_ERROR): Likewise.
445 Factor the `, ' part of verbose error messages.
447 2001-09-18 Marc Autret <autret_m@epita.fr>
449 * src/getargs.c (longopts): Declare --defines and --graph as options
450 with optional arguments.
451 * src/files.h: Add extern declarations.
452 * src/files.c (spec_graph_file, spec_defines_file): New.
453 (output_files): Update.
454 Remove CPP-outed code.
456 2001-09-18 Marc Autret <autret_m@epita.fr>
458 Turn off %{source,header}_extension feature.
460 * src/files.c (compute_exts_from_gf): Update.
461 (compute_exts_from_src): Update.
462 (output_files): CPP-out useless code.
463 * src/files.h: Remove {header,source}_extension extern declarations.
464 * src/reader.c (parse_dquoted_param): CPP-out.
465 (parse_header_extension_decl): Remove.
466 (parse_source_extension_decl): Remove.
467 (read_declarations): Remove cases tok_{hdrext,srcext}.
468 * src/lex.c (percent_table): Remove {header,source}_extension entries.
469 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
471 2001-09-10 Akim Demaille <akim@epita.fr>
473 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
474 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
475 (AT_CHECK_OUTPUT): this.
476 Merely check ls' exit status, its output is useless.
478 2001-09-10 Akim Demaille <akim@epita.fr>
480 * tests/calc.at: Use m4_match.
481 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
483 2001-09-10 Marc Autret <autret_m@epita.fr>,
484 Akim Demaille <akim@epita.fr>
486 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
488 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
490 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
491 * src/lex.h: Adjust prototype.
492 (token_t): Add `tok_undef'.
493 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
494 (parse_percent_token): Now returns token_t.
495 Add default statement in switch.
496 (lex): Separate `c' as an input variable, from the token_t result
498 (unlexed): Is a token_t.
500 2001-09-10 Akim Demaille <akim@epita.fr>
502 * configure.in: Bump to 1.29a.
504 2001-09-07 Akim Demaille <akim@epita.fr>
508 2001-08-30 Akim Demaille <akim@epita.fr>
510 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
511 * m4/atconfig.m4: Remove.
512 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
514 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
515 m4_if, m4_patsubst, and m4_regexp.
516 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
517 `input' file instead of echo.
519 2001-08-29 Akim Demaille <akim@epita.fr>
523 2001-08-29 Akim Demaille <akim@epita.fr>
527 2001-08-29 Paul Eggert <eggert@twinsun.com>
529 * src/bison.simple (yyparse): Don't take the address of an
530 item before the start of an array, as that doesn't conform to
533 2001-08-29 Robert Anisko <anisko_r@epita.fr>
535 * doc/bison.texinfo (Location Tracking Calc): New node.
537 2001-08-29 Paul Eggert <eggert@twinsun.com>
539 * src/output.c (output): Do not define const, as this now
540 causes more problems than it cures.
542 2001-08-29 Akim Demaille <akim@epita.fr>
544 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
546 Be sure to tag the `detailmenu'.
548 2001-08-29 Akim Demaille <akim@epita.fr>
550 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
551 download in a tmp dir.
553 2001-08-28 Marc Autret <autret_m@epita.fr>
555 * config/depcomp: New file.
557 2001-08-28 Marc Autret <autret_m@epita.fr>
559 * doc/bison.1 (mandoc): Adjust.
560 From Juan Manuel Guerrero.
562 2001-08-28 Marc Autret <autret_m@epita.fr>
564 * src/print_graph.c (print_state): Fix.
566 2001-08-27 Marc Autret <autret_m@epita.fr>
568 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
570 Echo modifications to the functions prototypes.
571 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
573 2001-08-27 Marc Autret <autret_m@epita.fr>
575 * src/vcg.c: Include `xalloc.h'.
576 (add_colorentry): New.
577 (add_classname): New.
579 * src/vcg.h: Add new prototypes.
581 2001-08-27 Akim Demaille <akim@epita.fr>
583 * Makefile.maint: Sync. again with CVS Autoconf.
585 2001-08-27 Akim Demaille <akim@epita.fr>
587 * Makefile.maint: Formatting changes.
588 (po-update, cvs-update, update): New targets.
591 2001-08-27 Akim Demaille <akim@epita.fr>
593 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
594 * Makefile.maint: Sync. with CVS Autoconf.
596 2001-08-27 Marc Autret <autret_m@epita.fr>
598 * src/vcg.h (struct infoname_s): New.
599 (struct colorentry_s): New.
600 (graph_s): New fields {vertical,horizontal}_order in structure.
601 Add `infoname' field.
602 Add `colorentry' field;
603 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
604 (G_HORIZONTAL_ORDER): New.
607 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
608 Add output of `infoname'.
609 Add output of `colorentry'.
611 2001-08-27 Marc Autret <autret_m@epita.fr>
613 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
614 This one shadowed a global parameter.
616 2001-08-24 Marc Autret <autret_m@epita.fr>
618 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
619 instead of `unsigned'.
620 (print_state): Do not call obstack_object_size () in obstack_grow ()
621 to avoid macro variables shadowing.
623 2001-08-23 Marc Autret <autret_m@epita.fr>
625 * src/lex.c (percent_table): Typo: s/naem/name/.
627 Normalize new options declarations.
629 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
631 * tests/suite.at: Exercise %header_extension and %source_extension.
633 2001-08-16 Marc Autret <autret_m@epita.fr>
635 * src/reader.c (parse_dquoted_param): New.
636 (parse_header_extension_decl): Use it.
637 (parse_source_extension_decl): Likewise.
639 2001-08-16 Marc Autret <autret_m@epita.fr>
641 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
642 (get_xxxx_str): Use assert () instead of complain ().
643 Remove return invokations in default cases.
644 (get_decision_str): Modify default behaviour. Remove second argument.
645 Echo modifications on calls.
648 2001-08-16 Marc Autret <autret_m@epita.fr>
650 * src/getargs.c (usage): Update with ``-g, --graph''.
652 2001-08-16 Marc Autret <autret_m@epita.fr>
654 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
655 (Option Cross Key): Likewise.
656 * doc/bison.1: Update.
658 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
660 * src/output.c (output_master_parser): Don't finish action_obstack.
661 (output_parser): Don't care about the muscle action, here.
662 (prepare): Copy the action_obstack in the action muscle.
663 (output): Free action_obstack.
665 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
667 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
668 will contain `%union' declaration.
669 (parse_union_decl): Delete #line directive output.
670 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
671 informations about %union.
672 (parse_union_decl): Copy the union_obstack in the muscle stype.
673 * src/bison.simple: Add new #line directive.
674 Add typdef %%stype YYSTYPE.
676 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
678 * src/bison.simple: Add new `#line' directive.
680 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
682 * src/bison.simple: New `#line' directive.
683 * src/output.c (output_parser): Support new dynamic muscle input_line.
685 2001-09-22 Marc Autret <autret_m@epita.fr>
687 * src/output.c (output_master_parser): New.
688 (output_parser): Be more re-entrant.
690 2001-09-21 Marc Autret <autret_m@epita.fr>
692 * src/reader.c (copy_definition, parse_union_decl): Update and use
694 (copy_action): Likewise.
695 Use obstack_1grow ().
696 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
698 2001-09-21 Marc Autret <autret_m@epita.fr>
700 * src/options.c (option_table): Adjust.
701 * src/lex.c (parse_percent_token): Fix.
703 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
705 * src/options.c (symtab.h): Include it, need by lex.h.
707 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
709 * src/lex.c (parse_percent_token): Change type of variable `tx', which
710 is now an option_table_struct*.
711 (option_strcmp): New function option_strcmp.
712 (parse_percent_token): Call option_strcmp.
713 * src/getargs.c (xalloc.h, options.h): Include it.
714 (getargs): Call create_long_option_table.
715 (getargs): Free longopts at the end of the function.
716 (shortopts): Move in options.c.
717 * src/options.c (create_long_option_table): New function. Convert
718 information from option_table to option structure.
719 * src/reader.c (options.h): Include it.
721 * src/Makefile.am: Adjust.
722 * src/options.c (option_table): Create from longopts and percent_table.
723 * src/getargs.c (longopts): Delete.
724 * src/lex.c (struct percent_table_struct): Delete.
725 (percent_table): Delete.
726 (options.h): Include it.
727 * src/options.c: Create.
728 * src/options.h: Create.
729 Declare enum opt_access_e.
730 Define struct option_table_struct.
732 2001-09-20 Marc Autret <autret_m@epita.fr>
734 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
737 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
739 * src/bison.simple: s/%%filename/%%skeleton.
740 * src/muscle_tab.c (getargs.h): Include it.
741 (muscle_init): Insert new muscle skeleton.
743 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
745 * src/output.c (output_parser): Delete unused variable actions_dumped.
747 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
749 * src/output.c (output): Delete call to reader_output_yylsp.
750 * src/reader.c (reader): Likewise.
751 * src/reader.h: Delete declaration of reader_output_yylsp.
753 2001-09-02 Marc Autret <autret_m@epita.fr>
755 * src/reader.c: Include muscle_tab.h.
756 (parse_union_decl): Update.
757 (parse_macro_decl): Rename parse_muscle_decl.
758 Update to use renamed functions and variable.
759 (read_declarations, copy_action, read_additionnal_code, : Updated
760 with correct variables and functions names.
761 (packsymbols, reader): Likewise.
763 * src/reader.h (muscle_obstack): Extern declaration update.
765 * src/output.c: Include muscle_tab.h
766 In all functions using macro_insert, change by using muscle_insert ().
767 (macro_obstack): Rename muscle_obstack.
768 Echo modifications in the whole file.
769 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
770 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
771 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
773 * src/muscle_tab.h: Update double inclusion macros.
774 (macro_entry_s): Rename muscle_entry_s.
777 * src/muscle_tab.c: Include muscle_tab.h.
778 Rename macro_tabble to muscle_table.
779 (mhash1, mhash2, mcmp): Use muscle_entry.
780 (macro_init): Rename muscle_init. Update.
781 (macro_insert): Rename muscle_insert. Update.
782 (macro_find): Rename muscle_find. Update.
784 * src/main.c: Include muscle_tab.h.
785 (main): Call muscle_init ().
786 * src/Makefile.am (bison_SOURCES): Echo modifications.
788 2001-09-02 Marc Autret <autret_m@epita.fr>
790 Now the files macro_tab.[ch] are named muscle_tab.[ch].
792 * src/muscle_tab.c, src/muscle_tab.h: Add files.
794 2001-09-02 Marc Autret <autret_m@epita.fr>
796 * src/macrotab.c, src/macrotab.h: Remove.
798 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
800 * src/reader.c (copy_guard): Use muscle to specify the `#line'
803 2001-09-01 Marc Autret <autret_m@epita.fr>
805 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
806 to an explicit value to activate the feature. We do it here.
808 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
810 * src/output.c (prepare): Delete the `filename' muscule insertion.
811 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
812 (parse_union_decl): Likewise.
813 * src/macrotab.c (macro_init): Initialize filename by infile.
815 2001-08-31 Marc Autret <autret_m@epita.fr>
817 * src/bison.simple (YYLSP_NEEDED): New definition.
818 * src/output.c (prepare): Add macro insertion of `locations_flag'
820 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
822 * src/output.c (prepare): Delete insertion of previous muscles,
823 and insert the `prefix' muscles.
824 * src/macrotab.c (macro_init): Likewise.
825 (macro_init): Initialization prefix directive by `yy'.
826 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
827 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
828 yylval, yydebug, yyerror, yynerrs and yyparse.
829 New directive `#define' to substitute yydebug, ... with option
832 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
834 * src/main.c (main): Standardize.
835 * src/output.c (output_table_data, output_parser): Likewise.
836 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
838 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
840 * src/reader.c (read_additionnal_code): Rename %%user_code to
842 * src/output.c (output): Rename %%declarations to %%prologue.
843 * src/bison.simple: Echo modifications.
845 2001-08-31 Marc Autret <autret_m@epita.fr>
847 * src/reader.c (readgram): CleanUp.
848 (output_token_defines): Likewise.
849 (packsymbols): Likewise.
851 * src/output.c (output): CPP-out useless code.
853 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
855 * src/reader.c (reader): Delete obsolete call to function
856 output_trailers and output_headers.
857 * src/output.h: Remove obsolete functions prototypes of output_headers
860 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
862 * src/main.c: Include macrotab.h.
863 * src/macrotab.h (macro_entry_s): Constify fields.
864 Adjust functions prototypes.
865 * src/macrotab.c (macro_insert): Constify key and value.
866 (macro_find): Constify key.
867 (macro_insert): Include 'xalloc.h'
868 (macro_insert): Use XMALLOC.
869 (macro_find): Constify return value.
870 * src/output.c (output_table_data): Rename table to table_data.
871 (output_parser): Constify macro_key, macro_value.
873 2001-08-30 Marc Autret <autret_m@epita.fr>
875 * src/reader.c (parse_skel_decl): New.
876 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
877 * src/lex.h (token_t): New token `tok_skel'.
878 * src/lex.c (percent_table): Add skeleton option entry.
881 2001-08-29 Marc Autret <autret_m@epita.fr>
883 * src/bison.simple: Add %%user_code directive at the end.
884 * src/reader.c (read_additionnal_code): New.
886 * src/output.c (output_program): Remove.
889 2001-08-28 Marc Autret <autret_m@epita.fr>
891 * src/output.c (output_actions): Clean up.
892 (output_gram): CPP-out useless code.
893 * src/reader.c (reader): Clean up, CPP-out useless code.
895 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
897 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
899 * src/bison.simple: Add `%%definitions'.
901 2001-08-28 Marc Autret <autret_m@epita.fr>
903 * config/depcomp: New file.
905 2001-08-27 Paul Eggert <eggert@twinsun.com>
907 * src/bison.simple (yyparse): Don't take the address of an
908 item before the start of an array, as that doesn't conform to
911 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
913 * src/output.c (output): Remove the initialization of the macro
914 obstack. It was done too late here.
916 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
918 (reader): Initialize the macro obstack here, since we need it to grow
919 '%define' directives.
921 * src/reader.h: Declare the macro obstack as extern.
923 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
925 * src/output.c (output_parser): Fix. Store single '%' characters in
926 the output obstack instead of throwing them away.
928 2001-08-27 Akim Demaille <akim@epita.fr>
930 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
932 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
934 * lib/Makefile.am: Adjust.
936 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
938 * src/bison.simple: Update and add '%%' directives.
940 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
942 * src/reader.c (reader): Remove calls to 'output_headers' and
943 'output_trailers'. Remove some C output.
944 (readgram): Disable a piece of code that was writing a default
945 definition for 'YYSTYPE'.
946 (reader_output_yylsp): Remove.
947 (packsymbols): Output token defintions to a macro.
948 (copy_definition): Disable C output.
950 * src/reader.c (parse_macro_decl): New function used to parse macro
952 (copy_string2): Put the body of copy_string into this new function.
953 Add a parameter to let the caller choose whether he wants to copy the
954 string delimiters or not.
955 (copy_string): Be a simple call to copy_string2 with the last argument
957 (read_declarations): Add case for macro definition.
958 (copy_identifier): New.
959 (parse_macro_decl): Read macro identifiers using copy_identifier
962 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
964 * src/output.c (prepare): Add prefixed names.
965 (output_parser): Output semantic actions.
966 (output_parser): Fix bug on '%%line' directives.
968 * src/output.c (output_headers): Remove. The C code printed by this
969 function should now be in the skeletons.
970 (output_trailers): Remove.
971 (output): Disable call to 'reader_output_yylsp'.
972 (output_rule_data): Do not output tables to the table obstack.
974 * src/output.c: Remove some C dedicated output.
975 Improve the use of macro and output obstacks.
976 (output_defines): Remove.
978 * src/output.c (output_token_translations): Associate 'translate'
979 table with a macro. No output to the table obstack.
980 (output_gram): Same for 'rhs' and 'prhs'.
981 (output_stos): Same for 'stos'.
982 (output_rule_data): Same for 'r1' and 'r2'.
983 (token_actions): Same for 'defact'.
984 (goto_actions): Same for 'defgoto'.
985 (output_base): Same for 'pact' and 'pgoto'.
986 (output_table): Same for 'table'.
987 (output_check): Same for 'check'.
989 * src/output.c (output_table_data): New function.
990 (output_short_table): Remove.
991 (output_short_or_char_table): Remove.
993 * src/output.c (output_parser): Replace most of the skeleton copy code
994 with something new. Skeletons are now processed character by character
995 rather than line by line, and Bison looks for '%%' macros. This is the
996 first step in making Bison's output process (a lot) more flexible.
997 (output_parser): Use the macro table.
999 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1001 * src/main.c (main): Initialize the macro table.
1003 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1005 * src/lex.c (percent_table): Add tok_define.
1006 * src/lex.h: Add tok_define.
1008 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1010 * src/macrotab.c: New file.
1011 * src/macrotab.h: New file.
1012 * src/Makefile.am: Update.
1014 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1016 * lib/hash.c: New file.
1017 * lib/hash.h: New file.
1018 * lib/Makefile.am: Update.
1020 2001-08-15 Akim Demaille <akim@epita.fr>
1024 2001-08-15 Marc Autret <autret_m@epita.fr>
1026 * src/reader.c (readgram): Indent output macro YYSTYPE.
1027 (packsymbols): Likewise.
1028 (output_token_defines): Likewise.
1029 * src/files.c: Standardize.
1030 (compute_header_macro): New.
1031 (defines_obstack_save): New. Use compute_header_macro.
1032 (output_files): Update. Use defines_obstack_save.
1034 2001-08-15 Akim Demaille <akim@epita.fr>
1036 * doc/bison.texinfo (Table of Symbols): Document
1039 2001-08-15 Akim Demaille <akim@epita.fr>
1041 * missing: Update from CVS Automake.
1042 * config/config.guess, config/config.sub, config/texinfo.tex:
1043 Update from gnu.org.
1045 2001-08-15 Akim Demaille <akim@epita.fr>
1047 * Makefile.maint: Sync with CVS Autoconf.
1049 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1051 * doc/bison.texinfo: Include GNU Free Documentation License from
1053 * doc/fdl.texi: Add to package.
1055 2001-08-14 Marc Autret <autret_m@epita.fr>
1057 Turn on %{source,header}_extension features.
1059 * src/lex.c (percent_table): Un-CPP out header_extension and
1061 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1062 (compute_exts_from_src): Remove conditions. It restores priorities
1065 2001-08-14 Marc Autret <autret_m@epita.fr>
1067 * src/files.c (compute_base_names): Add extensions computing when
1068 `--file-prefix' used.
1069 Standardize function calls.
1071 2001-08-13 Marc Autret <autret_m@epita.fr>
1073 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1074 defining it (defined but null disables alloca).
1076 2001-08-13 Marc Autret <autret_m@epita.fr>
1078 * src/bison.simple (_yy_memcpy): CPP reformat.
1080 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1082 * tests/atconfig.in (CPPFLAGS): Fix.
1084 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1086 * doc/bison.texinfo: Include GNU General Public License from
1088 * doc/gpl.texi: Add to package.
1090 2001-08-10 Marc Autret <autret_m@epita.fr>
1092 * src/print_graph.h: Fix.
1093 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1095 2001-08-10 Akim Demaille <akim@epita.fr>
1097 * src/system.h: Provide default declarations for stpcpy, strndup,
1100 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1102 * doc/bison.texinfo (Locations): Update @$ stuff.
1104 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1106 * src/bison.simple (YYLLOC_DEFAULT): Update.
1109 2001-08-08 Marc Autret <autret_m@epita.fr>
1111 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1112 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1113 Reported by Fabrice Bauzac.
1115 2001-08-08 Marc Autret <autret_m@epita.fr>
1117 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1118 * src/vcg.c (output_node): Fix.
1119 * src/vcg.h: Cleanup.
1120 * src/print_graph.c: Add comments.
1121 (node_output_size): New global variable. Simplify the formatting of
1122 the VCG graph output.
1123 (print_actions): Unused code is now used. It notifies the final state
1124 and no action states in the VCG graph. It also give the reduce actions.
1125 The `shift and goto' edges are red and the `go to state' edges are
1127 Get the current node name and node_obstack by argument.
1128 (node_obstack): New variable.
1129 (print_state): Manage node_obstack.
1130 (print_core): Use node_obstack given by argument.
1131 A node is not only computed here but in print_actions also.
1132 (print_graph): CPP out useless code instead of commenting it.
1134 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1136 * tests/atconfig.in (CPPFLAGS): Fix.
1138 2001-08-07 Akim Demaille <akim@epita.fr>
1140 * src/print_graph.c (quote): New.
1141 (print_core): Use it.
1143 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1145 * src/vcg.c (complain.h): Include it.
1146 Unepitaize `return' invocations.
1147 [NDEBUG] (main): Remove.
1148 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1149 * src/files.c (open_files): Initialize graph_obstack.
1150 * src/print_graph.c (print_actions): CPP out useless code.
1151 (print_core): Don't output the last `\n' in labels.
1153 * src/files.c (output_files): Output the VCG file.
1154 * src/main.c (main): Invoke print_graph ();
1156 2001-08-06 Marc Autret <autret_m@epita.fr>
1158 Automaton VCG graph output.
1159 Using option ``-g'' or long option ``--graph'', you can generate
1160 a gram_filename.vcg file containing a VCG description of the LALR (1)
1161 automaton of your grammar.
1163 * src/main.c: Call to print_graph() function.
1164 * src/getargs.h: Update.
1165 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1166 (graph_flag): New flag.
1168 (getargs): Add case `g'.
1169 * src/files.c (graph_obstack): New obstack struct.
1170 (open_files): Initialize new obstack.
1171 (output_files): Saves graph_obstack if required.
1172 * src/files.h (graph_obstack): New extern declaration.
1173 * src/Makefile.am: Add new source files.
1175 2001-08-06 Marc Autret <autret_m@epita.fr>
1177 * src/print_graph.c, src/print_graph.h (graph): New.
1178 * src/vcg.h: New file.
1179 * src/vcg.c: New file, VCG graph handling.
1181 2001-08-06 Marc Autret <autret_m@epita.fr>
1183 Add of %source_extension and %header_extension which specify
1184 the source or/and the header output file extension.
1186 * src/files.c (compute_base_names): Remove initialisation of
1187 src_extension and header_extension.
1188 (compute_exts_from_gf): Update.
1189 (compute_exts_from_src): Update.
1190 (output_files): Update.
1191 * src/reader.c (parse_header_extension_decl): New.
1192 (parse_source_extension_decl): New.
1193 (read_declarations): New case statements for the new tokens.
1194 * src/lex.c (percent_table): Add entries for %source_extension
1195 and %header_extension.
1196 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1198 2001-08-06 Marc Autret <autret_m@epita.fr>
1200 * configure.in: Bump to 1.28c.
1201 * doc/bison.texinfo: Texinfo thingies.
1203 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1205 * tests/atconfig.in (CPPFLAGS): Add.
1206 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1208 2001-08-03 Akim Demaille <akim@epita.fr>
1212 2001-08-03 Akim Demaille <akim@epita.fr>
1214 * tests/Makefile.am (check-local): Ship testsuite.
1215 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1218 2001-08-03 Akim Demaille <akim@epita.fr>
1220 * configure.in: Try using -Wformat when compiling.
1222 2001-08-03 Akim Demaille <akim@epita.fr>
1224 * configure.in: Bump to 1.28b.
1226 2001-08-03 Akim Demaille <akim@epita.fr>
1228 * src/complain.c: Adjust strerror_r portability issues.
1230 2001-08-03 Akim Demaille <akim@epita.fr>
1234 2001-08-03 Akim Demaille <akim@epita.fr>
1236 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1237 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1238 * src/getargs.c: Include complain.h.
1239 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1240 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1242 2001-08-03 Akim Demaille <akim@epita.fr>
1244 * src/reader.c (readgram): Display hidden chars in error messages.
1246 2001-08-03 Akim Demaille <akim@epita.fr>
1248 Update to gettext 0.10.39.
1250 2001-08-03 Akim Demaille <akim@epita.fr>
1252 * lib/strspn.c: New.
1254 2001-08-01 Marc Autret <autret_m@epita.fr>
1256 * doc/bison.texinfo: Update.
1257 * doc/bison.1 (mandoc): Update.
1258 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1259 * src/files.c: Support output files extensions computing.
1260 (src_extension): New static variable.
1261 (header_extension): New static variable.
1263 (get_extension_index): New function, gets the index of an extension
1264 filename in a string.
1265 (compute_exts_from_gf): New function, computes extensions from the
1266 grammar file extension.
1267 (compute_exts_from_src): New functions, computes extensions from the
1268 C source file extension, file given by ``-o'' option.
1269 (compute_base_names): Update.
1270 (output_files): Update.
1272 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1274 * doc/bison.texi: Document @$.
1275 (Locations): New section.
1277 2001-07-18 Akim Demaille <akim@epita.fr>
1279 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1280 * config/prev-version.txt, config/move-if-change: New.
1281 * Makefile.am: Adjust.
1283 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1285 * src/bison.simple (yyparse): Suppress warning `comparaison
1286 between signed and unsigned'.
1288 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1290 * src/getargs.h (raw_flag): Remove.
1291 * src/getargs.c: Die on `-r'/`--raw'.
1292 * src/lex.c (parse_percent_token): Die on `%raw'.
1293 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1294 * tests/calc.at: Suppress test with option `--raw'.
1296 2001-07-14 Akim Demaille <akim@epita.fr>
1299 * configure.in: Require Autoconf 2.50.
1300 Update to gettext 0.10.38.
1302 2001-03-16 Akim Demaille <akim@epita.fr>
1304 * doc/bison.texinfo: ANSIfy the examples.
1306 2001-03-16 Akim Demaille <akim@epita.fr>
1308 * getargs.c (skeleton): New variable.
1309 (longopts): --skeleton is a new option.
1310 (shortopts, getargs): -S is a new option.
1311 * getargs.h: Declare skeleton.
1312 * output.c (output_parser): Use it.
1314 2001-03-16 Akim Demaille <akim@epita.fr>
1316 * m4/strerror_r.m4: New.
1317 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1318 * lib/error.h, lib/error.c: Update.
1320 2001-03-16 Akim Demaille <akim@epita.fr>
1322 * src/getargs.c (longopts): Clean up.
1324 2001-02-21 Akim Demaille <akim@epita.fr>
1326 * src/reader.c (gensym): `gensym_count' is your own.
1327 Use a static buf to create the symbol name, as token_buffer is no
1330 2001-02-08 Akim Demaille <akim@epita.fr>
1332 * src/conflicts.c (conflict_report): Be sure not to append to res
1333 between two calls, which could happen if both first sprintf were
1334 skipped, but not the first cp += strlen.
1336 2001-02-08 Akim Demaille <akim@epita.fr>
1338 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1339 New, from fileutils 4.0.37.
1340 * configure.in: Require Autoconf 2.49c. I took some time before
1341 making this decision. This is the only way out for portability
1342 issues in Bison, it would mean way too much duplicate effort to
1343 import in Bison features implemented in 2.49c since 2.13.
1344 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1346 2001-02-02 Akim Demaille <akim@epita.fr>
1348 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1349 * lib/xalloc.h, lib/xmalloc.c: Update.
1351 2001-01-19 Akim Demaille <akim@epita.fr>
1353 Get rid of the ad hoc handling of token_buffer in the scanner: use
1356 * src/lex.c (token_obstack): New.
1357 (init_lex): Initialize it. No longer call...
1358 (grow_token_buffer): this. Remove it.
1359 Adjust all the places which used it to use the obstack.
1361 2001-01-19 Akim Demaille <akim@epita.fr>
1363 * src/lex.h: Rename all the tokens:
1364 s/\bENDFILE\b/tok_eof/g;
1365 s/\bIDENTIFIER\b/tok_identifier/g;
1367 Let them be enums, not #define, to ease debugging.
1368 Adjust all the code.
1370 2001-01-18 Akim Demaille <akim@epita.fr>
1372 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1373 * src/lex.c (maxtoken, grow_token_buffer): Static.
1375 2001-01-18 Akim Demaille <akim@epita.fr>
1377 Since we now use obstacks, more % directives can be enabled.
1379 * src/lex.c (percent_table): Also accept `%yacc',
1380 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1382 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1383 instead of returning a token.
1384 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1385 * src/reader.c (read_declarations): Adjust.
1386 * src/files.c (open_files): Don't call `compute_base_names', don't
1387 compute `attrsfile' since they depend upon data which might be
1388 *in* the input file now.
1389 (output_files): Do it here.
1390 * src/output.c (output_headers): Document the fact that this patch
1391 introduces a guaranteed SEGV for semantic parsers.
1392 * doc/bison.texinfo: Document them.
1393 * tests/suite.at: Exercise these %options.
1395 2000-12-20 Akim Demaille <akim@epita.fr>
1397 Also handle the output file (--verbose) with obstacks.
1399 * files.c (foutput): Remove.
1400 (output_obstack): New.
1401 Adjust all dependencies.
1402 * src/conflicts.c: Return a string.
1403 * src/system.h (obstack_grow_string): Rename as...
1404 (obstack_sgrow): this. Be ready to work with non literals.
1405 (obstack_fgrow4): New.
1407 2000-12-20 Akim Demaille <akim@epita.fr>
1409 * src/files.c (open_files): Fix the computation of short_base_name
1410 in the case of `-o foo.tab.c'.
1412 2000-12-20 Akim Demaille <akim@epita.fr>
1414 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1415 (copy_dollar): Now that everything uses obstacks, get rid of the
1418 2000-12-20 Akim Demaille <akim@epita.fr>
1420 * src/files.c (open_files): Actually the `.output' file is based
1421 on the short_base_name, not base_name.
1422 * tests/suite.at (Checking output file names): Adjust.
1424 2000-12-20 Akim Demaille <akim@epita.fr>
1426 * src/bison.s1: Remove, we now use directly...
1427 * src/bison.simple: this.
1428 * src/Makefile.am: Use pkgdata instead of data.
1430 2000-12-20 Akim Demaille <akim@epita.fr>
1432 * src/files.c (guard_obstack): New.
1433 (open_files): Initialize it.
1434 (output_files): Dump it...
1435 * src/files.h: Export it.
1436 * src/reader.c (copy_guard): Use it.
1438 2000-12-19 Akim Demaille <akim@epita.fr>
1440 * src/files.c (outfile, defsfile, actfile): Removed as global
1442 (open_files): Don't compute them.
1443 (output_files): Adjust.
1444 (base_name, short_base_name): Be global.
1445 Adjust dependencies.
1447 2000-12-19 Akim Demaille <akim@epita.fr>
1449 * src/files.c (strsuffix): New.
1450 (stringappend): Be just like strcat but allocate.
1451 (base_names): Eve out from open_files.
1452 Try to simplify the rather hairy computation of base_name and
1454 (open_files): Use it.
1455 * tests/suite.at (Checking output file names): New test.
1457 2000-12-19 Akim Demaille <akim@epita.fr>
1459 * src/system.h (obstack_grow_literal_string): Rename as...
1460 (obstack_grow_string): this.
1461 * src/output.c (output_parser): Recognize `%% actions' instead of
1463 * src/bison.s1: s/$/%% actions/.
1464 * src/bison.hairy: Likewise.
1466 2000-12-19 Akim Demaille <akim@epita.fr>
1468 * src/output.c (output_parser): Compute the `#line' lines when
1470 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1471 Suggested by Hans Aberg.
1473 2000-12-19 Akim Demaille <akim@epita.fr>
1475 Let the handling of the skeleton files be local to the procedures
1478 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1480 (fparser, open_extra_files): Remove.
1481 (open_files, output_files): Don't take care of fparser.
1482 * src/files.h: Adjust.
1483 * src/output.c (output_parser): Open and close the file to the
1485 * src/reader.c (read_declarations): When %semantic_parser, open
1488 2000-12-19 Akim Demaille <akim@epita.fr>
1490 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1491 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1493 2000-12-19 Akim Demaille <akim@epita.fr>
1495 * src/files.c (open_files): Yipee! We no longer need all the code
1496 looking for `/tmp' since we have no tmp file.
1498 2000-12-19 Akim Demaille <akim@epita.fr>
1500 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1502 * src/files.c (open_files): Less dependency on MSDOS etc.
1504 2000-12-14 Akim Demaille <akim@epita.fr>
1506 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1507 Provide a default definition.
1508 Use it when executing the default @ action.
1509 * src/reader.c (reader_output_yylsp): No longer include
1510 `timestamp' and `text' in the default YYLTYPE.
1512 2000-12-12 Akim Demaille <akim@epita.fr>
1514 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1515 (copy_guard): Quote the file names.
1516 Reported by Laurent Mascherpa.
1518 2000-12-12 Akim Demaille <akim@epita.fr>
1520 * src/output.c (output_headers, output_program, output): Be sure
1521 to escape special characters when outputting filenames.
1522 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1523 (output_headers): Don't depend on them, Use ACTSTR.
1525 2000-11-17 Akim Demaille <akim@epita.fr>
1527 * lib/obstack.h: Formatting changes.
1528 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1529 prevents type checking.
1530 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1531 cast the value to (void *): assigning a `foo *' to a `void *'
1533 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1534 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1537 2000-11-17 Akim Demaille <akim@epita.fr>
1539 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1541 (suite.m4, regression.m4, calc.m4): these.
1542 * tests/atgeneral.m4: Update from CVS Autoconf.
1544 2000-11-17 Akim Demaille <akim@epita.fr>
1546 * tests/regression.m4 (%union and --defines): New test,
1547 demonstrating a current bug in the obstack implementation.
1549 2000-11-17 Akim Demaille <akim@epita.fr>
1551 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1553 Use them to declare the variables which are global or local to
1556 2000-11-17 Akim Demaille <akim@epita.fr>
1558 * acconfig.h: Remove, no longer used.
1560 2000-11-07 Akim Demaille <akim@epita.fr>
1562 * src: s/Copyright (C)/Copyright/g.
1564 2000-11-07 Akim Demaille <akim@epita.fr>
1566 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1568 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1570 2000-11-07 Akim Demaille <akim@epita.fr>
1572 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1573 Merge in a single CPP if/else.
1575 2000-11-07 Akim Demaille <akim@epita.fr>
1577 * src/output.c (output): Remove useless variables.
1578 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1579 argument `data' for consistency with the prototypes.
1581 (obstack_copy, obstack_copy0): Rename the second argument as
1582 `address' for consistency. Qualify it `const'.
1583 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1584 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1585 `const' their input argument (`data' or `address').
1586 Adjust the corresponding macros to include `const' in casts.
1588 2000-11-03 Akim Demaille <akim@epita.fr>
1590 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1591 s/PFILE1/BISON_HAIRY/.
1592 Adjust dependencies.
1594 2000-11-03 Akim Demaille <akim@epita.fr>
1596 For some reason, this was not applied.
1598 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1599 `unlink': it's no longer used.
1601 2000-11-03 Akim Demaille <akim@epita.fr>
1603 * src/files.c (skeleton_find): New function, eved out of...
1604 (open_files, open_extra_files): here.
1606 2000-11-03 Akim Demaille <akim@epita.fr>
1610 * src/files.c (obstack_save): New function.
1611 (done): Rename as...
1612 (output_files): this.
1614 * src/main.c (main): Don't use `atexit' to register `done', since
1615 it no longer has to remove tmp files, just call `output_files'
1616 when there are no errors.
1618 2000-11-02 Akim Demaille <akim@epita.fr>
1620 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1621 `unlink': it's no longer used.
1622 * src/files.h: Formatting changes.
1624 2000-11-02 Akim Demaille <akim@epita.fr>
1626 Remove the last uses of mktemp and unlink/delete.
1628 * src/files.c (fdefines, ftable): Removed.
1629 (defines_ostack, table_obstack): New.
1630 Adjust dependencies of the former into uses of the latter.
1631 * src/output.c (output_short_or_char_table, output_short_table):
1632 Convert to using obstacks.
1633 * src/reader.c (copy_comment2): Accept one FILE * and two
1635 (output_token_defines, reader_output_yylsp): Use obstacks.
1636 * src/system.h (obstack_fgrow3): New.
1638 2000-11-01 Akim Demaille <akim@epita.fr>
1640 Change each use of `fattrs' into a use of `attrs_obstack'.
1642 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1643 * src/files.c (fattrs): Remove.
1644 (attrs_obstack): New.
1645 Adjust all dependencies.
1646 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1648 2000-11-01 Akim Demaille <akim@epita.fr>
1651 Change each use of `faction' into a use of `action_obstack'.
1653 * lib/obstack.h, lib/obstack.c: New files.
1654 * src/files.c (faction): Remove.
1655 (action_obstack): New.
1656 Adjust all dependencies.
1658 2000-10-20 Akim Demaille <akim@epita.fr>
1660 * lib/quote.h (PARAMS): New macro. Use it.
1662 2000-10-16 Akim Demaille <akim@epita.fr>
1664 * src/output.c (output_short_or_char_table): New function.
1665 (output_short_table, output_token_translations): Use it.
1666 (goto_actions): Use output_short_table.
1668 2000-10-16 Akim Demaille <akim@epita.fr>
1670 * src/symtab.c (bucket_new): New function.
1673 * src/output.c (output_short_table): New argument to display the
1674 comment associated with the table.
1675 Adjust dependencies.
1676 (output_gram): Use it.
1677 (output_rule_data): Nicer output layout for YYTNAME.
1679 2000-10-16 Akim Demaille <akim@epita.fr>
1681 * src/lex.c (read_typename): New function.
1683 * src/reader.c (copy_dollar): Likewise.
1685 2000-10-16 Akim Demaille <akim@epita.fr>
1687 * src/reader.c (copy_comment2): Expect the input stream to be on
1688 the `/' which is suspected to open a comment, instead of being
1689 called after `//' or `/*' was read.
1690 (copy_comment, copy_definition, parse_union_decl, copy_action)
1691 (copy_guard): Adjust.
1693 2000-10-16 Akim Demaille <akim@epita.fr>
1695 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1696 `read_signed_integer'.
1698 2000-10-16 Akim Demaille <akim@epita.fr>
1700 * src/reader.c (copy_dollar): New function.
1701 (copy_guard, copy_action): Use it.
1703 2000-10-16 Akim Demaille <akim@epita.fr>
1705 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1706 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1707 New files, from Fileutils 4.0.27.
1708 * src/main.c (printable_version): Remove.
1709 * src/lex.c, src/reader.c: Use `quote'.
1711 2000-10-04 Akim Demaille <akim@epita.fr>
1713 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1715 2000-10-04 Akim Demaille <akim@epita.fr>
1717 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1719 2000-10-04 Akim Demaille <akim@epita.fr>
1721 When a literal string is used to define two different tokens,
1722 `bison -v' segfaults.
1723 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1725 * tests/regression.m4: New file.
1726 Include the core of the sample provided by Piotr Gackiewicz.
1727 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1730 2000-10-04 Akim Demaille <akim@epita.fr>
1732 * src/reader.c (parse_expect_decl): Keep `count' within the size
1736 2000-10-02 Paul Eggert <eggert@twinsun.com>
1738 * bison.s1 (yyparse): Assign the default value
1739 unconditionally, to avoid a GCC warning and make the parser a
1742 2000-10-02 Akim Demaille <akim@epita.fr>
1744 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1747 2000-10-02 Akim Demaille <akim@epita.fr>
1749 * src/derives.c, src/print.c, src/reduce.c: To ease the
1750 translation, move some `\n' out of the translated strings.
1752 2000-10-02 Akim Demaille <akim@epita.fr>
1754 The location tracking mechanism is precious for parse error
1755 messages. Nevertheless, it is enabled only when `@n' is used in
1756 the grammar, which is a different issue (you can use it in error
1757 message, but not in the grammar per se). Therefore, there should
1758 be another means to enable it.
1760 * src/getargs.c (getargs): Support `--locations'.
1762 * src/getargs.h (locationsflag): Export it.
1763 * src/lex.c (percent_table): Support `%locations'.
1764 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1765 with `locationsflag'.
1766 * doc/bison.texinfo: Document `--locations' and `%locations'.
1768 * tests/calc.m4: Test it.
1770 For regularity of the names, replace each
1771 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1772 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1773 In addition replace each `flag' with `_flag'.
1775 2000-10-02 Akim Demaille <akim@epita.fr>
1777 Also test parse error messages, including with YYERROR_VERBOSE.
1779 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1781 Use it to check the computations.
1782 Use it to check `nonassoc' is honored.
1783 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1784 `--yyerror-verbose'.
1785 (_AT_CHECK_CALC): Adjust to this option.
1786 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1788 2000-10-02 Akim Demaille <akim@epita.fr>
1790 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1791 the latter demonstrates a flaw in the handling of non debugging
1792 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1793 was used in order to simplify:
1809 unfortunately this leads to a CPP conflict when
1810 `--name-prefix=foo' is used since it produces `#define yydebug
1813 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1814 (YYDPRINTF): New macro.
1816 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1818 Also test `--verbose', `--defines' and `--name-prefix'.
1820 2000-10-02 Akim Demaille <akim@epita.fr>
1822 Improve the readability of the produced parsers.
1824 * src/bison.s1: Formatting changes.
1825 Improve the comment related to the `$' mark.
1826 (yydefault): Don't fall through to `yyresume': `goto' there.
1827 * src/output.c (output_parser): When the `$' is met, skip the end
1829 New variable, `number_of_dollar_signs', to check there's exactly
1830 one `$' in the parser skeleton.
1832 2000-10-02 Akim Demaille <akim@epita.fr>
1834 * lib/xstrdup.c: New file, from the fileutils.
1835 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1836 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1837 instead of strlen + xmalloc + strcpy.
1838 * src/symtab.c (copys): Remove, use xstrdup instead.
1840 2000-10-02 Akim Demaille <akim@epita.fr>
1842 * src/gram.h (associativity): New enum type which replaces the
1843 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1844 `right_assoc', `left_assoc' and `non_assoc'.
1845 Adjust all dependencies.
1846 * src/reader.c: Formatting changes.
1847 (LTYPESTR): Don't define it, use it as a literal in
1848 `reader_output_yylsp'.
1849 * src/symtab.h (symbol_class): New enum type which replaces the
1850 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1851 `sunknown', `stoken and `snterm'.
1853 2000-10-02 Akim Demaille <akim@epita.fr>
1855 * src/getargs.c (fixed_outfiles): Rename as...
1856 (yaccflag): for consistency and accuracy.
1857 Adjust dependencies.
1859 2000-10-02 Akim Demaille <akim@epita.fr>
1861 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1862 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1863 difficult and introduced a lot of core dump. It turns out that
1864 Bison used an implementation of `xmalloc' based on `calloc', and
1865 at various places it does depend upon the initialization to 0. I
1866 have not tried to isolate the pertinent places, and all the former
1867 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1868 someone should address this issue.
1870 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1871 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1873 Adjust dependencies.
1874 * src/warshall.h: New file.
1877 2000-10-02 Akim Demaille <akim@epita.fr>
1879 Various anti-`extern in *.c' changes.
1881 * src/system.h: Include `assert.h'.
1883 2000-10-02 Akim Demaille <akim@epita.fr>
1885 * src/state.h (nstates, final_state, first_state, first_shift)
1886 (first_reduction): Move their exportation from here...
1887 * src/LR0.h: to here.
1888 Adjust dependencies.
1889 * src/getargs.c (statisticsflag): New variable.
1890 Add support for `--statistics'.
1891 Adjust dependencies.
1893 Remove a lot of now useless `extern' statements in most files.
1895 2000-10-02 Akim Demaille <akim@epita.fr>
1897 * src/LR0.h: New file.
1900 2000-10-02 Akim Demaille <akim@epita.fr>
1902 * src/print.h: New file.
1904 * src/print.c: Formatting and ordering changes.
1905 (verbose, terse): Replace with...
1906 (print_results): this new function.
1907 Adjust dependencies.
1909 2000-10-02 Akim Demaille <akim@epita.fr>
1911 * src/conflicts.c (conflict_report): New function.
1912 (conflict_log, verbose_conflict_log): Replace with...
1913 (print_conflicts): this function.
1914 Adjust dependencies.
1915 * src/conflicts.h: New file.
1916 Propagate its inclusion.
1918 2000-10-02 Akim Demaille <akim@epita.fr>
1920 * src/nullable.h: New file.
1921 Propagate its inclusion.
1922 * src/nullable.c: Formatting changes.
1924 2000-10-02 Akim Demaille <akim@epita.fr>
1926 * src/reduce.h: New file.
1927 Propagate its inclusion.
1928 * src/reduce.c: Topological sort and other formatting changes.
1929 (bool, TRUE, FALSE): Move their definition to...
1930 * src/system.h: here.
1932 2000-10-02 Akim Demaille <akim@epita.fr>
1934 * src/files.c: Formatting changes.
1935 (tryopen, tryclose, openfiles): Rename as...
1936 (xfopen, xfclose, open_files): this.
1937 (stringappend): static.
1938 * src/files.h: Complete the list of exported symbols.
1941 2000-10-02 Akim Demaille <akim@epita.fr>
1943 * src/reader.h: New file.
1944 Propagate its use instead of tedious list of `extern' and
1946 * src/reader.c: Formatting changes, topological sort,
1949 2000-10-02 Akim Demaille <akim@epita.fr>
1951 * src/lex.h: Prototype `lex.c' exported functions.
1952 * src/reader.c: Adjust.
1953 * src/lex.c: Formatting changes.
1954 (safegetc): Rename as...
1957 2000-10-02 Akim Demaille <akim@epita.fr>
1959 * src/lalr.h: New file.
1960 Propagate its inclusion instead of prototypes and `extern'.
1961 * src/lalr.c: Formatting changes, topological sorting etc.
1963 2000-10-02 Akim Demaille <akim@epita.fr>
1965 * src/output.c (token_actions): Introduce a temporary array,
1966 YYDEFACT, that makes it possible for this function to use
1969 2000-10-02 Akim Demaille <akim@epita.fr>
1971 `user_toknums' is output as a `short[]' in `output.c', while it is
1972 defined as a `int[]' in `reader.c'. For consistency with the
1973 other output tables, `user_toknums' is now defined as a table of
1976 * src/reader.c (user_toknums): Be a short table instead of an int
1978 Adjust dependencies.
1980 Factor the short table outputs.
1982 * src/output.c (output_short_table): New function.
1983 * src/output.c (output_gram, output_stos, output_rule_data)
1984 (output_base, output_table, output_check): Use it.
1986 2000-10-02 Akim Demaille <akim@epita.fr>
1988 * src/output.c (output): Topological sort of the functions, in
1989 order to get rid of the `static' prototypes.
1990 No longer use `register'.
1991 * src/output.h: New file.
1992 Propagate its inclusion in files explicitly prototyping functions
1995 2000-09-21 Akim Demaille <akim@epita.fr>
1997 * src/atgeneral.m4: Update from Autoconf.
1999 2000-09-21 Akim Demaille <akim@epita.fr>
2001 * src/closure.h: New file.
2002 * src/closure.c: Formatting changes, topological sort over the
2003 functions, use of closure.h.
2004 (initialize_closure, finalize_closure): Rename as...
2005 (new_closure, free_closure): these. Adjust dependencies.
2006 * src/LR0.c: Formatting changes, topological sort, use of
2008 (initialize_states): Rename as...
2010 * src/Makefile.am (noinst_HEADERS): Adjust.
2012 2000-09-20 Akim Demaille <akim@epita.fr>
2014 * src/acconfig.h: Don't protect config.h against multiple
2016 Don't define PARAMS.
2017 * src/system.h: Define PARAMS.
2018 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2019 purpose of config.h. system.h must not try to fix wrong
2020 definitions in config.h.
2022 2000-09-20 Akim Demaille <akim@epita.fr>
2024 * src/derives.h: New file.
2025 * src/main.c, src/derives.h: Use it.
2027 * src/Makefile.am (noinst_HEADERS): Adjust.
2029 2000-09-20 Akim Demaille <akim@epita.fr>
2031 * tests/atgeneral.m4: Update from Autoconf.
2032 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2033 (AT_CHECK_CALC): New macros.
2034 Use these macros to test bison with options `', `--raw',
2035 `--debug', `--yacc', `--yacc --debug'.
2037 2000-09-19 Akim Demaille <akim@epita.fr>
2039 * src/output.c: Formatting changes.
2040 * src/machine.h: Remove, leaving its contents in...
2041 * src/system.h: here.
2043 Adjust all dependencies on stdio.h and machine.h.
2044 * src/getargs.h: New file.
2045 Let all `extern' declarations about getargs.c be replaced with
2046 inclusion of `getargs.h'.
2047 * src/Makefile.am (noinst_HEADERS): Adjust.
2049 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2051 (yyerror): Returns void, not int.
2052 * doc/bison.texinfo: Formatting changes.
2054 2000-09-19 Akim Demaille <akim@epita.fr>
2056 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2059 2000-09-18 Akim Demaille <akim@epita.fr>
2061 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2062 * src/Makefile.am (INCLUDES): Don't.
2063 Be ready to fetch headers in lib/.
2065 2000-09-18 Akim Demaille <akim@epita.fr>
2067 * doc/bison.texinfo: Update the copyright.
2068 ANSIfy and GNUify the examples.
2069 Remove the old menu.
2071 2000-09-18 Akim Demaille <akim@epita.fr>
2073 First set of tests: use the `calc' example from the documentation.
2075 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2076 is defined only when YYDEBUG is.
2077 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2078 * src/files.c (tryopen, tryclose): Formatting changes.
2079 Move to the top and be static.
2080 * src/reader.c (read_signed_integer): Likewise.
2081 * tests/calc.m4: New file.
2082 * Makefile.am, suite.m4: Adjust.
2083 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2085 2000-09-18 Akim Demaille <akim@epita.fr>
2087 Add support for an Autotest test suite for Bison.
2089 * m4/m4.m4, m4/atconfig.m4: New files.
2090 * m4/Makefile.am (EXTRA_DIST): Adjust.
2091 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2093 * src/getargs.c: Display a more standard --version message.
2094 * src/reader.c (reader): Formatting changes.
2095 No longer depend upon VERSION_STRING.
2096 * configure.in: No longer use `dnl'.
2097 Set up the test suite and the new directory `tests/.
2098 (VERSION_STRING): Remove.
2100 2000-04-14 Akim Demaille <akim@epita.fr>
2102 * src/reader.c (copy_comment2): New function, same as former
2103 `copy_comment', but outputs into two FILE *.
2104 (copy_comment): Use it.
2105 (parse_union_decl): Use it.
2106 (get_type, parse_start_decl): Use the same `invalid' message.
2107 (parse_start_decl, parse_union_decl): Use the same `multiple'
2109 (parse_union_decl, copy_guard, copy_action): Use the same
2110 `unmatched' message.
2111 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2113 2000-03-31 Akim Demaille <akim@epita.fr>
2115 * src/files.c (tryopen, tryclose): Move to the top.
2118 2000-03-31 Akim Demaille <akim@epita.fr>
2120 * src/main.c (main): Don't call `done', exit does it.
2122 2000-03-31 Akim Demaille <akim@epita.fr>
2124 * allocate.c: s/return (foo)/return foo/.
2127 * output.c: Likewise.
2128 * reader.c: Likewise.
2129 * symtab.c: Likewise.
2130 * vmsgetargs.c: Likewise.
2132 2000-03-31 Akim Demaille <akim@epita.fr>
2134 Clean up the error reporting functions.
2136 * src/report.c: New file.
2137 * src/report.h: Likewise.
2138 * src/Makefile.am: Adjust.
2139 * m4/error.m4: New file.
2140 * m4/Makefile.am: Adjust.
2141 * configure.in (jm_PREREQ_ERROR): Call it.
2142 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2144 (fatal, fatals): Remove. All callers use complain.c::fatal.
2145 (warn, warni, warns, warnss, warnss): Remove. All callers use
2146 complain.c::complain.
2147 (toomany): Remove, use fatal instead.
2148 * src/files.c (done): No argument, use complain_message_count.
2149 * src/main.c (main): Register `done' to `atexit'.
2151 * src/getargs.c (usage): More `fputs', less `fprintf'.
2153 2000-03-28 Akim Demaille <akim@epita.fr>
2155 * lib/: New directory.
2156 * Makefile.am (SUBDIRS): Adjust.
2157 * configure.in: Adjust.
2158 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2160 * src/alloca.c: Moved to lib/.
2161 * src/getopt.c: Likewise.
2162 * src/getopt1.c: Likewise.
2163 * src/getopt.h: Likewise.
2164 * src/ansi2knr.c: Likewise.
2165 * src/ansi2knr.1: Likewise.
2166 * src/Makefile.am: Adjust.
2167 * lib/Makefile.am: New file.
2169 2000-03-28 Akim Demaille <akim@epita.fr>
2171 * src/getargs.c (usage): Refresh the help message.
2173 2000-03-17 Akim Demaille <akim@epita.fr>
2175 * src/getopt1.c: Updated from textutils 2.0e
2176 * src/getopt.c: Likewise.
2177 * src/getopt.h: Likewise.
2179 2000-03-17 Akim Demaille <akim@epita.fr>
2181 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2182 the file name, not the whole `#line LINE FILE'.
2184 2000-03-17 Akim Demaille <akim@epita.fr>
2186 On syntax errors, report the token on which we choked.
2188 * src/bison.s1 (yyparse): In the label yyerrlab, when
2189 YYERROR_VERBOSE, add yychar in msg.
2191 2000-03-17 Akim Demaille <akim@epita.fr>
2193 * src/reader.c (copy_at): New function.
2194 (copy_guard): Use it.
2195 (copy_action): Use it.
2197 2000-03-17 Akim Demaille <akim@epita.fr>
2199 Be kind to translators, save some useless translations.
2201 * src/main.c (banner): New function.
2202 (fatal_banner): Use it.
2203 (warn_banner): Use it.
2205 2000-03-17 Akim Demaille <akim@epita.fr>
2207 * src/reader.c (copy_definition): Use copy_string and
2208 copy_comment. Removed now unused `match', `ended',
2210 (copy_comment, copy_string): Moved, to be visible from
2213 2000-03-17 Akim Demaille <akim@epita.fr>
2215 * src/reader.c (copy_string): Declare `static inline'. No
2216 problems with inline, since it is checked by configure.
2217 (copy_comment): Likewise.
2219 2000-03-17 Akim Demaille <akim@epita.fr>
2221 * src/reader.c (packsymbols): Formatting changes.
2223 2000-03-17 Akim Demaille <akim@epita.fr>
2225 * src/reader.c (copy_comment): New function, factored out from:
2226 (copy_action): Use it. Removed now unused `match', `ended',
2228 (copy_guard): Likewise.
2230 2000-03-17 Akim Demaille <akim@epita.fr>
2232 * src/reader.c (copy_string): New function, factored out from:
2233 (copy_action): Use it.
2234 (copy_guard): Likewise.
2236 2000-03-17 Akim Demaille <akim@epita.fr>
2238 Change the handling of @s so that they behave exactly like $s.
2239 There is now a pseudo variable @$ (readble and writable), location
2240 of the lhs of the rule (by default ranging from the location of
2241 the first symbol of the rhs, to the location of the last symbol,
2242 or, if the rhs is empty, YYLLOC).
2244 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2246 (yyparse): When providing a default semantic action, provide a
2247 default location action.
2248 (after the $): No longer change `*YYLSP', just stack YYLOC the
2249 same way you stack YYVAL.
2250 * src/reader.c (read_declarations): Use warns.
2251 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2252 (copy_action, case '@'): Likewise.
2253 Use a standard error message, to save useless work from
2256 2000-03-17 Akim Demaille <akim@epita.fr>
2258 * src/bison.s1: Formatting and cosmetics changes.
2259 * src/reader.c: Likewise.
2260 Update the Copyright notice.
2262 2000-03-17 Akim Demaille <akim@epita.fr>
2264 * src/bison.s1 (#line): All set to `#line' only, since the
2265 Makefile now handles them.
2267 2000-03-16 Akim Demaille <akim@epita.fr>
2269 * src/output.c (output_rule_data): Output the documentation of
2271 (Copyright notice): Update.
2274 2000-03-16 Akim Demaille <akim@epita.fr>
2276 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2277 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2278 One `#if YYDEBUG' remains, since it uses variables which are
2279 defined only if `YYDEBUG != 0'.
2281 2000-03-16 Akim Demaille <akim@epita.fr>
2283 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2284 and related variables so that the similarities are highlighted.
2286 2000-03-16 Akim Demaille <akim@epita.fr>
2288 * src/bison.s1: Properly indent CPP directives.
2290 2000-03-16 Akim Demaille <akim@epita.fr>
2292 * src/bison.s1: Properly indent the `alloca' CPP section.
2294 2000-03-16 Akim Demaille <akim@epita.fr>
2296 Do not hard code values of directories in `configure.in'.
2297 Update the `configure' tool chain.
2299 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2301 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2302 (AC_OUTPUT): Add m4/Makefile.
2303 Bump to bison 1.28a, 1.29 has never been released.
2304 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2305 handled via src/Makefile.am.
2306 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2307 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2309 * Makefile.am (SUBDIRS): Add m4.
2310 (ACLOCAL_AM_FLAGS): New variable.
2311 (AUTOMAKE_OPTIONS): Add check-news.
2312 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2313 the proper line number and file name.
2314 (DEFS): Propagate the location of bison library files and of the
2316 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2318 * acinclude.m4: Remove, replaced by the directory m4.
2319 * m4/Makefile.am (EXTRA_DIST): New variable.
2320 * m4/gettext.m4: New file, from the fileutils.
2321 * m4/lcmessage.m4: Likewise
2322 * m4/progtest.m4: Likewise.
2323 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2325 2000-03-10 Akim Demaille <akim@epita.fr>
2328 Formatting changes of various comments.
2329 Respect the GNU coding standards at various places.
2330 Don't use `_()' when no translation is needed.
2332 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2335 OS/2 honors TMPDIR environment variable.
2337 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2339 * doc/bison.texinfo: Tweaked spelling and grammar.
2341 Removed reference to price of printed copy.
2342 Mention BISON_SIMPLE and BISON_HAIRY.
2344 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2346 * configure.in, NEWS:
2347 Bison 1.29 released.
2349 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2351 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2352 Added reference card.
2354 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2356 * po/ru.po: Added Russian translation.
2358 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2360 * configure.in: Added Russian translation.
2362 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2364 * configure.in, NEWS, README:
2365 Released version 1.28.
2367 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2370 Squashed redefinition warning on some systems.
2372 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2373 Have configure build version string instead of relying on ANSI string
2376 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2378 * po/POTFILES.in: Got rid of version.c.
2380 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2382 * acconfig.h, configure.in:
2383 Have configure build version string instead of relying on ANSI string
2386 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2389 Dropped mention of `+' for long-named options.
2391 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2393 * src/files.c: Added <unistd.h> for unlink().
2395 * src/Makefile.am, src/system.h:
2398 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2400 * README: Added a FAQ list.
2402 * configure.in, acconfig.h:
2405 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2407 * doc/FAQ, doc/Makefile.am:
2410 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2412 * src/alloc.h, src/symtab.h, src/version.c:
2413 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2415 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2417 * src/.cvsignore, src/Makefile.am:
2418 Reorganized: sources in `src', documentation in `doc'.
2420 * src/lex.c (literalchar):
2421 fixed the code for escaping double quotes (thanks
2424 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2426 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2427 Adjusted paths to reflect directory reorganization.
2429 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2431 * doc/.cvsignore, doc/Makefile.am:
2432 Reorganized: sources in `src', documentation in `doc'.
2434 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2437 Updated AC_INIT file to reflect directory reorganization.
2439 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2440 Reorganized: sources in `src', documentation in `doc'.
2442 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2445 Don't declare calloc() and realloc() if not necessary.
2447 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2449 * configure.in, acconfig.h, acinclude.m4:
2450 Don't declare calloc() and realloc() if not necessary.
2452 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2454 * po/.cvsignore: Added i18n support.
2456 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2458 * acconfig.h, configure.in, Makefile.am:
2461 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2463 * src/bison.s1: Fixed #line numbers.
2465 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2467 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2468 Added PO files from Translation Project.
2470 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2473 Added support for non-ANSI compilers (ansi2knr).
2475 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2477 * configure.in: Bumped version number to 1.27.
2480 Added `bison.simple' to list of files removed by `make distclean'.
2482 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2484 * src/files.c, src/files.h:
2485 Defined locations of parser files in config.h instead of Makefile.
2487 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2489 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2490 Defined locations of parser files in config.h instead of Makefile.
2492 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2495 Removed inappropriate use of $< macro.
2497 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2499 * po/Makefile.in.in, po/POTFILES.in:
2500 Add `po' directory skeleton.
2502 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2504 * README: Document help-bison list.
2506 * configure.in: Add check for mkstemp().
2508 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2510 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2511 Hush a few compiler warnings.
2514 Add tryclose(), which verifies that fclose was successful.
2515 Hush a couple of compiler warnings.
2517 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2519 * Makefile.am, OChangeLog:
2520 ChangeLog is now automatically generated. Include the old version as
2523 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2525 * 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:
2528 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2530 * doc/bison.texinfo: Fix formatting glitch.
2532 * doc/bison.texinfo: Update FSF address.
2534 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2536 * acconfig.h: Update FSF address.
2538 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2541 Don't define PACKAGE here, since config.h defines it.
2543 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2545 * src/reader.c: Update copyright date.
2548 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2549 favor of output directly to stderr (avoids buffer overruns).
2551 * src/reader.c: Some checks for premature EOF.
2553 * 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:
2554 Use prototypes if the compiler understands them.
2556 * src/files.c: Honor TMPDIR on Unix hosts.
2557 Use prototypes if the compiler understands them.
2560 Fix a couple of buffer overrun bugs.
2561 Use prototypes if the compiler understands them.
2563 * src/system.h: Include unistd.h and ctype.h.
2564 Use #ifdef instead of #if for NLS symbols.
2566 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2568 * doc/bison.texinfo:
2569 Delete comment "consider using @set for edition number, etc..." since
2570 we now are doing so.
2572 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2575 Use prototypes if the compiler understands them.
2577 * NEWS: Document 1.26 highlights.
2579 * Makefile.am: Require Automake 1.3 or later.
2582 Use prototypes if the compiler understands them.
2584 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2587 Use VERSION symbol from automake for version number.
2589 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2591 * acconfig.h, configure.in, version.cin:
2592 Use VERSION symbol from automake for version number.
2594 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2597 Distribute original version of simple parser (bison.s1), not built
2598 version (bison.simple).
2600 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2602 * doc/bison.texinfo: Add info dir entry.
2604 * doc/bison.texinfo:
2605 Let automake put version number into documentation.
2607 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2609 * src/bison.cld, src/build.com, src/vmshlp.mar:
2610 Add non-RCS files from /gd/gnu/bison.
2612 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2615 Document the BISON_HAIRY and BISON_SIMPLE variables.
2617 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2619 * src/version.c: Build version.c automatically.
2622 Fix token numbering (used to start at 258, not 257).
2624 * src/system.h: Include config.h.
2626 * src/getargs.c: Update bug report address.
2628 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2629 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2631 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2634 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2636 * configure.in, version.cin:
2637 Build version.c automatically.
2639 * AUTHORS: Add AUTHORS file.
2641 * README: Update bug report address.
2644 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2646 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2649 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2651 * doc/bison.texinfo: Clean up some formatting.
2653 1998-05-05 Richard Stallman <rms@gnu.org>
2655 * doc/bison.texinfo:
2656 Explain better why to make a pure parser.
2658 1998-01-05 Richard Stallman <rms@gnu.org>
2660 * src/files.c (openfiles):
2661 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2662 find a temporary directory, if possible. Do not unlink files while
2665 1997-08-25 Richard Stallman <rms@gnu.org>
2667 * src/reader.c (stack_offset;):
2668 Change some warni to warns.
2670 * src/lex.c (literalchar): Use warns, not warni.
2672 1997-06-28 Richard Stallman <rms@gnu.org>
2674 * src/bison.s1: Add a Bison version comment.
2676 * src/main.c (fatal, warn, berror):
2679 1997-06-28 Richard Stallman <rms@gnu.org>
2681 * Makefile.in (bison_version): New variable.
2682 (dist): Use that variable.
2683 (bison.s1): Substitute the Bison version into bison.simple.
2685 * bison.simple: Add a Bison version comment.
2687 1997-06-18 Richard Stallman <rms@gnu.org>
2689 * src/main.c (fatal, warn, berror):
2690 Make error messages standard.
2691 (toomany): Improve error message text.
2693 * 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:
2694 new.h renamed to alloc.h.
2696 1997-06-18 Richard Stallman <rms@gnu.org>
2698 * Makefile.in: new.h renamed to alloc.h.
2700 1997-05-24 Richard Stallman <rms@gnu.org>
2702 * src/lex.c (literalchar):
2703 Fix the code for escaping \, " and '.
2705 (lex): Avoid trouble when there are many chars
2706 to discard in a char literal with just several chars in it.
2708 1997-05-17 Richard Stallman <rms@gnu.org>
2711 Use malloc, if using alloca is troublesome.
2712 (YYSTACK_USE_ALLOCA): New flag macro.
2713 Define it for some systems and compilers.
2714 (YYSTACK_ALLOC): New macro.
2715 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2716 If it was malloc'd, free it.
2718 1997-05-17 Richard Stallman <rms@gnu.org>
2721 Use malloc, if using alloca is troublesome.
2722 (YYSTACK_USE_ALLOCA): New flag macro.
2723 Define it for some systems and compilers.
2724 (YYSTACK_ALLOC): New macro.
2725 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2726 If it was malloc'd, free it.
2728 1997-04-23 Richard Stallman <rms@gnu.org>
2731 (alloca) [__hpux]: Always define as __builtin_alloca.
2733 1997-04-23 Richard Stallman <rms@gnu.org>
2736 (alloca) [__hpux]: Always define as __builtin_alloca.
2738 1997-04-22 Richard Stallman <rms@gnu.org>
2741 [__hpux]: Include alloca.h (right for HPUX 10)
2742 instead of declaring alloca (right for HPUX 9).
2744 * src/bison.s1 (__yy_memcpy):
2745 Declare arg `count' as unsigned int.
2746 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2748 1997-04-22 Richard Stallman <rms@gnu.org>
2751 [__hpux]: Include alloca.h (right for HPUX 10)
2752 instead of declaring alloca (right for HPUX 9).
2754 * bison.simple (__yy_memcpy):
2755 Declare arg `count' as unsigned int.
2756 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2758 1997-01-03 Richard Stallman <rms@gnu.org>
2760 * src/allocate.c: [__STDC__ or _MSC_VER]:
2761 Declare calloc and realloc to return void *.
2763 1997-01-02 Richard Stallman <rms@gnu.org>
2766 [_MSC_VER]: Include stdlib.h and process.h.
2767 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2769 * src/main.c (main): Return FAILURE as a value.
2770 (printable_version): Declare arg as int, not char.
2772 1997-01-02 Richard Stallman <rms@gnu.org>
2774 * Makefile.in (dist):
2775 Explicitly check for symlinks, and copy them.
2777 1996-12-19 Richard Stallman <rms@gnu.org>
2780 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2782 1996-12-18 Paul Eggert <eggert@gnu.org>
2784 * src/bison.s1 (yyparse):
2785 If __GNUC__ and YYPARSE_PARAM are both defined,
2786 declare yyparse to have a void * argument.
2788 1996-12-18 Paul Eggert <eggert@gnu.org>
2790 * bison.simple (yyparse):
2791 If __GNUC__ and YYPARSE_PARAM are both defined,
2792 declare yyparse to have a void * argument.
2794 1996-12-17 Richard Stallman <rms@gnu.org>
2796 * src/reduce.c (nbits): Add some casts.
2798 1996-08-12 Richard Stallman <rms@gnu.org>
2800 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2802 1996-08-12 Richard Stallman <rms@gnu.org>
2804 * bison.simple: Test _MSDOS as well as _MSDOS_.
2806 1996-07-31 Richard Stallman <rms@gnu.org>
2809 [__sun && __i386]: Include alloca.h.
2811 1996-07-31 Richard Stallman <rms@gnu.org>
2814 [__sun && __i386]: Include alloca.h.
2816 1996-07-30 Richard Stallman <rms@gnu.org>
2818 * src/bison.s1: Comment change.
2820 * src/bison.s1: Test _MSDOS_, not MSDOS.
2822 1996-07-30 Richard Stallman <rms@gnu.org>
2824 * bison.simple: Comment change.
2826 * bison.simple: Test _MSDOS_, not MSDOS.
2828 1996-06-01 Richard Stallman <rms@gnu.org>
2830 * 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:
2831 Insert `_' macro around many string constants.
2834 Insert `_' macro around many string constants.
2836 (main): Call setlocale, bindtextdomain and textdomain.
2838 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2839 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2840 [ENABLE_NLS]: Include libintl.h.
2841 [ENABLE_NLS] (gettext): Define.
2842 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2843 (N_, PACKAGE, LOCALEDIR): New macros.
2845 1996-06-01 Richard Stallman <rms@gnu.org>
2847 * POTFILES.in: New file.
2849 * Makefile.in (allocate.o):
2850 Define target explicitly.
2852 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2853 (LDFLAGS): Set to @LDFLAGS@.
2854 (configure): Run autoconf only if preceding `cd' succeeds.
2855 (bison.s1): Redirect output to temporary file then move the
2856 temporary to the target, rather than redirecting directly to bison.s1.
2857 (clean): Remove config.status and config.log.
2858 (distclean): Don't remove config.status here.
2860 1996-05-12 Richard Stallman <rms@gnu.org>
2863 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2865 1996-05-12 Richard Stallman <rms@gnu.org>
2868 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2870 1996-05-11 Richard Stallman <rms@gnu.org>
2872 * src/bison.s1 (__yy_memcpy):
2873 Really reorder the args, as was supposedly done on Feb 14 1995.
2874 (yyparse): Calls changed accordingly.
2876 1996-05-11 Richard Stallman <rms@gnu.org>
2878 * Makefile.in (dist): Don't use $(srcdir).
2880 * bison.simple (__yy_memcpy):
2881 Really reorder the args, as was supposedly done on Feb 14 1995.
2882 (yyparse): Calls changed accordingly.
2884 1996-01-27 Richard Stallman <rms@gnu.org>
2886 * src/output.c (output_rule_data):
2887 Test YYERROR_VERBOSE in the conditional
2888 around the definition of ttyname.
2890 1995-12-29 Richard Stallman <rms@gnu.org>
2893 Fix line numbers in #line commands.
2895 1995-12-29 Richard Stallman <rms@gnu.org>
2898 Fix line numbers in #line commands.
2900 1995-12-27 Richard Stallman <rms@gnu.org>
2902 * src/bison.s1 (YYPARSE_PARAM_DECL):
2903 In C++, make it always null.
2904 (YYPARSE_PARAM_ARG): New macro.
2905 (yyparse): Use YYPARSE_PARAM_ARG.
2907 1995-12-27 Richard Stallman <rms@gnu.org>
2909 * bison.simple (YYPARSE_PARAM_DECL):
2910 In C++, make it always null.
2911 (YYPARSE_PARAM_ARG): New macro.
2912 (yyparse): Use YYPARSE_PARAM_ARG.
2914 1995-11-29 Richard Stallman <rms@gnu.org>
2916 * doc/bison.texinfo:
2917 Describe literal string tokens, %raw, %no_lines, %token_table.
2919 1995-11-29 Daniel Hagerty <hag@gnu.org>
2921 * doc/bison.texinfo: Fixed update date
2923 1995-10-16 Richard Stallman <rms@gnu.org>
2925 * src/version.c: Version 1.25.
2927 1995-10-16 Richard Stallman <rms@gnu.org>
2929 * NEWS: *** empty log message ***
2931 1995-10-16 Richard Stallman <rms@gnu.org>
2933 * doc/bison.1, doc/bison.rnh:
2936 1995-10-15 Richard Stallman <rms@gnu.org>
2938 * src/vmsgetargs.c, src/getargs.c:
2939 Added -n, -k, and -raw switches.
2940 (noparserflag, toknumflag, rawtoknumflag): New variables.
2942 * src/symtab.h (SALIAS):
2943 New #define for adding aliases to %token.
2944 (struct bucket): Added `alias' field.
2946 * src/reduce.c (reduce_grammar):
2947 Revise error message.
2948 (print_notices): Remove final `.' from error message.
2950 * src/reader.c (reader_output_yylsp):
2952 (readgram): Use `#if 0' around code that accepted %command
2953 inside grammar rules: The documentation doesn't allow it,
2954 and it will fail since the %command processors scan for the next %.
2955 (parse_token_decl): Extended the %token
2956 declaration to allow a multi-character symbol as an alias.
2957 (parse_thong_decl): New function.
2958 (read_declarations): Added %thong declarations.
2959 (read_declarations): Handle NOOP to deal with allowing
2960 % declarations as another means to specify the flags.
2961 (readgram): Allow %prec prior to semantics embedded in a rule.
2962 (skip_to_char, read_declarations, copy_definition)
2963 (parse_token_decl, parse_start_decl, parse_type_decl)
2964 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2965 (get_type_name, copy_guard, copy_action, readgram)
2966 (get_type, packsymbols): Revised most error messages.
2967 Changed `fatal' to `warnxxx' to avoid aborting for error.
2968 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2969 (read_declarations): Improve the error message for
2970 an invalid character. Do not abort.
2971 (read_declarations, copy_guard, copy_action): Use
2972 printable_version to avoid unprintable characters in printed output.
2973 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2974 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2975 Allow the type of a non-terminal can be given
2976 more than once, as long as all specifications give the same type.
2979 (output_headers, output_trailers, output, output_gram)
2980 (output_rule_data): Implement noparserflag variable.
2981 Implement toknumflag variable.
2982 (output): Call reader_output_yylsp to output LTYPESTR.
2984 * src/main.c (main):
2985 If reader sees an error, don't process the grammar.
2986 (fatals): Updated to not use VARARGS1.
2987 (printable_version, int_to_string, warn, warni, warns, warnss)
2988 (warnsss): New error reporting functions. Avoid abort for error.
2991 Added THONG and NOOP for alias processing.
2992 Added SETOPT for the new code that allows setting options with %flags.
2995 Include getopt.h. Add some extern decls.
2996 (safegetc): New function to deal with EOF gracefully.
2997 (literalchar); new function to deal with reading \ escapes.
2998 (lex): Use literalchar.
2999 (lex): Implemented "..." tokens.
3000 (literalchar, lex, parse_percent_token): Made tokenbuffer
3001 always contain the token. This includes growing the token
3002 buffer while reading an integer.
3003 (parse_percent_token): Replaced if-else statement with percent_table.
3004 (parse_percent_token): Added % declarations as another
3005 way to specify the flags -n, -l, and -r. Also added hooks for
3006 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3007 major changes to files.c.
3008 (lex) Retain in the incoming stream a character following
3010 (skip_white_space, lex): Revised most error messages
3011 and changed fatal to warn to avoid aborting.
3012 (percent_table): Added %thong declarations.
3014 * src/gram.h: Comment changes.
3016 * src/files.c (openfiles, open_extra_files, done):
3018 and actfile file. Handle noparserflag. Both for -n switch.
3020 * src/conflicts.c (resolve_sr_conflict):
3021 Remove use of alloca.
3023 1995-06-01 Jim Meyering <meyering@gnu.org>
3025 * doc/bison.texinfo: *** empty log message ***
3027 1995-05-06 Richard Stallman <rms@gnu.org>
3029 * src/bison.s1: Comment change.
3031 1995-05-06 Richard Stallman <rms@gnu.org>
3033 * bison.simple: Comment change.
3035 1995-05-03 Richard Stallman <rms@gnu.org>
3037 * src/version.c: Version now 1.24.
3039 * src/bison.s1: Change distribution terms.
3041 * src/version.c: Version now 1.23.
3043 1995-05-03 Richard Stallman <rms@gnu.org>
3045 * doc/bison.texinfo:
3046 Rewrite "Conditions for Using Bison".
3047 Update version to 1.24.
3049 1995-05-03 Richard Stallman <rms@gnu.org>
3051 * bison.simple: Change distribution terms.
3053 1995-02-23 Richard Stallman <rms@gnu.org>
3055 * src/files.c: Test __VMS_POSIX as well as VMS.
3057 1995-02-14 Jim Meyering <meyering@gnu.org>
3059 * src/bison.s1 (__yy_memcpy):
3060 Renamed from __yy_bcopy to avoid
3061 confusion. Reverse FROM and TO arguments to be consistent with
3064 1995-02-14 Jim Meyering <meyering@gnu.org>
3066 * bison.simple (__yy_memcpy):
3067 Renamed from __yy_bcopy to avoid
3068 confusion. Reverse FROM and TO arguments to be consistent with
3071 1994-11-10 David J. MacKenzie <djm@gnu.org>
3077 * Makefile.in (DISTFILES): Include NEWS.
3079 * Makefile.in (DISTFILES):
3080 Include install-sh, not install.sh.
3082 * configure.in: Update to Autoconf v2 macro names.
3084 1994-10-05 David J. MacKenzie <djm@gnu.org>
3086 * Makefile.in: fix typo
3088 * Makefile.in (prefix, exec_prefix):
3089 Let configure set them.
3091 1994-09-28 David J. MacKenzie <djm@gnu.org>
3093 * Makefile.in: Set datadir to $(prefix)/share.
3095 1994-09-15 Richard Stallman <rms@gnu.org>
3098 Update copyright notice and GPL version.
3100 1994-09-15 Richard Stallman <rms@gnu.org>
3103 Update copyright notice and GPL version.
3105 1994-07-12 Richard Stallman <rms@gnu.org>
3107 * src/reduce.c, src/reader.c:
3110 1994-05-05 David J. MacKenzie <djm@gnu.org>
3112 * Makefile.in: entered into RCS
3114 1994-03-26 Richard Stallman <rms@gnu.org>
3116 * src/bison.s1: entered into RCS
3118 1994-03-26 Richard Stallman <rms@gnu.org>
3120 * bison.simple: entered into RCS
3122 1994-03-25 Richard Stallman <rms@gnu.org>
3124 * src/main.c: entered into RCS
3126 1994-03-24 Richard Stallman <rms@gnu.org>
3128 * src/conflicts.c: entered into RCS
3130 1994-01-02 Richard Stallman <rms@gnu.org>
3132 * Makefile.in: *** empty log message ***
3134 1993-11-21 Richard Stallman <rms@gnu.org>
3136 * src/bison.s1: *** empty log message ***
3138 1993-11-21 Richard Stallman <rms@gnu.org>
3140 * doc/bison.texinfo: entered into RCS
3142 * doc/bison.texinfo: *** empty log message ***
3144 1993-11-21 Richard Stallman <rms@gnu.org>
3146 * bison.simple: *** empty log message ***
3148 1993-10-25 David J. MacKenzie <djm@gnu.org>
3150 * doc/bison.texinfo: *** empty log message ***
3152 1993-10-19 Richard Stallman <rms@gnu.org>
3154 * src/bison.s1: *** empty log message ***
3156 1993-10-19 Richard Stallman <rms@gnu.org>
3158 * bison.simple: *** empty log message ***
3160 1993-10-14 Richard Stallman <rms@gnu.org>
3162 * src/bison.s1: *** empty log message ***
3164 1993-10-14 Richard Stallman <rms@gnu.org>
3166 * bison.simple: *** empty log message ***
3168 1993-09-14 David J. MacKenzie <djm@gnu.org>
3170 * doc/bison.texinfo: *** empty log message ***
3172 1993-09-13 Noah Friedman <friedman@gnu.org>
3174 * Makefile.in: *** empty log message ***
3176 1993-09-10 Richard Stallman <rms@gnu.org>
3178 * src/conflicts.c: *** empty log message ***
3180 * src/system.h: entered into RCS
3182 1993-09-10 Richard Stallman <rms@gnu.org>
3184 * doc/bison.1: entered into RCS
3186 1993-09-06 Noah Friedman <friedman@gnu.org>
3188 * src/version.c: entered into RCS
3190 1993-09-06 Noah Friedman <friedman@gnu.org>
3192 * Makefile.in: *** empty log message ***
3194 1993-07-30 David J. MacKenzie <djm@gnu.org>
3196 * Makefile.in: *** empty log message ***
3198 1993-07-24 Richard Stallman <rms@gnu.org>
3200 * src/bison.s1: *** empty log message ***
3202 1993-07-24 Richard Stallman <rms@gnu.org>
3204 * bison.simple: *** empty log message ***
3206 1993-07-08 David J. MacKenzie <djm@gnu.org>
3208 * Makefile.in: *** empty log message ***
3210 1993-07-04 Richard Stallman <rms@gnu.org>
3212 * src/bison.s1: *** empty log message ***
3214 1993-07-04 Richard Stallman <rms@gnu.org>
3216 * bison.simple: *** empty log message ***
3218 1993-06-26 David J. MacKenzie <djm@gnu.org>
3220 * src/getargs.c: entered into RCS
3222 1993-06-26 David J. MacKenzie <djm@gnu.org>
3224 * doc/bison.texinfo: *** empty log message ***
3226 * doc/bison.1: New file.
3228 1993-06-25 Richard Stallman <rms@gnu.org>
3230 * src/getargs.c: New file.
3232 1993-06-16 Richard Stallman <rms@gnu.org>
3234 * src/bison.s1: *** empty log message ***
3236 1993-06-16 Richard Stallman <rms@gnu.org>
3238 * bison.simple: *** empty log message ***
3240 1993-06-03 Richard Stallman <rms@gnu.org>
3242 * src/bison.s1: New file.
3244 1993-06-03 Richard Stallman <rms@gnu.org>
3246 * doc/bison.texinfo: *** empty log message ***
3248 1993-06-03 Richard Stallman <rms@gnu.org>
3250 * bison.simple: New file.
3252 1993-05-19 Richard Stallman <rms@gnu.org>
3254 * doc/bison.texinfo: New file.
3256 1993-05-07 Noah Friedman <friedman@gnu.org>
3258 * Makefile.in: *** empty log message ***
3260 1993-04-28 Noah Friedman <friedman@gnu.org>
3262 * src/reader.c: *** empty log message ***
3264 1993-04-23 Noah Friedman <friedman@gnu.org>
3266 * src/alloc.h: entered into RCS
3268 1993-04-20 David J. MacKenzie <djm@gnu.org>
3270 * src/version.c: *** empty log message ***
3272 * src/files.c, src/allocate.c:
3275 * src/reader.c: *** empty log message ***
3277 * src/lex.c: entered into RCS
3279 * src/conflicts.c: New file.
3281 * src/symtab.c: entered into RCS
3283 * src/alloc.h: New file.
3285 * src/LR0.c: entered into RCS
3287 1993-04-18 Noah Friedman <friedman@gnu.org>
3289 * src/reader.c: New file.
3291 * src/version.c: *** empty log message ***
3293 1993-04-18 Noah Friedman <friedman@gnu.org>
3295 * Makefile.in: *** empty log message ***
3297 1993-04-17 Noah Friedman <friedman@gnu.org>
3299 * Makefile.in: *** empty log message ***
3301 1993-04-15 Richard Stallman <rms@gnu.org>
3303 * src/main.c, src/files.c:
3306 1993-04-15 Noah Friedman <friedman@gnu.org>
3308 * configure.in: entered into RCS
3310 * configure.in: *** empty log message ***
3312 * configure.in: New file.
3314 1993-04-14 Richard Stallman <rms@gnu.org>
3316 * Makefile.in: New file.
3318 1993-04-13 Richard Stallman <rms@gnu.org>
3320 * src/version.c: New file.
3322 1993-03-25 Richard Stallman <rms@gnu.org>
3324 * src/output.c: entered into RCS
3326 1992-09-25 Richard Stallman <rms@gnu.org>
3328 * configure.bat: entered into RCS
3330 1992-06-22 Richard Stallman <rms@gnu.org>
3332 * src/vmsgetargs.c: entered into RCS
3334 1992-06-22 Richard Stallman <rms@gnu.org>
3336 * doc/bison.rnh: entered into RCS
3338 1992-04-20 David J. MacKenzie <djm@gnu.org>
3340 * README: entered into RCS
3342 1992-01-22 Richard Stallman <rms@gnu.org>
3344 * src/machine.h: entered into RCS
3346 1991-12-21 Richard Stallman <rms@gnu.org>
3348 * src/lalr.c, src/closure.c:
3351 1991-12-20 Richard Stallman <rms@gnu.org>
3353 * src/state.h: entered into RCS
3355 1991-12-18 Richard Stallman <rms@gnu.org>
3357 * src/print.c, src/nullable.c, src/derives.c:
3360 1991-11-03 David J. MacKenzie <djm@gnu.org>
3362 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3365 1988-09-09 Richard Stallman <rms@gnu.org>
3367 * src/bison.hairy: entered into RCS
3369 1987-12-16 Richard Stallman <rms@gnu.org>
3371 * REFERENCES: entered into RCS