1 2001-09-29 Akim Demaille <akim@epita.fr>
3 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
5 2001-09-28 Akim Demaille <akim@epita.fr>
7 * tests/testsuite.at: Update to newer Autotest.
8 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
10 2001-09-27 Akim Demaille <akim@epita.fr>
12 Position independent wrapper.
14 * tests/bison: Remove.
15 * tests/bison.in: New.
16 * configure.in: Adjust.
18 2001-09-27 Paul Eggert <eggert@twinsun.com>
20 Port quotearg fixes from tar 1.13.24.
22 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
24 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
25 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
27 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
28 * m4/mbrtowc.m4: New file.
29 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
30 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
32 2001-09-27 Akim Demaille <akim@epita.fr>
36 2001-09-27 Akim Demaille <akim@epita.fr>
40 2001-09-25 Akim Demaille <akim@epita.fr>
42 * src/system.h: Include `xalloc.h'.
43 Remove it from the C files.
44 * src/files.c (output_files): Free the obstacks.
45 * src/lex.c (init_lex): Rename as...
48 * src/main.c (main): Use it.
50 2001-09-24 Marc Autret <autret_m@epita.fr>
52 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
53 to output informations in fout (FILE*).
54 (open_graph, close_graph): Likewise.
55 (output_graph, output_edge, output_node): Likewise.
56 * src/vcg.h: Update function prototypes.
57 * src/print_graph.c (print_graph): Open output graph file.
58 (print_actions): Adjust.
59 * src/files.h: Remove extern declaration.
60 * src/files.c: Remove graph_obstack declaration.
61 (open_files): Remove graph_obstack initialization.
62 (output_files): Remove graph_obstack saving.
64 2001-09-24 Marc Autret <autret_m@epita.fr>
66 * src/files.c (compute_output_file_names): Fix.
68 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
70 * src/reader.c (reader): Remove call to free_symtab ().
71 * src/main.c (main): Call it here.
73 * src/conflicts.c (initialize_conflicts): Rename as...
74 (solve_conflicts): this.
75 * src/print.c (print_core, print_actions, print_state)
76 (print_grammar): Dump to a file instead a `output_obstack'.
77 (print_results): Dump `output_obstack', and then proceed with the
79 * src/files.c (compute_output_file_names, close_files): New.
80 (output_files): Adjust.
81 * src/main.c (main): Adjust.
83 2001-09-23 Marc Autret <autret_m@epita.fr>
85 * src/files.c (compute_header_macro): Computes header macro name
86 from spec_defines_file when given.
88 2001-09-23 Marc Autret <autret_m@epita.fr>
90 * src/files.c (output_files): Add default extensions.
92 2001-09-22 Akim Demaille <akim@epita.fr>
94 * src/conflicts.c (finalize_conflicts): Rename as...
95 (free_conflicts): this.
97 2001-09-22 Akim Demaille <akim@epita.fr>
99 * src/gram.c (gram_free): Rename back as...
101 (output_token_translations): Free `token_translations'.
102 * src/symtab.c (free_symtab): Free the tag field.
104 2001-09-22 Akim Demaille <akim@epita.fr>
106 Remove `translations' as it is always set to true.
108 * src/gram.h: Adjust.
109 * src/reader.c (packsymbols, parse_token_decl): Adjust
110 * src/print.c (print_grammar): Adjust.
111 * src/output.c (output_token_translations): Adjust.
112 * src/lex.c (lex): Adjust.
113 * src/gram.c: Be sure the set pointers to NULL.
114 (dummy): Rename as...
117 2001-09-22 Akim Demaille <akim@epita.fr>
119 * configure.in: Invoke AM_LIB_DMALLOC.
120 * src/system.h: Use dmalloc.
121 * src/LR0.c: Be sure to have pointers initialized to NULL.
122 (allocate_itemsets): Allocate kernel_items only if needed.
124 2001-09-22 Akim Demaille <akim@epita.fr>
126 * configure.in: Bump to 1.29b.
127 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
128 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
129 need xmalloc.c in calc.y.
132 2001-09-21 Akim Demaille <akim@epita.fr>
135 * Makefile.maint, config/config.guess, config/config.sub,
136 * config/missing: Update from masters.
137 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
139 * configure.in (ALL_LINGUAS): Add `tr'.
141 2001-09-21 Akim Demaille <akim@epita.fr>
143 * tests/Makefile.am (package.m4): Move to...
144 ($(srcdir)/$(TESTSUITE)): here.
146 2001-09-20 Akim Demaille <akim@epita.fr>
148 * src/complain.c: No longer try to be standalone: use system.h.
149 Don't assume __STDC__ is defined to 1. Just test if it is defined.
150 * src/complain.h: Likewise.
151 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
152 Remove the unused variable `n'.
153 From Albert Chin-A-Young.
155 2001-09-18 Marc Autret <autret_m@epita.fr>
157 * doc/bison.1: Update.
158 * doc/bison.texinfo (Bison Options): Update --defines and --graph
160 (Option Cross Key): Update.
163 2001-09-18 Marc Autret <autret_m@epita.fr>
165 * tests/regression.at: New test (comment in %union).
167 2001-09-18 Marc Autret <autret_m@epita.fr>
169 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
171 Reported by Keith Browne.
173 2001-09-18 Marc Autret <autret_m@epita.fr>
175 * tests/output.at: Add tests for --defines and --graph.
177 2001-09-18 Marc Autret <autret_m@epita.fr>
179 * tests/output.at: Removes tests of %{header,src}_extension features.
181 2001-09-18 Akim Demaille <akim@epita.fr>
183 * tests/Makefile.am (package.m4): New.
184 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
185 (_AT_CHECK_CALC_ERROR): Likewise.
186 Factor the `, ' part of verbose error messages.
188 2001-09-18 Marc Autret <autret_m@epita.fr>
190 * src/getargs.c (longopts): Declare --defines and --graph as options
191 with optional arguments.
192 * src/files.h: Add extern declarations.
193 * src/files.c (spec_graph_file, spec_defines_file): New.
194 (output_files): Update.
195 Remove CPP-outed code.
197 2001-09-18 Marc Autret <autret_m@epita.fr>
199 Turn off %{source,header}_extension feature.
201 * src/files.c (compute_exts_from_gf): Update.
202 (compute_exts_from_src): Update.
203 (output_files): CPP-out useless code.
204 * src/files.h: Remove {header,source}_extension extern declarations.
205 * src/reader.c (parse_dquoted_param): CPP-out.
206 (parse_header_extension_decl): Remove.
207 (parse_source_extension_decl): Remove.
208 (read_declarations): Remove cases tok_{hdrext,srcext}.
209 * src/lex.c (percent_table): Remove {header,source}_extension entries.
210 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
212 2001-09-10 Akim Demaille <akim@epita.fr>
214 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
215 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
216 (AT_CHECK_OUTPUT): this.
217 Merely check ls' exit status, its output is useless.
219 2001-09-10 Akim Demaille <akim@epita.fr>
221 * tests/calc.at: Use m4_match.
222 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
224 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
226 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
228 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
230 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
231 * src/lex.h: Adjust prototype.
232 (token_t): Add `tok_undef'.
233 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
234 (parse_percent_token): Now returns token_t.
235 Add default statement in switch.
236 (lex): Separate `c' as an input variable, from the token_t result
238 (unlexed): Is a token_t.
240 2001-09-10 Akim Demaille <akim@epita.fr>
242 * configure.in: Bump to 1.29a.
244 2001-09-07 Akim Demaille <akim@epita.fr>
248 2001-08-30 Akim Demaille <akim@epita.fr>
250 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
251 * m4/atconfig.m4: Remove.
252 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
254 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
255 m4_if, m4_patsubst, and m4_regexp.
256 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
257 `input' file instead of echo.
259 2001-08-29 Akim Demaille <akim@epita.fr>
263 2001-08-29 Akim Demaille <akim@epita.fr>
267 2001-08-29 Paul Eggert <eggert@twinsun.com>
269 * src/bison.simple (yyparse): Don't take the address of an
270 item before the start of an array, as that doesn't conform to
273 2001-08-29 Robert Anisko <anisko_r@epita.fr>
275 * doc/bison.texinfo (Location Tracking Calc): New node.
277 2001-08-29 Paul Eggert <eggert@twinsun.com>
279 * src/output.c (output): Do not define const, as this now
280 causes more problems than it cures.
282 2001-08-29 Akim Demaille <akim@epita.fr>
284 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
286 Be sure to tag the `detailmenu'.
288 2001-08-29 Akim Demaille <akim@epita.fr>
290 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
291 download in a tmp dir.
293 2001-08-28 Marc Autret <autret_m@epita.fr>
295 * config/depcomp: New file.
297 2001-08-28 Marc Autret <autret_m@epita.fr>
299 * doc/bison.1 (mandoc): Adjust.
300 From Juan Manuel Guerrero.
302 2001-08-28 Marc Autret <autret_m@epita.fr>
304 * src/print_graph.c (print_state): Fix.
306 2001-08-27 Marc Autret <autret_m@epita.fr>
308 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
310 Echo modifications to the functions prototypes.
311 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
313 2001-08-27 Marc Autret <autret_m@epita.fr>
315 * src/vcg.c: Include `xalloc.h'.
316 (add_colorentry): New.
317 (add_classname): New.
319 * src/vcg.h: Add new prototypes.
321 2001-08-27 Akim Demaille <akim@epita.fr>
323 * Makefile.maint: Sync. again with CVS Autoconf.
325 2001-08-27 Akim Demaille <akim@epita.fr>
327 * Makefile.maint: Formatting changes.
328 (po-update, cvs-update, update): New targets.
331 2001-08-27 Akim Demaille <akim@epita.fr>
333 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
334 * Makefile.maint: Sync. with CVS Autoconf.
336 2001-08-27 Marc Autret <autret_m@epita.fr>
338 * src/vcg.h (struct infoname_s): New.
339 (struct colorentry_s): New.
340 (graph_s): New fields {vertical,horizontal}_order in structure.
341 Add `infoname' field.
342 Add `colorentry' field;
343 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
344 (G_HORIZONTAL_ORDER): New.
347 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
348 Add output of `infoname'.
349 Add output of `colorentry'.
351 2001-08-27 Marc Autret <autret_m@epita.fr>
353 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
354 This one shadowed a global parameter.
356 2001-08-24 Marc Autret <autret_m@epita.fr>
358 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
359 instead of `unsigned'.
360 (print_state): Do not call obstack_object_size () in obstack_grow ()
361 to avoid macro variables shadowing.
363 2001-08-23 Marc Autret <autret_m@epita.fr>
365 * src/lex.c (percent_table): Typo: s/naem/name/.
367 Normalize new options declarations.
369 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
371 * tests/suite.at: Exercise %header_extension and %source_extension.
373 2001-08-16 Marc Autret <autret_m@epita.fr>
375 * src/reader.c (parse_dquoted_param): New.
376 (parse_header_extension_decl): Use it.
377 (parse_source_extension_decl): Likewise.
379 2001-08-16 Marc Autret <autret_m@epita.fr>
381 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
382 (get_xxxx_str): Use assert () instead of complain ().
383 Remove return invokations in default cases.
384 (get_decision_str): Modify default behaviour. Remove second argument.
385 Echo modifications on calls.
388 2001-08-16 Marc Autret <autret_m@epita.fr>
390 * src/getargs.c (usage): Update with ``-g, --graph''.
392 2001-08-16 Marc Autret <autret_m@epita.fr>
394 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
395 (Option Cross Key): Likewise.
396 * doc/bison.1: Update.
398 2001-08-15 Akim Demaille <akim@epita.fr>
402 2001-08-15 Marc Autret <autret_m@epita.fr>
404 * src/reader.c (readgram): Indent output macro YYSTYPE.
405 (packsymbols): Likewise.
406 (output_token_defines): Likewise.
407 * src/files.c: Standardize.
408 (compute_header_macro): New.
409 (defines_obstack_save): New. Use compute_header_macro.
410 (output_files): Update. Use defines_obstack_save.
412 2001-08-15 Akim Demaille <akim@epita.fr>
414 * doc/bison.texinfo (Table of Symbols): Document
417 2001-08-15 Akim Demaille <akim@epita.fr>
419 * missing: Update from CVS Automake.
420 * config/config.guess, config/config.sub, config/texinfo.tex:
423 2001-08-15 Akim Demaille <akim@epita.fr>
425 * Makefile.maint: Sync with CVS Autoconf.
427 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
429 * doc/bison.texinfo: Include GNU Free Documentation License from
431 * doc/fdl.texi: Add to package.
433 2001-08-14 Marc Autret <autret_m@epita.fr>
435 Turn on %{source,header}_extension features.
437 * src/lex.c (percent_table): Un-CPP out header_extension and
439 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
440 (compute_exts_from_src): Remove conditions. It restores priorities
443 2001-08-14 Marc Autret <autret_m@epita.fr>
445 * src/files.c (compute_base_names): Add extensions computing when
446 `--file-prefix' used.
447 Standardize function calls.
449 2001-08-13 Marc Autret <autret_m@epita.fr>
451 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
452 defining it (defined but null disables alloca).
454 2001-08-13 Marc Autret <autret_m@epita.fr>
456 * src/bison.simple (_yy_memcpy): CPP reformat.
458 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
460 * tests/atconfig.in (CPPFLAGS): Fix.
462 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
464 * doc/bison.texinfo: Include GNU General Public License from
466 * doc/gpl.texi: Add to package.
468 2001-08-10 Marc Autret <autret_m@epita.fr>
470 * src/print_graph.h: Fix.
471 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
473 2001-08-10 Akim Demaille <akim@epita.fr>
475 * src/system.h: Provide default declarations for stpcpy, strndup,
478 2001-08-10 Robert Anisko <anisko_r@epita.fr>
480 * doc/bison.texinfo (Locations): Update @$ stuff.
482 2001-08-09 Robert Anisko <anisko_r@epita.fr>
484 * src/bison.simple (YYLLOC_DEFAULT): Update.
487 2001-08-08 Marc Autret <autret_m@epita.fr>
489 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
490 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
491 Reported by Fabrice Bauzac.
493 2001-08-08 Marc Autret <autret_m@epita.fr>
495 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
496 * src/vcg.c (output_node): Fix.
497 * src/vcg.h: Cleanup.
498 * src/print_graph.c: Add comments.
499 (node_output_size): New global variable. Simplify the formatting of
500 the VCG graph output.
501 (print_actions): Unused code is now used. It notifies the final state
502 and no action states in the VCG graph. It also give the reduce actions.
503 The `shift and goto' edges are red and the `go to state' edges are
505 Get the current node name and node_obstack by argument.
506 (node_obstack): New variable.
507 (print_state): Manage node_obstack.
508 (print_core): Use node_obstack given by argument.
509 A node is not only computed here but in print_actions also.
510 (print_graph): CPP out useless code instead of commenting it.
512 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
514 * tests/atconfig.in (CPPFLAGS): Fix.
516 2001-08-07 Akim Demaille <akim@epita.fr>
518 * src/print_graph.c (quote): New.
519 (print_core): Use it.
521 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
523 * src/vcg.c (complain.h): Include it.
524 Unepitaize `return' invocations.
525 [NDEBUG] (main): Remove.
526 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
527 * src/files.c (open_files): Initialize graph_obstack.
528 * src/print_graph.c (print_actions): CPP out useless code.
529 (print_core): Don't output the last `\n' in labels.
531 * src/files.c (output_files): Output the VCG file.
532 * src/main.c (main): Invoke print_graph ();
534 2001-08-06 Marc Autret <autret_m@epita.fr>
536 Automaton VCG graph output.
537 Using option ``-g'' or long option ``--graph'', you can generate
538 a gram_filename.vcg file containing a VCG description of the LALR (1)
539 automaton of your grammar.
541 * src/main.c: Call to print_graph() function.
542 * src/getargs.h: Update.
543 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
544 (graph_flag): New flag.
546 (getargs): Add case `g'.
547 * src/files.c (graph_obstack): New obstack struct.
548 (open_files): Initialize new obstack.
549 (output_files): Saves graph_obstack if required.
550 * src/files.h (graph_obstack): New extern declaration.
551 * src/Makefile.am: Add new source files.
553 2001-08-06 Marc Autret <autret_m@epita.fr>
555 * src/print_graph.c, src/print_graph.h (graph): New.
556 * src/vcg.h: New file.
557 * src/vcg.c: New file, VCG graph handling.
559 2001-08-06 Marc Autret <autret_m@epita.fr>
561 Add of %source_extension and %header_extension which specify
562 the source or/and the header output file extension.
564 * src/files.c (compute_base_names): Remove initialisation of
565 src_extension and header_extension.
566 (compute_exts_from_gf): Update.
567 (compute_exts_from_src): Update.
568 (output_files): Update.
569 * src/reader.c (parse_header_extension_decl): New.
570 (parse_source_extension_decl): New.
571 (read_declarations): New case statements for the new tokens.
572 * src/lex.c (percent_table): Add entries for %source_extension
573 and %header_extension.
574 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
576 2001-08-06 Marc Autret <autret_m@epita.fr>
578 * configure.in: Bump to 1.28c.
579 * doc/bison.texinfo: Texinfo thingies.
581 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
583 * tests/atconfig.in (CPPFLAGS): Add.
584 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
586 2001-08-03 Akim Demaille <akim@epita.fr>
590 2001-08-03 Akim Demaille <akim@epita.fr>
592 * tests/Makefile.am (check-local): Ship testsuite.
593 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
596 2001-08-03 Akim Demaille <akim@epita.fr>
598 * configure.in: Try using -Wformat when compiling.
600 2001-08-03 Akim Demaille <akim@epita.fr>
602 * configure.in: Bump to 1.28b.
604 2001-08-03 Akim Demaille <akim@epita.fr>
606 * src/complain.c: Adjust strerror_r portability issues.
608 2001-08-03 Akim Demaille <akim@epita.fr>
612 2001-08-03 Akim Demaille <akim@epita.fr>
614 * src/getargs.c, src/getarg.h (skeleton)): Constify.
615 * src/lex.c (literalchar): Avoid name clashes on `buf'.
616 * src/getargs.c: Include complain.h.
617 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
618 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
620 2001-08-03 Akim Demaille <akim@epita.fr>
622 * src/reader.c (readgram): Display hidden chars in error messages.
624 2001-08-03 Akim Demaille <akim@epita.fr>
626 Update to gettext 0.10.39.
628 2001-08-03 Akim Demaille <akim@epita.fr>
632 2001-08-01 Marc Autret <autret_m@epita.fr>
634 * doc/bison.texinfo: Update.
635 * doc/bison.1 (mandoc): Update.
636 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
637 * src/files.c: Support output files extensions computing.
638 (src_extension): New static variable.
639 (header_extension): New static variable.
641 (get_extension_index): New function, gets the index of an extension
642 filename in a string.
643 (compute_exts_from_gf): New function, computes extensions from the
644 grammar file extension.
645 (compute_exts_from_src): New functions, computes extensions from the
646 C source file extension, file given by ``-o'' option.
647 (compute_base_names): Update.
648 (output_files): Update.
650 2001-08-01 Robert Anisko <anisko_r@epita.fr>
652 * doc/bison.texi: Document @$.
653 (Locations): New section.
655 2001-07-18 Akim Demaille <akim@epita.fr>
657 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
658 * config/prev-version.txt, config/move-if-change: New.
659 * Makefile.am: Adjust.
661 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
663 * src/bison.simple (yyparse): Suppress warning `comparaison
664 between signed and unsigned'.
666 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
668 * src/getargs.h (raw_flag): Remove.
669 * src/getargs.c: Die on `-r'/`--raw'.
670 * src/lex.c (parse_percent_token): Die on `%raw'.
671 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
672 * tests/calc.at: Suppress test with option `--raw'.
674 2001-07-14 Akim Demaille <akim@epita.fr>
677 * configure.in: Require Autoconf 2.50.
678 Update to gettext 0.10.38.
680 2001-03-16 Akim Demaille <akim@epita.fr>
682 * doc/bison.texinfo: ANSIfy the examples.
684 2001-03-16 Akim Demaille <akim@epita.fr>
686 * getargs.c (skeleton): New variable.
687 (longopts): --skeleton is a new option.
688 (shortopts, getargs): -S is a new option.
689 * getargs.h: Declare skeleton.
690 * output.c (output_parser): Use it.
692 2001-03-16 Akim Demaille <akim@epita.fr>
694 * m4/strerror_r.m4: New.
695 * m4/error.m4: Run AC_FUNC_STRERROR_R.
696 * lib/error.h, lib/error.c: Update.
698 2001-03-16 Akim Demaille <akim@epita.fr>
700 * src/getargs.c (longopts): Clean up.
702 2001-02-21 Akim Demaille <akim@epita.fr>
704 * src/reader.c (gensym): `gensym_count' is your own.
705 Use a static buf to create the symbol name, as token_buffer is no
708 2001-02-08 Akim Demaille <akim@epita.fr>
710 * src/conflicts.c (conflict_report): Be sure not to append to res
711 between two calls, which could happen if both first sprintf were
712 skipped, but not the first cp += strlen.
714 2001-02-08 Akim Demaille <akim@epita.fr>
716 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
717 New, from fileutils 4.0.37.
718 * configure.in: Require Autoconf 2.49c. I took some time before
719 making this decision. This is the only way out for portability
720 issues in Bison, it would mean way too much duplicate effort to
721 import in Bison features implemented in 2.49c since 2.13.
722 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
724 2001-02-02 Akim Demaille <akim@epita.fr>
726 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
727 * lib/xalloc.h, lib/xmalloc.c: Update.
729 2001-01-19 Akim Demaille <akim@epita.fr>
731 Get rid of the ad hoc handling of token_buffer in the scanner: use
734 * src/lex.c (token_obstack): New.
735 (init_lex): Initialize it. No longer call...
736 (grow_token_buffer): this. Remove it.
737 Adjust all the places which used it to use the obstack.
739 2001-01-19 Akim Demaille <akim@epita.fr>
741 * src/lex.h: Rename all the tokens:
742 s/\bENDFILE\b/tok_eof/g;
743 s/\bIDENTIFIER\b/tok_identifier/g;
745 Let them be enums, not #define, to ease debugging.
748 2001-01-18 Akim Demaille <akim@epita.fr>
750 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
751 * src/lex.c (maxtoken, grow_token_buffer): Static.
753 2001-01-18 Akim Demaille <akim@epita.fr>
755 Since we now use obstacks, more % directives can be enabled.
757 * src/lex.c (percent_table): Also accept `%yacc',
758 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
760 Handle the actions for `%semantic_parser' and `%pure_parser' here,
761 instead of returning a token.
762 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
763 * src/reader.c (read_declarations): Adjust.
764 * src/files.c (open_files): Don't call `compute_base_names', don't
765 compute `attrsfile' since they depend upon data which might be
766 *in* the input file now.
767 (output_files): Do it here.
768 * src/output.c (output_headers): Document the fact that this patch
769 introduces a guaranteed SEGV for semantic parsers.
770 * doc/bison.texinfo: Document them.
771 * tests/suite.at: Exercise these %options.
773 2000-12-20 Akim Demaille <akim@epita.fr>
775 Also handle the output file (--verbose) with obstacks.
777 * files.c (foutput): Remove.
778 (output_obstack): New.
779 Adjust all dependencies.
780 * src/conflicts.c: Return a string.
781 * src/system.h (obstack_grow_string): Rename as...
782 (obstack_sgrow): this. Be ready to work with non literals.
783 (obstack_fgrow4): New.
785 2000-12-20 Akim Demaille <akim@epita.fr>
787 * src/files.c (open_files): Fix the computation of short_base_name
788 in the case of `-o foo.tab.c'.
790 2000-12-20 Akim Demaille <akim@epita.fr>
792 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
793 (copy_dollar): Now that everything uses obstacks, get rid of the
796 2000-12-20 Akim Demaille <akim@epita.fr>
798 * src/files.c (open_files): Actually the `.output' file is based
799 on the short_base_name, not base_name.
800 * tests/suite.at (Checking output file names): Adjust.
802 2000-12-20 Akim Demaille <akim@epita.fr>
804 * src/bison.s1: Remove, we now use directly...
805 * src/bison.simple: this.
806 * src/Makefile.am: Use pkgdata instead of data.
808 2000-12-20 Akim Demaille <akim@epita.fr>
810 * src/files.c (guard_obstack): New.
811 (open_files): Initialize it.
812 (output_files): Dump it...
813 * src/files.h: Export it.
814 * src/reader.c (copy_guard): Use it.
816 2000-12-19 Akim Demaille <akim@epita.fr>
818 * src/files.c (outfile, defsfile, actfile): Removed as global
820 (open_files): Don't compute them.
821 (output_files): Adjust.
822 (base_name, short_base_name): Be global.
825 2000-12-19 Akim Demaille <akim@epita.fr>
827 * src/files.c (strsuffix): New.
828 (stringappend): Be just like strcat but allocate.
829 (base_names): Eve out from open_files.
830 Try to simplify the rather hairy computation of base_name and
832 (open_files): Use it.
833 * tests/suite.at (Checking output file names): New test.
835 2000-12-19 Akim Demaille <akim@epita.fr>
837 * src/system.h (obstack_grow_literal_string): Rename as...
838 (obstack_grow_string): this.
839 * src/output.c (output_parser): Recognize `%% actions' instead of
841 * src/bison.s1: s/$/%% actions/.
842 * src/bison.hairy: Likewise.
844 2000-12-19 Akim Demaille <akim@epita.fr>
846 * src/output.c (output_parser): Compute the `#line' lines when
848 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
849 Suggested by Hans Aberg.
851 2000-12-19 Akim Demaille <akim@epita.fr>
853 Let the handling of the skeleton files be local to the procedures
856 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
858 (fparser, open_extra_files): Remove.
859 (open_files, output_files): Don't take care of fparser.
860 * src/files.h: Adjust.
861 * src/output.c (output_parser): Open and close the file to the
863 * src/reader.c (read_declarations): When %semantic_parser, open
866 2000-12-19 Akim Demaille <akim@epita.fr>
868 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
869 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
871 2000-12-19 Akim Demaille <akim@epita.fr>
873 * src/files.c (open_files): Yipee! We no longer need all the code
874 looking for `/tmp' since we have no tmp file.
876 2000-12-19 Akim Demaille <akim@epita.fr>
878 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
880 * src/files.c (open_files): Less dependency on MSDOS etc.
882 2000-12-14 Akim Demaille <akim@epita.fr>
884 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
885 Provide a default definition.
886 Use it when executing the default @ action.
887 * src/reader.c (reader_output_yylsp): No longer include
888 `timestamp' and `text' in the default YYLTYPE.
890 2000-12-12 Akim Demaille <akim@epita.fr>
892 * src/reader.c (copy_definition, parse_union_decl, copy_action)
893 (copy_guard): Quote the file names.
894 Reported by Laurent Mascherpa.
896 2000-12-12 Akim Demaille <akim@epita.fr>
898 * src/output.c (output_headers, output_program, output): Be sure
899 to escape special characters when outputting filenames.
900 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
901 (output_headers): Don't depend on them, Use ACTSTR.
903 2000-11-17 Akim Demaille <akim@epita.fr>
905 * lib/obstack.h: Formatting changes.
906 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
907 prevents type checking.
908 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
909 cast the value to (void *): assigning a `foo *' to a `void *'
911 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
912 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
915 2000-11-17 Akim Demaille <akim@epita.fr>
917 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
919 (suite.m4, regression.m4, calc.m4): these.
920 * tests/atgeneral.m4: Update from CVS Autoconf.
922 2000-11-17 Akim Demaille <akim@epita.fr>
924 * tests/regression.m4 (%union and --defines): New test,
925 demonstrating a current bug in the obstack implementation.
927 2000-11-17 Akim Demaille <akim@epita.fr>
929 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
931 Use them to declare the variables which are global or local to
934 2000-11-17 Akim Demaille <akim@epita.fr>
936 * acconfig.h: Remove, no longer used.
938 2000-11-07 Akim Demaille <akim@epita.fr>
940 * src: s/Copyright (C)/Copyright/g.
942 2000-11-07 Akim Demaille <akim@epita.fr>
944 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
946 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
948 2000-11-07 Akim Demaille <akim@epita.fr>
950 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
951 Merge in a single CPP if/else.
953 2000-11-07 Akim Demaille <akim@epita.fr>
955 * src/output.c (output): Remove useless variables.
956 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
957 argument `data' for consistency with the prototypes.
959 (obstack_copy, obstack_copy0): Rename the second argument as
960 `address' for consistency. Qualify it `const'.
961 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
962 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
963 `const' their input argument (`data' or `address').
964 Adjust the corresponding macros to include `const' in casts.
966 2000-11-03 Akim Demaille <akim@epita.fr>
968 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
969 s/PFILE1/BISON_HAIRY/.
972 2000-11-03 Akim Demaille <akim@epita.fr>
974 For some reason, this was not applied.
976 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
977 `unlink': it's no longer used.
979 2000-11-03 Akim Demaille <akim@epita.fr>
981 * src/files.c (skeleton_find): New function, eved out of...
982 (open_files, open_extra_files): here.
984 2000-11-03 Akim Demaille <akim@epita.fr>
988 * src/files.c (obstack_save): New function.
990 (output_files): this.
992 * src/main.c (main): Don't use `atexit' to register `done', since
993 it no longer has to remove tmp files, just call `output_files'
994 when there are no errors.
996 2000-11-02 Akim Demaille <akim@epita.fr>
998 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
999 `unlink': it's no longer used.
1000 * src/files.h: Formatting changes.
1002 2000-11-02 Akim Demaille <akim@epita.fr>
1004 Remove the last uses of mktemp and unlink/delete.
1006 * src/files.c (fdefines, ftable): Removed.
1007 (defines_ostack, table_obstack): New.
1008 Adjust dependencies of the former into uses of the latter.
1009 * src/output.c (output_short_or_char_table, output_short_table):
1010 Convert to using obstacks.
1011 * src/reader.c (copy_comment2): Accept one FILE * and two
1013 (output_token_defines, reader_output_yylsp): Use obstacks.
1014 * src/system.h (obstack_fgrow3): New.
1016 2000-11-01 Akim Demaille <akim@epita.fr>
1018 Change each use of `fattrs' into a use of `attrs_obstack'.
1020 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1021 * src/files.c (fattrs): Remove.
1022 (attrs_obstack): New.
1023 Adjust all dependencies.
1024 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1026 2000-11-01 Akim Demaille <akim@epita.fr>
1029 Change each use of `faction' into a use of `action_obstack'.
1031 * lib/obstack.h, lib/obstack.c: New files.
1032 * src/files.c (faction): Remove.
1033 (action_obstack): New.
1034 Adjust all dependencies.
1036 2000-10-20 Akim Demaille <akim@epita.fr>
1038 * lib/quote.h (PARAMS): New macro. Use it.
1040 2000-10-16 Akim Demaille <akim@epita.fr>
1042 * src/output.c (output_short_or_char_table): New function.
1043 (output_short_table, output_token_translations): Use it.
1044 (goto_actions): Use output_short_table.
1046 2000-10-16 Akim Demaille <akim@epita.fr>
1048 * src/symtab.c (bucket_new): New function.
1051 * src/output.c (output_short_table): New argument to display the
1052 comment associated with the table.
1053 Adjust dependencies.
1054 (output_gram): Use it.
1055 (output_rule_data): Nicer output layout for YYTNAME.
1057 2000-10-16 Akim Demaille <akim@epita.fr>
1059 * src/lex.c (read_typename): New function.
1061 * src/reader.c (copy_dollar): Likewise.
1063 2000-10-16 Akim Demaille <akim@epita.fr>
1065 * src/reader.c (copy_comment2): Expect the input stream to be on
1066 the `/' which is suspected to open a comment, instead of being
1067 called after `//' or `/*' was read.
1068 (copy_comment, copy_definition, parse_union_decl, copy_action)
1069 (copy_guard): Adjust.
1071 2000-10-16 Akim Demaille <akim@epita.fr>
1073 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1074 `read_signed_integer'.
1076 2000-10-16 Akim Demaille <akim@epita.fr>
1078 * src/reader.c (copy_dollar): New function.
1079 (copy_guard, copy_action): Use it.
1081 2000-10-16 Akim Demaille <akim@epita.fr>
1083 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1084 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1085 New files, from Fileutils 4.0.27.
1086 * src/main.c (printable_version): Remove.
1087 * src/lex.c, src/reader.c: Use `quote'.
1089 2000-10-04 Akim Demaille <akim@epita.fr>
1091 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1093 2000-10-04 Akim Demaille <akim@epita.fr>
1095 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1097 2000-10-04 Akim Demaille <akim@epita.fr>
1099 When a literal string is used to define two different tokens,
1100 `bison -v' segfaults.
1101 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1103 * tests/regression.m4: New file.
1104 Include the core of the sample provided by Piotr Gackiewicz.
1105 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1108 2000-10-04 Akim Demaille <akim@epita.fr>
1110 * src/reader.c (parse_expect_decl): Keep `count' within the size
1114 2000-10-02 Paul Eggert <eggert@twinsun.com>
1116 * bison.s1 (yyparse): Assign the default value
1117 unconditionally, to avoid a GCC warning and make the parser a
1120 2000-10-02 Akim Demaille <akim@epita.fr>
1122 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1125 2000-10-02 Akim Demaille <akim@epita.fr>
1127 * src/derives.c, src/print.c, src/reduce.c: To ease the
1128 translation, move some `\n' out of the translated strings.
1130 2000-10-02 Akim Demaille <akim@epita.fr>
1132 The location tracking mechanism is precious for parse error
1133 messages. Nevertheless, it is enabled only when `@n' is used in
1134 the grammar, which is a different issue (you can use it in error
1135 message, but not in the grammar per se). Therefore, there should
1136 be another means to enable it.
1138 * src/getargs.c (getargs): Support `--locations'.
1140 * src/getargs.h (locationsflag): Export it.
1141 * src/lex.c (percent_table): Support `%locations'.
1142 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1143 with `locationsflag'.
1144 * doc/bison.texinfo: Document `--locations' and `%locations'.
1146 * tests/calc.m4: Test it.
1148 For regularity of the names, replace each
1149 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1150 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1151 In addition replace each `flag' with `_flag'.
1153 2000-10-02 Akim Demaille <akim@epita.fr>
1155 Also test parse error messages, including with YYERROR_VERBOSE.
1157 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1159 Use it to check the computations.
1160 Use it to check `nonassoc' is honored.
1161 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1162 `--yyerror-verbose'.
1163 (_AT_CHECK_CALC): Adjust to this option.
1164 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1166 2000-10-02 Akim Demaille <akim@epita.fr>
1168 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1169 the latter demonstrates a flaw in the handling of non debugging
1170 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1171 was used in order to simplify:
1187 unfortunately this leads to a CPP conflict when
1188 `--name-prefix=foo' is used since it produces `#define yydebug
1191 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1192 (YYDPRINTF): New macro.
1194 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1196 Also test `--verbose', `--defines' and `--name-prefix'.
1198 2000-10-02 Akim Demaille <akim@epita.fr>
1200 Improve the readability of the produced parsers.
1202 * src/bison.s1: Formatting changes.
1203 Improve the comment related to the `$' mark.
1204 (yydefault): Don't fall through to `yyresume': `goto' there.
1205 * src/output.c (output_parser): When the `$' is met, skip the end
1207 New variable, `number_of_dollar_signs', to check there's exactly
1208 one `$' in the parser skeleton.
1210 2000-10-02 Akim Demaille <akim@epita.fr>
1212 * lib/xstrdup.c: New file, from the fileutils.
1213 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1214 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1215 instead of strlen + xmalloc + strcpy.
1216 * src/symtab.c (copys): Remove, use xstrdup instead.
1218 2000-10-02 Akim Demaille <akim@epita.fr>
1220 * src/gram.h (associativity): New enum type which replaces the
1221 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1222 `right_assoc', `left_assoc' and `non_assoc'.
1223 Adjust all dependencies.
1224 * src/reader.c: Formatting changes.
1225 (LTYPESTR): Don't define it, use it as a literal in
1226 `reader_output_yylsp'.
1227 * src/symtab.h (symbol_class): New enum type which replaces the
1228 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1229 `sunknown', `stoken and `snterm'.
1231 2000-10-02 Akim Demaille <akim@epita.fr>
1233 * src/getargs.c (fixed_outfiles): Rename as...
1234 (yaccflag): for consistency and accuracy.
1235 Adjust dependencies.
1237 2000-10-02 Akim Demaille <akim@epita.fr>
1239 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1240 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1241 difficult and introduced a lot of core dump. It turns out that
1242 Bison used an implementation of `xmalloc' based on `calloc', and
1243 at various places it does depend upon the initialization to 0. I
1244 have not tried to isolate the pertinent places, and all the former
1245 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1246 someone should address this issue.
1248 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1249 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1251 Adjust dependencies.
1252 * src/warshall.h: New file.
1255 2000-10-02 Akim Demaille <akim@epita.fr>
1257 Various anti-`extern in *.c' changes.
1259 * src/system.h: Include `assert.h'.
1261 2000-10-02 Akim Demaille <akim@epita.fr>
1263 * src/state.h (nstates, final_state, first_state, first_shift)
1264 (first_reduction): Move their exportation from here...
1265 * src/LR0.h: to here.
1266 Adjust dependencies.
1267 * src/getargs.c (statisticsflag): New variable.
1268 Add support for `--statistics'.
1269 Adjust dependencies.
1271 Remove a lot of now useless `extern' statements in most files.
1273 2000-10-02 Akim Demaille <akim@epita.fr>
1275 * src/LR0.h: New file.
1278 2000-10-02 Akim Demaille <akim@epita.fr>
1280 * src/print.h: New file.
1282 * src/print.c: Formatting and ordering changes.
1283 (verbose, terse): Replace with...
1284 (print_results): this new function.
1285 Adjust dependencies.
1287 2000-10-02 Akim Demaille <akim@epita.fr>
1289 * src/conflicts.c (conflict_report): New function.
1290 (conflict_log, verbose_conflict_log): Replace with...
1291 (print_conflicts): this function.
1292 Adjust dependencies.
1293 * src/conflicts.h: New file.
1294 Propagate its inclusion.
1296 2000-10-02 Akim Demaille <akim@epita.fr>
1298 * src/nullable.h: New file.
1299 Propagate its inclusion.
1300 * src/nullable.c: Formatting changes.
1302 2000-10-02 Akim Demaille <akim@epita.fr>
1304 * src/reduce.h: New file.
1305 Propagate its inclusion.
1306 * src/reduce.c: Topological sort and other formatting changes.
1307 (bool, TRUE, FALSE): Move their definition to...
1308 * src/system.h: here.
1310 2000-10-02 Akim Demaille <akim@epita.fr>
1312 * src/files.c: Formatting changes.
1313 (tryopen, tryclose, openfiles): Rename as...
1314 (xfopen, xfclose, open_files): this.
1315 (stringappend): static.
1316 * src/files.h: Complete the list of exported symbols.
1319 2000-10-02 Akim Demaille <akim@epita.fr>
1321 * src/reader.h: New file.
1322 Propagate its use instead of tedious list of `extern' and
1324 * src/reader.c: Formatting changes, topological sort,
1327 2000-10-02 Akim Demaille <akim@epita.fr>
1329 * src/lex.h: Prototype `lex.c' exported functions.
1330 * src/reader.c: Adjust.
1331 * src/lex.c: Formatting changes.
1332 (safegetc): Rename as...
1335 2000-10-02 Akim Demaille <akim@epita.fr>
1337 * src/lalr.h: New file.
1338 Propagate its inclusion instead of prototypes and `extern'.
1339 * src/lalr.c: Formatting changes, topological sorting etc.
1341 2000-10-02 Akim Demaille <akim@epita.fr>
1343 * src/output.c (token_actions): Introduce a temporary array,
1344 YYDEFACT, that makes it possible for this function to use
1347 2000-10-02 Akim Demaille <akim@epita.fr>
1349 `user_toknums' is output as a `short[]' in `output.c', while it is
1350 defined as a `int[]' in `reader.c'. For consistency with the
1351 other output tables, `user_toknums' is now defined as a table of
1354 * src/reader.c (user_toknums): Be a short table instead of an int
1356 Adjust dependencies.
1358 Factor the short table outputs.
1360 * src/output.c (output_short_table): New function.
1361 * src/output.c (output_gram, output_stos, output_rule_data)
1362 (output_base, output_table, output_check): Use it.
1364 2000-10-02 Akim Demaille <akim@epita.fr>
1366 * src/output.c (output): Topological sort of the functions, in
1367 order to get rid of the `static' prototypes.
1368 No longer use `register'.
1369 * src/output.h: New file.
1370 Propagate its inclusion in files explicitly prototyping functions
1373 2000-09-21 Akim Demaille <akim@epita.fr>
1375 * src/atgeneral.m4: Update from Autoconf.
1377 2000-09-21 Akim Demaille <akim@epita.fr>
1379 * src/closure.h: New file.
1380 * src/closure.c: Formatting changes, topological sort over the
1381 functions, use of closure.h.
1382 (initialize_closure, finalize_closure): Rename as...
1383 (new_closure, free_closure): these. Adjust dependencies.
1384 * src/LR0.c: Formatting changes, topological sort, use of
1386 (initialize_states): Rename as...
1388 * src/Makefile.am (noinst_HEADERS): Adjust.
1390 2000-09-20 Akim Demaille <akim@epita.fr>
1392 * src/acconfig.h: Don't protect config.h against multiple
1394 Don't define PARAMS.
1395 * src/system.h: Define PARAMS.
1396 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1397 purpose of config.h. system.h must not try to fix wrong
1398 definitions in config.h.
1400 2000-09-20 Akim Demaille <akim@epita.fr>
1402 * src/derives.h: New file.
1403 * src/main.c, src/derives.h: Use it.
1405 * src/Makefile.am (noinst_HEADERS): Adjust.
1407 2000-09-20 Akim Demaille <akim@epita.fr>
1409 * tests/atgeneral.m4: Update from Autoconf.
1410 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1411 (AT_CHECK_CALC): New macros.
1412 Use these macros to test bison with options `', `--raw',
1413 `--debug', `--yacc', `--yacc --debug'.
1415 2000-09-19 Akim Demaille <akim@epita.fr>
1417 * src/output.c: Formatting changes.
1418 * src/machine.h: Remove, leaving its contents in...
1419 * src/system.h: here.
1421 Adjust all dependencies on stdio.h and machine.h.
1422 * src/getargs.h: New file.
1423 Let all `extern' declarations about getargs.c be replaced with
1424 inclusion of `getargs.h'.
1425 * src/Makefile.am (noinst_HEADERS): Adjust.
1427 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1429 (yyerror): Returns void, not int.
1430 * doc/bison.texinfo: Formatting changes.
1432 2000-09-19 Akim Demaille <akim@epita.fr>
1434 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1437 2000-09-18 Akim Demaille <akim@epita.fr>
1439 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1440 * src/Makefile.am (INCLUDES): Don't.
1441 Be ready to fetch headers in lib/.
1443 2000-09-18 Akim Demaille <akim@epita.fr>
1445 * doc/bison.texinfo: Update the copyright.
1446 ANSIfy and GNUify the examples.
1447 Remove the old menu.
1449 2000-09-18 Akim Demaille <akim@epita.fr>
1451 First set of tests: use the `calc' example from the documentation.
1453 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1454 is defined only when YYDEBUG is.
1455 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1456 * src/files.c (tryopen, tryclose): Formatting changes.
1457 Move to the top and be static.
1458 * src/reader.c (read_signed_integer): Likewise.
1459 * tests/calc.m4: New file.
1460 * Makefile.am, suite.m4: Adjust.
1461 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1463 2000-09-18 Akim Demaille <akim@epita.fr>
1465 Add support for an Autotest test suite for Bison.
1467 * m4/m4.m4, m4/atconfig.m4: New files.
1468 * m4/Makefile.am (EXTRA_DIST): Adjust.
1469 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1471 * src/getargs.c: Display a more standard --version message.
1472 * src/reader.c (reader): Formatting changes.
1473 No longer depend upon VERSION_STRING.
1474 * configure.in: No longer use `dnl'.
1475 Set up the test suite and the new directory `tests/.
1476 (VERSION_STRING): Remove.
1478 2000-04-14 Akim Demaille <akim@epita.fr>
1480 * src/reader.c (copy_comment2): New function, same as former
1481 `copy_comment', but outputs into two FILE *.
1482 (copy_comment): Use it.
1483 (parse_union_decl): Use it.
1484 (get_type, parse_start_decl): Use the same `invalid' message.
1485 (parse_start_decl, parse_union_decl): Use the same `multiple'
1487 (parse_union_decl, copy_guard, copy_action): Use the same
1488 `unmatched' message.
1489 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1491 2000-03-31 Akim Demaille <akim@epita.fr>
1493 * src/files.c (tryopen, tryclose): Move to the top.
1496 2000-03-31 Akim Demaille <akim@epita.fr>
1498 * src/main.c (main): Don't call `done', exit does it.
1500 2000-03-31 Akim Demaille <akim@epita.fr>
1502 * allocate.c: s/return (foo)/return foo/.
1505 * output.c: Likewise.
1506 * reader.c: Likewise.
1507 * symtab.c: Likewise.
1508 * vmsgetargs.c: Likewise.
1510 2000-03-31 Akim Demaille <akim@epita.fr>
1512 Clean up the error reporting functions.
1514 * src/report.c: New file.
1515 * src/report.h: Likewise.
1516 * src/Makefile.am: Adjust.
1517 * m4/error.m4: New file.
1518 * m4/Makefile.am: Adjust.
1519 * configure.in (jm_PREREQ_ERROR): Call it.
1520 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1522 (fatal, fatals): Remove. All callers use complain.c::fatal.
1523 (warn, warni, warns, warnss, warnss): Remove. All callers use
1524 complain.c::complain.
1525 (toomany): Remove, use fatal instead.
1526 * src/files.c (done): No argument, use complain_message_count.
1527 * src/main.c (main): Register `done' to `atexit'.
1529 * src/getargs.c (usage): More `fputs', less `fprintf'.
1531 2000-03-28 Akim Demaille <akim@epita.fr>
1533 * lib/: New directory.
1534 * Makefile.am (SUBDIRS): Adjust.
1535 * configure.in: Adjust.
1536 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1538 * src/alloca.c: Moved to lib/.
1539 * src/getopt.c: Likewise.
1540 * src/getopt1.c: Likewise.
1541 * src/getopt.h: Likewise.
1542 * src/ansi2knr.c: Likewise.
1543 * src/ansi2knr.1: Likewise.
1544 * src/Makefile.am: Adjust.
1545 * lib/Makefile.am: New file.
1547 2000-03-28 Akim Demaille <akim@epita.fr>
1549 * src/getargs.c (usage): Refresh the help message.
1551 2000-03-17 Akim Demaille <akim@epita.fr>
1553 * src/getopt1.c: Updated from textutils 2.0e
1554 * src/getopt.c: Likewise.
1555 * src/getopt.h: Likewise.
1557 2000-03-17 Akim Demaille <akim@epita.fr>
1559 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1560 the file name, not the whole `#line LINE FILE'.
1562 2000-03-17 Akim Demaille <akim@epita.fr>
1564 On syntax errors, report the token on which we choked.
1566 * src/bison.s1 (yyparse): In the label yyerrlab, when
1567 YYERROR_VERBOSE, add yychar in msg.
1569 2000-03-17 Akim Demaille <akim@epita.fr>
1571 * src/reader.c (copy_at): New function.
1572 (copy_guard): Use it.
1573 (copy_action): Use it.
1575 2000-03-17 Akim Demaille <akim@epita.fr>
1577 Be kind to translators, save some useless translations.
1579 * src/main.c (banner): New function.
1580 (fatal_banner): Use it.
1581 (warn_banner): Use it.
1583 2000-03-17 Akim Demaille <akim@epita.fr>
1585 * src/reader.c (copy_definition): Use copy_string and
1586 copy_comment. Removed now unused `match', `ended',
1588 (copy_comment, copy_string): Moved, to be visible from
1591 2000-03-17 Akim Demaille <akim@epita.fr>
1593 * src/reader.c (copy_string): Declare `static inline'. No
1594 problems with inline, since it is checked by configure.
1595 (copy_comment): Likewise.
1597 2000-03-17 Akim Demaille <akim@epita.fr>
1599 * src/reader.c (packsymbols): Formatting changes.
1601 2000-03-17 Akim Demaille <akim@epita.fr>
1603 * src/reader.c (copy_comment): New function, factored out from:
1604 (copy_action): Use it. Removed now unused `match', `ended',
1606 (copy_guard): Likewise.
1608 2000-03-17 Akim Demaille <akim@epita.fr>
1610 * src/reader.c (copy_string): New function, factored out from:
1611 (copy_action): Use it.
1612 (copy_guard): Likewise.
1614 2000-03-17 Akim Demaille <akim@epita.fr>
1616 Change the handling of @s so that they behave exactly like $s.
1617 There is now a pseudo variable @$ (readble and writable), location
1618 of the lhs of the rule (by default ranging from the location of
1619 the first symbol of the rhs, to the location of the last symbol,
1620 or, if the rhs is empty, YYLLOC).
1622 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1624 (yyparse): When providing a default semantic action, provide a
1625 default location action.
1626 (after the $): No longer change `*YYLSP', just stack YYLOC the
1627 same way you stack YYVAL.
1628 * src/reader.c (read_declarations): Use warns.
1629 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1630 (copy_action, case '@'): Likewise.
1631 Use a standard error message, to save useless work from
1634 2000-03-17 Akim Demaille <akim@epita.fr>
1636 * src/bison.s1: Formatting and cosmetics changes.
1637 * src/reader.c: Likewise.
1638 Update the Copyright notice.
1640 2000-03-17 Akim Demaille <akim@epita.fr>
1642 * src/bison.s1 (#line): All set to `#line' only, since the
1643 Makefile now handles them.
1645 2000-03-16 Akim Demaille <akim@epita.fr>
1647 * src/output.c (output_rule_data): Output the documentation of
1649 (Copyright notice): Update.
1652 2000-03-16 Akim Demaille <akim@epita.fr>
1654 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1655 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1656 One `#if YYDEBUG' remains, since it uses variables which are
1657 defined only if `YYDEBUG != 0'.
1659 2000-03-16 Akim Demaille <akim@epita.fr>
1661 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1662 and related variables so that the similarities are highlighted.
1664 2000-03-16 Akim Demaille <akim@epita.fr>
1666 * src/bison.s1: Properly indent CPP directives.
1668 2000-03-16 Akim Demaille <akim@epita.fr>
1670 * src/bison.s1: Properly indent the `alloca' CPP section.
1672 2000-03-16 Akim Demaille <akim@epita.fr>
1674 Do not hard code values of directories in `configure.in'.
1675 Update the `configure' tool chain.
1677 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1679 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1680 (AC_OUTPUT): Add m4/Makefile.
1681 Bump to bison 1.28a, 1.29 has never been released.
1682 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1683 handled via src/Makefile.am.
1684 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1685 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1687 * Makefile.am (SUBDIRS): Add m4.
1688 (ACLOCAL_AM_FLAGS): New variable.
1689 (AUTOMAKE_OPTIONS): Add check-news.
1690 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1691 the proper line number and file name.
1692 (DEFS): Propagate the location of bison library files and of the
1694 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1696 * acinclude.m4: Remove, replaced by the directory m4.
1697 * m4/Makefile.am (EXTRA_DIST): New variable.
1698 * m4/gettext.m4: New file, from the fileutils.
1699 * m4/lcmessage.m4: Likewise
1700 * m4/progtest.m4: Likewise.
1701 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1703 2000-03-10 Akim Demaille <akim@epita.fr>
1706 Formatting changes of various comments.
1707 Respect the GNU coding standards at various places.
1708 Don't use `_()' when no translation is needed.
1710 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1713 OS/2 honors TMPDIR environment variable.
1715 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1717 * doc/bison.texinfo: Tweaked spelling and grammar.
1719 Removed reference to price of printed copy.
1720 Mention BISON_SIMPLE and BISON_HAIRY.
1722 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1724 * configure.in, NEWS:
1725 Bison 1.29 released.
1727 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1729 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1730 Added reference card.
1732 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1734 * po/ru.po: Added Russian translation.
1736 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1738 * configure.in: Added Russian translation.
1740 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1742 * configure.in, NEWS, README:
1743 Released version 1.28.
1745 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1748 Squashed redefinition warning on some systems.
1750 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1751 Have configure build version string instead of relying on ANSI string
1754 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1756 * po/POTFILES.in: Got rid of version.c.
1758 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1760 * acconfig.h, configure.in:
1761 Have configure build version string instead of relying on ANSI string
1764 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1767 Dropped mention of `+' for long-named options.
1769 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1771 * src/files.c: Added <unistd.h> for unlink().
1773 * src/Makefile.am, src/system.h:
1776 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1778 * README: Added a FAQ list.
1780 * configure.in, acconfig.h:
1783 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1785 * doc/FAQ, doc/Makefile.am:
1788 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1790 * src/alloc.h, src/symtab.h, src/version.c:
1791 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1793 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1795 * src/.cvsignore, src/Makefile.am:
1796 Reorganized: sources in `src', documentation in `doc'.
1798 * src/lex.c (literalchar):
1799 fixed the code for escaping double quotes (thanks
1802 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1804 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1805 Adjusted paths to reflect directory reorganization.
1807 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1809 * doc/.cvsignore, doc/Makefile.am:
1810 Reorganized: sources in `src', documentation in `doc'.
1812 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1815 Updated AC_INIT file to reflect directory reorganization.
1817 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1818 Reorganized: sources in `src', documentation in `doc'.
1820 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1823 Don't declare calloc() and realloc() if not necessary.
1825 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1827 * configure.in, acconfig.h, acinclude.m4:
1828 Don't declare calloc() and realloc() if not necessary.
1830 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1832 * po/.cvsignore: Added i18n support.
1834 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1836 * acconfig.h, configure.in, Makefile.am:
1839 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1841 * src/bison.s1: Fixed #line numbers.
1843 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1845 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1846 Added PO files from Translation Project.
1848 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1851 Added support for non-ANSI compilers (ansi2knr).
1853 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1855 * configure.in: Bumped version number to 1.27.
1858 Added `bison.simple' to list of files removed by `make distclean'.
1860 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1862 * src/files.c, src/files.h:
1863 Defined locations of parser files in config.h instead of Makefile.
1865 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1867 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1868 Defined locations of parser files in config.h instead of Makefile.
1870 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1873 Removed inappropriate use of $< macro.
1875 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1877 * po/Makefile.in.in, po/POTFILES.in:
1878 Add `po' directory skeleton.
1880 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1882 * README: Document help-bison list.
1884 * configure.in: Add check for mkstemp().
1886 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1888 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1889 Hush a few compiler warnings.
1892 Add tryclose(), which verifies that fclose was successful.
1893 Hush a couple of compiler warnings.
1895 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1897 * Makefile.am, OChangeLog:
1898 ChangeLog is now automatically generated. Include the old version as
1901 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1903 * 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:
1906 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1908 * doc/bison.texinfo: Fix formatting glitch.
1910 * doc/bison.texinfo: Update FSF address.
1912 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1914 * acconfig.h: Update FSF address.
1916 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1919 Don't define PACKAGE here, since config.h defines it.
1921 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1923 * src/reader.c: Update copyright date.
1926 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1927 favor of output directly to stderr (avoids buffer overruns).
1929 * src/reader.c: Some checks for premature EOF.
1931 * 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:
1932 Use prototypes if the compiler understands them.
1934 * src/files.c: Honor TMPDIR on Unix hosts.
1935 Use prototypes if the compiler understands them.
1938 Fix a couple of buffer overrun bugs.
1939 Use prototypes if the compiler understands them.
1941 * src/system.h: Include unistd.h and ctype.h.
1942 Use #ifdef instead of #if for NLS symbols.
1944 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1946 * doc/bison.texinfo:
1947 Delete comment "consider using @set for edition number, etc..." since
1948 we now are doing so.
1950 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1953 Use prototypes if the compiler understands them.
1955 * NEWS: Document 1.26 highlights.
1957 * Makefile.am: Require Automake 1.3 or later.
1960 Use prototypes if the compiler understands them.
1962 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1965 Use VERSION symbol from automake for version number.
1967 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1969 * acconfig.h, configure.in, version.cin:
1970 Use VERSION symbol from automake for version number.
1972 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1975 Distribute original version of simple parser (bison.s1), not built
1976 version (bison.simple).
1978 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1980 * doc/bison.texinfo: Add info dir entry.
1982 * doc/bison.texinfo:
1983 Let automake put version number into documentation.
1985 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1987 * src/bison.cld, src/build.com, src/vmshlp.mar:
1988 Add non-RCS files from /gd/gnu/bison.
1990 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1993 Document the BISON_HAIRY and BISON_SIMPLE variables.
1995 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1997 * src/version.c: Build version.c automatically.
2000 Fix token numbering (used to start at 258, not 257).
2002 * src/system.h: Include config.h.
2004 * src/getargs.c: Update bug report address.
2006 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2007 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2009 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2012 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2014 * configure.in, version.cin:
2015 Build version.c automatically.
2017 * AUTHORS: Add AUTHORS file.
2019 * README: Update bug report address.
2022 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2024 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2027 1998-11-25 Jesse Thilo <jthilo@gnu.org>
2029 * doc/bison.texinfo: Clean up some formatting.
2031 1998-05-05 Richard Stallman <rms@gnu.org>
2033 * doc/bison.texinfo:
2034 Explain better why to make a pure parser.
2036 1998-01-05 Richard Stallman <rms@gnu.org>
2038 * src/files.c (openfiles):
2039 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2040 find a temporary directory, if possible. Do not unlink files while
2043 1997-08-25 Richard Stallman <rms@gnu.org>
2045 * src/reader.c (stack_offset;):
2046 Change some warni to warns.
2048 * src/lex.c (literalchar): Use warns, not warni.
2050 1997-06-28 Richard Stallman <rms@gnu.org>
2052 * src/bison.s1: Add a Bison version comment.
2054 * src/main.c (fatal, warn, berror):
2057 1997-06-28 Richard Stallman <rms@gnu.org>
2059 * Makefile.in (bison_version): New variable.
2060 (dist): Use that variable.
2061 (bison.s1): Substitute the Bison version into bison.simple.
2063 * bison.simple: Add a Bison version comment.
2065 1997-06-18 Richard Stallman <rms@gnu.org>
2067 * src/main.c (fatal, warn, berror):
2068 Make error messages standard.
2069 (toomany): Improve error message text.
2071 * 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:
2072 new.h renamed to alloc.h.
2074 1997-06-18 Richard Stallman <rms@gnu.org>
2076 * Makefile.in: new.h renamed to alloc.h.
2078 1997-05-24 Richard Stallman <rms@gnu.org>
2080 * src/lex.c (literalchar):
2081 Fix the code for escaping \, " and '.
2083 (lex): Avoid trouble when there are many chars
2084 to discard in a char literal with just several chars in it.
2086 1997-05-17 Richard Stallman <rms@gnu.org>
2089 Use malloc, if using alloca is troublesome.
2090 (YYSTACK_USE_ALLOCA): New flag macro.
2091 Define it for some systems and compilers.
2092 (YYSTACK_ALLOC): New macro.
2093 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2094 If it was malloc'd, free it.
2096 1997-05-17 Richard Stallman <rms@gnu.org>
2099 Use malloc, if using alloca is troublesome.
2100 (YYSTACK_USE_ALLOCA): New flag macro.
2101 Define it for some systems and compilers.
2102 (YYSTACK_ALLOC): New macro.
2103 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2104 If it was malloc'd, free it.
2106 1997-04-23 Richard Stallman <rms@gnu.org>
2109 (alloca) [__hpux]: Always define as __builtin_alloca.
2111 1997-04-23 Richard Stallman <rms@gnu.org>
2114 (alloca) [__hpux]: Always define as __builtin_alloca.
2116 1997-04-22 Richard Stallman <rms@gnu.org>
2119 [__hpux]: Include alloca.h (right for HPUX 10)
2120 instead of declaring alloca (right for HPUX 9).
2122 * src/bison.s1 (__yy_memcpy):
2123 Declare arg `count' as unsigned int.
2124 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2126 1997-04-22 Richard Stallman <rms@gnu.org>
2129 [__hpux]: Include alloca.h (right for HPUX 10)
2130 instead of declaring alloca (right for HPUX 9).
2132 * bison.simple (__yy_memcpy):
2133 Declare arg `count' as unsigned int.
2134 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2136 1997-01-03 Richard Stallman <rms@gnu.org>
2138 * src/allocate.c: [__STDC__ or _MSC_VER]:
2139 Declare calloc and realloc to return void *.
2141 1997-01-02 Richard Stallman <rms@gnu.org>
2144 [_MSC_VER]: Include stdlib.h and process.h.
2145 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2147 * src/main.c (main): Return FAILURE as a value.
2148 (printable_version): Declare arg as int, not char.
2150 1997-01-02 Richard Stallman <rms@gnu.org>
2152 * Makefile.in (dist):
2153 Explicitly check for symlinks, and copy them.
2155 1996-12-19 Richard Stallman <rms@gnu.org>
2158 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2160 1996-12-18 Paul Eggert <eggert@gnu.org>
2162 * src/bison.s1 (yyparse):
2163 If __GNUC__ and YYPARSE_PARAM are both defined,
2164 declare yyparse to have a void * argument.
2166 1996-12-18 Paul Eggert <eggert@gnu.org>
2168 * bison.simple (yyparse):
2169 If __GNUC__ and YYPARSE_PARAM are both defined,
2170 declare yyparse to have a void * argument.
2172 1996-12-17 Richard Stallman <rms@gnu.org>
2174 * src/reduce.c (nbits): Add some casts.
2176 1996-08-12 Richard Stallman <rms@gnu.org>
2178 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2180 1996-08-12 Richard Stallman <rms@gnu.org>
2182 * bison.simple: Test _MSDOS as well as _MSDOS_.
2184 1996-07-31 Richard Stallman <rms@gnu.org>
2187 [__sun && __i386]: Include alloca.h.
2189 1996-07-31 Richard Stallman <rms@gnu.org>
2192 [__sun && __i386]: Include alloca.h.
2194 1996-07-30 Richard Stallman <rms@gnu.org>
2196 * src/bison.s1: Comment change.
2198 * src/bison.s1: Test _MSDOS_, not MSDOS.
2200 1996-07-30 Richard Stallman <rms@gnu.org>
2202 * bison.simple: Comment change.
2204 * bison.simple: Test _MSDOS_, not MSDOS.
2206 1996-06-01 Richard Stallman <rms@gnu.org>
2208 * 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:
2209 Insert `_' macro around many string constants.
2212 Insert `_' macro around many string constants.
2214 (main): Call setlocale, bindtextdomain and textdomain.
2216 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2217 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2218 [ENABLE_NLS]: Include libintl.h.
2219 [ENABLE_NLS] (gettext): Define.
2220 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2221 (N_, PACKAGE, LOCALEDIR): New macros.
2223 1996-06-01 Richard Stallman <rms@gnu.org>
2225 * POTFILES.in: New file.
2227 * Makefile.in (allocate.o):
2228 Define target explicitly.
2230 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2231 (LDFLAGS): Set to @LDFLAGS@.
2232 (configure): Run autoconf only if preceding `cd' succeeds.
2233 (bison.s1): Redirect output to temporary file then move the
2234 temporary to the target, rather than redirecting directly to bison.s1.
2235 (clean): Remove config.status and config.log.
2236 (distclean): Don't remove config.status here.
2238 1996-05-12 Richard Stallman <rms@gnu.org>
2241 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2243 1996-05-12 Richard Stallman <rms@gnu.org>
2246 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2248 1996-05-11 Richard Stallman <rms@gnu.org>
2250 * src/bison.s1 (__yy_memcpy):
2251 Really reorder the args, as was supposedly done on Feb 14 1995.
2252 (yyparse): Calls changed accordingly.
2254 1996-05-11 Richard Stallman <rms@gnu.org>
2256 * Makefile.in (dist): Don't use $(srcdir).
2258 * bison.simple (__yy_memcpy):
2259 Really reorder the args, as was supposedly done on Feb 14 1995.
2260 (yyparse): Calls changed accordingly.
2262 1996-01-27 Richard Stallman <rms@gnu.org>
2264 * src/output.c (output_rule_data):
2265 Test YYERROR_VERBOSE in the conditional
2266 around the definition of ttyname.
2268 1995-12-29 Richard Stallman <rms@gnu.org>
2271 Fix line numbers in #line commands.
2273 1995-12-29 Richard Stallman <rms@gnu.org>
2276 Fix line numbers in #line commands.
2278 1995-12-27 Richard Stallman <rms@gnu.org>
2280 * src/bison.s1 (YYPARSE_PARAM_DECL):
2281 In C++, make it always null.
2282 (YYPARSE_PARAM_ARG): New macro.
2283 (yyparse): Use YYPARSE_PARAM_ARG.
2285 1995-12-27 Richard Stallman <rms@gnu.org>
2287 * bison.simple (YYPARSE_PARAM_DECL):
2288 In C++, make it always null.
2289 (YYPARSE_PARAM_ARG): New macro.
2290 (yyparse): Use YYPARSE_PARAM_ARG.
2292 1995-11-29 Richard Stallman <rms@gnu.org>
2294 * doc/bison.texinfo:
2295 Describe literal string tokens, %raw, %no_lines, %token_table.
2297 1995-11-29 Daniel Hagerty <hag@gnu.org>
2299 * doc/bison.texinfo: Fixed update date
2301 1995-10-16 Richard Stallman <rms@gnu.org>
2303 * src/version.c: Version 1.25.
2305 1995-10-16 Richard Stallman <rms@gnu.org>
2307 * NEWS: *** empty log message ***
2309 1995-10-16 Richard Stallman <rms@gnu.org>
2311 * doc/bison.1, doc/bison.rnh:
2314 1995-10-15 Richard Stallman <rms@gnu.org>
2316 * src/vmsgetargs.c, src/getargs.c:
2317 Added -n, -k, and -raw switches.
2318 (noparserflag, toknumflag, rawtoknumflag): New variables.
2320 * src/symtab.h (SALIAS):
2321 New #define for adding aliases to %token.
2322 (struct bucket): Added `alias' field.
2324 * src/reduce.c (reduce_grammar):
2325 Revise error message.
2326 (print_notices): Remove final `.' from error message.
2328 * src/reader.c (reader_output_yylsp):
2330 (readgram): Use `#if 0' around code that accepted %command
2331 inside grammar rules: The documentation doesn't allow it,
2332 and it will fail since the %command processors scan for the next %.
2333 (parse_token_decl): Extended the %token
2334 declaration to allow a multi-character symbol as an alias.
2335 (parse_thong_decl): New function.
2336 (read_declarations): Added %thong declarations.
2337 (read_declarations): Handle NOOP to deal with allowing
2338 % declarations as another means to specify the flags.
2339 (readgram): Allow %prec prior to semantics embedded in a rule.
2340 (skip_to_char, read_declarations, copy_definition)
2341 (parse_token_decl, parse_start_decl, parse_type_decl)
2342 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2343 (get_type_name, copy_guard, copy_action, readgram)
2344 (get_type, packsymbols): Revised most error messages.
2345 Changed `fatal' to `warnxxx' to avoid aborting for error.
2346 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2347 (read_declarations): Improve the error message for
2348 an invalid character. Do not abort.
2349 (read_declarations, copy_guard, copy_action): Use
2350 printable_version to avoid unprintable characters in printed output.
2351 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2352 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2353 Allow the type of a non-terminal can be given
2354 more than once, as long as all specifications give the same type.
2357 (output_headers, output_trailers, output, output_gram)
2358 (output_rule_data): Implement noparserflag variable.
2359 Implement toknumflag variable.
2360 (output): Call reader_output_yylsp to output LTYPESTR.
2362 * src/main.c (main):
2363 If reader sees an error, don't process the grammar.
2364 (fatals): Updated to not use VARARGS1.
2365 (printable_version, int_to_string, warn, warni, warns, warnss)
2366 (warnsss): New error reporting functions. Avoid abort for error.
2369 Added THONG and NOOP for alias processing.
2370 Added SETOPT for the new code that allows setting options with %flags.
2373 Include getopt.h. Add some extern decls.
2374 (safegetc): New function to deal with EOF gracefully.
2375 (literalchar); new function to deal with reading \ escapes.
2376 (lex): Use literalchar.
2377 (lex): Implemented "..." tokens.
2378 (literalchar, lex, parse_percent_token): Made tokenbuffer
2379 always contain the token. This includes growing the token
2380 buffer while reading an integer.
2381 (parse_percent_token): Replaced if-else statement with percent_table.
2382 (parse_percent_token): Added % declarations as another
2383 way to specify the flags -n, -l, and -r. Also added hooks for
2384 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2385 major changes to files.c.
2386 (lex) Retain in the incoming stream a character following
2388 (skip_white_space, lex): Revised most error messages
2389 and changed fatal to warn to avoid aborting.
2390 (percent_table): Added %thong declarations.
2392 * src/gram.h: Comment changes.
2394 * src/files.c (openfiles, open_extra_files, done):
2396 and actfile file. Handle noparserflag. Both for -n switch.
2398 * src/conflicts.c (resolve_sr_conflict):
2399 Remove use of alloca.
2401 1995-06-01 Jim Meyering <meyering@gnu.org>
2403 * doc/bison.texinfo: *** empty log message ***
2405 1995-05-06 Richard Stallman <rms@gnu.org>
2407 * src/bison.s1: Comment change.
2409 1995-05-06 Richard Stallman <rms@gnu.org>
2411 * bison.simple: Comment change.
2413 1995-05-03 Richard Stallman <rms@gnu.org>
2415 * src/version.c: Version now 1.24.
2417 * src/bison.s1: Change distribution terms.
2419 * src/version.c: Version now 1.23.
2421 1995-05-03 Richard Stallman <rms@gnu.org>
2423 * doc/bison.texinfo:
2424 Rewrite "Conditions for Using Bison".
2425 Update version to 1.24.
2427 1995-05-03 Richard Stallman <rms@gnu.org>
2429 * bison.simple: Change distribution terms.
2431 1995-02-23 Richard Stallman <rms@gnu.org>
2433 * src/files.c: Test __VMS_POSIX as well as VMS.
2435 1995-02-14 Jim Meyering <meyering@gnu.org>
2437 * src/bison.s1 (__yy_memcpy):
2438 Renamed from __yy_bcopy to avoid
2439 confusion. Reverse FROM and TO arguments to be consistent with
2442 1995-02-14 Jim Meyering <meyering@gnu.org>
2444 * bison.simple (__yy_memcpy):
2445 Renamed from __yy_bcopy to avoid
2446 confusion. Reverse FROM and TO arguments to be consistent with
2449 1994-11-10 David J. MacKenzie <djm@gnu.org>
2455 * Makefile.in (DISTFILES): Include NEWS.
2457 * Makefile.in (DISTFILES):
2458 Include install-sh, not install.sh.
2460 * configure.in: Update to Autoconf v2 macro names.
2462 1994-10-05 David J. MacKenzie <djm@gnu.org>
2464 * Makefile.in: fix typo
2466 * Makefile.in (prefix, exec_prefix):
2467 Let configure set them.
2469 1994-09-28 David J. MacKenzie <djm@gnu.org>
2471 * Makefile.in: Set datadir to $(prefix)/share.
2473 1994-09-15 Richard Stallman <rms@gnu.org>
2476 Update copyright notice and GPL version.
2478 1994-09-15 Richard Stallman <rms@gnu.org>
2481 Update copyright notice and GPL version.
2483 1994-07-12 Richard Stallman <rms@gnu.org>
2485 * src/reduce.c, src/reader.c:
2488 1994-05-05 David J. MacKenzie <djm@gnu.org>
2490 * Makefile.in: entered into RCS
2492 1994-03-26 Richard Stallman <rms@gnu.org>
2494 * src/bison.s1: entered into RCS
2496 1994-03-26 Richard Stallman <rms@gnu.org>
2498 * bison.simple: entered into RCS
2500 1994-03-25 Richard Stallman <rms@gnu.org>
2502 * src/main.c: entered into RCS
2504 1994-03-24 Richard Stallman <rms@gnu.org>
2506 * src/conflicts.c: entered into RCS
2508 1994-01-02 Richard Stallman <rms@gnu.org>
2510 * Makefile.in: *** empty log message ***
2512 1993-11-21 Richard Stallman <rms@gnu.org>
2514 * src/bison.s1: *** empty log message ***
2516 1993-11-21 Richard Stallman <rms@gnu.org>
2518 * doc/bison.texinfo: entered into RCS
2520 * doc/bison.texinfo: *** empty log message ***
2522 1993-11-21 Richard Stallman <rms@gnu.org>
2524 * bison.simple: *** empty log message ***
2526 1993-10-25 David J. MacKenzie <djm@gnu.org>
2528 * doc/bison.texinfo: *** empty log message ***
2530 1993-10-19 Richard Stallman <rms@gnu.org>
2532 * src/bison.s1: *** empty log message ***
2534 1993-10-19 Richard Stallman <rms@gnu.org>
2536 * bison.simple: *** empty log message ***
2538 1993-10-14 Richard Stallman <rms@gnu.org>
2540 * src/bison.s1: *** empty log message ***
2542 1993-10-14 Richard Stallman <rms@gnu.org>
2544 * bison.simple: *** empty log message ***
2546 1993-09-14 David J. MacKenzie <djm@gnu.org>
2548 * doc/bison.texinfo: *** empty log message ***
2550 1993-09-13 Noah Friedman <friedman@gnu.org>
2552 * Makefile.in: *** empty log message ***
2554 1993-09-10 Richard Stallman <rms@gnu.org>
2556 * src/conflicts.c: *** empty log message ***
2558 * src/system.h: entered into RCS
2560 1993-09-10 Richard Stallman <rms@gnu.org>
2562 * doc/bison.1: entered into RCS
2564 1993-09-06 Noah Friedman <friedman@gnu.org>
2566 * src/version.c: entered into RCS
2568 1993-09-06 Noah Friedman <friedman@gnu.org>
2570 * Makefile.in: *** empty log message ***
2572 1993-07-30 David J. MacKenzie <djm@gnu.org>
2574 * Makefile.in: *** empty log message ***
2576 1993-07-24 Richard Stallman <rms@gnu.org>
2578 * src/bison.s1: *** empty log message ***
2580 1993-07-24 Richard Stallman <rms@gnu.org>
2582 * bison.simple: *** empty log message ***
2584 1993-07-08 David J. MacKenzie <djm@gnu.org>
2586 * Makefile.in: *** empty log message ***
2588 1993-07-04 Richard Stallman <rms@gnu.org>
2590 * src/bison.s1: *** empty log message ***
2592 1993-07-04 Richard Stallman <rms@gnu.org>
2594 * bison.simple: *** empty log message ***
2596 1993-06-26 David J. MacKenzie <djm@gnu.org>
2598 * src/getargs.c: entered into RCS
2600 1993-06-26 David J. MacKenzie <djm@gnu.org>
2602 * doc/bison.texinfo: *** empty log message ***
2604 * doc/bison.1: New file.
2606 1993-06-25 Richard Stallman <rms@gnu.org>
2608 * src/getargs.c: New file.
2610 1993-06-16 Richard Stallman <rms@gnu.org>
2612 * src/bison.s1: *** empty log message ***
2614 1993-06-16 Richard Stallman <rms@gnu.org>
2616 * bison.simple: *** empty log message ***
2618 1993-06-03 Richard Stallman <rms@gnu.org>
2620 * src/bison.s1: New file.
2622 1993-06-03 Richard Stallman <rms@gnu.org>
2624 * doc/bison.texinfo: *** empty log message ***
2626 1993-06-03 Richard Stallman <rms@gnu.org>
2628 * bison.simple: New file.
2630 1993-05-19 Richard Stallman <rms@gnu.org>
2632 * doc/bison.texinfo: New file.
2634 1993-05-07 Noah Friedman <friedman@gnu.org>
2636 * Makefile.in: *** empty log message ***
2638 1993-04-28 Noah Friedman <friedman@gnu.org>
2640 * src/reader.c: *** empty log message ***
2642 1993-04-23 Noah Friedman <friedman@gnu.org>
2644 * src/alloc.h: entered into RCS
2646 1993-04-20 David J. MacKenzie <djm@gnu.org>
2648 * src/version.c: *** empty log message ***
2650 * src/files.c, src/allocate.c:
2653 * src/reader.c: *** empty log message ***
2655 * src/lex.c: entered into RCS
2657 * src/conflicts.c: New file.
2659 * src/symtab.c: entered into RCS
2661 * src/alloc.h: New file.
2663 * src/LR0.c: entered into RCS
2665 1993-04-18 Noah Friedman <friedman@gnu.org>
2667 * src/reader.c: New file.
2669 * src/version.c: *** empty log message ***
2671 1993-04-18 Noah Friedman <friedman@gnu.org>
2673 * Makefile.in: *** empty log message ***
2675 1993-04-17 Noah Friedman <friedman@gnu.org>
2677 * Makefile.in: *** empty log message ***
2679 1993-04-15 Richard Stallman <rms@gnu.org>
2681 * src/main.c, src/files.c:
2684 1993-04-15 Noah Friedman <friedman@gnu.org>
2686 * configure.in: entered into RCS
2688 * configure.in: *** empty log message ***
2690 * configure.in: New file.
2692 1993-04-14 Richard Stallman <rms@gnu.org>
2694 * Makefile.in: New file.
2696 1993-04-13 Richard Stallman <rms@gnu.org>
2698 * src/version.c: New file.
2700 1993-03-25 Richard Stallman <rms@gnu.org>
2702 * src/output.c: entered into RCS
2704 1992-09-25 Richard Stallman <rms@gnu.org>
2706 * configure.bat: entered into RCS
2708 1992-06-22 Richard Stallman <rms@gnu.org>
2710 * src/vmsgetargs.c: entered into RCS
2712 1992-06-22 Richard Stallman <rms@gnu.org>
2714 * doc/bison.rnh: entered into RCS
2716 1992-04-20 David J. MacKenzie <djm@gnu.org>
2718 * README: entered into RCS
2720 1992-01-22 Richard Stallman <rms@gnu.org>
2722 * src/machine.h: entered into RCS
2724 1991-12-21 Richard Stallman <rms@gnu.org>
2726 * src/lalr.c, src/closure.c:
2729 1991-12-20 Richard Stallman <rms@gnu.org>
2731 * src/state.h: entered into RCS
2733 1991-12-18 Richard Stallman <rms@gnu.org>
2735 * src/print.c, src/nullable.c, src/derives.c:
2738 1991-11-03 David J. MacKenzie <djm@gnu.org>
2740 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2743 1988-09-09 Richard Stallman <rms@gnu.org>
2745 * src/bison.hairy: entered into RCS
2747 1987-12-16 Richard Stallman <rms@gnu.org>
2749 * REFERENCES: entered into RCS