1 2001-09-21 Akim Demaille <akim@epita.fr>
4 * Makefile.maint, config/config.guess, config/config.sub,
5 * config/missing: Update from masters.
6 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
9 2001-09-21 Akim Demaille <akim@epita.fr>
11 * tests/Makefile.am (package.m4): Move to...
12 ($(srcdir)/$(TESTSUITE)): here.
14 2001-09-20 Akim Demaille <akim@epita.fr>
16 * src/complain.c: No longer try to be standalone: use system.h.
17 Don't assume __STDC__ is defined to 1. Just test if it is defined.
18 * src/complain.h: Likewise.
19 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
20 Remove the unused variable `n'.
21 From Albert Chin-A-Young.
23 2001-09-18 Marc Autret <autret_m@epita.fr>
25 * doc/bison.1: Update.
26 * doc/bison.texinfo (Bison Options): Update --defines and --graph
28 (Option Cross Key): Update.
31 2001-09-18 Marc Autret <autret_m@epita.fr>
33 * tests/regression.at: New test (comment in %union).
35 2001-09-18 Marc Autret <autret_m@epita.fr>
37 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
39 Reported by Keith Browne.
41 2001-09-18 Marc Autret <autret_m@epita.fr>
43 * tests/output.at: Add tests for --defines and --graph.
45 2001-09-18 Marc Autret <autret_m@epita.fr>
47 * tests/output.at: Removes tests of %{header,src}_extension features.
49 2001-09-18 Akim Demaille <akim@epita.fr>
51 * tests/Makefile.am (package.m4): New.
52 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
53 (_AT_CHECK_CALC_ERROR): Likewise.
54 Factor the `, ' part of verbose error messages.
56 2001-09-18 Marc Autret <autret_m@epita.fr>
58 * src/getargs.c (longopts): Declare --defines and --graph as options
59 with optional arguments.
60 * src/files.h: Add extern declarations.
61 * src/files.c (spec_graph_file, spec_defines_file): New.
62 (output_files): Update.
63 Remove CPP-outed code.
65 2001-09-18 Marc Autret <autret_m@epita.fr>
67 Turn off %{source,header}_extension feature.
69 * src/files.c (compute_exts_from_gf): Update.
70 (compute_exts_from_src): Update.
71 (output_files): CPP-out useless code.
72 * src/files.h: Remove {header,source}_extension extern declarations.
73 * src/reader.c (parse_dquoted_param): CPP-out.
74 (parse_header_extension_decl): Remove.
75 (parse_source_extension_decl): Remove.
76 (read_declarations): Remove cases tok_{hdrext,srcext}.
77 * src/lex.c (percent_table): Remove {header,source}_extension entries.
78 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
80 2001-09-10 Akim Demaille <akim@epita.fr>
82 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
83 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
84 (AT_CHECK_OUTPUT): this.
85 Merely check ls' exit status, its output is useless.
87 2001-09-10 Akim Demaille <akim@epita.fr>
89 * tests/calc.at: Use m4_match.
90 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
92 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
94 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
96 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
98 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
99 * src/lex.h: Adjust prototype.
100 (token_t): Add `tok_undef'.
101 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
102 (parse_percent_token): Now returns token_t.
103 Add default statement in switch.
104 (lex): Separate `c' as an input variable, from the token_t result
106 (unlexed): Is a token_t.
108 2001-09-10 Akim Demaille <akim@epita.fr>
110 * configure.in: Bump to 1.29a.
112 2001-09-07 Akim Demaille <akim@epita.fr>
116 2001-08-30 Akim Demaille <akim@epita.fr>
118 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
119 * m4/atconfig.m4: Remove.
120 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
122 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
123 m4_if, m4_patsubst, and m4_regexp.
124 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
125 `input' file instead of echo.
127 2001-08-29 Akim Demaille <akim@epita.fr>
131 2001-08-29 Akim Demaille <akim@epita.fr>
135 2001-08-29 Paul Eggert <eggert@twinsun.com>
137 * src/bison.simple (yyparse): Don't take the address of an
138 item before the start of an array, as that doesn't conform to
141 2001-08-29 Robert Anisko <anisko_r@epita.fr>
143 * doc/bison.texinfo (Location Tracking Calc): New node.
145 2001-08-29 Paul Eggert <eggert@twinsun.com>
147 * src/output.c (output): Do not define const, as this now
148 causes more problems than it cures.
150 2001-08-29 Akim Demaille <akim@epita.fr>
152 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
154 Be sure to tag the `detailmenu'.
156 2001-08-29 Akim Demaille <akim@epita.fr>
158 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
159 download in a tmp dir.
161 2001-08-28 Marc Autret <autret_m@epita.fr>
163 * config/depcomp: New file.
165 2001-08-28 Marc Autret <autret_m@epita.fr>
167 * doc/bison.1 (mandoc): Adjust.
168 From Juan Manuel Guerrero.
170 2001-08-28 Marc Autret <autret_m@epita.fr>
172 * src/print_graph.c (print_state): Fix.
174 2001-08-27 Marc Autret <autret_m@epita.fr>
176 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
178 Echo modifications to the functions prototypes.
179 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
181 2001-08-27 Marc Autret <autret_m@epita.fr>
183 * src/vcg.c: Include `xalloc.h'.
184 (add_colorentry): New.
185 (add_classname): New.
187 * src/vcg.h: Add new prototypes.
189 2001-08-27 Akim Demaille <akim@epita.fr>
191 * Makefile.maint: Sync. again with CVS Autoconf.
193 2001-08-27 Akim Demaille <akim@epita.fr>
195 * Makefile.maint: Formatting changes.
196 (po-update, cvs-update, update): New targets.
199 2001-08-27 Akim Demaille <akim@epita.fr>
201 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
202 * Makefile.maint: Sync. with CVS Autoconf.
204 2001-08-27 Marc Autret <autret_m@epita.fr>
206 * src/vcg.h (struct infoname_s): New.
207 (struct colorentry_s): New.
208 (graph_s): New fields {vertical,horizontal}_order in structure.
209 Add `infoname' field.
210 Add `colorentry' field;
211 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
212 (G_HORIZONTAL_ORDER): New.
215 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
216 Add output of `infoname'.
217 Add output of `colorentry'.
219 2001-08-27 Marc Autret <autret_m@epita.fr>
221 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
222 This one shadowed a global parameter.
224 2001-08-24 Marc Autret <autret_m@epita.fr>
226 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
227 instead of `unsigned'.
228 (print_state): Do not call obstack_object_size () in obstack_grow ()
229 to avoid macro variables shadowing.
231 2001-08-23 Marc Autret <autret_m@epita.fr>
233 * src/lex.c (percent_table): Typo: s/naem/name/.
235 Normalize new options declarations.
237 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
239 * tests/suite.at: Exercise %header_extension and %source_extension.
241 2001-08-16 Marc Autret <autret_m@epita.fr>
243 * src/reader.c (parse_dquoted_param): New.
244 (parse_header_extension_decl): Use it.
245 (parse_source_extension_decl): Likewise.
247 2001-08-16 Marc Autret <autret_m@epita.fr>
249 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
250 (get_xxxx_str): Use assert () instead of complain ().
251 Remove return invokations in default cases.
252 (get_decision_str): Modify default behaviour. Remove second argument.
253 Echo modifications on calls.
256 2001-08-16 Marc Autret <autret_m@epita.fr>
258 * src/getargs.c (usage): Update with ``-g, --graph''.
260 2001-08-16 Marc Autret <autret_m@epita.fr>
262 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
263 (Option Cross Key): Likewise.
264 * doc/bison.1: Update.
266 2001-08-15 Akim Demaille <akim@epita.fr>
270 2001-08-15 Marc Autret <autret_m@epita.fr>
272 * src/reader.c (readgram): Indent output macro YYSTYPE.
273 (packsymbols): Likewise.
274 (output_token_defines): Likewise.
275 * src/files.c: Standardize.
276 (compute_header_macro): New.
277 (defines_obstack_save): New. Use compute_header_macro.
278 (output_files): Update. Use defines_obstack_save.
280 2001-08-15 Akim Demaille <akim@epita.fr>
282 * doc/bison.texinfo (Table of Symbols): Document
285 2001-08-15 Akim Demaille <akim@epita.fr>
287 * missing: Update from CVS Automake.
288 * config/config.guess, config/config.sub, config/texinfo.tex:
291 2001-08-15 Akim Demaille <akim@epita.fr>
293 * Makefile.maint: Sync with CVS Autoconf.
295 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
297 * doc/bison.texinfo: Include GNU Free Documentation License from
299 * doc/fdl.texi: Add to package.
301 2001-08-14 Marc Autret <autret_m@epita.fr>
303 Turn on %{source,header}_extension features.
305 * src/lex.c (percent_table): Un-CPP out header_extension and
307 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
308 (compute_exts_from_src): Remove conditions. It restores priorities
311 2001-08-14 Marc Autret <autret_m@epita.fr>
313 * src/files.c (compute_base_names): Add extensions computing when
314 `--file-prefix' used.
315 Standardize function calls.
317 2001-08-13 Marc Autret <autret_m@epita.fr>
319 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
320 defining it (defined but null disables alloca).
322 2001-08-13 Marc Autret <autret_m@epita.fr>
324 * src/bison.simple (_yy_memcpy): CPP reformat.
326 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
328 * tests/atconfig.in (CPPFLAGS): Fix.
330 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
332 * doc/bison.texinfo: Include GNU General Public License from
334 * doc/gpl.texi: Add to package.
336 2001-08-10 Marc Autret <autret_m@epita.fr>
338 * src/print_graph.h: Fix.
339 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
341 2001-08-10 Akim Demaille <akim@epita.fr>
343 * src/system.h: Provide default declarations for stpcpy, strndup,
346 2001-08-10 Robert Anisko <anisko_r@epita.fr>
348 * doc/bison.texinfo (Locations): Update @$ stuff.
350 2001-08-09 Robert Anisko <anisko_r@epita.fr>
352 * src/bison.simple (YYLLOC_DEFAULT): Update.
355 2001-08-08 Marc Autret <autret_m@epita.fr>
357 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
358 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
359 Reported by Fabrice Bauzac.
361 2001-08-08 Marc Autret <autret_m@epita.fr>
363 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
364 * src/vcg.c (output_node): Fix.
365 * src/vcg.h: Cleanup.
366 * src/print_graph.c: Add comments.
367 (node_output_size): New global variable. Simplify the formatting of
368 the VCG graph output.
369 (print_actions): Unused code is now used. It notifies the final state
370 and no action states in the VCG graph. It also give the reduce actions.
371 The `shift and goto' edges are red and the `go to state' edges are
373 Get the current node name and node_obstack by argument.
374 (node_obstack): New variable.
375 (print_state): Manage node_obstack.
376 (print_core): Use node_obstack given by argument.
377 A node is not only computed here but in print_actions also.
378 (print_graph): CPP out useless code instead of commenting it.
380 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
382 * tests/atconfig.in (CPPFLAGS): Fix.
384 2001-08-07 Akim Demaille <akim@epita.fr>
386 * src/print_graph.c (quote): New.
387 (print_core): Use it.
389 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
391 * src/vcg.c (complain.h): Include it.
392 Unepitaize `return' invocations.
393 [NDEBUG] (main): Remove.
394 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
395 * src/files.c (open_files): Initialize graph_obstack.
396 * src/print_graph.c (print_actions): CPP out useless code.
397 (print_core): Don't output the last `\n' in labels.
399 * src/files.c (output_files): Output the VCG file.
400 * src/main.c (main): Invoke print_graph ();
402 2001-08-06 Marc Autret <autret_m@epita.fr>
404 Automaton VCG graph output.
405 Using option ``-g'' or long option ``--graph'', you can generate
406 a gram_filename.vcg file containing a VCG description of the LALR (1)
407 automaton of your grammar.
409 * src/main.c: Call to print_graph() function.
410 * src/getargs.h: Update.
411 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
412 (graph_flag): New flag.
414 (getargs): Add case `g'.
415 * src/files.c (graph_obstack): New obstack struct.
416 (open_files): Initialize new obstack.
417 (output_files): Saves graph_obstack if required.
418 * src/files.h (graph_obstack): New extern declaration.
419 * src/Makefile.am: Add new source files.
421 2001-08-06 Marc Autret <autret_m@epita.fr>
423 * src/print_graph.c, src/print_graph.h (graph): New.
424 * src/vcg.h: New file.
425 * src/vcg.c: New file, VCG graph handling.
427 2001-08-06 Marc Autret <autret_m@epita.fr>
429 Add of %source_extension and %header_extension which specify
430 the source or/and the header output file extension.
432 * src/files.c (compute_base_names): Remove initialisation of
433 src_extension and header_extension.
434 (compute_exts_from_gf): Update.
435 (compute_exts_from_src): Update.
436 (output_files): Update.
437 * src/reader.c (parse_header_extension_decl): New.
438 (parse_source_extension_decl): New.
439 (read_declarations): New case statements for the new tokens.
440 * src/lex.c (percent_table): Add entries for %source_extension
441 and %header_extension.
442 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
444 2001-08-06 Marc Autret <autret_m@epita.fr>
446 * configure.in: Bump to 1.28c.
447 * doc/bison.texinfo: Texinfo thingies.
449 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
451 * tests/atconfig.in (CPPFLAGS): Add.
452 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
454 2001-08-03 Akim Demaille <akim@epita.fr>
458 2001-08-03 Akim Demaille <akim@epita.fr>
460 * tests/Makefile.am (check-local): Ship testsuite.
461 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
464 2001-08-03 Akim Demaille <akim@epita.fr>
466 * configure.in: Try using -Wformat when compiling.
468 2001-08-03 Akim Demaille <akim@epita.fr>
470 * configure.in: Bump to 1.28b.
472 2001-08-03 Akim Demaille <akim@epita.fr>
474 * src/complain.c: Adjust strerror_r portability issues.
476 2001-08-03 Akim Demaille <akim@epita.fr>
480 2001-08-03 Akim Demaille <akim@epita.fr>
482 * src/getargs.c, src/getarg.h (skeleton)): Constify.
483 * src/lex.c (literalchar): Avoid name clashes on `buf'.
484 * src/getargs.c: Include complain.h.
485 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
486 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
488 2001-08-03 Akim Demaille <akim@epita.fr>
490 * src/reader.c (readgram): Display hidden chars in error messages.
492 2001-08-03 Akim Demaille <akim@epita.fr>
494 Update to gettext 0.10.39.
496 2001-08-03 Akim Demaille <akim@epita.fr>
500 2001-08-01 Marc Autret <autret_m@epita.fr>
502 * doc/bison.texinfo: Update.
503 * doc/bison.1 (mandoc): Update.
504 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
505 * src/files.c: Support output files extensions computing.
506 (src_extension): New static variable.
507 (header_extension): New static variable.
509 (get_extension_index): New function, gets the index of an extension
510 filename in a string.
511 (compute_exts_from_gf): New function, computes extensions from the
512 grammar file extension.
513 (compute_exts_from_src): New functions, computes extensions from the
514 C source file extension, file given by ``-o'' option.
515 (compute_base_names): Update.
516 (output_files): Update.
518 2001-08-01 Robert Anisko <anisko_r@epita.fr>
520 * doc/bison.texi: Document @$.
521 (Locations): New section.
523 2001-07-18 Akim Demaille <akim@epita.fr>
525 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
526 * config/prev-version.txt, config/move-if-change: New.
527 * Makefile.am: Adjust.
529 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
531 * src/bison.simple (yyparse): Suppress warning `comparaison
532 between signed and unsigned'.
534 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
536 * src/getargs.h (raw_flag): Remove.
537 * src/getargs.c: Die on `-r'/`--raw'.
538 * src/lex.c (parse_percent_token): Die on `%raw'.
539 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
540 * tests/calc.at: Suppress test with option `--raw'.
542 2001-07-14 Akim Demaille <akim@epita.fr>
545 * configure.in: Require Autoconf 2.50.
546 Update to gettext 0.10.38.
548 2001-03-16 Akim Demaille <akim@epita.fr>
550 * doc/bison.texinfo: ANSIfy the examples.
552 2001-03-16 Akim Demaille <akim@epita.fr>
554 * getargs.c (skeleton): New variable.
555 (longopts): --skeleton is a new option.
556 (shortopts, getargs): -S is a new option.
557 * getargs.h: Declare skeleton.
558 * output.c (output_parser): Use it.
560 2001-03-16 Akim Demaille <akim@epita.fr>
562 * m4/strerror_r.m4: New.
563 * m4/error.m4: Run AC_FUNC_STRERROR_R.
564 * lib/error.h, lib/error.c: Update.
566 2001-03-16 Akim Demaille <akim@epita.fr>
568 * src/getargs.c (longopts): Clean up.
570 2001-02-21 Akim Demaille <akim@epita.fr>
572 * src/reader.c (gensym): `gensym_count' is your own.
573 Use a static buf to create the symbol name, as token_buffer is no
576 2001-02-08 Akim Demaille <akim@epita.fr>
578 * src/conflicts.c (conflict_report): Be sure not to append to res
579 between two calls, which could happen if both first sprintf were
580 skipped, but not the first cp += strlen.
582 2001-02-08 Akim Demaille <akim@epita.fr>
584 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
585 New, from fileutils 4.0.37.
586 * configure.in: Require Autoconf 2.49c. I took some time before
587 making this decision. This is the only way out for portability
588 issues in Bison, it would mean way too much duplicate effort to
589 import in Bison features implemented in 2.49c since 2.13.
590 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
592 2001-02-02 Akim Demaille <akim@epita.fr>
594 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
595 * lib/xalloc.h, lib/xmalloc.c: Update.
597 2001-01-19 Akim Demaille <akim@epita.fr>
599 Get rid of the ad hoc handling of token_buffer in the scanner: use
602 * src/lex.c (token_obstack): New.
603 (init_lex): Initialize it. No longer call...
604 (grow_token_buffer): this. Remove it.
605 Adjust all the places which used it to use the obstack.
607 2001-01-19 Akim Demaille <akim@epita.fr>
609 * src/lex.h: Rename all the tokens:
610 s/\bENDFILE\b/tok_eof/g;
611 s/\bIDENTIFIER\b/tok_identifier/g;
613 Let them be enums, not #define, to ease debugging.
616 2001-01-18 Akim Demaille <akim@epita.fr>
618 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
619 * src/lex.c (maxtoken, grow_token_buffer): Static.
621 2001-01-18 Akim Demaille <akim@epita.fr>
623 Since we now use obstacks, more % directives can be enabled.
625 * src/lex.c (percent_table): Also accept `%yacc',
626 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
628 Handle the actions for `%semantic_parser' and `%pure_parser' here,
629 instead of returning a token.
630 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
631 * src/reader.c (read_declarations): Adjust.
632 * src/files.c (open_files): Don't call `compute_base_names', don't
633 compute `attrsfile' since they depend upon data which might be
634 *in* the input file now.
635 (output_files): Do it here.
636 * src/output.c (output_headers): Document the fact that this patch
637 introduces a guaranteed SEGV for semantic parsers.
638 * doc/bison.texinfo: Document them.
639 * tests/suite.at: Exercise these %options.
641 2000-12-20 Akim Demaille <akim@epita.fr>
643 Also handle the output file (--verbose) with obstacks.
645 * files.c (foutput): Remove.
646 (output_obstack): New.
647 Adjust all dependencies.
648 * src/conflicts.c: Return a string.
649 * src/system.h (obstack_grow_string): Rename as...
650 (obstack_sgrow): this. Be ready to work with non literals.
651 (obstack_fgrow4): New.
653 2000-12-20 Akim Demaille <akim@epita.fr>
655 * src/files.c (open_files): Fix the computation of short_base_name
656 in the case of `-o foo.tab.c'.
658 2000-12-20 Akim Demaille <akim@epita.fr>
660 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
661 (copy_dollar): Now that everything uses obstacks, get rid of the
664 2000-12-20 Akim Demaille <akim@epita.fr>
666 * src/files.c (open_files): Actually the `.output' file is based
667 on the short_base_name, not base_name.
668 * tests/suite.at (Checking output file names): Adjust.
670 2000-12-20 Akim Demaille <akim@epita.fr>
672 * src/bison.s1: Remove, we now use directly...
673 * src/bison.simple: this.
674 * src/Makefile.am: Use pkgdata instead of data.
676 2000-12-20 Akim Demaille <akim@epita.fr>
678 * src/files.c (guard_obstack): New.
679 (open_files): Initialize it.
680 (output_files): Dump it...
681 * src/files.h: Export it.
682 * src/reader.c (copy_guard): Use it.
684 2000-12-19 Akim Demaille <akim@epita.fr>
686 * src/files.c (outfile, defsfile, actfile): Removed as global
688 (open_files): Don't compute them.
689 (output_files): Adjust.
690 (base_name, short_base_name): Be global.
693 2000-12-19 Akim Demaille <akim@epita.fr>
695 * src/files.c (strsuffix): New.
696 (stringappend): Be just like strcat but allocate.
697 (base_names): Eve out from open_files.
698 Try to simplify the rather hairy computation of base_name and
700 (open_files): Use it.
701 * tests/suite.at (Checking output file names): New test.
703 2000-12-19 Akim Demaille <akim@epita.fr>
705 * src/system.h (obstack_grow_literal_string): Rename as...
706 (obstack_grow_string): this.
707 * src/output.c (output_parser): Recognize `%% actions' instead of
709 * src/bison.s1: s/$/%% actions/.
710 * src/bison.hairy: Likewise.
712 2000-12-19 Akim Demaille <akim@epita.fr>
714 * src/output.c (output_parser): Compute the `#line' lines when
716 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
717 Suggested by Hans Aberg.
719 2000-12-19 Akim Demaille <akim@epita.fr>
721 Let the handling of the skeleton files be local to the procedures
724 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
726 (fparser, open_extra_files): Remove.
727 (open_files, output_files): Don't take care of fparser.
728 * src/files.h: Adjust.
729 * src/output.c (output_parser): Open and close the file to the
731 * src/reader.c (read_declarations): When %semantic_parser, open
734 2000-12-19 Akim Demaille <akim@epita.fr>
736 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
737 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
739 2000-12-19 Akim Demaille <akim@epita.fr>
741 * src/files.c (open_files): Yipee! We no longer need all the code
742 looking for `/tmp' since we have no tmp file.
744 2000-12-19 Akim Demaille <akim@epita.fr>
746 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
748 * src/files.c (open_files): Less dependency on MSDOS etc.
750 2000-12-14 Akim Demaille <akim@epita.fr>
752 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
753 Provide a default definition.
754 Use it when executing the default @ action.
755 * src/reader.c (reader_output_yylsp): No longer include
756 `timestamp' and `text' in the default YYLTYPE.
758 2000-12-12 Akim Demaille <akim@epita.fr>
760 * src/reader.c (copy_definition, parse_union_decl, copy_action)
761 (copy_guard): Quote the file names.
762 Reported by Laurent Mascherpa.
764 2000-12-12 Akim Demaille <akim@epita.fr>
766 * src/output.c (output_headers, output_program, output): Be sure
767 to escape special characters when outputting filenames.
768 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
769 (output_headers): Don't depend on them, Use ACTSTR.
771 2000-11-17 Akim Demaille <akim@epita.fr>
773 * lib/obstack.h: Formatting changes.
774 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
775 prevents type checking.
776 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
777 cast the value to (void *): assigning a `foo *' to a `void *'
779 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
780 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
783 2000-11-17 Akim Demaille <akim@epita.fr>
785 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
787 (suite.m4, regression.m4, calc.m4): these.
788 * tests/atgeneral.m4: Update from CVS Autoconf.
790 2000-11-17 Akim Demaille <akim@epita.fr>
792 * tests/regression.m4 (%union and --defines): New test,
793 demonstrating a current bug in the obstack implementation.
795 2000-11-17 Akim Demaille <akim@epita.fr>
797 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
799 Use them to declare the variables which are global or local to
802 2000-11-17 Akim Demaille <akim@epita.fr>
804 * acconfig.h: Remove, no longer used.
806 2000-11-07 Akim Demaille <akim@epita.fr>
808 * src: s/Copyright (C)/Copyright/g.
810 2000-11-07 Akim Demaille <akim@epita.fr>
812 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
814 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
816 2000-11-07 Akim Demaille <akim@epita.fr>
818 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
819 Merge in a single CPP if/else.
821 2000-11-07 Akim Demaille <akim@epita.fr>
823 * src/output.c (output): Remove useless variables.
824 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
825 argument `data' for consistency with the prototypes.
827 (obstack_copy, obstack_copy0): Rename the second argument as
828 `address' for consistency. Qualify it `const'.
829 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
830 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
831 `const' their input argument (`data' or `address').
832 Adjust the corresponding macros to include `const' in casts.
834 2000-11-03 Akim Demaille <akim@epita.fr>
836 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
837 s/PFILE1/BISON_HAIRY/.
840 2000-11-03 Akim Demaille <akim@epita.fr>
842 For some reason, this was not applied.
844 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
845 `unlink': it's no longer used.
847 2000-11-03 Akim Demaille <akim@epita.fr>
849 * src/files.c (skeleton_find): New function, eved out of...
850 (open_files, open_extra_files): here.
852 2000-11-03 Akim Demaille <akim@epita.fr>
856 * src/files.c (obstack_save): New function.
858 (output_files): this.
860 * src/main.c (main): Don't use `atexit' to register `done', since
861 it no longer has to remove tmp files, just call `output_files'
862 when there are no errors.
864 2000-11-02 Akim Demaille <akim@epita.fr>
866 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
867 `unlink': it's no longer used.
868 * src/files.h: Formatting changes.
870 2000-11-02 Akim Demaille <akim@epita.fr>
872 Remove the last uses of mktemp and unlink/delete.
874 * src/files.c (fdefines, ftable): Removed.
875 (defines_ostack, table_obstack): New.
876 Adjust dependencies of the former into uses of the latter.
877 * src/output.c (output_short_or_char_table, output_short_table):
878 Convert to using obstacks.
879 * src/reader.c (copy_comment2): Accept one FILE * and two
881 (output_token_defines, reader_output_yylsp): Use obstacks.
882 * src/system.h (obstack_fgrow3): New.
884 2000-11-01 Akim Demaille <akim@epita.fr>
886 Change each use of `fattrs' into a use of `attrs_obstack'.
888 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
889 * src/files.c (fattrs): Remove.
890 (attrs_obstack): New.
891 Adjust all dependencies.
892 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
894 2000-11-01 Akim Demaille <akim@epita.fr>
897 Change each use of `faction' into a use of `action_obstack'.
899 * lib/obstack.h, lib/obstack.c: New files.
900 * src/files.c (faction): Remove.
901 (action_obstack): New.
902 Adjust all dependencies.
904 2000-10-20 Akim Demaille <akim@epita.fr>
906 * lib/quote.h (PARAMS): New macro. Use it.
908 2000-10-16 Akim Demaille <akim@epita.fr>
910 * src/output.c (output_short_or_char_table): New function.
911 (output_short_table, output_token_translations): Use it.
912 (goto_actions): Use output_short_table.
914 2000-10-16 Akim Demaille <akim@epita.fr>
916 * src/symtab.c (bucket_new): New function.
919 * src/output.c (output_short_table): New argument to display the
920 comment associated with the table.
922 (output_gram): Use it.
923 (output_rule_data): Nicer output layout for YYTNAME.
925 2000-10-16 Akim Demaille <akim@epita.fr>
927 * src/lex.c (read_typename): New function.
929 * src/reader.c (copy_dollar): Likewise.
931 2000-10-16 Akim Demaille <akim@epita.fr>
933 * src/reader.c (copy_comment2): Expect the input stream to be on
934 the `/' which is suspected to open a comment, instead of being
935 called after `//' or `/*' was read.
936 (copy_comment, copy_definition, parse_union_decl, copy_action)
937 (copy_guard): Adjust.
939 2000-10-16 Akim Demaille <akim@epita.fr>
941 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
942 `read_signed_integer'.
944 2000-10-16 Akim Demaille <akim@epita.fr>
946 * src/reader.c (copy_dollar): New function.
947 (copy_guard, copy_action): Use it.
949 2000-10-16 Akim Demaille <akim@epita.fr>
951 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
952 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
953 New files, from Fileutils 4.0.27.
954 * src/main.c (printable_version): Remove.
955 * src/lex.c, src/reader.c: Use `quote'.
957 2000-10-04 Akim Demaille <akim@epita.fr>
959 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
961 2000-10-04 Akim Demaille <akim@epita.fr>
963 * doc/bison.texinfo: Various typos spotted by Neil Booth.
965 2000-10-04 Akim Demaille <akim@epita.fr>
967 When a literal string is used to define two different tokens,
968 `bison -v' segfaults.
969 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
971 * tests/regression.m4: New file.
972 Include the core of the sample provided by Piotr Gackiewicz.
973 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
976 2000-10-04 Akim Demaille <akim@epita.fr>
978 * src/reader.c (parse_expect_decl): Keep `count' within the size
982 2000-10-02 Paul Eggert <eggert@twinsun.com>
984 * bison.s1 (yyparse): Assign the default value
985 unconditionally, to avoid a GCC warning and make the parser a
988 2000-10-02 Akim Demaille <akim@epita.fr>
990 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
993 2000-10-02 Akim Demaille <akim@epita.fr>
995 * src/derives.c, src/print.c, src/reduce.c: To ease the
996 translation, move some `\n' out of the translated strings.
998 2000-10-02 Akim Demaille <akim@epita.fr>
1000 The location tracking mechanism is precious for parse error
1001 messages. Nevertheless, it is enabled only when `@n' is used in
1002 the grammar, which is a different issue (you can use it in error
1003 message, but not in the grammar per se). Therefore, there should
1004 be another means to enable it.
1006 * src/getargs.c (getargs): Support `--locations'.
1008 * src/getargs.h (locationsflag): Export it.
1009 * src/lex.c (percent_table): Support `%locations'.
1010 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1011 with `locationsflag'.
1012 * doc/bison.texinfo: Document `--locations' and `%locations'.
1014 * tests/calc.m4: Test it.
1016 For regularity of the names, replace each
1017 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1018 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1019 In addition replace each `flag' with `_flag'.
1021 2000-10-02 Akim Demaille <akim@epita.fr>
1023 Also test parse error messages, including with YYERROR_VERBOSE.
1025 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1027 Use it to check the computations.
1028 Use it to check `nonassoc' is honored.
1029 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1030 `--yyerror-verbose'.
1031 (_AT_CHECK_CALC): Adjust to this option.
1032 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1034 2000-10-02 Akim Demaille <akim@epita.fr>
1036 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1037 the latter demonstrates a flaw in the handling of non debugging
1038 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1039 was used in order to simplify:
1055 unfortunately this leads to a CPP conflict when
1056 `--name-prefix=foo' is used since it produces `#define yydebug
1059 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1060 (YYDPRINTF): New macro.
1062 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1064 Also test `--verbose', `--defines' and `--name-prefix'.
1066 2000-10-02 Akim Demaille <akim@epita.fr>
1068 Improve the readability of the produced parsers.
1070 * src/bison.s1: Formatting changes.
1071 Improve the comment related to the `$' mark.
1072 (yydefault): Don't fall through to `yyresume': `goto' there.
1073 * src/output.c (output_parser): When the `$' is met, skip the end
1075 New variable, `number_of_dollar_signs', to check there's exactly
1076 one `$' in the parser skeleton.
1078 2000-10-02 Akim Demaille <akim@epita.fr>
1080 * lib/xstrdup.c: New file, from the fileutils.
1081 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1082 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1083 instead of strlen + xmalloc + strcpy.
1084 * src/symtab.c (copys): Remove, use xstrdup instead.
1086 2000-10-02 Akim Demaille <akim@epita.fr>
1088 * src/gram.h (associativity): New enum type which replaces the
1089 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1090 `right_assoc', `left_assoc' and `non_assoc'.
1091 Adjust all dependencies.
1092 * src/reader.c: Formatting changes.
1093 (LTYPESTR): Don't define it, use it as a literal in
1094 `reader_output_yylsp'.
1095 * src/symtab.h (symbol_class): New enum type which replaces the
1096 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1097 `sunknown', `stoken and `snterm'.
1099 2000-10-02 Akim Demaille <akim@epita.fr>
1101 * src/getargs.c (fixed_outfiles): Rename as...
1102 (yaccflag): for consistency and accuracy.
1103 Adjust dependencies.
1105 2000-10-02 Akim Demaille <akim@epita.fr>
1107 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1108 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1109 difficult and introduced a lot of core dump. It turns out that
1110 Bison used an implementation of `xmalloc' based on `calloc', and
1111 at various places it does depend upon the initialization to 0. I
1112 have not tried to isolate the pertinent places, and all the former
1113 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1114 someone should address this issue.
1116 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1117 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1119 Adjust dependencies.
1120 * src/warshall.h: New file.
1123 2000-10-02 Akim Demaille <akim@epita.fr>
1125 Various anti-`extern in *.c' changes.
1127 * src/system.h: Include `assert.h'.
1129 2000-10-02 Akim Demaille <akim@epita.fr>
1131 * src/state.h (nstates, final_state, first_state, first_shift)
1132 (first_reduction): Move their exportation from here...
1133 * src/LR0.h: to here.
1134 Adjust dependencies.
1135 * src/getargs.c (statisticsflag): New variable.
1136 Add support for `--statistics'.
1137 Adjust dependencies.
1139 Remove a lot of now useless `extern' statements in most files.
1141 2000-10-02 Akim Demaille <akim@epita.fr>
1143 * src/LR0.h: New file.
1146 2000-10-02 Akim Demaille <akim@epita.fr>
1148 * src/print.h: New file.
1150 * src/print.c: Formatting and ordering changes.
1151 (verbose, terse): Replace with...
1152 (print_results): this new function.
1153 Adjust dependencies.
1155 2000-10-02 Akim Demaille <akim@epita.fr>
1157 * src/conflicts.c (conflict_report): New function.
1158 (conflict_log, verbose_conflict_log): Replace with...
1159 (print_conflicts): this function.
1160 Adjust dependencies.
1161 * src/conflicts.h: New file.
1162 Propagate its inclusion.
1164 2000-10-02 Akim Demaille <akim@epita.fr>
1166 * src/nullable.h: New file.
1167 Propagate its inclusion.
1168 * src/nullable.c: Formatting changes.
1170 2000-10-02 Akim Demaille <akim@epita.fr>
1172 * src/reduce.h: New file.
1173 Propagate its inclusion.
1174 * src/reduce.c: Topological sort and other formatting changes.
1175 (bool, TRUE, FALSE): Move their definition to...
1176 * src/system.h: here.
1178 2000-10-02 Akim Demaille <akim@epita.fr>
1180 * src/files.c: Formatting changes.
1181 (tryopen, tryclose, openfiles): Rename as...
1182 (xfopen, xfclose, open_files): this.
1183 (stringappend): static.
1184 * src/files.h: Complete the list of exported symbols.
1187 2000-10-02 Akim Demaille <akim@epita.fr>
1189 * src/reader.h: New file.
1190 Propagate its use instead of tedious list of `extern' and
1192 * src/reader.c: Formatting changes, topological sort,
1195 2000-10-02 Akim Demaille <akim@epita.fr>
1197 * src/lex.h: Prototype `lex.c' exported functions.
1198 * src/reader.c: Adjust.
1199 * src/lex.c: Formatting changes.
1200 (safegetc): Rename as...
1203 2000-10-02 Akim Demaille <akim@epita.fr>
1205 * src/lalr.h: New file.
1206 Propagate its inclusion instead of prototypes and `extern'.
1207 * src/lalr.c: Formatting changes, topological sorting etc.
1209 2000-10-02 Akim Demaille <akim@epita.fr>
1211 * src/output.c (token_actions): Introduce a temporary array,
1212 YYDEFACT, that makes it possible for this function to use
1215 2000-10-02 Akim Demaille <akim@epita.fr>
1217 `user_toknums' is output as a `short[]' in `output.c', while it is
1218 defined as a `int[]' in `reader.c'. For consistency with the
1219 other output tables, `user_toknums' is now defined as a table of
1222 * src/reader.c (user_toknums): Be a short table instead of an int
1224 Adjust dependencies.
1226 Factor the short table outputs.
1228 * src/output.c (output_short_table): New function.
1229 * src/output.c (output_gram, output_stos, output_rule_data)
1230 (output_base, output_table, output_check): Use it.
1232 2000-10-02 Akim Demaille <akim@epita.fr>
1234 * src/output.c (output): Topological sort of the functions, in
1235 order to get rid of the `static' prototypes.
1236 No longer use `register'.
1237 * src/output.h: New file.
1238 Propagate its inclusion in files explicitly prototyping functions
1241 2000-09-21 Akim Demaille <akim@epita.fr>
1243 * src/atgeneral.m4: Update from Autoconf.
1245 2000-09-21 Akim Demaille <akim@epita.fr>
1247 * src/closure.h: New file.
1248 * src/closure.c: Formatting changes, topological sort over the
1249 functions, use of closure.h.
1250 (initialize_closure, finalize_closure): Rename as...
1251 (new_closure, free_closure): these. Adjust dependencies.
1252 * src/LR0.c: Formatting changes, topological sort, use of
1254 (initialize_states): Rename as...
1256 * src/Makefile.am (noinst_HEADERS): Adjust.
1258 2000-09-20 Akim Demaille <akim@epita.fr>
1260 * src/acconfig.h: Don't protect config.h against multiple
1262 Don't define PARAMS.
1263 * src/system.h: Define PARAMS.
1264 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1265 purpose of config.h. system.h must not try to fix wrong
1266 definitions in config.h.
1268 2000-09-20 Akim Demaille <akim@epita.fr>
1270 * src/derives.h: New file.
1271 * src/main.c, src/derives.h: Use it.
1273 * src/Makefile.am (noinst_HEADERS): Adjust.
1275 2000-09-20 Akim Demaille <akim@epita.fr>
1277 * tests/atgeneral.m4: Update from Autoconf.
1278 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1279 (AT_CHECK_CALC): New macros.
1280 Use these macros to test bison with options `', `--raw',
1281 `--debug', `--yacc', `--yacc --debug'.
1283 2000-09-19 Akim Demaille <akim@epita.fr>
1285 * src/output.c: Formatting changes.
1286 * src/machine.h: Remove, leaving its contents in...
1287 * src/system.h: here.
1289 Adjust all dependencies on stdio.h and machine.h.
1290 * src/getargs.h: New file.
1291 Let all `extern' declarations about getargs.c be replaced with
1292 inclusion of `getargs.h'.
1293 * src/Makefile.am (noinst_HEADERS): Adjust.
1295 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1297 (yyerror): Returns void, not int.
1298 * doc/bison.texinfo: Formatting changes.
1300 2000-09-19 Akim Demaille <akim@epita.fr>
1302 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1305 2000-09-18 Akim Demaille <akim@epita.fr>
1307 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1308 * src/Makefile.am (INCLUDES): Don't.
1309 Be ready to fetch headers in lib/.
1311 2000-09-18 Akim Demaille <akim@epita.fr>
1313 * doc/bison.texinfo: Update the copyright.
1314 ANSIfy and GNUify the examples.
1315 Remove the old menu.
1317 2000-09-18 Akim Demaille <akim@epita.fr>
1319 First set of tests: use the `calc' example from the documentation.
1321 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1322 is defined only when YYDEBUG is.
1323 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1324 * src/files.c (tryopen, tryclose): Formatting changes.
1325 Move to the top and be static.
1326 * src/reader.c (read_signed_integer): Likewise.
1327 * tests/calc.m4: New file.
1328 * Makefile.am, suite.m4: Adjust.
1329 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1331 2000-09-18 Akim Demaille <akim@epita.fr>
1333 Add support for an Autotest test suite for Bison.
1335 * m4/m4.m4, m4/atconfig.m4: New files.
1336 * m4/Makefile.am (EXTRA_DIST): Adjust.
1337 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1339 * src/getargs.c: Display a more standard --version message.
1340 * src/reader.c (reader): Formatting changes.
1341 No longer depend upon VERSION_STRING.
1342 * configure.in: No longer use `dnl'.
1343 Set up the test suite and the new directory `tests/.
1344 (VERSION_STRING): Remove.
1346 2000-04-14 Akim Demaille <akim@epita.fr>
1348 * src/reader.c (copy_comment2): New function, same as former
1349 `copy_comment', but outputs into two FILE *.
1350 (copy_comment): Use it.
1351 (parse_union_decl): Use it.
1352 (get_type, parse_start_decl): Use the same `invalid' message.
1353 (parse_start_decl, parse_union_decl): Use the same `multiple'
1355 (parse_union_decl, copy_guard, copy_action): Use the same
1356 `unmatched' message.
1357 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1359 2000-03-31 Akim Demaille <akim@epita.fr>
1361 * src/files.c (tryopen, tryclose): Move to the top.
1364 2000-03-31 Akim Demaille <akim@epita.fr>
1366 * src/main.c (main): Don't call `done', exit does it.
1368 2000-03-31 Akim Demaille <akim@epita.fr>
1370 * allocate.c: s/return (foo)/return foo/.
1373 * output.c: Likewise.
1374 * reader.c: Likewise.
1375 * symtab.c: Likewise.
1376 * vmsgetargs.c: Likewise.
1378 2000-03-31 Akim Demaille <akim@epita.fr>
1380 Clean up the error reporting functions.
1382 * src/report.c: New file.
1383 * src/report.h: Likewise.
1384 * src/Makefile.am: Adjust.
1385 * m4/error.m4: New file.
1386 * m4/Makefile.am: Adjust.
1387 * configure.in (jm_PREREQ_ERROR): Call it.
1388 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1390 (fatal, fatals): Remove. All callers use complain.c::fatal.
1391 (warn, warni, warns, warnss, warnss): Remove. All callers use
1392 complain.c::complain.
1393 (toomany): Remove, use fatal instead.
1394 * src/files.c (done): No argument, use complain_message_count.
1395 * src/main.c (main): Register `done' to `atexit'.
1397 * src/getargs.c (usage): More `fputs', less `fprintf'.
1399 2000-03-28 Akim Demaille <akim@epita.fr>
1401 * lib/: New directory.
1402 * Makefile.am (SUBDIRS): Adjust.
1403 * configure.in: Adjust.
1404 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1406 * src/alloca.c: Moved to lib/.
1407 * src/getopt.c: Likewise.
1408 * src/getopt1.c: Likewise.
1409 * src/getopt.h: Likewise.
1410 * src/ansi2knr.c: Likewise.
1411 * src/ansi2knr.1: Likewise.
1412 * src/Makefile.am: Adjust.
1413 * lib/Makefile.am: New file.
1415 2000-03-28 Akim Demaille <akim@epita.fr>
1417 * src/getargs.c (usage): Refresh the help message.
1419 2000-03-17 Akim Demaille <akim@epita.fr>
1421 * src/getopt1.c: Updated from textutils 2.0e
1422 * src/getopt.c: Likewise.
1423 * src/getopt.h: Likewise.
1425 2000-03-17 Akim Demaille <akim@epita.fr>
1427 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1428 the file name, not the whole `#line LINE FILE'.
1430 2000-03-17 Akim Demaille <akim@epita.fr>
1432 On syntax errors, report the token on which we choked.
1434 * src/bison.s1 (yyparse): In the label yyerrlab, when
1435 YYERROR_VERBOSE, add yychar in msg.
1437 2000-03-17 Akim Demaille <akim@epita.fr>
1439 * src/reader.c (copy_at): New function.
1440 (copy_guard): Use it.
1441 (copy_action): Use it.
1443 2000-03-17 Akim Demaille <akim@epita.fr>
1445 Be kind to translators, save some useless translations.
1447 * src/main.c (banner): New function.
1448 (fatal_banner): Use it.
1449 (warn_banner): Use it.
1451 2000-03-17 Akim Demaille <akim@epita.fr>
1453 * src/reader.c (copy_definition): Use copy_string and
1454 copy_comment. Removed now unused `match', `ended',
1456 (copy_comment, copy_string): Moved, to be visible from
1459 2000-03-17 Akim Demaille <akim@epita.fr>
1461 * src/reader.c (copy_string): Declare `static inline'. No
1462 problems with inline, since it is checked by configure.
1463 (copy_comment): Likewise.
1465 2000-03-17 Akim Demaille <akim@epita.fr>
1467 * src/reader.c (packsymbols): Formatting changes.
1469 2000-03-17 Akim Demaille <akim@epita.fr>
1471 * src/reader.c (copy_comment): New function, factored out from:
1472 (copy_action): Use it. Removed now unused `match', `ended',
1474 (copy_guard): Likewise.
1476 2000-03-17 Akim Demaille <akim@epita.fr>
1478 * src/reader.c (copy_string): New function, factored out from:
1479 (copy_action): Use it.
1480 (copy_guard): Likewise.
1482 2000-03-17 Akim Demaille <akim@epita.fr>
1484 Change the handling of @s so that they behave exactly like $s.
1485 There is now a pseudo variable @$ (readble and writable), location
1486 of the lhs of the rule (by default ranging from the location of
1487 the first symbol of the rhs, to the location of the last symbol,
1488 or, if the rhs is empty, YYLLOC).
1490 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1492 (yyparse): When providing a default semantic action, provide a
1493 default location action.
1494 (after the $): No longer change `*YYLSP', just stack YYLOC the
1495 same way you stack YYVAL.
1496 * src/reader.c (read_declarations): Use warns.
1497 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1498 (copy_action, case '@'): Likewise.
1499 Use a standard error message, to save useless work from
1502 2000-03-17 Akim Demaille <akim@epita.fr>
1504 * src/bison.s1: Formatting and cosmetics changes.
1505 * src/reader.c: Likewise.
1506 Update the Copyright notice.
1508 2000-03-17 Akim Demaille <akim@epita.fr>
1510 * src/bison.s1 (#line): All set to `#line' only, since the
1511 Makefile now handles them.
1513 2000-03-16 Akim Demaille <akim@epita.fr>
1515 * src/output.c (output_rule_data): Output the documentation of
1517 (Copyright notice): Update.
1520 2000-03-16 Akim Demaille <akim@epita.fr>
1522 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1523 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1524 One `#if YYDEBUG' remains, since it uses variables which are
1525 defined only if `YYDEBUG != 0'.
1527 2000-03-16 Akim Demaille <akim@epita.fr>
1529 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1530 and related variables so that the similarities are highlighted.
1532 2000-03-16 Akim Demaille <akim@epita.fr>
1534 * src/bison.s1: Properly indent CPP directives.
1536 2000-03-16 Akim Demaille <akim@epita.fr>
1538 * src/bison.s1: Properly indent the `alloca' CPP section.
1540 2000-03-16 Akim Demaille <akim@epita.fr>
1542 Do not hard code values of directories in `configure.in'.
1543 Update the `configure' tool chain.
1545 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1547 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1548 (AC_OUTPUT): Add m4/Makefile.
1549 Bump to bison 1.28a, 1.29 has never been released.
1550 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1551 handled via src/Makefile.am.
1552 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1553 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1555 * Makefile.am (SUBDIRS): Add m4.
1556 (ACLOCAL_AM_FLAGS): New variable.
1557 (AUTOMAKE_OPTIONS): Add check-news.
1558 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1559 the proper line number and file name.
1560 (DEFS): Propagate the location of bison library files and of the
1562 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1564 * acinclude.m4: Remove, replaced by the directory m4.
1565 * m4/Makefile.am (EXTRA_DIST): New variable.
1566 * m4/gettext.m4: New file, from the fileutils.
1567 * m4/lcmessage.m4: Likewise
1568 * m4/progtest.m4: Likewise.
1569 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1571 2000-03-10 Akim Demaille <akim@epita.fr>
1574 Formatting changes of various comments.
1575 Respect the GNU coding standards at various places.
1576 Don't use `_()' when no translation is needed.
1578 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1581 OS/2 honors TMPDIR environment variable.
1583 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1585 * doc/bison.texinfo: Tweaked spelling and grammar.
1587 Removed reference to price of printed copy.
1588 Mention BISON_SIMPLE and BISON_HAIRY.
1590 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1592 * configure.in, NEWS:
1593 Bison 1.29 released.
1595 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1597 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1598 Added reference card.
1600 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1602 * po/ru.po: Added Russian translation.
1604 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1606 * configure.in: Added Russian translation.
1608 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1610 * configure.in, NEWS, README:
1611 Released version 1.28.
1613 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1616 Squashed redefinition warning on some systems.
1618 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1619 Have configure build version string instead of relying on ANSI string
1622 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1624 * po/POTFILES.in: Got rid of version.c.
1626 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1628 * acconfig.h, configure.in:
1629 Have configure build version string instead of relying on ANSI string
1632 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1635 Dropped mention of `+' for long-named options.
1637 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1639 * src/files.c: Added <unistd.h> for unlink().
1641 * src/Makefile.am, src/system.h:
1644 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1646 * README: Added a FAQ list.
1648 * configure.in, acconfig.h:
1651 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1653 * doc/FAQ, doc/Makefile.am:
1656 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1658 * src/alloc.h, src/symtab.h, src/version.c:
1659 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1661 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1663 * src/.cvsignore, src/Makefile.am:
1664 Reorganized: sources in `src', documentation in `doc'.
1666 * src/lex.c (literalchar):
1667 fixed the code for escaping double quotes (thanks
1670 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1672 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1673 Adjusted paths to reflect directory reorganization.
1675 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1677 * doc/.cvsignore, doc/Makefile.am:
1678 Reorganized: sources in `src', documentation in `doc'.
1680 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1683 Updated AC_INIT file to reflect directory reorganization.
1685 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1686 Reorganized: sources in `src', documentation in `doc'.
1688 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1691 Don't declare calloc() and realloc() if not necessary.
1693 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1695 * configure.in, acconfig.h, acinclude.m4:
1696 Don't declare calloc() and realloc() if not necessary.
1698 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1700 * po/.cvsignore: Added i18n support.
1702 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1704 * acconfig.h, configure.in, Makefile.am:
1707 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1709 * src/bison.s1: Fixed #line numbers.
1711 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1713 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1714 Added PO files from Translation Project.
1716 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1719 Added support for non-ANSI compilers (ansi2knr).
1721 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1723 * configure.in: Bumped version number to 1.27.
1726 Added `bison.simple' to list of files removed by `make distclean'.
1728 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1730 * src/files.c, src/files.h:
1731 Defined locations of parser files in config.h instead of Makefile.
1733 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1735 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1736 Defined locations of parser files in config.h instead of Makefile.
1738 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1741 Removed inappropriate use of $< macro.
1743 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1745 * po/Makefile.in.in, po/POTFILES.in:
1746 Add `po' directory skeleton.
1748 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1750 * README: Document help-bison list.
1752 * configure.in: Add check for mkstemp().
1754 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1756 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1757 Hush a few compiler warnings.
1760 Add tryclose(), which verifies that fclose was successful.
1761 Hush a couple of compiler warnings.
1763 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1765 * Makefile.am, OChangeLog:
1766 ChangeLog is now automatically generated. Include the old version as
1769 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1771 * 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:
1774 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1776 * doc/bison.texinfo: Fix formatting glitch.
1778 * doc/bison.texinfo: Update FSF address.
1780 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1782 * acconfig.h: Update FSF address.
1784 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1787 Don't define PACKAGE here, since config.h defines it.
1789 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1791 * src/reader.c: Update copyright date.
1794 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1795 favor of output directly to stderr (avoids buffer overruns).
1797 * src/reader.c: Some checks for premature EOF.
1799 * 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:
1800 Use prototypes if the compiler understands them.
1802 * src/files.c: Honor TMPDIR on Unix hosts.
1803 Use prototypes if the compiler understands them.
1806 Fix a couple of buffer overrun bugs.
1807 Use prototypes if the compiler understands them.
1809 * src/system.h: Include unistd.h and ctype.h.
1810 Use #ifdef instead of #if for NLS symbols.
1812 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1814 * doc/bison.texinfo:
1815 Delete comment "consider using @set for edition number, etc..." since
1816 we now are doing so.
1818 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1821 Use prototypes if the compiler understands them.
1823 * NEWS: Document 1.26 highlights.
1825 * Makefile.am: Require Automake 1.3 or later.
1828 Use prototypes if the compiler understands them.
1830 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1833 Use VERSION symbol from automake for version number.
1835 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1837 * acconfig.h, configure.in, version.cin:
1838 Use VERSION symbol from automake for version number.
1840 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1843 Distribute original version of simple parser (bison.s1), not built
1844 version (bison.simple).
1846 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1848 * doc/bison.texinfo: Add info dir entry.
1850 * doc/bison.texinfo:
1851 Let automake put version number into documentation.
1853 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1855 * src/bison.cld, src/build.com, src/vmshlp.mar:
1856 Add non-RCS files from /gd/gnu/bison.
1858 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1861 Document the BISON_HAIRY and BISON_SIMPLE variables.
1863 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1865 * src/version.c: Build version.c automatically.
1868 Fix token numbering (used to start at 258, not 257).
1870 * src/system.h: Include config.h.
1872 * src/getargs.c: Update bug report address.
1874 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1875 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1877 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1880 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1882 * configure.in, version.cin:
1883 Build version.c automatically.
1885 * AUTHORS: Add AUTHORS file.
1887 * README: Update bug report address.
1890 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1892 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1895 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1897 * doc/bison.texinfo: Clean up some formatting.
1899 1998-05-05 Richard Stallman <rms@gnu.org>
1901 * doc/bison.texinfo:
1902 Explain better why to make a pure parser.
1904 1998-01-05 Richard Stallman <rms@gnu.org>
1906 * src/files.c (openfiles):
1907 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1908 find a temporary directory, if possible. Do not unlink files while
1911 1997-08-25 Richard Stallman <rms@gnu.org>
1913 * src/reader.c (stack_offset;):
1914 Change some warni to warns.
1916 * src/lex.c (literalchar): Use warns, not warni.
1918 1997-06-28 Richard Stallman <rms@gnu.org>
1920 * src/bison.s1: Add a Bison version comment.
1922 * src/main.c (fatal, warn, berror):
1925 1997-06-28 Richard Stallman <rms@gnu.org>
1927 * Makefile.in (bison_version): New variable.
1928 (dist): Use that variable.
1929 (bison.s1): Substitute the Bison version into bison.simple.
1931 * bison.simple: Add a Bison version comment.
1933 1997-06-18 Richard Stallman <rms@gnu.org>
1935 * src/main.c (fatal, warn, berror):
1936 Make error messages standard.
1937 (toomany): Improve error message text.
1939 * 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:
1940 new.h renamed to alloc.h.
1942 1997-06-18 Richard Stallman <rms@gnu.org>
1944 * Makefile.in: new.h renamed to alloc.h.
1946 1997-05-24 Richard Stallman <rms@gnu.org>
1948 * src/lex.c (literalchar):
1949 Fix the code for escaping \, " and '.
1951 (lex): Avoid trouble when there are many chars
1952 to discard in a char literal with just several chars in it.
1954 1997-05-17 Richard Stallman <rms@gnu.org>
1957 Use malloc, if using alloca is troublesome.
1958 (YYSTACK_USE_ALLOCA): New flag macro.
1959 Define it for some systems and compilers.
1960 (YYSTACK_ALLOC): New macro.
1961 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1962 If it was malloc'd, free it.
1964 1997-05-17 Richard Stallman <rms@gnu.org>
1967 Use malloc, if using alloca is troublesome.
1968 (YYSTACK_USE_ALLOCA): New flag macro.
1969 Define it for some systems and compilers.
1970 (YYSTACK_ALLOC): New macro.
1971 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1972 If it was malloc'd, free it.
1974 1997-04-23 Richard Stallman <rms@gnu.org>
1977 (alloca) [__hpux]: Always define as __builtin_alloca.
1979 1997-04-23 Richard Stallman <rms@gnu.org>
1982 (alloca) [__hpux]: Always define as __builtin_alloca.
1984 1997-04-22 Richard Stallman <rms@gnu.org>
1987 [__hpux]: Include alloca.h (right for HPUX 10)
1988 instead of declaring alloca (right for HPUX 9).
1990 * src/bison.s1 (__yy_memcpy):
1991 Declare arg `count' as unsigned int.
1992 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1994 1997-04-22 Richard Stallman <rms@gnu.org>
1997 [__hpux]: Include alloca.h (right for HPUX 10)
1998 instead of declaring alloca (right for HPUX 9).
2000 * bison.simple (__yy_memcpy):
2001 Declare arg `count' as unsigned int.
2002 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2004 1997-01-03 Richard Stallman <rms@gnu.org>
2006 * src/allocate.c: [__STDC__ or _MSC_VER]:
2007 Declare calloc and realloc to return void *.
2009 1997-01-02 Richard Stallman <rms@gnu.org>
2012 [_MSC_VER]: Include stdlib.h and process.h.
2013 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2015 * src/main.c (main): Return FAILURE as a value.
2016 (printable_version): Declare arg as int, not char.
2018 1997-01-02 Richard Stallman <rms@gnu.org>
2020 * Makefile.in (dist):
2021 Explicitly check for symlinks, and copy them.
2023 1996-12-19 Richard Stallman <rms@gnu.org>
2026 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2028 1996-12-18 Paul Eggert <eggert@gnu.org>
2030 * src/bison.s1 (yyparse):
2031 If __GNUC__ and YYPARSE_PARAM are both defined,
2032 declare yyparse to have a void * argument.
2034 1996-12-18 Paul Eggert <eggert@gnu.org>
2036 * bison.simple (yyparse):
2037 If __GNUC__ and YYPARSE_PARAM are both defined,
2038 declare yyparse to have a void * argument.
2040 1996-12-17 Richard Stallman <rms@gnu.org>
2042 * src/reduce.c (nbits): Add some casts.
2044 1996-08-12 Richard Stallman <rms@gnu.org>
2046 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2048 1996-08-12 Richard Stallman <rms@gnu.org>
2050 * bison.simple: Test _MSDOS as well as _MSDOS_.
2052 1996-07-31 Richard Stallman <rms@gnu.org>
2055 [__sun && __i386]: Include alloca.h.
2057 1996-07-31 Richard Stallman <rms@gnu.org>
2060 [__sun && __i386]: Include alloca.h.
2062 1996-07-30 Richard Stallman <rms@gnu.org>
2064 * src/bison.s1: Comment change.
2066 * src/bison.s1: Test _MSDOS_, not MSDOS.
2068 1996-07-30 Richard Stallman <rms@gnu.org>
2070 * bison.simple: Comment change.
2072 * bison.simple: Test _MSDOS_, not MSDOS.
2074 1996-06-01 Richard Stallman <rms@gnu.org>
2076 * 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:
2077 Insert `_' macro around many string constants.
2080 Insert `_' macro around many string constants.
2082 (main): Call setlocale, bindtextdomain and textdomain.
2084 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2085 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2086 [ENABLE_NLS]: Include libintl.h.
2087 [ENABLE_NLS] (gettext): Define.
2088 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2089 (N_, PACKAGE, LOCALEDIR): New macros.
2091 1996-06-01 Richard Stallman <rms@gnu.org>
2093 * POTFILES.in: New file.
2095 * Makefile.in (allocate.o):
2096 Define target explicitly.
2098 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2099 (LDFLAGS): Set to @LDFLAGS@.
2100 (configure): Run autoconf only if preceding `cd' succeeds.
2101 (bison.s1): Redirect output to temporary file then move the
2102 temporary to the target, rather than redirecting directly to bison.s1.
2103 (clean): Remove config.status and config.log.
2104 (distclean): Don't remove config.status here.
2106 1996-05-12 Richard Stallman <rms@gnu.org>
2109 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2111 1996-05-12 Richard Stallman <rms@gnu.org>
2114 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2116 1996-05-11 Richard Stallman <rms@gnu.org>
2118 * src/bison.s1 (__yy_memcpy):
2119 Really reorder the args, as was supposedly done on Feb 14 1995.
2120 (yyparse): Calls changed accordingly.
2122 1996-05-11 Richard Stallman <rms@gnu.org>
2124 * Makefile.in (dist): Don't use $(srcdir).
2126 * bison.simple (__yy_memcpy):
2127 Really reorder the args, as was supposedly done on Feb 14 1995.
2128 (yyparse): Calls changed accordingly.
2130 1996-01-27 Richard Stallman <rms@gnu.org>
2132 * src/output.c (output_rule_data):
2133 Test YYERROR_VERBOSE in the conditional
2134 around the definition of ttyname.
2136 1995-12-29 Richard Stallman <rms@gnu.org>
2139 Fix line numbers in #line commands.
2141 1995-12-29 Richard Stallman <rms@gnu.org>
2144 Fix line numbers in #line commands.
2146 1995-12-27 Richard Stallman <rms@gnu.org>
2148 * src/bison.s1 (YYPARSE_PARAM_DECL):
2149 In C++, make it always null.
2150 (YYPARSE_PARAM_ARG): New macro.
2151 (yyparse): Use YYPARSE_PARAM_ARG.
2153 1995-12-27 Richard Stallman <rms@gnu.org>
2155 * bison.simple (YYPARSE_PARAM_DECL):
2156 In C++, make it always null.
2157 (YYPARSE_PARAM_ARG): New macro.
2158 (yyparse): Use YYPARSE_PARAM_ARG.
2160 1995-11-29 Richard Stallman <rms@gnu.org>
2162 * doc/bison.texinfo:
2163 Describe literal string tokens, %raw, %no_lines, %token_table.
2165 1995-11-29 Daniel Hagerty <hag@gnu.org>
2167 * doc/bison.texinfo: Fixed update date
2169 1995-10-16 Richard Stallman <rms@gnu.org>
2171 * src/version.c: Version 1.25.
2173 1995-10-16 Richard Stallman <rms@gnu.org>
2175 * NEWS: *** empty log message ***
2177 1995-10-16 Richard Stallman <rms@gnu.org>
2179 * doc/bison.1, doc/bison.rnh:
2182 1995-10-15 Richard Stallman <rms@gnu.org>
2184 * src/vmsgetargs.c, src/getargs.c:
2185 Added -n, -k, and -raw switches.
2186 (noparserflag, toknumflag, rawtoknumflag): New variables.
2188 * src/symtab.h (SALIAS):
2189 New #define for adding aliases to %token.
2190 (struct bucket): Added `alias' field.
2192 * src/reduce.c (reduce_grammar):
2193 Revise error message.
2194 (print_notices): Remove final `.' from error message.
2196 * src/reader.c (reader_output_yylsp):
2198 (readgram): Use `#if 0' around code that accepted %command
2199 inside grammar rules: The documentation doesn't allow it,
2200 and it will fail since the %command processors scan for the next %.
2201 (parse_token_decl): Extended the %token
2202 declaration to allow a multi-character symbol as an alias.
2203 (parse_thong_decl): New function.
2204 (read_declarations): Added %thong declarations.
2205 (read_declarations): Handle NOOP to deal with allowing
2206 % declarations as another means to specify the flags.
2207 (readgram): Allow %prec prior to semantics embedded in a rule.
2208 (skip_to_char, read_declarations, copy_definition)
2209 (parse_token_decl, parse_start_decl, parse_type_decl)
2210 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2211 (get_type_name, copy_guard, copy_action, readgram)
2212 (get_type, packsymbols): Revised most error messages.
2213 Changed `fatal' to `warnxxx' to avoid aborting for error.
2214 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2215 (read_declarations): Improve the error message for
2216 an invalid character. Do not abort.
2217 (read_declarations, copy_guard, copy_action): Use
2218 printable_version to avoid unprintable characters in printed output.
2219 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2220 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2221 Allow the type of a non-terminal can be given
2222 more than once, as long as all specifications give the same type.
2225 (output_headers, output_trailers, output, output_gram)
2226 (output_rule_data): Implement noparserflag variable.
2227 Implement toknumflag variable.
2228 (output): Call reader_output_yylsp to output LTYPESTR.
2230 * src/main.c (main):
2231 If reader sees an error, don't process the grammar.
2232 (fatals): Updated to not use VARARGS1.
2233 (printable_version, int_to_string, warn, warni, warns, warnss)
2234 (warnsss): New error reporting functions. Avoid abort for error.
2237 Added THONG and NOOP for alias processing.
2238 Added SETOPT for the new code that allows setting options with %flags.
2241 Include getopt.h. Add some extern decls.
2242 (safegetc): New function to deal with EOF gracefully.
2243 (literalchar); new function to deal with reading \ escapes.
2244 (lex): Use literalchar.
2245 (lex): Implemented "..." tokens.
2246 (literalchar, lex, parse_percent_token): Made tokenbuffer
2247 always contain the token. This includes growing the token
2248 buffer while reading an integer.
2249 (parse_percent_token): Replaced if-else statement with percent_table.
2250 (parse_percent_token): Added % declarations as another
2251 way to specify the flags -n, -l, and -r. Also added hooks for
2252 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2253 major changes to files.c.
2254 (lex) Retain in the incoming stream a character following
2256 (skip_white_space, lex): Revised most error messages
2257 and changed fatal to warn to avoid aborting.
2258 (percent_table): Added %thong declarations.
2260 * src/gram.h: Comment changes.
2262 * src/files.c (openfiles, open_extra_files, done):
2264 and actfile file. Handle noparserflag. Both for -n switch.
2266 * src/conflicts.c (resolve_sr_conflict):
2267 Remove use of alloca.
2269 1995-06-01 Jim Meyering <meyering@gnu.org>
2271 * doc/bison.texinfo: *** empty log message ***
2273 1995-05-06 Richard Stallman <rms@gnu.org>
2275 * src/bison.s1: Comment change.
2277 1995-05-06 Richard Stallman <rms@gnu.org>
2279 * bison.simple: Comment change.
2281 1995-05-03 Richard Stallman <rms@gnu.org>
2283 * src/version.c: Version now 1.24.
2285 * src/bison.s1: Change distribution terms.
2287 * src/version.c: Version now 1.23.
2289 1995-05-03 Richard Stallman <rms@gnu.org>
2291 * doc/bison.texinfo:
2292 Rewrite "Conditions for Using Bison".
2293 Update version to 1.24.
2295 1995-05-03 Richard Stallman <rms@gnu.org>
2297 * bison.simple: Change distribution terms.
2299 1995-02-23 Richard Stallman <rms@gnu.org>
2301 * src/files.c: Test __VMS_POSIX as well as VMS.
2303 1995-02-14 Jim Meyering <meyering@gnu.org>
2305 * src/bison.s1 (__yy_memcpy):
2306 Renamed from __yy_bcopy to avoid
2307 confusion. Reverse FROM and TO arguments to be consistent with
2310 1995-02-14 Jim Meyering <meyering@gnu.org>
2312 * bison.simple (__yy_memcpy):
2313 Renamed from __yy_bcopy to avoid
2314 confusion. Reverse FROM and TO arguments to be consistent with
2317 1994-11-10 David J. MacKenzie <djm@gnu.org>
2323 * Makefile.in (DISTFILES): Include NEWS.
2325 * Makefile.in (DISTFILES):
2326 Include install-sh, not install.sh.
2328 * configure.in: Update to Autoconf v2 macro names.
2330 1994-10-05 David J. MacKenzie <djm@gnu.org>
2332 * Makefile.in: fix typo
2334 * Makefile.in (prefix, exec_prefix):
2335 Let configure set them.
2337 1994-09-28 David J. MacKenzie <djm@gnu.org>
2339 * Makefile.in: Set datadir to $(prefix)/share.
2341 1994-09-15 Richard Stallman <rms@gnu.org>
2344 Update copyright notice and GPL version.
2346 1994-09-15 Richard Stallman <rms@gnu.org>
2349 Update copyright notice and GPL version.
2351 1994-07-12 Richard Stallman <rms@gnu.org>
2353 * src/reduce.c, src/reader.c:
2356 1994-05-05 David J. MacKenzie <djm@gnu.org>
2358 * Makefile.in: entered into RCS
2360 1994-03-26 Richard Stallman <rms@gnu.org>
2362 * src/bison.s1: entered into RCS
2364 1994-03-26 Richard Stallman <rms@gnu.org>
2366 * bison.simple: entered into RCS
2368 1994-03-25 Richard Stallman <rms@gnu.org>
2370 * src/main.c: entered into RCS
2372 1994-03-24 Richard Stallman <rms@gnu.org>
2374 * src/conflicts.c: entered into RCS
2376 1994-01-02 Richard Stallman <rms@gnu.org>
2378 * Makefile.in: *** empty log message ***
2380 1993-11-21 Richard Stallman <rms@gnu.org>
2382 * src/bison.s1: *** empty log message ***
2384 1993-11-21 Richard Stallman <rms@gnu.org>
2386 * doc/bison.texinfo: entered into RCS
2388 * doc/bison.texinfo: *** empty log message ***
2390 1993-11-21 Richard Stallman <rms@gnu.org>
2392 * bison.simple: *** empty log message ***
2394 1993-10-25 David J. MacKenzie <djm@gnu.org>
2396 * doc/bison.texinfo: *** empty log message ***
2398 1993-10-19 Richard Stallman <rms@gnu.org>
2400 * src/bison.s1: *** empty log message ***
2402 1993-10-19 Richard Stallman <rms@gnu.org>
2404 * bison.simple: *** empty log message ***
2406 1993-10-14 Richard Stallman <rms@gnu.org>
2408 * src/bison.s1: *** empty log message ***
2410 1993-10-14 Richard Stallman <rms@gnu.org>
2412 * bison.simple: *** empty log message ***
2414 1993-09-14 David J. MacKenzie <djm@gnu.org>
2416 * doc/bison.texinfo: *** empty log message ***
2418 1993-09-13 Noah Friedman <friedman@gnu.org>
2420 * Makefile.in: *** empty log message ***
2422 1993-09-10 Richard Stallman <rms@gnu.org>
2424 * src/conflicts.c: *** empty log message ***
2426 * src/system.h: entered into RCS
2428 1993-09-10 Richard Stallman <rms@gnu.org>
2430 * doc/bison.1: entered into RCS
2432 1993-09-06 Noah Friedman <friedman@gnu.org>
2434 * src/version.c: entered into RCS
2436 1993-09-06 Noah Friedman <friedman@gnu.org>
2438 * Makefile.in: *** empty log message ***
2440 1993-07-30 David J. MacKenzie <djm@gnu.org>
2442 * Makefile.in: *** empty log message ***
2444 1993-07-24 Richard Stallman <rms@gnu.org>
2446 * src/bison.s1: *** empty log message ***
2448 1993-07-24 Richard Stallman <rms@gnu.org>
2450 * bison.simple: *** empty log message ***
2452 1993-07-08 David J. MacKenzie <djm@gnu.org>
2454 * Makefile.in: *** empty log message ***
2456 1993-07-04 Richard Stallman <rms@gnu.org>
2458 * src/bison.s1: *** empty log message ***
2460 1993-07-04 Richard Stallman <rms@gnu.org>
2462 * bison.simple: *** empty log message ***
2464 1993-06-26 David J. MacKenzie <djm@gnu.org>
2466 * src/getargs.c: entered into RCS
2468 1993-06-26 David J. MacKenzie <djm@gnu.org>
2470 * doc/bison.texinfo: *** empty log message ***
2472 * doc/bison.1: New file.
2474 1993-06-25 Richard Stallman <rms@gnu.org>
2476 * src/getargs.c: New file.
2478 1993-06-16 Richard Stallman <rms@gnu.org>
2480 * src/bison.s1: *** empty log message ***
2482 1993-06-16 Richard Stallman <rms@gnu.org>
2484 * bison.simple: *** empty log message ***
2486 1993-06-03 Richard Stallman <rms@gnu.org>
2488 * src/bison.s1: New file.
2490 1993-06-03 Richard Stallman <rms@gnu.org>
2492 * doc/bison.texinfo: *** empty log message ***
2494 1993-06-03 Richard Stallman <rms@gnu.org>
2496 * bison.simple: New file.
2498 1993-05-19 Richard Stallman <rms@gnu.org>
2500 * doc/bison.texinfo: New file.
2502 1993-05-07 Noah Friedman <friedman@gnu.org>
2504 * Makefile.in: *** empty log message ***
2506 1993-04-28 Noah Friedman <friedman@gnu.org>
2508 * src/reader.c: *** empty log message ***
2510 1993-04-23 Noah Friedman <friedman@gnu.org>
2512 * src/alloc.h: entered into RCS
2514 1993-04-20 David J. MacKenzie <djm@gnu.org>
2516 * src/version.c: *** empty log message ***
2518 * src/files.c, src/allocate.c:
2521 * src/reader.c: *** empty log message ***
2523 * src/lex.c: entered into RCS
2525 * src/conflicts.c: New file.
2527 * src/symtab.c: entered into RCS
2529 * src/alloc.h: New file.
2531 * src/LR0.c: entered into RCS
2533 1993-04-18 Noah Friedman <friedman@gnu.org>
2535 * src/reader.c: New file.
2537 * src/version.c: *** empty log message ***
2539 1993-04-18 Noah Friedman <friedman@gnu.org>
2541 * Makefile.in: *** empty log message ***
2543 1993-04-17 Noah Friedman <friedman@gnu.org>
2545 * Makefile.in: *** empty log message ***
2547 1993-04-15 Richard Stallman <rms@gnu.org>
2549 * src/main.c, src/files.c:
2552 1993-04-15 Noah Friedman <friedman@gnu.org>
2554 * configure.in: entered into RCS
2556 * configure.in: *** empty log message ***
2558 * configure.in: New file.
2560 1993-04-14 Richard Stallman <rms@gnu.org>
2562 * Makefile.in: New file.
2564 1993-04-13 Richard Stallman <rms@gnu.org>
2566 * src/version.c: New file.
2568 1993-03-25 Richard Stallman <rms@gnu.org>
2570 * src/output.c: entered into RCS
2572 1992-09-25 Richard Stallman <rms@gnu.org>
2574 * configure.bat: entered into RCS
2576 1992-06-22 Richard Stallman <rms@gnu.org>
2578 * src/vmsgetargs.c: entered into RCS
2580 1992-06-22 Richard Stallman <rms@gnu.org>
2582 * doc/bison.rnh: entered into RCS
2584 1992-04-20 David J. MacKenzie <djm@gnu.org>
2586 * README: entered into RCS
2588 1992-01-22 Richard Stallman <rms@gnu.org>
2590 * src/machine.h: entered into RCS
2592 1991-12-21 Richard Stallman <rms@gnu.org>
2594 * src/lalr.c, src/closure.c:
2597 1991-12-20 Richard Stallman <rms@gnu.org>
2599 * src/state.h: entered into RCS
2601 1991-12-18 Richard Stallman <rms@gnu.org>
2603 * src/print.c, src/nullable.c, src/derives.c:
2606 1991-11-03 David J. MacKenzie <djm@gnu.org>
2608 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2611 1988-09-09 Richard Stallman <rms@gnu.org>
2613 * src/bison.hairy: entered into RCS
2615 1987-12-16 Richard Stallman <rms@gnu.org>
2617 * REFERENCES: entered into RCS