1 2001-08-30 Akim Demaille <akim@epita.fr>
3 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
4 * m4/atconfig.m4: Remove.
5 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
7 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
8 m4_if, m4_patsubst, and m4_regexp.
9 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
10 `input' file instead of echo.
12 2001-08-29 Akim Demaille <akim@epita.fr>
16 2001-08-29 Akim Demaille <akim@epita.fr>
20 2001-08-29 Paul Eggert <eggert@twinsun.com>
22 * src/bison.simple (yyparse): Don't take the address of an
23 item before the start of an array, as that doesn't conform to
26 2001-08-29 Robert Anisko <anisko_r@epita.fr>
28 * doc/bison.texinfo (Location Tracking Calc): New node.
30 2001-08-29 Paul Eggert <eggert@twinsun.com>
32 * src/output.c (output): Do not define const, as this now
33 causes more problems than it cures.
35 2001-08-29 Akim Demaille <akim@epita.fr>
37 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
39 Be sure to tag the `detailmenu'.
41 2001-08-29 Akim Demaille <akim@epita.fr>
43 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
44 download in a tmp dir.
46 2001-08-28 Marc Autret <autret_m@epita.fr>
48 * config/depcomp: New file.
50 2001-08-28 Marc Autret <autret_m@epita.fr>
52 * doc/bison.1 (mandoc): Adjust.
53 From Juan Manuel Guerrero.
55 2001-08-28 Marc Autret <autret_m@epita.fr>
57 * src/print_graph.c (print_state): Fix.
59 2001-08-27 Marc Autret <autret_m@epita.fr>
61 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
63 Echo modifications to the functions prototypes.
64 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
66 2001-08-27 Marc Autret <autret_m@epita.fr>
68 * src/vcg.c: Include `xalloc.h'.
69 (add_colorentry): New.
72 * src/vcg.h: Add new prototypes.
74 2001-08-27 Akim Demaille <akim@epita.fr>
76 * Makefile.maint: Sync. again with CVS Autoconf.
78 2001-08-27 Akim Demaille <akim@epita.fr>
80 * Makefile.maint: Formatting changes.
81 (po-update, cvs-update, update): New targets.
84 2001-08-27 Akim Demaille <akim@epita.fr>
86 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
87 * Makefile.maint: Sync. with CVS Autoconf.
89 2001-08-27 Marc Autret <autret_m@epita.fr>
91 * src/vcg.h (struct infoname_s): New.
92 (struct colorentry_s): New.
93 (graph_s): New fields {vertical,horizontal}_order in structure.
95 Add `colorentry' field;
96 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
97 (G_HORIZONTAL_ORDER): New.
100 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
101 Add output of `infoname'.
102 Add output of `colorentry'.
104 2001-08-27 Marc Autret <autret_m@epita.fr>
106 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
107 This one shadowed a global parameter.
109 2001-08-24 Marc Autret <autret_m@epita.fr>
111 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
112 instead of `unsigned'.
113 (print_state): Do not call obstack_object_size () in obstack_grow ()
114 to avoid macro variables shadowing.
116 2001-08-23 Marc Autret <autret_m@epita.fr>
118 * src/lex.c (percent_table): Typo: s/naem/name/.
120 Normalize new options declarations.
122 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
124 * tests/suite.at: Exercise %header_extension and %source_extension.
126 2001-08-16 Marc Autret <autret_m@epita.fr>
128 * src/reader.c (parse_dquoted_param): New.
129 (parse_header_extension_decl): Use it.
130 (parse_source_extension_decl): Likewise.
132 2001-08-16 Marc Autret <autret_m@epita.fr>
134 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
135 (get_xxxx_str): Use assert () instead of complain ().
136 Remove return invokations in default cases.
137 (get_decision_str): Modify default behaviour. Remove second argument.
138 Echo modifications on calls.
141 2001-08-16 Marc Autret <autret_m@epita.fr>
143 * src/getargs.c (usage): Update with ``-g, --graph''.
145 2001-08-16 Marc Autret <autret_m@epita.fr>
147 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
148 (Option Cross Key): Likewise.
149 * doc/bison.1: Update.
151 2001-08-15 Akim Demaille <akim@epita.fr>
155 2001-08-15 Marc Autret <autret_m@epita.fr>
157 * src/reader.c (readgram): Indent output macro YYSTYPE.
158 (packsymbols): Likewise.
159 (output_token_defines): Likewise.
160 * src/files.c: Standardize.
161 (compute_header_macro): New.
162 (defines_obstack_save): New. Use compute_header_macro.
163 (output_files): Update. Use defines_obstack_save.
165 2001-08-15 Akim Demaille <akim@epita.fr>
167 * doc/bison.texinfo (Table of Symbols): Document
170 2001-08-15 Akim Demaille <akim@epita.fr>
172 * missing: Update from CVS Automake.
173 * config/config.guess, config/config.sub, config/texinfo.tex:
176 2001-08-15 Akim Demaille <akim@epita.fr>
178 * Makefile.maint: Sync with CVS Autoconf.
180 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
182 * doc/bison.texinfo: Include GNU Free Documentation License from
184 * doc/fdl.texi: Add to package.
186 2001-08-14 Marc Autret <autret_m@epita.fr>
188 Turn on %{source,header}_extension features.
190 * src/lex.c (percent_table): Un-CPP out header_extension and
192 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
193 (compute_exts_from_src): Remove conditions. It restores priorities
196 2001-08-14 Marc Autret <autret_m@epita.fr>
198 * src/files.c (compute_base_names): Add extensions computing when
199 `--file-prefix' used.
200 Standardize function calls.
202 2001-08-13 Marc Autret <autret_m@epita.fr>
204 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
205 defining it (defined but null disables alloca).
207 2001-08-13 Marc Autret <autret_m@epita.fr>
209 * src/bison.simple (_yy_memcpy): CPP reformat.
211 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
213 * tests/atconfig.in (CPPFLAGS): Fix.
215 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
217 * doc/bison.texinfo: Include GNU General Public License from
219 * doc/gpl.texi: Add to package.
221 2001-08-10 Marc Autret <autret_m@epita.fr>
223 * src/print_graph.h: Fix.
224 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
226 2001-08-10 Akim Demaille <akim@epita.fr>
228 * src/system.h: Provide default declarations for stpcpy, strndup,
231 2001-08-10 Robert Anisko <anisko_r@epita.fr>
233 * doc/bison.texinfo (Locations): Update @$ stuff.
235 2001-08-09 Robert Anisko <anisko_r@epita.fr>
237 * src/bison.simple (YYLLOC_DEFAULT): Update.
240 2001-08-08 Marc Autret <autret_m@epita.fr>
242 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
243 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
244 Reported by Fabrice Bauzac.
246 2001-08-08 Marc Autret <autret_m@epita.fr>
248 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
249 * src/vcg.c (output_node): Fix.
250 * src/vcg.h: Cleanup.
251 * src/print_graph.c: Add comments.
252 (node_output_size): New global variable. Simplify the formatting of
253 the VCG graph output.
254 (print_actions): Unused code is now used. It notifies the final state
255 and no action states in the VCG graph. It also give the reduce actions.
256 The `shift and goto' edges are red and the `go to state' edges are
258 Get the current node name and node_obstack by argument.
259 (node_obstack): New variable.
260 (print_state): Manage node_obstack.
261 (print_core): Use node_obstack given by argument.
262 A node is not only computed here but in print_actions also.
263 (print_graph): CPP out useless code instead of commenting it.
265 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
267 * tests/atconfig.in (CPPFLAGS): Fix.
269 2001-08-07 Akim Demaille <akim@epita.fr>
271 * src/print_graph.c (quote): New.
272 (print_core): Use it.
274 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
276 * src/vcg.c (complain.h): Include it.
277 Unepitaize `return' invocations.
278 [NDEBUG] (main): Remove.
279 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
280 * src/files.c (open_files): Initialize graph_obstack.
281 * src/print_graph.c (print_actions): CPP out useless code.
282 (print_core): Don't output the last `\n' in labels.
284 * src/files.c (output_files): Output the VCG file.
285 * src/main.c (main): Invoke print_graph ();
287 2001-08-06 Marc Autret <autret_m@epita.fr>
289 Automaton VCG graph output.
290 Using option ``-g'' or long option ``--graph'', you can generate
291 a gram_filename.vcg file containing a VCG description of the LALR (1)
292 automaton of your grammar.
294 * src/main.c: Call to print_graph() function.
295 * src/getargs.h: Update.
296 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
297 (graph_flag): New flag.
299 (getargs): Add case `g'.
300 * src/files.c (graph_obstack): New obstack struct.
301 (open_files): Initialize new obstack.
302 (output_files): Saves graph_obstack if required.
303 * src/files.h (graph_obstack): New extern declaration.
304 * src/Makefile.am: Add new source files.
306 2001-08-06 Marc Autret <autret_m@epita.fr>
308 * src/print_graph.c, src/print_graph.h (graph): New.
309 * src/vcg.h: New file.
310 * src/vcg.c: New file, VCG graph handling.
312 2001-08-06 Marc Autret <autret_m@epita.fr>
314 Add of %source_extension and %header_extension which specify
315 the source or/and the header output file extension.
317 * src/files.c (compute_base_names): Remove initialisation of
318 src_extension and header_extension.
319 (compute_exts_from_gf): Update.
320 (compute_exts_from_src): Update.
321 (output_files): Update.
322 * src/reader.c (parse_header_extension_decl): New.
323 (parse_source_extension_decl): New.
324 (read_declarations): New case statements for the new tokens.
325 * src/lex.c (percent_table): Add entries for %source_extension
326 and %header_extension.
327 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
329 2001-08-06 Marc Autret <autret_m@epita.fr>
331 * configure.in: Bump to 1.28c.
332 * doc/bison.texinfo: Texinfo thingies.
334 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
336 * tests/atconfig.in (CPPFLAGS): Add.
337 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
339 2001-08-03 Akim Demaille <akim@epita.fr>
343 2001-08-03 Akim Demaille <akim@epita.fr>
345 * tests/Makefile.am (check-local): Ship testsuite.
346 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
349 2001-08-03 Akim Demaille <akim@epita.fr>
351 * configure.in: Try using -Wformat when compiling.
353 2001-08-03 Akim Demaille <akim@epita.fr>
355 * configure.in: Bump to 1.28b.
357 2001-08-03 Akim Demaille <akim@epita.fr>
359 * src/complain.c: Adjust strerror_r portability issues.
361 2001-08-03 Akim Demaille <akim@epita.fr>
365 2001-08-03 Akim Demaille <akim@epita.fr>
367 * src/getargs.c, src/getarg.h (skeleton)): Constify.
368 * src/lex.c (literalchar): Avoid name clashes on `buf'.
369 * src/getargs.c: Include complain.h.
370 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
371 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
373 2001-08-03 Akim Demaille <akim@epita.fr>
375 * src/reader.c (readgram): Display hidden chars in error messages.
377 2001-08-03 Akim Demaille <akim@epita.fr>
379 Update to gettext 0.10.39.
381 2001-08-03 Akim Demaille <akim@epita.fr>
385 2001-08-01 Marc Autret <autret_m@epita.fr>
387 * doc/bison.texinfo: Update.
388 * doc/bison.1 (mandoc): Update.
389 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
390 * src/files.c: Support output files extensions computing.
391 (src_extension): New static variable.
392 (header_extension): New static variable.
394 (get_extension_index): New function, gets the index of an extension
395 filename in a string.
396 (compute_exts_from_gf): New function, computes extensions from the
397 grammar file extension.
398 (compute_exts_from_src): New functions, computes extensions from the
399 C source file extension, file given by ``-o'' option.
400 (compute_base_names): Update.
401 (output_files): Update.
403 2001-08-01 Robert Anisko <anisko_r@epita.fr>
405 * doc/bison.texi: Document @$.
406 (Locations): New section.
408 2001-07-18 Akim Demaille <akim@epita.fr>
410 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
411 * config/prev-version.txt, config/move-if-change: New.
412 * Makefile.am: Adjust.
414 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
416 * src/bison.simple (yyparse): Suppress warning `comparaison
417 between signed and unsigned'.
419 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
421 * src/getargs.h (raw_flag): Remove.
422 * src/getargs.c: Die on `-r'/`--raw'.
423 * src/lex.c (parse_percent_token): Die on `%raw'.
424 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
425 * tests/calc.at: Suppress test with option `--raw'.
427 2001-07-14 Akim Demaille <akim@epita.fr>
430 * configure.in: Require Autoconf 2.50.
431 Update to gettext 0.10.38.
433 2001-03-16 Akim Demaille <akim@epita.fr>
435 * doc/bison.texinfo: ANSIfy the examples.
437 2001-03-16 Akim Demaille <akim@epita.fr>
439 * getargs.c (skeleton): New variable.
440 (longopts): --skeleton is a new option.
441 (shortopts, getargs): -S is a new option.
442 * getargs.h: Declare skeleton.
443 * output.c (output_parser): Use it.
445 2001-03-16 Akim Demaille <akim@epita.fr>
447 * m4/strerror_r.m4: New.
448 * m4/error.m4: Run AC_FUNC_STRERROR_R.
449 * lib/error.h, lib/error.c: Update.
451 2001-03-16 Akim Demaille <akim@epita.fr>
453 * src/getargs.c (longopts): Clean up.
455 2001-02-21 Akim Demaille <akim@epita.fr>
457 * src/reader.c (gensym): `gensym_count' is your own.
458 Use a static buf to create the symbol name, as token_buffer is no
461 2001-02-08 Akim Demaille <akim@epita.fr>
463 * src/conflicts.c (conflict_report): Be sure not to append to res
464 between two calls, which could happen if both first sprintf were
465 skipped, but not the first cp += strlen.
467 2001-02-08 Akim Demaille <akim@epita.fr>
469 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
470 New, from fileutils 4.0.37.
471 * configure.in: Require Autoconf 2.49c. I took some time before
472 making this decision. This is the only way out for portability
473 issues in Bison, it would mean way too much duplicate effort to
474 import in Bison features implemented in 2.49c since 2.13.
475 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
477 2001-02-02 Akim Demaille <akim@epita.fr>
479 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
480 * lib/xalloc.h, lib/xmalloc.c: Update.
482 2001-01-19 Akim Demaille <akim@epita.fr>
484 Get rid of the ad hoc handling of token_buffer in the scanner: use
487 * src/lex.c (token_obstack): New.
488 (init_lex): Initialize it. No longer call...
489 (grow_token_buffer): this. Remove it.
490 Adjust all the places which used it to use the obstack.
492 2001-01-19 Akim Demaille <akim@epita.fr>
494 * src/lex.h: Rename all the tokens:
495 s/\bENDFILE\b/tok_eof/g;
496 s/\bIDENTIFIER\b/tok_identifier/g;
498 Let them be enums, not #define, to ease debugging.
501 2001-01-18 Akim Demaille <akim@epita.fr>
503 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
504 * src/lex.c (maxtoken, grow_token_buffer): Static.
506 2001-01-18 Akim Demaille <akim@epita.fr>
508 Since we now use obstacks, more % directives can be enabled.
510 * src/lex.c (percent_table): Also accept `%yacc',
511 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
513 Handle the actions for `%semantic_parser' and `%pure_parser' here,
514 instead of returning a token.
515 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
516 * src/reader.c (read_declarations): Adjust.
517 * src/files.c (open_files): Don't call `compute_base_names', don't
518 compute `attrsfile' since they depend upon data which might be
519 *in* the input file now.
520 (output_files): Do it here.
521 * src/output.c (output_headers): Document the fact that this patch
522 introduces a guaranteed SEGV for semantic parsers.
523 * doc/bison.texinfo: Document them.
524 * tests/suite.at: Exercise these %options.
526 2000-12-20 Akim Demaille <akim@epita.fr>
528 Also handle the output file (--verbose) with obstacks.
530 * files.c (foutput): Remove.
531 (output_obstack): New.
532 Adjust all dependencies.
533 * src/conflicts.c: Return a string.
534 * src/system.h (obstack_grow_string): Rename as...
535 (obstack_sgrow): this. Be ready to work with non literals.
536 (obstack_fgrow4): New.
538 2000-12-20 Akim Demaille <akim@epita.fr>
540 * src/files.c (open_files): Fix the computation of short_base_name
541 in the case of `-o foo.tab.c'.
543 2000-12-20 Akim Demaille <akim@epita.fr>
545 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
546 (copy_dollar): Now that everything uses obstacks, get rid of the
549 2000-12-20 Akim Demaille <akim@epita.fr>
551 * src/files.c (open_files): Actually the `.output' file is based
552 on the short_base_name, not base_name.
553 * tests/suite.at (Checking output file names): Adjust.
555 2000-12-20 Akim Demaille <akim@epita.fr>
557 * src/bison.s1: Remove, we now use directly...
558 * src/bison.simple: this.
559 * src/Makefile.am: Use pkgdata instead of data.
561 2000-12-20 Akim Demaille <akim@epita.fr>
563 * src/files.c (guard_obstack): New.
564 (open_files): Initialize it.
565 (output_files): Dump it...
566 * src/files.h: Export it.
567 * src/reader.c (copy_guard): Use it.
569 2000-12-19 Akim Demaille <akim@epita.fr>
571 * src/files.c (outfile, defsfile, actfile): Removed as global
573 (open_files): Don't compute them.
574 (output_files): Adjust.
575 (base_name, short_base_name): Be global.
578 2000-12-19 Akim Demaille <akim@epita.fr>
580 * src/files.c (strsuffix): New.
581 (stringappend): Be just like strcat but allocate.
582 (base_names): Eve out from open_files.
583 Try to simplify the rather hairy computation of base_name and
585 (open_files): Use it.
586 * tests/suite.at (Checking output file names): New test.
588 2000-12-19 Akim Demaille <akim@epita.fr>
590 * src/system.h (obstack_grow_literal_string): Rename as...
591 (obstack_grow_string): this.
592 * src/output.c (output_parser): Recognize `%% actions' instead of
594 * src/bison.s1: s/$/%% actions/.
595 * src/bison.hairy: Likewise.
597 2000-12-19 Akim Demaille <akim@epita.fr>
599 * src/output.c (output_parser): Compute the `#line' lines when
601 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
602 Suggested by Hans Aberg.
604 2000-12-19 Akim Demaille <akim@epita.fr>
606 Let the handling of the skeleton files be local to the procedures
609 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
611 (fparser, open_extra_files): Remove.
612 (open_files, output_files): Don't take care of fparser.
613 * src/files.h: Adjust.
614 * src/output.c (output_parser): Open and close the file to the
616 * src/reader.c (read_declarations): When %semantic_parser, open
619 2000-12-19 Akim Demaille <akim@epita.fr>
621 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
622 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
624 2000-12-19 Akim Demaille <akim@epita.fr>
626 * src/files.c (open_files): Yipee! We no longer need all the code
627 looking for `/tmp' since we have no tmp file.
629 2000-12-19 Akim Demaille <akim@epita.fr>
631 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
633 * src/files.c (open_files): Less dependency on MSDOS etc.
635 2000-12-14 Akim Demaille <akim@epita.fr>
637 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
638 Provide a default definition.
639 Use it when executing the default @ action.
640 * src/reader.c (reader_output_yylsp): No longer include
641 `timestamp' and `text' in the default YYLTYPE.
643 2000-12-12 Akim Demaille <akim@epita.fr>
645 * src/reader.c (copy_definition, parse_union_decl, copy_action)
646 (copy_guard): Quote the file names.
647 Reported by Laurent Mascherpa.
649 2000-12-12 Akim Demaille <akim@epita.fr>
651 * src/output.c (output_headers, output_program, output): Be sure
652 to escape special characters when outputting filenames.
653 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
654 (output_headers): Don't depend on them, Use ACTSTR.
656 2000-11-17 Akim Demaille <akim@epita.fr>
658 * lib/obstack.h: Formatting changes.
659 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
660 prevents type checking.
661 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
662 cast the value to (void *): assigning a `foo *' to a `void *'
664 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
665 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
668 2000-11-17 Akim Demaille <akim@epita.fr>
670 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
672 (suite.m4, regression.m4, calc.m4): these.
673 * tests/atgeneral.m4: Update from CVS Autoconf.
675 2000-11-17 Akim Demaille <akim@epita.fr>
677 * tests/regression.m4 (%union and --defines): New test,
678 demonstrating a current bug in the obstack implementation.
680 2000-11-17 Akim Demaille <akim@epita.fr>
682 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
684 Use them to declare the variables which are global or local to
687 2000-11-17 Akim Demaille <akim@epita.fr>
689 * acconfig.h: Remove, no longer used.
691 2000-11-07 Akim Demaille <akim@epita.fr>
693 * src: s/Copyright (C)/Copyright/g.
695 2000-11-07 Akim Demaille <akim@epita.fr>
697 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
699 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
701 2000-11-07 Akim Demaille <akim@epita.fr>
703 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
704 Merge in a single CPP if/else.
706 2000-11-07 Akim Demaille <akim@epita.fr>
708 * src/output.c (output): Remove useless variables.
709 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
710 argument `data' for consistency with the prototypes.
712 (obstack_copy, obstack_copy0): Rename the second argument as
713 `address' for consistency. Qualify it `const'.
714 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
715 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
716 `const' their input argument (`data' or `address').
717 Adjust the corresponding macros to include `const' in casts.
719 2000-11-03 Akim Demaille <akim@epita.fr>
721 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
722 s/PFILE1/BISON_HAIRY/.
725 2000-11-03 Akim Demaille <akim@epita.fr>
727 For some reason, this was not applied.
729 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
730 `unlink': it's no longer used.
732 2000-11-03 Akim Demaille <akim@epita.fr>
734 * src/files.c (skeleton_find): New function, eved out of...
735 (open_files, open_extra_files): here.
737 2000-11-03 Akim Demaille <akim@epita.fr>
741 * src/files.c (obstack_save): New function.
743 (output_files): this.
745 * src/main.c (main): Don't use `atexit' to register `done', since
746 it no longer has to remove tmp files, just call `output_files'
747 when there are no errors.
749 2000-11-02 Akim Demaille <akim@epita.fr>
751 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
752 `unlink': it's no longer used.
753 * src/files.h: Formatting changes.
755 2000-11-02 Akim Demaille <akim@epita.fr>
757 Remove the last uses of mktemp and unlink/delete.
759 * src/files.c (fdefines, ftable): Removed.
760 (defines_ostack, table_obstack): New.
761 Adjust dependencies of the former into uses of the latter.
762 * src/output.c (output_short_or_char_table, output_short_table):
763 Convert to using obstacks.
764 * src/reader.c (copy_comment2): Accept one FILE * and two
766 (output_token_defines, reader_output_yylsp): Use obstacks.
767 * src/system.h (obstack_fgrow3): New.
769 2000-11-01 Akim Demaille <akim@epita.fr>
771 Change each use of `fattrs' into a use of `attrs_obstack'.
773 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
774 * src/files.c (fattrs): Remove.
775 (attrs_obstack): New.
776 Adjust all dependencies.
777 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
779 2000-11-01 Akim Demaille <akim@epita.fr>
782 Change each use of `faction' into a use of `action_obstack'.
784 * lib/obstack.h, lib/obstack.c: New files.
785 * src/files.c (faction): Remove.
786 (action_obstack): New.
787 Adjust all dependencies.
789 2000-10-20 Akim Demaille <akim@epita.fr>
791 * lib/quote.h (PARAMS): New macro. Use it.
793 2000-10-16 Akim Demaille <akim@epita.fr>
795 * src/output.c (output_short_or_char_table): New function.
796 (output_short_table, output_token_translations): Use it.
797 (goto_actions): Use output_short_table.
799 2000-10-16 Akim Demaille <akim@epita.fr>
801 * src/symtab.c (bucket_new): New function.
804 * src/output.c (output_short_table): New argument to display the
805 comment associated with the table.
807 (output_gram): Use it.
808 (output_rule_data): Nicer output layout for YYTNAME.
810 2000-10-16 Akim Demaille <akim@epita.fr>
812 * src/lex.c (read_typename): New function.
814 * src/reader.c (copy_dollar): Likewise.
816 2000-10-16 Akim Demaille <akim@epita.fr>
818 * src/reader.c (copy_comment2): Expect the input stream to be on
819 the `/' which is suspected to open a comment, instead of being
820 called after `//' or `/*' was read.
821 (copy_comment, copy_definition, parse_union_decl, copy_action)
822 (copy_guard): Adjust.
824 2000-10-16 Akim Demaille <akim@epita.fr>
826 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
827 `read_signed_integer'.
829 2000-10-16 Akim Demaille <akim@epita.fr>
831 * src/reader.c (copy_dollar): New function.
832 (copy_guard, copy_action): Use it.
834 2000-10-16 Akim Demaille <akim@epita.fr>
836 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
837 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
838 New files, from Fileutils 4.0.27.
839 * src/main.c (printable_version): Remove.
840 * src/lex.c, src/reader.c: Use `quote'.
842 2000-10-04 Akim Demaille <akim@epita.fr>
844 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
846 2000-10-04 Akim Demaille <akim@epita.fr>
848 * doc/bison.texinfo: Various typos spotted by Neil Booth.
850 2000-10-04 Akim Demaille <akim@epita.fr>
852 When a literal string is used to define two different tokens,
853 `bison -v' segfaults.
854 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
856 * tests/regression.m4: New file.
857 Include the core of the sample provided by Piotr Gackiewicz.
858 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
861 2000-10-04 Akim Demaille <akim@epita.fr>
863 * src/reader.c (parse_expect_decl): Keep `count' within the size
867 2000-10-02 Paul Eggert <eggert@twinsun.com>
869 * bison.s1 (yyparse): Assign the default value
870 unconditionally, to avoid a GCC warning and make the parser a
873 2000-10-02 Akim Demaille <akim@epita.fr>
875 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
878 2000-10-02 Akim Demaille <akim@epita.fr>
880 * src/derives.c, src/print.c, src/reduce.c: To ease the
881 translation, move some `\n' out of the translated strings.
883 2000-10-02 Akim Demaille <akim@epita.fr>
885 The location tracking mechanism is precious for parse error
886 messages. Nevertheless, it is enabled only when `@n' is used in
887 the grammar, which is a different issue (you can use it in error
888 message, but not in the grammar per se). Therefore, there should
889 be another means to enable it.
891 * src/getargs.c (getargs): Support `--locations'.
893 * src/getargs.h (locationsflag): Export it.
894 * src/lex.c (percent_table): Support `%locations'.
895 * src/reader.c (yylsp_needed): Remove this variable, now replaced
896 with `locationsflag'.
897 * doc/bison.texinfo: Document `--locations' and `%locations'.
899 * tests/calc.m4: Test it.
901 For regularity of the names, replace each
902 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
903 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
904 In addition replace each `flag' with `_flag'.
906 2000-10-02 Akim Demaille <akim@epita.fr>
908 Also test parse error messages, including with YYERROR_VERBOSE.
910 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
912 Use it to check the computations.
913 Use it to check `nonassoc' is honored.
914 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
916 (_AT_CHECK_CALC): Adjust to this option.
917 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
919 2000-10-02 Akim Demaille <akim@epita.fr>
921 Test also `--verbose', `--defines' and `--name-prefix'. Testing
922 the latter demonstrates a flaw in the handling of non debugging
923 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
924 was used in order to simplify:
940 unfortunately this leads to a CPP conflict when
941 `--name-prefix=foo' is used since it produces `#define yydebug
944 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
945 (YYDPRINTF): New macro.
947 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
949 Also test `--verbose', `--defines' and `--name-prefix'.
951 2000-10-02 Akim Demaille <akim@epita.fr>
953 Improve the readability of the produced parsers.
955 * src/bison.s1: Formatting changes.
956 Improve the comment related to the `$' mark.
957 (yydefault): Don't fall through to `yyresume': `goto' there.
958 * src/output.c (output_parser): When the `$' is met, skip the end
960 New variable, `number_of_dollar_signs', to check there's exactly
961 one `$' in the parser skeleton.
963 2000-10-02 Akim Demaille <akim@epita.fr>
965 * lib/xstrdup.c: New file, from the fileutils.
966 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
967 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
968 instead of strlen + xmalloc + strcpy.
969 * src/symtab.c (copys): Remove, use xstrdup instead.
971 2000-10-02 Akim Demaille <akim@epita.fr>
973 * src/gram.h (associativity): New enum type which replaces the
974 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
975 `right_assoc', `left_assoc' and `non_assoc'.
976 Adjust all dependencies.
977 * src/reader.c: Formatting changes.
978 (LTYPESTR): Don't define it, use it as a literal in
979 `reader_output_yylsp'.
980 * src/symtab.h (symbol_class): New enum type which replaces the
981 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
982 `sunknown', `stoken and `snterm'.
984 2000-10-02 Akim Demaille <akim@epita.fr>
986 * src/getargs.c (fixed_outfiles): Rename as...
987 (yaccflag): for consistency and accuracy.
990 2000-10-02 Akim Demaille <akim@epita.fr>
992 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
993 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
994 difficult and introduced a lot of core dump. It turns out that
995 Bison used an implementation of `xmalloc' based on `calloc', and
996 at various places it does depend upon the initialization to 0. I
997 have not tried to isolate the pertinent places, and all the former
998 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
999 someone should address this issue.
1001 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1002 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1004 Adjust dependencies.
1005 * src/warshall.h: New file.
1008 2000-10-02 Akim Demaille <akim@epita.fr>
1010 Various anti-`extern in *.c' changes.
1012 * src/system.h: Include `assert.h'.
1014 2000-10-02 Akim Demaille <akim@epita.fr>
1016 * src/state.h (nstates, final_state, first_state, first_shift)
1017 (first_reduction): Move their exportation from here...
1018 * src/LR0.h: to here.
1019 Adjust dependencies.
1020 * src/getargs.c (statisticsflag): New variable.
1021 Add support for `--statistics'.
1022 Adjust dependencies.
1024 Remove a lot of now useless `extern' statements in most files.
1026 2000-10-02 Akim Demaille <akim@epita.fr>
1028 * src/LR0.h: New file.
1031 2000-10-02 Akim Demaille <akim@epita.fr>
1033 * src/print.h: New file.
1035 * src/print.c: Formatting and ordering changes.
1036 (verbose, terse): Replace with...
1037 (print_results): this new function.
1038 Adjust dependencies.
1040 2000-10-02 Akim Demaille <akim@epita.fr>
1042 * src/conflicts.c (conflict_report): New function.
1043 (conflict_log, verbose_conflict_log): Replace with...
1044 (print_conflicts): this function.
1045 Adjust dependencies.
1046 * src/conflicts.h: New file.
1047 Propagate its inclusion.
1049 2000-10-02 Akim Demaille <akim@epita.fr>
1051 * src/nullable.h: New file.
1052 Propagate its inclusion.
1053 * src/nullable.c: Formatting changes.
1055 2000-10-02 Akim Demaille <akim@epita.fr>
1057 * src/reduce.h: New file.
1058 Propagate its inclusion.
1059 * src/reduce.c: Topological sort and other formatting changes.
1060 (bool, TRUE, FALSE): Move their definition to...
1061 * src/system.h: here.
1063 2000-10-02 Akim Demaille <akim@epita.fr>
1065 * src/files.c: Formatting changes.
1066 (tryopen, tryclose, openfiles): Rename as...
1067 (xfopen, xfclose, open_files): this.
1068 (stringappend): static.
1069 * src/files.h: Complete the list of exported symbols.
1072 2000-10-02 Akim Demaille <akim@epita.fr>
1074 * src/reader.h: New file.
1075 Propagate its use instead of tedious list of `extern' and
1077 * src/reader.c: Formatting changes, topological sort,
1080 2000-10-02 Akim Demaille <akim@epita.fr>
1082 * src/lex.h: Prototype `lex.c' exported functions.
1083 * src/reader.c: Adjust.
1084 * src/lex.c: Formatting changes.
1085 (safegetc): Rename as...
1088 2000-10-02 Akim Demaille <akim@epita.fr>
1090 * src/lalr.h: New file.
1091 Propagate its inclusion instead of prototypes and `extern'.
1092 * src/lalr.c: Formatting changes, topological sorting etc.
1094 2000-10-02 Akim Demaille <akim@epita.fr>
1096 * src/output.c (token_actions): Introduce a temporary array,
1097 YYDEFACT, that makes it possible for this function to use
1100 2000-10-02 Akim Demaille <akim@epita.fr>
1102 `user_toknums' is output as a `short[]' in `output.c', while it is
1103 defined as a `int[]' in `reader.c'. For consistency with the
1104 other output tables, `user_toknums' is now defined as a table of
1107 * src/reader.c (user_toknums): Be a short table instead of an int
1109 Adjust dependencies.
1111 Factor the short table outputs.
1113 * src/output.c (output_short_table): New function.
1114 * src/output.c (output_gram, output_stos, output_rule_data)
1115 (output_base, output_table, output_check): Use it.
1117 2000-10-02 Akim Demaille <akim@epita.fr>
1119 * src/output.c (output): Topological sort of the functions, in
1120 order to get rid of the `static' prototypes.
1121 No longer use `register'.
1122 * src/output.h: New file.
1123 Propagate its inclusion in files explicitly prototyping functions
1126 2000-09-21 Akim Demaille <akim@epita.fr>
1128 * src/atgeneral.m4: Update from Autoconf.
1130 2000-09-21 Akim Demaille <akim@epita.fr>
1132 * src/closure.h: New file.
1133 * src/closure.c: Formatting changes, topological sort over the
1134 functions, use of closure.h.
1135 (initialize_closure, finalize_closure): Rename as...
1136 (new_closure, free_closure): these. Adjust dependencies.
1137 * src/LR0.c: Formatting changes, topological sort, use of
1139 (initialize_states): Rename as...
1141 * src/Makefile.am (noinst_HEADERS): Adjust.
1143 2000-09-20 Akim Demaille <akim@epita.fr>
1145 * src/acconfig.h: Don't protect config.h against multiple
1147 Don't define PARAMS.
1148 * src/system.h: Define PARAMS.
1149 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1150 purpose of config.h. system.h must not try to fix wrong
1151 definitions in config.h.
1153 2000-09-20 Akim Demaille <akim@epita.fr>
1155 * src/derives.h: New file.
1156 * src/main.c, src/derives.h: Use it.
1158 * src/Makefile.am (noinst_HEADERS): Adjust.
1160 2000-09-20 Akim Demaille <akim@epita.fr>
1162 * tests/atgeneral.m4: Update from Autoconf.
1163 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1164 (AT_CHECK_CALC): New macros.
1165 Use these macros to test bison with options `', `--raw',
1166 `--debug', `--yacc', `--yacc --debug'.
1168 2000-09-19 Akim Demaille <akim@epita.fr>
1170 * src/output.c: Formatting changes.
1171 * src/machine.h: Remove, leaving its contents in...
1172 * src/system.h: here.
1174 Adjust all dependencies on stdio.h and machine.h.
1175 * src/getargs.h: New file.
1176 Let all `extern' declarations about getargs.c be replaced with
1177 inclusion of `getargs.h'.
1178 * src/Makefile.am (noinst_HEADERS): Adjust.
1180 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1182 (yyerror): Returns void, not int.
1183 * doc/bison.texinfo: Formatting changes.
1185 2000-09-19 Akim Demaille <akim@epita.fr>
1187 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1190 2000-09-18 Akim Demaille <akim@epita.fr>
1192 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1193 * src/Makefile.am (INCLUDES): Don't.
1194 Be ready to fetch headers in lib/.
1196 2000-09-18 Akim Demaille <akim@epita.fr>
1198 * doc/bison.texinfo: Update the copyright.
1199 ANSIfy and GNUify the examples.
1200 Remove the old menu.
1202 2000-09-18 Akim Demaille <akim@epita.fr>
1204 First set of tests: use the `calc' example from the documentation.
1206 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1207 is defined only when YYDEBUG is.
1208 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1209 * src/files.c (tryopen, tryclose): Formatting changes.
1210 Move to the top and be static.
1211 * src/reader.c (read_signed_integer): Likewise.
1212 * tests/calc.m4: New file.
1213 * Makefile.am, suite.m4: Adjust.
1214 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1216 2000-09-18 Akim Demaille <akim@epita.fr>
1218 Add support for an Autotest test suite for Bison.
1220 * m4/m4.m4, m4/atconfig.m4: New files.
1221 * m4/Makefile.am (EXTRA_DIST): Adjust.
1222 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1224 * src/getargs.c: Display a more standard --version message.
1225 * src/reader.c (reader): Formatting changes.
1226 No longer depend upon VERSION_STRING.
1227 * configure.in: No longer use `dnl'.
1228 Set up the test suite and the new directory `tests/.
1229 (VERSION_STRING): Remove.
1231 2000-04-14 Akim Demaille <akim@epita.fr>
1233 * src/reader.c (copy_comment2): New function, same as former
1234 `copy_comment', but outputs into two FILE *.
1235 (copy_comment): Use it.
1236 (parse_union_decl): Use it.
1237 (get_type, parse_start_decl): Use the same `invalid' message.
1238 (parse_start_decl, parse_union_decl): Use the same `multiple'
1240 (parse_union_decl, copy_guard, copy_action): Use the same
1241 `unmatched' message.
1242 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1244 2000-03-31 Akim Demaille <akim@epita.fr>
1246 * src/files.c (tryopen, tryclose): Move to the top.
1249 2000-03-31 Akim Demaille <akim@epita.fr>
1251 * src/main.c (main): Don't call `done', exit does it.
1253 2000-03-31 Akim Demaille <akim@epita.fr>
1255 * allocate.c: s/return (foo)/return foo/.
1258 * output.c: Likewise.
1259 * reader.c: Likewise.
1260 * symtab.c: Likewise.
1261 * vmsgetargs.c: Likewise.
1263 2000-03-31 Akim Demaille <akim@epita.fr>
1265 Clean up the error reporting functions.
1267 * src/report.c: New file.
1268 * src/report.h: Likewise.
1269 * src/Makefile.am: Adjust.
1270 * m4/error.m4: New file.
1271 * m4/Makefile.am: Adjust.
1272 * configure.in (jm_PREREQ_ERROR): Call it.
1273 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1275 (fatal, fatals): Remove. All callers use complain.c::fatal.
1276 (warn, warni, warns, warnss, warnss): Remove. All callers use
1277 complain.c::complain.
1278 (toomany): Remove, use fatal instead.
1279 * src/files.c (done): No argument, use complain_message_count.
1280 * src/main.c (main): Register `done' to `atexit'.
1282 * src/getargs.c (usage): More `fputs', less `fprintf'.
1284 2000-03-28 Akim Demaille <akim@epita.fr>
1286 * lib/: New directory.
1287 * Makefile.am (SUBDIRS): Adjust.
1288 * configure.in: Adjust.
1289 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1291 * src/alloca.c: Moved to lib/.
1292 * src/getopt.c: Likewise.
1293 * src/getopt1.c: Likewise.
1294 * src/getopt.h: Likewise.
1295 * src/ansi2knr.c: Likewise.
1296 * src/ansi2knr.1: Likewise.
1297 * src/Makefile.am: Adjust.
1298 * lib/Makefile.am: New file.
1300 2000-03-28 Akim Demaille <akim@epita.fr>
1302 * src/getargs.c (usage): Refresh the help message.
1304 2000-03-17 Akim Demaille <akim@epita.fr>
1306 * src/getopt1.c: Updated from textutils 2.0e
1307 * src/getopt.c: Likewise.
1308 * src/getopt.h: Likewise.
1310 2000-03-17 Akim Demaille <akim@epita.fr>
1312 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1313 the file name, not the whole `#line LINE FILE'.
1315 2000-03-17 Akim Demaille <akim@epita.fr>
1317 On syntax errors, report the token on which we choked.
1319 * src/bison.s1 (yyparse): In the label yyerrlab, when
1320 YYERROR_VERBOSE, add yychar in msg.
1322 2000-03-17 Akim Demaille <akim@epita.fr>
1324 * src/reader.c (copy_at): New function.
1325 (copy_guard): Use it.
1326 (copy_action): Use it.
1328 2000-03-17 Akim Demaille <akim@epita.fr>
1330 Be kind to translators, save some useless translations.
1332 * src/main.c (banner): New function.
1333 (fatal_banner): Use it.
1334 (warn_banner): Use it.
1336 2000-03-17 Akim Demaille <akim@epita.fr>
1338 * src/reader.c (copy_definition): Use copy_string and
1339 copy_comment. Removed now unused `match', `ended',
1341 (copy_comment, copy_string): Moved, to be visible from
1344 2000-03-17 Akim Demaille <akim@epita.fr>
1346 * src/reader.c (copy_string): Declare `static inline'. No
1347 problems with inline, since it is checked by configure.
1348 (copy_comment): Likewise.
1350 2000-03-17 Akim Demaille <akim@epita.fr>
1352 * src/reader.c (packsymbols): Formatting changes.
1354 2000-03-17 Akim Demaille <akim@epita.fr>
1356 * src/reader.c (copy_comment): New function, factored out from:
1357 (copy_action): Use it. Removed now unused `match', `ended',
1359 (copy_guard): Likewise.
1361 2000-03-17 Akim Demaille <akim@epita.fr>
1363 * src/reader.c (copy_string): New function, factored out from:
1364 (copy_action): Use it.
1365 (copy_guard): Likewise.
1367 2000-03-17 Akim Demaille <akim@epita.fr>
1369 Change the handling of @s so that they behave exactly like $s.
1370 There is now a pseudo variable @$ (readble and writable), location
1371 of the lhs of the rule (by default ranging from the location of
1372 the first symbol of the rhs, to the location of the last symbol,
1373 or, if the rhs is empty, YYLLOC).
1375 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1377 (yyparse): When providing a default semantic action, provide a
1378 default location action.
1379 (after the $): No longer change `*YYLSP', just stack YYLOC the
1380 same way you stack YYVAL.
1381 * src/reader.c (read_declarations): Use warns.
1382 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1383 (copy_action, case '@'): Likewise.
1384 Use a standard error message, to save useless work from
1387 2000-03-17 Akim Demaille <akim@epita.fr>
1389 * src/bison.s1: Formatting and cosmetics changes.
1390 * src/reader.c: Likewise.
1391 Update the Copyright notice.
1393 2000-03-17 Akim Demaille <akim@epita.fr>
1395 * src/bison.s1 (#line): All set to `#line' only, since the
1396 Makefile now handles them.
1398 2000-03-16 Akim Demaille <akim@epita.fr>
1400 * src/output.c (output_rule_data): Output the documentation of
1402 (Copyright notice): Update.
1405 2000-03-16 Akim Demaille <akim@epita.fr>
1407 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1408 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1409 One `#if YYDEBUG' remains, since it uses variables which are
1410 defined only if `YYDEBUG != 0'.
1412 2000-03-16 Akim Demaille <akim@epita.fr>
1414 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1415 and related variables so that the similarities are highlighted.
1417 2000-03-16 Akim Demaille <akim@epita.fr>
1419 * src/bison.s1: Properly indent CPP directives.
1421 2000-03-16 Akim Demaille <akim@epita.fr>
1423 * src/bison.s1: Properly indent the `alloca' CPP section.
1425 2000-03-16 Akim Demaille <akim@epita.fr>
1427 Do not hard code values of directories in `configure.in'.
1428 Update the `configure' tool chain.
1430 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1432 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1433 (AC_OUTPUT): Add m4/Makefile.
1434 Bump to bison 1.28a, 1.29 has never been released.
1435 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1436 handled via src/Makefile.am.
1437 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1438 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1440 * Makefile.am (SUBDIRS): Add m4.
1441 (ACLOCAL_AM_FLAGS): New variable.
1442 (AUTOMAKE_OPTIONS): Add check-news.
1443 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1444 the proper line number and file name.
1445 (DEFS): Propagate the location of bison library files and of the
1447 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1449 * acinclude.m4: Remove, replaced by the directory m4.
1450 * m4/Makefile.am (EXTRA_DIST): New variable.
1451 * m4/gettext.m4: New file, from the fileutils.
1452 * m4/lcmessage.m4: Likewise
1453 * m4/progtest.m4: Likewise.
1454 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1456 2000-03-10 Akim Demaille <akim@epita.fr>
1459 Formatting changes of various comments.
1460 Respect the GNU coding standards at various places.
1461 Don't use `_()' when no translation is needed.
1463 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1466 OS/2 honors TMPDIR environment variable.
1468 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1470 * doc/bison.texinfo: Tweaked spelling and grammar.
1472 Removed reference to price of printed copy.
1473 Mention BISON_SIMPLE and BISON_HAIRY.
1475 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1477 * configure.in, NEWS:
1478 Bison 1.29 released.
1480 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1482 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1483 Added reference card.
1485 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1487 * po/ru.po: Added Russian translation.
1489 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1491 * configure.in: Added Russian translation.
1493 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1495 * configure.in, NEWS, README:
1496 Released version 1.28.
1498 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1501 Squashed redefinition warning on some systems.
1503 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1504 Have configure build version string instead of relying on ANSI string
1507 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1509 * po/POTFILES.in: Got rid of version.c.
1511 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1513 * acconfig.h, configure.in:
1514 Have configure build version string instead of relying on ANSI string
1517 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1520 Dropped mention of `+' for long-named options.
1522 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1524 * src/files.c: Added <unistd.h> for unlink().
1526 * src/Makefile.am, src/system.h:
1529 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1531 * README: Added a FAQ list.
1533 * configure.in, acconfig.h:
1536 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1538 * doc/FAQ, doc/Makefile.am:
1541 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1543 * src/alloc.h, src/symtab.h, src/version.c:
1544 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1546 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1548 * src/.cvsignore, src/Makefile.am:
1549 Reorganized: sources in `src', documentation in `doc'.
1551 * src/lex.c (literalchar):
1552 fixed the code for escaping double quotes (thanks
1555 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1557 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1558 Adjusted paths to reflect directory reorganization.
1560 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1562 * doc/.cvsignore, doc/Makefile.am:
1563 Reorganized: sources in `src', documentation in `doc'.
1565 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1568 Updated AC_INIT file to reflect directory reorganization.
1570 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1571 Reorganized: sources in `src', documentation in `doc'.
1573 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1576 Don't declare calloc() and realloc() if not necessary.
1578 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1580 * configure.in, acconfig.h, acinclude.m4:
1581 Don't declare calloc() and realloc() if not necessary.
1583 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1585 * po/.cvsignore: Added i18n support.
1587 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1589 * acconfig.h, configure.in, Makefile.am:
1592 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1594 * src/bison.s1: Fixed #line numbers.
1596 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1598 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1599 Added PO files from Translation Project.
1601 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1604 Added support for non-ANSI compilers (ansi2knr).
1606 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1608 * configure.in: Bumped version number to 1.27.
1611 Added `bison.simple' to list of files removed by `make distclean'.
1613 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1615 * src/files.c, src/files.h:
1616 Defined locations of parser files in config.h instead of Makefile.
1618 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1620 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1621 Defined locations of parser files in config.h instead of Makefile.
1623 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1626 Removed inappropriate use of $< macro.
1628 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1630 * po/Makefile.in.in, po/POTFILES.in:
1631 Add `po' directory skeleton.
1633 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1635 * README: Document help-bison list.
1637 * configure.in: Add check for mkstemp().
1639 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1641 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1642 Hush a few compiler warnings.
1645 Add tryclose(), which verifies that fclose was successful.
1646 Hush a couple of compiler warnings.
1648 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1650 * Makefile.am, OChangeLog:
1651 ChangeLog is now automatically generated. Include the old version as
1654 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1656 * 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:
1659 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1661 * doc/bison.texinfo: Fix formatting glitch.
1663 * doc/bison.texinfo: Update FSF address.
1665 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1667 * acconfig.h: Update FSF address.
1669 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1672 Don't define PACKAGE here, since config.h defines it.
1674 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1676 * src/reader.c: Update copyright date.
1679 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1680 favor of output directly to stderr (avoids buffer overruns).
1682 * src/reader.c: Some checks for premature EOF.
1684 * 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:
1685 Use prototypes if the compiler understands them.
1687 * src/files.c: Honor TMPDIR on Unix hosts.
1688 Use prototypes if the compiler understands them.
1691 Fix a couple of buffer overrun bugs.
1692 Use prototypes if the compiler understands them.
1694 * src/system.h: Include unistd.h and ctype.h.
1695 Use #ifdef instead of #if for NLS symbols.
1697 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1699 * doc/bison.texinfo:
1700 Delete comment "consider using @set for edition number, etc..." since
1701 we now are doing so.
1703 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1706 Use prototypes if the compiler understands them.
1708 * NEWS: Document 1.26 highlights.
1710 * Makefile.am: Require Automake 1.3 or later.
1713 Use prototypes if the compiler understands them.
1715 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1718 Use VERSION symbol from automake for version number.
1720 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1722 * acconfig.h, configure.in, version.cin:
1723 Use VERSION symbol from automake for version number.
1725 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1728 Distribute original version of simple parser (bison.s1), not built
1729 version (bison.simple).
1731 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1733 * doc/bison.texinfo: Add info dir entry.
1735 * doc/bison.texinfo:
1736 Let automake put version number into documentation.
1738 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1740 * src/bison.cld, src/build.com, src/vmshlp.mar:
1741 Add non-RCS files from /gd/gnu/bison.
1743 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1746 Document the BISON_HAIRY and BISON_SIMPLE variables.
1748 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1750 * src/version.c: Build version.c automatically.
1753 Fix token numbering (used to start at 258, not 257).
1755 * src/system.h: Include config.h.
1757 * src/getargs.c: Update bug report address.
1759 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1760 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1762 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1765 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1767 * configure.in, version.cin:
1768 Build version.c automatically.
1770 * AUTHORS: Add AUTHORS file.
1772 * README: Update bug report address.
1775 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1777 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1780 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1782 * doc/bison.texinfo: Clean up some formatting.
1784 1998-05-05 Richard Stallman <rms@gnu.org>
1786 * doc/bison.texinfo:
1787 Explain better why to make a pure parser.
1789 1998-01-05 Richard Stallman <rms@gnu.org>
1791 * src/files.c (openfiles):
1792 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1793 find a temporary directory, if possible. Do not unlink files while
1796 1997-08-25 Richard Stallman <rms@gnu.org>
1798 * src/reader.c (stack_offset;):
1799 Change some warni to warns.
1801 * src/lex.c (literalchar): Use warns, not warni.
1803 1997-06-28 Richard Stallman <rms@gnu.org>
1805 * src/bison.s1: Add a Bison version comment.
1807 * src/main.c (fatal, warn, berror):
1810 1997-06-28 Richard Stallman <rms@gnu.org>
1812 * Makefile.in (bison_version): New variable.
1813 (dist): Use that variable.
1814 (bison.s1): Substitute the Bison version into bison.simple.
1816 * bison.simple: Add a Bison version comment.
1818 1997-06-18 Richard Stallman <rms@gnu.org>
1820 * src/main.c (fatal, warn, berror):
1821 Make error messages standard.
1822 (toomany): Improve error message text.
1824 * 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:
1825 new.h renamed to alloc.h.
1827 1997-06-18 Richard Stallman <rms@gnu.org>
1829 * Makefile.in: new.h renamed to alloc.h.
1831 1997-05-24 Richard Stallman <rms@gnu.org>
1833 * src/lex.c (literalchar):
1834 Fix the code for escaping \, " and '.
1836 (lex): Avoid trouble when there are many chars
1837 to discard in a char literal with just several chars in it.
1839 1997-05-17 Richard Stallman <rms@gnu.org>
1842 Use malloc, if using alloca is troublesome.
1843 (YYSTACK_USE_ALLOCA): New flag macro.
1844 Define it for some systems and compilers.
1845 (YYSTACK_ALLOC): New macro.
1846 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1847 If it was malloc'd, free it.
1849 1997-05-17 Richard Stallman <rms@gnu.org>
1852 Use malloc, if using alloca is troublesome.
1853 (YYSTACK_USE_ALLOCA): New flag macro.
1854 Define it for some systems and compilers.
1855 (YYSTACK_ALLOC): New macro.
1856 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1857 If it was malloc'd, free it.
1859 1997-04-23 Richard Stallman <rms@gnu.org>
1862 (alloca) [__hpux]: Always define as __builtin_alloca.
1864 1997-04-23 Richard Stallman <rms@gnu.org>
1867 (alloca) [__hpux]: Always define as __builtin_alloca.
1869 1997-04-22 Richard Stallman <rms@gnu.org>
1872 [__hpux]: Include alloca.h (right for HPUX 10)
1873 instead of declaring alloca (right for HPUX 9).
1875 * src/bison.s1 (__yy_memcpy):
1876 Declare arg `count' as unsigned int.
1877 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1879 1997-04-22 Richard Stallman <rms@gnu.org>
1882 [__hpux]: Include alloca.h (right for HPUX 10)
1883 instead of declaring alloca (right for HPUX 9).
1885 * bison.simple (__yy_memcpy):
1886 Declare arg `count' as unsigned int.
1887 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1889 1997-01-03 Richard Stallman <rms@gnu.org>
1891 * src/allocate.c: [__STDC__ or _MSC_VER]:
1892 Declare calloc and realloc to return void *.
1894 1997-01-02 Richard Stallman <rms@gnu.org>
1897 [_MSC_VER]: Include stdlib.h and process.h.
1898 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1900 * src/main.c (main): Return FAILURE as a value.
1901 (printable_version): Declare arg as int, not char.
1903 1997-01-02 Richard Stallman <rms@gnu.org>
1905 * Makefile.in (dist):
1906 Explicitly check for symlinks, and copy them.
1908 1996-12-19 Richard Stallman <rms@gnu.org>
1911 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1913 1996-12-18 Paul Eggert <eggert@gnu.org>
1915 * src/bison.s1 (yyparse):
1916 If __GNUC__ and YYPARSE_PARAM are both defined,
1917 declare yyparse to have a void * argument.
1919 1996-12-18 Paul Eggert <eggert@gnu.org>
1921 * bison.simple (yyparse):
1922 If __GNUC__ and YYPARSE_PARAM are both defined,
1923 declare yyparse to have a void * argument.
1925 1996-12-17 Richard Stallman <rms@gnu.org>
1927 * src/reduce.c (nbits): Add some casts.
1929 1996-08-12 Richard Stallman <rms@gnu.org>
1931 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1933 1996-08-12 Richard Stallman <rms@gnu.org>
1935 * bison.simple: Test _MSDOS as well as _MSDOS_.
1937 1996-07-31 Richard Stallman <rms@gnu.org>
1940 [__sun && __i386]: Include alloca.h.
1942 1996-07-31 Richard Stallman <rms@gnu.org>
1945 [__sun && __i386]: Include alloca.h.
1947 1996-07-30 Richard Stallman <rms@gnu.org>
1949 * src/bison.s1: Comment change.
1951 * src/bison.s1: Test _MSDOS_, not MSDOS.
1953 1996-07-30 Richard Stallman <rms@gnu.org>
1955 * bison.simple: Comment change.
1957 * bison.simple: Test _MSDOS_, not MSDOS.
1959 1996-06-01 Richard Stallman <rms@gnu.org>
1961 * 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:
1962 Insert `_' macro around many string constants.
1965 Insert `_' macro around many string constants.
1967 (main): Call setlocale, bindtextdomain and textdomain.
1969 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1970 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1971 [ENABLE_NLS]: Include libintl.h.
1972 [ENABLE_NLS] (gettext): Define.
1973 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1974 (N_, PACKAGE, LOCALEDIR): New macros.
1976 1996-06-01 Richard Stallman <rms@gnu.org>
1978 * POTFILES.in: New file.
1980 * Makefile.in (allocate.o):
1981 Define target explicitly.
1983 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1984 (LDFLAGS): Set to @LDFLAGS@.
1985 (configure): Run autoconf only if preceding `cd' succeeds.
1986 (bison.s1): Redirect output to temporary file then move the
1987 temporary to the target, rather than redirecting directly to bison.s1.
1988 (clean): Remove config.status and config.log.
1989 (distclean): Don't remove config.status here.
1991 1996-05-12 Richard Stallman <rms@gnu.org>
1994 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1996 1996-05-12 Richard Stallman <rms@gnu.org>
1999 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2001 1996-05-11 Richard Stallman <rms@gnu.org>
2003 * src/bison.s1 (__yy_memcpy):
2004 Really reorder the args, as was supposedly done on Feb 14 1995.
2005 (yyparse): Calls changed accordingly.
2007 1996-05-11 Richard Stallman <rms@gnu.org>
2009 * Makefile.in (dist): Don't use $(srcdir).
2011 * bison.simple (__yy_memcpy):
2012 Really reorder the args, as was supposedly done on Feb 14 1995.
2013 (yyparse): Calls changed accordingly.
2015 1996-01-27 Richard Stallman <rms@gnu.org>
2017 * src/output.c (output_rule_data):
2018 Test YYERROR_VERBOSE in the conditional
2019 around the definition of ttyname.
2021 1995-12-29 Richard Stallman <rms@gnu.org>
2024 Fix line numbers in #line commands.
2026 1995-12-29 Richard Stallman <rms@gnu.org>
2029 Fix line numbers in #line commands.
2031 1995-12-27 Richard Stallman <rms@gnu.org>
2033 * src/bison.s1 (YYPARSE_PARAM_DECL):
2034 In C++, make it always null.
2035 (YYPARSE_PARAM_ARG): New macro.
2036 (yyparse): Use YYPARSE_PARAM_ARG.
2038 1995-12-27 Richard Stallman <rms@gnu.org>
2040 * bison.simple (YYPARSE_PARAM_DECL):
2041 In C++, make it always null.
2042 (YYPARSE_PARAM_ARG): New macro.
2043 (yyparse): Use YYPARSE_PARAM_ARG.
2045 1995-11-29 Richard Stallman <rms@gnu.org>
2047 * doc/bison.texinfo:
2048 Describe literal string tokens, %raw, %no_lines, %token_table.
2050 1995-11-29 Daniel Hagerty <hag@gnu.org>
2052 * doc/bison.texinfo: Fixed update date
2054 1995-10-16 Richard Stallman <rms@gnu.org>
2056 * src/version.c: Version 1.25.
2058 1995-10-16 Richard Stallman <rms@gnu.org>
2060 * NEWS: *** empty log message ***
2062 1995-10-16 Richard Stallman <rms@gnu.org>
2064 * doc/bison.1, doc/bison.rnh:
2067 1995-10-15 Richard Stallman <rms@gnu.org>
2069 * src/vmsgetargs.c, src/getargs.c:
2070 Added -n, -k, and -raw switches.
2071 (noparserflag, toknumflag, rawtoknumflag): New variables.
2073 * src/symtab.h (SALIAS):
2074 New #define for adding aliases to %token.
2075 (struct bucket): Added `alias' field.
2077 * src/reduce.c (reduce_grammar):
2078 Revise error message.
2079 (print_notices): Remove final `.' from error message.
2081 * src/reader.c (reader_output_yylsp):
2083 (readgram): Use `#if 0' around code that accepted %command
2084 inside grammar rules: The documentation doesn't allow it,
2085 and it will fail since the %command processors scan for the next %.
2086 (parse_token_decl): Extended the %token
2087 declaration to allow a multi-character symbol as an alias.
2088 (parse_thong_decl): New function.
2089 (read_declarations): Added %thong declarations.
2090 (read_declarations): Handle NOOP to deal with allowing
2091 % declarations as another means to specify the flags.
2092 (readgram): Allow %prec prior to semantics embedded in a rule.
2093 (skip_to_char, read_declarations, copy_definition)
2094 (parse_token_decl, parse_start_decl, parse_type_decl)
2095 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2096 (get_type_name, copy_guard, copy_action, readgram)
2097 (get_type, packsymbols): Revised most error messages.
2098 Changed `fatal' to `warnxxx' to avoid aborting for error.
2099 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2100 (read_declarations): Improve the error message for
2101 an invalid character. Do not abort.
2102 (read_declarations, copy_guard, copy_action): Use
2103 printable_version to avoid unprintable characters in printed output.
2104 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2105 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2106 Allow the type of a non-terminal can be given
2107 more than once, as long as all specifications give the same type.
2110 (output_headers, output_trailers, output, output_gram)
2111 (output_rule_data): Implement noparserflag variable.
2112 Implement toknumflag variable.
2113 (output): Call reader_output_yylsp to output LTYPESTR.
2115 * src/main.c (main):
2116 If reader sees an error, don't process the grammar.
2117 (fatals): Updated to not use VARARGS1.
2118 (printable_version, int_to_string, warn, warni, warns, warnss)
2119 (warnsss): New error reporting functions. Avoid abort for error.
2122 Added THONG and NOOP for alias processing.
2123 Added SETOPT for the new code that allows setting options with %flags.
2126 Include getopt.h. Add some extern decls.
2127 (safegetc): New function to deal with EOF gracefully.
2128 (literalchar); new function to deal with reading \ escapes.
2129 (lex): Use literalchar.
2130 (lex): Implemented "..." tokens.
2131 (literalchar, lex, parse_percent_token): Made tokenbuffer
2132 always contain the token. This includes growing the token
2133 buffer while reading an integer.
2134 (parse_percent_token): Replaced if-else statement with percent_table.
2135 (parse_percent_token): Added % declarations as another
2136 way to specify the flags -n, -l, and -r. Also added hooks for
2137 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2138 major changes to files.c.
2139 (lex) Retain in the incoming stream a character following
2141 (skip_white_space, lex): Revised most error messages
2142 and changed fatal to warn to avoid aborting.
2143 (percent_table): Added %thong declarations.
2145 * src/gram.h: Comment changes.
2147 * src/files.c (openfiles, open_extra_files, done):
2149 and actfile file. Handle noparserflag. Both for -n switch.
2151 * src/conflicts.c (resolve_sr_conflict):
2152 Remove use of alloca.
2154 1995-06-01 Jim Meyering <meyering@gnu.org>
2156 * doc/bison.texinfo: *** empty log message ***
2158 1995-05-06 Richard Stallman <rms@gnu.org>
2160 * src/bison.s1: Comment change.
2162 1995-05-06 Richard Stallman <rms@gnu.org>
2164 * bison.simple: Comment change.
2166 1995-05-03 Richard Stallman <rms@gnu.org>
2168 * src/version.c: Version now 1.24.
2170 * src/bison.s1: Change distribution terms.
2172 * src/version.c: Version now 1.23.
2174 1995-05-03 Richard Stallman <rms@gnu.org>
2176 * doc/bison.texinfo:
2177 Rewrite "Conditions for Using Bison".
2178 Update version to 1.24.
2180 1995-05-03 Richard Stallman <rms@gnu.org>
2182 * bison.simple: Change distribution terms.
2184 1995-02-23 Richard Stallman <rms@gnu.org>
2186 * src/files.c: Test __VMS_POSIX as well as VMS.
2188 1995-02-14 Jim Meyering <meyering@gnu.org>
2190 * src/bison.s1 (__yy_memcpy):
2191 Renamed from __yy_bcopy to avoid
2192 confusion. Reverse FROM and TO arguments to be consistent with
2195 1995-02-14 Jim Meyering <meyering@gnu.org>
2197 * bison.simple (__yy_memcpy):
2198 Renamed from __yy_bcopy to avoid
2199 confusion. Reverse FROM and TO arguments to be consistent with
2202 1994-11-10 David J. MacKenzie <djm@gnu.org>
2208 * Makefile.in (DISTFILES): Include NEWS.
2210 * Makefile.in (DISTFILES):
2211 Include install-sh, not install.sh.
2213 * configure.in: Update to Autoconf v2 macro names.
2215 1994-10-05 David J. MacKenzie <djm@gnu.org>
2217 * Makefile.in: fix typo
2219 * Makefile.in (prefix, exec_prefix):
2220 Let configure set them.
2222 1994-09-28 David J. MacKenzie <djm@gnu.org>
2224 * Makefile.in: Set datadir to $(prefix)/share.
2226 1994-09-15 Richard Stallman <rms@gnu.org>
2229 Update copyright notice and GPL version.
2231 1994-09-15 Richard Stallman <rms@gnu.org>
2234 Update copyright notice and GPL version.
2236 1994-07-12 Richard Stallman <rms@gnu.org>
2238 * src/reduce.c, src/reader.c:
2241 1994-05-05 David J. MacKenzie <djm@gnu.org>
2243 * Makefile.in: entered into RCS
2245 1994-03-26 Richard Stallman <rms@gnu.org>
2247 * src/bison.s1: entered into RCS
2249 1994-03-26 Richard Stallman <rms@gnu.org>
2251 * bison.simple: entered into RCS
2253 1994-03-25 Richard Stallman <rms@gnu.org>
2255 * src/main.c: entered into RCS
2257 1994-03-24 Richard Stallman <rms@gnu.org>
2259 * src/conflicts.c: entered into RCS
2261 1994-01-02 Richard Stallman <rms@gnu.org>
2263 * Makefile.in: *** empty log message ***
2265 1993-11-21 Richard Stallman <rms@gnu.org>
2267 * src/bison.s1: *** empty log message ***
2269 1993-11-21 Richard Stallman <rms@gnu.org>
2271 * doc/bison.texinfo: entered into RCS
2273 * doc/bison.texinfo: *** empty log message ***
2275 1993-11-21 Richard Stallman <rms@gnu.org>
2277 * bison.simple: *** empty log message ***
2279 1993-10-25 David J. MacKenzie <djm@gnu.org>
2281 * doc/bison.texinfo: *** empty log message ***
2283 1993-10-19 Richard Stallman <rms@gnu.org>
2285 * src/bison.s1: *** empty log message ***
2287 1993-10-19 Richard Stallman <rms@gnu.org>
2289 * bison.simple: *** empty log message ***
2291 1993-10-14 Richard Stallman <rms@gnu.org>
2293 * src/bison.s1: *** empty log message ***
2295 1993-10-14 Richard Stallman <rms@gnu.org>
2297 * bison.simple: *** empty log message ***
2299 1993-09-14 David J. MacKenzie <djm@gnu.org>
2301 * doc/bison.texinfo: *** empty log message ***
2303 1993-09-13 Noah Friedman <friedman@gnu.org>
2305 * Makefile.in: *** empty log message ***
2307 1993-09-10 Richard Stallman <rms@gnu.org>
2309 * src/conflicts.c: *** empty log message ***
2311 * src/system.h: entered into RCS
2313 1993-09-10 Richard Stallman <rms@gnu.org>
2315 * doc/bison.1: entered into RCS
2317 1993-09-06 Noah Friedman <friedman@gnu.org>
2319 * src/version.c: entered into RCS
2321 1993-09-06 Noah Friedman <friedman@gnu.org>
2323 * Makefile.in: *** empty log message ***
2325 1993-07-30 David J. MacKenzie <djm@gnu.org>
2327 * Makefile.in: *** empty log message ***
2329 1993-07-24 Richard Stallman <rms@gnu.org>
2331 * src/bison.s1: *** empty log message ***
2333 1993-07-24 Richard Stallman <rms@gnu.org>
2335 * bison.simple: *** empty log message ***
2337 1993-07-08 David J. MacKenzie <djm@gnu.org>
2339 * Makefile.in: *** empty log message ***
2341 1993-07-04 Richard Stallman <rms@gnu.org>
2343 * src/bison.s1: *** empty log message ***
2345 1993-07-04 Richard Stallman <rms@gnu.org>
2347 * bison.simple: *** empty log message ***
2349 1993-06-26 David J. MacKenzie <djm@gnu.org>
2351 * src/getargs.c: entered into RCS
2353 1993-06-26 David J. MacKenzie <djm@gnu.org>
2355 * doc/bison.texinfo: *** empty log message ***
2357 * doc/bison.1: New file.
2359 1993-06-25 Richard Stallman <rms@gnu.org>
2361 * src/getargs.c: New file.
2363 1993-06-16 Richard Stallman <rms@gnu.org>
2365 * src/bison.s1: *** empty log message ***
2367 1993-06-16 Richard Stallman <rms@gnu.org>
2369 * bison.simple: *** empty log message ***
2371 1993-06-03 Richard Stallman <rms@gnu.org>
2373 * src/bison.s1: New file.
2375 1993-06-03 Richard Stallman <rms@gnu.org>
2377 * doc/bison.texinfo: *** empty log message ***
2379 1993-06-03 Richard Stallman <rms@gnu.org>
2381 * bison.simple: New file.
2383 1993-05-19 Richard Stallman <rms@gnu.org>
2385 * doc/bison.texinfo: New file.
2387 1993-05-07 Noah Friedman <friedman@gnu.org>
2389 * Makefile.in: *** empty log message ***
2391 1993-04-28 Noah Friedman <friedman@gnu.org>
2393 * src/reader.c: *** empty log message ***
2395 1993-04-23 Noah Friedman <friedman@gnu.org>
2397 * src/alloc.h: entered into RCS
2399 1993-04-20 David J. MacKenzie <djm@gnu.org>
2401 * src/version.c: *** empty log message ***
2403 * src/files.c, src/allocate.c:
2406 * src/reader.c: *** empty log message ***
2408 * src/lex.c: entered into RCS
2410 * src/conflicts.c: New file.
2412 * src/symtab.c: entered into RCS
2414 * src/alloc.h: New file.
2416 * src/LR0.c: entered into RCS
2418 1993-04-18 Noah Friedman <friedman@gnu.org>
2420 * src/reader.c: New file.
2422 * src/version.c: *** empty log message ***
2424 1993-04-18 Noah Friedman <friedman@gnu.org>
2426 * Makefile.in: *** empty log message ***
2428 1993-04-17 Noah Friedman <friedman@gnu.org>
2430 * Makefile.in: *** empty log message ***
2432 1993-04-15 Richard Stallman <rms@gnu.org>
2434 * src/main.c, src/files.c:
2437 1993-04-15 Noah Friedman <friedman@gnu.org>
2439 * configure.in: entered into RCS
2441 * configure.in: *** empty log message ***
2443 * configure.in: New file.
2445 1993-04-14 Richard Stallman <rms@gnu.org>
2447 * Makefile.in: New file.
2449 1993-04-13 Richard Stallman <rms@gnu.org>
2451 * src/version.c: New file.
2453 1993-03-25 Richard Stallman <rms@gnu.org>
2455 * src/output.c: entered into RCS
2457 1992-09-25 Richard Stallman <rms@gnu.org>
2459 * configure.bat: entered into RCS
2461 1992-06-22 Richard Stallman <rms@gnu.org>
2463 * src/vmsgetargs.c: entered into RCS
2465 1992-06-22 Richard Stallman <rms@gnu.org>
2467 * doc/bison.rnh: entered into RCS
2469 1992-04-20 David J. MacKenzie <djm@gnu.org>
2471 * README: entered into RCS
2473 1992-01-22 Richard Stallman <rms@gnu.org>
2475 * src/machine.h: entered into RCS
2477 1991-12-21 Richard Stallman <rms@gnu.org>
2479 * src/lalr.c, src/closure.c:
2482 1991-12-20 Richard Stallman <rms@gnu.org>
2484 * src/state.h: entered into RCS
2486 1991-12-18 Richard Stallman <rms@gnu.org>
2488 * src/print.c, src/nullable.c, src/derives.c:
2491 1991-11-03 David J. MacKenzie <djm@gnu.org>
2493 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2496 1988-09-09 Richard Stallman <rms@gnu.org>
2498 * src/bison.hairy: entered into RCS
2500 1987-12-16 Richard Stallman <rms@gnu.org>
2502 * REFERENCES: entered into RCS