1 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
3 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
5 * src/bison.simple: Add `%%definitions'.
7 2001-08-28 Marc Autret <autret_m@epita.fr>
9 * config/depcomp: New file.
11 2001-08-27 Paul Eggert <eggert@twinsun.com>
13 * src/bison.simple (yyparse): Don't take the address of an
14 item before the start of an array, as that doesn't conform to
17 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
19 * src/output.c (output): Remove the initialization of the macro
20 obstack. It was done too late here.
22 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
24 (reader): Initialize the macro obstack here, since we need it to grow
27 * src/reader.h: Declare the macro obstack as extern.
29 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
31 * src/output.c (output_parser): Fix. Store single '%' characters in
32 the output obstack instead of throwing them away.
34 2001-08-27 Akim Demaille <akim@epita.fr>
36 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
38 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
40 * lib/Makefile.am: Adjust.
42 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
44 * src/bison.simple: Update and add '%%' directives.
46 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
48 * src/reader.c (reader): Remove calls to 'output_headers' and
49 'output_trailers'. Remove some C output.
50 (readgram): Disable a piece of code that was writing a default
51 definition for 'YYSTYPE'.
52 (reader_output_yylsp): Remove.
53 (packsymbols): Output token defintions to a macro.
54 (copy_definition): Disable C output.
56 * src/reader.c (parse_macro_decl): New function used to parse macro
58 (copy_string2): Put the body of copy_string into this new function.
59 Add a parameter to let the caller choose whether he wants to copy the
60 string delimiters or not.
61 (copy_string): Be a simple call to copy_string2 with the last argument
63 (read_declarations): Add case for macro definition.
64 (copy_identifier): New.
65 (parse_macro_decl): Read macro identifiers using copy_identifier
68 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
70 * src/output.c (prepare): Add prefixed names.
71 (output_parser): Output semantic actions.
72 (output_parser): Fix bug on '%%line' directives.
74 * src/output.c (output_headers): Remove. The C code printed by this
75 function should now be in the skeletons.
76 (output_trailers): Remove.
77 (output): Disable call to 'reader_output_yylsp'.
78 (output_rule_data): Do not output tables to the table obstack.
80 * src/output.c: Remove some C dedicated output.
81 Improve the use of macro and output obstacks.
82 (output_defines): Remove.
84 * src/output.c (output_token_translations): Associate 'translate'
85 table with a macro. No output to the table obstack.
86 (output_gram): Same for 'rhs' and 'prhs'.
87 (output_stos): Same for 'stos'.
88 (output_rule_data): Same for 'r1' and 'r2'.
89 (token_actions): Same for 'defact'.
90 (goto_actions): Same for 'defgoto'.
91 (output_base): Same for 'pact' and 'pgoto'.
92 (output_table): Same for 'table'.
93 (output_check): Same for 'check'.
95 * src/output.c (output_table_data): New function.
96 (output_short_table): Remove.
97 (output_short_or_char_table): Remove.
99 * src/output.c (output_parser): Replace most of the skeleton copy code
100 with something new. Skeletons are now processed character by character
101 rather than line by line, and Bison looks for '%%' macros. This is the
102 first step in making Bison's output process (a lot) more flexible.
103 (output_parser): Use the macro table.
105 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
107 * src/main.c (main): Initialize the macro table.
109 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
111 * src/lex.c (percent_table): Add tok_define.
112 * src/lex.h: Add tok_define.
114 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
116 * src/macrotab.c: New file.
117 * src/macrotab.h: New file.
118 * src/Makefile.am: Update.
120 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
122 * lib/hash.c: New file.
123 * lib/hash.h: New file.
124 * lib/Makefile.am: Update.
126 2001-08-15 Akim Demaille <akim@epita.fr>
130 2001-08-15 Marc Autret <autret_m@epita.fr>
132 * src/reader.c (readgram): Indent output macro YYSTYPE.
133 (packsymbols): Likewise.
134 (output_token_defines): Likewise.
135 * src/files.c: Standardize.
136 (compute_header_macro): New.
137 (defines_obstack_save): New. Use compute_header_macro.
138 (output_files): Update. Use defines_obstack_save.
140 2001-08-15 Akim Demaille <akim@epita.fr>
142 * doc/bison.texinfo (Table of Symbols): Document
145 2001-08-15 Akim Demaille <akim@epita.fr>
147 * missing: Update from CVS Automake.
148 * config/config.guess, config/config.sub, config/texinfo.tex:
151 2001-08-15 Akim Demaille <akim@epita.fr>
153 * Makefile.maint: Sync with CVS Autoconf.
155 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
157 * doc/bison.texinfo: Include GNU Free Documentation License from
159 * doc/fdl.texi: Add to package.
161 2001-08-14 Marc Autret <autret_m@epita.fr>
163 Turn on %{source,header}_extension features.
165 * src/lex.c (percent_table): Un-CPP out header_extension and
167 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
168 (compute_exts_from_src): Remove conditions. It restores priorities
171 2001-08-14 Marc Autret <autret_m@epita.fr>
173 * src/files.c (compute_base_names): Add extensions computing when
174 `--file-prefix' used.
175 Standardize function calls.
177 2001-08-13 Marc Autret <autret_m@epita.fr>
179 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
180 defining it (defined but null disables alloca).
182 2001-08-13 Marc Autret <autret_m@epita.fr>
184 * src/bison.simple (_yy_memcpy): CPP reformat.
186 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
188 * tests/atconfig.in (CPPFLAGS): Fix.
190 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
192 * doc/bison.texinfo: Include GNU General Public License from
194 * doc/gpl.texi: Add to package.
196 2001-08-10 Marc Autret <autret_m@epita.fr>
198 * src/print_graph.h: Fix.
199 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
201 2001-08-10 Akim Demaille <akim@epita.fr>
203 * src/system.h: Provide default declarations for stpcpy, strndup,
206 2001-08-10 Robert Anisko <anisko_r@epita.fr>
208 * doc/bison.texinfo (Locations): Update @$ stuff.
210 2001-08-09 Robert Anisko <anisko_r@epita.fr>
212 * src/bison.simple (YYLLOC_DEFAULT): Update.
215 2001-08-08 Marc Autret <autret_m@epita.fr>
217 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
218 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
219 Reported by Fabrice Bauzac.
221 2001-08-08 Marc Autret <autret_m@epita.fr>
223 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
224 * src/vcg.c (output_node): Fix.
225 * src/vcg.h: Cleanup.
226 * src/print_graph.c: Add comments.
227 (node_output_size): New global variable. Simplify the formatting of
228 the VCG graph output.
229 (print_actions): Unused code is now used. It notifies the final state
230 and no action states in the VCG graph. It also give the reduce actions.
231 The `shift and goto' edges are red and the `go to state' edges are
233 Get the current node name and node_obstack by argument.
234 (node_obstack): New variable.
235 (print_state): Manage node_obstack.
236 (print_core): Use node_obstack given by argument.
237 A node is not only computed here but in print_actions also.
238 (print_graph): CPP out useless code instead of commenting it.
240 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
242 * tests/atconfig.in (CPPFLAGS): Fix.
244 2001-08-07 Akim Demaille <akim@epita.fr>
246 * src/print_graph.c (quote): New.
247 (print_core): Use it.
249 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
251 * src/vcg.c (complain.h): Include it.
252 Unepitaize `return' invocations.
253 [NDEBUG] (main): Remove.
254 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
255 * src/files.c (open_files): Initialize graph_obstack.
256 * src/print_graph.c (print_actions): CPP out useless code.
257 (print_core): Don't output the last `\n' in labels.
259 * src/files.c (output_files): Output the VCG file.
260 * src/main.c (main): Invoke print_graph ();
262 2001-08-06 Marc Autret <autret_m@epita.fr>
264 Automaton VCG graph output.
265 Using option ``-g'' or long option ``--graph'', you can generate
266 a gram_filename.vcg file containing a VCG description of the LALR (1)
267 automaton of your grammar.
269 * src/main.c: Call to print_graph() function.
270 * src/getargs.h: Update.
271 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
272 (graph_flag): New flag.
274 (getargs): Add case `g'.
275 * src/files.c (graph_obstack): New obstack struct.
276 (open_files): Initialize new obstack.
277 (output_files): Saves graph_obstack if required.
278 * src/files.h (graph_obstack): New extern declaration.
279 * src/Makefile.am: Add new source files.
281 2001-08-06 Marc Autret <autret_m@epita.fr>
283 * src/print_graph.c, src/print_graph.h (graph): New.
284 * src/vcg.h: New file.
285 * src/vcg.c: New file, VCG graph handling.
287 2001-08-06 Marc Autret <autret_m@epita.fr>
289 Add of %source_extension and %header_extension which specify
290 the source or/and the header output file extension.
292 * src/files.c (compute_base_names): Remove initialisation of
293 src_extension and header_extension.
294 (compute_exts_from_gf): Update.
295 (compute_exts_from_src): Update.
296 (output_files): Update.
297 * src/reader.c (parse_header_extension_decl): New.
298 (parse_source_extension_decl): New.
299 (read_declarations): New case statements for the new tokens.
300 * src/lex.c (percent_table): Add entries for %source_extension
301 and %header_extension.
302 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
304 2001-08-06 Marc Autret <autret_m@epita.fr>
306 * configure.in: Bump to 1.28c.
307 * doc/bison.texinfo: Texinfo thingies.
309 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
311 * tests/atconfig.in (CPPFLAGS): Add.
312 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
314 2001-08-03 Akim Demaille <akim@epita.fr>
318 2001-08-03 Akim Demaille <akim@epita.fr>
320 * tests/Makefile.am (check-local): Ship testsuite.
321 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
324 2001-08-03 Akim Demaille <akim@epita.fr>
326 * configure.in: Try using -Wformat when compiling.
328 2001-08-03 Akim Demaille <akim@epita.fr>
330 * configure.in: Bump to 1.28b.
332 2001-08-03 Akim Demaille <akim@epita.fr>
334 * src/complain.c: Adjust strerror_r portability issues.
336 2001-08-03 Akim Demaille <akim@epita.fr>
340 2001-08-03 Akim Demaille <akim@epita.fr>
342 * src/getargs.c, src/getarg.h (skeleton)): Constify.
343 * src/lex.c (literalchar): Avoid name clashes on `buf'.
344 * src/getargs.c: Include complain.h.
345 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
346 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
348 2001-08-03 Akim Demaille <akim@epita.fr>
350 * src/reader.c (readgram): Display hidden chars in error messages.
352 2001-08-03 Akim Demaille <akim@epita.fr>
354 Update to gettext 0.10.39.
356 2001-08-03 Akim Demaille <akim@epita.fr>
360 2001-08-01 Marc Autret <autret_m@epita.fr>
362 * doc/bison.texinfo: Update.
363 * doc/bison.1 (mandoc): Update.
364 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
365 * src/files.c: Support output files extensions computing.
366 (src_extension): New static variable.
367 (header_extension): New static variable.
369 (get_extension_index): New function, gets the index of an extension
370 filename in a string.
371 (compute_exts_from_gf): New function, computes extensions from the
372 grammar file extension.
373 (compute_exts_from_src): New functions, computes extensions from the
374 C source file extension, file given by ``-o'' option.
375 (compute_base_names): Update.
376 (output_files): Update.
378 2001-08-01 Robert Anisko <anisko_r@epita.fr>
380 * doc/bison.texi: Document @$.
381 (Locations): New section.
383 2001-07-18 Akim Demaille <akim@epita.fr>
385 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
386 * config/prev-version.txt, config/move-if-change: New.
387 * Makefile.am: Adjust.
389 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
391 * src/bison.simple (yyparse): Suppress warning `comparaison
392 between signed and unsigned'.
394 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
396 * src/getargs.h (raw_flag): Remove.
397 * src/getargs.c: Die on `-r'/`--raw'.
398 * src/lex.c (parse_percent_token): Die on `%raw'.
399 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
400 * tests/calc.at: Suppress test with option `--raw'.
402 2001-07-14 Akim Demaille <akim@epita.fr>
405 * configure.in: Require Autoconf 2.50.
406 Update to gettext 0.10.38.
408 2001-03-16 Akim Demaille <akim@epita.fr>
410 * doc/bison.texinfo: ANSIfy the examples.
412 2001-03-16 Akim Demaille <akim@epita.fr>
414 * getargs.c (skeleton): New variable.
415 (longopts): --skeleton is a new option.
416 (shortopts, getargs): -S is a new option.
417 * getargs.h: Declare skeleton.
418 * output.c (output_parser): Use it.
420 2001-03-16 Akim Demaille <akim@epita.fr>
422 * m4/strerror_r.m4: New.
423 * m4/error.m4: Run AC_FUNC_STRERROR_R.
424 * lib/error.h, lib/error.c: Update.
426 2001-03-16 Akim Demaille <akim@epita.fr>
428 * src/getargs.c (longopts): Clean up.
430 2001-02-21 Akim Demaille <akim@epita.fr>
432 * src/reader.c (gensym): `gensym_count' is your own.
433 Use a static buf to create the symbol name, as token_buffer is no
436 2001-02-08 Akim Demaille <akim@epita.fr>
438 * src/conflicts.c (conflict_report): Be sure not to append to res
439 between two calls, which could happen if both first sprintf were
440 skipped, but not the first cp += strlen.
442 2001-02-08 Akim Demaille <akim@epita.fr>
444 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
445 New, from fileutils 4.0.37.
446 * configure.in: Require Autoconf 2.49c. I took some time before
447 making this decision. This is the only way out for portability
448 issues in Bison, it would mean way too much duplicate effort to
449 import in Bison features implemented in 2.49c since 2.13.
450 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
452 2001-02-02 Akim Demaille <akim@epita.fr>
454 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
455 * lib/xalloc.h, lib/xmalloc.c: Update.
457 2001-01-19 Akim Demaille <akim@epita.fr>
459 Get rid of the ad hoc handling of token_buffer in the scanner: use
462 * src/lex.c (token_obstack): New.
463 (init_lex): Initialize it. No longer call...
464 (grow_token_buffer): this. Remove it.
465 Adjust all the places which used it to use the obstack.
467 2001-01-19 Akim Demaille <akim@epita.fr>
469 * src/lex.h: Rename all the tokens:
470 s/\bENDFILE\b/tok_eof/g;
471 s/\bIDENTIFIER\b/tok_identifier/g;
473 Let them be enums, not #define, to ease debugging.
476 2001-01-18 Akim Demaille <akim@epita.fr>
478 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
479 * src/lex.c (maxtoken, grow_token_buffer): Static.
481 2001-01-18 Akim Demaille <akim@epita.fr>
483 Since we now use obstacks, more % directives can be enabled.
485 * src/lex.c (percent_table): Also accept `%yacc',
486 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
488 Handle the actions for `%semantic_parser' and `%pure_parser' here,
489 instead of returning a token.
490 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
491 * src/reader.c (read_declarations): Adjust.
492 * src/files.c (open_files): Don't call `compute_base_names', don't
493 compute `attrsfile' since they depend upon data which might be
494 *in* the input file now.
495 (output_files): Do it here.
496 * src/output.c (output_headers): Document the fact that this patch
497 introduces a guaranteed SEGV for semantic parsers.
498 * doc/bison.texinfo: Document them.
499 * tests/suite.at: Exercise these %options.
501 2000-12-20 Akim Demaille <akim@epita.fr>
503 Also handle the output file (--verbose) with obstacks.
505 * files.c (foutput): Remove.
506 (output_obstack): New.
507 Adjust all dependencies.
508 * src/conflicts.c: Return a string.
509 * src/system.h (obstack_grow_string): Rename as...
510 (obstack_sgrow): this. Be ready to work with non literals.
511 (obstack_fgrow4): New.
513 2000-12-20 Akim Demaille <akim@epita.fr>
515 * src/files.c (open_files): Fix the computation of short_base_name
516 in the case of `-o foo.tab.c'.
518 2000-12-20 Akim Demaille <akim@epita.fr>
520 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
521 (copy_dollar): Now that everything uses obstacks, get rid of the
524 2000-12-20 Akim Demaille <akim@epita.fr>
526 * src/files.c (open_files): Actually the `.output' file is based
527 on the short_base_name, not base_name.
528 * tests/suite.at (Checking output file names): Adjust.
530 2000-12-20 Akim Demaille <akim@epita.fr>
532 * src/bison.s1: Remove, we now use directly...
533 * src/bison.simple: this.
534 * src/Makefile.am: Use pkgdata instead of data.
536 2000-12-20 Akim Demaille <akim@epita.fr>
538 * src/files.c (guard_obstack): New.
539 (open_files): Initialize it.
540 (output_files): Dump it...
541 * src/files.h: Export it.
542 * src/reader.c (copy_guard): Use it.
544 2000-12-19 Akim Demaille <akim@epita.fr>
546 * src/files.c (outfile, defsfile, actfile): Removed as global
548 (open_files): Don't compute them.
549 (output_files): Adjust.
550 (base_name, short_base_name): Be global.
553 2000-12-19 Akim Demaille <akim@epita.fr>
555 * src/files.c (strsuffix): New.
556 (stringappend): Be just like strcat but allocate.
557 (base_names): Eve out from open_files.
558 Try to simplify the rather hairy computation of base_name and
560 (open_files): Use it.
561 * tests/suite.at (Checking output file names): New test.
563 2000-12-19 Akim Demaille <akim@epita.fr>
565 * src/system.h (obstack_grow_literal_string): Rename as...
566 (obstack_grow_string): this.
567 * src/output.c (output_parser): Recognize `%% actions' instead of
569 * src/bison.s1: s/$/%% actions/.
570 * src/bison.hairy: Likewise.
572 2000-12-19 Akim Demaille <akim@epita.fr>
574 * src/output.c (output_parser): Compute the `#line' lines when
576 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
577 Suggested by Hans Aberg.
579 2000-12-19 Akim Demaille <akim@epita.fr>
581 Let the handling of the skeleton files be local to the procedures
584 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
586 (fparser, open_extra_files): Remove.
587 (open_files, output_files): Don't take care of fparser.
588 * src/files.h: Adjust.
589 * src/output.c (output_parser): Open and close the file to the
591 * src/reader.c (read_declarations): When %semantic_parser, open
594 2000-12-19 Akim Demaille <akim@epita.fr>
596 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
597 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
599 2000-12-19 Akim Demaille <akim@epita.fr>
601 * src/files.c (open_files): Yipee! We no longer need all the code
602 looking for `/tmp' since we have no tmp file.
604 2000-12-19 Akim Demaille <akim@epita.fr>
606 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
608 * src/files.c (open_files): Less dependency on MSDOS etc.
610 2000-12-14 Akim Demaille <akim@epita.fr>
612 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
613 Provide a default definition.
614 Use it when executing the default @ action.
615 * src/reader.c (reader_output_yylsp): No longer include
616 `timestamp' and `text' in the default YYLTYPE.
618 2000-12-12 Akim Demaille <akim@epita.fr>
620 * src/reader.c (copy_definition, parse_union_decl, copy_action)
621 (copy_guard): Quote the file names.
622 Reported by Laurent Mascherpa.
624 2000-12-12 Akim Demaille <akim@epita.fr>
626 * src/output.c (output_headers, output_program, output): Be sure
627 to escape special characters when outputting filenames.
628 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
629 (output_headers): Don't depend on them, Use ACTSTR.
631 2000-11-17 Akim Demaille <akim@epita.fr>
633 * lib/obstack.h: Formatting changes.
634 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
635 prevents type checking.
636 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
637 cast the value to (void *): assigning a `foo *' to a `void *'
639 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
640 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
643 2000-11-17 Akim Demaille <akim@epita.fr>
645 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
647 (suite.m4, regression.m4, calc.m4): these.
648 * tests/atgeneral.m4: Update from CVS Autoconf.
650 2000-11-17 Akim Demaille <akim@epita.fr>
652 * tests/regression.m4 (%union and --defines): New test,
653 demonstrating a current bug in the obstack implementation.
655 2000-11-17 Akim Demaille <akim@epita.fr>
657 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
659 Use them to declare the variables which are global or local to
662 2000-11-17 Akim Demaille <akim@epita.fr>
664 * acconfig.h: Remove, no longer used.
666 2000-11-07 Akim Demaille <akim@epita.fr>
668 * src: s/Copyright (C)/Copyright/g.
670 2000-11-07 Akim Demaille <akim@epita.fr>
672 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
674 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
676 2000-11-07 Akim Demaille <akim@epita.fr>
678 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
679 Merge in a single CPP if/else.
681 2000-11-07 Akim Demaille <akim@epita.fr>
683 * src/output.c (output): Remove useless variables.
684 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
685 argument `data' for consistency with the prototypes.
687 (obstack_copy, obstack_copy0): Rename the second argument as
688 `address' for consistency. Qualify it `const'.
689 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
690 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
691 `const' their input argument (`data' or `address').
692 Adjust the corresponding macros to include `const' in casts.
694 2000-11-03 Akim Demaille <akim@epita.fr>
696 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
697 s/PFILE1/BISON_HAIRY/.
700 2000-11-03 Akim Demaille <akim@epita.fr>
702 For some reason, this was not applied.
704 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
705 `unlink': it's no longer used.
707 2000-11-03 Akim Demaille <akim@epita.fr>
709 * src/files.c (skeleton_find): New function, eved out of...
710 (open_files, open_extra_files): here.
712 2000-11-03 Akim Demaille <akim@epita.fr>
716 * src/files.c (obstack_save): New function.
718 (output_files): this.
720 * src/main.c (main): Don't use `atexit' to register `done', since
721 it no longer has to remove tmp files, just call `output_files'
722 when there are no errors.
724 2000-11-02 Akim Demaille <akim@epita.fr>
726 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
727 `unlink': it's no longer used.
728 * src/files.h: Formatting changes.
730 2000-11-02 Akim Demaille <akim@epita.fr>
732 Remove the last uses of mktemp and unlink/delete.
734 * src/files.c (fdefines, ftable): Removed.
735 (defines_ostack, table_obstack): New.
736 Adjust dependencies of the former into uses of the latter.
737 * src/output.c (output_short_or_char_table, output_short_table):
738 Convert to using obstacks.
739 * src/reader.c (copy_comment2): Accept one FILE * and two
741 (output_token_defines, reader_output_yylsp): Use obstacks.
742 * src/system.h (obstack_fgrow3): New.
744 2000-11-01 Akim Demaille <akim@epita.fr>
746 Change each use of `fattrs' into a use of `attrs_obstack'.
748 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
749 * src/files.c (fattrs): Remove.
750 (attrs_obstack): New.
751 Adjust all dependencies.
752 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
754 2000-11-01 Akim Demaille <akim@epita.fr>
757 Change each use of `faction' into a use of `action_obstack'.
759 * lib/obstack.h, lib/obstack.c: New files.
760 * src/files.c (faction): Remove.
761 (action_obstack): New.
762 Adjust all dependencies.
764 2000-10-20 Akim Demaille <akim@epita.fr>
766 * lib/quote.h (PARAMS): New macro. Use it.
768 2000-10-16 Akim Demaille <akim@epita.fr>
770 * src/output.c (output_short_or_char_table): New function.
771 (output_short_table, output_token_translations): Use it.
772 (goto_actions): Use output_short_table.
774 2000-10-16 Akim Demaille <akim@epita.fr>
776 * src/symtab.c (bucket_new): New function.
779 * src/output.c (output_short_table): New argument to display the
780 comment associated with the table.
782 (output_gram): Use it.
783 (output_rule_data): Nicer output layout for YYTNAME.
785 2000-10-16 Akim Demaille <akim@epita.fr>
787 * src/lex.c (read_typename): New function.
789 * src/reader.c (copy_dollar): Likewise.
791 2000-10-16 Akim Demaille <akim@epita.fr>
793 * src/reader.c (copy_comment2): Expect the input stream to be on
794 the `/' which is suspected to open a comment, instead of being
795 called after `//' or `/*' was read.
796 (copy_comment, copy_definition, parse_union_decl, copy_action)
797 (copy_guard): Adjust.
799 2000-10-16 Akim Demaille <akim@epita.fr>
801 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
802 `read_signed_integer'.
804 2000-10-16 Akim Demaille <akim@epita.fr>
806 * src/reader.c (copy_dollar): New function.
807 (copy_guard, copy_action): Use it.
809 2000-10-16 Akim Demaille <akim@epita.fr>
811 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
812 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
813 New files, from Fileutils 4.0.27.
814 * src/main.c (printable_version): Remove.
815 * src/lex.c, src/reader.c: Use `quote'.
817 2000-10-04 Akim Demaille <akim@epita.fr>
819 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
821 2000-10-04 Akim Demaille <akim@epita.fr>
823 * doc/bison.texinfo: Various typos spotted by Neil Booth.
825 2000-10-04 Akim Demaille <akim@epita.fr>
827 When a literal string is used to define two different tokens,
828 `bison -v' segfaults.
829 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
831 * tests/regression.m4: New file.
832 Include the core of the sample provided by Piotr Gackiewicz.
833 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
836 2000-10-04 Akim Demaille <akim@epita.fr>
838 * src/reader.c (parse_expect_decl): Keep `count' within the size
842 2000-10-02 Paul Eggert <eggert@twinsun.com>
844 * bison.s1 (yyparse): Assign the default value
845 unconditionally, to avoid a GCC warning and make the parser a
848 2000-10-02 Akim Demaille <akim@epita.fr>
850 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
853 2000-10-02 Akim Demaille <akim@epita.fr>
855 * src/derives.c, src/print.c, src/reduce.c: To ease the
856 translation, move some `\n' out of the translated strings.
858 2000-10-02 Akim Demaille <akim@epita.fr>
860 The location tracking mechanism is precious for parse error
861 messages. Nevertheless, it is enabled only when `@n' is used in
862 the grammar, which is a different issue (you can use it in error
863 message, but not in the grammar per se). Therefore, there should
864 be another means to enable it.
866 * src/getargs.c (getargs): Support `--locations'.
868 * src/getargs.h (locationsflag): Export it.
869 * src/lex.c (percent_table): Support `%locations'.
870 * src/reader.c (yylsp_needed): Remove this variable, now replaced
871 with `locationsflag'.
872 * doc/bison.texinfo: Document `--locations' and `%locations'.
874 * tests/calc.m4: Test it.
876 For regularity of the names, replace each
877 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
878 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
879 In addition replace each `flag' with `_flag'.
881 2000-10-02 Akim Demaille <akim@epita.fr>
883 Also test parse error messages, including with YYERROR_VERBOSE.
885 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
887 Use it to check the computations.
888 Use it to check `nonassoc' is honored.
889 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
891 (_AT_CHECK_CALC): Adjust to this option.
892 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
894 2000-10-02 Akim Demaille <akim@epita.fr>
896 Test also `--verbose', `--defines' and `--name-prefix'. Testing
897 the latter demonstrates a flaw in the handling of non debugging
898 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
899 was used in order to simplify:
915 unfortunately this leads to a CPP conflict when
916 `--name-prefix=foo' is used since it produces `#define yydebug
919 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
920 (YYDPRINTF): New macro.
922 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
924 Also test `--verbose', `--defines' and `--name-prefix'.
926 2000-10-02 Akim Demaille <akim@epita.fr>
928 Improve the readability of the produced parsers.
930 * src/bison.s1: Formatting changes.
931 Improve the comment related to the `$' mark.
932 (yydefault): Don't fall through to `yyresume': `goto' there.
933 * src/output.c (output_parser): When the `$' is met, skip the end
935 New variable, `number_of_dollar_signs', to check there's exactly
936 one `$' in the parser skeleton.
938 2000-10-02 Akim Demaille <akim@epita.fr>
940 * lib/xstrdup.c: New file, from the fileutils.
941 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
942 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
943 instead of strlen + xmalloc + strcpy.
944 * src/symtab.c (copys): Remove, use xstrdup instead.
946 2000-10-02 Akim Demaille <akim@epita.fr>
948 * src/gram.h (associativity): New enum type which replaces the
949 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
950 `right_assoc', `left_assoc' and `non_assoc'.
951 Adjust all dependencies.
952 * src/reader.c: Formatting changes.
953 (LTYPESTR): Don't define it, use it as a literal in
954 `reader_output_yylsp'.
955 * src/symtab.h (symbol_class): New enum type which replaces the
956 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
957 `sunknown', `stoken and `snterm'.
959 2000-10-02 Akim Demaille <akim@epita.fr>
961 * src/getargs.c (fixed_outfiles): Rename as...
962 (yaccflag): for consistency and accuracy.
965 2000-10-02 Akim Demaille <akim@epita.fr>
967 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
968 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
969 difficult and introduced a lot of core dump. It turns out that
970 Bison used an implementation of `xmalloc' based on `calloc', and
971 at various places it does depend upon the initialization to 0. I
972 have not tried to isolate the pertinent places, and all the former
973 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
974 someone should address this issue.
976 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
977 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
980 * src/warshall.h: New file.
983 2000-10-02 Akim Demaille <akim@epita.fr>
985 Various anti-`extern in *.c' changes.
987 * src/system.h: Include `assert.h'.
989 2000-10-02 Akim Demaille <akim@epita.fr>
991 * src/state.h (nstates, final_state, first_state, first_shift)
992 (first_reduction): Move their exportation from here...
993 * src/LR0.h: to here.
995 * src/getargs.c (statisticsflag): New variable.
996 Add support for `--statistics'.
999 Remove a lot of now useless `extern' statements in most files.
1001 2000-10-02 Akim Demaille <akim@epita.fr>
1003 * src/LR0.h: New file.
1006 2000-10-02 Akim Demaille <akim@epita.fr>
1008 * src/print.h: New file.
1010 * src/print.c: Formatting and ordering changes.
1011 (verbose, terse): Replace with...
1012 (print_results): this new function.
1013 Adjust dependencies.
1015 2000-10-02 Akim Demaille <akim@epita.fr>
1017 * src/conflicts.c (conflict_report): New function.
1018 (conflict_log, verbose_conflict_log): Replace with...
1019 (print_conflicts): this function.
1020 Adjust dependencies.
1021 * src/conflicts.h: New file.
1022 Propagate its inclusion.
1024 2000-10-02 Akim Demaille <akim@epita.fr>
1026 * src/nullable.h: New file.
1027 Propagate its inclusion.
1028 * src/nullable.c: Formatting changes.
1030 2000-10-02 Akim Demaille <akim@epita.fr>
1032 * src/reduce.h: New file.
1033 Propagate its inclusion.
1034 * src/reduce.c: Topological sort and other formatting changes.
1035 (bool, TRUE, FALSE): Move their definition to...
1036 * src/system.h: here.
1038 2000-10-02 Akim Demaille <akim@epita.fr>
1040 * src/files.c: Formatting changes.
1041 (tryopen, tryclose, openfiles): Rename as...
1042 (xfopen, xfclose, open_files): this.
1043 (stringappend): static.
1044 * src/files.h: Complete the list of exported symbols.
1047 2000-10-02 Akim Demaille <akim@epita.fr>
1049 * src/reader.h: New file.
1050 Propagate its use instead of tedious list of `extern' and
1052 * src/reader.c: Formatting changes, topological sort,
1055 2000-10-02 Akim Demaille <akim@epita.fr>
1057 * src/lex.h: Prototype `lex.c' exported functions.
1058 * src/reader.c: Adjust.
1059 * src/lex.c: Formatting changes.
1060 (safegetc): Rename as...
1063 2000-10-02 Akim Demaille <akim@epita.fr>
1065 * src/lalr.h: New file.
1066 Propagate its inclusion instead of prototypes and `extern'.
1067 * src/lalr.c: Formatting changes, topological sorting etc.
1069 2000-10-02 Akim Demaille <akim@epita.fr>
1071 * src/output.c (token_actions): Introduce a temporary array,
1072 YYDEFACT, that makes it possible for this function to use
1075 2000-10-02 Akim Demaille <akim@epita.fr>
1077 `user_toknums' is output as a `short[]' in `output.c', while it is
1078 defined as a `int[]' in `reader.c'. For consistency with the
1079 other output tables, `user_toknums' is now defined as a table of
1082 * src/reader.c (user_toknums): Be a short table instead of an int
1084 Adjust dependencies.
1086 Factor the short table outputs.
1088 * src/output.c (output_short_table): New function.
1089 * src/output.c (output_gram, output_stos, output_rule_data)
1090 (output_base, output_table, output_check): Use it.
1092 2000-10-02 Akim Demaille <akim@epita.fr>
1094 * src/output.c (output): Topological sort of the functions, in
1095 order to get rid of the `static' prototypes.
1096 No longer use `register'.
1097 * src/output.h: New file.
1098 Propagate its inclusion in files explicitly prototyping functions
1101 2000-09-21 Akim Demaille <akim@epita.fr>
1103 * src/atgeneral.m4: Update from Autoconf.
1105 2000-09-21 Akim Demaille <akim@epita.fr>
1107 * src/closure.h: New file.
1108 * src/closure.c: Formatting changes, topological sort over the
1109 functions, use of closure.h.
1110 (initialize_closure, finalize_closure): Rename as...
1111 (new_closure, free_closure): these. Adjust dependencies.
1112 * src/LR0.c: Formatting changes, topological sort, use of
1114 (initialize_states): Rename as...
1116 * src/Makefile.am (noinst_HEADERS): Adjust.
1118 2000-09-20 Akim Demaille <akim@epita.fr>
1120 * src/acconfig.h: Don't protect config.h against multiple
1122 Don't define PARAMS.
1123 * src/system.h: Define PARAMS.
1124 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1125 purpose of config.h. system.h must not try to fix wrong
1126 definitions in config.h.
1128 2000-09-20 Akim Demaille <akim@epita.fr>
1130 * src/derives.h: New file.
1131 * src/main.c, src/derives.h: Use it.
1133 * src/Makefile.am (noinst_HEADERS): Adjust.
1135 2000-09-20 Akim Demaille <akim@epita.fr>
1137 * tests/atgeneral.m4: Update from Autoconf.
1138 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1139 (AT_CHECK_CALC): New macros.
1140 Use these macros to test bison with options `', `--raw',
1141 `--debug', `--yacc', `--yacc --debug'.
1143 2000-09-19 Akim Demaille <akim@epita.fr>
1145 * src/output.c: Formatting changes.
1146 * src/machine.h: Remove, leaving its contents in...
1147 * src/system.h: here.
1149 Adjust all dependencies on stdio.h and machine.h.
1150 * src/getargs.h: New file.
1151 Let all `extern' declarations about getargs.c be replaced with
1152 inclusion of `getargs.h'.
1153 * src/Makefile.am (noinst_HEADERS): Adjust.
1155 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1157 (yyerror): Returns void, not int.
1158 * doc/bison.texinfo: Formatting changes.
1160 2000-09-19 Akim Demaille <akim@epita.fr>
1162 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1165 2000-09-18 Akim Demaille <akim@epita.fr>
1167 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1168 * src/Makefile.am (INCLUDES): Don't.
1169 Be ready to fetch headers in lib/.
1171 2000-09-18 Akim Demaille <akim@epita.fr>
1173 * doc/bison.texinfo: Update the copyright.
1174 ANSIfy and GNUify the examples.
1175 Remove the old menu.
1177 2000-09-18 Akim Demaille <akim@epita.fr>
1179 First set of tests: use the `calc' example from the documentation.
1181 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1182 is defined only when YYDEBUG is.
1183 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1184 * src/files.c (tryopen, tryclose): Formatting changes.
1185 Move to the top and be static.
1186 * src/reader.c (read_signed_integer): Likewise.
1187 * tests/calc.m4: New file.
1188 * Makefile.am, suite.m4: Adjust.
1189 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1191 2000-09-18 Akim Demaille <akim@epita.fr>
1193 Add support for an Autotest test suite for Bison.
1195 * m4/m4.m4, m4/atconfig.m4: New files.
1196 * m4/Makefile.am (EXTRA_DIST): Adjust.
1197 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1199 * src/getargs.c: Display a more standard --version message.
1200 * src/reader.c (reader): Formatting changes.
1201 No longer depend upon VERSION_STRING.
1202 * configure.in: No longer use `dnl'.
1203 Set up the test suite and the new directory `tests/.
1204 (VERSION_STRING): Remove.
1206 2000-04-14 Akim Demaille <akim@epita.fr>
1208 * src/reader.c (copy_comment2): New function, same as former
1209 `copy_comment', but outputs into two FILE *.
1210 (copy_comment): Use it.
1211 (parse_union_decl): Use it.
1212 (get_type, parse_start_decl): Use the same `invalid' message.
1213 (parse_start_decl, parse_union_decl): Use the same `multiple'
1215 (parse_union_decl, copy_guard, copy_action): Use the same
1216 `unmatched' message.
1217 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1219 2000-03-31 Akim Demaille <akim@epita.fr>
1221 * src/files.c (tryopen, tryclose): Move to the top.
1224 2000-03-31 Akim Demaille <akim@epita.fr>
1226 * src/main.c (main): Don't call `done', exit does it.
1228 2000-03-31 Akim Demaille <akim@epita.fr>
1230 * allocate.c: s/return (foo)/return foo/.
1233 * output.c: Likewise.
1234 * reader.c: Likewise.
1235 * symtab.c: Likewise.
1236 * vmsgetargs.c: Likewise.
1238 2000-03-31 Akim Demaille <akim@epita.fr>
1240 Clean up the error reporting functions.
1242 * src/report.c: New file.
1243 * src/report.h: Likewise.
1244 * src/Makefile.am: Adjust.
1245 * m4/error.m4: New file.
1246 * m4/Makefile.am: Adjust.
1247 * configure.in (jm_PREREQ_ERROR): Call it.
1248 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1250 (fatal, fatals): Remove. All callers use complain.c::fatal.
1251 (warn, warni, warns, warnss, warnss): Remove. All callers use
1252 complain.c::complain.
1253 (toomany): Remove, use fatal instead.
1254 * src/files.c (done): No argument, use complain_message_count.
1255 * src/main.c (main): Register `done' to `atexit'.
1257 * src/getargs.c (usage): More `fputs', less `fprintf'.
1259 2000-03-28 Akim Demaille <akim@epita.fr>
1261 * lib/: New directory.
1262 * Makefile.am (SUBDIRS): Adjust.
1263 * configure.in: Adjust.
1264 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1266 * src/alloca.c: Moved to lib/.
1267 * src/getopt.c: Likewise.
1268 * src/getopt1.c: Likewise.
1269 * src/getopt.h: Likewise.
1270 * src/ansi2knr.c: Likewise.
1271 * src/ansi2knr.1: Likewise.
1272 * src/Makefile.am: Adjust.
1273 * lib/Makefile.am: New file.
1275 2000-03-28 Akim Demaille <akim@epita.fr>
1277 * src/getargs.c (usage): Refresh the help message.
1279 2000-03-17 Akim Demaille <akim@epita.fr>
1281 * src/getopt1.c: Updated from textutils 2.0e
1282 * src/getopt.c: Likewise.
1283 * src/getopt.h: Likewise.
1285 2000-03-17 Akim Demaille <akim@epita.fr>
1287 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1288 the file name, not the whole `#line LINE FILE'.
1290 2000-03-17 Akim Demaille <akim@epita.fr>
1292 On syntax errors, report the token on which we choked.
1294 * src/bison.s1 (yyparse): In the label yyerrlab, when
1295 YYERROR_VERBOSE, add yychar in msg.
1297 2000-03-17 Akim Demaille <akim@epita.fr>
1299 * src/reader.c (copy_at): New function.
1300 (copy_guard): Use it.
1301 (copy_action): Use it.
1303 2000-03-17 Akim Demaille <akim@epita.fr>
1305 Be kind to translators, save some useless translations.
1307 * src/main.c (banner): New function.
1308 (fatal_banner): Use it.
1309 (warn_banner): Use it.
1311 2000-03-17 Akim Demaille <akim@epita.fr>
1313 * src/reader.c (copy_definition): Use copy_string and
1314 copy_comment. Removed now unused `match', `ended',
1316 (copy_comment, copy_string): Moved, to be visible from
1319 2000-03-17 Akim Demaille <akim@epita.fr>
1321 * src/reader.c (copy_string): Declare `static inline'. No
1322 problems with inline, since it is checked by configure.
1323 (copy_comment): Likewise.
1325 2000-03-17 Akim Demaille <akim@epita.fr>
1327 * src/reader.c (packsymbols): Formatting changes.
1329 2000-03-17 Akim Demaille <akim@epita.fr>
1331 * src/reader.c (copy_comment): New function, factored out from:
1332 (copy_action): Use it. Removed now unused `match', `ended',
1334 (copy_guard): Likewise.
1336 2000-03-17 Akim Demaille <akim@epita.fr>
1338 * src/reader.c (copy_string): New function, factored out from:
1339 (copy_action): Use it.
1340 (copy_guard): Likewise.
1342 2000-03-17 Akim Demaille <akim@epita.fr>
1344 Change the handling of @s so that they behave exactly like $s.
1345 There is now a pseudo variable @$ (readble and writable), location
1346 of the lhs of the rule (by default ranging from the location of
1347 the first symbol of the rhs, to the location of the last symbol,
1348 or, if the rhs is empty, YYLLOC).
1350 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1352 (yyparse): When providing a default semantic action, provide a
1353 default location action.
1354 (after the $): No longer change `*YYLSP', just stack YYLOC the
1355 same way you stack YYVAL.
1356 * src/reader.c (read_declarations): Use warns.
1357 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1358 (copy_action, case '@'): Likewise.
1359 Use a standard error message, to save useless work from
1362 2000-03-17 Akim Demaille <akim@epita.fr>
1364 * src/bison.s1: Formatting and cosmetics changes.
1365 * src/reader.c: Likewise.
1366 Update the Copyright notice.
1368 2000-03-17 Akim Demaille <akim@epita.fr>
1370 * src/bison.s1 (#line): All set to `#line' only, since the
1371 Makefile now handles them.
1373 2000-03-16 Akim Demaille <akim@epita.fr>
1375 * src/output.c (output_rule_data): Output the documentation of
1377 (Copyright notice): Update.
1380 2000-03-16 Akim Demaille <akim@epita.fr>
1382 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1383 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1384 One `#if YYDEBUG' remains, since it uses variables which are
1385 defined only if `YYDEBUG != 0'.
1387 2000-03-16 Akim Demaille <akim@epita.fr>
1389 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1390 and related variables so that the similarities are highlighted.
1392 2000-03-16 Akim Demaille <akim@epita.fr>
1394 * src/bison.s1: Properly indent CPP directives.
1396 2000-03-16 Akim Demaille <akim@epita.fr>
1398 * src/bison.s1: Properly indent the `alloca' CPP section.
1400 2000-03-16 Akim Demaille <akim@epita.fr>
1402 Do not hard code values of directories in `configure.in'.
1403 Update the `configure' tool chain.
1405 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1407 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1408 (AC_OUTPUT): Add m4/Makefile.
1409 Bump to bison 1.28a, 1.29 has never been released.
1410 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1411 handled via src/Makefile.am.
1412 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1413 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1415 * Makefile.am (SUBDIRS): Add m4.
1416 (ACLOCAL_AM_FLAGS): New variable.
1417 (AUTOMAKE_OPTIONS): Add check-news.
1418 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1419 the proper line number and file name.
1420 (DEFS): Propagate the location of bison library files and of the
1422 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1424 * acinclude.m4: Remove, replaced by the directory m4.
1425 * m4/Makefile.am (EXTRA_DIST): New variable.
1426 * m4/gettext.m4: New file, from the fileutils.
1427 * m4/lcmessage.m4: Likewise
1428 * m4/progtest.m4: Likewise.
1429 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1431 2000-03-10 Akim Demaille <akim@epita.fr>
1434 Formatting changes of various comments.
1435 Respect the GNU coding standards at various places.
1436 Don't use `_()' when no translation is needed.
1438 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1441 OS/2 honors TMPDIR environment variable.
1443 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1445 * doc/bison.texinfo: Tweaked spelling and grammar.
1447 Removed reference to price of printed copy.
1448 Mention BISON_SIMPLE and BISON_HAIRY.
1450 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1452 * configure.in, NEWS:
1453 Bison 1.29 released.
1455 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1457 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1458 Added reference card.
1460 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1462 * po/ru.po: Added Russian translation.
1464 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1466 * configure.in: Added Russian translation.
1468 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1470 * configure.in, NEWS, README:
1471 Released version 1.28.
1473 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1476 Squashed redefinition warning on some systems.
1478 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1479 Have configure build version string instead of relying on ANSI string
1482 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1484 * po/POTFILES.in: Got rid of version.c.
1486 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1488 * acconfig.h, configure.in:
1489 Have configure build version string instead of relying on ANSI string
1492 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1495 Dropped mention of `+' for long-named options.
1497 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1499 * src/files.c: Added <unistd.h> for unlink().
1501 * src/Makefile.am, src/system.h:
1504 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1506 * README: Added a FAQ list.
1508 * configure.in, acconfig.h:
1511 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1513 * doc/FAQ, doc/Makefile.am:
1516 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1518 * src/alloc.h, src/symtab.h, src/version.c:
1519 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1521 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1523 * src/.cvsignore, src/Makefile.am:
1524 Reorganized: sources in `src', documentation in `doc'.
1526 * src/lex.c (literalchar):
1527 fixed the code for escaping double quotes (thanks
1530 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1532 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1533 Adjusted paths to reflect directory reorganization.
1535 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1537 * doc/.cvsignore, doc/Makefile.am:
1538 Reorganized: sources in `src', documentation in `doc'.
1540 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1543 Updated AC_INIT file to reflect directory reorganization.
1545 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1546 Reorganized: sources in `src', documentation in `doc'.
1548 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1551 Don't declare calloc() and realloc() if not necessary.
1553 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1555 * configure.in, acconfig.h, acinclude.m4:
1556 Don't declare calloc() and realloc() if not necessary.
1558 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1560 * po/.cvsignore: Added i18n support.
1562 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1564 * acconfig.h, configure.in, Makefile.am:
1567 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1569 * src/bison.s1: Fixed #line numbers.
1571 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1573 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1574 Added PO files from Translation Project.
1576 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1579 Added support for non-ANSI compilers (ansi2knr).
1581 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1583 * configure.in: Bumped version number to 1.27.
1586 Added `bison.simple' to list of files removed by `make distclean'.
1588 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1590 * src/files.c, src/files.h:
1591 Defined locations of parser files in config.h instead of Makefile.
1593 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1595 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1596 Defined locations of parser files in config.h instead of Makefile.
1598 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1601 Removed inappropriate use of $< macro.
1603 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1605 * po/Makefile.in.in, po/POTFILES.in:
1606 Add `po' directory skeleton.
1608 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1610 * README: Document help-bison list.
1612 * configure.in: Add check for mkstemp().
1614 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1616 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1617 Hush a few compiler warnings.
1620 Add tryclose(), which verifies that fclose was successful.
1621 Hush a couple of compiler warnings.
1623 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1625 * Makefile.am, OChangeLog:
1626 ChangeLog is now automatically generated. Include the old version as
1629 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1631 * 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:
1634 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1636 * doc/bison.texinfo: Fix formatting glitch.
1638 * doc/bison.texinfo: Update FSF address.
1640 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1642 * acconfig.h: Update FSF address.
1644 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1647 Don't define PACKAGE here, since config.h defines it.
1649 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1651 * src/reader.c: Update copyright date.
1654 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1655 favor of output directly to stderr (avoids buffer overruns).
1657 * src/reader.c: Some checks for premature EOF.
1659 * 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:
1660 Use prototypes if the compiler understands them.
1662 * src/files.c: Honor TMPDIR on Unix hosts.
1663 Use prototypes if the compiler understands them.
1666 Fix a couple of buffer overrun bugs.
1667 Use prototypes if the compiler understands them.
1669 * src/system.h: Include unistd.h and ctype.h.
1670 Use #ifdef instead of #if for NLS symbols.
1672 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1674 * doc/bison.texinfo:
1675 Delete comment "consider using @set for edition number, etc..." since
1676 we now are doing so.
1678 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1681 Use prototypes if the compiler understands them.
1683 * NEWS: Document 1.26 highlights.
1685 * Makefile.am: Require Automake 1.3 or later.
1688 Use prototypes if the compiler understands them.
1690 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1693 Use VERSION symbol from automake for version number.
1695 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1697 * acconfig.h, configure.in, version.cin:
1698 Use VERSION symbol from automake for version number.
1700 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1703 Distribute original version of simple parser (bison.s1), not built
1704 version (bison.simple).
1706 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1708 * doc/bison.texinfo: Add info dir entry.
1710 * doc/bison.texinfo:
1711 Let automake put version number into documentation.
1713 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1715 * src/bison.cld, src/build.com, src/vmshlp.mar:
1716 Add non-RCS files from /gd/gnu/bison.
1718 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1721 Document the BISON_HAIRY and BISON_SIMPLE variables.
1723 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1725 * src/version.c: Build version.c automatically.
1728 Fix token numbering (used to start at 258, not 257).
1730 * src/system.h: Include config.h.
1732 * src/getargs.c: Update bug report address.
1734 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1735 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1737 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1740 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1742 * configure.in, version.cin:
1743 Build version.c automatically.
1745 * AUTHORS: Add AUTHORS file.
1747 * README: Update bug report address.
1750 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1752 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1755 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1757 * doc/bison.texinfo: Clean up some formatting.
1759 1998-05-05 Richard Stallman <rms@gnu.org>
1761 * doc/bison.texinfo:
1762 Explain better why to make a pure parser.
1764 1998-01-05 Richard Stallman <rms@gnu.org>
1766 * src/files.c (openfiles):
1767 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1768 find a temporary directory, if possible. Do not unlink files while
1771 1997-08-25 Richard Stallman <rms@gnu.org>
1773 * src/reader.c (stack_offset;):
1774 Change some warni to warns.
1776 * src/lex.c (literalchar): Use warns, not warni.
1778 1997-06-28 Richard Stallman <rms@gnu.org>
1780 * src/bison.s1: Add a Bison version comment.
1782 * src/main.c (fatal, warn, berror):
1785 1997-06-28 Richard Stallman <rms@gnu.org>
1787 * Makefile.in (bison_version): New variable.
1788 (dist): Use that variable.
1789 (bison.s1): Substitute the Bison version into bison.simple.
1791 * bison.simple: Add a Bison version comment.
1793 1997-06-18 Richard Stallman <rms@gnu.org>
1795 * src/main.c (fatal, warn, berror):
1796 Make error messages standard.
1797 (toomany): Improve error message text.
1799 * 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:
1800 new.h renamed to alloc.h.
1802 1997-06-18 Richard Stallman <rms@gnu.org>
1804 * Makefile.in: new.h renamed to alloc.h.
1806 1997-05-24 Richard Stallman <rms@gnu.org>
1808 * src/lex.c (literalchar):
1809 Fix the code for escaping \, " and '.
1811 (lex): Avoid trouble when there are many chars
1812 to discard in a char literal with just several chars in it.
1814 1997-05-17 Richard Stallman <rms@gnu.org>
1817 Use malloc, if using alloca is troublesome.
1818 (YYSTACK_USE_ALLOCA): New flag macro.
1819 Define it for some systems and compilers.
1820 (YYSTACK_ALLOC): New macro.
1821 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1822 If it was malloc'd, free it.
1824 1997-05-17 Richard Stallman <rms@gnu.org>
1827 Use malloc, if using alloca is troublesome.
1828 (YYSTACK_USE_ALLOCA): New flag macro.
1829 Define it for some systems and compilers.
1830 (YYSTACK_ALLOC): New macro.
1831 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1832 If it was malloc'd, free it.
1834 1997-04-23 Richard Stallman <rms@gnu.org>
1837 (alloca) [__hpux]: Always define as __builtin_alloca.
1839 1997-04-23 Richard Stallman <rms@gnu.org>
1842 (alloca) [__hpux]: Always define as __builtin_alloca.
1844 1997-04-22 Richard Stallman <rms@gnu.org>
1847 [__hpux]: Include alloca.h (right for HPUX 10)
1848 instead of declaring alloca (right for HPUX 9).
1850 * src/bison.s1 (__yy_memcpy):
1851 Declare arg `count' as unsigned int.
1852 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1854 1997-04-22 Richard Stallman <rms@gnu.org>
1857 [__hpux]: Include alloca.h (right for HPUX 10)
1858 instead of declaring alloca (right for HPUX 9).
1860 * bison.simple (__yy_memcpy):
1861 Declare arg `count' as unsigned int.
1862 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1864 1997-01-03 Richard Stallman <rms@gnu.org>
1866 * src/allocate.c: [__STDC__ or _MSC_VER]:
1867 Declare calloc and realloc to return void *.
1869 1997-01-02 Richard Stallman <rms@gnu.org>
1872 [_MSC_VER]: Include stdlib.h and process.h.
1873 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1875 * src/main.c (main): Return FAILURE as a value.
1876 (printable_version): Declare arg as int, not char.
1878 1997-01-02 Richard Stallman <rms@gnu.org>
1880 * Makefile.in (dist):
1881 Explicitly check for symlinks, and copy them.
1883 1996-12-19 Richard Stallman <rms@gnu.org>
1886 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1888 1996-12-18 Paul Eggert <eggert@gnu.org>
1890 * src/bison.s1 (yyparse):
1891 If __GNUC__ and YYPARSE_PARAM are both defined,
1892 declare yyparse to have a void * argument.
1894 1996-12-18 Paul Eggert <eggert@gnu.org>
1896 * bison.simple (yyparse):
1897 If __GNUC__ and YYPARSE_PARAM are both defined,
1898 declare yyparse to have a void * argument.
1900 1996-12-17 Richard Stallman <rms@gnu.org>
1902 * src/reduce.c (nbits): Add some casts.
1904 1996-08-12 Richard Stallman <rms@gnu.org>
1906 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1908 1996-08-12 Richard Stallman <rms@gnu.org>
1910 * bison.simple: Test _MSDOS as well as _MSDOS_.
1912 1996-07-31 Richard Stallman <rms@gnu.org>
1915 [__sun && __i386]: Include alloca.h.
1917 1996-07-31 Richard Stallman <rms@gnu.org>
1920 [__sun && __i386]: Include alloca.h.
1922 1996-07-30 Richard Stallman <rms@gnu.org>
1924 * src/bison.s1: Comment change.
1926 * src/bison.s1: Test _MSDOS_, not MSDOS.
1928 1996-07-30 Richard Stallman <rms@gnu.org>
1930 * bison.simple: Comment change.
1932 * bison.simple: Test _MSDOS_, not MSDOS.
1934 1996-06-01 Richard Stallman <rms@gnu.org>
1936 * 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:
1937 Insert `_' macro around many string constants.
1940 Insert `_' macro around many string constants.
1942 (main): Call setlocale, bindtextdomain and textdomain.
1944 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1945 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1946 [ENABLE_NLS]: Include libintl.h.
1947 [ENABLE_NLS] (gettext): Define.
1948 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1949 (N_, PACKAGE, LOCALEDIR): New macros.
1951 1996-06-01 Richard Stallman <rms@gnu.org>
1953 * POTFILES.in: New file.
1955 * Makefile.in (allocate.o):
1956 Define target explicitly.
1958 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1959 (LDFLAGS): Set to @LDFLAGS@.
1960 (configure): Run autoconf only if preceding `cd' succeeds.
1961 (bison.s1): Redirect output to temporary file then move the
1962 temporary to the target, rather than redirecting directly to bison.s1.
1963 (clean): Remove config.status and config.log.
1964 (distclean): Don't remove config.status here.
1966 1996-05-12 Richard Stallman <rms@gnu.org>
1969 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1971 1996-05-12 Richard Stallman <rms@gnu.org>
1974 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1976 1996-05-11 Richard Stallman <rms@gnu.org>
1978 * src/bison.s1 (__yy_memcpy):
1979 Really reorder the args, as was supposedly done on Feb 14 1995.
1980 (yyparse): Calls changed accordingly.
1982 1996-05-11 Richard Stallman <rms@gnu.org>
1984 * Makefile.in (dist): Don't use $(srcdir).
1986 * bison.simple (__yy_memcpy):
1987 Really reorder the args, as was supposedly done on Feb 14 1995.
1988 (yyparse): Calls changed accordingly.
1990 1996-01-27 Richard Stallman <rms@gnu.org>
1992 * src/output.c (output_rule_data):
1993 Test YYERROR_VERBOSE in the conditional
1994 around the definition of ttyname.
1996 1995-12-29 Richard Stallman <rms@gnu.org>
1999 Fix line numbers in #line commands.
2001 1995-12-29 Richard Stallman <rms@gnu.org>
2004 Fix line numbers in #line commands.
2006 1995-12-27 Richard Stallman <rms@gnu.org>
2008 * src/bison.s1 (YYPARSE_PARAM_DECL):
2009 In C++, make it always null.
2010 (YYPARSE_PARAM_ARG): New macro.
2011 (yyparse): Use YYPARSE_PARAM_ARG.
2013 1995-12-27 Richard Stallman <rms@gnu.org>
2015 * bison.simple (YYPARSE_PARAM_DECL):
2016 In C++, make it always null.
2017 (YYPARSE_PARAM_ARG): New macro.
2018 (yyparse): Use YYPARSE_PARAM_ARG.
2020 1995-11-29 Richard Stallman <rms@gnu.org>
2022 * doc/bison.texinfo:
2023 Describe literal string tokens, %raw, %no_lines, %token_table.
2025 1995-11-29 Daniel Hagerty <hag@gnu.org>
2027 * doc/bison.texinfo: Fixed update date
2029 1995-10-16 Richard Stallman <rms@gnu.org>
2031 * src/version.c: Version 1.25.
2033 1995-10-16 Richard Stallman <rms@gnu.org>
2035 * NEWS: *** empty log message ***
2037 1995-10-16 Richard Stallman <rms@gnu.org>
2039 * doc/bison.1, doc/bison.rnh:
2042 1995-10-15 Richard Stallman <rms@gnu.org>
2044 * src/vmsgetargs.c, src/getargs.c:
2045 Added -n, -k, and -raw switches.
2046 (noparserflag, toknumflag, rawtoknumflag): New variables.
2048 * src/symtab.h (SALIAS):
2049 New #define for adding aliases to %token.
2050 (struct bucket): Added `alias' field.
2052 * src/reduce.c (reduce_grammar):
2053 Revise error message.
2054 (print_notices): Remove final `.' from error message.
2056 * src/reader.c (reader_output_yylsp):
2058 (readgram): Use `#if 0' around code that accepted %command
2059 inside grammar rules: The documentation doesn't allow it,
2060 and it will fail since the %command processors scan for the next %.
2061 (parse_token_decl): Extended the %token
2062 declaration to allow a multi-character symbol as an alias.
2063 (parse_thong_decl): New function.
2064 (read_declarations): Added %thong declarations.
2065 (read_declarations): Handle NOOP to deal with allowing
2066 % declarations as another means to specify the flags.
2067 (readgram): Allow %prec prior to semantics embedded in a rule.
2068 (skip_to_char, read_declarations, copy_definition)
2069 (parse_token_decl, parse_start_decl, parse_type_decl)
2070 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2071 (get_type_name, copy_guard, copy_action, readgram)
2072 (get_type, packsymbols): Revised most error messages.
2073 Changed `fatal' to `warnxxx' to avoid aborting for error.
2074 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2075 (read_declarations): Improve the error message for
2076 an invalid character. Do not abort.
2077 (read_declarations, copy_guard, copy_action): Use
2078 printable_version to avoid unprintable characters in printed output.
2079 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2080 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2081 Allow the type of a non-terminal can be given
2082 more than once, as long as all specifications give the same type.
2085 (output_headers, output_trailers, output, output_gram)
2086 (output_rule_data): Implement noparserflag variable.
2087 Implement toknumflag variable.
2088 (output): Call reader_output_yylsp to output LTYPESTR.
2090 * src/main.c (main):
2091 If reader sees an error, don't process the grammar.
2092 (fatals): Updated to not use VARARGS1.
2093 (printable_version, int_to_string, warn, warni, warns, warnss)
2094 (warnsss): New error reporting functions. Avoid abort for error.
2097 Added THONG and NOOP for alias processing.
2098 Added SETOPT for the new code that allows setting options with %flags.
2101 Include getopt.h. Add some extern decls.
2102 (safegetc): New function to deal with EOF gracefully.
2103 (literalchar); new function to deal with reading \ escapes.
2104 (lex): Use literalchar.
2105 (lex): Implemented "..." tokens.
2106 (literalchar, lex, parse_percent_token): Made tokenbuffer
2107 always contain the token. This includes growing the token
2108 buffer while reading an integer.
2109 (parse_percent_token): Replaced if-else statement with percent_table.
2110 (parse_percent_token): Added % declarations as another
2111 way to specify the flags -n, -l, and -r. Also added hooks for
2112 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2113 major changes to files.c.
2114 (lex) Retain in the incoming stream a character following
2116 (skip_white_space, lex): Revised most error messages
2117 and changed fatal to warn to avoid aborting.
2118 (percent_table): Added %thong declarations.
2120 * src/gram.h: Comment changes.
2122 * src/files.c (openfiles, open_extra_files, done):
2124 and actfile file. Handle noparserflag. Both for -n switch.
2126 * src/conflicts.c (resolve_sr_conflict):
2127 Remove use of alloca.
2129 1995-06-01 Jim Meyering <meyering@gnu.org>
2131 * doc/bison.texinfo: *** empty log message ***
2133 1995-05-06 Richard Stallman <rms@gnu.org>
2135 * src/bison.s1: Comment change.
2137 1995-05-06 Richard Stallman <rms@gnu.org>
2139 * bison.simple: Comment change.
2141 1995-05-03 Richard Stallman <rms@gnu.org>
2143 * src/version.c: Version now 1.24.
2145 * src/bison.s1: Change distribution terms.
2147 * src/version.c: Version now 1.23.
2149 1995-05-03 Richard Stallman <rms@gnu.org>
2151 * doc/bison.texinfo:
2152 Rewrite "Conditions for Using Bison".
2153 Update version to 1.24.
2155 1995-05-03 Richard Stallman <rms@gnu.org>
2157 * bison.simple: Change distribution terms.
2159 1995-02-23 Richard Stallman <rms@gnu.org>
2161 * src/files.c: Test __VMS_POSIX as well as VMS.
2163 1995-02-14 Jim Meyering <meyering@gnu.org>
2165 * src/bison.s1 (__yy_memcpy):
2166 Renamed from __yy_bcopy to avoid
2167 confusion. Reverse FROM and TO arguments to be consistent with
2170 1995-02-14 Jim Meyering <meyering@gnu.org>
2172 * bison.simple (__yy_memcpy):
2173 Renamed from __yy_bcopy to avoid
2174 confusion. Reverse FROM and TO arguments to be consistent with
2177 1994-11-10 David J. MacKenzie <djm@gnu.org>
2183 * Makefile.in (DISTFILES): Include NEWS.
2185 * Makefile.in (DISTFILES):
2186 Include install-sh, not install.sh.
2188 * configure.in: Update to Autoconf v2 macro names.
2190 1994-10-05 David J. MacKenzie <djm@gnu.org>
2192 * Makefile.in: fix typo
2194 * Makefile.in (prefix, exec_prefix):
2195 Let configure set them.
2197 1994-09-28 David J. MacKenzie <djm@gnu.org>
2199 * Makefile.in: Set datadir to $(prefix)/share.
2201 1994-09-15 Richard Stallman <rms@gnu.org>
2204 Update copyright notice and GPL version.
2206 1994-09-15 Richard Stallman <rms@gnu.org>
2209 Update copyright notice and GPL version.
2211 1994-07-12 Richard Stallman <rms@gnu.org>
2213 * src/reduce.c, src/reader.c:
2216 1994-05-05 David J. MacKenzie <djm@gnu.org>
2218 * Makefile.in: entered into RCS
2220 1994-03-26 Richard Stallman <rms@gnu.org>
2222 * src/bison.s1: entered into RCS
2224 1994-03-26 Richard Stallman <rms@gnu.org>
2226 * bison.simple: entered into RCS
2228 1994-03-25 Richard Stallman <rms@gnu.org>
2230 * src/main.c: entered into RCS
2232 1994-03-24 Richard Stallman <rms@gnu.org>
2234 * src/conflicts.c: entered into RCS
2236 1994-01-02 Richard Stallman <rms@gnu.org>
2238 * Makefile.in: *** empty log message ***
2240 1993-11-21 Richard Stallman <rms@gnu.org>
2242 * src/bison.s1: *** empty log message ***
2244 1993-11-21 Richard Stallman <rms@gnu.org>
2246 * doc/bison.texinfo: entered into RCS
2248 * doc/bison.texinfo: *** empty log message ***
2250 1993-11-21 Richard Stallman <rms@gnu.org>
2252 * bison.simple: *** empty log message ***
2254 1993-10-25 David J. MacKenzie <djm@gnu.org>
2256 * doc/bison.texinfo: *** empty log message ***
2258 1993-10-19 Richard Stallman <rms@gnu.org>
2260 * src/bison.s1: *** empty log message ***
2262 1993-10-19 Richard Stallman <rms@gnu.org>
2264 * bison.simple: *** empty log message ***
2266 1993-10-14 Richard Stallman <rms@gnu.org>
2268 * src/bison.s1: *** empty log message ***
2270 1993-10-14 Richard Stallman <rms@gnu.org>
2272 * bison.simple: *** empty log message ***
2274 1993-09-14 David J. MacKenzie <djm@gnu.org>
2276 * doc/bison.texinfo: *** empty log message ***
2278 1993-09-13 Noah Friedman <friedman@gnu.org>
2280 * Makefile.in: *** empty log message ***
2282 1993-09-10 Richard Stallman <rms@gnu.org>
2284 * src/conflicts.c: *** empty log message ***
2286 * src/system.h: entered into RCS
2288 1993-09-10 Richard Stallman <rms@gnu.org>
2290 * doc/bison.1: entered into RCS
2292 1993-09-06 Noah Friedman <friedman@gnu.org>
2294 * src/version.c: entered into RCS
2296 1993-09-06 Noah Friedman <friedman@gnu.org>
2298 * Makefile.in: *** empty log message ***
2300 1993-07-30 David J. MacKenzie <djm@gnu.org>
2302 * Makefile.in: *** empty log message ***
2304 1993-07-24 Richard Stallman <rms@gnu.org>
2306 * src/bison.s1: *** empty log message ***
2308 1993-07-24 Richard Stallman <rms@gnu.org>
2310 * bison.simple: *** empty log message ***
2312 1993-07-08 David J. MacKenzie <djm@gnu.org>
2314 * Makefile.in: *** empty log message ***
2316 1993-07-04 Richard Stallman <rms@gnu.org>
2318 * src/bison.s1: *** empty log message ***
2320 1993-07-04 Richard Stallman <rms@gnu.org>
2322 * bison.simple: *** empty log message ***
2324 1993-06-26 David J. MacKenzie <djm@gnu.org>
2326 * src/getargs.c: entered into RCS
2328 1993-06-26 David J. MacKenzie <djm@gnu.org>
2330 * doc/bison.texinfo: *** empty log message ***
2332 * doc/bison.1: New file.
2334 1993-06-25 Richard Stallman <rms@gnu.org>
2336 * src/getargs.c: New file.
2338 1993-06-16 Richard Stallman <rms@gnu.org>
2340 * src/bison.s1: *** empty log message ***
2342 1993-06-16 Richard Stallman <rms@gnu.org>
2344 * bison.simple: *** empty log message ***
2346 1993-06-03 Richard Stallman <rms@gnu.org>
2348 * src/bison.s1: New file.
2350 1993-06-03 Richard Stallman <rms@gnu.org>
2352 * doc/bison.texinfo: *** empty log message ***
2354 1993-06-03 Richard Stallman <rms@gnu.org>
2356 * bison.simple: New file.
2358 1993-05-19 Richard Stallman <rms@gnu.org>
2360 * doc/bison.texinfo: New file.
2362 1993-05-07 Noah Friedman <friedman@gnu.org>
2364 * Makefile.in: *** empty log message ***
2366 1993-04-28 Noah Friedman <friedman@gnu.org>
2368 * src/reader.c: *** empty log message ***
2370 1993-04-23 Noah Friedman <friedman@gnu.org>
2372 * src/alloc.h: entered into RCS
2374 1993-04-20 David J. MacKenzie <djm@gnu.org>
2376 * src/version.c: *** empty log message ***
2378 * src/files.c, src/allocate.c:
2381 * src/reader.c: *** empty log message ***
2383 * src/lex.c: entered into RCS
2385 * src/conflicts.c: New file.
2387 * src/symtab.c: entered into RCS
2389 * src/alloc.h: New file.
2391 * src/LR0.c: entered into RCS
2393 1993-04-18 Noah Friedman <friedman@gnu.org>
2395 * src/reader.c: New file.
2397 * src/version.c: *** empty log message ***
2399 1993-04-18 Noah Friedman <friedman@gnu.org>
2401 * Makefile.in: *** empty log message ***
2403 1993-04-17 Noah Friedman <friedman@gnu.org>
2405 * Makefile.in: *** empty log message ***
2407 1993-04-15 Richard Stallman <rms@gnu.org>
2409 * src/main.c, src/files.c:
2412 1993-04-15 Noah Friedman <friedman@gnu.org>
2414 * configure.in: entered into RCS
2416 * configure.in: *** empty log message ***
2418 * configure.in: New file.
2420 1993-04-14 Richard Stallman <rms@gnu.org>
2422 * Makefile.in: New file.
2424 1993-04-13 Richard Stallman <rms@gnu.org>
2426 * src/version.c: New file.
2428 1993-03-25 Richard Stallman <rms@gnu.org>
2430 * src/output.c: entered into RCS
2432 1992-09-25 Richard Stallman <rms@gnu.org>
2434 * configure.bat: entered into RCS
2436 1992-06-22 Richard Stallman <rms@gnu.org>
2438 * src/vmsgetargs.c: entered into RCS
2440 1992-06-22 Richard Stallman <rms@gnu.org>
2442 * doc/bison.rnh: entered into RCS
2444 1992-04-20 David J. MacKenzie <djm@gnu.org>
2446 * README: entered into RCS
2448 1992-01-22 Richard Stallman <rms@gnu.org>
2450 * src/machine.h: entered into RCS
2452 1991-12-21 Richard Stallman <rms@gnu.org>
2454 * src/lalr.c, src/closure.c:
2457 1991-12-20 Richard Stallman <rms@gnu.org>
2459 * src/state.h: entered into RCS
2461 1991-12-18 Richard Stallman <rms@gnu.org>
2463 * src/print.c, src/nullable.c, src/derives.c:
2466 1991-11-03 David J. MacKenzie <djm@gnu.org>
2468 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2471 1988-09-09 Richard Stallman <rms@gnu.org>
2473 * src/bison.hairy: entered into RCS
2475 1987-12-16 Richard Stallman <rms@gnu.org>
2477 * REFERENCES: entered into RCS