1 2001-11-04 Akim Demaille <akim@epita.fr>
3 * doc/bison.texinfo (Decl Summary): Split the list into
4 `directives for grammars' and `directives for bison'.
6 Add description of `%name-prefix', `file-prefix', and `output'.
7 Promote `-' over `_' in directive names.
8 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
9 Simplify the description of `--name-prefix'.
10 Promote `-' over `_' in directive names.
11 Promote `--output' over `--output-file'.
12 Fix the description of `--defines'.
13 * tests/output.at: Exercise %file-prefix and %output.
15 2001-11-02 Akim Demaille <akim@epita.fr>
17 * doc/refcard.tex: Update.
19 2001-11-02 Akim Demaille <akim@epita.fr>
21 * src/symtab.h (SUNDEF): New.
22 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
23 stand for `uninitialized', instead of 0.
24 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
25 * src/lex.c (lex): Adjust.
27 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
29 Let yylex return it instead of a plain 0.
30 Reported by Dick Streefland.
32 2001-11-02 Akim Demaille <akim@epita.fr>
34 * tests/regression.at (Mixing %token styles): New test.
36 2001-11-02 Akim Demaille <akim@epita.fr>
38 * src/reader.c (parse_thong_decl): Formatting changes.
39 (token_translations_init): New, extracted from...
43 2001-11-01 Akim Demaille <akim@epita.fr>
45 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
46 Check that `9foo.y' produces correct cpp guards.
47 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
51 2001-11-01 Akim Demaille <akim@epita.fr>
53 * tests/regression.at (Invalid input: 2): New.
54 * src/lex.c (unlexed_token_buffer): New.
55 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
59 2001-11-01 Akim Demaille <akim@epita.fr>
61 * tests/calc.at: Catch up with 1.30.
62 * configure.in: Bump to 1.49a.
63 Adjust to newer Autotest.
65 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
67 * src/conflicts.c: Move global variables rrc_total and src_total ...
68 (print_conflicts): here.
69 * src/output.c (output): Free global variable user_toknums.
70 * src/lex.c (token_obstack): Become static.
72 2001-10-18 Akim Demaille <akim@epita.fr>
74 * tests/atlocal.in (GCC): Add.
75 * tests/calc.at: s/m4_match/m4_bmatch/.
76 s/m4_patsubst/m4_bpatsubst/.
77 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
78 * configure.in: AC_SUBST(GCC).
80 2001-10-14 Marc Autret <autret_m@epita.fr>
82 * src/options.c (create_long_option_table): Fix.
84 2001-10-10 Akim Demaille <akim@epita.fr>
86 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
88 2001-10-04 Akim Demaille <akim@epita.fr>
90 * src/reader.c (parse_union_decl): Push the caracters in
91 union_obstack, not attrs_obstack.
93 2001-10-04 Akim Demaille <akim@epita.fr>
95 Merge in the branch 1.29.
97 * src/reader.c (packsymbols): Use a temporary obstack for
98 `%%tokendef', since output_stack is already used elsewhere.
100 2001-10-02 Akim Demaille <akim@epita.fr>
104 2001-10-02 Akim Demaille <akim@epita.fr>
108 2001-10-02 Akim Demaille <akim@epita.fr>
110 * tests/regression.at (Invalid CPP headers): New.
111 From Alexander Belopolsky.
112 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
114 2001-10-02 Akim Demaille <akim@epita.fr>
116 * tests/regression.at (Invalid input): New.
117 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
120 2001-10-02 Akim Demaille <akim@epita.fr>
122 * tests/calc.at: Now that --debug works, the tests must be adjusted.
124 2001-10-02 Akim Demaille <akim@epita.fr>
126 * src/output.c (output_parser): Assert `skeleton'.
127 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
131 2001-10-01 Marc Autret <autret_m@epita.fr>
133 * src/lex.h: Echo modifications.
134 * src/lex.c (unlex): Parameter is now token_t.
137 2001-10-01 Marc Autret <autret_m@epita.fr>
139 * src/main.c: Include lex.h.
142 2001-09-29 Akim Demaille <akim@epita.fr>
144 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
146 2001-09-28 Akim Demaille <akim@epita.fr>
148 * tests/testsuite.at: Update to newer Autotest.
149 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
151 2001-09-27 Akim Demaille <akim@epita.fr>
153 Position independent wrapper.
155 * tests/bison: Remove.
156 * tests/bison.in: New.
157 * configure.in: Adjust.
159 2001-09-27 Paul Eggert <eggert@twinsun.com>
161 Port quotearg fixes from tar 1.13.24.
163 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
165 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
166 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
168 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
169 * m4/mbrtowc.m4: New file.
170 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
171 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
173 2001-09-27 Akim Demaille <akim@epita.fr>
177 2001-09-27 Akim Demaille <akim@epita.fr>
181 2001-09-25 Akim Demaille <akim@epita.fr>
183 * src/system.h: Include `xalloc.h'.
184 Remove it from the C files.
185 * src/files.c (output_files): Free the obstacks.
186 * src/lex.c (init_lex): Rename as...
189 * src/main.c (main): Use it.
191 2001-09-24 Marc Autret <autret_m@epita.fr>
193 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
194 to output informations in fout (FILE*).
195 (open_graph, close_graph): Likewise.
196 (output_graph, output_edge, output_node): Likewise.
197 * src/vcg.h: Update function prototypes.
198 * src/print_graph.c (print_graph): Open output graph file.
199 (print_actions): Adjust.
200 * src/files.h: Remove extern declaration.
201 * src/files.c: Remove graph_obstack declaration.
202 (open_files): Remove graph_obstack initialization.
203 (output_files): Remove graph_obstack saving.
205 2001-09-24 Marc Autret <autret_m@epita.fr>
207 * src/files.c (compute_output_file_names): Fix.
209 2001-09-24 Marc Autret <autret_m@epita.fr>,
210 Akim Demaille <akim@epita.fr>
212 * src/reader.c (reader): Remove call to free_symtab ().
213 * src/main.c (main): Call it here.
215 * src/conflicts.c (initialize_conflicts): Rename as...
216 (solve_conflicts): this.
217 * src/print.c (print_core, print_actions, print_state)
218 (print_grammar): Dump to a file instead a `output_obstack'.
219 (print_results): Dump `output_obstack', and then proceed with the
221 * src/files.c (compute_output_file_names, close_files): New.
222 (output_files): Adjust.
223 * src/main.c (main): Adjust.
225 2001-09-23 Marc Autret <autret_m@epita.fr>
227 * src/files.c (compute_header_macro): Computes header macro name
228 from spec_defines_file when given.
230 2001-09-23 Marc Autret <autret_m@epita.fr>
232 * src/files.c (output_files): Add default extensions.
234 2001-09-22 Akim Demaille <akim@epita.fr>
236 * src/conflicts.c (finalize_conflicts): Rename as...
237 (free_conflicts): this.
239 2001-09-22 Akim Demaille <akim@epita.fr>
241 * src/gram.c (gram_free): Rename back as...
243 (output_token_translations): Free `token_translations'.
244 * src/symtab.c (free_symtab): Free the tag field.
246 2001-09-22 Akim Demaille <akim@epita.fr>
248 Remove `translations' as it is always set to true.
250 * src/gram.h: Adjust.
251 * src/reader.c (packsymbols, parse_token_decl): Adjust
252 * src/print.c (print_grammar): Adjust.
253 * src/output.c (output_token_translations): Adjust.
254 * src/lex.c (lex): Adjust.
255 * src/gram.c: Be sure the set pointers to NULL.
256 (dummy): Rename as...
259 2001-09-22 Akim Demaille <akim@epita.fr>
261 * configure.in: Invoke AM_LIB_DMALLOC.
262 * src/system.h: Use dmalloc.
263 * src/LR0.c: Be sure to have pointers initialized to NULL.
264 (allocate_itemsets): Allocate kernel_items only if needed.
266 2001-09-22 Akim Demaille <akim@epita.fr>
268 * configure.in: Bump to 1.29b.
269 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
270 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
271 need xmalloc.c in calc.y.
274 2001-09-21 Akim Demaille <akim@epita.fr>
277 * Makefile.maint, config/config.guess, config/config.sub,
278 * config/missing: Update from masters.
279 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
281 * configure.in (ALL_LINGUAS): Add `tr'.
283 2001-09-21 Akim Demaille <akim@epita.fr>
285 * tests/Makefile.am (package.m4): Move to...
286 ($(srcdir)/$(TESTSUITE)): here.
288 2001-09-20 Akim Demaille <akim@epita.fr>
290 * src/complain.c: No longer try to be standalone: use system.h.
291 Don't assume __STDC__ is defined to 1. Just test if it is defined.
292 * src/complain.h: Likewise.
293 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
294 Remove the unused variable `n'.
295 From Albert Chin-A-Young.
297 2001-09-18 Marc Autret <autret_m@epita.fr>
299 * doc/bison.1: Update.
300 * doc/bison.texinfo (Bison Options): Update --defines and --graph
302 (Option Cross Key): Update.
305 2001-09-18 Marc Autret <autret_m@epita.fr>
307 * tests/regression.at: New test (comment in %union).
309 2001-09-18 Marc Autret <autret_m@epita.fr>
311 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
313 Reported by Keith Browne.
315 2001-09-18 Marc Autret <autret_m@epita.fr>
317 * tests/output.at: Add tests for --defines and --graph.
319 2001-09-18 Marc Autret <autret_m@epita.fr>
321 * tests/output.at: Removes tests of %{header,src}_extension features.
323 2001-09-18 Akim Demaille <akim@epita.fr>
325 * tests/Makefile.am (package.m4): New.
326 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
327 (_AT_CHECK_CALC_ERROR): Likewise.
328 Factor the `, ' part of verbose error messages.
330 2001-09-18 Marc Autret <autret_m@epita.fr>
332 * src/getargs.c (longopts): Declare --defines and --graph as options
333 with optional arguments.
334 * src/files.h: Add extern declarations.
335 * src/files.c (spec_graph_file, spec_defines_file): New.
336 (output_files): Update.
337 Remove CPP-outed code.
339 2001-09-18 Marc Autret <autret_m@epita.fr>
341 Turn off %{source,header}_extension feature.
343 * src/files.c (compute_exts_from_gf): Update.
344 (compute_exts_from_src): Update.
345 (output_files): CPP-out useless code.
346 * src/files.h: Remove {header,source}_extension extern declarations.
347 * src/reader.c (parse_dquoted_param): CPP-out.
348 (parse_header_extension_decl): Remove.
349 (parse_source_extension_decl): Remove.
350 (read_declarations): Remove cases tok_{hdrext,srcext}.
351 * src/lex.c (percent_table): Remove {header,source}_extension entries.
352 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
354 2001-09-10 Akim Demaille <akim@epita.fr>
356 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
357 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
358 (AT_CHECK_OUTPUT): this.
359 Merely check ls' exit status, its output is useless.
361 2001-09-10 Akim Demaille <akim@epita.fr>
363 * tests/calc.at: Use m4_match.
364 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
366 2001-09-10 Marc Autret <autret_m@epita.fr>,
367 Akim Demaille <akim@epita.fr>
369 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
371 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
373 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
374 * src/lex.h: Adjust prototype.
375 (token_t): Add `tok_undef'.
376 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
377 (parse_percent_token): Now returns token_t.
378 Add default statement in switch.
379 (lex): Separate `c' as an input variable, from the token_t result
381 (unlexed): Is a token_t.
383 2001-09-10 Akim Demaille <akim@epita.fr>
385 * configure.in: Bump to 1.29a.
387 2001-09-07 Akim Demaille <akim@epita.fr>
391 2001-08-30 Akim Demaille <akim@epita.fr>
393 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
394 * m4/atconfig.m4: Remove.
395 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
397 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
398 m4_if, m4_patsubst, and m4_regexp.
399 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
400 `input' file instead of echo.
402 2001-08-29 Akim Demaille <akim@epita.fr>
406 2001-08-29 Akim Demaille <akim@epita.fr>
410 2001-08-29 Paul Eggert <eggert@twinsun.com>
412 * src/bison.simple (yyparse): Don't take the address of an
413 item before the start of an array, as that doesn't conform to
416 2001-08-29 Robert Anisko <anisko_r@epita.fr>
418 * doc/bison.texinfo (Location Tracking Calc): New node.
420 2001-08-29 Paul Eggert <eggert@twinsun.com>
422 * src/output.c (output): Do not define const, as this now
423 causes more problems than it cures.
425 2001-08-29 Akim Demaille <akim@epita.fr>
427 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
429 Be sure to tag the `detailmenu'.
431 2001-08-29 Akim Demaille <akim@epita.fr>
433 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
434 download in a tmp dir.
436 2001-08-28 Marc Autret <autret_m@epita.fr>
438 * config/depcomp: New file.
440 2001-08-28 Marc Autret <autret_m@epita.fr>
442 * doc/bison.1 (mandoc): Adjust.
443 From Juan Manuel Guerrero.
445 2001-08-28 Marc Autret <autret_m@epita.fr>
447 * src/print_graph.c (print_state): Fix.
449 2001-08-27 Marc Autret <autret_m@epita.fr>
451 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
453 Echo modifications to the functions prototypes.
454 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
456 2001-08-27 Marc Autret <autret_m@epita.fr>
458 * src/vcg.c: Include `xalloc.h'.
459 (add_colorentry): New.
460 (add_classname): New.
462 * src/vcg.h: Add new prototypes.
464 2001-08-27 Akim Demaille <akim@epita.fr>
466 * Makefile.maint: Sync. again with CVS Autoconf.
468 2001-08-27 Akim Demaille <akim@epita.fr>
470 * Makefile.maint: Formatting changes.
471 (po-update, cvs-update, update): New targets.
474 2001-08-27 Akim Demaille <akim@epita.fr>
476 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
477 * Makefile.maint: Sync. with CVS Autoconf.
479 2001-08-27 Marc Autret <autret_m@epita.fr>
481 * src/vcg.h (struct infoname_s): New.
482 (struct colorentry_s): New.
483 (graph_s): New fields {vertical,horizontal}_order in structure.
484 Add `infoname' field.
485 Add `colorentry' field;
486 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
487 (G_HORIZONTAL_ORDER): New.
490 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
491 Add output of `infoname'.
492 Add output of `colorentry'.
494 2001-08-27 Marc Autret <autret_m@epita.fr>
496 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
497 This one shadowed a global parameter.
499 2001-08-24 Marc Autret <autret_m@epita.fr>
501 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
502 instead of `unsigned'.
503 (print_state): Do not call obstack_object_size () in obstack_grow ()
504 to avoid macro variables shadowing.
506 2001-08-23 Marc Autret <autret_m@epita.fr>
508 * src/lex.c (percent_table): Typo: s/naem/name/.
510 Normalize new options declarations.
512 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
514 * tests/suite.at: Exercise %header_extension and %source_extension.
516 2001-08-16 Marc Autret <autret_m@epita.fr>
518 * src/reader.c (parse_dquoted_param): New.
519 (parse_header_extension_decl): Use it.
520 (parse_source_extension_decl): Likewise.
522 2001-08-16 Marc Autret <autret_m@epita.fr>
524 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
525 (get_xxxx_str): Use assert () instead of complain ().
526 Remove return invokations in default cases.
527 (get_decision_str): Modify default behaviour. Remove second argument.
528 Echo modifications on calls.
531 2001-08-16 Marc Autret <autret_m@epita.fr>
533 * src/getargs.c (usage): Update with ``-g, --graph''.
535 2001-08-16 Marc Autret <autret_m@epita.fr>
537 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
538 (Option Cross Key): Likewise.
539 * doc/bison.1: Update.
541 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
543 * src/output.c (output_master_parser): Don't finish action_obstack.
544 (output_parser): Don't care about the muscle action, here.
545 (prepare): Copy the action_obstack in the action muscle.
546 (output): Free action_obstack.
548 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
550 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
551 will contain `%union' declaration.
552 (parse_union_decl): Delete #line directive output.
553 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
554 informations about %union.
555 (parse_union_decl): Copy the union_obstack in the muscle stype.
556 * src/bison.simple: Add new #line directive.
557 Add typdef %%stype YYSTYPE.
559 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
561 * src/bison.simple: Add new `#line' directive.
563 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
565 * src/bison.simple: New `#line' directive.
566 * src/output.c (output_parser): Support new dynamic muscle input_line.
568 2001-09-22 Marc Autret <autret_m@epita.fr>
570 * src/output.c (output_master_parser): New.
571 (output_parser): Be more re-entrant.
573 2001-09-21 Marc Autret <autret_m@epita.fr>
575 * src/reader.c (copy_definition, parse_union_decl): Update and use
577 (copy_action): Likewise.
578 Use obstack_1grow ().
579 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
581 2001-09-21 Marc Autret <autret_m@epita.fr>
583 * src/options.c (option_table): Adjust.
584 * src/lex.c (parse_percent_token): Fix.
586 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
588 * src/options.c (symtab.h): Include it, need by lex.h.
590 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
592 * src/lex.c (parse_percent_token): Change type of variable `tx', which
593 is now an option_table_struct*.
594 (option_strcmp): New function option_strcmp.
595 (parse_percent_token): Call option_strcmp.
596 * src/getargs.c (xalloc.h, options.h): Include it.
597 (getargs): Call create_long_option_table.
598 (getargs): Free longopts at the end of the function.
599 (shortopts): Move in options.c.
600 * src/options.c (create_long_option_table): New function. Convert
601 information from option_table to option structure.
602 * src/reader.c (options.h): Include it.
604 * src/Makefile.am: Adjust.
605 * src/options.c (option_table): Create from longopts and percent_table.
606 * src/getargs.c (longopts): Delete.
607 * src/lex.c (struct percent_table_struct): Delete.
608 (percent_table): Delete.
609 (options.h): Include it.
610 * src/options.c: Create.
611 * src/options.h: Create.
612 Declare enum opt_access_e.
613 Define struct option_table_struct.
615 2001-09-20 Marc Autret <autret_m@epita.fr>
617 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
620 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
622 * src/bison.simple: s/%%filename/%%skeleton.
623 * src/muscle_tab.c (getargs.h): Include it.
624 (muscle_init): Insert new muscle skeleton.
626 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
628 * src/output.c (output_parser): Delete unused variable actions_dumped.
630 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
632 * src/output.c (output): Delete call to reader_output_yylsp.
633 * src/reader.c (reader): Likewise.
634 * src/reader.h: Delete declaration of reader_output_yylsp.
636 2001-09-02 Marc Autret <autret_m@epita.fr>
638 * src/reader.c: Include muscle_tab.h.
639 (parse_union_decl): Update.
640 (parse_macro_decl): Rename parse_muscle_decl.
641 Update to use renamed functions and variable.
642 (read_declarations, copy_action, read_additionnal_code, : Updated
643 with correct variables and functions names.
644 (packsymbols, reader): Likewise.
646 * src/reader.h (muscle_obstack): Extern declaration update.
648 * src/output.c: Include muscle_tab.h
649 In all functions using macro_insert, change by using muscle_insert ().
650 (macro_obstack): Rename muscle_obstack.
651 Echo modifications in the whole file.
652 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
653 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
654 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
656 * src/muscle_tab.h: Update double inclusion macros.
657 (macro_entry_s): Rename muscle_entry_s.
660 * src/muscle_tab.c: Include muscle_tab.h.
661 Rename macro_tabble to muscle_table.
662 (mhash1, mhash2, mcmp): Use muscle_entry.
663 (macro_init): Rename muscle_init. Update.
664 (macro_insert): Rename muscle_insert. Update.
665 (macro_find): Rename muscle_find. Update.
667 * src/main.c: Include muscle_tab.h.
668 (main): Call muscle_init ().
669 * src/Makefile.am (bison_SOURCES): Echo modifications.
671 2001-09-02 Marc Autret <autret_m@epita.fr>
673 Now the files macro_tab.[ch] are named muscle_tab.[ch].
675 * src/muscle_tab.c, src/muscle_tab.h: Add files.
677 2001-09-02 Marc Autret <autret_m@epita.fr>
679 * src/macrotab.c, src/macrotab.h: Remove.
681 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
683 * src/reader.c (copy_guard): Use muscle to specify the `#line'
686 2001-09-01 Marc Autret <autret_m@epita.fr>
688 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
689 to an explicit value to activate the feature. We do it here.
691 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
693 * src/output.c (prepare): Delete the `filename' muscule insertion.
694 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
695 (parse_union_decl): Likewise.
696 * src/macrotab.c (macro_init): Initialize filename by infile.
698 2001-08-31 Marc Autret <autret_m@epita.fr>
700 * src/bison.simple (YYLSP_NEEDED): New definition.
701 * src/output.c (prepare): Add macro insertion of `locations_flag'
703 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
705 * src/output.c (prepare): Delete insertion of previous muscles,
706 and insert the `prefix' muscles.
707 * src/macrotab.c (macro_init): Likewise.
708 (macro_init): Initialization prefix directive by `yy'.
709 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
710 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
711 yylval, yydebug, yyerror, yynerrs and yyparse.
712 New directive `#define' to substitute yydebug, ... with option
715 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
717 * src/main.c (main): Standardize.
718 * src/output.c (output_table_data, output_parser): Likewise.
719 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
721 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
723 * src/reader.c (read_additionnal_code): Rename %%user_code to
725 * src/output.c (output): Rename %%declarations to %%prologue.
726 * src/bison.simple: Echo modifications.
728 2001-08-31 Marc Autret <autret_m@epita.fr>
730 * src/reader.c (readgram): CleanUp.
731 (output_token_defines): Likewise.
732 (packsymbols): Likewise.
734 * src/output.c (output): CPP-out useless code.
736 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
738 * src/reader.c (reader): Delete obsolete call to function
739 output_trailers and output_headers.
740 * src/output.h: Remove obsolete functions prototypes of output_headers
743 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
745 * src/main.c: Include macrotab.h.
746 * src/macrotab.h (macro_entry_s): Constify fields.
747 Adjust functions prototypes.
748 * src/macrotab.c (macro_insert): Constify key and value.
749 (macro_find): Constify key.
750 (macro_insert): Include 'xalloc.h'
751 (macro_insert): Use XMALLOC.
752 (macro_find): Constify return value.
753 * src/output.c (output_table_data): Rename table to table_data.
754 (output_parser): Constify macro_key, macro_value.
756 2001-08-30 Marc Autret <autret_m@epita.fr>
758 * src/reader.c (parse_skel_decl): New.
759 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
760 * src/lex.h (token_t): New token `tok_skel'.
761 * src/lex.c (percent_table): Add skeleton option entry.
764 2001-08-29 Marc Autret <autret_m@epita.fr>
766 * src/bison.simple: Add %%user_code directive at the end.
767 * src/reader.c (read_additionnal_code): New.
769 * src/output.c (output_program): Remove.
772 2001-08-28 Marc Autret <autret_m@epita.fr>
774 * src/output.c (output_actions): Clean up.
775 (output_gram): CPP-out useless code.
776 * src/reader.c (reader): Clean up, CPP-out useless code.
778 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
780 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
782 * src/bison.simple: Add `%%definitions'.
784 2001-08-28 Marc Autret <autret_m@epita.fr>
786 * config/depcomp: New file.
788 2001-08-27 Paul Eggert <eggert@twinsun.com>
790 * src/bison.simple (yyparse): Don't take the address of an
791 item before the start of an array, as that doesn't conform to
794 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
796 * src/output.c (output): Remove the initialization of the macro
797 obstack. It was done too late here.
799 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
801 (reader): Initialize the macro obstack here, since we need it to grow
802 '%define' directives.
804 * src/reader.h: Declare the macro obstack as extern.
806 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
808 * src/output.c (output_parser): Fix. Store single '%' characters in
809 the output obstack instead of throwing them away.
811 2001-08-27 Akim Demaille <akim@epita.fr>
813 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
815 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
817 * lib/Makefile.am: Adjust.
819 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
821 * src/bison.simple: Update and add '%%' directives.
823 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
825 * src/reader.c (reader): Remove calls to 'output_headers' and
826 'output_trailers'. Remove some C output.
827 (readgram): Disable a piece of code that was writing a default
828 definition for 'YYSTYPE'.
829 (reader_output_yylsp): Remove.
830 (packsymbols): Output token defintions to a macro.
831 (copy_definition): Disable C output.
833 * src/reader.c (parse_macro_decl): New function used to parse macro
835 (copy_string2): Put the body of copy_string into this new function.
836 Add a parameter to let the caller choose whether he wants to copy the
837 string delimiters or not.
838 (copy_string): Be a simple call to copy_string2 with the last argument
840 (read_declarations): Add case for macro definition.
841 (copy_identifier): New.
842 (parse_macro_decl): Read macro identifiers using copy_identifier
845 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
847 * src/output.c (prepare): Add prefixed names.
848 (output_parser): Output semantic actions.
849 (output_parser): Fix bug on '%%line' directives.
851 * src/output.c (output_headers): Remove. The C code printed by this
852 function should now be in the skeletons.
853 (output_trailers): Remove.
854 (output): Disable call to 'reader_output_yylsp'.
855 (output_rule_data): Do not output tables to the table obstack.
857 * src/output.c: Remove some C dedicated output.
858 Improve the use of macro and output obstacks.
859 (output_defines): Remove.
861 * src/output.c (output_token_translations): Associate 'translate'
862 table with a macro. No output to the table obstack.
863 (output_gram): Same for 'rhs' and 'prhs'.
864 (output_stos): Same for 'stos'.
865 (output_rule_data): Same for 'r1' and 'r2'.
866 (token_actions): Same for 'defact'.
867 (goto_actions): Same for 'defgoto'.
868 (output_base): Same for 'pact' and 'pgoto'.
869 (output_table): Same for 'table'.
870 (output_check): Same for 'check'.
872 * src/output.c (output_table_data): New function.
873 (output_short_table): Remove.
874 (output_short_or_char_table): Remove.
876 * src/output.c (output_parser): Replace most of the skeleton copy code
877 with something new. Skeletons are now processed character by character
878 rather than line by line, and Bison looks for '%%' macros. This is the
879 first step in making Bison's output process (a lot) more flexible.
880 (output_parser): Use the macro table.
882 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
884 * src/main.c (main): Initialize the macro table.
886 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
888 * src/lex.c (percent_table): Add tok_define.
889 * src/lex.h: Add tok_define.
891 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
893 * src/macrotab.c: New file.
894 * src/macrotab.h: New file.
895 * src/Makefile.am: Update.
897 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
899 * lib/hash.c: New file.
900 * lib/hash.h: New file.
901 * lib/Makefile.am: Update.
903 2001-08-15 Akim Demaille <akim@epita.fr>
907 2001-08-15 Marc Autret <autret_m@epita.fr>
909 * src/reader.c (readgram): Indent output macro YYSTYPE.
910 (packsymbols): Likewise.
911 (output_token_defines): Likewise.
912 * src/files.c: Standardize.
913 (compute_header_macro): New.
914 (defines_obstack_save): New. Use compute_header_macro.
915 (output_files): Update. Use defines_obstack_save.
917 2001-08-15 Akim Demaille <akim@epita.fr>
919 * doc/bison.texinfo (Table of Symbols): Document
922 2001-08-15 Akim Demaille <akim@epita.fr>
924 * missing: Update from CVS Automake.
925 * config/config.guess, config/config.sub, config/texinfo.tex:
928 2001-08-15 Akim Demaille <akim@epita.fr>
930 * Makefile.maint: Sync with CVS Autoconf.
932 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
934 * doc/bison.texinfo: Include GNU Free Documentation License from
936 * doc/fdl.texi: Add to package.
938 2001-08-14 Marc Autret <autret_m@epita.fr>
940 Turn on %{source,header}_extension features.
942 * src/lex.c (percent_table): Un-CPP out header_extension and
944 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
945 (compute_exts_from_src): Remove conditions. It restores priorities
948 2001-08-14 Marc Autret <autret_m@epita.fr>
950 * src/files.c (compute_base_names): Add extensions computing when
951 `--file-prefix' used.
952 Standardize function calls.
954 2001-08-13 Marc Autret <autret_m@epita.fr>
956 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
957 defining it (defined but null disables alloca).
959 2001-08-13 Marc Autret <autret_m@epita.fr>
961 * src/bison.simple (_yy_memcpy): CPP reformat.
963 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
965 * tests/atconfig.in (CPPFLAGS): Fix.
967 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
969 * doc/bison.texinfo: Include GNU General Public License from
971 * doc/gpl.texi: Add to package.
973 2001-08-10 Marc Autret <autret_m@epita.fr>
975 * src/print_graph.h: Fix.
976 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
978 2001-08-10 Akim Demaille <akim@epita.fr>
980 * src/system.h: Provide default declarations for stpcpy, strndup,
983 2001-08-10 Robert Anisko <anisko_r@epita.fr>
985 * doc/bison.texinfo (Locations): Update @$ stuff.
987 2001-08-09 Robert Anisko <anisko_r@epita.fr>
989 * src/bison.simple (YYLLOC_DEFAULT): Update.
992 2001-08-08 Marc Autret <autret_m@epita.fr>
994 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
995 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
996 Reported by Fabrice Bauzac.
998 2001-08-08 Marc Autret <autret_m@epita.fr>
1000 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1001 * src/vcg.c (output_node): Fix.
1002 * src/vcg.h: Cleanup.
1003 * src/print_graph.c: Add comments.
1004 (node_output_size): New global variable. Simplify the formatting of
1005 the VCG graph output.
1006 (print_actions): Unused code is now used. It notifies the final state
1007 and no action states in the VCG graph. It also give the reduce actions.
1008 The `shift and goto' edges are red and the `go to state' edges are
1010 Get the current node name and node_obstack by argument.
1011 (node_obstack): New variable.
1012 (print_state): Manage node_obstack.
1013 (print_core): Use node_obstack given by argument.
1014 A node is not only computed here but in print_actions also.
1015 (print_graph): CPP out useless code instead of commenting it.
1017 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1019 * tests/atconfig.in (CPPFLAGS): Fix.
1021 2001-08-07 Akim Demaille <akim@epita.fr>
1023 * src/print_graph.c (quote): New.
1024 (print_core): Use it.
1026 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1028 * src/vcg.c (complain.h): Include it.
1029 Unepitaize `return' invocations.
1030 [NDEBUG] (main): Remove.
1031 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1032 * src/files.c (open_files): Initialize graph_obstack.
1033 * src/print_graph.c (print_actions): CPP out useless code.
1034 (print_core): Don't output the last `\n' in labels.
1036 * src/files.c (output_files): Output the VCG file.
1037 * src/main.c (main): Invoke print_graph ();
1039 2001-08-06 Marc Autret <autret_m@epita.fr>
1041 Automaton VCG graph output.
1042 Using option ``-g'' or long option ``--graph'', you can generate
1043 a gram_filename.vcg file containing a VCG description of the LALR (1)
1044 automaton of your grammar.
1046 * src/main.c: Call to print_graph() function.
1047 * src/getargs.h: Update.
1048 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1049 (graph_flag): New flag.
1051 (getargs): Add case `g'.
1052 * src/files.c (graph_obstack): New obstack struct.
1053 (open_files): Initialize new obstack.
1054 (output_files): Saves graph_obstack if required.
1055 * src/files.h (graph_obstack): New extern declaration.
1056 * src/Makefile.am: Add new source files.
1058 2001-08-06 Marc Autret <autret_m@epita.fr>
1060 * src/print_graph.c, src/print_graph.h (graph): New.
1061 * src/vcg.h: New file.
1062 * src/vcg.c: New file, VCG graph handling.
1064 2001-08-06 Marc Autret <autret_m@epita.fr>
1066 Add of %source_extension and %header_extension which specify
1067 the source or/and the header output file extension.
1069 * src/files.c (compute_base_names): Remove initialisation of
1070 src_extension and header_extension.
1071 (compute_exts_from_gf): Update.
1072 (compute_exts_from_src): Update.
1073 (output_files): Update.
1074 * src/reader.c (parse_header_extension_decl): New.
1075 (parse_source_extension_decl): New.
1076 (read_declarations): New case statements for the new tokens.
1077 * src/lex.c (percent_table): Add entries for %source_extension
1078 and %header_extension.
1079 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1081 2001-08-06 Marc Autret <autret_m@epita.fr>
1083 * configure.in: Bump to 1.28c.
1084 * doc/bison.texinfo: Texinfo thingies.
1086 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1088 * tests/atconfig.in (CPPFLAGS): Add.
1089 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1091 2001-08-03 Akim Demaille <akim@epita.fr>
1095 2001-08-03 Akim Demaille <akim@epita.fr>
1097 * tests/Makefile.am (check-local): Ship testsuite.
1098 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1101 2001-08-03 Akim Demaille <akim@epita.fr>
1103 * configure.in: Try using -Wformat when compiling.
1105 2001-08-03 Akim Demaille <akim@epita.fr>
1107 * configure.in: Bump to 1.28b.
1109 2001-08-03 Akim Demaille <akim@epita.fr>
1111 * src/complain.c: Adjust strerror_r portability issues.
1113 2001-08-03 Akim Demaille <akim@epita.fr>
1117 2001-08-03 Akim Demaille <akim@epita.fr>
1119 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1120 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1121 * src/getargs.c: Include complain.h.
1122 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1123 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1125 2001-08-03 Akim Demaille <akim@epita.fr>
1127 * src/reader.c (readgram): Display hidden chars in error messages.
1129 2001-08-03 Akim Demaille <akim@epita.fr>
1131 Update to gettext 0.10.39.
1133 2001-08-03 Akim Demaille <akim@epita.fr>
1135 * lib/strspn.c: New.
1137 2001-08-01 Marc Autret <autret_m@epita.fr>
1139 * doc/bison.texinfo: Update.
1140 * doc/bison.1 (mandoc): Update.
1141 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1142 * src/files.c: Support output files extensions computing.
1143 (src_extension): New static variable.
1144 (header_extension): New static variable.
1146 (get_extension_index): New function, gets the index of an extension
1147 filename in a string.
1148 (compute_exts_from_gf): New function, computes extensions from the
1149 grammar file extension.
1150 (compute_exts_from_src): New functions, computes extensions from the
1151 C source file extension, file given by ``-o'' option.
1152 (compute_base_names): Update.
1153 (output_files): Update.
1155 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1157 * doc/bison.texi: Document @$.
1158 (Locations): New section.
1160 2001-07-18 Akim Demaille <akim@epita.fr>
1162 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1163 * config/prev-version.txt, config/move-if-change: New.
1164 * Makefile.am: Adjust.
1166 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1168 * src/bison.simple (yyparse): Suppress warning `comparaison
1169 between signed and unsigned'.
1171 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1173 * src/getargs.h (raw_flag): Remove.
1174 * src/getargs.c: Die on `-r'/`--raw'.
1175 * src/lex.c (parse_percent_token): Die on `%raw'.
1176 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1177 * tests/calc.at: Suppress test with option `--raw'.
1179 2001-07-14 Akim Demaille <akim@epita.fr>
1182 * configure.in: Require Autoconf 2.50.
1183 Update to gettext 0.10.38.
1185 2001-03-16 Akim Demaille <akim@epita.fr>
1187 * doc/bison.texinfo: ANSIfy the examples.
1189 2001-03-16 Akim Demaille <akim@epita.fr>
1191 * getargs.c (skeleton): New variable.
1192 (longopts): --skeleton is a new option.
1193 (shortopts, getargs): -S is a new option.
1194 * getargs.h: Declare skeleton.
1195 * output.c (output_parser): Use it.
1197 2001-03-16 Akim Demaille <akim@epita.fr>
1199 * m4/strerror_r.m4: New.
1200 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1201 * lib/error.h, lib/error.c: Update.
1203 2001-03-16 Akim Demaille <akim@epita.fr>
1205 * src/getargs.c (longopts): Clean up.
1207 2001-02-21 Akim Demaille <akim@epita.fr>
1209 * src/reader.c (gensym): `gensym_count' is your own.
1210 Use a static buf to create the symbol name, as token_buffer is no
1213 2001-02-08 Akim Demaille <akim@epita.fr>
1215 * src/conflicts.c (conflict_report): Be sure not to append to res
1216 between two calls, which could happen if both first sprintf were
1217 skipped, but not the first cp += strlen.
1219 2001-02-08 Akim Demaille <akim@epita.fr>
1221 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1222 New, from fileutils 4.0.37.
1223 * configure.in: Require Autoconf 2.49c. I took some time before
1224 making this decision. This is the only way out for portability
1225 issues in Bison, it would mean way too much duplicate effort to
1226 import in Bison features implemented in 2.49c since 2.13.
1227 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1229 2001-02-02 Akim Demaille <akim@epita.fr>
1231 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1232 * lib/xalloc.h, lib/xmalloc.c: Update.
1234 2001-01-19 Akim Demaille <akim@epita.fr>
1236 Get rid of the ad hoc handling of token_buffer in the scanner: use
1239 * src/lex.c (token_obstack): New.
1240 (init_lex): Initialize it. No longer call...
1241 (grow_token_buffer): this. Remove it.
1242 Adjust all the places which used it to use the obstack.
1244 2001-01-19 Akim Demaille <akim@epita.fr>
1246 * src/lex.h: Rename all the tokens:
1247 s/\bENDFILE\b/tok_eof/g;
1248 s/\bIDENTIFIER\b/tok_identifier/g;
1250 Let them be enums, not #define, to ease debugging.
1251 Adjust all the code.
1253 2001-01-18 Akim Demaille <akim@epita.fr>
1255 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1256 * src/lex.c (maxtoken, grow_token_buffer): Static.
1258 2001-01-18 Akim Demaille <akim@epita.fr>
1260 Since we now use obstacks, more % directives can be enabled.
1262 * src/lex.c (percent_table): Also accept `%yacc',
1263 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1265 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1266 instead of returning a token.
1267 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1268 * src/reader.c (read_declarations): Adjust.
1269 * src/files.c (open_files): Don't call `compute_base_names', don't
1270 compute `attrsfile' since they depend upon data which might be
1271 *in* the input file now.
1272 (output_files): Do it here.
1273 * src/output.c (output_headers): Document the fact that this patch
1274 introduces a guaranteed SEGV for semantic parsers.
1275 * doc/bison.texinfo: Document them.
1276 * tests/suite.at: Exercise these %options.
1278 2000-12-20 Akim Demaille <akim@epita.fr>
1280 Also handle the output file (--verbose) with obstacks.
1282 * files.c (foutput): Remove.
1283 (output_obstack): New.
1284 Adjust all dependencies.
1285 * src/conflicts.c: Return a string.
1286 * src/system.h (obstack_grow_string): Rename as...
1287 (obstack_sgrow): this. Be ready to work with non literals.
1288 (obstack_fgrow4): New.
1290 2000-12-20 Akim Demaille <akim@epita.fr>
1292 * src/files.c (open_files): Fix the computation of short_base_name
1293 in the case of `-o foo.tab.c'.
1295 2000-12-20 Akim Demaille <akim@epita.fr>
1297 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1298 (copy_dollar): Now that everything uses obstacks, get rid of the
1301 2000-12-20 Akim Demaille <akim@epita.fr>
1303 * src/files.c (open_files): Actually the `.output' file is based
1304 on the short_base_name, not base_name.
1305 * tests/suite.at (Checking output file names): Adjust.
1307 2000-12-20 Akim Demaille <akim@epita.fr>
1309 * src/bison.s1: Remove, we now use directly...
1310 * src/bison.simple: this.
1311 * src/Makefile.am: Use pkgdata instead of data.
1313 2000-12-20 Akim Demaille <akim@epita.fr>
1315 * src/files.c (guard_obstack): New.
1316 (open_files): Initialize it.
1317 (output_files): Dump it...
1318 * src/files.h: Export it.
1319 * src/reader.c (copy_guard): Use it.
1321 2000-12-19 Akim Demaille <akim@epita.fr>
1323 * src/files.c (outfile, defsfile, actfile): Removed as global
1325 (open_files): Don't compute them.
1326 (output_files): Adjust.
1327 (base_name, short_base_name): Be global.
1328 Adjust dependencies.
1330 2000-12-19 Akim Demaille <akim@epita.fr>
1332 * src/files.c (strsuffix): New.
1333 (stringappend): Be just like strcat but allocate.
1334 (base_names): Eve out from open_files.
1335 Try to simplify the rather hairy computation of base_name and
1337 (open_files): Use it.
1338 * tests/suite.at (Checking output file names): New test.
1340 2000-12-19 Akim Demaille <akim@epita.fr>
1342 * src/system.h (obstack_grow_literal_string): Rename as...
1343 (obstack_grow_string): this.
1344 * src/output.c (output_parser): Recognize `%% actions' instead of
1346 * src/bison.s1: s/$/%% actions/.
1347 * src/bison.hairy: Likewise.
1349 2000-12-19 Akim Demaille <akim@epita.fr>
1351 * src/output.c (output_parser): Compute the `#line' lines when
1353 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1354 Suggested by Hans Aberg.
1356 2000-12-19 Akim Demaille <akim@epita.fr>
1358 Let the handling of the skeleton files be local to the procedures
1361 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1363 (fparser, open_extra_files): Remove.
1364 (open_files, output_files): Don't take care of fparser.
1365 * src/files.h: Adjust.
1366 * src/output.c (output_parser): Open and close the file to the
1368 * src/reader.c (read_declarations): When %semantic_parser, open
1371 2000-12-19 Akim Demaille <akim@epita.fr>
1373 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1374 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1376 2000-12-19 Akim Demaille <akim@epita.fr>
1378 * src/files.c (open_files): Yipee! We no longer need all the code
1379 looking for `/tmp' since we have no tmp file.
1381 2000-12-19 Akim Demaille <akim@epita.fr>
1383 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1385 * src/files.c (open_files): Less dependency on MSDOS etc.
1387 2000-12-14 Akim Demaille <akim@epita.fr>
1389 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1390 Provide a default definition.
1391 Use it when executing the default @ action.
1392 * src/reader.c (reader_output_yylsp): No longer include
1393 `timestamp' and `text' in the default YYLTYPE.
1395 2000-12-12 Akim Demaille <akim@epita.fr>
1397 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1398 (copy_guard): Quote the file names.
1399 Reported by Laurent Mascherpa.
1401 2000-12-12 Akim Demaille <akim@epita.fr>
1403 * src/output.c (output_headers, output_program, output): Be sure
1404 to escape special characters when outputting filenames.
1405 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1406 (output_headers): Don't depend on them, Use ACTSTR.
1408 2000-11-17 Akim Demaille <akim@epita.fr>
1410 * lib/obstack.h: Formatting changes.
1411 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1412 prevents type checking.
1413 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1414 cast the value to (void *): assigning a `foo *' to a `void *'
1416 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1417 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1420 2000-11-17 Akim Demaille <akim@epita.fr>
1422 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1424 (suite.m4, regression.m4, calc.m4): these.
1425 * tests/atgeneral.m4: Update from CVS Autoconf.
1427 2000-11-17 Akim Demaille <akim@epita.fr>
1429 * tests/regression.m4 (%union and --defines): New test,
1430 demonstrating a current bug in the obstack implementation.
1432 2000-11-17 Akim Demaille <akim@epita.fr>
1434 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1436 Use them to declare the variables which are global or local to
1439 2000-11-17 Akim Demaille <akim@epita.fr>
1441 * acconfig.h: Remove, no longer used.
1443 2000-11-07 Akim Demaille <akim@epita.fr>
1445 * src: s/Copyright (C)/Copyright/g.
1447 2000-11-07 Akim Demaille <akim@epita.fr>
1449 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1451 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1453 2000-11-07 Akim Demaille <akim@epita.fr>
1455 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1456 Merge in a single CPP if/else.
1458 2000-11-07 Akim Demaille <akim@epita.fr>
1460 * src/output.c (output): Remove useless variables.
1461 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1462 argument `data' for consistency with the prototypes.
1464 (obstack_copy, obstack_copy0): Rename the second argument as
1465 `address' for consistency. Qualify it `const'.
1466 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1467 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1468 `const' their input argument (`data' or `address').
1469 Adjust the corresponding macros to include `const' in casts.
1471 2000-11-03 Akim Demaille <akim@epita.fr>
1473 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1474 s/PFILE1/BISON_HAIRY/.
1475 Adjust dependencies.
1477 2000-11-03 Akim Demaille <akim@epita.fr>
1479 For some reason, this was not applied.
1481 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1482 `unlink': it's no longer used.
1484 2000-11-03 Akim Demaille <akim@epita.fr>
1486 * src/files.c (skeleton_find): New function, eved out of...
1487 (open_files, open_extra_files): here.
1489 2000-11-03 Akim Demaille <akim@epita.fr>
1493 * src/files.c (obstack_save): New function.
1494 (done): Rename as...
1495 (output_files): this.
1497 * src/main.c (main): Don't use `atexit' to register `done', since
1498 it no longer has to remove tmp files, just call `output_files'
1499 when there are no errors.
1501 2000-11-02 Akim Demaille <akim@epita.fr>
1503 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1504 `unlink': it's no longer used.
1505 * src/files.h: Formatting changes.
1507 2000-11-02 Akim Demaille <akim@epita.fr>
1509 Remove the last uses of mktemp and unlink/delete.
1511 * src/files.c (fdefines, ftable): Removed.
1512 (defines_ostack, table_obstack): New.
1513 Adjust dependencies of the former into uses of the latter.
1514 * src/output.c (output_short_or_char_table, output_short_table):
1515 Convert to using obstacks.
1516 * src/reader.c (copy_comment2): Accept one FILE * and two
1518 (output_token_defines, reader_output_yylsp): Use obstacks.
1519 * src/system.h (obstack_fgrow3): New.
1521 2000-11-01 Akim Demaille <akim@epita.fr>
1523 Change each use of `fattrs' into a use of `attrs_obstack'.
1525 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1526 * src/files.c (fattrs): Remove.
1527 (attrs_obstack): New.
1528 Adjust all dependencies.
1529 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1531 2000-11-01 Akim Demaille <akim@epita.fr>
1534 Change each use of `faction' into a use of `action_obstack'.
1536 * lib/obstack.h, lib/obstack.c: New files.
1537 * src/files.c (faction): Remove.
1538 (action_obstack): New.
1539 Adjust all dependencies.
1541 2000-10-20 Akim Demaille <akim@epita.fr>
1543 * lib/quote.h (PARAMS): New macro. Use it.
1545 2000-10-16 Akim Demaille <akim@epita.fr>
1547 * src/output.c (output_short_or_char_table): New function.
1548 (output_short_table, output_token_translations): Use it.
1549 (goto_actions): Use output_short_table.
1551 2000-10-16 Akim Demaille <akim@epita.fr>
1553 * src/symtab.c (bucket_new): New function.
1556 * src/output.c (output_short_table): New argument to display the
1557 comment associated with the table.
1558 Adjust dependencies.
1559 (output_gram): Use it.
1560 (output_rule_data): Nicer output layout for YYTNAME.
1562 2000-10-16 Akim Demaille <akim@epita.fr>
1564 * src/lex.c (read_typename): New function.
1566 * src/reader.c (copy_dollar): Likewise.
1568 2000-10-16 Akim Demaille <akim@epita.fr>
1570 * src/reader.c (copy_comment2): Expect the input stream to be on
1571 the `/' which is suspected to open a comment, instead of being
1572 called after `//' or `/*' was read.
1573 (copy_comment, copy_definition, parse_union_decl, copy_action)
1574 (copy_guard): Adjust.
1576 2000-10-16 Akim Demaille <akim@epita.fr>
1578 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1579 `read_signed_integer'.
1581 2000-10-16 Akim Demaille <akim@epita.fr>
1583 * src/reader.c (copy_dollar): New function.
1584 (copy_guard, copy_action): Use it.
1586 2000-10-16 Akim Demaille <akim@epita.fr>
1588 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1589 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1590 New files, from Fileutils 4.0.27.
1591 * src/main.c (printable_version): Remove.
1592 * src/lex.c, src/reader.c: Use `quote'.
1594 2000-10-04 Akim Demaille <akim@epita.fr>
1596 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1598 2000-10-04 Akim Demaille <akim@epita.fr>
1600 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1602 2000-10-04 Akim Demaille <akim@epita.fr>
1604 When a literal string is used to define two different tokens,
1605 `bison -v' segfaults.
1606 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1608 * tests/regression.m4: New file.
1609 Include the core of the sample provided by Piotr Gackiewicz.
1610 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1613 2000-10-04 Akim Demaille <akim@epita.fr>
1615 * src/reader.c (parse_expect_decl): Keep `count' within the size
1619 2000-10-02 Paul Eggert <eggert@twinsun.com>
1621 * bison.s1 (yyparse): Assign the default value
1622 unconditionally, to avoid a GCC warning and make the parser a
1625 2000-10-02 Akim Demaille <akim@epita.fr>
1627 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1630 2000-10-02 Akim Demaille <akim@epita.fr>
1632 * src/derives.c, src/print.c, src/reduce.c: To ease the
1633 translation, move some `\n' out of the translated strings.
1635 2000-10-02 Akim Demaille <akim@epita.fr>
1637 The location tracking mechanism is precious for parse error
1638 messages. Nevertheless, it is enabled only when `@n' is used in
1639 the grammar, which is a different issue (you can use it in error
1640 message, but not in the grammar per se). Therefore, there should
1641 be another means to enable it.
1643 * src/getargs.c (getargs): Support `--locations'.
1645 * src/getargs.h (locationsflag): Export it.
1646 * src/lex.c (percent_table): Support `%locations'.
1647 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1648 with `locationsflag'.
1649 * doc/bison.texinfo: Document `--locations' and `%locations'.
1651 * tests/calc.m4: Test it.
1653 For regularity of the names, replace each
1654 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1655 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1656 In addition replace each `flag' with `_flag'.
1658 2000-10-02 Akim Demaille <akim@epita.fr>
1660 Also test parse error messages, including with YYERROR_VERBOSE.
1662 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1664 Use it to check the computations.
1665 Use it to check `nonassoc' is honored.
1666 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1667 `--yyerror-verbose'.
1668 (_AT_CHECK_CALC): Adjust to this option.
1669 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1671 2000-10-02 Akim Demaille <akim@epita.fr>
1673 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1674 the latter demonstrates a flaw in the handling of non debugging
1675 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1676 was used in order to simplify:
1692 unfortunately this leads to a CPP conflict when
1693 `--name-prefix=foo' is used since it produces `#define yydebug
1696 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1697 (YYDPRINTF): New macro.
1699 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1701 Also test `--verbose', `--defines' and `--name-prefix'.
1703 2000-10-02 Akim Demaille <akim@epita.fr>
1705 Improve the readability of the produced parsers.
1707 * src/bison.s1: Formatting changes.
1708 Improve the comment related to the `$' mark.
1709 (yydefault): Don't fall through to `yyresume': `goto' there.
1710 * src/output.c (output_parser): When the `$' is met, skip the end
1712 New variable, `number_of_dollar_signs', to check there's exactly
1713 one `$' in the parser skeleton.
1715 2000-10-02 Akim Demaille <akim@epita.fr>
1717 * lib/xstrdup.c: New file, from the fileutils.
1718 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1719 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1720 instead of strlen + xmalloc + strcpy.
1721 * src/symtab.c (copys): Remove, use xstrdup instead.
1723 2000-10-02 Akim Demaille <akim@epita.fr>
1725 * src/gram.h (associativity): New enum type which replaces the
1726 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1727 `right_assoc', `left_assoc' and `non_assoc'.
1728 Adjust all dependencies.
1729 * src/reader.c: Formatting changes.
1730 (LTYPESTR): Don't define it, use it as a literal in
1731 `reader_output_yylsp'.
1732 * src/symtab.h (symbol_class): New enum type which replaces the
1733 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1734 `sunknown', `stoken and `snterm'.
1736 2000-10-02 Akim Demaille <akim@epita.fr>
1738 * src/getargs.c (fixed_outfiles): Rename as...
1739 (yaccflag): for consistency and accuracy.
1740 Adjust dependencies.
1742 2000-10-02 Akim Demaille <akim@epita.fr>
1744 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1745 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1746 difficult and introduced a lot of core dump. It turns out that
1747 Bison used an implementation of `xmalloc' based on `calloc', and
1748 at various places it does depend upon the initialization to 0. I
1749 have not tried to isolate the pertinent places, and all the former
1750 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1751 someone should address this issue.
1753 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1754 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1756 Adjust dependencies.
1757 * src/warshall.h: New file.
1760 2000-10-02 Akim Demaille <akim@epita.fr>
1762 Various anti-`extern in *.c' changes.
1764 * src/system.h: Include `assert.h'.
1766 2000-10-02 Akim Demaille <akim@epita.fr>
1768 * src/state.h (nstates, final_state, first_state, first_shift)
1769 (first_reduction): Move their exportation from here...
1770 * src/LR0.h: to here.
1771 Adjust dependencies.
1772 * src/getargs.c (statisticsflag): New variable.
1773 Add support for `--statistics'.
1774 Adjust dependencies.
1776 Remove a lot of now useless `extern' statements in most files.
1778 2000-10-02 Akim Demaille <akim@epita.fr>
1780 * src/LR0.h: New file.
1783 2000-10-02 Akim Demaille <akim@epita.fr>
1785 * src/print.h: New file.
1787 * src/print.c: Formatting and ordering changes.
1788 (verbose, terse): Replace with...
1789 (print_results): this new function.
1790 Adjust dependencies.
1792 2000-10-02 Akim Demaille <akim@epita.fr>
1794 * src/conflicts.c (conflict_report): New function.
1795 (conflict_log, verbose_conflict_log): Replace with...
1796 (print_conflicts): this function.
1797 Adjust dependencies.
1798 * src/conflicts.h: New file.
1799 Propagate its inclusion.
1801 2000-10-02 Akim Demaille <akim@epita.fr>
1803 * src/nullable.h: New file.
1804 Propagate its inclusion.
1805 * src/nullable.c: Formatting changes.
1807 2000-10-02 Akim Demaille <akim@epita.fr>
1809 * src/reduce.h: New file.
1810 Propagate its inclusion.
1811 * src/reduce.c: Topological sort and other formatting changes.
1812 (bool, TRUE, FALSE): Move their definition to...
1813 * src/system.h: here.
1815 2000-10-02 Akim Demaille <akim@epita.fr>
1817 * src/files.c: Formatting changes.
1818 (tryopen, tryclose, openfiles): Rename as...
1819 (xfopen, xfclose, open_files): this.
1820 (stringappend): static.
1821 * src/files.h: Complete the list of exported symbols.
1824 2000-10-02 Akim Demaille <akim@epita.fr>
1826 * src/reader.h: New file.
1827 Propagate its use instead of tedious list of `extern' and
1829 * src/reader.c: Formatting changes, topological sort,
1832 2000-10-02 Akim Demaille <akim@epita.fr>
1834 * src/lex.h: Prototype `lex.c' exported functions.
1835 * src/reader.c: Adjust.
1836 * src/lex.c: Formatting changes.
1837 (safegetc): Rename as...
1840 2000-10-02 Akim Demaille <akim@epita.fr>
1842 * src/lalr.h: New file.
1843 Propagate its inclusion instead of prototypes and `extern'.
1844 * src/lalr.c: Formatting changes, topological sorting etc.
1846 2000-10-02 Akim Demaille <akim@epita.fr>
1848 * src/output.c (token_actions): Introduce a temporary array,
1849 YYDEFACT, that makes it possible for this function to use
1852 2000-10-02 Akim Demaille <akim@epita.fr>
1854 `user_toknums' is output as a `short[]' in `output.c', while it is
1855 defined as a `int[]' in `reader.c'. For consistency with the
1856 other output tables, `user_toknums' is now defined as a table of
1859 * src/reader.c (user_toknums): Be a short table instead of an int
1861 Adjust dependencies.
1863 Factor the short table outputs.
1865 * src/output.c (output_short_table): New function.
1866 * src/output.c (output_gram, output_stos, output_rule_data)
1867 (output_base, output_table, output_check): Use it.
1869 2000-10-02 Akim Demaille <akim@epita.fr>
1871 * src/output.c (output): Topological sort of the functions, in
1872 order to get rid of the `static' prototypes.
1873 No longer use `register'.
1874 * src/output.h: New file.
1875 Propagate its inclusion in files explicitly prototyping functions
1878 2000-09-21 Akim Demaille <akim@epita.fr>
1880 * src/atgeneral.m4: Update from Autoconf.
1882 2000-09-21 Akim Demaille <akim@epita.fr>
1884 * src/closure.h: New file.
1885 * src/closure.c: Formatting changes, topological sort over the
1886 functions, use of closure.h.
1887 (initialize_closure, finalize_closure): Rename as...
1888 (new_closure, free_closure): these. Adjust dependencies.
1889 * src/LR0.c: Formatting changes, topological sort, use of
1891 (initialize_states): Rename as...
1893 * src/Makefile.am (noinst_HEADERS): Adjust.
1895 2000-09-20 Akim Demaille <akim@epita.fr>
1897 * src/acconfig.h: Don't protect config.h against multiple
1899 Don't define PARAMS.
1900 * src/system.h: Define PARAMS.
1901 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1902 purpose of config.h. system.h must not try to fix wrong
1903 definitions in config.h.
1905 2000-09-20 Akim Demaille <akim@epita.fr>
1907 * src/derives.h: New file.
1908 * src/main.c, src/derives.h: Use it.
1910 * src/Makefile.am (noinst_HEADERS): Adjust.
1912 2000-09-20 Akim Demaille <akim@epita.fr>
1914 * tests/atgeneral.m4: Update from Autoconf.
1915 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1916 (AT_CHECK_CALC): New macros.
1917 Use these macros to test bison with options `', `--raw',
1918 `--debug', `--yacc', `--yacc --debug'.
1920 2000-09-19 Akim Demaille <akim@epita.fr>
1922 * src/output.c: Formatting changes.
1923 * src/machine.h: Remove, leaving its contents in...
1924 * src/system.h: here.
1926 Adjust all dependencies on stdio.h and machine.h.
1927 * src/getargs.h: New file.
1928 Let all `extern' declarations about getargs.c be replaced with
1929 inclusion of `getargs.h'.
1930 * src/Makefile.am (noinst_HEADERS): Adjust.
1932 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1934 (yyerror): Returns void, not int.
1935 * doc/bison.texinfo: Formatting changes.
1937 2000-09-19 Akim Demaille <akim@epita.fr>
1939 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1942 2000-09-18 Akim Demaille <akim@epita.fr>
1944 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1945 * src/Makefile.am (INCLUDES): Don't.
1946 Be ready to fetch headers in lib/.
1948 2000-09-18 Akim Demaille <akim@epita.fr>
1950 * doc/bison.texinfo: Update the copyright.
1951 ANSIfy and GNUify the examples.
1952 Remove the old menu.
1954 2000-09-18 Akim Demaille <akim@epita.fr>
1956 First set of tests: use the `calc' example from the documentation.
1958 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1959 is defined only when YYDEBUG is.
1960 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1961 * src/files.c (tryopen, tryclose): Formatting changes.
1962 Move to the top and be static.
1963 * src/reader.c (read_signed_integer): Likewise.
1964 * tests/calc.m4: New file.
1965 * Makefile.am, suite.m4: Adjust.
1966 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1968 2000-09-18 Akim Demaille <akim@epita.fr>
1970 Add support for an Autotest test suite for Bison.
1972 * m4/m4.m4, m4/atconfig.m4: New files.
1973 * m4/Makefile.am (EXTRA_DIST): Adjust.
1974 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1976 * src/getargs.c: Display a more standard --version message.
1977 * src/reader.c (reader): Formatting changes.
1978 No longer depend upon VERSION_STRING.
1979 * configure.in: No longer use `dnl'.
1980 Set up the test suite and the new directory `tests/.
1981 (VERSION_STRING): Remove.
1983 2000-04-14 Akim Demaille <akim@epita.fr>
1985 * src/reader.c (copy_comment2): New function, same as former
1986 `copy_comment', but outputs into two FILE *.
1987 (copy_comment): Use it.
1988 (parse_union_decl): Use it.
1989 (get_type, parse_start_decl): Use the same `invalid' message.
1990 (parse_start_decl, parse_union_decl): Use the same `multiple'
1992 (parse_union_decl, copy_guard, copy_action): Use the same
1993 `unmatched' message.
1994 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1996 2000-03-31 Akim Demaille <akim@epita.fr>
1998 * src/files.c (tryopen, tryclose): Move to the top.
2001 2000-03-31 Akim Demaille <akim@epita.fr>
2003 * src/main.c (main): Don't call `done', exit does it.
2005 2000-03-31 Akim Demaille <akim@epita.fr>
2007 * allocate.c: s/return (foo)/return foo/.
2010 * output.c: Likewise.
2011 * reader.c: Likewise.
2012 * symtab.c: Likewise.
2013 * vmsgetargs.c: Likewise.
2015 2000-03-31 Akim Demaille <akim@epita.fr>
2017 Clean up the error reporting functions.
2019 * src/report.c: New file.
2020 * src/report.h: Likewise.
2021 * src/Makefile.am: Adjust.
2022 * m4/error.m4: New file.
2023 * m4/Makefile.am: Adjust.
2024 * configure.in (jm_PREREQ_ERROR): Call it.
2025 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2027 (fatal, fatals): Remove. All callers use complain.c::fatal.
2028 (warn, warni, warns, warnss, warnss): Remove. All callers use
2029 complain.c::complain.
2030 (toomany): Remove, use fatal instead.
2031 * src/files.c (done): No argument, use complain_message_count.
2032 * src/main.c (main): Register `done' to `atexit'.
2034 * src/getargs.c (usage): More `fputs', less `fprintf'.
2036 2000-03-28 Akim Demaille <akim@epita.fr>
2038 * lib/: New directory.
2039 * Makefile.am (SUBDIRS): Adjust.
2040 * configure.in: Adjust.
2041 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2043 * src/alloca.c: Moved to lib/.
2044 * src/getopt.c: Likewise.
2045 * src/getopt1.c: Likewise.
2046 * src/getopt.h: Likewise.
2047 * src/ansi2knr.c: Likewise.
2048 * src/ansi2knr.1: Likewise.
2049 * src/Makefile.am: Adjust.
2050 * lib/Makefile.am: New file.
2052 2000-03-28 Akim Demaille <akim@epita.fr>
2054 * src/getargs.c (usage): Refresh the help message.
2056 2000-03-17 Akim Demaille <akim@epita.fr>
2058 * src/getopt1.c: Updated from textutils 2.0e
2059 * src/getopt.c: Likewise.
2060 * src/getopt.h: Likewise.
2062 2000-03-17 Akim Demaille <akim@epita.fr>
2064 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2065 the file name, not the whole `#line LINE FILE'.
2067 2000-03-17 Akim Demaille <akim@epita.fr>
2069 On syntax errors, report the token on which we choked.
2071 * src/bison.s1 (yyparse): In the label yyerrlab, when
2072 YYERROR_VERBOSE, add yychar in msg.
2074 2000-03-17 Akim Demaille <akim@epita.fr>
2076 * src/reader.c (copy_at): New function.
2077 (copy_guard): Use it.
2078 (copy_action): Use it.
2080 2000-03-17 Akim Demaille <akim@epita.fr>
2082 Be kind to translators, save some useless translations.
2084 * src/main.c (banner): New function.
2085 (fatal_banner): Use it.
2086 (warn_banner): Use it.
2088 2000-03-17 Akim Demaille <akim@epita.fr>
2090 * src/reader.c (copy_definition): Use copy_string and
2091 copy_comment. Removed now unused `match', `ended',
2093 (copy_comment, copy_string): Moved, to be visible from
2096 2000-03-17 Akim Demaille <akim@epita.fr>
2098 * src/reader.c (copy_string): Declare `static inline'. No
2099 problems with inline, since it is checked by configure.
2100 (copy_comment): Likewise.
2102 2000-03-17 Akim Demaille <akim@epita.fr>
2104 * src/reader.c (packsymbols): Formatting changes.
2106 2000-03-17 Akim Demaille <akim@epita.fr>
2108 * src/reader.c (copy_comment): New function, factored out from:
2109 (copy_action): Use it. Removed now unused `match', `ended',
2111 (copy_guard): Likewise.
2113 2000-03-17 Akim Demaille <akim@epita.fr>
2115 * src/reader.c (copy_string): New function, factored out from:
2116 (copy_action): Use it.
2117 (copy_guard): Likewise.
2119 2000-03-17 Akim Demaille <akim@epita.fr>
2121 Change the handling of @s so that they behave exactly like $s.
2122 There is now a pseudo variable @$ (readble and writable), location
2123 of the lhs of the rule (by default ranging from the location of
2124 the first symbol of the rhs, to the location of the last symbol,
2125 or, if the rhs is empty, YYLLOC).
2127 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2129 (yyparse): When providing a default semantic action, provide a
2130 default location action.
2131 (after the $): No longer change `*YYLSP', just stack YYLOC the
2132 same way you stack YYVAL.
2133 * src/reader.c (read_declarations): Use warns.
2134 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2135 (copy_action, case '@'): Likewise.
2136 Use a standard error message, to save useless work from
2139 2000-03-17 Akim Demaille <akim@epita.fr>
2141 * src/bison.s1: Formatting and cosmetics changes.
2142 * src/reader.c: Likewise.
2143 Update the Copyright notice.
2145 2000-03-17 Akim Demaille <akim@epita.fr>
2147 * src/bison.s1 (#line): All set to `#line' only, since the
2148 Makefile now handles them.
2150 2000-03-16 Akim Demaille <akim@epita.fr>
2152 * src/output.c (output_rule_data): Output the documentation of
2154 (Copyright notice): Update.
2157 2000-03-16 Akim Demaille <akim@epita.fr>
2159 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2160 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2161 One `#if YYDEBUG' remains, since it uses variables which are
2162 defined only if `YYDEBUG != 0'.
2164 2000-03-16 Akim Demaille <akim@epita.fr>
2166 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2167 and related variables so that the similarities are highlighted.
2169 2000-03-16 Akim Demaille <akim@epita.fr>
2171 * src/bison.s1: Properly indent CPP directives.
2173 2000-03-16 Akim Demaille <akim@epita.fr>
2175 * src/bison.s1: Properly indent the `alloca' CPP section.
2177 2000-03-16 Akim Demaille <akim@epita.fr>
2179 Do not hard code values of directories in `configure.in'.
2180 Update the `configure' tool chain.
2182 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2184 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2185 (AC_OUTPUT): Add m4/Makefile.
2186 Bump to bison 1.28a, 1.29 has never been released.
2187 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2188 handled via src/Makefile.am.
2189 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2190 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2192 * Makefile.am (SUBDIRS): Add m4.
2193 (ACLOCAL_AM_FLAGS): New variable.
2194 (AUTOMAKE_OPTIONS): Add check-news.
2195 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2196 the proper line number and file name.
2197 (DEFS): Propagate the location of bison library files and of the
2199 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2201 * acinclude.m4: Remove, replaced by the directory m4.
2202 * m4/Makefile.am (EXTRA_DIST): New variable.
2203 * m4/gettext.m4: New file, from the fileutils.
2204 * m4/lcmessage.m4: Likewise
2205 * m4/progtest.m4: Likewise.
2206 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2208 2000-03-10 Akim Demaille <akim@epita.fr>
2211 Formatting changes of various comments.
2212 Respect the GNU coding standards at various places.
2213 Don't use `_()' when no translation is needed.
2215 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2218 OS/2 honors TMPDIR environment variable.
2220 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2222 * doc/bison.texinfo: Tweaked spelling and grammar.
2224 Removed reference to price of printed copy.
2225 Mention BISON_SIMPLE and BISON_HAIRY.
2227 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2229 * configure.in, NEWS:
2230 Bison 1.29 released.
2232 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2234 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2235 Added reference card.
2237 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2239 * po/ru.po: Added Russian translation.
2241 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2243 * configure.in: Added Russian translation.
2245 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2247 * configure.in, NEWS, README:
2248 Released version 1.28.
2250 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2253 Squashed redefinition warning on some systems.
2255 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2256 Have configure build version string instead of relying on ANSI string
2259 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2261 * po/POTFILES.in: Got rid of version.c.
2263 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2265 * acconfig.h, configure.in:
2266 Have configure build version string instead of relying on ANSI string
2269 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2272 Dropped mention of `+' for long-named options.
2274 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2276 * src/files.c: Added <unistd.h> for unlink().
2278 * src/Makefile.am, src/system.h:
2281 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2283 * README: Added a FAQ list.
2285 * configure.in, acconfig.h:
2288 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2290 * doc/FAQ, doc/Makefile.am:
2293 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2295 * src/alloc.h, src/symtab.h, src/version.c:
2296 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2298 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2300 * src/.cvsignore, src/Makefile.am:
2301 Reorganized: sources in `src', documentation in `doc'.
2303 * src/lex.c (literalchar):
2304 fixed the code for escaping double quotes (thanks
2307 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2309 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2310 Adjusted paths to reflect directory reorganization.
2312 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2314 * doc/.cvsignore, doc/Makefile.am:
2315 Reorganized: sources in `src', documentation in `doc'.
2317 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2320 Updated AC_INIT file to reflect directory reorganization.
2322 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2323 Reorganized: sources in `src', documentation in `doc'.
2325 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2328 Don't declare calloc() and realloc() if not necessary.
2330 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2332 * configure.in, acconfig.h, acinclude.m4:
2333 Don't declare calloc() and realloc() if not necessary.
2335 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2337 * po/.cvsignore: Added i18n support.
2339 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2341 * acconfig.h, configure.in, Makefile.am:
2344 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2346 * src/bison.s1: Fixed #line numbers.
2348 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2350 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2351 Added PO files from Translation Project.
2353 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2356 Added support for non-ANSI compilers (ansi2knr).
2358 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2360 * configure.in: Bumped version number to 1.27.
2363 Added `bison.simple' to list of files removed by `make distclean'.
2365 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2367 * src/files.c, src/files.h:
2368 Defined locations of parser files in config.h instead of Makefile.
2370 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2372 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2373 Defined locations of parser files in config.h instead of Makefile.
2375 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2378 Removed inappropriate use of $< macro.
2380 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2382 * po/Makefile.in.in, po/POTFILES.in:
2383 Add `po' directory skeleton.
2385 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2387 * README: Document help-bison list.
2389 * configure.in: Add check for mkstemp().
2391 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2393 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2394 Hush a few compiler warnings.
2397 Add tryclose(), which verifies that fclose was successful.
2398 Hush a couple of compiler warnings.
2400 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2402 * Makefile.am, OChangeLog:
2403 ChangeLog is now automatically generated. Include the old version as
2406 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2408 * 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:
2411 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2413 * doc/bison.texinfo: Fix formatting glitch.
2415 * doc/bison.texinfo: Update FSF address.
2417 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2419 * acconfig.h: Update FSF address.
2421 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2424 Don't define PACKAGE here, since config.h defines it.
2426 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2428 * src/reader.c: Update copyright date.
2431 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2432 favor of output directly to stderr (avoids buffer overruns).
2434 * src/reader.c: Some checks for premature EOF.
2436 * 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:
2437 Use prototypes if the compiler understands them.
2439 * src/files.c: Honor TMPDIR on Unix hosts.
2440 Use prototypes if the compiler understands them.
2443 Fix a couple of buffer overrun bugs.
2444 Use prototypes if the compiler understands them.
2446 * src/system.h: Include unistd.h and ctype.h.
2447 Use #ifdef instead of #if for NLS symbols.
2449 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2451 * doc/bison.texinfo:
2452 Delete comment "consider using @set for edition number, etc..." since
2453 we now are doing so.
2455 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2458 Use prototypes if the compiler understands them.
2460 * NEWS: Document 1.26 highlights.
2462 * Makefile.am: Require Automake 1.3 or later.
2465 Use prototypes if the compiler understands them.
2467 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2470 Use VERSION symbol from automake for version number.
2472 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2474 * acconfig.h, configure.in, version.cin:
2475 Use VERSION symbol from automake for version number.
2477 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2480 Distribute original version of simple parser (bison.s1), not built
2481 version (bison.simple).
2483 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2485 * doc/bison.texinfo: Add info dir entry.
2487 * doc/bison.texinfo:
2488 Let automake put version number into documentation.
2490 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2492 * src/bison.cld, src/build.com, src/vmshlp.mar:
2493 Add non-RCS files from /gd/gnu/bison.
2495 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2498 Document the BISON_HAIRY and BISON_SIMPLE variables.
2500 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2502 * src/version.c: Build version.c automatically.
2505 Fix token numbering (used to start at 258, not 257).
2507 * src/system.h: Include config.h.
2509 * src/getargs.c: Update bug report address.
2511 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2512 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2514 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2517 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2519 * configure.in, version.cin:
2520 Build version.c automatically.
2522 * AUTHORS: Add AUTHORS file.
2524 * README: Update bug report address.
2527 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2529 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2532 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2534 * doc/bison.texinfo: Clean up some formatting.
2536 1998-05-05 Richard Stallman <rms@gnu.org>
2538 * doc/bison.texinfo:
2539 Explain better why to make a pure parser.
2541 1998-01-05 Richard Stallman <rms@gnu.org>
2543 * src/files.c (openfiles):
2544 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2545 find a temporary directory, if possible. Do not unlink files while
2548 1997-08-25 Richard Stallman <rms@gnu.org>
2550 * src/reader.c (stack_offset;):
2551 Change some warni to warns.
2553 * src/lex.c (literalchar): Use warns, not warni.
2555 1997-06-28 Richard Stallman <rms@gnu.org>
2557 * src/bison.s1: Add a Bison version comment.
2559 * src/main.c (fatal, warn, berror):
2562 1997-06-28 Richard Stallman <rms@gnu.org>
2564 * Makefile.in (bison_version): New variable.
2565 (dist): Use that variable.
2566 (bison.s1): Substitute the Bison version into bison.simple.
2568 * bison.simple: Add a Bison version comment.
2570 1997-06-18 Richard Stallman <rms@gnu.org>
2572 * src/main.c (fatal, warn, berror):
2573 Make error messages standard.
2574 (toomany): Improve error message text.
2576 * 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:
2577 new.h renamed to alloc.h.
2579 1997-06-18 Richard Stallman <rms@gnu.org>
2581 * Makefile.in: new.h renamed to alloc.h.
2583 1997-05-24 Richard Stallman <rms@gnu.org>
2585 * src/lex.c (literalchar):
2586 Fix the code for escaping \, " and '.
2588 (lex): Avoid trouble when there are many chars
2589 to discard in a char literal with just several chars in it.
2591 1997-05-17 Richard Stallman <rms@gnu.org>
2594 Use malloc, if using alloca is troublesome.
2595 (YYSTACK_USE_ALLOCA): New flag macro.
2596 Define it for some systems and compilers.
2597 (YYSTACK_ALLOC): New macro.
2598 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2599 If it was malloc'd, free it.
2601 1997-05-17 Richard Stallman <rms@gnu.org>
2604 Use malloc, if using alloca is troublesome.
2605 (YYSTACK_USE_ALLOCA): New flag macro.
2606 Define it for some systems and compilers.
2607 (YYSTACK_ALLOC): New macro.
2608 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2609 If it was malloc'd, free it.
2611 1997-04-23 Richard Stallman <rms@gnu.org>
2614 (alloca) [__hpux]: Always define as __builtin_alloca.
2616 1997-04-23 Richard Stallman <rms@gnu.org>
2619 (alloca) [__hpux]: Always define as __builtin_alloca.
2621 1997-04-22 Richard Stallman <rms@gnu.org>
2624 [__hpux]: Include alloca.h (right for HPUX 10)
2625 instead of declaring alloca (right for HPUX 9).
2627 * src/bison.s1 (__yy_memcpy):
2628 Declare arg `count' as unsigned int.
2629 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2631 1997-04-22 Richard Stallman <rms@gnu.org>
2634 [__hpux]: Include alloca.h (right for HPUX 10)
2635 instead of declaring alloca (right for HPUX 9).
2637 * bison.simple (__yy_memcpy):
2638 Declare arg `count' as unsigned int.
2639 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2641 1997-01-03 Richard Stallman <rms@gnu.org>
2643 * src/allocate.c: [__STDC__ or _MSC_VER]:
2644 Declare calloc and realloc to return void *.
2646 1997-01-02 Richard Stallman <rms@gnu.org>
2649 [_MSC_VER]: Include stdlib.h and process.h.
2650 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2652 * src/main.c (main): Return FAILURE as a value.
2653 (printable_version): Declare arg as int, not char.
2655 1997-01-02 Richard Stallman <rms@gnu.org>
2657 * Makefile.in (dist):
2658 Explicitly check for symlinks, and copy them.
2660 1996-12-19 Richard Stallman <rms@gnu.org>
2663 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2665 1996-12-18 Paul Eggert <eggert@gnu.org>
2667 * src/bison.s1 (yyparse):
2668 If __GNUC__ and YYPARSE_PARAM are both defined,
2669 declare yyparse to have a void * argument.
2671 1996-12-18 Paul Eggert <eggert@gnu.org>
2673 * bison.simple (yyparse):
2674 If __GNUC__ and YYPARSE_PARAM are both defined,
2675 declare yyparse to have a void * argument.
2677 1996-12-17 Richard Stallman <rms@gnu.org>
2679 * src/reduce.c (nbits): Add some casts.
2681 1996-08-12 Richard Stallman <rms@gnu.org>
2683 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2685 1996-08-12 Richard Stallman <rms@gnu.org>
2687 * bison.simple: Test _MSDOS as well as _MSDOS_.
2689 1996-07-31 Richard Stallman <rms@gnu.org>
2692 [__sun && __i386]: Include alloca.h.
2694 1996-07-31 Richard Stallman <rms@gnu.org>
2697 [__sun && __i386]: Include alloca.h.
2699 1996-07-30 Richard Stallman <rms@gnu.org>
2701 * src/bison.s1: Comment change.
2703 * src/bison.s1: Test _MSDOS_, not MSDOS.
2705 1996-07-30 Richard Stallman <rms@gnu.org>
2707 * bison.simple: Comment change.
2709 * bison.simple: Test _MSDOS_, not MSDOS.
2711 1996-06-01 Richard Stallman <rms@gnu.org>
2713 * 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:
2714 Insert `_' macro around many string constants.
2717 Insert `_' macro around many string constants.
2719 (main): Call setlocale, bindtextdomain and textdomain.
2721 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2722 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2723 [ENABLE_NLS]: Include libintl.h.
2724 [ENABLE_NLS] (gettext): Define.
2725 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2726 (N_, PACKAGE, LOCALEDIR): New macros.
2728 1996-06-01 Richard Stallman <rms@gnu.org>
2730 * POTFILES.in: New file.
2732 * Makefile.in (allocate.o):
2733 Define target explicitly.
2735 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2736 (LDFLAGS): Set to @LDFLAGS@.
2737 (configure): Run autoconf only if preceding `cd' succeeds.
2738 (bison.s1): Redirect output to temporary file then move the
2739 temporary to the target, rather than redirecting directly to bison.s1.
2740 (clean): Remove config.status and config.log.
2741 (distclean): Don't remove config.status here.
2743 1996-05-12 Richard Stallman <rms@gnu.org>
2746 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2748 1996-05-12 Richard Stallman <rms@gnu.org>
2751 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2753 1996-05-11 Richard Stallman <rms@gnu.org>
2755 * src/bison.s1 (__yy_memcpy):
2756 Really reorder the args, as was supposedly done on Feb 14 1995.
2757 (yyparse): Calls changed accordingly.
2759 1996-05-11 Richard Stallman <rms@gnu.org>
2761 * Makefile.in (dist): Don't use $(srcdir).
2763 * bison.simple (__yy_memcpy):
2764 Really reorder the args, as was supposedly done on Feb 14 1995.
2765 (yyparse): Calls changed accordingly.
2767 1996-01-27 Richard Stallman <rms@gnu.org>
2769 * src/output.c (output_rule_data):
2770 Test YYERROR_VERBOSE in the conditional
2771 around the definition of ttyname.
2773 1995-12-29 Richard Stallman <rms@gnu.org>
2776 Fix line numbers in #line commands.
2778 1995-12-29 Richard Stallman <rms@gnu.org>
2781 Fix line numbers in #line commands.
2783 1995-12-27 Richard Stallman <rms@gnu.org>
2785 * src/bison.s1 (YYPARSE_PARAM_DECL):
2786 In C++, make it always null.
2787 (YYPARSE_PARAM_ARG): New macro.
2788 (yyparse): Use YYPARSE_PARAM_ARG.
2790 1995-12-27 Richard Stallman <rms@gnu.org>
2792 * bison.simple (YYPARSE_PARAM_DECL):
2793 In C++, make it always null.
2794 (YYPARSE_PARAM_ARG): New macro.
2795 (yyparse): Use YYPARSE_PARAM_ARG.
2797 1995-11-29 Richard Stallman <rms@gnu.org>
2799 * doc/bison.texinfo:
2800 Describe literal string tokens, %raw, %no_lines, %token_table.
2802 1995-11-29 Daniel Hagerty <hag@gnu.org>
2804 * doc/bison.texinfo: Fixed update date
2806 1995-10-16 Richard Stallman <rms@gnu.org>
2808 * src/version.c: Version 1.25.
2810 1995-10-16 Richard Stallman <rms@gnu.org>
2812 * NEWS: *** empty log message ***
2814 1995-10-16 Richard Stallman <rms@gnu.org>
2816 * doc/bison.1, doc/bison.rnh:
2819 1995-10-15 Richard Stallman <rms@gnu.org>
2821 * src/vmsgetargs.c, src/getargs.c:
2822 Added -n, -k, and -raw switches.
2823 (noparserflag, toknumflag, rawtoknumflag): New variables.
2825 * src/symtab.h (SALIAS):
2826 New #define for adding aliases to %token.
2827 (struct bucket): Added `alias' field.
2829 * src/reduce.c (reduce_grammar):
2830 Revise error message.
2831 (print_notices): Remove final `.' from error message.
2833 * src/reader.c (reader_output_yylsp):
2835 (readgram): Use `#if 0' around code that accepted %command
2836 inside grammar rules: The documentation doesn't allow it,
2837 and it will fail since the %command processors scan for the next %.
2838 (parse_token_decl): Extended the %token
2839 declaration to allow a multi-character symbol as an alias.
2840 (parse_thong_decl): New function.
2841 (read_declarations): Added %thong declarations.
2842 (read_declarations): Handle NOOP to deal with allowing
2843 % declarations as another means to specify the flags.
2844 (readgram): Allow %prec prior to semantics embedded in a rule.
2845 (skip_to_char, read_declarations, copy_definition)
2846 (parse_token_decl, parse_start_decl, parse_type_decl)
2847 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2848 (get_type_name, copy_guard, copy_action, readgram)
2849 (get_type, packsymbols): Revised most error messages.
2850 Changed `fatal' to `warnxxx' to avoid aborting for error.
2851 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2852 (read_declarations): Improve the error message for
2853 an invalid character. Do not abort.
2854 (read_declarations, copy_guard, copy_action): Use
2855 printable_version to avoid unprintable characters in printed output.
2856 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2857 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2858 Allow the type of a non-terminal can be given
2859 more than once, as long as all specifications give the same type.
2862 (output_headers, output_trailers, output, output_gram)
2863 (output_rule_data): Implement noparserflag variable.
2864 Implement toknumflag variable.
2865 (output): Call reader_output_yylsp to output LTYPESTR.
2867 * src/main.c (main):
2868 If reader sees an error, don't process the grammar.
2869 (fatals): Updated to not use VARARGS1.
2870 (printable_version, int_to_string, warn, warni, warns, warnss)
2871 (warnsss): New error reporting functions. Avoid abort for error.
2874 Added THONG and NOOP for alias processing.
2875 Added SETOPT for the new code that allows setting options with %flags.
2878 Include getopt.h. Add some extern decls.
2879 (safegetc): New function to deal with EOF gracefully.
2880 (literalchar); new function to deal with reading \ escapes.
2881 (lex): Use literalchar.
2882 (lex): Implemented "..." tokens.
2883 (literalchar, lex, parse_percent_token): Made tokenbuffer
2884 always contain the token. This includes growing the token
2885 buffer while reading an integer.
2886 (parse_percent_token): Replaced if-else statement with percent_table.
2887 (parse_percent_token): Added % declarations as another
2888 way to specify the flags -n, -l, and -r. Also added hooks for
2889 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2890 major changes to files.c.
2891 (lex) Retain in the incoming stream a character following
2893 (skip_white_space, lex): Revised most error messages
2894 and changed fatal to warn to avoid aborting.
2895 (percent_table): Added %thong declarations.
2897 * src/gram.h: Comment changes.
2899 * src/files.c (openfiles, open_extra_files, done):
2901 and actfile file. Handle noparserflag. Both for -n switch.
2903 * src/conflicts.c (resolve_sr_conflict):
2904 Remove use of alloca.
2906 1995-06-01 Jim Meyering <meyering@gnu.org>
2908 * doc/bison.texinfo: *** empty log message ***
2910 1995-05-06 Richard Stallman <rms@gnu.org>
2912 * src/bison.s1: Comment change.
2914 1995-05-06 Richard Stallman <rms@gnu.org>
2916 * bison.simple: Comment change.
2918 1995-05-03 Richard Stallman <rms@gnu.org>
2920 * src/version.c: Version now 1.24.
2922 * src/bison.s1: Change distribution terms.
2924 * src/version.c: Version now 1.23.
2926 1995-05-03 Richard Stallman <rms@gnu.org>
2928 * doc/bison.texinfo:
2929 Rewrite "Conditions for Using Bison".
2930 Update version to 1.24.
2932 1995-05-03 Richard Stallman <rms@gnu.org>
2934 * bison.simple: Change distribution terms.
2936 1995-02-23 Richard Stallman <rms@gnu.org>
2938 * src/files.c: Test __VMS_POSIX as well as VMS.
2940 1995-02-14 Jim Meyering <meyering@gnu.org>
2942 * src/bison.s1 (__yy_memcpy):
2943 Renamed from __yy_bcopy to avoid
2944 confusion. Reverse FROM and TO arguments to be consistent with
2947 1995-02-14 Jim Meyering <meyering@gnu.org>
2949 * bison.simple (__yy_memcpy):
2950 Renamed from __yy_bcopy to avoid
2951 confusion. Reverse FROM and TO arguments to be consistent with
2954 1994-11-10 David J. MacKenzie <djm@gnu.org>
2960 * Makefile.in (DISTFILES): Include NEWS.
2962 * Makefile.in (DISTFILES):
2963 Include install-sh, not install.sh.
2965 * configure.in: Update to Autoconf v2 macro names.
2967 1994-10-05 David J. MacKenzie <djm@gnu.org>
2969 * Makefile.in: fix typo
2971 * Makefile.in (prefix, exec_prefix):
2972 Let configure set them.
2974 1994-09-28 David J. MacKenzie <djm@gnu.org>
2976 * Makefile.in: Set datadir to $(prefix)/share.
2978 1994-09-15 Richard Stallman <rms@gnu.org>
2981 Update copyright notice and GPL version.
2983 1994-09-15 Richard Stallman <rms@gnu.org>
2986 Update copyright notice and GPL version.
2988 1994-07-12 Richard Stallman <rms@gnu.org>
2990 * src/reduce.c, src/reader.c:
2993 1994-05-05 David J. MacKenzie <djm@gnu.org>
2995 * Makefile.in: entered into RCS
2997 1994-03-26 Richard Stallman <rms@gnu.org>
2999 * src/bison.s1: entered into RCS
3001 1994-03-26 Richard Stallman <rms@gnu.org>
3003 * bison.simple: entered into RCS
3005 1994-03-25 Richard Stallman <rms@gnu.org>
3007 * src/main.c: entered into RCS
3009 1994-03-24 Richard Stallman <rms@gnu.org>
3011 * src/conflicts.c: entered into RCS
3013 1994-01-02 Richard Stallman <rms@gnu.org>
3015 * Makefile.in: *** empty log message ***
3017 1993-11-21 Richard Stallman <rms@gnu.org>
3019 * src/bison.s1: *** empty log message ***
3021 1993-11-21 Richard Stallman <rms@gnu.org>
3023 * doc/bison.texinfo: entered into RCS
3025 * doc/bison.texinfo: *** empty log message ***
3027 1993-11-21 Richard Stallman <rms@gnu.org>
3029 * bison.simple: *** empty log message ***
3031 1993-10-25 David J. MacKenzie <djm@gnu.org>
3033 * doc/bison.texinfo: *** empty log message ***
3035 1993-10-19 Richard Stallman <rms@gnu.org>
3037 * src/bison.s1: *** empty log message ***
3039 1993-10-19 Richard Stallman <rms@gnu.org>
3041 * bison.simple: *** empty log message ***
3043 1993-10-14 Richard Stallman <rms@gnu.org>
3045 * src/bison.s1: *** empty log message ***
3047 1993-10-14 Richard Stallman <rms@gnu.org>
3049 * bison.simple: *** empty log message ***
3051 1993-09-14 David J. MacKenzie <djm@gnu.org>
3053 * doc/bison.texinfo: *** empty log message ***
3055 1993-09-13 Noah Friedman <friedman@gnu.org>
3057 * Makefile.in: *** empty log message ***
3059 1993-09-10 Richard Stallman <rms@gnu.org>
3061 * src/conflicts.c: *** empty log message ***
3063 * src/system.h: entered into RCS
3065 1993-09-10 Richard Stallman <rms@gnu.org>
3067 * doc/bison.1: entered into RCS
3069 1993-09-06 Noah Friedman <friedman@gnu.org>
3071 * src/version.c: entered into RCS
3073 1993-09-06 Noah Friedman <friedman@gnu.org>
3075 * Makefile.in: *** empty log message ***
3077 1993-07-30 David J. MacKenzie <djm@gnu.org>
3079 * Makefile.in: *** empty log message ***
3081 1993-07-24 Richard Stallman <rms@gnu.org>
3083 * src/bison.s1: *** empty log message ***
3085 1993-07-24 Richard Stallman <rms@gnu.org>
3087 * bison.simple: *** empty log message ***
3089 1993-07-08 David J. MacKenzie <djm@gnu.org>
3091 * Makefile.in: *** empty log message ***
3093 1993-07-04 Richard Stallman <rms@gnu.org>
3095 * src/bison.s1: *** empty log message ***
3097 1993-07-04 Richard Stallman <rms@gnu.org>
3099 * bison.simple: *** empty log message ***
3101 1993-06-26 David J. MacKenzie <djm@gnu.org>
3103 * src/getargs.c: entered into RCS
3105 1993-06-26 David J. MacKenzie <djm@gnu.org>
3107 * doc/bison.texinfo: *** empty log message ***
3109 * doc/bison.1: New file.
3111 1993-06-25 Richard Stallman <rms@gnu.org>
3113 * src/getargs.c: New file.
3115 1993-06-16 Richard Stallman <rms@gnu.org>
3117 * src/bison.s1: *** empty log message ***
3119 1993-06-16 Richard Stallman <rms@gnu.org>
3121 * bison.simple: *** empty log message ***
3123 1993-06-03 Richard Stallman <rms@gnu.org>
3125 * src/bison.s1: New file.
3127 1993-06-03 Richard Stallman <rms@gnu.org>
3129 * doc/bison.texinfo: *** empty log message ***
3131 1993-06-03 Richard Stallman <rms@gnu.org>
3133 * bison.simple: New file.
3135 1993-05-19 Richard Stallman <rms@gnu.org>
3137 * doc/bison.texinfo: New file.
3139 1993-05-07 Noah Friedman <friedman@gnu.org>
3141 * Makefile.in: *** empty log message ***
3143 1993-04-28 Noah Friedman <friedman@gnu.org>
3145 * src/reader.c: *** empty log message ***
3147 1993-04-23 Noah Friedman <friedman@gnu.org>
3149 * src/alloc.h: entered into RCS
3151 1993-04-20 David J. MacKenzie <djm@gnu.org>
3153 * src/version.c: *** empty log message ***
3155 * src/files.c, src/allocate.c:
3158 * src/reader.c: *** empty log message ***
3160 * src/lex.c: entered into RCS
3162 * src/conflicts.c: New file.
3164 * src/symtab.c: entered into RCS
3166 * src/alloc.h: New file.
3168 * src/LR0.c: entered into RCS
3170 1993-04-18 Noah Friedman <friedman@gnu.org>
3172 * src/reader.c: New file.
3174 * src/version.c: *** empty log message ***
3176 1993-04-18 Noah Friedman <friedman@gnu.org>
3178 * Makefile.in: *** empty log message ***
3180 1993-04-17 Noah Friedman <friedman@gnu.org>
3182 * Makefile.in: *** empty log message ***
3184 1993-04-15 Richard Stallman <rms@gnu.org>
3186 * src/main.c, src/files.c:
3189 1993-04-15 Noah Friedman <friedman@gnu.org>
3191 * configure.in: entered into RCS
3193 * configure.in: *** empty log message ***
3195 * configure.in: New file.
3197 1993-04-14 Richard Stallman <rms@gnu.org>
3199 * Makefile.in: New file.
3201 1993-04-13 Richard Stallman <rms@gnu.org>
3203 * src/version.c: New file.
3205 1993-03-25 Richard Stallman <rms@gnu.org>
3207 * src/output.c: entered into RCS
3209 1992-09-25 Richard Stallman <rms@gnu.org>
3211 * configure.bat: entered into RCS
3213 1992-06-22 Richard Stallman <rms@gnu.org>
3215 * src/vmsgetargs.c: entered into RCS
3217 1992-06-22 Richard Stallman <rms@gnu.org>
3219 * doc/bison.rnh: entered into RCS
3221 1992-04-20 David J. MacKenzie <djm@gnu.org>
3223 * README: entered into RCS
3225 1992-01-22 Richard Stallman <rms@gnu.org>
3227 * src/machine.h: entered into RCS
3229 1991-12-21 Richard Stallman <rms@gnu.org>
3231 * src/lalr.c, src/closure.c:
3234 1991-12-20 Richard Stallman <rms@gnu.org>
3236 * src/state.h: entered into RCS
3238 1991-12-18 Richard Stallman <rms@gnu.org>
3240 * src/print.c, src/nullable.c, src/derives.c:
3243 1991-11-03 David J. MacKenzie <djm@gnu.org>
3245 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3248 1988-09-09 Richard Stallman <rms@gnu.org>
3250 * src/bison.hairy: entered into RCS
3252 1987-12-16 Richard Stallman <rms@gnu.org>
3254 * REFERENCES: entered into RCS