1 2001-09-27 Akim Demaille <akim@epita.fr>
5 2001-09-27 Akim Demaille <akim@epita.fr>
9 2001-09-25 Akim Demaille <akim@epita.fr>
11 * src/system.h: Include `xalloc.h'.
12 Remove it from the C files.
13 * src/files.c (output_files): Free the obstacks.
14 * src/lex.c (init_lex): Rename as...
17 * src/main.c (main): Use it.
19 2001-09-24 Marc Autret <autret_m@epita.fr>
21 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
22 to output informations in fout (FILE*).
23 (open_graph, close_graph): Likewise.
24 (output_graph, output_edge, output_node): Likewise.
25 * src/vcg.h: Update function prototypes.
26 * src/print_graph.c (print_graph): Open output graph file.
27 (print_actions): Adjust.
28 * src/files.h: Remove extern declaration.
29 * src/files.c: Remove graph_obstack declaration.
30 (open_files): Remove graph_obstack initialization.
31 (output_files): Remove graph_obstack saving.
33 2001-09-24 Marc Autret <autret_m@epita.fr>
35 * src/files.c (compute_output_file_names): Fix.
37 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
39 * src/reader.c (reader): Remove call to free_symtab ().
40 * src/main.c (main): Call it here.
42 * src/conflicts.c (initialize_conflicts): Rename as...
43 (solve_conflicts): this.
44 * src/print.c (print_core, print_actions, print_state)
45 (print_grammar): Dump to a file instead a `output_obstack'.
46 (print_results): Dump `output_obstack', and then proceed with the
48 * src/files.c (compute_output_file_names, close_files): New.
49 (output_files): Adjust.
50 * src/main.c (main): Adjust.
52 2001-09-23 Marc Autret <autret_m@epita.fr>
54 * src/files.c (compute_header_macro): Computes header macro name
55 from spec_defines_file when given.
57 2001-09-23 Marc Autret <autret_m@epita.fr>
59 * src/files.c (output_files): Add default extensions.
61 2001-09-22 Akim Demaille <akim@epita.fr>
63 * src/conflicts.c (finalize_conflicts): Rename as...
64 (free_conflicts): this.
66 2001-09-22 Akim Demaille <akim@epita.fr>
68 * src/gram.c (gram_free): Rename back as...
70 (output_token_translations): Free `token_translations'.
71 * src/symtab.c (free_symtab): Free the tag field.
73 2001-09-22 Akim Demaille <akim@epita.fr>
75 Remove `translations' as it is always set to true.
78 * src/reader.c (packsymbols, parse_token_decl): Adjust
79 * src/print.c (print_grammar): Adjust.
80 * src/output.c (output_token_translations): Adjust.
81 * src/lex.c (lex): Adjust.
82 * src/gram.c: Be sure the set pointers to NULL.
86 2001-09-22 Akim Demaille <akim@epita.fr>
88 * configure.in: Invoke AM_LIB_DMALLOC.
89 * src/system.h: Use dmalloc.
90 * src/LR0.c: Be sure to have pointers initialized to NULL.
91 (allocate_itemsets): Allocate kernel_items only if needed.
93 2001-09-22 Akim Demaille <akim@epita.fr>
95 * configure.in: Bump to 1.29b.
96 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
97 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
98 need xmalloc.c in calc.y.
101 2001-09-21 Akim Demaille <akim@epita.fr>
104 * Makefile.maint, config/config.guess, config/config.sub,
105 * config/missing: Update from masters.
106 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
108 * configure.in (ALL_LINGUAS): Add `tr'.
110 2001-09-21 Akim Demaille <akim@epita.fr>
112 * tests/Makefile.am (package.m4): Move to...
113 ($(srcdir)/$(TESTSUITE)): here.
115 2001-09-20 Akim Demaille <akim@epita.fr>
117 * src/complain.c: No longer try to be standalone: use system.h.
118 Don't assume __STDC__ is defined to 1. Just test if it is defined.
119 * src/complain.h: Likewise.
120 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
121 Remove the unused variable `n'.
122 From Albert Chin-A-Young.
124 2001-09-18 Marc Autret <autret_m@epita.fr>
126 * doc/bison.1: Update.
127 * doc/bison.texinfo (Bison Options): Update --defines and --graph
129 (Option Cross Key): Update.
132 2001-09-18 Marc Autret <autret_m@epita.fr>
134 * tests/regression.at: New test (comment in %union).
136 2001-09-18 Marc Autret <autret_m@epita.fr>
138 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
140 Reported by Keith Browne.
142 2001-09-18 Marc Autret <autret_m@epita.fr>
144 * tests/output.at: Add tests for --defines and --graph.
146 2001-09-18 Marc Autret <autret_m@epita.fr>
148 * tests/output.at: Removes tests of %{header,src}_extension features.
150 2001-09-18 Akim Demaille <akim@epita.fr>
152 * tests/Makefile.am (package.m4): New.
153 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
154 (_AT_CHECK_CALC_ERROR): Likewise.
155 Factor the `, ' part of verbose error messages.
157 2001-09-18 Marc Autret <autret_m@epita.fr>
159 * src/getargs.c (longopts): Declare --defines and --graph as options
160 with optional arguments.
161 * src/files.h: Add extern declarations.
162 * src/files.c (spec_graph_file, spec_defines_file): New.
163 (output_files): Update.
164 Remove CPP-outed code.
166 2001-09-18 Marc Autret <autret_m@epita.fr>
168 Turn off %{source,header}_extension feature.
170 * src/files.c (compute_exts_from_gf): Update.
171 (compute_exts_from_src): Update.
172 (output_files): CPP-out useless code.
173 * src/files.h: Remove {header,source}_extension extern declarations.
174 * src/reader.c (parse_dquoted_param): CPP-out.
175 (parse_header_extension_decl): Remove.
176 (parse_source_extension_decl): Remove.
177 (read_declarations): Remove cases tok_{hdrext,srcext}.
178 * src/lex.c (percent_table): Remove {header,source}_extension entries.
179 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
181 2001-09-10 Akim Demaille <akim@epita.fr>
183 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
184 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
185 (AT_CHECK_OUTPUT): this.
186 Merely check ls' exit status, its output is useless.
188 2001-09-10 Akim Demaille <akim@epita.fr>
190 * tests/calc.at: Use m4_match.
191 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
193 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
195 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
197 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
199 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
200 * src/lex.h: Adjust prototype.
201 (token_t): Add `tok_undef'.
202 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
203 (parse_percent_token): Now returns token_t.
204 Add default statement in switch.
205 (lex): Separate `c' as an input variable, from the token_t result
207 (unlexed): Is a token_t.
209 2001-09-10 Akim Demaille <akim@epita.fr>
211 * configure.in: Bump to 1.29a.
213 2001-09-07 Akim Demaille <akim@epita.fr>
217 2001-08-30 Akim Demaille <akim@epita.fr>
219 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
220 * m4/atconfig.m4: Remove.
221 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
223 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
224 m4_if, m4_patsubst, and m4_regexp.
225 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
226 `input' file instead of echo.
228 2001-08-29 Akim Demaille <akim@epita.fr>
232 2001-08-29 Akim Demaille <akim@epita.fr>
236 2001-08-29 Paul Eggert <eggert@twinsun.com>
238 * src/bison.simple (yyparse): Don't take the address of an
239 item before the start of an array, as that doesn't conform to
242 2001-08-29 Robert Anisko <anisko_r@epita.fr>
244 * doc/bison.texinfo (Location Tracking Calc): New node.
246 2001-08-29 Paul Eggert <eggert@twinsun.com>
248 * src/output.c (output): Do not define const, as this now
249 causes more problems than it cures.
251 2001-08-29 Akim Demaille <akim@epita.fr>
253 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
255 Be sure to tag the `detailmenu'.
257 2001-08-29 Akim Demaille <akim@epita.fr>
259 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
260 download in a tmp dir.
262 2001-08-28 Marc Autret <autret_m@epita.fr>
264 * config/depcomp: New file.
266 2001-08-28 Marc Autret <autret_m@epita.fr>
268 * doc/bison.1 (mandoc): Adjust.
269 From Juan Manuel Guerrero.
271 2001-08-28 Marc Autret <autret_m@epita.fr>
273 * src/print_graph.c (print_state): Fix.
275 2001-08-27 Marc Autret <autret_m@epita.fr>
277 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
279 Echo modifications to the functions prototypes.
280 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
282 2001-08-27 Marc Autret <autret_m@epita.fr>
284 * src/vcg.c: Include `xalloc.h'.
285 (add_colorentry): New.
286 (add_classname): New.
288 * src/vcg.h: Add new prototypes.
290 2001-08-27 Akim Demaille <akim@epita.fr>
292 * Makefile.maint: Sync. again with CVS Autoconf.
294 2001-08-27 Akim Demaille <akim@epita.fr>
296 * Makefile.maint: Formatting changes.
297 (po-update, cvs-update, update): New targets.
300 2001-08-27 Akim Demaille <akim@epita.fr>
302 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
303 * Makefile.maint: Sync. with CVS Autoconf.
305 2001-08-27 Marc Autret <autret_m@epita.fr>
307 * src/vcg.h (struct infoname_s): New.
308 (struct colorentry_s): New.
309 (graph_s): New fields {vertical,horizontal}_order in structure.
310 Add `infoname' field.
311 Add `colorentry' field;
312 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
313 (G_HORIZONTAL_ORDER): New.
316 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
317 Add output of `infoname'.
318 Add output of `colorentry'.
320 2001-08-27 Marc Autret <autret_m@epita.fr>
322 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
323 This one shadowed a global parameter.
325 2001-08-24 Marc Autret <autret_m@epita.fr>
327 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
328 instead of `unsigned'.
329 (print_state): Do not call obstack_object_size () in obstack_grow ()
330 to avoid macro variables shadowing.
332 2001-08-23 Marc Autret <autret_m@epita.fr>
334 * src/lex.c (percent_table): Typo: s/naem/name/.
336 Normalize new options declarations.
338 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
340 * tests/suite.at: Exercise %header_extension and %source_extension.
342 2001-08-16 Marc Autret <autret_m@epita.fr>
344 * src/reader.c (parse_dquoted_param): New.
345 (parse_header_extension_decl): Use it.
346 (parse_source_extension_decl): Likewise.
348 2001-08-16 Marc Autret <autret_m@epita.fr>
350 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
351 (get_xxxx_str): Use assert () instead of complain ().
352 Remove return invokations in default cases.
353 (get_decision_str): Modify default behaviour. Remove second argument.
354 Echo modifications on calls.
357 2001-08-16 Marc Autret <autret_m@epita.fr>
359 * src/getargs.c (usage): Update with ``-g, --graph''.
361 2001-08-16 Marc Autret <autret_m@epita.fr>
363 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
364 (Option Cross Key): Likewise.
365 * doc/bison.1: Update.
367 2001-08-15 Akim Demaille <akim@epita.fr>
371 2001-08-15 Marc Autret <autret_m@epita.fr>
373 * src/reader.c (readgram): Indent output macro YYSTYPE.
374 (packsymbols): Likewise.
375 (output_token_defines): Likewise.
376 * src/files.c: Standardize.
377 (compute_header_macro): New.
378 (defines_obstack_save): New. Use compute_header_macro.
379 (output_files): Update. Use defines_obstack_save.
381 2001-08-15 Akim Demaille <akim@epita.fr>
383 * doc/bison.texinfo (Table of Symbols): Document
386 2001-08-15 Akim Demaille <akim@epita.fr>
388 * missing: Update from CVS Automake.
389 * config/config.guess, config/config.sub, config/texinfo.tex:
392 2001-08-15 Akim Demaille <akim@epita.fr>
394 * Makefile.maint: Sync with CVS Autoconf.
396 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
398 * doc/bison.texinfo: Include GNU Free Documentation License from
400 * doc/fdl.texi: Add to package.
402 2001-08-14 Marc Autret <autret_m@epita.fr>
404 Turn on %{source,header}_extension features.
406 * src/lex.c (percent_table): Un-CPP out header_extension and
408 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
409 (compute_exts_from_src): Remove conditions. It restores priorities
412 2001-08-14 Marc Autret <autret_m@epita.fr>
414 * src/files.c (compute_base_names): Add extensions computing when
415 `--file-prefix' used.
416 Standardize function calls.
418 2001-08-13 Marc Autret <autret_m@epita.fr>
420 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
421 defining it (defined but null disables alloca).
423 2001-08-13 Marc Autret <autret_m@epita.fr>
425 * src/bison.simple (_yy_memcpy): CPP reformat.
427 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
429 * tests/atconfig.in (CPPFLAGS): Fix.
431 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
433 * doc/bison.texinfo: Include GNU General Public License from
435 * doc/gpl.texi: Add to package.
437 2001-08-10 Marc Autret <autret_m@epita.fr>
439 * src/print_graph.h: Fix.
440 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
442 2001-08-10 Akim Demaille <akim@epita.fr>
444 * src/system.h: Provide default declarations for stpcpy, strndup,
447 2001-08-10 Robert Anisko <anisko_r@epita.fr>
449 * doc/bison.texinfo (Locations): Update @$ stuff.
451 2001-08-09 Robert Anisko <anisko_r@epita.fr>
453 * src/bison.simple (YYLLOC_DEFAULT): Update.
456 2001-08-08 Marc Autret <autret_m@epita.fr>
458 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
459 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
460 Reported by Fabrice Bauzac.
462 2001-08-08 Marc Autret <autret_m@epita.fr>
464 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
465 * src/vcg.c (output_node): Fix.
466 * src/vcg.h: Cleanup.
467 * src/print_graph.c: Add comments.
468 (node_output_size): New global variable. Simplify the formatting of
469 the VCG graph output.
470 (print_actions): Unused code is now used. It notifies the final state
471 and no action states in the VCG graph. It also give the reduce actions.
472 The `shift and goto' edges are red and the `go to state' edges are
474 Get the current node name and node_obstack by argument.
475 (node_obstack): New variable.
476 (print_state): Manage node_obstack.
477 (print_core): Use node_obstack given by argument.
478 A node is not only computed here but in print_actions also.
479 (print_graph): CPP out useless code instead of commenting it.
481 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
483 * tests/atconfig.in (CPPFLAGS): Fix.
485 2001-08-07 Akim Demaille <akim@epita.fr>
487 * src/print_graph.c (quote): New.
488 (print_core): Use it.
490 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
492 * src/vcg.c (complain.h): Include it.
493 Unepitaize `return' invocations.
494 [NDEBUG] (main): Remove.
495 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
496 * src/files.c (open_files): Initialize graph_obstack.
497 * src/print_graph.c (print_actions): CPP out useless code.
498 (print_core): Don't output the last `\n' in labels.
500 * src/files.c (output_files): Output the VCG file.
501 * src/main.c (main): Invoke print_graph ();
503 2001-08-06 Marc Autret <autret_m@epita.fr>
505 Automaton VCG graph output.
506 Using option ``-g'' or long option ``--graph'', you can generate
507 a gram_filename.vcg file containing a VCG description of the LALR (1)
508 automaton of your grammar.
510 * src/main.c: Call to print_graph() function.
511 * src/getargs.h: Update.
512 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
513 (graph_flag): New flag.
515 (getargs): Add case `g'.
516 * src/files.c (graph_obstack): New obstack struct.
517 (open_files): Initialize new obstack.
518 (output_files): Saves graph_obstack if required.
519 * src/files.h (graph_obstack): New extern declaration.
520 * src/Makefile.am: Add new source files.
522 2001-08-06 Marc Autret <autret_m@epita.fr>
524 * src/print_graph.c, src/print_graph.h (graph): New.
525 * src/vcg.h: New file.
526 * src/vcg.c: New file, VCG graph handling.
528 2001-08-06 Marc Autret <autret_m@epita.fr>
530 Add of %source_extension and %header_extension which specify
531 the source or/and the header output file extension.
533 * src/files.c (compute_base_names): Remove initialisation of
534 src_extension and header_extension.
535 (compute_exts_from_gf): Update.
536 (compute_exts_from_src): Update.
537 (output_files): Update.
538 * src/reader.c (parse_header_extension_decl): New.
539 (parse_source_extension_decl): New.
540 (read_declarations): New case statements for the new tokens.
541 * src/lex.c (percent_table): Add entries for %source_extension
542 and %header_extension.
543 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
545 2001-08-06 Marc Autret <autret_m@epita.fr>
547 * configure.in: Bump to 1.28c.
548 * doc/bison.texinfo: Texinfo thingies.
550 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
552 * tests/atconfig.in (CPPFLAGS): Add.
553 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
555 2001-08-03 Akim Demaille <akim@epita.fr>
559 2001-08-03 Akim Demaille <akim@epita.fr>
561 * tests/Makefile.am (check-local): Ship testsuite.
562 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
565 2001-08-03 Akim Demaille <akim@epita.fr>
567 * configure.in: Try using -Wformat when compiling.
569 2001-08-03 Akim Demaille <akim@epita.fr>
571 * configure.in: Bump to 1.28b.
573 2001-08-03 Akim Demaille <akim@epita.fr>
575 * src/complain.c: Adjust strerror_r portability issues.
577 2001-08-03 Akim Demaille <akim@epita.fr>
581 2001-08-03 Akim Demaille <akim@epita.fr>
583 * src/getargs.c, src/getarg.h (skeleton)): Constify.
584 * src/lex.c (literalchar): Avoid name clashes on `buf'.
585 * src/getargs.c: Include complain.h.
586 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
587 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
589 2001-08-03 Akim Demaille <akim@epita.fr>
591 * src/reader.c (readgram): Display hidden chars in error messages.
593 2001-08-03 Akim Demaille <akim@epita.fr>
595 Update to gettext 0.10.39.
597 2001-08-03 Akim Demaille <akim@epita.fr>
601 2001-08-01 Marc Autret <autret_m@epita.fr>
603 * doc/bison.texinfo: Update.
604 * doc/bison.1 (mandoc): Update.
605 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
606 * src/files.c: Support output files extensions computing.
607 (src_extension): New static variable.
608 (header_extension): New static variable.
610 (get_extension_index): New function, gets the index of an extension
611 filename in a string.
612 (compute_exts_from_gf): New function, computes extensions from the
613 grammar file extension.
614 (compute_exts_from_src): New functions, computes extensions from the
615 C source file extension, file given by ``-o'' option.
616 (compute_base_names): Update.
617 (output_files): Update.
619 2001-08-01 Robert Anisko <anisko_r@epita.fr>
621 * doc/bison.texi: Document @$.
622 (Locations): New section.
624 2001-07-18 Akim Demaille <akim@epita.fr>
626 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
627 * config/prev-version.txt, config/move-if-change: New.
628 * Makefile.am: Adjust.
630 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
632 * src/bison.simple (yyparse): Suppress warning `comparaison
633 between signed and unsigned'.
635 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
637 * src/getargs.h (raw_flag): Remove.
638 * src/getargs.c: Die on `-r'/`--raw'.
639 * src/lex.c (parse_percent_token): Die on `%raw'.
640 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
641 * tests/calc.at: Suppress test with option `--raw'.
643 2001-07-14 Akim Demaille <akim@epita.fr>
646 * configure.in: Require Autoconf 2.50.
647 Update to gettext 0.10.38.
649 2001-03-16 Akim Demaille <akim@epita.fr>
651 * doc/bison.texinfo: ANSIfy the examples.
653 2001-03-16 Akim Demaille <akim@epita.fr>
655 * getargs.c (skeleton): New variable.
656 (longopts): --skeleton is a new option.
657 (shortopts, getargs): -S is a new option.
658 * getargs.h: Declare skeleton.
659 * output.c (output_parser): Use it.
661 2001-03-16 Akim Demaille <akim@epita.fr>
663 * m4/strerror_r.m4: New.
664 * m4/error.m4: Run AC_FUNC_STRERROR_R.
665 * lib/error.h, lib/error.c: Update.
667 2001-03-16 Akim Demaille <akim@epita.fr>
669 * src/getargs.c (longopts): Clean up.
671 2001-02-21 Akim Demaille <akim@epita.fr>
673 * src/reader.c (gensym): `gensym_count' is your own.
674 Use a static buf to create the symbol name, as token_buffer is no
677 2001-02-08 Akim Demaille <akim@epita.fr>
679 * src/conflicts.c (conflict_report): Be sure not to append to res
680 between two calls, which could happen if both first sprintf were
681 skipped, but not the first cp += strlen.
683 2001-02-08 Akim Demaille <akim@epita.fr>
685 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
686 New, from fileutils 4.0.37.
687 * configure.in: Require Autoconf 2.49c. I took some time before
688 making this decision. This is the only way out for portability
689 issues in Bison, it would mean way too much duplicate effort to
690 import in Bison features implemented in 2.49c since 2.13.
691 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
693 2001-02-02 Akim Demaille <akim@epita.fr>
695 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
696 * lib/xalloc.h, lib/xmalloc.c: Update.
698 2001-01-19 Akim Demaille <akim@epita.fr>
700 Get rid of the ad hoc handling of token_buffer in the scanner: use
703 * src/lex.c (token_obstack): New.
704 (init_lex): Initialize it. No longer call...
705 (grow_token_buffer): this. Remove it.
706 Adjust all the places which used it to use the obstack.
708 2001-01-19 Akim Demaille <akim@epita.fr>
710 * src/lex.h: Rename all the tokens:
711 s/\bENDFILE\b/tok_eof/g;
712 s/\bIDENTIFIER\b/tok_identifier/g;
714 Let them be enums, not #define, to ease debugging.
717 2001-01-18 Akim Demaille <akim@epita.fr>
719 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
720 * src/lex.c (maxtoken, grow_token_buffer): Static.
722 2001-01-18 Akim Demaille <akim@epita.fr>
724 Since we now use obstacks, more % directives can be enabled.
726 * src/lex.c (percent_table): Also accept `%yacc',
727 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
729 Handle the actions for `%semantic_parser' and `%pure_parser' here,
730 instead of returning a token.
731 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
732 * src/reader.c (read_declarations): Adjust.
733 * src/files.c (open_files): Don't call `compute_base_names', don't
734 compute `attrsfile' since they depend upon data which might be
735 *in* the input file now.
736 (output_files): Do it here.
737 * src/output.c (output_headers): Document the fact that this patch
738 introduces a guaranteed SEGV for semantic parsers.
739 * doc/bison.texinfo: Document them.
740 * tests/suite.at: Exercise these %options.
742 2000-12-20 Akim Demaille <akim@epita.fr>
744 Also handle the output file (--verbose) with obstacks.
746 * files.c (foutput): Remove.
747 (output_obstack): New.
748 Adjust all dependencies.
749 * src/conflicts.c: Return a string.
750 * src/system.h (obstack_grow_string): Rename as...
751 (obstack_sgrow): this. Be ready to work with non literals.
752 (obstack_fgrow4): New.
754 2000-12-20 Akim Demaille <akim@epita.fr>
756 * src/files.c (open_files): Fix the computation of short_base_name
757 in the case of `-o foo.tab.c'.
759 2000-12-20 Akim Demaille <akim@epita.fr>
761 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
762 (copy_dollar): Now that everything uses obstacks, get rid of the
765 2000-12-20 Akim Demaille <akim@epita.fr>
767 * src/files.c (open_files): Actually the `.output' file is based
768 on the short_base_name, not base_name.
769 * tests/suite.at (Checking output file names): Adjust.
771 2000-12-20 Akim Demaille <akim@epita.fr>
773 * src/bison.s1: Remove, we now use directly...
774 * src/bison.simple: this.
775 * src/Makefile.am: Use pkgdata instead of data.
777 2000-12-20 Akim Demaille <akim@epita.fr>
779 * src/files.c (guard_obstack): New.
780 (open_files): Initialize it.
781 (output_files): Dump it...
782 * src/files.h: Export it.
783 * src/reader.c (copy_guard): Use it.
785 2000-12-19 Akim Demaille <akim@epita.fr>
787 * src/files.c (outfile, defsfile, actfile): Removed as global
789 (open_files): Don't compute them.
790 (output_files): Adjust.
791 (base_name, short_base_name): Be global.
794 2000-12-19 Akim Demaille <akim@epita.fr>
796 * src/files.c (strsuffix): New.
797 (stringappend): Be just like strcat but allocate.
798 (base_names): Eve out from open_files.
799 Try to simplify the rather hairy computation of base_name and
801 (open_files): Use it.
802 * tests/suite.at (Checking output file names): New test.
804 2000-12-19 Akim Demaille <akim@epita.fr>
806 * src/system.h (obstack_grow_literal_string): Rename as...
807 (obstack_grow_string): this.
808 * src/output.c (output_parser): Recognize `%% actions' instead of
810 * src/bison.s1: s/$/%% actions/.
811 * src/bison.hairy: Likewise.
813 2000-12-19 Akim Demaille <akim@epita.fr>
815 * src/output.c (output_parser): Compute the `#line' lines when
817 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
818 Suggested by Hans Aberg.
820 2000-12-19 Akim Demaille <akim@epita.fr>
822 Let the handling of the skeleton files be local to the procedures
825 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
827 (fparser, open_extra_files): Remove.
828 (open_files, output_files): Don't take care of fparser.
829 * src/files.h: Adjust.
830 * src/output.c (output_parser): Open and close the file to the
832 * src/reader.c (read_declarations): When %semantic_parser, open
835 2000-12-19 Akim Demaille <akim@epita.fr>
837 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
838 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
840 2000-12-19 Akim Demaille <akim@epita.fr>
842 * src/files.c (open_files): Yipee! We no longer need all the code
843 looking for `/tmp' since we have no tmp file.
845 2000-12-19 Akim Demaille <akim@epita.fr>
847 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
849 * src/files.c (open_files): Less dependency on MSDOS etc.
851 2000-12-14 Akim Demaille <akim@epita.fr>
853 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
854 Provide a default definition.
855 Use it when executing the default @ action.
856 * src/reader.c (reader_output_yylsp): No longer include
857 `timestamp' and `text' in the default YYLTYPE.
859 2000-12-12 Akim Demaille <akim@epita.fr>
861 * src/reader.c (copy_definition, parse_union_decl, copy_action)
862 (copy_guard): Quote the file names.
863 Reported by Laurent Mascherpa.
865 2000-12-12 Akim Demaille <akim@epita.fr>
867 * src/output.c (output_headers, output_program, output): Be sure
868 to escape special characters when outputting filenames.
869 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
870 (output_headers): Don't depend on them, Use ACTSTR.
872 2000-11-17 Akim Demaille <akim@epita.fr>
874 * lib/obstack.h: Formatting changes.
875 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
876 prevents type checking.
877 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
878 cast the value to (void *): assigning a `foo *' to a `void *'
880 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
881 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
884 2000-11-17 Akim Demaille <akim@epita.fr>
886 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
888 (suite.m4, regression.m4, calc.m4): these.
889 * tests/atgeneral.m4: Update from CVS Autoconf.
891 2000-11-17 Akim Demaille <akim@epita.fr>
893 * tests/regression.m4 (%union and --defines): New test,
894 demonstrating a current bug in the obstack implementation.
896 2000-11-17 Akim Demaille <akim@epita.fr>
898 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
900 Use them to declare the variables which are global or local to
903 2000-11-17 Akim Demaille <akim@epita.fr>
905 * acconfig.h: Remove, no longer used.
907 2000-11-07 Akim Demaille <akim@epita.fr>
909 * src: s/Copyright (C)/Copyright/g.
911 2000-11-07 Akim Demaille <akim@epita.fr>
913 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
915 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
917 2000-11-07 Akim Demaille <akim@epita.fr>
919 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
920 Merge in a single CPP if/else.
922 2000-11-07 Akim Demaille <akim@epita.fr>
924 * src/output.c (output): Remove useless variables.
925 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
926 argument `data' for consistency with the prototypes.
928 (obstack_copy, obstack_copy0): Rename the second argument as
929 `address' for consistency. Qualify it `const'.
930 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
931 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
932 `const' their input argument (`data' or `address').
933 Adjust the corresponding macros to include `const' in casts.
935 2000-11-03 Akim Demaille <akim@epita.fr>
937 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
938 s/PFILE1/BISON_HAIRY/.
941 2000-11-03 Akim Demaille <akim@epita.fr>
943 For some reason, this was not applied.
945 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
946 `unlink': it's no longer used.
948 2000-11-03 Akim Demaille <akim@epita.fr>
950 * src/files.c (skeleton_find): New function, eved out of...
951 (open_files, open_extra_files): here.
953 2000-11-03 Akim Demaille <akim@epita.fr>
957 * src/files.c (obstack_save): New function.
959 (output_files): this.
961 * src/main.c (main): Don't use `atexit' to register `done', since
962 it no longer has to remove tmp files, just call `output_files'
963 when there are no errors.
965 2000-11-02 Akim Demaille <akim@epita.fr>
967 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
968 `unlink': it's no longer used.
969 * src/files.h: Formatting changes.
971 2000-11-02 Akim Demaille <akim@epita.fr>
973 Remove the last uses of mktemp and unlink/delete.
975 * src/files.c (fdefines, ftable): Removed.
976 (defines_ostack, table_obstack): New.
977 Adjust dependencies of the former into uses of the latter.
978 * src/output.c (output_short_or_char_table, output_short_table):
979 Convert to using obstacks.
980 * src/reader.c (copy_comment2): Accept one FILE * and two
982 (output_token_defines, reader_output_yylsp): Use obstacks.
983 * src/system.h (obstack_fgrow3): New.
985 2000-11-01 Akim Demaille <akim@epita.fr>
987 Change each use of `fattrs' into a use of `attrs_obstack'.
989 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
990 * src/files.c (fattrs): Remove.
991 (attrs_obstack): New.
992 Adjust all dependencies.
993 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
995 2000-11-01 Akim Demaille <akim@epita.fr>
998 Change each use of `faction' into a use of `action_obstack'.
1000 * lib/obstack.h, lib/obstack.c: New files.
1001 * src/files.c (faction): Remove.
1002 (action_obstack): New.
1003 Adjust all dependencies.
1005 2000-10-20 Akim Demaille <akim@epita.fr>
1007 * lib/quote.h (PARAMS): New macro. Use it.
1009 2000-10-16 Akim Demaille <akim@epita.fr>
1011 * src/output.c (output_short_or_char_table): New function.
1012 (output_short_table, output_token_translations): Use it.
1013 (goto_actions): Use output_short_table.
1015 2000-10-16 Akim Demaille <akim@epita.fr>
1017 * src/symtab.c (bucket_new): New function.
1020 * src/output.c (output_short_table): New argument to display the
1021 comment associated with the table.
1022 Adjust dependencies.
1023 (output_gram): Use it.
1024 (output_rule_data): Nicer output layout for YYTNAME.
1026 2000-10-16 Akim Demaille <akim@epita.fr>
1028 * src/lex.c (read_typename): New function.
1030 * src/reader.c (copy_dollar): Likewise.
1032 2000-10-16 Akim Demaille <akim@epita.fr>
1034 * src/reader.c (copy_comment2): Expect the input stream to be on
1035 the `/' which is suspected to open a comment, instead of being
1036 called after `//' or `/*' was read.
1037 (copy_comment, copy_definition, parse_union_decl, copy_action)
1038 (copy_guard): Adjust.
1040 2000-10-16 Akim Demaille <akim@epita.fr>
1042 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1043 `read_signed_integer'.
1045 2000-10-16 Akim Demaille <akim@epita.fr>
1047 * src/reader.c (copy_dollar): New function.
1048 (copy_guard, copy_action): Use it.
1050 2000-10-16 Akim Demaille <akim@epita.fr>
1052 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1053 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1054 New files, from Fileutils 4.0.27.
1055 * src/main.c (printable_version): Remove.
1056 * src/lex.c, src/reader.c: Use `quote'.
1058 2000-10-04 Akim Demaille <akim@epita.fr>
1060 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1062 2000-10-04 Akim Demaille <akim@epita.fr>
1064 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1066 2000-10-04 Akim Demaille <akim@epita.fr>
1068 When a literal string is used to define two different tokens,
1069 `bison -v' segfaults.
1070 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1072 * tests/regression.m4: New file.
1073 Include the core of the sample provided by Piotr Gackiewicz.
1074 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1077 2000-10-04 Akim Demaille <akim@epita.fr>
1079 * src/reader.c (parse_expect_decl): Keep `count' within the size
1083 2000-10-02 Paul Eggert <eggert@twinsun.com>
1085 * bison.s1 (yyparse): Assign the default value
1086 unconditionally, to avoid a GCC warning and make the parser a
1089 2000-10-02 Akim Demaille <akim@epita.fr>
1091 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1094 2000-10-02 Akim Demaille <akim@epita.fr>
1096 * src/derives.c, src/print.c, src/reduce.c: To ease the
1097 translation, move some `\n' out of the translated strings.
1099 2000-10-02 Akim Demaille <akim@epita.fr>
1101 The location tracking mechanism is precious for parse error
1102 messages. Nevertheless, it is enabled only when `@n' is used in
1103 the grammar, which is a different issue (you can use it in error
1104 message, but not in the grammar per se). Therefore, there should
1105 be another means to enable it.
1107 * src/getargs.c (getargs): Support `--locations'.
1109 * src/getargs.h (locationsflag): Export it.
1110 * src/lex.c (percent_table): Support `%locations'.
1111 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1112 with `locationsflag'.
1113 * doc/bison.texinfo: Document `--locations' and `%locations'.
1115 * tests/calc.m4: Test it.
1117 For regularity of the names, replace each
1118 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1119 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1120 In addition replace each `flag' with `_flag'.
1122 2000-10-02 Akim Demaille <akim@epita.fr>
1124 Also test parse error messages, including with YYERROR_VERBOSE.
1126 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1128 Use it to check the computations.
1129 Use it to check `nonassoc' is honored.
1130 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1131 `--yyerror-verbose'.
1132 (_AT_CHECK_CALC): Adjust to this option.
1133 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1135 2000-10-02 Akim Demaille <akim@epita.fr>
1137 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1138 the latter demonstrates a flaw in the handling of non debugging
1139 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1140 was used in order to simplify:
1156 unfortunately this leads to a CPP conflict when
1157 `--name-prefix=foo' is used since it produces `#define yydebug
1160 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1161 (YYDPRINTF): New macro.
1163 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1165 Also test `--verbose', `--defines' and `--name-prefix'.
1167 2000-10-02 Akim Demaille <akim@epita.fr>
1169 Improve the readability of the produced parsers.
1171 * src/bison.s1: Formatting changes.
1172 Improve the comment related to the `$' mark.
1173 (yydefault): Don't fall through to `yyresume': `goto' there.
1174 * src/output.c (output_parser): When the `$' is met, skip the end
1176 New variable, `number_of_dollar_signs', to check there's exactly
1177 one `$' in the parser skeleton.
1179 2000-10-02 Akim Demaille <akim@epita.fr>
1181 * lib/xstrdup.c: New file, from the fileutils.
1182 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1183 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1184 instead of strlen + xmalloc + strcpy.
1185 * src/symtab.c (copys): Remove, use xstrdup instead.
1187 2000-10-02 Akim Demaille <akim@epita.fr>
1189 * src/gram.h (associativity): New enum type which replaces the
1190 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1191 `right_assoc', `left_assoc' and `non_assoc'.
1192 Adjust all dependencies.
1193 * src/reader.c: Formatting changes.
1194 (LTYPESTR): Don't define it, use it as a literal in
1195 `reader_output_yylsp'.
1196 * src/symtab.h (symbol_class): New enum type which replaces the
1197 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1198 `sunknown', `stoken and `snterm'.
1200 2000-10-02 Akim Demaille <akim@epita.fr>
1202 * src/getargs.c (fixed_outfiles): Rename as...
1203 (yaccflag): for consistency and accuracy.
1204 Adjust dependencies.
1206 2000-10-02 Akim Demaille <akim@epita.fr>
1208 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1209 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1210 difficult and introduced a lot of core dump. It turns out that
1211 Bison used an implementation of `xmalloc' based on `calloc', and
1212 at various places it does depend upon the initialization to 0. I
1213 have not tried to isolate the pertinent places, and all the former
1214 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1215 someone should address this issue.
1217 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1218 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1220 Adjust dependencies.
1221 * src/warshall.h: New file.
1224 2000-10-02 Akim Demaille <akim@epita.fr>
1226 Various anti-`extern in *.c' changes.
1228 * src/system.h: Include `assert.h'.
1230 2000-10-02 Akim Demaille <akim@epita.fr>
1232 * src/state.h (nstates, final_state, first_state, first_shift)
1233 (first_reduction): Move their exportation from here...
1234 * src/LR0.h: to here.
1235 Adjust dependencies.
1236 * src/getargs.c (statisticsflag): New variable.
1237 Add support for `--statistics'.
1238 Adjust dependencies.
1240 Remove a lot of now useless `extern' statements in most files.
1242 2000-10-02 Akim Demaille <akim@epita.fr>
1244 * src/LR0.h: New file.
1247 2000-10-02 Akim Demaille <akim@epita.fr>
1249 * src/print.h: New file.
1251 * src/print.c: Formatting and ordering changes.
1252 (verbose, terse): Replace with...
1253 (print_results): this new function.
1254 Adjust dependencies.
1256 2000-10-02 Akim Demaille <akim@epita.fr>
1258 * src/conflicts.c (conflict_report): New function.
1259 (conflict_log, verbose_conflict_log): Replace with...
1260 (print_conflicts): this function.
1261 Adjust dependencies.
1262 * src/conflicts.h: New file.
1263 Propagate its inclusion.
1265 2000-10-02 Akim Demaille <akim@epita.fr>
1267 * src/nullable.h: New file.
1268 Propagate its inclusion.
1269 * src/nullable.c: Formatting changes.
1271 2000-10-02 Akim Demaille <akim@epita.fr>
1273 * src/reduce.h: New file.
1274 Propagate its inclusion.
1275 * src/reduce.c: Topological sort and other formatting changes.
1276 (bool, TRUE, FALSE): Move their definition to...
1277 * src/system.h: here.
1279 2000-10-02 Akim Demaille <akim@epita.fr>
1281 * src/files.c: Formatting changes.
1282 (tryopen, tryclose, openfiles): Rename as...
1283 (xfopen, xfclose, open_files): this.
1284 (stringappend): static.
1285 * src/files.h: Complete the list of exported symbols.
1288 2000-10-02 Akim Demaille <akim@epita.fr>
1290 * src/reader.h: New file.
1291 Propagate its use instead of tedious list of `extern' and
1293 * src/reader.c: Formatting changes, topological sort,
1296 2000-10-02 Akim Demaille <akim@epita.fr>
1298 * src/lex.h: Prototype `lex.c' exported functions.
1299 * src/reader.c: Adjust.
1300 * src/lex.c: Formatting changes.
1301 (safegetc): Rename as...
1304 2000-10-02 Akim Demaille <akim@epita.fr>
1306 * src/lalr.h: New file.
1307 Propagate its inclusion instead of prototypes and `extern'.
1308 * src/lalr.c: Formatting changes, topological sorting etc.
1310 2000-10-02 Akim Demaille <akim@epita.fr>
1312 * src/output.c (token_actions): Introduce a temporary array,
1313 YYDEFACT, that makes it possible for this function to use
1316 2000-10-02 Akim Demaille <akim@epita.fr>
1318 `user_toknums' is output as a `short[]' in `output.c', while it is
1319 defined as a `int[]' in `reader.c'. For consistency with the
1320 other output tables, `user_toknums' is now defined as a table of
1323 * src/reader.c (user_toknums): Be a short table instead of an int
1325 Adjust dependencies.
1327 Factor the short table outputs.
1329 * src/output.c (output_short_table): New function.
1330 * src/output.c (output_gram, output_stos, output_rule_data)
1331 (output_base, output_table, output_check): Use it.
1333 2000-10-02 Akim Demaille <akim@epita.fr>
1335 * src/output.c (output): Topological sort of the functions, in
1336 order to get rid of the `static' prototypes.
1337 No longer use `register'.
1338 * src/output.h: New file.
1339 Propagate its inclusion in files explicitly prototyping functions
1342 2000-09-21 Akim Demaille <akim@epita.fr>
1344 * src/atgeneral.m4: Update from Autoconf.
1346 2000-09-21 Akim Demaille <akim@epita.fr>
1348 * src/closure.h: New file.
1349 * src/closure.c: Formatting changes, topological sort over the
1350 functions, use of closure.h.
1351 (initialize_closure, finalize_closure): Rename as...
1352 (new_closure, free_closure): these. Adjust dependencies.
1353 * src/LR0.c: Formatting changes, topological sort, use of
1355 (initialize_states): Rename as...
1357 * src/Makefile.am (noinst_HEADERS): Adjust.
1359 2000-09-20 Akim Demaille <akim@epita.fr>
1361 * src/acconfig.h: Don't protect config.h against multiple
1363 Don't define PARAMS.
1364 * src/system.h: Define PARAMS.
1365 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1366 purpose of config.h. system.h must not try to fix wrong
1367 definitions in config.h.
1369 2000-09-20 Akim Demaille <akim@epita.fr>
1371 * src/derives.h: New file.
1372 * src/main.c, src/derives.h: Use it.
1374 * src/Makefile.am (noinst_HEADERS): Adjust.
1376 2000-09-20 Akim Demaille <akim@epita.fr>
1378 * tests/atgeneral.m4: Update from Autoconf.
1379 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1380 (AT_CHECK_CALC): New macros.
1381 Use these macros to test bison with options `', `--raw',
1382 `--debug', `--yacc', `--yacc --debug'.
1384 2000-09-19 Akim Demaille <akim@epita.fr>
1386 * src/output.c: Formatting changes.
1387 * src/machine.h: Remove, leaving its contents in...
1388 * src/system.h: here.
1390 Adjust all dependencies on stdio.h and machine.h.
1391 * src/getargs.h: New file.
1392 Let all `extern' declarations about getargs.c be replaced with
1393 inclusion of `getargs.h'.
1394 * src/Makefile.am (noinst_HEADERS): Adjust.
1396 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1398 (yyerror): Returns void, not int.
1399 * doc/bison.texinfo: Formatting changes.
1401 2000-09-19 Akim Demaille <akim@epita.fr>
1403 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1406 2000-09-18 Akim Demaille <akim@epita.fr>
1408 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1409 * src/Makefile.am (INCLUDES): Don't.
1410 Be ready to fetch headers in lib/.
1412 2000-09-18 Akim Demaille <akim@epita.fr>
1414 * doc/bison.texinfo: Update the copyright.
1415 ANSIfy and GNUify the examples.
1416 Remove the old menu.
1418 2000-09-18 Akim Demaille <akim@epita.fr>
1420 First set of tests: use the `calc' example from the documentation.
1422 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1423 is defined only when YYDEBUG is.
1424 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1425 * src/files.c (tryopen, tryclose): Formatting changes.
1426 Move to the top and be static.
1427 * src/reader.c (read_signed_integer): Likewise.
1428 * tests/calc.m4: New file.
1429 * Makefile.am, suite.m4: Adjust.
1430 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1432 2000-09-18 Akim Demaille <akim@epita.fr>
1434 Add support for an Autotest test suite for Bison.
1436 * m4/m4.m4, m4/atconfig.m4: New files.
1437 * m4/Makefile.am (EXTRA_DIST): Adjust.
1438 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1440 * src/getargs.c: Display a more standard --version message.
1441 * src/reader.c (reader): Formatting changes.
1442 No longer depend upon VERSION_STRING.
1443 * configure.in: No longer use `dnl'.
1444 Set up the test suite and the new directory `tests/.
1445 (VERSION_STRING): Remove.
1447 2000-04-14 Akim Demaille <akim@epita.fr>
1449 * src/reader.c (copy_comment2): New function, same as former
1450 `copy_comment', but outputs into two FILE *.
1451 (copy_comment): Use it.
1452 (parse_union_decl): Use it.
1453 (get_type, parse_start_decl): Use the same `invalid' message.
1454 (parse_start_decl, parse_union_decl): Use the same `multiple'
1456 (parse_union_decl, copy_guard, copy_action): Use the same
1457 `unmatched' message.
1458 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1460 2000-03-31 Akim Demaille <akim@epita.fr>
1462 * src/files.c (tryopen, tryclose): Move to the top.
1465 2000-03-31 Akim Demaille <akim@epita.fr>
1467 * src/main.c (main): Don't call `done', exit does it.
1469 2000-03-31 Akim Demaille <akim@epita.fr>
1471 * allocate.c: s/return (foo)/return foo/.
1474 * output.c: Likewise.
1475 * reader.c: Likewise.
1476 * symtab.c: Likewise.
1477 * vmsgetargs.c: Likewise.
1479 2000-03-31 Akim Demaille <akim@epita.fr>
1481 Clean up the error reporting functions.
1483 * src/report.c: New file.
1484 * src/report.h: Likewise.
1485 * src/Makefile.am: Adjust.
1486 * m4/error.m4: New file.
1487 * m4/Makefile.am: Adjust.
1488 * configure.in (jm_PREREQ_ERROR): Call it.
1489 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1491 (fatal, fatals): Remove. All callers use complain.c::fatal.
1492 (warn, warni, warns, warnss, warnss): Remove. All callers use
1493 complain.c::complain.
1494 (toomany): Remove, use fatal instead.
1495 * src/files.c (done): No argument, use complain_message_count.
1496 * src/main.c (main): Register `done' to `atexit'.
1498 * src/getargs.c (usage): More `fputs', less `fprintf'.
1500 2000-03-28 Akim Demaille <akim@epita.fr>
1502 * lib/: New directory.
1503 * Makefile.am (SUBDIRS): Adjust.
1504 * configure.in: Adjust.
1505 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1507 * src/alloca.c: Moved to lib/.
1508 * src/getopt.c: Likewise.
1509 * src/getopt1.c: Likewise.
1510 * src/getopt.h: Likewise.
1511 * src/ansi2knr.c: Likewise.
1512 * src/ansi2knr.1: Likewise.
1513 * src/Makefile.am: Adjust.
1514 * lib/Makefile.am: New file.
1516 2000-03-28 Akim Demaille <akim@epita.fr>
1518 * src/getargs.c (usage): Refresh the help message.
1520 2000-03-17 Akim Demaille <akim@epita.fr>
1522 * src/getopt1.c: Updated from textutils 2.0e
1523 * src/getopt.c: Likewise.
1524 * src/getopt.h: Likewise.
1526 2000-03-17 Akim Demaille <akim@epita.fr>
1528 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1529 the file name, not the whole `#line LINE FILE'.
1531 2000-03-17 Akim Demaille <akim@epita.fr>
1533 On syntax errors, report the token on which we choked.
1535 * src/bison.s1 (yyparse): In the label yyerrlab, when
1536 YYERROR_VERBOSE, add yychar in msg.
1538 2000-03-17 Akim Demaille <akim@epita.fr>
1540 * src/reader.c (copy_at): New function.
1541 (copy_guard): Use it.
1542 (copy_action): Use it.
1544 2000-03-17 Akim Demaille <akim@epita.fr>
1546 Be kind to translators, save some useless translations.
1548 * src/main.c (banner): New function.
1549 (fatal_banner): Use it.
1550 (warn_banner): Use it.
1552 2000-03-17 Akim Demaille <akim@epita.fr>
1554 * src/reader.c (copy_definition): Use copy_string and
1555 copy_comment. Removed now unused `match', `ended',
1557 (copy_comment, copy_string): Moved, to be visible from
1560 2000-03-17 Akim Demaille <akim@epita.fr>
1562 * src/reader.c (copy_string): Declare `static inline'. No
1563 problems with inline, since it is checked by configure.
1564 (copy_comment): Likewise.
1566 2000-03-17 Akim Demaille <akim@epita.fr>
1568 * src/reader.c (packsymbols): Formatting changes.
1570 2000-03-17 Akim Demaille <akim@epita.fr>
1572 * src/reader.c (copy_comment): New function, factored out from:
1573 (copy_action): Use it. Removed now unused `match', `ended',
1575 (copy_guard): Likewise.
1577 2000-03-17 Akim Demaille <akim@epita.fr>
1579 * src/reader.c (copy_string): New function, factored out from:
1580 (copy_action): Use it.
1581 (copy_guard): Likewise.
1583 2000-03-17 Akim Demaille <akim@epita.fr>
1585 Change the handling of @s so that they behave exactly like $s.
1586 There is now a pseudo variable @$ (readble and writable), location
1587 of the lhs of the rule (by default ranging from the location of
1588 the first symbol of the rhs, to the location of the last symbol,
1589 or, if the rhs is empty, YYLLOC).
1591 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1593 (yyparse): When providing a default semantic action, provide a
1594 default location action.
1595 (after the $): No longer change `*YYLSP', just stack YYLOC the
1596 same way you stack YYVAL.
1597 * src/reader.c (read_declarations): Use warns.
1598 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1599 (copy_action, case '@'): Likewise.
1600 Use a standard error message, to save useless work from
1603 2000-03-17 Akim Demaille <akim@epita.fr>
1605 * src/bison.s1: Formatting and cosmetics changes.
1606 * src/reader.c: Likewise.
1607 Update the Copyright notice.
1609 2000-03-17 Akim Demaille <akim@epita.fr>
1611 * src/bison.s1 (#line): All set to `#line' only, since the
1612 Makefile now handles them.
1614 2000-03-16 Akim Demaille <akim@epita.fr>
1616 * src/output.c (output_rule_data): Output the documentation of
1618 (Copyright notice): Update.
1621 2000-03-16 Akim Demaille <akim@epita.fr>
1623 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1624 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1625 One `#if YYDEBUG' remains, since it uses variables which are
1626 defined only if `YYDEBUG != 0'.
1628 2000-03-16 Akim Demaille <akim@epita.fr>
1630 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1631 and related variables so that the similarities are highlighted.
1633 2000-03-16 Akim Demaille <akim@epita.fr>
1635 * src/bison.s1: Properly indent CPP directives.
1637 2000-03-16 Akim Demaille <akim@epita.fr>
1639 * src/bison.s1: Properly indent the `alloca' CPP section.
1641 2000-03-16 Akim Demaille <akim@epita.fr>
1643 Do not hard code values of directories in `configure.in'.
1644 Update the `configure' tool chain.
1646 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1648 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1649 (AC_OUTPUT): Add m4/Makefile.
1650 Bump to bison 1.28a, 1.29 has never been released.
1651 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1652 handled via src/Makefile.am.
1653 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1654 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1656 * Makefile.am (SUBDIRS): Add m4.
1657 (ACLOCAL_AM_FLAGS): New variable.
1658 (AUTOMAKE_OPTIONS): Add check-news.
1659 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1660 the proper line number and file name.
1661 (DEFS): Propagate the location of bison library files and of the
1663 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1665 * acinclude.m4: Remove, replaced by the directory m4.
1666 * m4/Makefile.am (EXTRA_DIST): New variable.
1667 * m4/gettext.m4: New file, from the fileutils.
1668 * m4/lcmessage.m4: Likewise
1669 * m4/progtest.m4: Likewise.
1670 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1672 2000-03-10 Akim Demaille <akim@epita.fr>
1675 Formatting changes of various comments.
1676 Respect the GNU coding standards at various places.
1677 Don't use `_()' when no translation is needed.
1679 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1682 OS/2 honors TMPDIR environment variable.
1684 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1686 * doc/bison.texinfo: Tweaked spelling and grammar.
1688 Removed reference to price of printed copy.
1689 Mention BISON_SIMPLE and BISON_HAIRY.
1691 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1693 * configure.in, NEWS:
1694 Bison 1.29 released.
1696 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1698 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1699 Added reference card.
1701 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1703 * po/ru.po: Added Russian translation.
1705 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1707 * configure.in: Added Russian translation.
1709 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1711 * configure.in, NEWS, README:
1712 Released version 1.28.
1714 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1717 Squashed redefinition warning on some systems.
1719 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1720 Have configure build version string instead of relying on ANSI string
1723 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1725 * po/POTFILES.in: Got rid of version.c.
1727 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1729 * acconfig.h, configure.in:
1730 Have configure build version string instead of relying on ANSI string
1733 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1736 Dropped mention of `+' for long-named options.
1738 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1740 * src/files.c: Added <unistd.h> for unlink().
1742 * src/Makefile.am, src/system.h:
1745 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1747 * README: Added a FAQ list.
1749 * configure.in, acconfig.h:
1752 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1754 * doc/FAQ, doc/Makefile.am:
1757 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1759 * src/alloc.h, src/symtab.h, src/version.c:
1760 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1762 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1764 * src/.cvsignore, src/Makefile.am:
1765 Reorganized: sources in `src', documentation in `doc'.
1767 * src/lex.c (literalchar):
1768 fixed the code for escaping double quotes (thanks
1771 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1773 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1774 Adjusted paths to reflect directory reorganization.
1776 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1778 * doc/.cvsignore, doc/Makefile.am:
1779 Reorganized: sources in `src', documentation in `doc'.
1781 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1784 Updated AC_INIT file to reflect directory reorganization.
1786 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1787 Reorganized: sources in `src', documentation in `doc'.
1789 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1792 Don't declare calloc() and realloc() if not necessary.
1794 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1796 * configure.in, acconfig.h, acinclude.m4:
1797 Don't declare calloc() and realloc() if not necessary.
1799 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1801 * po/.cvsignore: Added i18n support.
1803 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1805 * acconfig.h, configure.in, Makefile.am:
1808 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1810 * src/bison.s1: Fixed #line numbers.
1812 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1814 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1815 Added PO files from Translation Project.
1817 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1820 Added support for non-ANSI compilers (ansi2knr).
1822 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1824 * configure.in: Bumped version number to 1.27.
1827 Added `bison.simple' to list of files removed by `make distclean'.
1829 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1831 * src/files.c, src/files.h:
1832 Defined locations of parser files in config.h instead of Makefile.
1834 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1836 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1837 Defined locations of parser files in config.h instead of Makefile.
1839 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1842 Removed inappropriate use of $< macro.
1844 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1846 * po/Makefile.in.in, po/POTFILES.in:
1847 Add `po' directory skeleton.
1849 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1851 * README: Document help-bison list.
1853 * configure.in: Add check for mkstemp().
1855 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1857 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1858 Hush a few compiler warnings.
1861 Add tryclose(), which verifies that fclose was successful.
1862 Hush a couple of compiler warnings.
1864 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1866 * Makefile.am, OChangeLog:
1867 ChangeLog is now automatically generated. Include the old version as
1870 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1872 * 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:
1875 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1877 * doc/bison.texinfo: Fix formatting glitch.
1879 * doc/bison.texinfo: Update FSF address.
1881 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1883 * acconfig.h: Update FSF address.
1885 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1888 Don't define PACKAGE here, since config.h defines it.
1890 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1892 * src/reader.c: Update copyright date.
1895 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1896 favor of output directly to stderr (avoids buffer overruns).
1898 * src/reader.c: Some checks for premature EOF.
1900 * 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:
1901 Use prototypes if the compiler understands them.
1903 * src/files.c: Honor TMPDIR on Unix hosts.
1904 Use prototypes if the compiler understands them.
1907 Fix a couple of buffer overrun bugs.
1908 Use prototypes if the compiler understands them.
1910 * src/system.h: Include unistd.h and ctype.h.
1911 Use #ifdef instead of #if for NLS symbols.
1913 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1915 * doc/bison.texinfo:
1916 Delete comment "consider using @set for edition number, etc..." since
1917 we now are doing so.
1919 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1922 Use prototypes if the compiler understands them.
1924 * NEWS: Document 1.26 highlights.
1926 * Makefile.am: Require Automake 1.3 or later.
1929 Use prototypes if the compiler understands them.
1931 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1934 Use VERSION symbol from automake for version number.
1936 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1938 * acconfig.h, configure.in, version.cin:
1939 Use VERSION symbol from automake for version number.
1941 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1944 Distribute original version of simple parser (bison.s1), not built
1945 version (bison.simple).
1947 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1949 * doc/bison.texinfo: Add info dir entry.
1951 * doc/bison.texinfo:
1952 Let automake put version number into documentation.
1954 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1956 * src/bison.cld, src/build.com, src/vmshlp.mar:
1957 Add non-RCS files from /gd/gnu/bison.
1959 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1962 Document the BISON_HAIRY and BISON_SIMPLE variables.
1964 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1966 * src/version.c: Build version.c automatically.
1969 Fix token numbering (used to start at 258, not 257).
1971 * src/system.h: Include config.h.
1973 * src/getargs.c: Update bug report address.
1975 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1976 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1978 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1981 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1983 * configure.in, version.cin:
1984 Build version.c automatically.
1986 * AUTHORS: Add AUTHORS file.
1988 * README: Update bug report address.
1991 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1993 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1996 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1998 * doc/bison.texinfo: Clean up some formatting.
2000 1998-05-05 Richard Stallman <rms@gnu.org>
2002 * doc/bison.texinfo:
2003 Explain better why to make a pure parser.
2005 1998-01-05 Richard Stallman <rms@gnu.org>
2007 * src/files.c (openfiles):
2008 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2009 find a temporary directory, if possible. Do not unlink files while
2012 1997-08-25 Richard Stallman <rms@gnu.org>
2014 * src/reader.c (stack_offset;):
2015 Change some warni to warns.
2017 * src/lex.c (literalchar): Use warns, not warni.
2019 1997-06-28 Richard Stallman <rms@gnu.org>
2021 * src/bison.s1: Add a Bison version comment.
2023 * src/main.c (fatal, warn, berror):
2026 1997-06-28 Richard Stallman <rms@gnu.org>
2028 * Makefile.in (bison_version): New variable.
2029 (dist): Use that variable.
2030 (bison.s1): Substitute the Bison version into bison.simple.
2032 * bison.simple: Add a Bison version comment.
2034 1997-06-18 Richard Stallman <rms@gnu.org>
2036 * src/main.c (fatal, warn, berror):
2037 Make error messages standard.
2038 (toomany): Improve error message text.
2040 * 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:
2041 new.h renamed to alloc.h.
2043 1997-06-18 Richard Stallman <rms@gnu.org>
2045 * Makefile.in: new.h renamed to alloc.h.
2047 1997-05-24 Richard Stallman <rms@gnu.org>
2049 * src/lex.c (literalchar):
2050 Fix the code for escaping \, " and '.
2052 (lex): Avoid trouble when there are many chars
2053 to discard in a char literal with just several chars in it.
2055 1997-05-17 Richard Stallman <rms@gnu.org>
2058 Use malloc, if using alloca is troublesome.
2059 (YYSTACK_USE_ALLOCA): New flag macro.
2060 Define it for some systems and compilers.
2061 (YYSTACK_ALLOC): New macro.
2062 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2063 If it was malloc'd, free it.
2065 1997-05-17 Richard Stallman <rms@gnu.org>
2068 Use malloc, if using alloca is troublesome.
2069 (YYSTACK_USE_ALLOCA): New flag macro.
2070 Define it for some systems and compilers.
2071 (YYSTACK_ALLOC): New macro.
2072 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2073 If it was malloc'd, free it.
2075 1997-04-23 Richard Stallman <rms@gnu.org>
2078 (alloca) [__hpux]: Always define as __builtin_alloca.
2080 1997-04-23 Richard Stallman <rms@gnu.org>
2083 (alloca) [__hpux]: Always define as __builtin_alloca.
2085 1997-04-22 Richard Stallman <rms@gnu.org>
2088 [__hpux]: Include alloca.h (right for HPUX 10)
2089 instead of declaring alloca (right for HPUX 9).
2091 * src/bison.s1 (__yy_memcpy):
2092 Declare arg `count' as unsigned int.
2093 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2095 1997-04-22 Richard Stallman <rms@gnu.org>
2098 [__hpux]: Include alloca.h (right for HPUX 10)
2099 instead of declaring alloca (right for HPUX 9).
2101 * bison.simple (__yy_memcpy):
2102 Declare arg `count' as unsigned int.
2103 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2105 1997-01-03 Richard Stallman <rms@gnu.org>
2107 * src/allocate.c: [__STDC__ or _MSC_VER]:
2108 Declare calloc and realloc to return void *.
2110 1997-01-02 Richard Stallman <rms@gnu.org>
2113 [_MSC_VER]: Include stdlib.h and process.h.
2114 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2116 * src/main.c (main): Return FAILURE as a value.
2117 (printable_version): Declare arg as int, not char.
2119 1997-01-02 Richard Stallman <rms@gnu.org>
2121 * Makefile.in (dist):
2122 Explicitly check for symlinks, and copy them.
2124 1996-12-19 Richard Stallman <rms@gnu.org>
2127 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2129 1996-12-18 Paul Eggert <eggert@gnu.org>
2131 * src/bison.s1 (yyparse):
2132 If __GNUC__ and YYPARSE_PARAM are both defined,
2133 declare yyparse to have a void * argument.
2135 1996-12-18 Paul Eggert <eggert@gnu.org>
2137 * bison.simple (yyparse):
2138 If __GNUC__ and YYPARSE_PARAM are both defined,
2139 declare yyparse to have a void * argument.
2141 1996-12-17 Richard Stallman <rms@gnu.org>
2143 * src/reduce.c (nbits): Add some casts.
2145 1996-08-12 Richard Stallman <rms@gnu.org>
2147 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2149 1996-08-12 Richard Stallman <rms@gnu.org>
2151 * bison.simple: Test _MSDOS as well as _MSDOS_.
2153 1996-07-31 Richard Stallman <rms@gnu.org>
2156 [__sun && __i386]: Include alloca.h.
2158 1996-07-31 Richard Stallman <rms@gnu.org>
2161 [__sun && __i386]: Include alloca.h.
2163 1996-07-30 Richard Stallman <rms@gnu.org>
2165 * src/bison.s1: Comment change.
2167 * src/bison.s1: Test _MSDOS_, not MSDOS.
2169 1996-07-30 Richard Stallman <rms@gnu.org>
2171 * bison.simple: Comment change.
2173 * bison.simple: Test _MSDOS_, not MSDOS.
2175 1996-06-01 Richard Stallman <rms@gnu.org>
2177 * 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:
2178 Insert `_' macro around many string constants.
2181 Insert `_' macro around many string constants.
2183 (main): Call setlocale, bindtextdomain and textdomain.
2185 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2186 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2187 [ENABLE_NLS]: Include libintl.h.
2188 [ENABLE_NLS] (gettext): Define.
2189 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2190 (N_, PACKAGE, LOCALEDIR): New macros.
2192 1996-06-01 Richard Stallman <rms@gnu.org>
2194 * POTFILES.in: New file.
2196 * Makefile.in (allocate.o):
2197 Define target explicitly.
2199 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2200 (LDFLAGS): Set to @LDFLAGS@.
2201 (configure): Run autoconf only if preceding `cd' succeeds.
2202 (bison.s1): Redirect output to temporary file then move the
2203 temporary to the target, rather than redirecting directly to bison.s1.
2204 (clean): Remove config.status and config.log.
2205 (distclean): Don't remove config.status here.
2207 1996-05-12 Richard Stallman <rms@gnu.org>
2210 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2212 1996-05-12 Richard Stallman <rms@gnu.org>
2215 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2217 1996-05-11 Richard Stallman <rms@gnu.org>
2219 * src/bison.s1 (__yy_memcpy):
2220 Really reorder the args, as was supposedly done on Feb 14 1995.
2221 (yyparse): Calls changed accordingly.
2223 1996-05-11 Richard Stallman <rms@gnu.org>
2225 * Makefile.in (dist): Don't use $(srcdir).
2227 * bison.simple (__yy_memcpy):
2228 Really reorder the args, as was supposedly done on Feb 14 1995.
2229 (yyparse): Calls changed accordingly.
2231 1996-01-27 Richard Stallman <rms@gnu.org>
2233 * src/output.c (output_rule_data):
2234 Test YYERROR_VERBOSE in the conditional
2235 around the definition of ttyname.
2237 1995-12-29 Richard Stallman <rms@gnu.org>
2240 Fix line numbers in #line commands.
2242 1995-12-29 Richard Stallman <rms@gnu.org>
2245 Fix line numbers in #line commands.
2247 1995-12-27 Richard Stallman <rms@gnu.org>
2249 * src/bison.s1 (YYPARSE_PARAM_DECL):
2250 In C++, make it always null.
2251 (YYPARSE_PARAM_ARG): New macro.
2252 (yyparse): Use YYPARSE_PARAM_ARG.
2254 1995-12-27 Richard Stallman <rms@gnu.org>
2256 * bison.simple (YYPARSE_PARAM_DECL):
2257 In C++, make it always null.
2258 (YYPARSE_PARAM_ARG): New macro.
2259 (yyparse): Use YYPARSE_PARAM_ARG.
2261 1995-11-29 Richard Stallman <rms@gnu.org>
2263 * doc/bison.texinfo:
2264 Describe literal string tokens, %raw, %no_lines, %token_table.
2266 1995-11-29 Daniel Hagerty <hag@gnu.org>
2268 * doc/bison.texinfo: Fixed update date
2270 1995-10-16 Richard Stallman <rms@gnu.org>
2272 * src/version.c: Version 1.25.
2274 1995-10-16 Richard Stallman <rms@gnu.org>
2276 * NEWS: *** empty log message ***
2278 1995-10-16 Richard Stallman <rms@gnu.org>
2280 * doc/bison.1, doc/bison.rnh:
2283 1995-10-15 Richard Stallman <rms@gnu.org>
2285 * src/vmsgetargs.c, src/getargs.c:
2286 Added -n, -k, and -raw switches.
2287 (noparserflag, toknumflag, rawtoknumflag): New variables.
2289 * src/symtab.h (SALIAS):
2290 New #define for adding aliases to %token.
2291 (struct bucket): Added `alias' field.
2293 * src/reduce.c (reduce_grammar):
2294 Revise error message.
2295 (print_notices): Remove final `.' from error message.
2297 * src/reader.c (reader_output_yylsp):
2299 (readgram): Use `#if 0' around code that accepted %command
2300 inside grammar rules: The documentation doesn't allow it,
2301 and it will fail since the %command processors scan for the next %.
2302 (parse_token_decl): Extended the %token
2303 declaration to allow a multi-character symbol as an alias.
2304 (parse_thong_decl): New function.
2305 (read_declarations): Added %thong declarations.
2306 (read_declarations): Handle NOOP to deal with allowing
2307 % declarations as another means to specify the flags.
2308 (readgram): Allow %prec prior to semantics embedded in a rule.
2309 (skip_to_char, read_declarations, copy_definition)
2310 (parse_token_decl, parse_start_decl, parse_type_decl)
2311 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2312 (get_type_name, copy_guard, copy_action, readgram)
2313 (get_type, packsymbols): Revised most error messages.
2314 Changed `fatal' to `warnxxx' to avoid aborting for error.
2315 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2316 (read_declarations): Improve the error message for
2317 an invalid character. Do not abort.
2318 (read_declarations, copy_guard, copy_action): Use
2319 printable_version to avoid unprintable characters in printed output.
2320 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2321 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2322 Allow the type of a non-terminal can be given
2323 more than once, as long as all specifications give the same type.
2326 (output_headers, output_trailers, output, output_gram)
2327 (output_rule_data): Implement noparserflag variable.
2328 Implement toknumflag variable.
2329 (output): Call reader_output_yylsp to output LTYPESTR.
2331 * src/main.c (main):
2332 If reader sees an error, don't process the grammar.
2333 (fatals): Updated to not use VARARGS1.
2334 (printable_version, int_to_string, warn, warni, warns, warnss)
2335 (warnsss): New error reporting functions. Avoid abort for error.
2338 Added THONG and NOOP for alias processing.
2339 Added SETOPT for the new code that allows setting options with %flags.
2342 Include getopt.h. Add some extern decls.
2343 (safegetc): New function to deal with EOF gracefully.
2344 (literalchar); new function to deal with reading \ escapes.
2345 (lex): Use literalchar.
2346 (lex): Implemented "..." tokens.
2347 (literalchar, lex, parse_percent_token): Made tokenbuffer
2348 always contain the token. This includes growing the token
2349 buffer while reading an integer.
2350 (parse_percent_token): Replaced if-else statement with percent_table.
2351 (parse_percent_token): Added % declarations as another
2352 way to specify the flags -n, -l, and -r. Also added hooks for
2353 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2354 major changes to files.c.
2355 (lex) Retain in the incoming stream a character following
2357 (skip_white_space, lex): Revised most error messages
2358 and changed fatal to warn to avoid aborting.
2359 (percent_table): Added %thong declarations.
2361 * src/gram.h: Comment changes.
2363 * src/files.c (openfiles, open_extra_files, done):
2365 and actfile file. Handle noparserflag. Both for -n switch.
2367 * src/conflicts.c (resolve_sr_conflict):
2368 Remove use of alloca.
2370 1995-06-01 Jim Meyering <meyering@gnu.org>
2372 * doc/bison.texinfo: *** empty log message ***
2374 1995-05-06 Richard Stallman <rms@gnu.org>
2376 * src/bison.s1: Comment change.
2378 1995-05-06 Richard Stallman <rms@gnu.org>
2380 * bison.simple: Comment change.
2382 1995-05-03 Richard Stallman <rms@gnu.org>
2384 * src/version.c: Version now 1.24.
2386 * src/bison.s1: Change distribution terms.
2388 * src/version.c: Version now 1.23.
2390 1995-05-03 Richard Stallman <rms@gnu.org>
2392 * doc/bison.texinfo:
2393 Rewrite "Conditions for Using Bison".
2394 Update version to 1.24.
2396 1995-05-03 Richard Stallman <rms@gnu.org>
2398 * bison.simple: Change distribution terms.
2400 1995-02-23 Richard Stallman <rms@gnu.org>
2402 * src/files.c: Test __VMS_POSIX as well as VMS.
2404 1995-02-14 Jim Meyering <meyering@gnu.org>
2406 * src/bison.s1 (__yy_memcpy):
2407 Renamed from __yy_bcopy to avoid
2408 confusion. Reverse FROM and TO arguments to be consistent with
2411 1995-02-14 Jim Meyering <meyering@gnu.org>
2413 * bison.simple (__yy_memcpy):
2414 Renamed from __yy_bcopy to avoid
2415 confusion. Reverse FROM and TO arguments to be consistent with
2418 1994-11-10 David J. MacKenzie <djm@gnu.org>
2424 * Makefile.in (DISTFILES): Include NEWS.
2426 * Makefile.in (DISTFILES):
2427 Include install-sh, not install.sh.
2429 * configure.in: Update to Autoconf v2 macro names.
2431 1994-10-05 David J. MacKenzie <djm@gnu.org>
2433 * Makefile.in: fix typo
2435 * Makefile.in (prefix, exec_prefix):
2436 Let configure set them.
2438 1994-09-28 David J. MacKenzie <djm@gnu.org>
2440 * Makefile.in: Set datadir to $(prefix)/share.
2442 1994-09-15 Richard Stallman <rms@gnu.org>
2445 Update copyright notice and GPL version.
2447 1994-09-15 Richard Stallman <rms@gnu.org>
2450 Update copyright notice and GPL version.
2452 1994-07-12 Richard Stallman <rms@gnu.org>
2454 * src/reduce.c, src/reader.c:
2457 1994-05-05 David J. MacKenzie <djm@gnu.org>
2459 * Makefile.in: entered into RCS
2461 1994-03-26 Richard Stallman <rms@gnu.org>
2463 * src/bison.s1: entered into RCS
2465 1994-03-26 Richard Stallman <rms@gnu.org>
2467 * bison.simple: entered into RCS
2469 1994-03-25 Richard Stallman <rms@gnu.org>
2471 * src/main.c: entered into RCS
2473 1994-03-24 Richard Stallman <rms@gnu.org>
2475 * src/conflicts.c: entered into RCS
2477 1994-01-02 Richard Stallman <rms@gnu.org>
2479 * Makefile.in: *** empty log message ***
2481 1993-11-21 Richard Stallman <rms@gnu.org>
2483 * src/bison.s1: *** empty log message ***
2485 1993-11-21 Richard Stallman <rms@gnu.org>
2487 * doc/bison.texinfo: entered into RCS
2489 * doc/bison.texinfo: *** empty log message ***
2491 1993-11-21 Richard Stallman <rms@gnu.org>
2493 * bison.simple: *** empty log message ***
2495 1993-10-25 David J. MacKenzie <djm@gnu.org>
2497 * doc/bison.texinfo: *** empty log message ***
2499 1993-10-19 Richard Stallman <rms@gnu.org>
2501 * src/bison.s1: *** empty log message ***
2503 1993-10-19 Richard Stallman <rms@gnu.org>
2505 * bison.simple: *** empty log message ***
2507 1993-10-14 Richard Stallman <rms@gnu.org>
2509 * src/bison.s1: *** empty log message ***
2511 1993-10-14 Richard Stallman <rms@gnu.org>
2513 * bison.simple: *** empty log message ***
2515 1993-09-14 David J. MacKenzie <djm@gnu.org>
2517 * doc/bison.texinfo: *** empty log message ***
2519 1993-09-13 Noah Friedman <friedman@gnu.org>
2521 * Makefile.in: *** empty log message ***
2523 1993-09-10 Richard Stallman <rms@gnu.org>
2525 * src/conflicts.c: *** empty log message ***
2527 * src/system.h: entered into RCS
2529 1993-09-10 Richard Stallman <rms@gnu.org>
2531 * doc/bison.1: entered into RCS
2533 1993-09-06 Noah Friedman <friedman@gnu.org>
2535 * src/version.c: entered into RCS
2537 1993-09-06 Noah Friedman <friedman@gnu.org>
2539 * Makefile.in: *** empty log message ***
2541 1993-07-30 David J. MacKenzie <djm@gnu.org>
2543 * Makefile.in: *** empty log message ***
2545 1993-07-24 Richard Stallman <rms@gnu.org>
2547 * src/bison.s1: *** empty log message ***
2549 1993-07-24 Richard Stallman <rms@gnu.org>
2551 * bison.simple: *** empty log message ***
2553 1993-07-08 David J. MacKenzie <djm@gnu.org>
2555 * Makefile.in: *** empty log message ***
2557 1993-07-04 Richard Stallman <rms@gnu.org>
2559 * src/bison.s1: *** empty log message ***
2561 1993-07-04 Richard Stallman <rms@gnu.org>
2563 * bison.simple: *** empty log message ***
2565 1993-06-26 David J. MacKenzie <djm@gnu.org>
2567 * src/getargs.c: entered into RCS
2569 1993-06-26 David J. MacKenzie <djm@gnu.org>
2571 * doc/bison.texinfo: *** empty log message ***
2573 * doc/bison.1: New file.
2575 1993-06-25 Richard Stallman <rms@gnu.org>
2577 * src/getargs.c: New file.
2579 1993-06-16 Richard Stallman <rms@gnu.org>
2581 * src/bison.s1: *** empty log message ***
2583 1993-06-16 Richard Stallman <rms@gnu.org>
2585 * bison.simple: *** empty log message ***
2587 1993-06-03 Richard Stallman <rms@gnu.org>
2589 * src/bison.s1: New file.
2591 1993-06-03 Richard Stallman <rms@gnu.org>
2593 * doc/bison.texinfo: *** empty log message ***
2595 1993-06-03 Richard Stallman <rms@gnu.org>
2597 * bison.simple: New file.
2599 1993-05-19 Richard Stallman <rms@gnu.org>
2601 * doc/bison.texinfo: New file.
2603 1993-05-07 Noah Friedman <friedman@gnu.org>
2605 * Makefile.in: *** empty log message ***
2607 1993-04-28 Noah Friedman <friedman@gnu.org>
2609 * src/reader.c: *** empty log message ***
2611 1993-04-23 Noah Friedman <friedman@gnu.org>
2613 * src/alloc.h: entered into RCS
2615 1993-04-20 David J. MacKenzie <djm@gnu.org>
2617 * src/version.c: *** empty log message ***
2619 * src/files.c, src/allocate.c:
2622 * src/reader.c: *** empty log message ***
2624 * src/lex.c: entered into RCS
2626 * src/conflicts.c: New file.
2628 * src/symtab.c: entered into RCS
2630 * src/alloc.h: New file.
2632 * src/LR0.c: entered into RCS
2634 1993-04-18 Noah Friedman <friedman@gnu.org>
2636 * src/reader.c: New file.
2638 * src/version.c: *** empty log message ***
2640 1993-04-18 Noah Friedman <friedman@gnu.org>
2642 * Makefile.in: *** empty log message ***
2644 1993-04-17 Noah Friedman <friedman@gnu.org>
2646 * Makefile.in: *** empty log message ***
2648 1993-04-15 Richard Stallman <rms@gnu.org>
2650 * src/main.c, src/files.c:
2653 1993-04-15 Noah Friedman <friedman@gnu.org>
2655 * configure.in: entered into RCS
2657 * configure.in: *** empty log message ***
2659 * configure.in: New file.
2661 1993-04-14 Richard Stallman <rms@gnu.org>
2663 * Makefile.in: New file.
2665 1993-04-13 Richard Stallman <rms@gnu.org>
2667 * src/version.c: New file.
2669 1993-03-25 Richard Stallman <rms@gnu.org>
2671 * src/output.c: entered into RCS
2673 1992-09-25 Richard Stallman <rms@gnu.org>
2675 * configure.bat: entered into RCS
2677 1992-06-22 Richard Stallman <rms@gnu.org>
2679 * src/vmsgetargs.c: entered into RCS
2681 1992-06-22 Richard Stallman <rms@gnu.org>
2683 * doc/bison.rnh: entered into RCS
2685 1992-04-20 David J. MacKenzie <djm@gnu.org>
2687 * README: entered into RCS
2689 1992-01-22 Richard Stallman <rms@gnu.org>
2691 * src/machine.h: entered into RCS
2693 1991-12-21 Richard Stallman <rms@gnu.org>
2695 * src/lalr.c, src/closure.c:
2698 1991-12-20 Richard Stallman <rms@gnu.org>
2700 * src/state.h: entered into RCS
2702 1991-12-18 Richard Stallman <rms@gnu.org>
2704 * src/print.c, src/nullable.c, src/derives.c:
2707 1991-11-03 David J. MacKenzie <djm@gnu.org>
2709 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2712 1988-09-09 Richard Stallman <rms@gnu.org>
2714 * src/bison.hairy: entered into RCS
2716 1987-12-16 Richard Stallman <rms@gnu.org>
2718 * REFERENCES: entered into RCS