1 2001-10-14 Marc Autret <autret_m@epita.fr>
3 * src/options.c (create_long_option_table): Fix.
5 2001-10-10 Akim Demaille <akim@epita.fr>
7 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
9 2001-10-04 Akim Demaille <akim@epita.fr>
11 * src/reader.c (parse_union_decl): Push the caracters in
12 union_obstack, not attrs_obstack.
14 2001-10-04 Akim Demaille <akim@epita.fr>
16 Merge in the branch 1.29.
18 * src/reader.c (packsymbols): Use a temporary obstack for
19 `%%tokendef', since output_stack is already used elsewhere.
21 2001-10-02 Akim Demaille <akim@epita.fr>
25 2001-10-02 Akim Demaille <akim@epita.fr>
29 2001-10-02 Akim Demaille <akim@epita.fr>
31 * tests/regression.at (Invalid CPP headers): New.
32 From Alexander Belopolsky.
33 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
35 2001-10-02 Akim Demaille <akim@epita.fr>
37 * tests/regression.at (Invalid input): New.
38 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
41 2001-10-02 Akim Demaille <akim@epita.fr>
43 * tests/calc.at: Now that --debug works, the tests must be adjusted.
45 2001-10-02 Akim Demaille <akim@epita.fr>
47 * src/output.c (output_parser): Assert `skeleton'.
48 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
52 2001-10-01 Marc Autret <autret_m@epita.fr>
54 * src/lex.h: Echo modifications.
55 * src/lex.c (unlex): Parameter is now token_t.
58 2001-10-01 Marc Autret <autret_m@epita.fr>
60 * src/main.c: Include lex.h.
63 2001-09-29 Akim Demaille <akim@epita.fr>
65 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
67 2001-09-28 Akim Demaille <akim@epita.fr>
69 * tests/testsuite.at: Update to newer Autotest.
70 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
72 2001-09-27 Akim Demaille <akim@epita.fr>
74 Position independent wrapper.
76 * tests/bison: Remove.
77 * tests/bison.in: New.
78 * configure.in: Adjust.
80 2001-09-27 Paul Eggert <eggert@twinsun.com>
82 Port quotearg fixes from tar 1.13.24.
84 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
90 * m4/mbrtowc.m4: New file.
91 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
92 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
94 2001-09-27 Akim Demaille <akim@epita.fr>
98 2001-09-27 Akim Demaille <akim@epita.fr>
102 2001-09-25 Akim Demaille <akim@epita.fr>
104 * src/system.h: Include `xalloc.h'.
105 Remove it from the C files.
106 * src/files.c (output_files): Free the obstacks.
107 * src/lex.c (init_lex): Rename as...
110 * src/main.c (main): Use it.
112 2001-09-24 Marc Autret <autret_m@epita.fr>
114 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
115 to output informations in fout (FILE*).
116 (open_graph, close_graph): Likewise.
117 (output_graph, output_edge, output_node): Likewise.
118 * src/vcg.h: Update function prototypes.
119 * src/print_graph.c (print_graph): Open output graph file.
120 (print_actions): Adjust.
121 * src/files.h: Remove extern declaration.
122 * src/files.c: Remove graph_obstack declaration.
123 (open_files): Remove graph_obstack initialization.
124 (output_files): Remove graph_obstack saving.
126 2001-09-24 Marc Autret <autret_m@epita.fr>
128 * src/files.c (compute_output_file_names): Fix.
130 2001-09-24 Marc Autret <autret_m@epita.fr>,
131 Akim Demaille <akim@epita.fr>
133 * src/reader.c (reader): Remove call to free_symtab ().
134 * src/main.c (main): Call it here.
136 * src/conflicts.c (initialize_conflicts): Rename as...
137 (solve_conflicts): this.
138 * src/print.c (print_core, print_actions, print_state)
139 (print_grammar): Dump to a file instead a `output_obstack'.
140 (print_results): Dump `output_obstack', and then proceed with the
142 * src/files.c (compute_output_file_names, close_files): New.
143 (output_files): Adjust.
144 * src/main.c (main): Adjust.
146 2001-09-23 Marc Autret <autret_m@epita.fr>
148 * src/files.c (compute_header_macro): Computes header macro name
149 from spec_defines_file when given.
151 2001-09-23 Marc Autret <autret_m@epita.fr>
153 * src/files.c (output_files): Add default extensions.
155 2001-09-22 Akim Demaille <akim@epita.fr>
157 * src/conflicts.c (finalize_conflicts): Rename as...
158 (free_conflicts): this.
160 2001-09-22 Akim Demaille <akim@epita.fr>
162 * src/gram.c (gram_free): Rename back as...
164 (output_token_translations): Free `token_translations'.
165 * src/symtab.c (free_symtab): Free the tag field.
167 2001-09-22 Akim Demaille <akim@epita.fr>
169 Remove `translations' as it is always set to true.
171 * src/gram.h: Adjust.
172 * src/reader.c (packsymbols, parse_token_decl): Adjust
173 * src/print.c (print_grammar): Adjust.
174 * src/output.c (output_token_translations): Adjust.
175 * src/lex.c (lex): Adjust.
176 * src/gram.c: Be sure the set pointers to NULL.
177 (dummy): Rename as...
180 2001-09-22 Akim Demaille <akim@epita.fr>
182 * configure.in: Invoke AM_LIB_DMALLOC.
183 * src/system.h: Use dmalloc.
184 * src/LR0.c: Be sure to have pointers initialized to NULL.
185 (allocate_itemsets): Allocate kernel_items only if needed.
187 2001-09-22 Akim Demaille <akim@epita.fr>
189 * configure.in: Bump to 1.29b.
190 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
191 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
192 need xmalloc.c in calc.y.
195 2001-09-21 Akim Demaille <akim@epita.fr>
198 * Makefile.maint, config/config.guess, config/config.sub,
199 * config/missing: Update from masters.
200 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
202 * configure.in (ALL_LINGUAS): Add `tr'.
204 2001-09-21 Akim Demaille <akim@epita.fr>
206 * tests/Makefile.am (package.m4): Move to...
207 ($(srcdir)/$(TESTSUITE)): here.
209 2001-09-20 Akim Demaille <akim@epita.fr>
211 * src/complain.c: No longer try to be standalone: use system.h.
212 Don't assume __STDC__ is defined to 1. Just test if it is defined.
213 * src/complain.h: Likewise.
214 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
215 Remove the unused variable `n'.
216 From Albert Chin-A-Young.
218 2001-09-18 Marc Autret <autret_m@epita.fr>
220 * doc/bison.1: Update.
221 * doc/bison.texinfo (Bison Options): Update --defines and --graph
223 (Option Cross Key): Update.
226 2001-09-18 Marc Autret <autret_m@epita.fr>
228 * tests/regression.at: New test (comment in %union).
230 2001-09-18 Marc Autret <autret_m@epita.fr>
232 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
234 Reported by Keith Browne.
236 2001-09-18 Marc Autret <autret_m@epita.fr>
238 * tests/output.at: Add tests for --defines and --graph.
240 2001-09-18 Marc Autret <autret_m@epita.fr>
242 * tests/output.at: Removes tests of %{header,src}_extension features.
244 2001-09-18 Akim Demaille <akim@epita.fr>
246 * tests/Makefile.am (package.m4): New.
247 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
248 (_AT_CHECK_CALC_ERROR): Likewise.
249 Factor the `, ' part of verbose error messages.
251 2001-09-18 Marc Autret <autret_m@epita.fr>
253 * src/getargs.c (longopts): Declare --defines and --graph as options
254 with optional arguments.
255 * src/files.h: Add extern declarations.
256 * src/files.c (spec_graph_file, spec_defines_file): New.
257 (output_files): Update.
258 Remove CPP-outed code.
260 2001-09-18 Marc Autret <autret_m@epita.fr>
262 Turn off %{source,header}_extension feature.
264 * src/files.c (compute_exts_from_gf): Update.
265 (compute_exts_from_src): Update.
266 (output_files): CPP-out useless code.
267 * src/files.h: Remove {header,source}_extension extern declarations.
268 * src/reader.c (parse_dquoted_param): CPP-out.
269 (parse_header_extension_decl): Remove.
270 (parse_source_extension_decl): Remove.
271 (read_declarations): Remove cases tok_{hdrext,srcext}.
272 * src/lex.c (percent_table): Remove {header,source}_extension entries.
273 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
275 2001-09-10 Akim Demaille <akim@epita.fr>
277 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
278 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
279 (AT_CHECK_OUTPUT): this.
280 Merely check ls' exit status, its output is useless.
282 2001-09-10 Akim Demaille <akim@epita.fr>
284 * tests/calc.at: Use m4_match.
285 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
287 2001-09-10 Marc Autret <autret_m@epita.fr>,
288 Akim Demaille <akim@epita.fr>
290 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
292 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
294 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
295 * src/lex.h: Adjust prototype.
296 (token_t): Add `tok_undef'.
297 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
298 (parse_percent_token): Now returns token_t.
299 Add default statement in switch.
300 (lex): Separate `c' as an input variable, from the token_t result
302 (unlexed): Is a token_t.
304 2001-09-10 Akim Demaille <akim@epita.fr>
306 * configure.in: Bump to 1.29a.
308 2001-09-07 Akim Demaille <akim@epita.fr>
312 2001-08-30 Akim Demaille <akim@epita.fr>
314 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
315 * m4/atconfig.m4: Remove.
316 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
318 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
319 m4_if, m4_patsubst, and m4_regexp.
320 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
321 `input' file instead of echo.
323 2001-08-29 Akim Demaille <akim@epita.fr>
327 2001-08-29 Akim Demaille <akim@epita.fr>
331 2001-08-29 Paul Eggert <eggert@twinsun.com>
333 * src/bison.simple (yyparse): Don't take the address of an
334 item before the start of an array, as that doesn't conform to
337 2001-08-29 Robert Anisko <anisko_r@epita.fr>
339 * doc/bison.texinfo (Location Tracking Calc): New node.
341 2001-08-29 Paul Eggert <eggert@twinsun.com>
343 * src/output.c (output): Do not define const, as this now
344 causes more problems than it cures.
346 2001-08-29 Akim Demaille <akim@epita.fr>
348 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
350 Be sure to tag the `detailmenu'.
352 2001-08-29 Akim Demaille <akim@epita.fr>
354 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
355 download in a tmp dir.
357 2001-08-28 Marc Autret <autret_m@epita.fr>
359 * config/depcomp: New file.
361 2001-08-28 Marc Autret <autret_m@epita.fr>
363 * doc/bison.1 (mandoc): Adjust.
364 From Juan Manuel Guerrero.
366 2001-08-28 Marc Autret <autret_m@epita.fr>
368 * src/print_graph.c (print_state): Fix.
370 2001-08-27 Marc Autret <autret_m@epita.fr>
372 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
374 Echo modifications to the functions prototypes.
375 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
377 2001-08-27 Marc Autret <autret_m@epita.fr>
379 * src/vcg.c: Include `xalloc.h'.
380 (add_colorentry): New.
381 (add_classname): New.
383 * src/vcg.h: Add new prototypes.
385 2001-08-27 Akim Demaille <akim@epita.fr>
387 * Makefile.maint: Sync. again with CVS Autoconf.
389 2001-08-27 Akim Demaille <akim@epita.fr>
391 * Makefile.maint: Formatting changes.
392 (po-update, cvs-update, update): New targets.
395 2001-08-27 Akim Demaille <akim@epita.fr>
397 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
398 * Makefile.maint: Sync. with CVS Autoconf.
400 2001-08-27 Marc Autret <autret_m@epita.fr>
402 * src/vcg.h (struct infoname_s): New.
403 (struct colorentry_s): New.
404 (graph_s): New fields {vertical,horizontal}_order in structure.
405 Add `infoname' field.
406 Add `colorentry' field;
407 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
408 (G_HORIZONTAL_ORDER): New.
411 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
412 Add output of `infoname'.
413 Add output of `colorentry'.
415 2001-08-27 Marc Autret <autret_m@epita.fr>
417 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
418 This one shadowed a global parameter.
420 2001-08-24 Marc Autret <autret_m@epita.fr>
422 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
423 instead of `unsigned'.
424 (print_state): Do not call obstack_object_size () in obstack_grow ()
425 to avoid macro variables shadowing.
427 2001-08-23 Marc Autret <autret_m@epita.fr>
429 * src/lex.c (percent_table): Typo: s/naem/name/.
431 Normalize new options declarations.
433 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
435 * tests/suite.at: Exercise %header_extension and %source_extension.
437 2001-08-16 Marc Autret <autret_m@epita.fr>
439 * src/reader.c (parse_dquoted_param): New.
440 (parse_header_extension_decl): Use it.
441 (parse_source_extension_decl): Likewise.
443 2001-08-16 Marc Autret <autret_m@epita.fr>
445 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
446 (get_xxxx_str): Use assert () instead of complain ().
447 Remove return invokations in default cases.
448 (get_decision_str): Modify default behaviour. Remove second argument.
449 Echo modifications on calls.
452 2001-08-16 Marc Autret <autret_m@epita.fr>
454 * src/getargs.c (usage): Update with ``-g, --graph''.
456 2001-08-16 Marc Autret <autret_m@epita.fr>
458 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
459 (Option Cross Key): Likewise.
460 * doc/bison.1: Update.
462 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
464 * src/output.c (output_master_parser): Don't finish action_obstack.
465 (output_parser): Don't care about the muscle action, here.
466 (prepare): Copy the action_obstack in the action muscle.
467 (output): Free action_obstack.
469 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
471 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
472 will contain `%union' declaration.
473 (parse_union_decl): Delete #line directive output.
474 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
475 informations about %union.
476 (parse_union_decl): Copy the union_obstack in the muscle stype.
477 * src/bison.simple: Add new #line directive.
478 Add typdef %%stype YYSTYPE.
480 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
482 * src/bison.simple: Add new `#line' directive.
484 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
486 * src/bison.simple: New `#line' directive.
487 * src/output.c (output_parser): Support new dynamic muscle input_line.
489 2001-09-22 Marc Autret <autret_m@epita.fr>
491 * src/output.c (output_master_parser): New.
492 (output_parser): Be more re-entrant.
494 2001-09-21 Marc Autret <autret_m@epita.fr>
496 * src/reader.c (copy_definition, parse_union_decl): Update and use
498 (copy_action): Likewise.
499 Use obstack_1grow ().
500 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
502 2001-09-21 Marc Autret <autret_m@epita.fr>
504 * src/options.c (option_table): Adjust.
505 * src/lex.c (parse_percent_token): Fix.
507 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
509 * src/options.c (symtab.h): Include it, need by lex.h.
511 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
513 * src/lex.c (parse_percent_token): Change type of variable `tx', which
514 is now an option_table_struct*.
515 (option_strcmp): New function option_strcmp.
516 (parse_percent_token): Call option_strcmp.
517 * src/getargs.c (xalloc.h, options.h): Include it.
518 (getargs): Call create_long_option_table.
519 (getargs): Free longopts at the end of the function.
520 (shortopts): Move in options.c.
521 * src/options.c (create_long_option_table): New function. Convert
522 information from option_table to option structure.
523 * src/reader.c (options.h): Include it.
525 * src/Makefile.am: Adjust.
526 * src/options.c (option_table): Create from longopts and percent_table.
527 * src/getargs.c (longopts): Delete.
528 * src/lex.c (struct percent_table_struct): Delete.
529 (percent_table): Delete.
530 (options.h): Include it.
531 * src/options.c: Create.
532 * src/options.h: Create.
533 Declare enum opt_access_e.
534 Define struct option_table_struct.
536 2001-09-20 Marc Autret <autret_m@epita.fr>
538 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
541 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
543 * src/bison.simple: s/%%filename/%%skeleton.
544 * src/muscle_tab.c (getargs.h): Include it.
545 (muscle_init): Insert new muscle skeleton.
547 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
549 * src/output.c (output_parser): Delete unused variable actions_dumped.
551 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
553 * src/output.c (output): Delete call to reader_output_yylsp.
554 * src/reader.c (reader): Likewise.
555 * src/reader.h: Delete declaration of reader_output_yylsp.
557 2001-09-02 Marc Autret <autret_m@epita.fr>
559 * src/reader.c: Include muscle_tab.h.
560 (parse_union_decl): Update.
561 (parse_macro_decl): Rename parse_muscle_decl.
562 Update to use renamed functions and variable.
563 (read_declarations, copy_action, read_additionnal_code, : Updated
564 with correct variables and functions names.
565 (packsymbols, reader): Likewise.
567 * src/reader.h (muscle_obstack): Extern declaration update.
569 * src/output.c: Include muscle_tab.h
570 In all functions using macro_insert, change by using muscle_insert ().
571 (macro_obstack): Rename muscle_obstack.
572 Echo modifications in the whole file.
573 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
574 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
575 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
577 * src/muscle_tab.h: Update double inclusion macros.
578 (macro_entry_s): Rename muscle_entry_s.
581 * src/muscle_tab.c: Include muscle_tab.h.
582 Rename macro_tabble to muscle_table.
583 (mhash1, mhash2, mcmp): Use muscle_entry.
584 (macro_init): Rename muscle_init. Update.
585 (macro_insert): Rename muscle_insert. Update.
586 (macro_find): Rename muscle_find. Update.
588 * src/main.c: Include muscle_tab.h.
589 (main): Call muscle_init ().
590 * src/Makefile.am (bison_SOURCES): Echo modifications.
592 2001-09-02 Marc Autret <autret_m@epita.fr>
594 Now the files macro_tab.[ch] are named muscle_tab.[ch].
596 * src/muscle_tab.c, src/muscle_tab.h: Add files.
598 2001-09-02 Marc Autret <autret_m@epita.fr>
600 * src/macrotab.c, src/macrotab.h: Remove.
602 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
604 * src/reader.c (copy_guard): Use muscle to specify the `#line'
607 2001-09-01 Marc Autret <autret_m@epita.fr>
609 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
610 to an explicit value to activate the feature. We do it here.
612 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
614 * src/output.c (prepare): Delete the `filename' muscule insertion.
615 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
616 (parse_union_decl): Likewise.
617 * src/macrotab.c (macro_init): Initialize filename by infile.
619 2001-08-31 Marc Autret <autret_m@epita.fr>
621 * src/bison.simple (YYLSP_NEEDED): New definition.
622 * src/output.c (prepare): Add macro insertion of `locations_flag'
624 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
626 * src/output.c (prepare): Delete insertion of previous muscles,
627 and insert the `prefix' muscles.
628 * src/macrotab.c (macro_init): Likewise.
629 (macro_init): Initialization prefix directive by `yy'.
630 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
631 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
632 yylval, yydebug, yyerror, yynerrs and yyparse.
633 New directive `#define' to substitute yydebug, ... with option
636 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
638 * src/main.c (main): Standardize.
639 * src/output.c (output_table_data, output_parser): Likewise.
640 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
642 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
644 * src/reader.c (read_additionnal_code): Rename %%user_code to
646 * src/output.c (output): Rename %%declarations to %%prologue.
647 * src/bison.simple: Echo modifications.
649 2001-08-31 Marc Autret <autret_m@epita.fr>
651 * src/reader.c (readgram): CleanUp.
652 (output_token_defines): Likewise.
653 (packsymbols): Likewise.
655 * src/output.c (output): CPP-out useless code.
657 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
659 * src/reader.c (reader): Delete obsolete call to function
660 output_trailers and output_headers.
661 * src/output.h: Remove obsolete functions prototypes of output_headers
664 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
666 * src/main.c: Include macrotab.h.
667 * src/macrotab.h (macro_entry_s): Constify fields.
668 Adjust functions prototypes.
669 * src/macrotab.c (macro_insert): Constify key and value.
670 (macro_find): Constify key.
671 (macro_insert): Include 'xalloc.h'
672 (macro_insert): Use XMALLOC.
673 (macro_find): Constify return value.
674 * src/output.c (output_table_data): Rename table to table_data.
675 (output_parser): Constify macro_key, macro_value.
677 2001-08-30 Marc Autret <autret_m@epita.fr>
679 * src/reader.c (parse_skel_decl): New.
680 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
681 * src/lex.h (token_t): New token `tok_skel'.
682 * src/lex.c (percent_table): Add skeleton option entry.
685 2001-08-29 Marc Autret <autret_m@epita.fr>
687 * src/bison.simple: Add %%user_code directive at the end.
688 * src/reader.c (read_additionnal_code): New.
690 * src/output.c (output_program): Remove.
693 2001-08-28 Marc Autret <autret_m@epita.fr>
695 * src/output.c (output_actions): Clean up.
696 (output_gram): CPP-out useless code.
697 * src/reader.c (reader): Clean up, CPP-out useless code.
699 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
701 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
703 * src/bison.simple: Add `%%definitions'.
705 2001-08-28 Marc Autret <autret_m@epita.fr>
707 * config/depcomp: New file.
709 2001-08-27 Paul Eggert <eggert@twinsun.com>
711 * src/bison.simple (yyparse): Don't take the address of an
712 item before the start of an array, as that doesn't conform to
715 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
717 * src/output.c (output): Remove the initialization of the macro
718 obstack. It was done too late here.
720 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
722 (reader): Initialize the macro obstack here, since we need it to grow
723 '%define' directives.
725 * src/reader.h: Declare the macro obstack as extern.
727 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
729 * src/output.c (output_parser): Fix. Store single '%' characters in
730 the output obstack instead of throwing them away.
732 2001-08-27 Akim Demaille <akim@epita.fr>
734 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
736 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
738 * lib/Makefile.am: Adjust.
740 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
742 * src/bison.simple: Update and add '%%' directives.
744 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
746 * src/reader.c (reader): Remove calls to 'output_headers' and
747 'output_trailers'. Remove some C output.
748 (readgram): Disable a piece of code that was writing a default
749 definition for 'YYSTYPE'.
750 (reader_output_yylsp): Remove.
751 (packsymbols): Output token defintions to a macro.
752 (copy_definition): Disable C output.
754 * src/reader.c (parse_macro_decl): New function used to parse macro
756 (copy_string2): Put the body of copy_string into this new function.
757 Add a parameter to let the caller choose whether he wants to copy the
758 string delimiters or not.
759 (copy_string): Be a simple call to copy_string2 with the last argument
761 (read_declarations): Add case for macro definition.
762 (copy_identifier): New.
763 (parse_macro_decl): Read macro identifiers using copy_identifier
766 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
768 * src/output.c (prepare): Add prefixed names.
769 (output_parser): Output semantic actions.
770 (output_parser): Fix bug on '%%line' directives.
772 * src/output.c (output_headers): Remove. The C code printed by this
773 function should now be in the skeletons.
774 (output_trailers): Remove.
775 (output): Disable call to 'reader_output_yylsp'.
776 (output_rule_data): Do not output tables to the table obstack.
778 * src/output.c: Remove some C dedicated output.
779 Improve the use of macro and output obstacks.
780 (output_defines): Remove.
782 * src/output.c (output_token_translations): Associate 'translate'
783 table with a macro. No output to the table obstack.
784 (output_gram): Same for 'rhs' and 'prhs'.
785 (output_stos): Same for 'stos'.
786 (output_rule_data): Same for 'r1' and 'r2'.
787 (token_actions): Same for 'defact'.
788 (goto_actions): Same for 'defgoto'.
789 (output_base): Same for 'pact' and 'pgoto'.
790 (output_table): Same for 'table'.
791 (output_check): Same for 'check'.
793 * src/output.c (output_table_data): New function.
794 (output_short_table): Remove.
795 (output_short_or_char_table): Remove.
797 * src/output.c (output_parser): Replace most of the skeleton copy code
798 with something new. Skeletons are now processed character by character
799 rather than line by line, and Bison looks for '%%' macros. This is the
800 first step in making Bison's output process (a lot) more flexible.
801 (output_parser): Use the macro table.
803 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
805 * src/main.c (main): Initialize the macro table.
807 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
809 * src/lex.c (percent_table): Add tok_define.
810 * src/lex.h: Add tok_define.
812 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
814 * src/macrotab.c: New file.
815 * src/macrotab.h: New file.
816 * src/Makefile.am: Update.
818 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
820 * lib/hash.c: New file.
821 * lib/hash.h: New file.
822 * lib/Makefile.am: Update.
824 2001-08-15 Akim Demaille <akim@epita.fr>
828 2001-08-15 Marc Autret <autret_m@epita.fr>
830 * src/reader.c (readgram): Indent output macro YYSTYPE.
831 (packsymbols): Likewise.
832 (output_token_defines): Likewise.
833 * src/files.c: Standardize.
834 (compute_header_macro): New.
835 (defines_obstack_save): New. Use compute_header_macro.
836 (output_files): Update. Use defines_obstack_save.
838 2001-08-15 Akim Demaille <akim@epita.fr>
840 * doc/bison.texinfo (Table of Symbols): Document
843 2001-08-15 Akim Demaille <akim@epita.fr>
845 * missing: Update from CVS Automake.
846 * config/config.guess, config/config.sub, config/texinfo.tex:
849 2001-08-15 Akim Demaille <akim@epita.fr>
851 * Makefile.maint: Sync with CVS Autoconf.
853 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
855 * doc/bison.texinfo: Include GNU Free Documentation License from
857 * doc/fdl.texi: Add to package.
859 2001-08-14 Marc Autret <autret_m@epita.fr>
861 Turn on %{source,header}_extension features.
863 * src/lex.c (percent_table): Un-CPP out header_extension and
865 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
866 (compute_exts_from_src): Remove conditions. It restores priorities
869 2001-08-14 Marc Autret <autret_m@epita.fr>
871 * src/files.c (compute_base_names): Add extensions computing when
872 `--file-prefix' used.
873 Standardize function calls.
875 2001-08-13 Marc Autret <autret_m@epita.fr>
877 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
878 defining it (defined but null disables alloca).
880 2001-08-13 Marc Autret <autret_m@epita.fr>
882 * src/bison.simple (_yy_memcpy): CPP reformat.
884 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
886 * tests/atconfig.in (CPPFLAGS): Fix.
888 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
890 * doc/bison.texinfo: Include GNU General Public License from
892 * doc/gpl.texi: Add to package.
894 2001-08-10 Marc Autret <autret_m@epita.fr>
896 * src/print_graph.h: Fix.
897 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
899 2001-08-10 Akim Demaille <akim@epita.fr>
901 * src/system.h: Provide default declarations for stpcpy, strndup,
904 2001-08-10 Robert Anisko <anisko_r@epita.fr>
906 * doc/bison.texinfo (Locations): Update @$ stuff.
908 2001-08-09 Robert Anisko <anisko_r@epita.fr>
910 * src/bison.simple (YYLLOC_DEFAULT): Update.
913 2001-08-08 Marc Autret <autret_m@epita.fr>
915 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
916 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
917 Reported by Fabrice Bauzac.
919 2001-08-08 Marc Autret <autret_m@epita.fr>
921 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
922 * src/vcg.c (output_node): Fix.
923 * src/vcg.h: Cleanup.
924 * src/print_graph.c: Add comments.
925 (node_output_size): New global variable. Simplify the formatting of
926 the VCG graph output.
927 (print_actions): Unused code is now used. It notifies the final state
928 and no action states in the VCG graph. It also give the reduce actions.
929 The `shift and goto' edges are red and the `go to state' edges are
931 Get the current node name and node_obstack by argument.
932 (node_obstack): New variable.
933 (print_state): Manage node_obstack.
934 (print_core): Use node_obstack given by argument.
935 A node is not only computed here but in print_actions also.
936 (print_graph): CPP out useless code instead of commenting it.
938 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
940 * tests/atconfig.in (CPPFLAGS): Fix.
942 2001-08-07 Akim Demaille <akim@epita.fr>
944 * src/print_graph.c (quote): New.
945 (print_core): Use it.
947 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
949 * src/vcg.c (complain.h): Include it.
950 Unepitaize `return' invocations.
951 [NDEBUG] (main): Remove.
952 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
953 * src/files.c (open_files): Initialize graph_obstack.
954 * src/print_graph.c (print_actions): CPP out useless code.
955 (print_core): Don't output the last `\n' in labels.
957 * src/files.c (output_files): Output the VCG file.
958 * src/main.c (main): Invoke print_graph ();
960 2001-08-06 Marc Autret <autret_m@epita.fr>
962 Automaton VCG graph output.
963 Using option ``-g'' or long option ``--graph'', you can generate
964 a gram_filename.vcg file containing a VCG description of the LALR (1)
965 automaton of your grammar.
967 * src/main.c: Call to print_graph() function.
968 * src/getargs.h: Update.
969 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
970 (graph_flag): New flag.
972 (getargs): Add case `g'.
973 * src/files.c (graph_obstack): New obstack struct.
974 (open_files): Initialize new obstack.
975 (output_files): Saves graph_obstack if required.
976 * src/files.h (graph_obstack): New extern declaration.
977 * src/Makefile.am: Add new source files.
979 2001-08-06 Marc Autret <autret_m@epita.fr>
981 * src/print_graph.c, src/print_graph.h (graph): New.
982 * src/vcg.h: New file.
983 * src/vcg.c: New file, VCG graph handling.
985 2001-08-06 Marc Autret <autret_m@epita.fr>
987 Add of %source_extension and %header_extension which specify
988 the source or/and the header output file extension.
990 * src/files.c (compute_base_names): Remove initialisation of
991 src_extension and header_extension.
992 (compute_exts_from_gf): Update.
993 (compute_exts_from_src): Update.
994 (output_files): Update.
995 * src/reader.c (parse_header_extension_decl): New.
996 (parse_source_extension_decl): New.
997 (read_declarations): New case statements for the new tokens.
998 * src/lex.c (percent_table): Add entries for %source_extension
999 and %header_extension.
1000 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1002 2001-08-06 Marc Autret <autret_m@epita.fr>
1004 * configure.in: Bump to 1.28c.
1005 * doc/bison.texinfo: Texinfo thingies.
1007 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1009 * tests/atconfig.in (CPPFLAGS): Add.
1010 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1012 2001-08-03 Akim Demaille <akim@epita.fr>
1016 2001-08-03 Akim Demaille <akim@epita.fr>
1018 * tests/Makefile.am (check-local): Ship testsuite.
1019 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1022 2001-08-03 Akim Demaille <akim@epita.fr>
1024 * configure.in: Try using -Wformat when compiling.
1026 2001-08-03 Akim Demaille <akim@epita.fr>
1028 * configure.in: Bump to 1.28b.
1030 2001-08-03 Akim Demaille <akim@epita.fr>
1032 * src/complain.c: Adjust strerror_r portability issues.
1034 2001-08-03 Akim Demaille <akim@epita.fr>
1038 2001-08-03 Akim Demaille <akim@epita.fr>
1040 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1041 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1042 * src/getargs.c: Include complain.h.
1043 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1044 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1046 2001-08-03 Akim Demaille <akim@epita.fr>
1048 * src/reader.c (readgram): Display hidden chars in error messages.
1050 2001-08-03 Akim Demaille <akim@epita.fr>
1052 Update to gettext 0.10.39.
1054 2001-08-03 Akim Demaille <akim@epita.fr>
1056 * lib/strspn.c: New.
1058 2001-08-01 Marc Autret <autret_m@epita.fr>
1060 * doc/bison.texinfo: Update.
1061 * doc/bison.1 (mandoc): Update.
1062 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1063 * src/files.c: Support output files extensions computing.
1064 (src_extension): New static variable.
1065 (header_extension): New static variable.
1067 (get_extension_index): New function, gets the index of an extension
1068 filename in a string.
1069 (compute_exts_from_gf): New function, computes extensions from the
1070 grammar file extension.
1071 (compute_exts_from_src): New functions, computes extensions from the
1072 C source file extension, file given by ``-o'' option.
1073 (compute_base_names): Update.
1074 (output_files): Update.
1076 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1078 * doc/bison.texi: Document @$.
1079 (Locations): New section.
1081 2001-07-18 Akim Demaille <akim@epita.fr>
1083 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1084 * config/prev-version.txt, config/move-if-change: New.
1085 * Makefile.am: Adjust.
1087 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1089 * src/bison.simple (yyparse): Suppress warning `comparaison
1090 between signed and unsigned'.
1092 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1094 * src/getargs.h (raw_flag): Remove.
1095 * src/getargs.c: Die on `-r'/`--raw'.
1096 * src/lex.c (parse_percent_token): Die on `%raw'.
1097 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1098 * tests/calc.at: Suppress test with option `--raw'.
1100 2001-07-14 Akim Demaille <akim@epita.fr>
1103 * configure.in: Require Autoconf 2.50.
1104 Update to gettext 0.10.38.
1106 2001-03-16 Akim Demaille <akim@epita.fr>
1108 * doc/bison.texinfo: ANSIfy the examples.
1110 2001-03-16 Akim Demaille <akim@epita.fr>
1112 * getargs.c (skeleton): New variable.
1113 (longopts): --skeleton is a new option.
1114 (shortopts, getargs): -S is a new option.
1115 * getargs.h: Declare skeleton.
1116 * output.c (output_parser): Use it.
1118 2001-03-16 Akim Demaille <akim@epita.fr>
1120 * m4/strerror_r.m4: New.
1121 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1122 * lib/error.h, lib/error.c: Update.
1124 2001-03-16 Akim Demaille <akim@epita.fr>
1126 * src/getargs.c (longopts): Clean up.
1128 2001-02-21 Akim Demaille <akim@epita.fr>
1130 * src/reader.c (gensym): `gensym_count' is your own.
1131 Use a static buf to create the symbol name, as token_buffer is no
1134 2001-02-08 Akim Demaille <akim@epita.fr>
1136 * src/conflicts.c (conflict_report): Be sure not to append to res
1137 between two calls, which could happen if both first sprintf were
1138 skipped, but not the first cp += strlen.
1140 2001-02-08 Akim Demaille <akim@epita.fr>
1142 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1143 New, from fileutils 4.0.37.
1144 * configure.in: Require Autoconf 2.49c. I took some time before
1145 making this decision. This is the only way out for portability
1146 issues in Bison, it would mean way too much duplicate effort to
1147 import in Bison features implemented in 2.49c since 2.13.
1148 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1150 2001-02-02 Akim Demaille <akim@epita.fr>
1152 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1153 * lib/xalloc.h, lib/xmalloc.c: Update.
1155 2001-01-19 Akim Demaille <akim@epita.fr>
1157 Get rid of the ad hoc handling of token_buffer in the scanner: use
1160 * src/lex.c (token_obstack): New.
1161 (init_lex): Initialize it. No longer call...
1162 (grow_token_buffer): this. Remove it.
1163 Adjust all the places which used it to use the obstack.
1165 2001-01-19 Akim Demaille <akim@epita.fr>
1167 * src/lex.h: Rename all the tokens:
1168 s/\bENDFILE\b/tok_eof/g;
1169 s/\bIDENTIFIER\b/tok_identifier/g;
1171 Let them be enums, not #define, to ease debugging.
1172 Adjust all the code.
1174 2001-01-18 Akim Demaille <akim@epita.fr>
1176 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1177 * src/lex.c (maxtoken, grow_token_buffer): Static.
1179 2001-01-18 Akim Demaille <akim@epita.fr>
1181 Since we now use obstacks, more % directives can be enabled.
1183 * src/lex.c (percent_table): Also accept `%yacc',
1184 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1186 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1187 instead of returning a token.
1188 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1189 * src/reader.c (read_declarations): Adjust.
1190 * src/files.c (open_files): Don't call `compute_base_names', don't
1191 compute `attrsfile' since they depend upon data which might be
1192 *in* the input file now.
1193 (output_files): Do it here.
1194 * src/output.c (output_headers): Document the fact that this patch
1195 introduces a guaranteed SEGV for semantic parsers.
1196 * doc/bison.texinfo: Document them.
1197 * tests/suite.at: Exercise these %options.
1199 2000-12-20 Akim Demaille <akim@epita.fr>
1201 Also handle the output file (--verbose) with obstacks.
1203 * files.c (foutput): Remove.
1204 (output_obstack): New.
1205 Adjust all dependencies.
1206 * src/conflicts.c: Return a string.
1207 * src/system.h (obstack_grow_string): Rename as...
1208 (obstack_sgrow): this. Be ready to work with non literals.
1209 (obstack_fgrow4): New.
1211 2000-12-20 Akim Demaille <akim@epita.fr>
1213 * src/files.c (open_files): Fix the computation of short_base_name
1214 in the case of `-o foo.tab.c'.
1216 2000-12-20 Akim Demaille <akim@epita.fr>
1218 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1219 (copy_dollar): Now that everything uses obstacks, get rid of the
1222 2000-12-20 Akim Demaille <akim@epita.fr>
1224 * src/files.c (open_files): Actually the `.output' file is based
1225 on the short_base_name, not base_name.
1226 * tests/suite.at (Checking output file names): Adjust.
1228 2000-12-20 Akim Demaille <akim@epita.fr>
1230 * src/bison.s1: Remove, we now use directly...
1231 * src/bison.simple: this.
1232 * src/Makefile.am: Use pkgdata instead of data.
1234 2000-12-20 Akim Demaille <akim@epita.fr>
1236 * src/files.c (guard_obstack): New.
1237 (open_files): Initialize it.
1238 (output_files): Dump it...
1239 * src/files.h: Export it.
1240 * src/reader.c (copy_guard): Use it.
1242 2000-12-19 Akim Demaille <akim@epita.fr>
1244 * src/files.c (outfile, defsfile, actfile): Removed as global
1246 (open_files): Don't compute them.
1247 (output_files): Adjust.
1248 (base_name, short_base_name): Be global.
1249 Adjust dependencies.
1251 2000-12-19 Akim Demaille <akim@epita.fr>
1253 * src/files.c (strsuffix): New.
1254 (stringappend): Be just like strcat but allocate.
1255 (base_names): Eve out from open_files.
1256 Try to simplify the rather hairy computation of base_name and
1258 (open_files): Use it.
1259 * tests/suite.at (Checking output file names): New test.
1261 2000-12-19 Akim Demaille <akim@epita.fr>
1263 * src/system.h (obstack_grow_literal_string): Rename as...
1264 (obstack_grow_string): this.
1265 * src/output.c (output_parser): Recognize `%% actions' instead of
1267 * src/bison.s1: s/$/%% actions/.
1268 * src/bison.hairy: Likewise.
1270 2000-12-19 Akim Demaille <akim@epita.fr>
1272 * src/output.c (output_parser): Compute the `#line' lines when
1274 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1275 Suggested by Hans Aberg.
1277 2000-12-19 Akim Demaille <akim@epita.fr>
1279 Let the handling of the skeleton files be local to the procedures
1282 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1284 (fparser, open_extra_files): Remove.
1285 (open_files, output_files): Don't take care of fparser.
1286 * src/files.h: Adjust.
1287 * src/output.c (output_parser): Open and close the file to the
1289 * src/reader.c (read_declarations): When %semantic_parser, open
1292 2000-12-19 Akim Demaille <akim@epita.fr>
1294 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1295 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1297 2000-12-19 Akim Demaille <akim@epita.fr>
1299 * src/files.c (open_files): Yipee! We no longer need all the code
1300 looking for `/tmp' since we have no tmp file.
1302 2000-12-19 Akim Demaille <akim@epita.fr>
1304 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1306 * src/files.c (open_files): Less dependency on MSDOS etc.
1308 2000-12-14 Akim Demaille <akim@epita.fr>
1310 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1311 Provide a default definition.
1312 Use it when executing the default @ action.
1313 * src/reader.c (reader_output_yylsp): No longer include
1314 `timestamp' and `text' in the default YYLTYPE.
1316 2000-12-12 Akim Demaille <akim@epita.fr>
1318 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1319 (copy_guard): Quote the file names.
1320 Reported by Laurent Mascherpa.
1322 2000-12-12 Akim Demaille <akim@epita.fr>
1324 * src/output.c (output_headers, output_program, output): Be sure
1325 to escape special characters when outputting filenames.
1326 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1327 (output_headers): Don't depend on them, Use ACTSTR.
1329 2000-11-17 Akim Demaille <akim@epita.fr>
1331 * lib/obstack.h: Formatting changes.
1332 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1333 prevents type checking.
1334 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1335 cast the value to (void *): assigning a `foo *' to a `void *'
1337 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1338 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1341 2000-11-17 Akim Demaille <akim@epita.fr>
1343 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1345 (suite.m4, regression.m4, calc.m4): these.
1346 * tests/atgeneral.m4: Update from CVS Autoconf.
1348 2000-11-17 Akim Demaille <akim@epita.fr>
1350 * tests/regression.m4 (%union and --defines): New test,
1351 demonstrating a current bug in the obstack implementation.
1353 2000-11-17 Akim Demaille <akim@epita.fr>
1355 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1357 Use them to declare the variables which are global or local to
1360 2000-11-17 Akim Demaille <akim@epita.fr>
1362 * acconfig.h: Remove, no longer used.
1364 2000-11-07 Akim Demaille <akim@epita.fr>
1366 * src: s/Copyright (C)/Copyright/g.
1368 2000-11-07 Akim Demaille <akim@epita.fr>
1370 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1372 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1374 2000-11-07 Akim Demaille <akim@epita.fr>
1376 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1377 Merge in a single CPP if/else.
1379 2000-11-07 Akim Demaille <akim@epita.fr>
1381 * src/output.c (output): Remove useless variables.
1382 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1383 argument `data' for consistency with the prototypes.
1385 (obstack_copy, obstack_copy0): Rename the second argument as
1386 `address' for consistency. Qualify it `const'.
1387 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1388 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1389 `const' their input argument (`data' or `address').
1390 Adjust the corresponding macros to include `const' in casts.
1392 2000-11-03 Akim Demaille <akim@epita.fr>
1394 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1395 s/PFILE1/BISON_HAIRY/.
1396 Adjust dependencies.
1398 2000-11-03 Akim Demaille <akim@epita.fr>
1400 For some reason, this was not applied.
1402 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1403 `unlink': it's no longer used.
1405 2000-11-03 Akim Demaille <akim@epita.fr>
1407 * src/files.c (skeleton_find): New function, eved out of...
1408 (open_files, open_extra_files): here.
1410 2000-11-03 Akim Demaille <akim@epita.fr>
1414 * src/files.c (obstack_save): New function.
1415 (done): Rename as...
1416 (output_files): this.
1418 * src/main.c (main): Don't use `atexit' to register `done', since
1419 it no longer has to remove tmp files, just call `output_files'
1420 when there are no errors.
1422 2000-11-02 Akim Demaille <akim@epita.fr>
1424 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1425 `unlink': it's no longer used.
1426 * src/files.h: Formatting changes.
1428 2000-11-02 Akim Demaille <akim@epita.fr>
1430 Remove the last uses of mktemp and unlink/delete.
1432 * src/files.c (fdefines, ftable): Removed.
1433 (defines_ostack, table_obstack): New.
1434 Adjust dependencies of the former into uses of the latter.
1435 * src/output.c (output_short_or_char_table, output_short_table):
1436 Convert to using obstacks.
1437 * src/reader.c (copy_comment2): Accept one FILE * and two
1439 (output_token_defines, reader_output_yylsp): Use obstacks.
1440 * src/system.h (obstack_fgrow3): New.
1442 2000-11-01 Akim Demaille <akim@epita.fr>
1444 Change each use of `fattrs' into a use of `attrs_obstack'.
1446 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1447 * src/files.c (fattrs): Remove.
1448 (attrs_obstack): New.
1449 Adjust all dependencies.
1450 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1452 2000-11-01 Akim Demaille <akim@epita.fr>
1455 Change each use of `faction' into a use of `action_obstack'.
1457 * lib/obstack.h, lib/obstack.c: New files.
1458 * src/files.c (faction): Remove.
1459 (action_obstack): New.
1460 Adjust all dependencies.
1462 2000-10-20 Akim Demaille <akim@epita.fr>
1464 * lib/quote.h (PARAMS): New macro. Use it.
1466 2000-10-16 Akim Demaille <akim@epita.fr>
1468 * src/output.c (output_short_or_char_table): New function.
1469 (output_short_table, output_token_translations): Use it.
1470 (goto_actions): Use output_short_table.
1472 2000-10-16 Akim Demaille <akim@epita.fr>
1474 * src/symtab.c (bucket_new): New function.
1477 * src/output.c (output_short_table): New argument to display the
1478 comment associated with the table.
1479 Adjust dependencies.
1480 (output_gram): Use it.
1481 (output_rule_data): Nicer output layout for YYTNAME.
1483 2000-10-16 Akim Demaille <akim@epita.fr>
1485 * src/lex.c (read_typename): New function.
1487 * src/reader.c (copy_dollar): Likewise.
1489 2000-10-16 Akim Demaille <akim@epita.fr>
1491 * src/reader.c (copy_comment2): Expect the input stream to be on
1492 the `/' which is suspected to open a comment, instead of being
1493 called after `//' or `/*' was read.
1494 (copy_comment, copy_definition, parse_union_decl, copy_action)
1495 (copy_guard): Adjust.
1497 2000-10-16 Akim Demaille <akim@epita.fr>
1499 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1500 `read_signed_integer'.
1502 2000-10-16 Akim Demaille <akim@epita.fr>
1504 * src/reader.c (copy_dollar): New function.
1505 (copy_guard, copy_action): Use it.
1507 2000-10-16 Akim Demaille <akim@epita.fr>
1509 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1510 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1511 New files, from Fileutils 4.0.27.
1512 * src/main.c (printable_version): Remove.
1513 * src/lex.c, src/reader.c: Use `quote'.
1515 2000-10-04 Akim Demaille <akim@epita.fr>
1517 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1519 2000-10-04 Akim Demaille <akim@epita.fr>
1521 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1523 2000-10-04 Akim Demaille <akim@epita.fr>
1525 When a literal string is used to define two different tokens,
1526 `bison -v' segfaults.
1527 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1529 * tests/regression.m4: New file.
1530 Include the core of the sample provided by Piotr Gackiewicz.
1531 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1534 2000-10-04 Akim Demaille <akim@epita.fr>
1536 * src/reader.c (parse_expect_decl): Keep `count' within the size
1540 2000-10-02 Paul Eggert <eggert@twinsun.com>
1542 * bison.s1 (yyparse): Assign the default value
1543 unconditionally, to avoid a GCC warning and make the parser a
1546 2000-10-02 Akim Demaille <akim@epita.fr>
1548 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1551 2000-10-02 Akim Demaille <akim@epita.fr>
1553 * src/derives.c, src/print.c, src/reduce.c: To ease the
1554 translation, move some `\n' out of the translated strings.
1556 2000-10-02 Akim Demaille <akim@epita.fr>
1558 The location tracking mechanism is precious for parse error
1559 messages. Nevertheless, it is enabled only when `@n' is used in
1560 the grammar, which is a different issue (you can use it in error
1561 message, but not in the grammar per se). Therefore, there should
1562 be another means to enable it.
1564 * src/getargs.c (getargs): Support `--locations'.
1566 * src/getargs.h (locationsflag): Export it.
1567 * src/lex.c (percent_table): Support `%locations'.
1568 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1569 with `locationsflag'.
1570 * doc/bison.texinfo: Document `--locations' and `%locations'.
1572 * tests/calc.m4: Test it.
1574 For regularity of the names, replace each
1575 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1576 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1577 In addition replace each `flag' with `_flag'.
1579 2000-10-02 Akim Demaille <akim@epita.fr>
1581 Also test parse error messages, including with YYERROR_VERBOSE.
1583 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1585 Use it to check the computations.
1586 Use it to check `nonassoc' is honored.
1587 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1588 `--yyerror-verbose'.
1589 (_AT_CHECK_CALC): Adjust to this option.
1590 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1592 2000-10-02 Akim Demaille <akim@epita.fr>
1594 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1595 the latter demonstrates a flaw in the handling of non debugging
1596 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1597 was used in order to simplify:
1613 unfortunately this leads to a CPP conflict when
1614 `--name-prefix=foo' is used since it produces `#define yydebug
1617 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1618 (YYDPRINTF): New macro.
1620 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1622 Also test `--verbose', `--defines' and `--name-prefix'.
1624 2000-10-02 Akim Demaille <akim@epita.fr>
1626 Improve the readability of the produced parsers.
1628 * src/bison.s1: Formatting changes.
1629 Improve the comment related to the `$' mark.
1630 (yydefault): Don't fall through to `yyresume': `goto' there.
1631 * src/output.c (output_parser): When the `$' is met, skip the end
1633 New variable, `number_of_dollar_signs', to check there's exactly
1634 one `$' in the parser skeleton.
1636 2000-10-02 Akim Demaille <akim@epita.fr>
1638 * lib/xstrdup.c: New file, from the fileutils.
1639 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1640 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1641 instead of strlen + xmalloc + strcpy.
1642 * src/symtab.c (copys): Remove, use xstrdup instead.
1644 2000-10-02 Akim Demaille <akim@epita.fr>
1646 * src/gram.h (associativity): New enum type which replaces the
1647 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1648 `right_assoc', `left_assoc' and `non_assoc'.
1649 Adjust all dependencies.
1650 * src/reader.c: Formatting changes.
1651 (LTYPESTR): Don't define it, use it as a literal in
1652 `reader_output_yylsp'.
1653 * src/symtab.h (symbol_class): New enum type which replaces the
1654 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1655 `sunknown', `stoken and `snterm'.
1657 2000-10-02 Akim Demaille <akim@epita.fr>
1659 * src/getargs.c (fixed_outfiles): Rename as...
1660 (yaccflag): for consistency and accuracy.
1661 Adjust dependencies.
1663 2000-10-02 Akim Demaille <akim@epita.fr>
1665 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1666 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1667 difficult and introduced a lot of core dump. It turns out that
1668 Bison used an implementation of `xmalloc' based on `calloc', and
1669 at various places it does depend upon the initialization to 0. I
1670 have not tried to isolate the pertinent places, and all the former
1671 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1672 someone should address this issue.
1674 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1675 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1677 Adjust dependencies.
1678 * src/warshall.h: New file.
1681 2000-10-02 Akim Demaille <akim@epita.fr>
1683 Various anti-`extern in *.c' changes.
1685 * src/system.h: Include `assert.h'.
1687 2000-10-02 Akim Demaille <akim@epita.fr>
1689 * src/state.h (nstates, final_state, first_state, first_shift)
1690 (first_reduction): Move their exportation from here...
1691 * src/LR0.h: to here.
1692 Adjust dependencies.
1693 * src/getargs.c (statisticsflag): New variable.
1694 Add support for `--statistics'.
1695 Adjust dependencies.
1697 Remove a lot of now useless `extern' statements in most files.
1699 2000-10-02 Akim Demaille <akim@epita.fr>
1701 * src/LR0.h: New file.
1704 2000-10-02 Akim Demaille <akim@epita.fr>
1706 * src/print.h: New file.
1708 * src/print.c: Formatting and ordering changes.
1709 (verbose, terse): Replace with...
1710 (print_results): this new function.
1711 Adjust dependencies.
1713 2000-10-02 Akim Demaille <akim@epita.fr>
1715 * src/conflicts.c (conflict_report): New function.
1716 (conflict_log, verbose_conflict_log): Replace with...
1717 (print_conflicts): this function.
1718 Adjust dependencies.
1719 * src/conflicts.h: New file.
1720 Propagate its inclusion.
1722 2000-10-02 Akim Demaille <akim@epita.fr>
1724 * src/nullable.h: New file.
1725 Propagate its inclusion.
1726 * src/nullable.c: Formatting changes.
1728 2000-10-02 Akim Demaille <akim@epita.fr>
1730 * src/reduce.h: New file.
1731 Propagate its inclusion.
1732 * src/reduce.c: Topological sort and other formatting changes.
1733 (bool, TRUE, FALSE): Move their definition to...
1734 * src/system.h: here.
1736 2000-10-02 Akim Demaille <akim@epita.fr>
1738 * src/files.c: Formatting changes.
1739 (tryopen, tryclose, openfiles): Rename as...
1740 (xfopen, xfclose, open_files): this.
1741 (stringappend): static.
1742 * src/files.h: Complete the list of exported symbols.
1745 2000-10-02 Akim Demaille <akim@epita.fr>
1747 * src/reader.h: New file.
1748 Propagate its use instead of tedious list of `extern' and
1750 * src/reader.c: Formatting changes, topological sort,
1753 2000-10-02 Akim Demaille <akim@epita.fr>
1755 * src/lex.h: Prototype `lex.c' exported functions.
1756 * src/reader.c: Adjust.
1757 * src/lex.c: Formatting changes.
1758 (safegetc): Rename as...
1761 2000-10-02 Akim Demaille <akim@epita.fr>
1763 * src/lalr.h: New file.
1764 Propagate its inclusion instead of prototypes and `extern'.
1765 * src/lalr.c: Formatting changes, topological sorting etc.
1767 2000-10-02 Akim Demaille <akim@epita.fr>
1769 * src/output.c (token_actions): Introduce a temporary array,
1770 YYDEFACT, that makes it possible for this function to use
1773 2000-10-02 Akim Demaille <akim@epita.fr>
1775 `user_toknums' is output as a `short[]' in `output.c', while it is
1776 defined as a `int[]' in `reader.c'. For consistency with the
1777 other output tables, `user_toknums' is now defined as a table of
1780 * src/reader.c (user_toknums): Be a short table instead of an int
1782 Adjust dependencies.
1784 Factor the short table outputs.
1786 * src/output.c (output_short_table): New function.
1787 * src/output.c (output_gram, output_stos, output_rule_data)
1788 (output_base, output_table, output_check): Use it.
1790 2000-10-02 Akim Demaille <akim@epita.fr>
1792 * src/output.c (output): Topological sort of the functions, in
1793 order to get rid of the `static' prototypes.
1794 No longer use `register'.
1795 * src/output.h: New file.
1796 Propagate its inclusion in files explicitly prototyping functions
1799 2000-09-21 Akim Demaille <akim@epita.fr>
1801 * src/atgeneral.m4: Update from Autoconf.
1803 2000-09-21 Akim Demaille <akim@epita.fr>
1805 * src/closure.h: New file.
1806 * src/closure.c: Formatting changes, topological sort over the
1807 functions, use of closure.h.
1808 (initialize_closure, finalize_closure): Rename as...
1809 (new_closure, free_closure): these. Adjust dependencies.
1810 * src/LR0.c: Formatting changes, topological sort, use of
1812 (initialize_states): Rename as...
1814 * src/Makefile.am (noinst_HEADERS): Adjust.
1816 2000-09-20 Akim Demaille <akim@epita.fr>
1818 * src/acconfig.h: Don't protect config.h against multiple
1820 Don't define PARAMS.
1821 * src/system.h: Define PARAMS.
1822 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1823 purpose of config.h. system.h must not try to fix wrong
1824 definitions in config.h.
1826 2000-09-20 Akim Demaille <akim@epita.fr>
1828 * src/derives.h: New file.
1829 * src/main.c, src/derives.h: Use it.
1831 * src/Makefile.am (noinst_HEADERS): Adjust.
1833 2000-09-20 Akim Demaille <akim@epita.fr>
1835 * tests/atgeneral.m4: Update from Autoconf.
1836 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1837 (AT_CHECK_CALC): New macros.
1838 Use these macros to test bison with options `', `--raw',
1839 `--debug', `--yacc', `--yacc --debug'.
1841 2000-09-19 Akim Demaille <akim@epita.fr>
1843 * src/output.c: Formatting changes.
1844 * src/machine.h: Remove, leaving its contents in...
1845 * src/system.h: here.
1847 Adjust all dependencies on stdio.h and machine.h.
1848 * src/getargs.h: New file.
1849 Let all `extern' declarations about getargs.c be replaced with
1850 inclusion of `getargs.h'.
1851 * src/Makefile.am (noinst_HEADERS): Adjust.
1853 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1855 (yyerror): Returns void, not int.
1856 * doc/bison.texinfo: Formatting changes.
1858 2000-09-19 Akim Demaille <akim@epita.fr>
1860 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1863 2000-09-18 Akim Demaille <akim@epita.fr>
1865 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1866 * src/Makefile.am (INCLUDES): Don't.
1867 Be ready to fetch headers in lib/.
1869 2000-09-18 Akim Demaille <akim@epita.fr>
1871 * doc/bison.texinfo: Update the copyright.
1872 ANSIfy and GNUify the examples.
1873 Remove the old menu.
1875 2000-09-18 Akim Demaille <akim@epita.fr>
1877 First set of tests: use the `calc' example from the documentation.
1879 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1880 is defined only when YYDEBUG is.
1881 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1882 * src/files.c (tryopen, tryclose): Formatting changes.
1883 Move to the top and be static.
1884 * src/reader.c (read_signed_integer): Likewise.
1885 * tests/calc.m4: New file.
1886 * Makefile.am, suite.m4: Adjust.
1887 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1889 2000-09-18 Akim Demaille <akim@epita.fr>
1891 Add support for an Autotest test suite for Bison.
1893 * m4/m4.m4, m4/atconfig.m4: New files.
1894 * m4/Makefile.am (EXTRA_DIST): Adjust.
1895 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1897 * src/getargs.c: Display a more standard --version message.
1898 * src/reader.c (reader): Formatting changes.
1899 No longer depend upon VERSION_STRING.
1900 * configure.in: No longer use `dnl'.
1901 Set up the test suite and the new directory `tests/.
1902 (VERSION_STRING): Remove.
1904 2000-04-14 Akim Demaille <akim@epita.fr>
1906 * src/reader.c (copy_comment2): New function, same as former
1907 `copy_comment', but outputs into two FILE *.
1908 (copy_comment): Use it.
1909 (parse_union_decl): Use it.
1910 (get_type, parse_start_decl): Use the same `invalid' message.
1911 (parse_start_decl, parse_union_decl): Use the same `multiple'
1913 (parse_union_decl, copy_guard, copy_action): Use the same
1914 `unmatched' message.
1915 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1917 2000-03-31 Akim Demaille <akim@epita.fr>
1919 * src/files.c (tryopen, tryclose): Move to the top.
1922 2000-03-31 Akim Demaille <akim@epita.fr>
1924 * src/main.c (main): Don't call `done', exit does it.
1926 2000-03-31 Akim Demaille <akim@epita.fr>
1928 * allocate.c: s/return (foo)/return foo/.
1931 * output.c: Likewise.
1932 * reader.c: Likewise.
1933 * symtab.c: Likewise.
1934 * vmsgetargs.c: Likewise.
1936 2000-03-31 Akim Demaille <akim@epita.fr>
1938 Clean up the error reporting functions.
1940 * src/report.c: New file.
1941 * src/report.h: Likewise.
1942 * src/Makefile.am: Adjust.
1943 * m4/error.m4: New file.
1944 * m4/Makefile.am: Adjust.
1945 * configure.in (jm_PREREQ_ERROR): Call it.
1946 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1948 (fatal, fatals): Remove. All callers use complain.c::fatal.
1949 (warn, warni, warns, warnss, warnss): Remove. All callers use
1950 complain.c::complain.
1951 (toomany): Remove, use fatal instead.
1952 * src/files.c (done): No argument, use complain_message_count.
1953 * src/main.c (main): Register `done' to `atexit'.
1955 * src/getargs.c (usage): More `fputs', less `fprintf'.
1957 2000-03-28 Akim Demaille <akim@epita.fr>
1959 * lib/: New directory.
1960 * Makefile.am (SUBDIRS): Adjust.
1961 * configure.in: Adjust.
1962 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1964 * src/alloca.c: Moved to lib/.
1965 * src/getopt.c: Likewise.
1966 * src/getopt1.c: Likewise.
1967 * src/getopt.h: Likewise.
1968 * src/ansi2knr.c: Likewise.
1969 * src/ansi2knr.1: Likewise.
1970 * src/Makefile.am: Adjust.
1971 * lib/Makefile.am: New file.
1973 2000-03-28 Akim Demaille <akim@epita.fr>
1975 * src/getargs.c (usage): Refresh the help message.
1977 2000-03-17 Akim Demaille <akim@epita.fr>
1979 * src/getopt1.c: Updated from textutils 2.0e
1980 * src/getopt.c: Likewise.
1981 * src/getopt.h: Likewise.
1983 2000-03-17 Akim Demaille <akim@epita.fr>
1985 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1986 the file name, not the whole `#line LINE FILE'.
1988 2000-03-17 Akim Demaille <akim@epita.fr>
1990 On syntax errors, report the token on which we choked.
1992 * src/bison.s1 (yyparse): In the label yyerrlab, when
1993 YYERROR_VERBOSE, add yychar in msg.
1995 2000-03-17 Akim Demaille <akim@epita.fr>
1997 * src/reader.c (copy_at): New function.
1998 (copy_guard): Use it.
1999 (copy_action): Use it.
2001 2000-03-17 Akim Demaille <akim@epita.fr>
2003 Be kind to translators, save some useless translations.
2005 * src/main.c (banner): New function.
2006 (fatal_banner): Use it.
2007 (warn_banner): Use it.
2009 2000-03-17 Akim Demaille <akim@epita.fr>
2011 * src/reader.c (copy_definition): Use copy_string and
2012 copy_comment. Removed now unused `match', `ended',
2014 (copy_comment, copy_string): Moved, to be visible from
2017 2000-03-17 Akim Demaille <akim@epita.fr>
2019 * src/reader.c (copy_string): Declare `static inline'. No
2020 problems with inline, since it is checked by configure.
2021 (copy_comment): Likewise.
2023 2000-03-17 Akim Demaille <akim@epita.fr>
2025 * src/reader.c (packsymbols): Formatting changes.
2027 2000-03-17 Akim Demaille <akim@epita.fr>
2029 * src/reader.c (copy_comment): New function, factored out from:
2030 (copy_action): Use it. Removed now unused `match', `ended',
2032 (copy_guard): Likewise.
2034 2000-03-17 Akim Demaille <akim@epita.fr>
2036 * src/reader.c (copy_string): New function, factored out from:
2037 (copy_action): Use it.
2038 (copy_guard): Likewise.
2040 2000-03-17 Akim Demaille <akim@epita.fr>
2042 Change the handling of @s so that they behave exactly like $s.
2043 There is now a pseudo variable @$ (readble and writable), location
2044 of the lhs of the rule (by default ranging from the location of
2045 the first symbol of the rhs, to the location of the last symbol,
2046 or, if the rhs is empty, YYLLOC).
2048 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2050 (yyparse): When providing a default semantic action, provide a
2051 default location action.
2052 (after the $): No longer change `*YYLSP', just stack YYLOC the
2053 same way you stack YYVAL.
2054 * src/reader.c (read_declarations): Use warns.
2055 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2056 (copy_action, case '@'): Likewise.
2057 Use a standard error message, to save useless work from
2060 2000-03-17 Akim Demaille <akim@epita.fr>
2062 * src/bison.s1: Formatting and cosmetics changes.
2063 * src/reader.c: Likewise.
2064 Update the Copyright notice.
2066 2000-03-17 Akim Demaille <akim@epita.fr>
2068 * src/bison.s1 (#line): All set to `#line' only, since the
2069 Makefile now handles them.
2071 2000-03-16 Akim Demaille <akim@epita.fr>
2073 * src/output.c (output_rule_data): Output the documentation of
2075 (Copyright notice): Update.
2078 2000-03-16 Akim Demaille <akim@epita.fr>
2080 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2081 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2082 One `#if YYDEBUG' remains, since it uses variables which are
2083 defined only if `YYDEBUG != 0'.
2085 2000-03-16 Akim Demaille <akim@epita.fr>
2087 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2088 and related variables so that the similarities are highlighted.
2090 2000-03-16 Akim Demaille <akim@epita.fr>
2092 * src/bison.s1: Properly indent CPP directives.
2094 2000-03-16 Akim Demaille <akim@epita.fr>
2096 * src/bison.s1: Properly indent the `alloca' CPP section.
2098 2000-03-16 Akim Demaille <akim@epita.fr>
2100 Do not hard code values of directories in `configure.in'.
2101 Update the `configure' tool chain.
2103 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2105 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2106 (AC_OUTPUT): Add m4/Makefile.
2107 Bump to bison 1.28a, 1.29 has never been released.
2108 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2109 handled via src/Makefile.am.
2110 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2111 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2113 * Makefile.am (SUBDIRS): Add m4.
2114 (ACLOCAL_AM_FLAGS): New variable.
2115 (AUTOMAKE_OPTIONS): Add check-news.
2116 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2117 the proper line number and file name.
2118 (DEFS): Propagate the location of bison library files and of the
2120 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2122 * acinclude.m4: Remove, replaced by the directory m4.
2123 * m4/Makefile.am (EXTRA_DIST): New variable.
2124 * m4/gettext.m4: New file, from the fileutils.
2125 * m4/lcmessage.m4: Likewise
2126 * m4/progtest.m4: Likewise.
2127 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2129 2000-03-10 Akim Demaille <akim@epita.fr>
2132 Formatting changes of various comments.
2133 Respect the GNU coding standards at various places.
2134 Don't use `_()' when no translation is needed.
2136 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2139 OS/2 honors TMPDIR environment variable.
2141 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2143 * doc/bison.texinfo: Tweaked spelling and grammar.
2145 Removed reference to price of printed copy.
2146 Mention BISON_SIMPLE and BISON_HAIRY.
2148 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2150 * configure.in, NEWS:
2151 Bison 1.29 released.
2153 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2155 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2156 Added reference card.
2158 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2160 * po/ru.po: Added Russian translation.
2162 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2164 * configure.in: Added Russian translation.
2166 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2168 * configure.in, NEWS, README:
2169 Released version 1.28.
2171 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2174 Squashed redefinition warning on some systems.
2176 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2177 Have configure build version string instead of relying on ANSI string
2180 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2182 * po/POTFILES.in: Got rid of version.c.
2184 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2186 * acconfig.h, configure.in:
2187 Have configure build version string instead of relying on ANSI string
2190 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2193 Dropped mention of `+' for long-named options.
2195 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2197 * src/files.c: Added <unistd.h> for unlink().
2199 * src/Makefile.am, src/system.h:
2202 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2204 * README: Added a FAQ list.
2206 * configure.in, acconfig.h:
2209 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2211 * doc/FAQ, doc/Makefile.am:
2214 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2216 * src/alloc.h, src/symtab.h, src/version.c:
2217 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2219 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2221 * src/.cvsignore, src/Makefile.am:
2222 Reorganized: sources in `src', documentation in `doc'.
2224 * src/lex.c (literalchar):
2225 fixed the code for escaping double quotes (thanks
2228 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2230 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2231 Adjusted paths to reflect directory reorganization.
2233 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2235 * doc/.cvsignore, doc/Makefile.am:
2236 Reorganized: sources in `src', documentation in `doc'.
2238 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2241 Updated AC_INIT file to reflect directory reorganization.
2243 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2244 Reorganized: sources in `src', documentation in `doc'.
2246 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2249 Don't declare calloc() and realloc() if not necessary.
2251 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2253 * configure.in, acconfig.h, acinclude.m4:
2254 Don't declare calloc() and realloc() if not necessary.
2256 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2258 * po/.cvsignore: Added i18n support.
2260 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2262 * acconfig.h, configure.in, Makefile.am:
2265 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2267 * src/bison.s1: Fixed #line numbers.
2269 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2271 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2272 Added PO files from Translation Project.
2274 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2277 Added support for non-ANSI compilers (ansi2knr).
2279 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2281 * configure.in: Bumped version number to 1.27.
2284 Added `bison.simple' to list of files removed by `make distclean'.
2286 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2288 * src/files.c, src/files.h:
2289 Defined locations of parser files in config.h instead of Makefile.
2291 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2293 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2294 Defined locations of parser files in config.h instead of Makefile.
2296 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2299 Removed inappropriate use of $< macro.
2301 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2303 * po/Makefile.in.in, po/POTFILES.in:
2304 Add `po' directory skeleton.
2306 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2308 * README: Document help-bison list.
2310 * configure.in: Add check for mkstemp().
2312 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2314 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2315 Hush a few compiler warnings.
2318 Add tryclose(), which verifies that fclose was successful.
2319 Hush a couple of compiler warnings.
2321 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2323 * Makefile.am, OChangeLog:
2324 ChangeLog is now automatically generated. Include the old version as
2327 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2329 * 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:
2332 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2334 * doc/bison.texinfo: Fix formatting glitch.
2336 * doc/bison.texinfo: Update FSF address.
2338 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2340 * acconfig.h: Update FSF address.
2342 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2345 Don't define PACKAGE here, since config.h defines it.
2347 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2349 * src/reader.c: Update copyright date.
2352 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2353 favor of output directly to stderr (avoids buffer overruns).
2355 * src/reader.c: Some checks for premature EOF.
2357 * 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:
2358 Use prototypes if the compiler understands them.
2360 * src/files.c: Honor TMPDIR on Unix hosts.
2361 Use prototypes if the compiler understands them.
2364 Fix a couple of buffer overrun bugs.
2365 Use prototypes if the compiler understands them.
2367 * src/system.h: Include unistd.h and ctype.h.
2368 Use #ifdef instead of #if for NLS symbols.
2370 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2372 * doc/bison.texinfo:
2373 Delete comment "consider using @set for edition number, etc..." since
2374 we now are doing so.
2376 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2379 Use prototypes if the compiler understands them.
2381 * NEWS: Document 1.26 highlights.
2383 * Makefile.am: Require Automake 1.3 or later.
2386 Use prototypes if the compiler understands them.
2388 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2391 Use VERSION symbol from automake for version number.
2393 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2395 * acconfig.h, configure.in, version.cin:
2396 Use VERSION symbol from automake for version number.
2398 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2401 Distribute original version of simple parser (bison.s1), not built
2402 version (bison.simple).
2404 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2406 * doc/bison.texinfo: Add info dir entry.
2408 * doc/bison.texinfo:
2409 Let automake put version number into documentation.
2411 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2413 * src/bison.cld, src/build.com, src/vmshlp.mar:
2414 Add non-RCS files from /gd/gnu/bison.
2416 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2419 Document the BISON_HAIRY and BISON_SIMPLE variables.
2421 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2423 * src/version.c: Build version.c automatically.
2426 Fix token numbering (used to start at 258, not 257).
2428 * src/system.h: Include config.h.
2430 * src/getargs.c: Update bug report address.
2432 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2433 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2435 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2438 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2440 * configure.in, version.cin:
2441 Build version.c automatically.
2443 * AUTHORS: Add AUTHORS file.
2445 * README: Update bug report address.
2448 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2450 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2453 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2455 * doc/bison.texinfo: Clean up some formatting.
2457 1998-05-05 Richard Stallman <rms@gnu.org>
2459 * doc/bison.texinfo:
2460 Explain better why to make a pure parser.
2462 1998-01-05 Richard Stallman <rms@gnu.org>
2464 * src/files.c (openfiles):
2465 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2466 find a temporary directory, if possible. Do not unlink files while
2469 1997-08-25 Richard Stallman <rms@gnu.org>
2471 * src/reader.c (stack_offset;):
2472 Change some warni to warns.
2474 * src/lex.c (literalchar): Use warns, not warni.
2476 1997-06-28 Richard Stallman <rms@gnu.org>
2478 * src/bison.s1: Add a Bison version comment.
2480 * src/main.c (fatal, warn, berror):
2483 1997-06-28 Richard Stallman <rms@gnu.org>
2485 * Makefile.in (bison_version): New variable.
2486 (dist): Use that variable.
2487 (bison.s1): Substitute the Bison version into bison.simple.
2489 * bison.simple: Add a Bison version comment.
2491 1997-06-18 Richard Stallman <rms@gnu.org>
2493 * src/main.c (fatal, warn, berror):
2494 Make error messages standard.
2495 (toomany): Improve error message text.
2497 * 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:
2498 new.h renamed to alloc.h.
2500 1997-06-18 Richard Stallman <rms@gnu.org>
2502 * Makefile.in: new.h renamed to alloc.h.
2504 1997-05-24 Richard Stallman <rms@gnu.org>
2506 * src/lex.c (literalchar):
2507 Fix the code for escaping \, " and '.
2509 (lex): Avoid trouble when there are many chars
2510 to discard in a char literal with just several chars in it.
2512 1997-05-17 Richard Stallman <rms@gnu.org>
2515 Use malloc, if using alloca is troublesome.
2516 (YYSTACK_USE_ALLOCA): New flag macro.
2517 Define it for some systems and compilers.
2518 (YYSTACK_ALLOC): New macro.
2519 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2520 If it was malloc'd, free it.
2522 1997-05-17 Richard Stallman <rms@gnu.org>
2525 Use malloc, if using alloca is troublesome.
2526 (YYSTACK_USE_ALLOCA): New flag macro.
2527 Define it for some systems and compilers.
2528 (YYSTACK_ALLOC): New macro.
2529 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2530 If it was malloc'd, free it.
2532 1997-04-23 Richard Stallman <rms@gnu.org>
2535 (alloca) [__hpux]: Always define as __builtin_alloca.
2537 1997-04-23 Richard Stallman <rms@gnu.org>
2540 (alloca) [__hpux]: Always define as __builtin_alloca.
2542 1997-04-22 Richard Stallman <rms@gnu.org>
2545 [__hpux]: Include alloca.h (right for HPUX 10)
2546 instead of declaring alloca (right for HPUX 9).
2548 * src/bison.s1 (__yy_memcpy):
2549 Declare arg `count' as unsigned int.
2550 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2552 1997-04-22 Richard Stallman <rms@gnu.org>
2555 [__hpux]: Include alloca.h (right for HPUX 10)
2556 instead of declaring alloca (right for HPUX 9).
2558 * bison.simple (__yy_memcpy):
2559 Declare arg `count' as unsigned int.
2560 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2562 1997-01-03 Richard Stallman <rms@gnu.org>
2564 * src/allocate.c: [__STDC__ or _MSC_VER]:
2565 Declare calloc and realloc to return void *.
2567 1997-01-02 Richard Stallman <rms@gnu.org>
2570 [_MSC_VER]: Include stdlib.h and process.h.
2571 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2573 * src/main.c (main): Return FAILURE as a value.
2574 (printable_version): Declare arg as int, not char.
2576 1997-01-02 Richard Stallman <rms@gnu.org>
2578 * Makefile.in (dist):
2579 Explicitly check for symlinks, and copy them.
2581 1996-12-19 Richard Stallman <rms@gnu.org>
2584 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2586 1996-12-18 Paul Eggert <eggert@gnu.org>
2588 * src/bison.s1 (yyparse):
2589 If __GNUC__ and YYPARSE_PARAM are both defined,
2590 declare yyparse to have a void * argument.
2592 1996-12-18 Paul Eggert <eggert@gnu.org>
2594 * bison.simple (yyparse):
2595 If __GNUC__ and YYPARSE_PARAM are both defined,
2596 declare yyparse to have a void * argument.
2598 1996-12-17 Richard Stallman <rms@gnu.org>
2600 * src/reduce.c (nbits): Add some casts.
2602 1996-08-12 Richard Stallman <rms@gnu.org>
2604 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2606 1996-08-12 Richard Stallman <rms@gnu.org>
2608 * bison.simple: Test _MSDOS as well as _MSDOS_.
2610 1996-07-31 Richard Stallman <rms@gnu.org>
2613 [__sun && __i386]: Include alloca.h.
2615 1996-07-31 Richard Stallman <rms@gnu.org>
2618 [__sun && __i386]: Include alloca.h.
2620 1996-07-30 Richard Stallman <rms@gnu.org>
2622 * src/bison.s1: Comment change.
2624 * src/bison.s1: Test _MSDOS_, not MSDOS.
2626 1996-07-30 Richard Stallman <rms@gnu.org>
2628 * bison.simple: Comment change.
2630 * bison.simple: Test _MSDOS_, not MSDOS.
2632 1996-06-01 Richard Stallman <rms@gnu.org>
2634 * 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:
2635 Insert `_' macro around many string constants.
2638 Insert `_' macro around many string constants.
2640 (main): Call setlocale, bindtextdomain and textdomain.
2642 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2643 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2644 [ENABLE_NLS]: Include libintl.h.
2645 [ENABLE_NLS] (gettext): Define.
2646 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2647 (N_, PACKAGE, LOCALEDIR): New macros.
2649 1996-06-01 Richard Stallman <rms@gnu.org>
2651 * POTFILES.in: New file.
2653 * Makefile.in (allocate.o):
2654 Define target explicitly.
2656 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2657 (LDFLAGS): Set to @LDFLAGS@.
2658 (configure): Run autoconf only if preceding `cd' succeeds.
2659 (bison.s1): Redirect output to temporary file then move the
2660 temporary to the target, rather than redirecting directly to bison.s1.
2661 (clean): Remove config.status and config.log.
2662 (distclean): Don't remove config.status here.
2664 1996-05-12 Richard Stallman <rms@gnu.org>
2667 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2669 1996-05-12 Richard Stallman <rms@gnu.org>
2672 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2674 1996-05-11 Richard Stallman <rms@gnu.org>
2676 * src/bison.s1 (__yy_memcpy):
2677 Really reorder the args, as was supposedly done on Feb 14 1995.
2678 (yyparse): Calls changed accordingly.
2680 1996-05-11 Richard Stallman <rms@gnu.org>
2682 * Makefile.in (dist): Don't use $(srcdir).
2684 * bison.simple (__yy_memcpy):
2685 Really reorder the args, as was supposedly done on Feb 14 1995.
2686 (yyparse): Calls changed accordingly.
2688 1996-01-27 Richard Stallman <rms@gnu.org>
2690 * src/output.c (output_rule_data):
2691 Test YYERROR_VERBOSE in the conditional
2692 around the definition of ttyname.
2694 1995-12-29 Richard Stallman <rms@gnu.org>
2697 Fix line numbers in #line commands.
2699 1995-12-29 Richard Stallman <rms@gnu.org>
2702 Fix line numbers in #line commands.
2704 1995-12-27 Richard Stallman <rms@gnu.org>
2706 * src/bison.s1 (YYPARSE_PARAM_DECL):
2707 In C++, make it always null.
2708 (YYPARSE_PARAM_ARG): New macro.
2709 (yyparse): Use YYPARSE_PARAM_ARG.
2711 1995-12-27 Richard Stallman <rms@gnu.org>
2713 * bison.simple (YYPARSE_PARAM_DECL):
2714 In C++, make it always null.
2715 (YYPARSE_PARAM_ARG): New macro.
2716 (yyparse): Use YYPARSE_PARAM_ARG.
2718 1995-11-29 Richard Stallman <rms@gnu.org>
2720 * doc/bison.texinfo:
2721 Describe literal string tokens, %raw, %no_lines, %token_table.
2723 1995-11-29 Daniel Hagerty <hag@gnu.org>
2725 * doc/bison.texinfo: Fixed update date
2727 1995-10-16 Richard Stallman <rms@gnu.org>
2729 * src/version.c: Version 1.25.
2731 1995-10-16 Richard Stallman <rms@gnu.org>
2733 * NEWS: *** empty log message ***
2735 1995-10-16 Richard Stallman <rms@gnu.org>
2737 * doc/bison.1, doc/bison.rnh:
2740 1995-10-15 Richard Stallman <rms@gnu.org>
2742 * src/vmsgetargs.c, src/getargs.c:
2743 Added -n, -k, and -raw switches.
2744 (noparserflag, toknumflag, rawtoknumflag): New variables.
2746 * src/symtab.h (SALIAS):
2747 New #define for adding aliases to %token.
2748 (struct bucket): Added `alias' field.
2750 * src/reduce.c (reduce_grammar):
2751 Revise error message.
2752 (print_notices): Remove final `.' from error message.
2754 * src/reader.c (reader_output_yylsp):
2756 (readgram): Use `#if 0' around code that accepted %command
2757 inside grammar rules: The documentation doesn't allow it,
2758 and it will fail since the %command processors scan for the next %.
2759 (parse_token_decl): Extended the %token
2760 declaration to allow a multi-character symbol as an alias.
2761 (parse_thong_decl): New function.
2762 (read_declarations): Added %thong declarations.
2763 (read_declarations): Handle NOOP to deal with allowing
2764 % declarations as another means to specify the flags.
2765 (readgram): Allow %prec prior to semantics embedded in a rule.
2766 (skip_to_char, read_declarations, copy_definition)
2767 (parse_token_decl, parse_start_decl, parse_type_decl)
2768 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2769 (get_type_name, copy_guard, copy_action, readgram)
2770 (get_type, packsymbols): Revised most error messages.
2771 Changed `fatal' to `warnxxx' to avoid aborting for error.
2772 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2773 (read_declarations): Improve the error message for
2774 an invalid character. Do not abort.
2775 (read_declarations, copy_guard, copy_action): Use
2776 printable_version to avoid unprintable characters in printed output.
2777 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2778 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2779 Allow the type of a non-terminal can be given
2780 more than once, as long as all specifications give the same type.
2783 (output_headers, output_trailers, output, output_gram)
2784 (output_rule_data): Implement noparserflag variable.
2785 Implement toknumflag variable.
2786 (output): Call reader_output_yylsp to output LTYPESTR.
2788 * src/main.c (main):
2789 If reader sees an error, don't process the grammar.
2790 (fatals): Updated to not use VARARGS1.
2791 (printable_version, int_to_string, warn, warni, warns, warnss)
2792 (warnsss): New error reporting functions. Avoid abort for error.
2795 Added THONG and NOOP for alias processing.
2796 Added SETOPT for the new code that allows setting options with %flags.
2799 Include getopt.h. Add some extern decls.
2800 (safegetc): New function to deal with EOF gracefully.
2801 (literalchar); new function to deal with reading \ escapes.
2802 (lex): Use literalchar.
2803 (lex): Implemented "..." tokens.
2804 (literalchar, lex, parse_percent_token): Made tokenbuffer
2805 always contain the token. This includes growing the token
2806 buffer while reading an integer.
2807 (parse_percent_token): Replaced if-else statement with percent_table.
2808 (parse_percent_token): Added % declarations as another
2809 way to specify the flags -n, -l, and -r. Also added hooks for
2810 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2811 major changes to files.c.
2812 (lex) Retain in the incoming stream a character following
2814 (skip_white_space, lex): Revised most error messages
2815 and changed fatal to warn to avoid aborting.
2816 (percent_table): Added %thong declarations.
2818 * src/gram.h: Comment changes.
2820 * src/files.c (openfiles, open_extra_files, done):
2822 and actfile file. Handle noparserflag. Both for -n switch.
2824 * src/conflicts.c (resolve_sr_conflict):
2825 Remove use of alloca.
2827 1995-06-01 Jim Meyering <meyering@gnu.org>
2829 * doc/bison.texinfo: *** empty log message ***
2831 1995-05-06 Richard Stallman <rms@gnu.org>
2833 * src/bison.s1: Comment change.
2835 1995-05-06 Richard Stallman <rms@gnu.org>
2837 * bison.simple: Comment change.
2839 1995-05-03 Richard Stallman <rms@gnu.org>
2841 * src/version.c: Version now 1.24.
2843 * src/bison.s1: Change distribution terms.
2845 * src/version.c: Version now 1.23.
2847 1995-05-03 Richard Stallman <rms@gnu.org>
2849 * doc/bison.texinfo:
2850 Rewrite "Conditions for Using Bison".
2851 Update version to 1.24.
2853 1995-05-03 Richard Stallman <rms@gnu.org>
2855 * bison.simple: Change distribution terms.
2857 1995-02-23 Richard Stallman <rms@gnu.org>
2859 * src/files.c: Test __VMS_POSIX as well as VMS.
2861 1995-02-14 Jim Meyering <meyering@gnu.org>
2863 * src/bison.s1 (__yy_memcpy):
2864 Renamed from __yy_bcopy to avoid
2865 confusion. Reverse FROM and TO arguments to be consistent with
2868 1995-02-14 Jim Meyering <meyering@gnu.org>
2870 * bison.simple (__yy_memcpy):
2871 Renamed from __yy_bcopy to avoid
2872 confusion. Reverse FROM and TO arguments to be consistent with
2875 1994-11-10 David J. MacKenzie <djm@gnu.org>
2881 * Makefile.in (DISTFILES): Include NEWS.
2883 * Makefile.in (DISTFILES):
2884 Include install-sh, not install.sh.
2886 * configure.in: Update to Autoconf v2 macro names.
2888 1994-10-05 David J. MacKenzie <djm@gnu.org>
2890 * Makefile.in: fix typo
2892 * Makefile.in (prefix, exec_prefix):
2893 Let configure set them.
2895 1994-09-28 David J. MacKenzie <djm@gnu.org>
2897 * Makefile.in: Set datadir to $(prefix)/share.
2899 1994-09-15 Richard Stallman <rms@gnu.org>
2902 Update copyright notice and GPL version.
2904 1994-09-15 Richard Stallman <rms@gnu.org>
2907 Update copyright notice and GPL version.
2909 1994-07-12 Richard Stallman <rms@gnu.org>
2911 * src/reduce.c, src/reader.c:
2914 1994-05-05 David J. MacKenzie <djm@gnu.org>
2916 * Makefile.in: entered into RCS
2918 1994-03-26 Richard Stallman <rms@gnu.org>
2920 * src/bison.s1: entered into RCS
2922 1994-03-26 Richard Stallman <rms@gnu.org>
2924 * bison.simple: entered into RCS
2926 1994-03-25 Richard Stallman <rms@gnu.org>
2928 * src/main.c: entered into RCS
2930 1994-03-24 Richard Stallman <rms@gnu.org>
2932 * src/conflicts.c: entered into RCS
2934 1994-01-02 Richard Stallman <rms@gnu.org>
2936 * Makefile.in: *** empty log message ***
2938 1993-11-21 Richard Stallman <rms@gnu.org>
2940 * src/bison.s1: *** empty log message ***
2942 1993-11-21 Richard Stallman <rms@gnu.org>
2944 * doc/bison.texinfo: entered into RCS
2946 * doc/bison.texinfo: *** empty log message ***
2948 1993-11-21 Richard Stallman <rms@gnu.org>
2950 * bison.simple: *** empty log message ***
2952 1993-10-25 David J. MacKenzie <djm@gnu.org>
2954 * doc/bison.texinfo: *** empty log message ***
2956 1993-10-19 Richard Stallman <rms@gnu.org>
2958 * src/bison.s1: *** empty log message ***
2960 1993-10-19 Richard Stallman <rms@gnu.org>
2962 * bison.simple: *** empty log message ***
2964 1993-10-14 Richard Stallman <rms@gnu.org>
2966 * src/bison.s1: *** empty log message ***
2968 1993-10-14 Richard Stallman <rms@gnu.org>
2970 * bison.simple: *** empty log message ***
2972 1993-09-14 David J. MacKenzie <djm@gnu.org>
2974 * doc/bison.texinfo: *** empty log message ***
2976 1993-09-13 Noah Friedman <friedman@gnu.org>
2978 * Makefile.in: *** empty log message ***
2980 1993-09-10 Richard Stallman <rms@gnu.org>
2982 * src/conflicts.c: *** empty log message ***
2984 * src/system.h: entered into RCS
2986 1993-09-10 Richard Stallman <rms@gnu.org>
2988 * doc/bison.1: entered into RCS
2990 1993-09-06 Noah Friedman <friedman@gnu.org>
2992 * src/version.c: entered into RCS
2994 1993-09-06 Noah Friedman <friedman@gnu.org>
2996 * Makefile.in: *** empty log message ***
2998 1993-07-30 David J. MacKenzie <djm@gnu.org>
3000 * Makefile.in: *** empty log message ***
3002 1993-07-24 Richard Stallman <rms@gnu.org>
3004 * src/bison.s1: *** empty log message ***
3006 1993-07-24 Richard Stallman <rms@gnu.org>
3008 * bison.simple: *** empty log message ***
3010 1993-07-08 David J. MacKenzie <djm@gnu.org>
3012 * Makefile.in: *** empty log message ***
3014 1993-07-04 Richard Stallman <rms@gnu.org>
3016 * src/bison.s1: *** empty log message ***
3018 1993-07-04 Richard Stallman <rms@gnu.org>
3020 * bison.simple: *** empty log message ***
3022 1993-06-26 David J. MacKenzie <djm@gnu.org>
3024 * src/getargs.c: entered into RCS
3026 1993-06-26 David J. MacKenzie <djm@gnu.org>
3028 * doc/bison.texinfo: *** empty log message ***
3030 * doc/bison.1: New file.
3032 1993-06-25 Richard Stallman <rms@gnu.org>
3034 * src/getargs.c: New file.
3036 1993-06-16 Richard Stallman <rms@gnu.org>
3038 * src/bison.s1: *** empty log message ***
3040 1993-06-16 Richard Stallman <rms@gnu.org>
3042 * bison.simple: *** empty log message ***
3044 1993-06-03 Richard Stallman <rms@gnu.org>
3046 * src/bison.s1: New file.
3048 1993-06-03 Richard Stallman <rms@gnu.org>
3050 * doc/bison.texinfo: *** empty log message ***
3052 1993-06-03 Richard Stallman <rms@gnu.org>
3054 * bison.simple: New file.
3056 1993-05-19 Richard Stallman <rms@gnu.org>
3058 * doc/bison.texinfo: New file.
3060 1993-05-07 Noah Friedman <friedman@gnu.org>
3062 * Makefile.in: *** empty log message ***
3064 1993-04-28 Noah Friedman <friedman@gnu.org>
3066 * src/reader.c: *** empty log message ***
3068 1993-04-23 Noah Friedman <friedman@gnu.org>
3070 * src/alloc.h: entered into RCS
3072 1993-04-20 David J. MacKenzie <djm@gnu.org>
3074 * src/version.c: *** empty log message ***
3076 * src/files.c, src/allocate.c:
3079 * src/reader.c: *** empty log message ***
3081 * src/lex.c: entered into RCS
3083 * src/conflicts.c: New file.
3085 * src/symtab.c: entered into RCS
3087 * src/alloc.h: New file.
3089 * src/LR0.c: entered into RCS
3091 1993-04-18 Noah Friedman <friedman@gnu.org>
3093 * src/reader.c: New file.
3095 * src/version.c: *** empty log message ***
3097 1993-04-18 Noah Friedman <friedman@gnu.org>
3099 * Makefile.in: *** empty log message ***
3101 1993-04-17 Noah Friedman <friedman@gnu.org>
3103 * Makefile.in: *** empty log message ***
3105 1993-04-15 Richard Stallman <rms@gnu.org>
3107 * src/main.c, src/files.c:
3110 1993-04-15 Noah Friedman <friedman@gnu.org>
3112 * configure.in: entered into RCS
3114 * configure.in: *** empty log message ***
3116 * configure.in: New file.
3118 1993-04-14 Richard Stallman <rms@gnu.org>
3120 * Makefile.in: New file.
3122 1993-04-13 Richard Stallman <rms@gnu.org>
3124 * src/version.c: New file.
3126 1993-03-25 Richard Stallman <rms@gnu.org>
3128 * src/output.c: entered into RCS
3130 1992-09-25 Richard Stallman <rms@gnu.org>
3132 * configure.bat: entered into RCS
3134 1992-06-22 Richard Stallman <rms@gnu.org>
3136 * src/vmsgetargs.c: entered into RCS
3138 1992-06-22 Richard Stallman <rms@gnu.org>
3140 * doc/bison.rnh: entered into RCS
3142 1992-04-20 David J. MacKenzie <djm@gnu.org>
3144 * README: entered into RCS
3146 1992-01-22 Richard Stallman <rms@gnu.org>
3148 * src/machine.h: entered into RCS
3150 1991-12-21 Richard Stallman <rms@gnu.org>
3152 * src/lalr.c, src/closure.c:
3155 1991-12-20 Richard Stallman <rms@gnu.org>
3157 * src/state.h: entered into RCS
3159 1991-12-18 Richard Stallman <rms@gnu.org>
3161 * src/print.c, src/nullable.c, src/derives.c:
3164 1991-11-03 David J. MacKenzie <djm@gnu.org>
3166 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3169 1988-09-09 Richard Stallman <rms@gnu.org>
3171 * src/bison.hairy: entered into RCS
3173 1987-12-16 Richard Stallman <rms@gnu.org>
3175 * REFERENCES: entered into RCS