1 2001-09-20 Marc Autret <autret_m@epita.fr>
3 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
6 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
8 * src/bison.simple: s/%%filename/%%skeleton.
9 * src/muscle_tab.c (getargs.h): Include it.
10 (muscle_init): Insert new muscle skeleton.
12 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
14 * src/output.c (output_parser): Delete unused variable actions_dumped.
16 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
18 * src/output.c (output): Delete call to reader_output_yylsp.
19 * src/reader.c (reader): Likewise.
20 * src/reader.h: Delete declaration of reader_output_yylsp.
22 2001-09-02 Marc Autret <autret_m@epita.fr>
24 * src/reader.c: Include muscle_tab.h.
25 (parse_union_decl): Update.
26 (parse_macro_decl): Rename parse_muscle_decl.
27 Update to use renamed functions and variable.
28 (read_declarations, copy_action, read_additionnal_code, : Updated
29 with correct variables and functions names.
30 (packsymbols, reader): Likewise.
32 * src/reader.h (muscle_obstack): Extern declaration update.
34 * src/output.c: Include muscle_tab.h
35 In all functions using macro_insert, change by using muscle_insert ().
36 (macro_obstack): Rename muscle_obstack.
37 Echo modifications in the whole file.
38 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
39 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
40 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
42 * src/muscle_tab.h: Update double inclusion macros.
43 (macro_entry_s): Rename muscle_entry_s.
46 * src/muscle_tab.c: Include muscle_tab.h.
47 Rename macro_tabble to muscle_table.
48 (mhash1, mhash2, mcmp): Use muscle_entry.
49 (macro_init): Rename muscle_init. Update.
50 (macro_insert): Rename muscle_insert. Update.
51 (macro_find): Rename muscle_find. Update.
53 * src/main.c: Include muscle_tab.h.
54 (main): Call muscle_init ().
55 * src/Makefile.am (bison_SOURCES): Echo modifications.
57 2001-09-02 Marc Autret <autret_m@epita.fr>
59 Now the files macro_tab.[ch] are named muscle_tab.[ch].
61 * src/muscle_tab.c, src/muscle_tab.h: Add files.
63 2001-09-02 Marc Autret <autret_m@epita.fr>
65 * src/macrotab.c, src/macrotab.h: Remove.
67 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
69 * src/reader.c (copy_guard): Use muscle to specify the `#line'
72 2001-09-01 Marc Autret <autret_m@epita.fr>
74 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
75 to an explicit value to activate the feature. We do it here.
77 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
79 * src/output.c (prepare): Delete the `filename' muscule insertion.
80 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
81 (parse_union_decl): Likewise.
82 * src/macrotab.c (macro_init): Initialize filename by infile.
84 2001-08-31 Marc Autret <autret_m@epita.fr>
86 * src/bison.simple (YYLSP_NEEDED): New definition.
87 * src/output.c (prepare): Add macro insertion of `locations_flag'
89 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
91 * src/output.c (prepare): Delete insertion of previous muscles,
92 and insert the `prefix' muscles.
93 * src/macrotab.c (macro_init): Likewise.
94 (macro_init): Initialization prefix directive by `yy'.
95 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
96 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
97 yylval, yydebug, yyerror, yynerrs and yyparse.
98 New directive `#define' to substitute yydebug, ... with option
101 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
103 * src/main.c (main): Standardize.
104 * src/output.c (output_table_data, output_parser): Likewise.
105 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
107 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
109 * src/reader.c (read_additionnal_code): Rename %%user_code to
111 * src/output.c (output): Rename %%declarations to %%prologue.
112 * src/bison.simple: Echo modifications.
114 2001-08-31 Marc Autret <autret_m@epita.fr>
116 * src/reader.c (readgram): CleanUp.
117 (output_token_defines): Likewise.
118 (packsymbols): Likewise.
120 * src/output.c (output): CPP-out useless code.
122 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
124 * src/reader.c (reader): Delete obsolete call to function
125 output_trailers and output_headers.
126 * src/output.h: Remove obsolete functions prototypes of output_headers
129 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
131 * src/main.c: Include macrotab.h.
132 * src/macrotab.h (macro_entry_s): Constify fields.
133 Adjust functions prototypes.
134 * src/macrotab.c (macro_insert): Constify key and value.
135 (macro_find): Constify key.
136 (macro_insert): Include 'xalloc.h'
137 (macro_insert): Use XMALLOC.
138 (macro_find): Constify return value.
139 * src/output.c (output_table_data): Rename table to table_data.
140 (output_parser): Constify macro_key, macro_value.
142 2001-08-30 Marc Autret <autret_m@epita.fr>
144 * src/reader.c (parse_skel_decl): New.
145 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
146 * src/lex.h (token_t): New token `tok_skel'.
147 * src/lex.c (percent_table): Add skeleton option entry.
150 2001-08-29 Marc Autret <autret_m@epita.fr>
152 * src/bison.simple: Add %%user_code directive at the end.
153 * src/reader.c (read_additionnal_code): New.
155 * src/output.c (output_program): Remove.
158 2001-08-28 Marc Autret <autret_m@epita.fr>
160 * src/output.c (output_actions): Clean up.
161 (output_gram): CPP-out useless code.
162 * src/reader.c (reader): Clean up, CPP-out useless code.
164 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
166 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
168 * src/bison.simple: Add `%%definitions'.
170 2001-08-28 Marc Autret <autret_m@epita.fr>
172 * config/depcomp: New file.
174 2001-08-27 Paul Eggert <eggert@twinsun.com>
176 * src/bison.simple (yyparse): Don't take the address of an
177 item before the start of an array, as that doesn't conform to
180 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
182 * src/output.c (output): Remove the initialization of the macro
183 obstack. It was done too late here.
185 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
187 (reader): Initialize the macro obstack here, since we need it to grow
188 '%define' directives.
190 * src/reader.h: Declare the macro obstack as extern.
192 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
194 * src/output.c (output_parser): Fix. Store single '%' characters in
195 the output obstack instead of throwing them away.
197 2001-08-27 Akim Demaille <akim@epita.fr>
199 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
201 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
203 * lib/Makefile.am: Adjust.
205 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
207 * src/bison.simple: Update and add '%%' directives.
209 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
211 * src/reader.c (reader): Remove calls to 'output_headers' and
212 'output_trailers'. Remove some C output.
213 (readgram): Disable a piece of code that was writing a default
214 definition for 'YYSTYPE'.
215 (reader_output_yylsp): Remove.
216 (packsymbols): Output token defintions to a macro.
217 (copy_definition): Disable C output.
219 * src/reader.c (parse_macro_decl): New function used to parse macro
221 (copy_string2): Put the body of copy_string into this new function.
222 Add a parameter to let the caller choose whether he wants to copy the
223 string delimiters or not.
224 (copy_string): Be a simple call to copy_string2 with the last argument
226 (read_declarations): Add case for macro definition.
227 (copy_identifier): New.
228 (parse_macro_decl): Read macro identifiers using copy_identifier
231 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
233 * src/output.c (prepare): Add prefixed names.
234 (output_parser): Output semantic actions.
235 (output_parser): Fix bug on '%%line' directives.
237 * src/output.c (output_headers): Remove. The C code printed by this
238 function should now be in the skeletons.
239 (output_trailers): Remove.
240 (output): Disable call to 'reader_output_yylsp'.
241 (output_rule_data): Do not output tables to the table obstack.
243 * src/output.c: Remove some C dedicated output.
244 Improve the use of macro and output obstacks.
245 (output_defines): Remove.
247 * src/output.c (output_token_translations): Associate 'translate'
248 table with a macro. No output to the table obstack.
249 (output_gram): Same for 'rhs' and 'prhs'.
250 (output_stos): Same for 'stos'.
251 (output_rule_data): Same for 'r1' and 'r2'.
252 (token_actions): Same for 'defact'.
253 (goto_actions): Same for 'defgoto'.
254 (output_base): Same for 'pact' and 'pgoto'.
255 (output_table): Same for 'table'.
256 (output_check): Same for 'check'.
258 * src/output.c (output_table_data): New function.
259 (output_short_table): Remove.
260 (output_short_or_char_table): Remove.
262 * src/output.c (output_parser): Replace most of the skeleton copy code
263 with something new. Skeletons are now processed character by character
264 rather than line by line, and Bison looks for '%%' macros. This is the
265 first step in making Bison's output process (a lot) more flexible.
266 (output_parser): Use the macro table.
268 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
270 * src/main.c (main): Initialize the macro table.
272 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
274 * src/lex.c (percent_table): Add tok_define.
275 * src/lex.h: Add tok_define.
277 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
279 * src/macrotab.c: New file.
280 * src/macrotab.h: New file.
281 * src/Makefile.am: Update.
283 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
285 * lib/hash.c: New file.
286 * lib/hash.h: New file.
287 * lib/Makefile.am: Update.
289 2001-08-15 Akim Demaille <akim@epita.fr>
293 2001-08-15 Marc Autret <autret_m@epita.fr>
295 * src/reader.c (readgram): Indent output macro YYSTYPE.
296 (packsymbols): Likewise.
297 (output_token_defines): Likewise.
298 * src/files.c: Standardize.
299 (compute_header_macro): New.
300 (defines_obstack_save): New. Use compute_header_macro.
301 (output_files): Update. Use defines_obstack_save.
303 2001-08-15 Akim Demaille <akim@epita.fr>
305 * doc/bison.texinfo (Table of Symbols): Document
308 2001-08-15 Akim Demaille <akim@epita.fr>
310 * missing: Update from CVS Automake.
311 * config/config.guess, config/config.sub, config/texinfo.tex:
314 2001-08-15 Akim Demaille <akim@epita.fr>
316 * Makefile.maint: Sync with CVS Autoconf.
318 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
320 * doc/bison.texinfo: Include GNU Free Documentation License from
322 * doc/fdl.texi: Add to package.
324 2001-08-14 Marc Autret <autret_m@epita.fr>
326 Turn on %{source,header}_extension features.
328 * src/lex.c (percent_table): Un-CPP out header_extension and
330 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
331 (compute_exts_from_src): Remove conditions. It restores priorities
334 2001-08-14 Marc Autret <autret_m@epita.fr>
336 * src/files.c (compute_base_names): Add extensions computing when
337 `--file-prefix' used.
338 Standardize function calls.
340 2001-08-13 Marc Autret <autret_m@epita.fr>
342 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
343 defining it (defined but null disables alloca).
345 2001-08-13 Marc Autret <autret_m@epita.fr>
347 * src/bison.simple (_yy_memcpy): CPP reformat.
349 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
351 * tests/atconfig.in (CPPFLAGS): Fix.
353 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
355 * doc/bison.texinfo: Include GNU General Public License from
357 * doc/gpl.texi: Add to package.
359 2001-08-10 Marc Autret <autret_m@epita.fr>
361 * src/print_graph.h: Fix.
362 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
364 2001-08-10 Akim Demaille <akim@epita.fr>
366 * src/system.h: Provide default declarations for stpcpy, strndup,
369 2001-08-10 Robert Anisko <anisko_r@epita.fr>
371 * doc/bison.texinfo (Locations): Update @$ stuff.
373 2001-08-09 Robert Anisko <anisko_r@epita.fr>
375 * src/bison.simple (YYLLOC_DEFAULT): Update.
378 2001-08-08 Marc Autret <autret_m@epita.fr>
380 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
381 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
382 Reported by Fabrice Bauzac.
384 2001-08-08 Marc Autret <autret_m@epita.fr>
386 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
387 * src/vcg.c (output_node): Fix.
388 * src/vcg.h: Cleanup.
389 * src/print_graph.c: Add comments.
390 (node_output_size): New global variable. Simplify the formatting of
391 the VCG graph output.
392 (print_actions): Unused code is now used. It notifies the final state
393 and no action states in the VCG graph. It also give the reduce actions.
394 The `shift and goto' edges are red and the `go to state' edges are
396 Get the current node name and node_obstack by argument.
397 (node_obstack): New variable.
398 (print_state): Manage node_obstack.
399 (print_core): Use node_obstack given by argument.
400 A node is not only computed here but in print_actions also.
401 (print_graph): CPP out useless code instead of commenting it.
403 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
405 * tests/atconfig.in (CPPFLAGS): Fix.
407 2001-08-07 Akim Demaille <akim@epita.fr>
409 * src/print_graph.c (quote): New.
410 (print_core): Use it.
412 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
414 * src/vcg.c (complain.h): Include it.
415 Unepitaize `return' invocations.
416 [NDEBUG] (main): Remove.
417 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
418 * src/files.c (open_files): Initialize graph_obstack.
419 * src/print_graph.c (print_actions): CPP out useless code.
420 (print_core): Don't output the last `\n' in labels.
422 * src/files.c (output_files): Output the VCG file.
423 * src/main.c (main): Invoke print_graph ();
425 2001-08-06 Marc Autret <autret_m@epita.fr>
427 Automaton VCG graph output.
428 Using option ``-g'' or long option ``--graph'', you can generate
429 a gram_filename.vcg file containing a VCG description of the LALR (1)
430 automaton of your grammar.
432 * src/main.c: Call to print_graph() function.
433 * src/getargs.h: Update.
434 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
435 (graph_flag): New flag.
437 (getargs): Add case `g'.
438 * src/files.c (graph_obstack): New obstack struct.
439 (open_files): Initialize new obstack.
440 (output_files): Saves graph_obstack if required.
441 * src/files.h (graph_obstack): New extern declaration.
442 * src/Makefile.am: Add new source files.
444 2001-08-06 Marc Autret <autret_m@epita.fr>
446 * src/print_graph.c, src/print_graph.h (graph): New.
447 * src/vcg.h: New file.
448 * src/vcg.c: New file, VCG graph handling.
450 2001-08-06 Marc Autret <autret_m@epita.fr>
452 Add of %source_extension and %header_extension which specify
453 the source or/and the header output file extension.
455 * src/files.c (compute_base_names): Remove initialisation of
456 src_extension and header_extension.
457 (compute_exts_from_gf): Update.
458 (compute_exts_from_src): Update.
459 (output_files): Update.
460 * src/reader.c (parse_header_extension_decl): New.
461 (parse_source_extension_decl): New.
462 (read_declarations): New case statements for the new tokens.
463 * src/lex.c (percent_table): Add entries for %source_extension
464 and %header_extension.
465 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
467 2001-08-06 Marc Autret <autret_m@epita.fr>
469 * configure.in: Bump to 1.28c.
470 * doc/bison.texinfo: Texinfo thingies.
472 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
474 * tests/atconfig.in (CPPFLAGS): Add.
475 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
477 2001-08-03 Akim Demaille <akim@epita.fr>
481 2001-08-03 Akim Demaille <akim@epita.fr>
483 * tests/Makefile.am (check-local): Ship testsuite.
484 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
487 2001-08-03 Akim Demaille <akim@epita.fr>
489 * configure.in: Try using -Wformat when compiling.
491 2001-08-03 Akim Demaille <akim@epita.fr>
493 * configure.in: Bump to 1.28b.
495 2001-08-03 Akim Demaille <akim@epita.fr>
497 * src/complain.c: Adjust strerror_r portability issues.
499 2001-08-03 Akim Demaille <akim@epita.fr>
503 2001-08-03 Akim Demaille <akim@epita.fr>
505 * src/getargs.c, src/getarg.h (skeleton)): Constify.
506 * src/lex.c (literalchar): Avoid name clashes on `buf'.
507 * src/getargs.c: Include complain.h.
508 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
509 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
511 2001-08-03 Akim Demaille <akim@epita.fr>
513 * src/reader.c (readgram): Display hidden chars in error messages.
515 2001-08-03 Akim Demaille <akim@epita.fr>
517 Update to gettext 0.10.39.
519 2001-08-03 Akim Demaille <akim@epita.fr>
523 2001-08-01 Marc Autret <autret_m@epita.fr>
525 * doc/bison.texinfo: Update.
526 * doc/bison.1 (mandoc): Update.
527 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
528 * src/files.c: Support output files extensions computing.
529 (src_extension): New static variable.
530 (header_extension): New static variable.
532 (get_extension_index): New function, gets the index of an extension
533 filename in a string.
534 (compute_exts_from_gf): New function, computes extensions from the
535 grammar file extension.
536 (compute_exts_from_src): New functions, computes extensions from the
537 C source file extension, file given by ``-o'' option.
538 (compute_base_names): Update.
539 (output_files): Update.
541 2001-08-01 Robert Anisko <anisko_r@epita.fr>
543 * doc/bison.texi: Document @$.
544 (Locations): New section.
546 2001-07-18 Akim Demaille <akim@epita.fr>
548 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
549 * config/prev-version.txt, config/move-if-change: New.
550 * Makefile.am: Adjust.
552 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
554 * src/bison.simple (yyparse): Suppress warning `comparaison
555 between signed and unsigned'.
557 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
559 * src/getargs.h (raw_flag): Remove.
560 * src/getargs.c: Die on `-r'/`--raw'.
561 * src/lex.c (parse_percent_token): Die on `%raw'.
562 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
563 * tests/calc.at: Suppress test with option `--raw'.
565 2001-07-14 Akim Demaille <akim@epita.fr>
568 * configure.in: Require Autoconf 2.50.
569 Update to gettext 0.10.38.
571 2001-03-16 Akim Demaille <akim@epita.fr>
573 * doc/bison.texinfo: ANSIfy the examples.
575 2001-03-16 Akim Demaille <akim@epita.fr>
577 * getargs.c (skeleton): New variable.
578 (longopts): --skeleton is a new option.
579 (shortopts, getargs): -S is a new option.
580 * getargs.h: Declare skeleton.
581 * output.c (output_parser): Use it.
583 2001-03-16 Akim Demaille <akim@epita.fr>
585 * m4/strerror_r.m4: New.
586 * m4/error.m4: Run AC_FUNC_STRERROR_R.
587 * lib/error.h, lib/error.c: Update.
589 2001-03-16 Akim Demaille <akim@epita.fr>
591 * src/getargs.c (longopts): Clean up.
593 2001-02-21 Akim Demaille <akim@epita.fr>
595 * src/reader.c (gensym): `gensym_count' is your own.
596 Use a static buf to create the symbol name, as token_buffer is no
599 2001-02-08 Akim Demaille <akim@epita.fr>
601 * src/conflicts.c (conflict_report): Be sure not to append to res
602 between two calls, which could happen if both first sprintf were
603 skipped, but not the first cp += strlen.
605 2001-02-08 Akim Demaille <akim@epita.fr>
607 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
608 New, from fileutils 4.0.37.
609 * configure.in: Require Autoconf 2.49c. I took some time before
610 making this decision. This is the only way out for portability
611 issues in Bison, it would mean way too much duplicate effort to
612 import in Bison features implemented in 2.49c since 2.13.
613 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
615 2001-02-02 Akim Demaille <akim@epita.fr>
617 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
618 * lib/xalloc.h, lib/xmalloc.c: Update.
620 2001-01-19 Akim Demaille <akim@epita.fr>
622 Get rid of the ad hoc handling of token_buffer in the scanner: use
625 * src/lex.c (token_obstack): New.
626 (init_lex): Initialize it. No longer call...
627 (grow_token_buffer): this. Remove it.
628 Adjust all the places which used it to use the obstack.
630 2001-01-19 Akim Demaille <akim@epita.fr>
632 * src/lex.h: Rename all the tokens:
633 s/\bENDFILE\b/tok_eof/g;
634 s/\bIDENTIFIER\b/tok_identifier/g;
636 Let them be enums, not #define, to ease debugging.
639 2001-01-18 Akim Demaille <akim@epita.fr>
641 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
642 * src/lex.c (maxtoken, grow_token_buffer): Static.
644 2001-01-18 Akim Demaille <akim@epita.fr>
646 Since we now use obstacks, more % directives can be enabled.
648 * src/lex.c (percent_table): Also accept `%yacc',
649 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
651 Handle the actions for `%semantic_parser' and `%pure_parser' here,
652 instead of returning a token.
653 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
654 * src/reader.c (read_declarations): Adjust.
655 * src/files.c (open_files): Don't call `compute_base_names', don't
656 compute `attrsfile' since they depend upon data which might be
657 *in* the input file now.
658 (output_files): Do it here.
659 * src/output.c (output_headers): Document the fact that this patch
660 introduces a guaranteed SEGV for semantic parsers.
661 * doc/bison.texinfo: Document them.
662 * tests/suite.at: Exercise these %options.
664 2000-12-20 Akim Demaille <akim@epita.fr>
666 Also handle the output file (--verbose) with obstacks.
668 * files.c (foutput): Remove.
669 (output_obstack): New.
670 Adjust all dependencies.
671 * src/conflicts.c: Return a string.
672 * src/system.h (obstack_grow_string): Rename as...
673 (obstack_sgrow): this. Be ready to work with non literals.
674 (obstack_fgrow4): New.
676 2000-12-20 Akim Demaille <akim@epita.fr>
678 * src/files.c (open_files): Fix the computation of short_base_name
679 in the case of `-o foo.tab.c'.
681 2000-12-20 Akim Demaille <akim@epita.fr>
683 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
684 (copy_dollar): Now that everything uses obstacks, get rid of the
687 2000-12-20 Akim Demaille <akim@epita.fr>
689 * src/files.c (open_files): Actually the `.output' file is based
690 on the short_base_name, not base_name.
691 * tests/suite.at (Checking output file names): Adjust.
693 2000-12-20 Akim Demaille <akim@epita.fr>
695 * src/bison.s1: Remove, we now use directly...
696 * src/bison.simple: this.
697 * src/Makefile.am: Use pkgdata instead of data.
699 2000-12-20 Akim Demaille <akim@epita.fr>
701 * src/files.c (guard_obstack): New.
702 (open_files): Initialize it.
703 (output_files): Dump it...
704 * src/files.h: Export it.
705 * src/reader.c (copy_guard): Use it.
707 2000-12-19 Akim Demaille <akim@epita.fr>
709 * src/files.c (outfile, defsfile, actfile): Removed as global
711 (open_files): Don't compute them.
712 (output_files): Adjust.
713 (base_name, short_base_name): Be global.
716 2000-12-19 Akim Demaille <akim@epita.fr>
718 * src/files.c (strsuffix): New.
719 (stringappend): Be just like strcat but allocate.
720 (base_names): Eve out from open_files.
721 Try to simplify the rather hairy computation of base_name and
723 (open_files): Use it.
724 * tests/suite.at (Checking output file names): New test.
726 2000-12-19 Akim Demaille <akim@epita.fr>
728 * src/system.h (obstack_grow_literal_string): Rename as...
729 (obstack_grow_string): this.
730 * src/output.c (output_parser): Recognize `%% actions' instead of
732 * src/bison.s1: s/$/%% actions/.
733 * src/bison.hairy: Likewise.
735 2000-12-19 Akim Demaille <akim@epita.fr>
737 * src/output.c (output_parser): Compute the `#line' lines when
739 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
740 Suggested by Hans Aberg.
742 2000-12-19 Akim Demaille <akim@epita.fr>
744 Let the handling of the skeleton files be local to the procedures
747 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
749 (fparser, open_extra_files): Remove.
750 (open_files, output_files): Don't take care of fparser.
751 * src/files.h: Adjust.
752 * src/output.c (output_parser): Open and close the file to the
754 * src/reader.c (read_declarations): When %semantic_parser, open
757 2000-12-19 Akim Demaille <akim@epita.fr>
759 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
760 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
762 2000-12-19 Akim Demaille <akim@epita.fr>
764 * src/files.c (open_files): Yipee! We no longer need all the code
765 looking for `/tmp' since we have no tmp file.
767 2000-12-19 Akim Demaille <akim@epita.fr>
769 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
771 * src/files.c (open_files): Less dependency on MSDOS etc.
773 2000-12-14 Akim Demaille <akim@epita.fr>
775 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
776 Provide a default definition.
777 Use it when executing the default @ action.
778 * src/reader.c (reader_output_yylsp): No longer include
779 `timestamp' and `text' in the default YYLTYPE.
781 2000-12-12 Akim Demaille <akim@epita.fr>
783 * src/reader.c (copy_definition, parse_union_decl, copy_action)
784 (copy_guard): Quote the file names.
785 Reported by Laurent Mascherpa.
787 2000-12-12 Akim Demaille <akim@epita.fr>
789 * src/output.c (output_headers, output_program, output): Be sure
790 to escape special characters when outputting filenames.
791 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
792 (output_headers): Don't depend on them, Use ACTSTR.
794 2000-11-17 Akim Demaille <akim@epita.fr>
796 * lib/obstack.h: Formatting changes.
797 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
798 prevents type checking.
799 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
800 cast the value to (void *): assigning a `foo *' to a `void *'
802 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
803 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
806 2000-11-17 Akim Demaille <akim@epita.fr>
808 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
810 (suite.m4, regression.m4, calc.m4): these.
811 * tests/atgeneral.m4: Update from CVS Autoconf.
813 2000-11-17 Akim Demaille <akim@epita.fr>
815 * tests/regression.m4 (%union and --defines): New test,
816 demonstrating a current bug in the obstack implementation.
818 2000-11-17 Akim Demaille <akim@epita.fr>
820 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
822 Use them to declare the variables which are global or local to
825 2000-11-17 Akim Demaille <akim@epita.fr>
827 * acconfig.h: Remove, no longer used.
829 2000-11-07 Akim Demaille <akim@epita.fr>
831 * src: s/Copyright (C)/Copyright/g.
833 2000-11-07 Akim Demaille <akim@epita.fr>
835 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
837 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
839 2000-11-07 Akim Demaille <akim@epita.fr>
841 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
842 Merge in a single CPP if/else.
844 2000-11-07 Akim Demaille <akim@epita.fr>
846 * src/output.c (output): Remove useless variables.
847 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
848 argument `data' for consistency with the prototypes.
850 (obstack_copy, obstack_copy0): Rename the second argument as
851 `address' for consistency. Qualify it `const'.
852 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
853 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
854 `const' their input argument (`data' or `address').
855 Adjust the corresponding macros to include `const' in casts.
857 2000-11-03 Akim Demaille <akim@epita.fr>
859 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
860 s/PFILE1/BISON_HAIRY/.
863 2000-11-03 Akim Demaille <akim@epita.fr>
865 For some reason, this was not applied.
867 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
868 `unlink': it's no longer used.
870 2000-11-03 Akim Demaille <akim@epita.fr>
872 * src/files.c (skeleton_find): New function, eved out of...
873 (open_files, open_extra_files): here.
875 2000-11-03 Akim Demaille <akim@epita.fr>
879 * src/files.c (obstack_save): New function.
881 (output_files): this.
883 * src/main.c (main): Don't use `atexit' to register `done', since
884 it no longer has to remove tmp files, just call `output_files'
885 when there are no errors.
887 2000-11-02 Akim Demaille <akim@epita.fr>
889 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
890 `unlink': it's no longer used.
891 * src/files.h: Formatting changes.
893 2000-11-02 Akim Demaille <akim@epita.fr>
895 Remove the last uses of mktemp and unlink/delete.
897 * src/files.c (fdefines, ftable): Removed.
898 (defines_ostack, table_obstack): New.
899 Adjust dependencies of the former into uses of the latter.
900 * src/output.c (output_short_or_char_table, output_short_table):
901 Convert to using obstacks.
902 * src/reader.c (copy_comment2): Accept one FILE * and two
904 (output_token_defines, reader_output_yylsp): Use obstacks.
905 * src/system.h (obstack_fgrow3): New.
907 2000-11-01 Akim Demaille <akim@epita.fr>
909 Change each use of `fattrs' into a use of `attrs_obstack'.
911 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
912 * src/files.c (fattrs): Remove.
913 (attrs_obstack): New.
914 Adjust all dependencies.
915 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
917 2000-11-01 Akim Demaille <akim@epita.fr>
920 Change each use of `faction' into a use of `action_obstack'.
922 * lib/obstack.h, lib/obstack.c: New files.
923 * src/files.c (faction): Remove.
924 (action_obstack): New.
925 Adjust all dependencies.
927 2000-10-20 Akim Demaille <akim@epita.fr>
929 * lib/quote.h (PARAMS): New macro. Use it.
931 2000-10-16 Akim Demaille <akim@epita.fr>
933 * src/output.c (output_short_or_char_table): New function.
934 (output_short_table, output_token_translations): Use it.
935 (goto_actions): Use output_short_table.
937 2000-10-16 Akim Demaille <akim@epita.fr>
939 * src/symtab.c (bucket_new): New function.
942 * src/output.c (output_short_table): New argument to display the
943 comment associated with the table.
945 (output_gram): Use it.
946 (output_rule_data): Nicer output layout for YYTNAME.
948 2000-10-16 Akim Demaille <akim@epita.fr>
950 * src/lex.c (read_typename): New function.
952 * src/reader.c (copy_dollar): Likewise.
954 2000-10-16 Akim Demaille <akim@epita.fr>
956 * src/reader.c (copy_comment2): Expect the input stream to be on
957 the `/' which is suspected to open a comment, instead of being
958 called after `//' or `/*' was read.
959 (copy_comment, copy_definition, parse_union_decl, copy_action)
960 (copy_guard): Adjust.
962 2000-10-16 Akim Demaille <akim@epita.fr>
964 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
965 `read_signed_integer'.
967 2000-10-16 Akim Demaille <akim@epita.fr>
969 * src/reader.c (copy_dollar): New function.
970 (copy_guard, copy_action): Use it.
972 2000-10-16 Akim Demaille <akim@epita.fr>
974 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
975 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
976 New files, from Fileutils 4.0.27.
977 * src/main.c (printable_version): Remove.
978 * src/lex.c, src/reader.c: Use `quote'.
980 2000-10-04 Akim Demaille <akim@epita.fr>
982 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
984 2000-10-04 Akim Demaille <akim@epita.fr>
986 * doc/bison.texinfo: Various typos spotted by Neil Booth.
988 2000-10-04 Akim Demaille <akim@epita.fr>
990 When a literal string is used to define two different tokens,
991 `bison -v' segfaults.
992 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
994 * tests/regression.m4: New file.
995 Include the core of the sample provided by Piotr Gackiewicz.
996 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
999 2000-10-04 Akim Demaille <akim@epita.fr>
1001 * src/reader.c (parse_expect_decl): Keep `count' within the size
1005 2000-10-02 Paul Eggert <eggert@twinsun.com>
1007 * bison.s1 (yyparse): Assign the default value
1008 unconditionally, to avoid a GCC warning and make the parser a
1011 2000-10-02 Akim Demaille <akim@epita.fr>
1013 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1016 2000-10-02 Akim Demaille <akim@epita.fr>
1018 * src/derives.c, src/print.c, src/reduce.c: To ease the
1019 translation, move some `\n' out of the translated strings.
1021 2000-10-02 Akim Demaille <akim@epita.fr>
1023 The location tracking mechanism is precious for parse error
1024 messages. Nevertheless, it is enabled only when `@n' is used in
1025 the grammar, which is a different issue (you can use it in error
1026 message, but not in the grammar per se). Therefore, there should
1027 be another means to enable it.
1029 * src/getargs.c (getargs): Support `--locations'.
1031 * src/getargs.h (locationsflag): Export it.
1032 * src/lex.c (percent_table): Support `%locations'.
1033 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1034 with `locationsflag'.
1035 * doc/bison.texinfo: Document `--locations' and `%locations'.
1037 * tests/calc.m4: Test it.
1039 For regularity of the names, replace each
1040 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1041 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1042 In addition replace each `flag' with `_flag'.
1044 2000-10-02 Akim Demaille <akim@epita.fr>
1046 Also test parse error messages, including with YYERROR_VERBOSE.
1048 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1050 Use it to check the computations.
1051 Use it to check `nonassoc' is honored.
1052 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1053 `--yyerror-verbose'.
1054 (_AT_CHECK_CALC): Adjust to this option.
1055 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1057 2000-10-02 Akim Demaille <akim@epita.fr>
1059 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1060 the latter demonstrates a flaw in the handling of non debugging
1061 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1062 was used in order to simplify:
1078 unfortunately this leads to a CPP conflict when
1079 `--name-prefix=foo' is used since it produces `#define yydebug
1082 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1083 (YYDPRINTF): New macro.
1085 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1087 Also test `--verbose', `--defines' and `--name-prefix'.
1089 2000-10-02 Akim Demaille <akim@epita.fr>
1091 Improve the readability of the produced parsers.
1093 * src/bison.s1: Formatting changes.
1094 Improve the comment related to the `$' mark.
1095 (yydefault): Don't fall through to `yyresume': `goto' there.
1096 * src/output.c (output_parser): When the `$' is met, skip the end
1098 New variable, `number_of_dollar_signs', to check there's exactly
1099 one `$' in the parser skeleton.
1101 2000-10-02 Akim Demaille <akim@epita.fr>
1103 * lib/xstrdup.c: New file, from the fileutils.
1104 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1105 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1106 instead of strlen + xmalloc + strcpy.
1107 * src/symtab.c (copys): Remove, use xstrdup instead.
1109 2000-10-02 Akim Demaille <akim@epita.fr>
1111 * src/gram.h (associativity): New enum type which replaces the
1112 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1113 `right_assoc', `left_assoc' and `non_assoc'.
1114 Adjust all dependencies.
1115 * src/reader.c: Formatting changes.
1116 (LTYPESTR): Don't define it, use it as a literal in
1117 `reader_output_yylsp'.
1118 * src/symtab.h (symbol_class): New enum type which replaces the
1119 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1120 `sunknown', `stoken and `snterm'.
1122 2000-10-02 Akim Demaille <akim@epita.fr>
1124 * src/getargs.c (fixed_outfiles): Rename as...
1125 (yaccflag): for consistency and accuracy.
1126 Adjust dependencies.
1128 2000-10-02 Akim Demaille <akim@epita.fr>
1130 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1131 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1132 difficult and introduced a lot of core dump. It turns out that
1133 Bison used an implementation of `xmalloc' based on `calloc', and
1134 at various places it does depend upon the initialization to 0. I
1135 have not tried to isolate the pertinent places, and all the former
1136 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1137 someone should address this issue.
1139 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1140 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1142 Adjust dependencies.
1143 * src/warshall.h: New file.
1146 2000-10-02 Akim Demaille <akim@epita.fr>
1148 Various anti-`extern in *.c' changes.
1150 * src/system.h: Include `assert.h'.
1152 2000-10-02 Akim Demaille <akim@epita.fr>
1154 * src/state.h (nstates, final_state, first_state, first_shift)
1155 (first_reduction): Move their exportation from here...
1156 * src/LR0.h: to here.
1157 Adjust dependencies.
1158 * src/getargs.c (statisticsflag): New variable.
1159 Add support for `--statistics'.
1160 Adjust dependencies.
1162 Remove a lot of now useless `extern' statements in most files.
1164 2000-10-02 Akim Demaille <akim@epita.fr>
1166 * src/LR0.h: New file.
1169 2000-10-02 Akim Demaille <akim@epita.fr>
1171 * src/print.h: New file.
1173 * src/print.c: Formatting and ordering changes.
1174 (verbose, terse): Replace with...
1175 (print_results): this new function.
1176 Adjust dependencies.
1178 2000-10-02 Akim Demaille <akim@epita.fr>
1180 * src/conflicts.c (conflict_report): New function.
1181 (conflict_log, verbose_conflict_log): Replace with...
1182 (print_conflicts): this function.
1183 Adjust dependencies.
1184 * src/conflicts.h: New file.
1185 Propagate its inclusion.
1187 2000-10-02 Akim Demaille <akim@epita.fr>
1189 * src/nullable.h: New file.
1190 Propagate its inclusion.
1191 * src/nullable.c: Formatting changes.
1193 2000-10-02 Akim Demaille <akim@epita.fr>
1195 * src/reduce.h: New file.
1196 Propagate its inclusion.
1197 * src/reduce.c: Topological sort and other formatting changes.
1198 (bool, TRUE, FALSE): Move their definition to...
1199 * src/system.h: here.
1201 2000-10-02 Akim Demaille <akim@epita.fr>
1203 * src/files.c: Formatting changes.
1204 (tryopen, tryclose, openfiles): Rename as...
1205 (xfopen, xfclose, open_files): this.
1206 (stringappend): static.
1207 * src/files.h: Complete the list of exported symbols.
1210 2000-10-02 Akim Demaille <akim@epita.fr>
1212 * src/reader.h: New file.
1213 Propagate its use instead of tedious list of `extern' and
1215 * src/reader.c: Formatting changes, topological sort,
1218 2000-10-02 Akim Demaille <akim@epita.fr>
1220 * src/lex.h: Prototype `lex.c' exported functions.
1221 * src/reader.c: Adjust.
1222 * src/lex.c: Formatting changes.
1223 (safegetc): Rename as...
1226 2000-10-02 Akim Demaille <akim@epita.fr>
1228 * src/lalr.h: New file.
1229 Propagate its inclusion instead of prototypes and `extern'.
1230 * src/lalr.c: Formatting changes, topological sorting etc.
1232 2000-10-02 Akim Demaille <akim@epita.fr>
1234 * src/output.c (token_actions): Introduce a temporary array,
1235 YYDEFACT, that makes it possible for this function to use
1238 2000-10-02 Akim Demaille <akim@epita.fr>
1240 `user_toknums' is output as a `short[]' in `output.c', while it is
1241 defined as a `int[]' in `reader.c'. For consistency with the
1242 other output tables, `user_toknums' is now defined as a table of
1245 * src/reader.c (user_toknums): Be a short table instead of an int
1247 Adjust dependencies.
1249 Factor the short table outputs.
1251 * src/output.c (output_short_table): New function.
1252 * src/output.c (output_gram, output_stos, output_rule_data)
1253 (output_base, output_table, output_check): Use it.
1255 2000-10-02 Akim Demaille <akim@epita.fr>
1257 * src/output.c (output): Topological sort of the functions, in
1258 order to get rid of the `static' prototypes.
1259 No longer use `register'.
1260 * src/output.h: New file.
1261 Propagate its inclusion in files explicitly prototyping functions
1264 2000-09-21 Akim Demaille <akim@epita.fr>
1266 * src/atgeneral.m4: Update from Autoconf.
1268 2000-09-21 Akim Demaille <akim@epita.fr>
1270 * src/closure.h: New file.
1271 * src/closure.c: Formatting changes, topological sort over the
1272 functions, use of closure.h.
1273 (initialize_closure, finalize_closure): Rename as...
1274 (new_closure, free_closure): these. Adjust dependencies.
1275 * src/LR0.c: Formatting changes, topological sort, use of
1277 (initialize_states): Rename as...
1279 * src/Makefile.am (noinst_HEADERS): Adjust.
1281 2000-09-20 Akim Demaille <akim@epita.fr>
1283 * src/acconfig.h: Don't protect config.h against multiple
1285 Don't define PARAMS.
1286 * src/system.h: Define PARAMS.
1287 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1288 purpose of config.h. system.h must not try to fix wrong
1289 definitions in config.h.
1291 2000-09-20 Akim Demaille <akim@epita.fr>
1293 * src/derives.h: New file.
1294 * src/main.c, src/derives.h: Use it.
1296 * src/Makefile.am (noinst_HEADERS): Adjust.
1298 2000-09-20 Akim Demaille <akim@epita.fr>
1300 * tests/atgeneral.m4: Update from Autoconf.
1301 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1302 (AT_CHECK_CALC): New macros.
1303 Use these macros to test bison with options `', `--raw',
1304 `--debug', `--yacc', `--yacc --debug'.
1306 2000-09-19 Akim Demaille <akim@epita.fr>
1308 * src/output.c: Formatting changes.
1309 * src/machine.h: Remove, leaving its contents in...
1310 * src/system.h: here.
1312 Adjust all dependencies on stdio.h and machine.h.
1313 * src/getargs.h: New file.
1314 Let all `extern' declarations about getargs.c be replaced with
1315 inclusion of `getargs.h'.
1316 * src/Makefile.am (noinst_HEADERS): Adjust.
1318 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1320 (yyerror): Returns void, not int.
1321 * doc/bison.texinfo: Formatting changes.
1323 2000-09-19 Akim Demaille <akim@epita.fr>
1325 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1328 2000-09-18 Akim Demaille <akim@epita.fr>
1330 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1331 * src/Makefile.am (INCLUDES): Don't.
1332 Be ready to fetch headers in lib/.
1334 2000-09-18 Akim Demaille <akim@epita.fr>
1336 * doc/bison.texinfo: Update the copyright.
1337 ANSIfy and GNUify the examples.
1338 Remove the old menu.
1340 2000-09-18 Akim Demaille <akim@epita.fr>
1342 First set of tests: use the `calc' example from the documentation.
1344 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1345 is defined only when YYDEBUG is.
1346 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1347 * src/files.c (tryopen, tryclose): Formatting changes.
1348 Move to the top and be static.
1349 * src/reader.c (read_signed_integer): Likewise.
1350 * tests/calc.m4: New file.
1351 * Makefile.am, suite.m4: Adjust.
1352 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1354 2000-09-18 Akim Demaille <akim@epita.fr>
1356 Add support for an Autotest test suite for Bison.
1358 * m4/m4.m4, m4/atconfig.m4: New files.
1359 * m4/Makefile.am (EXTRA_DIST): Adjust.
1360 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1362 * src/getargs.c: Display a more standard --version message.
1363 * src/reader.c (reader): Formatting changes.
1364 No longer depend upon VERSION_STRING.
1365 * configure.in: No longer use `dnl'.
1366 Set up the test suite and the new directory `tests/.
1367 (VERSION_STRING): Remove.
1369 2000-04-14 Akim Demaille <akim@epita.fr>
1371 * src/reader.c (copy_comment2): New function, same as former
1372 `copy_comment', but outputs into two FILE *.
1373 (copy_comment): Use it.
1374 (parse_union_decl): Use it.
1375 (get_type, parse_start_decl): Use the same `invalid' message.
1376 (parse_start_decl, parse_union_decl): Use the same `multiple'
1378 (parse_union_decl, copy_guard, copy_action): Use the same
1379 `unmatched' message.
1380 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1382 2000-03-31 Akim Demaille <akim@epita.fr>
1384 * src/files.c (tryopen, tryclose): Move to the top.
1387 2000-03-31 Akim Demaille <akim@epita.fr>
1389 * src/main.c (main): Don't call `done', exit does it.
1391 2000-03-31 Akim Demaille <akim@epita.fr>
1393 * allocate.c: s/return (foo)/return foo/.
1396 * output.c: Likewise.
1397 * reader.c: Likewise.
1398 * symtab.c: Likewise.
1399 * vmsgetargs.c: Likewise.
1401 2000-03-31 Akim Demaille <akim@epita.fr>
1403 Clean up the error reporting functions.
1405 * src/report.c: New file.
1406 * src/report.h: Likewise.
1407 * src/Makefile.am: Adjust.
1408 * m4/error.m4: New file.
1409 * m4/Makefile.am: Adjust.
1410 * configure.in (jm_PREREQ_ERROR): Call it.
1411 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1413 (fatal, fatals): Remove. All callers use complain.c::fatal.
1414 (warn, warni, warns, warnss, warnss): Remove. All callers use
1415 complain.c::complain.
1416 (toomany): Remove, use fatal instead.
1417 * src/files.c (done): No argument, use complain_message_count.
1418 * src/main.c (main): Register `done' to `atexit'.
1420 * src/getargs.c (usage): More `fputs', less `fprintf'.
1422 2000-03-28 Akim Demaille <akim@epita.fr>
1424 * lib/: New directory.
1425 * Makefile.am (SUBDIRS): Adjust.
1426 * configure.in: Adjust.
1427 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1429 * src/alloca.c: Moved to lib/.
1430 * src/getopt.c: Likewise.
1431 * src/getopt1.c: Likewise.
1432 * src/getopt.h: Likewise.
1433 * src/ansi2knr.c: Likewise.
1434 * src/ansi2knr.1: Likewise.
1435 * src/Makefile.am: Adjust.
1436 * lib/Makefile.am: New file.
1438 2000-03-28 Akim Demaille <akim@epita.fr>
1440 * src/getargs.c (usage): Refresh the help message.
1442 2000-03-17 Akim Demaille <akim@epita.fr>
1444 * src/getopt1.c: Updated from textutils 2.0e
1445 * src/getopt.c: Likewise.
1446 * src/getopt.h: Likewise.
1448 2000-03-17 Akim Demaille <akim@epita.fr>
1450 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1451 the file name, not the whole `#line LINE FILE'.
1453 2000-03-17 Akim Demaille <akim@epita.fr>
1455 On syntax errors, report the token on which we choked.
1457 * src/bison.s1 (yyparse): In the label yyerrlab, when
1458 YYERROR_VERBOSE, add yychar in msg.
1460 2000-03-17 Akim Demaille <akim@epita.fr>
1462 * src/reader.c (copy_at): New function.
1463 (copy_guard): Use it.
1464 (copy_action): Use it.
1466 2000-03-17 Akim Demaille <akim@epita.fr>
1468 Be kind to translators, save some useless translations.
1470 * src/main.c (banner): New function.
1471 (fatal_banner): Use it.
1472 (warn_banner): Use it.
1474 2000-03-17 Akim Demaille <akim@epita.fr>
1476 * src/reader.c (copy_definition): Use copy_string and
1477 copy_comment. Removed now unused `match', `ended',
1479 (copy_comment, copy_string): Moved, to be visible from
1482 2000-03-17 Akim Demaille <akim@epita.fr>
1484 * src/reader.c (copy_string): Declare `static inline'. No
1485 problems with inline, since it is checked by configure.
1486 (copy_comment): Likewise.
1488 2000-03-17 Akim Demaille <akim@epita.fr>
1490 * src/reader.c (packsymbols): Formatting changes.
1492 2000-03-17 Akim Demaille <akim@epita.fr>
1494 * src/reader.c (copy_comment): New function, factored out from:
1495 (copy_action): Use it. Removed now unused `match', `ended',
1497 (copy_guard): Likewise.
1499 2000-03-17 Akim Demaille <akim@epita.fr>
1501 * src/reader.c (copy_string): New function, factored out from:
1502 (copy_action): Use it.
1503 (copy_guard): Likewise.
1505 2000-03-17 Akim Demaille <akim@epita.fr>
1507 Change the handling of @s so that they behave exactly like $s.
1508 There is now a pseudo variable @$ (readble and writable), location
1509 of the lhs of the rule (by default ranging from the location of
1510 the first symbol of the rhs, to the location of the last symbol,
1511 or, if the rhs is empty, YYLLOC).
1513 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1515 (yyparse): When providing a default semantic action, provide a
1516 default location action.
1517 (after the $): No longer change `*YYLSP', just stack YYLOC the
1518 same way you stack YYVAL.
1519 * src/reader.c (read_declarations): Use warns.
1520 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1521 (copy_action, case '@'): Likewise.
1522 Use a standard error message, to save useless work from
1525 2000-03-17 Akim Demaille <akim@epita.fr>
1527 * src/bison.s1: Formatting and cosmetics changes.
1528 * src/reader.c: Likewise.
1529 Update the Copyright notice.
1531 2000-03-17 Akim Demaille <akim@epita.fr>
1533 * src/bison.s1 (#line): All set to `#line' only, since the
1534 Makefile now handles them.
1536 2000-03-16 Akim Demaille <akim@epita.fr>
1538 * src/output.c (output_rule_data): Output the documentation of
1540 (Copyright notice): Update.
1543 2000-03-16 Akim Demaille <akim@epita.fr>
1545 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1546 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1547 One `#if YYDEBUG' remains, since it uses variables which are
1548 defined only if `YYDEBUG != 0'.
1550 2000-03-16 Akim Demaille <akim@epita.fr>
1552 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1553 and related variables so that the similarities are highlighted.
1555 2000-03-16 Akim Demaille <akim@epita.fr>
1557 * src/bison.s1: Properly indent CPP directives.
1559 2000-03-16 Akim Demaille <akim@epita.fr>
1561 * src/bison.s1: Properly indent the `alloca' CPP section.
1563 2000-03-16 Akim Demaille <akim@epita.fr>
1565 Do not hard code values of directories in `configure.in'.
1566 Update the `configure' tool chain.
1568 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1570 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1571 (AC_OUTPUT): Add m4/Makefile.
1572 Bump to bison 1.28a, 1.29 has never been released.
1573 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1574 handled via src/Makefile.am.
1575 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1576 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1578 * Makefile.am (SUBDIRS): Add m4.
1579 (ACLOCAL_AM_FLAGS): New variable.
1580 (AUTOMAKE_OPTIONS): Add check-news.
1581 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1582 the proper line number and file name.
1583 (DEFS): Propagate the location of bison library files and of the
1585 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1587 * acinclude.m4: Remove, replaced by the directory m4.
1588 * m4/Makefile.am (EXTRA_DIST): New variable.
1589 * m4/gettext.m4: New file, from the fileutils.
1590 * m4/lcmessage.m4: Likewise
1591 * m4/progtest.m4: Likewise.
1592 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1594 2000-03-10 Akim Demaille <akim@epita.fr>
1597 Formatting changes of various comments.
1598 Respect the GNU coding standards at various places.
1599 Don't use `_()' when no translation is needed.
1601 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1604 OS/2 honors TMPDIR environment variable.
1606 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1608 * doc/bison.texinfo: Tweaked spelling and grammar.
1610 Removed reference to price of printed copy.
1611 Mention BISON_SIMPLE and BISON_HAIRY.
1613 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1615 * configure.in, NEWS:
1616 Bison 1.29 released.
1618 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1620 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1621 Added reference card.
1623 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1625 * po/ru.po: Added Russian translation.
1627 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1629 * configure.in: Added Russian translation.
1631 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1633 * configure.in, NEWS, README:
1634 Released version 1.28.
1636 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1639 Squashed redefinition warning on some systems.
1641 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1642 Have configure build version string instead of relying on ANSI string
1645 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1647 * po/POTFILES.in: Got rid of version.c.
1649 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1651 * acconfig.h, configure.in:
1652 Have configure build version string instead of relying on ANSI string
1655 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1658 Dropped mention of `+' for long-named options.
1660 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1662 * src/files.c: Added <unistd.h> for unlink().
1664 * src/Makefile.am, src/system.h:
1667 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1669 * README: Added a FAQ list.
1671 * configure.in, acconfig.h:
1674 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1676 * doc/FAQ, doc/Makefile.am:
1679 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1681 * src/alloc.h, src/symtab.h, src/version.c:
1682 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1684 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1686 * src/.cvsignore, src/Makefile.am:
1687 Reorganized: sources in `src', documentation in `doc'.
1689 * src/lex.c (literalchar):
1690 fixed the code for escaping double quotes (thanks
1693 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1695 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1696 Adjusted paths to reflect directory reorganization.
1698 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1700 * doc/.cvsignore, doc/Makefile.am:
1701 Reorganized: sources in `src', documentation in `doc'.
1703 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1706 Updated AC_INIT file to reflect directory reorganization.
1708 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1709 Reorganized: sources in `src', documentation in `doc'.
1711 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1714 Don't declare calloc() and realloc() if not necessary.
1716 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1718 * configure.in, acconfig.h, acinclude.m4:
1719 Don't declare calloc() and realloc() if not necessary.
1721 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1723 * po/.cvsignore: Added i18n support.
1725 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1727 * acconfig.h, configure.in, Makefile.am:
1730 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1732 * src/bison.s1: Fixed #line numbers.
1734 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1736 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1737 Added PO files from Translation Project.
1739 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1742 Added support for non-ANSI compilers (ansi2knr).
1744 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1746 * configure.in: Bumped version number to 1.27.
1749 Added `bison.simple' to list of files removed by `make distclean'.
1751 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1753 * src/files.c, src/files.h:
1754 Defined locations of parser files in config.h instead of Makefile.
1756 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1758 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1759 Defined locations of parser files in config.h instead of Makefile.
1761 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1764 Removed inappropriate use of $< macro.
1766 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1768 * po/Makefile.in.in, po/POTFILES.in:
1769 Add `po' directory skeleton.
1771 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1773 * README: Document help-bison list.
1775 * configure.in: Add check for mkstemp().
1777 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1779 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1780 Hush a few compiler warnings.
1783 Add tryclose(), which verifies that fclose was successful.
1784 Hush a couple of compiler warnings.
1786 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1788 * Makefile.am, OChangeLog:
1789 ChangeLog is now automatically generated. Include the old version as
1792 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1794 * 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:
1797 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1799 * doc/bison.texinfo: Fix formatting glitch.
1801 * doc/bison.texinfo: Update FSF address.
1803 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1805 * acconfig.h: Update FSF address.
1807 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1810 Don't define PACKAGE here, since config.h defines it.
1812 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1814 * src/reader.c: Update copyright date.
1817 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1818 favor of output directly to stderr (avoids buffer overruns).
1820 * src/reader.c: Some checks for premature EOF.
1822 * 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:
1823 Use prototypes if the compiler understands them.
1825 * src/files.c: Honor TMPDIR on Unix hosts.
1826 Use prototypes if the compiler understands them.
1829 Fix a couple of buffer overrun bugs.
1830 Use prototypes if the compiler understands them.
1832 * src/system.h: Include unistd.h and ctype.h.
1833 Use #ifdef instead of #if for NLS symbols.
1835 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1837 * doc/bison.texinfo:
1838 Delete comment "consider using @set for edition number, etc..." since
1839 we now are doing so.
1841 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1844 Use prototypes if the compiler understands them.
1846 * NEWS: Document 1.26 highlights.
1848 * Makefile.am: Require Automake 1.3 or later.
1851 Use prototypes if the compiler understands them.
1853 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1856 Use VERSION symbol from automake for version number.
1858 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1860 * acconfig.h, configure.in, version.cin:
1861 Use VERSION symbol from automake for version number.
1863 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1866 Distribute original version of simple parser (bison.s1), not built
1867 version (bison.simple).
1869 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1871 * doc/bison.texinfo: Add info dir entry.
1873 * doc/bison.texinfo:
1874 Let automake put version number into documentation.
1876 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1878 * src/bison.cld, src/build.com, src/vmshlp.mar:
1879 Add non-RCS files from /gd/gnu/bison.
1881 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1884 Document the BISON_HAIRY and BISON_SIMPLE variables.
1886 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1888 * src/version.c: Build version.c automatically.
1891 Fix token numbering (used to start at 258, not 257).
1893 * src/system.h: Include config.h.
1895 * src/getargs.c: Update bug report address.
1897 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1898 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1900 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1903 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1905 * configure.in, version.cin:
1906 Build version.c automatically.
1908 * AUTHORS: Add AUTHORS file.
1910 * README: Update bug report address.
1913 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1915 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1918 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1920 * doc/bison.texinfo: Clean up some formatting.
1922 1998-05-05 Richard Stallman <rms@gnu.org>
1924 * doc/bison.texinfo:
1925 Explain better why to make a pure parser.
1927 1998-01-05 Richard Stallman <rms@gnu.org>
1929 * src/files.c (openfiles):
1930 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1931 find a temporary directory, if possible. Do not unlink files while
1934 1997-08-25 Richard Stallman <rms@gnu.org>
1936 * src/reader.c (stack_offset;):
1937 Change some warni to warns.
1939 * src/lex.c (literalchar): Use warns, not warni.
1941 1997-06-28 Richard Stallman <rms@gnu.org>
1943 * src/bison.s1: Add a Bison version comment.
1945 * src/main.c (fatal, warn, berror):
1948 1997-06-28 Richard Stallman <rms@gnu.org>
1950 * Makefile.in (bison_version): New variable.
1951 (dist): Use that variable.
1952 (bison.s1): Substitute the Bison version into bison.simple.
1954 * bison.simple: Add a Bison version comment.
1956 1997-06-18 Richard Stallman <rms@gnu.org>
1958 * src/main.c (fatal, warn, berror):
1959 Make error messages standard.
1960 (toomany): Improve error message text.
1962 * 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:
1963 new.h renamed to alloc.h.
1965 1997-06-18 Richard Stallman <rms@gnu.org>
1967 * Makefile.in: new.h renamed to alloc.h.
1969 1997-05-24 Richard Stallman <rms@gnu.org>
1971 * src/lex.c (literalchar):
1972 Fix the code for escaping \, " and '.
1974 (lex): Avoid trouble when there are many chars
1975 to discard in a char literal with just several chars in it.
1977 1997-05-17 Richard Stallman <rms@gnu.org>
1980 Use malloc, if using alloca is troublesome.
1981 (YYSTACK_USE_ALLOCA): New flag macro.
1982 Define it for some systems and compilers.
1983 (YYSTACK_ALLOC): New macro.
1984 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1985 If it was malloc'd, free it.
1987 1997-05-17 Richard Stallman <rms@gnu.org>
1990 Use malloc, if using alloca is troublesome.
1991 (YYSTACK_USE_ALLOCA): New flag macro.
1992 Define it for some systems and compilers.
1993 (YYSTACK_ALLOC): New macro.
1994 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1995 If it was malloc'd, free it.
1997 1997-04-23 Richard Stallman <rms@gnu.org>
2000 (alloca) [__hpux]: Always define as __builtin_alloca.
2002 1997-04-23 Richard Stallman <rms@gnu.org>
2005 (alloca) [__hpux]: Always define as __builtin_alloca.
2007 1997-04-22 Richard Stallman <rms@gnu.org>
2010 [__hpux]: Include alloca.h (right for HPUX 10)
2011 instead of declaring alloca (right for HPUX 9).
2013 * src/bison.s1 (__yy_memcpy):
2014 Declare arg `count' as unsigned int.
2015 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2017 1997-04-22 Richard Stallman <rms@gnu.org>
2020 [__hpux]: Include alloca.h (right for HPUX 10)
2021 instead of declaring alloca (right for HPUX 9).
2023 * bison.simple (__yy_memcpy):
2024 Declare arg `count' as unsigned int.
2025 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2027 1997-01-03 Richard Stallman <rms@gnu.org>
2029 * src/allocate.c: [__STDC__ or _MSC_VER]:
2030 Declare calloc and realloc to return void *.
2032 1997-01-02 Richard Stallman <rms@gnu.org>
2035 [_MSC_VER]: Include stdlib.h and process.h.
2036 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2038 * src/main.c (main): Return FAILURE as a value.
2039 (printable_version): Declare arg as int, not char.
2041 1997-01-02 Richard Stallman <rms@gnu.org>
2043 * Makefile.in (dist):
2044 Explicitly check for symlinks, and copy them.
2046 1996-12-19 Richard Stallman <rms@gnu.org>
2049 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2051 1996-12-18 Paul Eggert <eggert@gnu.org>
2053 * src/bison.s1 (yyparse):
2054 If __GNUC__ and YYPARSE_PARAM are both defined,
2055 declare yyparse to have a void * argument.
2057 1996-12-18 Paul Eggert <eggert@gnu.org>
2059 * bison.simple (yyparse):
2060 If __GNUC__ and YYPARSE_PARAM are both defined,
2061 declare yyparse to have a void * argument.
2063 1996-12-17 Richard Stallman <rms@gnu.org>
2065 * src/reduce.c (nbits): Add some casts.
2067 1996-08-12 Richard Stallman <rms@gnu.org>
2069 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2071 1996-08-12 Richard Stallman <rms@gnu.org>
2073 * bison.simple: Test _MSDOS as well as _MSDOS_.
2075 1996-07-31 Richard Stallman <rms@gnu.org>
2078 [__sun && __i386]: Include alloca.h.
2080 1996-07-31 Richard Stallman <rms@gnu.org>
2083 [__sun && __i386]: Include alloca.h.
2085 1996-07-30 Richard Stallman <rms@gnu.org>
2087 * src/bison.s1: Comment change.
2089 * src/bison.s1: Test _MSDOS_, not MSDOS.
2091 1996-07-30 Richard Stallman <rms@gnu.org>
2093 * bison.simple: Comment change.
2095 * bison.simple: Test _MSDOS_, not MSDOS.
2097 1996-06-01 Richard Stallman <rms@gnu.org>
2099 * 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:
2100 Insert `_' macro around many string constants.
2103 Insert `_' macro around many string constants.
2105 (main): Call setlocale, bindtextdomain and textdomain.
2107 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2108 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2109 [ENABLE_NLS]: Include libintl.h.
2110 [ENABLE_NLS] (gettext): Define.
2111 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2112 (N_, PACKAGE, LOCALEDIR): New macros.
2114 1996-06-01 Richard Stallman <rms@gnu.org>
2116 * POTFILES.in: New file.
2118 * Makefile.in (allocate.o):
2119 Define target explicitly.
2121 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2122 (LDFLAGS): Set to @LDFLAGS@.
2123 (configure): Run autoconf only if preceding `cd' succeeds.
2124 (bison.s1): Redirect output to temporary file then move the
2125 temporary to the target, rather than redirecting directly to bison.s1.
2126 (clean): Remove config.status and config.log.
2127 (distclean): Don't remove config.status here.
2129 1996-05-12 Richard Stallman <rms@gnu.org>
2132 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2134 1996-05-12 Richard Stallman <rms@gnu.org>
2137 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2139 1996-05-11 Richard Stallman <rms@gnu.org>
2141 * src/bison.s1 (__yy_memcpy):
2142 Really reorder the args, as was supposedly done on Feb 14 1995.
2143 (yyparse): Calls changed accordingly.
2145 1996-05-11 Richard Stallman <rms@gnu.org>
2147 * Makefile.in (dist): Don't use $(srcdir).
2149 * bison.simple (__yy_memcpy):
2150 Really reorder the args, as was supposedly done on Feb 14 1995.
2151 (yyparse): Calls changed accordingly.
2153 1996-01-27 Richard Stallman <rms@gnu.org>
2155 * src/output.c (output_rule_data):
2156 Test YYERROR_VERBOSE in the conditional
2157 around the definition of ttyname.
2159 1995-12-29 Richard Stallman <rms@gnu.org>
2162 Fix line numbers in #line commands.
2164 1995-12-29 Richard Stallman <rms@gnu.org>
2167 Fix line numbers in #line commands.
2169 1995-12-27 Richard Stallman <rms@gnu.org>
2171 * src/bison.s1 (YYPARSE_PARAM_DECL):
2172 In C++, make it always null.
2173 (YYPARSE_PARAM_ARG): New macro.
2174 (yyparse): Use YYPARSE_PARAM_ARG.
2176 1995-12-27 Richard Stallman <rms@gnu.org>
2178 * bison.simple (YYPARSE_PARAM_DECL):
2179 In C++, make it always null.
2180 (YYPARSE_PARAM_ARG): New macro.
2181 (yyparse): Use YYPARSE_PARAM_ARG.
2183 1995-11-29 Richard Stallman <rms@gnu.org>
2185 * doc/bison.texinfo:
2186 Describe literal string tokens, %raw, %no_lines, %token_table.
2188 1995-11-29 Daniel Hagerty <hag@gnu.org>
2190 * doc/bison.texinfo: Fixed update date
2192 1995-10-16 Richard Stallman <rms@gnu.org>
2194 * src/version.c: Version 1.25.
2196 1995-10-16 Richard Stallman <rms@gnu.org>
2198 * NEWS: *** empty log message ***
2200 1995-10-16 Richard Stallman <rms@gnu.org>
2202 * doc/bison.1, doc/bison.rnh:
2205 1995-10-15 Richard Stallman <rms@gnu.org>
2207 * src/vmsgetargs.c, src/getargs.c:
2208 Added -n, -k, and -raw switches.
2209 (noparserflag, toknumflag, rawtoknumflag): New variables.
2211 * src/symtab.h (SALIAS):
2212 New #define for adding aliases to %token.
2213 (struct bucket): Added `alias' field.
2215 * src/reduce.c (reduce_grammar):
2216 Revise error message.
2217 (print_notices): Remove final `.' from error message.
2219 * src/reader.c (reader_output_yylsp):
2221 (readgram): Use `#if 0' around code that accepted %command
2222 inside grammar rules: The documentation doesn't allow it,
2223 and it will fail since the %command processors scan for the next %.
2224 (parse_token_decl): Extended the %token
2225 declaration to allow a multi-character symbol as an alias.
2226 (parse_thong_decl): New function.
2227 (read_declarations): Added %thong declarations.
2228 (read_declarations): Handle NOOP to deal with allowing
2229 % declarations as another means to specify the flags.
2230 (readgram): Allow %prec prior to semantics embedded in a rule.
2231 (skip_to_char, read_declarations, copy_definition)
2232 (parse_token_decl, parse_start_decl, parse_type_decl)
2233 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2234 (get_type_name, copy_guard, copy_action, readgram)
2235 (get_type, packsymbols): Revised most error messages.
2236 Changed `fatal' to `warnxxx' to avoid aborting for error.
2237 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2238 (read_declarations): Improve the error message for
2239 an invalid character. Do not abort.
2240 (read_declarations, copy_guard, copy_action): Use
2241 printable_version to avoid unprintable characters in printed output.
2242 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2243 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2244 Allow the type of a non-terminal can be given
2245 more than once, as long as all specifications give the same type.
2248 (output_headers, output_trailers, output, output_gram)
2249 (output_rule_data): Implement noparserflag variable.
2250 Implement toknumflag variable.
2251 (output): Call reader_output_yylsp to output LTYPESTR.
2253 * src/main.c (main):
2254 If reader sees an error, don't process the grammar.
2255 (fatals): Updated to not use VARARGS1.
2256 (printable_version, int_to_string, warn, warni, warns, warnss)
2257 (warnsss): New error reporting functions. Avoid abort for error.
2260 Added THONG and NOOP for alias processing.
2261 Added SETOPT for the new code that allows setting options with %flags.
2264 Include getopt.h. Add some extern decls.
2265 (safegetc): New function to deal with EOF gracefully.
2266 (literalchar); new function to deal with reading \ escapes.
2267 (lex): Use literalchar.
2268 (lex): Implemented "..." tokens.
2269 (literalchar, lex, parse_percent_token): Made tokenbuffer
2270 always contain the token. This includes growing the token
2271 buffer while reading an integer.
2272 (parse_percent_token): Replaced if-else statement with percent_table.
2273 (parse_percent_token): Added % declarations as another
2274 way to specify the flags -n, -l, and -r. Also added hooks for
2275 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2276 major changes to files.c.
2277 (lex) Retain in the incoming stream a character following
2279 (skip_white_space, lex): Revised most error messages
2280 and changed fatal to warn to avoid aborting.
2281 (percent_table): Added %thong declarations.
2283 * src/gram.h: Comment changes.
2285 * src/files.c (openfiles, open_extra_files, done):
2287 and actfile file. Handle noparserflag. Both for -n switch.
2289 * src/conflicts.c (resolve_sr_conflict):
2290 Remove use of alloca.
2292 1995-06-01 Jim Meyering <meyering@gnu.org>
2294 * doc/bison.texinfo: *** empty log message ***
2296 1995-05-06 Richard Stallman <rms@gnu.org>
2298 * src/bison.s1: Comment change.
2300 1995-05-06 Richard Stallman <rms@gnu.org>
2302 * bison.simple: Comment change.
2304 1995-05-03 Richard Stallman <rms@gnu.org>
2306 * src/version.c: Version now 1.24.
2308 * src/bison.s1: Change distribution terms.
2310 * src/version.c: Version now 1.23.
2312 1995-05-03 Richard Stallman <rms@gnu.org>
2314 * doc/bison.texinfo:
2315 Rewrite "Conditions for Using Bison".
2316 Update version to 1.24.
2318 1995-05-03 Richard Stallman <rms@gnu.org>
2320 * bison.simple: Change distribution terms.
2322 1995-02-23 Richard Stallman <rms@gnu.org>
2324 * src/files.c: Test __VMS_POSIX as well as VMS.
2326 1995-02-14 Jim Meyering <meyering@gnu.org>
2328 * src/bison.s1 (__yy_memcpy):
2329 Renamed from __yy_bcopy to avoid
2330 confusion. Reverse FROM and TO arguments to be consistent with
2333 1995-02-14 Jim Meyering <meyering@gnu.org>
2335 * bison.simple (__yy_memcpy):
2336 Renamed from __yy_bcopy to avoid
2337 confusion. Reverse FROM and TO arguments to be consistent with
2340 1994-11-10 David J. MacKenzie <djm@gnu.org>
2346 * Makefile.in (DISTFILES): Include NEWS.
2348 * Makefile.in (DISTFILES):
2349 Include install-sh, not install.sh.
2351 * configure.in: Update to Autoconf v2 macro names.
2353 1994-10-05 David J. MacKenzie <djm@gnu.org>
2355 * Makefile.in: fix typo
2357 * Makefile.in (prefix, exec_prefix):
2358 Let configure set them.
2360 1994-09-28 David J. MacKenzie <djm@gnu.org>
2362 * Makefile.in: Set datadir to $(prefix)/share.
2364 1994-09-15 Richard Stallman <rms@gnu.org>
2367 Update copyright notice and GPL version.
2369 1994-09-15 Richard Stallman <rms@gnu.org>
2372 Update copyright notice and GPL version.
2374 1994-07-12 Richard Stallman <rms@gnu.org>
2376 * src/reduce.c, src/reader.c:
2379 1994-05-05 David J. MacKenzie <djm@gnu.org>
2381 * Makefile.in: entered into RCS
2383 1994-03-26 Richard Stallman <rms@gnu.org>
2385 * src/bison.s1: entered into RCS
2387 1994-03-26 Richard Stallman <rms@gnu.org>
2389 * bison.simple: entered into RCS
2391 1994-03-25 Richard Stallman <rms@gnu.org>
2393 * src/main.c: entered into RCS
2395 1994-03-24 Richard Stallman <rms@gnu.org>
2397 * src/conflicts.c: entered into RCS
2399 1994-01-02 Richard Stallman <rms@gnu.org>
2401 * Makefile.in: *** empty log message ***
2403 1993-11-21 Richard Stallman <rms@gnu.org>
2405 * src/bison.s1: *** empty log message ***
2407 1993-11-21 Richard Stallman <rms@gnu.org>
2409 * doc/bison.texinfo: entered into RCS
2411 * doc/bison.texinfo: *** empty log message ***
2413 1993-11-21 Richard Stallman <rms@gnu.org>
2415 * bison.simple: *** empty log message ***
2417 1993-10-25 David J. MacKenzie <djm@gnu.org>
2419 * doc/bison.texinfo: *** empty log message ***
2421 1993-10-19 Richard Stallman <rms@gnu.org>
2423 * src/bison.s1: *** empty log message ***
2425 1993-10-19 Richard Stallman <rms@gnu.org>
2427 * bison.simple: *** empty log message ***
2429 1993-10-14 Richard Stallman <rms@gnu.org>
2431 * src/bison.s1: *** empty log message ***
2433 1993-10-14 Richard Stallman <rms@gnu.org>
2435 * bison.simple: *** empty log message ***
2437 1993-09-14 David J. MacKenzie <djm@gnu.org>
2439 * doc/bison.texinfo: *** empty log message ***
2441 1993-09-13 Noah Friedman <friedman@gnu.org>
2443 * Makefile.in: *** empty log message ***
2445 1993-09-10 Richard Stallman <rms@gnu.org>
2447 * src/conflicts.c: *** empty log message ***
2449 * src/system.h: entered into RCS
2451 1993-09-10 Richard Stallman <rms@gnu.org>
2453 * doc/bison.1: entered into RCS
2455 1993-09-06 Noah Friedman <friedman@gnu.org>
2457 * src/version.c: entered into RCS
2459 1993-09-06 Noah Friedman <friedman@gnu.org>
2461 * Makefile.in: *** empty log message ***
2463 1993-07-30 David J. MacKenzie <djm@gnu.org>
2465 * Makefile.in: *** empty log message ***
2467 1993-07-24 Richard Stallman <rms@gnu.org>
2469 * src/bison.s1: *** empty log message ***
2471 1993-07-24 Richard Stallman <rms@gnu.org>
2473 * bison.simple: *** empty log message ***
2475 1993-07-08 David J. MacKenzie <djm@gnu.org>
2477 * Makefile.in: *** empty log message ***
2479 1993-07-04 Richard Stallman <rms@gnu.org>
2481 * src/bison.s1: *** empty log message ***
2483 1993-07-04 Richard Stallman <rms@gnu.org>
2485 * bison.simple: *** empty log message ***
2487 1993-06-26 David J. MacKenzie <djm@gnu.org>
2489 * src/getargs.c: entered into RCS
2491 1993-06-26 David J. MacKenzie <djm@gnu.org>
2493 * doc/bison.texinfo: *** empty log message ***
2495 * doc/bison.1: New file.
2497 1993-06-25 Richard Stallman <rms@gnu.org>
2499 * src/getargs.c: New file.
2501 1993-06-16 Richard Stallman <rms@gnu.org>
2503 * src/bison.s1: *** empty log message ***
2505 1993-06-16 Richard Stallman <rms@gnu.org>
2507 * bison.simple: *** empty log message ***
2509 1993-06-03 Richard Stallman <rms@gnu.org>
2511 * src/bison.s1: New file.
2513 1993-06-03 Richard Stallman <rms@gnu.org>
2515 * doc/bison.texinfo: *** empty log message ***
2517 1993-06-03 Richard Stallman <rms@gnu.org>
2519 * bison.simple: New file.
2521 1993-05-19 Richard Stallman <rms@gnu.org>
2523 * doc/bison.texinfo: New file.
2525 1993-05-07 Noah Friedman <friedman@gnu.org>
2527 * Makefile.in: *** empty log message ***
2529 1993-04-28 Noah Friedman <friedman@gnu.org>
2531 * src/reader.c: *** empty log message ***
2533 1993-04-23 Noah Friedman <friedman@gnu.org>
2535 * src/alloc.h: entered into RCS
2537 1993-04-20 David J. MacKenzie <djm@gnu.org>
2539 * src/version.c: *** empty log message ***
2541 * src/files.c, src/allocate.c:
2544 * src/reader.c: *** empty log message ***
2546 * src/lex.c: entered into RCS
2548 * src/conflicts.c: New file.
2550 * src/symtab.c: entered into RCS
2552 * src/alloc.h: New file.
2554 * src/LR0.c: entered into RCS
2556 1993-04-18 Noah Friedman <friedman@gnu.org>
2558 * src/reader.c: New file.
2560 * src/version.c: *** empty log message ***
2562 1993-04-18 Noah Friedman <friedman@gnu.org>
2564 * Makefile.in: *** empty log message ***
2566 1993-04-17 Noah Friedman <friedman@gnu.org>
2568 * Makefile.in: *** empty log message ***
2570 1993-04-15 Richard Stallman <rms@gnu.org>
2572 * src/main.c, src/files.c:
2575 1993-04-15 Noah Friedman <friedman@gnu.org>
2577 * configure.in: entered into RCS
2579 * configure.in: *** empty log message ***
2581 * configure.in: New file.
2583 1993-04-14 Richard Stallman <rms@gnu.org>
2585 * Makefile.in: New file.
2587 1993-04-13 Richard Stallman <rms@gnu.org>
2589 * src/version.c: New file.
2591 1993-03-25 Richard Stallman <rms@gnu.org>
2593 * src/output.c: entered into RCS
2595 1992-09-25 Richard Stallman <rms@gnu.org>
2597 * configure.bat: entered into RCS
2599 1992-06-22 Richard Stallman <rms@gnu.org>
2601 * src/vmsgetargs.c: entered into RCS
2603 1992-06-22 Richard Stallman <rms@gnu.org>
2605 * doc/bison.rnh: entered into RCS
2607 1992-04-20 David J. MacKenzie <djm@gnu.org>
2609 * README: entered into RCS
2611 1992-01-22 Richard Stallman <rms@gnu.org>
2613 * src/machine.h: entered into RCS
2615 1991-12-21 Richard Stallman <rms@gnu.org>
2617 * src/lalr.c, src/closure.c:
2620 1991-12-20 Richard Stallman <rms@gnu.org>
2622 * src/state.h: entered into RCS
2624 1991-12-18 Richard Stallman <rms@gnu.org>
2626 * src/print.c, src/nullable.c, src/derives.c:
2629 1991-11-03 David J. MacKenzie <djm@gnu.org>
2631 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2634 1988-09-09 Richard Stallman <rms@gnu.org>
2636 * src/bison.hairy: entered into RCS
2638 1987-12-16 Richard Stallman <rms@gnu.org>
2640 * REFERENCES: entered into RCS