1 2001-09-21 Akim Demaille <akim@epita.fr>
3 * tests/Makefile.am (package.m4): Move to...
4 ($(srcdir)/$(TESTSUITE)): here.
6 2001-09-20 Akim Demaille <akim@epita.fr>
8 * src/complain.c: No longer try to be standalone: use system.h.
9 Don't assume __STDC__ is defined to 1. Just test if it is defined.
10 * src/complain.h: Likewise.
11 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
12 Remove the unused variable `n'.
13 From Albert Chin-A-Young.
15 2001-09-18 Marc Autret <autret_m@epita.fr>
17 * doc/bison.1: Update.
18 * doc/bison.texinfo (Bison Options): Update --defines and --graph
20 (Option Cross Key): Update.
23 2001-09-18 Marc Autret <autret_m@epita.fr>
25 * tests/regression.at: New test (comment in %union).
27 2001-09-18 Marc Autret <autret_m@epita.fr>
29 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
31 Reported by Keith Browne.
33 2001-09-18 Marc Autret <autret_m@epita.fr>
35 * tests/output.at: Add tests for --defines and --graph.
37 2001-09-18 Marc Autret <autret_m@epita.fr>
39 * tests/output.at: Removes tests of %{header,src}_extension features.
41 2001-09-18 Akim Demaille <akim@epita.fr>
43 * tests/Makefile.am (package.m4): New.
44 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
45 (_AT_CHECK_CALC_ERROR): Likewise.
46 Factor the `, ' part of verbose error messages.
48 2001-09-18 Marc Autret <autret_m@epita.fr>
50 * src/getargs.c (longopts): Declare --defines and --graph as options
51 with optional arguments.
52 * src/files.h: Add extern declarations.
53 * src/files.c (spec_graph_file, spec_defines_file): New.
54 (output_files): Update.
55 Remove CPP-outed code.
57 2001-09-18 Marc Autret <autret_m@epita.fr>
59 Turn off %{source,header}_extension feature.
61 * src/files.c (compute_exts_from_gf): Update.
62 (compute_exts_from_src): Update.
63 (output_files): CPP-out useless code.
64 * src/files.h: Remove {header,source}_extension extern declarations.
65 * src/reader.c (parse_dquoted_param): CPP-out.
66 (parse_header_extension_decl): Remove.
67 (parse_source_extension_decl): Remove.
68 (read_declarations): Remove cases tok_{hdrext,srcext}.
69 * src/lex.c (percent_table): Remove {header,source}_extension entries.
70 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
72 2001-09-10 Akim Demaille <akim@epita.fr>
74 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
75 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
76 (AT_CHECK_OUTPUT): this.
77 Merely check ls' exit status, its output is useless.
79 2001-09-10 Akim Demaille <akim@epita.fr>
81 * tests/calc.at: Use m4_match.
82 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
84 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
86 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
88 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
90 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
91 * src/lex.h: Adjust prototype.
92 (token_t): Add `tok_undef'.
93 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
94 (parse_percent_token): Now returns token_t.
95 Add default statement in switch.
96 (lex): Separate `c' as an input variable, from the token_t result
98 (unlexed): Is a token_t.
100 2001-09-10 Akim Demaille <akim@epita.fr>
102 * configure.in: Bump to 1.29a.
104 2001-09-07 Akim Demaille <akim@epita.fr>
108 2001-08-30 Akim Demaille <akim@epita.fr>
110 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
111 * m4/atconfig.m4: Remove.
112 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
114 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
115 m4_if, m4_patsubst, and m4_regexp.
116 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
117 `input' file instead of echo.
119 2001-08-29 Akim Demaille <akim@epita.fr>
123 2001-08-29 Akim Demaille <akim@epita.fr>
127 2001-08-29 Paul Eggert <eggert@twinsun.com>
129 * src/bison.simple (yyparse): Don't take the address of an
130 item before the start of an array, as that doesn't conform to
133 2001-08-29 Robert Anisko <anisko_r@epita.fr>
135 * doc/bison.texinfo (Location Tracking Calc): New node.
137 2001-08-29 Paul Eggert <eggert@twinsun.com>
139 * src/output.c (output): Do not define const, as this now
140 causes more problems than it cures.
142 2001-08-29 Akim Demaille <akim@epita.fr>
144 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
146 Be sure to tag the `detailmenu'.
148 2001-08-29 Akim Demaille <akim@epita.fr>
150 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
151 download in a tmp dir.
153 2001-08-28 Marc Autret <autret_m@epita.fr>
155 * config/depcomp: New file.
157 2001-08-28 Marc Autret <autret_m@epita.fr>
159 * doc/bison.1 (mandoc): Adjust.
160 From Juan Manuel Guerrero.
162 2001-08-28 Marc Autret <autret_m@epita.fr>
164 * src/print_graph.c (print_state): Fix.
166 2001-08-27 Marc Autret <autret_m@epita.fr>
168 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
170 Echo modifications to the functions prototypes.
171 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
173 2001-08-27 Marc Autret <autret_m@epita.fr>
175 * src/vcg.c: Include `xalloc.h'.
176 (add_colorentry): New.
177 (add_classname): New.
179 * src/vcg.h: Add new prototypes.
181 2001-08-27 Akim Demaille <akim@epita.fr>
183 * Makefile.maint: Sync. again with CVS Autoconf.
185 2001-08-27 Akim Demaille <akim@epita.fr>
187 * Makefile.maint: Formatting changes.
188 (po-update, cvs-update, update): New targets.
191 2001-08-27 Akim Demaille <akim@epita.fr>
193 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
194 * Makefile.maint: Sync. with CVS Autoconf.
196 2001-08-27 Marc Autret <autret_m@epita.fr>
198 * src/vcg.h (struct infoname_s): New.
199 (struct colorentry_s): New.
200 (graph_s): New fields {vertical,horizontal}_order in structure.
201 Add `infoname' field.
202 Add `colorentry' field;
203 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
204 (G_HORIZONTAL_ORDER): New.
207 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
208 Add output of `infoname'.
209 Add output of `colorentry'.
211 2001-08-27 Marc Autret <autret_m@epita.fr>
213 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
214 This one shadowed a global parameter.
216 2001-08-24 Marc Autret <autret_m@epita.fr>
218 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
219 instead of `unsigned'.
220 (print_state): Do not call obstack_object_size () in obstack_grow ()
221 to avoid macro variables shadowing.
223 2001-08-23 Marc Autret <autret_m@epita.fr>
225 * src/lex.c (percent_table): Typo: s/naem/name/.
227 Normalize new options declarations.
229 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
231 * tests/suite.at: Exercise %header_extension and %source_extension.
233 2001-08-16 Marc Autret <autret_m@epita.fr>
235 * src/reader.c (parse_dquoted_param): New.
236 (parse_header_extension_decl): Use it.
237 (parse_source_extension_decl): Likewise.
239 2001-08-16 Marc Autret <autret_m@epita.fr>
241 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
242 (get_xxxx_str): Use assert () instead of complain ().
243 Remove return invokations in default cases.
244 (get_decision_str): Modify default behaviour. Remove second argument.
245 Echo modifications on calls.
248 2001-08-16 Marc Autret <autret_m@epita.fr>
250 * src/getargs.c (usage): Update with ``-g, --graph''.
252 2001-08-16 Marc Autret <autret_m@epita.fr>
254 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
255 (Option Cross Key): Likewise.
256 * doc/bison.1: Update.
258 2001-08-15 Akim Demaille <akim@epita.fr>
262 2001-08-15 Marc Autret <autret_m@epita.fr>
264 * src/reader.c (readgram): Indent output macro YYSTYPE.
265 (packsymbols): Likewise.
266 (output_token_defines): Likewise.
267 * src/files.c: Standardize.
268 (compute_header_macro): New.
269 (defines_obstack_save): New. Use compute_header_macro.
270 (output_files): Update. Use defines_obstack_save.
272 2001-08-15 Akim Demaille <akim@epita.fr>
274 * doc/bison.texinfo (Table of Symbols): Document
277 2001-08-15 Akim Demaille <akim@epita.fr>
279 * missing: Update from CVS Automake.
280 * config/config.guess, config/config.sub, config/texinfo.tex:
283 2001-08-15 Akim Demaille <akim@epita.fr>
285 * Makefile.maint: Sync with CVS Autoconf.
287 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
289 * doc/bison.texinfo: Include GNU Free Documentation License from
291 * doc/fdl.texi: Add to package.
293 2001-08-14 Marc Autret <autret_m@epita.fr>
295 Turn on %{source,header}_extension features.
297 * src/lex.c (percent_table): Un-CPP out header_extension and
299 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
300 (compute_exts_from_src): Remove conditions. It restores priorities
303 2001-08-14 Marc Autret <autret_m@epita.fr>
305 * src/files.c (compute_base_names): Add extensions computing when
306 `--file-prefix' used.
307 Standardize function calls.
309 2001-08-13 Marc Autret <autret_m@epita.fr>
311 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
312 defining it (defined but null disables alloca).
314 2001-08-13 Marc Autret <autret_m@epita.fr>
316 * src/bison.simple (_yy_memcpy): CPP reformat.
318 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
320 * tests/atconfig.in (CPPFLAGS): Fix.
322 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
324 * doc/bison.texinfo: Include GNU General Public License from
326 * doc/gpl.texi: Add to package.
328 2001-08-10 Marc Autret <autret_m@epita.fr>
330 * src/print_graph.h: Fix.
331 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
333 2001-08-10 Akim Demaille <akim@epita.fr>
335 * src/system.h: Provide default declarations for stpcpy, strndup,
338 2001-08-10 Robert Anisko <anisko_r@epita.fr>
340 * doc/bison.texinfo (Locations): Update @$ stuff.
342 2001-08-09 Robert Anisko <anisko_r@epita.fr>
344 * src/bison.simple (YYLLOC_DEFAULT): Update.
347 2001-08-08 Marc Autret <autret_m@epita.fr>
349 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
350 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
351 Reported by Fabrice Bauzac.
353 2001-08-08 Marc Autret <autret_m@epita.fr>
355 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
356 * src/vcg.c (output_node): Fix.
357 * src/vcg.h: Cleanup.
358 * src/print_graph.c: Add comments.
359 (node_output_size): New global variable. Simplify the formatting of
360 the VCG graph output.
361 (print_actions): Unused code is now used. It notifies the final state
362 and no action states in the VCG graph. It also give the reduce actions.
363 The `shift and goto' edges are red and the `go to state' edges are
365 Get the current node name and node_obstack by argument.
366 (node_obstack): New variable.
367 (print_state): Manage node_obstack.
368 (print_core): Use node_obstack given by argument.
369 A node is not only computed here but in print_actions also.
370 (print_graph): CPP out useless code instead of commenting it.
372 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
374 * tests/atconfig.in (CPPFLAGS): Fix.
376 2001-08-07 Akim Demaille <akim@epita.fr>
378 * src/print_graph.c (quote): New.
379 (print_core): Use it.
381 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
383 * src/vcg.c (complain.h): Include it.
384 Unepitaize `return' invocations.
385 [NDEBUG] (main): Remove.
386 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
387 * src/files.c (open_files): Initialize graph_obstack.
388 * src/print_graph.c (print_actions): CPP out useless code.
389 (print_core): Don't output the last `\n' in labels.
391 * src/files.c (output_files): Output the VCG file.
392 * src/main.c (main): Invoke print_graph ();
394 2001-08-06 Marc Autret <autret_m@epita.fr>
396 Automaton VCG graph output.
397 Using option ``-g'' or long option ``--graph'', you can generate
398 a gram_filename.vcg file containing a VCG description of the LALR (1)
399 automaton of your grammar.
401 * src/main.c: Call to print_graph() function.
402 * src/getargs.h: Update.
403 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
404 (graph_flag): New flag.
406 (getargs): Add case `g'.
407 * src/files.c (graph_obstack): New obstack struct.
408 (open_files): Initialize new obstack.
409 (output_files): Saves graph_obstack if required.
410 * src/files.h (graph_obstack): New extern declaration.
411 * src/Makefile.am: Add new source files.
413 2001-08-06 Marc Autret <autret_m@epita.fr>
415 * src/print_graph.c, src/print_graph.h (graph): New.
416 * src/vcg.h: New file.
417 * src/vcg.c: New file, VCG graph handling.
419 2001-08-06 Marc Autret <autret_m@epita.fr>
421 Add of %source_extension and %header_extension which specify
422 the source or/and the header output file extension.
424 * src/files.c (compute_base_names): Remove initialisation of
425 src_extension and header_extension.
426 (compute_exts_from_gf): Update.
427 (compute_exts_from_src): Update.
428 (output_files): Update.
429 * src/reader.c (parse_header_extension_decl): New.
430 (parse_source_extension_decl): New.
431 (read_declarations): New case statements for the new tokens.
432 * src/lex.c (percent_table): Add entries for %source_extension
433 and %header_extension.
434 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
436 2001-08-06 Marc Autret <autret_m@epita.fr>
438 * configure.in: Bump to 1.28c.
439 * doc/bison.texinfo: Texinfo thingies.
441 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
443 * tests/atconfig.in (CPPFLAGS): Add.
444 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
446 2001-08-03 Akim Demaille <akim@epita.fr>
450 2001-08-03 Akim Demaille <akim@epita.fr>
452 * tests/Makefile.am (check-local): Ship testsuite.
453 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
456 2001-08-03 Akim Demaille <akim@epita.fr>
458 * configure.in: Try using -Wformat when compiling.
460 2001-08-03 Akim Demaille <akim@epita.fr>
462 * configure.in: Bump to 1.28b.
464 2001-08-03 Akim Demaille <akim@epita.fr>
466 * src/complain.c: Adjust strerror_r portability issues.
468 2001-08-03 Akim Demaille <akim@epita.fr>
472 2001-08-03 Akim Demaille <akim@epita.fr>
474 * src/getargs.c, src/getarg.h (skeleton)): Constify.
475 * src/lex.c (literalchar): Avoid name clashes on `buf'.
476 * src/getargs.c: Include complain.h.
477 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
478 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
480 2001-08-03 Akim Demaille <akim@epita.fr>
482 * src/reader.c (readgram): Display hidden chars in error messages.
484 2001-08-03 Akim Demaille <akim@epita.fr>
486 Update to gettext 0.10.39.
488 2001-08-03 Akim Demaille <akim@epita.fr>
492 2001-08-01 Marc Autret <autret_m@epita.fr>
494 * doc/bison.texinfo: Update.
495 * doc/bison.1 (mandoc): Update.
496 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
497 * src/files.c: Support output files extensions computing.
498 (src_extension): New static variable.
499 (header_extension): New static variable.
501 (get_extension_index): New function, gets the index of an extension
502 filename in a string.
503 (compute_exts_from_gf): New function, computes extensions from the
504 grammar file extension.
505 (compute_exts_from_src): New functions, computes extensions from the
506 C source file extension, file given by ``-o'' option.
507 (compute_base_names): Update.
508 (output_files): Update.
510 2001-08-01 Robert Anisko <anisko_r@epita.fr>
512 * doc/bison.texi: Document @$.
513 (Locations): New section.
515 2001-07-18 Akim Demaille <akim@epita.fr>
517 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
518 * config/prev-version.txt, config/move-if-change: New.
519 * Makefile.am: Adjust.
521 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
523 * src/bison.simple (yyparse): Suppress warning `comparaison
524 between signed and unsigned'.
526 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
528 * src/getargs.h (raw_flag): Remove.
529 * src/getargs.c: Die on `-r'/`--raw'.
530 * src/lex.c (parse_percent_token): Die on `%raw'.
531 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
532 * tests/calc.at: Suppress test with option `--raw'.
534 2001-07-14 Akim Demaille <akim@epita.fr>
537 * configure.in: Require Autoconf 2.50.
538 Update to gettext 0.10.38.
540 2001-03-16 Akim Demaille <akim@epita.fr>
542 * doc/bison.texinfo: ANSIfy the examples.
544 2001-03-16 Akim Demaille <akim@epita.fr>
546 * getargs.c (skeleton): New variable.
547 (longopts): --skeleton is a new option.
548 (shortopts, getargs): -S is a new option.
549 * getargs.h: Declare skeleton.
550 * output.c (output_parser): Use it.
552 2001-03-16 Akim Demaille <akim@epita.fr>
554 * m4/strerror_r.m4: New.
555 * m4/error.m4: Run AC_FUNC_STRERROR_R.
556 * lib/error.h, lib/error.c: Update.
558 2001-03-16 Akim Demaille <akim@epita.fr>
560 * src/getargs.c (longopts): Clean up.
562 2001-02-21 Akim Demaille <akim@epita.fr>
564 * src/reader.c (gensym): `gensym_count' is your own.
565 Use a static buf to create the symbol name, as token_buffer is no
568 2001-02-08 Akim Demaille <akim@epita.fr>
570 * src/conflicts.c (conflict_report): Be sure not to append to res
571 between two calls, which could happen if both first sprintf were
572 skipped, but not the first cp += strlen.
574 2001-02-08 Akim Demaille <akim@epita.fr>
576 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
577 New, from fileutils 4.0.37.
578 * configure.in: Require Autoconf 2.49c. I took some time before
579 making this decision. This is the only way out for portability
580 issues in Bison, it would mean way too much duplicate effort to
581 import in Bison features implemented in 2.49c since 2.13.
582 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
584 2001-02-02 Akim Demaille <akim@epita.fr>
586 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
587 * lib/xalloc.h, lib/xmalloc.c: Update.
589 2001-01-19 Akim Demaille <akim@epita.fr>
591 Get rid of the ad hoc handling of token_buffer in the scanner: use
594 * src/lex.c (token_obstack): New.
595 (init_lex): Initialize it. No longer call...
596 (grow_token_buffer): this. Remove it.
597 Adjust all the places which used it to use the obstack.
599 2001-01-19 Akim Demaille <akim@epita.fr>
601 * src/lex.h: Rename all the tokens:
602 s/\bENDFILE\b/tok_eof/g;
603 s/\bIDENTIFIER\b/tok_identifier/g;
605 Let them be enums, not #define, to ease debugging.
608 2001-01-18 Akim Demaille <akim@epita.fr>
610 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
611 * src/lex.c (maxtoken, grow_token_buffer): Static.
613 2001-01-18 Akim Demaille <akim@epita.fr>
615 Since we now use obstacks, more % directives can be enabled.
617 * src/lex.c (percent_table): Also accept `%yacc',
618 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
620 Handle the actions for `%semantic_parser' and `%pure_parser' here,
621 instead of returning a token.
622 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
623 * src/reader.c (read_declarations): Adjust.
624 * src/files.c (open_files): Don't call `compute_base_names', don't
625 compute `attrsfile' since they depend upon data which might be
626 *in* the input file now.
627 (output_files): Do it here.
628 * src/output.c (output_headers): Document the fact that this patch
629 introduces a guaranteed SEGV for semantic parsers.
630 * doc/bison.texinfo: Document them.
631 * tests/suite.at: Exercise these %options.
633 2000-12-20 Akim Demaille <akim@epita.fr>
635 Also handle the output file (--verbose) with obstacks.
637 * files.c (foutput): Remove.
638 (output_obstack): New.
639 Adjust all dependencies.
640 * src/conflicts.c: Return a string.
641 * src/system.h (obstack_grow_string): Rename as...
642 (obstack_sgrow): this. Be ready to work with non literals.
643 (obstack_fgrow4): New.
645 2000-12-20 Akim Demaille <akim@epita.fr>
647 * src/files.c (open_files): Fix the computation of short_base_name
648 in the case of `-o foo.tab.c'.
650 2000-12-20 Akim Demaille <akim@epita.fr>
652 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
653 (copy_dollar): Now that everything uses obstacks, get rid of the
656 2000-12-20 Akim Demaille <akim@epita.fr>
658 * src/files.c (open_files): Actually the `.output' file is based
659 on the short_base_name, not base_name.
660 * tests/suite.at (Checking output file names): Adjust.
662 2000-12-20 Akim Demaille <akim@epita.fr>
664 * src/bison.s1: Remove, we now use directly...
665 * src/bison.simple: this.
666 * src/Makefile.am: Use pkgdata instead of data.
668 2000-12-20 Akim Demaille <akim@epita.fr>
670 * src/files.c (guard_obstack): New.
671 (open_files): Initialize it.
672 (output_files): Dump it...
673 * src/files.h: Export it.
674 * src/reader.c (copy_guard): Use it.
676 2000-12-19 Akim Demaille <akim@epita.fr>
678 * src/files.c (outfile, defsfile, actfile): Removed as global
680 (open_files): Don't compute them.
681 (output_files): Adjust.
682 (base_name, short_base_name): Be global.
685 2000-12-19 Akim Demaille <akim@epita.fr>
687 * src/files.c (strsuffix): New.
688 (stringappend): Be just like strcat but allocate.
689 (base_names): Eve out from open_files.
690 Try to simplify the rather hairy computation of base_name and
692 (open_files): Use it.
693 * tests/suite.at (Checking output file names): New test.
695 2000-12-19 Akim Demaille <akim@epita.fr>
697 * src/system.h (obstack_grow_literal_string): Rename as...
698 (obstack_grow_string): this.
699 * src/output.c (output_parser): Recognize `%% actions' instead of
701 * src/bison.s1: s/$/%% actions/.
702 * src/bison.hairy: Likewise.
704 2000-12-19 Akim Demaille <akim@epita.fr>
706 * src/output.c (output_parser): Compute the `#line' lines when
708 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
709 Suggested by Hans Aberg.
711 2000-12-19 Akim Demaille <akim@epita.fr>
713 Let the handling of the skeleton files be local to the procedures
716 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
718 (fparser, open_extra_files): Remove.
719 (open_files, output_files): Don't take care of fparser.
720 * src/files.h: Adjust.
721 * src/output.c (output_parser): Open and close the file to the
723 * src/reader.c (read_declarations): When %semantic_parser, open
726 2000-12-19 Akim Demaille <akim@epita.fr>
728 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
729 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
731 2000-12-19 Akim Demaille <akim@epita.fr>
733 * src/files.c (open_files): Yipee! We no longer need all the code
734 looking for `/tmp' since we have no tmp file.
736 2000-12-19 Akim Demaille <akim@epita.fr>
738 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
740 * src/files.c (open_files): Less dependency on MSDOS etc.
742 2000-12-14 Akim Demaille <akim@epita.fr>
744 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
745 Provide a default definition.
746 Use it when executing the default @ action.
747 * src/reader.c (reader_output_yylsp): No longer include
748 `timestamp' and `text' in the default YYLTYPE.
750 2000-12-12 Akim Demaille <akim@epita.fr>
752 * src/reader.c (copy_definition, parse_union_decl, copy_action)
753 (copy_guard): Quote the file names.
754 Reported by Laurent Mascherpa.
756 2000-12-12 Akim Demaille <akim@epita.fr>
758 * src/output.c (output_headers, output_program, output): Be sure
759 to escape special characters when outputting filenames.
760 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
761 (output_headers): Don't depend on them, Use ACTSTR.
763 2000-11-17 Akim Demaille <akim@epita.fr>
765 * lib/obstack.h: Formatting changes.
766 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
767 prevents type checking.
768 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
769 cast the value to (void *): assigning a `foo *' to a `void *'
771 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
772 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
775 2000-11-17 Akim Demaille <akim@epita.fr>
777 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
779 (suite.m4, regression.m4, calc.m4): these.
780 * tests/atgeneral.m4: Update from CVS Autoconf.
782 2000-11-17 Akim Demaille <akim@epita.fr>
784 * tests/regression.m4 (%union and --defines): New test,
785 demonstrating a current bug in the obstack implementation.
787 2000-11-17 Akim Demaille <akim@epita.fr>
789 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
791 Use them to declare the variables which are global or local to
794 2000-11-17 Akim Demaille <akim@epita.fr>
796 * acconfig.h: Remove, no longer used.
798 2000-11-07 Akim Demaille <akim@epita.fr>
800 * src: s/Copyright (C)/Copyright/g.
802 2000-11-07 Akim Demaille <akim@epita.fr>
804 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
806 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
808 2000-11-07 Akim Demaille <akim@epita.fr>
810 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
811 Merge in a single CPP if/else.
813 2000-11-07 Akim Demaille <akim@epita.fr>
815 * src/output.c (output): Remove useless variables.
816 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
817 argument `data' for consistency with the prototypes.
819 (obstack_copy, obstack_copy0): Rename the second argument as
820 `address' for consistency. Qualify it `const'.
821 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
822 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
823 `const' their input argument (`data' or `address').
824 Adjust the corresponding macros to include `const' in casts.
826 2000-11-03 Akim Demaille <akim@epita.fr>
828 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
829 s/PFILE1/BISON_HAIRY/.
832 2000-11-03 Akim Demaille <akim@epita.fr>
834 For some reason, this was not applied.
836 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
837 `unlink': it's no longer used.
839 2000-11-03 Akim Demaille <akim@epita.fr>
841 * src/files.c (skeleton_find): New function, eved out of...
842 (open_files, open_extra_files): here.
844 2000-11-03 Akim Demaille <akim@epita.fr>
848 * src/files.c (obstack_save): New function.
850 (output_files): this.
852 * src/main.c (main): Don't use `atexit' to register `done', since
853 it no longer has to remove tmp files, just call `output_files'
854 when there are no errors.
856 2000-11-02 Akim Demaille <akim@epita.fr>
858 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
859 `unlink': it's no longer used.
860 * src/files.h: Formatting changes.
862 2000-11-02 Akim Demaille <akim@epita.fr>
864 Remove the last uses of mktemp and unlink/delete.
866 * src/files.c (fdefines, ftable): Removed.
867 (defines_ostack, table_obstack): New.
868 Adjust dependencies of the former into uses of the latter.
869 * src/output.c (output_short_or_char_table, output_short_table):
870 Convert to using obstacks.
871 * src/reader.c (copy_comment2): Accept one FILE * and two
873 (output_token_defines, reader_output_yylsp): Use obstacks.
874 * src/system.h (obstack_fgrow3): New.
876 2000-11-01 Akim Demaille <akim@epita.fr>
878 Change each use of `fattrs' into a use of `attrs_obstack'.
880 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
881 * src/files.c (fattrs): Remove.
882 (attrs_obstack): New.
883 Adjust all dependencies.
884 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
886 2000-11-01 Akim Demaille <akim@epita.fr>
889 Change each use of `faction' into a use of `action_obstack'.
891 * lib/obstack.h, lib/obstack.c: New files.
892 * src/files.c (faction): Remove.
893 (action_obstack): New.
894 Adjust all dependencies.
896 2000-10-20 Akim Demaille <akim@epita.fr>
898 * lib/quote.h (PARAMS): New macro. Use it.
900 2000-10-16 Akim Demaille <akim@epita.fr>
902 * src/output.c (output_short_or_char_table): New function.
903 (output_short_table, output_token_translations): Use it.
904 (goto_actions): Use output_short_table.
906 2000-10-16 Akim Demaille <akim@epita.fr>
908 * src/symtab.c (bucket_new): New function.
911 * src/output.c (output_short_table): New argument to display the
912 comment associated with the table.
914 (output_gram): Use it.
915 (output_rule_data): Nicer output layout for YYTNAME.
917 2000-10-16 Akim Demaille <akim@epita.fr>
919 * src/lex.c (read_typename): New function.
921 * src/reader.c (copy_dollar): Likewise.
923 2000-10-16 Akim Demaille <akim@epita.fr>
925 * src/reader.c (copy_comment2): Expect the input stream to be on
926 the `/' which is suspected to open a comment, instead of being
927 called after `//' or `/*' was read.
928 (copy_comment, copy_definition, parse_union_decl, copy_action)
929 (copy_guard): Adjust.
931 2000-10-16 Akim Demaille <akim@epita.fr>
933 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
934 `read_signed_integer'.
936 2000-10-16 Akim Demaille <akim@epita.fr>
938 * src/reader.c (copy_dollar): New function.
939 (copy_guard, copy_action): Use it.
941 2000-10-16 Akim Demaille <akim@epita.fr>
943 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
944 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
945 New files, from Fileutils 4.0.27.
946 * src/main.c (printable_version): Remove.
947 * src/lex.c, src/reader.c: Use `quote'.
949 2000-10-04 Akim Demaille <akim@epita.fr>
951 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
953 2000-10-04 Akim Demaille <akim@epita.fr>
955 * doc/bison.texinfo: Various typos spotted by Neil Booth.
957 2000-10-04 Akim Demaille <akim@epita.fr>
959 When a literal string is used to define two different tokens,
960 `bison -v' segfaults.
961 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
963 * tests/regression.m4: New file.
964 Include the core of the sample provided by Piotr Gackiewicz.
965 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
968 2000-10-04 Akim Demaille <akim@epita.fr>
970 * src/reader.c (parse_expect_decl): Keep `count' within the size
974 2000-10-02 Paul Eggert <eggert@twinsun.com>
976 * bison.s1 (yyparse): Assign the default value
977 unconditionally, to avoid a GCC warning and make the parser a
980 2000-10-02 Akim Demaille <akim@epita.fr>
982 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
985 2000-10-02 Akim Demaille <akim@epita.fr>
987 * src/derives.c, src/print.c, src/reduce.c: To ease the
988 translation, move some `\n' out of the translated strings.
990 2000-10-02 Akim Demaille <akim@epita.fr>
992 The location tracking mechanism is precious for parse error
993 messages. Nevertheless, it is enabled only when `@n' is used in
994 the grammar, which is a different issue (you can use it in error
995 message, but not in the grammar per se). Therefore, there should
996 be another means to enable it.
998 * src/getargs.c (getargs): Support `--locations'.
1000 * src/getargs.h (locationsflag): Export it.
1001 * src/lex.c (percent_table): Support `%locations'.
1002 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1003 with `locationsflag'.
1004 * doc/bison.texinfo: Document `--locations' and `%locations'.
1006 * tests/calc.m4: Test it.
1008 For regularity of the names, replace each
1009 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1010 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1011 In addition replace each `flag' with `_flag'.
1013 2000-10-02 Akim Demaille <akim@epita.fr>
1015 Also test parse error messages, including with YYERROR_VERBOSE.
1017 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1019 Use it to check the computations.
1020 Use it to check `nonassoc' is honored.
1021 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1022 `--yyerror-verbose'.
1023 (_AT_CHECK_CALC): Adjust to this option.
1024 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1026 2000-10-02 Akim Demaille <akim@epita.fr>
1028 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1029 the latter demonstrates a flaw in the handling of non debugging
1030 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1031 was used in order to simplify:
1047 unfortunately this leads to a CPP conflict when
1048 `--name-prefix=foo' is used since it produces `#define yydebug
1051 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1052 (YYDPRINTF): New macro.
1054 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1056 Also test `--verbose', `--defines' and `--name-prefix'.
1058 2000-10-02 Akim Demaille <akim@epita.fr>
1060 Improve the readability of the produced parsers.
1062 * src/bison.s1: Formatting changes.
1063 Improve the comment related to the `$' mark.
1064 (yydefault): Don't fall through to `yyresume': `goto' there.
1065 * src/output.c (output_parser): When the `$' is met, skip the end
1067 New variable, `number_of_dollar_signs', to check there's exactly
1068 one `$' in the parser skeleton.
1070 2000-10-02 Akim Demaille <akim@epita.fr>
1072 * lib/xstrdup.c: New file, from the fileutils.
1073 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1074 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1075 instead of strlen + xmalloc + strcpy.
1076 * src/symtab.c (copys): Remove, use xstrdup instead.
1078 2000-10-02 Akim Demaille <akim@epita.fr>
1080 * src/gram.h (associativity): New enum type which replaces the
1081 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1082 `right_assoc', `left_assoc' and `non_assoc'.
1083 Adjust all dependencies.
1084 * src/reader.c: Formatting changes.
1085 (LTYPESTR): Don't define it, use it as a literal in
1086 `reader_output_yylsp'.
1087 * src/symtab.h (symbol_class): New enum type which replaces the
1088 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1089 `sunknown', `stoken and `snterm'.
1091 2000-10-02 Akim Demaille <akim@epita.fr>
1093 * src/getargs.c (fixed_outfiles): Rename as...
1094 (yaccflag): for consistency and accuracy.
1095 Adjust dependencies.
1097 2000-10-02 Akim Demaille <akim@epita.fr>
1099 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1100 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1101 difficult and introduced a lot of core dump. It turns out that
1102 Bison used an implementation of `xmalloc' based on `calloc', and
1103 at various places it does depend upon the initialization to 0. I
1104 have not tried to isolate the pertinent places, and all the former
1105 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1106 someone should address this issue.
1108 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1109 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1111 Adjust dependencies.
1112 * src/warshall.h: New file.
1115 2000-10-02 Akim Demaille <akim@epita.fr>
1117 Various anti-`extern in *.c' changes.
1119 * src/system.h: Include `assert.h'.
1121 2000-10-02 Akim Demaille <akim@epita.fr>
1123 * src/state.h (nstates, final_state, first_state, first_shift)
1124 (first_reduction): Move their exportation from here...
1125 * src/LR0.h: to here.
1126 Adjust dependencies.
1127 * src/getargs.c (statisticsflag): New variable.
1128 Add support for `--statistics'.
1129 Adjust dependencies.
1131 Remove a lot of now useless `extern' statements in most files.
1133 2000-10-02 Akim Demaille <akim@epita.fr>
1135 * src/LR0.h: New file.
1138 2000-10-02 Akim Demaille <akim@epita.fr>
1140 * src/print.h: New file.
1142 * src/print.c: Formatting and ordering changes.
1143 (verbose, terse): Replace with...
1144 (print_results): this new function.
1145 Adjust dependencies.
1147 2000-10-02 Akim Demaille <akim@epita.fr>
1149 * src/conflicts.c (conflict_report): New function.
1150 (conflict_log, verbose_conflict_log): Replace with...
1151 (print_conflicts): this function.
1152 Adjust dependencies.
1153 * src/conflicts.h: New file.
1154 Propagate its inclusion.
1156 2000-10-02 Akim Demaille <akim@epita.fr>
1158 * src/nullable.h: New file.
1159 Propagate its inclusion.
1160 * src/nullable.c: Formatting changes.
1162 2000-10-02 Akim Demaille <akim@epita.fr>
1164 * src/reduce.h: New file.
1165 Propagate its inclusion.
1166 * src/reduce.c: Topological sort and other formatting changes.
1167 (bool, TRUE, FALSE): Move their definition to...
1168 * src/system.h: here.
1170 2000-10-02 Akim Demaille <akim@epita.fr>
1172 * src/files.c: Formatting changes.
1173 (tryopen, tryclose, openfiles): Rename as...
1174 (xfopen, xfclose, open_files): this.
1175 (stringappend): static.
1176 * src/files.h: Complete the list of exported symbols.
1179 2000-10-02 Akim Demaille <akim@epita.fr>
1181 * src/reader.h: New file.
1182 Propagate its use instead of tedious list of `extern' and
1184 * src/reader.c: Formatting changes, topological sort,
1187 2000-10-02 Akim Demaille <akim@epita.fr>
1189 * src/lex.h: Prototype `lex.c' exported functions.
1190 * src/reader.c: Adjust.
1191 * src/lex.c: Formatting changes.
1192 (safegetc): Rename as...
1195 2000-10-02 Akim Demaille <akim@epita.fr>
1197 * src/lalr.h: New file.
1198 Propagate its inclusion instead of prototypes and `extern'.
1199 * src/lalr.c: Formatting changes, topological sorting etc.
1201 2000-10-02 Akim Demaille <akim@epita.fr>
1203 * src/output.c (token_actions): Introduce a temporary array,
1204 YYDEFACT, that makes it possible for this function to use
1207 2000-10-02 Akim Demaille <akim@epita.fr>
1209 `user_toknums' is output as a `short[]' in `output.c', while it is
1210 defined as a `int[]' in `reader.c'. For consistency with the
1211 other output tables, `user_toknums' is now defined as a table of
1214 * src/reader.c (user_toknums): Be a short table instead of an int
1216 Adjust dependencies.
1218 Factor the short table outputs.
1220 * src/output.c (output_short_table): New function.
1221 * src/output.c (output_gram, output_stos, output_rule_data)
1222 (output_base, output_table, output_check): Use it.
1224 2000-10-02 Akim Demaille <akim@epita.fr>
1226 * src/output.c (output): Topological sort of the functions, in
1227 order to get rid of the `static' prototypes.
1228 No longer use `register'.
1229 * src/output.h: New file.
1230 Propagate its inclusion in files explicitly prototyping functions
1233 2000-09-21 Akim Demaille <akim@epita.fr>
1235 * src/atgeneral.m4: Update from Autoconf.
1237 2000-09-21 Akim Demaille <akim@epita.fr>
1239 * src/closure.h: New file.
1240 * src/closure.c: Formatting changes, topological sort over the
1241 functions, use of closure.h.
1242 (initialize_closure, finalize_closure): Rename as...
1243 (new_closure, free_closure): these. Adjust dependencies.
1244 * src/LR0.c: Formatting changes, topological sort, use of
1246 (initialize_states): Rename as...
1248 * src/Makefile.am (noinst_HEADERS): Adjust.
1250 2000-09-20 Akim Demaille <akim@epita.fr>
1252 * src/acconfig.h: Don't protect config.h against multiple
1254 Don't define PARAMS.
1255 * src/system.h: Define PARAMS.
1256 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1257 purpose of config.h. system.h must not try to fix wrong
1258 definitions in config.h.
1260 2000-09-20 Akim Demaille <akim@epita.fr>
1262 * src/derives.h: New file.
1263 * src/main.c, src/derives.h: Use it.
1265 * src/Makefile.am (noinst_HEADERS): Adjust.
1267 2000-09-20 Akim Demaille <akim@epita.fr>
1269 * tests/atgeneral.m4: Update from Autoconf.
1270 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1271 (AT_CHECK_CALC): New macros.
1272 Use these macros to test bison with options `', `--raw',
1273 `--debug', `--yacc', `--yacc --debug'.
1275 2000-09-19 Akim Demaille <akim@epita.fr>
1277 * src/output.c: Formatting changes.
1278 * src/machine.h: Remove, leaving its contents in...
1279 * src/system.h: here.
1281 Adjust all dependencies on stdio.h and machine.h.
1282 * src/getargs.h: New file.
1283 Let all `extern' declarations about getargs.c be replaced with
1284 inclusion of `getargs.h'.
1285 * src/Makefile.am (noinst_HEADERS): Adjust.
1287 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1289 (yyerror): Returns void, not int.
1290 * doc/bison.texinfo: Formatting changes.
1292 2000-09-19 Akim Demaille <akim@epita.fr>
1294 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1297 2000-09-18 Akim Demaille <akim@epita.fr>
1299 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1300 * src/Makefile.am (INCLUDES): Don't.
1301 Be ready to fetch headers in lib/.
1303 2000-09-18 Akim Demaille <akim@epita.fr>
1305 * doc/bison.texinfo: Update the copyright.
1306 ANSIfy and GNUify the examples.
1307 Remove the old menu.
1309 2000-09-18 Akim Demaille <akim@epita.fr>
1311 First set of tests: use the `calc' example from the documentation.
1313 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1314 is defined only when YYDEBUG is.
1315 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1316 * src/files.c (tryopen, tryclose): Formatting changes.
1317 Move to the top and be static.
1318 * src/reader.c (read_signed_integer): Likewise.
1319 * tests/calc.m4: New file.
1320 * Makefile.am, suite.m4: Adjust.
1321 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1323 2000-09-18 Akim Demaille <akim@epita.fr>
1325 Add support for an Autotest test suite for Bison.
1327 * m4/m4.m4, m4/atconfig.m4: New files.
1328 * m4/Makefile.am (EXTRA_DIST): Adjust.
1329 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1331 * src/getargs.c: Display a more standard --version message.
1332 * src/reader.c (reader): Formatting changes.
1333 No longer depend upon VERSION_STRING.
1334 * configure.in: No longer use `dnl'.
1335 Set up the test suite and the new directory `tests/.
1336 (VERSION_STRING): Remove.
1338 2000-04-14 Akim Demaille <akim@epita.fr>
1340 * src/reader.c (copy_comment2): New function, same as former
1341 `copy_comment', but outputs into two FILE *.
1342 (copy_comment): Use it.
1343 (parse_union_decl): Use it.
1344 (get_type, parse_start_decl): Use the same `invalid' message.
1345 (parse_start_decl, parse_union_decl): Use the same `multiple'
1347 (parse_union_decl, copy_guard, copy_action): Use the same
1348 `unmatched' message.
1349 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1351 2000-03-31 Akim Demaille <akim@epita.fr>
1353 * src/files.c (tryopen, tryclose): Move to the top.
1356 2000-03-31 Akim Demaille <akim@epita.fr>
1358 * src/main.c (main): Don't call `done', exit does it.
1360 2000-03-31 Akim Demaille <akim@epita.fr>
1362 * allocate.c: s/return (foo)/return foo/.
1365 * output.c: Likewise.
1366 * reader.c: Likewise.
1367 * symtab.c: Likewise.
1368 * vmsgetargs.c: Likewise.
1370 2000-03-31 Akim Demaille <akim@epita.fr>
1372 Clean up the error reporting functions.
1374 * src/report.c: New file.
1375 * src/report.h: Likewise.
1376 * src/Makefile.am: Adjust.
1377 * m4/error.m4: New file.
1378 * m4/Makefile.am: Adjust.
1379 * configure.in (jm_PREREQ_ERROR): Call it.
1380 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1382 (fatal, fatals): Remove. All callers use complain.c::fatal.
1383 (warn, warni, warns, warnss, warnss): Remove. All callers use
1384 complain.c::complain.
1385 (toomany): Remove, use fatal instead.
1386 * src/files.c (done): No argument, use complain_message_count.
1387 * src/main.c (main): Register `done' to `atexit'.
1389 * src/getargs.c (usage): More `fputs', less `fprintf'.
1391 2000-03-28 Akim Demaille <akim@epita.fr>
1393 * lib/: New directory.
1394 * Makefile.am (SUBDIRS): Adjust.
1395 * configure.in: Adjust.
1396 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1398 * src/alloca.c: Moved to lib/.
1399 * src/getopt.c: Likewise.
1400 * src/getopt1.c: Likewise.
1401 * src/getopt.h: Likewise.
1402 * src/ansi2knr.c: Likewise.
1403 * src/ansi2knr.1: Likewise.
1404 * src/Makefile.am: Adjust.
1405 * lib/Makefile.am: New file.
1407 2000-03-28 Akim Demaille <akim@epita.fr>
1409 * src/getargs.c (usage): Refresh the help message.
1411 2000-03-17 Akim Demaille <akim@epita.fr>
1413 * src/getopt1.c: Updated from textutils 2.0e
1414 * src/getopt.c: Likewise.
1415 * src/getopt.h: Likewise.
1417 2000-03-17 Akim Demaille <akim@epita.fr>
1419 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1420 the file name, not the whole `#line LINE FILE'.
1422 2000-03-17 Akim Demaille <akim@epita.fr>
1424 On syntax errors, report the token on which we choked.
1426 * src/bison.s1 (yyparse): In the label yyerrlab, when
1427 YYERROR_VERBOSE, add yychar in msg.
1429 2000-03-17 Akim Demaille <akim@epita.fr>
1431 * src/reader.c (copy_at): New function.
1432 (copy_guard): Use it.
1433 (copy_action): Use it.
1435 2000-03-17 Akim Demaille <akim@epita.fr>
1437 Be kind to translators, save some useless translations.
1439 * src/main.c (banner): New function.
1440 (fatal_banner): Use it.
1441 (warn_banner): Use it.
1443 2000-03-17 Akim Demaille <akim@epita.fr>
1445 * src/reader.c (copy_definition): Use copy_string and
1446 copy_comment. Removed now unused `match', `ended',
1448 (copy_comment, copy_string): Moved, to be visible from
1451 2000-03-17 Akim Demaille <akim@epita.fr>
1453 * src/reader.c (copy_string): Declare `static inline'. No
1454 problems with inline, since it is checked by configure.
1455 (copy_comment): Likewise.
1457 2000-03-17 Akim Demaille <akim@epita.fr>
1459 * src/reader.c (packsymbols): Formatting changes.
1461 2000-03-17 Akim Demaille <akim@epita.fr>
1463 * src/reader.c (copy_comment): New function, factored out from:
1464 (copy_action): Use it. Removed now unused `match', `ended',
1466 (copy_guard): Likewise.
1468 2000-03-17 Akim Demaille <akim@epita.fr>
1470 * src/reader.c (copy_string): New function, factored out from:
1471 (copy_action): Use it.
1472 (copy_guard): Likewise.
1474 2000-03-17 Akim Demaille <akim@epita.fr>
1476 Change the handling of @s so that they behave exactly like $s.
1477 There is now a pseudo variable @$ (readble and writable), location
1478 of the lhs of the rule (by default ranging from the location of
1479 the first symbol of the rhs, to the location of the last symbol,
1480 or, if the rhs is empty, YYLLOC).
1482 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1484 (yyparse): When providing a default semantic action, provide a
1485 default location action.
1486 (after the $): No longer change `*YYLSP', just stack YYLOC the
1487 same way you stack YYVAL.
1488 * src/reader.c (read_declarations): Use warns.
1489 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1490 (copy_action, case '@'): Likewise.
1491 Use a standard error message, to save useless work from
1494 2000-03-17 Akim Demaille <akim@epita.fr>
1496 * src/bison.s1: Formatting and cosmetics changes.
1497 * src/reader.c: Likewise.
1498 Update the Copyright notice.
1500 2000-03-17 Akim Demaille <akim@epita.fr>
1502 * src/bison.s1 (#line): All set to `#line' only, since the
1503 Makefile now handles them.
1505 2000-03-16 Akim Demaille <akim@epita.fr>
1507 * src/output.c (output_rule_data): Output the documentation of
1509 (Copyright notice): Update.
1512 2000-03-16 Akim Demaille <akim@epita.fr>
1514 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1515 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1516 One `#if YYDEBUG' remains, since it uses variables which are
1517 defined only if `YYDEBUG != 0'.
1519 2000-03-16 Akim Demaille <akim@epita.fr>
1521 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1522 and related variables so that the similarities are highlighted.
1524 2000-03-16 Akim Demaille <akim@epita.fr>
1526 * src/bison.s1: Properly indent CPP directives.
1528 2000-03-16 Akim Demaille <akim@epita.fr>
1530 * src/bison.s1: Properly indent the `alloca' CPP section.
1532 2000-03-16 Akim Demaille <akim@epita.fr>
1534 Do not hard code values of directories in `configure.in'.
1535 Update the `configure' tool chain.
1537 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1539 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1540 (AC_OUTPUT): Add m4/Makefile.
1541 Bump to bison 1.28a, 1.29 has never been released.
1542 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1543 handled via src/Makefile.am.
1544 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1545 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1547 * Makefile.am (SUBDIRS): Add m4.
1548 (ACLOCAL_AM_FLAGS): New variable.
1549 (AUTOMAKE_OPTIONS): Add check-news.
1550 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1551 the proper line number and file name.
1552 (DEFS): Propagate the location of bison library files and of the
1554 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1556 * acinclude.m4: Remove, replaced by the directory m4.
1557 * m4/Makefile.am (EXTRA_DIST): New variable.
1558 * m4/gettext.m4: New file, from the fileutils.
1559 * m4/lcmessage.m4: Likewise
1560 * m4/progtest.m4: Likewise.
1561 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1563 2000-03-10 Akim Demaille <akim@epita.fr>
1566 Formatting changes of various comments.
1567 Respect the GNU coding standards at various places.
1568 Don't use `_()' when no translation is needed.
1570 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1573 OS/2 honors TMPDIR environment variable.
1575 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1577 * doc/bison.texinfo: Tweaked spelling and grammar.
1579 Removed reference to price of printed copy.
1580 Mention BISON_SIMPLE and BISON_HAIRY.
1582 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1584 * configure.in, NEWS:
1585 Bison 1.29 released.
1587 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1589 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1590 Added reference card.
1592 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1594 * po/ru.po: Added Russian translation.
1596 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1598 * configure.in: Added Russian translation.
1600 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1602 * configure.in, NEWS, README:
1603 Released version 1.28.
1605 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1608 Squashed redefinition warning on some systems.
1610 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1611 Have configure build version string instead of relying on ANSI string
1614 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1616 * po/POTFILES.in: Got rid of version.c.
1618 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1620 * acconfig.h, configure.in:
1621 Have configure build version string instead of relying on ANSI string
1624 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1627 Dropped mention of `+' for long-named options.
1629 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1631 * src/files.c: Added <unistd.h> for unlink().
1633 * src/Makefile.am, src/system.h:
1636 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1638 * README: Added a FAQ list.
1640 * configure.in, acconfig.h:
1643 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1645 * doc/FAQ, doc/Makefile.am:
1648 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1650 * src/alloc.h, src/symtab.h, src/version.c:
1651 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1653 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1655 * src/.cvsignore, src/Makefile.am:
1656 Reorganized: sources in `src', documentation in `doc'.
1658 * src/lex.c (literalchar):
1659 fixed the code for escaping double quotes (thanks
1662 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1664 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1665 Adjusted paths to reflect directory reorganization.
1667 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1669 * doc/.cvsignore, doc/Makefile.am:
1670 Reorganized: sources in `src', documentation in `doc'.
1672 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1675 Updated AC_INIT file to reflect directory reorganization.
1677 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1678 Reorganized: sources in `src', documentation in `doc'.
1680 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1683 Don't declare calloc() and realloc() if not necessary.
1685 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1687 * configure.in, acconfig.h, acinclude.m4:
1688 Don't declare calloc() and realloc() if not necessary.
1690 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1692 * po/.cvsignore: Added i18n support.
1694 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1696 * acconfig.h, configure.in, Makefile.am:
1699 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1701 * src/bison.s1: Fixed #line numbers.
1703 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1705 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1706 Added PO files from Translation Project.
1708 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1711 Added support for non-ANSI compilers (ansi2knr).
1713 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1715 * configure.in: Bumped version number to 1.27.
1718 Added `bison.simple' to list of files removed by `make distclean'.
1720 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1722 * src/files.c, src/files.h:
1723 Defined locations of parser files in config.h instead of Makefile.
1725 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1727 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1728 Defined locations of parser files in config.h instead of Makefile.
1730 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1733 Removed inappropriate use of $< macro.
1735 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1737 * po/Makefile.in.in, po/POTFILES.in:
1738 Add `po' directory skeleton.
1740 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1742 * README: Document help-bison list.
1744 * configure.in: Add check for mkstemp().
1746 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1748 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1749 Hush a few compiler warnings.
1752 Add tryclose(), which verifies that fclose was successful.
1753 Hush a couple of compiler warnings.
1755 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1757 * Makefile.am, OChangeLog:
1758 ChangeLog is now automatically generated. Include the old version as
1761 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1763 * 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:
1766 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1768 * doc/bison.texinfo: Fix formatting glitch.
1770 * doc/bison.texinfo: Update FSF address.
1772 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1774 * acconfig.h: Update FSF address.
1776 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1779 Don't define PACKAGE here, since config.h defines it.
1781 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1783 * src/reader.c: Update copyright date.
1786 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1787 favor of output directly to stderr (avoids buffer overruns).
1789 * src/reader.c: Some checks for premature EOF.
1791 * 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:
1792 Use prototypes if the compiler understands them.
1794 * src/files.c: Honor TMPDIR on Unix hosts.
1795 Use prototypes if the compiler understands them.
1798 Fix a couple of buffer overrun bugs.
1799 Use prototypes if the compiler understands them.
1801 * src/system.h: Include unistd.h and ctype.h.
1802 Use #ifdef instead of #if for NLS symbols.
1804 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1806 * doc/bison.texinfo:
1807 Delete comment "consider using @set for edition number, etc..." since
1808 we now are doing so.
1810 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1813 Use prototypes if the compiler understands them.
1815 * NEWS: Document 1.26 highlights.
1817 * Makefile.am: Require Automake 1.3 or later.
1820 Use prototypes if the compiler understands them.
1822 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1825 Use VERSION symbol from automake for version number.
1827 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1829 * acconfig.h, configure.in, version.cin:
1830 Use VERSION symbol from automake for version number.
1832 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1835 Distribute original version of simple parser (bison.s1), not built
1836 version (bison.simple).
1838 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1840 * doc/bison.texinfo: Add info dir entry.
1842 * doc/bison.texinfo:
1843 Let automake put version number into documentation.
1845 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1847 * src/bison.cld, src/build.com, src/vmshlp.mar:
1848 Add non-RCS files from /gd/gnu/bison.
1850 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1853 Document the BISON_HAIRY and BISON_SIMPLE variables.
1855 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1857 * src/version.c: Build version.c automatically.
1860 Fix token numbering (used to start at 258, not 257).
1862 * src/system.h: Include config.h.
1864 * src/getargs.c: Update bug report address.
1866 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1867 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1869 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1872 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1874 * configure.in, version.cin:
1875 Build version.c automatically.
1877 * AUTHORS: Add AUTHORS file.
1879 * README: Update bug report address.
1882 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1884 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1887 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1889 * doc/bison.texinfo: Clean up some formatting.
1891 1998-05-05 Richard Stallman <rms@gnu.org>
1893 * doc/bison.texinfo:
1894 Explain better why to make a pure parser.
1896 1998-01-05 Richard Stallman <rms@gnu.org>
1898 * src/files.c (openfiles):
1899 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1900 find a temporary directory, if possible. Do not unlink files while
1903 1997-08-25 Richard Stallman <rms@gnu.org>
1905 * src/reader.c (stack_offset;):
1906 Change some warni to warns.
1908 * src/lex.c (literalchar): Use warns, not warni.
1910 1997-06-28 Richard Stallman <rms@gnu.org>
1912 * src/bison.s1: Add a Bison version comment.
1914 * src/main.c (fatal, warn, berror):
1917 1997-06-28 Richard Stallman <rms@gnu.org>
1919 * Makefile.in (bison_version): New variable.
1920 (dist): Use that variable.
1921 (bison.s1): Substitute the Bison version into bison.simple.
1923 * bison.simple: Add a Bison version comment.
1925 1997-06-18 Richard Stallman <rms@gnu.org>
1927 * src/main.c (fatal, warn, berror):
1928 Make error messages standard.
1929 (toomany): Improve error message text.
1931 * 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:
1932 new.h renamed to alloc.h.
1934 1997-06-18 Richard Stallman <rms@gnu.org>
1936 * Makefile.in: new.h renamed to alloc.h.
1938 1997-05-24 Richard Stallman <rms@gnu.org>
1940 * src/lex.c (literalchar):
1941 Fix the code for escaping \, " and '.
1943 (lex): Avoid trouble when there are many chars
1944 to discard in a char literal with just several chars in it.
1946 1997-05-17 Richard Stallman <rms@gnu.org>
1949 Use malloc, if using alloca is troublesome.
1950 (YYSTACK_USE_ALLOCA): New flag macro.
1951 Define it for some systems and compilers.
1952 (YYSTACK_ALLOC): New macro.
1953 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1954 If it was malloc'd, free it.
1956 1997-05-17 Richard Stallman <rms@gnu.org>
1959 Use malloc, if using alloca is troublesome.
1960 (YYSTACK_USE_ALLOCA): New flag macro.
1961 Define it for some systems and compilers.
1962 (YYSTACK_ALLOC): New macro.
1963 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1964 If it was malloc'd, free it.
1966 1997-04-23 Richard Stallman <rms@gnu.org>
1969 (alloca) [__hpux]: Always define as __builtin_alloca.
1971 1997-04-23 Richard Stallman <rms@gnu.org>
1974 (alloca) [__hpux]: Always define as __builtin_alloca.
1976 1997-04-22 Richard Stallman <rms@gnu.org>
1979 [__hpux]: Include alloca.h (right for HPUX 10)
1980 instead of declaring alloca (right for HPUX 9).
1982 * src/bison.s1 (__yy_memcpy):
1983 Declare arg `count' as unsigned int.
1984 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1986 1997-04-22 Richard Stallman <rms@gnu.org>
1989 [__hpux]: Include alloca.h (right for HPUX 10)
1990 instead of declaring alloca (right for HPUX 9).
1992 * bison.simple (__yy_memcpy):
1993 Declare arg `count' as unsigned int.
1994 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1996 1997-01-03 Richard Stallman <rms@gnu.org>
1998 * src/allocate.c: [__STDC__ or _MSC_VER]:
1999 Declare calloc and realloc to return void *.
2001 1997-01-02 Richard Stallman <rms@gnu.org>
2004 [_MSC_VER]: Include stdlib.h and process.h.
2005 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2007 * src/main.c (main): Return FAILURE as a value.
2008 (printable_version): Declare arg as int, not char.
2010 1997-01-02 Richard Stallman <rms@gnu.org>
2012 * Makefile.in (dist):
2013 Explicitly check for symlinks, and copy them.
2015 1996-12-19 Richard Stallman <rms@gnu.org>
2018 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2020 1996-12-18 Paul Eggert <eggert@gnu.org>
2022 * src/bison.s1 (yyparse):
2023 If __GNUC__ and YYPARSE_PARAM are both defined,
2024 declare yyparse to have a void * argument.
2026 1996-12-18 Paul Eggert <eggert@gnu.org>
2028 * bison.simple (yyparse):
2029 If __GNUC__ and YYPARSE_PARAM are both defined,
2030 declare yyparse to have a void * argument.
2032 1996-12-17 Richard Stallman <rms@gnu.org>
2034 * src/reduce.c (nbits): Add some casts.
2036 1996-08-12 Richard Stallman <rms@gnu.org>
2038 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2040 1996-08-12 Richard Stallman <rms@gnu.org>
2042 * bison.simple: Test _MSDOS as well as _MSDOS_.
2044 1996-07-31 Richard Stallman <rms@gnu.org>
2047 [__sun && __i386]: Include alloca.h.
2049 1996-07-31 Richard Stallman <rms@gnu.org>
2052 [__sun && __i386]: Include alloca.h.
2054 1996-07-30 Richard Stallman <rms@gnu.org>
2056 * src/bison.s1: Comment change.
2058 * src/bison.s1: Test _MSDOS_, not MSDOS.
2060 1996-07-30 Richard Stallman <rms@gnu.org>
2062 * bison.simple: Comment change.
2064 * bison.simple: Test _MSDOS_, not MSDOS.
2066 1996-06-01 Richard Stallman <rms@gnu.org>
2068 * 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:
2069 Insert `_' macro around many string constants.
2072 Insert `_' macro around many string constants.
2074 (main): Call setlocale, bindtextdomain and textdomain.
2076 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2077 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2078 [ENABLE_NLS]: Include libintl.h.
2079 [ENABLE_NLS] (gettext): Define.
2080 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2081 (N_, PACKAGE, LOCALEDIR): New macros.
2083 1996-06-01 Richard Stallman <rms@gnu.org>
2085 * POTFILES.in: New file.
2087 * Makefile.in (allocate.o):
2088 Define target explicitly.
2090 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2091 (LDFLAGS): Set to @LDFLAGS@.
2092 (configure): Run autoconf only if preceding `cd' succeeds.
2093 (bison.s1): Redirect output to temporary file then move the
2094 temporary to the target, rather than redirecting directly to bison.s1.
2095 (clean): Remove config.status and config.log.
2096 (distclean): Don't remove config.status here.
2098 1996-05-12 Richard Stallman <rms@gnu.org>
2101 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2103 1996-05-12 Richard Stallman <rms@gnu.org>
2106 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2108 1996-05-11 Richard Stallman <rms@gnu.org>
2110 * src/bison.s1 (__yy_memcpy):
2111 Really reorder the args, as was supposedly done on Feb 14 1995.
2112 (yyparse): Calls changed accordingly.
2114 1996-05-11 Richard Stallman <rms@gnu.org>
2116 * Makefile.in (dist): Don't use $(srcdir).
2118 * bison.simple (__yy_memcpy):
2119 Really reorder the args, as was supposedly done on Feb 14 1995.
2120 (yyparse): Calls changed accordingly.
2122 1996-01-27 Richard Stallman <rms@gnu.org>
2124 * src/output.c (output_rule_data):
2125 Test YYERROR_VERBOSE in the conditional
2126 around the definition of ttyname.
2128 1995-12-29 Richard Stallman <rms@gnu.org>
2131 Fix line numbers in #line commands.
2133 1995-12-29 Richard Stallman <rms@gnu.org>
2136 Fix line numbers in #line commands.
2138 1995-12-27 Richard Stallman <rms@gnu.org>
2140 * src/bison.s1 (YYPARSE_PARAM_DECL):
2141 In C++, make it always null.
2142 (YYPARSE_PARAM_ARG): New macro.
2143 (yyparse): Use YYPARSE_PARAM_ARG.
2145 1995-12-27 Richard Stallman <rms@gnu.org>
2147 * bison.simple (YYPARSE_PARAM_DECL):
2148 In C++, make it always null.
2149 (YYPARSE_PARAM_ARG): New macro.
2150 (yyparse): Use YYPARSE_PARAM_ARG.
2152 1995-11-29 Richard Stallman <rms@gnu.org>
2154 * doc/bison.texinfo:
2155 Describe literal string tokens, %raw, %no_lines, %token_table.
2157 1995-11-29 Daniel Hagerty <hag@gnu.org>
2159 * doc/bison.texinfo: Fixed update date
2161 1995-10-16 Richard Stallman <rms@gnu.org>
2163 * src/version.c: Version 1.25.
2165 1995-10-16 Richard Stallman <rms@gnu.org>
2167 * NEWS: *** empty log message ***
2169 1995-10-16 Richard Stallman <rms@gnu.org>
2171 * doc/bison.1, doc/bison.rnh:
2174 1995-10-15 Richard Stallman <rms@gnu.org>
2176 * src/vmsgetargs.c, src/getargs.c:
2177 Added -n, -k, and -raw switches.
2178 (noparserflag, toknumflag, rawtoknumflag): New variables.
2180 * src/symtab.h (SALIAS):
2181 New #define for adding aliases to %token.
2182 (struct bucket): Added `alias' field.
2184 * src/reduce.c (reduce_grammar):
2185 Revise error message.
2186 (print_notices): Remove final `.' from error message.
2188 * src/reader.c (reader_output_yylsp):
2190 (readgram): Use `#if 0' around code that accepted %command
2191 inside grammar rules: The documentation doesn't allow it,
2192 and it will fail since the %command processors scan for the next %.
2193 (parse_token_decl): Extended the %token
2194 declaration to allow a multi-character symbol as an alias.
2195 (parse_thong_decl): New function.
2196 (read_declarations): Added %thong declarations.
2197 (read_declarations): Handle NOOP to deal with allowing
2198 % declarations as another means to specify the flags.
2199 (readgram): Allow %prec prior to semantics embedded in a rule.
2200 (skip_to_char, read_declarations, copy_definition)
2201 (parse_token_decl, parse_start_decl, parse_type_decl)
2202 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2203 (get_type_name, copy_guard, copy_action, readgram)
2204 (get_type, packsymbols): Revised most error messages.
2205 Changed `fatal' to `warnxxx' to avoid aborting for error.
2206 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2207 (read_declarations): Improve the error message for
2208 an invalid character. Do not abort.
2209 (read_declarations, copy_guard, copy_action): Use
2210 printable_version to avoid unprintable characters in printed output.
2211 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2212 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2213 Allow the type of a non-terminal can be given
2214 more than once, as long as all specifications give the same type.
2217 (output_headers, output_trailers, output, output_gram)
2218 (output_rule_data): Implement noparserflag variable.
2219 Implement toknumflag variable.
2220 (output): Call reader_output_yylsp to output LTYPESTR.
2222 * src/main.c (main):
2223 If reader sees an error, don't process the grammar.
2224 (fatals): Updated to not use VARARGS1.
2225 (printable_version, int_to_string, warn, warni, warns, warnss)
2226 (warnsss): New error reporting functions. Avoid abort for error.
2229 Added THONG and NOOP for alias processing.
2230 Added SETOPT for the new code that allows setting options with %flags.
2233 Include getopt.h. Add some extern decls.
2234 (safegetc): New function to deal with EOF gracefully.
2235 (literalchar); new function to deal with reading \ escapes.
2236 (lex): Use literalchar.
2237 (lex): Implemented "..." tokens.
2238 (literalchar, lex, parse_percent_token): Made tokenbuffer
2239 always contain the token. This includes growing the token
2240 buffer while reading an integer.
2241 (parse_percent_token): Replaced if-else statement with percent_table.
2242 (parse_percent_token): Added % declarations as another
2243 way to specify the flags -n, -l, and -r. Also added hooks for
2244 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2245 major changes to files.c.
2246 (lex) Retain in the incoming stream a character following
2248 (skip_white_space, lex): Revised most error messages
2249 and changed fatal to warn to avoid aborting.
2250 (percent_table): Added %thong declarations.
2252 * src/gram.h: Comment changes.
2254 * src/files.c (openfiles, open_extra_files, done):
2256 and actfile file. Handle noparserflag. Both for -n switch.
2258 * src/conflicts.c (resolve_sr_conflict):
2259 Remove use of alloca.
2261 1995-06-01 Jim Meyering <meyering@gnu.org>
2263 * doc/bison.texinfo: *** empty log message ***
2265 1995-05-06 Richard Stallman <rms@gnu.org>
2267 * src/bison.s1: Comment change.
2269 1995-05-06 Richard Stallman <rms@gnu.org>
2271 * bison.simple: Comment change.
2273 1995-05-03 Richard Stallman <rms@gnu.org>
2275 * src/version.c: Version now 1.24.
2277 * src/bison.s1: Change distribution terms.
2279 * src/version.c: Version now 1.23.
2281 1995-05-03 Richard Stallman <rms@gnu.org>
2283 * doc/bison.texinfo:
2284 Rewrite "Conditions for Using Bison".
2285 Update version to 1.24.
2287 1995-05-03 Richard Stallman <rms@gnu.org>
2289 * bison.simple: Change distribution terms.
2291 1995-02-23 Richard Stallman <rms@gnu.org>
2293 * src/files.c: Test __VMS_POSIX as well as VMS.
2295 1995-02-14 Jim Meyering <meyering@gnu.org>
2297 * src/bison.s1 (__yy_memcpy):
2298 Renamed from __yy_bcopy to avoid
2299 confusion. Reverse FROM and TO arguments to be consistent with
2302 1995-02-14 Jim Meyering <meyering@gnu.org>
2304 * bison.simple (__yy_memcpy):
2305 Renamed from __yy_bcopy to avoid
2306 confusion. Reverse FROM and TO arguments to be consistent with
2309 1994-11-10 David J. MacKenzie <djm@gnu.org>
2315 * Makefile.in (DISTFILES): Include NEWS.
2317 * Makefile.in (DISTFILES):
2318 Include install-sh, not install.sh.
2320 * configure.in: Update to Autoconf v2 macro names.
2322 1994-10-05 David J. MacKenzie <djm@gnu.org>
2324 * Makefile.in: fix typo
2326 * Makefile.in (prefix, exec_prefix):
2327 Let configure set them.
2329 1994-09-28 David J. MacKenzie <djm@gnu.org>
2331 * Makefile.in: Set datadir to $(prefix)/share.
2333 1994-09-15 Richard Stallman <rms@gnu.org>
2336 Update copyright notice and GPL version.
2338 1994-09-15 Richard Stallman <rms@gnu.org>
2341 Update copyright notice and GPL version.
2343 1994-07-12 Richard Stallman <rms@gnu.org>
2345 * src/reduce.c, src/reader.c:
2348 1994-05-05 David J. MacKenzie <djm@gnu.org>
2350 * Makefile.in: entered into RCS
2352 1994-03-26 Richard Stallman <rms@gnu.org>
2354 * src/bison.s1: entered into RCS
2356 1994-03-26 Richard Stallman <rms@gnu.org>
2358 * bison.simple: entered into RCS
2360 1994-03-25 Richard Stallman <rms@gnu.org>
2362 * src/main.c: entered into RCS
2364 1994-03-24 Richard Stallman <rms@gnu.org>
2366 * src/conflicts.c: entered into RCS
2368 1994-01-02 Richard Stallman <rms@gnu.org>
2370 * Makefile.in: *** empty log message ***
2372 1993-11-21 Richard Stallman <rms@gnu.org>
2374 * src/bison.s1: *** empty log message ***
2376 1993-11-21 Richard Stallman <rms@gnu.org>
2378 * doc/bison.texinfo: entered into RCS
2380 * doc/bison.texinfo: *** empty log message ***
2382 1993-11-21 Richard Stallman <rms@gnu.org>
2384 * bison.simple: *** empty log message ***
2386 1993-10-25 David J. MacKenzie <djm@gnu.org>
2388 * doc/bison.texinfo: *** empty log message ***
2390 1993-10-19 Richard Stallman <rms@gnu.org>
2392 * src/bison.s1: *** empty log message ***
2394 1993-10-19 Richard Stallman <rms@gnu.org>
2396 * bison.simple: *** empty log message ***
2398 1993-10-14 Richard Stallman <rms@gnu.org>
2400 * src/bison.s1: *** empty log message ***
2402 1993-10-14 Richard Stallman <rms@gnu.org>
2404 * bison.simple: *** empty log message ***
2406 1993-09-14 David J. MacKenzie <djm@gnu.org>
2408 * doc/bison.texinfo: *** empty log message ***
2410 1993-09-13 Noah Friedman <friedman@gnu.org>
2412 * Makefile.in: *** empty log message ***
2414 1993-09-10 Richard Stallman <rms@gnu.org>
2416 * src/conflicts.c: *** empty log message ***
2418 * src/system.h: entered into RCS
2420 1993-09-10 Richard Stallman <rms@gnu.org>
2422 * doc/bison.1: entered into RCS
2424 1993-09-06 Noah Friedman <friedman@gnu.org>
2426 * src/version.c: entered into RCS
2428 1993-09-06 Noah Friedman <friedman@gnu.org>
2430 * Makefile.in: *** empty log message ***
2432 1993-07-30 David J. MacKenzie <djm@gnu.org>
2434 * Makefile.in: *** empty log message ***
2436 1993-07-24 Richard Stallman <rms@gnu.org>
2438 * src/bison.s1: *** empty log message ***
2440 1993-07-24 Richard Stallman <rms@gnu.org>
2442 * bison.simple: *** empty log message ***
2444 1993-07-08 David J. MacKenzie <djm@gnu.org>
2446 * Makefile.in: *** empty log message ***
2448 1993-07-04 Richard Stallman <rms@gnu.org>
2450 * src/bison.s1: *** empty log message ***
2452 1993-07-04 Richard Stallman <rms@gnu.org>
2454 * bison.simple: *** empty log message ***
2456 1993-06-26 David J. MacKenzie <djm@gnu.org>
2458 * src/getargs.c: entered into RCS
2460 1993-06-26 David J. MacKenzie <djm@gnu.org>
2462 * doc/bison.texinfo: *** empty log message ***
2464 * doc/bison.1: New file.
2466 1993-06-25 Richard Stallman <rms@gnu.org>
2468 * src/getargs.c: New file.
2470 1993-06-16 Richard Stallman <rms@gnu.org>
2472 * src/bison.s1: *** empty log message ***
2474 1993-06-16 Richard Stallman <rms@gnu.org>
2476 * bison.simple: *** empty log message ***
2478 1993-06-03 Richard Stallman <rms@gnu.org>
2480 * src/bison.s1: New file.
2482 1993-06-03 Richard Stallman <rms@gnu.org>
2484 * doc/bison.texinfo: *** empty log message ***
2486 1993-06-03 Richard Stallman <rms@gnu.org>
2488 * bison.simple: New file.
2490 1993-05-19 Richard Stallman <rms@gnu.org>
2492 * doc/bison.texinfo: New file.
2494 1993-05-07 Noah Friedman <friedman@gnu.org>
2496 * Makefile.in: *** empty log message ***
2498 1993-04-28 Noah Friedman <friedman@gnu.org>
2500 * src/reader.c: *** empty log message ***
2502 1993-04-23 Noah Friedman <friedman@gnu.org>
2504 * src/alloc.h: entered into RCS
2506 1993-04-20 David J. MacKenzie <djm@gnu.org>
2508 * src/version.c: *** empty log message ***
2510 * src/files.c, src/allocate.c:
2513 * src/reader.c: *** empty log message ***
2515 * src/lex.c: entered into RCS
2517 * src/conflicts.c: New file.
2519 * src/symtab.c: entered into RCS
2521 * src/alloc.h: New file.
2523 * src/LR0.c: entered into RCS
2525 1993-04-18 Noah Friedman <friedman@gnu.org>
2527 * src/reader.c: New file.
2529 * src/version.c: *** empty log message ***
2531 1993-04-18 Noah Friedman <friedman@gnu.org>
2533 * Makefile.in: *** empty log message ***
2535 1993-04-17 Noah Friedman <friedman@gnu.org>
2537 * Makefile.in: *** empty log message ***
2539 1993-04-15 Richard Stallman <rms@gnu.org>
2541 * src/main.c, src/files.c:
2544 1993-04-15 Noah Friedman <friedman@gnu.org>
2546 * configure.in: entered into RCS
2548 * configure.in: *** empty log message ***
2550 * configure.in: New file.
2552 1993-04-14 Richard Stallman <rms@gnu.org>
2554 * Makefile.in: New file.
2556 1993-04-13 Richard Stallman <rms@gnu.org>
2558 * src/version.c: New file.
2560 1993-03-25 Richard Stallman <rms@gnu.org>
2562 * src/output.c: entered into RCS
2564 1992-09-25 Richard Stallman <rms@gnu.org>
2566 * configure.bat: entered into RCS
2568 1992-06-22 Richard Stallman <rms@gnu.org>
2570 * src/vmsgetargs.c: entered into RCS
2572 1992-06-22 Richard Stallman <rms@gnu.org>
2574 * doc/bison.rnh: entered into RCS
2576 1992-04-20 David J. MacKenzie <djm@gnu.org>
2578 * README: entered into RCS
2580 1992-01-22 Richard Stallman <rms@gnu.org>
2582 * src/machine.h: entered into RCS
2584 1991-12-21 Richard Stallman <rms@gnu.org>
2586 * src/lalr.c, src/closure.c:
2589 1991-12-20 Richard Stallman <rms@gnu.org>
2591 * src/state.h: entered into RCS
2593 1991-12-18 Richard Stallman <rms@gnu.org>
2595 * src/print.c, src/nullable.c, src/derives.c:
2598 1991-11-03 David J. MacKenzie <djm@gnu.org>
2600 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2603 1988-09-09 Richard Stallman <rms@gnu.org>
2605 * src/bison.hairy: entered into RCS
2607 1987-12-16 Richard Stallman <rms@gnu.org>
2609 * REFERENCES: entered into RCS