1 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
3 * src/output.c (output_parser): Delete unused variable actions_dumped.
5 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
7 * src/output.c (output): Delete call to reader_output_yylsp.
8 * src/reader.c (reader): Likewise.
9 * src/reader.h: Delete declaration of reader_output_yylsp.
11 2001-09-02 Marc Autret <autret_m@epita.fr>
13 * src/reader.c: Include muscle_tab.h.
14 (parse_union_decl): Update.
15 (parse_macro_decl): Rename parse_muscle_decl.
16 Update to use renamed functions and variable.
17 (read_declarations, copy_action, read_additionnal_code, : Updated
18 with correct variables and functions names.
19 (packsymbols, reader): Likewise.
21 * src/reader.h (muscle_obstack): Extern declaration update.
23 * src/output.c: Include muscle_tab.h
24 In all functions using macro_insert, change by using muscle_insert ().
25 (macro_obstack): Rename muscle_obstack.
26 Echo modifications in the whole file.
27 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
28 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
29 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
31 * src/muscle_tab.h: Update double inclusion macros.
32 (macro_entry_s): Rename muscle_entry_s.
35 * src/muscle_tab.c: Include muscle_tab.h.
36 Rename macro_tabble to muscle_table.
37 (mhash1, mhash2, mcmp): Use muscle_entry.
38 (macro_init): Rename muscle_init. Update.
39 (macro_insert): Rename muscle_insert. Update.
40 (macro_find): Rename muscle_find. Update.
42 * src/main.c: Include muscle_tab.h.
43 (main): Call muscle_init ().
44 * src/Makefile.am (bison_SOURCES): Echo modifications.
46 2001-09-02 Marc Autret <autret_m@epita.fr>
48 Now the files macro_tab.[ch] are named muscle_tab.[ch].
50 * src/muscle_tab.c, src/muscle_tab.h: Add files.
52 2001-09-02 Marc Autret <autret_m@epita.fr>
54 * src/macrotab.c, src/macrotab.h: Remove.
56 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
58 * src/reader.c (copy_guard): Use muscle to specify the `#line'
61 2001-09-01 Marc Autret <autret_m@epita.fr>
63 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
64 to an explicit value to activate the feature. We do it here.
66 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
68 * src/output.c (prepare): Delete the `filename' muscule insertion.
69 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
70 (parse_union_decl): Likewise.
71 * src/macrotab.c (macro_init): Initialize filename by infile.
73 2001-08-31 Marc Autret <autret_m@epita.fr>
75 * src/bison.simple (YYLSP_NEEDED): New definition.
76 * src/output.c (prepare): Add macro insertion of `locations_flag'
78 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
80 * src/output.c (prepare): Delete insertion of previous muscles,
81 and insert the `prefix' muscles.
82 * src/macrotab.c (macro_init): Likewise.
83 (macro_init): Initialization prefix directive by `yy'.
84 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
85 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
86 yylval, yydebug, yyerror, yynerrs and yyparse.
87 New directive `#define' to substitute yydebug, ... with option
90 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
92 * src/main.c (main): Standardize.
93 * src/output.c (output_table_data, output_parser): Likewise.
94 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
96 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
98 * src/reader.c (read_additionnal_code): Rename %%user_code to
100 * src/output.c (output): Rename %%declarations to %%prologue.
101 * src/bison.simple: Echo modifications.
103 2001-08-31 Marc Autret <autret_m@epita.fr>
105 * src/reader.c (readgram): CleanUp.
106 (output_token_defines): Likewise.
107 (packsymbols): Likewise.
109 * src/output.c (output): CPP-out useless code.
111 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
113 * src/reader.c (reader): Delete obsolete call to function
114 output_trailers and output_headers.
115 * src/output.h: Remove obsolete functions prototypes of output_headers
118 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
120 * src/main.c: Include macrotab.h.
121 * src/macrotab.h (macro_entry_s): Constify fields.
122 Adjust functions prototypes.
123 * src/macrotab.c (macro_insert): Constify key and value.
124 (macro_find): Constify key.
125 (macro_insert): Include 'xalloc.h'
126 (macro_insert): Use XMALLOC.
127 (macro_find): Constify return value.
128 * src/output.c (output_table_data): Rename table to table_data.
129 (output_parser): Constify macro_key, macro_value.
131 2001-08-30 Marc Autret <autret_m@epita.fr>
133 * src/reader.c (parse_skel_decl): New.
134 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
135 * src/lex.h (token_t): New token `tok_skel'.
136 * src/lex.c (percent_table): Add skeleton option entry.
139 2001-08-29 Marc Autret <autret_m@epita.fr>
141 * src/bison.simple: Add %%user_code directive at the end.
142 * src/reader.c (read_additionnal_code): New.
144 * src/output.c (output_program): Remove.
147 2001-08-28 Marc Autret <autret_m@epita.fr>
149 * src/output.c (output_actions): Clean up.
150 (output_gram): CPP-out useless code.
151 * src/reader.c (reader): Clean up, CPP-out useless code.
153 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
155 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
157 * src/bison.simple: Add `%%definitions'.
159 2001-08-28 Marc Autret <autret_m@epita.fr>
161 * config/depcomp: New file.
163 2001-08-27 Paul Eggert <eggert@twinsun.com>
165 * src/bison.simple (yyparse): Don't take the address of an
166 item before the start of an array, as that doesn't conform to
169 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
171 * src/output.c (output): Remove the initialization of the macro
172 obstack. It was done too late here.
174 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
176 (reader): Initialize the macro obstack here, since we need it to grow
177 '%define' directives.
179 * src/reader.h: Declare the macro obstack as extern.
181 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
183 * src/output.c (output_parser): Fix. Store single '%' characters in
184 the output obstack instead of throwing them away.
186 2001-08-27 Akim Demaille <akim@epita.fr>
188 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
190 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
192 * lib/Makefile.am: Adjust.
194 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
196 * src/bison.simple: Update and add '%%' directives.
198 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
200 * src/reader.c (reader): Remove calls to 'output_headers' and
201 'output_trailers'. Remove some C output.
202 (readgram): Disable a piece of code that was writing a default
203 definition for 'YYSTYPE'.
204 (reader_output_yylsp): Remove.
205 (packsymbols): Output token defintions to a macro.
206 (copy_definition): Disable C output.
208 * src/reader.c (parse_macro_decl): New function used to parse macro
210 (copy_string2): Put the body of copy_string into this new function.
211 Add a parameter to let the caller choose whether he wants to copy the
212 string delimiters or not.
213 (copy_string): Be a simple call to copy_string2 with the last argument
215 (read_declarations): Add case for macro definition.
216 (copy_identifier): New.
217 (parse_macro_decl): Read macro identifiers using copy_identifier
220 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
222 * src/output.c (prepare): Add prefixed names.
223 (output_parser): Output semantic actions.
224 (output_parser): Fix bug on '%%line' directives.
226 * src/output.c (output_headers): Remove. The C code printed by this
227 function should now be in the skeletons.
228 (output_trailers): Remove.
229 (output): Disable call to 'reader_output_yylsp'.
230 (output_rule_data): Do not output tables to the table obstack.
232 * src/output.c: Remove some C dedicated output.
233 Improve the use of macro and output obstacks.
234 (output_defines): Remove.
236 * src/output.c (output_token_translations): Associate 'translate'
237 table with a macro. No output to the table obstack.
238 (output_gram): Same for 'rhs' and 'prhs'.
239 (output_stos): Same for 'stos'.
240 (output_rule_data): Same for 'r1' and 'r2'.
241 (token_actions): Same for 'defact'.
242 (goto_actions): Same for 'defgoto'.
243 (output_base): Same for 'pact' and 'pgoto'.
244 (output_table): Same for 'table'.
245 (output_check): Same for 'check'.
247 * src/output.c (output_table_data): New function.
248 (output_short_table): Remove.
249 (output_short_or_char_table): Remove.
251 * src/output.c (output_parser): Replace most of the skeleton copy code
252 with something new. Skeletons are now processed character by character
253 rather than line by line, and Bison looks for '%%' macros. This is the
254 first step in making Bison's output process (a lot) more flexible.
255 (output_parser): Use the macro table.
257 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
259 * src/main.c (main): Initialize the macro table.
261 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
263 * src/lex.c (percent_table): Add tok_define.
264 * src/lex.h: Add tok_define.
266 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
268 * src/macrotab.c: New file.
269 * src/macrotab.h: New file.
270 * src/Makefile.am: Update.
272 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
274 * lib/hash.c: New file.
275 * lib/hash.h: New file.
276 * lib/Makefile.am: Update.
278 2001-08-15 Akim Demaille <akim@epita.fr>
282 2001-08-15 Marc Autret <autret_m@epita.fr>
284 * src/reader.c (readgram): Indent output macro YYSTYPE.
285 (packsymbols): Likewise.
286 (output_token_defines): Likewise.
287 * src/files.c: Standardize.
288 (compute_header_macro): New.
289 (defines_obstack_save): New. Use compute_header_macro.
290 (output_files): Update. Use defines_obstack_save.
292 2001-08-15 Akim Demaille <akim@epita.fr>
294 * doc/bison.texinfo (Table of Symbols): Document
297 2001-08-15 Akim Demaille <akim@epita.fr>
299 * missing: Update from CVS Automake.
300 * config/config.guess, config/config.sub, config/texinfo.tex:
303 2001-08-15 Akim Demaille <akim@epita.fr>
305 * Makefile.maint: Sync with CVS Autoconf.
307 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
309 * doc/bison.texinfo: Include GNU Free Documentation License from
311 * doc/fdl.texi: Add to package.
313 2001-08-14 Marc Autret <autret_m@epita.fr>
315 Turn on %{source,header}_extension features.
317 * src/lex.c (percent_table): Un-CPP out header_extension and
319 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
320 (compute_exts_from_src): Remove conditions. It restores priorities
323 2001-08-14 Marc Autret <autret_m@epita.fr>
325 * src/files.c (compute_base_names): Add extensions computing when
326 `--file-prefix' used.
327 Standardize function calls.
329 2001-08-13 Marc Autret <autret_m@epita.fr>
331 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
332 defining it (defined but null disables alloca).
334 2001-08-13 Marc Autret <autret_m@epita.fr>
336 * src/bison.simple (_yy_memcpy): CPP reformat.
338 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
340 * tests/atconfig.in (CPPFLAGS): Fix.
342 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
344 * doc/bison.texinfo: Include GNU General Public License from
346 * doc/gpl.texi: Add to package.
348 2001-08-10 Marc Autret <autret_m@epita.fr>
350 * src/print_graph.h: Fix.
351 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
353 2001-08-10 Akim Demaille <akim@epita.fr>
355 * src/system.h: Provide default declarations for stpcpy, strndup,
358 2001-08-10 Robert Anisko <anisko_r@epita.fr>
360 * doc/bison.texinfo (Locations): Update @$ stuff.
362 2001-08-09 Robert Anisko <anisko_r@epita.fr>
364 * src/bison.simple (YYLLOC_DEFAULT): Update.
367 2001-08-08 Marc Autret <autret_m@epita.fr>
369 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
370 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
371 Reported by Fabrice Bauzac.
373 2001-08-08 Marc Autret <autret_m@epita.fr>
375 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
376 * src/vcg.c (output_node): Fix.
377 * src/vcg.h: Cleanup.
378 * src/print_graph.c: Add comments.
379 (node_output_size): New global variable. Simplify the formatting of
380 the VCG graph output.
381 (print_actions): Unused code is now used. It notifies the final state
382 and no action states in the VCG graph. It also give the reduce actions.
383 The `shift and goto' edges are red and the `go to state' edges are
385 Get the current node name and node_obstack by argument.
386 (node_obstack): New variable.
387 (print_state): Manage node_obstack.
388 (print_core): Use node_obstack given by argument.
389 A node is not only computed here but in print_actions also.
390 (print_graph): CPP out useless code instead of commenting it.
392 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
394 * tests/atconfig.in (CPPFLAGS): Fix.
396 2001-08-07 Akim Demaille <akim@epita.fr>
398 * src/print_graph.c (quote): New.
399 (print_core): Use it.
401 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
403 * src/vcg.c (complain.h): Include it.
404 Unepitaize `return' invocations.
405 [NDEBUG] (main): Remove.
406 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
407 * src/files.c (open_files): Initialize graph_obstack.
408 * src/print_graph.c (print_actions): CPP out useless code.
409 (print_core): Don't output the last `\n' in labels.
411 * src/files.c (output_files): Output the VCG file.
412 * src/main.c (main): Invoke print_graph ();
414 2001-08-06 Marc Autret <autret_m@epita.fr>
416 Automaton VCG graph output.
417 Using option ``-g'' or long option ``--graph'', you can generate
418 a gram_filename.vcg file containing a VCG description of the LALR (1)
419 automaton of your grammar.
421 * src/main.c: Call to print_graph() function.
422 * src/getargs.h: Update.
423 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
424 (graph_flag): New flag.
426 (getargs): Add case `g'.
427 * src/files.c (graph_obstack): New obstack struct.
428 (open_files): Initialize new obstack.
429 (output_files): Saves graph_obstack if required.
430 * src/files.h (graph_obstack): New extern declaration.
431 * src/Makefile.am: Add new source files.
433 2001-08-06 Marc Autret <autret_m@epita.fr>
435 * src/print_graph.c, src/print_graph.h (graph): New.
436 * src/vcg.h: New file.
437 * src/vcg.c: New file, VCG graph handling.
439 2001-08-06 Marc Autret <autret_m@epita.fr>
441 Add of %source_extension and %header_extension which specify
442 the source or/and the header output file extension.
444 * src/files.c (compute_base_names): Remove initialisation of
445 src_extension and header_extension.
446 (compute_exts_from_gf): Update.
447 (compute_exts_from_src): Update.
448 (output_files): Update.
449 * src/reader.c (parse_header_extension_decl): New.
450 (parse_source_extension_decl): New.
451 (read_declarations): New case statements for the new tokens.
452 * src/lex.c (percent_table): Add entries for %source_extension
453 and %header_extension.
454 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
456 2001-08-06 Marc Autret <autret_m@epita.fr>
458 * configure.in: Bump to 1.28c.
459 * doc/bison.texinfo: Texinfo thingies.
461 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
463 * tests/atconfig.in (CPPFLAGS): Add.
464 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
466 2001-08-03 Akim Demaille <akim@epita.fr>
470 2001-08-03 Akim Demaille <akim@epita.fr>
472 * tests/Makefile.am (check-local): Ship testsuite.
473 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
476 2001-08-03 Akim Demaille <akim@epita.fr>
478 * configure.in: Try using -Wformat when compiling.
480 2001-08-03 Akim Demaille <akim@epita.fr>
482 * configure.in: Bump to 1.28b.
484 2001-08-03 Akim Demaille <akim@epita.fr>
486 * src/complain.c: Adjust strerror_r portability issues.
488 2001-08-03 Akim Demaille <akim@epita.fr>
492 2001-08-03 Akim Demaille <akim@epita.fr>
494 * src/getargs.c, src/getarg.h (skeleton)): Constify.
495 * src/lex.c (literalchar): Avoid name clashes on `buf'.
496 * src/getargs.c: Include complain.h.
497 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
498 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
500 2001-08-03 Akim Demaille <akim@epita.fr>
502 * src/reader.c (readgram): Display hidden chars in error messages.
504 2001-08-03 Akim Demaille <akim@epita.fr>
506 Update to gettext 0.10.39.
508 2001-08-03 Akim Demaille <akim@epita.fr>
512 2001-08-01 Marc Autret <autret_m@epita.fr>
514 * doc/bison.texinfo: Update.
515 * doc/bison.1 (mandoc): Update.
516 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
517 * src/files.c: Support output files extensions computing.
518 (src_extension): New static variable.
519 (header_extension): New static variable.
521 (get_extension_index): New function, gets the index of an extension
522 filename in a string.
523 (compute_exts_from_gf): New function, computes extensions from the
524 grammar file extension.
525 (compute_exts_from_src): New functions, computes extensions from the
526 C source file extension, file given by ``-o'' option.
527 (compute_base_names): Update.
528 (output_files): Update.
530 2001-08-01 Robert Anisko <anisko_r@epita.fr>
532 * doc/bison.texi: Document @$.
533 (Locations): New section.
535 2001-07-18 Akim Demaille <akim@epita.fr>
537 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
538 * config/prev-version.txt, config/move-if-change: New.
539 * Makefile.am: Adjust.
541 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
543 * src/bison.simple (yyparse): Suppress warning `comparaison
544 between signed and unsigned'.
546 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
548 * src/getargs.h (raw_flag): Remove.
549 * src/getargs.c: Die on `-r'/`--raw'.
550 * src/lex.c (parse_percent_token): Die on `%raw'.
551 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
552 * tests/calc.at: Suppress test with option `--raw'.
554 2001-07-14 Akim Demaille <akim@epita.fr>
557 * configure.in: Require Autoconf 2.50.
558 Update to gettext 0.10.38.
560 2001-03-16 Akim Demaille <akim@epita.fr>
562 * doc/bison.texinfo: ANSIfy the examples.
564 2001-03-16 Akim Demaille <akim@epita.fr>
566 * getargs.c (skeleton): New variable.
567 (longopts): --skeleton is a new option.
568 (shortopts, getargs): -S is a new option.
569 * getargs.h: Declare skeleton.
570 * output.c (output_parser): Use it.
572 2001-03-16 Akim Demaille <akim@epita.fr>
574 * m4/strerror_r.m4: New.
575 * m4/error.m4: Run AC_FUNC_STRERROR_R.
576 * lib/error.h, lib/error.c: Update.
578 2001-03-16 Akim Demaille <akim@epita.fr>
580 * src/getargs.c (longopts): Clean up.
582 2001-02-21 Akim Demaille <akim@epita.fr>
584 * src/reader.c (gensym): `gensym_count' is your own.
585 Use a static buf to create the symbol name, as token_buffer is no
588 2001-02-08 Akim Demaille <akim@epita.fr>
590 * src/conflicts.c (conflict_report): Be sure not to append to res
591 between two calls, which could happen if both first sprintf were
592 skipped, but not the first cp += strlen.
594 2001-02-08 Akim Demaille <akim@epita.fr>
596 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
597 New, from fileutils 4.0.37.
598 * configure.in: Require Autoconf 2.49c. I took some time before
599 making this decision. This is the only way out for portability
600 issues in Bison, it would mean way too much duplicate effort to
601 import in Bison features implemented in 2.49c since 2.13.
602 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
604 2001-02-02 Akim Demaille <akim@epita.fr>
606 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
607 * lib/xalloc.h, lib/xmalloc.c: Update.
609 2001-01-19 Akim Demaille <akim@epita.fr>
611 Get rid of the ad hoc handling of token_buffer in the scanner: use
614 * src/lex.c (token_obstack): New.
615 (init_lex): Initialize it. No longer call...
616 (grow_token_buffer): this. Remove it.
617 Adjust all the places which used it to use the obstack.
619 2001-01-19 Akim Demaille <akim@epita.fr>
621 * src/lex.h: Rename all the tokens:
622 s/\bENDFILE\b/tok_eof/g;
623 s/\bIDENTIFIER\b/tok_identifier/g;
625 Let them be enums, not #define, to ease debugging.
628 2001-01-18 Akim Demaille <akim@epita.fr>
630 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
631 * src/lex.c (maxtoken, grow_token_buffer): Static.
633 2001-01-18 Akim Demaille <akim@epita.fr>
635 Since we now use obstacks, more % directives can be enabled.
637 * src/lex.c (percent_table): Also accept `%yacc',
638 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
640 Handle the actions for `%semantic_parser' and `%pure_parser' here,
641 instead of returning a token.
642 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
643 * src/reader.c (read_declarations): Adjust.
644 * src/files.c (open_files): Don't call `compute_base_names', don't
645 compute `attrsfile' since they depend upon data which might be
646 *in* the input file now.
647 (output_files): Do it here.
648 * src/output.c (output_headers): Document the fact that this patch
649 introduces a guaranteed SEGV for semantic parsers.
650 * doc/bison.texinfo: Document them.
651 * tests/suite.at: Exercise these %options.
653 2000-12-20 Akim Demaille <akim@epita.fr>
655 Also handle the output file (--verbose) with obstacks.
657 * files.c (foutput): Remove.
658 (output_obstack): New.
659 Adjust all dependencies.
660 * src/conflicts.c: Return a string.
661 * src/system.h (obstack_grow_string): Rename as...
662 (obstack_sgrow): this. Be ready to work with non literals.
663 (obstack_fgrow4): New.
665 2000-12-20 Akim Demaille <akim@epita.fr>
667 * src/files.c (open_files): Fix the computation of short_base_name
668 in the case of `-o foo.tab.c'.
670 2000-12-20 Akim Demaille <akim@epita.fr>
672 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
673 (copy_dollar): Now that everything uses obstacks, get rid of the
676 2000-12-20 Akim Demaille <akim@epita.fr>
678 * src/files.c (open_files): Actually the `.output' file is based
679 on the short_base_name, not base_name.
680 * tests/suite.at (Checking output file names): Adjust.
682 2000-12-20 Akim Demaille <akim@epita.fr>
684 * src/bison.s1: Remove, we now use directly...
685 * src/bison.simple: this.
686 * src/Makefile.am: Use pkgdata instead of data.
688 2000-12-20 Akim Demaille <akim@epita.fr>
690 * src/files.c (guard_obstack): New.
691 (open_files): Initialize it.
692 (output_files): Dump it...
693 * src/files.h: Export it.
694 * src/reader.c (copy_guard): Use it.
696 2000-12-19 Akim Demaille <akim@epita.fr>
698 * src/files.c (outfile, defsfile, actfile): Removed as global
700 (open_files): Don't compute them.
701 (output_files): Adjust.
702 (base_name, short_base_name): Be global.
705 2000-12-19 Akim Demaille <akim@epita.fr>
707 * src/files.c (strsuffix): New.
708 (stringappend): Be just like strcat but allocate.
709 (base_names): Eve out from open_files.
710 Try to simplify the rather hairy computation of base_name and
712 (open_files): Use it.
713 * tests/suite.at (Checking output file names): New test.
715 2000-12-19 Akim Demaille <akim@epita.fr>
717 * src/system.h (obstack_grow_literal_string): Rename as...
718 (obstack_grow_string): this.
719 * src/output.c (output_parser): Recognize `%% actions' instead of
721 * src/bison.s1: s/$/%% actions/.
722 * src/bison.hairy: Likewise.
724 2000-12-19 Akim Demaille <akim@epita.fr>
726 * src/output.c (output_parser): Compute the `#line' lines when
728 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
729 Suggested by Hans Aberg.
731 2000-12-19 Akim Demaille <akim@epita.fr>
733 Let the handling of the skeleton files be local to the procedures
736 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
738 (fparser, open_extra_files): Remove.
739 (open_files, output_files): Don't take care of fparser.
740 * src/files.h: Adjust.
741 * src/output.c (output_parser): Open and close the file to the
743 * src/reader.c (read_declarations): When %semantic_parser, open
746 2000-12-19 Akim Demaille <akim@epita.fr>
748 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
749 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
751 2000-12-19 Akim Demaille <akim@epita.fr>
753 * src/files.c (open_files): Yipee! We no longer need all the code
754 looking for `/tmp' since we have no tmp file.
756 2000-12-19 Akim Demaille <akim@epita.fr>
758 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
760 * src/files.c (open_files): Less dependency on MSDOS etc.
762 2000-12-14 Akim Demaille <akim@epita.fr>
764 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
765 Provide a default definition.
766 Use it when executing the default @ action.
767 * src/reader.c (reader_output_yylsp): No longer include
768 `timestamp' and `text' in the default YYLTYPE.
770 2000-12-12 Akim Demaille <akim@epita.fr>
772 * src/reader.c (copy_definition, parse_union_decl, copy_action)
773 (copy_guard): Quote the file names.
774 Reported by Laurent Mascherpa.
776 2000-12-12 Akim Demaille <akim@epita.fr>
778 * src/output.c (output_headers, output_program, output): Be sure
779 to escape special characters when outputting filenames.
780 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
781 (output_headers): Don't depend on them, Use ACTSTR.
783 2000-11-17 Akim Demaille <akim@epita.fr>
785 * lib/obstack.h: Formatting changes.
786 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
787 prevents type checking.
788 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
789 cast the value to (void *): assigning a `foo *' to a `void *'
791 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
792 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
795 2000-11-17 Akim Demaille <akim@epita.fr>
797 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
799 (suite.m4, regression.m4, calc.m4): these.
800 * tests/atgeneral.m4: Update from CVS Autoconf.
802 2000-11-17 Akim Demaille <akim@epita.fr>
804 * tests/regression.m4 (%union and --defines): New test,
805 demonstrating a current bug in the obstack implementation.
807 2000-11-17 Akim Demaille <akim@epita.fr>
809 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
811 Use them to declare the variables which are global or local to
814 2000-11-17 Akim Demaille <akim@epita.fr>
816 * acconfig.h: Remove, no longer used.
818 2000-11-07 Akim Demaille <akim@epita.fr>
820 * src: s/Copyright (C)/Copyright/g.
822 2000-11-07 Akim Demaille <akim@epita.fr>
824 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
826 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
828 2000-11-07 Akim Demaille <akim@epita.fr>
830 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
831 Merge in a single CPP if/else.
833 2000-11-07 Akim Demaille <akim@epita.fr>
835 * src/output.c (output): Remove useless variables.
836 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
837 argument `data' for consistency with the prototypes.
839 (obstack_copy, obstack_copy0): Rename the second argument as
840 `address' for consistency. Qualify it `const'.
841 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
842 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
843 `const' their input argument (`data' or `address').
844 Adjust the corresponding macros to include `const' in casts.
846 2000-11-03 Akim Demaille <akim@epita.fr>
848 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
849 s/PFILE1/BISON_HAIRY/.
852 2000-11-03 Akim Demaille <akim@epita.fr>
854 For some reason, this was not applied.
856 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
857 `unlink': it's no longer used.
859 2000-11-03 Akim Demaille <akim@epita.fr>
861 * src/files.c (skeleton_find): New function, eved out of...
862 (open_files, open_extra_files): here.
864 2000-11-03 Akim Demaille <akim@epita.fr>
868 * src/files.c (obstack_save): New function.
870 (output_files): this.
872 * src/main.c (main): Don't use `atexit' to register `done', since
873 it no longer has to remove tmp files, just call `output_files'
874 when there are no errors.
876 2000-11-02 Akim Demaille <akim@epita.fr>
878 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
879 `unlink': it's no longer used.
880 * src/files.h: Formatting changes.
882 2000-11-02 Akim Demaille <akim@epita.fr>
884 Remove the last uses of mktemp and unlink/delete.
886 * src/files.c (fdefines, ftable): Removed.
887 (defines_ostack, table_obstack): New.
888 Adjust dependencies of the former into uses of the latter.
889 * src/output.c (output_short_or_char_table, output_short_table):
890 Convert to using obstacks.
891 * src/reader.c (copy_comment2): Accept one FILE * and two
893 (output_token_defines, reader_output_yylsp): Use obstacks.
894 * src/system.h (obstack_fgrow3): New.
896 2000-11-01 Akim Demaille <akim@epita.fr>
898 Change each use of `fattrs' into a use of `attrs_obstack'.
900 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
901 * src/files.c (fattrs): Remove.
902 (attrs_obstack): New.
903 Adjust all dependencies.
904 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
906 2000-11-01 Akim Demaille <akim@epita.fr>
909 Change each use of `faction' into a use of `action_obstack'.
911 * lib/obstack.h, lib/obstack.c: New files.
912 * src/files.c (faction): Remove.
913 (action_obstack): New.
914 Adjust all dependencies.
916 2000-10-20 Akim Demaille <akim@epita.fr>
918 * lib/quote.h (PARAMS): New macro. Use it.
920 2000-10-16 Akim Demaille <akim@epita.fr>
922 * src/output.c (output_short_or_char_table): New function.
923 (output_short_table, output_token_translations): Use it.
924 (goto_actions): Use output_short_table.
926 2000-10-16 Akim Demaille <akim@epita.fr>
928 * src/symtab.c (bucket_new): New function.
931 * src/output.c (output_short_table): New argument to display the
932 comment associated with the table.
934 (output_gram): Use it.
935 (output_rule_data): Nicer output layout for YYTNAME.
937 2000-10-16 Akim Demaille <akim@epita.fr>
939 * src/lex.c (read_typename): New function.
941 * src/reader.c (copy_dollar): Likewise.
943 2000-10-16 Akim Demaille <akim@epita.fr>
945 * src/reader.c (copy_comment2): Expect the input stream to be on
946 the `/' which is suspected to open a comment, instead of being
947 called after `//' or `/*' was read.
948 (copy_comment, copy_definition, parse_union_decl, copy_action)
949 (copy_guard): Adjust.
951 2000-10-16 Akim Demaille <akim@epita.fr>
953 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
954 `read_signed_integer'.
956 2000-10-16 Akim Demaille <akim@epita.fr>
958 * src/reader.c (copy_dollar): New function.
959 (copy_guard, copy_action): Use it.
961 2000-10-16 Akim Demaille <akim@epita.fr>
963 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
964 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
965 New files, from Fileutils 4.0.27.
966 * src/main.c (printable_version): Remove.
967 * src/lex.c, src/reader.c: Use `quote'.
969 2000-10-04 Akim Demaille <akim@epita.fr>
971 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
973 2000-10-04 Akim Demaille <akim@epita.fr>
975 * doc/bison.texinfo: Various typos spotted by Neil Booth.
977 2000-10-04 Akim Demaille <akim@epita.fr>
979 When a literal string is used to define two different tokens,
980 `bison -v' segfaults.
981 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
983 * tests/regression.m4: New file.
984 Include the core of the sample provided by Piotr Gackiewicz.
985 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
988 2000-10-04 Akim Demaille <akim@epita.fr>
990 * src/reader.c (parse_expect_decl): Keep `count' within the size
994 2000-10-02 Paul Eggert <eggert@twinsun.com>
996 * bison.s1 (yyparse): Assign the default value
997 unconditionally, to avoid a GCC warning and make the parser a
1000 2000-10-02 Akim Demaille <akim@epita.fr>
1002 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1005 2000-10-02 Akim Demaille <akim@epita.fr>
1007 * src/derives.c, src/print.c, src/reduce.c: To ease the
1008 translation, move some `\n' out of the translated strings.
1010 2000-10-02 Akim Demaille <akim@epita.fr>
1012 The location tracking mechanism is precious for parse error
1013 messages. Nevertheless, it is enabled only when `@n' is used in
1014 the grammar, which is a different issue (you can use it in error
1015 message, but not in the grammar per se). Therefore, there should
1016 be another means to enable it.
1018 * src/getargs.c (getargs): Support `--locations'.
1020 * src/getargs.h (locationsflag): Export it.
1021 * src/lex.c (percent_table): Support `%locations'.
1022 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1023 with `locationsflag'.
1024 * doc/bison.texinfo: Document `--locations' and `%locations'.
1026 * tests/calc.m4: Test it.
1028 For regularity of the names, replace each
1029 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1030 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1031 In addition replace each `flag' with `_flag'.
1033 2000-10-02 Akim Demaille <akim@epita.fr>
1035 Also test parse error messages, including with YYERROR_VERBOSE.
1037 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1039 Use it to check the computations.
1040 Use it to check `nonassoc' is honored.
1041 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1042 `--yyerror-verbose'.
1043 (_AT_CHECK_CALC): Adjust to this option.
1044 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1046 2000-10-02 Akim Demaille <akim@epita.fr>
1048 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1049 the latter demonstrates a flaw in the handling of non debugging
1050 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1051 was used in order to simplify:
1067 unfortunately this leads to a CPP conflict when
1068 `--name-prefix=foo' is used since it produces `#define yydebug
1071 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1072 (YYDPRINTF): New macro.
1074 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1076 Also test `--verbose', `--defines' and `--name-prefix'.
1078 2000-10-02 Akim Demaille <akim@epita.fr>
1080 Improve the readability of the produced parsers.
1082 * src/bison.s1: Formatting changes.
1083 Improve the comment related to the `$' mark.
1084 (yydefault): Don't fall through to `yyresume': `goto' there.
1085 * src/output.c (output_parser): When the `$' is met, skip the end
1087 New variable, `number_of_dollar_signs', to check there's exactly
1088 one `$' in the parser skeleton.
1090 2000-10-02 Akim Demaille <akim@epita.fr>
1092 * lib/xstrdup.c: New file, from the fileutils.
1093 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1094 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1095 instead of strlen + xmalloc + strcpy.
1096 * src/symtab.c (copys): Remove, use xstrdup instead.
1098 2000-10-02 Akim Demaille <akim@epita.fr>
1100 * src/gram.h (associativity): New enum type which replaces the
1101 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1102 `right_assoc', `left_assoc' and `non_assoc'.
1103 Adjust all dependencies.
1104 * src/reader.c: Formatting changes.
1105 (LTYPESTR): Don't define it, use it as a literal in
1106 `reader_output_yylsp'.
1107 * src/symtab.h (symbol_class): New enum type which replaces the
1108 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1109 `sunknown', `stoken and `snterm'.
1111 2000-10-02 Akim Demaille <akim@epita.fr>
1113 * src/getargs.c (fixed_outfiles): Rename as...
1114 (yaccflag): for consistency and accuracy.
1115 Adjust dependencies.
1117 2000-10-02 Akim Demaille <akim@epita.fr>
1119 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1120 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1121 difficult and introduced a lot of core dump. It turns out that
1122 Bison used an implementation of `xmalloc' based on `calloc', and
1123 at various places it does depend upon the initialization to 0. I
1124 have not tried to isolate the pertinent places, and all the former
1125 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1126 someone should address this issue.
1128 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1129 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1131 Adjust dependencies.
1132 * src/warshall.h: New file.
1135 2000-10-02 Akim Demaille <akim@epita.fr>
1137 Various anti-`extern in *.c' changes.
1139 * src/system.h: Include `assert.h'.
1141 2000-10-02 Akim Demaille <akim@epita.fr>
1143 * src/state.h (nstates, final_state, first_state, first_shift)
1144 (first_reduction): Move their exportation from here...
1145 * src/LR0.h: to here.
1146 Adjust dependencies.
1147 * src/getargs.c (statisticsflag): New variable.
1148 Add support for `--statistics'.
1149 Adjust dependencies.
1151 Remove a lot of now useless `extern' statements in most files.
1153 2000-10-02 Akim Demaille <akim@epita.fr>
1155 * src/LR0.h: New file.
1158 2000-10-02 Akim Demaille <akim@epita.fr>
1160 * src/print.h: New file.
1162 * src/print.c: Formatting and ordering changes.
1163 (verbose, terse): Replace with...
1164 (print_results): this new function.
1165 Adjust dependencies.
1167 2000-10-02 Akim Demaille <akim@epita.fr>
1169 * src/conflicts.c (conflict_report): New function.
1170 (conflict_log, verbose_conflict_log): Replace with...
1171 (print_conflicts): this function.
1172 Adjust dependencies.
1173 * src/conflicts.h: New file.
1174 Propagate its inclusion.
1176 2000-10-02 Akim Demaille <akim@epita.fr>
1178 * src/nullable.h: New file.
1179 Propagate its inclusion.
1180 * src/nullable.c: Formatting changes.
1182 2000-10-02 Akim Demaille <akim@epita.fr>
1184 * src/reduce.h: New file.
1185 Propagate its inclusion.
1186 * src/reduce.c: Topological sort and other formatting changes.
1187 (bool, TRUE, FALSE): Move their definition to...
1188 * src/system.h: here.
1190 2000-10-02 Akim Demaille <akim@epita.fr>
1192 * src/files.c: Formatting changes.
1193 (tryopen, tryclose, openfiles): Rename as...
1194 (xfopen, xfclose, open_files): this.
1195 (stringappend): static.
1196 * src/files.h: Complete the list of exported symbols.
1199 2000-10-02 Akim Demaille <akim@epita.fr>
1201 * src/reader.h: New file.
1202 Propagate its use instead of tedious list of `extern' and
1204 * src/reader.c: Formatting changes, topological sort,
1207 2000-10-02 Akim Demaille <akim@epita.fr>
1209 * src/lex.h: Prototype `lex.c' exported functions.
1210 * src/reader.c: Adjust.
1211 * src/lex.c: Formatting changes.
1212 (safegetc): Rename as...
1215 2000-10-02 Akim Demaille <akim@epita.fr>
1217 * src/lalr.h: New file.
1218 Propagate its inclusion instead of prototypes and `extern'.
1219 * src/lalr.c: Formatting changes, topological sorting etc.
1221 2000-10-02 Akim Demaille <akim@epita.fr>
1223 * src/output.c (token_actions): Introduce a temporary array,
1224 YYDEFACT, that makes it possible for this function to use
1227 2000-10-02 Akim Demaille <akim@epita.fr>
1229 `user_toknums' is output as a `short[]' in `output.c', while it is
1230 defined as a `int[]' in `reader.c'. For consistency with the
1231 other output tables, `user_toknums' is now defined as a table of
1234 * src/reader.c (user_toknums): Be a short table instead of an int
1236 Adjust dependencies.
1238 Factor the short table outputs.
1240 * src/output.c (output_short_table): New function.
1241 * src/output.c (output_gram, output_stos, output_rule_data)
1242 (output_base, output_table, output_check): Use it.
1244 2000-10-02 Akim Demaille <akim@epita.fr>
1246 * src/output.c (output): Topological sort of the functions, in
1247 order to get rid of the `static' prototypes.
1248 No longer use `register'.
1249 * src/output.h: New file.
1250 Propagate its inclusion in files explicitly prototyping functions
1253 2000-09-21 Akim Demaille <akim@epita.fr>
1255 * src/atgeneral.m4: Update from Autoconf.
1257 2000-09-21 Akim Demaille <akim@epita.fr>
1259 * src/closure.h: New file.
1260 * src/closure.c: Formatting changes, topological sort over the
1261 functions, use of closure.h.
1262 (initialize_closure, finalize_closure): Rename as...
1263 (new_closure, free_closure): these. Adjust dependencies.
1264 * src/LR0.c: Formatting changes, topological sort, use of
1266 (initialize_states): Rename as...
1268 * src/Makefile.am (noinst_HEADERS): Adjust.
1270 2000-09-20 Akim Demaille <akim@epita.fr>
1272 * src/acconfig.h: Don't protect config.h against multiple
1274 Don't define PARAMS.
1275 * src/system.h: Define PARAMS.
1276 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1277 purpose of config.h. system.h must not try to fix wrong
1278 definitions in config.h.
1280 2000-09-20 Akim Demaille <akim@epita.fr>
1282 * src/derives.h: New file.
1283 * src/main.c, src/derives.h: Use it.
1285 * src/Makefile.am (noinst_HEADERS): Adjust.
1287 2000-09-20 Akim Demaille <akim@epita.fr>
1289 * tests/atgeneral.m4: Update from Autoconf.
1290 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1291 (AT_CHECK_CALC): New macros.
1292 Use these macros to test bison with options `', `--raw',
1293 `--debug', `--yacc', `--yacc --debug'.
1295 2000-09-19 Akim Demaille <akim@epita.fr>
1297 * src/output.c: Formatting changes.
1298 * src/machine.h: Remove, leaving its contents in...
1299 * src/system.h: here.
1301 Adjust all dependencies on stdio.h and machine.h.
1302 * src/getargs.h: New file.
1303 Let all `extern' declarations about getargs.c be replaced with
1304 inclusion of `getargs.h'.
1305 * src/Makefile.am (noinst_HEADERS): Adjust.
1307 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1309 (yyerror): Returns void, not int.
1310 * doc/bison.texinfo: Formatting changes.
1312 2000-09-19 Akim Demaille <akim@epita.fr>
1314 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1317 2000-09-18 Akim Demaille <akim@epita.fr>
1319 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1320 * src/Makefile.am (INCLUDES): Don't.
1321 Be ready to fetch headers in lib/.
1323 2000-09-18 Akim Demaille <akim@epita.fr>
1325 * doc/bison.texinfo: Update the copyright.
1326 ANSIfy and GNUify the examples.
1327 Remove the old menu.
1329 2000-09-18 Akim Demaille <akim@epita.fr>
1331 First set of tests: use the `calc' example from the documentation.
1333 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1334 is defined only when YYDEBUG is.
1335 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1336 * src/files.c (tryopen, tryclose): Formatting changes.
1337 Move to the top and be static.
1338 * src/reader.c (read_signed_integer): Likewise.
1339 * tests/calc.m4: New file.
1340 * Makefile.am, suite.m4: Adjust.
1341 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1343 2000-09-18 Akim Demaille <akim@epita.fr>
1345 Add support for an Autotest test suite for Bison.
1347 * m4/m4.m4, m4/atconfig.m4: New files.
1348 * m4/Makefile.am (EXTRA_DIST): Adjust.
1349 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1351 * src/getargs.c: Display a more standard --version message.
1352 * src/reader.c (reader): Formatting changes.
1353 No longer depend upon VERSION_STRING.
1354 * configure.in: No longer use `dnl'.
1355 Set up the test suite and the new directory `tests/.
1356 (VERSION_STRING): Remove.
1358 2000-04-14 Akim Demaille <akim@epita.fr>
1360 * src/reader.c (copy_comment2): New function, same as former
1361 `copy_comment', but outputs into two FILE *.
1362 (copy_comment): Use it.
1363 (parse_union_decl): Use it.
1364 (get_type, parse_start_decl): Use the same `invalid' message.
1365 (parse_start_decl, parse_union_decl): Use the same `multiple'
1367 (parse_union_decl, copy_guard, copy_action): Use the same
1368 `unmatched' message.
1369 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1371 2000-03-31 Akim Demaille <akim@epita.fr>
1373 * src/files.c (tryopen, tryclose): Move to the top.
1376 2000-03-31 Akim Demaille <akim@epita.fr>
1378 * src/main.c (main): Don't call `done', exit does it.
1380 2000-03-31 Akim Demaille <akim@epita.fr>
1382 * allocate.c: s/return (foo)/return foo/.
1385 * output.c: Likewise.
1386 * reader.c: Likewise.
1387 * symtab.c: Likewise.
1388 * vmsgetargs.c: Likewise.
1390 2000-03-31 Akim Demaille <akim@epita.fr>
1392 Clean up the error reporting functions.
1394 * src/report.c: New file.
1395 * src/report.h: Likewise.
1396 * src/Makefile.am: Adjust.
1397 * m4/error.m4: New file.
1398 * m4/Makefile.am: Adjust.
1399 * configure.in (jm_PREREQ_ERROR): Call it.
1400 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1402 (fatal, fatals): Remove. All callers use complain.c::fatal.
1403 (warn, warni, warns, warnss, warnss): Remove. All callers use
1404 complain.c::complain.
1405 (toomany): Remove, use fatal instead.
1406 * src/files.c (done): No argument, use complain_message_count.
1407 * src/main.c (main): Register `done' to `atexit'.
1409 * src/getargs.c (usage): More `fputs', less `fprintf'.
1411 2000-03-28 Akim Demaille <akim@epita.fr>
1413 * lib/: New directory.
1414 * Makefile.am (SUBDIRS): Adjust.
1415 * configure.in: Adjust.
1416 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1418 * src/alloca.c: Moved to lib/.
1419 * src/getopt.c: Likewise.
1420 * src/getopt1.c: Likewise.
1421 * src/getopt.h: Likewise.
1422 * src/ansi2knr.c: Likewise.
1423 * src/ansi2knr.1: Likewise.
1424 * src/Makefile.am: Adjust.
1425 * lib/Makefile.am: New file.
1427 2000-03-28 Akim Demaille <akim@epita.fr>
1429 * src/getargs.c (usage): Refresh the help message.
1431 2000-03-17 Akim Demaille <akim@epita.fr>
1433 * src/getopt1.c: Updated from textutils 2.0e
1434 * src/getopt.c: Likewise.
1435 * src/getopt.h: Likewise.
1437 2000-03-17 Akim Demaille <akim@epita.fr>
1439 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1440 the file name, not the whole `#line LINE FILE'.
1442 2000-03-17 Akim Demaille <akim@epita.fr>
1444 On syntax errors, report the token on which we choked.
1446 * src/bison.s1 (yyparse): In the label yyerrlab, when
1447 YYERROR_VERBOSE, add yychar in msg.
1449 2000-03-17 Akim Demaille <akim@epita.fr>
1451 * src/reader.c (copy_at): New function.
1452 (copy_guard): Use it.
1453 (copy_action): Use it.
1455 2000-03-17 Akim Demaille <akim@epita.fr>
1457 Be kind to translators, save some useless translations.
1459 * src/main.c (banner): New function.
1460 (fatal_banner): Use it.
1461 (warn_banner): Use it.
1463 2000-03-17 Akim Demaille <akim@epita.fr>
1465 * src/reader.c (copy_definition): Use copy_string and
1466 copy_comment. Removed now unused `match', `ended',
1468 (copy_comment, copy_string): Moved, to be visible from
1471 2000-03-17 Akim Demaille <akim@epita.fr>
1473 * src/reader.c (copy_string): Declare `static inline'. No
1474 problems with inline, since it is checked by configure.
1475 (copy_comment): Likewise.
1477 2000-03-17 Akim Demaille <akim@epita.fr>
1479 * src/reader.c (packsymbols): Formatting changes.
1481 2000-03-17 Akim Demaille <akim@epita.fr>
1483 * src/reader.c (copy_comment): New function, factored out from:
1484 (copy_action): Use it. Removed now unused `match', `ended',
1486 (copy_guard): Likewise.
1488 2000-03-17 Akim Demaille <akim@epita.fr>
1490 * src/reader.c (copy_string): New function, factored out from:
1491 (copy_action): Use it.
1492 (copy_guard): Likewise.
1494 2000-03-17 Akim Demaille <akim@epita.fr>
1496 Change the handling of @s so that they behave exactly like $s.
1497 There is now a pseudo variable @$ (readble and writable), location
1498 of the lhs of the rule (by default ranging from the location of
1499 the first symbol of the rhs, to the location of the last symbol,
1500 or, if the rhs is empty, YYLLOC).
1502 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1504 (yyparse): When providing a default semantic action, provide a
1505 default location action.
1506 (after the $): No longer change `*YYLSP', just stack YYLOC the
1507 same way you stack YYVAL.
1508 * src/reader.c (read_declarations): Use warns.
1509 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1510 (copy_action, case '@'): Likewise.
1511 Use a standard error message, to save useless work from
1514 2000-03-17 Akim Demaille <akim@epita.fr>
1516 * src/bison.s1: Formatting and cosmetics changes.
1517 * src/reader.c: Likewise.
1518 Update the Copyright notice.
1520 2000-03-17 Akim Demaille <akim@epita.fr>
1522 * src/bison.s1 (#line): All set to `#line' only, since the
1523 Makefile now handles them.
1525 2000-03-16 Akim Demaille <akim@epita.fr>
1527 * src/output.c (output_rule_data): Output the documentation of
1529 (Copyright notice): Update.
1532 2000-03-16 Akim Demaille <akim@epita.fr>
1534 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1535 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1536 One `#if YYDEBUG' remains, since it uses variables which are
1537 defined only if `YYDEBUG != 0'.
1539 2000-03-16 Akim Demaille <akim@epita.fr>
1541 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1542 and related variables so that the similarities are highlighted.
1544 2000-03-16 Akim Demaille <akim@epita.fr>
1546 * src/bison.s1: Properly indent CPP directives.
1548 2000-03-16 Akim Demaille <akim@epita.fr>
1550 * src/bison.s1: Properly indent the `alloca' CPP section.
1552 2000-03-16 Akim Demaille <akim@epita.fr>
1554 Do not hard code values of directories in `configure.in'.
1555 Update the `configure' tool chain.
1557 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1559 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1560 (AC_OUTPUT): Add m4/Makefile.
1561 Bump to bison 1.28a, 1.29 has never been released.
1562 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1563 handled via src/Makefile.am.
1564 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1565 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1567 * Makefile.am (SUBDIRS): Add m4.
1568 (ACLOCAL_AM_FLAGS): New variable.
1569 (AUTOMAKE_OPTIONS): Add check-news.
1570 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1571 the proper line number and file name.
1572 (DEFS): Propagate the location of bison library files and of the
1574 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1576 * acinclude.m4: Remove, replaced by the directory m4.
1577 * m4/Makefile.am (EXTRA_DIST): New variable.
1578 * m4/gettext.m4: New file, from the fileutils.
1579 * m4/lcmessage.m4: Likewise
1580 * m4/progtest.m4: Likewise.
1581 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1583 2000-03-10 Akim Demaille <akim@epita.fr>
1586 Formatting changes of various comments.
1587 Respect the GNU coding standards at various places.
1588 Don't use `_()' when no translation is needed.
1590 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1593 OS/2 honors TMPDIR environment variable.
1595 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1597 * doc/bison.texinfo: Tweaked spelling and grammar.
1599 Removed reference to price of printed copy.
1600 Mention BISON_SIMPLE and BISON_HAIRY.
1602 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1604 * configure.in, NEWS:
1605 Bison 1.29 released.
1607 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1609 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1610 Added reference card.
1612 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1614 * po/ru.po: Added Russian translation.
1616 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1618 * configure.in: Added Russian translation.
1620 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1622 * configure.in, NEWS, README:
1623 Released version 1.28.
1625 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1628 Squashed redefinition warning on some systems.
1630 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1631 Have configure build version string instead of relying on ANSI string
1634 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1636 * po/POTFILES.in: Got rid of version.c.
1638 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1640 * acconfig.h, configure.in:
1641 Have configure build version string instead of relying on ANSI string
1644 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1647 Dropped mention of `+' for long-named options.
1649 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1651 * src/files.c: Added <unistd.h> for unlink().
1653 * src/Makefile.am, src/system.h:
1656 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1658 * README: Added a FAQ list.
1660 * configure.in, acconfig.h:
1663 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1665 * doc/FAQ, doc/Makefile.am:
1668 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1670 * src/alloc.h, src/symtab.h, src/version.c:
1671 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1673 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1675 * src/.cvsignore, src/Makefile.am:
1676 Reorganized: sources in `src', documentation in `doc'.
1678 * src/lex.c (literalchar):
1679 fixed the code for escaping double quotes (thanks
1682 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1684 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1685 Adjusted paths to reflect directory reorganization.
1687 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1689 * doc/.cvsignore, doc/Makefile.am:
1690 Reorganized: sources in `src', documentation in `doc'.
1692 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1695 Updated AC_INIT file to reflect directory reorganization.
1697 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1698 Reorganized: sources in `src', documentation in `doc'.
1700 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1703 Don't declare calloc() and realloc() if not necessary.
1705 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1707 * configure.in, acconfig.h, acinclude.m4:
1708 Don't declare calloc() and realloc() if not necessary.
1710 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1712 * po/.cvsignore: Added i18n support.
1714 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1716 * acconfig.h, configure.in, Makefile.am:
1719 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1721 * src/bison.s1: Fixed #line numbers.
1723 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1725 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1726 Added PO files from Translation Project.
1728 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1731 Added support for non-ANSI compilers (ansi2knr).
1733 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1735 * configure.in: Bumped version number to 1.27.
1738 Added `bison.simple' to list of files removed by `make distclean'.
1740 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1742 * src/files.c, src/files.h:
1743 Defined locations of parser files in config.h instead of Makefile.
1745 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1747 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1748 Defined locations of parser files in config.h instead of Makefile.
1750 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1753 Removed inappropriate use of $< macro.
1755 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1757 * po/Makefile.in.in, po/POTFILES.in:
1758 Add `po' directory skeleton.
1760 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1762 * README: Document help-bison list.
1764 * configure.in: Add check for mkstemp().
1766 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1768 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1769 Hush a few compiler warnings.
1772 Add tryclose(), which verifies that fclose was successful.
1773 Hush a couple of compiler warnings.
1775 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1777 * Makefile.am, OChangeLog:
1778 ChangeLog is now automatically generated. Include the old version as
1781 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1783 * 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:
1786 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1788 * doc/bison.texinfo: Fix formatting glitch.
1790 * doc/bison.texinfo: Update FSF address.
1792 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1794 * acconfig.h: Update FSF address.
1796 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1799 Don't define PACKAGE here, since config.h defines it.
1801 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1803 * src/reader.c: Update copyright date.
1806 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1807 favor of output directly to stderr (avoids buffer overruns).
1809 * src/reader.c: Some checks for premature EOF.
1811 * 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:
1812 Use prototypes if the compiler understands them.
1814 * src/files.c: Honor TMPDIR on Unix hosts.
1815 Use prototypes if the compiler understands them.
1818 Fix a couple of buffer overrun bugs.
1819 Use prototypes if the compiler understands them.
1821 * src/system.h: Include unistd.h and ctype.h.
1822 Use #ifdef instead of #if for NLS symbols.
1824 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1826 * doc/bison.texinfo:
1827 Delete comment "consider using @set for edition number, etc..." since
1828 we now are doing so.
1830 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1833 Use prototypes if the compiler understands them.
1835 * NEWS: Document 1.26 highlights.
1837 * Makefile.am: Require Automake 1.3 or later.
1840 Use prototypes if the compiler understands them.
1842 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1845 Use VERSION symbol from automake for version number.
1847 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1849 * acconfig.h, configure.in, version.cin:
1850 Use VERSION symbol from automake for version number.
1852 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1855 Distribute original version of simple parser (bison.s1), not built
1856 version (bison.simple).
1858 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1860 * doc/bison.texinfo: Add info dir entry.
1862 * doc/bison.texinfo:
1863 Let automake put version number into documentation.
1865 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1867 * src/bison.cld, src/build.com, src/vmshlp.mar:
1868 Add non-RCS files from /gd/gnu/bison.
1870 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1873 Document the BISON_HAIRY and BISON_SIMPLE variables.
1875 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1877 * src/version.c: Build version.c automatically.
1880 Fix token numbering (used to start at 258, not 257).
1882 * src/system.h: Include config.h.
1884 * src/getargs.c: Update bug report address.
1886 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1887 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1889 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1892 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1894 * configure.in, version.cin:
1895 Build version.c automatically.
1897 * AUTHORS: Add AUTHORS file.
1899 * README: Update bug report address.
1902 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1904 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1907 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1909 * doc/bison.texinfo: Clean up some formatting.
1911 1998-05-05 Richard Stallman <rms@gnu.org>
1913 * doc/bison.texinfo:
1914 Explain better why to make a pure parser.
1916 1998-01-05 Richard Stallman <rms@gnu.org>
1918 * src/files.c (openfiles):
1919 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1920 find a temporary directory, if possible. Do not unlink files while
1923 1997-08-25 Richard Stallman <rms@gnu.org>
1925 * src/reader.c (stack_offset;):
1926 Change some warni to warns.
1928 * src/lex.c (literalchar): Use warns, not warni.
1930 1997-06-28 Richard Stallman <rms@gnu.org>
1932 * src/bison.s1: Add a Bison version comment.
1934 * src/main.c (fatal, warn, berror):
1937 1997-06-28 Richard Stallman <rms@gnu.org>
1939 * Makefile.in (bison_version): New variable.
1940 (dist): Use that variable.
1941 (bison.s1): Substitute the Bison version into bison.simple.
1943 * bison.simple: Add a Bison version comment.
1945 1997-06-18 Richard Stallman <rms@gnu.org>
1947 * src/main.c (fatal, warn, berror):
1948 Make error messages standard.
1949 (toomany): Improve error message text.
1951 * 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:
1952 new.h renamed to alloc.h.
1954 1997-06-18 Richard Stallman <rms@gnu.org>
1956 * Makefile.in: new.h renamed to alloc.h.
1958 1997-05-24 Richard Stallman <rms@gnu.org>
1960 * src/lex.c (literalchar):
1961 Fix the code for escaping \, " and '.
1963 (lex): Avoid trouble when there are many chars
1964 to discard in a char literal with just several chars in it.
1966 1997-05-17 Richard Stallman <rms@gnu.org>
1969 Use malloc, if using alloca is troublesome.
1970 (YYSTACK_USE_ALLOCA): New flag macro.
1971 Define it for some systems and compilers.
1972 (YYSTACK_ALLOC): New macro.
1973 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1974 If it was malloc'd, free it.
1976 1997-05-17 Richard Stallman <rms@gnu.org>
1979 Use malloc, if using alloca is troublesome.
1980 (YYSTACK_USE_ALLOCA): New flag macro.
1981 Define it for some systems and compilers.
1982 (YYSTACK_ALLOC): New macro.
1983 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1984 If it was malloc'd, free it.
1986 1997-04-23 Richard Stallman <rms@gnu.org>
1989 (alloca) [__hpux]: Always define as __builtin_alloca.
1991 1997-04-23 Richard Stallman <rms@gnu.org>
1994 (alloca) [__hpux]: Always define as __builtin_alloca.
1996 1997-04-22 Richard Stallman <rms@gnu.org>
1999 [__hpux]: Include alloca.h (right for HPUX 10)
2000 instead of declaring alloca (right for HPUX 9).
2002 * src/bison.s1 (__yy_memcpy):
2003 Declare arg `count' as unsigned int.
2004 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2006 1997-04-22 Richard Stallman <rms@gnu.org>
2009 [__hpux]: Include alloca.h (right for HPUX 10)
2010 instead of declaring alloca (right for HPUX 9).
2012 * bison.simple (__yy_memcpy):
2013 Declare arg `count' as unsigned int.
2014 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2016 1997-01-03 Richard Stallman <rms@gnu.org>
2018 * src/allocate.c: [__STDC__ or _MSC_VER]:
2019 Declare calloc and realloc to return void *.
2021 1997-01-02 Richard Stallman <rms@gnu.org>
2024 [_MSC_VER]: Include stdlib.h and process.h.
2025 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2027 * src/main.c (main): Return FAILURE as a value.
2028 (printable_version): Declare arg as int, not char.
2030 1997-01-02 Richard Stallman <rms@gnu.org>
2032 * Makefile.in (dist):
2033 Explicitly check for symlinks, and copy them.
2035 1996-12-19 Richard Stallman <rms@gnu.org>
2038 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2040 1996-12-18 Paul Eggert <eggert@gnu.org>
2042 * src/bison.s1 (yyparse):
2043 If __GNUC__ and YYPARSE_PARAM are both defined,
2044 declare yyparse to have a void * argument.
2046 1996-12-18 Paul Eggert <eggert@gnu.org>
2048 * bison.simple (yyparse):
2049 If __GNUC__ and YYPARSE_PARAM are both defined,
2050 declare yyparse to have a void * argument.
2052 1996-12-17 Richard Stallman <rms@gnu.org>
2054 * src/reduce.c (nbits): Add some casts.
2056 1996-08-12 Richard Stallman <rms@gnu.org>
2058 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2060 1996-08-12 Richard Stallman <rms@gnu.org>
2062 * bison.simple: Test _MSDOS as well as _MSDOS_.
2064 1996-07-31 Richard Stallman <rms@gnu.org>
2067 [__sun && __i386]: Include alloca.h.
2069 1996-07-31 Richard Stallman <rms@gnu.org>
2072 [__sun && __i386]: Include alloca.h.
2074 1996-07-30 Richard Stallman <rms@gnu.org>
2076 * src/bison.s1: Comment change.
2078 * src/bison.s1: Test _MSDOS_, not MSDOS.
2080 1996-07-30 Richard Stallman <rms@gnu.org>
2082 * bison.simple: Comment change.
2084 * bison.simple: Test _MSDOS_, not MSDOS.
2086 1996-06-01 Richard Stallman <rms@gnu.org>
2088 * 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:
2089 Insert `_' macro around many string constants.
2092 Insert `_' macro around many string constants.
2094 (main): Call setlocale, bindtextdomain and textdomain.
2096 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2097 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2098 [ENABLE_NLS]: Include libintl.h.
2099 [ENABLE_NLS] (gettext): Define.
2100 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2101 (N_, PACKAGE, LOCALEDIR): New macros.
2103 1996-06-01 Richard Stallman <rms@gnu.org>
2105 * POTFILES.in: New file.
2107 * Makefile.in (allocate.o):
2108 Define target explicitly.
2110 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2111 (LDFLAGS): Set to @LDFLAGS@.
2112 (configure): Run autoconf only if preceding `cd' succeeds.
2113 (bison.s1): Redirect output to temporary file then move the
2114 temporary to the target, rather than redirecting directly to bison.s1.
2115 (clean): Remove config.status and config.log.
2116 (distclean): Don't remove config.status here.
2118 1996-05-12 Richard Stallman <rms@gnu.org>
2121 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2123 1996-05-12 Richard Stallman <rms@gnu.org>
2126 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2128 1996-05-11 Richard Stallman <rms@gnu.org>
2130 * src/bison.s1 (__yy_memcpy):
2131 Really reorder the args, as was supposedly done on Feb 14 1995.
2132 (yyparse): Calls changed accordingly.
2134 1996-05-11 Richard Stallman <rms@gnu.org>
2136 * Makefile.in (dist): Don't use $(srcdir).
2138 * bison.simple (__yy_memcpy):
2139 Really reorder the args, as was supposedly done on Feb 14 1995.
2140 (yyparse): Calls changed accordingly.
2142 1996-01-27 Richard Stallman <rms@gnu.org>
2144 * src/output.c (output_rule_data):
2145 Test YYERROR_VERBOSE in the conditional
2146 around the definition of ttyname.
2148 1995-12-29 Richard Stallman <rms@gnu.org>
2151 Fix line numbers in #line commands.
2153 1995-12-29 Richard Stallman <rms@gnu.org>
2156 Fix line numbers in #line commands.
2158 1995-12-27 Richard Stallman <rms@gnu.org>
2160 * src/bison.s1 (YYPARSE_PARAM_DECL):
2161 In C++, make it always null.
2162 (YYPARSE_PARAM_ARG): New macro.
2163 (yyparse): Use YYPARSE_PARAM_ARG.
2165 1995-12-27 Richard Stallman <rms@gnu.org>
2167 * bison.simple (YYPARSE_PARAM_DECL):
2168 In C++, make it always null.
2169 (YYPARSE_PARAM_ARG): New macro.
2170 (yyparse): Use YYPARSE_PARAM_ARG.
2172 1995-11-29 Richard Stallman <rms@gnu.org>
2174 * doc/bison.texinfo:
2175 Describe literal string tokens, %raw, %no_lines, %token_table.
2177 1995-11-29 Daniel Hagerty <hag@gnu.org>
2179 * doc/bison.texinfo: Fixed update date
2181 1995-10-16 Richard Stallman <rms@gnu.org>
2183 * src/version.c: Version 1.25.
2185 1995-10-16 Richard Stallman <rms@gnu.org>
2187 * NEWS: *** empty log message ***
2189 1995-10-16 Richard Stallman <rms@gnu.org>
2191 * doc/bison.1, doc/bison.rnh:
2194 1995-10-15 Richard Stallman <rms@gnu.org>
2196 * src/vmsgetargs.c, src/getargs.c:
2197 Added -n, -k, and -raw switches.
2198 (noparserflag, toknumflag, rawtoknumflag): New variables.
2200 * src/symtab.h (SALIAS):
2201 New #define for adding aliases to %token.
2202 (struct bucket): Added `alias' field.
2204 * src/reduce.c (reduce_grammar):
2205 Revise error message.
2206 (print_notices): Remove final `.' from error message.
2208 * src/reader.c (reader_output_yylsp):
2210 (readgram): Use `#if 0' around code that accepted %command
2211 inside grammar rules: The documentation doesn't allow it,
2212 and it will fail since the %command processors scan for the next %.
2213 (parse_token_decl): Extended the %token
2214 declaration to allow a multi-character symbol as an alias.
2215 (parse_thong_decl): New function.
2216 (read_declarations): Added %thong declarations.
2217 (read_declarations): Handle NOOP to deal with allowing
2218 % declarations as another means to specify the flags.
2219 (readgram): Allow %prec prior to semantics embedded in a rule.
2220 (skip_to_char, read_declarations, copy_definition)
2221 (parse_token_decl, parse_start_decl, parse_type_decl)
2222 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2223 (get_type_name, copy_guard, copy_action, readgram)
2224 (get_type, packsymbols): Revised most error messages.
2225 Changed `fatal' to `warnxxx' to avoid aborting for error.
2226 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2227 (read_declarations): Improve the error message for
2228 an invalid character. Do not abort.
2229 (read_declarations, copy_guard, copy_action): Use
2230 printable_version to avoid unprintable characters in printed output.
2231 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2232 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2233 Allow the type of a non-terminal can be given
2234 more than once, as long as all specifications give the same type.
2237 (output_headers, output_trailers, output, output_gram)
2238 (output_rule_data): Implement noparserflag variable.
2239 Implement toknumflag variable.
2240 (output): Call reader_output_yylsp to output LTYPESTR.
2242 * src/main.c (main):
2243 If reader sees an error, don't process the grammar.
2244 (fatals): Updated to not use VARARGS1.
2245 (printable_version, int_to_string, warn, warni, warns, warnss)
2246 (warnsss): New error reporting functions. Avoid abort for error.
2249 Added THONG and NOOP for alias processing.
2250 Added SETOPT for the new code that allows setting options with %flags.
2253 Include getopt.h. Add some extern decls.
2254 (safegetc): New function to deal with EOF gracefully.
2255 (literalchar); new function to deal with reading \ escapes.
2256 (lex): Use literalchar.
2257 (lex): Implemented "..." tokens.
2258 (literalchar, lex, parse_percent_token): Made tokenbuffer
2259 always contain the token. This includes growing the token
2260 buffer while reading an integer.
2261 (parse_percent_token): Replaced if-else statement with percent_table.
2262 (parse_percent_token): Added % declarations as another
2263 way to specify the flags -n, -l, and -r. Also added hooks for
2264 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2265 major changes to files.c.
2266 (lex) Retain in the incoming stream a character following
2268 (skip_white_space, lex): Revised most error messages
2269 and changed fatal to warn to avoid aborting.
2270 (percent_table): Added %thong declarations.
2272 * src/gram.h: Comment changes.
2274 * src/files.c (openfiles, open_extra_files, done):
2276 and actfile file. Handle noparserflag. Both for -n switch.
2278 * src/conflicts.c (resolve_sr_conflict):
2279 Remove use of alloca.
2281 1995-06-01 Jim Meyering <meyering@gnu.org>
2283 * doc/bison.texinfo: *** empty log message ***
2285 1995-05-06 Richard Stallman <rms@gnu.org>
2287 * src/bison.s1: Comment change.
2289 1995-05-06 Richard Stallman <rms@gnu.org>
2291 * bison.simple: Comment change.
2293 1995-05-03 Richard Stallman <rms@gnu.org>
2295 * src/version.c: Version now 1.24.
2297 * src/bison.s1: Change distribution terms.
2299 * src/version.c: Version now 1.23.
2301 1995-05-03 Richard Stallman <rms@gnu.org>
2303 * doc/bison.texinfo:
2304 Rewrite "Conditions for Using Bison".
2305 Update version to 1.24.
2307 1995-05-03 Richard Stallman <rms@gnu.org>
2309 * bison.simple: Change distribution terms.
2311 1995-02-23 Richard Stallman <rms@gnu.org>
2313 * src/files.c: Test __VMS_POSIX as well as VMS.
2315 1995-02-14 Jim Meyering <meyering@gnu.org>
2317 * src/bison.s1 (__yy_memcpy):
2318 Renamed from __yy_bcopy to avoid
2319 confusion. Reverse FROM and TO arguments to be consistent with
2322 1995-02-14 Jim Meyering <meyering@gnu.org>
2324 * bison.simple (__yy_memcpy):
2325 Renamed from __yy_bcopy to avoid
2326 confusion. Reverse FROM and TO arguments to be consistent with
2329 1994-11-10 David J. MacKenzie <djm@gnu.org>
2335 * Makefile.in (DISTFILES): Include NEWS.
2337 * Makefile.in (DISTFILES):
2338 Include install-sh, not install.sh.
2340 * configure.in: Update to Autoconf v2 macro names.
2342 1994-10-05 David J. MacKenzie <djm@gnu.org>
2344 * Makefile.in: fix typo
2346 * Makefile.in (prefix, exec_prefix):
2347 Let configure set them.
2349 1994-09-28 David J. MacKenzie <djm@gnu.org>
2351 * Makefile.in: Set datadir to $(prefix)/share.
2353 1994-09-15 Richard Stallman <rms@gnu.org>
2356 Update copyright notice and GPL version.
2358 1994-09-15 Richard Stallman <rms@gnu.org>
2361 Update copyright notice and GPL version.
2363 1994-07-12 Richard Stallman <rms@gnu.org>
2365 * src/reduce.c, src/reader.c:
2368 1994-05-05 David J. MacKenzie <djm@gnu.org>
2370 * Makefile.in: entered into RCS
2372 1994-03-26 Richard Stallman <rms@gnu.org>
2374 * src/bison.s1: entered into RCS
2376 1994-03-26 Richard Stallman <rms@gnu.org>
2378 * bison.simple: entered into RCS
2380 1994-03-25 Richard Stallman <rms@gnu.org>
2382 * src/main.c: entered into RCS
2384 1994-03-24 Richard Stallman <rms@gnu.org>
2386 * src/conflicts.c: entered into RCS
2388 1994-01-02 Richard Stallman <rms@gnu.org>
2390 * Makefile.in: *** empty log message ***
2392 1993-11-21 Richard Stallman <rms@gnu.org>
2394 * src/bison.s1: *** empty log message ***
2396 1993-11-21 Richard Stallman <rms@gnu.org>
2398 * doc/bison.texinfo: entered into RCS
2400 * doc/bison.texinfo: *** empty log message ***
2402 1993-11-21 Richard Stallman <rms@gnu.org>
2404 * bison.simple: *** empty log message ***
2406 1993-10-25 David J. MacKenzie <djm@gnu.org>
2408 * doc/bison.texinfo: *** empty log message ***
2410 1993-10-19 Richard Stallman <rms@gnu.org>
2412 * src/bison.s1: *** empty log message ***
2414 1993-10-19 Richard Stallman <rms@gnu.org>
2416 * bison.simple: *** empty log message ***
2418 1993-10-14 Richard Stallman <rms@gnu.org>
2420 * src/bison.s1: *** empty log message ***
2422 1993-10-14 Richard Stallman <rms@gnu.org>
2424 * bison.simple: *** empty log message ***
2426 1993-09-14 David J. MacKenzie <djm@gnu.org>
2428 * doc/bison.texinfo: *** empty log message ***
2430 1993-09-13 Noah Friedman <friedman@gnu.org>
2432 * Makefile.in: *** empty log message ***
2434 1993-09-10 Richard Stallman <rms@gnu.org>
2436 * src/conflicts.c: *** empty log message ***
2438 * src/system.h: entered into RCS
2440 1993-09-10 Richard Stallman <rms@gnu.org>
2442 * doc/bison.1: entered into RCS
2444 1993-09-06 Noah Friedman <friedman@gnu.org>
2446 * src/version.c: entered into RCS
2448 1993-09-06 Noah Friedman <friedman@gnu.org>
2450 * Makefile.in: *** empty log message ***
2452 1993-07-30 David J. MacKenzie <djm@gnu.org>
2454 * Makefile.in: *** empty log message ***
2456 1993-07-24 Richard Stallman <rms@gnu.org>
2458 * src/bison.s1: *** empty log message ***
2460 1993-07-24 Richard Stallman <rms@gnu.org>
2462 * bison.simple: *** empty log message ***
2464 1993-07-08 David J. MacKenzie <djm@gnu.org>
2466 * Makefile.in: *** empty log message ***
2468 1993-07-04 Richard Stallman <rms@gnu.org>
2470 * src/bison.s1: *** empty log message ***
2472 1993-07-04 Richard Stallman <rms@gnu.org>
2474 * bison.simple: *** empty log message ***
2476 1993-06-26 David J. MacKenzie <djm@gnu.org>
2478 * src/getargs.c: entered into RCS
2480 1993-06-26 David J. MacKenzie <djm@gnu.org>
2482 * doc/bison.texinfo: *** empty log message ***
2484 * doc/bison.1: New file.
2486 1993-06-25 Richard Stallman <rms@gnu.org>
2488 * src/getargs.c: New file.
2490 1993-06-16 Richard Stallman <rms@gnu.org>
2492 * src/bison.s1: *** empty log message ***
2494 1993-06-16 Richard Stallman <rms@gnu.org>
2496 * bison.simple: *** empty log message ***
2498 1993-06-03 Richard Stallman <rms@gnu.org>
2500 * src/bison.s1: New file.
2502 1993-06-03 Richard Stallman <rms@gnu.org>
2504 * doc/bison.texinfo: *** empty log message ***
2506 1993-06-03 Richard Stallman <rms@gnu.org>
2508 * bison.simple: New file.
2510 1993-05-19 Richard Stallman <rms@gnu.org>
2512 * doc/bison.texinfo: New file.
2514 1993-05-07 Noah Friedman <friedman@gnu.org>
2516 * Makefile.in: *** empty log message ***
2518 1993-04-28 Noah Friedman <friedman@gnu.org>
2520 * src/reader.c: *** empty log message ***
2522 1993-04-23 Noah Friedman <friedman@gnu.org>
2524 * src/alloc.h: entered into RCS
2526 1993-04-20 David J. MacKenzie <djm@gnu.org>
2528 * src/version.c: *** empty log message ***
2530 * src/files.c, src/allocate.c:
2533 * src/reader.c: *** empty log message ***
2535 * src/lex.c: entered into RCS
2537 * src/conflicts.c: New file.
2539 * src/symtab.c: entered into RCS
2541 * src/alloc.h: New file.
2543 * src/LR0.c: entered into RCS
2545 1993-04-18 Noah Friedman <friedman@gnu.org>
2547 * src/reader.c: New file.
2549 * src/version.c: *** empty log message ***
2551 1993-04-18 Noah Friedman <friedman@gnu.org>
2553 * Makefile.in: *** empty log message ***
2555 1993-04-17 Noah Friedman <friedman@gnu.org>
2557 * Makefile.in: *** empty log message ***
2559 1993-04-15 Richard Stallman <rms@gnu.org>
2561 * src/main.c, src/files.c:
2564 1993-04-15 Noah Friedman <friedman@gnu.org>
2566 * configure.in: entered into RCS
2568 * configure.in: *** empty log message ***
2570 * configure.in: New file.
2572 1993-04-14 Richard Stallman <rms@gnu.org>
2574 * Makefile.in: New file.
2576 1993-04-13 Richard Stallman <rms@gnu.org>
2578 * src/version.c: New file.
2580 1993-03-25 Richard Stallman <rms@gnu.org>
2582 * src/output.c: entered into RCS
2584 1992-09-25 Richard Stallman <rms@gnu.org>
2586 * configure.bat: entered into RCS
2588 1992-06-22 Richard Stallman <rms@gnu.org>
2590 * src/vmsgetargs.c: entered into RCS
2592 1992-06-22 Richard Stallman <rms@gnu.org>
2594 * doc/bison.rnh: entered into RCS
2596 1992-04-20 David J. MacKenzie <djm@gnu.org>
2598 * README: entered into RCS
2600 1992-01-22 Richard Stallman <rms@gnu.org>
2602 * src/machine.h: entered into RCS
2604 1991-12-21 Richard Stallman <rms@gnu.org>
2606 * src/lalr.c, src/closure.c:
2609 1991-12-20 Richard Stallman <rms@gnu.org>
2611 * src/state.h: entered into RCS
2613 1991-12-18 Richard Stallman <rms@gnu.org>
2615 * src/print.c, src/nullable.c, src/derives.c:
2618 1991-11-03 David J. MacKenzie <djm@gnu.org>
2620 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2623 1988-09-09 Richard Stallman <rms@gnu.org>
2625 * src/bison.hairy: entered into RCS
2627 1987-12-16 Richard Stallman <rms@gnu.org>
2629 * REFERENCES: entered into RCS