1 2001-07-14 Akim Demaille <akim@epita.fr>
4 * configure.in: Require Autoconf 2.50.
5 Update to gettext 0.10.38.
7 2001-03-16 Akim Demaille <akim@epita.fr>
9 * doc/bison.texinfo: ANSIfy the examples.
11 2001-03-16 Akim Demaille <akim@epita.fr>
13 * getargs.c (skeleton): New variable.
14 (longopts): --skeleton is a new option.
15 (shortopts, getargs): -S is a new option.
16 * getargs.h: Declare skeleton.
17 * output.c (output_parser): Use it.
19 2001-03-16 Akim Demaille <akim@epita.fr>
21 * m4/strerror_r.m4: New.
22 * m4/error.m4: Run AC_FUNC_STRERROR_R.
23 * lib/error.h, lib/error.c: Update.
25 2001-03-16 Akim Demaille <akim@epita.fr>
27 * src/getargs.c (longopts): Clean up.
29 2001-02-21 Akim Demaille <akim@epita.fr>
31 * src/reader.c (gensym): `gensym_count' is your own.
32 Use a static buf to create the symbol name, as token_buffer is no
35 2001-02-08 Akim Demaille <akim@epita.fr>
37 * src/conflicts.c (conflict_report): Be sure not to append to res
38 between two calls, which could happen if both first sprintf were
39 skipped, but not the first cp += strlen.
41 2001-02-08 Akim Demaille <akim@epita.fr>
43 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
44 New, from fileutils 4.0.37.
45 * configure.in: Require Autoconf 2.49c. I took some time before
46 making this decision. This is the only way out for portability
47 issues in Bison, it would mean way too much duplicate effort to
48 import in Bison features implemented in 2.49c since 2.13.
49 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
51 2001-02-02 Akim Demaille <akim@epita.fr>
53 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
54 * lib/xalloc.h, lib/xmalloc.c: Update.
56 2001-01-19 Akim Demaille <akim@epita.fr>
58 Get rid of the ad hoc handling of token_buffer in the scanner: use
61 * src/lex.c (token_obstack): New.
62 (init_lex): Initialize it. No longer call...
63 (grow_token_buffer): this. Remove it.
64 Adjust all the places which used it to use the obstack.
66 2001-01-19 Akim Demaille <akim@epita.fr>
68 * src/lex.h: Rename all the tokens:
69 s/\bENDFILE\b/tok_eof/g;
70 s/\bIDENTIFIER\b/tok_identifier/g;
72 Let them be enums, not #define, to ease debugging.
75 2001-01-18 Akim Demaille <akim@epita.fr>
77 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
78 * src/lex.c (maxtoken, grow_token_buffer): Static.
80 2001-01-18 Akim Demaille <akim@epita.fr>
82 Since we now use obstacks, more % directives can be enabled.
84 * src/lex.c (percent_table): Also accept `%yacc',
85 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
87 Handle the actions for `%semantic_parser' and `%pure_parser' here,
88 instead of returning a token.
89 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
90 * src/reader.c (read_declarations): Adjust.
91 * src/files.c (open_files): Don't call `compute_base_names', don't
92 compute `attrsfile' since they depend upon data which might be
93 *in* the input file now.
94 (output_files): Do it here.
95 * src/output.c (output_headers): Document the fact that this patch
96 introduces a guaranteed SEGV for semantic parsers.
97 * doc/bison.texinfo: Document them.
98 * tests/suite.at: Exercise these %options.
100 2000-12-20 Akim Demaille <akim@epita.fr>
102 Also handle the output file (--verbose) with obstacks.
104 * files.c (foutput): Remove.
105 (output_obstack): New.
106 Adjust all dependencies.
107 * src/conflicts.c: Return a string.
108 * src/system.h (obstack_grow_string): Rename as...
109 (obstack_sgrow): this. Be ready to work with non literals.
110 (obstack_fgrow4): New.
112 2000-12-20 Akim Demaille <akim@epita.fr>
114 * src/files.c (open_files): Fix the computation of short_base_name
115 in the case of `-o foo.tab.c'.
117 2000-12-20 Akim Demaille <akim@epita.fr>
119 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
120 (copy_dollar): Now that everything uses obstacks, get rid of the
123 2000-12-20 Akim Demaille <akim@epita.fr>
125 * src/files.c (open_files): Actually the `.output' file is based
126 on the short_base_name, not base_name.
127 * tests/suite.at (Checking output file names): Adjust.
129 2000-12-20 Akim Demaille <akim@epita.fr>
131 * src/bison.s1: Remove, we now use directly...
132 * src/bison.simple: this.
133 * src/Makefile.am: Use pkgdata instead of data.
135 2000-12-20 Akim Demaille <akim@epita.fr>
137 * src/files.c (guard_obstack): New.
138 (open_files): Initialize it.
139 (output_files): Dump it...
140 * src/files.h: Export it.
141 * src/reader.c (copy_guard): Use it.
143 2000-12-19 Akim Demaille <akim@epita.fr>
145 * src/files.c (outfile, defsfile, actfile): Removed as global
147 (open_files): Don't compute them.
148 (output_files): Adjust.
149 (base_name, short_base_name): Be global.
152 2000-12-19 Akim Demaille <akim@epita.fr>
154 * src/files.c (strsuffix): New.
155 (stringappend): Be just like strcat but allocate.
156 (base_names): Eve out from open_files.
157 Try to simplify the rather hairy computation of base_name and
159 (open_files): Use it.
160 * tests/suite.at (Checking output file names): New test.
162 2000-12-19 Akim Demaille <akim@epita.fr>
164 * src/system.h (obstack_grow_literal_string): Rename as...
165 (obstack_grow_string): this.
166 * src/output.c (output_parser): Recognize `%% actions' instead of
168 * src/bison.s1: s/$/%% actions/.
169 * src/bison.hairy: Likewise.
171 2000-12-19 Akim Demaille <akim@epita.fr>
173 * src/output.c (output_parser): Compute the `#line' lines when
175 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
176 Suggested by Hans Aberg.
178 2000-12-19 Akim Demaille <akim@epita.fr>
180 Let the handling of the skeleton files be local to the procedures
183 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
185 (fparser, open_extra_files): Remove.
186 (open_files, output_files): Don't take care of fparser.
187 * src/files.h: Adjust.
188 * src/output.c (output_parser): Open and close the file to the
190 * src/reader.c (read_declarations): When %semantic_parser, open
193 2000-12-19 Akim Demaille <akim@epita.fr>
195 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
196 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
198 2000-12-19 Akim Demaille <akim@epita.fr>
200 * src/files.c (open_files): Yipee! We no longer need all the code
201 looking for `/tmp' since we have no tmp file.
203 2000-12-19 Akim Demaille <akim@epita.fr>
205 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
207 * src/files.c (open_files): Less dependency on MSDOS etc.
209 2000-12-14 Akim Demaille <akim@epita.fr>
211 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
212 Provide a default definition.
213 Use it when executing the default @ action.
214 * src/reader.c (reader_output_yylsp): No longer include
215 `timestamp' and `text' in the default YYLTYPE.
217 2000-12-12 Akim Demaille <akim@epita.fr>
219 * src/reader.c (copy_definition, parse_union_decl, copy_action)
220 (copy_guard): Quote the file names.
221 Reported by Laurent Mascherpa.
223 2000-12-12 Akim Demaille <akim@epita.fr>
225 * src/output.c (output_headers, output_program, output): Be sure
226 to escape special characters when outputting filenames.
227 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
228 (output_headers): Don't depend on them, Use ACTSTR.
230 2000-11-17 Akim Demaille <akim@epita.fr>
232 * lib/obstack.h: Formatting changes.
233 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
234 prevents type checking.
235 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
236 cast the value to (void *): assigning a `foo *' to a `void *'
238 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
239 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
242 2000-11-17 Akim Demaille <akim@epita.fr>
244 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
246 (suite.m4, regression.m4, calc.m4): these.
247 * tests/atgeneral.m4: Update from CVS Autoconf.
249 2000-11-17 Akim Demaille <akim@epita.fr>
251 * tests/regression.m4 (%union and --defines): New test,
252 demonstrating a current bug in the obstack implementation.
254 2000-11-17 Akim Demaille <akim@epita.fr>
256 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
258 Use them to declare the variables which are global or local to
261 2000-11-17 Akim Demaille <akim@epita.fr>
263 * acconfig.h: Remove, no longer used.
265 2000-11-07 Akim Demaille <akim@epita.fr>
267 * src: s/Copyright (C)/Copyright/g.
269 2000-11-07 Akim Demaille <akim@epita.fr>
271 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
273 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
275 2000-11-07 Akim Demaille <akim@epita.fr>
277 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
278 Merge in a single CPP if/else.
280 2000-11-07 Akim Demaille <akim@epita.fr>
282 * src/output.c (output): Remove useless variables.
283 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
284 argument `data' for consistency with the prototypes.
286 (obstack_copy, obstack_copy0): Rename the second argument as
287 `address' for consistency. Qualify it `const'.
288 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
289 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
290 `const' their input argument (`data' or `address').
291 Adjust the corresponding macros to include `const' in casts.
293 2000-11-03 Akim Demaille <akim@epita.fr>
295 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
296 s/PFILE1/BISON_HAIRY/.
299 2000-11-03 Akim Demaille <akim@epita.fr>
301 For some reason, this was not applied.
303 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
304 `unlink': it's no longer used.
306 2000-11-03 Akim Demaille <akim@epita.fr>
308 * src/files.c (skeleton_find): New function, eved out of...
309 (open_files, open_extra_files): here.
311 2000-11-03 Akim Demaille <akim@epita.fr>
315 * src/files.c (obstack_save): New function.
317 (output_files): this.
319 * src/main.c (main): Don't use `atexit' to register `done', since
320 it no longer has to remove tmp files, just call `output_files'
321 when there are no errors.
323 2000-11-02 Akim Demaille <akim@epita.fr>
325 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
326 `unlink': it's no longer used.
327 * src/files.h: Formatting changes.
329 2000-11-02 Akim Demaille <akim@epita.fr>
331 Remove the last uses of mktemp and unlink/delete.
333 * src/files.c (fdefines, ftable): Removed.
334 (defines_ostack, table_obstack): New.
335 Adjust dependencies of the former into uses of the latter.
336 * src/output.c (output_short_or_char_table, output_short_table):
337 Convert to using obstacks.
338 * src/reader.c (copy_comment2): Accept one FILE * and two
340 (output_token_defines, reader_output_yylsp): Use obstacks.
341 * src/system.h (obstack_fgrow3): New.
343 2000-11-01 Akim Demaille <akim@epita.fr>
345 Change each use of `fattrs' into a use of `attrs_obstack'.
347 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
348 * src/files.c (fattrs): Remove.
349 (attrs_obstack): New.
350 Adjust all dependencies.
351 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
353 2000-11-01 Akim Demaille <akim@epita.fr>
356 Change each use of `faction' into a use of `action_obstack'.
358 * lib/obstack.h, lib/obstack.c: New files.
359 * src/files.c (faction): Remove.
360 (action_obstack): New.
361 Adjust all dependencies.
363 2000-10-20 Akim Demaille <akim@epita.fr>
365 * lib/quote.h (PARAMS): New macro. Use it.
367 2000-10-16 Akim Demaille <akim@epita.fr>
369 * src/output.c (output_short_or_char_table): New function.
370 (output_short_table, output_token_translations): Use it.
371 (goto_actions): Use output_short_table.
373 2000-10-16 Akim Demaille <akim@epita.fr>
375 * src/symtab.c (bucket_new): New function.
378 * src/output.c (output_short_table): New argument to display the
379 comment associated with the table.
381 (output_gram): Use it.
382 (output_rule_data): Nicer output layout for YYTNAME.
384 2000-10-16 Akim Demaille <akim@epita.fr>
386 * src/lex.c (read_typename): New function.
388 * src/reader.c (copy_dollar): Likewise.
390 2000-10-16 Akim Demaille <akim@epita.fr>
392 * src/reader.c (copy_comment2): Expect the input stream to be on
393 the `/' which is suspected to open a comment, instead of being
394 called after `//' or `/*' was read.
395 (copy_comment, copy_definition, parse_union_decl, copy_action)
396 (copy_guard): Adjust.
398 2000-10-16 Akim Demaille <akim@epita.fr>
400 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
401 `read_signed_integer'.
403 2000-10-16 Akim Demaille <akim@epita.fr>
405 * src/reader.c (copy_dollar): New function.
406 (copy_guard, copy_action): Use it.
408 2000-10-16 Akim Demaille <akim@epita.fr>
410 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
411 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
412 New files, from Fileutils 4.0.27.
413 * src/main.c (printable_version): Remove.
414 * src/lex.c, src/reader.c: Use `quote'.
416 2000-10-04 Akim Demaille <akim@epita.fr>
418 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
420 2000-10-04 Akim Demaille <akim@epita.fr>
422 * doc/bison.texinfo: Various typos spotted by Neil Booth.
424 2000-10-04 Akim Demaille <akim@epita.fr>
426 When a literal string is used to define two different tokens,
427 `bison -v' segfaults.
428 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
430 * tests/regression.m4: New file.
431 Include the core of the sample provided by Piotr Gackiewicz.
432 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
435 2000-10-04 Akim Demaille <akim@epita.fr>
437 * src/reader.c (parse_expect_decl): Keep `count' within the size
441 2000-10-02 Paul Eggert <eggert@twinsun.com>
443 * bison.s1 (yyparse): Assign the default value
444 unconditionally, to avoid a GCC warning and make the parser a
447 2000-10-02 Akim Demaille <akim@epita.fr>
449 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
452 2000-10-02 Akim Demaille <akim@epita.fr>
454 * src/derives.c, src/print.c, src/reduce.c: To ease the
455 translation, move some `\n' out of the translated strings.
457 2000-10-02 Akim Demaille <akim@epita.fr>
459 The location tracking mechanism is precious for parse error
460 messages. Nevertheless, it is enabled only when `@n' is used in
461 the grammar, which is a different issue (you can use it in error
462 message, but not in the grammar per se). Therefore, there should
463 be another means to enable it.
465 * src/getargs.c (getargs): Support `--locations'.
467 * src/getargs.h (locationsflag): Export it.
468 * src/lex.c (percent_table): Support `%locations'.
469 * src/reader.c (yylsp_needed): Remove this variable, now replaced
470 with `locationsflag'.
471 * doc/bison.texinfo: Document `--locations' and `%locations'.
473 * tests/calc.m4: Test it.
475 For regularity of the names, replace each
476 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
477 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
478 In addition replace each `flag' with `_flag'.
480 2000-10-02 Akim Demaille <akim@epita.fr>
482 Also test parse error messages, including with YYERROR_VERBOSE.
484 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
486 Use it to check the computations.
487 Use it to check `nonassoc' is honored.
488 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
490 (_AT_CHECK_CALC): Adjust to this option.
491 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
493 2000-10-02 Akim Demaille <akim@epita.fr>
495 Test also `--verbose', `--defines' and `--name-prefix'. Testing
496 the latter demonstrates a flaw in the handling of non debugging
497 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
498 was used in order to simplify:
514 unfortunately this leads to a CPP conflict when
515 `--name-prefix=foo' is used since it produces `#define yydebug
518 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
519 (YYDPRINTF): New macro.
521 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
523 Also test `--verbose', `--defines' and `--name-prefix'.
525 2000-10-02 Akim Demaille <akim@epita.fr>
527 Improve the readability of the produced parsers.
529 * src/bison.s1: Formatting changes.
530 Improve the comment related to the `$' mark.
531 (yydefault): Don't fall through to `yyresume': `goto' there.
532 * src/output.c (output_parser): When the `$' is met, skip the end
534 New variable, `number_of_dollar_signs', to check there's exactly
535 one `$' in the parser skeleton.
537 2000-10-02 Akim Demaille <akim@epita.fr>
539 * lib/xstrdup.c: New file, from the fileutils.
540 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
541 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
542 instead of strlen + xmalloc + strcpy.
543 * src/symtab.c (copys): Remove, use xstrdup instead.
545 2000-10-02 Akim Demaille <akim@epita.fr>
547 * src/gram.h (associativity): New enum type which replaces the
548 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
549 `right_assoc', `left_assoc' and `non_assoc'.
550 Adjust all dependencies.
551 * src/reader.c: Formatting changes.
552 (LTYPESTR): Don't define it, use it as a literal in
553 `reader_output_yylsp'.
554 * src/symtab.h (symbol_class): New enum type which replaces the
555 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
556 `sunknown', `stoken and `snterm'.
558 2000-10-02 Akim Demaille <akim@epita.fr>
560 * src/getargs.c (fixed_outfiles): Rename as...
561 (yaccflag): for consistency and accuracy.
564 2000-10-02 Akim Demaille <akim@epita.fr>
566 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
567 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
568 difficult and introduced a lot of core dump. It turns out that
569 Bison used an implementation of `xmalloc' based on `calloc', and
570 at various places it does depend upon the initialization to 0. I
571 have not tried to isolate the pertinent places, and all the former
572 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
573 someone should address this issue.
575 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
576 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
579 * src/warshall.h: New file.
582 2000-10-02 Akim Demaille <akim@epita.fr>
584 Various anti-`extern in *.c' changes.
586 * src/system.h: Include `assert.h'.
588 2000-10-02 Akim Demaille <akim@epita.fr>
590 * src/state.h (nstates, final_state, first_state, first_shift)
591 (first_reduction): Move their exportation from here...
592 * src/LR0.h: to here.
594 * src/getargs.c (statisticsflag): New variable.
595 Add support for `--statistics'.
598 Remove a lot of now useless `extern' statements in most files.
600 2000-10-02 Akim Demaille <akim@epita.fr>
602 * src/LR0.h: New file.
605 2000-10-02 Akim Demaille <akim@epita.fr>
607 * src/print.h: New file.
609 * src/print.c: Formatting and ordering changes.
610 (verbose, terse): Replace with...
611 (print_results): this new function.
614 2000-10-02 Akim Demaille <akim@epita.fr>
616 * src/conflicts.c (conflict_report): New function.
617 (conflict_log, verbose_conflict_log): Replace with...
618 (print_conflicts): this function.
620 * src/conflicts.h: New file.
621 Propagate its inclusion.
623 2000-10-02 Akim Demaille <akim@epita.fr>
625 * src/nullable.h: New file.
626 Propagate its inclusion.
627 * src/nullable.c: Formatting changes.
629 2000-10-02 Akim Demaille <akim@epita.fr>
631 * src/reduce.h: New file.
632 Propagate its inclusion.
633 * src/reduce.c: Topological sort and other formatting changes.
634 (bool, TRUE, FALSE): Move their definition to...
635 * src/system.h: here.
637 2000-10-02 Akim Demaille <akim@epita.fr>
639 * src/files.c: Formatting changes.
640 (tryopen, tryclose, openfiles): Rename as...
641 (xfopen, xfclose, open_files): this.
642 (stringappend): static.
643 * src/files.h: Complete the list of exported symbols.
646 2000-10-02 Akim Demaille <akim@epita.fr>
648 * src/reader.h: New file.
649 Propagate its use instead of tedious list of `extern' and
651 * src/reader.c: Formatting changes, topological sort,
654 2000-10-02 Akim Demaille <akim@epita.fr>
656 * src/lex.h: Prototype `lex.c' exported functions.
657 * src/reader.c: Adjust.
658 * src/lex.c: Formatting changes.
659 (safegetc): Rename as...
662 2000-10-02 Akim Demaille <akim@epita.fr>
664 * src/lalr.h: New file.
665 Propagate its inclusion instead of prototypes and `extern'.
666 * src/lalr.c: Formatting changes, topological sorting etc.
668 2000-10-02 Akim Demaille <akim@epita.fr>
670 * src/output.c (token_actions): Introduce a temporary array,
671 YYDEFACT, that makes it possible for this function to use
674 2000-10-02 Akim Demaille <akim@epita.fr>
676 `user_toknums' is output as a `short[]' in `output.c', while it is
677 defined as a `int[]' in `reader.c'. For consistency with the
678 other output tables, `user_toknums' is now defined as a table of
681 * src/reader.c (user_toknums): Be a short table instead of an int
685 Factor the short table outputs.
687 * src/output.c (output_short_table): New function.
688 * src/output.c (output_gram, output_stos, output_rule_data)
689 (output_base, output_table, output_check): Use it.
691 2000-10-02 Akim Demaille <akim@epita.fr>
693 * src/output.c (output): Topological sort of the functions, in
694 order to get rid of the `static' prototypes.
695 No longer use `register'.
696 * src/output.h: New file.
697 Propagate its inclusion in files explicitly prototyping functions
700 2000-09-21 Akim Demaille <akim@epita.fr>
702 * src/atgeneral.m4: Update from Autoconf.
704 2000-09-21 Akim Demaille <akim@epita.fr>
706 * src/closure.h: New file.
707 * src/closure.c: Formatting changes, topological sort over the
708 functions, use of closure.h.
709 (initialize_closure, finalize_closure): Rename as...
710 (new_closure, free_closure): these. Adjust dependencies.
711 * src/LR0.c: Formatting changes, topological sort, use of
713 (initialize_states): Rename as...
715 * src/Makefile.am (noinst_HEADERS): Adjust.
717 2000-09-20 Akim Demaille <akim@epita.fr>
719 * src/acconfig.h: Don't protect config.h against multiple
722 * src/system.h: Define PARAMS.
723 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
724 purpose of config.h. system.h must not try to fix wrong
725 definitions in config.h.
727 2000-09-20 Akim Demaille <akim@epita.fr>
729 * src/derives.h: New file.
730 * src/main.c, src/derives.h: Use it.
732 * src/Makefile.am (noinst_HEADERS): Adjust.
734 2000-09-20 Akim Demaille <akim@epita.fr>
736 * tests/atgeneral.m4: Update from Autoconf.
737 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
738 (AT_CHECK_CALC): New macros.
739 Use these macros to test bison with options `', `--raw',
740 `--debug', `--yacc', `--yacc --debug'.
742 2000-09-19 Akim Demaille <akim@epita.fr>
744 * src/output.c: Formatting changes.
745 * src/machine.h: Remove, leaving its contents in...
746 * src/system.h: here.
748 Adjust all dependencies on stdio.h and machine.h.
749 * src/getargs.h: New file.
750 Let all `extern' declarations about getargs.c be replaced with
751 inclusion of `getargs.h'.
752 * src/Makefile.am (noinst_HEADERS): Adjust.
754 * tests/calc.m4 (yyin): Be initialized in main, not on the global
756 (yyerror): Returns void, not int.
757 * doc/bison.texinfo: Formatting changes.
759 2000-09-19 Akim Demaille <akim@epita.fr>
761 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
764 2000-09-18 Akim Demaille <akim@epita.fr>
766 * configure.in: Append WARNING_CFLAGS to CFLAGS.
767 * src/Makefile.am (INCLUDES): Don't.
768 Be ready to fetch headers in lib/.
770 2000-09-18 Akim Demaille <akim@epita.fr>
772 * doc/bison.texinfo: Update the copyright.
773 ANSIfy and GNUify the examples.
776 2000-09-18 Akim Demaille <akim@epita.fr>
778 First set of tests: use the `calc' example from the documentation.
780 * src/bison.s1 (yyparse): Condition the code using `yytname' which
781 is defined only when YYDEBUG is.
782 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
783 * src/files.c (tryopen, tryclose): Formatting changes.
784 Move to the top and be static.
785 * src/reader.c (read_signed_integer): Likewise.
786 * tests/calc.m4: New file.
787 * Makefile.am, suite.m4: Adjust.
788 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
790 2000-09-18 Akim Demaille <akim@epita.fr>
792 Add support for an Autotest test suite for Bison.
794 * m4/m4.m4, m4/atconfig.m4: New files.
795 * m4/Makefile.am (EXTRA_DIST): Adjust.
796 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
798 * src/getargs.c: Display a more standard --version message.
799 * src/reader.c (reader): Formatting changes.
800 No longer depend upon VERSION_STRING.
801 * configure.in: No longer use `dnl'.
802 Set up the test suite and the new directory `tests/.
803 (VERSION_STRING): Remove.
805 2000-04-14 Akim Demaille <akim@epita.fr>
807 * src/reader.c (copy_comment2): New function, same as former
808 `copy_comment', but outputs into two FILE *.
809 (copy_comment): Use it.
810 (parse_union_decl): Use it.
811 (get_type, parse_start_decl): Use the same `invalid' message.
812 (parse_start_decl, parse_union_decl): Use the same `multiple'
814 (parse_union_decl, copy_guard, copy_action): Use the same
816 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
818 2000-03-31 Akim Demaille <akim@epita.fr>
820 * src/files.c (tryopen, tryclose): Move to the top.
823 2000-03-31 Akim Demaille <akim@epita.fr>
825 * src/main.c (main): Don't call `done', exit does it.
827 2000-03-31 Akim Demaille <akim@epita.fr>
829 * allocate.c: s/return (foo)/return foo/.
832 * output.c: Likewise.
833 * reader.c: Likewise.
834 * symtab.c: Likewise.
835 * vmsgetargs.c: Likewise.
837 2000-03-31 Akim Demaille <akim@epita.fr>
839 Clean up the error reporting functions.
841 * src/report.c: New file.
842 * src/report.h: Likewise.
843 * src/Makefile.am: Adjust.
844 * m4/error.m4: New file.
845 * m4/Makefile.am: Adjust.
846 * configure.in (jm_PREREQ_ERROR): Call it.
847 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
849 (fatal, fatals): Remove. All callers use complain.c::fatal.
850 (warn, warni, warns, warnss, warnss): Remove. All callers use
851 complain.c::complain.
852 (toomany): Remove, use fatal instead.
853 * src/files.c (done): No argument, use complain_message_count.
854 * src/main.c (main): Register `done' to `atexit'.
856 * src/getargs.c (usage): More `fputs', less `fprintf'.
858 2000-03-28 Akim Demaille <akim@epita.fr>
860 * lib/: New directory.
861 * Makefile.am (SUBDIRS): Adjust.
862 * configure.in: Adjust.
863 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
865 * src/alloca.c: Moved to lib/.
866 * src/getopt.c: Likewise.
867 * src/getopt1.c: Likewise.
868 * src/getopt.h: Likewise.
869 * src/ansi2knr.c: Likewise.
870 * src/ansi2knr.1: Likewise.
871 * src/Makefile.am: Adjust.
872 * lib/Makefile.am: New file.
874 2000-03-28 Akim Demaille <akim@epita.fr>
876 * src/getargs.c (usage): Refresh the help message.
878 2000-03-17 Akim Demaille <akim@epita.fr>
880 * src/getopt1.c: Updated from textutils 2.0e
881 * src/getopt.c: Likewise.
882 * src/getopt.h: Likewise.
884 2000-03-17 Akim Demaille <akim@epita.fr>
886 * src/Makefile.am (bison.simple): Fix the awk program: quote only
887 the file name, not the whole `#line LINE FILE'.
889 2000-03-17 Akim Demaille <akim@epita.fr>
891 On syntax errors, report the token on which we choked.
893 * src/bison.s1 (yyparse): In the label yyerrlab, when
894 YYERROR_VERBOSE, add yychar in msg.
896 2000-03-17 Akim Demaille <akim@epita.fr>
898 * src/reader.c (copy_at): New function.
899 (copy_guard): Use it.
900 (copy_action): Use it.
902 2000-03-17 Akim Demaille <akim@epita.fr>
904 Be kind to translators, save some useless translations.
906 * src/main.c (banner): New function.
907 (fatal_banner): Use it.
908 (warn_banner): Use it.
910 2000-03-17 Akim Demaille <akim@epita.fr>
912 * src/reader.c (copy_definition): Use copy_string and
913 copy_comment. Removed now unused `match', `ended',
915 (copy_comment, copy_string): Moved, to be visible from
918 2000-03-17 Akim Demaille <akim@epita.fr>
920 * src/reader.c (copy_string): Declare `static inline'. No
921 problems with inline, since it is checked by configure.
922 (copy_comment): Likewise.
924 2000-03-17 Akim Demaille <akim@epita.fr>
926 * src/reader.c (packsymbols): Formatting changes.
928 2000-03-17 Akim Demaille <akim@epita.fr>
930 * src/reader.c (copy_comment): New function, factored out from:
931 (copy_action): Use it. Removed now unused `match', `ended',
933 (copy_guard): Likewise.
935 2000-03-17 Akim Demaille <akim@epita.fr>
937 * src/reader.c (copy_string): New function, factored out from:
938 (copy_action): Use it.
939 (copy_guard): Likewise.
941 2000-03-17 Akim Demaille <akim@epita.fr>
943 Change the handling of @s so that they behave exactly like $s.
944 There is now a pseudo variable @$ (readble and writable), location
945 of the lhs of the rule (by default ranging from the location of
946 the first symbol of the rhs, to the location of the last symbol,
947 or, if the rhs is empty, YYLLOC).
949 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
951 (yyparse): When providing a default semantic action, provide a
952 default location action.
953 (after the $): No longer change `*YYLSP', just stack YYLOC the
954 same way you stack YYVAL.
955 * src/reader.c (read_declarations): Use warns.
956 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
957 (copy_action, case '@'): Likewise.
958 Use a standard error message, to save useless work from
961 2000-03-17 Akim Demaille <akim@epita.fr>
963 * src/bison.s1: Formatting and cosmetics changes.
964 * src/reader.c: Likewise.
965 Update the Copyright notice.
967 2000-03-17 Akim Demaille <akim@epita.fr>
969 * src/bison.s1 (#line): All set to `#line' only, since the
970 Makefile now handles them.
972 2000-03-16 Akim Demaille <akim@epita.fr>
974 * src/output.c (output_rule_data): Output the documentation of
976 (Copyright notice): Update.
979 2000-03-16 Akim Demaille <akim@epita.fr>
981 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
982 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
983 One `#if YYDEBUG' remains, since it uses variables which are
984 defined only if `YYDEBUG != 0'.
986 2000-03-16 Akim Demaille <akim@epita.fr>
988 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
989 and related variables so that the similarities are highlighted.
991 2000-03-16 Akim Demaille <akim@epita.fr>
993 * src/bison.s1: Properly indent CPP directives.
995 2000-03-16 Akim Demaille <akim@epita.fr>
997 * src/bison.s1: Properly indent the `alloca' CPP section.
999 2000-03-16 Akim Demaille <akim@epita.fr>
1001 Do not hard code values of directories in `configure.in'.
1002 Update the `configure' tool chain.
1004 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1006 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1007 (AC_OUTPUT): Add m4/Makefile.
1008 Bump to bison 1.28a, 1.29 has never been released.
1009 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1010 handled via src/Makefile.am.
1011 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1012 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1014 * Makefile.am (SUBDIRS): Add m4.
1015 (ACLOCAL_AM_FLAGS): New variable.
1016 (AUTOMAKE_OPTIONS): Add check-news.
1017 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1018 the proper line number and file name.
1019 (DEFS): Propagate the location of bison library files and of the
1021 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1023 * acinclude.m4: Remove, replaced by the directory m4.
1024 * m4/Makefile.am (EXTRA_DIST): New variable.
1025 * m4/gettext.m4: New file, from the fileutils.
1026 * m4/lcmessage.m4: Likewise
1027 * m4/progtest.m4: Likewise.
1028 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1030 2000-03-10 Akim Demaille <akim@epita.fr>
1033 Formatting changes of various comments.
1034 Respect the GNU coding standards at various places.
1035 Don't use `_()' when no translation is needed.
1037 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1040 OS/2 honors TMPDIR environment variable.
1042 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1044 * doc/bison.texinfo: Tweaked spelling and grammar.
1046 Removed reference to price of printed copy.
1047 Mention BISON_SIMPLE and BISON_HAIRY.
1049 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1051 * configure.in, NEWS:
1052 Bison 1.29 released.
1054 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1056 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1057 Added reference card.
1059 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1061 * po/ru.po: Added Russian translation.
1063 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1065 * configure.in: Added Russian translation.
1067 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1069 * configure.in, NEWS, README:
1070 Released version 1.28.
1072 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1075 Squashed redefinition warning on some systems.
1077 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1078 Have configure build version string instead of relying on ANSI string
1081 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1083 * po/POTFILES.in: Got rid of version.c.
1085 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1087 * acconfig.h, configure.in:
1088 Have configure build version string instead of relying on ANSI string
1091 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1094 Dropped mention of `+' for long-named options.
1096 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1098 * src/files.c: Added <unistd.h> for unlink().
1100 * src/Makefile.am, src/system.h:
1103 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1105 * README: Added a FAQ list.
1107 * configure.in, acconfig.h:
1110 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1112 * doc/FAQ, doc/Makefile.am:
1115 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1117 * src/alloc.h, src/symtab.h, src/version.c:
1118 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1120 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1122 * src/.cvsignore, src/Makefile.am:
1123 Reorganized: sources in `src', documentation in `doc'.
1125 * src/lex.c (literalchar):
1126 fixed the code for escaping double quotes (thanks
1129 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1131 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1132 Adjusted paths to reflect directory reorganization.
1134 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1136 * doc/.cvsignore, doc/Makefile.am:
1137 Reorganized: sources in `src', documentation in `doc'.
1139 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1142 Updated AC_INIT file to reflect directory reorganization.
1144 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1145 Reorganized: sources in `src', documentation in `doc'.
1147 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1150 Don't declare calloc() and realloc() if not necessary.
1152 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1154 * configure.in, acconfig.h, acinclude.m4:
1155 Don't declare calloc() and realloc() if not necessary.
1157 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1159 * po/.cvsignore: Added i18n support.
1161 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1163 * acconfig.h, configure.in, Makefile.am:
1166 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1168 * src/bison.s1: Fixed #line numbers.
1170 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1172 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1173 Added PO files from Translation Project.
1175 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1178 Added support for non-ANSI compilers (ansi2knr).
1180 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1182 * configure.in: Bumped version number to 1.27.
1185 Added `bison.simple' to list of files removed by `make distclean'.
1187 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1189 * src/files.c, src/files.h:
1190 Defined locations of parser files in config.h instead of Makefile.
1192 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1194 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1195 Defined locations of parser files in config.h instead of Makefile.
1197 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1200 Removed inappropriate use of $< macro.
1202 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1204 * po/Makefile.in.in, po/POTFILES.in:
1205 Add `po' directory skeleton.
1207 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1209 * README: Document help-bison list.
1211 * configure.in: Add check for mkstemp().
1213 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1215 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1216 Hush a few compiler warnings.
1219 Add tryclose(), which verifies that fclose was successful.
1220 Hush a couple of compiler warnings.
1222 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1224 * Makefile.am, OChangeLog:
1225 ChangeLog is now automatically generated. Include the old version as
1228 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1230 * 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:
1233 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1235 * doc/bison.texinfo: Fix formatting glitch.
1237 * doc/bison.texinfo: Update FSF address.
1239 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1241 * acconfig.h: Update FSF address.
1243 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1246 Don't define PACKAGE here, since config.h defines it.
1248 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1250 * src/reader.c: Update copyright date.
1253 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1254 favor of output directly to stderr (avoids buffer overruns).
1256 * src/reader.c: Some checks for premature EOF.
1258 * 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:
1259 Use prototypes if the compiler understands them.
1261 * src/files.c: Honor TMPDIR on Unix hosts.
1262 Use prototypes if the compiler understands them.
1265 Fix a couple of buffer overrun bugs.
1266 Use prototypes if the compiler understands them.
1268 * src/system.h: Include unistd.h and ctype.h.
1269 Use #ifdef instead of #if for NLS symbols.
1271 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1273 * doc/bison.texinfo:
1274 Delete comment "consider using @set for edition number, etc..." since
1275 we now are doing so.
1277 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1280 Use prototypes if the compiler understands them.
1282 * NEWS: Document 1.26 highlights.
1284 * Makefile.am: Require Automake 1.3 or later.
1287 Use prototypes if the compiler understands them.
1289 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1292 Use VERSION symbol from automake for version number.
1294 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1296 * acconfig.h, configure.in, version.cin:
1297 Use VERSION symbol from automake for version number.
1299 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1302 Distribute original version of simple parser (bison.s1), not built
1303 version (bison.simple).
1305 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1307 * doc/bison.texinfo: Add info dir entry.
1309 * doc/bison.texinfo:
1310 Let automake put version number into documentation.
1312 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1314 * src/bison.cld, src/build.com, src/vmshlp.mar:
1315 Add non-RCS files from /gd/gnu/bison.
1317 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1320 Document the BISON_HAIRY and BISON_SIMPLE variables.
1322 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1324 * src/version.c: Build version.c automatically.
1327 Fix token numbering (used to start at 258, not 257).
1329 * src/system.h: Include config.h.
1331 * src/getargs.c: Update bug report address.
1333 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1334 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1336 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1339 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1341 * configure.in, version.cin:
1342 Build version.c automatically.
1344 * AUTHORS: Add AUTHORS file.
1346 * README: Update bug report address.
1349 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1351 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1354 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1356 * doc/bison.texinfo: Clean up some formatting.
1358 1998-05-05 Richard Stallman <rms@gnu.org>
1360 * doc/bison.texinfo:
1361 Explain better why to make a pure parser.
1363 1998-01-05 Richard Stallman <rms@gnu.org>
1365 * src/files.c (openfiles):
1366 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1367 find a temporary directory, if possible. Do not unlink files while
1370 1997-08-25 Richard Stallman <rms@gnu.org>
1372 * src/reader.c (stack_offset;):
1373 Change some warni to warns.
1375 * src/lex.c (literalchar): Use warns, not warni.
1377 1997-06-28 Richard Stallman <rms@gnu.org>
1379 * src/bison.s1: Add a Bison version comment.
1381 * src/main.c (fatal, warn, berror):
1384 1997-06-28 Richard Stallman <rms@gnu.org>
1386 * Makefile.in (bison_version): New variable.
1387 (dist): Use that variable.
1388 (bison.s1): Substitute the Bison version into bison.simple.
1390 * bison.simple: Add a Bison version comment.
1392 1997-06-18 Richard Stallman <rms@gnu.org>
1394 * src/main.c (fatal, warn, berror):
1395 Make error messages standard.
1396 (toomany): Improve error message text.
1398 * 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:
1399 new.h renamed to alloc.h.
1401 1997-06-18 Richard Stallman <rms@gnu.org>
1403 * Makefile.in: new.h renamed to alloc.h.
1405 1997-05-24 Richard Stallman <rms@gnu.org>
1407 * src/lex.c (literalchar):
1408 Fix the code for escaping \, " and '.
1410 (lex): Avoid trouble when there are many chars
1411 to discard in a char literal with just several chars in it.
1413 1997-05-17 Richard Stallman <rms@gnu.org>
1416 Use malloc, if using alloca is troublesome.
1417 (YYSTACK_USE_ALLOCA): New flag macro.
1418 Define it for some systems and compilers.
1419 (YYSTACK_ALLOC): New macro.
1420 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1421 If it was malloc'd, free it.
1423 1997-05-17 Richard Stallman <rms@gnu.org>
1426 Use malloc, if using alloca is troublesome.
1427 (YYSTACK_USE_ALLOCA): New flag macro.
1428 Define it for some systems and compilers.
1429 (YYSTACK_ALLOC): New macro.
1430 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1431 If it was malloc'd, free it.
1433 1997-04-23 Richard Stallman <rms@gnu.org>
1436 (alloca) [__hpux]: Always define as __builtin_alloca.
1438 1997-04-23 Richard Stallman <rms@gnu.org>
1441 (alloca) [__hpux]: Always define as __builtin_alloca.
1443 1997-04-22 Richard Stallman <rms@gnu.org>
1446 [__hpux]: Include alloca.h (right for HPUX 10)
1447 instead of declaring alloca (right for HPUX 9).
1449 * src/bison.s1 (__yy_memcpy):
1450 Declare arg `count' as unsigned int.
1451 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1453 1997-04-22 Richard Stallman <rms@gnu.org>
1456 [__hpux]: Include alloca.h (right for HPUX 10)
1457 instead of declaring alloca (right for HPUX 9).
1459 * bison.simple (__yy_memcpy):
1460 Declare arg `count' as unsigned int.
1461 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1463 1997-01-03 Richard Stallman <rms@gnu.org>
1465 * src/allocate.c: [__STDC__ or _MSC_VER]:
1466 Declare calloc and realloc to return void *.
1468 1997-01-02 Richard Stallman <rms@gnu.org>
1471 [_MSC_VER]: Include stdlib.h and process.h.
1472 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1474 * src/main.c (main): Return FAILURE as a value.
1475 (printable_version): Declare arg as int, not char.
1477 1997-01-02 Richard Stallman <rms@gnu.org>
1479 * Makefile.in (dist):
1480 Explicitly check for symlinks, and copy them.
1482 1996-12-19 Richard Stallman <rms@gnu.org>
1485 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1487 1996-12-18 Paul Eggert <eggert@gnu.org>
1489 * src/bison.s1 (yyparse):
1490 If __GNUC__ and YYPARSE_PARAM are both defined,
1491 declare yyparse to have a void * argument.
1493 1996-12-18 Paul Eggert <eggert@gnu.org>
1495 * bison.simple (yyparse):
1496 If __GNUC__ and YYPARSE_PARAM are both defined,
1497 declare yyparse to have a void * argument.
1499 1996-12-17 Richard Stallman <rms@gnu.org>
1501 * src/reduce.c (nbits): Add some casts.
1503 1996-08-12 Richard Stallman <rms@gnu.org>
1505 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1507 1996-08-12 Richard Stallman <rms@gnu.org>
1509 * bison.simple: Test _MSDOS as well as _MSDOS_.
1511 1996-07-31 Richard Stallman <rms@gnu.org>
1514 [__sun && __i386]: Include alloca.h.
1516 1996-07-31 Richard Stallman <rms@gnu.org>
1519 [__sun && __i386]: Include alloca.h.
1521 1996-07-30 Richard Stallman <rms@gnu.org>
1523 * src/bison.s1: Comment change.
1525 * src/bison.s1: Test _MSDOS_, not MSDOS.
1527 1996-07-30 Richard Stallman <rms@gnu.org>
1529 * bison.simple: Comment change.
1531 * bison.simple: Test _MSDOS_, not MSDOS.
1533 1996-06-01 Richard Stallman <rms@gnu.org>
1535 * 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:
1536 Insert `_' macro around many string constants.
1539 Insert `_' macro around many string constants.
1541 (main): Call setlocale, bindtextdomain and textdomain.
1543 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1544 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1545 [ENABLE_NLS]: Include libintl.h.
1546 [ENABLE_NLS] (gettext): Define.
1547 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1548 (N_, PACKAGE, LOCALEDIR): New macros.
1550 1996-06-01 Richard Stallman <rms@gnu.org>
1552 * POTFILES.in: New file.
1554 * Makefile.in (allocate.o):
1555 Define target explicitly.
1557 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1558 (LDFLAGS): Set to @LDFLAGS@.
1559 (configure): Run autoconf only if preceding `cd' succeeds.
1560 (bison.s1): Redirect output to temporary file then move the
1561 temporary to the target, rather than redirecting directly to bison.s1.
1562 (clean): Remove config.status and config.log.
1563 (distclean): Don't remove config.status here.
1565 1996-05-12 Richard Stallman <rms@gnu.org>
1568 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1570 1996-05-12 Richard Stallman <rms@gnu.org>
1573 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1575 1996-05-11 Richard Stallman <rms@gnu.org>
1577 * src/bison.s1 (__yy_memcpy):
1578 Really reorder the args, as was supposedly done on Feb 14 1995.
1579 (yyparse): Calls changed accordingly.
1581 1996-05-11 Richard Stallman <rms@gnu.org>
1583 * Makefile.in (dist): Don't use $(srcdir).
1585 * bison.simple (__yy_memcpy):
1586 Really reorder the args, as was supposedly done on Feb 14 1995.
1587 (yyparse): Calls changed accordingly.
1589 1996-01-27 Richard Stallman <rms@gnu.org>
1591 * src/output.c (output_rule_data):
1592 Test YYERROR_VERBOSE in the conditional
1593 around the definition of ttyname.
1595 1995-12-29 Richard Stallman <rms@gnu.org>
1598 Fix line numbers in #line commands.
1600 1995-12-29 Richard Stallman <rms@gnu.org>
1603 Fix line numbers in #line commands.
1605 1995-12-27 Richard Stallman <rms@gnu.org>
1607 * src/bison.s1 (YYPARSE_PARAM_DECL):
1608 In C++, make it always null.
1609 (YYPARSE_PARAM_ARG): New macro.
1610 (yyparse): Use YYPARSE_PARAM_ARG.
1612 1995-12-27 Richard Stallman <rms@gnu.org>
1614 * bison.simple (YYPARSE_PARAM_DECL):
1615 In C++, make it always null.
1616 (YYPARSE_PARAM_ARG): New macro.
1617 (yyparse): Use YYPARSE_PARAM_ARG.
1619 1995-11-29 Richard Stallman <rms@gnu.org>
1621 * doc/bison.texinfo:
1622 Describe literal string tokens, %raw, %no_lines, %token_table.
1624 1995-11-29 Daniel Hagerty <hag@gnu.org>
1626 * doc/bison.texinfo: Fixed update date
1628 1995-10-16 Richard Stallman <rms@gnu.org>
1630 * src/version.c: Version 1.25.
1632 1995-10-16 Richard Stallman <rms@gnu.org>
1634 * NEWS: *** empty log message ***
1636 1995-10-16 Richard Stallman <rms@gnu.org>
1638 * doc/bison.1, doc/bison.rnh:
1641 1995-10-15 Richard Stallman <rms@gnu.org>
1643 * src/vmsgetargs.c, src/getargs.c:
1644 Added -n, -k, and -raw switches.
1645 (noparserflag, toknumflag, rawtoknumflag): New variables.
1647 * src/symtab.h (SALIAS):
1648 New #define for adding aliases to %token.
1649 (struct bucket): Added `alias' field.
1651 * src/reduce.c (reduce_grammar):
1652 Revise error message.
1653 (print_notices): Remove final `.' from error message.
1655 * src/reader.c (reader_output_yylsp):
1657 (readgram): Use `#if 0' around code that accepted %command
1658 inside grammar rules: The documentation doesn't allow it,
1659 and it will fail since the %command processors scan for the next %.
1660 (parse_token_decl): Extended the %token
1661 declaration to allow a multi-character symbol as an alias.
1662 (parse_thong_decl): New function.
1663 (read_declarations): Added %thong declarations.
1664 (read_declarations): Handle NOOP to deal with allowing
1665 % declarations as another means to specify the flags.
1666 (readgram): Allow %prec prior to semantics embedded in a rule.
1667 (skip_to_char, read_declarations, copy_definition)
1668 (parse_token_decl, parse_start_decl, parse_type_decl)
1669 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1670 (get_type_name, copy_guard, copy_action, readgram)
1671 (get_type, packsymbols): Revised most error messages.
1672 Changed `fatal' to `warnxxx' to avoid aborting for error.
1673 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1674 (read_declarations): Improve the error message for
1675 an invalid character. Do not abort.
1676 (read_declarations, copy_guard, copy_action): Use
1677 printable_version to avoid unprintable characters in printed output.
1678 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1679 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1680 Allow the type of a non-terminal can be given
1681 more than once, as long as all specifications give the same type.
1684 (output_headers, output_trailers, output, output_gram)
1685 (output_rule_data): Implement noparserflag variable.
1686 Implement toknumflag variable.
1687 (output): Call reader_output_yylsp to output LTYPESTR.
1689 * src/main.c (main):
1690 If reader sees an error, don't process the grammar.
1691 (fatals): Updated to not use VARARGS1.
1692 (printable_version, int_to_string, warn, warni, warns, warnss)
1693 (warnsss): New error reporting functions. Avoid abort for error.
1696 Added THONG and NOOP for alias processing.
1697 Added SETOPT for the new code that allows setting options with %flags.
1700 Include getopt.h. Add some extern decls.
1701 (safegetc): New function to deal with EOF gracefully.
1702 (literalchar); new function to deal with reading \ escapes.
1703 (lex): Use literalchar.
1704 (lex): Implemented "..." tokens.
1705 (literalchar, lex, parse_percent_token): Made tokenbuffer
1706 always contain the token. This includes growing the token
1707 buffer while reading an integer.
1708 (parse_percent_token): Replaced if-else statement with percent_table.
1709 (parse_percent_token): Added % declarations as another
1710 way to specify the flags -n, -l, and -r. Also added hooks for
1711 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1712 major changes to files.c.
1713 (lex) Retain in the incoming stream a character following
1715 (skip_white_space, lex): Revised most error messages
1716 and changed fatal to warn to avoid aborting.
1717 (percent_table): Added %thong declarations.
1719 * src/gram.h: Comment changes.
1721 * src/files.c (openfiles, open_extra_files, done):
1723 and actfile file. Handle noparserflag. Both for -n switch.
1725 * src/conflicts.c (resolve_sr_conflict):
1726 Remove use of alloca.
1728 1995-06-01 Jim Meyering <meyering@gnu.org>
1730 * doc/bison.texinfo: *** empty log message ***
1732 1995-05-06 Richard Stallman <rms@gnu.org>
1734 * src/bison.s1: Comment change.
1736 1995-05-06 Richard Stallman <rms@gnu.org>
1738 * bison.simple: Comment change.
1740 1995-05-03 Richard Stallman <rms@gnu.org>
1742 * src/version.c: Version now 1.24.
1744 * src/bison.s1: Change distribution terms.
1746 * src/version.c: Version now 1.23.
1748 1995-05-03 Richard Stallman <rms@gnu.org>
1750 * doc/bison.texinfo:
1751 Rewrite "Conditions for Using Bison".
1752 Update version to 1.24.
1754 1995-05-03 Richard Stallman <rms@gnu.org>
1756 * bison.simple: Change distribution terms.
1758 1995-02-23 Richard Stallman <rms@gnu.org>
1760 * src/files.c: Test __VMS_POSIX as well as VMS.
1762 1995-02-14 Jim Meyering <meyering@gnu.org>
1764 * src/bison.s1 (__yy_memcpy):
1765 Renamed from __yy_bcopy to avoid
1766 confusion. Reverse FROM and TO arguments to be consistent with
1769 1995-02-14 Jim Meyering <meyering@gnu.org>
1771 * bison.simple (__yy_memcpy):
1772 Renamed from __yy_bcopy to avoid
1773 confusion. Reverse FROM and TO arguments to be consistent with
1776 1994-11-10 David J. MacKenzie <djm@gnu.org>
1782 * Makefile.in (DISTFILES): Include NEWS.
1784 * Makefile.in (DISTFILES):
1785 Include install-sh, not install.sh.
1787 * configure.in: Update to Autoconf v2 macro names.
1789 1994-10-05 David J. MacKenzie <djm@gnu.org>
1791 * Makefile.in: fix typo
1793 * Makefile.in (prefix, exec_prefix):
1794 Let configure set them.
1796 1994-09-28 David J. MacKenzie <djm@gnu.org>
1798 * Makefile.in: Set datadir to $(prefix)/share.
1800 1994-09-15 Richard Stallman <rms@gnu.org>
1803 Update copyright notice and GPL version.
1805 1994-09-15 Richard Stallman <rms@gnu.org>
1808 Update copyright notice and GPL version.
1810 1994-07-12 Richard Stallman <rms@gnu.org>
1812 * src/reduce.c, src/reader.c:
1815 1994-05-05 David J. MacKenzie <djm@gnu.org>
1817 * Makefile.in: entered into RCS
1819 1994-03-26 Richard Stallman <rms@gnu.org>
1821 * src/bison.s1: entered into RCS
1823 1994-03-26 Richard Stallman <rms@gnu.org>
1825 * bison.simple: entered into RCS
1827 1994-03-25 Richard Stallman <rms@gnu.org>
1829 * src/main.c: entered into RCS
1831 1994-03-24 Richard Stallman <rms@gnu.org>
1833 * src/conflicts.c: entered into RCS
1835 1994-01-02 Richard Stallman <rms@gnu.org>
1837 * Makefile.in: *** empty log message ***
1839 1993-11-21 Richard Stallman <rms@gnu.org>
1841 * src/bison.s1: *** empty log message ***
1843 1993-11-21 Richard Stallman <rms@gnu.org>
1845 * doc/bison.texinfo: entered into RCS
1847 * doc/bison.texinfo: *** empty log message ***
1849 1993-11-21 Richard Stallman <rms@gnu.org>
1851 * bison.simple: *** empty log message ***
1853 1993-10-25 David J. MacKenzie <djm@gnu.org>
1855 * doc/bison.texinfo: *** empty log message ***
1857 1993-10-19 Richard Stallman <rms@gnu.org>
1859 * src/bison.s1: *** empty log message ***
1861 1993-10-19 Richard Stallman <rms@gnu.org>
1863 * bison.simple: *** empty log message ***
1865 1993-10-14 Richard Stallman <rms@gnu.org>
1867 * src/bison.s1: *** empty log message ***
1869 1993-10-14 Richard Stallman <rms@gnu.org>
1871 * bison.simple: *** empty log message ***
1873 1993-09-14 David J. MacKenzie <djm@gnu.org>
1875 * doc/bison.texinfo: *** empty log message ***
1877 1993-09-13 Noah Friedman <friedman@gnu.org>
1879 * Makefile.in: *** empty log message ***
1881 1993-09-10 Richard Stallman <rms@gnu.org>
1883 * src/conflicts.c: *** empty log message ***
1885 * src/system.h: entered into RCS
1887 1993-09-10 Richard Stallman <rms@gnu.org>
1889 * doc/bison.1: entered into RCS
1891 1993-09-06 Noah Friedman <friedman@gnu.org>
1893 * src/version.c: entered into RCS
1895 1993-09-06 Noah Friedman <friedman@gnu.org>
1897 * Makefile.in: *** empty log message ***
1899 1993-07-30 David J. MacKenzie <djm@gnu.org>
1901 * Makefile.in: *** empty log message ***
1903 1993-07-24 Richard Stallman <rms@gnu.org>
1905 * src/bison.s1: *** empty log message ***
1907 1993-07-24 Richard Stallman <rms@gnu.org>
1909 * bison.simple: *** empty log message ***
1911 1993-07-08 David J. MacKenzie <djm@gnu.org>
1913 * Makefile.in: *** empty log message ***
1915 1993-07-04 Richard Stallman <rms@gnu.org>
1917 * src/bison.s1: *** empty log message ***
1919 1993-07-04 Richard Stallman <rms@gnu.org>
1921 * bison.simple: *** empty log message ***
1923 1993-06-26 David J. MacKenzie <djm@gnu.org>
1925 * src/getargs.c: entered into RCS
1927 1993-06-26 David J. MacKenzie <djm@gnu.org>
1929 * doc/bison.texinfo: *** empty log message ***
1931 * doc/bison.1: New file.
1933 1993-06-25 Richard Stallman <rms@gnu.org>
1935 * src/getargs.c: New file.
1937 1993-06-16 Richard Stallman <rms@gnu.org>
1939 * src/bison.s1: *** empty log message ***
1941 1993-06-16 Richard Stallman <rms@gnu.org>
1943 * bison.simple: *** empty log message ***
1945 1993-06-03 Richard Stallman <rms@gnu.org>
1947 * src/bison.s1: New file.
1949 1993-06-03 Richard Stallman <rms@gnu.org>
1951 * doc/bison.texinfo: *** empty log message ***
1953 1993-06-03 Richard Stallman <rms@gnu.org>
1955 * bison.simple: New file.
1957 1993-05-19 Richard Stallman <rms@gnu.org>
1959 * doc/bison.texinfo: New file.
1961 1993-05-07 Noah Friedman <friedman@gnu.org>
1963 * Makefile.in: *** empty log message ***
1965 1993-04-28 Noah Friedman <friedman@gnu.org>
1967 * src/reader.c: *** empty log message ***
1969 1993-04-23 Noah Friedman <friedman@gnu.org>
1971 * src/alloc.h: entered into RCS
1973 1993-04-20 David J. MacKenzie <djm@gnu.org>
1975 * src/version.c: *** empty log message ***
1977 * src/files.c, src/allocate.c:
1980 * src/reader.c: *** empty log message ***
1982 * src/lex.c: entered into RCS
1984 * src/conflicts.c: New file.
1986 * src/symtab.c: entered into RCS
1988 * src/alloc.h: New file.
1990 * src/LR0.c: entered into RCS
1992 1993-04-18 Noah Friedman <friedman@gnu.org>
1994 * src/reader.c: New file.
1996 * src/version.c: *** empty log message ***
1998 1993-04-18 Noah Friedman <friedman@gnu.org>
2000 * Makefile.in: *** empty log message ***
2002 1993-04-17 Noah Friedman <friedman@gnu.org>
2004 * Makefile.in: *** empty log message ***
2006 1993-04-15 Richard Stallman <rms@gnu.org>
2008 * src/main.c, src/files.c:
2011 1993-04-15 Noah Friedman <friedman@gnu.org>
2013 * configure.in: entered into RCS
2015 * configure.in: *** empty log message ***
2017 * configure.in: New file.
2019 1993-04-14 Richard Stallman <rms@gnu.org>
2021 * Makefile.in: New file.
2023 1993-04-13 Richard Stallman <rms@gnu.org>
2025 * src/version.c: New file.
2027 1993-03-25 Richard Stallman <rms@gnu.org>
2029 * src/output.c: entered into RCS
2031 1992-09-25 Richard Stallman <rms@gnu.org>
2033 * configure.bat: entered into RCS
2035 1992-06-22 Richard Stallman <rms@gnu.org>
2037 * src/vmsgetargs.c: entered into RCS
2039 1992-06-22 Richard Stallman <rms@gnu.org>
2041 * doc/bison.rnh: entered into RCS
2043 1992-04-20 David J. MacKenzie <djm@gnu.org>
2045 * README: entered into RCS
2047 1992-01-22 Richard Stallman <rms@gnu.org>
2049 * src/machine.h: entered into RCS
2051 1991-12-21 Richard Stallman <rms@gnu.org>
2053 * src/lalr.c, src/closure.c:
2056 1991-12-20 Richard Stallman <rms@gnu.org>
2058 * src/state.h: entered into RCS
2060 1991-12-18 Richard Stallman <rms@gnu.org>
2062 * src/print.c, src/nullable.c, src/derives.c:
2065 1991-11-03 David J. MacKenzie <djm@gnu.org>
2067 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2070 1988-09-09 Richard Stallman <rms@gnu.org>
2072 * src/bison.hairy: entered into RCS
2074 1987-12-16 Richard Stallman <rms@gnu.org>
2076 * REFERENCES: entered into RCS