1 2001-09-02 Marc Autret <autret_m@epita.fr>
3 * src/reader.c: Include muscle_tab.h.
4 (parse_union_decl): Update.
5 (parse_macro_decl): Rename parse_muscle_decl.
6 Update to use renamed functions and variable.
7 (read_declarations, copy_action, read_additionnal_code, : Updated
8 with correct variables and functions names.
9 (packsymbols, reader): Likewise.
11 * src/reader.h (muscle_obstack): Extern declaration update.
13 * src/output.c: Include muscle_tab.h
14 In all functions using macro_insert, change by using muscle_insert ().
15 (macro_obstack): Rename muscle_obstack.
16 Echo modifications in the whole file.
17 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
18 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
19 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
21 * src/muscle_tab.h: Update double inclusion macros.
22 (macro_entry_s): Rename muscle_entry_s.
25 * src/muscle_tab.c: Include muscle_tab.h.
26 Rename macro_tabble to muscle_table.
27 (mhash1, mhash2, mcmp): Use muscle_entry.
28 (macro_init): Rename muscle_init. Update.
29 (macro_insert): Rename muscle_insert. Update.
30 (macro_find): Rename muscle_find. Update.
32 * src/main.c: Include muscle_tab.h.
33 (main): Call muscle_init ().
34 * src/Makefile.am (bison_SOURCES): Echo modifications.
36 2001-09-02 Marc Autret <autret_m@epita.fr>
38 Now the files macro_tab.[ch] are named muscle_tab.[ch].
40 * src/muscle_tab.c, src/muscle_tab.h: Add files.
42 2001-09-02 Marc Autret <autret_m@epita.fr>
44 * src/macrotab.c, src/macrotab.h: Remove.
46 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
48 * src/reader.c (copy_guard): Use muscle to specify the `#line'
51 2001-09-01 Marc Autret <autret_m@epita.fr>
53 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
54 to an explicit value to activate the feature. We do it here.
56 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
58 * src/output.c (prepare): Delete the `filename' muscule insertion.
59 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
60 (parse_union_decl): Likewise.
61 * src/macrotab.c (macro_init): Initialize filename by infile.
63 2001-08-31 Marc Autret <autret_m@epita.fr>
65 * src/bison.simple (YYLSP_NEEDED): New definition.
66 * src/output.c (prepare): Add macro insertion of `locations_flag'
68 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
70 * src/output.c (prepare): Delete insertion of previous muscles,
71 and insert the `prefix' muscles.
72 * src/macrotab.c (macro_init): Likewise.
73 (macro_init): Initialization prefix directive by `yy'.
74 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
75 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
76 yylval, yydebug, yyerror, yynerrs and yyparse.
77 New directive `#define' to substitute yydebug, ... with option
80 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
82 * src/main.c (main): Standardize.
83 * src/output.c (output_table_data, output_parser): Likewise.
84 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
86 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
88 * src/reader.c (read_additionnal_code): Rename %%user_code to
90 * src/output.c (output): Rename %%declarations to %%prologue.
91 * src/bison.simple: Echo modifications.
93 2001-08-31 Marc Autret <autret_m@epita.fr>
95 * src/reader.c (readgram): CleanUp.
96 (output_token_defines): Likewise.
97 (packsymbols): Likewise.
99 * src/output.c (output): CPP-out useless code.
101 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
103 * src/reader.c (reader): Delete obsolete call to function
104 output_trailers and output_headers.
105 * src/output.h: Remove obsolete functions prototypes of output_headers
108 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
110 * src/main.c: Include macrotab.h.
111 * src/macrotab.h (macro_entry_s): Constify fields.
112 Adjust functions prototypes.
113 * src/macrotab.c (macro_insert): Constify key and value.
114 (macro_find): Constify key.
115 (macro_insert): Include 'xalloc.h'
116 (macro_insert): Use XMALLOC.
117 (macro_find): Constify return value.
118 * src/output.c (output_table_data): Rename table to table_data.
119 (output_parser): Constify macro_key, macro_value.
121 2001-08-30 Marc Autret <autret_m@epita.fr>
123 * src/reader.c (parse_skel_decl): New.
124 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
125 * src/lex.h (token_t): New token `tok_skel'.
126 * src/lex.c (percent_table): Add skeleton option entry.
129 2001-08-29 Marc Autret <autret_m@epita.fr>
131 * src/bison.simple: Add %%user_code directive at the end.
132 * src/reader.c (read_additionnal_code): New.
134 * src/output.c (output_program): Remove.
137 2001-08-28 Marc Autret <autret_m@epita.fr>
139 * src/output.c (output_actions): Clean up.
140 (output_gram): CPP-out useless code.
141 * src/reader.c (reader): Clean up, CPP-out useless code.
143 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
145 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
147 * src/bison.simple: Add `%%definitions'.
149 2001-08-28 Marc Autret <autret_m@epita.fr>
151 * config/depcomp: New file.
153 2001-08-27 Paul Eggert <eggert@twinsun.com>
155 * src/bison.simple (yyparse): Don't take the address of an
156 item before the start of an array, as that doesn't conform to
159 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
161 * src/output.c (output): Remove the initialization of the macro
162 obstack. It was done too late here.
164 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
166 (reader): Initialize the macro obstack here, since we need it to grow
167 '%define' directives.
169 * src/reader.h: Declare the macro obstack as extern.
171 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
173 * src/output.c (output_parser): Fix. Store single '%' characters in
174 the output obstack instead of throwing them away.
176 2001-08-27 Akim Demaille <akim@epita.fr>
178 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
180 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
182 * lib/Makefile.am: Adjust.
184 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
186 * src/bison.simple: Update and add '%%' directives.
188 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
190 * src/reader.c (reader): Remove calls to 'output_headers' and
191 'output_trailers'. Remove some C output.
192 (readgram): Disable a piece of code that was writing a default
193 definition for 'YYSTYPE'.
194 (reader_output_yylsp): Remove.
195 (packsymbols): Output token defintions to a macro.
196 (copy_definition): Disable C output.
198 * src/reader.c (parse_macro_decl): New function used to parse macro
200 (copy_string2): Put the body of copy_string into this new function.
201 Add a parameter to let the caller choose whether he wants to copy the
202 string delimiters or not.
203 (copy_string): Be a simple call to copy_string2 with the last argument
205 (read_declarations): Add case for macro definition.
206 (copy_identifier): New.
207 (parse_macro_decl): Read macro identifiers using copy_identifier
210 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
212 * src/output.c (prepare): Add prefixed names.
213 (output_parser): Output semantic actions.
214 (output_parser): Fix bug on '%%line' directives.
216 * src/output.c (output_headers): Remove. The C code printed by this
217 function should now be in the skeletons.
218 (output_trailers): Remove.
219 (output): Disable call to 'reader_output_yylsp'.
220 (output_rule_data): Do not output tables to the table obstack.
222 * src/output.c: Remove some C dedicated output.
223 Improve the use of macro and output obstacks.
224 (output_defines): Remove.
226 * src/output.c (output_token_translations): Associate 'translate'
227 table with a macro. No output to the table obstack.
228 (output_gram): Same for 'rhs' and 'prhs'.
229 (output_stos): Same for 'stos'.
230 (output_rule_data): Same for 'r1' and 'r2'.
231 (token_actions): Same for 'defact'.
232 (goto_actions): Same for 'defgoto'.
233 (output_base): Same for 'pact' and 'pgoto'.
234 (output_table): Same for 'table'.
235 (output_check): Same for 'check'.
237 * src/output.c (output_table_data): New function.
238 (output_short_table): Remove.
239 (output_short_or_char_table): Remove.
241 * src/output.c (output_parser): Replace most of the skeleton copy code
242 with something new. Skeletons are now processed character by character
243 rather than line by line, and Bison looks for '%%' macros. This is the
244 first step in making Bison's output process (a lot) more flexible.
245 (output_parser): Use the macro table.
247 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
249 * src/main.c (main): Initialize the macro table.
251 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
253 * src/lex.c (percent_table): Add tok_define.
254 * src/lex.h: Add tok_define.
256 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
258 * src/macrotab.c: New file.
259 * src/macrotab.h: New file.
260 * src/Makefile.am: Update.
262 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
264 * lib/hash.c: New file.
265 * lib/hash.h: New file.
266 * lib/Makefile.am: Update.
268 2001-08-15 Akim Demaille <akim@epita.fr>
272 2001-08-15 Marc Autret <autret_m@epita.fr>
274 * src/reader.c (readgram): Indent output macro YYSTYPE.
275 (packsymbols): Likewise.
276 (output_token_defines): Likewise.
277 * src/files.c: Standardize.
278 (compute_header_macro): New.
279 (defines_obstack_save): New. Use compute_header_macro.
280 (output_files): Update. Use defines_obstack_save.
282 2001-08-15 Akim Demaille <akim@epita.fr>
284 * doc/bison.texinfo (Table of Symbols): Document
287 2001-08-15 Akim Demaille <akim@epita.fr>
289 * missing: Update from CVS Automake.
290 * config/config.guess, config/config.sub, config/texinfo.tex:
293 2001-08-15 Akim Demaille <akim@epita.fr>
295 * Makefile.maint: Sync with CVS Autoconf.
297 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
299 * doc/bison.texinfo: Include GNU Free Documentation License from
301 * doc/fdl.texi: Add to package.
303 2001-08-14 Marc Autret <autret_m@epita.fr>
305 Turn on %{source,header}_extension features.
307 * src/lex.c (percent_table): Un-CPP out header_extension and
309 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
310 (compute_exts_from_src): Remove conditions. It restores priorities
313 2001-08-14 Marc Autret <autret_m@epita.fr>
315 * src/files.c (compute_base_names): Add extensions computing when
316 `--file-prefix' used.
317 Standardize function calls.
319 2001-08-13 Marc Autret <autret_m@epita.fr>
321 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
322 defining it (defined but null disables alloca).
324 2001-08-13 Marc Autret <autret_m@epita.fr>
326 * src/bison.simple (_yy_memcpy): CPP reformat.
328 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
330 * tests/atconfig.in (CPPFLAGS): Fix.
332 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
334 * doc/bison.texinfo: Include GNU General Public License from
336 * doc/gpl.texi: Add to package.
338 2001-08-10 Marc Autret <autret_m@epita.fr>
340 * src/print_graph.h: Fix.
341 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
343 2001-08-10 Akim Demaille <akim@epita.fr>
345 * src/system.h: Provide default declarations for stpcpy, strndup,
348 2001-08-10 Robert Anisko <anisko_r@epita.fr>
350 * doc/bison.texinfo (Locations): Update @$ stuff.
352 2001-08-09 Robert Anisko <anisko_r@epita.fr>
354 * src/bison.simple (YYLLOC_DEFAULT): Update.
357 2001-08-08 Marc Autret <autret_m@epita.fr>
359 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
360 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
361 Reported by Fabrice Bauzac.
363 2001-08-08 Marc Autret <autret_m@epita.fr>
365 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
366 * src/vcg.c (output_node): Fix.
367 * src/vcg.h: Cleanup.
368 * src/print_graph.c: Add comments.
369 (node_output_size): New global variable. Simplify the formatting of
370 the VCG graph output.
371 (print_actions): Unused code is now used. It notifies the final state
372 and no action states in the VCG graph. It also give the reduce actions.
373 The `shift and goto' edges are red and the `go to state' edges are
375 Get the current node name and node_obstack by argument.
376 (node_obstack): New variable.
377 (print_state): Manage node_obstack.
378 (print_core): Use node_obstack given by argument.
379 A node is not only computed here but in print_actions also.
380 (print_graph): CPP out useless code instead of commenting it.
382 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
384 * tests/atconfig.in (CPPFLAGS): Fix.
386 2001-08-07 Akim Demaille <akim@epita.fr>
388 * src/print_graph.c (quote): New.
389 (print_core): Use it.
391 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
393 * src/vcg.c (complain.h): Include it.
394 Unepitaize `return' invocations.
395 [NDEBUG] (main): Remove.
396 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
397 * src/files.c (open_files): Initialize graph_obstack.
398 * src/print_graph.c (print_actions): CPP out useless code.
399 (print_core): Don't output the last `\n' in labels.
401 * src/files.c (output_files): Output the VCG file.
402 * src/main.c (main): Invoke print_graph ();
404 2001-08-06 Marc Autret <autret_m@epita.fr>
406 Automaton VCG graph output.
407 Using option ``-g'' or long option ``--graph'', you can generate
408 a gram_filename.vcg file containing a VCG description of the LALR (1)
409 automaton of your grammar.
411 * src/main.c: Call to print_graph() function.
412 * src/getargs.h: Update.
413 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
414 (graph_flag): New flag.
416 (getargs): Add case `g'.
417 * src/files.c (graph_obstack): New obstack struct.
418 (open_files): Initialize new obstack.
419 (output_files): Saves graph_obstack if required.
420 * src/files.h (graph_obstack): New extern declaration.
421 * src/Makefile.am: Add new source files.
423 2001-08-06 Marc Autret <autret_m@epita.fr>
425 * src/print_graph.c, src/print_graph.h (graph): New.
426 * src/vcg.h: New file.
427 * src/vcg.c: New file, VCG graph handling.
429 2001-08-06 Marc Autret <autret_m@epita.fr>
431 Add of %source_extension and %header_extension which specify
432 the source or/and the header output file extension.
434 * src/files.c (compute_base_names): Remove initialisation of
435 src_extension and header_extension.
436 (compute_exts_from_gf): Update.
437 (compute_exts_from_src): Update.
438 (output_files): Update.
439 * src/reader.c (parse_header_extension_decl): New.
440 (parse_source_extension_decl): New.
441 (read_declarations): New case statements for the new tokens.
442 * src/lex.c (percent_table): Add entries for %source_extension
443 and %header_extension.
444 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
446 2001-08-06 Marc Autret <autret_m@epita.fr>
448 * configure.in: Bump to 1.28c.
449 * doc/bison.texinfo: Texinfo thingies.
451 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
453 * tests/atconfig.in (CPPFLAGS): Add.
454 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
456 2001-08-03 Akim Demaille <akim@epita.fr>
460 2001-08-03 Akim Demaille <akim@epita.fr>
462 * tests/Makefile.am (check-local): Ship testsuite.
463 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
466 2001-08-03 Akim Demaille <akim@epita.fr>
468 * configure.in: Try using -Wformat when compiling.
470 2001-08-03 Akim Demaille <akim@epita.fr>
472 * configure.in: Bump to 1.28b.
474 2001-08-03 Akim Demaille <akim@epita.fr>
476 * src/complain.c: Adjust strerror_r portability issues.
478 2001-08-03 Akim Demaille <akim@epita.fr>
482 2001-08-03 Akim Demaille <akim@epita.fr>
484 * src/getargs.c, src/getarg.h (skeleton)): Constify.
485 * src/lex.c (literalchar): Avoid name clashes on `buf'.
486 * src/getargs.c: Include complain.h.
487 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
488 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
490 2001-08-03 Akim Demaille <akim@epita.fr>
492 * src/reader.c (readgram): Display hidden chars in error messages.
494 2001-08-03 Akim Demaille <akim@epita.fr>
496 Update to gettext 0.10.39.
498 2001-08-03 Akim Demaille <akim@epita.fr>
502 2001-08-01 Marc Autret <autret_m@epita.fr>
504 * doc/bison.texinfo: Update.
505 * doc/bison.1 (mandoc): Update.
506 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
507 * src/files.c: Support output files extensions computing.
508 (src_extension): New static variable.
509 (header_extension): New static variable.
511 (get_extension_index): New function, gets the index of an extension
512 filename in a string.
513 (compute_exts_from_gf): New function, computes extensions from the
514 grammar file extension.
515 (compute_exts_from_src): New functions, computes extensions from the
516 C source file extension, file given by ``-o'' option.
517 (compute_base_names): Update.
518 (output_files): Update.
520 2001-08-01 Robert Anisko <anisko_r@epita.fr>
522 * doc/bison.texi: Document @$.
523 (Locations): New section.
525 2001-07-18 Akim Demaille <akim@epita.fr>
527 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
528 * config/prev-version.txt, config/move-if-change: New.
529 * Makefile.am: Adjust.
531 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
533 * src/bison.simple (yyparse): Suppress warning `comparaison
534 between signed and unsigned'.
536 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
538 * src/getargs.h (raw_flag): Remove.
539 * src/getargs.c: Die on `-r'/`--raw'.
540 * src/lex.c (parse_percent_token): Die on `%raw'.
541 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
542 * tests/calc.at: Suppress test with option `--raw'.
544 2001-07-14 Akim Demaille <akim@epita.fr>
547 * configure.in: Require Autoconf 2.50.
548 Update to gettext 0.10.38.
550 2001-03-16 Akim Demaille <akim@epita.fr>
552 * doc/bison.texinfo: ANSIfy the examples.
554 2001-03-16 Akim Demaille <akim@epita.fr>
556 * getargs.c (skeleton): New variable.
557 (longopts): --skeleton is a new option.
558 (shortopts, getargs): -S is a new option.
559 * getargs.h: Declare skeleton.
560 * output.c (output_parser): Use it.
562 2001-03-16 Akim Demaille <akim@epita.fr>
564 * m4/strerror_r.m4: New.
565 * m4/error.m4: Run AC_FUNC_STRERROR_R.
566 * lib/error.h, lib/error.c: Update.
568 2001-03-16 Akim Demaille <akim@epita.fr>
570 * src/getargs.c (longopts): Clean up.
572 2001-02-21 Akim Demaille <akim@epita.fr>
574 * src/reader.c (gensym): `gensym_count' is your own.
575 Use a static buf to create the symbol name, as token_buffer is no
578 2001-02-08 Akim Demaille <akim@epita.fr>
580 * src/conflicts.c (conflict_report): Be sure not to append to res
581 between two calls, which could happen if both first sprintf were
582 skipped, but not the first cp += strlen.
584 2001-02-08 Akim Demaille <akim@epita.fr>
586 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
587 New, from fileutils 4.0.37.
588 * configure.in: Require Autoconf 2.49c. I took some time before
589 making this decision. This is the only way out for portability
590 issues in Bison, it would mean way too much duplicate effort to
591 import in Bison features implemented in 2.49c since 2.13.
592 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
594 2001-02-02 Akim Demaille <akim@epita.fr>
596 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
597 * lib/xalloc.h, lib/xmalloc.c: Update.
599 2001-01-19 Akim Demaille <akim@epita.fr>
601 Get rid of the ad hoc handling of token_buffer in the scanner: use
604 * src/lex.c (token_obstack): New.
605 (init_lex): Initialize it. No longer call...
606 (grow_token_buffer): this. Remove it.
607 Adjust all the places which used it to use the obstack.
609 2001-01-19 Akim Demaille <akim@epita.fr>
611 * src/lex.h: Rename all the tokens:
612 s/\bENDFILE\b/tok_eof/g;
613 s/\bIDENTIFIER\b/tok_identifier/g;
615 Let them be enums, not #define, to ease debugging.
618 2001-01-18 Akim Demaille <akim@epita.fr>
620 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
621 * src/lex.c (maxtoken, grow_token_buffer): Static.
623 2001-01-18 Akim Demaille <akim@epita.fr>
625 Since we now use obstacks, more % directives can be enabled.
627 * src/lex.c (percent_table): Also accept `%yacc',
628 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
630 Handle the actions for `%semantic_parser' and `%pure_parser' here,
631 instead of returning a token.
632 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
633 * src/reader.c (read_declarations): Adjust.
634 * src/files.c (open_files): Don't call `compute_base_names', don't
635 compute `attrsfile' since they depend upon data which might be
636 *in* the input file now.
637 (output_files): Do it here.
638 * src/output.c (output_headers): Document the fact that this patch
639 introduces a guaranteed SEGV for semantic parsers.
640 * doc/bison.texinfo: Document them.
641 * tests/suite.at: Exercise these %options.
643 2000-12-20 Akim Demaille <akim@epita.fr>
645 Also handle the output file (--verbose) with obstacks.
647 * files.c (foutput): Remove.
648 (output_obstack): New.
649 Adjust all dependencies.
650 * src/conflicts.c: Return a string.
651 * src/system.h (obstack_grow_string): Rename as...
652 (obstack_sgrow): this. Be ready to work with non literals.
653 (obstack_fgrow4): New.
655 2000-12-20 Akim Demaille <akim@epita.fr>
657 * src/files.c (open_files): Fix the computation of short_base_name
658 in the case of `-o foo.tab.c'.
660 2000-12-20 Akim Demaille <akim@epita.fr>
662 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
663 (copy_dollar): Now that everything uses obstacks, get rid of the
666 2000-12-20 Akim Demaille <akim@epita.fr>
668 * src/files.c (open_files): Actually the `.output' file is based
669 on the short_base_name, not base_name.
670 * tests/suite.at (Checking output file names): Adjust.
672 2000-12-20 Akim Demaille <akim@epita.fr>
674 * src/bison.s1: Remove, we now use directly...
675 * src/bison.simple: this.
676 * src/Makefile.am: Use pkgdata instead of data.
678 2000-12-20 Akim Demaille <akim@epita.fr>
680 * src/files.c (guard_obstack): New.
681 (open_files): Initialize it.
682 (output_files): Dump it...
683 * src/files.h: Export it.
684 * src/reader.c (copy_guard): Use it.
686 2000-12-19 Akim Demaille <akim@epita.fr>
688 * src/files.c (outfile, defsfile, actfile): Removed as global
690 (open_files): Don't compute them.
691 (output_files): Adjust.
692 (base_name, short_base_name): Be global.
695 2000-12-19 Akim Demaille <akim@epita.fr>
697 * src/files.c (strsuffix): New.
698 (stringappend): Be just like strcat but allocate.
699 (base_names): Eve out from open_files.
700 Try to simplify the rather hairy computation of base_name and
702 (open_files): Use it.
703 * tests/suite.at (Checking output file names): New test.
705 2000-12-19 Akim Demaille <akim@epita.fr>
707 * src/system.h (obstack_grow_literal_string): Rename as...
708 (obstack_grow_string): this.
709 * src/output.c (output_parser): Recognize `%% actions' instead of
711 * src/bison.s1: s/$/%% actions/.
712 * src/bison.hairy: Likewise.
714 2000-12-19 Akim Demaille <akim@epita.fr>
716 * src/output.c (output_parser): Compute the `#line' lines when
718 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
719 Suggested by Hans Aberg.
721 2000-12-19 Akim Demaille <akim@epita.fr>
723 Let the handling of the skeleton files be local to the procedures
726 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
728 (fparser, open_extra_files): Remove.
729 (open_files, output_files): Don't take care of fparser.
730 * src/files.h: Adjust.
731 * src/output.c (output_parser): Open and close the file to the
733 * src/reader.c (read_declarations): When %semantic_parser, open
736 2000-12-19 Akim Demaille <akim@epita.fr>
738 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
739 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
741 2000-12-19 Akim Demaille <akim@epita.fr>
743 * src/files.c (open_files): Yipee! We no longer need all the code
744 looking for `/tmp' since we have no tmp file.
746 2000-12-19 Akim Demaille <akim@epita.fr>
748 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
750 * src/files.c (open_files): Less dependency on MSDOS etc.
752 2000-12-14 Akim Demaille <akim@epita.fr>
754 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
755 Provide a default definition.
756 Use it when executing the default @ action.
757 * src/reader.c (reader_output_yylsp): No longer include
758 `timestamp' and `text' in the default YYLTYPE.
760 2000-12-12 Akim Demaille <akim@epita.fr>
762 * src/reader.c (copy_definition, parse_union_decl, copy_action)
763 (copy_guard): Quote the file names.
764 Reported by Laurent Mascherpa.
766 2000-12-12 Akim Demaille <akim@epita.fr>
768 * src/output.c (output_headers, output_program, output): Be sure
769 to escape special characters when outputting filenames.
770 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
771 (output_headers): Don't depend on them, Use ACTSTR.
773 2000-11-17 Akim Demaille <akim@epita.fr>
775 * lib/obstack.h: Formatting changes.
776 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
777 prevents type checking.
778 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
779 cast the value to (void *): assigning a `foo *' to a `void *'
781 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
782 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
785 2000-11-17 Akim Demaille <akim@epita.fr>
787 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
789 (suite.m4, regression.m4, calc.m4): these.
790 * tests/atgeneral.m4: Update from CVS Autoconf.
792 2000-11-17 Akim Demaille <akim@epita.fr>
794 * tests/regression.m4 (%union and --defines): New test,
795 demonstrating a current bug in the obstack implementation.
797 2000-11-17 Akim Demaille <akim@epita.fr>
799 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
801 Use them to declare the variables which are global or local to
804 2000-11-17 Akim Demaille <akim@epita.fr>
806 * acconfig.h: Remove, no longer used.
808 2000-11-07 Akim Demaille <akim@epita.fr>
810 * src: s/Copyright (C)/Copyright/g.
812 2000-11-07 Akim Demaille <akim@epita.fr>
814 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
816 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
818 2000-11-07 Akim Demaille <akim@epita.fr>
820 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
821 Merge in a single CPP if/else.
823 2000-11-07 Akim Demaille <akim@epita.fr>
825 * src/output.c (output): Remove useless variables.
826 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
827 argument `data' for consistency with the prototypes.
829 (obstack_copy, obstack_copy0): Rename the second argument as
830 `address' for consistency. Qualify it `const'.
831 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
832 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
833 `const' their input argument (`data' or `address').
834 Adjust the corresponding macros to include `const' in casts.
836 2000-11-03 Akim Demaille <akim@epita.fr>
838 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
839 s/PFILE1/BISON_HAIRY/.
842 2000-11-03 Akim Demaille <akim@epita.fr>
844 For some reason, this was not applied.
846 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
847 `unlink': it's no longer used.
849 2000-11-03 Akim Demaille <akim@epita.fr>
851 * src/files.c (skeleton_find): New function, eved out of...
852 (open_files, open_extra_files): here.
854 2000-11-03 Akim Demaille <akim@epita.fr>
858 * src/files.c (obstack_save): New function.
860 (output_files): this.
862 * src/main.c (main): Don't use `atexit' to register `done', since
863 it no longer has to remove tmp files, just call `output_files'
864 when there are no errors.
866 2000-11-02 Akim Demaille <akim@epita.fr>
868 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
869 `unlink': it's no longer used.
870 * src/files.h: Formatting changes.
872 2000-11-02 Akim Demaille <akim@epita.fr>
874 Remove the last uses of mktemp and unlink/delete.
876 * src/files.c (fdefines, ftable): Removed.
877 (defines_ostack, table_obstack): New.
878 Adjust dependencies of the former into uses of the latter.
879 * src/output.c (output_short_or_char_table, output_short_table):
880 Convert to using obstacks.
881 * src/reader.c (copy_comment2): Accept one FILE * and two
883 (output_token_defines, reader_output_yylsp): Use obstacks.
884 * src/system.h (obstack_fgrow3): New.
886 2000-11-01 Akim Demaille <akim@epita.fr>
888 Change each use of `fattrs' into a use of `attrs_obstack'.
890 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
891 * src/files.c (fattrs): Remove.
892 (attrs_obstack): New.
893 Adjust all dependencies.
894 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
896 2000-11-01 Akim Demaille <akim@epita.fr>
899 Change each use of `faction' into a use of `action_obstack'.
901 * lib/obstack.h, lib/obstack.c: New files.
902 * src/files.c (faction): Remove.
903 (action_obstack): New.
904 Adjust all dependencies.
906 2000-10-20 Akim Demaille <akim@epita.fr>
908 * lib/quote.h (PARAMS): New macro. Use it.
910 2000-10-16 Akim Demaille <akim@epita.fr>
912 * src/output.c (output_short_or_char_table): New function.
913 (output_short_table, output_token_translations): Use it.
914 (goto_actions): Use output_short_table.
916 2000-10-16 Akim Demaille <akim@epita.fr>
918 * src/symtab.c (bucket_new): New function.
921 * src/output.c (output_short_table): New argument to display the
922 comment associated with the table.
924 (output_gram): Use it.
925 (output_rule_data): Nicer output layout for YYTNAME.
927 2000-10-16 Akim Demaille <akim@epita.fr>
929 * src/lex.c (read_typename): New function.
931 * src/reader.c (copy_dollar): Likewise.
933 2000-10-16 Akim Demaille <akim@epita.fr>
935 * src/reader.c (copy_comment2): Expect the input stream to be on
936 the `/' which is suspected to open a comment, instead of being
937 called after `//' or `/*' was read.
938 (copy_comment, copy_definition, parse_union_decl, copy_action)
939 (copy_guard): Adjust.
941 2000-10-16 Akim Demaille <akim@epita.fr>
943 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
944 `read_signed_integer'.
946 2000-10-16 Akim Demaille <akim@epita.fr>
948 * src/reader.c (copy_dollar): New function.
949 (copy_guard, copy_action): Use it.
951 2000-10-16 Akim Demaille <akim@epita.fr>
953 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
954 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
955 New files, from Fileutils 4.0.27.
956 * src/main.c (printable_version): Remove.
957 * src/lex.c, src/reader.c: Use `quote'.
959 2000-10-04 Akim Demaille <akim@epita.fr>
961 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
963 2000-10-04 Akim Demaille <akim@epita.fr>
965 * doc/bison.texinfo: Various typos spotted by Neil Booth.
967 2000-10-04 Akim Demaille <akim@epita.fr>
969 When a literal string is used to define two different tokens,
970 `bison -v' segfaults.
971 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
973 * tests/regression.m4: New file.
974 Include the core of the sample provided by Piotr Gackiewicz.
975 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
978 2000-10-04 Akim Demaille <akim@epita.fr>
980 * src/reader.c (parse_expect_decl): Keep `count' within the size
984 2000-10-02 Paul Eggert <eggert@twinsun.com>
986 * bison.s1 (yyparse): Assign the default value
987 unconditionally, to avoid a GCC warning and make the parser a
990 2000-10-02 Akim Demaille <akim@epita.fr>
992 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
995 2000-10-02 Akim Demaille <akim@epita.fr>
997 * src/derives.c, src/print.c, src/reduce.c: To ease the
998 translation, move some `\n' out of the translated strings.
1000 2000-10-02 Akim Demaille <akim@epita.fr>
1002 The location tracking mechanism is precious for parse error
1003 messages. Nevertheless, it is enabled only when `@n' is used in
1004 the grammar, which is a different issue (you can use it in error
1005 message, but not in the grammar per se). Therefore, there should
1006 be another means to enable it.
1008 * src/getargs.c (getargs): Support `--locations'.
1010 * src/getargs.h (locationsflag): Export it.
1011 * src/lex.c (percent_table): Support `%locations'.
1012 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1013 with `locationsflag'.
1014 * doc/bison.texinfo: Document `--locations' and `%locations'.
1016 * tests/calc.m4: Test it.
1018 For regularity of the names, replace each
1019 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1020 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1021 In addition replace each `flag' with `_flag'.
1023 2000-10-02 Akim Demaille <akim@epita.fr>
1025 Also test parse error messages, including with YYERROR_VERBOSE.
1027 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1029 Use it to check the computations.
1030 Use it to check `nonassoc' is honored.
1031 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1032 `--yyerror-verbose'.
1033 (_AT_CHECK_CALC): Adjust to this option.
1034 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1036 2000-10-02 Akim Demaille <akim@epita.fr>
1038 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1039 the latter demonstrates a flaw in the handling of non debugging
1040 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1041 was used in order to simplify:
1057 unfortunately this leads to a CPP conflict when
1058 `--name-prefix=foo' is used since it produces `#define yydebug
1061 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1062 (YYDPRINTF): New macro.
1064 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1066 Also test `--verbose', `--defines' and `--name-prefix'.
1068 2000-10-02 Akim Demaille <akim@epita.fr>
1070 Improve the readability of the produced parsers.
1072 * src/bison.s1: Formatting changes.
1073 Improve the comment related to the `$' mark.
1074 (yydefault): Don't fall through to `yyresume': `goto' there.
1075 * src/output.c (output_parser): When the `$' is met, skip the end
1077 New variable, `number_of_dollar_signs', to check there's exactly
1078 one `$' in the parser skeleton.
1080 2000-10-02 Akim Demaille <akim@epita.fr>
1082 * lib/xstrdup.c: New file, from the fileutils.
1083 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1084 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1085 instead of strlen + xmalloc + strcpy.
1086 * src/symtab.c (copys): Remove, use xstrdup instead.
1088 2000-10-02 Akim Demaille <akim@epita.fr>
1090 * src/gram.h (associativity): New enum type which replaces the
1091 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1092 `right_assoc', `left_assoc' and `non_assoc'.
1093 Adjust all dependencies.
1094 * src/reader.c: Formatting changes.
1095 (LTYPESTR): Don't define it, use it as a literal in
1096 `reader_output_yylsp'.
1097 * src/symtab.h (symbol_class): New enum type which replaces the
1098 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1099 `sunknown', `stoken and `snterm'.
1101 2000-10-02 Akim Demaille <akim@epita.fr>
1103 * src/getargs.c (fixed_outfiles): Rename as...
1104 (yaccflag): for consistency and accuracy.
1105 Adjust dependencies.
1107 2000-10-02 Akim Demaille <akim@epita.fr>
1109 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1110 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1111 difficult and introduced a lot of core dump. It turns out that
1112 Bison used an implementation of `xmalloc' based on `calloc', and
1113 at various places it does depend upon the initialization to 0. I
1114 have not tried to isolate the pertinent places, and all the former
1115 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1116 someone should address this issue.
1118 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1119 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1121 Adjust dependencies.
1122 * src/warshall.h: New file.
1125 2000-10-02 Akim Demaille <akim@epita.fr>
1127 Various anti-`extern in *.c' changes.
1129 * src/system.h: Include `assert.h'.
1131 2000-10-02 Akim Demaille <akim@epita.fr>
1133 * src/state.h (nstates, final_state, first_state, first_shift)
1134 (first_reduction): Move their exportation from here...
1135 * src/LR0.h: to here.
1136 Adjust dependencies.
1137 * src/getargs.c (statisticsflag): New variable.
1138 Add support for `--statistics'.
1139 Adjust dependencies.
1141 Remove a lot of now useless `extern' statements in most files.
1143 2000-10-02 Akim Demaille <akim@epita.fr>
1145 * src/LR0.h: New file.
1148 2000-10-02 Akim Demaille <akim@epita.fr>
1150 * src/print.h: New file.
1152 * src/print.c: Formatting and ordering changes.
1153 (verbose, terse): Replace with...
1154 (print_results): this new function.
1155 Adjust dependencies.
1157 2000-10-02 Akim Demaille <akim@epita.fr>
1159 * src/conflicts.c (conflict_report): New function.
1160 (conflict_log, verbose_conflict_log): Replace with...
1161 (print_conflicts): this function.
1162 Adjust dependencies.
1163 * src/conflicts.h: New file.
1164 Propagate its inclusion.
1166 2000-10-02 Akim Demaille <akim@epita.fr>
1168 * src/nullable.h: New file.
1169 Propagate its inclusion.
1170 * src/nullable.c: Formatting changes.
1172 2000-10-02 Akim Demaille <akim@epita.fr>
1174 * src/reduce.h: New file.
1175 Propagate its inclusion.
1176 * src/reduce.c: Topological sort and other formatting changes.
1177 (bool, TRUE, FALSE): Move their definition to...
1178 * src/system.h: here.
1180 2000-10-02 Akim Demaille <akim@epita.fr>
1182 * src/files.c: Formatting changes.
1183 (tryopen, tryclose, openfiles): Rename as...
1184 (xfopen, xfclose, open_files): this.
1185 (stringappend): static.
1186 * src/files.h: Complete the list of exported symbols.
1189 2000-10-02 Akim Demaille <akim@epita.fr>
1191 * src/reader.h: New file.
1192 Propagate its use instead of tedious list of `extern' and
1194 * src/reader.c: Formatting changes, topological sort,
1197 2000-10-02 Akim Demaille <akim@epita.fr>
1199 * src/lex.h: Prototype `lex.c' exported functions.
1200 * src/reader.c: Adjust.
1201 * src/lex.c: Formatting changes.
1202 (safegetc): Rename as...
1205 2000-10-02 Akim Demaille <akim@epita.fr>
1207 * src/lalr.h: New file.
1208 Propagate its inclusion instead of prototypes and `extern'.
1209 * src/lalr.c: Formatting changes, topological sorting etc.
1211 2000-10-02 Akim Demaille <akim@epita.fr>
1213 * src/output.c (token_actions): Introduce a temporary array,
1214 YYDEFACT, that makes it possible for this function to use
1217 2000-10-02 Akim Demaille <akim@epita.fr>
1219 `user_toknums' is output as a `short[]' in `output.c', while it is
1220 defined as a `int[]' in `reader.c'. For consistency with the
1221 other output tables, `user_toknums' is now defined as a table of
1224 * src/reader.c (user_toknums): Be a short table instead of an int
1226 Adjust dependencies.
1228 Factor the short table outputs.
1230 * src/output.c (output_short_table): New function.
1231 * src/output.c (output_gram, output_stos, output_rule_data)
1232 (output_base, output_table, output_check): Use it.
1234 2000-10-02 Akim Demaille <akim@epita.fr>
1236 * src/output.c (output): Topological sort of the functions, in
1237 order to get rid of the `static' prototypes.
1238 No longer use `register'.
1239 * src/output.h: New file.
1240 Propagate its inclusion in files explicitly prototyping functions
1243 2000-09-21 Akim Demaille <akim@epita.fr>
1245 * src/atgeneral.m4: Update from Autoconf.
1247 2000-09-21 Akim Demaille <akim@epita.fr>
1249 * src/closure.h: New file.
1250 * src/closure.c: Formatting changes, topological sort over the
1251 functions, use of closure.h.
1252 (initialize_closure, finalize_closure): Rename as...
1253 (new_closure, free_closure): these. Adjust dependencies.
1254 * src/LR0.c: Formatting changes, topological sort, use of
1256 (initialize_states): Rename as...
1258 * src/Makefile.am (noinst_HEADERS): Adjust.
1260 2000-09-20 Akim Demaille <akim@epita.fr>
1262 * src/acconfig.h: Don't protect config.h against multiple
1264 Don't define PARAMS.
1265 * src/system.h: Define PARAMS.
1266 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1267 purpose of config.h. system.h must not try to fix wrong
1268 definitions in config.h.
1270 2000-09-20 Akim Demaille <akim@epita.fr>
1272 * src/derives.h: New file.
1273 * src/main.c, src/derives.h: Use it.
1275 * src/Makefile.am (noinst_HEADERS): Adjust.
1277 2000-09-20 Akim Demaille <akim@epita.fr>
1279 * tests/atgeneral.m4: Update from Autoconf.
1280 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1281 (AT_CHECK_CALC): New macros.
1282 Use these macros to test bison with options `', `--raw',
1283 `--debug', `--yacc', `--yacc --debug'.
1285 2000-09-19 Akim Demaille <akim@epita.fr>
1287 * src/output.c: Formatting changes.
1288 * src/machine.h: Remove, leaving its contents in...
1289 * src/system.h: here.
1291 Adjust all dependencies on stdio.h and machine.h.
1292 * src/getargs.h: New file.
1293 Let all `extern' declarations about getargs.c be replaced with
1294 inclusion of `getargs.h'.
1295 * src/Makefile.am (noinst_HEADERS): Adjust.
1297 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1299 (yyerror): Returns void, not int.
1300 * doc/bison.texinfo: Formatting changes.
1302 2000-09-19 Akim Demaille <akim@epita.fr>
1304 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1307 2000-09-18 Akim Demaille <akim@epita.fr>
1309 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1310 * src/Makefile.am (INCLUDES): Don't.
1311 Be ready to fetch headers in lib/.
1313 2000-09-18 Akim Demaille <akim@epita.fr>
1315 * doc/bison.texinfo: Update the copyright.
1316 ANSIfy and GNUify the examples.
1317 Remove the old menu.
1319 2000-09-18 Akim Demaille <akim@epita.fr>
1321 First set of tests: use the `calc' example from the documentation.
1323 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1324 is defined only when YYDEBUG is.
1325 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1326 * src/files.c (tryopen, tryclose): Formatting changes.
1327 Move to the top and be static.
1328 * src/reader.c (read_signed_integer): Likewise.
1329 * tests/calc.m4: New file.
1330 * Makefile.am, suite.m4: Adjust.
1331 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1333 2000-09-18 Akim Demaille <akim@epita.fr>
1335 Add support for an Autotest test suite for Bison.
1337 * m4/m4.m4, m4/atconfig.m4: New files.
1338 * m4/Makefile.am (EXTRA_DIST): Adjust.
1339 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1341 * src/getargs.c: Display a more standard --version message.
1342 * src/reader.c (reader): Formatting changes.
1343 No longer depend upon VERSION_STRING.
1344 * configure.in: No longer use `dnl'.
1345 Set up the test suite and the new directory `tests/.
1346 (VERSION_STRING): Remove.
1348 2000-04-14 Akim Demaille <akim@epita.fr>
1350 * src/reader.c (copy_comment2): New function, same as former
1351 `copy_comment', but outputs into two FILE *.
1352 (copy_comment): Use it.
1353 (parse_union_decl): Use it.
1354 (get_type, parse_start_decl): Use the same `invalid' message.
1355 (parse_start_decl, parse_union_decl): Use the same `multiple'
1357 (parse_union_decl, copy_guard, copy_action): Use the same
1358 `unmatched' message.
1359 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1361 2000-03-31 Akim Demaille <akim@epita.fr>
1363 * src/files.c (tryopen, tryclose): Move to the top.
1366 2000-03-31 Akim Demaille <akim@epita.fr>
1368 * src/main.c (main): Don't call `done', exit does it.
1370 2000-03-31 Akim Demaille <akim@epita.fr>
1372 * allocate.c: s/return (foo)/return foo/.
1375 * output.c: Likewise.
1376 * reader.c: Likewise.
1377 * symtab.c: Likewise.
1378 * vmsgetargs.c: Likewise.
1380 2000-03-31 Akim Demaille <akim@epita.fr>
1382 Clean up the error reporting functions.
1384 * src/report.c: New file.
1385 * src/report.h: Likewise.
1386 * src/Makefile.am: Adjust.
1387 * m4/error.m4: New file.
1388 * m4/Makefile.am: Adjust.
1389 * configure.in (jm_PREREQ_ERROR): Call it.
1390 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1392 (fatal, fatals): Remove. All callers use complain.c::fatal.
1393 (warn, warni, warns, warnss, warnss): Remove. All callers use
1394 complain.c::complain.
1395 (toomany): Remove, use fatal instead.
1396 * src/files.c (done): No argument, use complain_message_count.
1397 * src/main.c (main): Register `done' to `atexit'.
1399 * src/getargs.c (usage): More `fputs', less `fprintf'.
1401 2000-03-28 Akim Demaille <akim@epita.fr>
1403 * lib/: New directory.
1404 * Makefile.am (SUBDIRS): Adjust.
1405 * configure.in: Adjust.
1406 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1408 * src/alloca.c: Moved to lib/.
1409 * src/getopt.c: Likewise.
1410 * src/getopt1.c: Likewise.
1411 * src/getopt.h: Likewise.
1412 * src/ansi2knr.c: Likewise.
1413 * src/ansi2knr.1: Likewise.
1414 * src/Makefile.am: Adjust.
1415 * lib/Makefile.am: New file.
1417 2000-03-28 Akim Demaille <akim@epita.fr>
1419 * src/getargs.c (usage): Refresh the help message.
1421 2000-03-17 Akim Demaille <akim@epita.fr>
1423 * src/getopt1.c: Updated from textutils 2.0e
1424 * src/getopt.c: Likewise.
1425 * src/getopt.h: Likewise.
1427 2000-03-17 Akim Demaille <akim@epita.fr>
1429 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1430 the file name, not the whole `#line LINE FILE'.
1432 2000-03-17 Akim Demaille <akim@epita.fr>
1434 On syntax errors, report the token on which we choked.
1436 * src/bison.s1 (yyparse): In the label yyerrlab, when
1437 YYERROR_VERBOSE, add yychar in msg.
1439 2000-03-17 Akim Demaille <akim@epita.fr>
1441 * src/reader.c (copy_at): New function.
1442 (copy_guard): Use it.
1443 (copy_action): Use it.
1445 2000-03-17 Akim Demaille <akim@epita.fr>
1447 Be kind to translators, save some useless translations.
1449 * src/main.c (banner): New function.
1450 (fatal_banner): Use it.
1451 (warn_banner): Use it.
1453 2000-03-17 Akim Demaille <akim@epita.fr>
1455 * src/reader.c (copy_definition): Use copy_string and
1456 copy_comment. Removed now unused `match', `ended',
1458 (copy_comment, copy_string): Moved, to be visible from
1461 2000-03-17 Akim Demaille <akim@epita.fr>
1463 * src/reader.c (copy_string): Declare `static inline'. No
1464 problems with inline, since it is checked by configure.
1465 (copy_comment): Likewise.
1467 2000-03-17 Akim Demaille <akim@epita.fr>
1469 * src/reader.c (packsymbols): Formatting changes.
1471 2000-03-17 Akim Demaille <akim@epita.fr>
1473 * src/reader.c (copy_comment): New function, factored out from:
1474 (copy_action): Use it. Removed now unused `match', `ended',
1476 (copy_guard): Likewise.
1478 2000-03-17 Akim Demaille <akim@epita.fr>
1480 * src/reader.c (copy_string): New function, factored out from:
1481 (copy_action): Use it.
1482 (copy_guard): Likewise.
1484 2000-03-17 Akim Demaille <akim@epita.fr>
1486 Change the handling of @s so that they behave exactly like $s.
1487 There is now a pseudo variable @$ (readble and writable), location
1488 of the lhs of the rule (by default ranging from the location of
1489 the first symbol of the rhs, to the location of the last symbol,
1490 or, if the rhs is empty, YYLLOC).
1492 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1494 (yyparse): When providing a default semantic action, provide a
1495 default location action.
1496 (after the $): No longer change `*YYLSP', just stack YYLOC the
1497 same way you stack YYVAL.
1498 * src/reader.c (read_declarations): Use warns.
1499 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1500 (copy_action, case '@'): Likewise.
1501 Use a standard error message, to save useless work from
1504 2000-03-17 Akim Demaille <akim@epita.fr>
1506 * src/bison.s1: Formatting and cosmetics changes.
1507 * src/reader.c: Likewise.
1508 Update the Copyright notice.
1510 2000-03-17 Akim Demaille <akim@epita.fr>
1512 * src/bison.s1 (#line): All set to `#line' only, since the
1513 Makefile now handles them.
1515 2000-03-16 Akim Demaille <akim@epita.fr>
1517 * src/output.c (output_rule_data): Output the documentation of
1519 (Copyright notice): Update.
1522 2000-03-16 Akim Demaille <akim@epita.fr>
1524 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1525 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1526 One `#if YYDEBUG' remains, since it uses variables which are
1527 defined only if `YYDEBUG != 0'.
1529 2000-03-16 Akim Demaille <akim@epita.fr>
1531 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1532 and related variables so that the similarities are highlighted.
1534 2000-03-16 Akim Demaille <akim@epita.fr>
1536 * src/bison.s1: Properly indent CPP directives.
1538 2000-03-16 Akim Demaille <akim@epita.fr>
1540 * src/bison.s1: Properly indent the `alloca' CPP section.
1542 2000-03-16 Akim Demaille <akim@epita.fr>
1544 Do not hard code values of directories in `configure.in'.
1545 Update the `configure' tool chain.
1547 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1549 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1550 (AC_OUTPUT): Add m4/Makefile.
1551 Bump to bison 1.28a, 1.29 has never been released.
1552 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1553 handled via src/Makefile.am.
1554 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1555 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1557 * Makefile.am (SUBDIRS): Add m4.
1558 (ACLOCAL_AM_FLAGS): New variable.
1559 (AUTOMAKE_OPTIONS): Add check-news.
1560 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1561 the proper line number and file name.
1562 (DEFS): Propagate the location of bison library files and of the
1564 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1566 * acinclude.m4: Remove, replaced by the directory m4.
1567 * m4/Makefile.am (EXTRA_DIST): New variable.
1568 * m4/gettext.m4: New file, from the fileutils.
1569 * m4/lcmessage.m4: Likewise
1570 * m4/progtest.m4: Likewise.
1571 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1573 2000-03-10 Akim Demaille <akim@epita.fr>
1576 Formatting changes of various comments.
1577 Respect the GNU coding standards at various places.
1578 Don't use `_()' when no translation is needed.
1580 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1583 OS/2 honors TMPDIR environment variable.
1585 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1587 * doc/bison.texinfo: Tweaked spelling and grammar.
1589 Removed reference to price of printed copy.
1590 Mention BISON_SIMPLE and BISON_HAIRY.
1592 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1594 * configure.in, NEWS:
1595 Bison 1.29 released.
1597 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1599 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1600 Added reference card.
1602 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1604 * po/ru.po: Added Russian translation.
1606 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1608 * configure.in: Added Russian translation.
1610 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1612 * configure.in, NEWS, README:
1613 Released version 1.28.
1615 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1618 Squashed redefinition warning on some systems.
1620 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1621 Have configure build version string instead of relying on ANSI string
1624 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1626 * po/POTFILES.in: Got rid of version.c.
1628 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1630 * acconfig.h, configure.in:
1631 Have configure build version string instead of relying on ANSI string
1634 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1637 Dropped mention of `+' for long-named options.
1639 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1641 * src/files.c: Added <unistd.h> for unlink().
1643 * src/Makefile.am, src/system.h:
1646 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1648 * README: Added a FAQ list.
1650 * configure.in, acconfig.h:
1653 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1655 * doc/FAQ, doc/Makefile.am:
1658 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1660 * src/alloc.h, src/symtab.h, src/version.c:
1661 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1663 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1665 * src/.cvsignore, src/Makefile.am:
1666 Reorganized: sources in `src', documentation in `doc'.
1668 * src/lex.c (literalchar):
1669 fixed the code for escaping double quotes (thanks
1672 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1674 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1675 Adjusted paths to reflect directory reorganization.
1677 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1679 * doc/.cvsignore, doc/Makefile.am:
1680 Reorganized: sources in `src', documentation in `doc'.
1682 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1685 Updated AC_INIT file to reflect directory reorganization.
1687 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1688 Reorganized: sources in `src', documentation in `doc'.
1690 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1693 Don't declare calloc() and realloc() if not necessary.
1695 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1697 * configure.in, acconfig.h, acinclude.m4:
1698 Don't declare calloc() and realloc() if not necessary.
1700 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1702 * po/.cvsignore: Added i18n support.
1704 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1706 * acconfig.h, configure.in, Makefile.am:
1709 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1711 * src/bison.s1: Fixed #line numbers.
1713 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1715 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1716 Added PO files from Translation Project.
1718 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1721 Added support for non-ANSI compilers (ansi2knr).
1723 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1725 * configure.in: Bumped version number to 1.27.
1728 Added `bison.simple' to list of files removed by `make distclean'.
1730 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1732 * src/files.c, src/files.h:
1733 Defined locations of parser files in config.h instead of Makefile.
1735 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1737 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1738 Defined locations of parser files in config.h instead of Makefile.
1740 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1743 Removed inappropriate use of $< macro.
1745 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1747 * po/Makefile.in.in, po/POTFILES.in:
1748 Add `po' directory skeleton.
1750 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1752 * README: Document help-bison list.
1754 * configure.in: Add check for mkstemp().
1756 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1758 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1759 Hush a few compiler warnings.
1762 Add tryclose(), which verifies that fclose was successful.
1763 Hush a couple of compiler warnings.
1765 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1767 * Makefile.am, OChangeLog:
1768 ChangeLog is now automatically generated. Include the old version as
1771 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1773 * 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:
1776 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1778 * doc/bison.texinfo: Fix formatting glitch.
1780 * doc/bison.texinfo: Update FSF address.
1782 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1784 * acconfig.h: Update FSF address.
1786 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1789 Don't define PACKAGE here, since config.h defines it.
1791 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1793 * src/reader.c: Update copyright date.
1796 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1797 favor of output directly to stderr (avoids buffer overruns).
1799 * src/reader.c: Some checks for premature EOF.
1801 * 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:
1802 Use prototypes if the compiler understands them.
1804 * src/files.c: Honor TMPDIR on Unix hosts.
1805 Use prototypes if the compiler understands them.
1808 Fix a couple of buffer overrun bugs.
1809 Use prototypes if the compiler understands them.
1811 * src/system.h: Include unistd.h and ctype.h.
1812 Use #ifdef instead of #if for NLS symbols.
1814 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1816 * doc/bison.texinfo:
1817 Delete comment "consider using @set for edition number, etc..." since
1818 we now are doing so.
1820 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1823 Use prototypes if the compiler understands them.
1825 * NEWS: Document 1.26 highlights.
1827 * Makefile.am: Require Automake 1.3 or later.
1830 Use prototypes if the compiler understands them.
1832 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1835 Use VERSION symbol from automake for version number.
1837 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1839 * acconfig.h, configure.in, version.cin:
1840 Use VERSION symbol from automake for version number.
1842 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1845 Distribute original version of simple parser (bison.s1), not built
1846 version (bison.simple).
1848 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1850 * doc/bison.texinfo: Add info dir entry.
1852 * doc/bison.texinfo:
1853 Let automake put version number into documentation.
1855 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1857 * src/bison.cld, src/build.com, src/vmshlp.mar:
1858 Add non-RCS files from /gd/gnu/bison.
1860 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1863 Document the BISON_HAIRY and BISON_SIMPLE variables.
1865 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1867 * src/version.c: Build version.c automatically.
1870 Fix token numbering (used to start at 258, not 257).
1872 * src/system.h: Include config.h.
1874 * src/getargs.c: Update bug report address.
1876 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1877 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1879 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1882 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1884 * configure.in, version.cin:
1885 Build version.c automatically.
1887 * AUTHORS: Add AUTHORS file.
1889 * README: Update bug report address.
1892 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1894 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1897 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1899 * doc/bison.texinfo: Clean up some formatting.
1901 1998-05-05 Richard Stallman <rms@gnu.org>
1903 * doc/bison.texinfo:
1904 Explain better why to make a pure parser.
1906 1998-01-05 Richard Stallman <rms@gnu.org>
1908 * src/files.c (openfiles):
1909 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1910 find a temporary directory, if possible. Do not unlink files while
1913 1997-08-25 Richard Stallman <rms@gnu.org>
1915 * src/reader.c (stack_offset;):
1916 Change some warni to warns.
1918 * src/lex.c (literalchar): Use warns, not warni.
1920 1997-06-28 Richard Stallman <rms@gnu.org>
1922 * src/bison.s1: Add a Bison version comment.
1924 * src/main.c (fatal, warn, berror):
1927 1997-06-28 Richard Stallman <rms@gnu.org>
1929 * Makefile.in (bison_version): New variable.
1930 (dist): Use that variable.
1931 (bison.s1): Substitute the Bison version into bison.simple.
1933 * bison.simple: Add a Bison version comment.
1935 1997-06-18 Richard Stallman <rms@gnu.org>
1937 * src/main.c (fatal, warn, berror):
1938 Make error messages standard.
1939 (toomany): Improve error message text.
1941 * 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:
1942 new.h renamed to alloc.h.
1944 1997-06-18 Richard Stallman <rms@gnu.org>
1946 * Makefile.in: new.h renamed to alloc.h.
1948 1997-05-24 Richard Stallman <rms@gnu.org>
1950 * src/lex.c (literalchar):
1951 Fix the code for escaping \, " and '.
1953 (lex): Avoid trouble when there are many chars
1954 to discard in a char literal with just several chars in it.
1956 1997-05-17 Richard Stallman <rms@gnu.org>
1959 Use malloc, if using alloca is troublesome.
1960 (YYSTACK_USE_ALLOCA): New flag macro.
1961 Define it for some systems and compilers.
1962 (YYSTACK_ALLOC): New macro.
1963 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1964 If it was malloc'd, free it.
1966 1997-05-17 Richard Stallman <rms@gnu.org>
1969 Use malloc, if using alloca is troublesome.
1970 (YYSTACK_USE_ALLOCA): New flag macro.
1971 Define it for some systems and compilers.
1972 (YYSTACK_ALLOC): New macro.
1973 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1974 If it was malloc'd, free it.
1976 1997-04-23 Richard Stallman <rms@gnu.org>
1979 (alloca) [__hpux]: Always define as __builtin_alloca.
1981 1997-04-23 Richard Stallman <rms@gnu.org>
1984 (alloca) [__hpux]: Always define as __builtin_alloca.
1986 1997-04-22 Richard Stallman <rms@gnu.org>
1989 [__hpux]: Include alloca.h (right for HPUX 10)
1990 instead of declaring alloca (right for HPUX 9).
1992 * src/bison.s1 (__yy_memcpy):
1993 Declare arg `count' as unsigned int.
1994 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1996 1997-04-22 Richard Stallman <rms@gnu.org>
1999 [__hpux]: Include alloca.h (right for HPUX 10)
2000 instead of declaring alloca (right for HPUX 9).
2002 * bison.simple (__yy_memcpy):
2003 Declare arg `count' as unsigned int.
2004 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2006 1997-01-03 Richard Stallman <rms@gnu.org>
2008 * src/allocate.c: [__STDC__ or _MSC_VER]:
2009 Declare calloc and realloc to return void *.
2011 1997-01-02 Richard Stallman <rms@gnu.org>
2014 [_MSC_VER]: Include stdlib.h and process.h.
2015 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2017 * src/main.c (main): Return FAILURE as a value.
2018 (printable_version): Declare arg as int, not char.
2020 1997-01-02 Richard Stallman <rms@gnu.org>
2022 * Makefile.in (dist):
2023 Explicitly check for symlinks, and copy them.
2025 1996-12-19 Richard Stallman <rms@gnu.org>
2028 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2030 1996-12-18 Paul Eggert <eggert@gnu.org>
2032 * src/bison.s1 (yyparse):
2033 If __GNUC__ and YYPARSE_PARAM are both defined,
2034 declare yyparse to have a void * argument.
2036 1996-12-18 Paul Eggert <eggert@gnu.org>
2038 * bison.simple (yyparse):
2039 If __GNUC__ and YYPARSE_PARAM are both defined,
2040 declare yyparse to have a void * argument.
2042 1996-12-17 Richard Stallman <rms@gnu.org>
2044 * src/reduce.c (nbits): Add some casts.
2046 1996-08-12 Richard Stallman <rms@gnu.org>
2048 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2050 1996-08-12 Richard Stallman <rms@gnu.org>
2052 * bison.simple: Test _MSDOS as well as _MSDOS_.
2054 1996-07-31 Richard Stallman <rms@gnu.org>
2057 [__sun && __i386]: Include alloca.h.
2059 1996-07-31 Richard Stallman <rms@gnu.org>
2062 [__sun && __i386]: Include alloca.h.
2064 1996-07-30 Richard Stallman <rms@gnu.org>
2066 * src/bison.s1: Comment change.
2068 * src/bison.s1: Test _MSDOS_, not MSDOS.
2070 1996-07-30 Richard Stallman <rms@gnu.org>
2072 * bison.simple: Comment change.
2074 * bison.simple: Test _MSDOS_, not MSDOS.
2076 1996-06-01 Richard Stallman <rms@gnu.org>
2078 * 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:
2079 Insert `_' macro around many string constants.
2082 Insert `_' macro around many string constants.
2084 (main): Call setlocale, bindtextdomain and textdomain.
2086 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2087 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2088 [ENABLE_NLS]: Include libintl.h.
2089 [ENABLE_NLS] (gettext): Define.
2090 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2091 (N_, PACKAGE, LOCALEDIR): New macros.
2093 1996-06-01 Richard Stallman <rms@gnu.org>
2095 * POTFILES.in: New file.
2097 * Makefile.in (allocate.o):
2098 Define target explicitly.
2100 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2101 (LDFLAGS): Set to @LDFLAGS@.
2102 (configure): Run autoconf only if preceding `cd' succeeds.
2103 (bison.s1): Redirect output to temporary file then move the
2104 temporary to the target, rather than redirecting directly to bison.s1.
2105 (clean): Remove config.status and config.log.
2106 (distclean): Don't remove config.status here.
2108 1996-05-12 Richard Stallman <rms@gnu.org>
2111 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2113 1996-05-12 Richard Stallman <rms@gnu.org>
2116 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2118 1996-05-11 Richard Stallman <rms@gnu.org>
2120 * src/bison.s1 (__yy_memcpy):
2121 Really reorder the args, as was supposedly done on Feb 14 1995.
2122 (yyparse): Calls changed accordingly.
2124 1996-05-11 Richard Stallman <rms@gnu.org>
2126 * Makefile.in (dist): Don't use $(srcdir).
2128 * bison.simple (__yy_memcpy):
2129 Really reorder the args, as was supposedly done on Feb 14 1995.
2130 (yyparse): Calls changed accordingly.
2132 1996-01-27 Richard Stallman <rms@gnu.org>
2134 * src/output.c (output_rule_data):
2135 Test YYERROR_VERBOSE in the conditional
2136 around the definition of ttyname.
2138 1995-12-29 Richard Stallman <rms@gnu.org>
2141 Fix line numbers in #line commands.
2143 1995-12-29 Richard Stallman <rms@gnu.org>
2146 Fix line numbers in #line commands.
2148 1995-12-27 Richard Stallman <rms@gnu.org>
2150 * src/bison.s1 (YYPARSE_PARAM_DECL):
2151 In C++, make it always null.
2152 (YYPARSE_PARAM_ARG): New macro.
2153 (yyparse): Use YYPARSE_PARAM_ARG.
2155 1995-12-27 Richard Stallman <rms@gnu.org>
2157 * bison.simple (YYPARSE_PARAM_DECL):
2158 In C++, make it always null.
2159 (YYPARSE_PARAM_ARG): New macro.
2160 (yyparse): Use YYPARSE_PARAM_ARG.
2162 1995-11-29 Richard Stallman <rms@gnu.org>
2164 * doc/bison.texinfo:
2165 Describe literal string tokens, %raw, %no_lines, %token_table.
2167 1995-11-29 Daniel Hagerty <hag@gnu.org>
2169 * doc/bison.texinfo: Fixed update date
2171 1995-10-16 Richard Stallman <rms@gnu.org>
2173 * src/version.c: Version 1.25.
2175 1995-10-16 Richard Stallman <rms@gnu.org>
2177 * NEWS: *** empty log message ***
2179 1995-10-16 Richard Stallman <rms@gnu.org>
2181 * doc/bison.1, doc/bison.rnh:
2184 1995-10-15 Richard Stallman <rms@gnu.org>
2186 * src/vmsgetargs.c, src/getargs.c:
2187 Added -n, -k, and -raw switches.
2188 (noparserflag, toknumflag, rawtoknumflag): New variables.
2190 * src/symtab.h (SALIAS):
2191 New #define for adding aliases to %token.
2192 (struct bucket): Added `alias' field.
2194 * src/reduce.c (reduce_grammar):
2195 Revise error message.
2196 (print_notices): Remove final `.' from error message.
2198 * src/reader.c (reader_output_yylsp):
2200 (readgram): Use `#if 0' around code that accepted %command
2201 inside grammar rules: The documentation doesn't allow it,
2202 and it will fail since the %command processors scan for the next %.
2203 (parse_token_decl): Extended the %token
2204 declaration to allow a multi-character symbol as an alias.
2205 (parse_thong_decl): New function.
2206 (read_declarations): Added %thong declarations.
2207 (read_declarations): Handle NOOP to deal with allowing
2208 % declarations as another means to specify the flags.
2209 (readgram): Allow %prec prior to semantics embedded in a rule.
2210 (skip_to_char, read_declarations, copy_definition)
2211 (parse_token_decl, parse_start_decl, parse_type_decl)
2212 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2213 (get_type_name, copy_guard, copy_action, readgram)
2214 (get_type, packsymbols): Revised most error messages.
2215 Changed `fatal' to `warnxxx' to avoid aborting for error.
2216 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2217 (read_declarations): Improve the error message for
2218 an invalid character. Do not abort.
2219 (read_declarations, copy_guard, copy_action): Use
2220 printable_version to avoid unprintable characters in printed output.
2221 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2222 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2223 Allow the type of a non-terminal can be given
2224 more than once, as long as all specifications give the same type.
2227 (output_headers, output_trailers, output, output_gram)
2228 (output_rule_data): Implement noparserflag variable.
2229 Implement toknumflag variable.
2230 (output): Call reader_output_yylsp to output LTYPESTR.
2232 * src/main.c (main):
2233 If reader sees an error, don't process the grammar.
2234 (fatals): Updated to not use VARARGS1.
2235 (printable_version, int_to_string, warn, warni, warns, warnss)
2236 (warnsss): New error reporting functions. Avoid abort for error.
2239 Added THONG and NOOP for alias processing.
2240 Added SETOPT for the new code that allows setting options with %flags.
2243 Include getopt.h. Add some extern decls.
2244 (safegetc): New function to deal with EOF gracefully.
2245 (literalchar); new function to deal with reading \ escapes.
2246 (lex): Use literalchar.
2247 (lex): Implemented "..." tokens.
2248 (literalchar, lex, parse_percent_token): Made tokenbuffer
2249 always contain the token. This includes growing the token
2250 buffer while reading an integer.
2251 (parse_percent_token): Replaced if-else statement with percent_table.
2252 (parse_percent_token): Added % declarations as another
2253 way to specify the flags -n, -l, and -r. Also added hooks for
2254 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2255 major changes to files.c.
2256 (lex) Retain in the incoming stream a character following
2258 (skip_white_space, lex): Revised most error messages
2259 and changed fatal to warn to avoid aborting.
2260 (percent_table): Added %thong declarations.
2262 * src/gram.h: Comment changes.
2264 * src/files.c (openfiles, open_extra_files, done):
2266 and actfile file. Handle noparserflag. Both for -n switch.
2268 * src/conflicts.c (resolve_sr_conflict):
2269 Remove use of alloca.
2271 1995-06-01 Jim Meyering <meyering@gnu.org>
2273 * doc/bison.texinfo: *** empty log message ***
2275 1995-05-06 Richard Stallman <rms@gnu.org>
2277 * src/bison.s1: Comment change.
2279 1995-05-06 Richard Stallman <rms@gnu.org>
2281 * bison.simple: Comment change.
2283 1995-05-03 Richard Stallman <rms@gnu.org>
2285 * src/version.c: Version now 1.24.
2287 * src/bison.s1: Change distribution terms.
2289 * src/version.c: Version now 1.23.
2291 1995-05-03 Richard Stallman <rms@gnu.org>
2293 * doc/bison.texinfo:
2294 Rewrite "Conditions for Using Bison".
2295 Update version to 1.24.
2297 1995-05-03 Richard Stallman <rms@gnu.org>
2299 * bison.simple: Change distribution terms.
2301 1995-02-23 Richard Stallman <rms@gnu.org>
2303 * src/files.c: Test __VMS_POSIX as well as VMS.
2305 1995-02-14 Jim Meyering <meyering@gnu.org>
2307 * src/bison.s1 (__yy_memcpy):
2308 Renamed from __yy_bcopy to avoid
2309 confusion. Reverse FROM and TO arguments to be consistent with
2312 1995-02-14 Jim Meyering <meyering@gnu.org>
2314 * bison.simple (__yy_memcpy):
2315 Renamed from __yy_bcopy to avoid
2316 confusion. Reverse FROM and TO arguments to be consistent with
2319 1994-11-10 David J. MacKenzie <djm@gnu.org>
2325 * Makefile.in (DISTFILES): Include NEWS.
2327 * Makefile.in (DISTFILES):
2328 Include install-sh, not install.sh.
2330 * configure.in: Update to Autoconf v2 macro names.
2332 1994-10-05 David J. MacKenzie <djm@gnu.org>
2334 * Makefile.in: fix typo
2336 * Makefile.in (prefix, exec_prefix):
2337 Let configure set them.
2339 1994-09-28 David J. MacKenzie <djm@gnu.org>
2341 * Makefile.in: Set datadir to $(prefix)/share.
2343 1994-09-15 Richard Stallman <rms@gnu.org>
2346 Update copyright notice and GPL version.
2348 1994-09-15 Richard Stallman <rms@gnu.org>
2351 Update copyright notice and GPL version.
2353 1994-07-12 Richard Stallman <rms@gnu.org>
2355 * src/reduce.c, src/reader.c:
2358 1994-05-05 David J. MacKenzie <djm@gnu.org>
2360 * Makefile.in: entered into RCS
2362 1994-03-26 Richard Stallman <rms@gnu.org>
2364 * src/bison.s1: entered into RCS
2366 1994-03-26 Richard Stallman <rms@gnu.org>
2368 * bison.simple: entered into RCS
2370 1994-03-25 Richard Stallman <rms@gnu.org>
2372 * src/main.c: entered into RCS
2374 1994-03-24 Richard Stallman <rms@gnu.org>
2376 * src/conflicts.c: entered into RCS
2378 1994-01-02 Richard Stallman <rms@gnu.org>
2380 * Makefile.in: *** empty log message ***
2382 1993-11-21 Richard Stallman <rms@gnu.org>
2384 * src/bison.s1: *** empty log message ***
2386 1993-11-21 Richard Stallman <rms@gnu.org>
2388 * doc/bison.texinfo: entered into RCS
2390 * doc/bison.texinfo: *** empty log message ***
2392 1993-11-21 Richard Stallman <rms@gnu.org>
2394 * bison.simple: *** empty log message ***
2396 1993-10-25 David J. MacKenzie <djm@gnu.org>
2398 * doc/bison.texinfo: *** empty log message ***
2400 1993-10-19 Richard Stallman <rms@gnu.org>
2402 * src/bison.s1: *** empty log message ***
2404 1993-10-19 Richard Stallman <rms@gnu.org>
2406 * bison.simple: *** empty log message ***
2408 1993-10-14 Richard Stallman <rms@gnu.org>
2410 * src/bison.s1: *** empty log message ***
2412 1993-10-14 Richard Stallman <rms@gnu.org>
2414 * bison.simple: *** empty log message ***
2416 1993-09-14 David J. MacKenzie <djm@gnu.org>
2418 * doc/bison.texinfo: *** empty log message ***
2420 1993-09-13 Noah Friedman <friedman@gnu.org>
2422 * Makefile.in: *** empty log message ***
2424 1993-09-10 Richard Stallman <rms@gnu.org>
2426 * src/conflicts.c: *** empty log message ***
2428 * src/system.h: entered into RCS
2430 1993-09-10 Richard Stallman <rms@gnu.org>
2432 * doc/bison.1: entered into RCS
2434 1993-09-06 Noah Friedman <friedman@gnu.org>
2436 * src/version.c: entered into RCS
2438 1993-09-06 Noah Friedman <friedman@gnu.org>
2440 * Makefile.in: *** empty log message ***
2442 1993-07-30 David J. MacKenzie <djm@gnu.org>
2444 * Makefile.in: *** empty log message ***
2446 1993-07-24 Richard Stallman <rms@gnu.org>
2448 * src/bison.s1: *** empty log message ***
2450 1993-07-24 Richard Stallman <rms@gnu.org>
2452 * bison.simple: *** empty log message ***
2454 1993-07-08 David J. MacKenzie <djm@gnu.org>
2456 * Makefile.in: *** empty log message ***
2458 1993-07-04 Richard Stallman <rms@gnu.org>
2460 * src/bison.s1: *** empty log message ***
2462 1993-07-04 Richard Stallman <rms@gnu.org>
2464 * bison.simple: *** empty log message ***
2466 1993-06-26 David J. MacKenzie <djm@gnu.org>
2468 * src/getargs.c: entered into RCS
2470 1993-06-26 David J. MacKenzie <djm@gnu.org>
2472 * doc/bison.texinfo: *** empty log message ***
2474 * doc/bison.1: New file.
2476 1993-06-25 Richard Stallman <rms@gnu.org>
2478 * src/getargs.c: New file.
2480 1993-06-16 Richard Stallman <rms@gnu.org>
2482 * src/bison.s1: *** empty log message ***
2484 1993-06-16 Richard Stallman <rms@gnu.org>
2486 * bison.simple: *** empty log message ***
2488 1993-06-03 Richard Stallman <rms@gnu.org>
2490 * src/bison.s1: New file.
2492 1993-06-03 Richard Stallman <rms@gnu.org>
2494 * doc/bison.texinfo: *** empty log message ***
2496 1993-06-03 Richard Stallman <rms@gnu.org>
2498 * bison.simple: New file.
2500 1993-05-19 Richard Stallman <rms@gnu.org>
2502 * doc/bison.texinfo: New file.
2504 1993-05-07 Noah Friedman <friedman@gnu.org>
2506 * Makefile.in: *** empty log message ***
2508 1993-04-28 Noah Friedman <friedman@gnu.org>
2510 * src/reader.c: *** empty log message ***
2512 1993-04-23 Noah Friedman <friedman@gnu.org>
2514 * src/alloc.h: entered into RCS
2516 1993-04-20 David J. MacKenzie <djm@gnu.org>
2518 * src/version.c: *** empty log message ***
2520 * src/files.c, src/allocate.c:
2523 * src/reader.c: *** empty log message ***
2525 * src/lex.c: entered into RCS
2527 * src/conflicts.c: New file.
2529 * src/symtab.c: entered into RCS
2531 * src/alloc.h: New file.
2533 * src/LR0.c: entered into RCS
2535 1993-04-18 Noah Friedman <friedman@gnu.org>
2537 * src/reader.c: New file.
2539 * src/version.c: *** empty log message ***
2541 1993-04-18 Noah Friedman <friedman@gnu.org>
2543 * Makefile.in: *** empty log message ***
2545 1993-04-17 Noah Friedman <friedman@gnu.org>
2547 * Makefile.in: *** empty log message ***
2549 1993-04-15 Richard Stallman <rms@gnu.org>
2551 * src/main.c, src/files.c:
2554 1993-04-15 Noah Friedman <friedman@gnu.org>
2556 * configure.in: entered into RCS
2558 * configure.in: *** empty log message ***
2560 * configure.in: New file.
2562 1993-04-14 Richard Stallman <rms@gnu.org>
2564 * Makefile.in: New file.
2566 1993-04-13 Richard Stallman <rms@gnu.org>
2568 * src/version.c: New file.
2570 1993-03-25 Richard Stallman <rms@gnu.org>
2572 * src/output.c: entered into RCS
2574 1992-09-25 Richard Stallman <rms@gnu.org>
2576 * configure.bat: entered into RCS
2578 1992-06-22 Richard Stallman <rms@gnu.org>
2580 * src/vmsgetargs.c: entered into RCS
2582 1992-06-22 Richard Stallman <rms@gnu.org>
2584 * doc/bison.rnh: entered into RCS
2586 1992-04-20 David J. MacKenzie <djm@gnu.org>
2588 * README: entered into RCS
2590 1992-01-22 Richard Stallman <rms@gnu.org>
2592 * src/machine.h: entered into RCS
2594 1991-12-21 Richard Stallman <rms@gnu.org>
2596 * src/lalr.c, src/closure.c:
2599 1991-12-20 Richard Stallman <rms@gnu.org>
2601 * src/state.h: entered into RCS
2603 1991-12-18 Richard Stallman <rms@gnu.org>
2605 * src/print.c, src/nullable.c, src/derives.c:
2608 1991-11-03 David J. MacKenzie <djm@gnu.org>
2610 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2613 1988-09-09 Richard Stallman <rms@gnu.org>
2615 * src/bison.hairy: entered into RCS
2617 1987-12-16 Richard Stallman <rms@gnu.org>
2619 * REFERENCES: entered into RCS