1 2001-11-01 Akim Demaille <akim@epita.fr>
3 * tests/calc.at: Catch up with 1.30.
4 * configure.in: Bump to 1.49a.
5 Adjust to newer Autotest.
7 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
9 * src/conflicts.c: Move global variables rrc_total and src_total ...
10 (print_conflicts): here.
11 * src/output.c (output): Free global variable user_toknums.
12 * src/lex.c (token_obstack): Become static.
14 2001-10-18 Akim Demaille <akim@epita.fr>
16 * tests/atlocal.in (GCC): Add.
17 * tests/calc.at: s/m4_match/m4_bmatch/.
18 s/m4_patsubst/m4_bpatsubst/.
19 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
20 * configure.in: AC_SUBST(GCC).
22 2001-10-14 Marc Autret <autret_m@epita.fr>
24 * src/options.c (create_long_option_table): Fix.
26 2001-10-10 Akim Demaille <akim@epita.fr>
28 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
30 2001-10-04 Akim Demaille <akim@epita.fr>
32 * src/reader.c (parse_union_decl): Push the caracters in
33 union_obstack, not attrs_obstack.
35 2001-10-04 Akim Demaille <akim@epita.fr>
37 Merge in the branch 1.29.
39 * src/reader.c (packsymbols): Use a temporary obstack for
40 `%%tokendef', since output_stack is already used elsewhere.
42 2001-10-02 Akim Demaille <akim@epita.fr>
46 2001-10-02 Akim Demaille <akim@epita.fr>
50 2001-10-02 Akim Demaille <akim@epita.fr>
52 * tests/regression.at (Invalid CPP headers): New.
53 From Alexander Belopolsky.
54 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
56 2001-10-02 Akim Demaille <akim@epita.fr>
58 * tests/regression.at (Invalid input): New.
59 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
62 2001-10-02 Akim Demaille <akim@epita.fr>
64 * tests/calc.at: Now that --debug works, the tests must be adjusted.
66 2001-10-02 Akim Demaille <akim@epita.fr>
68 * src/output.c (output_parser): Assert `skeleton'.
69 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
73 2001-10-01 Marc Autret <autret_m@epita.fr>
75 * src/lex.h: Echo modifications.
76 * src/lex.c (unlex): Parameter is now token_t.
79 2001-10-01 Marc Autret <autret_m@epita.fr>
81 * src/main.c: Include lex.h.
84 2001-09-29 Akim Demaille <akim@epita.fr>
86 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
88 2001-09-28 Akim Demaille <akim@epita.fr>
90 * tests/testsuite.at: Update to newer Autotest.
91 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
93 2001-09-27 Akim Demaille <akim@epita.fr>
95 Position independent wrapper.
97 * tests/bison: Remove.
98 * tests/bison.in: New.
99 * configure.in: Adjust.
101 2001-09-27 Paul Eggert <eggert@twinsun.com>
103 Port quotearg fixes from tar 1.13.24.
105 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
107 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
108 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
110 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
111 * m4/mbrtowc.m4: New file.
112 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
113 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
115 2001-09-27 Akim Demaille <akim@epita.fr>
119 2001-09-27 Akim Demaille <akim@epita.fr>
123 2001-09-25 Akim Demaille <akim@epita.fr>
125 * src/system.h: Include `xalloc.h'.
126 Remove it from the C files.
127 * src/files.c (output_files): Free the obstacks.
128 * src/lex.c (init_lex): Rename as...
131 * src/main.c (main): Use it.
133 2001-09-24 Marc Autret <autret_m@epita.fr>
135 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
136 to output informations in fout (FILE*).
137 (open_graph, close_graph): Likewise.
138 (output_graph, output_edge, output_node): Likewise.
139 * src/vcg.h: Update function prototypes.
140 * src/print_graph.c (print_graph): Open output graph file.
141 (print_actions): Adjust.
142 * src/files.h: Remove extern declaration.
143 * src/files.c: Remove graph_obstack declaration.
144 (open_files): Remove graph_obstack initialization.
145 (output_files): Remove graph_obstack saving.
147 2001-09-24 Marc Autret <autret_m@epita.fr>
149 * src/files.c (compute_output_file_names): Fix.
151 2001-09-24 Marc Autret <autret_m@epita.fr>,
152 Akim Demaille <akim@epita.fr>
154 * src/reader.c (reader): Remove call to free_symtab ().
155 * src/main.c (main): Call it here.
157 * src/conflicts.c (initialize_conflicts): Rename as...
158 (solve_conflicts): this.
159 * src/print.c (print_core, print_actions, print_state)
160 (print_grammar): Dump to a file instead a `output_obstack'.
161 (print_results): Dump `output_obstack', and then proceed with the
163 * src/files.c (compute_output_file_names, close_files): New.
164 (output_files): Adjust.
165 * src/main.c (main): Adjust.
167 2001-09-23 Marc Autret <autret_m@epita.fr>
169 * src/files.c (compute_header_macro): Computes header macro name
170 from spec_defines_file when given.
172 2001-09-23 Marc Autret <autret_m@epita.fr>
174 * src/files.c (output_files): Add default extensions.
176 2001-09-22 Akim Demaille <akim@epita.fr>
178 * src/conflicts.c (finalize_conflicts): Rename as...
179 (free_conflicts): this.
181 2001-09-22 Akim Demaille <akim@epita.fr>
183 * src/gram.c (gram_free): Rename back as...
185 (output_token_translations): Free `token_translations'.
186 * src/symtab.c (free_symtab): Free the tag field.
188 2001-09-22 Akim Demaille <akim@epita.fr>
190 Remove `translations' as it is always set to true.
192 * src/gram.h: Adjust.
193 * src/reader.c (packsymbols, parse_token_decl): Adjust
194 * src/print.c (print_grammar): Adjust.
195 * src/output.c (output_token_translations): Adjust.
196 * src/lex.c (lex): Adjust.
197 * src/gram.c: Be sure the set pointers to NULL.
198 (dummy): Rename as...
201 2001-09-22 Akim Demaille <akim@epita.fr>
203 * configure.in: Invoke AM_LIB_DMALLOC.
204 * src/system.h: Use dmalloc.
205 * src/LR0.c: Be sure to have pointers initialized to NULL.
206 (allocate_itemsets): Allocate kernel_items only if needed.
208 2001-09-22 Akim Demaille <akim@epita.fr>
210 * configure.in: Bump to 1.29b.
211 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
212 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
213 need xmalloc.c in calc.y.
216 2001-09-21 Akim Demaille <akim@epita.fr>
219 * Makefile.maint, config/config.guess, config/config.sub,
220 * config/missing: Update from masters.
221 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
223 * configure.in (ALL_LINGUAS): Add `tr'.
225 2001-09-21 Akim Demaille <akim@epita.fr>
227 * tests/Makefile.am (package.m4): Move to...
228 ($(srcdir)/$(TESTSUITE)): here.
230 2001-09-20 Akim Demaille <akim@epita.fr>
232 * src/complain.c: No longer try to be standalone: use system.h.
233 Don't assume __STDC__ is defined to 1. Just test if it is defined.
234 * src/complain.h: Likewise.
235 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
236 Remove the unused variable `n'.
237 From Albert Chin-A-Young.
239 2001-09-18 Marc Autret <autret_m@epita.fr>
241 * doc/bison.1: Update.
242 * doc/bison.texinfo (Bison Options): Update --defines and --graph
244 (Option Cross Key): Update.
247 2001-09-18 Marc Autret <autret_m@epita.fr>
249 * tests/regression.at: New test (comment in %union).
251 2001-09-18 Marc Autret <autret_m@epita.fr>
253 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
255 Reported by Keith Browne.
257 2001-09-18 Marc Autret <autret_m@epita.fr>
259 * tests/output.at: Add tests for --defines and --graph.
261 2001-09-18 Marc Autret <autret_m@epita.fr>
263 * tests/output.at: Removes tests of %{header,src}_extension features.
265 2001-09-18 Akim Demaille <akim@epita.fr>
267 * tests/Makefile.am (package.m4): New.
268 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
269 (_AT_CHECK_CALC_ERROR): Likewise.
270 Factor the `, ' part of verbose error messages.
272 2001-09-18 Marc Autret <autret_m@epita.fr>
274 * src/getargs.c (longopts): Declare --defines and --graph as options
275 with optional arguments.
276 * src/files.h: Add extern declarations.
277 * src/files.c (spec_graph_file, spec_defines_file): New.
278 (output_files): Update.
279 Remove CPP-outed code.
281 2001-09-18 Marc Autret <autret_m@epita.fr>
283 Turn off %{source,header}_extension feature.
285 * src/files.c (compute_exts_from_gf): Update.
286 (compute_exts_from_src): Update.
287 (output_files): CPP-out useless code.
288 * src/files.h: Remove {header,source}_extension extern declarations.
289 * src/reader.c (parse_dquoted_param): CPP-out.
290 (parse_header_extension_decl): Remove.
291 (parse_source_extension_decl): Remove.
292 (read_declarations): Remove cases tok_{hdrext,srcext}.
293 * src/lex.c (percent_table): Remove {header,source}_extension entries.
294 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
296 2001-09-10 Akim Demaille <akim@epita.fr>
298 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
299 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
300 (AT_CHECK_OUTPUT): this.
301 Merely check ls' exit status, its output is useless.
303 2001-09-10 Akim Demaille <akim@epita.fr>
305 * tests/calc.at: Use m4_match.
306 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
308 2001-09-10 Marc Autret <autret_m@epita.fr>,
309 Akim Demaille <akim@epita.fr>
311 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
313 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
315 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
316 * src/lex.h: Adjust prototype.
317 (token_t): Add `tok_undef'.
318 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
319 (parse_percent_token): Now returns token_t.
320 Add default statement in switch.
321 (lex): Separate `c' as an input variable, from the token_t result
323 (unlexed): Is a token_t.
325 2001-09-10 Akim Demaille <akim@epita.fr>
327 * configure.in: Bump to 1.29a.
329 2001-09-07 Akim Demaille <akim@epita.fr>
333 2001-08-30 Akim Demaille <akim@epita.fr>
335 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
336 * m4/atconfig.m4: Remove.
337 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
339 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
340 m4_if, m4_patsubst, and m4_regexp.
341 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
342 `input' file instead of echo.
344 2001-08-29 Akim Demaille <akim@epita.fr>
348 2001-08-29 Akim Demaille <akim@epita.fr>
352 2001-08-29 Paul Eggert <eggert@twinsun.com>
354 * src/bison.simple (yyparse): Don't take the address of an
355 item before the start of an array, as that doesn't conform to
358 2001-08-29 Robert Anisko <anisko_r@epita.fr>
360 * doc/bison.texinfo (Location Tracking Calc): New node.
362 2001-08-29 Paul Eggert <eggert@twinsun.com>
364 * src/output.c (output): Do not define const, as this now
365 causes more problems than it cures.
367 2001-08-29 Akim Demaille <akim@epita.fr>
369 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
371 Be sure to tag the `detailmenu'.
373 2001-08-29 Akim Demaille <akim@epita.fr>
375 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
376 download in a tmp dir.
378 2001-08-28 Marc Autret <autret_m@epita.fr>
380 * config/depcomp: New file.
382 2001-08-28 Marc Autret <autret_m@epita.fr>
384 * doc/bison.1 (mandoc): Adjust.
385 From Juan Manuel Guerrero.
387 2001-08-28 Marc Autret <autret_m@epita.fr>
389 * src/print_graph.c (print_state): Fix.
391 2001-08-27 Marc Autret <autret_m@epita.fr>
393 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
395 Echo modifications to the functions prototypes.
396 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
398 2001-08-27 Marc Autret <autret_m@epita.fr>
400 * src/vcg.c: Include `xalloc.h'.
401 (add_colorentry): New.
402 (add_classname): New.
404 * src/vcg.h: Add new prototypes.
406 2001-08-27 Akim Demaille <akim@epita.fr>
408 * Makefile.maint: Sync. again with CVS Autoconf.
410 2001-08-27 Akim Demaille <akim@epita.fr>
412 * Makefile.maint: Formatting changes.
413 (po-update, cvs-update, update): New targets.
416 2001-08-27 Akim Demaille <akim@epita.fr>
418 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
419 * Makefile.maint: Sync. with CVS Autoconf.
421 2001-08-27 Marc Autret <autret_m@epita.fr>
423 * src/vcg.h (struct infoname_s): New.
424 (struct colorentry_s): New.
425 (graph_s): New fields {vertical,horizontal}_order in structure.
426 Add `infoname' field.
427 Add `colorentry' field;
428 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
429 (G_HORIZONTAL_ORDER): New.
432 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
433 Add output of `infoname'.
434 Add output of `colorentry'.
436 2001-08-27 Marc Autret <autret_m@epita.fr>
438 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
439 This one shadowed a global parameter.
441 2001-08-24 Marc Autret <autret_m@epita.fr>
443 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
444 instead of `unsigned'.
445 (print_state): Do not call obstack_object_size () in obstack_grow ()
446 to avoid macro variables shadowing.
448 2001-08-23 Marc Autret <autret_m@epita.fr>
450 * src/lex.c (percent_table): Typo: s/naem/name/.
452 Normalize new options declarations.
454 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
456 * tests/suite.at: Exercise %header_extension and %source_extension.
458 2001-08-16 Marc Autret <autret_m@epita.fr>
460 * src/reader.c (parse_dquoted_param): New.
461 (parse_header_extension_decl): Use it.
462 (parse_source_extension_decl): Likewise.
464 2001-08-16 Marc Autret <autret_m@epita.fr>
466 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
467 (get_xxxx_str): Use assert () instead of complain ().
468 Remove return invokations in default cases.
469 (get_decision_str): Modify default behaviour. Remove second argument.
470 Echo modifications on calls.
473 2001-08-16 Marc Autret <autret_m@epita.fr>
475 * src/getargs.c (usage): Update with ``-g, --graph''.
477 2001-08-16 Marc Autret <autret_m@epita.fr>
479 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
480 (Option Cross Key): Likewise.
481 * doc/bison.1: Update.
483 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
485 * src/output.c (output_master_parser): Don't finish action_obstack.
486 (output_parser): Don't care about the muscle action, here.
487 (prepare): Copy the action_obstack in the action muscle.
488 (output): Free action_obstack.
490 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
492 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
493 will contain `%union' declaration.
494 (parse_union_decl): Delete #line directive output.
495 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
496 informations about %union.
497 (parse_union_decl): Copy the union_obstack in the muscle stype.
498 * src/bison.simple: Add new #line directive.
499 Add typdef %%stype YYSTYPE.
501 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
503 * src/bison.simple: Add new `#line' directive.
505 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
507 * src/bison.simple: New `#line' directive.
508 * src/output.c (output_parser): Support new dynamic muscle input_line.
510 2001-09-22 Marc Autret <autret_m@epita.fr>
512 * src/output.c (output_master_parser): New.
513 (output_parser): Be more re-entrant.
515 2001-09-21 Marc Autret <autret_m@epita.fr>
517 * src/reader.c (copy_definition, parse_union_decl): Update and use
519 (copy_action): Likewise.
520 Use obstack_1grow ().
521 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
523 2001-09-21 Marc Autret <autret_m@epita.fr>
525 * src/options.c (option_table): Adjust.
526 * src/lex.c (parse_percent_token): Fix.
528 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
530 * src/options.c (symtab.h): Include it, need by lex.h.
532 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
534 * src/lex.c (parse_percent_token): Change type of variable `tx', which
535 is now an option_table_struct*.
536 (option_strcmp): New function option_strcmp.
537 (parse_percent_token): Call option_strcmp.
538 * src/getargs.c (xalloc.h, options.h): Include it.
539 (getargs): Call create_long_option_table.
540 (getargs): Free longopts at the end of the function.
541 (shortopts): Move in options.c.
542 * src/options.c (create_long_option_table): New function. Convert
543 information from option_table to option structure.
544 * src/reader.c (options.h): Include it.
546 * src/Makefile.am: Adjust.
547 * src/options.c (option_table): Create from longopts and percent_table.
548 * src/getargs.c (longopts): Delete.
549 * src/lex.c (struct percent_table_struct): Delete.
550 (percent_table): Delete.
551 (options.h): Include it.
552 * src/options.c: Create.
553 * src/options.h: Create.
554 Declare enum opt_access_e.
555 Define struct option_table_struct.
557 2001-09-20 Marc Autret <autret_m@epita.fr>
559 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
562 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
564 * src/bison.simple: s/%%filename/%%skeleton.
565 * src/muscle_tab.c (getargs.h): Include it.
566 (muscle_init): Insert new muscle skeleton.
568 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
570 * src/output.c (output_parser): Delete unused variable actions_dumped.
572 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
574 * src/output.c (output): Delete call to reader_output_yylsp.
575 * src/reader.c (reader): Likewise.
576 * src/reader.h: Delete declaration of reader_output_yylsp.
578 2001-09-02 Marc Autret <autret_m@epita.fr>
580 * src/reader.c: Include muscle_tab.h.
581 (parse_union_decl): Update.
582 (parse_macro_decl): Rename parse_muscle_decl.
583 Update to use renamed functions and variable.
584 (read_declarations, copy_action, read_additionnal_code, : Updated
585 with correct variables and functions names.
586 (packsymbols, reader): Likewise.
588 * src/reader.h (muscle_obstack): Extern declaration update.
590 * src/output.c: Include muscle_tab.h
591 In all functions using macro_insert, change by using muscle_insert ().
592 (macro_obstack): Rename muscle_obstack.
593 Echo modifications in the whole file.
594 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
595 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
596 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
598 * src/muscle_tab.h: Update double inclusion macros.
599 (macro_entry_s): Rename muscle_entry_s.
602 * src/muscle_tab.c: Include muscle_tab.h.
603 Rename macro_tabble to muscle_table.
604 (mhash1, mhash2, mcmp): Use muscle_entry.
605 (macro_init): Rename muscle_init. Update.
606 (macro_insert): Rename muscle_insert. Update.
607 (macro_find): Rename muscle_find. Update.
609 * src/main.c: Include muscle_tab.h.
610 (main): Call muscle_init ().
611 * src/Makefile.am (bison_SOURCES): Echo modifications.
613 2001-09-02 Marc Autret <autret_m@epita.fr>
615 Now the files macro_tab.[ch] are named muscle_tab.[ch].
617 * src/muscle_tab.c, src/muscle_tab.h: Add files.
619 2001-09-02 Marc Autret <autret_m@epita.fr>
621 * src/macrotab.c, src/macrotab.h: Remove.
623 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
625 * src/reader.c (copy_guard): Use muscle to specify the `#line'
628 2001-09-01 Marc Autret <autret_m@epita.fr>
630 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
631 to an explicit value to activate the feature. We do it here.
633 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
635 * src/output.c (prepare): Delete the `filename' muscule insertion.
636 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
637 (parse_union_decl): Likewise.
638 * src/macrotab.c (macro_init): Initialize filename by infile.
640 2001-08-31 Marc Autret <autret_m@epita.fr>
642 * src/bison.simple (YYLSP_NEEDED): New definition.
643 * src/output.c (prepare): Add macro insertion of `locations_flag'
645 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
647 * src/output.c (prepare): Delete insertion of previous muscles,
648 and insert the `prefix' muscles.
649 * src/macrotab.c (macro_init): Likewise.
650 (macro_init): Initialization prefix directive by `yy'.
651 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
652 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
653 yylval, yydebug, yyerror, yynerrs and yyparse.
654 New directive `#define' to substitute yydebug, ... with option
657 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
659 * src/main.c (main): Standardize.
660 * src/output.c (output_table_data, output_parser): Likewise.
661 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
663 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
665 * src/reader.c (read_additionnal_code): Rename %%user_code to
667 * src/output.c (output): Rename %%declarations to %%prologue.
668 * src/bison.simple: Echo modifications.
670 2001-08-31 Marc Autret <autret_m@epita.fr>
672 * src/reader.c (readgram): CleanUp.
673 (output_token_defines): Likewise.
674 (packsymbols): Likewise.
676 * src/output.c (output): CPP-out useless code.
678 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
680 * src/reader.c (reader): Delete obsolete call to function
681 output_trailers and output_headers.
682 * src/output.h: Remove obsolete functions prototypes of output_headers
685 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
687 * src/main.c: Include macrotab.h.
688 * src/macrotab.h (macro_entry_s): Constify fields.
689 Adjust functions prototypes.
690 * src/macrotab.c (macro_insert): Constify key and value.
691 (macro_find): Constify key.
692 (macro_insert): Include 'xalloc.h'
693 (macro_insert): Use XMALLOC.
694 (macro_find): Constify return value.
695 * src/output.c (output_table_data): Rename table to table_data.
696 (output_parser): Constify macro_key, macro_value.
698 2001-08-30 Marc Autret <autret_m@epita.fr>
700 * src/reader.c (parse_skel_decl): New.
701 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
702 * src/lex.h (token_t): New token `tok_skel'.
703 * src/lex.c (percent_table): Add skeleton option entry.
706 2001-08-29 Marc Autret <autret_m@epita.fr>
708 * src/bison.simple: Add %%user_code directive at the end.
709 * src/reader.c (read_additionnal_code): New.
711 * src/output.c (output_program): Remove.
714 2001-08-28 Marc Autret <autret_m@epita.fr>
716 * src/output.c (output_actions): Clean up.
717 (output_gram): CPP-out useless code.
718 * src/reader.c (reader): Clean up, CPP-out useless code.
720 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
722 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
724 * src/bison.simple: Add `%%definitions'.
726 2001-08-28 Marc Autret <autret_m@epita.fr>
728 * config/depcomp: New file.
730 2001-08-27 Paul Eggert <eggert@twinsun.com>
732 * src/bison.simple (yyparse): Don't take the address of an
733 item before the start of an array, as that doesn't conform to
736 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
738 * src/output.c (output): Remove the initialization of the macro
739 obstack. It was done too late here.
741 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
743 (reader): Initialize the macro obstack here, since we need it to grow
744 '%define' directives.
746 * src/reader.h: Declare the macro obstack as extern.
748 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
750 * src/output.c (output_parser): Fix. Store single '%' characters in
751 the output obstack instead of throwing them away.
753 2001-08-27 Akim Demaille <akim@epita.fr>
755 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
757 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
759 * lib/Makefile.am: Adjust.
761 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
763 * src/bison.simple: Update and add '%%' directives.
765 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
767 * src/reader.c (reader): Remove calls to 'output_headers' and
768 'output_trailers'. Remove some C output.
769 (readgram): Disable a piece of code that was writing a default
770 definition for 'YYSTYPE'.
771 (reader_output_yylsp): Remove.
772 (packsymbols): Output token defintions to a macro.
773 (copy_definition): Disable C output.
775 * src/reader.c (parse_macro_decl): New function used to parse macro
777 (copy_string2): Put the body of copy_string into this new function.
778 Add a parameter to let the caller choose whether he wants to copy the
779 string delimiters or not.
780 (copy_string): Be a simple call to copy_string2 with the last argument
782 (read_declarations): Add case for macro definition.
783 (copy_identifier): New.
784 (parse_macro_decl): Read macro identifiers using copy_identifier
787 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
789 * src/output.c (prepare): Add prefixed names.
790 (output_parser): Output semantic actions.
791 (output_parser): Fix bug on '%%line' directives.
793 * src/output.c (output_headers): Remove. The C code printed by this
794 function should now be in the skeletons.
795 (output_trailers): Remove.
796 (output): Disable call to 'reader_output_yylsp'.
797 (output_rule_data): Do not output tables to the table obstack.
799 * src/output.c: Remove some C dedicated output.
800 Improve the use of macro and output obstacks.
801 (output_defines): Remove.
803 * src/output.c (output_token_translations): Associate 'translate'
804 table with a macro. No output to the table obstack.
805 (output_gram): Same for 'rhs' and 'prhs'.
806 (output_stos): Same for 'stos'.
807 (output_rule_data): Same for 'r1' and 'r2'.
808 (token_actions): Same for 'defact'.
809 (goto_actions): Same for 'defgoto'.
810 (output_base): Same for 'pact' and 'pgoto'.
811 (output_table): Same for 'table'.
812 (output_check): Same for 'check'.
814 * src/output.c (output_table_data): New function.
815 (output_short_table): Remove.
816 (output_short_or_char_table): Remove.
818 * src/output.c (output_parser): Replace most of the skeleton copy code
819 with something new. Skeletons are now processed character by character
820 rather than line by line, and Bison looks for '%%' macros. This is the
821 first step in making Bison's output process (a lot) more flexible.
822 (output_parser): Use the macro table.
824 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
826 * src/main.c (main): Initialize the macro table.
828 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
830 * src/lex.c (percent_table): Add tok_define.
831 * src/lex.h: Add tok_define.
833 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
835 * src/macrotab.c: New file.
836 * src/macrotab.h: New file.
837 * src/Makefile.am: Update.
839 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
841 * lib/hash.c: New file.
842 * lib/hash.h: New file.
843 * lib/Makefile.am: Update.
845 2001-08-15 Akim Demaille <akim@epita.fr>
849 2001-08-15 Marc Autret <autret_m@epita.fr>
851 * src/reader.c (readgram): Indent output macro YYSTYPE.
852 (packsymbols): Likewise.
853 (output_token_defines): Likewise.
854 * src/files.c: Standardize.
855 (compute_header_macro): New.
856 (defines_obstack_save): New. Use compute_header_macro.
857 (output_files): Update. Use defines_obstack_save.
859 2001-08-15 Akim Demaille <akim@epita.fr>
861 * doc/bison.texinfo (Table of Symbols): Document
864 2001-08-15 Akim Demaille <akim@epita.fr>
866 * missing: Update from CVS Automake.
867 * config/config.guess, config/config.sub, config/texinfo.tex:
870 2001-08-15 Akim Demaille <akim@epita.fr>
872 * Makefile.maint: Sync with CVS Autoconf.
874 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
876 * doc/bison.texinfo: Include GNU Free Documentation License from
878 * doc/fdl.texi: Add to package.
880 2001-08-14 Marc Autret <autret_m@epita.fr>
882 Turn on %{source,header}_extension features.
884 * src/lex.c (percent_table): Un-CPP out header_extension and
886 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
887 (compute_exts_from_src): Remove conditions. It restores priorities
890 2001-08-14 Marc Autret <autret_m@epita.fr>
892 * src/files.c (compute_base_names): Add extensions computing when
893 `--file-prefix' used.
894 Standardize function calls.
896 2001-08-13 Marc Autret <autret_m@epita.fr>
898 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
899 defining it (defined but null disables alloca).
901 2001-08-13 Marc Autret <autret_m@epita.fr>
903 * src/bison.simple (_yy_memcpy): CPP reformat.
905 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
907 * tests/atconfig.in (CPPFLAGS): Fix.
909 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
911 * doc/bison.texinfo: Include GNU General Public License from
913 * doc/gpl.texi: Add to package.
915 2001-08-10 Marc Autret <autret_m@epita.fr>
917 * src/print_graph.h: Fix.
918 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
920 2001-08-10 Akim Demaille <akim@epita.fr>
922 * src/system.h: Provide default declarations for stpcpy, strndup,
925 2001-08-10 Robert Anisko <anisko_r@epita.fr>
927 * doc/bison.texinfo (Locations): Update @$ stuff.
929 2001-08-09 Robert Anisko <anisko_r@epita.fr>
931 * src/bison.simple (YYLLOC_DEFAULT): Update.
934 2001-08-08 Marc Autret <autret_m@epita.fr>
936 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
937 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
938 Reported by Fabrice Bauzac.
940 2001-08-08 Marc Autret <autret_m@epita.fr>
942 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
943 * src/vcg.c (output_node): Fix.
944 * src/vcg.h: Cleanup.
945 * src/print_graph.c: Add comments.
946 (node_output_size): New global variable. Simplify the formatting of
947 the VCG graph output.
948 (print_actions): Unused code is now used. It notifies the final state
949 and no action states in the VCG graph. It also give the reduce actions.
950 The `shift and goto' edges are red and the `go to state' edges are
952 Get the current node name and node_obstack by argument.
953 (node_obstack): New variable.
954 (print_state): Manage node_obstack.
955 (print_core): Use node_obstack given by argument.
956 A node is not only computed here but in print_actions also.
957 (print_graph): CPP out useless code instead of commenting it.
959 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
961 * tests/atconfig.in (CPPFLAGS): Fix.
963 2001-08-07 Akim Demaille <akim@epita.fr>
965 * src/print_graph.c (quote): New.
966 (print_core): Use it.
968 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
970 * src/vcg.c (complain.h): Include it.
971 Unepitaize `return' invocations.
972 [NDEBUG] (main): Remove.
973 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
974 * src/files.c (open_files): Initialize graph_obstack.
975 * src/print_graph.c (print_actions): CPP out useless code.
976 (print_core): Don't output the last `\n' in labels.
978 * src/files.c (output_files): Output the VCG file.
979 * src/main.c (main): Invoke print_graph ();
981 2001-08-06 Marc Autret <autret_m@epita.fr>
983 Automaton VCG graph output.
984 Using option ``-g'' or long option ``--graph'', you can generate
985 a gram_filename.vcg file containing a VCG description of the LALR (1)
986 automaton of your grammar.
988 * src/main.c: Call to print_graph() function.
989 * src/getargs.h: Update.
990 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
991 (graph_flag): New flag.
993 (getargs): Add case `g'.
994 * src/files.c (graph_obstack): New obstack struct.
995 (open_files): Initialize new obstack.
996 (output_files): Saves graph_obstack if required.
997 * src/files.h (graph_obstack): New extern declaration.
998 * src/Makefile.am: Add new source files.
1000 2001-08-06 Marc Autret <autret_m@epita.fr>
1002 * src/print_graph.c, src/print_graph.h (graph): New.
1003 * src/vcg.h: New file.
1004 * src/vcg.c: New file, VCG graph handling.
1006 2001-08-06 Marc Autret <autret_m@epita.fr>
1008 Add of %source_extension and %header_extension which specify
1009 the source or/and the header output file extension.
1011 * src/files.c (compute_base_names): Remove initialisation of
1012 src_extension and header_extension.
1013 (compute_exts_from_gf): Update.
1014 (compute_exts_from_src): Update.
1015 (output_files): Update.
1016 * src/reader.c (parse_header_extension_decl): New.
1017 (parse_source_extension_decl): New.
1018 (read_declarations): New case statements for the new tokens.
1019 * src/lex.c (percent_table): Add entries for %source_extension
1020 and %header_extension.
1021 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1023 2001-08-06 Marc Autret <autret_m@epita.fr>
1025 * configure.in: Bump to 1.28c.
1026 * doc/bison.texinfo: Texinfo thingies.
1028 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1030 * tests/atconfig.in (CPPFLAGS): Add.
1031 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1033 2001-08-03 Akim Demaille <akim@epita.fr>
1037 2001-08-03 Akim Demaille <akim@epita.fr>
1039 * tests/Makefile.am (check-local): Ship testsuite.
1040 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1043 2001-08-03 Akim Demaille <akim@epita.fr>
1045 * configure.in: Try using -Wformat when compiling.
1047 2001-08-03 Akim Demaille <akim@epita.fr>
1049 * configure.in: Bump to 1.28b.
1051 2001-08-03 Akim Demaille <akim@epita.fr>
1053 * src/complain.c: Adjust strerror_r portability issues.
1055 2001-08-03 Akim Demaille <akim@epita.fr>
1059 2001-08-03 Akim Demaille <akim@epita.fr>
1061 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1062 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1063 * src/getargs.c: Include complain.h.
1064 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1065 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1067 2001-08-03 Akim Demaille <akim@epita.fr>
1069 * src/reader.c (readgram): Display hidden chars in error messages.
1071 2001-08-03 Akim Demaille <akim@epita.fr>
1073 Update to gettext 0.10.39.
1075 2001-08-03 Akim Demaille <akim@epita.fr>
1077 * lib/strspn.c: New.
1079 2001-08-01 Marc Autret <autret_m@epita.fr>
1081 * doc/bison.texinfo: Update.
1082 * doc/bison.1 (mandoc): Update.
1083 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1084 * src/files.c: Support output files extensions computing.
1085 (src_extension): New static variable.
1086 (header_extension): New static variable.
1088 (get_extension_index): New function, gets the index of an extension
1089 filename in a string.
1090 (compute_exts_from_gf): New function, computes extensions from the
1091 grammar file extension.
1092 (compute_exts_from_src): New functions, computes extensions from the
1093 C source file extension, file given by ``-o'' option.
1094 (compute_base_names): Update.
1095 (output_files): Update.
1097 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1099 * doc/bison.texi: Document @$.
1100 (Locations): New section.
1102 2001-07-18 Akim Demaille <akim@epita.fr>
1104 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1105 * config/prev-version.txt, config/move-if-change: New.
1106 * Makefile.am: Adjust.
1108 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1110 * src/bison.simple (yyparse): Suppress warning `comparaison
1111 between signed and unsigned'.
1113 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1115 * src/getargs.h (raw_flag): Remove.
1116 * src/getargs.c: Die on `-r'/`--raw'.
1117 * src/lex.c (parse_percent_token): Die on `%raw'.
1118 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1119 * tests/calc.at: Suppress test with option `--raw'.
1121 2001-07-14 Akim Demaille <akim@epita.fr>
1124 * configure.in: Require Autoconf 2.50.
1125 Update to gettext 0.10.38.
1127 2001-03-16 Akim Demaille <akim@epita.fr>
1129 * doc/bison.texinfo: ANSIfy the examples.
1131 2001-03-16 Akim Demaille <akim@epita.fr>
1133 * getargs.c (skeleton): New variable.
1134 (longopts): --skeleton is a new option.
1135 (shortopts, getargs): -S is a new option.
1136 * getargs.h: Declare skeleton.
1137 * output.c (output_parser): Use it.
1139 2001-03-16 Akim Demaille <akim@epita.fr>
1141 * m4/strerror_r.m4: New.
1142 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1143 * lib/error.h, lib/error.c: Update.
1145 2001-03-16 Akim Demaille <akim@epita.fr>
1147 * src/getargs.c (longopts): Clean up.
1149 2001-02-21 Akim Demaille <akim@epita.fr>
1151 * src/reader.c (gensym): `gensym_count' is your own.
1152 Use a static buf to create the symbol name, as token_buffer is no
1155 2001-02-08 Akim Demaille <akim@epita.fr>
1157 * src/conflicts.c (conflict_report): Be sure not to append to res
1158 between two calls, which could happen if both first sprintf were
1159 skipped, but not the first cp += strlen.
1161 2001-02-08 Akim Demaille <akim@epita.fr>
1163 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1164 New, from fileutils 4.0.37.
1165 * configure.in: Require Autoconf 2.49c. I took some time before
1166 making this decision. This is the only way out for portability
1167 issues in Bison, it would mean way too much duplicate effort to
1168 import in Bison features implemented in 2.49c since 2.13.
1169 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1171 2001-02-02 Akim Demaille <akim@epita.fr>
1173 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1174 * lib/xalloc.h, lib/xmalloc.c: Update.
1176 2001-01-19 Akim Demaille <akim@epita.fr>
1178 Get rid of the ad hoc handling of token_buffer in the scanner: use
1181 * src/lex.c (token_obstack): New.
1182 (init_lex): Initialize it. No longer call...
1183 (grow_token_buffer): this. Remove it.
1184 Adjust all the places which used it to use the obstack.
1186 2001-01-19 Akim Demaille <akim@epita.fr>
1188 * src/lex.h: Rename all the tokens:
1189 s/\bENDFILE\b/tok_eof/g;
1190 s/\bIDENTIFIER\b/tok_identifier/g;
1192 Let them be enums, not #define, to ease debugging.
1193 Adjust all the code.
1195 2001-01-18 Akim Demaille <akim@epita.fr>
1197 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1198 * src/lex.c (maxtoken, grow_token_buffer): Static.
1200 2001-01-18 Akim Demaille <akim@epita.fr>
1202 Since we now use obstacks, more % directives can be enabled.
1204 * src/lex.c (percent_table): Also accept `%yacc',
1205 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1207 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1208 instead of returning a token.
1209 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1210 * src/reader.c (read_declarations): Adjust.
1211 * src/files.c (open_files): Don't call `compute_base_names', don't
1212 compute `attrsfile' since they depend upon data which might be
1213 *in* the input file now.
1214 (output_files): Do it here.
1215 * src/output.c (output_headers): Document the fact that this patch
1216 introduces a guaranteed SEGV for semantic parsers.
1217 * doc/bison.texinfo: Document them.
1218 * tests/suite.at: Exercise these %options.
1220 2000-12-20 Akim Demaille <akim@epita.fr>
1222 Also handle the output file (--verbose) with obstacks.
1224 * files.c (foutput): Remove.
1225 (output_obstack): New.
1226 Adjust all dependencies.
1227 * src/conflicts.c: Return a string.
1228 * src/system.h (obstack_grow_string): Rename as...
1229 (obstack_sgrow): this. Be ready to work with non literals.
1230 (obstack_fgrow4): New.
1232 2000-12-20 Akim Demaille <akim@epita.fr>
1234 * src/files.c (open_files): Fix the computation of short_base_name
1235 in the case of `-o foo.tab.c'.
1237 2000-12-20 Akim Demaille <akim@epita.fr>
1239 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1240 (copy_dollar): Now that everything uses obstacks, get rid of the
1243 2000-12-20 Akim Demaille <akim@epita.fr>
1245 * src/files.c (open_files): Actually the `.output' file is based
1246 on the short_base_name, not base_name.
1247 * tests/suite.at (Checking output file names): Adjust.
1249 2000-12-20 Akim Demaille <akim@epita.fr>
1251 * src/bison.s1: Remove, we now use directly...
1252 * src/bison.simple: this.
1253 * src/Makefile.am: Use pkgdata instead of data.
1255 2000-12-20 Akim Demaille <akim@epita.fr>
1257 * src/files.c (guard_obstack): New.
1258 (open_files): Initialize it.
1259 (output_files): Dump it...
1260 * src/files.h: Export it.
1261 * src/reader.c (copy_guard): Use it.
1263 2000-12-19 Akim Demaille <akim@epita.fr>
1265 * src/files.c (outfile, defsfile, actfile): Removed as global
1267 (open_files): Don't compute them.
1268 (output_files): Adjust.
1269 (base_name, short_base_name): Be global.
1270 Adjust dependencies.
1272 2000-12-19 Akim Demaille <akim@epita.fr>
1274 * src/files.c (strsuffix): New.
1275 (stringappend): Be just like strcat but allocate.
1276 (base_names): Eve out from open_files.
1277 Try to simplify the rather hairy computation of base_name and
1279 (open_files): Use it.
1280 * tests/suite.at (Checking output file names): New test.
1282 2000-12-19 Akim Demaille <akim@epita.fr>
1284 * src/system.h (obstack_grow_literal_string): Rename as...
1285 (obstack_grow_string): this.
1286 * src/output.c (output_parser): Recognize `%% actions' instead of
1288 * src/bison.s1: s/$/%% actions/.
1289 * src/bison.hairy: Likewise.
1291 2000-12-19 Akim Demaille <akim@epita.fr>
1293 * src/output.c (output_parser): Compute the `#line' lines when
1295 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1296 Suggested by Hans Aberg.
1298 2000-12-19 Akim Demaille <akim@epita.fr>
1300 Let the handling of the skeleton files be local to the procedures
1303 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1305 (fparser, open_extra_files): Remove.
1306 (open_files, output_files): Don't take care of fparser.
1307 * src/files.h: Adjust.
1308 * src/output.c (output_parser): Open and close the file to the
1310 * src/reader.c (read_declarations): When %semantic_parser, open
1313 2000-12-19 Akim Demaille <akim@epita.fr>
1315 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1316 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1318 2000-12-19 Akim Demaille <akim@epita.fr>
1320 * src/files.c (open_files): Yipee! We no longer need all the code
1321 looking for `/tmp' since we have no tmp file.
1323 2000-12-19 Akim Demaille <akim@epita.fr>
1325 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1327 * src/files.c (open_files): Less dependency on MSDOS etc.
1329 2000-12-14 Akim Demaille <akim@epita.fr>
1331 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1332 Provide a default definition.
1333 Use it when executing the default @ action.
1334 * src/reader.c (reader_output_yylsp): No longer include
1335 `timestamp' and `text' in the default YYLTYPE.
1337 2000-12-12 Akim Demaille <akim@epita.fr>
1339 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1340 (copy_guard): Quote the file names.
1341 Reported by Laurent Mascherpa.
1343 2000-12-12 Akim Demaille <akim@epita.fr>
1345 * src/output.c (output_headers, output_program, output): Be sure
1346 to escape special characters when outputting filenames.
1347 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1348 (output_headers): Don't depend on them, Use ACTSTR.
1350 2000-11-17 Akim Demaille <akim@epita.fr>
1352 * lib/obstack.h: Formatting changes.
1353 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1354 prevents type checking.
1355 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1356 cast the value to (void *): assigning a `foo *' to a `void *'
1358 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1359 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1362 2000-11-17 Akim Demaille <akim@epita.fr>
1364 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1366 (suite.m4, regression.m4, calc.m4): these.
1367 * tests/atgeneral.m4: Update from CVS Autoconf.
1369 2000-11-17 Akim Demaille <akim@epita.fr>
1371 * tests/regression.m4 (%union and --defines): New test,
1372 demonstrating a current bug in the obstack implementation.
1374 2000-11-17 Akim Demaille <akim@epita.fr>
1376 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1378 Use them to declare the variables which are global or local to
1381 2000-11-17 Akim Demaille <akim@epita.fr>
1383 * acconfig.h: Remove, no longer used.
1385 2000-11-07 Akim Demaille <akim@epita.fr>
1387 * src: s/Copyright (C)/Copyright/g.
1389 2000-11-07 Akim Demaille <akim@epita.fr>
1391 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1393 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1395 2000-11-07 Akim Demaille <akim@epita.fr>
1397 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1398 Merge in a single CPP if/else.
1400 2000-11-07 Akim Demaille <akim@epita.fr>
1402 * src/output.c (output): Remove useless variables.
1403 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1404 argument `data' for consistency with the prototypes.
1406 (obstack_copy, obstack_copy0): Rename the second argument as
1407 `address' for consistency. Qualify it `const'.
1408 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1409 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1410 `const' their input argument (`data' or `address').
1411 Adjust the corresponding macros to include `const' in casts.
1413 2000-11-03 Akim Demaille <akim@epita.fr>
1415 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1416 s/PFILE1/BISON_HAIRY/.
1417 Adjust dependencies.
1419 2000-11-03 Akim Demaille <akim@epita.fr>
1421 For some reason, this was not applied.
1423 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1424 `unlink': it's no longer used.
1426 2000-11-03 Akim Demaille <akim@epita.fr>
1428 * src/files.c (skeleton_find): New function, eved out of...
1429 (open_files, open_extra_files): here.
1431 2000-11-03 Akim Demaille <akim@epita.fr>
1435 * src/files.c (obstack_save): New function.
1436 (done): Rename as...
1437 (output_files): this.
1439 * src/main.c (main): Don't use `atexit' to register `done', since
1440 it no longer has to remove tmp files, just call `output_files'
1441 when there are no errors.
1443 2000-11-02 Akim Demaille <akim@epita.fr>
1445 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1446 `unlink': it's no longer used.
1447 * src/files.h: Formatting changes.
1449 2000-11-02 Akim Demaille <akim@epita.fr>
1451 Remove the last uses of mktemp and unlink/delete.
1453 * src/files.c (fdefines, ftable): Removed.
1454 (defines_ostack, table_obstack): New.
1455 Adjust dependencies of the former into uses of the latter.
1456 * src/output.c (output_short_or_char_table, output_short_table):
1457 Convert to using obstacks.
1458 * src/reader.c (copy_comment2): Accept one FILE * and two
1460 (output_token_defines, reader_output_yylsp): Use obstacks.
1461 * src/system.h (obstack_fgrow3): New.
1463 2000-11-01 Akim Demaille <akim@epita.fr>
1465 Change each use of `fattrs' into a use of `attrs_obstack'.
1467 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1468 * src/files.c (fattrs): Remove.
1469 (attrs_obstack): New.
1470 Adjust all dependencies.
1471 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1473 2000-11-01 Akim Demaille <akim@epita.fr>
1476 Change each use of `faction' into a use of `action_obstack'.
1478 * lib/obstack.h, lib/obstack.c: New files.
1479 * src/files.c (faction): Remove.
1480 (action_obstack): New.
1481 Adjust all dependencies.
1483 2000-10-20 Akim Demaille <akim@epita.fr>
1485 * lib/quote.h (PARAMS): New macro. Use it.
1487 2000-10-16 Akim Demaille <akim@epita.fr>
1489 * src/output.c (output_short_or_char_table): New function.
1490 (output_short_table, output_token_translations): Use it.
1491 (goto_actions): Use output_short_table.
1493 2000-10-16 Akim Demaille <akim@epita.fr>
1495 * src/symtab.c (bucket_new): New function.
1498 * src/output.c (output_short_table): New argument to display the
1499 comment associated with the table.
1500 Adjust dependencies.
1501 (output_gram): Use it.
1502 (output_rule_data): Nicer output layout for YYTNAME.
1504 2000-10-16 Akim Demaille <akim@epita.fr>
1506 * src/lex.c (read_typename): New function.
1508 * src/reader.c (copy_dollar): Likewise.
1510 2000-10-16 Akim Demaille <akim@epita.fr>
1512 * src/reader.c (copy_comment2): Expect the input stream to be on
1513 the `/' which is suspected to open a comment, instead of being
1514 called after `//' or `/*' was read.
1515 (copy_comment, copy_definition, parse_union_decl, copy_action)
1516 (copy_guard): Adjust.
1518 2000-10-16 Akim Demaille <akim@epita.fr>
1520 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1521 `read_signed_integer'.
1523 2000-10-16 Akim Demaille <akim@epita.fr>
1525 * src/reader.c (copy_dollar): New function.
1526 (copy_guard, copy_action): Use it.
1528 2000-10-16 Akim Demaille <akim@epita.fr>
1530 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1531 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1532 New files, from Fileutils 4.0.27.
1533 * src/main.c (printable_version): Remove.
1534 * src/lex.c, src/reader.c: Use `quote'.
1536 2000-10-04 Akim Demaille <akim@epita.fr>
1538 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1540 2000-10-04 Akim Demaille <akim@epita.fr>
1542 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1544 2000-10-04 Akim Demaille <akim@epita.fr>
1546 When a literal string is used to define two different tokens,
1547 `bison -v' segfaults.
1548 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1550 * tests/regression.m4: New file.
1551 Include the core of the sample provided by Piotr Gackiewicz.
1552 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1555 2000-10-04 Akim Demaille <akim@epita.fr>
1557 * src/reader.c (parse_expect_decl): Keep `count' within the size
1561 2000-10-02 Paul Eggert <eggert@twinsun.com>
1563 * bison.s1 (yyparse): Assign the default value
1564 unconditionally, to avoid a GCC warning and make the parser a
1567 2000-10-02 Akim Demaille <akim@epita.fr>
1569 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1572 2000-10-02 Akim Demaille <akim@epita.fr>
1574 * src/derives.c, src/print.c, src/reduce.c: To ease the
1575 translation, move some `\n' out of the translated strings.
1577 2000-10-02 Akim Demaille <akim@epita.fr>
1579 The location tracking mechanism is precious for parse error
1580 messages. Nevertheless, it is enabled only when `@n' is used in
1581 the grammar, which is a different issue (you can use it in error
1582 message, but not in the grammar per se). Therefore, there should
1583 be another means to enable it.
1585 * src/getargs.c (getargs): Support `--locations'.
1587 * src/getargs.h (locationsflag): Export it.
1588 * src/lex.c (percent_table): Support `%locations'.
1589 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1590 with `locationsflag'.
1591 * doc/bison.texinfo: Document `--locations' and `%locations'.
1593 * tests/calc.m4: Test it.
1595 For regularity of the names, replace each
1596 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1597 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1598 In addition replace each `flag' with `_flag'.
1600 2000-10-02 Akim Demaille <akim@epita.fr>
1602 Also test parse error messages, including with YYERROR_VERBOSE.
1604 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1606 Use it to check the computations.
1607 Use it to check `nonassoc' is honored.
1608 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1609 `--yyerror-verbose'.
1610 (_AT_CHECK_CALC): Adjust to this option.
1611 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1613 2000-10-02 Akim Demaille <akim@epita.fr>
1615 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1616 the latter demonstrates a flaw in the handling of non debugging
1617 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1618 was used in order to simplify:
1634 unfortunately this leads to a CPP conflict when
1635 `--name-prefix=foo' is used since it produces `#define yydebug
1638 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1639 (YYDPRINTF): New macro.
1641 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1643 Also test `--verbose', `--defines' and `--name-prefix'.
1645 2000-10-02 Akim Demaille <akim@epita.fr>
1647 Improve the readability of the produced parsers.
1649 * src/bison.s1: Formatting changes.
1650 Improve the comment related to the `$' mark.
1651 (yydefault): Don't fall through to `yyresume': `goto' there.
1652 * src/output.c (output_parser): When the `$' is met, skip the end
1654 New variable, `number_of_dollar_signs', to check there's exactly
1655 one `$' in the parser skeleton.
1657 2000-10-02 Akim Demaille <akim@epita.fr>
1659 * lib/xstrdup.c: New file, from the fileutils.
1660 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1661 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1662 instead of strlen + xmalloc + strcpy.
1663 * src/symtab.c (copys): Remove, use xstrdup instead.
1665 2000-10-02 Akim Demaille <akim@epita.fr>
1667 * src/gram.h (associativity): New enum type which replaces the
1668 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1669 `right_assoc', `left_assoc' and `non_assoc'.
1670 Adjust all dependencies.
1671 * src/reader.c: Formatting changes.
1672 (LTYPESTR): Don't define it, use it as a literal in
1673 `reader_output_yylsp'.
1674 * src/symtab.h (symbol_class): New enum type which replaces the
1675 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1676 `sunknown', `stoken and `snterm'.
1678 2000-10-02 Akim Demaille <akim@epita.fr>
1680 * src/getargs.c (fixed_outfiles): Rename as...
1681 (yaccflag): for consistency and accuracy.
1682 Adjust dependencies.
1684 2000-10-02 Akim Demaille <akim@epita.fr>
1686 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1687 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1688 difficult and introduced a lot of core dump. It turns out that
1689 Bison used an implementation of `xmalloc' based on `calloc', and
1690 at various places it does depend upon the initialization to 0. I
1691 have not tried to isolate the pertinent places, and all the former
1692 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1693 someone should address this issue.
1695 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1696 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1698 Adjust dependencies.
1699 * src/warshall.h: New file.
1702 2000-10-02 Akim Demaille <akim@epita.fr>
1704 Various anti-`extern in *.c' changes.
1706 * src/system.h: Include `assert.h'.
1708 2000-10-02 Akim Demaille <akim@epita.fr>
1710 * src/state.h (nstates, final_state, first_state, first_shift)
1711 (first_reduction): Move their exportation from here...
1712 * src/LR0.h: to here.
1713 Adjust dependencies.
1714 * src/getargs.c (statisticsflag): New variable.
1715 Add support for `--statistics'.
1716 Adjust dependencies.
1718 Remove a lot of now useless `extern' statements in most files.
1720 2000-10-02 Akim Demaille <akim@epita.fr>
1722 * src/LR0.h: New file.
1725 2000-10-02 Akim Demaille <akim@epita.fr>
1727 * src/print.h: New file.
1729 * src/print.c: Formatting and ordering changes.
1730 (verbose, terse): Replace with...
1731 (print_results): this new function.
1732 Adjust dependencies.
1734 2000-10-02 Akim Demaille <akim@epita.fr>
1736 * src/conflicts.c (conflict_report): New function.
1737 (conflict_log, verbose_conflict_log): Replace with...
1738 (print_conflicts): this function.
1739 Adjust dependencies.
1740 * src/conflicts.h: New file.
1741 Propagate its inclusion.
1743 2000-10-02 Akim Demaille <akim@epita.fr>
1745 * src/nullable.h: New file.
1746 Propagate its inclusion.
1747 * src/nullable.c: Formatting changes.
1749 2000-10-02 Akim Demaille <akim@epita.fr>
1751 * src/reduce.h: New file.
1752 Propagate its inclusion.
1753 * src/reduce.c: Topological sort and other formatting changes.
1754 (bool, TRUE, FALSE): Move their definition to...
1755 * src/system.h: here.
1757 2000-10-02 Akim Demaille <akim@epita.fr>
1759 * src/files.c: Formatting changes.
1760 (tryopen, tryclose, openfiles): Rename as...
1761 (xfopen, xfclose, open_files): this.
1762 (stringappend): static.
1763 * src/files.h: Complete the list of exported symbols.
1766 2000-10-02 Akim Demaille <akim@epita.fr>
1768 * src/reader.h: New file.
1769 Propagate its use instead of tedious list of `extern' and
1771 * src/reader.c: Formatting changes, topological sort,
1774 2000-10-02 Akim Demaille <akim@epita.fr>
1776 * src/lex.h: Prototype `lex.c' exported functions.
1777 * src/reader.c: Adjust.
1778 * src/lex.c: Formatting changes.
1779 (safegetc): Rename as...
1782 2000-10-02 Akim Demaille <akim@epita.fr>
1784 * src/lalr.h: New file.
1785 Propagate its inclusion instead of prototypes and `extern'.
1786 * src/lalr.c: Formatting changes, topological sorting etc.
1788 2000-10-02 Akim Demaille <akim@epita.fr>
1790 * src/output.c (token_actions): Introduce a temporary array,
1791 YYDEFACT, that makes it possible for this function to use
1794 2000-10-02 Akim Demaille <akim@epita.fr>
1796 `user_toknums' is output as a `short[]' in `output.c', while it is
1797 defined as a `int[]' in `reader.c'. For consistency with the
1798 other output tables, `user_toknums' is now defined as a table of
1801 * src/reader.c (user_toknums): Be a short table instead of an int
1803 Adjust dependencies.
1805 Factor the short table outputs.
1807 * src/output.c (output_short_table): New function.
1808 * src/output.c (output_gram, output_stos, output_rule_data)
1809 (output_base, output_table, output_check): Use it.
1811 2000-10-02 Akim Demaille <akim@epita.fr>
1813 * src/output.c (output): Topological sort of the functions, in
1814 order to get rid of the `static' prototypes.
1815 No longer use `register'.
1816 * src/output.h: New file.
1817 Propagate its inclusion in files explicitly prototyping functions
1820 2000-09-21 Akim Demaille <akim@epita.fr>
1822 * src/atgeneral.m4: Update from Autoconf.
1824 2000-09-21 Akim Demaille <akim@epita.fr>
1826 * src/closure.h: New file.
1827 * src/closure.c: Formatting changes, topological sort over the
1828 functions, use of closure.h.
1829 (initialize_closure, finalize_closure): Rename as...
1830 (new_closure, free_closure): these. Adjust dependencies.
1831 * src/LR0.c: Formatting changes, topological sort, use of
1833 (initialize_states): Rename as...
1835 * src/Makefile.am (noinst_HEADERS): Adjust.
1837 2000-09-20 Akim Demaille <akim@epita.fr>
1839 * src/acconfig.h: Don't protect config.h against multiple
1841 Don't define PARAMS.
1842 * src/system.h: Define PARAMS.
1843 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1844 purpose of config.h. system.h must not try to fix wrong
1845 definitions in config.h.
1847 2000-09-20 Akim Demaille <akim@epita.fr>
1849 * src/derives.h: New file.
1850 * src/main.c, src/derives.h: Use it.
1852 * src/Makefile.am (noinst_HEADERS): Adjust.
1854 2000-09-20 Akim Demaille <akim@epita.fr>
1856 * tests/atgeneral.m4: Update from Autoconf.
1857 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1858 (AT_CHECK_CALC): New macros.
1859 Use these macros to test bison with options `', `--raw',
1860 `--debug', `--yacc', `--yacc --debug'.
1862 2000-09-19 Akim Demaille <akim@epita.fr>
1864 * src/output.c: Formatting changes.
1865 * src/machine.h: Remove, leaving its contents in...
1866 * src/system.h: here.
1868 Adjust all dependencies on stdio.h and machine.h.
1869 * src/getargs.h: New file.
1870 Let all `extern' declarations about getargs.c be replaced with
1871 inclusion of `getargs.h'.
1872 * src/Makefile.am (noinst_HEADERS): Adjust.
1874 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1876 (yyerror): Returns void, not int.
1877 * doc/bison.texinfo: Formatting changes.
1879 2000-09-19 Akim Demaille <akim@epita.fr>
1881 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1884 2000-09-18 Akim Demaille <akim@epita.fr>
1886 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1887 * src/Makefile.am (INCLUDES): Don't.
1888 Be ready to fetch headers in lib/.
1890 2000-09-18 Akim Demaille <akim@epita.fr>
1892 * doc/bison.texinfo: Update the copyright.
1893 ANSIfy and GNUify the examples.
1894 Remove the old menu.
1896 2000-09-18 Akim Demaille <akim@epita.fr>
1898 First set of tests: use the `calc' example from the documentation.
1900 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1901 is defined only when YYDEBUG is.
1902 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1903 * src/files.c (tryopen, tryclose): Formatting changes.
1904 Move to the top and be static.
1905 * src/reader.c (read_signed_integer): Likewise.
1906 * tests/calc.m4: New file.
1907 * Makefile.am, suite.m4: Adjust.
1908 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1910 2000-09-18 Akim Demaille <akim@epita.fr>
1912 Add support for an Autotest test suite for Bison.
1914 * m4/m4.m4, m4/atconfig.m4: New files.
1915 * m4/Makefile.am (EXTRA_DIST): Adjust.
1916 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1918 * src/getargs.c: Display a more standard --version message.
1919 * src/reader.c (reader): Formatting changes.
1920 No longer depend upon VERSION_STRING.
1921 * configure.in: No longer use `dnl'.
1922 Set up the test suite and the new directory `tests/.
1923 (VERSION_STRING): Remove.
1925 2000-04-14 Akim Demaille <akim@epita.fr>
1927 * src/reader.c (copy_comment2): New function, same as former
1928 `copy_comment', but outputs into two FILE *.
1929 (copy_comment): Use it.
1930 (parse_union_decl): Use it.
1931 (get_type, parse_start_decl): Use the same `invalid' message.
1932 (parse_start_decl, parse_union_decl): Use the same `multiple'
1934 (parse_union_decl, copy_guard, copy_action): Use the same
1935 `unmatched' message.
1936 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1938 2000-03-31 Akim Demaille <akim@epita.fr>
1940 * src/files.c (tryopen, tryclose): Move to the top.
1943 2000-03-31 Akim Demaille <akim@epita.fr>
1945 * src/main.c (main): Don't call `done', exit does it.
1947 2000-03-31 Akim Demaille <akim@epita.fr>
1949 * allocate.c: s/return (foo)/return foo/.
1952 * output.c: Likewise.
1953 * reader.c: Likewise.
1954 * symtab.c: Likewise.
1955 * vmsgetargs.c: Likewise.
1957 2000-03-31 Akim Demaille <akim@epita.fr>
1959 Clean up the error reporting functions.
1961 * src/report.c: New file.
1962 * src/report.h: Likewise.
1963 * src/Makefile.am: Adjust.
1964 * m4/error.m4: New file.
1965 * m4/Makefile.am: Adjust.
1966 * configure.in (jm_PREREQ_ERROR): Call it.
1967 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1969 (fatal, fatals): Remove. All callers use complain.c::fatal.
1970 (warn, warni, warns, warnss, warnss): Remove. All callers use
1971 complain.c::complain.
1972 (toomany): Remove, use fatal instead.
1973 * src/files.c (done): No argument, use complain_message_count.
1974 * src/main.c (main): Register `done' to `atexit'.
1976 * src/getargs.c (usage): More `fputs', less `fprintf'.
1978 2000-03-28 Akim Demaille <akim@epita.fr>
1980 * lib/: New directory.
1981 * Makefile.am (SUBDIRS): Adjust.
1982 * configure.in: Adjust.
1983 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1985 * src/alloca.c: Moved to lib/.
1986 * src/getopt.c: Likewise.
1987 * src/getopt1.c: Likewise.
1988 * src/getopt.h: Likewise.
1989 * src/ansi2knr.c: Likewise.
1990 * src/ansi2knr.1: Likewise.
1991 * src/Makefile.am: Adjust.
1992 * lib/Makefile.am: New file.
1994 2000-03-28 Akim Demaille <akim@epita.fr>
1996 * src/getargs.c (usage): Refresh the help message.
1998 2000-03-17 Akim Demaille <akim@epita.fr>
2000 * src/getopt1.c: Updated from textutils 2.0e
2001 * src/getopt.c: Likewise.
2002 * src/getopt.h: Likewise.
2004 2000-03-17 Akim Demaille <akim@epita.fr>
2006 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2007 the file name, not the whole `#line LINE FILE'.
2009 2000-03-17 Akim Demaille <akim@epita.fr>
2011 On syntax errors, report the token on which we choked.
2013 * src/bison.s1 (yyparse): In the label yyerrlab, when
2014 YYERROR_VERBOSE, add yychar in msg.
2016 2000-03-17 Akim Demaille <akim@epita.fr>
2018 * src/reader.c (copy_at): New function.
2019 (copy_guard): Use it.
2020 (copy_action): Use it.
2022 2000-03-17 Akim Demaille <akim@epita.fr>
2024 Be kind to translators, save some useless translations.
2026 * src/main.c (banner): New function.
2027 (fatal_banner): Use it.
2028 (warn_banner): Use it.
2030 2000-03-17 Akim Demaille <akim@epita.fr>
2032 * src/reader.c (copy_definition): Use copy_string and
2033 copy_comment. Removed now unused `match', `ended',
2035 (copy_comment, copy_string): Moved, to be visible from
2038 2000-03-17 Akim Demaille <akim@epita.fr>
2040 * src/reader.c (copy_string): Declare `static inline'. No
2041 problems with inline, since it is checked by configure.
2042 (copy_comment): Likewise.
2044 2000-03-17 Akim Demaille <akim@epita.fr>
2046 * src/reader.c (packsymbols): Formatting changes.
2048 2000-03-17 Akim Demaille <akim@epita.fr>
2050 * src/reader.c (copy_comment): New function, factored out from:
2051 (copy_action): Use it. Removed now unused `match', `ended',
2053 (copy_guard): Likewise.
2055 2000-03-17 Akim Demaille <akim@epita.fr>
2057 * src/reader.c (copy_string): New function, factored out from:
2058 (copy_action): Use it.
2059 (copy_guard): Likewise.
2061 2000-03-17 Akim Demaille <akim@epita.fr>
2063 Change the handling of @s so that they behave exactly like $s.
2064 There is now a pseudo variable @$ (readble and writable), location
2065 of the lhs of the rule (by default ranging from the location of
2066 the first symbol of the rhs, to the location of the last symbol,
2067 or, if the rhs is empty, YYLLOC).
2069 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2071 (yyparse): When providing a default semantic action, provide a
2072 default location action.
2073 (after the $): No longer change `*YYLSP', just stack YYLOC the
2074 same way you stack YYVAL.
2075 * src/reader.c (read_declarations): Use warns.
2076 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2077 (copy_action, case '@'): Likewise.
2078 Use a standard error message, to save useless work from
2081 2000-03-17 Akim Demaille <akim@epita.fr>
2083 * src/bison.s1: Formatting and cosmetics changes.
2084 * src/reader.c: Likewise.
2085 Update the Copyright notice.
2087 2000-03-17 Akim Demaille <akim@epita.fr>
2089 * src/bison.s1 (#line): All set to `#line' only, since the
2090 Makefile now handles them.
2092 2000-03-16 Akim Demaille <akim@epita.fr>
2094 * src/output.c (output_rule_data): Output the documentation of
2096 (Copyright notice): Update.
2099 2000-03-16 Akim Demaille <akim@epita.fr>
2101 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2102 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2103 One `#if YYDEBUG' remains, since it uses variables which are
2104 defined only if `YYDEBUG != 0'.
2106 2000-03-16 Akim Demaille <akim@epita.fr>
2108 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2109 and related variables so that the similarities are highlighted.
2111 2000-03-16 Akim Demaille <akim@epita.fr>
2113 * src/bison.s1: Properly indent CPP directives.
2115 2000-03-16 Akim Demaille <akim@epita.fr>
2117 * src/bison.s1: Properly indent the `alloca' CPP section.
2119 2000-03-16 Akim Demaille <akim@epita.fr>
2121 Do not hard code values of directories in `configure.in'.
2122 Update the `configure' tool chain.
2124 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2126 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2127 (AC_OUTPUT): Add m4/Makefile.
2128 Bump to bison 1.28a, 1.29 has never been released.
2129 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2130 handled via src/Makefile.am.
2131 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2132 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2134 * Makefile.am (SUBDIRS): Add m4.
2135 (ACLOCAL_AM_FLAGS): New variable.
2136 (AUTOMAKE_OPTIONS): Add check-news.
2137 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2138 the proper line number and file name.
2139 (DEFS): Propagate the location of bison library files and of the
2141 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2143 * acinclude.m4: Remove, replaced by the directory m4.
2144 * m4/Makefile.am (EXTRA_DIST): New variable.
2145 * m4/gettext.m4: New file, from the fileutils.
2146 * m4/lcmessage.m4: Likewise
2147 * m4/progtest.m4: Likewise.
2148 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2150 2000-03-10 Akim Demaille <akim@epita.fr>
2153 Formatting changes of various comments.
2154 Respect the GNU coding standards at various places.
2155 Don't use `_()' when no translation is needed.
2157 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2160 OS/2 honors TMPDIR environment variable.
2162 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2164 * doc/bison.texinfo: Tweaked spelling and grammar.
2166 Removed reference to price of printed copy.
2167 Mention BISON_SIMPLE and BISON_HAIRY.
2169 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2171 * configure.in, NEWS:
2172 Bison 1.29 released.
2174 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2176 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2177 Added reference card.
2179 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2181 * po/ru.po: Added Russian translation.
2183 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2185 * configure.in: Added Russian translation.
2187 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2189 * configure.in, NEWS, README:
2190 Released version 1.28.
2192 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2195 Squashed redefinition warning on some systems.
2197 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2198 Have configure build version string instead of relying on ANSI string
2201 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2203 * po/POTFILES.in: Got rid of version.c.
2205 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2207 * acconfig.h, configure.in:
2208 Have configure build version string instead of relying on ANSI string
2211 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2214 Dropped mention of `+' for long-named options.
2216 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2218 * src/files.c: Added <unistd.h> for unlink().
2220 * src/Makefile.am, src/system.h:
2223 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2225 * README: Added a FAQ list.
2227 * configure.in, acconfig.h:
2230 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2232 * doc/FAQ, doc/Makefile.am:
2235 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2237 * src/alloc.h, src/symtab.h, src/version.c:
2238 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2240 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2242 * src/.cvsignore, src/Makefile.am:
2243 Reorganized: sources in `src', documentation in `doc'.
2245 * src/lex.c (literalchar):
2246 fixed the code for escaping double quotes (thanks
2249 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2251 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2252 Adjusted paths to reflect directory reorganization.
2254 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2256 * doc/.cvsignore, doc/Makefile.am:
2257 Reorganized: sources in `src', documentation in `doc'.
2259 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2262 Updated AC_INIT file to reflect directory reorganization.
2264 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2265 Reorganized: sources in `src', documentation in `doc'.
2267 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2270 Don't declare calloc() and realloc() if not necessary.
2272 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2274 * configure.in, acconfig.h, acinclude.m4:
2275 Don't declare calloc() and realloc() if not necessary.
2277 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2279 * po/.cvsignore: Added i18n support.
2281 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2283 * acconfig.h, configure.in, Makefile.am:
2286 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2288 * src/bison.s1: Fixed #line numbers.
2290 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2292 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2293 Added PO files from Translation Project.
2295 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2298 Added support for non-ANSI compilers (ansi2knr).
2300 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2302 * configure.in: Bumped version number to 1.27.
2305 Added `bison.simple' to list of files removed by `make distclean'.
2307 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2309 * src/files.c, src/files.h:
2310 Defined locations of parser files in config.h instead of Makefile.
2312 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2314 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2315 Defined locations of parser files in config.h instead of Makefile.
2317 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2320 Removed inappropriate use of $< macro.
2322 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2324 * po/Makefile.in.in, po/POTFILES.in:
2325 Add `po' directory skeleton.
2327 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2329 * README: Document help-bison list.
2331 * configure.in: Add check for mkstemp().
2333 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2335 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2336 Hush a few compiler warnings.
2339 Add tryclose(), which verifies that fclose was successful.
2340 Hush a couple of compiler warnings.
2342 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2344 * Makefile.am, OChangeLog:
2345 ChangeLog is now automatically generated. Include the old version as
2348 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2350 * 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:
2353 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2355 * doc/bison.texinfo: Fix formatting glitch.
2357 * doc/bison.texinfo: Update FSF address.
2359 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2361 * acconfig.h: Update FSF address.
2363 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2366 Don't define PACKAGE here, since config.h defines it.
2368 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2370 * src/reader.c: Update copyright date.
2373 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2374 favor of output directly to stderr (avoids buffer overruns).
2376 * src/reader.c: Some checks for premature EOF.
2378 * 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:
2379 Use prototypes if the compiler understands them.
2381 * src/files.c: Honor TMPDIR on Unix hosts.
2382 Use prototypes if the compiler understands them.
2385 Fix a couple of buffer overrun bugs.
2386 Use prototypes if the compiler understands them.
2388 * src/system.h: Include unistd.h and ctype.h.
2389 Use #ifdef instead of #if for NLS symbols.
2391 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2393 * doc/bison.texinfo:
2394 Delete comment "consider using @set for edition number, etc..." since
2395 we now are doing so.
2397 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2400 Use prototypes if the compiler understands them.
2402 * NEWS: Document 1.26 highlights.
2404 * Makefile.am: Require Automake 1.3 or later.
2407 Use prototypes if the compiler understands them.
2409 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2412 Use VERSION symbol from automake for version number.
2414 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2416 * acconfig.h, configure.in, version.cin:
2417 Use VERSION symbol from automake for version number.
2419 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2422 Distribute original version of simple parser (bison.s1), not built
2423 version (bison.simple).
2425 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2427 * doc/bison.texinfo: Add info dir entry.
2429 * doc/bison.texinfo:
2430 Let automake put version number into documentation.
2432 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2434 * src/bison.cld, src/build.com, src/vmshlp.mar:
2435 Add non-RCS files from /gd/gnu/bison.
2437 1998-11-26 Jesse Thilo <jthilo@gnu.org>
2440 Document the BISON_HAIRY and BISON_SIMPLE variables.
2442 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2444 * src/version.c: Build version.c automatically.
2447 Fix token numbering (used to start at 258, not 257).
2449 * src/system.h: Include config.h.
2451 * src/getargs.c: Update bug report address.
2453 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2454 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2456 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2459 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2461 * configure.in, version.cin:
2462 Build version.c automatically.
2464 * AUTHORS: Add AUTHORS file.
2466 * README: Update bug report address.
2469 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2471 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2474 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2476 * doc/bison.texinfo: Clean up some formatting.
2478 1998-05-05 Richard Stallman <rms@gnu.org>
2480 * doc/bison.texinfo:
2481 Explain better why to make a pure parser.
2483 1998-01-05 Richard Stallman <rms@gnu.org>
2485 * src/files.c (openfiles):
2486 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2487 find a temporary directory, if possible. Do not unlink files while
2490 1997-08-25 Richard Stallman <rms@gnu.org>
2492 * src/reader.c (stack_offset;):
2493 Change some warni to warns.
2495 * src/lex.c (literalchar): Use warns, not warni.
2497 1997-06-28 Richard Stallman <rms@gnu.org>
2499 * src/bison.s1: Add a Bison version comment.
2501 * src/main.c (fatal, warn, berror):
2504 1997-06-28 Richard Stallman <rms@gnu.org>
2506 * Makefile.in (bison_version): New variable.
2507 (dist): Use that variable.
2508 (bison.s1): Substitute the Bison version into bison.simple.
2510 * bison.simple: Add a Bison version comment.
2512 1997-06-18 Richard Stallman <rms@gnu.org>
2514 * src/main.c (fatal, warn, berror):
2515 Make error messages standard.
2516 (toomany): Improve error message text.
2518 * 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:
2519 new.h renamed to alloc.h.
2521 1997-06-18 Richard Stallman <rms@gnu.org>
2523 * Makefile.in: new.h renamed to alloc.h.
2525 1997-05-24 Richard Stallman <rms@gnu.org>
2527 * src/lex.c (literalchar):
2528 Fix the code for escaping \, " and '.
2530 (lex): Avoid trouble when there are many chars
2531 to discard in a char literal with just several chars in it.
2533 1997-05-17 Richard Stallman <rms@gnu.org>
2536 Use malloc, if using alloca is troublesome.
2537 (YYSTACK_USE_ALLOCA): New flag macro.
2538 Define it for some systems and compilers.
2539 (YYSTACK_ALLOC): New macro.
2540 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2541 If it was malloc'd, free it.
2543 1997-05-17 Richard Stallman <rms@gnu.org>
2546 Use malloc, if using alloca is troublesome.
2547 (YYSTACK_USE_ALLOCA): New flag macro.
2548 Define it for some systems and compilers.
2549 (YYSTACK_ALLOC): New macro.
2550 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2551 If it was malloc'd, free it.
2553 1997-04-23 Richard Stallman <rms@gnu.org>
2556 (alloca) [__hpux]: Always define as __builtin_alloca.
2558 1997-04-23 Richard Stallman <rms@gnu.org>
2561 (alloca) [__hpux]: Always define as __builtin_alloca.
2563 1997-04-22 Richard Stallman <rms@gnu.org>
2566 [__hpux]: Include alloca.h (right for HPUX 10)
2567 instead of declaring alloca (right for HPUX 9).
2569 * src/bison.s1 (__yy_memcpy):
2570 Declare arg `count' as unsigned int.
2571 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2573 1997-04-22 Richard Stallman <rms@gnu.org>
2576 [__hpux]: Include alloca.h (right for HPUX 10)
2577 instead of declaring alloca (right for HPUX 9).
2579 * bison.simple (__yy_memcpy):
2580 Declare arg `count' as unsigned int.
2581 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2583 1997-01-03 Richard Stallman <rms@gnu.org>
2585 * src/allocate.c: [__STDC__ or _MSC_VER]:
2586 Declare calloc and realloc to return void *.
2588 1997-01-02 Richard Stallman <rms@gnu.org>
2591 [_MSC_VER]: Include stdlib.h and process.h.
2592 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2594 * src/main.c (main): Return FAILURE as a value.
2595 (printable_version): Declare arg as int, not char.
2597 1997-01-02 Richard Stallman <rms@gnu.org>
2599 * Makefile.in (dist):
2600 Explicitly check for symlinks, and copy them.
2602 1996-12-19 Richard Stallman <rms@gnu.org>
2605 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2607 1996-12-18 Paul Eggert <eggert@gnu.org>
2609 * src/bison.s1 (yyparse):
2610 If __GNUC__ and YYPARSE_PARAM are both defined,
2611 declare yyparse to have a void * argument.
2613 1996-12-18 Paul Eggert <eggert@gnu.org>
2615 * bison.simple (yyparse):
2616 If __GNUC__ and YYPARSE_PARAM are both defined,
2617 declare yyparse to have a void * argument.
2619 1996-12-17 Richard Stallman <rms@gnu.org>
2621 * src/reduce.c (nbits): Add some casts.
2623 1996-08-12 Richard Stallman <rms@gnu.org>
2625 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2627 1996-08-12 Richard Stallman <rms@gnu.org>
2629 * bison.simple: Test _MSDOS as well as _MSDOS_.
2631 1996-07-31 Richard Stallman <rms@gnu.org>
2634 [__sun && __i386]: Include alloca.h.
2636 1996-07-31 Richard Stallman <rms@gnu.org>
2639 [__sun && __i386]: Include alloca.h.
2641 1996-07-30 Richard Stallman <rms@gnu.org>
2643 * src/bison.s1: Comment change.
2645 * src/bison.s1: Test _MSDOS_, not MSDOS.
2647 1996-07-30 Richard Stallman <rms@gnu.org>
2649 * bison.simple: Comment change.
2651 * bison.simple: Test _MSDOS_, not MSDOS.
2653 1996-06-01 Richard Stallman <rms@gnu.org>
2655 * 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:
2656 Insert `_' macro around many string constants.
2659 Insert `_' macro around many string constants.
2661 (main): Call setlocale, bindtextdomain and textdomain.
2663 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2664 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2665 [ENABLE_NLS]: Include libintl.h.
2666 [ENABLE_NLS] (gettext): Define.
2667 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2668 (N_, PACKAGE, LOCALEDIR): New macros.
2670 1996-06-01 Richard Stallman <rms@gnu.org>
2672 * POTFILES.in: New file.
2674 * Makefile.in (allocate.o):
2675 Define target explicitly.
2677 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2678 (LDFLAGS): Set to @LDFLAGS@.
2679 (configure): Run autoconf only if preceding `cd' succeeds.
2680 (bison.s1): Redirect output to temporary file then move the
2681 temporary to the target, rather than redirecting directly to bison.s1.
2682 (clean): Remove config.status and config.log.
2683 (distclean): Don't remove config.status here.
2685 1996-05-12 Richard Stallman <rms@gnu.org>
2688 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2690 1996-05-12 Richard Stallman <rms@gnu.org>
2693 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2695 1996-05-11 Richard Stallman <rms@gnu.org>
2697 * src/bison.s1 (__yy_memcpy):
2698 Really reorder the args, as was supposedly done on Feb 14 1995.
2699 (yyparse): Calls changed accordingly.
2701 1996-05-11 Richard Stallman <rms@gnu.org>
2703 * Makefile.in (dist): Don't use $(srcdir).
2705 * bison.simple (__yy_memcpy):
2706 Really reorder the args, as was supposedly done on Feb 14 1995.
2707 (yyparse): Calls changed accordingly.
2709 1996-01-27 Richard Stallman <rms@gnu.org>
2711 * src/output.c (output_rule_data):
2712 Test YYERROR_VERBOSE in the conditional
2713 around the definition of ttyname.
2715 1995-12-29 Richard Stallman <rms@gnu.org>
2718 Fix line numbers in #line commands.
2720 1995-12-29 Richard Stallman <rms@gnu.org>
2723 Fix line numbers in #line commands.
2725 1995-12-27 Richard Stallman <rms@gnu.org>
2727 * src/bison.s1 (YYPARSE_PARAM_DECL):
2728 In C++, make it always null.
2729 (YYPARSE_PARAM_ARG): New macro.
2730 (yyparse): Use YYPARSE_PARAM_ARG.
2732 1995-12-27 Richard Stallman <rms@gnu.org>
2734 * bison.simple (YYPARSE_PARAM_DECL):
2735 In C++, make it always null.
2736 (YYPARSE_PARAM_ARG): New macro.
2737 (yyparse): Use YYPARSE_PARAM_ARG.
2739 1995-11-29 Richard Stallman <rms@gnu.org>
2741 * doc/bison.texinfo:
2742 Describe literal string tokens, %raw, %no_lines, %token_table.
2744 1995-11-29 Daniel Hagerty <hag@gnu.org>
2746 * doc/bison.texinfo: Fixed update date
2748 1995-10-16 Richard Stallman <rms@gnu.org>
2750 * src/version.c: Version 1.25.
2752 1995-10-16 Richard Stallman <rms@gnu.org>
2754 * NEWS: *** empty log message ***
2756 1995-10-16 Richard Stallman <rms@gnu.org>
2758 * doc/bison.1, doc/bison.rnh:
2761 1995-10-15 Richard Stallman <rms@gnu.org>
2763 * src/vmsgetargs.c, src/getargs.c:
2764 Added -n, -k, and -raw switches.
2765 (noparserflag, toknumflag, rawtoknumflag): New variables.
2767 * src/symtab.h (SALIAS):
2768 New #define for adding aliases to %token.
2769 (struct bucket): Added `alias' field.
2771 * src/reduce.c (reduce_grammar):
2772 Revise error message.
2773 (print_notices): Remove final `.' from error message.
2775 * src/reader.c (reader_output_yylsp):
2777 (readgram): Use `#if 0' around code that accepted %command
2778 inside grammar rules: The documentation doesn't allow it,
2779 and it will fail since the %command processors scan for the next %.
2780 (parse_token_decl): Extended the %token
2781 declaration to allow a multi-character symbol as an alias.
2782 (parse_thong_decl): New function.
2783 (read_declarations): Added %thong declarations.
2784 (read_declarations): Handle NOOP to deal with allowing
2785 % declarations as another means to specify the flags.
2786 (readgram): Allow %prec prior to semantics embedded in a rule.
2787 (skip_to_char, read_declarations, copy_definition)
2788 (parse_token_decl, parse_start_decl, parse_type_decl)
2789 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2790 (get_type_name, copy_guard, copy_action, readgram)
2791 (get_type, packsymbols): Revised most error messages.
2792 Changed `fatal' to `warnxxx' to avoid aborting for error.
2793 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2794 (read_declarations): Improve the error message for
2795 an invalid character. Do not abort.
2796 (read_declarations, copy_guard, copy_action): Use
2797 printable_version to avoid unprintable characters in printed output.
2798 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2799 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2800 Allow the type of a non-terminal can be given
2801 more than once, as long as all specifications give the same type.
2804 (output_headers, output_trailers, output, output_gram)
2805 (output_rule_data): Implement noparserflag variable.
2806 Implement toknumflag variable.
2807 (output): Call reader_output_yylsp to output LTYPESTR.
2809 * src/main.c (main):
2810 If reader sees an error, don't process the grammar.
2811 (fatals): Updated to not use VARARGS1.
2812 (printable_version, int_to_string, warn, warni, warns, warnss)
2813 (warnsss): New error reporting functions. Avoid abort for error.
2816 Added THONG and NOOP for alias processing.
2817 Added SETOPT for the new code that allows setting options with %flags.
2820 Include getopt.h. Add some extern decls.
2821 (safegetc): New function to deal with EOF gracefully.
2822 (literalchar); new function to deal with reading \ escapes.
2823 (lex): Use literalchar.
2824 (lex): Implemented "..." tokens.
2825 (literalchar, lex, parse_percent_token): Made tokenbuffer
2826 always contain the token. This includes growing the token
2827 buffer while reading an integer.
2828 (parse_percent_token): Replaced if-else statement with percent_table.
2829 (parse_percent_token): Added % declarations as another
2830 way to specify the flags -n, -l, and -r. Also added hooks for
2831 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2832 major changes to files.c.
2833 (lex) Retain in the incoming stream a character following
2835 (skip_white_space, lex): Revised most error messages
2836 and changed fatal to warn to avoid aborting.
2837 (percent_table): Added %thong declarations.
2839 * src/gram.h: Comment changes.
2841 * src/files.c (openfiles, open_extra_files, done):
2843 and actfile file. Handle noparserflag. Both for -n switch.
2845 * src/conflicts.c (resolve_sr_conflict):
2846 Remove use of alloca.
2848 1995-06-01 Jim Meyering <meyering@gnu.org>
2850 * doc/bison.texinfo: *** empty log message ***
2852 1995-05-06 Richard Stallman <rms@gnu.org>
2854 * src/bison.s1: Comment change.
2856 1995-05-06 Richard Stallman <rms@gnu.org>
2858 * bison.simple: Comment change.
2860 1995-05-03 Richard Stallman <rms@gnu.org>
2862 * src/version.c: Version now 1.24.
2864 * src/bison.s1: Change distribution terms.
2866 * src/version.c: Version now 1.23.
2868 1995-05-03 Richard Stallman <rms@gnu.org>
2870 * doc/bison.texinfo:
2871 Rewrite "Conditions for Using Bison".
2872 Update version to 1.24.
2874 1995-05-03 Richard Stallman <rms@gnu.org>
2876 * bison.simple: Change distribution terms.
2878 1995-02-23 Richard Stallman <rms@gnu.org>
2880 * src/files.c: Test __VMS_POSIX as well as VMS.
2882 1995-02-14 Jim Meyering <meyering@gnu.org>
2884 * src/bison.s1 (__yy_memcpy):
2885 Renamed from __yy_bcopy to avoid
2886 confusion. Reverse FROM and TO arguments to be consistent with
2889 1995-02-14 Jim Meyering <meyering@gnu.org>
2891 * bison.simple (__yy_memcpy):
2892 Renamed from __yy_bcopy to avoid
2893 confusion. Reverse FROM and TO arguments to be consistent with
2896 1994-11-10 David J. MacKenzie <djm@gnu.org>
2902 * Makefile.in (DISTFILES): Include NEWS.
2904 * Makefile.in (DISTFILES):
2905 Include install-sh, not install.sh.
2907 * configure.in: Update to Autoconf v2 macro names.
2909 1994-10-05 David J. MacKenzie <djm@gnu.org>
2911 * Makefile.in: fix typo
2913 * Makefile.in (prefix, exec_prefix):
2914 Let configure set them.
2916 1994-09-28 David J. MacKenzie <djm@gnu.org>
2918 * Makefile.in: Set datadir to $(prefix)/share.
2920 1994-09-15 Richard Stallman <rms@gnu.org>
2923 Update copyright notice and GPL version.
2925 1994-09-15 Richard Stallman <rms@gnu.org>
2928 Update copyright notice and GPL version.
2930 1994-07-12 Richard Stallman <rms@gnu.org>
2932 * src/reduce.c, src/reader.c:
2935 1994-05-05 David J. MacKenzie <djm@gnu.org>
2937 * Makefile.in: entered into RCS
2939 1994-03-26 Richard Stallman <rms@gnu.org>
2941 * src/bison.s1: entered into RCS
2943 1994-03-26 Richard Stallman <rms@gnu.org>
2945 * bison.simple: entered into RCS
2947 1994-03-25 Richard Stallman <rms@gnu.org>
2949 * src/main.c: entered into RCS
2951 1994-03-24 Richard Stallman <rms@gnu.org>
2953 * src/conflicts.c: entered into RCS
2955 1994-01-02 Richard Stallman <rms@gnu.org>
2957 * Makefile.in: *** empty log message ***
2959 1993-11-21 Richard Stallman <rms@gnu.org>
2961 * src/bison.s1: *** empty log message ***
2963 1993-11-21 Richard Stallman <rms@gnu.org>
2965 * doc/bison.texinfo: entered into RCS
2967 * doc/bison.texinfo: *** empty log message ***
2969 1993-11-21 Richard Stallman <rms@gnu.org>
2971 * bison.simple: *** empty log message ***
2973 1993-10-25 David J. MacKenzie <djm@gnu.org>
2975 * doc/bison.texinfo: *** empty log message ***
2977 1993-10-19 Richard Stallman <rms@gnu.org>
2979 * src/bison.s1: *** empty log message ***
2981 1993-10-19 Richard Stallman <rms@gnu.org>
2983 * bison.simple: *** empty log message ***
2985 1993-10-14 Richard Stallman <rms@gnu.org>
2987 * src/bison.s1: *** empty log message ***
2989 1993-10-14 Richard Stallman <rms@gnu.org>
2991 * bison.simple: *** empty log message ***
2993 1993-09-14 David J. MacKenzie <djm@gnu.org>
2995 * doc/bison.texinfo: *** empty log message ***
2997 1993-09-13 Noah Friedman <friedman@gnu.org>
2999 * Makefile.in: *** empty log message ***
3001 1993-09-10 Richard Stallman <rms@gnu.org>
3003 * src/conflicts.c: *** empty log message ***
3005 * src/system.h: entered into RCS
3007 1993-09-10 Richard Stallman <rms@gnu.org>
3009 * doc/bison.1: entered into RCS
3011 1993-09-06 Noah Friedman <friedman@gnu.org>
3013 * src/version.c: entered into RCS
3015 1993-09-06 Noah Friedman <friedman@gnu.org>
3017 * Makefile.in: *** empty log message ***
3019 1993-07-30 David J. MacKenzie <djm@gnu.org>
3021 * Makefile.in: *** empty log message ***
3023 1993-07-24 Richard Stallman <rms@gnu.org>
3025 * src/bison.s1: *** empty log message ***
3027 1993-07-24 Richard Stallman <rms@gnu.org>
3029 * bison.simple: *** empty log message ***
3031 1993-07-08 David J. MacKenzie <djm@gnu.org>
3033 * Makefile.in: *** empty log message ***
3035 1993-07-04 Richard Stallman <rms@gnu.org>
3037 * src/bison.s1: *** empty log message ***
3039 1993-07-04 Richard Stallman <rms@gnu.org>
3041 * bison.simple: *** empty log message ***
3043 1993-06-26 David J. MacKenzie <djm@gnu.org>
3045 * src/getargs.c: entered into RCS
3047 1993-06-26 David J. MacKenzie <djm@gnu.org>
3049 * doc/bison.texinfo: *** empty log message ***
3051 * doc/bison.1: New file.
3053 1993-06-25 Richard Stallman <rms@gnu.org>
3055 * src/getargs.c: New file.
3057 1993-06-16 Richard Stallman <rms@gnu.org>
3059 * src/bison.s1: *** empty log message ***
3061 1993-06-16 Richard Stallman <rms@gnu.org>
3063 * bison.simple: *** empty log message ***
3065 1993-06-03 Richard Stallman <rms@gnu.org>
3067 * src/bison.s1: New file.
3069 1993-06-03 Richard Stallman <rms@gnu.org>
3071 * doc/bison.texinfo: *** empty log message ***
3073 1993-06-03 Richard Stallman <rms@gnu.org>
3075 * bison.simple: New file.
3077 1993-05-19 Richard Stallman <rms@gnu.org>
3079 * doc/bison.texinfo: New file.
3081 1993-05-07 Noah Friedman <friedman@gnu.org>
3083 * Makefile.in: *** empty log message ***
3085 1993-04-28 Noah Friedman <friedman@gnu.org>
3087 * src/reader.c: *** empty log message ***
3089 1993-04-23 Noah Friedman <friedman@gnu.org>
3091 * src/alloc.h: entered into RCS
3093 1993-04-20 David J. MacKenzie <djm@gnu.org>
3095 * src/version.c: *** empty log message ***
3097 * src/files.c, src/allocate.c:
3100 * src/reader.c: *** empty log message ***
3102 * src/lex.c: entered into RCS
3104 * src/conflicts.c: New file.
3106 * src/symtab.c: entered into RCS
3108 * src/alloc.h: New file.
3110 * src/LR0.c: entered into RCS
3112 1993-04-18 Noah Friedman <friedman@gnu.org>
3114 * src/reader.c: New file.
3116 * src/version.c: *** empty log message ***
3118 1993-04-18 Noah Friedman <friedman@gnu.org>
3120 * Makefile.in: *** empty log message ***
3122 1993-04-17 Noah Friedman <friedman@gnu.org>
3124 * Makefile.in: *** empty log message ***
3126 1993-04-15 Richard Stallman <rms@gnu.org>
3128 * src/main.c, src/files.c:
3131 1993-04-15 Noah Friedman <friedman@gnu.org>
3133 * configure.in: entered into RCS
3135 * configure.in: *** empty log message ***
3137 * configure.in: New file.
3139 1993-04-14 Richard Stallman <rms@gnu.org>
3141 * Makefile.in: New file.
3143 1993-04-13 Richard Stallman <rms@gnu.org>
3145 * src/version.c: New file.
3147 1993-03-25 Richard Stallman <rms@gnu.org>
3149 * src/output.c: entered into RCS
3151 1992-09-25 Richard Stallman <rms@gnu.org>
3153 * configure.bat: entered into RCS
3155 1992-06-22 Richard Stallman <rms@gnu.org>
3157 * src/vmsgetargs.c: entered into RCS
3159 1992-06-22 Richard Stallman <rms@gnu.org>
3161 * doc/bison.rnh: entered into RCS
3163 1992-04-20 David J. MacKenzie <djm@gnu.org>
3165 * README: entered into RCS
3167 1992-01-22 Richard Stallman <rms@gnu.org>
3169 * src/machine.h: entered into RCS
3171 1991-12-21 Richard Stallman <rms@gnu.org>
3173 * src/lalr.c, src/closure.c:
3176 1991-12-20 Richard Stallman <rms@gnu.org>
3178 * src/state.h: entered into RCS
3180 1991-12-18 Richard Stallman <rms@gnu.org>
3182 * src/print.c, src/nullable.c, src/derives.c:
3185 1991-11-03 David J. MacKenzie <djm@gnu.org>
3187 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3190 1988-09-09 Richard Stallman <rms@gnu.org>
3192 * src/bison.hairy: entered into RCS
3194 1987-12-16 Richard Stallman <rms@gnu.org>
3196 * REFERENCES: entered into RCS