1 2001-09-21 Akim Demaille <akim@epita.fr>
4 * Makefile.maint, config/config.guess, config/config.sub,
5 * config/missing: Update from masters.
7 2001-09-21 Akim Demaille <akim@epita.fr>
9 * tests/Makefile.am (package.m4): Move to...
10 ($(srcdir)/$(TESTSUITE)): here.
12 2001-09-20 Akim Demaille <akim@epita.fr>
14 * src/complain.c: No longer try to be standalone: use system.h.
15 Don't assume __STDC__ is defined to 1. Just test if it is defined.
16 * src/complain.h: Likewise.
17 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
18 Remove the unused variable `n'.
19 From Albert Chin-A-Young.
21 2001-09-18 Marc Autret <autret_m@epita.fr>
23 * doc/bison.1: Update.
24 * doc/bison.texinfo (Bison Options): Update --defines and --graph
26 (Option Cross Key): Update.
29 2001-09-18 Marc Autret <autret_m@epita.fr>
31 * tests/regression.at: New test (comment in %union).
33 2001-09-18 Marc Autret <autret_m@epita.fr>
35 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
37 Reported by Keith Browne.
39 2001-09-18 Marc Autret <autret_m@epita.fr>
41 * tests/output.at: Add tests for --defines and --graph.
43 2001-09-18 Marc Autret <autret_m@epita.fr>
45 * tests/output.at: Removes tests of %{header,src}_extension features.
47 2001-09-18 Akim Demaille <akim@epita.fr>
49 * tests/Makefile.am (package.m4): New.
50 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
51 (_AT_CHECK_CALC_ERROR): Likewise.
52 Factor the `, ' part of verbose error messages.
54 2001-09-18 Marc Autret <autret_m@epita.fr>
56 * src/getargs.c (longopts): Declare --defines and --graph as options
57 with optional arguments.
58 * src/files.h: Add extern declarations.
59 * src/files.c (spec_graph_file, spec_defines_file): New.
60 (output_files): Update.
61 Remove CPP-outed code.
63 2001-09-18 Marc Autret <autret_m@epita.fr>
65 Turn off %{source,header}_extension feature.
67 * src/files.c (compute_exts_from_gf): Update.
68 (compute_exts_from_src): Update.
69 (output_files): CPP-out useless code.
70 * src/files.h: Remove {header,source}_extension extern declarations.
71 * src/reader.c (parse_dquoted_param): CPP-out.
72 (parse_header_extension_decl): Remove.
73 (parse_source_extension_decl): Remove.
74 (read_declarations): Remove cases tok_{hdrext,srcext}.
75 * src/lex.c (percent_table): Remove {header,source}_extension entries.
76 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
78 2001-09-10 Akim Demaille <akim@epita.fr>
80 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
81 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
82 (AT_CHECK_OUTPUT): this.
83 Merely check ls' exit status, its output is useless.
85 2001-09-10 Akim Demaille <akim@epita.fr>
87 * tests/calc.at: Use m4_match.
88 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
90 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
92 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
94 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
96 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
97 * src/lex.h: Adjust prototype.
98 (token_t): Add `tok_undef'.
99 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
100 (parse_percent_token): Now returns token_t.
101 Add default statement in switch.
102 (lex): Separate `c' as an input variable, from the token_t result
104 (unlexed): Is a token_t.
106 2001-09-10 Akim Demaille <akim@epita.fr>
108 * configure.in: Bump to 1.29a.
110 2001-09-07 Akim Demaille <akim@epita.fr>
114 2001-08-30 Akim Demaille <akim@epita.fr>
116 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
117 * m4/atconfig.m4: Remove.
118 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
120 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
121 m4_if, m4_patsubst, and m4_regexp.
122 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
123 `input' file instead of echo.
125 2001-08-29 Akim Demaille <akim@epita.fr>
129 2001-08-29 Akim Demaille <akim@epita.fr>
133 2001-08-29 Paul Eggert <eggert@twinsun.com>
135 * src/bison.simple (yyparse): Don't take the address of an
136 item before the start of an array, as that doesn't conform to
139 2001-08-29 Robert Anisko <anisko_r@epita.fr>
141 * doc/bison.texinfo (Location Tracking Calc): New node.
143 2001-08-29 Paul Eggert <eggert@twinsun.com>
145 * src/output.c (output): Do not define const, as this now
146 causes more problems than it cures.
148 2001-08-29 Akim Demaille <akim@epita.fr>
150 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
152 Be sure to tag the `detailmenu'.
154 2001-08-29 Akim Demaille <akim@epita.fr>
156 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
157 download in a tmp dir.
159 2001-08-28 Marc Autret <autret_m@epita.fr>
161 * config/depcomp: New file.
163 2001-08-28 Marc Autret <autret_m@epita.fr>
165 * doc/bison.1 (mandoc): Adjust.
166 From Juan Manuel Guerrero.
168 2001-08-28 Marc Autret <autret_m@epita.fr>
170 * src/print_graph.c (print_state): Fix.
172 2001-08-27 Marc Autret <autret_m@epita.fr>
174 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
176 Echo modifications to the functions prototypes.
177 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
179 2001-08-27 Marc Autret <autret_m@epita.fr>
181 * src/vcg.c: Include `xalloc.h'.
182 (add_colorentry): New.
183 (add_classname): New.
185 * src/vcg.h: Add new prototypes.
187 2001-08-27 Akim Demaille <akim@epita.fr>
189 * Makefile.maint: Sync. again with CVS Autoconf.
191 2001-08-27 Akim Demaille <akim@epita.fr>
193 * Makefile.maint: Formatting changes.
194 (po-update, cvs-update, update): New targets.
197 2001-08-27 Akim Demaille <akim@epita.fr>
199 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
200 * Makefile.maint: Sync. with CVS Autoconf.
202 2001-08-27 Marc Autret <autret_m@epita.fr>
204 * src/vcg.h (struct infoname_s): New.
205 (struct colorentry_s): New.
206 (graph_s): New fields {vertical,horizontal}_order in structure.
207 Add `infoname' field.
208 Add `colorentry' field;
209 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
210 (G_HORIZONTAL_ORDER): New.
213 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
214 Add output of `infoname'.
215 Add output of `colorentry'.
217 2001-08-27 Marc Autret <autret_m@epita.fr>
219 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
220 This one shadowed a global parameter.
222 2001-08-24 Marc Autret <autret_m@epita.fr>
224 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
225 instead of `unsigned'.
226 (print_state): Do not call obstack_object_size () in obstack_grow ()
227 to avoid macro variables shadowing.
229 2001-08-23 Marc Autret <autret_m@epita.fr>
231 * src/lex.c (percent_table): Typo: s/naem/name/.
233 Normalize new options declarations.
235 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
237 * tests/suite.at: Exercise %header_extension and %source_extension.
239 2001-08-16 Marc Autret <autret_m@epita.fr>
241 * src/reader.c (parse_dquoted_param): New.
242 (parse_header_extension_decl): Use it.
243 (parse_source_extension_decl): Likewise.
245 2001-08-16 Marc Autret <autret_m@epita.fr>
247 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
248 (get_xxxx_str): Use assert () instead of complain ().
249 Remove return invokations in default cases.
250 (get_decision_str): Modify default behaviour. Remove second argument.
251 Echo modifications on calls.
254 2001-08-16 Marc Autret <autret_m@epita.fr>
256 * src/getargs.c (usage): Update with ``-g, --graph''.
258 2001-08-16 Marc Autret <autret_m@epita.fr>
260 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
261 (Option Cross Key): Likewise.
262 * doc/bison.1: Update.
264 2001-08-15 Akim Demaille <akim@epita.fr>
268 2001-08-15 Marc Autret <autret_m@epita.fr>
270 * src/reader.c (readgram): Indent output macro YYSTYPE.
271 (packsymbols): Likewise.
272 (output_token_defines): Likewise.
273 * src/files.c: Standardize.
274 (compute_header_macro): New.
275 (defines_obstack_save): New. Use compute_header_macro.
276 (output_files): Update. Use defines_obstack_save.
278 2001-08-15 Akim Demaille <akim@epita.fr>
280 * doc/bison.texinfo (Table of Symbols): Document
283 2001-08-15 Akim Demaille <akim@epita.fr>
285 * missing: Update from CVS Automake.
286 * config/config.guess, config/config.sub, config/texinfo.tex:
289 2001-08-15 Akim Demaille <akim@epita.fr>
291 * Makefile.maint: Sync with CVS Autoconf.
293 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
295 * doc/bison.texinfo: Include GNU Free Documentation License from
297 * doc/fdl.texi: Add to package.
299 2001-08-14 Marc Autret <autret_m@epita.fr>
301 Turn on %{source,header}_extension features.
303 * src/lex.c (percent_table): Un-CPP out header_extension and
305 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
306 (compute_exts_from_src): Remove conditions. It restores priorities
309 2001-08-14 Marc Autret <autret_m@epita.fr>
311 * src/files.c (compute_base_names): Add extensions computing when
312 `--file-prefix' used.
313 Standardize function calls.
315 2001-08-13 Marc Autret <autret_m@epita.fr>
317 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
318 defining it (defined but null disables alloca).
320 2001-08-13 Marc Autret <autret_m@epita.fr>
322 * src/bison.simple (_yy_memcpy): CPP reformat.
324 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
326 * tests/atconfig.in (CPPFLAGS): Fix.
328 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
330 * doc/bison.texinfo: Include GNU General Public License from
332 * doc/gpl.texi: Add to package.
334 2001-08-10 Marc Autret <autret_m@epita.fr>
336 * src/print_graph.h: Fix.
337 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
339 2001-08-10 Akim Demaille <akim@epita.fr>
341 * src/system.h: Provide default declarations for stpcpy, strndup,
344 2001-08-10 Robert Anisko <anisko_r@epita.fr>
346 * doc/bison.texinfo (Locations): Update @$ stuff.
348 2001-08-09 Robert Anisko <anisko_r@epita.fr>
350 * src/bison.simple (YYLLOC_DEFAULT): Update.
353 2001-08-08 Marc Autret <autret_m@epita.fr>
355 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
356 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
357 Reported by Fabrice Bauzac.
359 2001-08-08 Marc Autret <autret_m@epita.fr>
361 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
362 * src/vcg.c (output_node): Fix.
363 * src/vcg.h: Cleanup.
364 * src/print_graph.c: Add comments.
365 (node_output_size): New global variable. Simplify the formatting of
366 the VCG graph output.
367 (print_actions): Unused code is now used. It notifies the final state
368 and no action states in the VCG graph. It also give the reduce actions.
369 The `shift and goto' edges are red and the `go to state' edges are
371 Get the current node name and node_obstack by argument.
372 (node_obstack): New variable.
373 (print_state): Manage node_obstack.
374 (print_core): Use node_obstack given by argument.
375 A node is not only computed here but in print_actions also.
376 (print_graph): CPP out useless code instead of commenting it.
378 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
380 * tests/atconfig.in (CPPFLAGS): Fix.
382 2001-08-07 Akim Demaille <akim@epita.fr>
384 * src/print_graph.c (quote): New.
385 (print_core): Use it.
387 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
389 * src/vcg.c (complain.h): Include it.
390 Unepitaize `return' invocations.
391 [NDEBUG] (main): Remove.
392 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
393 * src/files.c (open_files): Initialize graph_obstack.
394 * src/print_graph.c (print_actions): CPP out useless code.
395 (print_core): Don't output the last `\n' in labels.
397 * src/files.c (output_files): Output the VCG file.
398 * src/main.c (main): Invoke print_graph ();
400 2001-08-06 Marc Autret <autret_m@epita.fr>
402 Automaton VCG graph output.
403 Using option ``-g'' or long option ``--graph'', you can generate
404 a gram_filename.vcg file containing a VCG description of the LALR (1)
405 automaton of your grammar.
407 * src/main.c: Call to print_graph() function.
408 * src/getargs.h: Update.
409 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
410 (graph_flag): New flag.
412 (getargs): Add case `g'.
413 * src/files.c (graph_obstack): New obstack struct.
414 (open_files): Initialize new obstack.
415 (output_files): Saves graph_obstack if required.
416 * src/files.h (graph_obstack): New extern declaration.
417 * src/Makefile.am: Add new source files.
419 2001-08-06 Marc Autret <autret_m@epita.fr>
421 * src/print_graph.c, src/print_graph.h (graph): New.
422 * src/vcg.h: New file.
423 * src/vcg.c: New file, VCG graph handling.
425 2001-08-06 Marc Autret <autret_m@epita.fr>
427 Add of %source_extension and %header_extension which specify
428 the source or/and the header output file extension.
430 * src/files.c (compute_base_names): Remove initialisation of
431 src_extension and header_extension.
432 (compute_exts_from_gf): Update.
433 (compute_exts_from_src): Update.
434 (output_files): Update.
435 * src/reader.c (parse_header_extension_decl): New.
436 (parse_source_extension_decl): New.
437 (read_declarations): New case statements for the new tokens.
438 * src/lex.c (percent_table): Add entries for %source_extension
439 and %header_extension.
440 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
442 2001-08-06 Marc Autret <autret_m@epita.fr>
444 * configure.in: Bump to 1.28c.
445 * doc/bison.texinfo: Texinfo thingies.
447 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
449 * tests/atconfig.in (CPPFLAGS): Add.
450 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
452 2001-08-03 Akim Demaille <akim@epita.fr>
456 2001-08-03 Akim Demaille <akim@epita.fr>
458 * tests/Makefile.am (check-local): Ship testsuite.
459 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
462 2001-08-03 Akim Demaille <akim@epita.fr>
464 * configure.in: Try using -Wformat when compiling.
466 2001-08-03 Akim Demaille <akim@epita.fr>
468 * configure.in: Bump to 1.28b.
470 2001-08-03 Akim Demaille <akim@epita.fr>
472 * src/complain.c: Adjust strerror_r portability issues.
474 2001-08-03 Akim Demaille <akim@epita.fr>
478 2001-08-03 Akim Demaille <akim@epita.fr>
480 * src/getargs.c, src/getarg.h (skeleton)): Constify.
481 * src/lex.c (literalchar): Avoid name clashes on `buf'.
482 * src/getargs.c: Include complain.h.
483 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
484 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
486 2001-08-03 Akim Demaille <akim@epita.fr>
488 * src/reader.c (readgram): Display hidden chars in error messages.
490 2001-08-03 Akim Demaille <akim@epita.fr>
492 Update to gettext 0.10.39.
494 2001-08-03 Akim Demaille <akim@epita.fr>
498 2001-08-01 Marc Autret <autret_m@epita.fr>
500 * doc/bison.texinfo: Update.
501 * doc/bison.1 (mandoc): Update.
502 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
503 * src/files.c: Support output files extensions computing.
504 (src_extension): New static variable.
505 (header_extension): New static variable.
507 (get_extension_index): New function, gets the index of an extension
508 filename in a string.
509 (compute_exts_from_gf): New function, computes extensions from the
510 grammar file extension.
511 (compute_exts_from_src): New functions, computes extensions from the
512 C source file extension, file given by ``-o'' option.
513 (compute_base_names): Update.
514 (output_files): Update.
516 2001-08-01 Robert Anisko <anisko_r@epita.fr>
518 * doc/bison.texi: Document @$.
519 (Locations): New section.
521 2001-07-18 Akim Demaille <akim@epita.fr>
523 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
524 * config/prev-version.txt, config/move-if-change: New.
525 * Makefile.am: Adjust.
527 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
529 * src/bison.simple (yyparse): Suppress warning `comparaison
530 between signed and unsigned'.
532 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
534 * src/getargs.h (raw_flag): Remove.
535 * src/getargs.c: Die on `-r'/`--raw'.
536 * src/lex.c (parse_percent_token): Die on `%raw'.
537 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
538 * tests/calc.at: Suppress test with option `--raw'.
540 2001-07-14 Akim Demaille <akim@epita.fr>
543 * configure.in: Require Autoconf 2.50.
544 Update to gettext 0.10.38.
546 2001-03-16 Akim Demaille <akim@epita.fr>
548 * doc/bison.texinfo: ANSIfy the examples.
550 2001-03-16 Akim Demaille <akim@epita.fr>
552 * getargs.c (skeleton): New variable.
553 (longopts): --skeleton is a new option.
554 (shortopts, getargs): -S is a new option.
555 * getargs.h: Declare skeleton.
556 * output.c (output_parser): Use it.
558 2001-03-16 Akim Demaille <akim@epita.fr>
560 * m4/strerror_r.m4: New.
561 * m4/error.m4: Run AC_FUNC_STRERROR_R.
562 * lib/error.h, lib/error.c: Update.
564 2001-03-16 Akim Demaille <akim@epita.fr>
566 * src/getargs.c (longopts): Clean up.
568 2001-02-21 Akim Demaille <akim@epita.fr>
570 * src/reader.c (gensym): `gensym_count' is your own.
571 Use a static buf to create the symbol name, as token_buffer is no
574 2001-02-08 Akim Demaille <akim@epita.fr>
576 * src/conflicts.c (conflict_report): Be sure not to append to res
577 between two calls, which could happen if both first sprintf were
578 skipped, but not the first cp += strlen.
580 2001-02-08 Akim Demaille <akim@epita.fr>
582 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
583 New, from fileutils 4.0.37.
584 * configure.in: Require Autoconf 2.49c. I took some time before
585 making this decision. This is the only way out for portability
586 issues in Bison, it would mean way too much duplicate effort to
587 import in Bison features implemented in 2.49c since 2.13.
588 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
590 2001-02-02 Akim Demaille <akim@epita.fr>
592 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
593 * lib/xalloc.h, lib/xmalloc.c: Update.
595 2001-01-19 Akim Demaille <akim@epita.fr>
597 Get rid of the ad hoc handling of token_buffer in the scanner: use
600 * src/lex.c (token_obstack): New.
601 (init_lex): Initialize it. No longer call...
602 (grow_token_buffer): this. Remove it.
603 Adjust all the places which used it to use the obstack.
605 2001-01-19 Akim Demaille <akim@epita.fr>
607 * src/lex.h: Rename all the tokens:
608 s/\bENDFILE\b/tok_eof/g;
609 s/\bIDENTIFIER\b/tok_identifier/g;
611 Let them be enums, not #define, to ease debugging.
614 2001-01-18 Akim Demaille <akim@epita.fr>
616 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
617 * src/lex.c (maxtoken, grow_token_buffer): Static.
619 2001-01-18 Akim Demaille <akim@epita.fr>
621 Since we now use obstacks, more % directives can be enabled.
623 * src/lex.c (percent_table): Also accept `%yacc',
624 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
626 Handle the actions for `%semantic_parser' and `%pure_parser' here,
627 instead of returning a token.
628 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
629 * src/reader.c (read_declarations): Adjust.
630 * src/files.c (open_files): Don't call `compute_base_names', don't
631 compute `attrsfile' since they depend upon data which might be
632 *in* the input file now.
633 (output_files): Do it here.
634 * src/output.c (output_headers): Document the fact that this patch
635 introduces a guaranteed SEGV for semantic parsers.
636 * doc/bison.texinfo: Document them.
637 * tests/suite.at: Exercise these %options.
639 2000-12-20 Akim Demaille <akim@epita.fr>
641 Also handle the output file (--verbose) with obstacks.
643 * files.c (foutput): Remove.
644 (output_obstack): New.
645 Adjust all dependencies.
646 * src/conflicts.c: Return a string.
647 * src/system.h (obstack_grow_string): Rename as...
648 (obstack_sgrow): this. Be ready to work with non literals.
649 (obstack_fgrow4): New.
651 2000-12-20 Akim Demaille <akim@epita.fr>
653 * src/files.c (open_files): Fix the computation of short_base_name
654 in the case of `-o foo.tab.c'.
656 2000-12-20 Akim Demaille <akim@epita.fr>
658 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
659 (copy_dollar): Now that everything uses obstacks, get rid of the
662 2000-12-20 Akim Demaille <akim@epita.fr>
664 * src/files.c (open_files): Actually the `.output' file is based
665 on the short_base_name, not base_name.
666 * tests/suite.at (Checking output file names): Adjust.
668 2000-12-20 Akim Demaille <akim@epita.fr>
670 * src/bison.s1: Remove, we now use directly...
671 * src/bison.simple: this.
672 * src/Makefile.am: Use pkgdata instead of data.
674 2000-12-20 Akim Demaille <akim@epita.fr>
676 * src/files.c (guard_obstack): New.
677 (open_files): Initialize it.
678 (output_files): Dump it...
679 * src/files.h: Export it.
680 * src/reader.c (copy_guard): Use it.
682 2000-12-19 Akim Demaille <akim@epita.fr>
684 * src/files.c (outfile, defsfile, actfile): Removed as global
686 (open_files): Don't compute them.
687 (output_files): Adjust.
688 (base_name, short_base_name): Be global.
691 2000-12-19 Akim Demaille <akim@epita.fr>
693 * src/files.c (strsuffix): New.
694 (stringappend): Be just like strcat but allocate.
695 (base_names): Eve out from open_files.
696 Try to simplify the rather hairy computation of base_name and
698 (open_files): Use it.
699 * tests/suite.at (Checking output file names): New test.
701 2000-12-19 Akim Demaille <akim@epita.fr>
703 * src/system.h (obstack_grow_literal_string): Rename as...
704 (obstack_grow_string): this.
705 * src/output.c (output_parser): Recognize `%% actions' instead of
707 * src/bison.s1: s/$/%% actions/.
708 * src/bison.hairy: Likewise.
710 2000-12-19 Akim Demaille <akim@epita.fr>
712 * src/output.c (output_parser): Compute the `#line' lines when
714 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
715 Suggested by Hans Aberg.
717 2000-12-19 Akim Demaille <akim@epita.fr>
719 Let the handling of the skeleton files be local to the procedures
722 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
724 (fparser, open_extra_files): Remove.
725 (open_files, output_files): Don't take care of fparser.
726 * src/files.h: Adjust.
727 * src/output.c (output_parser): Open and close the file to the
729 * src/reader.c (read_declarations): When %semantic_parser, open
732 2000-12-19 Akim Demaille <akim@epita.fr>
734 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
735 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
737 2000-12-19 Akim Demaille <akim@epita.fr>
739 * src/files.c (open_files): Yipee! We no longer need all the code
740 looking for `/tmp' since we have no tmp file.
742 2000-12-19 Akim Demaille <akim@epita.fr>
744 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
746 * src/files.c (open_files): Less dependency on MSDOS etc.
748 2000-12-14 Akim Demaille <akim@epita.fr>
750 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
751 Provide a default definition.
752 Use it when executing the default @ action.
753 * src/reader.c (reader_output_yylsp): No longer include
754 `timestamp' and `text' in the default YYLTYPE.
756 2000-12-12 Akim Demaille <akim@epita.fr>
758 * src/reader.c (copy_definition, parse_union_decl, copy_action)
759 (copy_guard): Quote the file names.
760 Reported by Laurent Mascherpa.
762 2000-12-12 Akim Demaille <akim@epita.fr>
764 * src/output.c (output_headers, output_program, output): Be sure
765 to escape special characters when outputting filenames.
766 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
767 (output_headers): Don't depend on them, Use ACTSTR.
769 2000-11-17 Akim Demaille <akim@epita.fr>
771 * lib/obstack.h: Formatting changes.
772 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
773 prevents type checking.
774 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
775 cast the value to (void *): assigning a `foo *' to a `void *'
777 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
778 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
781 2000-11-17 Akim Demaille <akim@epita.fr>
783 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
785 (suite.m4, regression.m4, calc.m4): these.
786 * tests/atgeneral.m4: Update from CVS Autoconf.
788 2000-11-17 Akim Demaille <akim@epita.fr>
790 * tests/regression.m4 (%union and --defines): New test,
791 demonstrating a current bug in the obstack implementation.
793 2000-11-17 Akim Demaille <akim@epita.fr>
795 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
797 Use them to declare the variables which are global or local to
800 2000-11-17 Akim Demaille <akim@epita.fr>
802 * acconfig.h: Remove, no longer used.
804 2000-11-07 Akim Demaille <akim@epita.fr>
806 * src: s/Copyright (C)/Copyright/g.
808 2000-11-07 Akim Demaille <akim@epita.fr>
810 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
812 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
814 2000-11-07 Akim Demaille <akim@epita.fr>
816 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
817 Merge in a single CPP if/else.
819 2000-11-07 Akim Demaille <akim@epita.fr>
821 * src/output.c (output): Remove useless variables.
822 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
823 argument `data' for consistency with the prototypes.
825 (obstack_copy, obstack_copy0): Rename the second argument as
826 `address' for consistency. Qualify it `const'.
827 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
828 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
829 `const' their input argument (`data' or `address').
830 Adjust the corresponding macros to include `const' in casts.
832 2000-11-03 Akim Demaille <akim@epita.fr>
834 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
835 s/PFILE1/BISON_HAIRY/.
838 2000-11-03 Akim Demaille <akim@epita.fr>
840 For some reason, this was not applied.
842 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
843 `unlink': it's no longer used.
845 2000-11-03 Akim Demaille <akim@epita.fr>
847 * src/files.c (skeleton_find): New function, eved out of...
848 (open_files, open_extra_files): here.
850 2000-11-03 Akim Demaille <akim@epita.fr>
854 * src/files.c (obstack_save): New function.
856 (output_files): this.
858 * src/main.c (main): Don't use `atexit' to register `done', since
859 it no longer has to remove tmp files, just call `output_files'
860 when there are no errors.
862 2000-11-02 Akim Demaille <akim@epita.fr>
864 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
865 `unlink': it's no longer used.
866 * src/files.h: Formatting changes.
868 2000-11-02 Akim Demaille <akim@epita.fr>
870 Remove the last uses of mktemp and unlink/delete.
872 * src/files.c (fdefines, ftable): Removed.
873 (defines_ostack, table_obstack): New.
874 Adjust dependencies of the former into uses of the latter.
875 * src/output.c (output_short_or_char_table, output_short_table):
876 Convert to using obstacks.
877 * src/reader.c (copy_comment2): Accept one FILE * and two
879 (output_token_defines, reader_output_yylsp): Use obstacks.
880 * src/system.h (obstack_fgrow3): New.
882 2000-11-01 Akim Demaille <akim@epita.fr>
884 Change each use of `fattrs' into a use of `attrs_obstack'.
886 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
887 * src/files.c (fattrs): Remove.
888 (attrs_obstack): New.
889 Adjust all dependencies.
890 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
892 2000-11-01 Akim Demaille <akim@epita.fr>
895 Change each use of `faction' into a use of `action_obstack'.
897 * lib/obstack.h, lib/obstack.c: New files.
898 * src/files.c (faction): Remove.
899 (action_obstack): New.
900 Adjust all dependencies.
902 2000-10-20 Akim Demaille <akim@epita.fr>
904 * lib/quote.h (PARAMS): New macro. Use it.
906 2000-10-16 Akim Demaille <akim@epita.fr>
908 * src/output.c (output_short_or_char_table): New function.
909 (output_short_table, output_token_translations): Use it.
910 (goto_actions): Use output_short_table.
912 2000-10-16 Akim Demaille <akim@epita.fr>
914 * src/symtab.c (bucket_new): New function.
917 * src/output.c (output_short_table): New argument to display the
918 comment associated with the table.
920 (output_gram): Use it.
921 (output_rule_data): Nicer output layout for YYTNAME.
923 2000-10-16 Akim Demaille <akim@epita.fr>
925 * src/lex.c (read_typename): New function.
927 * src/reader.c (copy_dollar): Likewise.
929 2000-10-16 Akim Demaille <akim@epita.fr>
931 * src/reader.c (copy_comment2): Expect the input stream to be on
932 the `/' which is suspected to open a comment, instead of being
933 called after `//' or `/*' was read.
934 (copy_comment, copy_definition, parse_union_decl, copy_action)
935 (copy_guard): Adjust.
937 2000-10-16 Akim Demaille <akim@epita.fr>
939 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
940 `read_signed_integer'.
942 2000-10-16 Akim Demaille <akim@epita.fr>
944 * src/reader.c (copy_dollar): New function.
945 (copy_guard, copy_action): Use it.
947 2000-10-16 Akim Demaille <akim@epita.fr>
949 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
950 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
951 New files, from Fileutils 4.0.27.
952 * src/main.c (printable_version): Remove.
953 * src/lex.c, src/reader.c: Use `quote'.
955 2000-10-04 Akim Demaille <akim@epita.fr>
957 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
959 2000-10-04 Akim Demaille <akim@epita.fr>
961 * doc/bison.texinfo: Various typos spotted by Neil Booth.
963 2000-10-04 Akim Demaille <akim@epita.fr>
965 When a literal string is used to define two different tokens,
966 `bison -v' segfaults.
967 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
969 * tests/regression.m4: New file.
970 Include the core of the sample provided by Piotr Gackiewicz.
971 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
974 2000-10-04 Akim Demaille <akim@epita.fr>
976 * src/reader.c (parse_expect_decl): Keep `count' within the size
980 2000-10-02 Paul Eggert <eggert@twinsun.com>
982 * bison.s1 (yyparse): Assign the default value
983 unconditionally, to avoid a GCC warning and make the parser a
986 2000-10-02 Akim Demaille <akim@epita.fr>
988 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
991 2000-10-02 Akim Demaille <akim@epita.fr>
993 * src/derives.c, src/print.c, src/reduce.c: To ease the
994 translation, move some `\n' out of the translated strings.
996 2000-10-02 Akim Demaille <akim@epita.fr>
998 The location tracking mechanism is precious for parse error
999 messages. Nevertheless, it is enabled only when `@n' is used in
1000 the grammar, which is a different issue (you can use it in error
1001 message, but not in the grammar per se). Therefore, there should
1002 be another means to enable it.
1004 * src/getargs.c (getargs): Support `--locations'.
1006 * src/getargs.h (locationsflag): Export it.
1007 * src/lex.c (percent_table): Support `%locations'.
1008 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1009 with `locationsflag'.
1010 * doc/bison.texinfo: Document `--locations' and `%locations'.
1012 * tests/calc.m4: Test it.
1014 For regularity of the names, replace each
1015 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1016 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1017 In addition replace each `flag' with `_flag'.
1019 2000-10-02 Akim Demaille <akim@epita.fr>
1021 Also test parse error messages, including with YYERROR_VERBOSE.
1023 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1025 Use it to check the computations.
1026 Use it to check `nonassoc' is honored.
1027 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1028 `--yyerror-verbose'.
1029 (_AT_CHECK_CALC): Adjust to this option.
1030 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1032 2000-10-02 Akim Demaille <akim@epita.fr>
1034 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1035 the latter demonstrates a flaw in the handling of non debugging
1036 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1037 was used in order to simplify:
1053 unfortunately this leads to a CPP conflict when
1054 `--name-prefix=foo' is used since it produces `#define yydebug
1057 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1058 (YYDPRINTF): New macro.
1060 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1062 Also test `--verbose', `--defines' and `--name-prefix'.
1064 2000-10-02 Akim Demaille <akim@epita.fr>
1066 Improve the readability of the produced parsers.
1068 * src/bison.s1: Formatting changes.
1069 Improve the comment related to the `$' mark.
1070 (yydefault): Don't fall through to `yyresume': `goto' there.
1071 * src/output.c (output_parser): When the `$' is met, skip the end
1073 New variable, `number_of_dollar_signs', to check there's exactly
1074 one `$' in the parser skeleton.
1076 2000-10-02 Akim Demaille <akim@epita.fr>
1078 * lib/xstrdup.c: New file, from the fileutils.
1079 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1080 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1081 instead of strlen + xmalloc + strcpy.
1082 * src/symtab.c (copys): Remove, use xstrdup instead.
1084 2000-10-02 Akim Demaille <akim@epita.fr>
1086 * src/gram.h (associativity): New enum type which replaces the
1087 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1088 `right_assoc', `left_assoc' and `non_assoc'.
1089 Adjust all dependencies.
1090 * src/reader.c: Formatting changes.
1091 (LTYPESTR): Don't define it, use it as a literal in
1092 `reader_output_yylsp'.
1093 * src/symtab.h (symbol_class): New enum type which replaces the
1094 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1095 `sunknown', `stoken and `snterm'.
1097 2000-10-02 Akim Demaille <akim@epita.fr>
1099 * src/getargs.c (fixed_outfiles): Rename as...
1100 (yaccflag): for consistency and accuracy.
1101 Adjust dependencies.
1103 2000-10-02 Akim Demaille <akim@epita.fr>
1105 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1106 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1107 difficult and introduced a lot of core dump. It turns out that
1108 Bison used an implementation of `xmalloc' based on `calloc', and
1109 at various places it does depend upon the initialization to 0. I
1110 have not tried to isolate the pertinent places, and all the former
1111 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1112 someone should address this issue.
1114 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1115 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1117 Adjust dependencies.
1118 * src/warshall.h: New file.
1121 2000-10-02 Akim Demaille <akim@epita.fr>
1123 Various anti-`extern in *.c' changes.
1125 * src/system.h: Include `assert.h'.
1127 2000-10-02 Akim Demaille <akim@epita.fr>
1129 * src/state.h (nstates, final_state, first_state, first_shift)
1130 (first_reduction): Move their exportation from here...
1131 * src/LR0.h: to here.
1132 Adjust dependencies.
1133 * src/getargs.c (statisticsflag): New variable.
1134 Add support for `--statistics'.
1135 Adjust dependencies.
1137 Remove a lot of now useless `extern' statements in most files.
1139 2000-10-02 Akim Demaille <akim@epita.fr>
1141 * src/LR0.h: New file.
1144 2000-10-02 Akim Demaille <akim@epita.fr>
1146 * src/print.h: New file.
1148 * src/print.c: Formatting and ordering changes.
1149 (verbose, terse): Replace with...
1150 (print_results): this new function.
1151 Adjust dependencies.
1153 2000-10-02 Akim Demaille <akim@epita.fr>
1155 * src/conflicts.c (conflict_report): New function.
1156 (conflict_log, verbose_conflict_log): Replace with...
1157 (print_conflicts): this function.
1158 Adjust dependencies.
1159 * src/conflicts.h: New file.
1160 Propagate its inclusion.
1162 2000-10-02 Akim Demaille <akim@epita.fr>
1164 * src/nullable.h: New file.
1165 Propagate its inclusion.
1166 * src/nullable.c: Formatting changes.
1168 2000-10-02 Akim Demaille <akim@epita.fr>
1170 * src/reduce.h: New file.
1171 Propagate its inclusion.
1172 * src/reduce.c: Topological sort and other formatting changes.
1173 (bool, TRUE, FALSE): Move their definition to...
1174 * src/system.h: here.
1176 2000-10-02 Akim Demaille <akim@epita.fr>
1178 * src/files.c: Formatting changes.
1179 (tryopen, tryclose, openfiles): Rename as...
1180 (xfopen, xfclose, open_files): this.
1181 (stringappend): static.
1182 * src/files.h: Complete the list of exported symbols.
1185 2000-10-02 Akim Demaille <akim@epita.fr>
1187 * src/reader.h: New file.
1188 Propagate its use instead of tedious list of `extern' and
1190 * src/reader.c: Formatting changes, topological sort,
1193 2000-10-02 Akim Demaille <akim@epita.fr>
1195 * src/lex.h: Prototype `lex.c' exported functions.
1196 * src/reader.c: Adjust.
1197 * src/lex.c: Formatting changes.
1198 (safegetc): Rename as...
1201 2000-10-02 Akim Demaille <akim@epita.fr>
1203 * src/lalr.h: New file.
1204 Propagate its inclusion instead of prototypes and `extern'.
1205 * src/lalr.c: Formatting changes, topological sorting etc.
1207 2000-10-02 Akim Demaille <akim@epita.fr>
1209 * src/output.c (token_actions): Introduce a temporary array,
1210 YYDEFACT, that makes it possible for this function to use
1213 2000-10-02 Akim Demaille <akim@epita.fr>
1215 `user_toknums' is output as a `short[]' in `output.c', while it is
1216 defined as a `int[]' in `reader.c'. For consistency with the
1217 other output tables, `user_toknums' is now defined as a table of
1220 * src/reader.c (user_toknums): Be a short table instead of an int
1222 Adjust dependencies.
1224 Factor the short table outputs.
1226 * src/output.c (output_short_table): New function.
1227 * src/output.c (output_gram, output_stos, output_rule_data)
1228 (output_base, output_table, output_check): Use it.
1230 2000-10-02 Akim Demaille <akim@epita.fr>
1232 * src/output.c (output): Topological sort of the functions, in
1233 order to get rid of the `static' prototypes.
1234 No longer use `register'.
1235 * src/output.h: New file.
1236 Propagate its inclusion in files explicitly prototyping functions
1239 2000-09-21 Akim Demaille <akim@epita.fr>
1241 * src/atgeneral.m4: Update from Autoconf.
1243 2000-09-21 Akim Demaille <akim@epita.fr>
1245 * src/closure.h: New file.
1246 * src/closure.c: Formatting changes, topological sort over the
1247 functions, use of closure.h.
1248 (initialize_closure, finalize_closure): Rename as...
1249 (new_closure, free_closure): these. Adjust dependencies.
1250 * src/LR0.c: Formatting changes, topological sort, use of
1252 (initialize_states): Rename as...
1254 * src/Makefile.am (noinst_HEADERS): Adjust.
1256 2000-09-20 Akim Demaille <akim@epita.fr>
1258 * src/acconfig.h: Don't protect config.h against multiple
1260 Don't define PARAMS.
1261 * src/system.h: Define PARAMS.
1262 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1263 purpose of config.h. system.h must not try to fix wrong
1264 definitions in config.h.
1266 2000-09-20 Akim Demaille <akim@epita.fr>
1268 * src/derives.h: New file.
1269 * src/main.c, src/derives.h: Use it.
1271 * src/Makefile.am (noinst_HEADERS): Adjust.
1273 2000-09-20 Akim Demaille <akim@epita.fr>
1275 * tests/atgeneral.m4: Update from Autoconf.
1276 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1277 (AT_CHECK_CALC): New macros.
1278 Use these macros to test bison with options `', `--raw',
1279 `--debug', `--yacc', `--yacc --debug'.
1281 2000-09-19 Akim Demaille <akim@epita.fr>
1283 * src/output.c: Formatting changes.
1284 * src/machine.h: Remove, leaving its contents in...
1285 * src/system.h: here.
1287 Adjust all dependencies on stdio.h and machine.h.
1288 * src/getargs.h: New file.
1289 Let all `extern' declarations about getargs.c be replaced with
1290 inclusion of `getargs.h'.
1291 * src/Makefile.am (noinst_HEADERS): Adjust.
1293 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1295 (yyerror): Returns void, not int.
1296 * doc/bison.texinfo: Formatting changes.
1298 2000-09-19 Akim Demaille <akim@epita.fr>
1300 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1303 2000-09-18 Akim Demaille <akim@epita.fr>
1305 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1306 * src/Makefile.am (INCLUDES): Don't.
1307 Be ready to fetch headers in lib/.
1309 2000-09-18 Akim Demaille <akim@epita.fr>
1311 * doc/bison.texinfo: Update the copyright.
1312 ANSIfy and GNUify the examples.
1313 Remove the old menu.
1315 2000-09-18 Akim Demaille <akim@epita.fr>
1317 First set of tests: use the `calc' example from the documentation.
1319 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1320 is defined only when YYDEBUG is.
1321 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1322 * src/files.c (tryopen, tryclose): Formatting changes.
1323 Move to the top and be static.
1324 * src/reader.c (read_signed_integer): Likewise.
1325 * tests/calc.m4: New file.
1326 * Makefile.am, suite.m4: Adjust.
1327 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1329 2000-09-18 Akim Demaille <akim@epita.fr>
1331 Add support for an Autotest test suite for Bison.
1333 * m4/m4.m4, m4/atconfig.m4: New files.
1334 * m4/Makefile.am (EXTRA_DIST): Adjust.
1335 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1337 * src/getargs.c: Display a more standard --version message.
1338 * src/reader.c (reader): Formatting changes.
1339 No longer depend upon VERSION_STRING.
1340 * configure.in: No longer use `dnl'.
1341 Set up the test suite and the new directory `tests/.
1342 (VERSION_STRING): Remove.
1344 2000-04-14 Akim Demaille <akim@epita.fr>
1346 * src/reader.c (copy_comment2): New function, same as former
1347 `copy_comment', but outputs into two FILE *.
1348 (copy_comment): Use it.
1349 (parse_union_decl): Use it.
1350 (get_type, parse_start_decl): Use the same `invalid' message.
1351 (parse_start_decl, parse_union_decl): Use the same `multiple'
1353 (parse_union_decl, copy_guard, copy_action): Use the same
1354 `unmatched' message.
1355 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1357 2000-03-31 Akim Demaille <akim@epita.fr>
1359 * src/files.c (tryopen, tryclose): Move to the top.
1362 2000-03-31 Akim Demaille <akim@epita.fr>
1364 * src/main.c (main): Don't call `done', exit does it.
1366 2000-03-31 Akim Demaille <akim@epita.fr>
1368 * allocate.c: s/return (foo)/return foo/.
1371 * output.c: Likewise.
1372 * reader.c: Likewise.
1373 * symtab.c: Likewise.
1374 * vmsgetargs.c: Likewise.
1376 2000-03-31 Akim Demaille <akim@epita.fr>
1378 Clean up the error reporting functions.
1380 * src/report.c: New file.
1381 * src/report.h: Likewise.
1382 * src/Makefile.am: Adjust.
1383 * m4/error.m4: New file.
1384 * m4/Makefile.am: Adjust.
1385 * configure.in (jm_PREREQ_ERROR): Call it.
1386 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1388 (fatal, fatals): Remove. All callers use complain.c::fatal.
1389 (warn, warni, warns, warnss, warnss): Remove. All callers use
1390 complain.c::complain.
1391 (toomany): Remove, use fatal instead.
1392 * src/files.c (done): No argument, use complain_message_count.
1393 * src/main.c (main): Register `done' to `atexit'.
1395 * src/getargs.c (usage): More `fputs', less `fprintf'.
1397 2000-03-28 Akim Demaille <akim@epita.fr>
1399 * lib/: New directory.
1400 * Makefile.am (SUBDIRS): Adjust.
1401 * configure.in: Adjust.
1402 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1404 * src/alloca.c: Moved to lib/.
1405 * src/getopt.c: Likewise.
1406 * src/getopt1.c: Likewise.
1407 * src/getopt.h: Likewise.
1408 * src/ansi2knr.c: Likewise.
1409 * src/ansi2knr.1: Likewise.
1410 * src/Makefile.am: Adjust.
1411 * lib/Makefile.am: New file.
1413 2000-03-28 Akim Demaille <akim@epita.fr>
1415 * src/getargs.c (usage): Refresh the help message.
1417 2000-03-17 Akim Demaille <akim@epita.fr>
1419 * src/getopt1.c: Updated from textutils 2.0e
1420 * src/getopt.c: Likewise.
1421 * src/getopt.h: Likewise.
1423 2000-03-17 Akim Demaille <akim@epita.fr>
1425 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1426 the file name, not the whole `#line LINE FILE'.
1428 2000-03-17 Akim Demaille <akim@epita.fr>
1430 On syntax errors, report the token on which we choked.
1432 * src/bison.s1 (yyparse): In the label yyerrlab, when
1433 YYERROR_VERBOSE, add yychar in msg.
1435 2000-03-17 Akim Demaille <akim@epita.fr>
1437 * src/reader.c (copy_at): New function.
1438 (copy_guard): Use it.
1439 (copy_action): Use it.
1441 2000-03-17 Akim Demaille <akim@epita.fr>
1443 Be kind to translators, save some useless translations.
1445 * src/main.c (banner): New function.
1446 (fatal_banner): Use it.
1447 (warn_banner): Use it.
1449 2000-03-17 Akim Demaille <akim@epita.fr>
1451 * src/reader.c (copy_definition): Use copy_string and
1452 copy_comment. Removed now unused `match', `ended',
1454 (copy_comment, copy_string): Moved, to be visible from
1457 2000-03-17 Akim Demaille <akim@epita.fr>
1459 * src/reader.c (copy_string): Declare `static inline'. No
1460 problems with inline, since it is checked by configure.
1461 (copy_comment): Likewise.
1463 2000-03-17 Akim Demaille <akim@epita.fr>
1465 * src/reader.c (packsymbols): Formatting changes.
1467 2000-03-17 Akim Demaille <akim@epita.fr>
1469 * src/reader.c (copy_comment): New function, factored out from:
1470 (copy_action): Use it. Removed now unused `match', `ended',
1472 (copy_guard): Likewise.
1474 2000-03-17 Akim Demaille <akim@epita.fr>
1476 * src/reader.c (copy_string): New function, factored out from:
1477 (copy_action): Use it.
1478 (copy_guard): Likewise.
1480 2000-03-17 Akim Demaille <akim@epita.fr>
1482 Change the handling of @s so that they behave exactly like $s.
1483 There is now a pseudo variable @$ (readble and writable), location
1484 of the lhs of the rule (by default ranging from the location of
1485 the first symbol of the rhs, to the location of the last symbol,
1486 or, if the rhs is empty, YYLLOC).
1488 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1490 (yyparse): When providing a default semantic action, provide a
1491 default location action.
1492 (after the $): No longer change `*YYLSP', just stack YYLOC the
1493 same way you stack YYVAL.
1494 * src/reader.c (read_declarations): Use warns.
1495 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1496 (copy_action, case '@'): Likewise.
1497 Use a standard error message, to save useless work from
1500 2000-03-17 Akim Demaille <akim@epita.fr>
1502 * src/bison.s1: Formatting and cosmetics changes.
1503 * src/reader.c: Likewise.
1504 Update the Copyright notice.
1506 2000-03-17 Akim Demaille <akim@epita.fr>
1508 * src/bison.s1 (#line): All set to `#line' only, since the
1509 Makefile now handles them.
1511 2000-03-16 Akim Demaille <akim@epita.fr>
1513 * src/output.c (output_rule_data): Output the documentation of
1515 (Copyright notice): Update.
1518 2000-03-16 Akim Demaille <akim@epita.fr>
1520 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1521 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1522 One `#if YYDEBUG' remains, since it uses variables which are
1523 defined only if `YYDEBUG != 0'.
1525 2000-03-16 Akim Demaille <akim@epita.fr>
1527 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1528 and related variables so that the similarities are highlighted.
1530 2000-03-16 Akim Demaille <akim@epita.fr>
1532 * src/bison.s1: Properly indent CPP directives.
1534 2000-03-16 Akim Demaille <akim@epita.fr>
1536 * src/bison.s1: Properly indent the `alloca' CPP section.
1538 2000-03-16 Akim Demaille <akim@epita.fr>
1540 Do not hard code values of directories in `configure.in'.
1541 Update the `configure' tool chain.
1543 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1545 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1546 (AC_OUTPUT): Add m4/Makefile.
1547 Bump to bison 1.28a, 1.29 has never been released.
1548 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1549 handled via src/Makefile.am.
1550 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1551 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1553 * Makefile.am (SUBDIRS): Add m4.
1554 (ACLOCAL_AM_FLAGS): New variable.
1555 (AUTOMAKE_OPTIONS): Add check-news.
1556 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1557 the proper line number and file name.
1558 (DEFS): Propagate the location of bison library files and of the
1560 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1562 * acinclude.m4: Remove, replaced by the directory m4.
1563 * m4/Makefile.am (EXTRA_DIST): New variable.
1564 * m4/gettext.m4: New file, from the fileutils.
1565 * m4/lcmessage.m4: Likewise
1566 * m4/progtest.m4: Likewise.
1567 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1569 2000-03-10 Akim Demaille <akim@epita.fr>
1572 Formatting changes of various comments.
1573 Respect the GNU coding standards at various places.
1574 Don't use `_()' when no translation is needed.
1576 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1579 OS/2 honors TMPDIR environment variable.
1581 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1583 * doc/bison.texinfo: Tweaked spelling and grammar.
1585 Removed reference to price of printed copy.
1586 Mention BISON_SIMPLE and BISON_HAIRY.
1588 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1590 * configure.in, NEWS:
1591 Bison 1.29 released.
1593 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1595 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1596 Added reference card.
1598 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1600 * po/ru.po: Added Russian translation.
1602 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1604 * configure.in: Added Russian translation.
1606 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1608 * configure.in, NEWS, README:
1609 Released version 1.28.
1611 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1614 Squashed redefinition warning on some systems.
1616 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1617 Have configure build version string instead of relying on ANSI string
1620 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1622 * po/POTFILES.in: Got rid of version.c.
1624 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1626 * acconfig.h, configure.in:
1627 Have configure build version string instead of relying on ANSI string
1630 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1633 Dropped mention of `+' for long-named options.
1635 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1637 * src/files.c: Added <unistd.h> for unlink().
1639 * src/Makefile.am, src/system.h:
1642 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1644 * README: Added a FAQ list.
1646 * configure.in, acconfig.h:
1649 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1651 * doc/FAQ, doc/Makefile.am:
1654 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1656 * src/alloc.h, src/symtab.h, src/version.c:
1657 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1659 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1661 * src/.cvsignore, src/Makefile.am:
1662 Reorganized: sources in `src', documentation in `doc'.
1664 * src/lex.c (literalchar):
1665 fixed the code for escaping double quotes (thanks
1668 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1670 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1671 Adjusted paths to reflect directory reorganization.
1673 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1675 * doc/.cvsignore, doc/Makefile.am:
1676 Reorganized: sources in `src', documentation in `doc'.
1678 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1681 Updated AC_INIT file to reflect directory reorganization.
1683 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1684 Reorganized: sources in `src', documentation in `doc'.
1686 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1689 Don't declare calloc() and realloc() if not necessary.
1691 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1693 * configure.in, acconfig.h, acinclude.m4:
1694 Don't declare calloc() and realloc() if not necessary.
1696 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1698 * po/.cvsignore: Added i18n support.
1700 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1702 * acconfig.h, configure.in, Makefile.am:
1705 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1707 * src/bison.s1: Fixed #line numbers.
1709 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1711 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1712 Added PO files from Translation Project.
1714 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1717 Added support for non-ANSI compilers (ansi2knr).
1719 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1721 * configure.in: Bumped version number to 1.27.
1724 Added `bison.simple' to list of files removed by `make distclean'.
1726 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1728 * src/files.c, src/files.h:
1729 Defined locations of parser files in config.h instead of Makefile.
1731 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1733 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1734 Defined locations of parser files in config.h instead of Makefile.
1736 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1739 Removed inappropriate use of $< macro.
1741 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1743 * po/Makefile.in.in, po/POTFILES.in:
1744 Add `po' directory skeleton.
1746 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1748 * README: Document help-bison list.
1750 * configure.in: Add check for mkstemp().
1752 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1754 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1755 Hush a few compiler warnings.
1758 Add tryclose(), which verifies that fclose was successful.
1759 Hush a couple of compiler warnings.
1761 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1763 * Makefile.am, OChangeLog:
1764 ChangeLog is now automatically generated. Include the old version as
1767 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1769 * 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:
1772 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1774 * doc/bison.texinfo: Fix formatting glitch.
1776 * doc/bison.texinfo: Update FSF address.
1778 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1780 * acconfig.h: Update FSF address.
1782 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1785 Don't define PACKAGE here, since config.h defines it.
1787 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1789 * src/reader.c: Update copyright date.
1792 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1793 favor of output directly to stderr (avoids buffer overruns).
1795 * src/reader.c: Some checks for premature EOF.
1797 * 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:
1798 Use prototypes if the compiler understands them.
1800 * src/files.c: Honor TMPDIR on Unix hosts.
1801 Use prototypes if the compiler understands them.
1804 Fix a couple of buffer overrun bugs.
1805 Use prototypes if the compiler understands them.
1807 * src/system.h: Include unistd.h and ctype.h.
1808 Use #ifdef instead of #if for NLS symbols.
1810 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1812 * doc/bison.texinfo:
1813 Delete comment "consider using @set for edition number, etc..." since
1814 we now are doing so.
1816 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1819 Use prototypes if the compiler understands them.
1821 * NEWS: Document 1.26 highlights.
1823 * Makefile.am: Require Automake 1.3 or later.
1826 Use prototypes if the compiler understands them.
1828 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1831 Use VERSION symbol from automake for version number.
1833 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1835 * acconfig.h, configure.in, version.cin:
1836 Use VERSION symbol from automake for version number.
1838 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1841 Distribute original version of simple parser (bison.s1), not built
1842 version (bison.simple).
1844 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1846 * doc/bison.texinfo: Add info dir entry.
1848 * doc/bison.texinfo:
1849 Let automake put version number into documentation.
1851 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1853 * src/bison.cld, src/build.com, src/vmshlp.mar:
1854 Add non-RCS files from /gd/gnu/bison.
1856 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1859 Document the BISON_HAIRY and BISON_SIMPLE variables.
1861 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1863 * src/version.c: Build version.c automatically.
1866 Fix token numbering (used to start at 258, not 257).
1868 * src/system.h: Include config.h.
1870 * src/getargs.c: Update bug report address.
1872 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1873 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1875 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1878 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1880 * configure.in, version.cin:
1881 Build version.c automatically.
1883 * AUTHORS: Add AUTHORS file.
1885 * README: Update bug report address.
1888 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1890 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1893 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1895 * doc/bison.texinfo: Clean up some formatting.
1897 1998-05-05 Richard Stallman <rms@gnu.org>
1899 * doc/bison.texinfo:
1900 Explain better why to make a pure parser.
1902 1998-01-05 Richard Stallman <rms@gnu.org>
1904 * src/files.c (openfiles):
1905 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1906 find a temporary directory, if possible. Do not unlink files while
1909 1997-08-25 Richard Stallman <rms@gnu.org>
1911 * src/reader.c (stack_offset;):
1912 Change some warni to warns.
1914 * src/lex.c (literalchar): Use warns, not warni.
1916 1997-06-28 Richard Stallman <rms@gnu.org>
1918 * src/bison.s1: Add a Bison version comment.
1920 * src/main.c (fatal, warn, berror):
1923 1997-06-28 Richard Stallman <rms@gnu.org>
1925 * Makefile.in (bison_version): New variable.
1926 (dist): Use that variable.
1927 (bison.s1): Substitute the Bison version into bison.simple.
1929 * bison.simple: Add a Bison version comment.
1931 1997-06-18 Richard Stallman <rms@gnu.org>
1933 * src/main.c (fatal, warn, berror):
1934 Make error messages standard.
1935 (toomany): Improve error message text.
1937 * 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:
1938 new.h renamed to alloc.h.
1940 1997-06-18 Richard Stallman <rms@gnu.org>
1942 * Makefile.in: new.h renamed to alloc.h.
1944 1997-05-24 Richard Stallman <rms@gnu.org>
1946 * src/lex.c (literalchar):
1947 Fix the code for escaping \, " and '.
1949 (lex): Avoid trouble when there are many chars
1950 to discard in a char literal with just several chars in it.
1952 1997-05-17 Richard Stallman <rms@gnu.org>
1955 Use malloc, if using alloca is troublesome.
1956 (YYSTACK_USE_ALLOCA): New flag macro.
1957 Define it for some systems and compilers.
1958 (YYSTACK_ALLOC): New macro.
1959 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1960 If it was malloc'd, free it.
1962 1997-05-17 Richard Stallman <rms@gnu.org>
1965 Use malloc, if using alloca is troublesome.
1966 (YYSTACK_USE_ALLOCA): New flag macro.
1967 Define it for some systems and compilers.
1968 (YYSTACK_ALLOC): New macro.
1969 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1970 If it was malloc'd, free it.
1972 1997-04-23 Richard Stallman <rms@gnu.org>
1975 (alloca) [__hpux]: Always define as __builtin_alloca.
1977 1997-04-23 Richard Stallman <rms@gnu.org>
1980 (alloca) [__hpux]: Always define as __builtin_alloca.
1982 1997-04-22 Richard Stallman <rms@gnu.org>
1985 [__hpux]: Include alloca.h (right for HPUX 10)
1986 instead of declaring alloca (right for HPUX 9).
1988 * src/bison.s1 (__yy_memcpy):
1989 Declare arg `count' as unsigned int.
1990 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1992 1997-04-22 Richard Stallman <rms@gnu.org>
1995 [__hpux]: Include alloca.h (right for HPUX 10)
1996 instead of declaring alloca (right for HPUX 9).
1998 * bison.simple (__yy_memcpy):
1999 Declare arg `count' as unsigned int.
2000 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2002 1997-01-03 Richard Stallman <rms@gnu.org>
2004 * src/allocate.c: [__STDC__ or _MSC_VER]:
2005 Declare calloc and realloc to return void *.
2007 1997-01-02 Richard Stallman <rms@gnu.org>
2010 [_MSC_VER]: Include stdlib.h and process.h.
2011 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2013 * src/main.c (main): Return FAILURE as a value.
2014 (printable_version): Declare arg as int, not char.
2016 1997-01-02 Richard Stallman <rms@gnu.org>
2018 * Makefile.in (dist):
2019 Explicitly check for symlinks, and copy them.
2021 1996-12-19 Richard Stallman <rms@gnu.org>
2024 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2026 1996-12-18 Paul Eggert <eggert@gnu.org>
2028 * src/bison.s1 (yyparse):
2029 If __GNUC__ and YYPARSE_PARAM are both defined,
2030 declare yyparse to have a void * argument.
2032 1996-12-18 Paul Eggert <eggert@gnu.org>
2034 * bison.simple (yyparse):
2035 If __GNUC__ and YYPARSE_PARAM are both defined,
2036 declare yyparse to have a void * argument.
2038 1996-12-17 Richard Stallman <rms@gnu.org>
2040 * src/reduce.c (nbits): Add some casts.
2042 1996-08-12 Richard Stallman <rms@gnu.org>
2044 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2046 1996-08-12 Richard Stallman <rms@gnu.org>
2048 * bison.simple: Test _MSDOS as well as _MSDOS_.
2050 1996-07-31 Richard Stallman <rms@gnu.org>
2053 [__sun && __i386]: Include alloca.h.
2055 1996-07-31 Richard Stallman <rms@gnu.org>
2058 [__sun && __i386]: Include alloca.h.
2060 1996-07-30 Richard Stallman <rms@gnu.org>
2062 * src/bison.s1: Comment change.
2064 * src/bison.s1: Test _MSDOS_, not MSDOS.
2066 1996-07-30 Richard Stallman <rms@gnu.org>
2068 * bison.simple: Comment change.
2070 * bison.simple: Test _MSDOS_, not MSDOS.
2072 1996-06-01 Richard Stallman <rms@gnu.org>
2074 * 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:
2075 Insert `_' macro around many string constants.
2078 Insert `_' macro around many string constants.
2080 (main): Call setlocale, bindtextdomain and textdomain.
2082 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2083 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2084 [ENABLE_NLS]: Include libintl.h.
2085 [ENABLE_NLS] (gettext): Define.
2086 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2087 (N_, PACKAGE, LOCALEDIR): New macros.
2089 1996-06-01 Richard Stallman <rms@gnu.org>
2091 * POTFILES.in: New file.
2093 * Makefile.in (allocate.o):
2094 Define target explicitly.
2096 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2097 (LDFLAGS): Set to @LDFLAGS@.
2098 (configure): Run autoconf only if preceding `cd' succeeds.
2099 (bison.s1): Redirect output to temporary file then move the
2100 temporary to the target, rather than redirecting directly to bison.s1.
2101 (clean): Remove config.status and config.log.
2102 (distclean): Don't remove config.status here.
2104 1996-05-12 Richard Stallman <rms@gnu.org>
2107 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2109 1996-05-12 Richard Stallman <rms@gnu.org>
2112 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2114 1996-05-11 Richard Stallman <rms@gnu.org>
2116 * src/bison.s1 (__yy_memcpy):
2117 Really reorder the args, as was supposedly done on Feb 14 1995.
2118 (yyparse): Calls changed accordingly.
2120 1996-05-11 Richard Stallman <rms@gnu.org>
2122 * Makefile.in (dist): Don't use $(srcdir).
2124 * bison.simple (__yy_memcpy):
2125 Really reorder the args, as was supposedly done on Feb 14 1995.
2126 (yyparse): Calls changed accordingly.
2128 1996-01-27 Richard Stallman <rms@gnu.org>
2130 * src/output.c (output_rule_data):
2131 Test YYERROR_VERBOSE in the conditional
2132 around the definition of ttyname.
2134 1995-12-29 Richard Stallman <rms@gnu.org>
2137 Fix line numbers in #line commands.
2139 1995-12-29 Richard Stallman <rms@gnu.org>
2142 Fix line numbers in #line commands.
2144 1995-12-27 Richard Stallman <rms@gnu.org>
2146 * src/bison.s1 (YYPARSE_PARAM_DECL):
2147 In C++, make it always null.
2148 (YYPARSE_PARAM_ARG): New macro.
2149 (yyparse): Use YYPARSE_PARAM_ARG.
2151 1995-12-27 Richard Stallman <rms@gnu.org>
2153 * bison.simple (YYPARSE_PARAM_DECL):
2154 In C++, make it always null.
2155 (YYPARSE_PARAM_ARG): New macro.
2156 (yyparse): Use YYPARSE_PARAM_ARG.
2158 1995-11-29 Richard Stallman <rms@gnu.org>
2160 * doc/bison.texinfo:
2161 Describe literal string tokens, %raw, %no_lines, %token_table.
2163 1995-11-29 Daniel Hagerty <hag@gnu.org>
2165 * doc/bison.texinfo: Fixed update date
2167 1995-10-16 Richard Stallman <rms@gnu.org>
2169 * src/version.c: Version 1.25.
2171 1995-10-16 Richard Stallman <rms@gnu.org>
2173 * NEWS: *** empty log message ***
2175 1995-10-16 Richard Stallman <rms@gnu.org>
2177 * doc/bison.1, doc/bison.rnh:
2180 1995-10-15 Richard Stallman <rms@gnu.org>
2182 * src/vmsgetargs.c, src/getargs.c:
2183 Added -n, -k, and -raw switches.
2184 (noparserflag, toknumflag, rawtoknumflag): New variables.
2186 * src/symtab.h (SALIAS):
2187 New #define for adding aliases to %token.
2188 (struct bucket): Added `alias' field.
2190 * src/reduce.c (reduce_grammar):
2191 Revise error message.
2192 (print_notices): Remove final `.' from error message.
2194 * src/reader.c (reader_output_yylsp):
2196 (readgram): Use `#if 0' around code that accepted %command
2197 inside grammar rules: The documentation doesn't allow it,
2198 and it will fail since the %command processors scan for the next %.
2199 (parse_token_decl): Extended the %token
2200 declaration to allow a multi-character symbol as an alias.
2201 (parse_thong_decl): New function.
2202 (read_declarations): Added %thong declarations.
2203 (read_declarations): Handle NOOP to deal with allowing
2204 % declarations as another means to specify the flags.
2205 (readgram): Allow %prec prior to semantics embedded in a rule.
2206 (skip_to_char, read_declarations, copy_definition)
2207 (parse_token_decl, parse_start_decl, parse_type_decl)
2208 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2209 (get_type_name, copy_guard, copy_action, readgram)
2210 (get_type, packsymbols): Revised most error messages.
2211 Changed `fatal' to `warnxxx' to avoid aborting for error.
2212 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2213 (read_declarations): Improve the error message for
2214 an invalid character. Do not abort.
2215 (read_declarations, copy_guard, copy_action): Use
2216 printable_version to avoid unprintable characters in printed output.
2217 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2218 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2219 Allow the type of a non-terminal can be given
2220 more than once, as long as all specifications give the same type.
2223 (output_headers, output_trailers, output, output_gram)
2224 (output_rule_data): Implement noparserflag variable.
2225 Implement toknumflag variable.
2226 (output): Call reader_output_yylsp to output LTYPESTR.
2228 * src/main.c (main):
2229 If reader sees an error, don't process the grammar.
2230 (fatals): Updated to not use VARARGS1.
2231 (printable_version, int_to_string, warn, warni, warns, warnss)
2232 (warnsss): New error reporting functions. Avoid abort for error.
2235 Added THONG and NOOP for alias processing.
2236 Added SETOPT for the new code that allows setting options with %flags.
2239 Include getopt.h. Add some extern decls.
2240 (safegetc): New function to deal with EOF gracefully.
2241 (literalchar); new function to deal with reading \ escapes.
2242 (lex): Use literalchar.
2243 (lex): Implemented "..." tokens.
2244 (literalchar, lex, parse_percent_token): Made tokenbuffer
2245 always contain the token. This includes growing the token
2246 buffer while reading an integer.
2247 (parse_percent_token): Replaced if-else statement with percent_table.
2248 (parse_percent_token): Added % declarations as another
2249 way to specify the flags -n, -l, and -r. Also added hooks for
2250 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2251 major changes to files.c.
2252 (lex) Retain in the incoming stream a character following
2254 (skip_white_space, lex): Revised most error messages
2255 and changed fatal to warn to avoid aborting.
2256 (percent_table): Added %thong declarations.
2258 * src/gram.h: Comment changes.
2260 * src/files.c (openfiles, open_extra_files, done):
2262 and actfile file. Handle noparserflag. Both for -n switch.
2264 * src/conflicts.c (resolve_sr_conflict):
2265 Remove use of alloca.
2267 1995-06-01 Jim Meyering <meyering@gnu.org>
2269 * doc/bison.texinfo: *** empty log message ***
2271 1995-05-06 Richard Stallman <rms@gnu.org>
2273 * src/bison.s1: Comment change.
2275 1995-05-06 Richard Stallman <rms@gnu.org>
2277 * bison.simple: Comment change.
2279 1995-05-03 Richard Stallman <rms@gnu.org>
2281 * src/version.c: Version now 1.24.
2283 * src/bison.s1: Change distribution terms.
2285 * src/version.c: Version now 1.23.
2287 1995-05-03 Richard Stallman <rms@gnu.org>
2289 * doc/bison.texinfo:
2290 Rewrite "Conditions for Using Bison".
2291 Update version to 1.24.
2293 1995-05-03 Richard Stallman <rms@gnu.org>
2295 * bison.simple: Change distribution terms.
2297 1995-02-23 Richard Stallman <rms@gnu.org>
2299 * src/files.c: Test __VMS_POSIX as well as VMS.
2301 1995-02-14 Jim Meyering <meyering@gnu.org>
2303 * src/bison.s1 (__yy_memcpy):
2304 Renamed from __yy_bcopy to avoid
2305 confusion. Reverse FROM and TO arguments to be consistent with
2308 1995-02-14 Jim Meyering <meyering@gnu.org>
2310 * bison.simple (__yy_memcpy):
2311 Renamed from __yy_bcopy to avoid
2312 confusion. Reverse FROM and TO arguments to be consistent with
2315 1994-11-10 David J. MacKenzie <djm@gnu.org>
2321 * Makefile.in (DISTFILES): Include NEWS.
2323 * Makefile.in (DISTFILES):
2324 Include install-sh, not install.sh.
2326 * configure.in: Update to Autoconf v2 macro names.
2328 1994-10-05 David J. MacKenzie <djm@gnu.org>
2330 * Makefile.in: fix typo
2332 * Makefile.in (prefix, exec_prefix):
2333 Let configure set them.
2335 1994-09-28 David J. MacKenzie <djm@gnu.org>
2337 * Makefile.in: Set datadir to $(prefix)/share.
2339 1994-09-15 Richard Stallman <rms@gnu.org>
2342 Update copyright notice and GPL version.
2344 1994-09-15 Richard Stallman <rms@gnu.org>
2347 Update copyright notice and GPL version.
2349 1994-07-12 Richard Stallman <rms@gnu.org>
2351 * src/reduce.c, src/reader.c:
2354 1994-05-05 David J. MacKenzie <djm@gnu.org>
2356 * Makefile.in: entered into RCS
2358 1994-03-26 Richard Stallman <rms@gnu.org>
2360 * src/bison.s1: entered into RCS
2362 1994-03-26 Richard Stallman <rms@gnu.org>
2364 * bison.simple: entered into RCS
2366 1994-03-25 Richard Stallman <rms@gnu.org>
2368 * src/main.c: entered into RCS
2370 1994-03-24 Richard Stallman <rms@gnu.org>
2372 * src/conflicts.c: entered into RCS
2374 1994-01-02 Richard Stallman <rms@gnu.org>
2376 * Makefile.in: *** empty log message ***
2378 1993-11-21 Richard Stallman <rms@gnu.org>
2380 * src/bison.s1: *** empty log message ***
2382 1993-11-21 Richard Stallman <rms@gnu.org>
2384 * doc/bison.texinfo: entered into RCS
2386 * doc/bison.texinfo: *** empty log message ***
2388 1993-11-21 Richard Stallman <rms@gnu.org>
2390 * bison.simple: *** empty log message ***
2392 1993-10-25 David J. MacKenzie <djm@gnu.org>
2394 * doc/bison.texinfo: *** empty log message ***
2396 1993-10-19 Richard Stallman <rms@gnu.org>
2398 * src/bison.s1: *** empty log message ***
2400 1993-10-19 Richard Stallman <rms@gnu.org>
2402 * bison.simple: *** empty log message ***
2404 1993-10-14 Richard Stallman <rms@gnu.org>
2406 * src/bison.s1: *** empty log message ***
2408 1993-10-14 Richard Stallman <rms@gnu.org>
2410 * bison.simple: *** empty log message ***
2412 1993-09-14 David J. MacKenzie <djm@gnu.org>
2414 * doc/bison.texinfo: *** empty log message ***
2416 1993-09-13 Noah Friedman <friedman@gnu.org>
2418 * Makefile.in: *** empty log message ***
2420 1993-09-10 Richard Stallman <rms@gnu.org>
2422 * src/conflicts.c: *** empty log message ***
2424 * src/system.h: entered into RCS
2426 1993-09-10 Richard Stallman <rms@gnu.org>
2428 * doc/bison.1: entered into RCS
2430 1993-09-06 Noah Friedman <friedman@gnu.org>
2432 * src/version.c: entered into RCS
2434 1993-09-06 Noah Friedman <friedman@gnu.org>
2436 * Makefile.in: *** empty log message ***
2438 1993-07-30 David J. MacKenzie <djm@gnu.org>
2440 * Makefile.in: *** empty log message ***
2442 1993-07-24 Richard Stallman <rms@gnu.org>
2444 * src/bison.s1: *** empty log message ***
2446 1993-07-24 Richard Stallman <rms@gnu.org>
2448 * bison.simple: *** empty log message ***
2450 1993-07-08 David J. MacKenzie <djm@gnu.org>
2452 * Makefile.in: *** empty log message ***
2454 1993-07-04 Richard Stallman <rms@gnu.org>
2456 * src/bison.s1: *** empty log message ***
2458 1993-07-04 Richard Stallman <rms@gnu.org>
2460 * bison.simple: *** empty log message ***
2462 1993-06-26 David J. MacKenzie <djm@gnu.org>
2464 * src/getargs.c: entered into RCS
2466 1993-06-26 David J. MacKenzie <djm@gnu.org>
2468 * doc/bison.texinfo: *** empty log message ***
2470 * doc/bison.1: New file.
2472 1993-06-25 Richard Stallman <rms@gnu.org>
2474 * src/getargs.c: New file.
2476 1993-06-16 Richard Stallman <rms@gnu.org>
2478 * src/bison.s1: *** empty log message ***
2480 1993-06-16 Richard Stallman <rms@gnu.org>
2482 * bison.simple: *** empty log message ***
2484 1993-06-03 Richard Stallman <rms@gnu.org>
2486 * src/bison.s1: New file.
2488 1993-06-03 Richard Stallman <rms@gnu.org>
2490 * doc/bison.texinfo: *** empty log message ***
2492 1993-06-03 Richard Stallman <rms@gnu.org>
2494 * bison.simple: New file.
2496 1993-05-19 Richard Stallman <rms@gnu.org>
2498 * doc/bison.texinfo: New file.
2500 1993-05-07 Noah Friedman <friedman@gnu.org>
2502 * Makefile.in: *** empty log message ***
2504 1993-04-28 Noah Friedman <friedman@gnu.org>
2506 * src/reader.c: *** empty log message ***
2508 1993-04-23 Noah Friedman <friedman@gnu.org>
2510 * src/alloc.h: entered into RCS
2512 1993-04-20 David J. MacKenzie <djm@gnu.org>
2514 * src/version.c: *** empty log message ***
2516 * src/files.c, src/allocate.c:
2519 * src/reader.c: *** empty log message ***
2521 * src/lex.c: entered into RCS
2523 * src/conflicts.c: New file.
2525 * src/symtab.c: entered into RCS
2527 * src/alloc.h: New file.
2529 * src/LR0.c: entered into RCS
2531 1993-04-18 Noah Friedman <friedman@gnu.org>
2533 * src/reader.c: New file.
2535 * src/version.c: *** empty log message ***
2537 1993-04-18 Noah Friedman <friedman@gnu.org>
2539 * Makefile.in: *** empty log message ***
2541 1993-04-17 Noah Friedman <friedman@gnu.org>
2543 * Makefile.in: *** empty log message ***
2545 1993-04-15 Richard Stallman <rms@gnu.org>
2547 * src/main.c, src/files.c:
2550 1993-04-15 Noah Friedman <friedman@gnu.org>
2552 * configure.in: entered into RCS
2554 * configure.in: *** empty log message ***
2556 * configure.in: New file.
2558 1993-04-14 Richard Stallman <rms@gnu.org>
2560 * Makefile.in: New file.
2562 1993-04-13 Richard Stallman <rms@gnu.org>
2564 * src/version.c: New file.
2566 1993-03-25 Richard Stallman <rms@gnu.org>
2568 * src/output.c: entered into RCS
2570 1992-09-25 Richard Stallman <rms@gnu.org>
2572 * configure.bat: entered into RCS
2574 1992-06-22 Richard Stallman <rms@gnu.org>
2576 * src/vmsgetargs.c: entered into RCS
2578 1992-06-22 Richard Stallman <rms@gnu.org>
2580 * doc/bison.rnh: entered into RCS
2582 1992-04-20 David J. MacKenzie <djm@gnu.org>
2584 * README: entered into RCS
2586 1992-01-22 Richard Stallman <rms@gnu.org>
2588 * src/machine.h: entered into RCS
2590 1991-12-21 Richard Stallman <rms@gnu.org>
2592 * src/lalr.c, src/closure.c:
2595 1991-12-20 Richard Stallman <rms@gnu.org>
2597 * src/state.h: entered into RCS
2599 1991-12-18 Richard Stallman <rms@gnu.org>
2601 * src/print.c, src/nullable.c, src/derives.c:
2604 1991-11-03 David J. MacKenzie <djm@gnu.org>
2606 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2609 1988-09-09 Richard Stallman <rms@gnu.org>
2611 * src/bison.hairy: entered into RCS
2613 1987-12-16 Richard Stallman <rms@gnu.org>
2615 * REFERENCES: entered into RCS