1 2001-09-21 Marc Autret <autret_m@epita.fr>
3 * src/reader.c (copy_definition, parse_union_decl): Update and use
5 (copy_action): Likewise.
7 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
9 2001-09-21 Marc Autret <autret_m@epita.fr>
11 * src/options.c (option_table): Adjust.
12 * src/lex.c (parse_percent_token): Fix.
14 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
16 * src/options.c (symtab.h): Include it, need by lex.h.
18 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
20 * src/lex.c (parse_percent_token): Change type of variable `tx', which
21 is now an option_table_struct*.
22 (option_strcmp): New function option_strcmp.
23 (parse_percent_token): Call option_strcmp.
24 * src/getargs.c (xalloc.h, options.h): Include it.
25 (getargs): Call create_long_option_table.
26 (getargs): Free longopts at the end of the function.
27 (shortopts): Move in options.c.
28 * src/options.c (create_long_option_table): New function. Convert
29 information from option_table to option structure.
30 * src/reader.c (options.h): Include it.
32 * src/Makefile.am: Adjust.
33 * src/options.c (option_table): Create from longopts and percent_table.
34 * src/getargs.c (longopts): Delete.
35 * src/lex.c (struct percent_table_struct): Delete.
36 (percent_table): Delete.
37 (options.h): Include it.
38 * src/options.c: Create.
39 * src/options.h: Create.
40 Declare enum opt_access_e.
41 Define struct option_table_struct.
43 2001-09-20 Marc Autret <autret_m@epita.fr>
45 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
48 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
50 * src/bison.simple: s/%%filename/%%skeleton.
51 * src/muscle_tab.c (getargs.h): Include it.
52 (muscle_init): Insert new muscle skeleton.
54 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
56 * src/output.c (output_parser): Delete unused variable actions_dumped.
58 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
60 * src/output.c (output): Delete call to reader_output_yylsp.
61 * src/reader.c (reader): Likewise.
62 * src/reader.h: Delete declaration of reader_output_yylsp.
64 2001-09-02 Marc Autret <autret_m@epita.fr>
66 * src/reader.c: Include muscle_tab.h.
67 (parse_union_decl): Update.
68 (parse_macro_decl): Rename parse_muscle_decl.
69 Update to use renamed functions and variable.
70 (read_declarations, copy_action, read_additionnal_code, : Updated
71 with correct variables and functions names.
72 (packsymbols, reader): Likewise.
74 * src/reader.h (muscle_obstack): Extern declaration update.
76 * src/output.c: Include muscle_tab.h
77 In all functions using macro_insert, change by using muscle_insert ().
78 (macro_obstack): Rename muscle_obstack.
79 Echo modifications in the whole file.
80 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
81 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
82 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
84 * src/muscle_tab.h: Update double inclusion macros.
85 (macro_entry_s): Rename muscle_entry_s.
88 * src/muscle_tab.c: Include muscle_tab.h.
89 Rename macro_tabble to muscle_table.
90 (mhash1, mhash2, mcmp): Use muscle_entry.
91 (macro_init): Rename muscle_init. Update.
92 (macro_insert): Rename muscle_insert. Update.
93 (macro_find): Rename muscle_find. Update.
95 * src/main.c: Include muscle_tab.h.
96 (main): Call muscle_init ().
97 * src/Makefile.am (bison_SOURCES): Echo modifications.
99 2001-09-02 Marc Autret <autret_m@epita.fr>
101 Now the files macro_tab.[ch] are named muscle_tab.[ch].
103 * src/muscle_tab.c, src/muscle_tab.h: Add files.
105 2001-09-02 Marc Autret <autret_m@epita.fr>
107 * src/macrotab.c, src/macrotab.h: Remove.
109 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
111 * src/reader.c (copy_guard): Use muscle to specify the `#line'
114 2001-09-01 Marc Autret <autret_m@epita.fr>
116 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
117 to an explicit value to activate the feature. We do it here.
119 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
121 * src/output.c (prepare): Delete the `filename' muscule insertion.
122 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
123 (parse_union_decl): Likewise.
124 * src/macrotab.c (macro_init): Initialize filename by infile.
126 2001-08-31 Marc Autret <autret_m@epita.fr>
128 * src/bison.simple (YYLSP_NEEDED): New definition.
129 * src/output.c (prepare): Add macro insertion of `locations_flag'
131 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
133 * src/output.c (prepare): Delete insertion of previous muscles,
134 and insert the `prefix' muscles.
135 * src/macrotab.c (macro_init): Likewise.
136 (macro_init): Initialization prefix directive by `yy'.
137 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
138 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
139 yylval, yydebug, yyerror, yynerrs and yyparse.
140 New directive `#define' to substitute yydebug, ... with option
143 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
145 * src/main.c (main): Standardize.
146 * src/output.c (output_table_data, output_parser): Likewise.
147 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
149 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
151 * src/reader.c (read_additionnal_code): Rename %%user_code to
153 * src/output.c (output): Rename %%declarations to %%prologue.
154 * src/bison.simple: Echo modifications.
156 2001-08-31 Marc Autret <autret_m@epita.fr>
158 * src/reader.c (readgram): CleanUp.
159 (output_token_defines): Likewise.
160 (packsymbols): Likewise.
162 * src/output.c (output): CPP-out useless code.
164 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
166 * src/reader.c (reader): Delete obsolete call to function
167 output_trailers and output_headers.
168 * src/output.h: Remove obsolete functions prototypes of output_headers
171 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
173 * src/main.c: Include macrotab.h.
174 * src/macrotab.h (macro_entry_s): Constify fields.
175 Adjust functions prototypes.
176 * src/macrotab.c (macro_insert): Constify key and value.
177 (macro_find): Constify key.
178 (macro_insert): Include 'xalloc.h'
179 (macro_insert): Use XMALLOC.
180 (macro_find): Constify return value.
181 * src/output.c (output_table_data): Rename table to table_data.
182 (output_parser): Constify macro_key, macro_value.
184 2001-08-30 Marc Autret <autret_m@epita.fr>
186 * src/reader.c (parse_skel_decl): New.
187 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
188 * src/lex.h (token_t): New token `tok_skel'.
189 * src/lex.c (percent_table): Add skeleton option entry.
192 2001-08-29 Marc Autret <autret_m@epita.fr>
194 * src/bison.simple: Add %%user_code directive at the end.
195 * src/reader.c (read_additionnal_code): New.
197 * src/output.c (output_program): Remove.
200 2001-08-28 Marc Autret <autret_m@epita.fr>
202 * src/output.c (output_actions): Clean up.
203 (output_gram): CPP-out useless code.
204 * src/reader.c (reader): Clean up, CPP-out useless code.
206 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
208 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
210 * src/bison.simple: Add `%%definitions'.
212 2001-08-28 Marc Autret <autret_m@epita.fr>
214 * config/depcomp: New file.
216 2001-08-27 Paul Eggert <eggert@twinsun.com>
218 * src/bison.simple (yyparse): Don't take the address of an
219 item before the start of an array, as that doesn't conform to
222 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
224 * src/output.c (output): Remove the initialization of the macro
225 obstack. It was done too late here.
227 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
229 (reader): Initialize the macro obstack here, since we need it to grow
230 '%define' directives.
232 * src/reader.h: Declare the macro obstack as extern.
234 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
236 * src/output.c (output_parser): Fix. Store single '%' characters in
237 the output obstack instead of throwing them away.
239 2001-08-27 Akim Demaille <akim@epita.fr>
241 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
243 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
245 * lib/Makefile.am: Adjust.
247 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
249 * src/bison.simple: Update and add '%%' directives.
251 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
253 * src/reader.c (reader): Remove calls to 'output_headers' and
254 'output_trailers'. Remove some C output.
255 (readgram): Disable a piece of code that was writing a default
256 definition for 'YYSTYPE'.
257 (reader_output_yylsp): Remove.
258 (packsymbols): Output token defintions to a macro.
259 (copy_definition): Disable C output.
261 * src/reader.c (parse_macro_decl): New function used to parse macro
263 (copy_string2): Put the body of copy_string into this new function.
264 Add a parameter to let the caller choose whether he wants to copy the
265 string delimiters or not.
266 (copy_string): Be a simple call to copy_string2 with the last argument
268 (read_declarations): Add case for macro definition.
269 (copy_identifier): New.
270 (parse_macro_decl): Read macro identifiers using copy_identifier
273 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
275 * src/output.c (prepare): Add prefixed names.
276 (output_parser): Output semantic actions.
277 (output_parser): Fix bug on '%%line' directives.
279 * src/output.c (output_headers): Remove. The C code printed by this
280 function should now be in the skeletons.
281 (output_trailers): Remove.
282 (output): Disable call to 'reader_output_yylsp'.
283 (output_rule_data): Do not output tables to the table obstack.
285 * src/output.c: Remove some C dedicated output.
286 Improve the use of macro and output obstacks.
287 (output_defines): Remove.
289 * src/output.c (output_token_translations): Associate 'translate'
290 table with a macro. No output to the table obstack.
291 (output_gram): Same for 'rhs' and 'prhs'.
292 (output_stos): Same for 'stos'.
293 (output_rule_data): Same for 'r1' and 'r2'.
294 (token_actions): Same for 'defact'.
295 (goto_actions): Same for 'defgoto'.
296 (output_base): Same for 'pact' and 'pgoto'.
297 (output_table): Same for 'table'.
298 (output_check): Same for 'check'.
300 * src/output.c (output_table_data): New function.
301 (output_short_table): Remove.
302 (output_short_or_char_table): Remove.
304 * src/output.c (output_parser): Replace most of the skeleton copy code
305 with something new. Skeletons are now processed character by character
306 rather than line by line, and Bison looks for '%%' macros. This is the
307 first step in making Bison's output process (a lot) more flexible.
308 (output_parser): Use the macro table.
310 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
312 * src/main.c (main): Initialize the macro table.
314 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
316 * src/lex.c (percent_table): Add tok_define.
317 * src/lex.h: Add tok_define.
319 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
321 * src/macrotab.c: New file.
322 * src/macrotab.h: New file.
323 * src/Makefile.am: Update.
325 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
327 * lib/hash.c: New file.
328 * lib/hash.h: New file.
329 * lib/Makefile.am: Update.
331 2001-08-15 Akim Demaille <akim@epita.fr>
335 2001-08-15 Marc Autret <autret_m@epita.fr>
337 * src/reader.c (readgram): Indent output macro YYSTYPE.
338 (packsymbols): Likewise.
339 (output_token_defines): Likewise.
340 * src/files.c: Standardize.
341 (compute_header_macro): New.
342 (defines_obstack_save): New. Use compute_header_macro.
343 (output_files): Update. Use defines_obstack_save.
345 2001-08-15 Akim Demaille <akim@epita.fr>
347 * doc/bison.texinfo (Table of Symbols): Document
350 2001-08-15 Akim Demaille <akim@epita.fr>
352 * missing: Update from CVS Automake.
353 * config/config.guess, config/config.sub, config/texinfo.tex:
356 2001-08-15 Akim Demaille <akim@epita.fr>
358 * Makefile.maint: Sync with CVS Autoconf.
360 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
362 * doc/bison.texinfo: Include GNU Free Documentation License from
364 * doc/fdl.texi: Add to package.
366 2001-08-14 Marc Autret <autret_m@epita.fr>
368 Turn on %{source,header}_extension features.
370 * src/lex.c (percent_table): Un-CPP out header_extension and
372 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
373 (compute_exts_from_src): Remove conditions. It restores priorities
376 2001-08-14 Marc Autret <autret_m@epita.fr>
378 * src/files.c (compute_base_names): Add extensions computing when
379 `--file-prefix' used.
380 Standardize function calls.
382 2001-08-13 Marc Autret <autret_m@epita.fr>
384 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
385 defining it (defined but null disables alloca).
387 2001-08-13 Marc Autret <autret_m@epita.fr>
389 * src/bison.simple (_yy_memcpy): CPP reformat.
391 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
393 * tests/atconfig.in (CPPFLAGS): Fix.
395 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
397 * doc/bison.texinfo: Include GNU General Public License from
399 * doc/gpl.texi: Add to package.
401 2001-08-10 Marc Autret <autret_m@epita.fr>
403 * src/print_graph.h: Fix.
404 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
406 2001-08-10 Akim Demaille <akim@epita.fr>
408 * src/system.h: Provide default declarations for stpcpy, strndup,
411 2001-08-10 Robert Anisko <anisko_r@epita.fr>
413 * doc/bison.texinfo (Locations): Update @$ stuff.
415 2001-08-09 Robert Anisko <anisko_r@epita.fr>
417 * src/bison.simple (YYLLOC_DEFAULT): Update.
420 2001-08-08 Marc Autret <autret_m@epita.fr>
422 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
423 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
424 Reported by Fabrice Bauzac.
426 2001-08-08 Marc Autret <autret_m@epita.fr>
428 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
429 * src/vcg.c (output_node): Fix.
430 * src/vcg.h: Cleanup.
431 * src/print_graph.c: Add comments.
432 (node_output_size): New global variable. Simplify the formatting of
433 the VCG graph output.
434 (print_actions): Unused code is now used. It notifies the final state
435 and no action states in the VCG graph. It also give the reduce actions.
436 The `shift and goto' edges are red and the `go to state' edges are
438 Get the current node name and node_obstack by argument.
439 (node_obstack): New variable.
440 (print_state): Manage node_obstack.
441 (print_core): Use node_obstack given by argument.
442 A node is not only computed here but in print_actions also.
443 (print_graph): CPP out useless code instead of commenting it.
445 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
447 * tests/atconfig.in (CPPFLAGS): Fix.
449 2001-08-07 Akim Demaille <akim@epita.fr>
451 * src/print_graph.c (quote): New.
452 (print_core): Use it.
454 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
456 * src/vcg.c (complain.h): Include it.
457 Unepitaize `return' invocations.
458 [NDEBUG] (main): Remove.
459 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
460 * src/files.c (open_files): Initialize graph_obstack.
461 * src/print_graph.c (print_actions): CPP out useless code.
462 (print_core): Don't output the last `\n' in labels.
464 * src/files.c (output_files): Output the VCG file.
465 * src/main.c (main): Invoke print_graph ();
467 2001-08-06 Marc Autret <autret_m@epita.fr>
469 Automaton VCG graph output.
470 Using option ``-g'' or long option ``--graph'', you can generate
471 a gram_filename.vcg file containing a VCG description of the LALR (1)
472 automaton of your grammar.
474 * src/main.c: Call to print_graph() function.
475 * src/getargs.h: Update.
476 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
477 (graph_flag): New flag.
479 (getargs): Add case `g'.
480 * src/files.c (graph_obstack): New obstack struct.
481 (open_files): Initialize new obstack.
482 (output_files): Saves graph_obstack if required.
483 * src/files.h (graph_obstack): New extern declaration.
484 * src/Makefile.am: Add new source files.
486 2001-08-06 Marc Autret <autret_m@epita.fr>
488 * src/print_graph.c, src/print_graph.h (graph): New.
489 * src/vcg.h: New file.
490 * src/vcg.c: New file, VCG graph handling.
492 2001-08-06 Marc Autret <autret_m@epita.fr>
494 Add of %source_extension and %header_extension which specify
495 the source or/and the header output file extension.
497 * src/files.c (compute_base_names): Remove initialisation of
498 src_extension and header_extension.
499 (compute_exts_from_gf): Update.
500 (compute_exts_from_src): Update.
501 (output_files): Update.
502 * src/reader.c (parse_header_extension_decl): New.
503 (parse_source_extension_decl): New.
504 (read_declarations): New case statements for the new tokens.
505 * src/lex.c (percent_table): Add entries for %source_extension
506 and %header_extension.
507 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
509 2001-08-06 Marc Autret <autret_m@epita.fr>
511 * configure.in: Bump to 1.28c.
512 * doc/bison.texinfo: Texinfo thingies.
514 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
516 * tests/atconfig.in (CPPFLAGS): Add.
517 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
519 2001-08-03 Akim Demaille <akim@epita.fr>
523 2001-08-03 Akim Demaille <akim@epita.fr>
525 * tests/Makefile.am (check-local): Ship testsuite.
526 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
529 2001-08-03 Akim Demaille <akim@epita.fr>
531 * configure.in: Try using -Wformat when compiling.
533 2001-08-03 Akim Demaille <akim@epita.fr>
535 * configure.in: Bump to 1.28b.
537 2001-08-03 Akim Demaille <akim@epita.fr>
539 * src/complain.c: Adjust strerror_r portability issues.
541 2001-08-03 Akim Demaille <akim@epita.fr>
545 2001-08-03 Akim Demaille <akim@epita.fr>
547 * src/getargs.c, src/getarg.h (skeleton)): Constify.
548 * src/lex.c (literalchar): Avoid name clashes on `buf'.
549 * src/getargs.c: Include complain.h.
550 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
551 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
553 2001-08-03 Akim Demaille <akim@epita.fr>
555 * src/reader.c (readgram): Display hidden chars in error messages.
557 2001-08-03 Akim Demaille <akim@epita.fr>
559 Update to gettext 0.10.39.
561 2001-08-03 Akim Demaille <akim@epita.fr>
565 2001-08-01 Marc Autret <autret_m@epita.fr>
567 * doc/bison.texinfo: Update.
568 * doc/bison.1 (mandoc): Update.
569 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
570 * src/files.c: Support output files extensions computing.
571 (src_extension): New static variable.
572 (header_extension): New static variable.
574 (get_extension_index): New function, gets the index of an extension
575 filename in a string.
576 (compute_exts_from_gf): New function, computes extensions from the
577 grammar file extension.
578 (compute_exts_from_src): New functions, computes extensions from the
579 C source file extension, file given by ``-o'' option.
580 (compute_base_names): Update.
581 (output_files): Update.
583 2001-08-01 Robert Anisko <anisko_r@epita.fr>
585 * doc/bison.texi: Document @$.
586 (Locations): New section.
588 2001-07-18 Akim Demaille <akim@epita.fr>
590 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
591 * config/prev-version.txt, config/move-if-change: New.
592 * Makefile.am: Adjust.
594 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
596 * src/bison.simple (yyparse): Suppress warning `comparaison
597 between signed and unsigned'.
599 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
601 * src/getargs.h (raw_flag): Remove.
602 * src/getargs.c: Die on `-r'/`--raw'.
603 * src/lex.c (parse_percent_token): Die on `%raw'.
604 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
605 * tests/calc.at: Suppress test with option `--raw'.
607 2001-07-14 Akim Demaille <akim@epita.fr>
610 * configure.in: Require Autoconf 2.50.
611 Update to gettext 0.10.38.
613 2001-03-16 Akim Demaille <akim@epita.fr>
615 * doc/bison.texinfo: ANSIfy the examples.
617 2001-03-16 Akim Demaille <akim@epita.fr>
619 * getargs.c (skeleton): New variable.
620 (longopts): --skeleton is a new option.
621 (shortopts, getargs): -S is a new option.
622 * getargs.h: Declare skeleton.
623 * output.c (output_parser): Use it.
625 2001-03-16 Akim Demaille <akim@epita.fr>
627 * m4/strerror_r.m4: New.
628 * m4/error.m4: Run AC_FUNC_STRERROR_R.
629 * lib/error.h, lib/error.c: Update.
631 2001-03-16 Akim Demaille <akim@epita.fr>
633 * src/getargs.c (longopts): Clean up.
635 2001-02-21 Akim Demaille <akim@epita.fr>
637 * src/reader.c (gensym): `gensym_count' is your own.
638 Use a static buf to create the symbol name, as token_buffer is no
641 2001-02-08 Akim Demaille <akim@epita.fr>
643 * src/conflicts.c (conflict_report): Be sure not to append to res
644 between two calls, which could happen if both first sprintf were
645 skipped, but not the first cp += strlen.
647 2001-02-08 Akim Demaille <akim@epita.fr>
649 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
650 New, from fileutils 4.0.37.
651 * configure.in: Require Autoconf 2.49c. I took some time before
652 making this decision. This is the only way out for portability
653 issues in Bison, it would mean way too much duplicate effort to
654 import in Bison features implemented in 2.49c since 2.13.
655 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
657 2001-02-02 Akim Demaille <akim@epita.fr>
659 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
660 * lib/xalloc.h, lib/xmalloc.c: Update.
662 2001-01-19 Akim Demaille <akim@epita.fr>
664 Get rid of the ad hoc handling of token_buffer in the scanner: use
667 * src/lex.c (token_obstack): New.
668 (init_lex): Initialize it. No longer call...
669 (grow_token_buffer): this. Remove it.
670 Adjust all the places which used it to use the obstack.
672 2001-01-19 Akim Demaille <akim@epita.fr>
674 * src/lex.h: Rename all the tokens:
675 s/\bENDFILE\b/tok_eof/g;
676 s/\bIDENTIFIER\b/tok_identifier/g;
678 Let them be enums, not #define, to ease debugging.
681 2001-01-18 Akim Demaille <akim@epita.fr>
683 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
684 * src/lex.c (maxtoken, grow_token_buffer): Static.
686 2001-01-18 Akim Demaille <akim@epita.fr>
688 Since we now use obstacks, more % directives can be enabled.
690 * src/lex.c (percent_table): Also accept `%yacc',
691 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
693 Handle the actions for `%semantic_parser' and `%pure_parser' here,
694 instead of returning a token.
695 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
696 * src/reader.c (read_declarations): Adjust.
697 * src/files.c (open_files): Don't call `compute_base_names', don't
698 compute `attrsfile' since they depend upon data which might be
699 *in* the input file now.
700 (output_files): Do it here.
701 * src/output.c (output_headers): Document the fact that this patch
702 introduces a guaranteed SEGV for semantic parsers.
703 * doc/bison.texinfo: Document them.
704 * tests/suite.at: Exercise these %options.
706 2000-12-20 Akim Demaille <akim@epita.fr>
708 Also handle the output file (--verbose) with obstacks.
710 * files.c (foutput): Remove.
711 (output_obstack): New.
712 Adjust all dependencies.
713 * src/conflicts.c: Return a string.
714 * src/system.h (obstack_grow_string): Rename as...
715 (obstack_sgrow): this. Be ready to work with non literals.
716 (obstack_fgrow4): New.
718 2000-12-20 Akim Demaille <akim@epita.fr>
720 * src/files.c (open_files): Fix the computation of short_base_name
721 in the case of `-o foo.tab.c'.
723 2000-12-20 Akim Demaille <akim@epita.fr>
725 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
726 (copy_dollar): Now that everything uses obstacks, get rid of the
729 2000-12-20 Akim Demaille <akim@epita.fr>
731 * src/files.c (open_files): Actually the `.output' file is based
732 on the short_base_name, not base_name.
733 * tests/suite.at (Checking output file names): Adjust.
735 2000-12-20 Akim Demaille <akim@epita.fr>
737 * src/bison.s1: Remove, we now use directly...
738 * src/bison.simple: this.
739 * src/Makefile.am: Use pkgdata instead of data.
741 2000-12-20 Akim Demaille <akim@epita.fr>
743 * src/files.c (guard_obstack): New.
744 (open_files): Initialize it.
745 (output_files): Dump it...
746 * src/files.h: Export it.
747 * src/reader.c (copy_guard): Use it.
749 2000-12-19 Akim Demaille <akim@epita.fr>
751 * src/files.c (outfile, defsfile, actfile): Removed as global
753 (open_files): Don't compute them.
754 (output_files): Adjust.
755 (base_name, short_base_name): Be global.
758 2000-12-19 Akim Demaille <akim@epita.fr>
760 * src/files.c (strsuffix): New.
761 (stringappend): Be just like strcat but allocate.
762 (base_names): Eve out from open_files.
763 Try to simplify the rather hairy computation of base_name and
765 (open_files): Use it.
766 * tests/suite.at (Checking output file names): New test.
768 2000-12-19 Akim Demaille <akim@epita.fr>
770 * src/system.h (obstack_grow_literal_string): Rename as...
771 (obstack_grow_string): this.
772 * src/output.c (output_parser): Recognize `%% actions' instead of
774 * src/bison.s1: s/$/%% actions/.
775 * src/bison.hairy: Likewise.
777 2000-12-19 Akim Demaille <akim@epita.fr>
779 * src/output.c (output_parser): Compute the `#line' lines when
781 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
782 Suggested by Hans Aberg.
784 2000-12-19 Akim Demaille <akim@epita.fr>
786 Let the handling of the skeleton files be local to the procedures
789 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
791 (fparser, open_extra_files): Remove.
792 (open_files, output_files): Don't take care of fparser.
793 * src/files.h: Adjust.
794 * src/output.c (output_parser): Open and close the file to the
796 * src/reader.c (read_declarations): When %semantic_parser, open
799 2000-12-19 Akim Demaille <akim@epita.fr>
801 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
802 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
804 2000-12-19 Akim Demaille <akim@epita.fr>
806 * src/files.c (open_files): Yipee! We no longer need all the code
807 looking for `/tmp' since we have no tmp file.
809 2000-12-19 Akim Demaille <akim@epita.fr>
811 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
813 * src/files.c (open_files): Less dependency on MSDOS etc.
815 2000-12-14 Akim Demaille <akim@epita.fr>
817 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
818 Provide a default definition.
819 Use it when executing the default @ action.
820 * src/reader.c (reader_output_yylsp): No longer include
821 `timestamp' and `text' in the default YYLTYPE.
823 2000-12-12 Akim Demaille <akim@epita.fr>
825 * src/reader.c (copy_definition, parse_union_decl, copy_action)
826 (copy_guard): Quote the file names.
827 Reported by Laurent Mascherpa.
829 2000-12-12 Akim Demaille <akim@epita.fr>
831 * src/output.c (output_headers, output_program, output): Be sure
832 to escape special characters when outputting filenames.
833 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
834 (output_headers): Don't depend on them, Use ACTSTR.
836 2000-11-17 Akim Demaille <akim@epita.fr>
838 * lib/obstack.h: Formatting changes.
839 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
840 prevents type checking.
841 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
842 cast the value to (void *): assigning a `foo *' to a `void *'
844 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
845 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
848 2000-11-17 Akim Demaille <akim@epita.fr>
850 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
852 (suite.m4, regression.m4, calc.m4): these.
853 * tests/atgeneral.m4: Update from CVS Autoconf.
855 2000-11-17 Akim Demaille <akim@epita.fr>
857 * tests/regression.m4 (%union and --defines): New test,
858 demonstrating a current bug in the obstack implementation.
860 2000-11-17 Akim Demaille <akim@epita.fr>
862 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
864 Use them to declare the variables which are global or local to
867 2000-11-17 Akim Demaille <akim@epita.fr>
869 * acconfig.h: Remove, no longer used.
871 2000-11-07 Akim Demaille <akim@epita.fr>
873 * src: s/Copyright (C)/Copyright/g.
875 2000-11-07 Akim Demaille <akim@epita.fr>
877 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
879 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
881 2000-11-07 Akim Demaille <akim@epita.fr>
883 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
884 Merge in a single CPP if/else.
886 2000-11-07 Akim Demaille <akim@epita.fr>
888 * src/output.c (output): Remove useless variables.
889 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
890 argument `data' for consistency with the prototypes.
892 (obstack_copy, obstack_copy0): Rename the second argument as
893 `address' for consistency. Qualify it `const'.
894 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
895 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
896 `const' their input argument (`data' or `address').
897 Adjust the corresponding macros to include `const' in casts.
899 2000-11-03 Akim Demaille <akim@epita.fr>
901 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
902 s/PFILE1/BISON_HAIRY/.
905 2000-11-03 Akim Demaille <akim@epita.fr>
907 For some reason, this was not applied.
909 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
910 `unlink': it's no longer used.
912 2000-11-03 Akim Demaille <akim@epita.fr>
914 * src/files.c (skeleton_find): New function, eved out of...
915 (open_files, open_extra_files): here.
917 2000-11-03 Akim Demaille <akim@epita.fr>
921 * src/files.c (obstack_save): New function.
923 (output_files): this.
925 * src/main.c (main): Don't use `atexit' to register `done', since
926 it no longer has to remove tmp files, just call `output_files'
927 when there are no errors.
929 2000-11-02 Akim Demaille <akim@epita.fr>
931 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
932 `unlink': it's no longer used.
933 * src/files.h: Formatting changes.
935 2000-11-02 Akim Demaille <akim@epita.fr>
937 Remove the last uses of mktemp and unlink/delete.
939 * src/files.c (fdefines, ftable): Removed.
940 (defines_ostack, table_obstack): New.
941 Adjust dependencies of the former into uses of the latter.
942 * src/output.c (output_short_or_char_table, output_short_table):
943 Convert to using obstacks.
944 * src/reader.c (copy_comment2): Accept one FILE * and two
946 (output_token_defines, reader_output_yylsp): Use obstacks.
947 * src/system.h (obstack_fgrow3): New.
949 2000-11-01 Akim Demaille <akim@epita.fr>
951 Change each use of `fattrs' into a use of `attrs_obstack'.
953 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
954 * src/files.c (fattrs): Remove.
955 (attrs_obstack): New.
956 Adjust all dependencies.
957 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
959 2000-11-01 Akim Demaille <akim@epita.fr>
962 Change each use of `faction' into a use of `action_obstack'.
964 * lib/obstack.h, lib/obstack.c: New files.
965 * src/files.c (faction): Remove.
966 (action_obstack): New.
967 Adjust all dependencies.
969 2000-10-20 Akim Demaille <akim@epita.fr>
971 * lib/quote.h (PARAMS): New macro. Use it.
973 2000-10-16 Akim Demaille <akim@epita.fr>
975 * src/output.c (output_short_or_char_table): New function.
976 (output_short_table, output_token_translations): Use it.
977 (goto_actions): Use output_short_table.
979 2000-10-16 Akim Demaille <akim@epita.fr>
981 * src/symtab.c (bucket_new): New function.
984 * src/output.c (output_short_table): New argument to display the
985 comment associated with the table.
987 (output_gram): Use it.
988 (output_rule_data): Nicer output layout for YYTNAME.
990 2000-10-16 Akim Demaille <akim@epita.fr>
992 * src/lex.c (read_typename): New function.
994 * src/reader.c (copy_dollar): Likewise.
996 2000-10-16 Akim Demaille <akim@epita.fr>
998 * src/reader.c (copy_comment2): Expect the input stream to be on
999 the `/' which is suspected to open a comment, instead of being
1000 called after `//' or `/*' was read.
1001 (copy_comment, copy_definition, parse_union_decl, copy_action)
1002 (copy_guard): Adjust.
1004 2000-10-16 Akim Demaille <akim@epita.fr>
1006 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1007 `read_signed_integer'.
1009 2000-10-16 Akim Demaille <akim@epita.fr>
1011 * src/reader.c (copy_dollar): New function.
1012 (copy_guard, copy_action): Use it.
1014 2000-10-16 Akim Demaille <akim@epita.fr>
1016 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1017 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1018 New files, from Fileutils 4.0.27.
1019 * src/main.c (printable_version): Remove.
1020 * src/lex.c, src/reader.c: Use `quote'.
1022 2000-10-04 Akim Demaille <akim@epita.fr>
1024 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1026 2000-10-04 Akim Demaille <akim@epita.fr>
1028 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1030 2000-10-04 Akim Demaille <akim@epita.fr>
1032 When a literal string is used to define two different tokens,
1033 `bison -v' segfaults.
1034 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1036 * tests/regression.m4: New file.
1037 Include the core of the sample provided by Piotr Gackiewicz.
1038 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1041 2000-10-04 Akim Demaille <akim@epita.fr>
1043 * src/reader.c (parse_expect_decl): Keep `count' within the size
1047 2000-10-02 Paul Eggert <eggert@twinsun.com>
1049 * bison.s1 (yyparse): Assign the default value
1050 unconditionally, to avoid a GCC warning and make the parser a
1053 2000-10-02 Akim Demaille <akim@epita.fr>
1055 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1058 2000-10-02 Akim Demaille <akim@epita.fr>
1060 * src/derives.c, src/print.c, src/reduce.c: To ease the
1061 translation, move some `\n' out of the translated strings.
1063 2000-10-02 Akim Demaille <akim@epita.fr>
1065 The location tracking mechanism is precious for parse error
1066 messages. Nevertheless, it is enabled only when `@n' is used in
1067 the grammar, which is a different issue (you can use it in error
1068 message, but not in the grammar per se). Therefore, there should
1069 be another means to enable it.
1071 * src/getargs.c (getargs): Support `--locations'.
1073 * src/getargs.h (locationsflag): Export it.
1074 * src/lex.c (percent_table): Support `%locations'.
1075 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1076 with `locationsflag'.
1077 * doc/bison.texinfo: Document `--locations' and `%locations'.
1079 * tests/calc.m4: Test it.
1081 For regularity of the names, replace each
1082 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1083 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1084 In addition replace each `flag' with `_flag'.
1086 2000-10-02 Akim Demaille <akim@epita.fr>
1088 Also test parse error messages, including with YYERROR_VERBOSE.
1090 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1092 Use it to check the computations.
1093 Use it to check `nonassoc' is honored.
1094 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1095 `--yyerror-verbose'.
1096 (_AT_CHECK_CALC): Adjust to this option.
1097 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1099 2000-10-02 Akim Demaille <akim@epita.fr>
1101 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1102 the latter demonstrates a flaw in the handling of non debugging
1103 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1104 was used in order to simplify:
1120 unfortunately this leads to a CPP conflict when
1121 `--name-prefix=foo' is used since it produces `#define yydebug
1124 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1125 (YYDPRINTF): New macro.
1127 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1129 Also test `--verbose', `--defines' and `--name-prefix'.
1131 2000-10-02 Akim Demaille <akim@epita.fr>
1133 Improve the readability of the produced parsers.
1135 * src/bison.s1: Formatting changes.
1136 Improve the comment related to the `$' mark.
1137 (yydefault): Don't fall through to `yyresume': `goto' there.
1138 * src/output.c (output_parser): When the `$' is met, skip the end
1140 New variable, `number_of_dollar_signs', to check there's exactly
1141 one `$' in the parser skeleton.
1143 2000-10-02 Akim Demaille <akim@epita.fr>
1145 * lib/xstrdup.c: New file, from the fileutils.
1146 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1147 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1148 instead of strlen + xmalloc + strcpy.
1149 * src/symtab.c (copys): Remove, use xstrdup instead.
1151 2000-10-02 Akim Demaille <akim@epita.fr>
1153 * src/gram.h (associativity): New enum type which replaces the
1154 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1155 `right_assoc', `left_assoc' and `non_assoc'.
1156 Adjust all dependencies.
1157 * src/reader.c: Formatting changes.
1158 (LTYPESTR): Don't define it, use it as a literal in
1159 `reader_output_yylsp'.
1160 * src/symtab.h (symbol_class): New enum type which replaces the
1161 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1162 `sunknown', `stoken and `snterm'.
1164 2000-10-02 Akim Demaille <akim@epita.fr>
1166 * src/getargs.c (fixed_outfiles): Rename as...
1167 (yaccflag): for consistency and accuracy.
1168 Adjust dependencies.
1170 2000-10-02 Akim Demaille <akim@epita.fr>
1172 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1173 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1174 difficult and introduced a lot of core dump. It turns out that
1175 Bison used an implementation of `xmalloc' based on `calloc', and
1176 at various places it does depend upon the initialization to 0. I
1177 have not tried to isolate the pertinent places, and all the former
1178 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1179 someone should address this issue.
1181 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1182 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1184 Adjust dependencies.
1185 * src/warshall.h: New file.
1188 2000-10-02 Akim Demaille <akim@epita.fr>
1190 Various anti-`extern in *.c' changes.
1192 * src/system.h: Include `assert.h'.
1194 2000-10-02 Akim Demaille <akim@epita.fr>
1196 * src/state.h (nstates, final_state, first_state, first_shift)
1197 (first_reduction): Move their exportation from here...
1198 * src/LR0.h: to here.
1199 Adjust dependencies.
1200 * src/getargs.c (statisticsflag): New variable.
1201 Add support for `--statistics'.
1202 Adjust dependencies.
1204 Remove a lot of now useless `extern' statements in most files.
1206 2000-10-02 Akim Demaille <akim@epita.fr>
1208 * src/LR0.h: New file.
1211 2000-10-02 Akim Demaille <akim@epita.fr>
1213 * src/print.h: New file.
1215 * src/print.c: Formatting and ordering changes.
1216 (verbose, terse): Replace with...
1217 (print_results): this new function.
1218 Adjust dependencies.
1220 2000-10-02 Akim Demaille <akim@epita.fr>
1222 * src/conflicts.c (conflict_report): New function.
1223 (conflict_log, verbose_conflict_log): Replace with...
1224 (print_conflicts): this function.
1225 Adjust dependencies.
1226 * src/conflicts.h: New file.
1227 Propagate its inclusion.
1229 2000-10-02 Akim Demaille <akim@epita.fr>
1231 * src/nullable.h: New file.
1232 Propagate its inclusion.
1233 * src/nullable.c: Formatting changes.
1235 2000-10-02 Akim Demaille <akim@epita.fr>
1237 * src/reduce.h: New file.
1238 Propagate its inclusion.
1239 * src/reduce.c: Topological sort and other formatting changes.
1240 (bool, TRUE, FALSE): Move their definition to...
1241 * src/system.h: here.
1243 2000-10-02 Akim Demaille <akim@epita.fr>
1245 * src/files.c: Formatting changes.
1246 (tryopen, tryclose, openfiles): Rename as...
1247 (xfopen, xfclose, open_files): this.
1248 (stringappend): static.
1249 * src/files.h: Complete the list of exported symbols.
1252 2000-10-02 Akim Demaille <akim@epita.fr>
1254 * src/reader.h: New file.
1255 Propagate its use instead of tedious list of `extern' and
1257 * src/reader.c: Formatting changes, topological sort,
1260 2000-10-02 Akim Demaille <akim@epita.fr>
1262 * src/lex.h: Prototype `lex.c' exported functions.
1263 * src/reader.c: Adjust.
1264 * src/lex.c: Formatting changes.
1265 (safegetc): Rename as...
1268 2000-10-02 Akim Demaille <akim@epita.fr>
1270 * src/lalr.h: New file.
1271 Propagate its inclusion instead of prototypes and `extern'.
1272 * src/lalr.c: Formatting changes, topological sorting etc.
1274 2000-10-02 Akim Demaille <akim@epita.fr>
1276 * src/output.c (token_actions): Introduce a temporary array,
1277 YYDEFACT, that makes it possible for this function to use
1280 2000-10-02 Akim Demaille <akim@epita.fr>
1282 `user_toknums' is output as a `short[]' in `output.c', while it is
1283 defined as a `int[]' in `reader.c'. For consistency with the
1284 other output tables, `user_toknums' is now defined as a table of
1287 * src/reader.c (user_toknums): Be a short table instead of an int
1289 Adjust dependencies.
1291 Factor the short table outputs.
1293 * src/output.c (output_short_table): New function.
1294 * src/output.c (output_gram, output_stos, output_rule_data)
1295 (output_base, output_table, output_check): Use it.
1297 2000-10-02 Akim Demaille <akim@epita.fr>
1299 * src/output.c (output): Topological sort of the functions, in
1300 order to get rid of the `static' prototypes.
1301 No longer use `register'.
1302 * src/output.h: New file.
1303 Propagate its inclusion in files explicitly prototyping functions
1306 2000-09-21 Akim Demaille <akim@epita.fr>
1308 * src/atgeneral.m4: Update from Autoconf.
1310 2000-09-21 Akim Demaille <akim@epita.fr>
1312 * src/closure.h: New file.
1313 * src/closure.c: Formatting changes, topological sort over the
1314 functions, use of closure.h.
1315 (initialize_closure, finalize_closure): Rename as...
1316 (new_closure, free_closure): these. Adjust dependencies.
1317 * src/LR0.c: Formatting changes, topological sort, use of
1319 (initialize_states): Rename as...
1321 * src/Makefile.am (noinst_HEADERS): Adjust.
1323 2000-09-20 Akim Demaille <akim@epita.fr>
1325 * src/acconfig.h: Don't protect config.h against multiple
1327 Don't define PARAMS.
1328 * src/system.h: Define PARAMS.
1329 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1330 purpose of config.h. system.h must not try to fix wrong
1331 definitions in config.h.
1333 2000-09-20 Akim Demaille <akim@epita.fr>
1335 * src/derives.h: New file.
1336 * src/main.c, src/derives.h: Use it.
1338 * src/Makefile.am (noinst_HEADERS): Adjust.
1340 2000-09-20 Akim Demaille <akim@epita.fr>
1342 * tests/atgeneral.m4: Update from Autoconf.
1343 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1344 (AT_CHECK_CALC): New macros.
1345 Use these macros to test bison with options `', `--raw',
1346 `--debug', `--yacc', `--yacc --debug'.
1348 2000-09-19 Akim Demaille <akim@epita.fr>
1350 * src/output.c: Formatting changes.
1351 * src/machine.h: Remove, leaving its contents in...
1352 * src/system.h: here.
1354 Adjust all dependencies on stdio.h and machine.h.
1355 * src/getargs.h: New file.
1356 Let all `extern' declarations about getargs.c be replaced with
1357 inclusion of `getargs.h'.
1358 * src/Makefile.am (noinst_HEADERS): Adjust.
1360 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1362 (yyerror): Returns void, not int.
1363 * doc/bison.texinfo: Formatting changes.
1365 2000-09-19 Akim Demaille <akim@epita.fr>
1367 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1370 2000-09-18 Akim Demaille <akim@epita.fr>
1372 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1373 * src/Makefile.am (INCLUDES): Don't.
1374 Be ready to fetch headers in lib/.
1376 2000-09-18 Akim Demaille <akim@epita.fr>
1378 * doc/bison.texinfo: Update the copyright.
1379 ANSIfy and GNUify the examples.
1380 Remove the old menu.
1382 2000-09-18 Akim Demaille <akim@epita.fr>
1384 First set of tests: use the `calc' example from the documentation.
1386 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1387 is defined only when YYDEBUG is.
1388 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1389 * src/files.c (tryopen, tryclose): Formatting changes.
1390 Move to the top and be static.
1391 * src/reader.c (read_signed_integer): Likewise.
1392 * tests/calc.m4: New file.
1393 * Makefile.am, suite.m4: Adjust.
1394 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1396 2000-09-18 Akim Demaille <akim@epita.fr>
1398 Add support for an Autotest test suite for Bison.
1400 * m4/m4.m4, m4/atconfig.m4: New files.
1401 * m4/Makefile.am (EXTRA_DIST): Adjust.
1402 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1404 * src/getargs.c: Display a more standard --version message.
1405 * src/reader.c (reader): Formatting changes.
1406 No longer depend upon VERSION_STRING.
1407 * configure.in: No longer use `dnl'.
1408 Set up the test suite and the new directory `tests/.
1409 (VERSION_STRING): Remove.
1411 2000-04-14 Akim Demaille <akim@epita.fr>
1413 * src/reader.c (copy_comment2): New function, same as former
1414 `copy_comment', but outputs into two FILE *.
1415 (copy_comment): Use it.
1416 (parse_union_decl): Use it.
1417 (get_type, parse_start_decl): Use the same `invalid' message.
1418 (parse_start_decl, parse_union_decl): Use the same `multiple'
1420 (parse_union_decl, copy_guard, copy_action): Use the same
1421 `unmatched' message.
1422 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1424 2000-03-31 Akim Demaille <akim@epita.fr>
1426 * src/files.c (tryopen, tryclose): Move to the top.
1429 2000-03-31 Akim Demaille <akim@epita.fr>
1431 * src/main.c (main): Don't call `done', exit does it.
1433 2000-03-31 Akim Demaille <akim@epita.fr>
1435 * allocate.c: s/return (foo)/return foo/.
1438 * output.c: Likewise.
1439 * reader.c: Likewise.
1440 * symtab.c: Likewise.
1441 * vmsgetargs.c: Likewise.
1443 2000-03-31 Akim Demaille <akim@epita.fr>
1445 Clean up the error reporting functions.
1447 * src/report.c: New file.
1448 * src/report.h: Likewise.
1449 * src/Makefile.am: Adjust.
1450 * m4/error.m4: New file.
1451 * m4/Makefile.am: Adjust.
1452 * configure.in (jm_PREREQ_ERROR): Call it.
1453 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1455 (fatal, fatals): Remove. All callers use complain.c::fatal.
1456 (warn, warni, warns, warnss, warnss): Remove. All callers use
1457 complain.c::complain.
1458 (toomany): Remove, use fatal instead.
1459 * src/files.c (done): No argument, use complain_message_count.
1460 * src/main.c (main): Register `done' to `atexit'.
1462 * src/getargs.c (usage): More `fputs', less `fprintf'.
1464 2000-03-28 Akim Demaille <akim@epita.fr>
1466 * lib/: New directory.
1467 * Makefile.am (SUBDIRS): Adjust.
1468 * configure.in: Adjust.
1469 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1471 * src/alloca.c: Moved to lib/.
1472 * src/getopt.c: Likewise.
1473 * src/getopt1.c: Likewise.
1474 * src/getopt.h: Likewise.
1475 * src/ansi2knr.c: Likewise.
1476 * src/ansi2knr.1: Likewise.
1477 * src/Makefile.am: Adjust.
1478 * lib/Makefile.am: New file.
1480 2000-03-28 Akim Demaille <akim@epita.fr>
1482 * src/getargs.c (usage): Refresh the help message.
1484 2000-03-17 Akim Demaille <akim@epita.fr>
1486 * src/getopt1.c: Updated from textutils 2.0e
1487 * src/getopt.c: Likewise.
1488 * src/getopt.h: Likewise.
1490 2000-03-17 Akim Demaille <akim@epita.fr>
1492 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1493 the file name, not the whole `#line LINE FILE'.
1495 2000-03-17 Akim Demaille <akim@epita.fr>
1497 On syntax errors, report the token on which we choked.
1499 * src/bison.s1 (yyparse): In the label yyerrlab, when
1500 YYERROR_VERBOSE, add yychar in msg.
1502 2000-03-17 Akim Demaille <akim@epita.fr>
1504 * src/reader.c (copy_at): New function.
1505 (copy_guard): Use it.
1506 (copy_action): Use it.
1508 2000-03-17 Akim Demaille <akim@epita.fr>
1510 Be kind to translators, save some useless translations.
1512 * src/main.c (banner): New function.
1513 (fatal_banner): Use it.
1514 (warn_banner): Use it.
1516 2000-03-17 Akim Demaille <akim@epita.fr>
1518 * src/reader.c (copy_definition): Use copy_string and
1519 copy_comment. Removed now unused `match', `ended',
1521 (copy_comment, copy_string): Moved, to be visible from
1524 2000-03-17 Akim Demaille <akim@epita.fr>
1526 * src/reader.c (copy_string): Declare `static inline'. No
1527 problems with inline, since it is checked by configure.
1528 (copy_comment): Likewise.
1530 2000-03-17 Akim Demaille <akim@epita.fr>
1532 * src/reader.c (packsymbols): Formatting changes.
1534 2000-03-17 Akim Demaille <akim@epita.fr>
1536 * src/reader.c (copy_comment): New function, factored out from:
1537 (copy_action): Use it. Removed now unused `match', `ended',
1539 (copy_guard): Likewise.
1541 2000-03-17 Akim Demaille <akim@epita.fr>
1543 * src/reader.c (copy_string): New function, factored out from:
1544 (copy_action): Use it.
1545 (copy_guard): Likewise.
1547 2000-03-17 Akim Demaille <akim@epita.fr>
1549 Change the handling of @s so that they behave exactly like $s.
1550 There is now a pseudo variable @$ (readble and writable), location
1551 of the lhs of the rule (by default ranging from the location of
1552 the first symbol of the rhs, to the location of the last symbol,
1553 or, if the rhs is empty, YYLLOC).
1555 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1557 (yyparse): When providing a default semantic action, provide a
1558 default location action.
1559 (after the $): No longer change `*YYLSP', just stack YYLOC the
1560 same way you stack YYVAL.
1561 * src/reader.c (read_declarations): Use warns.
1562 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1563 (copy_action, case '@'): Likewise.
1564 Use a standard error message, to save useless work from
1567 2000-03-17 Akim Demaille <akim@epita.fr>
1569 * src/bison.s1: Formatting and cosmetics changes.
1570 * src/reader.c: Likewise.
1571 Update the Copyright notice.
1573 2000-03-17 Akim Demaille <akim@epita.fr>
1575 * src/bison.s1 (#line): All set to `#line' only, since the
1576 Makefile now handles them.
1578 2000-03-16 Akim Demaille <akim@epita.fr>
1580 * src/output.c (output_rule_data): Output the documentation of
1582 (Copyright notice): Update.
1585 2000-03-16 Akim Demaille <akim@epita.fr>
1587 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1588 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1589 One `#if YYDEBUG' remains, since it uses variables which are
1590 defined only if `YYDEBUG != 0'.
1592 2000-03-16 Akim Demaille <akim@epita.fr>
1594 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1595 and related variables so that the similarities are highlighted.
1597 2000-03-16 Akim Demaille <akim@epita.fr>
1599 * src/bison.s1: Properly indent CPP directives.
1601 2000-03-16 Akim Demaille <akim@epita.fr>
1603 * src/bison.s1: Properly indent the `alloca' CPP section.
1605 2000-03-16 Akim Demaille <akim@epita.fr>
1607 Do not hard code values of directories in `configure.in'.
1608 Update the `configure' tool chain.
1610 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1612 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1613 (AC_OUTPUT): Add m4/Makefile.
1614 Bump to bison 1.28a, 1.29 has never been released.
1615 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1616 handled via src/Makefile.am.
1617 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1618 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1620 * Makefile.am (SUBDIRS): Add m4.
1621 (ACLOCAL_AM_FLAGS): New variable.
1622 (AUTOMAKE_OPTIONS): Add check-news.
1623 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1624 the proper line number and file name.
1625 (DEFS): Propagate the location of bison library files and of the
1627 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1629 * acinclude.m4: Remove, replaced by the directory m4.
1630 * m4/Makefile.am (EXTRA_DIST): New variable.
1631 * m4/gettext.m4: New file, from the fileutils.
1632 * m4/lcmessage.m4: Likewise
1633 * m4/progtest.m4: Likewise.
1634 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1636 2000-03-10 Akim Demaille <akim@epita.fr>
1639 Formatting changes of various comments.
1640 Respect the GNU coding standards at various places.
1641 Don't use `_()' when no translation is needed.
1643 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1646 OS/2 honors TMPDIR environment variable.
1648 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1650 * doc/bison.texinfo: Tweaked spelling and grammar.
1652 Removed reference to price of printed copy.
1653 Mention BISON_SIMPLE and BISON_HAIRY.
1655 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1657 * configure.in, NEWS:
1658 Bison 1.29 released.
1660 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1662 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1663 Added reference card.
1665 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1667 * po/ru.po: Added Russian translation.
1669 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1671 * configure.in: Added Russian translation.
1673 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1675 * configure.in, NEWS, README:
1676 Released version 1.28.
1678 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1681 Squashed redefinition warning on some systems.
1683 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1684 Have configure build version string instead of relying on ANSI string
1687 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1689 * po/POTFILES.in: Got rid of version.c.
1691 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1693 * acconfig.h, configure.in:
1694 Have configure build version string instead of relying on ANSI string
1697 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1700 Dropped mention of `+' for long-named options.
1702 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1704 * src/files.c: Added <unistd.h> for unlink().
1706 * src/Makefile.am, src/system.h:
1709 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1711 * README: Added a FAQ list.
1713 * configure.in, acconfig.h:
1716 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1718 * doc/FAQ, doc/Makefile.am:
1721 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1723 * src/alloc.h, src/symtab.h, src/version.c:
1724 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1726 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1728 * src/.cvsignore, src/Makefile.am:
1729 Reorganized: sources in `src', documentation in `doc'.
1731 * src/lex.c (literalchar):
1732 fixed the code for escaping double quotes (thanks
1735 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1737 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1738 Adjusted paths to reflect directory reorganization.
1740 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1742 * doc/.cvsignore, doc/Makefile.am:
1743 Reorganized: sources in `src', documentation in `doc'.
1745 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1748 Updated AC_INIT file to reflect directory reorganization.
1750 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1751 Reorganized: sources in `src', documentation in `doc'.
1753 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1756 Don't declare calloc() and realloc() if not necessary.
1758 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1760 * configure.in, acconfig.h, acinclude.m4:
1761 Don't declare calloc() and realloc() if not necessary.
1763 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1765 * po/.cvsignore: Added i18n support.
1767 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1769 * acconfig.h, configure.in, Makefile.am:
1772 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1774 * src/bison.s1: Fixed #line numbers.
1776 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1778 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1779 Added PO files from Translation Project.
1781 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1784 Added support for non-ANSI compilers (ansi2knr).
1786 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1788 * configure.in: Bumped version number to 1.27.
1791 Added `bison.simple' to list of files removed by `make distclean'.
1793 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1795 * src/files.c, src/files.h:
1796 Defined locations of parser files in config.h instead of Makefile.
1798 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1800 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1801 Defined locations of parser files in config.h instead of Makefile.
1803 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1806 Removed inappropriate use of $< macro.
1808 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1810 * po/Makefile.in.in, po/POTFILES.in:
1811 Add `po' directory skeleton.
1813 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1815 * README: Document help-bison list.
1817 * configure.in: Add check for mkstemp().
1819 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1821 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1822 Hush a few compiler warnings.
1825 Add tryclose(), which verifies that fclose was successful.
1826 Hush a couple of compiler warnings.
1828 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1830 * Makefile.am, OChangeLog:
1831 ChangeLog is now automatically generated. Include the old version as
1834 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1836 * 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:
1839 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1841 * doc/bison.texinfo: Fix formatting glitch.
1843 * doc/bison.texinfo: Update FSF address.
1845 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1847 * acconfig.h: Update FSF address.
1849 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1852 Don't define PACKAGE here, since config.h defines it.
1854 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1856 * src/reader.c: Update copyright date.
1859 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1860 favor of output directly to stderr (avoids buffer overruns).
1862 * src/reader.c: Some checks for premature EOF.
1864 * 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:
1865 Use prototypes if the compiler understands them.
1867 * src/files.c: Honor TMPDIR on Unix hosts.
1868 Use prototypes if the compiler understands them.
1871 Fix a couple of buffer overrun bugs.
1872 Use prototypes if the compiler understands them.
1874 * src/system.h: Include unistd.h and ctype.h.
1875 Use #ifdef instead of #if for NLS symbols.
1877 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1879 * doc/bison.texinfo:
1880 Delete comment "consider using @set for edition number, etc..." since
1881 we now are doing so.
1883 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1886 Use prototypes if the compiler understands them.
1888 * NEWS: Document 1.26 highlights.
1890 * Makefile.am: Require Automake 1.3 or later.
1893 Use prototypes if the compiler understands them.
1895 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1898 Use VERSION symbol from automake for version number.
1900 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1902 * acconfig.h, configure.in, version.cin:
1903 Use VERSION symbol from automake for version number.
1905 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1908 Distribute original version of simple parser (bison.s1), not built
1909 version (bison.simple).
1911 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1913 * doc/bison.texinfo: Add info dir entry.
1915 * doc/bison.texinfo:
1916 Let automake put version number into documentation.
1918 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1920 * src/bison.cld, src/build.com, src/vmshlp.mar:
1921 Add non-RCS files from /gd/gnu/bison.
1923 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1926 Document the BISON_HAIRY and BISON_SIMPLE variables.
1928 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1930 * src/version.c: Build version.c automatically.
1933 Fix token numbering (used to start at 258, not 257).
1935 * src/system.h: Include config.h.
1937 * src/getargs.c: Update bug report address.
1939 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1940 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1942 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1945 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1947 * configure.in, version.cin:
1948 Build version.c automatically.
1950 * AUTHORS: Add AUTHORS file.
1952 * README: Update bug report address.
1955 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1957 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1960 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1962 * doc/bison.texinfo: Clean up some formatting.
1964 1998-05-05 Richard Stallman <rms@gnu.org>
1966 * doc/bison.texinfo:
1967 Explain better why to make a pure parser.
1969 1998-01-05 Richard Stallman <rms@gnu.org>
1971 * src/files.c (openfiles):
1972 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1973 find a temporary directory, if possible. Do not unlink files while
1976 1997-08-25 Richard Stallman <rms@gnu.org>
1978 * src/reader.c (stack_offset;):
1979 Change some warni to warns.
1981 * src/lex.c (literalchar): Use warns, not warni.
1983 1997-06-28 Richard Stallman <rms@gnu.org>
1985 * src/bison.s1: Add a Bison version comment.
1987 * src/main.c (fatal, warn, berror):
1990 1997-06-28 Richard Stallman <rms@gnu.org>
1992 * Makefile.in (bison_version): New variable.
1993 (dist): Use that variable.
1994 (bison.s1): Substitute the Bison version into bison.simple.
1996 * bison.simple: Add a Bison version comment.
1998 1997-06-18 Richard Stallman <rms@gnu.org>
2000 * src/main.c (fatal, warn, berror):
2001 Make error messages standard.
2002 (toomany): Improve error message text.
2004 * 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:
2005 new.h renamed to alloc.h.
2007 1997-06-18 Richard Stallman <rms@gnu.org>
2009 * Makefile.in: new.h renamed to alloc.h.
2011 1997-05-24 Richard Stallman <rms@gnu.org>
2013 * src/lex.c (literalchar):
2014 Fix the code for escaping \, " and '.
2016 (lex): Avoid trouble when there are many chars
2017 to discard in a char literal with just several chars in it.
2019 1997-05-17 Richard Stallman <rms@gnu.org>
2022 Use malloc, if using alloca is troublesome.
2023 (YYSTACK_USE_ALLOCA): New flag macro.
2024 Define it for some systems and compilers.
2025 (YYSTACK_ALLOC): New macro.
2026 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2027 If it was malloc'd, free it.
2029 1997-05-17 Richard Stallman <rms@gnu.org>
2032 Use malloc, if using alloca is troublesome.
2033 (YYSTACK_USE_ALLOCA): New flag macro.
2034 Define it for some systems and compilers.
2035 (YYSTACK_ALLOC): New macro.
2036 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2037 If it was malloc'd, free it.
2039 1997-04-23 Richard Stallman <rms@gnu.org>
2042 (alloca) [__hpux]: Always define as __builtin_alloca.
2044 1997-04-23 Richard Stallman <rms@gnu.org>
2047 (alloca) [__hpux]: Always define as __builtin_alloca.
2049 1997-04-22 Richard Stallman <rms@gnu.org>
2052 [__hpux]: Include alloca.h (right for HPUX 10)
2053 instead of declaring alloca (right for HPUX 9).
2055 * src/bison.s1 (__yy_memcpy):
2056 Declare arg `count' as unsigned int.
2057 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2059 1997-04-22 Richard Stallman <rms@gnu.org>
2062 [__hpux]: Include alloca.h (right for HPUX 10)
2063 instead of declaring alloca (right for HPUX 9).
2065 * bison.simple (__yy_memcpy):
2066 Declare arg `count' as unsigned int.
2067 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2069 1997-01-03 Richard Stallman <rms@gnu.org>
2071 * src/allocate.c: [__STDC__ or _MSC_VER]:
2072 Declare calloc and realloc to return void *.
2074 1997-01-02 Richard Stallman <rms@gnu.org>
2077 [_MSC_VER]: Include stdlib.h and process.h.
2078 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2080 * src/main.c (main): Return FAILURE as a value.
2081 (printable_version): Declare arg as int, not char.
2083 1997-01-02 Richard Stallman <rms@gnu.org>
2085 * Makefile.in (dist):
2086 Explicitly check for symlinks, and copy them.
2088 1996-12-19 Richard Stallman <rms@gnu.org>
2091 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2093 1996-12-18 Paul Eggert <eggert@gnu.org>
2095 * src/bison.s1 (yyparse):
2096 If __GNUC__ and YYPARSE_PARAM are both defined,
2097 declare yyparse to have a void * argument.
2099 1996-12-18 Paul Eggert <eggert@gnu.org>
2101 * bison.simple (yyparse):
2102 If __GNUC__ and YYPARSE_PARAM are both defined,
2103 declare yyparse to have a void * argument.
2105 1996-12-17 Richard Stallman <rms@gnu.org>
2107 * src/reduce.c (nbits): Add some casts.
2109 1996-08-12 Richard Stallman <rms@gnu.org>
2111 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2113 1996-08-12 Richard Stallman <rms@gnu.org>
2115 * bison.simple: Test _MSDOS as well as _MSDOS_.
2117 1996-07-31 Richard Stallman <rms@gnu.org>
2120 [__sun && __i386]: Include alloca.h.
2122 1996-07-31 Richard Stallman <rms@gnu.org>
2125 [__sun && __i386]: Include alloca.h.
2127 1996-07-30 Richard Stallman <rms@gnu.org>
2129 * src/bison.s1: Comment change.
2131 * src/bison.s1: Test _MSDOS_, not MSDOS.
2133 1996-07-30 Richard Stallman <rms@gnu.org>
2135 * bison.simple: Comment change.
2137 * bison.simple: Test _MSDOS_, not MSDOS.
2139 1996-06-01 Richard Stallman <rms@gnu.org>
2141 * 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:
2142 Insert `_' macro around many string constants.
2145 Insert `_' macro around many string constants.
2147 (main): Call setlocale, bindtextdomain and textdomain.
2149 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2150 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2151 [ENABLE_NLS]: Include libintl.h.
2152 [ENABLE_NLS] (gettext): Define.
2153 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2154 (N_, PACKAGE, LOCALEDIR): New macros.
2156 1996-06-01 Richard Stallman <rms@gnu.org>
2158 * POTFILES.in: New file.
2160 * Makefile.in (allocate.o):
2161 Define target explicitly.
2163 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2164 (LDFLAGS): Set to @LDFLAGS@.
2165 (configure): Run autoconf only if preceding `cd' succeeds.
2166 (bison.s1): Redirect output to temporary file then move the
2167 temporary to the target, rather than redirecting directly to bison.s1.
2168 (clean): Remove config.status and config.log.
2169 (distclean): Don't remove config.status here.
2171 1996-05-12 Richard Stallman <rms@gnu.org>
2174 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2176 1996-05-12 Richard Stallman <rms@gnu.org>
2179 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2181 1996-05-11 Richard Stallman <rms@gnu.org>
2183 * src/bison.s1 (__yy_memcpy):
2184 Really reorder the args, as was supposedly done on Feb 14 1995.
2185 (yyparse): Calls changed accordingly.
2187 1996-05-11 Richard Stallman <rms@gnu.org>
2189 * Makefile.in (dist): Don't use $(srcdir).
2191 * bison.simple (__yy_memcpy):
2192 Really reorder the args, as was supposedly done on Feb 14 1995.
2193 (yyparse): Calls changed accordingly.
2195 1996-01-27 Richard Stallman <rms@gnu.org>
2197 * src/output.c (output_rule_data):
2198 Test YYERROR_VERBOSE in the conditional
2199 around the definition of ttyname.
2201 1995-12-29 Richard Stallman <rms@gnu.org>
2204 Fix line numbers in #line commands.
2206 1995-12-29 Richard Stallman <rms@gnu.org>
2209 Fix line numbers in #line commands.
2211 1995-12-27 Richard Stallman <rms@gnu.org>
2213 * src/bison.s1 (YYPARSE_PARAM_DECL):
2214 In C++, make it always null.
2215 (YYPARSE_PARAM_ARG): New macro.
2216 (yyparse): Use YYPARSE_PARAM_ARG.
2218 1995-12-27 Richard Stallman <rms@gnu.org>
2220 * bison.simple (YYPARSE_PARAM_DECL):
2221 In C++, make it always null.
2222 (YYPARSE_PARAM_ARG): New macro.
2223 (yyparse): Use YYPARSE_PARAM_ARG.
2225 1995-11-29 Richard Stallman <rms@gnu.org>
2227 * doc/bison.texinfo:
2228 Describe literal string tokens, %raw, %no_lines, %token_table.
2230 1995-11-29 Daniel Hagerty <hag@gnu.org>
2232 * doc/bison.texinfo: Fixed update date
2234 1995-10-16 Richard Stallman <rms@gnu.org>
2236 * src/version.c: Version 1.25.
2238 1995-10-16 Richard Stallman <rms@gnu.org>
2240 * NEWS: *** empty log message ***
2242 1995-10-16 Richard Stallman <rms@gnu.org>
2244 * doc/bison.1, doc/bison.rnh:
2247 1995-10-15 Richard Stallman <rms@gnu.org>
2249 * src/vmsgetargs.c, src/getargs.c:
2250 Added -n, -k, and -raw switches.
2251 (noparserflag, toknumflag, rawtoknumflag): New variables.
2253 * src/symtab.h (SALIAS):
2254 New #define for adding aliases to %token.
2255 (struct bucket): Added `alias' field.
2257 * src/reduce.c (reduce_grammar):
2258 Revise error message.
2259 (print_notices): Remove final `.' from error message.
2261 * src/reader.c (reader_output_yylsp):
2263 (readgram): Use `#if 0' around code that accepted %command
2264 inside grammar rules: The documentation doesn't allow it,
2265 and it will fail since the %command processors scan for the next %.
2266 (parse_token_decl): Extended the %token
2267 declaration to allow a multi-character symbol as an alias.
2268 (parse_thong_decl): New function.
2269 (read_declarations): Added %thong declarations.
2270 (read_declarations): Handle NOOP to deal with allowing
2271 % declarations as another means to specify the flags.
2272 (readgram): Allow %prec prior to semantics embedded in a rule.
2273 (skip_to_char, read_declarations, copy_definition)
2274 (parse_token_decl, parse_start_decl, parse_type_decl)
2275 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2276 (get_type_name, copy_guard, copy_action, readgram)
2277 (get_type, packsymbols): Revised most error messages.
2278 Changed `fatal' to `warnxxx' to avoid aborting for error.
2279 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2280 (read_declarations): Improve the error message for
2281 an invalid character. Do not abort.
2282 (read_declarations, copy_guard, copy_action): Use
2283 printable_version to avoid unprintable characters in printed output.
2284 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2285 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2286 Allow the type of a non-terminal can be given
2287 more than once, as long as all specifications give the same type.
2290 (output_headers, output_trailers, output, output_gram)
2291 (output_rule_data): Implement noparserflag variable.
2292 Implement toknumflag variable.
2293 (output): Call reader_output_yylsp to output LTYPESTR.
2295 * src/main.c (main):
2296 If reader sees an error, don't process the grammar.
2297 (fatals): Updated to not use VARARGS1.
2298 (printable_version, int_to_string, warn, warni, warns, warnss)
2299 (warnsss): New error reporting functions. Avoid abort for error.
2302 Added THONG and NOOP for alias processing.
2303 Added SETOPT for the new code that allows setting options with %flags.
2306 Include getopt.h. Add some extern decls.
2307 (safegetc): New function to deal with EOF gracefully.
2308 (literalchar); new function to deal with reading \ escapes.
2309 (lex): Use literalchar.
2310 (lex): Implemented "..." tokens.
2311 (literalchar, lex, parse_percent_token): Made tokenbuffer
2312 always contain the token. This includes growing the token
2313 buffer while reading an integer.
2314 (parse_percent_token): Replaced if-else statement with percent_table.
2315 (parse_percent_token): Added % declarations as another
2316 way to specify the flags -n, -l, and -r. Also added hooks for
2317 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2318 major changes to files.c.
2319 (lex) Retain in the incoming stream a character following
2321 (skip_white_space, lex): Revised most error messages
2322 and changed fatal to warn to avoid aborting.
2323 (percent_table): Added %thong declarations.
2325 * src/gram.h: Comment changes.
2327 * src/files.c (openfiles, open_extra_files, done):
2329 and actfile file. Handle noparserflag. Both for -n switch.
2331 * src/conflicts.c (resolve_sr_conflict):
2332 Remove use of alloca.
2334 1995-06-01 Jim Meyering <meyering@gnu.org>
2336 * doc/bison.texinfo: *** empty log message ***
2338 1995-05-06 Richard Stallman <rms@gnu.org>
2340 * src/bison.s1: Comment change.
2342 1995-05-06 Richard Stallman <rms@gnu.org>
2344 * bison.simple: Comment change.
2346 1995-05-03 Richard Stallman <rms@gnu.org>
2348 * src/version.c: Version now 1.24.
2350 * src/bison.s1: Change distribution terms.
2352 * src/version.c: Version now 1.23.
2354 1995-05-03 Richard Stallman <rms@gnu.org>
2356 * doc/bison.texinfo:
2357 Rewrite "Conditions for Using Bison".
2358 Update version to 1.24.
2360 1995-05-03 Richard Stallman <rms@gnu.org>
2362 * bison.simple: Change distribution terms.
2364 1995-02-23 Richard Stallman <rms@gnu.org>
2366 * src/files.c: Test __VMS_POSIX as well as VMS.
2368 1995-02-14 Jim Meyering <meyering@gnu.org>
2370 * src/bison.s1 (__yy_memcpy):
2371 Renamed from __yy_bcopy to avoid
2372 confusion. Reverse FROM and TO arguments to be consistent with
2375 1995-02-14 Jim Meyering <meyering@gnu.org>
2377 * bison.simple (__yy_memcpy):
2378 Renamed from __yy_bcopy to avoid
2379 confusion. Reverse FROM and TO arguments to be consistent with
2382 1994-11-10 David J. MacKenzie <djm@gnu.org>
2388 * Makefile.in (DISTFILES): Include NEWS.
2390 * Makefile.in (DISTFILES):
2391 Include install-sh, not install.sh.
2393 * configure.in: Update to Autoconf v2 macro names.
2395 1994-10-05 David J. MacKenzie <djm@gnu.org>
2397 * Makefile.in: fix typo
2399 * Makefile.in (prefix, exec_prefix):
2400 Let configure set them.
2402 1994-09-28 David J. MacKenzie <djm@gnu.org>
2404 * Makefile.in: Set datadir to $(prefix)/share.
2406 1994-09-15 Richard Stallman <rms@gnu.org>
2409 Update copyright notice and GPL version.
2411 1994-09-15 Richard Stallman <rms@gnu.org>
2414 Update copyright notice and GPL version.
2416 1994-07-12 Richard Stallman <rms@gnu.org>
2418 * src/reduce.c, src/reader.c:
2421 1994-05-05 David J. MacKenzie <djm@gnu.org>
2423 * Makefile.in: entered into RCS
2425 1994-03-26 Richard Stallman <rms@gnu.org>
2427 * src/bison.s1: entered into RCS
2429 1994-03-26 Richard Stallman <rms@gnu.org>
2431 * bison.simple: entered into RCS
2433 1994-03-25 Richard Stallman <rms@gnu.org>
2435 * src/main.c: entered into RCS
2437 1994-03-24 Richard Stallman <rms@gnu.org>
2439 * src/conflicts.c: entered into RCS
2441 1994-01-02 Richard Stallman <rms@gnu.org>
2443 * Makefile.in: *** empty log message ***
2445 1993-11-21 Richard Stallman <rms@gnu.org>
2447 * src/bison.s1: *** empty log message ***
2449 1993-11-21 Richard Stallman <rms@gnu.org>
2451 * doc/bison.texinfo: entered into RCS
2453 * doc/bison.texinfo: *** empty log message ***
2455 1993-11-21 Richard Stallman <rms@gnu.org>
2457 * bison.simple: *** empty log message ***
2459 1993-10-25 David J. MacKenzie <djm@gnu.org>
2461 * doc/bison.texinfo: *** empty log message ***
2463 1993-10-19 Richard Stallman <rms@gnu.org>
2465 * src/bison.s1: *** empty log message ***
2467 1993-10-19 Richard Stallman <rms@gnu.org>
2469 * bison.simple: *** empty log message ***
2471 1993-10-14 Richard Stallman <rms@gnu.org>
2473 * src/bison.s1: *** empty log message ***
2475 1993-10-14 Richard Stallman <rms@gnu.org>
2477 * bison.simple: *** empty log message ***
2479 1993-09-14 David J. MacKenzie <djm@gnu.org>
2481 * doc/bison.texinfo: *** empty log message ***
2483 1993-09-13 Noah Friedman <friedman@gnu.org>
2485 * Makefile.in: *** empty log message ***
2487 1993-09-10 Richard Stallman <rms@gnu.org>
2489 * src/conflicts.c: *** empty log message ***
2491 * src/system.h: entered into RCS
2493 1993-09-10 Richard Stallman <rms@gnu.org>
2495 * doc/bison.1: entered into RCS
2497 1993-09-06 Noah Friedman <friedman@gnu.org>
2499 * src/version.c: entered into RCS
2501 1993-09-06 Noah Friedman <friedman@gnu.org>
2503 * Makefile.in: *** empty log message ***
2505 1993-07-30 David J. MacKenzie <djm@gnu.org>
2507 * Makefile.in: *** empty log message ***
2509 1993-07-24 Richard Stallman <rms@gnu.org>
2511 * src/bison.s1: *** empty log message ***
2513 1993-07-24 Richard Stallman <rms@gnu.org>
2515 * bison.simple: *** empty log message ***
2517 1993-07-08 David J. MacKenzie <djm@gnu.org>
2519 * Makefile.in: *** empty log message ***
2521 1993-07-04 Richard Stallman <rms@gnu.org>
2523 * src/bison.s1: *** empty log message ***
2525 1993-07-04 Richard Stallman <rms@gnu.org>
2527 * bison.simple: *** empty log message ***
2529 1993-06-26 David J. MacKenzie <djm@gnu.org>
2531 * src/getargs.c: entered into RCS
2533 1993-06-26 David J. MacKenzie <djm@gnu.org>
2535 * doc/bison.texinfo: *** empty log message ***
2537 * doc/bison.1: New file.
2539 1993-06-25 Richard Stallman <rms@gnu.org>
2541 * src/getargs.c: New file.
2543 1993-06-16 Richard Stallman <rms@gnu.org>
2545 * src/bison.s1: *** empty log message ***
2547 1993-06-16 Richard Stallman <rms@gnu.org>
2549 * bison.simple: *** empty log message ***
2551 1993-06-03 Richard Stallman <rms@gnu.org>
2553 * src/bison.s1: New file.
2555 1993-06-03 Richard Stallman <rms@gnu.org>
2557 * doc/bison.texinfo: *** empty log message ***
2559 1993-06-03 Richard Stallman <rms@gnu.org>
2561 * bison.simple: New file.
2563 1993-05-19 Richard Stallman <rms@gnu.org>
2565 * doc/bison.texinfo: New file.
2567 1993-05-07 Noah Friedman <friedman@gnu.org>
2569 * Makefile.in: *** empty log message ***
2571 1993-04-28 Noah Friedman <friedman@gnu.org>
2573 * src/reader.c: *** empty log message ***
2575 1993-04-23 Noah Friedman <friedman@gnu.org>
2577 * src/alloc.h: entered into RCS
2579 1993-04-20 David J. MacKenzie <djm@gnu.org>
2581 * src/version.c: *** empty log message ***
2583 * src/files.c, src/allocate.c:
2586 * src/reader.c: *** empty log message ***
2588 * src/lex.c: entered into RCS
2590 * src/conflicts.c: New file.
2592 * src/symtab.c: entered into RCS
2594 * src/alloc.h: New file.
2596 * src/LR0.c: entered into RCS
2598 1993-04-18 Noah Friedman <friedman@gnu.org>
2600 * src/reader.c: New file.
2602 * src/version.c: *** empty log message ***
2604 1993-04-18 Noah Friedman <friedman@gnu.org>
2606 * Makefile.in: *** empty log message ***
2608 1993-04-17 Noah Friedman <friedman@gnu.org>
2610 * Makefile.in: *** empty log message ***
2612 1993-04-15 Richard Stallman <rms@gnu.org>
2614 * src/main.c, src/files.c:
2617 1993-04-15 Noah Friedman <friedman@gnu.org>
2619 * configure.in: entered into RCS
2621 * configure.in: *** empty log message ***
2623 * configure.in: New file.
2625 1993-04-14 Richard Stallman <rms@gnu.org>
2627 * Makefile.in: New file.
2629 1993-04-13 Richard Stallman <rms@gnu.org>
2631 * src/version.c: New file.
2633 1993-03-25 Richard Stallman <rms@gnu.org>
2635 * src/output.c: entered into RCS
2637 1992-09-25 Richard Stallman <rms@gnu.org>
2639 * configure.bat: entered into RCS
2641 1992-06-22 Richard Stallman <rms@gnu.org>
2643 * src/vmsgetargs.c: entered into RCS
2645 1992-06-22 Richard Stallman <rms@gnu.org>
2647 * doc/bison.rnh: entered into RCS
2649 1992-04-20 David J. MacKenzie <djm@gnu.org>
2651 * README: entered into RCS
2653 1992-01-22 Richard Stallman <rms@gnu.org>
2655 * src/machine.h: entered into RCS
2657 1991-12-21 Richard Stallman <rms@gnu.org>
2659 * src/lalr.c, src/closure.c:
2662 1991-12-20 Richard Stallman <rms@gnu.org>
2664 * src/state.h: entered into RCS
2666 1991-12-18 Richard Stallman <rms@gnu.org>
2668 * src/print.c, src/nullable.c, src/derives.c:
2671 1991-11-03 David J. MacKenzie <djm@gnu.org>
2673 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2676 1988-09-09 Richard Stallman <rms@gnu.org>
2678 * src/bison.hairy: entered into RCS
2680 1987-12-16 Richard Stallman <rms@gnu.org>
2682 * REFERENCES: entered into RCS