1 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3 * src/bison.simple: Update and add '%%' directives.
5 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
7 * src/reader.c (reader): Remove calls to 'output_headers' and
8 'output_trailers'. Remove some C output.
9 (readgram): Disable a piece of code that was writing a default
10 definition for 'YYSTYPE'.
11 (reader_output_yylsp): Remove.
12 (packsymbols): Output token defintions to a macro.
13 (copy_definition): Disable C output.
15 * src/reader.c (parse_macro_decl): New function used to parse macro
17 (copy_string2): Put the body of copy_string into this new function.
18 Add a parameter to let the caller choose whether he wants to copy the
19 string delimiters or not.
20 (copy_string): Be a simple call to copy_string2 with the last argument
22 (read_declarations): Add case for macro definition.
23 (copy_identifier): New.
24 (parse_macro_decl): Read macro identifiers using copy_identifier
27 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
29 * src/output.c (prepare): Add prefixed names.
30 (output_parser): Output semantic actions.
31 (output_parser): Fix bug on '%%line' directives.
33 * src/output.c (output_headers): Remove. The C code printed by this
34 function should now be in the skeletons.
35 (output_trailers): Remove.
36 (output): Disable call to 'reader_output_yylsp'.
37 (output_rule_data): Do not output tables to the table obstack.
39 * src/output.c: Remove some C dedicated output.
40 Improve the use of macro and output obstacks.
41 (output_defines): Remove.
43 * src/output.c (output_token_translations): Associate 'translate'
44 table with a macro. No output to the table obstack.
45 (output_gram): Same for 'rhs' and 'prhs'.
46 (output_stos): Same for 'stos'.
47 (output_rule_data): Same for 'r1' and 'r2'.
48 (token_actions): Same for 'defact'.
49 (goto_actions): Same for 'defgoto'.
50 (output_base): Same for 'pact' and 'pgoto'.
51 (output_table): Same for 'table'.
52 (output_check): Same for 'check'.
54 * src/output.c (output_table_data): New function.
55 (output_short_table): Remove.
56 (output_short_or_char_table): Remove.
58 * src/output.c (output_parser): Replace most of the skeleton copy code
59 with something new. Skeletons are now processed character by character
60 rather than line by line, and Bison looks for '%%' macros. This is the
61 first step in making Bison's output process (a lot) more flexible.
62 (output_parser): Use the macro table.
64 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
66 * src/main.c (main): Initialize the macro table.
68 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
70 * src/lex.c (percent_table): Add tok_define.
71 * src/lex.h: Add tok_define.
73 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
75 * src/macrotab.c: New file.
76 * src/macrotab.h: New file.
77 * src/Makefile.am: Update.
79 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
81 * lib/hash.c: New file.
82 * lib/hash.h: New file.
83 * lib/Makefile.am: Update.
85 2001-08-15 Akim Demaille <akim@epita.fr>
89 2001-08-15 Marc Autret <prog@epita.fr>
91 * src/reader.c (readgram): Indent output macro YYSTYPE.
92 (packsymbols): Likewise.
93 (output_token_defines): Likewise.
94 * src/files.c: Standardize.
95 (compute_header_macro): New.
96 (defines_obstack_save): New. Use compute_header_macro.
97 (output_files): Update. Use defines_obstack_save.
99 2001-08-15 Akim Demaille <akim@epita.fr>
101 * doc/bison.texinfo (Table of Symbols): Document
104 2001-08-15 Akim Demaille <akim@epita.fr>
106 * missing: Update from CVS Automake.
107 * config/config.guess, config/config.sub, config/texinfo.tex:
110 2001-08-15 Akim Demaille <akim@epita.fr>
112 * Makefile.maint: Sync with CVS Autoconf.
114 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
116 * doc/bison.texinfo: Include GNU Free Documentation License from
118 * doc/fdl.texi: Add to package.
120 2001-08-14 Marc Autret <autret_m@epita.fr>
122 Turn on %{source,header}_extension features.
124 * src/lex.c (percent_table): Un-CPP out header_extension and
126 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
127 (compute_exts_from_src): Remove conditions. It restores priorities
130 2001-08-14 Marc Autret <autret_m@epita.fr>
132 * src/files.c (compute_base_names): Add extensions computing when
133 `--file-prefix' used.
134 Standardize function calls.
136 2001-08-13 Marc Autret <autret_m@epita.fr>
138 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
139 defining it (defined but null disables alloca).
141 2001-08-13 Marc Autret <autret_m@epita.fr>
143 * src/bison.simple (_yy_memcpy): CPP reformat.
145 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
147 * tests/atconfig.in (CPPFLAGS): Fix.
149 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
151 * doc/bison.texinfo: Include GNU General Public License from
153 * doc/gpl.texi: Add to package.
155 2001-08-10 Marc Autret <autret_m@epita.fr>
157 * src/print_graph.h: Fix.
158 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
160 2001-08-10 Akim Demaille <akim@epita.fr>
162 * src/system.h: Provide default declarations for stpcpy, strndup,
165 2001-08-10 Robert Anisko <anisko_r@epita.fr>
167 * doc/bison.texinfo (Locations): Update @$ stuff.
169 2001-08-09 Robert Anisko <anisko_r@epita.fr>
171 * src/bison.simple (YYLLOC_DEFAULT): Update.
174 2001-08-08 Marc Autret <autret_m@epita.fr>
176 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
177 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
178 Reported by Fabrice Bauzac.
180 2001-08-08 Marc Autret <autret_m@epita.fr>
182 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
183 * src/vcg.c (output_node): Fix.
184 * src/vcg.h: Cleanup.
185 * src/print_graph.c: Add comments.
186 (node_output_size): New global variable. Simplify the formatting of
187 the VCG graph output.
188 (print_actions): Unused code is now used. It notifies the final state
189 and no action states in the VCG graph. It also give the reduce actions.
190 The `shift and goto' edges are red and the `go to state' edges are
192 Get the current node name and node_obstack by argument.
193 (node_obstack): New variable.
194 (print_state): Manage node_obstack.
195 (print_core): Use node_obstack given by argument.
196 A node is not only computed here but in print_actions also.
197 (print_graph): CPP out useless code instead of commenting it.
199 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
201 * tests/atconfig.in (CPPFLAGS): Fix.
203 2001-08-07 Akim Demaille <akim@epita.fr>
205 * src/print_graph.c (quote): New.
206 (print_core): Use it.
208 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
210 * src/vcg.c (complain.h): Include it.
211 Unepitaize `return' invocations.
212 [NDEBUG] (main): Remove.
213 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
214 * src/files.c (open_files): Initialize graph_obstack.
215 * src/print_graph.c (print_actions): CPP out useless code.
216 (print_core): Don't output the last `\n' in labels.
218 * src/files.c (output_files): Output the VCG file.
219 * src/main.c (main): Invoke print_graph ();
221 2001-08-06 Marc Autret <autret_m@epita.fr>
223 Automaton VCG graph output.
224 Using option ``-g'' or long option ``--graph'', you can generate
225 a gram_filename.vcg file containing a VCG description of the LALR (1)
226 automaton of your grammar.
228 * src/main.c: Call to print_graph() function.
229 * src/getargs.h: Update.
230 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
231 (graph_flag): New flag.
233 (getargs): Add case `g'.
234 * src/files.c (graph_obstack): New obstack struct.
235 (open_files): Initialize new obstack.
236 (output_files): Saves graph_obstack if required.
237 * src/files.h (graph_obstack): New extern declaration.
238 * src/Makefile.am: Add new source files.
240 2001-08-06 Marc Autret <autret_m@epita.fr>
242 * src/print_graph.c, src/print_graph.h (graph): New.
243 * src/vcg.h: New file.
244 * src/vcg.c: New file, VCG graph handling.
246 2001-08-06 Marc Autret <autret_m@epita.fr>
248 Add of %source_extension and %header_extension which specify
249 the source or/and the header output file extension.
251 * src/files.c (compute_base_names): Remove initialisation of
252 src_extension and header_extension.
253 (compute_exts_from_gf): Update.
254 (compute_exts_from_src): Update.
255 (output_files): Update.
256 * src/reader.c (parse_header_extension_decl): New.
257 (parse_source_extension_decl): New.
258 (read_declarations): New case statements for the new tokens.
259 * src/lex.c (percent_table): Add entries for %source_extension
260 and %header_extension.
261 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
263 2001-08-06 Marc Autret <autret_m@epita.fr>
265 * configure.in: Bump to 1.28c.
266 * doc/bison.texinfo: Texinfo thingies.
268 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
270 * tests/atconfig.in (CPPFLAGS): Add.
271 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
273 2001-08-03 Akim Demaille <akim@epita.fr>
277 2001-08-03 Akim Demaille <akim@epita.fr>
279 * tests/Makefile.am (check-local): Ship testsuite.
280 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
283 2001-08-03 Akim Demaille <akim@epita.fr>
285 * configure.in: Try using -Wformat when compiling.
287 2001-08-03 Akim Demaille <akim@epita.fr>
289 * configure.in: Bump to 1.28b.
291 2001-08-03 Akim Demaille <akim@epita.fr>
293 * src/complain.c: Adjust strerror_r portability issues.
295 2001-08-03 Akim Demaille <akim@epita.fr>
299 2001-08-03 Akim Demaille <akim@epita.fr>
301 * src/getargs.c, src/getarg.h (skeleton)): Constify.
302 * src/lex.c (literalchar): Avoid name clashes on `buf'.
303 * src/getargs.c: Include complain.h.
304 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
305 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
307 2001-08-03 Akim Demaille <akim@epita.fr>
309 * src/reader.c (readgram): Display hidden chars in error messages.
311 2001-08-03 Akim Demaille <akim@epita.fr>
313 Update to gettext 0.10.39.
315 2001-08-03 Akim Demaille <akim@epita.fr>
319 2001-08-01 Marc Autret <autret_m@epita.fr>
321 * doc/bison.texinfo: Update.
322 * doc/bison.1 (mandoc): Update.
323 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
324 * src/files.c: Support output files extensions computing.
325 (src_extension): New static variable.
326 (header_extension): New static variable.
328 (get_extension_index): New function, gets the index of an extension
329 filename in a string.
330 (compute_exts_from_gf): New function, computes extensions from the
331 grammar file extension.
332 (compute_exts_from_src): New functions, computes extensions from the
333 C source file extension, file given by ``-o'' option.
334 (compute_base_names): Update.
335 (output_files): Update.
337 2001-08-01 Robert Anisko <anisko_r@epita.fr>
339 * doc/bison.texi: Document @$.
340 (Locations): New section.
342 2001-07-18 Akim Demaille <akim@epita.fr>
344 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
345 * config/prev-version.txt, config/move-if-change: New.
346 * Makefile.am: Adjust.
348 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
350 * src/bison.simple (yyparse): Suppress warning `comparaison
351 between signed and unsigned'.
353 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
355 * src/getargs.h (raw_flag): Remove.
356 * src/getargs.c: Die on `-r'/`--raw'.
357 * src/lex.c (parse_percent_token): Die on `%raw'.
358 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
359 * tests/calc.at: Suppress test with option `--raw'.
361 2001-07-14 Akim Demaille <akim@epita.fr>
364 * configure.in: Require Autoconf 2.50.
365 Update to gettext 0.10.38.
367 2001-03-16 Akim Demaille <akim@epita.fr>
369 * doc/bison.texinfo: ANSIfy the examples.
371 2001-03-16 Akim Demaille <akim@epita.fr>
373 * getargs.c (skeleton): New variable.
374 (longopts): --skeleton is a new option.
375 (shortopts, getargs): -S is a new option.
376 * getargs.h: Declare skeleton.
377 * output.c (output_parser): Use it.
379 2001-03-16 Akim Demaille <akim@epita.fr>
381 * m4/strerror_r.m4: New.
382 * m4/error.m4: Run AC_FUNC_STRERROR_R.
383 * lib/error.h, lib/error.c: Update.
385 2001-03-16 Akim Demaille <akim@epita.fr>
387 * src/getargs.c (longopts): Clean up.
389 2001-02-21 Akim Demaille <akim@epita.fr>
391 * src/reader.c (gensym): `gensym_count' is your own.
392 Use a static buf to create the symbol name, as token_buffer is no
395 2001-02-08 Akim Demaille <akim@epita.fr>
397 * src/conflicts.c (conflict_report): Be sure not to append to res
398 between two calls, which could happen if both first sprintf were
399 skipped, but not the first cp += strlen.
401 2001-02-08 Akim Demaille <akim@epita.fr>
403 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
404 New, from fileutils 4.0.37.
405 * configure.in: Require Autoconf 2.49c. I took some time before
406 making this decision. This is the only way out for portability
407 issues in Bison, it would mean way too much duplicate effort to
408 import in Bison features implemented in 2.49c since 2.13.
409 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
411 2001-02-02 Akim Demaille <akim@epita.fr>
413 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
414 * lib/xalloc.h, lib/xmalloc.c: Update.
416 2001-01-19 Akim Demaille <akim@epita.fr>
418 Get rid of the ad hoc handling of token_buffer in the scanner: use
421 * src/lex.c (token_obstack): New.
422 (init_lex): Initialize it. No longer call...
423 (grow_token_buffer): this. Remove it.
424 Adjust all the places which used it to use the obstack.
426 2001-01-19 Akim Demaille <akim@epita.fr>
428 * src/lex.h: Rename all the tokens:
429 s/\bENDFILE\b/tok_eof/g;
430 s/\bIDENTIFIER\b/tok_identifier/g;
432 Let them be enums, not #define, to ease debugging.
435 2001-01-18 Akim Demaille <akim@epita.fr>
437 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
438 * src/lex.c (maxtoken, grow_token_buffer): Static.
440 2001-01-18 Akim Demaille <akim@epita.fr>
442 Since we now use obstacks, more % directives can be enabled.
444 * src/lex.c (percent_table): Also accept `%yacc',
445 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
447 Handle the actions for `%semantic_parser' and `%pure_parser' here,
448 instead of returning a token.
449 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
450 * src/reader.c (read_declarations): Adjust.
451 * src/files.c (open_files): Don't call `compute_base_names', don't
452 compute `attrsfile' since they depend upon data which might be
453 *in* the input file now.
454 (output_files): Do it here.
455 * src/output.c (output_headers): Document the fact that this patch
456 introduces a guaranteed SEGV for semantic parsers.
457 * doc/bison.texinfo: Document them.
458 * tests/suite.at: Exercise these %options.
460 2000-12-20 Akim Demaille <akim@epita.fr>
462 Also handle the output file (--verbose) with obstacks.
464 * files.c (foutput): Remove.
465 (output_obstack): New.
466 Adjust all dependencies.
467 * src/conflicts.c: Return a string.
468 * src/system.h (obstack_grow_string): Rename as...
469 (obstack_sgrow): this. Be ready to work with non literals.
470 (obstack_fgrow4): New.
472 2000-12-20 Akim Demaille <akim@epita.fr>
474 * src/files.c (open_files): Fix the computation of short_base_name
475 in the case of `-o foo.tab.c'.
477 2000-12-20 Akim Demaille <akim@epita.fr>
479 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
480 (copy_dollar): Now that everything uses obstacks, get rid of the
483 2000-12-20 Akim Demaille <akim@epita.fr>
485 * src/files.c (open_files): Actually the `.output' file is based
486 on the short_base_name, not base_name.
487 * tests/suite.at (Checking output file names): Adjust.
489 2000-12-20 Akim Demaille <akim@epita.fr>
491 * src/bison.s1: Remove, we now use directly...
492 * src/bison.simple: this.
493 * src/Makefile.am: Use pkgdata instead of data.
495 2000-12-20 Akim Demaille <akim@epita.fr>
497 * src/files.c (guard_obstack): New.
498 (open_files): Initialize it.
499 (output_files): Dump it...
500 * src/files.h: Export it.
501 * src/reader.c (copy_guard): Use it.
503 2000-12-19 Akim Demaille <akim@epita.fr>
505 * src/files.c (outfile, defsfile, actfile): Removed as global
507 (open_files): Don't compute them.
508 (output_files): Adjust.
509 (base_name, short_base_name): Be global.
512 2000-12-19 Akim Demaille <akim@epita.fr>
514 * src/files.c (strsuffix): New.
515 (stringappend): Be just like strcat but allocate.
516 (base_names): Eve out from open_files.
517 Try to simplify the rather hairy computation of base_name and
519 (open_files): Use it.
520 * tests/suite.at (Checking output file names): New test.
522 2000-12-19 Akim Demaille <akim@epita.fr>
524 * src/system.h (obstack_grow_literal_string): Rename as...
525 (obstack_grow_string): this.
526 * src/output.c (output_parser): Recognize `%% actions' instead of
528 * src/bison.s1: s/$/%% actions/.
529 * src/bison.hairy: Likewise.
531 2000-12-19 Akim Demaille <akim@epita.fr>
533 * src/output.c (output_parser): Compute the `#line' lines when
535 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
536 Suggested by Hans Aberg.
538 2000-12-19 Akim Demaille <akim@epita.fr>
540 Let the handling of the skeleton files be local to the procedures
543 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
545 (fparser, open_extra_files): Remove.
546 (open_files, output_files): Don't take care of fparser.
547 * src/files.h: Adjust.
548 * src/output.c (output_parser): Open and close the file to the
550 * src/reader.c (read_declarations): When %semantic_parser, open
553 2000-12-19 Akim Demaille <akim@epita.fr>
555 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
556 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
558 2000-12-19 Akim Demaille <akim@epita.fr>
560 * src/files.c (open_files): Yipee! We no longer need all the code
561 looking for `/tmp' since we have no tmp file.
563 2000-12-19 Akim Demaille <akim@epita.fr>
565 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
567 * src/files.c (open_files): Less dependency on MSDOS etc.
569 2000-12-14 Akim Demaille <akim@epita.fr>
571 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
572 Provide a default definition.
573 Use it when executing the default @ action.
574 * src/reader.c (reader_output_yylsp): No longer include
575 `timestamp' and `text' in the default YYLTYPE.
577 2000-12-12 Akim Demaille <akim@epita.fr>
579 * src/reader.c (copy_definition, parse_union_decl, copy_action)
580 (copy_guard): Quote the file names.
581 Reported by Laurent Mascherpa.
583 2000-12-12 Akim Demaille <akim@epita.fr>
585 * src/output.c (output_headers, output_program, output): Be sure
586 to escape special characters when outputting filenames.
587 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
588 (output_headers): Don't depend on them, Use ACTSTR.
590 2000-11-17 Akim Demaille <akim@epita.fr>
592 * lib/obstack.h: Formatting changes.
593 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
594 prevents type checking.
595 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
596 cast the value to (void *): assigning a `foo *' to a `void *'
598 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
599 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
602 2000-11-17 Akim Demaille <akim@epita.fr>
604 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
606 (suite.m4, regression.m4, calc.m4): these.
607 * tests/atgeneral.m4: Update from CVS Autoconf.
609 2000-11-17 Akim Demaille <akim@epita.fr>
611 * tests/regression.m4 (%union and --defines): New test,
612 demonstrating a current bug in the obstack implementation.
614 2000-11-17 Akim Demaille <akim@epita.fr>
616 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
618 Use them to declare the variables which are global or local to
621 2000-11-17 Akim Demaille <akim@epita.fr>
623 * acconfig.h: Remove, no longer used.
625 2000-11-07 Akim Demaille <akim@epita.fr>
627 * src: s/Copyright (C)/Copyright/g.
629 2000-11-07 Akim Demaille <akim@epita.fr>
631 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
633 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
635 2000-11-07 Akim Demaille <akim@epita.fr>
637 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
638 Merge in a single CPP if/else.
640 2000-11-07 Akim Demaille <akim@epita.fr>
642 * src/output.c (output): Remove useless variables.
643 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
644 argument `data' for consistency with the prototypes.
646 (obstack_copy, obstack_copy0): Rename the second argument as
647 `address' for consistency. Qualify it `const'.
648 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
649 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
650 `const' their input argument (`data' or `address').
651 Adjust the corresponding macros to include `const' in casts.
653 2000-11-03 Akim Demaille <akim@epita.fr>
655 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
656 s/PFILE1/BISON_HAIRY/.
659 2000-11-03 Akim Demaille <akim@epita.fr>
661 For some reason, this was not applied.
663 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
664 `unlink': it's no longer used.
666 2000-11-03 Akim Demaille <akim@epita.fr>
668 * src/files.c (skeleton_find): New function, eved out of...
669 (open_files, open_extra_files): here.
671 2000-11-03 Akim Demaille <akim@epita.fr>
675 * src/files.c (obstack_save): New function.
677 (output_files): this.
679 * src/main.c (main): Don't use `atexit' to register `done', since
680 it no longer has to remove tmp files, just call `output_files'
681 when there are no errors.
683 2000-11-02 Akim Demaille <akim@epita.fr>
685 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
686 `unlink': it's no longer used.
687 * src/files.h: Formatting changes.
689 2000-11-02 Akim Demaille <akim@epita.fr>
691 Remove the last uses of mktemp and unlink/delete.
693 * src/files.c (fdefines, ftable): Removed.
694 (defines_ostack, table_obstack): New.
695 Adjust dependencies of the former into uses of the latter.
696 * src/output.c (output_short_or_char_table, output_short_table):
697 Convert to using obstacks.
698 * src/reader.c (copy_comment2): Accept one FILE * and two
700 (output_token_defines, reader_output_yylsp): Use obstacks.
701 * src/system.h (obstack_fgrow3): New.
703 2000-11-01 Akim Demaille <akim@epita.fr>
705 Change each use of `fattrs' into a use of `attrs_obstack'.
707 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
708 * src/files.c (fattrs): Remove.
709 (attrs_obstack): New.
710 Adjust all dependencies.
711 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
713 2000-11-01 Akim Demaille <akim@epita.fr>
716 Change each use of `faction' into a use of `action_obstack'.
718 * lib/obstack.h, lib/obstack.c: New files.
719 * src/files.c (faction): Remove.
720 (action_obstack): New.
721 Adjust all dependencies.
723 2000-10-20 Akim Demaille <akim@epita.fr>
725 * lib/quote.h (PARAMS): New macro. Use it.
727 2000-10-16 Akim Demaille <akim@epita.fr>
729 * src/output.c (output_short_or_char_table): New function.
730 (output_short_table, output_token_translations): Use it.
731 (goto_actions): Use output_short_table.
733 2000-10-16 Akim Demaille <akim@epita.fr>
735 * src/symtab.c (bucket_new): New function.
738 * src/output.c (output_short_table): New argument to display the
739 comment associated with the table.
741 (output_gram): Use it.
742 (output_rule_data): Nicer output layout for YYTNAME.
744 2000-10-16 Akim Demaille <akim@epita.fr>
746 * src/lex.c (read_typename): New function.
748 * src/reader.c (copy_dollar): Likewise.
750 2000-10-16 Akim Demaille <akim@epita.fr>
752 * src/reader.c (copy_comment2): Expect the input stream to be on
753 the `/' which is suspected to open a comment, instead of being
754 called after `//' or `/*' was read.
755 (copy_comment, copy_definition, parse_union_decl, copy_action)
756 (copy_guard): Adjust.
758 2000-10-16 Akim Demaille <akim@epita.fr>
760 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
761 `read_signed_integer'.
763 2000-10-16 Akim Demaille <akim@epita.fr>
765 * src/reader.c (copy_dollar): New function.
766 (copy_guard, copy_action): Use it.
768 2000-10-16 Akim Demaille <akim@epita.fr>
770 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
771 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
772 New files, from Fileutils 4.0.27.
773 * src/main.c (printable_version): Remove.
774 * src/lex.c, src/reader.c: Use `quote'.
776 2000-10-04 Akim Demaille <akim@epita.fr>
778 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
780 2000-10-04 Akim Demaille <akim@epita.fr>
782 * doc/bison.texinfo: Various typos spotted by Neil Booth.
784 2000-10-04 Akim Demaille <akim@epita.fr>
786 When a literal string is used to define two different tokens,
787 `bison -v' segfaults.
788 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
790 * tests/regression.m4: New file.
791 Include the core of the sample provided by Piotr Gackiewicz.
792 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
795 2000-10-04 Akim Demaille <akim@epita.fr>
797 * src/reader.c (parse_expect_decl): Keep `count' within the size
801 2000-10-02 Paul Eggert <eggert@twinsun.com>
803 * bison.s1 (yyparse): Assign the default value
804 unconditionally, to avoid a GCC warning and make the parser a
807 2000-10-02 Akim Demaille <akim@epita.fr>
809 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
812 2000-10-02 Akim Demaille <akim@epita.fr>
814 * src/derives.c, src/print.c, src/reduce.c: To ease the
815 translation, move some `\n' out of the translated strings.
817 2000-10-02 Akim Demaille <akim@epita.fr>
819 The location tracking mechanism is precious for parse error
820 messages. Nevertheless, it is enabled only when `@n' is used in
821 the grammar, which is a different issue (you can use it in error
822 message, but not in the grammar per se). Therefore, there should
823 be another means to enable it.
825 * src/getargs.c (getargs): Support `--locations'.
827 * src/getargs.h (locationsflag): Export it.
828 * src/lex.c (percent_table): Support `%locations'.
829 * src/reader.c (yylsp_needed): Remove this variable, now replaced
830 with `locationsflag'.
831 * doc/bison.texinfo: Document `--locations' and `%locations'.
833 * tests/calc.m4: Test it.
835 For regularity of the names, replace each
836 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
837 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
838 In addition replace each `flag' with `_flag'.
840 2000-10-02 Akim Demaille <akim@epita.fr>
842 Also test parse error messages, including with YYERROR_VERBOSE.
844 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
846 Use it to check the computations.
847 Use it to check `nonassoc' is honored.
848 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
850 (_AT_CHECK_CALC): Adjust to this option.
851 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
853 2000-10-02 Akim Demaille <akim@epita.fr>
855 Test also `--verbose', `--defines' and `--name-prefix'. Testing
856 the latter demonstrates a flaw in the handling of non debugging
857 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
858 was used in order to simplify:
874 unfortunately this leads to a CPP conflict when
875 `--name-prefix=foo' is used since it produces `#define yydebug
878 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
879 (YYDPRINTF): New macro.
881 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
883 Also test `--verbose', `--defines' and `--name-prefix'.
885 2000-10-02 Akim Demaille <akim@epita.fr>
887 Improve the readability of the produced parsers.
889 * src/bison.s1: Formatting changes.
890 Improve the comment related to the `$' mark.
891 (yydefault): Don't fall through to `yyresume': `goto' there.
892 * src/output.c (output_parser): When the `$' is met, skip the end
894 New variable, `number_of_dollar_signs', to check there's exactly
895 one `$' in the parser skeleton.
897 2000-10-02 Akim Demaille <akim@epita.fr>
899 * lib/xstrdup.c: New file, from the fileutils.
900 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
901 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
902 instead of strlen + xmalloc + strcpy.
903 * src/symtab.c (copys): Remove, use xstrdup instead.
905 2000-10-02 Akim Demaille <akim@epita.fr>
907 * src/gram.h (associativity): New enum type which replaces the
908 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
909 `right_assoc', `left_assoc' and `non_assoc'.
910 Adjust all dependencies.
911 * src/reader.c: Formatting changes.
912 (LTYPESTR): Don't define it, use it as a literal in
913 `reader_output_yylsp'.
914 * src/symtab.h (symbol_class): New enum type which replaces the
915 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
916 `sunknown', `stoken and `snterm'.
918 2000-10-02 Akim Demaille <akim@epita.fr>
920 * src/getargs.c (fixed_outfiles): Rename as...
921 (yaccflag): for consistency and accuracy.
924 2000-10-02 Akim Demaille <akim@epita.fr>
926 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
927 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
928 difficult and introduced a lot of core dump. It turns out that
929 Bison used an implementation of `xmalloc' based on `calloc', and
930 at various places it does depend upon the initialization to 0. I
931 have not tried to isolate the pertinent places, and all the former
932 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
933 someone should address this issue.
935 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
936 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
939 * src/warshall.h: New file.
942 2000-10-02 Akim Demaille <akim@epita.fr>
944 Various anti-`extern in *.c' changes.
946 * src/system.h: Include `assert.h'.
948 2000-10-02 Akim Demaille <akim@epita.fr>
950 * src/state.h (nstates, final_state, first_state, first_shift)
951 (first_reduction): Move their exportation from here...
952 * src/LR0.h: to here.
954 * src/getargs.c (statisticsflag): New variable.
955 Add support for `--statistics'.
958 Remove a lot of now useless `extern' statements in most files.
960 2000-10-02 Akim Demaille <akim@epita.fr>
962 * src/LR0.h: New file.
965 2000-10-02 Akim Demaille <akim@epita.fr>
967 * src/print.h: New file.
969 * src/print.c: Formatting and ordering changes.
970 (verbose, terse): Replace with...
971 (print_results): this new function.
974 2000-10-02 Akim Demaille <akim@epita.fr>
976 * src/conflicts.c (conflict_report): New function.
977 (conflict_log, verbose_conflict_log): Replace with...
978 (print_conflicts): this function.
980 * src/conflicts.h: New file.
981 Propagate its inclusion.
983 2000-10-02 Akim Demaille <akim@epita.fr>
985 * src/nullable.h: New file.
986 Propagate its inclusion.
987 * src/nullable.c: Formatting changes.
989 2000-10-02 Akim Demaille <akim@epita.fr>
991 * src/reduce.h: New file.
992 Propagate its inclusion.
993 * src/reduce.c: Topological sort and other formatting changes.
994 (bool, TRUE, FALSE): Move their definition to...
995 * src/system.h: here.
997 2000-10-02 Akim Demaille <akim@epita.fr>
999 * src/files.c: Formatting changes.
1000 (tryopen, tryclose, openfiles): Rename as...
1001 (xfopen, xfclose, open_files): this.
1002 (stringappend): static.
1003 * src/files.h: Complete the list of exported symbols.
1006 2000-10-02 Akim Demaille <akim@epita.fr>
1008 * src/reader.h: New file.
1009 Propagate its use instead of tedious list of `extern' and
1011 * src/reader.c: Formatting changes, topological sort,
1014 2000-10-02 Akim Demaille <akim@epita.fr>
1016 * src/lex.h: Prototype `lex.c' exported functions.
1017 * src/reader.c: Adjust.
1018 * src/lex.c: Formatting changes.
1019 (safegetc): Rename as...
1022 2000-10-02 Akim Demaille <akim@epita.fr>
1024 * src/lalr.h: New file.
1025 Propagate its inclusion instead of prototypes and `extern'.
1026 * src/lalr.c: Formatting changes, topological sorting etc.
1028 2000-10-02 Akim Demaille <akim@epita.fr>
1030 * src/output.c (token_actions): Introduce a temporary array,
1031 YYDEFACT, that makes it possible for this function to use
1034 2000-10-02 Akim Demaille <akim@epita.fr>
1036 `user_toknums' is output as a `short[]' in `output.c', while it is
1037 defined as a `int[]' in `reader.c'. For consistency with the
1038 other output tables, `user_toknums' is now defined as a table of
1041 * src/reader.c (user_toknums): Be a short table instead of an int
1043 Adjust dependencies.
1045 Factor the short table outputs.
1047 * src/output.c (output_short_table): New function.
1048 * src/output.c (output_gram, output_stos, output_rule_data)
1049 (output_base, output_table, output_check): Use it.
1051 2000-10-02 Akim Demaille <akim@epita.fr>
1053 * src/output.c (output): Topological sort of the functions, in
1054 order to get rid of the `static' prototypes.
1055 No longer use `register'.
1056 * src/output.h: New file.
1057 Propagate its inclusion in files explicitly prototyping functions
1060 2000-09-21 Akim Demaille <akim@epita.fr>
1062 * src/atgeneral.m4: Update from Autoconf.
1064 2000-09-21 Akim Demaille <akim@epita.fr>
1066 * src/closure.h: New file.
1067 * src/closure.c: Formatting changes, topological sort over the
1068 functions, use of closure.h.
1069 (initialize_closure, finalize_closure): Rename as...
1070 (new_closure, free_closure): these. Adjust dependencies.
1071 * src/LR0.c: Formatting changes, topological sort, use of
1073 (initialize_states): Rename as...
1075 * src/Makefile.am (noinst_HEADERS): Adjust.
1077 2000-09-20 Akim Demaille <akim@epita.fr>
1079 * src/acconfig.h: Don't protect config.h against multiple
1081 Don't define PARAMS.
1082 * src/system.h: Define PARAMS.
1083 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1084 purpose of config.h. system.h must not try to fix wrong
1085 definitions in config.h.
1087 2000-09-20 Akim Demaille <akim@epita.fr>
1089 * src/derives.h: New file.
1090 * src/main.c, src/derives.h: Use it.
1092 * src/Makefile.am (noinst_HEADERS): Adjust.
1094 2000-09-20 Akim Demaille <akim@epita.fr>
1096 * tests/atgeneral.m4: Update from Autoconf.
1097 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1098 (AT_CHECK_CALC): New macros.
1099 Use these macros to test bison with options `', `--raw',
1100 `--debug', `--yacc', `--yacc --debug'.
1102 2000-09-19 Akim Demaille <akim@epita.fr>
1104 * src/output.c: Formatting changes.
1105 * src/machine.h: Remove, leaving its contents in...
1106 * src/system.h: here.
1108 Adjust all dependencies on stdio.h and machine.h.
1109 * src/getargs.h: New file.
1110 Let all `extern' declarations about getargs.c be replaced with
1111 inclusion of `getargs.h'.
1112 * src/Makefile.am (noinst_HEADERS): Adjust.
1114 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1116 (yyerror): Returns void, not int.
1117 * doc/bison.texinfo: Formatting changes.
1119 2000-09-19 Akim Demaille <akim@epita.fr>
1121 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1124 2000-09-18 Akim Demaille <akim@epita.fr>
1126 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1127 * src/Makefile.am (INCLUDES): Don't.
1128 Be ready to fetch headers in lib/.
1130 2000-09-18 Akim Demaille <akim@epita.fr>
1132 * doc/bison.texinfo: Update the copyright.
1133 ANSIfy and GNUify the examples.
1134 Remove the old menu.
1136 2000-09-18 Akim Demaille <akim@epita.fr>
1138 First set of tests: use the `calc' example from the documentation.
1140 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1141 is defined only when YYDEBUG is.
1142 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1143 * src/files.c (tryopen, tryclose): Formatting changes.
1144 Move to the top and be static.
1145 * src/reader.c (read_signed_integer): Likewise.
1146 * tests/calc.m4: New file.
1147 * Makefile.am, suite.m4: Adjust.
1148 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1150 2000-09-18 Akim Demaille <akim@epita.fr>
1152 Add support for an Autotest test suite for Bison.
1154 * m4/m4.m4, m4/atconfig.m4: New files.
1155 * m4/Makefile.am (EXTRA_DIST): Adjust.
1156 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1158 * src/getargs.c: Display a more standard --version message.
1159 * src/reader.c (reader): Formatting changes.
1160 No longer depend upon VERSION_STRING.
1161 * configure.in: No longer use `dnl'.
1162 Set up the test suite and the new directory `tests/.
1163 (VERSION_STRING): Remove.
1165 2000-04-14 Akim Demaille <akim@epita.fr>
1167 * src/reader.c (copy_comment2): New function, same as former
1168 `copy_comment', but outputs into two FILE *.
1169 (copy_comment): Use it.
1170 (parse_union_decl): Use it.
1171 (get_type, parse_start_decl): Use the same `invalid' message.
1172 (parse_start_decl, parse_union_decl): Use the same `multiple'
1174 (parse_union_decl, copy_guard, copy_action): Use the same
1175 `unmatched' message.
1176 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1178 2000-03-31 Akim Demaille <akim@epita.fr>
1180 * src/files.c (tryopen, tryclose): Move to the top.
1183 2000-03-31 Akim Demaille <akim@epita.fr>
1185 * src/main.c (main): Don't call `done', exit does it.
1187 2000-03-31 Akim Demaille <akim@epita.fr>
1189 * allocate.c: s/return (foo)/return foo/.
1192 * output.c: Likewise.
1193 * reader.c: Likewise.
1194 * symtab.c: Likewise.
1195 * vmsgetargs.c: Likewise.
1197 2000-03-31 Akim Demaille <akim@epita.fr>
1199 Clean up the error reporting functions.
1201 * src/report.c: New file.
1202 * src/report.h: Likewise.
1203 * src/Makefile.am: Adjust.
1204 * m4/error.m4: New file.
1205 * m4/Makefile.am: Adjust.
1206 * configure.in (jm_PREREQ_ERROR): Call it.
1207 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1209 (fatal, fatals): Remove. All callers use complain.c::fatal.
1210 (warn, warni, warns, warnss, warnss): Remove. All callers use
1211 complain.c::complain.
1212 (toomany): Remove, use fatal instead.
1213 * src/files.c (done): No argument, use complain_message_count.
1214 * src/main.c (main): Register `done' to `atexit'.
1216 * src/getargs.c (usage): More `fputs', less `fprintf'.
1218 2000-03-28 Akim Demaille <akim@epita.fr>
1220 * lib/: New directory.
1221 * Makefile.am (SUBDIRS): Adjust.
1222 * configure.in: Adjust.
1223 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1225 * src/alloca.c: Moved to lib/.
1226 * src/getopt.c: Likewise.
1227 * src/getopt1.c: Likewise.
1228 * src/getopt.h: Likewise.
1229 * src/ansi2knr.c: Likewise.
1230 * src/ansi2knr.1: Likewise.
1231 * src/Makefile.am: Adjust.
1232 * lib/Makefile.am: New file.
1234 2000-03-28 Akim Demaille <akim@epita.fr>
1236 * src/getargs.c (usage): Refresh the help message.
1238 2000-03-17 Akim Demaille <akim@epita.fr>
1240 * src/getopt1.c: Updated from textutils 2.0e
1241 * src/getopt.c: Likewise.
1242 * src/getopt.h: Likewise.
1244 2000-03-17 Akim Demaille <akim@epita.fr>
1246 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1247 the file name, not the whole `#line LINE FILE'.
1249 2000-03-17 Akim Demaille <akim@epita.fr>
1251 On syntax errors, report the token on which we choked.
1253 * src/bison.s1 (yyparse): In the label yyerrlab, when
1254 YYERROR_VERBOSE, add yychar in msg.
1256 2000-03-17 Akim Demaille <akim@epita.fr>
1258 * src/reader.c (copy_at): New function.
1259 (copy_guard): Use it.
1260 (copy_action): Use it.
1262 2000-03-17 Akim Demaille <akim@epita.fr>
1264 Be kind to translators, save some useless translations.
1266 * src/main.c (banner): New function.
1267 (fatal_banner): Use it.
1268 (warn_banner): Use it.
1270 2000-03-17 Akim Demaille <akim@epita.fr>
1272 * src/reader.c (copy_definition): Use copy_string and
1273 copy_comment. Removed now unused `match', `ended',
1275 (copy_comment, copy_string): Moved, to be visible from
1278 2000-03-17 Akim Demaille <akim@epita.fr>
1280 * src/reader.c (copy_string): Declare `static inline'. No
1281 problems with inline, since it is checked by configure.
1282 (copy_comment): Likewise.
1284 2000-03-17 Akim Demaille <akim@epita.fr>
1286 * src/reader.c (packsymbols): Formatting changes.
1288 2000-03-17 Akim Demaille <akim@epita.fr>
1290 * src/reader.c (copy_comment): New function, factored out from:
1291 (copy_action): Use it. Removed now unused `match', `ended',
1293 (copy_guard): Likewise.
1295 2000-03-17 Akim Demaille <akim@epita.fr>
1297 * src/reader.c (copy_string): New function, factored out from:
1298 (copy_action): Use it.
1299 (copy_guard): Likewise.
1301 2000-03-17 Akim Demaille <akim@epita.fr>
1303 Change the handling of @s so that they behave exactly like $s.
1304 There is now a pseudo variable @$ (readble and writable), location
1305 of the lhs of the rule (by default ranging from the location of
1306 the first symbol of the rhs, to the location of the last symbol,
1307 or, if the rhs is empty, YYLLOC).
1309 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1311 (yyparse): When providing a default semantic action, provide a
1312 default location action.
1313 (after the $): No longer change `*YYLSP', just stack YYLOC the
1314 same way you stack YYVAL.
1315 * src/reader.c (read_declarations): Use warns.
1316 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1317 (copy_action, case '@'): Likewise.
1318 Use a standard error message, to save useless work from
1321 2000-03-17 Akim Demaille <akim@epita.fr>
1323 * src/bison.s1: Formatting and cosmetics changes.
1324 * src/reader.c: Likewise.
1325 Update the Copyright notice.
1327 2000-03-17 Akim Demaille <akim@epita.fr>
1329 * src/bison.s1 (#line): All set to `#line' only, since the
1330 Makefile now handles them.
1332 2000-03-16 Akim Demaille <akim@epita.fr>
1334 * src/output.c (output_rule_data): Output the documentation of
1336 (Copyright notice): Update.
1339 2000-03-16 Akim Demaille <akim@epita.fr>
1341 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1342 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1343 One `#if YYDEBUG' remains, since it uses variables which are
1344 defined only if `YYDEBUG != 0'.
1346 2000-03-16 Akim Demaille <akim@epita.fr>
1348 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1349 and related variables so that the similarities are highlighted.
1351 2000-03-16 Akim Demaille <akim@epita.fr>
1353 * src/bison.s1: Properly indent CPP directives.
1355 2000-03-16 Akim Demaille <akim@epita.fr>
1357 * src/bison.s1: Properly indent the `alloca' CPP section.
1359 2000-03-16 Akim Demaille <akim@epita.fr>
1361 Do not hard code values of directories in `configure.in'.
1362 Update the `configure' tool chain.
1364 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1366 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1367 (AC_OUTPUT): Add m4/Makefile.
1368 Bump to bison 1.28a, 1.29 has never been released.
1369 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1370 handled via src/Makefile.am.
1371 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1372 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1374 * Makefile.am (SUBDIRS): Add m4.
1375 (ACLOCAL_AM_FLAGS): New variable.
1376 (AUTOMAKE_OPTIONS): Add check-news.
1377 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1378 the proper line number and file name.
1379 (DEFS): Propagate the location of bison library files and of the
1381 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1383 * acinclude.m4: Remove, replaced by the directory m4.
1384 * m4/Makefile.am (EXTRA_DIST): New variable.
1385 * m4/gettext.m4: New file, from the fileutils.
1386 * m4/lcmessage.m4: Likewise
1387 * m4/progtest.m4: Likewise.
1388 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1390 2000-03-10 Akim Demaille <akim@epita.fr>
1393 Formatting changes of various comments.
1394 Respect the GNU coding standards at various places.
1395 Don't use `_()' when no translation is needed.
1397 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1400 OS/2 honors TMPDIR environment variable.
1402 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1404 * doc/bison.texinfo: Tweaked spelling and grammar.
1406 Removed reference to price of printed copy.
1407 Mention BISON_SIMPLE and BISON_HAIRY.
1409 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1411 * configure.in, NEWS:
1412 Bison 1.29 released.
1414 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1416 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1417 Added reference card.
1419 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1421 * po/ru.po: Added Russian translation.
1423 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1425 * configure.in: Added Russian translation.
1427 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1429 * configure.in, NEWS, README:
1430 Released version 1.28.
1432 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1435 Squashed redefinition warning on some systems.
1437 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1438 Have configure build version string instead of relying on ANSI string
1441 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1443 * po/POTFILES.in: Got rid of version.c.
1445 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1447 * acconfig.h, configure.in:
1448 Have configure build version string instead of relying on ANSI string
1451 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1454 Dropped mention of `+' for long-named options.
1456 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1458 * src/files.c: Added <unistd.h> for unlink().
1460 * src/Makefile.am, src/system.h:
1463 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1465 * README: Added a FAQ list.
1467 * configure.in, acconfig.h:
1470 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1472 * doc/FAQ, doc/Makefile.am:
1475 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1477 * src/alloc.h, src/symtab.h, src/version.c:
1478 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1480 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1482 * src/.cvsignore, src/Makefile.am:
1483 Reorganized: sources in `src', documentation in `doc'.
1485 * src/lex.c (literalchar):
1486 fixed the code for escaping double quotes (thanks
1489 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1491 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1492 Adjusted paths to reflect directory reorganization.
1494 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1496 * doc/.cvsignore, doc/Makefile.am:
1497 Reorganized: sources in `src', documentation in `doc'.
1499 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1502 Updated AC_INIT file to reflect directory reorganization.
1504 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1505 Reorganized: sources in `src', documentation in `doc'.
1507 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1510 Don't declare calloc() and realloc() if not necessary.
1512 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1514 * configure.in, acconfig.h, acinclude.m4:
1515 Don't declare calloc() and realloc() if not necessary.
1517 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1519 * po/.cvsignore: Added i18n support.
1521 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1523 * acconfig.h, configure.in, Makefile.am:
1526 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1528 * src/bison.s1: Fixed #line numbers.
1530 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1532 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1533 Added PO files from Translation Project.
1535 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1538 Added support for non-ANSI compilers (ansi2knr).
1540 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1542 * configure.in: Bumped version number to 1.27.
1545 Added `bison.simple' to list of files removed by `make distclean'.
1547 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1549 * src/files.c, src/files.h:
1550 Defined locations of parser files in config.h instead of Makefile.
1552 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1554 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1555 Defined locations of parser files in config.h instead of Makefile.
1557 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1560 Removed inappropriate use of $< macro.
1562 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1564 * po/Makefile.in.in, po/POTFILES.in:
1565 Add `po' directory skeleton.
1567 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1569 * README: Document help-bison list.
1571 * configure.in: Add check for mkstemp().
1573 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1575 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1576 Hush a few compiler warnings.
1579 Add tryclose(), which verifies that fclose was successful.
1580 Hush a couple of compiler warnings.
1582 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1584 * Makefile.am, OChangeLog:
1585 ChangeLog is now automatically generated. Include the old version as
1588 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1590 * 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:
1593 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1595 * doc/bison.texinfo: Fix formatting glitch.
1597 * doc/bison.texinfo: Update FSF address.
1599 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1601 * acconfig.h: Update FSF address.
1603 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1606 Don't define PACKAGE here, since config.h defines it.
1608 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1610 * src/reader.c: Update copyright date.
1613 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1614 favor of output directly to stderr (avoids buffer overruns).
1616 * src/reader.c: Some checks for premature EOF.
1618 * 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:
1619 Use prototypes if the compiler understands them.
1621 * src/files.c: Honor TMPDIR on Unix hosts.
1622 Use prototypes if the compiler understands them.
1625 Fix a couple of buffer overrun bugs.
1626 Use prototypes if the compiler understands them.
1628 * src/system.h: Include unistd.h and ctype.h.
1629 Use #ifdef instead of #if for NLS symbols.
1631 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1633 * doc/bison.texinfo:
1634 Delete comment "consider using @set for edition number, etc..." since
1635 we now are doing so.
1637 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1640 Use prototypes if the compiler understands them.
1642 * NEWS: Document 1.26 highlights.
1644 * Makefile.am: Require Automake 1.3 or later.
1647 Use prototypes if the compiler understands them.
1649 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1652 Use VERSION symbol from automake for version number.
1654 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1656 * acconfig.h, configure.in, version.cin:
1657 Use VERSION symbol from automake for version number.
1659 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1662 Distribute original version of simple parser (bison.s1), not built
1663 version (bison.simple).
1665 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1667 * doc/bison.texinfo: Add info dir entry.
1669 * doc/bison.texinfo:
1670 Let automake put version number into documentation.
1672 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1674 * src/bison.cld, src/build.com, src/vmshlp.mar:
1675 Add non-RCS files from /gd/gnu/bison.
1677 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1680 Document the BISON_HAIRY and BISON_SIMPLE variables.
1682 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1684 * src/version.c: Build version.c automatically.
1687 Fix token numbering (used to start at 258, not 257).
1689 * src/system.h: Include config.h.
1691 * src/getargs.c: Update bug report address.
1693 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1694 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1696 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1699 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1701 * configure.in, version.cin:
1702 Build version.c automatically.
1704 * AUTHORS: Add AUTHORS file.
1706 * README: Update bug report address.
1709 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1711 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1714 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1716 * doc/bison.texinfo: Clean up some formatting.
1718 1998-05-05 Richard Stallman <rms@gnu.org>
1720 * doc/bison.texinfo:
1721 Explain better why to make a pure parser.
1723 1998-01-05 Richard Stallman <rms@gnu.org>
1725 * src/files.c (openfiles):
1726 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1727 find a temporary directory, if possible. Do not unlink files while
1730 1997-08-25 Richard Stallman <rms@gnu.org>
1732 * src/reader.c (stack_offset;):
1733 Change some warni to warns.
1735 * src/lex.c (literalchar): Use warns, not warni.
1737 1997-06-28 Richard Stallman <rms@gnu.org>
1739 * src/bison.s1: Add a Bison version comment.
1741 * src/main.c (fatal, warn, berror):
1744 1997-06-28 Richard Stallman <rms@gnu.org>
1746 * Makefile.in (bison_version): New variable.
1747 (dist): Use that variable.
1748 (bison.s1): Substitute the Bison version into bison.simple.
1750 * bison.simple: Add a Bison version comment.
1752 1997-06-18 Richard Stallman <rms@gnu.org>
1754 * src/main.c (fatal, warn, berror):
1755 Make error messages standard.
1756 (toomany): Improve error message text.
1758 * 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:
1759 new.h renamed to alloc.h.
1761 1997-06-18 Richard Stallman <rms@gnu.org>
1763 * Makefile.in: new.h renamed to alloc.h.
1765 1997-05-24 Richard Stallman <rms@gnu.org>
1767 * src/lex.c (literalchar):
1768 Fix the code for escaping \, " and '.
1770 (lex): Avoid trouble when there are many chars
1771 to discard in a char literal with just several chars in it.
1773 1997-05-17 Richard Stallman <rms@gnu.org>
1776 Use malloc, if using alloca is troublesome.
1777 (YYSTACK_USE_ALLOCA): New flag macro.
1778 Define it for some systems and compilers.
1779 (YYSTACK_ALLOC): New macro.
1780 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1781 If it was malloc'd, free it.
1783 1997-05-17 Richard Stallman <rms@gnu.org>
1786 Use malloc, if using alloca is troublesome.
1787 (YYSTACK_USE_ALLOCA): New flag macro.
1788 Define it for some systems and compilers.
1789 (YYSTACK_ALLOC): New macro.
1790 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1791 If it was malloc'd, free it.
1793 1997-04-23 Richard Stallman <rms@gnu.org>
1796 (alloca) [__hpux]: Always define as __builtin_alloca.
1798 1997-04-23 Richard Stallman <rms@gnu.org>
1801 (alloca) [__hpux]: Always define as __builtin_alloca.
1803 1997-04-22 Richard Stallman <rms@gnu.org>
1806 [__hpux]: Include alloca.h (right for HPUX 10)
1807 instead of declaring alloca (right for HPUX 9).
1809 * src/bison.s1 (__yy_memcpy):
1810 Declare arg `count' as unsigned int.
1811 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1813 1997-04-22 Richard Stallman <rms@gnu.org>
1816 [__hpux]: Include alloca.h (right for HPUX 10)
1817 instead of declaring alloca (right for HPUX 9).
1819 * bison.simple (__yy_memcpy):
1820 Declare arg `count' as unsigned int.
1821 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1823 1997-01-03 Richard Stallman <rms@gnu.org>
1825 * src/allocate.c: [__STDC__ or _MSC_VER]:
1826 Declare calloc and realloc to return void *.
1828 1997-01-02 Richard Stallman <rms@gnu.org>
1831 [_MSC_VER]: Include stdlib.h and process.h.
1832 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1834 * src/main.c (main): Return FAILURE as a value.
1835 (printable_version): Declare arg as int, not char.
1837 1997-01-02 Richard Stallman <rms@gnu.org>
1839 * Makefile.in (dist):
1840 Explicitly check for symlinks, and copy them.
1842 1996-12-19 Richard Stallman <rms@gnu.org>
1845 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1847 1996-12-18 Paul Eggert <eggert@gnu.org>
1849 * src/bison.s1 (yyparse):
1850 If __GNUC__ and YYPARSE_PARAM are both defined,
1851 declare yyparse to have a void * argument.
1853 1996-12-18 Paul Eggert <eggert@gnu.org>
1855 * bison.simple (yyparse):
1856 If __GNUC__ and YYPARSE_PARAM are both defined,
1857 declare yyparse to have a void * argument.
1859 1996-12-17 Richard Stallman <rms@gnu.org>
1861 * src/reduce.c (nbits): Add some casts.
1863 1996-08-12 Richard Stallman <rms@gnu.org>
1865 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1867 1996-08-12 Richard Stallman <rms@gnu.org>
1869 * bison.simple: Test _MSDOS as well as _MSDOS_.
1871 1996-07-31 Richard Stallman <rms@gnu.org>
1874 [__sun && __i386]: Include alloca.h.
1876 1996-07-31 Richard Stallman <rms@gnu.org>
1879 [__sun && __i386]: Include alloca.h.
1881 1996-07-30 Richard Stallman <rms@gnu.org>
1883 * src/bison.s1: Comment change.
1885 * src/bison.s1: Test _MSDOS_, not MSDOS.
1887 1996-07-30 Richard Stallman <rms@gnu.org>
1889 * bison.simple: Comment change.
1891 * bison.simple: Test _MSDOS_, not MSDOS.
1893 1996-06-01 Richard Stallman <rms@gnu.org>
1895 * 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:
1896 Insert `_' macro around many string constants.
1899 Insert `_' macro around many string constants.
1901 (main): Call setlocale, bindtextdomain and textdomain.
1903 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1904 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1905 [ENABLE_NLS]: Include libintl.h.
1906 [ENABLE_NLS] (gettext): Define.
1907 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1908 (N_, PACKAGE, LOCALEDIR): New macros.
1910 1996-06-01 Richard Stallman <rms@gnu.org>
1912 * POTFILES.in: New file.
1914 * Makefile.in (allocate.o):
1915 Define target explicitly.
1917 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1918 (LDFLAGS): Set to @LDFLAGS@.
1919 (configure): Run autoconf only if preceding `cd' succeeds.
1920 (bison.s1): Redirect output to temporary file then move the
1921 temporary to the target, rather than redirecting directly to bison.s1.
1922 (clean): Remove config.status and config.log.
1923 (distclean): Don't remove config.status here.
1925 1996-05-12 Richard Stallman <rms@gnu.org>
1928 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1930 1996-05-12 Richard Stallman <rms@gnu.org>
1933 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1935 1996-05-11 Richard Stallman <rms@gnu.org>
1937 * src/bison.s1 (__yy_memcpy):
1938 Really reorder the args, as was supposedly done on Feb 14 1995.
1939 (yyparse): Calls changed accordingly.
1941 1996-05-11 Richard Stallman <rms@gnu.org>
1943 * Makefile.in (dist): Don't use $(srcdir).
1945 * bison.simple (__yy_memcpy):
1946 Really reorder the args, as was supposedly done on Feb 14 1995.
1947 (yyparse): Calls changed accordingly.
1949 1996-01-27 Richard Stallman <rms@gnu.org>
1951 * src/output.c (output_rule_data):
1952 Test YYERROR_VERBOSE in the conditional
1953 around the definition of ttyname.
1955 1995-12-29 Richard Stallman <rms@gnu.org>
1958 Fix line numbers in #line commands.
1960 1995-12-29 Richard Stallman <rms@gnu.org>
1963 Fix line numbers in #line commands.
1965 1995-12-27 Richard Stallman <rms@gnu.org>
1967 * src/bison.s1 (YYPARSE_PARAM_DECL):
1968 In C++, make it always null.
1969 (YYPARSE_PARAM_ARG): New macro.
1970 (yyparse): Use YYPARSE_PARAM_ARG.
1972 1995-12-27 Richard Stallman <rms@gnu.org>
1974 * bison.simple (YYPARSE_PARAM_DECL):
1975 In C++, make it always null.
1976 (YYPARSE_PARAM_ARG): New macro.
1977 (yyparse): Use YYPARSE_PARAM_ARG.
1979 1995-11-29 Richard Stallman <rms@gnu.org>
1981 * doc/bison.texinfo:
1982 Describe literal string tokens, %raw, %no_lines, %token_table.
1984 1995-11-29 Daniel Hagerty <hag@gnu.org>
1986 * doc/bison.texinfo: Fixed update date
1988 1995-10-16 Richard Stallman <rms@gnu.org>
1990 * src/version.c: Version 1.25.
1992 1995-10-16 Richard Stallman <rms@gnu.org>
1994 * NEWS: *** empty log message ***
1996 1995-10-16 Richard Stallman <rms@gnu.org>
1998 * doc/bison.1, doc/bison.rnh:
2001 1995-10-15 Richard Stallman <rms@gnu.org>
2003 * src/vmsgetargs.c, src/getargs.c:
2004 Added -n, -k, and -raw switches.
2005 (noparserflag, toknumflag, rawtoknumflag): New variables.
2007 * src/symtab.h (SALIAS):
2008 New #define for adding aliases to %token.
2009 (struct bucket): Added `alias' field.
2011 * src/reduce.c (reduce_grammar):
2012 Revise error message.
2013 (print_notices): Remove final `.' from error message.
2015 * src/reader.c (reader_output_yylsp):
2017 (readgram): Use `#if 0' around code that accepted %command
2018 inside grammar rules: The documentation doesn't allow it,
2019 and it will fail since the %command processors scan for the next %.
2020 (parse_token_decl): Extended the %token
2021 declaration to allow a multi-character symbol as an alias.
2022 (parse_thong_decl): New function.
2023 (read_declarations): Added %thong declarations.
2024 (read_declarations): Handle NOOP to deal with allowing
2025 % declarations as another means to specify the flags.
2026 (readgram): Allow %prec prior to semantics embedded in a rule.
2027 (skip_to_char, read_declarations, copy_definition)
2028 (parse_token_decl, parse_start_decl, parse_type_decl)
2029 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2030 (get_type_name, copy_guard, copy_action, readgram)
2031 (get_type, packsymbols): Revised most error messages.
2032 Changed `fatal' to `warnxxx' to avoid aborting for error.
2033 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2034 (read_declarations): Improve the error message for
2035 an invalid character. Do not abort.
2036 (read_declarations, copy_guard, copy_action): Use
2037 printable_version to avoid unprintable characters in printed output.
2038 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2039 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2040 Allow the type of a non-terminal can be given
2041 more than once, as long as all specifications give the same type.
2044 (output_headers, output_trailers, output, output_gram)
2045 (output_rule_data): Implement noparserflag variable.
2046 Implement toknumflag variable.
2047 (output): Call reader_output_yylsp to output LTYPESTR.
2049 * src/main.c (main):
2050 If reader sees an error, don't process the grammar.
2051 (fatals): Updated to not use VARARGS1.
2052 (printable_version, int_to_string, warn, warni, warns, warnss)
2053 (warnsss): New error reporting functions. Avoid abort for error.
2056 Added THONG and NOOP for alias processing.
2057 Added SETOPT for the new code that allows setting options with %flags.
2060 Include getopt.h. Add some extern decls.
2061 (safegetc): New function to deal with EOF gracefully.
2062 (literalchar); new function to deal with reading \ escapes.
2063 (lex): Use literalchar.
2064 (lex): Implemented "..." tokens.
2065 (literalchar, lex, parse_percent_token): Made tokenbuffer
2066 always contain the token. This includes growing the token
2067 buffer while reading an integer.
2068 (parse_percent_token): Replaced if-else statement with percent_table.
2069 (parse_percent_token): Added % declarations as another
2070 way to specify the flags -n, -l, and -r. Also added hooks for
2071 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2072 major changes to files.c.
2073 (lex) Retain in the incoming stream a character following
2075 (skip_white_space, lex): Revised most error messages
2076 and changed fatal to warn to avoid aborting.
2077 (percent_table): Added %thong declarations.
2079 * src/gram.h: Comment changes.
2081 * src/files.c (openfiles, open_extra_files, done):
2083 and actfile file. Handle noparserflag. Both for -n switch.
2085 * src/conflicts.c (resolve_sr_conflict):
2086 Remove use of alloca.
2088 1995-06-01 Jim Meyering <meyering@gnu.org>
2090 * doc/bison.texinfo: *** empty log message ***
2092 1995-05-06 Richard Stallman <rms@gnu.org>
2094 * src/bison.s1: Comment change.
2096 1995-05-06 Richard Stallman <rms@gnu.org>
2098 * bison.simple: Comment change.
2100 1995-05-03 Richard Stallman <rms@gnu.org>
2102 * src/version.c: Version now 1.24.
2104 * src/bison.s1: Change distribution terms.
2106 * src/version.c: Version now 1.23.
2108 1995-05-03 Richard Stallman <rms@gnu.org>
2110 * doc/bison.texinfo:
2111 Rewrite "Conditions for Using Bison".
2112 Update version to 1.24.
2114 1995-05-03 Richard Stallman <rms@gnu.org>
2116 * bison.simple: Change distribution terms.
2118 1995-02-23 Richard Stallman <rms@gnu.org>
2120 * src/files.c: Test __VMS_POSIX as well as VMS.
2122 1995-02-14 Jim Meyering <meyering@gnu.org>
2124 * src/bison.s1 (__yy_memcpy):
2125 Renamed from __yy_bcopy to avoid
2126 confusion. Reverse FROM and TO arguments to be consistent with
2129 1995-02-14 Jim Meyering <meyering@gnu.org>
2131 * bison.simple (__yy_memcpy):
2132 Renamed from __yy_bcopy to avoid
2133 confusion. Reverse FROM and TO arguments to be consistent with
2136 1994-11-10 David J. MacKenzie <djm@gnu.org>
2142 * Makefile.in (DISTFILES): Include NEWS.
2144 * Makefile.in (DISTFILES):
2145 Include install-sh, not install.sh.
2147 * configure.in: Update to Autoconf v2 macro names.
2149 1994-10-05 David J. MacKenzie <djm@gnu.org>
2151 * Makefile.in: fix typo
2153 * Makefile.in (prefix, exec_prefix):
2154 Let configure set them.
2156 1994-09-28 David J. MacKenzie <djm@gnu.org>
2158 * Makefile.in: Set datadir to $(prefix)/share.
2160 1994-09-15 Richard Stallman <rms@gnu.org>
2163 Update copyright notice and GPL version.
2165 1994-09-15 Richard Stallman <rms@gnu.org>
2168 Update copyright notice and GPL version.
2170 1994-07-12 Richard Stallman <rms@gnu.org>
2172 * src/reduce.c, src/reader.c:
2175 1994-05-05 David J. MacKenzie <djm@gnu.org>
2177 * Makefile.in: entered into RCS
2179 1994-03-26 Richard Stallman <rms@gnu.org>
2181 * src/bison.s1: entered into RCS
2183 1994-03-26 Richard Stallman <rms@gnu.org>
2185 * bison.simple: entered into RCS
2187 1994-03-25 Richard Stallman <rms@gnu.org>
2189 * src/main.c: entered into RCS
2191 1994-03-24 Richard Stallman <rms@gnu.org>
2193 * src/conflicts.c: entered into RCS
2195 1994-01-02 Richard Stallman <rms@gnu.org>
2197 * Makefile.in: *** empty log message ***
2199 1993-11-21 Richard Stallman <rms@gnu.org>
2201 * src/bison.s1: *** empty log message ***
2203 1993-11-21 Richard Stallman <rms@gnu.org>
2205 * doc/bison.texinfo: entered into RCS
2207 * doc/bison.texinfo: *** empty log message ***
2209 1993-11-21 Richard Stallman <rms@gnu.org>
2211 * bison.simple: *** empty log message ***
2213 1993-10-25 David J. MacKenzie <djm@gnu.org>
2215 * doc/bison.texinfo: *** empty log message ***
2217 1993-10-19 Richard Stallman <rms@gnu.org>
2219 * src/bison.s1: *** empty log message ***
2221 1993-10-19 Richard Stallman <rms@gnu.org>
2223 * bison.simple: *** empty log message ***
2225 1993-10-14 Richard Stallman <rms@gnu.org>
2227 * src/bison.s1: *** empty log message ***
2229 1993-10-14 Richard Stallman <rms@gnu.org>
2231 * bison.simple: *** empty log message ***
2233 1993-09-14 David J. MacKenzie <djm@gnu.org>
2235 * doc/bison.texinfo: *** empty log message ***
2237 1993-09-13 Noah Friedman <friedman@gnu.org>
2239 * Makefile.in: *** empty log message ***
2241 1993-09-10 Richard Stallman <rms@gnu.org>
2243 * src/conflicts.c: *** empty log message ***
2245 * src/system.h: entered into RCS
2247 1993-09-10 Richard Stallman <rms@gnu.org>
2249 * doc/bison.1: entered into RCS
2251 1993-09-06 Noah Friedman <friedman@gnu.org>
2253 * src/version.c: entered into RCS
2255 1993-09-06 Noah Friedman <friedman@gnu.org>
2257 * Makefile.in: *** empty log message ***
2259 1993-07-30 David J. MacKenzie <djm@gnu.org>
2261 * Makefile.in: *** empty log message ***
2263 1993-07-24 Richard Stallman <rms@gnu.org>
2265 * src/bison.s1: *** empty log message ***
2267 1993-07-24 Richard Stallman <rms@gnu.org>
2269 * bison.simple: *** empty log message ***
2271 1993-07-08 David J. MacKenzie <djm@gnu.org>
2273 * Makefile.in: *** empty log message ***
2275 1993-07-04 Richard Stallman <rms@gnu.org>
2277 * src/bison.s1: *** empty log message ***
2279 1993-07-04 Richard Stallman <rms@gnu.org>
2281 * bison.simple: *** empty log message ***
2283 1993-06-26 David J. MacKenzie <djm@gnu.org>
2285 * src/getargs.c: entered into RCS
2287 1993-06-26 David J. MacKenzie <djm@gnu.org>
2289 * doc/bison.texinfo: *** empty log message ***
2291 * doc/bison.1: New file.
2293 1993-06-25 Richard Stallman <rms@gnu.org>
2295 * src/getargs.c: New file.
2297 1993-06-16 Richard Stallman <rms@gnu.org>
2299 * src/bison.s1: *** empty log message ***
2301 1993-06-16 Richard Stallman <rms@gnu.org>
2303 * bison.simple: *** empty log message ***
2305 1993-06-03 Richard Stallman <rms@gnu.org>
2307 * src/bison.s1: New file.
2309 1993-06-03 Richard Stallman <rms@gnu.org>
2311 * doc/bison.texinfo: *** empty log message ***
2313 1993-06-03 Richard Stallman <rms@gnu.org>
2315 * bison.simple: New file.
2317 1993-05-19 Richard Stallman <rms@gnu.org>
2319 * doc/bison.texinfo: New file.
2321 1993-05-07 Noah Friedman <friedman@gnu.org>
2323 * Makefile.in: *** empty log message ***
2325 1993-04-28 Noah Friedman <friedman@gnu.org>
2327 * src/reader.c: *** empty log message ***
2329 1993-04-23 Noah Friedman <friedman@gnu.org>
2331 * src/alloc.h: entered into RCS
2333 1993-04-20 David J. MacKenzie <djm@gnu.org>
2335 * src/version.c: *** empty log message ***
2337 * src/files.c, src/allocate.c:
2340 * src/reader.c: *** empty log message ***
2342 * src/lex.c: entered into RCS
2344 * src/conflicts.c: New file.
2346 * src/symtab.c: entered into RCS
2348 * src/alloc.h: New file.
2350 * src/LR0.c: entered into RCS
2352 1993-04-18 Noah Friedman <friedman@gnu.org>
2354 * src/reader.c: New file.
2356 * src/version.c: *** empty log message ***
2358 1993-04-18 Noah Friedman <friedman@gnu.org>
2360 * Makefile.in: *** empty log message ***
2362 1993-04-17 Noah Friedman <friedman@gnu.org>
2364 * Makefile.in: *** empty log message ***
2366 1993-04-15 Richard Stallman <rms@gnu.org>
2368 * src/main.c, src/files.c:
2371 1993-04-15 Noah Friedman <friedman@gnu.org>
2373 * configure.in: entered into RCS
2375 * configure.in: *** empty log message ***
2377 * configure.in: New file.
2379 1993-04-14 Richard Stallman <rms@gnu.org>
2381 * Makefile.in: New file.
2383 1993-04-13 Richard Stallman <rms@gnu.org>
2385 * src/version.c: New file.
2387 1993-03-25 Richard Stallman <rms@gnu.org>
2389 * src/output.c: entered into RCS
2391 1992-09-25 Richard Stallman <rms@gnu.org>
2393 * configure.bat: entered into RCS
2395 1992-06-22 Richard Stallman <rms@gnu.org>
2397 * src/vmsgetargs.c: entered into RCS
2399 1992-06-22 Richard Stallman <rms@gnu.org>
2401 * doc/bison.rnh: entered into RCS
2403 1992-04-20 David J. MacKenzie <djm@gnu.org>
2405 * README: entered into RCS
2407 1992-01-22 Richard Stallman <rms@gnu.org>
2409 * src/machine.h: entered into RCS
2411 1991-12-21 Richard Stallman <rms@gnu.org>
2413 * src/lalr.c, src/closure.c:
2416 1991-12-20 Richard Stallman <rms@gnu.org>
2418 * src/state.h: entered into RCS
2420 1991-12-18 Richard Stallman <rms@gnu.org>
2422 * src/print.c, src/nullable.c, src/derives.c:
2425 1991-11-03 David J. MacKenzie <djm@gnu.org>
2427 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2430 1988-09-09 Richard Stallman <rms@gnu.org>
2432 * src/bison.hairy: entered into RCS
2434 1987-12-16 Richard Stallman <rms@gnu.org>
2436 * REFERENCES: entered into RCS