1 2001-02-08 Akim Demaille <akim@epita.fr>
3 * src/conflicts.c (conflict_report): Be sure not to append to res
4 between two calls, which could happen if both first sprintf were
5 skipped, but not the first cp += strlen.
7 2001-02-08 Akim Demaille <akim@epita.fr>
9 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
10 New, from fileutils 4.0.37.
11 * configure.in: Require Autoconf 2.49c. I took some time before
12 making this decision. This is the only way out for portability
13 issues in Bison, it would mean way too much duplicate effort to
14 import in Bison features implemented in 2.49c since 2.13.
15 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
17 2001-02-02 Akim Demaille <akim@epita.fr>
19 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
20 * lib/xalloc.h, lib/xmalloc.c: Update.
22 2001-01-19 Akim Demaille <akim@epita.fr>
24 Get rid of the ad hoc handling of token_buffer in the scanner: use
27 * src/lex.c (token_obstack): New.
28 (init_lex): Initialize it. No longer call...
29 (grow_token_buffer): this. Remove it.
30 Adjust all the places which used it to use the obstack.
32 2001-01-19 Akim Demaille <akim@epita.fr>
34 * src/lex.h: Rename all the tokens:
35 s/\bENDFILE\b/tok_eof/g;
36 s/\bIDENTIFIER\b/tok_identifier/g;
38 Let them be enums, not #define, to ease debugging.
41 2001-01-18 Akim Demaille <akim@epita.fr>
43 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
44 * src/lex.c (maxtoken, grow_token_buffer): Static.
46 2001-01-18 Akim Demaille <akim@epita.fr>
48 Since we now use obstacks, more % directives can be enabled.
50 * src/lex.c (percent_table): Also accept `%yacc',
51 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
53 Handle the actions for `%semantic_parser' and `%pure_parser' here,
54 instead of returning a token.
55 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
56 * src/reader.c (read_declarations): Adjust.
57 * src/files.c (open_files): Don't call `compute_base_names', don't
58 compute `attrsfile' since they depend upon data which might be
59 *in* the input file now.
60 (output_files): Do it here.
61 * src/output.c (output_headers): Document the fact that this patch
62 introduces a guaranteed SEGV for semantic parsers.
63 * doc/bison.texinfo: Document them.
64 * tests/suite.at: Exercise these %options.
66 2000-12-20 Akim Demaille <akim@epita.fr>
68 Also handle the output file (--verbose) with obstacks.
70 * files.c (foutput): Remove.
71 (output_obstack): New.
72 Adjust all dependencies.
73 * src/conflicts.c: Return a string.
74 * src/system.h (obstack_grow_string): Rename as...
75 (obstack_sgrow): this. Be ready to work with non literals.
76 (obstack_fgrow4): New.
78 2000-12-20 Akim Demaille <akim@epita.fr>
80 * src/files.c (open_files): Fix the computation of short_base_name
81 in the case of `-o foo.tab.c'.
83 2000-12-20 Akim Demaille <akim@epita.fr>
85 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
86 (copy_dollar): Now that everything uses obstacks, get rid of the
89 2000-12-20 Akim Demaille <akim@epita.fr>
91 * src/files.c (open_files): Actually the `.output' file is based
92 on the short_base_name, not base_name.
93 * tests/suite.at (Checking output file names): Adjust.
95 2000-12-20 Akim Demaille <akim@epita.fr>
97 * src/bison.s1: Remove, we now use directly...
98 * src/bison.simple: this.
99 * src/Makefile.am: Use pkgdata instead of data.
101 2000-12-20 Akim Demaille <akim@epita.fr>
103 * src/files.c (guard_obstack): New.
104 (open_files): Initialize it.
105 (output_files): Dump it...
106 * src/files.h: Export it.
107 * src/reader.c (copy_guard): Use it.
109 2000-12-19 Akim Demaille <akim@epita.fr>
111 * src/files.c (outfile, defsfile, actfile): Removed as global
113 (open_files): Don't compute them.
114 (output_files): Adjust.
115 (base_name, short_base_name): Be global.
118 2000-12-19 Akim Demaille <akim@epita.fr>
120 * src/files.c (strsuffix): New.
121 (stringappend): Be just like strcat but allocate.
122 (base_names): Eve out from open_files.
123 Try to simplify the rather hairy computation of base_name and
125 (open_files): Use it.
126 * tests/suite.at (Checking output file names): New test.
128 2000-12-19 Akim Demaille <akim@epita.fr>
130 * src/system.h (obstack_grow_literal_string): Rename as...
131 (obstack_grow_string): this.
132 * src/output.c (output_parser): Recognize `%% actions' instead of
134 * src/bison.s1: s/$/%% actions/.
135 * src/bison.hairy: Likewise.
137 2000-12-19 Akim Demaille <akim@epita.fr>
139 * src/output.c (output_parser): Compute the `#line' lines when
141 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
142 Suggested by Hans Aberg.
144 2000-12-19 Akim Demaille <akim@epita.fr>
146 Let the handling of the skeleton files be local to the procedures
149 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
151 (fparser, open_extra_files): Remove.
152 (open_files, output_files): Don't take care of fparser.
153 * src/files.h: Adjust.
154 * src/output.c (output_parser): Open and close the file to the
156 * src/reader.c (read_declarations): When %semantic_parser, open
159 2000-12-19 Akim Demaille <akim@epita.fr>
161 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
162 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
164 2000-12-19 Akim Demaille <akim@epita.fr>
166 * src/files.c (open_files): Yipee! We no longer need all the code
167 looking for `/tmp' since we have no tmp file.
169 2000-12-19 Akim Demaille <akim@epita.fr>
171 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
173 * src/files.c (open_files): Less dependency on MSDOS etc.
175 2000-12-14 Akim Demaille <akim@epita.fr>
177 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
178 Provide a default definition.
179 Use it when executing the default @ action.
180 * src/reader.c (reader_output_yylsp): No longer include
181 `timestamp' and `text' in the default YYLTYPE.
183 2000-12-12 Akim Demaille <akim@epita.fr>
185 * src/reader.c (copy_definition, parse_union_decl, copy_action)
186 (copy_guard): Quote the file names.
187 Reported by Laurent Mascherpa.
189 2000-12-12 Akim Demaille <akim@epita.fr>
191 * src/output.c (output_headers, output_program, output): Be sure
192 to escape special characters when outputting filenames.
193 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
194 (output_headers): Don't depend on them, Use ACTSTR.
196 2000-11-17 Akim Demaille <akim@epita.fr>
198 * lib/obstack.h: Formatting changes.
199 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
200 prevents type checking.
201 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
202 cast the value to (void *): assigning a `foo *' to a `void *'
204 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
205 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
208 2000-11-17 Akim Demaille <akim@epita.fr>
210 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
212 (suite.m4, regression.m4, calc.m4): these.
213 * tests/atgeneral.m4: Update from CVS Autoconf.
215 2000-11-17 Akim Demaille <akim@epita.fr>
217 * tests/regression.m4 (%union and --defines): New test,
218 demonstrating a current bug in the obstack implementation.
220 2000-11-17 Akim Demaille <akim@epita.fr>
222 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
224 Use them to declare the variables which are global or local to
227 2000-11-17 Akim Demaille <akim@epita.fr>
229 * acconfig.h: Remove, no longer used.
231 2000-11-07 Akim Demaille <akim@epita.fr>
233 * src: s/Copyright (C)/Copyright/g.
235 2000-11-07 Akim Demaille <akim@epita.fr>
237 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
239 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
241 2000-11-07 Akim Demaille <akim@epita.fr>
243 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
244 Merge in a single CPP if/else.
246 2000-11-07 Akim Demaille <akim@epita.fr>
248 * src/output.c (output): Remove useless variables.
249 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
250 argument `data' for consistency with the prototypes.
252 (obstack_copy, obstack_copy0): Rename the second argument as
253 `address' for consistency. Qualify it `const'.
254 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
255 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
256 `const' their input argument (`data' or `address').
257 Adjust the corresponding macros to include `const' in casts.
259 2000-11-03 Akim Demaille <akim@epita.fr>
261 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
262 s/PFILE1/BISON_HAIRY/.
265 2000-11-03 Akim Demaille <akim@epita.fr>
267 For some reason, this was not applied.
269 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
270 `unlink': it's no longer used.
272 2000-11-03 Akim Demaille <akim@epita.fr>
274 * src/files.c (skeleton_find): New function, eved out of...
275 (open_files, open_extra_files): here.
277 2000-11-03 Akim Demaille <akim@epita.fr>
281 * src/files.c (obstack_save): New function.
283 (output_files): this.
285 * src/main.c (main): Don't use `atexit' to register `done', since
286 it no longer has to remove tmp files, just call `output_files'
287 when there are no errors.
289 2000-11-02 Akim Demaille <akim@epita.fr>
291 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
292 `unlink': it's no longer used.
293 * src/files.h: Formatting changes.
295 2000-11-02 Akim Demaille <akim@epita.fr>
297 Remove the last uses of mktemp and unlink/delete.
299 * src/files.c (fdefines, ftable): Removed.
300 (defines_ostack, table_obstack): New.
301 Adjust dependencies of the former into uses of the latter.
302 * src/output.c (output_short_or_char_table, output_short_table):
303 Convert to using obstacks.
304 * src/reader.c (copy_comment2): Accept one FILE * and two
306 (output_token_defines, reader_output_yylsp): Use obstacks.
307 * src/system.h (obstack_fgrow3): New.
309 2000-11-01 Akim Demaille <akim@epita.fr>
311 Change each use of `fattrs' into a use of `attrs_obstack'.
313 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
314 * src/files.c (fattrs): Remove.
315 (attrs_obstack): New.
316 Adjust all dependencies.
317 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
319 2000-11-01 Akim Demaille <akim@epita.fr>
322 Change each use of `faction' into a use of `action_obstack'.
324 * lib/obstack.h, lib/obstack.c: New files.
325 * src/files.c (faction): Remove.
326 (action_obstack): New.
327 Adjust all dependencies.
329 2000-10-20 Akim Demaille <akim@epita.fr>
331 * lib/quote.h (PARAMS): New macro. Use it.
333 2000-10-16 Akim Demaille <akim@epita.fr>
335 * src/output.c (output_short_or_char_table): New function.
336 (output_short_table, output_token_translations): Use it.
337 (goto_actions): Use output_short_table.
339 2000-10-16 Akim Demaille <akim@epita.fr>
341 * src/symtab.c (bucket_new): New function.
344 * src/output.c (output_short_table): New argument to display the
345 comment associated with the table.
347 (output_gram): Use it.
348 (output_rule_data): Nicer output layout for YYTNAME.
350 2000-10-16 Akim Demaille <akim@epita.fr>
352 * src/lex.c (read_typename): New function.
354 * src/reader.c (copy_dollar): Likewise.
356 2000-10-16 Akim Demaille <akim@epita.fr>
358 * src/reader.c (copy_comment2): Expect the input stream to be on
359 the `/' which is suspected to open a comment, instead of being
360 called after `//' or `/*' was read.
361 (copy_comment, copy_definition, parse_union_decl, copy_action)
362 (copy_guard): Adjust.
364 2000-10-16 Akim Demaille <akim@epita.fr>
366 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
367 `read_signed_integer'.
369 2000-10-16 Akim Demaille <akim@epita.fr>
371 * src/reader.c (copy_dollar): New function.
372 (copy_guard, copy_action): Use it.
374 2000-10-16 Akim Demaille <akim@epita.fr>
376 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
377 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
378 New files, from Fileutils 4.0.27.
379 * src/main.c (printable_version): Remove.
380 * src/lex.c, src/reader.c: Use `quote'.
382 2000-10-04 Akim Demaille <akim@epita.fr>
384 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
386 2000-10-04 Akim Demaille <akim@epita.fr>
388 * doc/bison.texinfo: Various typos spotted by Neil Booth.
390 2000-10-04 Akim Demaille <akim@epita.fr>
392 When a literal string is used to define two different tokens,
393 `bison -v' segfaults.
394 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
396 * tests/regression.m4: New file.
397 Include the core of the sample provided by Piotr Gackiewicz.
398 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
401 2000-10-04 Akim Demaille <akim@epita.fr>
403 * src/reader.c (parse_expect_decl): Keep `count' within the size
407 2000-10-02 Paul Eggert <eggert@twinsun.com>
409 * bison.s1 (yyparse): Assign the default value
410 unconditionally, to avoid a GCC warning and make the parser a
413 2000-10-02 Akim Demaille <akim@epita.fr>
415 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
418 2000-10-02 Akim Demaille <akim@epita.fr>
420 * src/derives.c, src/print.c, src/reduce.c: To ease the
421 translation, move some `\n' out of the translated strings.
423 2000-10-02 Akim Demaille <akim@epita.fr>
425 The location tracking mechanism is precious for parse error
426 messages. Nevertheless, it is enabled only when `@n' is used in
427 the grammar, which is a different issue (you can use it in error
428 message, but not in the grammar per se). Therefore, there should
429 be another means to enable it.
431 * src/getargs.c (getargs): Support `--locations'.
433 * src/getargs.h (locationsflag): Export it.
434 * src/lex.c (percent_table): Support `%locations'.
435 * src/reader.c (yylsp_needed): Remove this variable, now replaced
436 with `locationsflag'.
437 * doc/bison.texinfo: Document `--locations' and `%locations'.
439 * tests/calc.m4: Test it.
441 For regularity of the names, replace each
442 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
443 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
444 In addition replace each `flag' with `_flag'.
446 2000-10-02 Akim Demaille <akim@epita.fr>
448 Also test parse error messages, including with YYERROR_VERBOSE.
450 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
452 Use it to check the computations.
453 Use it to check `nonassoc' is honored.
454 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
456 (_AT_CHECK_CALC): Adjust to this option.
457 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
459 2000-10-02 Akim Demaille <akim@epita.fr>
461 Test also `--verbose', `--defines' and `--name-prefix'. Testing
462 the latter demonstrates a flaw in the handling of non debugging
463 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
464 was used in order to simplify:
480 unfortunately this leads to a CPP conflict when
481 `--name-prefix=foo' is used since it produces `#define yydebug
484 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
485 (YYDPRINTF): New macro.
487 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
489 Also test `--verbose', `--defines' and `--name-prefix'.
491 2000-10-02 Akim Demaille <akim@epita.fr>
493 Improve the readability of the produced parsers.
495 * src/bison.s1: Formatting changes.
496 Improve the comment related to the `$' mark.
497 (yydefault): Don't fall through to `yyresume': `goto' there.
498 * src/output.c (output_parser): When the `$' is met, skip the end
500 New variable, `number_of_dollar_signs', to check there's exactly
501 one `$' in the parser skeleton.
503 2000-10-02 Akim Demaille <akim@epita.fr>
505 * lib/xstrdup.c: New file, from the fileutils.
506 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
507 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
508 instead of strlen + xmalloc + strcpy.
509 * src/symtab.c (copys): Remove, use xstrdup instead.
511 2000-10-02 Akim Demaille <akim@epita.fr>
513 * src/gram.h (associativity): New enum type which replaces the
514 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
515 `right_assoc', `left_assoc' and `non_assoc'.
516 Adjust all dependencies.
517 * src/reader.c: Formatting changes.
518 (LTYPESTR): Don't define it, use it as a literal in
519 `reader_output_yylsp'.
520 * src/symtab.h (symbol_class): New enum type which replaces the
521 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
522 `sunknown', `stoken and `snterm'.
524 2000-10-02 Akim Demaille <akim@epita.fr>
526 * src/getargs.c (fixed_outfiles): Rename as...
527 (yaccflag): for consistency and accuracy.
530 2000-10-02 Akim Demaille <akim@epita.fr>
532 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
533 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
534 difficult and introduced a lot of core dump. It turns out that
535 Bison used an implementation of `xmalloc' based on `calloc', and
536 at various places it does depend upon the initialization to 0. I
537 have not tried to isolate the pertinent places, and all the former
538 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
539 someone should address this issue.
541 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
542 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
545 * src/warshall.h: New file.
548 2000-10-02 Akim Demaille <akim@epita.fr>
550 Various anti-`extern in *.c' changes.
552 * src/system.h: Include `assert.h'.
554 2000-10-02 Akim Demaille <akim@epita.fr>
556 * src/state.h (nstates, final_state, first_state, first_shift)
557 (first_reduction): Move their exportation from here...
558 * src/LR0.h: to here.
560 * src/getargs.c (statisticsflag): New variable.
561 Add support for `--statistics'.
564 Remove a lot of now useless `extern' statements in most files.
566 2000-10-02 Akim Demaille <akim@epita.fr>
568 * src/LR0.h: New file.
571 2000-10-02 Akim Demaille <akim@epita.fr>
573 * src/print.h: New file.
575 * src/print.c: Formatting and ordering changes.
576 (verbose, terse): Replace with...
577 (print_results): this new function.
580 2000-10-02 Akim Demaille <akim@epita.fr>
582 * src/conflicts.c (conflict_report): New function.
583 (conflict_log, verbose_conflict_log): Replace with...
584 (print_conflicts): this function.
586 * src/conflicts.h: New file.
587 Propagate its inclusion.
589 2000-10-02 Akim Demaille <akim@epita.fr>
591 * src/nullable.h: New file.
592 Propagate its inclusion.
593 * src/nullable.c: Formatting changes.
595 2000-10-02 Akim Demaille <akim@epita.fr>
597 * src/reduce.h: New file.
598 Propagate its inclusion.
599 * src/reduce.c: Topological sort and other formatting changes.
600 (bool, TRUE, FALSE): Move their definition to...
601 * src/system.h: here.
603 2000-10-02 Akim Demaille <akim@epita.fr>
605 * src/files.c: Formatting changes.
606 (tryopen, tryclose, openfiles): Rename as...
607 (xfopen, xfclose, open_files): this.
608 (stringappend): static.
609 * src/files.h: Complete the list of exported symbols.
612 2000-10-02 Akim Demaille <akim@epita.fr>
614 * src/reader.h: New file.
615 Propagate its use instead of tedious list of `extern' and
617 * src/reader.c: Formatting changes, topological sort,
620 2000-10-02 Akim Demaille <akim@epita.fr>
622 * src/lex.h: Prototype `lex.c' exported functions.
623 * src/reader.c: Adjust.
624 * src/lex.c: Formatting changes.
625 (safegetc): Rename as...
628 2000-10-02 Akim Demaille <akim@epita.fr>
630 * src/lalr.h: New file.
631 Propagate its inclusion instead of prototypes and `extern'.
632 * src/lalr.c: Formatting changes, topological sorting etc.
634 2000-10-02 Akim Demaille <akim@epita.fr>
636 * src/output.c (token_actions): Introduce a temporary array,
637 YYDEFACT, that makes it possible for this function to use
640 2000-10-02 Akim Demaille <akim@epita.fr>
642 `user_toknums' is output as a `short[]' in `output.c', while it is
643 defined as a `int[]' in `reader.c'. For consistency with the
644 other output tables, `user_toknums' is now defined as a table of
647 * src/reader.c (user_toknums): Be a short table instead of an int
651 Factor the short table outputs.
653 * src/output.c (output_short_table): New function.
654 * src/output.c (output_gram, output_stos, output_rule_data)
655 (output_base, output_table, output_check): Use it.
657 2000-10-02 Akim Demaille <akim@epita.fr>
659 * src/output.c (output): Topological sort of the functions, in
660 order to get rid of the `static' prototypes.
661 No longer use `register'.
662 * src/output.h: New file.
663 Propagate its inclusion in files explicitly prototyping functions
666 2000-09-21 Akim Demaille <akim@epita.fr>
668 * src/atgeneral.m4: Update from Autoconf.
670 2000-09-21 Akim Demaille <akim@epita.fr>
672 * src/closure.h: New file.
673 * src/closure.c: Formatting changes, topological sort over the
674 functions, use of closure.h.
675 (initialize_closure, finalize_closure): Rename as...
676 (new_closure, free_closure): these. Adjust dependencies.
677 * src/LR0.c: Formatting changes, topological sort, use of
679 (initialize_states): Rename as...
681 * src/Makefile.am (noinst_HEADERS): Adjust.
683 2000-09-20 Akim Demaille <akim@epita.fr>
685 * src/acconfig.h: Don't protect config.h against multiple
688 * src/system.h: Define PARAMS.
689 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
690 purpose of config.h. system.h must not try to fix wrong
691 definitions in config.h.
693 2000-09-20 Akim Demaille <akim@epita.fr>
695 * src/derives.h: New file.
696 * src/main.c, src/derives.h: Use it.
698 * src/Makefile.am (noinst_HEADERS): Adjust.
700 2000-09-20 Akim Demaille <akim@epita.fr>
702 * tests/atgeneral.m4: Update from Autoconf.
703 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
704 (AT_CHECK_CALC): New macros.
705 Use these macros to test bison with options `', `--raw',
706 `--debug', `--yacc', `--yacc --debug'.
708 2000-09-19 Akim Demaille <akim@epita.fr>
710 * src/output.c: Formatting changes.
711 * src/machine.h: Remove, leaving its contents in...
712 * src/system.h: here.
714 Adjust all dependencies on stdio.h and machine.h.
715 * src/getargs.h: New file.
716 Let all `extern' declarations about getargs.c be replaced with
717 inclusion of `getargs.h'.
718 * src/Makefile.am (noinst_HEADERS): Adjust.
720 * tests/calc.m4 (yyin): Be initialized in main, not on the global
722 (yyerror): Returns void, not int.
723 * doc/bison.texinfo: Formatting changes.
725 2000-09-19 Akim Demaille <akim@epita.fr>
727 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
730 2000-09-18 Akim Demaille <akim@epita.fr>
732 * configure.in: Append WARNING_CFLAGS to CFLAGS.
733 * src/Makefile.am (INCLUDES): Don't.
734 Be ready to fetch headers in lib/.
736 2000-09-18 Akim Demaille <akim@epita.fr>
738 * doc/bison.texinfo: Update the copyright.
739 ANSIfy and GNUify the examples.
742 2000-09-18 Akim Demaille <akim@epita.fr>
744 First set of tests: use the `calc' example from the documentation.
746 * src/bison.s1 (yyparse): Condition the code using `yytname' which
747 is defined only when YYDEBUG is.
748 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
749 * src/files.c (tryopen, tryclose): Formatting changes.
750 Move to the top and be static.
751 * src/reader.c (read_signed_integer): Likewise.
752 * tests/calc.m4: New file.
753 * Makefile.am, suite.m4: Adjust.
754 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
756 2000-09-18 Akim Demaille <akim@epita.fr>
758 Add support for an Autotest test suite for Bison.
760 * m4/m4.m4, m4/atconfig.m4: New files.
761 * m4/Makefile.am (EXTRA_DIST): Adjust.
762 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
764 * src/getargs.c: Display a more standard --version message.
765 * src/reader.c (reader): Formatting changes.
766 No longer depend upon VERSION_STRING.
767 * configure.in: No longer use `dnl'.
768 Set up the test suite and the new directory `tests/.
769 (VERSION_STRING): Remove.
771 2000-04-14 Akim Demaille <akim@epita.fr>
773 * src/reader.c (copy_comment2): New function, same as former
774 `copy_comment', but outputs into two FILE *.
775 (copy_comment): Use it.
776 (parse_union_decl): Use it.
777 (get_type, parse_start_decl): Use the same `invalid' message.
778 (parse_start_decl, parse_union_decl): Use the same `multiple'
780 (parse_union_decl, copy_guard, copy_action): Use the same
782 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
784 2000-03-31 Akim Demaille <akim@epita.fr>
786 * src/files.c (tryopen, tryclose): Move to the top.
789 2000-03-31 Akim Demaille <akim@epita.fr>
791 * src/main.c (main): Don't call `done', exit does it.
793 2000-03-31 Akim Demaille <akim@epita.fr>
795 * allocate.c: s/return (foo)/return foo/.
798 * output.c: Likewise.
799 * reader.c: Likewise.
800 * symtab.c: Likewise.
801 * vmsgetargs.c: Likewise.
803 2000-03-31 Akim Demaille <akim@epita.fr>
805 Clean up the error reporting functions.
807 * src/report.c: New file.
808 * src/report.h: Likewise.
809 * src/Makefile.am: Adjust.
810 * m4/error.m4: New file.
811 * m4/Makefile.am: Adjust.
812 * configure.in (jm_PREREQ_ERROR): Call it.
813 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
815 (fatal, fatals): Remove. All callers use complain.c::fatal.
816 (warn, warni, warns, warnss, warnss): Remove. All callers use
817 complain.c::complain.
818 (toomany): Remove, use fatal instead.
819 * src/files.c (done): No argument, use complain_message_count.
820 * src/main.c (main): Register `done' to `atexit'.
822 * src/getargs.c (usage): More `fputs', less `fprintf'.
824 2000-03-28 Akim Demaille <akim@epita.fr>
826 * lib/: New directory.
827 * Makefile.am (SUBDIRS): Adjust.
828 * configure.in: Adjust.
829 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
831 * src/alloca.c: Moved to lib/.
832 * src/getopt.c: Likewise.
833 * src/getopt1.c: Likewise.
834 * src/getopt.h: Likewise.
835 * src/ansi2knr.c: Likewise.
836 * src/ansi2knr.1: Likewise.
837 * src/Makefile.am: Adjust.
838 * lib/Makefile.am: New file.
840 2000-03-28 Akim Demaille <akim@epita.fr>
842 * src/getargs.c (usage): Refresh the help message.
844 2000-03-17 Akim Demaille <akim@epita.fr>
846 * src/getopt1.c: Updated from textutils 2.0e
847 * src/getopt.c: Likewise.
848 * src/getopt.h: Likewise.
850 2000-03-17 Akim Demaille <akim@epita.fr>
852 * src/Makefile.am (bison.simple): Fix the awk program: quote only
853 the file name, not the whole `#line LINE FILE'.
855 2000-03-17 Akim Demaille <akim@epita.fr>
857 On syntax errors, report the token on which we choked.
859 * src/bison.s1 (yyparse): In the label yyerrlab, when
860 YYERROR_VERBOSE, add yychar in msg.
862 2000-03-17 Akim Demaille <akim@epita.fr>
864 * src/reader.c (copy_at): New function.
865 (copy_guard): Use it.
866 (copy_action): Use it.
868 2000-03-17 Akim Demaille <akim@epita.fr>
870 Be kind to translators, save some useless translations.
872 * src/main.c (banner): New function.
873 (fatal_banner): Use it.
874 (warn_banner): Use it.
876 2000-03-17 Akim Demaille <akim@epita.fr>
878 * src/reader.c (copy_definition): Use copy_string and
879 copy_comment. Removed now unused `match', `ended',
881 (copy_comment, copy_string): Moved, to be visible from
884 2000-03-17 Akim Demaille <akim@epita.fr>
886 * src/reader.c (copy_string): Declare `static inline'. No
887 problems with inline, since it is checked by configure.
888 (copy_comment): Likewise.
890 2000-03-17 Akim Demaille <akim@epita.fr>
892 * src/reader.c (packsymbols): Formatting changes.
894 2000-03-17 Akim Demaille <akim@epita.fr>
896 * src/reader.c (copy_comment): New function, factored out from:
897 (copy_action): Use it. Removed now unused `match', `ended',
899 (copy_guard): Likewise.
901 2000-03-17 Akim Demaille <akim@epita.fr>
903 * src/reader.c (copy_string): New function, factored out from:
904 (copy_action): Use it.
905 (copy_guard): Likewise.
907 2000-03-17 Akim Demaille <akim@epita.fr>
909 Change the handling of @s so that they behave exactly like $s.
910 There is now a pseudo variable @$ (readble and writable), location
911 of the lhs of the rule (by default ranging from the location of
912 the first symbol of the rhs, to the location of the last symbol,
913 or, if the rhs is empty, YYLLOC).
915 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
917 (yyparse): When providing a default semantic action, provide a
918 default location action.
919 (after the $): No longer change `*YYLSP', just stack YYLOC the
920 same way you stack YYVAL.
921 * src/reader.c (read_declarations): Use warns.
922 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
923 (copy_action, case '@'): Likewise.
924 Use a standard error message, to save useless work from
927 2000-03-17 Akim Demaille <akim@epita.fr>
929 * src/bison.s1: Formatting and cosmetics changes.
930 * src/reader.c: Likewise.
931 Update the Copyright notice.
933 2000-03-17 Akim Demaille <akim@epita.fr>
935 * src/bison.s1 (#line): All set to `#line' only, since the
936 Makefile now handles them.
938 2000-03-16 Akim Demaille <akim@epita.fr>
940 * src/output.c (output_rule_data): Output the documentation of
942 (Copyright notice): Update.
945 2000-03-16 Akim Demaille <akim@epita.fr>
947 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
948 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
949 One `#if YYDEBUG' remains, since it uses variables which are
950 defined only if `YYDEBUG != 0'.
952 2000-03-16 Akim Demaille <akim@epita.fr>
954 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
955 and related variables so that the similarities are highlighted.
957 2000-03-16 Akim Demaille <akim@epita.fr>
959 * src/bison.s1: Properly indent CPP directives.
961 2000-03-16 Akim Demaille <akim@epita.fr>
963 * src/bison.s1: Properly indent the `alloca' CPP section.
965 2000-03-16 Akim Demaille <akim@epita.fr>
967 Do not hard code values of directories in `configure.in'.
968 Update the `configure' tool chain.
970 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
972 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
973 (AC_OUTPUT): Add m4/Makefile.
974 Bump to bison 1.28a, 1.29 has never been released.
975 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
976 handled via src/Makefile.am.
977 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
978 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
980 * Makefile.am (SUBDIRS): Add m4.
981 (ACLOCAL_AM_FLAGS): New variable.
982 (AUTOMAKE_OPTIONS): Add check-news.
983 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
984 the proper line number and file name.
985 (DEFS): Propagate the location of bison library files and of the
987 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
989 * acinclude.m4: Remove, replaced by the directory m4.
990 * m4/Makefile.am (EXTRA_DIST): New variable.
991 * m4/gettext.m4: New file, from the fileutils.
992 * m4/lcmessage.m4: Likewise
993 * m4/progtest.m4: Likewise.
994 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
996 2000-03-10 Akim Demaille <akim@epita.fr>
999 Formatting changes of various comments.
1000 Respect the GNU coding standards at various places.
1001 Don't use `_()' when no translation is needed.
1003 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1006 OS/2 honors TMPDIR environment variable.
1008 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1010 * doc/bison.texinfo: Tweaked spelling and grammar.
1012 Removed reference to price of printed copy.
1013 Mention BISON_SIMPLE and BISON_HAIRY.
1015 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1017 * configure.in, NEWS:
1018 Bison 1.29 released.
1020 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1022 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1023 Added reference card.
1025 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1027 * po/ru.po: Added Russian translation.
1029 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1031 * configure.in: Added Russian translation.
1033 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1035 * configure.in, NEWS, README:
1036 Released version 1.28.
1038 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1041 Squashed redefinition warning on some systems.
1043 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1044 Have configure build version string instead of relying on ANSI string
1047 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1049 * po/POTFILES.in: Got rid of version.c.
1051 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1053 * acconfig.h, configure.in:
1054 Have configure build version string instead of relying on ANSI string
1057 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1060 Dropped mention of `+' for long-named options.
1062 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1064 * src/files.c: Added <unistd.h> for unlink().
1066 * src/Makefile.am, src/system.h:
1069 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1071 * README: Added a FAQ list.
1073 * configure.in, acconfig.h:
1076 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1078 * doc/FAQ, doc/Makefile.am:
1081 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1083 * src/alloc.h, src/symtab.h, src/version.c:
1084 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1086 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1088 * src/.cvsignore, src/Makefile.am:
1089 Reorganized: sources in `src', documentation in `doc'.
1091 * src/lex.c (literalchar):
1092 fixed the code for escaping double quotes (thanks
1095 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1097 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1098 Adjusted paths to reflect directory reorganization.
1100 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1102 * doc/.cvsignore, doc/Makefile.am:
1103 Reorganized: sources in `src', documentation in `doc'.
1105 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1108 Updated AC_INIT file to reflect directory reorganization.
1110 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1111 Reorganized: sources in `src', documentation in `doc'.
1113 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1116 Don't declare calloc() and realloc() if not necessary.
1118 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1120 * configure.in, acconfig.h, acinclude.m4:
1121 Don't declare calloc() and realloc() if not necessary.
1123 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1125 * po/.cvsignore: Added i18n support.
1127 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1129 * acconfig.h, configure.in, Makefile.am:
1132 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1134 * src/bison.s1: Fixed #line numbers.
1136 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1138 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1139 Added PO files from Translation Project.
1141 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1144 Added support for non-ANSI compilers (ansi2knr).
1146 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1148 * configure.in: Bumped version number to 1.27.
1151 Added `bison.simple' to list of files removed by `make distclean'.
1153 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1155 * src/files.c, src/files.h:
1156 Defined locations of parser files in config.h instead of Makefile.
1158 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1160 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1161 Defined locations of parser files in config.h instead of Makefile.
1163 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1166 Removed inappropriate use of $< macro.
1168 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1170 * po/Makefile.in.in, po/POTFILES.in:
1171 Add `po' directory skeleton.
1173 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1175 * README: Document help-bison list.
1177 * configure.in: Add check for mkstemp().
1179 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1181 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1182 Hush a few compiler warnings.
1185 Add tryclose(), which verifies that fclose was successful.
1186 Hush a couple of compiler warnings.
1188 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1190 * Makefile.am, OChangeLog:
1191 ChangeLog is now automatically generated. Include the old version as
1194 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1196 * 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:
1199 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1201 * doc/bison.texinfo: Fix formatting glitch.
1203 * doc/bison.texinfo: Update FSF address.
1205 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1207 * acconfig.h: Update FSF address.
1209 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1212 Don't define PACKAGE here, since config.h defines it.
1214 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1216 * src/reader.c: Update copyright date.
1219 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1220 favor of output directly to stderr (avoids buffer overruns).
1222 * src/reader.c: Some checks for premature EOF.
1224 * 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:
1225 Use prototypes if the compiler understands them.
1227 * src/files.c: Honor TMPDIR on Unix hosts.
1228 Use prototypes if the compiler understands them.
1231 Fix a couple of buffer overrun bugs.
1232 Use prototypes if the compiler understands them.
1234 * src/system.h: Include unistd.h and ctype.h.
1235 Use #ifdef instead of #if for NLS symbols.
1237 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1239 * doc/bison.texinfo:
1240 Delete comment "consider using @set for edition number, etc..." since
1241 we now are doing so.
1243 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1246 Use prototypes if the compiler understands them.
1248 * NEWS: Document 1.26 highlights.
1250 * Makefile.am: Require Automake 1.3 or later.
1253 Use prototypes if the compiler understands them.
1255 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1258 Use VERSION symbol from automake for version number.
1260 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1262 * acconfig.h, configure.in, version.cin:
1263 Use VERSION symbol from automake for version number.
1265 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1268 Distribute original version of simple parser (bison.s1), not built
1269 version (bison.simple).
1271 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1273 * doc/bison.texinfo: Add info dir entry.
1275 * doc/bison.texinfo:
1276 Let automake put version number into documentation.
1278 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1280 * src/bison.cld, src/build.com, src/vmshlp.mar:
1281 Add non-RCS files from /gd/gnu/bison.
1283 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1286 Document the BISON_HAIRY and BISON_SIMPLE variables.
1288 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1290 * src/version.c: Build version.c automatically.
1293 Fix token numbering (used to start at 258, not 257).
1295 * src/system.h: Include config.h.
1297 * src/getargs.c: Update bug report address.
1299 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1300 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1302 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1305 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1307 * configure.in, version.cin:
1308 Build version.c automatically.
1310 * AUTHORS: Add AUTHORS file.
1312 * README: Update bug report address.
1315 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1317 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1320 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1322 * doc/bison.texinfo: Clean up some formatting.
1324 1998-05-05 Richard Stallman <rms@gnu.org>
1326 * doc/bison.texinfo:
1327 Explain better why to make a pure parser.
1329 1998-01-05 Richard Stallman <rms@gnu.org>
1331 * src/files.c (openfiles):
1332 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1333 find a temporary directory, if possible. Do not unlink files while
1336 1997-08-25 Richard Stallman <rms@gnu.org>
1338 * src/reader.c (stack_offset;):
1339 Change some warni to warns.
1341 * src/lex.c (literalchar): Use warns, not warni.
1343 1997-06-28 Richard Stallman <rms@gnu.org>
1345 * src/bison.s1: Add a Bison version comment.
1347 * src/main.c (fatal, warn, berror):
1350 1997-06-28 Richard Stallman <rms@gnu.org>
1352 * Makefile.in (bison_version): New variable.
1353 (dist): Use that variable.
1354 (bison.s1): Substitute the Bison version into bison.simple.
1356 * bison.simple: Add a Bison version comment.
1358 1997-06-18 Richard Stallman <rms@gnu.org>
1360 * src/main.c (fatal, warn, berror):
1361 Make error messages standard.
1362 (toomany): Improve error message text.
1364 * 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:
1365 new.h renamed to alloc.h.
1367 1997-06-18 Richard Stallman <rms@gnu.org>
1369 * Makefile.in: new.h renamed to alloc.h.
1371 1997-05-24 Richard Stallman <rms@gnu.org>
1373 * src/lex.c (literalchar):
1374 Fix the code for escaping \, " and '.
1376 (lex): Avoid trouble when there are many chars
1377 to discard in a char literal with just several chars in it.
1379 1997-05-17 Richard Stallman <rms@gnu.org>
1382 Use malloc, if using alloca is troublesome.
1383 (YYSTACK_USE_ALLOCA): New flag macro.
1384 Define it for some systems and compilers.
1385 (YYSTACK_ALLOC): New macro.
1386 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1387 If it was malloc'd, free it.
1389 1997-05-17 Richard Stallman <rms@gnu.org>
1392 Use malloc, if using alloca is troublesome.
1393 (YYSTACK_USE_ALLOCA): New flag macro.
1394 Define it for some systems and compilers.
1395 (YYSTACK_ALLOC): New macro.
1396 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1397 If it was malloc'd, free it.
1399 1997-04-23 Richard Stallman <rms@gnu.org>
1402 (alloca) [__hpux]: Always define as __builtin_alloca.
1404 1997-04-23 Richard Stallman <rms@gnu.org>
1407 (alloca) [__hpux]: Always define as __builtin_alloca.
1409 1997-04-22 Richard Stallman <rms@gnu.org>
1412 [__hpux]: Include alloca.h (right for HPUX 10)
1413 instead of declaring alloca (right for HPUX 9).
1415 * src/bison.s1 (__yy_memcpy):
1416 Declare arg `count' as unsigned int.
1417 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1419 1997-04-22 Richard Stallman <rms@gnu.org>
1422 [__hpux]: Include alloca.h (right for HPUX 10)
1423 instead of declaring alloca (right for HPUX 9).
1425 * bison.simple (__yy_memcpy):
1426 Declare arg `count' as unsigned int.
1427 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1429 1997-01-03 Richard Stallman <rms@gnu.org>
1431 * src/allocate.c: [__STDC__ or _MSC_VER]:
1432 Declare calloc and realloc to return void *.
1434 1997-01-02 Richard Stallman <rms@gnu.org>
1437 [_MSC_VER]: Include stdlib.h and process.h.
1438 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1440 * src/main.c (main): Return FAILURE as a value.
1441 (printable_version): Declare arg as int, not char.
1443 1997-01-02 Richard Stallman <rms@gnu.org>
1445 * Makefile.in (dist):
1446 Explicitly check for symlinks, and copy them.
1448 1996-12-19 Richard Stallman <rms@gnu.org>
1451 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1453 1996-12-18 Paul Eggert <eggert@gnu.org>
1455 * src/bison.s1 (yyparse):
1456 If __GNUC__ and YYPARSE_PARAM are both defined,
1457 declare yyparse to have a void * argument.
1459 1996-12-18 Paul Eggert <eggert@gnu.org>
1461 * bison.simple (yyparse):
1462 If __GNUC__ and YYPARSE_PARAM are both defined,
1463 declare yyparse to have a void * argument.
1465 1996-12-17 Richard Stallman <rms@gnu.org>
1467 * src/reduce.c (nbits): Add some casts.
1469 1996-08-12 Richard Stallman <rms@gnu.org>
1471 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1473 1996-08-12 Richard Stallman <rms@gnu.org>
1475 * bison.simple: Test _MSDOS as well as _MSDOS_.
1477 1996-07-31 Richard Stallman <rms@gnu.org>
1480 [__sun && __i386]: Include alloca.h.
1482 1996-07-31 Richard Stallman <rms@gnu.org>
1485 [__sun && __i386]: Include alloca.h.
1487 1996-07-30 Richard Stallman <rms@gnu.org>
1489 * src/bison.s1: Comment change.
1491 * src/bison.s1: Test _MSDOS_, not MSDOS.
1493 1996-07-30 Richard Stallman <rms@gnu.org>
1495 * bison.simple: Comment change.
1497 * bison.simple: Test _MSDOS_, not MSDOS.
1499 1996-06-01 Richard Stallman <rms@gnu.org>
1501 * 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:
1502 Insert `_' macro around many string constants.
1505 Insert `_' macro around many string constants.
1507 (main): Call setlocale, bindtextdomain and textdomain.
1509 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1510 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1511 [ENABLE_NLS]: Include libintl.h.
1512 [ENABLE_NLS] (gettext): Define.
1513 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1514 (N_, PACKAGE, LOCALEDIR): New macros.
1516 1996-06-01 Richard Stallman <rms@gnu.org>
1518 * POTFILES.in: New file.
1520 * Makefile.in (allocate.o):
1521 Define target explicitly.
1523 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1524 (LDFLAGS): Set to @LDFLAGS@.
1525 (configure): Run autoconf only if preceding `cd' succeeds.
1526 (bison.s1): Redirect output to temporary file then move the
1527 temporary to the target, rather than redirecting directly to bison.s1.
1528 (clean): Remove config.status and config.log.
1529 (distclean): Don't remove config.status here.
1531 1996-05-12 Richard Stallman <rms@gnu.org>
1534 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1536 1996-05-12 Richard Stallman <rms@gnu.org>
1539 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1541 1996-05-11 Richard Stallman <rms@gnu.org>
1543 * src/bison.s1 (__yy_memcpy):
1544 Really reorder the args, as was supposedly done on Feb 14 1995.
1545 (yyparse): Calls changed accordingly.
1547 1996-05-11 Richard Stallman <rms@gnu.org>
1549 * Makefile.in (dist): Don't use $(srcdir).
1551 * bison.simple (__yy_memcpy):
1552 Really reorder the args, as was supposedly done on Feb 14 1995.
1553 (yyparse): Calls changed accordingly.
1555 1996-01-27 Richard Stallman <rms@gnu.org>
1557 * src/output.c (output_rule_data):
1558 Test YYERROR_VERBOSE in the conditional
1559 around the definition of ttyname.
1561 1995-12-29 Richard Stallman <rms@gnu.org>
1564 Fix line numbers in #line commands.
1566 1995-12-29 Richard Stallman <rms@gnu.org>
1569 Fix line numbers in #line commands.
1571 1995-12-27 Richard Stallman <rms@gnu.org>
1573 * src/bison.s1 (YYPARSE_PARAM_DECL):
1574 In C++, make it always null.
1575 (YYPARSE_PARAM_ARG): New macro.
1576 (yyparse): Use YYPARSE_PARAM_ARG.
1578 1995-12-27 Richard Stallman <rms@gnu.org>
1580 * bison.simple (YYPARSE_PARAM_DECL):
1581 In C++, make it always null.
1582 (YYPARSE_PARAM_ARG): New macro.
1583 (yyparse): Use YYPARSE_PARAM_ARG.
1585 1995-11-29 Richard Stallman <rms@gnu.org>
1587 * doc/bison.texinfo:
1588 Describe literal string tokens, %raw, %no_lines, %token_table.
1590 1995-11-29 Daniel Hagerty <hag@gnu.org>
1592 * doc/bison.texinfo: Fixed update date
1594 1995-10-16 Richard Stallman <rms@gnu.org>
1596 * src/version.c: Version 1.25.
1598 1995-10-16 Richard Stallman <rms@gnu.org>
1600 * NEWS: *** empty log message ***
1602 1995-10-16 Richard Stallman <rms@gnu.org>
1604 * doc/bison.1, doc/bison.rnh:
1607 1995-10-15 Richard Stallman <rms@gnu.org>
1609 * src/vmsgetargs.c, src/getargs.c:
1610 Added -n, -k, and -raw switches.
1611 (noparserflag, toknumflag, rawtoknumflag): New variables.
1613 * src/symtab.h (SALIAS):
1614 New #define for adding aliases to %token.
1615 (struct bucket): Added `alias' field.
1617 * src/reduce.c (reduce_grammar):
1618 Revise error message.
1619 (print_notices): Remove final `.' from error message.
1621 * src/reader.c (reader_output_yylsp):
1623 (readgram): Use `#if 0' around code that accepted %command
1624 inside grammar rules: The documentation doesn't allow it,
1625 and it will fail since the %command processors scan for the next %.
1626 (parse_token_decl): Extended the %token
1627 declaration to allow a multi-character symbol as an alias.
1628 (parse_thong_decl): New function.
1629 (read_declarations): Added %thong declarations.
1630 (read_declarations): Handle NOOP to deal with allowing
1631 % declarations as another means to specify the flags.
1632 (readgram): Allow %prec prior to semantics embedded in a rule.
1633 (skip_to_char, read_declarations, copy_definition)
1634 (parse_token_decl, parse_start_decl, parse_type_decl)
1635 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1636 (get_type_name, copy_guard, copy_action, readgram)
1637 (get_type, packsymbols): Revised most error messages.
1638 Changed `fatal' to `warnxxx' to avoid aborting for error.
1639 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1640 (read_declarations): Improve the error message for
1641 an invalid character. Do not abort.
1642 (read_declarations, copy_guard, copy_action): Use
1643 printable_version to avoid unprintable characters in printed output.
1644 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1645 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1646 Allow the type of a non-terminal can be given
1647 more than once, as long as all specifications give the same type.
1650 (output_headers, output_trailers, output, output_gram)
1651 (output_rule_data): Implement noparserflag variable.
1652 Implement toknumflag variable.
1653 (output): Call reader_output_yylsp to output LTYPESTR.
1655 * src/main.c (main):
1656 If reader sees an error, don't process the grammar.
1657 (fatals): Updated to not use VARARGS1.
1658 (printable_version, int_to_string, warn, warni, warns, warnss)
1659 (warnsss): New error reporting functions. Avoid abort for error.
1662 Added THONG and NOOP for alias processing.
1663 Added SETOPT for the new code that allows setting options with %flags.
1666 Include getopt.h. Add some extern decls.
1667 (safegetc): New function to deal with EOF gracefully.
1668 (literalchar); new function to deal with reading \ escapes.
1669 (lex): Use literalchar.
1670 (lex): Implemented "..." tokens.
1671 (literalchar, lex, parse_percent_token): Made tokenbuffer
1672 always contain the token. This includes growing the token
1673 buffer while reading an integer.
1674 (parse_percent_token): Replaced if-else statement with percent_table.
1675 (parse_percent_token): Added % declarations as another
1676 way to specify the flags -n, -l, and -r. Also added hooks for
1677 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1678 major changes to files.c.
1679 (lex) Retain in the incoming stream a character following
1681 (skip_white_space, lex): Revised most error messages
1682 and changed fatal to warn to avoid aborting.
1683 (percent_table): Added %thong declarations.
1685 * src/gram.h: Comment changes.
1687 * src/files.c (openfiles, open_extra_files, done):
1689 and actfile file. Handle noparserflag. Both for -n switch.
1691 * src/conflicts.c (resolve_sr_conflict):
1692 Remove use of alloca.
1694 1995-06-01 Jim Meyering <meyering@gnu.org>
1696 * doc/bison.texinfo: *** empty log message ***
1698 1995-05-06 Richard Stallman <rms@gnu.org>
1700 * src/bison.s1: Comment change.
1702 1995-05-06 Richard Stallman <rms@gnu.org>
1704 * bison.simple: Comment change.
1706 1995-05-03 Richard Stallman <rms@gnu.org>
1708 * src/version.c: Version now 1.24.
1710 * src/bison.s1: Change distribution terms.
1712 * src/version.c: Version now 1.23.
1714 1995-05-03 Richard Stallman <rms@gnu.org>
1716 * doc/bison.texinfo:
1717 Rewrite "Conditions for Using Bison".
1718 Update version to 1.24.
1720 1995-05-03 Richard Stallman <rms@gnu.org>
1722 * bison.simple: Change distribution terms.
1724 1995-02-23 Richard Stallman <rms@gnu.org>
1726 * src/files.c: Test __VMS_POSIX as well as VMS.
1728 1995-02-14 Jim Meyering <meyering@gnu.org>
1730 * src/bison.s1 (__yy_memcpy):
1731 Renamed from __yy_bcopy to avoid
1732 confusion. Reverse FROM and TO arguments to be consistent with
1735 1995-02-14 Jim Meyering <meyering@gnu.org>
1737 * bison.simple (__yy_memcpy):
1738 Renamed from __yy_bcopy to avoid
1739 confusion. Reverse FROM and TO arguments to be consistent with
1742 1994-11-10 David J. MacKenzie <djm@gnu.org>
1748 * Makefile.in (DISTFILES): Include NEWS.
1750 * Makefile.in (DISTFILES):
1751 Include install-sh, not install.sh.
1753 * configure.in: Update to Autoconf v2 macro names.
1755 1994-10-05 David J. MacKenzie <djm@gnu.org>
1757 * Makefile.in: fix typo
1759 * Makefile.in (prefix, exec_prefix):
1760 Let configure set them.
1762 1994-09-28 David J. MacKenzie <djm@gnu.org>
1764 * Makefile.in: Set datadir to $(prefix)/share.
1766 1994-09-15 Richard Stallman <rms@gnu.org>
1769 Update copyright notice and GPL version.
1771 1994-09-15 Richard Stallman <rms@gnu.org>
1774 Update copyright notice and GPL version.
1776 1994-07-12 Richard Stallman <rms@gnu.org>
1778 * src/reduce.c, src/reader.c:
1781 1994-05-05 David J. MacKenzie <djm@gnu.org>
1783 * Makefile.in: entered into RCS
1785 1994-03-26 Richard Stallman <rms@gnu.org>
1787 * src/bison.s1: entered into RCS
1789 1994-03-26 Richard Stallman <rms@gnu.org>
1791 * bison.simple: entered into RCS
1793 1994-03-25 Richard Stallman <rms@gnu.org>
1795 * src/main.c: entered into RCS
1797 1994-03-24 Richard Stallman <rms@gnu.org>
1799 * src/conflicts.c: entered into RCS
1801 1994-01-02 Richard Stallman <rms@gnu.org>
1803 * Makefile.in: *** empty log message ***
1805 1993-11-21 Richard Stallman <rms@gnu.org>
1807 * src/bison.s1: *** empty log message ***
1809 1993-11-21 Richard Stallman <rms@gnu.org>
1811 * doc/bison.texinfo: entered into RCS
1813 * doc/bison.texinfo: *** empty log message ***
1815 1993-11-21 Richard Stallman <rms@gnu.org>
1817 * bison.simple: *** empty log message ***
1819 1993-10-25 David J. MacKenzie <djm@gnu.org>
1821 * doc/bison.texinfo: *** empty log message ***
1823 1993-10-19 Richard Stallman <rms@gnu.org>
1825 * src/bison.s1: *** empty log message ***
1827 1993-10-19 Richard Stallman <rms@gnu.org>
1829 * bison.simple: *** empty log message ***
1831 1993-10-14 Richard Stallman <rms@gnu.org>
1833 * src/bison.s1: *** empty log message ***
1835 1993-10-14 Richard Stallman <rms@gnu.org>
1837 * bison.simple: *** empty log message ***
1839 1993-09-14 David J. MacKenzie <djm@gnu.org>
1841 * doc/bison.texinfo: *** empty log message ***
1843 1993-09-13 Noah Friedman <friedman@gnu.org>
1845 * Makefile.in: *** empty log message ***
1847 1993-09-10 Richard Stallman <rms@gnu.org>
1849 * src/conflicts.c: *** empty log message ***
1851 * src/system.h: entered into RCS
1853 1993-09-10 Richard Stallman <rms@gnu.org>
1855 * doc/bison.1: entered into RCS
1857 1993-09-06 Noah Friedman <friedman@gnu.org>
1859 * src/version.c: entered into RCS
1861 1993-09-06 Noah Friedman <friedman@gnu.org>
1863 * Makefile.in: *** empty log message ***
1865 1993-07-30 David J. MacKenzie <djm@gnu.org>
1867 * Makefile.in: *** empty log message ***
1869 1993-07-24 Richard Stallman <rms@gnu.org>
1871 * src/bison.s1: *** empty log message ***
1873 1993-07-24 Richard Stallman <rms@gnu.org>
1875 * bison.simple: *** empty log message ***
1877 1993-07-08 David J. MacKenzie <djm@gnu.org>
1879 * Makefile.in: *** empty log message ***
1881 1993-07-04 Richard Stallman <rms@gnu.org>
1883 * src/bison.s1: *** empty log message ***
1885 1993-07-04 Richard Stallman <rms@gnu.org>
1887 * bison.simple: *** empty log message ***
1889 1993-06-26 David J. MacKenzie <djm@gnu.org>
1891 * src/getargs.c: entered into RCS
1893 1993-06-26 David J. MacKenzie <djm@gnu.org>
1895 * doc/bison.texinfo: *** empty log message ***
1897 * doc/bison.1: New file.
1899 1993-06-25 Richard Stallman <rms@gnu.org>
1901 * src/getargs.c: New file.
1903 1993-06-16 Richard Stallman <rms@gnu.org>
1905 * src/bison.s1: *** empty log message ***
1907 1993-06-16 Richard Stallman <rms@gnu.org>
1909 * bison.simple: *** empty log message ***
1911 1993-06-03 Richard Stallman <rms@gnu.org>
1913 * src/bison.s1: New file.
1915 1993-06-03 Richard Stallman <rms@gnu.org>
1917 * doc/bison.texinfo: *** empty log message ***
1919 1993-06-03 Richard Stallman <rms@gnu.org>
1921 * bison.simple: New file.
1923 1993-05-19 Richard Stallman <rms@gnu.org>
1925 * doc/bison.texinfo: New file.
1927 1993-05-07 Noah Friedman <friedman@gnu.org>
1929 * Makefile.in: *** empty log message ***
1931 1993-04-28 Noah Friedman <friedman@gnu.org>
1933 * src/reader.c: *** empty log message ***
1935 1993-04-23 Noah Friedman <friedman@gnu.org>
1937 * src/alloc.h: entered into RCS
1939 1993-04-20 David J. MacKenzie <djm@gnu.org>
1941 * src/version.c: *** empty log message ***
1943 * src/files.c, src/allocate.c:
1946 * src/reader.c: *** empty log message ***
1948 * src/lex.c: entered into RCS
1950 * src/conflicts.c: New file.
1952 * src/symtab.c: entered into RCS
1954 * src/alloc.h: New file.
1956 * src/LR0.c: entered into RCS
1958 1993-04-18 Noah Friedman <friedman@gnu.org>
1960 * src/reader.c: New file.
1962 * src/version.c: *** empty log message ***
1964 1993-04-18 Noah Friedman <friedman@gnu.org>
1966 * Makefile.in: *** empty log message ***
1968 1993-04-17 Noah Friedman <friedman@gnu.org>
1970 * Makefile.in: *** empty log message ***
1972 1993-04-15 Richard Stallman <rms@gnu.org>
1974 * src/main.c, src/files.c:
1977 1993-04-15 Noah Friedman <friedman@gnu.org>
1979 * configure.in: entered into RCS
1981 * configure.in: *** empty log message ***
1983 * configure.in: New file.
1985 1993-04-14 Richard Stallman <rms@gnu.org>
1987 * Makefile.in: New file.
1989 1993-04-13 Richard Stallman <rms@gnu.org>
1991 * src/version.c: New file.
1993 1993-03-25 Richard Stallman <rms@gnu.org>
1995 * src/output.c: entered into RCS
1997 1992-09-25 Richard Stallman <rms@gnu.org>
1999 * configure.bat: entered into RCS
2001 1992-06-22 Richard Stallman <rms@gnu.org>
2003 * src/vmsgetargs.c: entered into RCS
2005 1992-06-22 Richard Stallman <rms@gnu.org>
2007 * doc/bison.rnh: entered into RCS
2009 1992-04-20 David J. MacKenzie <djm@gnu.org>
2011 * README: entered into RCS
2013 1992-01-22 Richard Stallman <rms@gnu.org>
2015 * src/machine.h: entered into RCS
2017 1991-12-21 Richard Stallman <rms@gnu.org>
2019 * src/lalr.c, src/closure.c:
2022 1991-12-20 Richard Stallman <rms@gnu.org>
2024 * src/state.h: entered into RCS
2026 1991-12-18 Richard Stallman <rms@gnu.org>
2028 * src/print.c, src/nullable.c, src/derives.c:
2031 1991-11-03 David J. MacKenzie <djm@gnu.org>
2033 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2036 1988-09-09 Richard Stallman <rms@gnu.org>
2038 * src/bison.hairy: entered into RCS
2040 1987-12-16 Richard Stallman <rms@gnu.org>
2042 * REFERENCES: entered into RCS