1 2001-03-16 Akim Demaille <akim@epita.fr>
3 * m4/strerror_r.m4: New.
4 * m4/error.m4: Run AC_FUNC_STRERROR_R.
5 * lib/error.h, lib/error.c: Update.
7 2001-03-16 Akim Demaille <akim@epita.fr>
9 * src/getargs.c (longopts): Clean up.
11 2001-02-21 Akim Demaille <akim@epita.fr>
13 * src/reader.c (gensym): `gensym_count' is your own.
14 Use a static buf to create the symbol name, as token_buffer is no
17 2001-02-08 Akim Demaille <akim@epita.fr>
19 * src/conflicts.c (conflict_report): Be sure not to append to res
20 between two calls, which could happen if both first sprintf were
21 skipped, but not the first cp += strlen.
23 2001-02-08 Akim Demaille <akim@epita.fr>
25 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
26 New, from fileutils 4.0.37.
27 * configure.in: Require Autoconf 2.49c. I took some time before
28 making this decision. This is the only way out for portability
29 issues in Bison, it would mean way too much duplicate effort to
30 import in Bison features implemented in 2.49c since 2.13.
31 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
33 2001-02-02 Akim Demaille <akim@epita.fr>
35 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
36 * lib/xalloc.h, lib/xmalloc.c: Update.
38 2001-01-19 Akim Demaille <akim@epita.fr>
40 Get rid of the ad hoc handling of token_buffer in the scanner: use
43 * src/lex.c (token_obstack): New.
44 (init_lex): Initialize it. No longer call...
45 (grow_token_buffer): this. Remove it.
46 Adjust all the places which used it to use the obstack.
48 2001-01-19 Akim Demaille <akim@epita.fr>
50 * src/lex.h: Rename all the tokens:
51 s/\bENDFILE\b/tok_eof/g;
52 s/\bIDENTIFIER\b/tok_identifier/g;
54 Let them be enums, not #define, to ease debugging.
57 2001-01-18 Akim Demaille <akim@epita.fr>
59 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
60 * src/lex.c (maxtoken, grow_token_buffer): Static.
62 2001-01-18 Akim Demaille <akim@epita.fr>
64 Since we now use obstacks, more % directives can be enabled.
66 * src/lex.c (percent_table): Also accept `%yacc',
67 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
69 Handle the actions for `%semantic_parser' and `%pure_parser' here,
70 instead of returning a token.
71 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
72 * src/reader.c (read_declarations): Adjust.
73 * src/files.c (open_files): Don't call `compute_base_names', don't
74 compute `attrsfile' since they depend upon data which might be
75 *in* the input file now.
76 (output_files): Do it here.
77 * src/output.c (output_headers): Document the fact that this patch
78 introduces a guaranteed SEGV for semantic parsers.
79 * doc/bison.texinfo: Document them.
80 * tests/suite.at: Exercise these %options.
82 2000-12-20 Akim Demaille <akim@epita.fr>
84 Also handle the output file (--verbose) with obstacks.
86 * files.c (foutput): Remove.
87 (output_obstack): New.
88 Adjust all dependencies.
89 * src/conflicts.c: Return a string.
90 * src/system.h (obstack_grow_string): Rename as...
91 (obstack_sgrow): this. Be ready to work with non literals.
92 (obstack_fgrow4): New.
94 2000-12-20 Akim Demaille <akim@epita.fr>
96 * src/files.c (open_files): Fix the computation of short_base_name
97 in the case of `-o foo.tab.c'.
99 2000-12-20 Akim Demaille <akim@epita.fr>
101 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
102 (copy_dollar): Now that everything uses obstacks, get rid of the
105 2000-12-20 Akim Demaille <akim@epita.fr>
107 * src/files.c (open_files): Actually the `.output' file is based
108 on the short_base_name, not base_name.
109 * tests/suite.at (Checking output file names): Adjust.
111 2000-12-20 Akim Demaille <akim@epita.fr>
113 * src/bison.s1: Remove, we now use directly...
114 * src/bison.simple: this.
115 * src/Makefile.am: Use pkgdata instead of data.
117 2000-12-20 Akim Demaille <akim@epita.fr>
119 * src/files.c (guard_obstack): New.
120 (open_files): Initialize it.
121 (output_files): Dump it...
122 * src/files.h: Export it.
123 * src/reader.c (copy_guard): Use it.
125 2000-12-19 Akim Demaille <akim@epita.fr>
127 * src/files.c (outfile, defsfile, actfile): Removed as global
129 (open_files): Don't compute them.
130 (output_files): Adjust.
131 (base_name, short_base_name): Be global.
134 2000-12-19 Akim Demaille <akim@epita.fr>
136 * src/files.c (strsuffix): New.
137 (stringappend): Be just like strcat but allocate.
138 (base_names): Eve out from open_files.
139 Try to simplify the rather hairy computation of base_name and
141 (open_files): Use it.
142 * tests/suite.at (Checking output file names): New test.
144 2000-12-19 Akim Demaille <akim@epita.fr>
146 * src/system.h (obstack_grow_literal_string): Rename as...
147 (obstack_grow_string): this.
148 * src/output.c (output_parser): Recognize `%% actions' instead of
150 * src/bison.s1: s/$/%% actions/.
151 * src/bison.hairy: Likewise.
153 2000-12-19 Akim Demaille <akim@epita.fr>
155 * src/output.c (output_parser): Compute the `#line' lines when
157 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
158 Suggested by Hans Aberg.
160 2000-12-19 Akim Demaille <akim@epita.fr>
162 Let the handling of the skeleton files be local to the procedures
165 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
167 (fparser, open_extra_files): Remove.
168 (open_files, output_files): Don't take care of fparser.
169 * src/files.h: Adjust.
170 * src/output.c (output_parser): Open and close the file to the
172 * src/reader.c (read_declarations): When %semantic_parser, open
175 2000-12-19 Akim Demaille <akim@epita.fr>
177 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
178 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
180 2000-12-19 Akim Demaille <akim@epita.fr>
182 * src/files.c (open_files): Yipee! We no longer need all the code
183 looking for `/tmp' since we have no tmp file.
185 2000-12-19 Akim Demaille <akim@epita.fr>
187 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
189 * src/files.c (open_files): Less dependency on MSDOS etc.
191 2000-12-14 Akim Demaille <akim@epita.fr>
193 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
194 Provide a default definition.
195 Use it when executing the default @ action.
196 * src/reader.c (reader_output_yylsp): No longer include
197 `timestamp' and `text' in the default YYLTYPE.
199 2000-12-12 Akim Demaille <akim@epita.fr>
201 * src/reader.c (copy_definition, parse_union_decl, copy_action)
202 (copy_guard): Quote the file names.
203 Reported by Laurent Mascherpa.
205 2000-12-12 Akim Demaille <akim@epita.fr>
207 * src/output.c (output_headers, output_program, output): Be sure
208 to escape special characters when outputting filenames.
209 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
210 (output_headers): Don't depend on them, Use ACTSTR.
212 2000-11-17 Akim Demaille <akim@epita.fr>
214 * lib/obstack.h: Formatting changes.
215 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
216 prevents type checking.
217 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
218 cast the value to (void *): assigning a `foo *' to a `void *'
220 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
221 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
224 2000-11-17 Akim Demaille <akim@epita.fr>
226 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
228 (suite.m4, regression.m4, calc.m4): these.
229 * tests/atgeneral.m4: Update from CVS Autoconf.
231 2000-11-17 Akim Demaille <akim@epita.fr>
233 * tests/regression.m4 (%union and --defines): New test,
234 demonstrating a current bug in the obstack implementation.
236 2000-11-17 Akim Demaille <akim@epita.fr>
238 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
240 Use them to declare the variables which are global or local to
243 2000-11-17 Akim Demaille <akim@epita.fr>
245 * acconfig.h: Remove, no longer used.
247 2000-11-07 Akim Demaille <akim@epita.fr>
249 * src: s/Copyright (C)/Copyright/g.
251 2000-11-07 Akim Demaille <akim@epita.fr>
253 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
255 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
257 2000-11-07 Akim Demaille <akim@epita.fr>
259 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
260 Merge in a single CPP if/else.
262 2000-11-07 Akim Demaille <akim@epita.fr>
264 * src/output.c (output): Remove useless variables.
265 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
266 argument `data' for consistency with the prototypes.
268 (obstack_copy, obstack_copy0): Rename the second argument as
269 `address' for consistency. Qualify it `const'.
270 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
271 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
272 `const' their input argument (`data' or `address').
273 Adjust the corresponding macros to include `const' in casts.
275 2000-11-03 Akim Demaille <akim@epita.fr>
277 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
278 s/PFILE1/BISON_HAIRY/.
281 2000-11-03 Akim Demaille <akim@epita.fr>
283 For some reason, this was not applied.
285 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
286 `unlink': it's no longer used.
288 2000-11-03 Akim Demaille <akim@epita.fr>
290 * src/files.c (skeleton_find): New function, eved out of...
291 (open_files, open_extra_files): here.
293 2000-11-03 Akim Demaille <akim@epita.fr>
297 * src/files.c (obstack_save): New function.
299 (output_files): this.
301 * src/main.c (main): Don't use `atexit' to register `done', since
302 it no longer has to remove tmp files, just call `output_files'
303 when there are no errors.
305 2000-11-02 Akim Demaille <akim@epita.fr>
307 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
308 `unlink': it's no longer used.
309 * src/files.h: Formatting changes.
311 2000-11-02 Akim Demaille <akim@epita.fr>
313 Remove the last uses of mktemp and unlink/delete.
315 * src/files.c (fdefines, ftable): Removed.
316 (defines_ostack, table_obstack): New.
317 Adjust dependencies of the former into uses of the latter.
318 * src/output.c (output_short_or_char_table, output_short_table):
319 Convert to using obstacks.
320 * src/reader.c (copy_comment2): Accept one FILE * and two
322 (output_token_defines, reader_output_yylsp): Use obstacks.
323 * src/system.h (obstack_fgrow3): New.
325 2000-11-01 Akim Demaille <akim@epita.fr>
327 Change each use of `fattrs' into a use of `attrs_obstack'.
329 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
330 * src/files.c (fattrs): Remove.
331 (attrs_obstack): New.
332 Adjust all dependencies.
333 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
335 2000-11-01 Akim Demaille <akim@epita.fr>
338 Change each use of `faction' into a use of `action_obstack'.
340 * lib/obstack.h, lib/obstack.c: New files.
341 * src/files.c (faction): Remove.
342 (action_obstack): New.
343 Adjust all dependencies.
345 2000-10-20 Akim Demaille <akim@epita.fr>
347 * lib/quote.h (PARAMS): New macro. Use it.
349 2000-10-16 Akim Demaille <akim@epita.fr>
351 * src/output.c (output_short_or_char_table): New function.
352 (output_short_table, output_token_translations): Use it.
353 (goto_actions): Use output_short_table.
355 2000-10-16 Akim Demaille <akim@epita.fr>
357 * src/symtab.c (bucket_new): New function.
360 * src/output.c (output_short_table): New argument to display the
361 comment associated with the table.
363 (output_gram): Use it.
364 (output_rule_data): Nicer output layout for YYTNAME.
366 2000-10-16 Akim Demaille <akim@epita.fr>
368 * src/lex.c (read_typename): New function.
370 * src/reader.c (copy_dollar): Likewise.
372 2000-10-16 Akim Demaille <akim@epita.fr>
374 * src/reader.c (copy_comment2): Expect the input stream to be on
375 the `/' which is suspected to open a comment, instead of being
376 called after `//' or `/*' was read.
377 (copy_comment, copy_definition, parse_union_decl, copy_action)
378 (copy_guard): Adjust.
380 2000-10-16 Akim Demaille <akim@epita.fr>
382 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
383 `read_signed_integer'.
385 2000-10-16 Akim Demaille <akim@epita.fr>
387 * src/reader.c (copy_dollar): New function.
388 (copy_guard, copy_action): Use it.
390 2000-10-16 Akim Demaille <akim@epita.fr>
392 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
393 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
394 New files, from Fileutils 4.0.27.
395 * src/main.c (printable_version): Remove.
396 * src/lex.c, src/reader.c: Use `quote'.
398 2000-10-04 Akim Demaille <akim@epita.fr>
400 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
402 2000-10-04 Akim Demaille <akim@epita.fr>
404 * doc/bison.texinfo: Various typos spotted by Neil Booth.
406 2000-10-04 Akim Demaille <akim@epita.fr>
408 When a literal string is used to define two different tokens,
409 `bison -v' segfaults.
410 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
412 * tests/regression.m4: New file.
413 Include the core of the sample provided by Piotr Gackiewicz.
414 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
417 2000-10-04 Akim Demaille <akim@epita.fr>
419 * src/reader.c (parse_expect_decl): Keep `count' within the size
423 2000-10-02 Paul Eggert <eggert@twinsun.com>
425 * bison.s1 (yyparse): Assign the default value
426 unconditionally, to avoid a GCC warning and make the parser a
429 2000-10-02 Akim Demaille <akim@epita.fr>
431 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
434 2000-10-02 Akim Demaille <akim@epita.fr>
436 * src/derives.c, src/print.c, src/reduce.c: To ease the
437 translation, move some `\n' out of the translated strings.
439 2000-10-02 Akim Demaille <akim@epita.fr>
441 The location tracking mechanism is precious for parse error
442 messages. Nevertheless, it is enabled only when `@n' is used in
443 the grammar, which is a different issue (you can use it in error
444 message, but not in the grammar per se). Therefore, there should
445 be another means to enable it.
447 * src/getargs.c (getargs): Support `--locations'.
449 * src/getargs.h (locationsflag): Export it.
450 * src/lex.c (percent_table): Support `%locations'.
451 * src/reader.c (yylsp_needed): Remove this variable, now replaced
452 with `locationsflag'.
453 * doc/bison.texinfo: Document `--locations' and `%locations'.
455 * tests/calc.m4: Test it.
457 For regularity of the names, replace each
458 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
459 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
460 In addition replace each `flag' with `_flag'.
462 2000-10-02 Akim Demaille <akim@epita.fr>
464 Also test parse error messages, including with YYERROR_VERBOSE.
466 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
468 Use it to check the computations.
469 Use it to check `nonassoc' is honored.
470 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
472 (_AT_CHECK_CALC): Adjust to this option.
473 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
475 2000-10-02 Akim Demaille <akim@epita.fr>
477 Test also `--verbose', `--defines' and `--name-prefix'. Testing
478 the latter demonstrates a flaw in the handling of non debugging
479 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
480 was used in order to simplify:
496 unfortunately this leads to a CPP conflict when
497 `--name-prefix=foo' is used since it produces `#define yydebug
500 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
501 (YYDPRINTF): New macro.
503 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
505 Also test `--verbose', `--defines' and `--name-prefix'.
507 2000-10-02 Akim Demaille <akim@epita.fr>
509 Improve the readability of the produced parsers.
511 * src/bison.s1: Formatting changes.
512 Improve the comment related to the `$' mark.
513 (yydefault): Don't fall through to `yyresume': `goto' there.
514 * src/output.c (output_parser): When the `$' is met, skip the end
516 New variable, `number_of_dollar_signs', to check there's exactly
517 one `$' in the parser skeleton.
519 2000-10-02 Akim Demaille <akim@epita.fr>
521 * lib/xstrdup.c: New file, from the fileutils.
522 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
523 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
524 instead of strlen + xmalloc + strcpy.
525 * src/symtab.c (copys): Remove, use xstrdup instead.
527 2000-10-02 Akim Demaille <akim@epita.fr>
529 * src/gram.h (associativity): New enum type which replaces the
530 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
531 `right_assoc', `left_assoc' and `non_assoc'.
532 Adjust all dependencies.
533 * src/reader.c: Formatting changes.
534 (LTYPESTR): Don't define it, use it as a literal in
535 `reader_output_yylsp'.
536 * src/symtab.h (symbol_class): New enum type which replaces the
537 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
538 `sunknown', `stoken and `snterm'.
540 2000-10-02 Akim Demaille <akim@epita.fr>
542 * src/getargs.c (fixed_outfiles): Rename as...
543 (yaccflag): for consistency and accuracy.
546 2000-10-02 Akim Demaille <akim@epita.fr>
548 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
549 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
550 difficult and introduced a lot of core dump. It turns out that
551 Bison used an implementation of `xmalloc' based on `calloc', and
552 at various places it does depend upon the initialization to 0. I
553 have not tried to isolate the pertinent places, and all the former
554 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
555 someone should address this issue.
557 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
558 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
561 * src/warshall.h: New file.
564 2000-10-02 Akim Demaille <akim@epita.fr>
566 Various anti-`extern in *.c' changes.
568 * src/system.h: Include `assert.h'.
570 2000-10-02 Akim Demaille <akim@epita.fr>
572 * src/state.h (nstates, final_state, first_state, first_shift)
573 (first_reduction): Move their exportation from here...
574 * src/LR0.h: to here.
576 * src/getargs.c (statisticsflag): New variable.
577 Add support for `--statistics'.
580 Remove a lot of now useless `extern' statements in most files.
582 2000-10-02 Akim Demaille <akim@epita.fr>
584 * src/LR0.h: New file.
587 2000-10-02 Akim Demaille <akim@epita.fr>
589 * src/print.h: New file.
591 * src/print.c: Formatting and ordering changes.
592 (verbose, terse): Replace with...
593 (print_results): this new function.
596 2000-10-02 Akim Demaille <akim@epita.fr>
598 * src/conflicts.c (conflict_report): New function.
599 (conflict_log, verbose_conflict_log): Replace with...
600 (print_conflicts): this function.
602 * src/conflicts.h: New file.
603 Propagate its inclusion.
605 2000-10-02 Akim Demaille <akim@epita.fr>
607 * src/nullable.h: New file.
608 Propagate its inclusion.
609 * src/nullable.c: Formatting changes.
611 2000-10-02 Akim Demaille <akim@epita.fr>
613 * src/reduce.h: New file.
614 Propagate its inclusion.
615 * src/reduce.c: Topological sort and other formatting changes.
616 (bool, TRUE, FALSE): Move their definition to...
617 * src/system.h: here.
619 2000-10-02 Akim Demaille <akim@epita.fr>
621 * src/files.c: Formatting changes.
622 (tryopen, tryclose, openfiles): Rename as...
623 (xfopen, xfclose, open_files): this.
624 (stringappend): static.
625 * src/files.h: Complete the list of exported symbols.
628 2000-10-02 Akim Demaille <akim@epita.fr>
630 * src/reader.h: New file.
631 Propagate its use instead of tedious list of `extern' and
633 * src/reader.c: Formatting changes, topological sort,
636 2000-10-02 Akim Demaille <akim@epita.fr>
638 * src/lex.h: Prototype `lex.c' exported functions.
639 * src/reader.c: Adjust.
640 * src/lex.c: Formatting changes.
641 (safegetc): Rename as...
644 2000-10-02 Akim Demaille <akim@epita.fr>
646 * src/lalr.h: New file.
647 Propagate its inclusion instead of prototypes and `extern'.
648 * src/lalr.c: Formatting changes, topological sorting etc.
650 2000-10-02 Akim Demaille <akim@epita.fr>
652 * src/output.c (token_actions): Introduce a temporary array,
653 YYDEFACT, that makes it possible for this function to use
656 2000-10-02 Akim Demaille <akim@epita.fr>
658 `user_toknums' is output as a `short[]' in `output.c', while it is
659 defined as a `int[]' in `reader.c'. For consistency with the
660 other output tables, `user_toknums' is now defined as a table of
663 * src/reader.c (user_toknums): Be a short table instead of an int
667 Factor the short table outputs.
669 * src/output.c (output_short_table): New function.
670 * src/output.c (output_gram, output_stos, output_rule_data)
671 (output_base, output_table, output_check): Use it.
673 2000-10-02 Akim Demaille <akim@epita.fr>
675 * src/output.c (output): Topological sort of the functions, in
676 order to get rid of the `static' prototypes.
677 No longer use `register'.
678 * src/output.h: New file.
679 Propagate its inclusion in files explicitly prototyping functions
682 2000-09-21 Akim Demaille <akim@epita.fr>
684 * src/atgeneral.m4: Update from Autoconf.
686 2000-09-21 Akim Demaille <akim@epita.fr>
688 * src/closure.h: New file.
689 * src/closure.c: Formatting changes, topological sort over the
690 functions, use of closure.h.
691 (initialize_closure, finalize_closure): Rename as...
692 (new_closure, free_closure): these. Adjust dependencies.
693 * src/LR0.c: Formatting changes, topological sort, use of
695 (initialize_states): Rename as...
697 * src/Makefile.am (noinst_HEADERS): Adjust.
699 2000-09-20 Akim Demaille <akim@epita.fr>
701 * src/acconfig.h: Don't protect config.h against multiple
704 * src/system.h: Define PARAMS.
705 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
706 purpose of config.h. system.h must not try to fix wrong
707 definitions in config.h.
709 2000-09-20 Akim Demaille <akim@epita.fr>
711 * src/derives.h: New file.
712 * src/main.c, src/derives.h: Use it.
714 * src/Makefile.am (noinst_HEADERS): Adjust.
716 2000-09-20 Akim Demaille <akim@epita.fr>
718 * tests/atgeneral.m4: Update from Autoconf.
719 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
720 (AT_CHECK_CALC): New macros.
721 Use these macros to test bison with options `', `--raw',
722 `--debug', `--yacc', `--yacc --debug'.
724 2000-09-19 Akim Demaille <akim@epita.fr>
726 * src/output.c: Formatting changes.
727 * src/machine.h: Remove, leaving its contents in...
728 * src/system.h: here.
730 Adjust all dependencies on stdio.h and machine.h.
731 * src/getargs.h: New file.
732 Let all `extern' declarations about getargs.c be replaced with
733 inclusion of `getargs.h'.
734 * src/Makefile.am (noinst_HEADERS): Adjust.
736 * tests/calc.m4 (yyin): Be initialized in main, not on the global
738 (yyerror): Returns void, not int.
739 * doc/bison.texinfo: Formatting changes.
741 2000-09-19 Akim Demaille <akim@epita.fr>
743 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
746 2000-09-18 Akim Demaille <akim@epita.fr>
748 * configure.in: Append WARNING_CFLAGS to CFLAGS.
749 * src/Makefile.am (INCLUDES): Don't.
750 Be ready to fetch headers in lib/.
752 2000-09-18 Akim Demaille <akim@epita.fr>
754 * doc/bison.texinfo: Update the copyright.
755 ANSIfy and GNUify the examples.
758 2000-09-18 Akim Demaille <akim@epita.fr>
760 First set of tests: use the `calc' example from the documentation.
762 * src/bison.s1 (yyparse): Condition the code using `yytname' which
763 is defined only when YYDEBUG is.
764 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
765 * src/files.c (tryopen, tryclose): Formatting changes.
766 Move to the top and be static.
767 * src/reader.c (read_signed_integer): Likewise.
768 * tests/calc.m4: New file.
769 * Makefile.am, suite.m4: Adjust.
770 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
772 2000-09-18 Akim Demaille <akim@epita.fr>
774 Add support for an Autotest test suite for Bison.
776 * m4/m4.m4, m4/atconfig.m4: New files.
777 * m4/Makefile.am (EXTRA_DIST): Adjust.
778 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
780 * src/getargs.c: Display a more standard --version message.
781 * src/reader.c (reader): Formatting changes.
782 No longer depend upon VERSION_STRING.
783 * configure.in: No longer use `dnl'.
784 Set up the test suite and the new directory `tests/.
785 (VERSION_STRING): Remove.
787 2000-04-14 Akim Demaille <akim@epita.fr>
789 * src/reader.c (copy_comment2): New function, same as former
790 `copy_comment', but outputs into two FILE *.
791 (copy_comment): Use it.
792 (parse_union_decl): Use it.
793 (get_type, parse_start_decl): Use the same `invalid' message.
794 (parse_start_decl, parse_union_decl): Use the same `multiple'
796 (parse_union_decl, copy_guard, copy_action): Use the same
798 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
800 2000-03-31 Akim Demaille <akim@epita.fr>
802 * src/files.c (tryopen, tryclose): Move to the top.
805 2000-03-31 Akim Demaille <akim@epita.fr>
807 * src/main.c (main): Don't call `done', exit does it.
809 2000-03-31 Akim Demaille <akim@epita.fr>
811 * allocate.c: s/return (foo)/return foo/.
814 * output.c: Likewise.
815 * reader.c: Likewise.
816 * symtab.c: Likewise.
817 * vmsgetargs.c: Likewise.
819 2000-03-31 Akim Demaille <akim@epita.fr>
821 Clean up the error reporting functions.
823 * src/report.c: New file.
824 * src/report.h: Likewise.
825 * src/Makefile.am: Adjust.
826 * m4/error.m4: New file.
827 * m4/Makefile.am: Adjust.
828 * configure.in (jm_PREREQ_ERROR): Call it.
829 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
831 (fatal, fatals): Remove. All callers use complain.c::fatal.
832 (warn, warni, warns, warnss, warnss): Remove. All callers use
833 complain.c::complain.
834 (toomany): Remove, use fatal instead.
835 * src/files.c (done): No argument, use complain_message_count.
836 * src/main.c (main): Register `done' to `atexit'.
838 * src/getargs.c (usage): More `fputs', less `fprintf'.
840 2000-03-28 Akim Demaille <akim@epita.fr>
842 * lib/: New directory.
843 * Makefile.am (SUBDIRS): Adjust.
844 * configure.in: Adjust.
845 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
847 * src/alloca.c: Moved to lib/.
848 * src/getopt.c: Likewise.
849 * src/getopt1.c: Likewise.
850 * src/getopt.h: Likewise.
851 * src/ansi2knr.c: Likewise.
852 * src/ansi2knr.1: Likewise.
853 * src/Makefile.am: Adjust.
854 * lib/Makefile.am: New file.
856 2000-03-28 Akim Demaille <akim@epita.fr>
858 * src/getargs.c (usage): Refresh the help message.
860 2000-03-17 Akim Demaille <akim@epita.fr>
862 * src/getopt1.c: Updated from textutils 2.0e
863 * src/getopt.c: Likewise.
864 * src/getopt.h: Likewise.
866 2000-03-17 Akim Demaille <akim@epita.fr>
868 * src/Makefile.am (bison.simple): Fix the awk program: quote only
869 the file name, not the whole `#line LINE FILE'.
871 2000-03-17 Akim Demaille <akim@epita.fr>
873 On syntax errors, report the token on which we choked.
875 * src/bison.s1 (yyparse): In the label yyerrlab, when
876 YYERROR_VERBOSE, add yychar in msg.
878 2000-03-17 Akim Demaille <akim@epita.fr>
880 * src/reader.c (copy_at): New function.
881 (copy_guard): Use it.
882 (copy_action): Use it.
884 2000-03-17 Akim Demaille <akim@epita.fr>
886 Be kind to translators, save some useless translations.
888 * src/main.c (banner): New function.
889 (fatal_banner): Use it.
890 (warn_banner): Use it.
892 2000-03-17 Akim Demaille <akim@epita.fr>
894 * src/reader.c (copy_definition): Use copy_string and
895 copy_comment. Removed now unused `match', `ended',
897 (copy_comment, copy_string): Moved, to be visible from
900 2000-03-17 Akim Demaille <akim@epita.fr>
902 * src/reader.c (copy_string): Declare `static inline'. No
903 problems with inline, since it is checked by configure.
904 (copy_comment): Likewise.
906 2000-03-17 Akim Demaille <akim@epita.fr>
908 * src/reader.c (packsymbols): Formatting changes.
910 2000-03-17 Akim Demaille <akim@epita.fr>
912 * src/reader.c (copy_comment): New function, factored out from:
913 (copy_action): Use it. Removed now unused `match', `ended',
915 (copy_guard): Likewise.
917 2000-03-17 Akim Demaille <akim@epita.fr>
919 * src/reader.c (copy_string): New function, factored out from:
920 (copy_action): Use it.
921 (copy_guard): Likewise.
923 2000-03-17 Akim Demaille <akim@epita.fr>
925 Change the handling of @s so that they behave exactly like $s.
926 There is now a pseudo variable @$ (readble and writable), location
927 of the lhs of the rule (by default ranging from the location of
928 the first symbol of the rhs, to the location of the last symbol,
929 or, if the rhs is empty, YYLLOC).
931 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
933 (yyparse): When providing a default semantic action, provide a
934 default location action.
935 (after the $): No longer change `*YYLSP', just stack YYLOC the
936 same way you stack YYVAL.
937 * src/reader.c (read_declarations): Use warns.
938 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
939 (copy_action, case '@'): Likewise.
940 Use a standard error message, to save useless work from
943 2000-03-17 Akim Demaille <akim@epita.fr>
945 * src/bison.s1: Formatting and cosmetics changes.
946 * src/reader.c: Likewise.
947 Update the Copyright notice.
949 2000-03-17 Akim Demaille <akim@epita.fr>
951 * src/bison.s1 (#line): All set to `#line' only, since the
952 Makefile now handles them.
954 2000-03-16 Akim Demaille <akim@epita.fr>
956 * src/output.c (output_rule_data): Output the documentation of
958 (Copyright notice): Update.
961 2000-03-16 Akim Demaille <akim@epita.fr>
963 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
964 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
965 One `#if YYDEBUG' remains, since it uses variables which are
966 defined only if `YYDEBUG != 0'.
968 2000-03-16 Akim Demaille <akim@epita.fr>
970 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
971 and related variables so that the similarities are highlighted.
973 2000-03-16 Akim Demaille <akim@epita.fr>
975 * src/bison.s1: Properly indent CPP directives.
977 2000-03-16 Akim Demaille <akim@epita.fr>
979 * src/bison.s1: Properly indent the `alloca' CPP section.
981 2000-03-16 Akim Demaille <akim@epita.fr>
983 Do not hard code values of directories in `configure.in'.
984 Update the `configure' tool chain.
986 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
988 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
989 (AC_OUTPUT): Add m4/Makefile.
990 Bump to bison 1.28a, 1.29 has never been released.
991 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
992 handled via src/Makefile.am.
993 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
994 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
996 * Makefile.am (SUBDIRS): Add m4.
997 (ACLOCAL_AM_FLAGS): New variable.
998 (AUTOMAKE_OPTIONS): Add check-news.
999 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1000 the proper line number and file name.
1001 (DEFS): Propagate the location of bison library files and of the
1003 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1005 * acinclude.m4: Remove, replaced by the directory m4.
1006 * m4/Makefile.am (EXTRA_DIST): New variable.
1007 * m4/gettext.m4: New file, from the fileutils.
1008 * m4/lcmessage.m4: Likewise
1009 * m4/progtest.m4: Likewise.
1010 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1012 2000-03-10 Akim Demaille <akim@epita.fr>
1015 Formatting changes of various comments.
1016 Respect the GNU coding standards at various places.
1017 Don't use `_()' when no translation is needed.
1019 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1022 OS/2 honors TMPDIR environment variable.
1024 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1026 * doc/bison.texinfo: Tweaked spelling and grammar.
1028 Removed reference to price of printed copy.
1029 Mention BISON_SIMPLE and BISON_HAIRY.
1031 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1033 * configure.in, NEWS:
1034 Bison 1.29 released.
1036 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1038 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1039 Added reference card.
1041 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1043 * po/ru.po: Added Russian translation.
1045 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1047 * configure.in: Added Russian translation.
1049 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1051 * configure.in, NEWS, README:
1052 Released version 1.28.
1054 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1057 Squashed redefinition warning on some systems.
1059 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1060 Have configure build version string instead of relying on ANSI string
1063 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1065 * po/POTFILES.in: Got rid of version.c.
1067 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1069 * acconfig.h, configure.in:
1070 Have configure build version string instead of relying on ANSI string
1073 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1076 Dropped mention of `+' for long-named options.
1078 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1080 * src/files.c: Added <unistd.h> for unlink().
1082 * src/Makefile.am, src/system.h:
1085 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1087 * README: Added a FAQ list.
1089 * configure.in, acconfig.h:
1092 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1094 * doc/FAQ, doc/Makefile.am:
1097 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1099 * src/alloc.h, src/symtab.h, src/version.c:
1100 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1102 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1104 * src/.cvsignore, src/Makefile.am:
1105 Reorganized: sources in `src', documentation in `doc'.
1107 * src/lex.c (literalchar):
1108 fixed the code for escaping double quotes (thanks
1111 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1113 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1114 Adjusted paths to reflect directory reorganization.
1116 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1118 * doc/.cvsignore, doc/Makefile.am:
1119 Reorganized: sources in `src', documentation in `doc'.
1121 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1124 Updated AC_INIT file to reflect directory reorganization.
1126 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1127 Reorganized: sources in `src', documentation in `doc'.
1129 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1132 Don't declare calloc() and realloc() if not necessary.
1134 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1136 * configure.in, acconfig.h, acinclude.m4:
1137 Don't declare calloc() and realloc() if not necessary.
1139 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1141 * po/.cvsignore: Added i18n support.
1143 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1145 * acconfig.h, configure.in, Makefile.am:
1148 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1150 * src/bison.s1: Fixed #line numbers.
1152 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1154 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1155 Added PO files from Translation Project.
1157 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1160 Added support for non-ANSI compilers (ansi2knr).
1162 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1164 * configure.in: Bumped version number to 1.27.
1167 Added `bison.simple' to list of files removed by `make distclean'.
1169 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1171 * src/files.c, src/files.h:
1172 Defined locations of parser files in config.h instead of Makefile.
1174 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1176 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1177 Defined locations of parser files in config.h instead of Makefile.
1179 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1182 Removed inappropriate use of $< macro.
1184 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1186 * po/Makefile.in.in, po/POTFILES.in:
1187 Add `po' directory skeleton.
1189 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1191 * README: Document help-bison list.
1193 * configure.in: Add check for mkstemp().
1195 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1197 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1198 Hush a few compiler warnings.
1201 Add tryclose(), which verifies that fclose was successful.
1202 Hush a couple of compiler warnings.
1204 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1206 * Makefile.am, OChangeLog:
1207 ChangeLog is now automatically generated. Include the old version as
1210 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1212 * 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:
1215 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1217 * doc/bison.texinfo: Fix formatting glitch.
1219 * doc/bison.texinfo: Update FSF address.
1221 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1223 * acconfig.h: Update FSF address.
1225 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1228 Don't define PACKAGE here, since config.h defines it.
1230 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1232 * src/reader.c: Update copyright date.
1235 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1236 favor of output directly to stderr (avoids buffer overruns).
1238 * src/reader.c: Some checks for premature EOF.
1240 * 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:
1241 Use prototypes if the compiler understands them.
1243 * src/files.c: Honor TMPDIR on Unix hosts.
1244 Use prototypes if the compiler understands them.
1247 Fix a couple of buffer overrun bugs.
1248 Use prototypes if the compiler understands them.
1250 * src/system.h: Include unistd.h and ctype.h.
1251 Use #ifdef instead of #if for NLS symbols.
1253 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1255 * doc/bison.texinfo:
1256 Delete comment "consider using @set for edition number, etc..." since
1257 we now are doing so.
1259 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1262 Use prototypes if the compiler understands them.
1264 * NEWS: Document 1.26 highlights.
1266 * Makefile.am: Require Automake 1.3 or later.
1269 Use prototypes if the compiler understands them.
1271 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1274 Use VERSION symbol from automake for version number.
1276 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1278 * acconfig.h, configure.in, version.cin:
1279 Use VERSION symbol from automake for version number.
1281 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1284 Distribute original version of simple parser (bison.s1), not built
1285 version (bison.simple).
1287 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1289 * doc/bison.texinfo: Add info dir entry.
1291 * doc/bison.texinfo:
1292 Let automake put version number into documentation.
1294 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1296 * src/bison.cld, src/build.com, src/vmshlp.mar:
1297 Add non-RCS files from /gd/gnu/bison.
1299 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1302 Document the BISON_HAIRY and BISON_SIMPLE variables.
1304 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1306 * src/version.c: Build version.c automatically.
1309 Fix token numbering (used to start at 258, not 257).
1311 * src/system.h: Include config.h.
1313 * src/getargs.c: Update bug report address.
1315 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1316 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1318 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1321 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1323 * configure.in, version.cin:
1324 Build version.c automatically.
1326 * AUTHORS: Add AUTHORS file.
1328 * README: Update bug report address.
1331 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1333 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1336 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1338 * doc/bison.texinfo: Clean up some formatting.
1340 1998-05-05 Richard Stallman <rms@gnu.org>
1342 * doc/bison.texinfo:
1343 Explain better why to make a pure parser.
1345 1998-01-05 Richard Stallman <rms@gnu.org>
1347 * src/files.c (openfiles):
1348 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1349 find a temporary directory, if possible. Do not unlink files while
1352 1997-08-25 Richard Stallman <rms@gnu.org>
1354 * src/reader.c (stack_offset;):
1355 Change some warni to warns.
1357 * src/lex.c (literalchar): Use warns, not warni.
1359 1997-06-28 Richard Stallman <rms@gnu.org>
1361 * src/bison.s1: Add a Bison version comment.
1363 * src/main.c (fatal, warn, berror):
1366 1997-06-28 Richard Stallman <rms@gnu.org>
1368 * Makefile.in (bison_version): New variable.
1369 (dist): Use that variable.
1370 (bison.s1): Substitute the Bison version into bison.simple.
1372 * bison.simple: Add a Bison version comment.
1374 1997-06-18 Richard Stallman <rms@gnu.org>
1376 * src/main.c (fatal, warn, berror):
1377 Make error messages standard.
1378 (toomany): Improve error message text.
1380 * 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:
1381 new.h renamed to alloc.h.
1383 1997-06-18 Richard Stallman <rms@gnu.org>
1385 * Makefile.in: new.h renamed to alloc.h.
1387 1997-05-24 Richard Stallman <rms@gnu.org>
1389 * src/lex.c (literalchar):
1390 Fix the code for escaping \, " and '.
1392 (lex): Avoid trouble when there are many chars
1393 to discard in a char literal with just several chars in it.
1395 1997-05-17 Richard Stallman <rms@gnu.org>
1398 Use malloc, if using alloca is troublesome.
1399 (YYSTACK_USE_ALLOCA): New flag macro.
1400 Define it for some systems and compilers.
1401 (YYSTACK_ALLOC): New macro.
1402 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1403 If it was malloc'd, free it.
1405 1997-05-17 Richard Stallman <rms@gnu.org>
1408 Use malloc, if using alloca is troublesome.
1409 (YYSTACK_USE_ALLOCA): New flag macro.
1410 Define it for some systems and compilers.
1411 (YYSTACK_ALLOC): New macro.
1412 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1413 If it was malloc'd, free it.
1415 1997-04-23 Richard Stallman <rms@gnu.org>
1418 (alloca) [__hpux]: Always define as __builtin_alloca.
1420 1997-04-23 Richard Stallman <rms@gnu.org>
1423 (alloca) [__hpux]: Always define as __builtin_alloca.
1425 1997-04-22 Richard Stallman <rms@gnu.org>
1428 [__hpux]: Include alloca.h (right for HPUX 10)
1429 instead of declaring alloca (right for HPUX 9).
1431 * src/bison.s1 (__yy_memcpy):
1432 Declare arg `count' as unsigned int.
1433 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1435 1997-04-22 Richard Stallman <rms@gnu.org>
1438 [__hpux]: Include alloca.h (right for HPUX 10)
1439 instead of declaring alloca (right for HPUX 9).
1441 * bison.simple (__yy_memcpy):
1442 Declare arg `count' as unsigned int.
1443 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1445 1997-01-03 Richard Stallman <rms@gnu.org>
1447 * src/allocate.c: [__STDC__ or _MSC_VER]:
1448 Declare calloc and realloc to return void *.
1450 1997-01-02 Richard Stallman <rms@gnu.org>
1453 [_MSC_VER]: Include stdlib.h and process.h.
1454 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1456 * src/main.c (main): Return FAILURE as a value.
1457 (printable_version): Declare arg as int, not char.
1459 1997-01-02 Richard Stallman <rms@gnu.org>
1461 * Makefile.in (dist):
1462 Explicitly check for symlinks, and copy them.
1464 1996-12-19 Richard Stallman <rms@gnu.org>
1467 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1469 1996-12-18 Paul Eggert <eggert@gnu.org>
1471 * src/bison.s1 (yyparse):
1472 If __GNUC__ and YYPARSE_PARAM are both defined,
1473 declare yyparse to have a void * argument.
1475 1996-12-18 Paul Eggert <eggert@gnu.org>
1477 * bison.simple (yyparse):
1478 If __GNUC__ and YYPARSE_PARAM are both defined,
1479 declare yyparse to have a void * argument.
1481 1996-12-17 Richard Stallman <rms@gnu.org>
1483 * src/reduce.c (nbits): Add some casts.
1485 1996-08-12 Richard Stallman <rms@gnu.org>
1487 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1489 1996-08-12 Richard Stallman <rms@gnu.org>
1491 * bison.simple: Test _MSDOS as well as _MSDOS_.
1493 1996-07-31 Richard Stallman <rms@gnu.org>
1496 [__sun && __i386]: Include alloca.h.
1498 1996-07-31 Richard Stallman <rms@gnu.org>
1501 [__sun && __i386]: Include alloca.h.
1503 1996-07-30 Richard Stallman <rms@gnu.org>
1505 * src/bison.s1: Comment change.
1507 * src/bison.s1: Test _MSDOS_, not MSDOS.
1509 1996-07-30 Richard Stallman <rms@gnu.org>
1511 * bison.simple: Comment change.
1513 * bison.simple: Test _MSDOS_, not MSDOS.
1515 1996-06-01 Richard Stallman <rms@gnu.org>
1517 * 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:
1518 Insert `_' macro around many string constants.
1521 Insert `_' macro around many string constants.
1523 (main): Call setlocale, bindtextdomain and textdomain.
1525 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1526 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1527 [ENABLE_NLS]: Include libintl.h.
1528 [ENABLE_NLS] (gettext): Define.
1529 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1530 (N_, PACKAGE, LOCALEDIR): New macros.
1532 1996-06-01 Richard Stallman <rms@gnu.org>
1534 * POTFILES.in: New file.
1536 * Makefile.in (allocate.o):
1537 Define target explicitly.
1539 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1540 (LDFLAGS): Set to @LDFLAGS@.
1541 (configure): Run autoconf only if preceding `cd' succeeds.
1542 (bison.s1): Redirect output to temporary file then move the
1543 temporary to the target, rather than redirecting directly to bison.s1.
1544 (clean): Remove config.status and config.log.
1545 (distclean): Don't remove config.status here.
1547 1996-05-12 Richard Stallman <rms@gnu.org>
1550 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1552 1996-05-12 Richard Stallman <rms@gnu.org>
1555 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1557 1996-05-11 Richard Stallman <rms@gnu.org>
1559 * src/bison.s1 (__yy_memcpy):
1560 Really reorder the args, as was supposedly done on Feb 14 1995.
1561 (yyparse): Calls changed accordingly.
1563 1996-05-11 Richard Stallman <rms@gnu.org>
1565 * Makefile.in (dist): Don't use $(srcdir).
1567 * bison.simple (__yy_memcpy):
1568 Really reorder the args, as was supposedly done on Feb 14 1995.
1569 (yyparse): Calls changed accordingly.
1571 1996-01-27 Richard Stallman <rms@gnu.org>
1573 * src/output.c (output_rule_data):
1574 Test YYERROR_VERBOSE in the conditional
1575 around the definition of ttyname.
1577 1995-12-29 Richard Stallman <rms@gnu.org>
1580 Fix line numbers in #line commands.
1582 1995-12-29 Richard Stallman <rms@gnu.org>
1585 Fix line numbers in #line commands.
1587 1995-12-27 Richard Stallman <rms@gnu.org>
1589 * src/bison.s1 (YYPARSE_PARAM_DECL):
1590 In C++, make it always null.
1591 (YYPARSE_PARAM_ARG): New macro.
1592 (yyparse): Use YYPARSE_PARAM_ARG.
1594 1995-12-27 Richard Stallman <rms@gnu.org>
1596 * bison.simple (YYPARSE_PARAM_DECL):
1597 In C++, make it always null.
1598 (YYPARSE_PARAM_ARG): New macro.
1599 (yyparse): Use YYPARSE_PARAM_ARG.
1601 1995-11-29 Richard Stallman <rms@gnu.org>
1603 * doc/bison.texinfo:
1604 Describe literal string tokens, %raw, %no_lines, %token_table.
1606 1995-11-29 Daniel Hagerty <hag@gnu.org>
1608 * doc/bison.texinfo: Fixed update date
1610 1995-10-16 Richard Stallman <rms@gnu.org>
1612 * src/version.c: Version 1.25.
1614 1995-10-16 Richard Stallman <rms@gnu.org>
1616 * NEWS: *** empty log message ***
1618 1995-10-16 Richard Stallman <rms@gnu.org>
1620 * doc/bison.1, doc/bison.rnh:
1623 1995-10-15 Richard Stallman <rms@gnu.org>
1625 * src/vmsgetargs.c, src/getargs.c:
1626 Added -n, -k, and -raw switches.
1627 (noparserflag, toknumflag, rawtoknumflag): New variables.
1629 * src/symtab.h (SALIAS):
1630 New #define for adding aliases to %token.
1631 (struct bucket): Added `alias' field.
1633 * src/reduce.c (reduce_grammar):
1634 Revise error message.
1635 (print_notices): Remove final `.' from error message.
1637 * src/reader.c (reader_output_yylsp):
1639 (readgram): Use `#if 0' around code that accepted %command
1640 inside grammar rules: The documentation doesn't allow it,
1641 and it will fail since the %command processors scan for the next %.
1642 (parse_token_decl): Extended the %token
1643 declaration to allow a multi-character symbol as an alias.
1644 (parse_thong_decl): New function.
1645 (read_declarations): Added %thong declarations.
1646 (read_declarations): Handle NOOP to deal with allowing
1647 % declarations as another means to specify the flags.
1648 (readgram): Allow %prec prior to semantics embedded in a rule.
1649 (skip_to_char, read_declarations, copy_definition)
1650 (parse_token_decl, parse_start_decl, parse_type_decl)
1651 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1652 (get_type_name, copy_guard, copy_action, readgram)
1653 (get_type, packsymbols): Revised most error messages.
1654 Changed `fatal' to `warnxxx' to avoid aborting for error.
1655 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1656 (read_declarations): Improve the error message for
1657 an invalid character. Do not abort.
1658 (read_declarations, copy_guard, copy_action): Use
1659 printable_version to avoid unprintable characters in printed output.
1660 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1661 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1662 Allow the type of a non-terminal can be given
1663 more than once, as long as all specifications give the same type.
1666 (output_headers, output_trailers, output, output_gram)
1667 (output_rule_data): Implement noparserflag variable.
1668 Implement toknumflag variable.
1669 (output): Call reader_output_yylsp to output LTYPESTR.
1671 * src/main.c (main):
1672 If reader sees an error, don't process the grammar.
1673 (fatals): Updated to not use VARARGS1.
1674 (printable_version, int_to_string, warn, warni, warns, warnss)
1675 (warnsss): New error reporting functions. Avoid abort for error.
1678 Added THONG and NOOP for alias processing.
1679 Added SETOPT for the new code that allows setting options with %flags.
1682 Include getopt.h. Add some extern decls.
1683 (safegetc): New function to deal with EOF gracefully.
1684 (literalchar); new function to deal with reading \ escapes.
1685 (lex): Use literalchar.
1686 (lex): Implemented "..." tokens.
1687 (literalchar, lex, parse_percent_token): Made tokenbuffer
1688 always contain the token. This includes growing the token
1689 buffer while reading an integer.
1690 (parse_percent_token): Replaced if-else statement with percent_table.
1691 (parse_percent_token): Added % declarations as another
1692 way to specify the flags -n, -l, and -r. Also added hooks for
1693 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1694 major changes to files.c.
1695 (lex) Retain in the incoming stream a character following
1697 (skip_white_space, lex): Revised most error messages
1698 and changed fatal to warn to avoid aborting.
1699 (percent_table): Added %thong declarations.
1701 * src/gram.h: Comment changes.
1703 * src/files.c (openfiles, open_extra_files, done):
1705 and actfile file. Handle noparserflag. Both for -n switch.
1707 * src/conflicts.c (resolve_sr_conflict):
1708 Remove use of alloca.
1710 1995-06-01 Jim Meyering <meyering@gnu.org>
1712 * doc/bison.texinfo: *** empty log message ***
1714 1995-05-06 Richard Stallman <rms@gnu.org>
1716 * src/bison.s1: Comment change.
1718 1995-05-06 Richard Stallman <rms@gnu.org>
1720 * bison.simple: Comment change.
1722 1995-05-03 Richard Stallman <rms@gnu.org>
1724 * src/version.c: Version now 1.24.
1726 * src/bison.s1: Change distribution terms.
1728 * src/version.c: Version now 1.23.
1730 1995-05-03 Richard Stallman <rms@gnu.org>
1732 * doc/bison.texinfo:
1733 Rewrite "Conditions for Using Bison".
1734 Update version to 1.24.
1736 1995-05-03 Richard Stallman <rms@gnu.org>
1738 * bison.simple: Change distribution terms.
1740 1995-02-23 Richard Stallman <rms@gnu.org>
1742 * src/files.c: Test __VMS_POSIX as well as VMS.
1744 1995-02-14 Jim Meyering <meyering@gnu.org>
1746 * src/bison.s1 (__yy_memcpy):
1747 Renamed from __yy_bcopy to avoid
1748 confusion. Reverse FROM and TO arguments to be consistent with
1751 1995-02-14 Jim Meyering <meyering@gnu.org>
1753 * bison.simple (__yy_memcpy):
1754 Renamed from __yy_bcopy to avoid
1755 confusion. Reverse FROM and TO arguments to be consistent with
1758 1994-11-10 David J. MacKenzie <djm@gnu.org>
1764 * Makefile.in (DISTFILES): Include NEWS.
1766 * Makefile.in (DISTFILES):
1767 Include install-sh, not install.sh.
1769 * configure.in: Update to Autoconf v2 macro names.
1771 1994-10-05 David J. MacKenzie <djm@gnu.org>
1773 * Makefile.in: fix typo
1775 * Makefile.in (prefix, exec_prefix):
1776 Let configure set them.
1778 1994-09-28 David J. MacKenzie <djm@gnu.org>
1780 * Makefile.in: Set datadir to $(prefix)/share.
1782 1994-09-15 Richard Stallman <rms@gnu.org>
1785 Update copyright notice and GPL version.
1787 1994-09-15 Richard Stallman <rms@gnu.org>
1790 Update copyright notice and GPL version.
1792 1994-07-12 Richard Stallman <rms@gnu.org>
1794 * src/reduce.c, src/reader.c:
1797 1994-05-05 David J. MacKenzie <djm@gnu.org>
1799 * Makefile.in: entered into RCS
1801 1994-03-26 Richard Stallman <rms@gnu.org>
1803 * src/bison.s1: entered into RCS
1805 1994-03-26 Richard Stallman <rms@gnu.org>
1807 * bison.simple: entered into RCS
1809 1994-03-25 Richard Stallman <rms@gnu.org>
1811 * src/main.c: entered into RCS
1813 1994-03-24 Richard Stallman <rms@gnu.org>
1815 * src/conflicts.c: entered into RCS
1817 1994-01-02 Richard Stallman <rms@gnu.org>
1819 * Makefile.in: *** empty log message ***
1821 1993-11-21 Richard Stallman <rms@gnu.org>
1823 * src/bison.s1: *** empty log message ***
1825 1993-11-21 Richard Stallman <rms@gnu.org>
1827 * doc/bison.texinfo: entered into RCS
1829 * doc/bison.texinfo: *** empty log message ***
1831 1993-11-21 Richard Stallman <rms@gnu.org>
1833 * bison.simple: *** empty log message ***
1835 1993-10-25 David J. MacKenzie <djm@gnu.org>
1837 * doc/bison.texinfo: *** empty log message ***
1839 1993-10-19 Richard Stallman <rms@gnu.org>
1841 * src/bison.s1: *** empty log message ***
1843 1993-10-19 Richard Stallman <rms@gnu.org>
1845 * bison.simple: *** empty log message ***
1847 1993-10-14 Richard Stallman <rms@gnu.org>
1849 * src/bison.s1: *** empty log message ***
1851 1993-10-14 Richard Stallman <rms@gnu.org>
1853 * bison.simple: *** empty log message ***
1855 1993-09-14 David J. MacKenzie <djm@gnu.org>
1857 * doc/bison.texinfo: *** empty log message ***
1859 1993-09-13 Noah Friedman <friedman@gnu.org>
1861 * Makefile.in: *** empty log message ***
1863 1993-09-10 Richard Stallman <rms@gnu.org>
1865 * src/conflicts.c: *** empty log message ***
1867 * src/system.h: entered into RCS
1869 1993-09-10 Richard Stallman <rms@gnu.org>
1871 * doc/bison.1: entered into RCS
1873 1993-09-06 Noah Friedman <friedman@gnu.org>
1875 * src/version.c: entered into RCS
1877 1993-09-06 Noah Friedman <friedman@gnu.org>
1879 * Makefile.in: *** empty log message ***
1881 1993-07-30 David J. MacKenzie <djm@gnu.org>
1883 * Makefile.in: *** empty log message ***
1885 1993-07-24 Richard Stallman <rms@gnu.org>
1887 * src/bison.s1: *** empty log message ***
1889 1993-07-24 Richard Stallman <rms@gnu.org>
1891 * bison.simple: *** empty log message ***
1893 1993-07-08 David J. MacKenzie <djm@gnu.org>
1895 * Makefile.in: *** empty log message ***
1897 1993-07-04 Richard Stallman <rms@gnu.org>
1899 * src/bison.s1: *** empty log message ***
1901 1993-07-04 Richard Stallman <rms@gnu.org>
1903 * bison.simple: *** empty log message ***
1905 1993-06-26 David J. MacKenzie <djm@gnu.org>
1907 * src/getargs.c: entered into RCS
1909 1993-06-26 David J. MacKenzie <djm@gnu.org>
1911 * doc/bison.texinfo: *** empty log message ***
1913 * doc/bison.1: New file.
1915 1993-06-25 Richard Stallman <rms@gnu.org>
1917 * src/getargs.c: New file.
1919 1993-06-16 Richard Stallman <rms@gnu.org>
1921 * src/bison.s1: *** empty log message ***
1923 1993-06-16 Richard Stallman <rms@gnu.org>
1925 * bison.simple: *** empty log message ***
1927 1993-06-03 Richard Stallman <rms@gnu.org>
1929 * src/bison.s1: New file.
1931 1993-06-03 Richard Stallman <rms@gnu.org>
1933 * doc/bison.texinfo: *** empty log message ***
1935 1993-06-03 Richard Stallman <rms@gnu.org>
1937 * bison.simple: New file.
1939 1993-05-19 Richard Stallman <rms@gnu.org>
1941 * doc/bison.texinfo: New file.
1943 1993-05-07 Noah Friedman <friedman@gnu.org>
1945 * Makefile.in: *** empty log message ***
1947 1993-04-28 Noah Friedman <friedman@gnu.org>
1949 * src/reader.c: *** empty log message ***
1951 1993-04-23 Noah Friedman <friedman@gnu.org>
1953 * src/alloc.h: entered into RCS
1955 1993-04-20 David J. MacKenzie <djm@gnu.org>
1957 * src/version.c: *** empty log message ***
1959 * src/files.c, src/allocate.c:
1962 * src/reader.c: *** empty log message ***
1964 * src/lex.c: entered into RCS
1966 * src/conflicts.c: New file.
1968 * src/symtab.c: entered into RCS
1970 * src/alloc.h: New file.
1972 * src/LR0.c: entered into RCS
1974 1993-04-18 Noah Friedman <friedman@gnu.org>
1976 * src/reader.c: New file.
1978 * src/version.c: *** empty log message ***
1980 1993-04-18 Noah Friedman <friedman@gnu.org>
1982 * Makefile.in: *** empty log message ***
1984 1993-04-17 Noah Friedman <friedman@gnu.org>
1986 * Makefile.in: *** empty log message ***
1988 1993-04-15 Richard Stallman <rms@gnu.org>
1990 * src/main.c, src/files.c:
1993 1993-04-15 Noah Friedman <friedman@gnu.org>
1995 * configure.in: entered into RCS
1997 * configure.in: *** empty log message ***
1999 * configure.in: New file.
2001 1993-04-14 Richard Stallman <rms@gnu.org>
2003 * Makefile.in: New file.
2005 1993-04-13 Richard Stallman <rms@gnu.org>
2007 * src/version.c: New file.
2009 1993-03-25 Richard Stallman <rms@gnu.org>
2011 * src/output.c: entered into RCS
2013 1992-09-25 Richard Stallman <rms@gnu.org>
2015 * configure.bat: entered into RCS
2017 1992-06-22 Richard Stallman <rms@gnu.org>
2019 * src/vmsgetargs.c: entered into RCS
2021 1992-06-22 Richard Stallman <rms@gnu.org>
2023 * doc/bison.rnh: entered into RCS
2025 1992-04-20 David J. MacKenzie <djm@gnu.org>
2027 * README: entered into RCS
2029 1992-01-22 Richard Stallman <rms@gnu.org>
2031 * src/machine.h: entered into RCS
2033 1991-12-21 Richard Stallman <rms@gnu.org>
2035 * src/lalr.c, src/closure.c:
2038 1991-12-20 Richard Stallman <rms@gnu.org>
2040 * src/state.h: entered into RCS
2042 1991-12-18 Richard Stallman <rms@gnu.org>
2044 * src/print.c, src/nullable.c, src/derives.c:
2047 1991-11-03 David J. MacKenzie <djm@gnu.org>
2049 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2052 1988-09-09 Richard Stallman <rms@gnu.org>
2054 * src/bison.hairy: entered into RCS
2056 1987-12-16 Richard Stallman <rms@gnu.org>
2058 * REFERENCES: entered into RCS