1 2001-02-08 Akim Demaille <akim@epita.fr>
3 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
4 New, from fileutils 4.0.37.
5 * configure.in: Require Autoconf 2.49c. I took some time before
6 making this decision. This is the only way out for portability
7 issues in Bison, it would mean way too much duplicate effort to
8 import in Bison features implemented in 2.49c since 2.13.
9 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
11 2001-02-02 Akim Demaille <akim@epita.fr>
13 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
14 * lib/xalloc.h, lib/xmalloc.c: Update.
16 2001-01-19 Akim Demaille <akim@epita.fr>
18 Get rid of the ad hoc handling of token_buffer in the scanner: use
21 * src/lex.c (token_obstack): New.
22 (init_lex): Initialize it. No longer call...
23 (grow_token_buffer): this. Remove it.
24 Adjust all the places which used it to use the obstack.
26 2001-01-19 Akim Demaille <akim@epita.fr>
28 * src/lex.h: Rename all the tokens:
29 s/\bENDFILE\b/tok_eof/g;
30 s/\bIDENTIFIER\b/tok_identifier/g;
32 Let them be enums, not #define, to ease debugging.
35 2001-01-18 Akim Demaille <akim@epita.fr>
37 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
38 * src/lex.c (maxtoken, grow_token_buffer): Static.
40 2001-01-18 Akim Demaille <akim@epita.fr>
42 Since we now use obstacks, more % directives can be enabled.
44 * src/lex.c (percent_table): Also accept `%yacc',
45 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
47 Handle the actions for `%semantic_parser' and `%pure_parser' here,
48 instead of returning a token.
49 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
50 * src/reader.c (read_declarations): Adjust.
51 * src/files.c (open_files): Don't call `compute_base_names', don't
52 compute `attrsfile' since they depend upon data which might be
53 *in* the input file now.
54 (output_files): Do it here.
55 * src/output.c (output_headers): Document the fact that this patch
56 introduces a guaranteed SEGV for semantic parsers.
57 * doc/bison.texinfo: Document them.
58 * tests/suite.at: Exercise these %options.
60 2000-12-20 Akim Demaille <akim@epita.fr>
62 Also handle the output file (--verbose) with obstacks.
64 * files.c (foutput): Remove.
65 (output_obstack): New.
66 Adjust all dependencies.
67 * src/conflicts.c: Return a string.
68 * src/system.h (obstack_grow_string): Rename as...
69 (obstack_sgrow): this. Be ready to work with non literals.
70 (obstack_fgrow4): New.
72 2000-12-20 Akim Demaille <akim@epita.fr>
74 * src/files.c (open_files): Fix the computation of short_base_name
75 in the case of `-o foo.tab.c'.
77 2000-12-20 Akim Demaille <akim@epita.fr>
79 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
80 (copy_dollar): Now that everything uses obstacks, get rid of the
83 2000-12-20 Akim Demaille <akim@epita.fr>
85 * src/files.c (open_files): Actually the `.output' file is based
86 on the short_base_name, not base_name.
87 * tests/suite.at (Checking output file names): Adjust.
89 2000-12-20 Akim Demaille <akim@epita.fr>
91 * src/bison.s1: Remove, we now use directly...
92 * src/bison.simple: this.
93 * src/Makefile.am: Use pkgdata instead of data.
95 2000-12-20 Akim Demaille <akim@epita.fr>
97 * src/files.c (guard_obstack): New.
98 (open_files): Initialize it.
99 (output_files): Dump it...
100 * src/files.h: Export it.
101 * src/reader.c (copy_guard): Use it.
103 2000-12-19 Akim Demaille <akim@epita.fr>
105 * src/files.c (outfile, defsfile, actfile): Removed as global
107 (open_files): Don't compute them.
108 (output_files): Adjust.
109 (base_name, short_base_name): Be global.
112 2000-12-19 Akim Demaille <akim@epita.fr>
114 * src/files.c (strsuffix): New.
115 (stringappend): Be just like strcat but allocate.
116 (base_names): Eve out from open_files.
117 Try to simplify the rather hairy computation of base_name and
119 (open_files): Use it.
120 * tests/suite.at (Checking output file names): New test.
122 2000-12-19 Akim Demaille <akim@epita.fr>
124 * src/system.h (obstack_grow_literal_string): Rename as...
125 (obstack_grow_string): this.
126 * src/output.c (output_parser): Recognize `%% actions' instead of
128 * src/bison.s1: s/$/%% actions/.
129 * src/bison.hairy: Likewise.
131 2000-12-19 Akim Demaille <akim@epita.fr>
133 * src/output.c (output_parser): Compute the `#line' lines when
135 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
136 Suggested by Hans Aberg.
138 2000-12-19 Akim Demaille <akim@epita.fr>
140 Let the handling of the skeleton files be local to the procedures
143 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
145 (fparser, open_extra_files): Remove.
146 (open_files, output_files): Don't take care of fparser.
147 * src/files.h: Adjust.
148 * src/output.c (output_parser): Open and close the file to the
150 * src/reader.c (read_declarations): When %semantic_parser, open
153 2000-12-19 Akim Demaille <akim@epita.fr>
155 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
156 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
158 2000-12-19 Akim Demaille <akim@epita.fr>
160 * src/files.c (open_files): Yipee! We no longer need all the code
161 looking for `/tmp' since we have no tmp file.
163 2000-12-19 Akim Demaille <akim@epita.fr>
165 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
167 * src/files.c (open_files): Less dependency on MSDOS etc.
169 2000-12-14 Akim Demaille <akim@epita.fr>
171 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
172 Provide a default definition.
173 Use it when executing the default @ action.
174 * src/reader.c (reader_output_yylsp): No longer include
175 `timestamp' and `text' in the default YYLTYPE.
177 2000-12-12 Akim Demaille <akim@epita.fr>
179 * src/reader.c (copy_definition, parse_union_decl, copy_action)
180 (copy_guard): Quote the file names.
181 Reported by Laurent Mascherpa.
183 2000-12-12 Akim Demaille <akim@epita.fr>
185 * src/output.c (output_headers, output_program, output): Be sure
186 to escape special characters when outputting filenames.
187 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
188 (output_headers): Don't depend on them, Use ACTSTR.
190 2000-11-17 Akim Demaille <akim@epita.fr>
192 * lib/obstack.h: Formatting changes.
193 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
194 prevents type checking.
195 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
196 cast the value to (void *): assigning a `foo *' to a `void *'
198 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
199 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
202 2000-11-17 Akim Demaille <akim@epita.fr>
204 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
206 (suite.m4, regression.m4, calc.m4): these.
207 * tests/atgeneral.m4: Update from CVS Autoconf.
209 2000-11-17 Akim Demaille <akim@epita.fr>
211 * tests/regression.m4 (%union and --defines): New test,
212 demonstrating a current bug in the obstack implementation.
214 2000-11-17 Akim Demaille <akim@epita.fr>
216 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
218 Use them to declare the variables which are global or local to
221 2000-11-17 Akim Demaille <akim@epita.fr>
223 * acconfig.h: Remove, no longer used.
225 2000-11-07 Akim Demaille <akim@epita.fr>
227 * src: s/Copyright (C)/Copyright/g.
229 2000-11-07 Akim Demaille <akim@epita.fr>
231 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
233 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
235 2000-11-07 Akim Demaille <akim@epita.fr>
237 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
238 Merge in a single CPP if/else.
240 2000-11-07 Akim Demaille <akim@epita.fr>
242 * src/output.c (output): Remove useless variables.
243 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
244 argument `data' for consistency with the prototypes.
246 (obstack_copy, obstack_copy0): Rename the second argument as
247 `address' for consistency. Qualify it `const'.
248 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
249 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
250 `const' their input argument (`data' or `address').
251 Adjust the corresponding macros to include `const' in casts.
253 2000-11-03 Akim Demaille <akim@epita.fr>
255 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
256 s/PFILE1/BISON_HAIRY/.
259 2000-11-03 Akim Demaille <akim@epita.fr>
261 For some reason, this was not applied.
263 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
264 `unlink': it's no longer used.
266 2000-11-03 Akim Demaille <akim@epita.fr>
268 * src/files.c (skeleton_find): New function, eved out of...
269 (open_files, open_extra_files): here.
271 2000-11-03 Akim Demaille <akim@epita.fr>
275 * src/files.c (obstack_save): New function.
277 (output_files): this.
279 * src/main.c (main): Don't use `atexit' to register `done', since
280 it no longer has to remove tmp files, just call `output_files'
281 when there are no errors.
283 2000-11-02 Akim Demaille <akim@epita.fr>
285 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
286 `unlink': it's no longer used.
287 * src/files.h: Formatting changes.
289 2000-11-02 Akim Demaille <akim@epita.fr>
291 Remove the last uses of mktemp and unlink/delete.
293 * src/files.c (fdefines, ftable): Removed.
294 (defines_ostack, table_obstack): New.
295 Adjust dependencies of the former into uses of the latter.
296 * src/output.c (output_short_or_char_table, output_short_table):
297 Convert to using obstacks.
298 * src/reader.c (copy_comment2): Accept one FILE * and two
300 (output_token_defines, reader_output_yylsp): Use obstacks.
301 * src/system.h (obstack_fgrow3): New.
303 2000-11-01 Akim Demaille <akim@epita.fr>
305 Change each use of `fattrs' into a use of `attrs_obstack'.
307 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
308 * src/files.c (fattrs): Remove.
309 (attrs_obstack): New.
310 Adjust all dependencies.
311 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
313 2000-11-01 Akim Demaille <akim@epita.fr>
316 Change each use of `faction' into a use of `action_obstack'.
318 * lib/obstack.h, lib/obstack.c: New files.
319 * src/files.c (faction): Remove.
320 (action_obstack): New.
321 Adjust all dependencies.
323 2000-10-20 Akim Demaille <akim@epita.fr>
325 * lib/quote.h (PARAMS): New macro. Use it.
327 2000-10-16 Akim Demaille <akim@epita.fr>
329 * src/output.c (output_short_or_char_table): New function.
330 (output_short_table, output_token_translations): Use it.
331 (goto_actions): Use output_short_table.
333 2000-10-16 Akim Demaille <akim@epita.fr>
335 * src/symtab.c (bucket_new): New function.
338 * src/output.c (output_short_table): New argument to display the
339 comment associated with the table.
341 (output_gram): Use it.
342 (output_rule_data): Nicer output layout for YYTNAME.
344 2000-10-16 Akim Demaille <akim@epita.fr>
346 * src/lex.c (read_typename): New function.
348 * src/reader.c (copy_dollar): Likewise.
350 2000-10-16 Akim Demaille <akim@epita.fr>
352 * src/reader.c (copy_comment2): Expect the input stream to be on
353 the `/' which is suspected to open a comment, instead of being
354 called after `//' or `/*' was read.
355 (copy_comment, copy_definition, parse_union_decl, copy_action)
356 (copy_guard): Adjust.
358 2000-10-16 Akim Demaille <akim@epita.fr>
360 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
361 `read_signed_integer'.
363 2000-10-16 Akim Demaille <akim@epita.fr>
365 * src/reader.c (copy_dollar): New function.
366 (copy_guard, copy_action): Use it.
368 2000-10-16 Akim Demaille <akim@epita.fr>
370 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
371 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
372 New files, from Fileutils 4.0.27.
373 * src/main.c (printable_version): Remove.
374 * src/lex.c, src/reader.c: Use `quote'.
376 2000-10-04 Akim Demaille <akim@epita.fr>
378 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
380 2000-10-04 Akim Demaille <akim@epita.fr>
382 * doc/bison.texinfo: Various typos spotted by Neil Booth.
384 2000-10-04 Akim Demaille <akim@epita.fr>
386 When a literal string is used to define two different tokens,
387 `bison -v' segfaults.
388 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
390 * tests/regression.m4: New file.
391 Include the core of the sample provided by Piotr Gackiewicz.
392 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
395 2000-10-04 Akim Demaille <akim@epita.fr>
397 * src/reader.c (parse_expect_decl): Keep `count' within the size
401 2000-10-02 Paul Eggert <eggert@twinsun.com>
403 * bison.s1 (yyparse): Assign the default value
404 unconditionally, to avoid a GCC warning and make the parser a
407 2000-10-02 Akim Demaille <akim@epita.fr>
409 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
412 2000-10-02 Akim Demaille <akim@epita.fr>
414 * src/derives.c, src/print.c, src/reduce.c: To ease the
415 translation, move some `\n' out of the translated strings.
417 2000-10-02 Akim Demaille <akim@epita.fr>
419 The location tracking mechanism is precious for parse error
420 messages. Nevertheless, it is enabled only when `@n' is used in
421 the grammar, which is a different issue (you can use it in error
422 message, but not in the grammar per se). Therefore, there should
423 be another means to enable it.
425 * src/getargs.c (getargs): Support `--locations'.
427 * src/getargs.h (locationsflag): Export it.
428 * src/lex.c (percent_table): Support `%locations'.
429 * src/reader.c (yylsp_needed): Remove this variable, now replaced
430 with `locationsflag'.
431 * doc/bison.texinfo: Document `--locations' and `%locations'.
433 * tests/calc.m4: Test it.
435 For regularity of the names, replace each
436 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
437 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
438 In addition replace each `flag' with `_flag'.
440 2000-10-02 Akim Demaille <akim@epita.fr>
442 Also test parse error messages, including with YYERROR_VERBOSE.
444 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
446 Use it to check the computations.
447 Use it to check `nonassoc' is honored.
448 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
450 (_AT_CHECK_CALC): Adjust to this option.
451 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
453 2000-10-02 Akim Demaille <akim@epita.fr>
455 Test also `--verbose', `--defines' and `--name-prefix'. Testing
456 the latter demonstrates a flaw in the handling of non debugging
457 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
458 was used in order to simplify:
474 unfortunately this leads to a CPP conflict when
475 `--name-prefix=foo' is used since it produces `#define yydebug
478 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
479 (YYDPRINTF): New macro.
481 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
483 Also test `--verbose', `--defines' and `--name-prefix'.
485 2000-10-02 Akim Demaille <akim@epita.fr>
487 Improve the readability of the produced parsers.
489 * src/bison.s1: Formatting changes.
490 Improve the comment related to the `$' mark.
491 (yydefault): Don't fall through to `yyresume': `goto' there.
492 * src/output.c (output_parser): When the `$' is met, skip the end
494 New variable, `number_of_dollar_signs', to check there's exactly
495 one `$' in the parser skeleton.
497 2000-10-02 Akim Demaille <akim@epita.fr>
499 * lib/xstrdup.c: New file, from the fileutils.
500 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
501 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
502 instead of strlen + xmalloc + strcpy.
503 * src/symtab.c (copys): Remove, use xstrdup instead.
505 2000-10-02 Akim Demaille <akim@epita.fr>
507 * src/gram.h (associativity): New enum type which replaces the
508 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
509 `right_assoc', `left_assoc' and `non_assoc'.
510 Adjust all dependencies.
511 * src/reader.c: Formatting changes.
512 (LTYPESTR): Don't define it, use it as a literal in
513 `reader_output_yylsp'.
514 * src/symtab.h (symbol_class): New enum type which replaces the
515 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
516 `sunknown', `stoken and `snterm'.
518 2000-10-02 Akim Demaille <akim@epita.fr>
520 * src/getargs.c (fixed_outfiles): Rename as...
521 (yaccflag): for consistency and accuracy.
524 2000-10-02 Akim Demaille <akim@epita.fr>
526 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
527 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
528 difficult and introduced a lot of core dump. It turns out that
529 Bison used an implementation of `xmalloc' based on `calloc', and
530 at various places it does depend upon the initialization to 0. I
531 have not tried to isolate the pertinent places, and all the former
532 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
533 someone should address this issue.
535 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
536 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
539 * src/warshall.h: New file.
542 2000-10-02 Akim Demaille <akim@epita.fr>
544 Various anti-`extern in *.c' changes.
546 * src/system.h: Include `assert.h'.
548 2000-10-02 Akim Demaille <akim@epita.fr>
550 * src/state.h (nstates, final_state, first_state, first_shift)
551 (first_reduction): Move their exportation from here...
552 * src/LR0.h: to here.
554 * src/getargs.c (statisticsflag): New variable.
555 Add support for `--statistics'.
558 Remove a lot of now useless `extern' statements in most files.
560 2000-10-02 Akim Demaille <akim@epita.fr>
562 * src/LR0.h: New file.
565 2000-10-02 Akim Demaille <akim@epita.fr>
567 * src/print.h: New file.
569 * src/print.c: Formatting and ordering changes.
570 (verbose, terse): Replace with...
571 (print_results): this new function.
574 2000-10-02 Akim Demaille <akim@epita.fr>
576 * src/conflicts.c (conflict_report): New function.
577 (conflict_log, verbose_conflict_log): Replace with...
578 (print_conflicts): this function.
580 * src/conflicts.h: New file.
581 Propagate its inclusion.
583 2000-10-02 Akim Demaille <akim@epita.fr>
585 * src/nullable.h: New file.
586 Propagate its inclusion.
587 * src/nullable.c: Formatting changes.
589 2000-10-02 Akim Demaille <akim@epita.fr>
591 * src/reduce.h: New file.
592 Propagate its inclusion.
593 * src/reduce.c: Topological sort and other formatting changes.
594 (bool, TRUE, FALSE): Move their definition to...
595 * src/system.h: here.
597 2000-10-02 Akim Demaille <akim@epita.fr>
599 * src/files.c: Formatting changes.
600 (tryopen, tryclose, openfiles): Rename as...
601 (xfopen, xfclose, open_files): this.
602 (stringappend): static.
603 * src/files.h: Complete the list of exported symbols.
606 2000-10-02 Akim Demaille <akim@epita.fr>
608 * src/reader.h: New file.
609 Propagate its use instead of tedious list of `extern' and
611 * src/reader.c: Formatting changes, topological sort,
614 2000-10-02 Akim Demaille <akim@epita.fr>
616 * src/lex.h: Prototype `lex.c' exported functions.
617 * src/reader.c: Adjust.
618 * src/lex.c: Formatting changes.
619 (safegetc): Rename as...
622 2000-10-02 Akim Demaille <akim@epita.fr>
624 * src/lalr.h: New file.
625 Propagate its inclusion instead of prototypes and `extern'.
626 * src/lalr.c: Formatting changes, topological sorting etc.
628 2000-10-02 Akim Demaille <akim@epita.fr>
630 * src/output.c (token_actions): Introduce a temporary array,
631 YYDEFACT, that makes it possible for this function to use
634 2000-10-02 Akim Demaille <akim@epita.fr>
636 `user_toknums' is output as a `short[]' in `output.c', while it is
637 defined as a `int[]' in `reader.c'. For consistency with the
638 other output tables, `user_toknums' is now defined as a table of
641 * src/reader.c (user_toknums): Be a short table instead of an int
645 Factor the short table outputs.
647 * src/output.c (output_short_table): New function.
648 * src/output.c (output_gram, output_stos, output_rule_data)
649 (output_base, output_table, output_check): Use it.
651 2000-10-02 Akim Demaille <akim@epita.fr>
653 * src/output.c (output): Topological sort of the functions, in
654 order to get rid of the `static' prototypes.
655 No longer use `register'.
656 * src/output.h: New file.
657 Propagate its inclusion in files explicitly prototyping functions
660 2000-09-21 Akim Demaille <akim@epita.fr>
662 * src/atgeneral.m4: Update from Autoconf.
664 2000-09-21 Akim Demaille <akim@epita.fr>
666 * src/closure.h: New file.
667 * src/closure.c: Formatting changes, topological sort over the
668 functions, use of closure.h.
669 (initialize_closure, finalize_closure): Rename as...
670 (new_closure, free_closure): these. Adjust dependencies.
671 * src/LR0.c: Formatting changes, topological sort, use of
673 (initialize_states): Rename as...
675 * src/Makefile.am (noinst_HEADERS): Adjust.
677 2000-09-20 Akim Demaille <akim@epita.fr>
679 * src/acconfig.h: Don't protect config.h against multiple
682 * src/system.h: Define PARAMS.
683 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
684 purpose of config.h. system.h must not try to fix wrong
685 definitions in config.h.
687 2000-09-20 Akim Demaille <akim@epita.fr>
689 * src/derives.h: New file.
690 * src/main.c, src/derives.h: Use it.
692 * src/Makefile.am (noinst_HEADERS): Adjust.
694 2000-09-20 Akim Demaille <akim@epita.fr>
696 * tests/atgeneral.m4: Update from Autoconf.
697 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
698 (AT_CHECK_CALC): New macros.
699 Use these macros to test bison with options `', `--raw',
700 `--debug', `--yacc', `--yacc --debug'.
702 2000-09-19 Akim Demaille <akim@epita.fr>
704 * src/output.c: Formatting changes.
705 * src/machine.h: Remove, leaving its contents in...
706 * src/system.h: here.
708 Adjust all dependencies on stdio.h and machine.h.
709 * src/getargs.h: New file.
710 Let all `extern' declarations about getargs.c be replaced with
711 inclusion of `getargs.h'.
712 * src/Makefile.am (noinst_HEADERS): Adjust.
714 * tests/calc.m4 (yyin): Be initialized in main, not on the global
716 (yyerror): Returns void, not int.
717 * doc/bison.texinfo: Formatting changes.
719 2000-09-19 Akim Demaille <akim@epita.fr>
721 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
724 2000-09-18 Akim Demaille <akim@epita.fr>
726 * configure.in: Append WARNING_CFLAGS to CFLAGS.
727 * src/Makefile.am (INCLUDES): Don't.
728 Be ready to fetch headers in lib/.
730 2000-09-18 Akim Demaille <akim@epita.fr>
732 * doc/bison.texinfo: Update the copyright.
733 ANSIfy and GNUify the examples.
736 2000-09-18 Akim Demaille <akim@epita.fr>
738 First set of tests: use the `calc' example from the documentation.
740 * src/bison.s1 (yyparse): Condition the code using `yytname' which
741 is defined only when YYDEBUG is.
742 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
743 * src/files.c (tryopen, tryclose): Formatting changes.
744 Move to the top and be static.
745 * src/reader.c (read_signed_integer): Likewise.
746 * tests/calc.m4: New file.
747 * Makefile.am, suite.m4: Adjust.
748 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
750 2000-09-18 Akim Demaille <akim@epita.fr>
752 Add support for an Autotest test suite for Bison.
754 * m4/m4.m4, m4/atconfig.m4: New files.
755 * m4/Makefile.am (EXTRA_DIST): Adjust.
756 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
758 * src/getargs.c: Display a more standard --version message.
759 * src/reader.c (reader): Formatting changes.
760 No longer depend upon VERSION_STRING.
761 * configure.in: No longer use `dnl'.
762 Set up the test suite and the new directory `tests/.
763 (VERSION_STRING): Remove.
765 2000-04-14 Akim Demaille <akim@epita.fr>
767 * src/reader.c (copy_comment2): New function, same as former
768 `copy_comment', but outputs into two FILE *.
769 (copy_comment): Use it.
770 (parse_union_decl): Use it.
771 (get_type, parse_start_decl): Use the same `invalid' message.
772 (parse_start_decl, parse_union_decl): Use the same `multiple'
774 (parse_union_decl, copy_guard, copy_action): Use the same
776 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
778 2000-03-31 Akim Demaille <akim@epita.fr>
780 * src/files.c (tryopen, tryclose): Move to the top.
783 2000-03-31 Akim Demaille <akim@epita.fr>
785 * src/main.c (main): Don't call `done', exit does it.
787 2000-03-31 Akim Demaille <akim@epita.fr>
789 * allocate.c: s/return (foo)/return foo/.
792 * output.c: Likewise.
793 * reader.c: Likewise.
794 * symtab.c: Likewise.
795 * vmsgetargs.c: Likewise.
797 2000-03-31 Akim Demaille <akim@epita.fr>
799 Clean up the error reporting functions.
801 * src/report.c: New file.
802 * src/report.h: Likewise.
803 * src/Makefile.am: Adjust.
804 * m4/error.m4: New file.
805 * m4/Makefile.am: Adjust.
806 * configure.in (jm_PREREQ_ERROR): Call it.
807 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
809 (fatal, fatals): Remove. All callers use complain.c::fatal.
810 (warn, warni, warns, warnss, warnss): Remove. All callers use
811 complain.c::complain.
812 (toomany): Remove, use fatal instead.
813 * src/files.c (done): No argument, use complain_message_count.
814 * src/main.c (main): Register `done' to `atexit'.
816 * src/getargs.c (usage): More `fputs', less `fprintf'.
818 2000-03-28 Akim Demaille <akim@epita.fr>
820 * lib/: New directory.
821 * Makefile.am (SUBDIRS): Adjust.
822 * configure.in: Adjust.
823 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
825 * src/alloca.c: Moved to lib/.
826 * src/getopt.c: Likewise.
827 * src/getopt1.c: Likewise.
828 * src/getopt.h: Likewise.
829 * src/ansi2knr.c: Likewise.
830 * src/ansi2knr.1: Likewise.
831 * src/Makefile.am: Adjust.
832 * lib/Makefile.am: New file.
834 2000-03-28 Akim Demaille <akim@epita.fr>
836 * src/getargs.c (usage): Refresh the help message.
838 2000-03-17 Akim Demaille <akim@epita.fr>
840 * src/getopt1.c: Updated from textutils 2.0e
841 * src/getopt.c: Likewise.
842 * src/getopt.h: Likewise.
844 2000-03-17 Akim Demaille <akim@epita.fr>
846 * src/Makefile.am (bison.simple): Fix the awk program: quote only
847 the file name, not the whole `#line LINE FILE'.
849 2000-03-17 Akim Demaille <akim@epita.fr>
851 On syntax errors, report the token on which we choked.
853 * src/bison.s1 (yyparse): In the label yyerrlab, when
854 YYERROR_VERBOSE, add yychar in msg.
856 2000-03-17 Akim Demaille <akim@epita.fr>
858 * src/reader.c (copy_at): New function.
859 (copy_guard): Use it.
860 (copy_action): Use it.
862 2000-03-17 Akim Demaille <akim@epita.fr>
864 Be kind to translators, save some useless translations.
866 * src/main.c (banner): New function.
867 (fatal_banner): Use it.
868 (warn_banner): Use it.
870 2000-03-17 Akim Demaille <akim@epita.fr>
872 * src/reader.c (copy_definition): Use copy_string and
873 copy_comment. Removed now unused `match', `ended',
875 (copy_comment, copy_string): Moved, to be visible from
878 2000-03-17 Akim Demaille <akim@epita.fr>
880 * src/reader.c (copy_string): Declare `static inline'. No
881 problems with inline, since it is checked by configure.
882 (copy_comment): Likewise.
884 2000-03-17 Akim Demaille <akim@epita.fr>
886 * src/reader.c (packsymbols): Formatting changes.
888 2000-03-17 Akim Demaille <akim@epita.fr>
890 * src/reader.c (copy_comment): New function, factored out from:
891 (copy_action): Use it. Removed now unused `match', `ended',
893 (copy_guard): Likewise.
895 2000-03-17 Akim Demaille <akim@epita.fr>
897 * src/reader.c (copy_string): New function, factored out from:
898 (copy_action): Use it.
899 (copy_guard): Likewise.
901 2000-03-17 Akim Demaille <akim@epita.fr>
903 Change the handling of @s so that they behave exactly like $s.
904 There is now a pseudo variable @$ (readble and writable), location
905 of the lhs of the rule (by default ranging from the location of
906 the first symbol of the rhs, to the location of the last symbol,
907 or, if the rhs is empty, YYLLOC).
909 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
911 (yyparse): When providing a default semantic action, provide a
912 default location action.
913 (after the $): No longer change `*YYLSP', just stack YYLOC the
914 same way you stack YYVAL.
915 * src/reader.c (read_declarations): Use warns.
916 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
917 (copy_action, case '@'): Likewise.
918 Use a standard error message, to save useless work from
921 2000-03-17 Akim Demaille <akim@epita.fr>
923 * src/bison.s1: Formatting and cosmetics changes.
924 * src/reader.c: Likewise.
925 Update the Copyright notice.
927 2000-03-17 Akim Demaille <akim@epita.fr>
929 * src/bison.s1 (#line): All set to `#line' only, since the
930 Makefile now handles them.
932 2000-03-16 Akim Demaille <akim@epita.fr>
934 * src/output.c (output_rule_data): Output the documentation of
936 (Copyright notice): Update.
939 2000-03-16 Akim Demaille <akim@epita.fr>
941 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
942 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
943 One `#if YYDEBUG' remains, since it uses variables which are
944 defined only if `YYDEBUG != 0'.
946 2000-03-16 Akim Demaille <akim@epita.fr>
948 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
949 and related variables so that the similarities are highlighted.
951 2000-03-16 Akim Demaille <akim@epita.fr>
953 * src/bison.s1: Properly indent CPP directives.
955 2000-03-16 Akim Demaille <akim@epita.fr>
957 * src/bison.s1: Properly indent the `alloca' CPP section.
959 2000-03-16 Akim Demaille <akim@epita.fr>
961 Do not hard code values of directories in `configure.in'.
962 Update the `configure' tool chain.
964 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
966 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
967 (AC_OUTPUT): Add m4/Makefile.
968 Bump to bison 1.28a, 1.29 has never been released.
969 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
970 handled via src/Makefile.am.
971 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
972 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
974 * Makefile.am (SUBDIRS): Add m4.
975 (ACLOCAL_AM_FLAGS): New variable.
976 (AUTOMAKE_OPTIONS): Add check-news.
977 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
978 the proper line number and file name.
979 (DEFS): Propagate the location of bison library files and of the
981 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
983 * acinclude.m4: Remove, replaced by the directory m4.
984 * m4/Makefile.am (EXTRA_DIST): New variable.
985 * m4/gettext.m4: New file, from the fileutils.
986 * m4/lcmessage.m4: Likewise
987 * m4/progtest.m4: Likewise.
988 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
990 2000-03-10 Akim Demaille <akim@epita.fr>
993 Formatting changes of various comments.
994 Respect the GNU coding standards at various places.
995 Don't use `_()' when no translation is needed.
997 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1000 OS/2 honors TMPDIR environment variable.
1002 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1004 * doc/bison.texinfo: Tweaked spelling and grammar.
1006 Removed reference to price of printed copy.
1007 Mention BISON_SIMPLE and BISON_HAIRY.
1009 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1011 * configure.in, NEWS:
1012 Bison 1.29 released.
1014 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1016 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1017 Added reference card.
1019 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1021 * po/ru.po: Added Russian translation.
1023 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1025 * configure.in: Added Russian translation.
1027 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1029 * configure.in, NEWS, README:
1030 Released version 1.28.
1032 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1035 Squashed redefinition warning on some systems.
1037 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1038 Have configure build version string instead of relying on ANSI string
1041 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1043 * po/POTFILES.in: Got rid of version.c.
1045 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1047 * acconfig.h, configure.in:
1048 Have configure build version string instead of relying on ANSI string
1051 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1054 Dropped mention of `+' for long-named options.
1056 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1058 * src/files.c: Added <unistd.h> for unlink().
1060 * src/Makefile.am, src/system.h:
1063 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1065 * README: Added a FAQ list.
1067 * configure.in, acconfig.h:
1070 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1072 * doc/FAQ, doc/Makefile.am:
1075 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1077 * src/alloc.h, src/symtab.h, src/version.c:
1078 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1080 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1082 * src/.cvsignore, src/Makefile.am:
1083 Reorganized: sources in `src', documentation in `doc'.
1085 * src/lex.c (literalchar):
1086 fixed the code for escaping double quotes (thanks
1089 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1091 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1092 Adjusted paths to reflect directory reorganization.
1094 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1096 * doc/.cvsignore, doc/Makefile.am:
1097 Reorganized: sources in `src', documentation in `doc'.
1099 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1102 Updated AC_INIT file to reflect directory reorganization.
1104 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1105 Reorganized: sources in `src', documentation in `doc'.
1107 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1110 Don't declare calloc() and realloc() if not necessary.
1112 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1114 * configure.in, acconfig.h, acinclude.m4:
1115 Don't declare calloc() and realloc() if not necessary.
1117 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1119 * po/.cvsignore: Added i18n support.
1121 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1123 * acconfig.h, configure.in, Makefile.am:
1126 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1128 * src/bison.s1: Fixed #line numbers.
1130 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1132 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1133 Added PO files from Translation Project.
1135 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1138 Added support for non-ANSI compilers (ansi2knr).
1140 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1142 * configure.in: Bumped version number to 1.27.
1145 Added `bison.simple' to list of files removed by `make distclean'.
1147 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1149 * src/files.c, src/files.h:
1150 Defined locations of parser files in config.h instead of Makefile.
1152 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1154 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1155 Defined locations of parser files in config.h instead of Makefile.
1157 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1160 Removed inappropriate use of $< macro.
1162 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1164 * po/Makefile.in.in, po/POTFILES.in:
1165 Add `po' directory skeleton.
1167 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1169 * README: Document help-bison list.
1171 * configure.in: Add check for mkstemp().
1173 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1175 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1176 Hush a few compiler warnings.
1179 Add tryclose(), which verifies that fclose was successful.
1180 Hush a couple of compiler warnings.
1182 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1184 * Makefile.am, OChangeLog:
1185 ChangeLog is now automatically generated. Include the old version as
1188 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1190 * 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:
1193 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1195 * doc/bison.texinfo: Fix formatting glitch.
1197 * doc/bison.texinfo: Update FSF address.
1199 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1201 * acconfig.h: Update FSF address.
1203 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1206 Don't define PACKAGE here, since config.h defines it.
1208 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1210 * src/reader.c: Update copyright date.
1213 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1214 favor of output directly to stderr (avoids buffer overruns).
1216 * src/reader.c: Some checks for premature EOF.
1218 * 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:
1219 Use prototypes if the compiler understands them.
1221 * src/files.c: Honor TMPDIR on Unix hosts.
1222 Use prototypes if the compiler understands them.
1225 Fix a couple of buffer overrun bugs.
1226 Use prototypes if the compiler understands them.
1228 * src/system.h: Include unistd.h and ctype.h.
1229 Use #ifdef instead of #if for NLS symbols.
1231 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1233 * doc/bison.texinfo:
1234 Delete comment "consider using @set for edition number, etc..." since
1235 we now are doing so.
1237 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1240 Use prototypes if the compiler understands them.
1242 * NEWS: Document 1.26 highlights.
1244 * Makefile.am: Require Automake 1.3 or later.
1247 Use prototypes if the compiler understands them.
1249 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1252 Use VERSION symbol from automake for version number.
1254 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1256 * acconfig.h, configure.in, version.cin:
1257 Use VERSION symbol from automake for version number.
1259 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1262 Distribute original version of simple parser (bison.s1), not built
1263 version (bison.simple).
1265 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1267 * doc/bison.texinfo: Add info dir entry.
1269 * doc/bison.texinfo:
1270 Let automake put version number into documentation.
1272 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1274 * src/bison.cld, src/build.com, src/vmshlp.mar:
1275 Add non-RCS files from /gd/gnu/bison.
1277 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1280 Document the BISON_HAIRY and BISON_SIMPLE variables.
1282 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1284 * src/version.c: Build version.c automatically.
1287 Fix token numbering (used to start at 258, not 257).
1289 * src/system.h: Include config.h.
1291 * src/getargs.c: Update bug report address.
1293 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1294 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1296 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1299 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1301 * configure.in, version.cin:
1302 Build version.c automatically.
1304 * AUTHORS: Add AUTHORS file.
1306 * README: Update bug report address.
1309 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1311 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1314 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1316 * doc/bison.texinfo: Clean up some formatting.
1318 1998-05-05 Richard Stallman <rms@gnu.org>
1320 * doc/bison.texinfo:
1321 Explain better why to make a pure parser.
1323 1998-01-05 Richard Stallman <rms@gnu.org>
1325 * src/files.c (openfiles):
1326 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1327 find a temporary directory, if possible. Do not unlink files while
1330 1997-08-25 Richard Stallman <rms@gnu.org>
1332 * src/reader.c (stack_offset;):
1333 Change some warni to warns.
1335 * src/lex.c (literalchar): Use warns, not warni.
1337 1997-06-28 Richard Stallman <rms@gnu.org>
1339 * src/bison.s1: Add a Bison version comment.
1341 * src/main.c (fatal, warn, berror):
1344 1997-06-28 Richard Stallman <rms@gnu.org>
1346 * Makefile.in (bison_version): New variable.
1347 (dist): Use that variable.
1348 (bison.s1): Substitute the Bison version into bison.simple.
1350 * bison.simple: Add a Bison version comment.
1352 1997-06-18 Richard Stallman <rms@gnu.org>
1354 * src/main.c (fatal, warn, berror):
1355 Make error messages standard.
1356 (toomany): Improve error message text.
1358 * 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:
1359 new.h renamed to alloc.h.
1361 1997-06-18 Richard Stallman <rms@gnu.org>
1363 * Makefile.in: new.h renamed to alloc.h.
1365 1997-05-24 Richard Stallman <rms@gnu.org>
1367 * src/lex.c (literalchar):
1368 Fix the code for escaping \, " and '.
1370 (lex): Avoid trouble when there are many chars
1371 to discard in a char literal with just several chars in it.
1373 1997-05-17 Richard Stallman <rms@gnu.org>
1376 Use malloc, if using alloca is troublesome.
1377 (YYSTACK_USE_ALLOCA): New flag macro.
1378 Define it for some systems and compilers.
1379 (YYSTACK_ALLOC): New macro.
1380 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1381 If it was malloc'd, free it.
1383 1997-05-17 Richard Stallman <rms@gnu.org>
1386 Use malloc, if using alloca is troublesome.
1387 (YYSTACK_USE_ALLOCA): New flag macro.
1388 Define it for some systems and compilers.
1389 (YYSTACK_ALLOC): New macro.
1390 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1391 If it was malloc'd, free it.
1393 1997-04-23 Richard Stallman <rms@gnu.org>
1396 (alloca) [__hpux]: Always define as __builtin_alloca.
1398 1997-04-23 Richard Stallman <rms@gnu.org>
1401 (alloca) [__hpux]: Always define as __builtin_alloca.
1403 1997-04-22 Richard Stallman <rms@gnu.org>
1406 [__hpux]: Include alloca.h (right for HPUX 10)
1407 instead of declaring alloca (right for HPUX 9).
1409 * src/bison.s1 (__yy_memcpy):
1410 Declare arg `count' as unsigned int.
1411 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1413 1997-04-22 Richard Stallman <rms@gnu.org>
1416 [__hpux]: Include alloca.h (right for HPUX 10)
1417 instead of declaring alloca (right for HPUX 9).
1419 * bison.simple (__yy_memcpy):
1420 Declare arg `count' as unsigned int.
1421 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1423 1997-01-03 Richard Stallman <rms@gnu.org>
1425 * src/allocate.c: [__STDC__ or _MSC_VER]:
1426 Declare calloc and realloc to return void *.
1428 1997-01-02 Richard Stallman <rms@gnu.org>
1431 [_MSC_VER]: Include stdlib.h and process.h.
1432 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1434 * src/main.c (main): Return FAILURE as a value.
1435 (printable_version): Declare arg as int, not char.
1437 1997-01-02 Richard Stallman <rms@gnu.org>
1439 * Makefile.in (dist):
1440 Explicitly check for symlinks, and copy them.
1442 1996-12-19 Richard Stallman <rms@gnu.org>
1445 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1447 1996-12-18 Paul Eggert <eggert@gnu.org>
1449 * src/bison.s1 (yyparse):
1450 If __GNUC__ and YYPARSE_PARAM are both defined,
1451 declare yyparse to have a void * argument.
1453 1996-12-18 Paul Eggert <eggert@gnu.org>
1455 * bison.simple (yyparse):
1456 If __GNUC__ and YYPARSE_PARAM are both defined,
1457 declare yyparse to have a void * argument.
1459 1996-12-17 Richard Stallman <rms@gnu.org>
1461 * src/reduce.c (nbits): Add some casts.
1463 1996-08-12 Richard Stallman <rms@gnu.org>
1465 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1467 1996-08-12 Richard Stallman <rms@gnu.org>
1469 * bison.simple: Test _MSDOS as well as _MSDOS_.
1471 1996-07-31 Richard Stallman <rms@gnu.org>
1474 [__sun && __i386]: Include alloca.h.
1476 1996-07-31 Richard Stallman <rms@gnu.org>
1479 [__sun && __i386]: Include alloca.h.
1481 1996-07-30 Richard Stallman <rms@gnu.org>
1483 * src/bison.s1: Comment change.
1485 * src/bison.s1: Test _MSDOS_, not MSDOS.
1487 1996-07-30 Richard Stallman <rms@gnu.org>
1489 * bison.simple: Comment change.
1491 * bison.simple: Test _MSDOS_, not MSDOS.
1493 1996-06-01 Richard Stallman <rms@gnu.org>
1495 * 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:
1496 Insert `_' macro around many string constants.
1499 Insert `_' macro around many string constants.
1501 (main): Call setlocale, bindtextdomain and textdomain.
1503 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1504 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1505 [ENABLE_NLS]: Include libintl.h.
1506 [ENABLE_NLS] (gettext): Define.
1507 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1508 (N_, PACKAGE, LOCALEDIR): New macros.
1510 1996-06-01 Richard Stallman <rms@gnu.org>
1512 * POTFILES.in: New file.
1514 * Makefile.in (allocate.o):
1515 Define target explicitly.
1517 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1518 (LDFLAGS): Set to @LDFLAGS@.
1519 (configure): Run autoconf only if preceding `cd' succeeds.
1520 (bison.s1): Redirect output to temporary file then move the
1521 temporary to the target, rather than redirecting directly to bison.s1.
1522 (clean): Remove config.status and config.log.
1523 (distclean): Don't remove config.status here.
1525 1996-05-12 Richard Stallman <rms@gnu.org>
1528 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1530 1996-05-12 Richard Stallman <rms@gnu.org>
1533 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1535 1996-05-11 Richard Stallman <rms@gnu.org>
1537 * src/bison.s1 (__yy_memcpy):
1538 Really reorder the args, as was supposedly done on Feb 14 1995.
1539 (yyparse): Calls changed accordingly.
1541 1996-05-11 Richard Stallman <rms@gnu.org>
1543 * Makefile.in (dist): Don't use $(srcdir).
1545 * bison.simple (__yy_memcpy):
1546 Really reorder the args, as was supposedly done on Feb 14 1995.
1547 (yyparse): Calls changed accordingly.
1549 1996-01-27 Richard Stallman <rms@gnu.org>
1551 * src/output.c (output_rule_data):
1552 Test YYERROR_VERBOSE in the conditional
1553 around the definition of ttyname.
1555 1995-12-29 Richard Stallman <rms@gnu.org>
1558 Fix line numbers in #line commands.
1560 1995-12-29 Richard Stallman <rms@gnu.org>
1563 Fix line numbers in #line commands.
1565 1995-12-27 Richard Stallman <rms@gnu.org>
1567 * src/bison.s1 (YYPARSE_PARAM_DECL):
1568 In C++, make it always null.
1569 (YYPARSE_PARAM_ARG): New macro.
1570 (yyparse): Use YYPARSE_PARAM_ARG.
1572 1995-12-27 Richard Stallman <rms@gnu.org>
1574 * bison.simple (YYPARSE_PARAM_DECL):
1575 In C++, make it always null.
1576 (YYPARSE_PARAM_ARG): New macro.
1577 (yyparse): Use YYPARSE_PARAM_ARG.
1579 1995-11-29 Richard Stallman <rms@gnu.org>
1581 * doc/bison.texinfo:
1582 Describe literal string tokens, %raw, %no_lines, %token_table.
1584 1995-11-29 Daniel Hagerty <hag@gnu.org>
1586 * doc/bison.texinfo: Fixed update date
1588 1995-10-16 Richard Stallman <rms@gnu.org>
1590 * src/version.c: Version 1.25.
1592 1995-10-16 Richard Stallman <rms@gnu.org>
1594 * NEWS: *** empty log message ***
1596 1995-10-16 Richard Stallman <rms@gnu.org>
1598 * doc/bison.1, doc/bison.rnh:
1601 1995-10-15 Richard Stallman <rms@gnu.org>
1603 * src/vmsgetargs.c, src/getargs.c:
1604 Added -n, -k, and -raw switches.
1605 (noparserflag, toknumflag, rawtoknumflag): New variables.
1607 * src/symtab.h (SALIAS):
1608 New #define for adding aliases to %token.
1609 (struct bucket): Added `alias' field.
1611 * src/reduce.c (reduce_grammar):
1612 Revise error message.
1613 (print_notices): Remove final `.' from error message.
1615 * src/reader.c (reader_output_yylsp):
1617 (readgram): Use `#if 0' around code that accepted %command
1618 inside grammar rules: The documentation doesn't allow it,
1619 and it will fail since the %command processors scan for the next %.
1620 (parse_token_decl): Extended the %token
1621 declaration to allow a multi-character symbol as an alias.
1622 (parse_thong_decl): New function.
1623 (read_declarations): Added %thong declarations.
1624 (read_declarations): Handle NOOP to deal with allowing
1625 % declarations as another means to specify the flags.
1626 (readgram): Allow %prec prior to semantics embedded in a rule.
1627 (skip_to_char, read_declarations, copy_definition)
1628 (parse_token_decl, parse_start_decl, parse_type_decl)
1629 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1630 (get_type_name, copy_guard, copy_action, readgram)
1631 (get_type, packsymbols): Revised most error messages.
1632 Changed `fatal' to `warnxxx' to avoid aborting for error.
1633 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1634 (read_declarations): Improve the error message for
1635 an invalid character. Do not abort.
1636 (read_declarations, copy_guard, copy_action): Use
1637 printable_version to avoid unprintable characters in printed output.
1638 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1639 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1640 Allow the type of a non-terminal can be given
1641 more than once, as long as all specifications give the same type.
1644 (output_headers, output_trailers, output, output_gram)
1645 (output_rule_data): Implement noparserflag variable.
1646 Implement toknumflag variable.
1647 (output): Call reader_output_yylsp to output LTYPESTR.
1649 * src/main.c (main):
1650 If reader sees an error, don't process the grammar.
1651 (fatals): Updated to not use VARARGS1.
1652 (printable_version, int_to_string, warn, warni, warns, warnss)
1653 (warnsss): New error reporting functions. Avoid abort for error.
1656 Added THONG and NOOP for alias processing.
1657 Added SETOPT for the new code that allows setting options with %flags.
1660 Include getopt.h. Add some extern decls.
1661 (safegetc): New function to deal with EOF gracefully.
1662 (literalchar); new function to deal with reading \ escapes.
1663 (lex): Use literalchar.
1664 (lex): Implemented "..." tokens.
1665 (literalchar, lex, parse_percent_token): Made tokenbuffer
1666 always contain the token. This includes growing the token
1667 buffer while reading an integer.
1668 (parse_percent_token): Replaced if-else statement with percent_table.
1669 (parse_percent_token): Added % declarations as another
1670 way to specify the flags -n, -l, and -r. Also added hooks for
1671 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1672 major changes to files.c.
1673 (lex) Retain in the incoming stream a character following
1675 (skip_white_space, lex): Revised most error messages
1676 and changed fatal to warn to avoid aborting.
1677 (percent_table): Added %thong declarations.
1679 * src/gram.h: Comment changes.
1681 * src/files.c (openfiles, open_extra_files, done):
1683 and actfile file. Handle noparserflag. Both for -n switch.
1685 * src/conflicts.c (resolve_sr_conflict):
1686 Remove use of alloca.
1688 1995-06-01 Jim Meyering <meyering@gnu.org>
1690 * doc/bison.texinfo: *** empty log message ***
1692 1995-05-06 Richard Stallman <rms@gnu.org>
1694 * src/bison.s1: Comment change.
1696 1995-05-06 Richard Stallman <rms@gnu.org>
1698 * bison.simple: Comment change.
1700 1995-05-03 Richard Stallman <rms@gnu.org>
1702 * src/version.c: Version now 1.24.
1704 * src/bison.s1: Change distribution terms.
1706 * src/version.c: Version now 1.23.
1708 1995-05-03 Richard Stallman <rms@gnu.org>
1710 * doc/bison.texinfo:
1711 Rewrite "Conditions for Using Bison".
1712 Update version to 1.24.
1714 1995-05-03 Richard Stallman <rms@gnu.org>
1716 * bison.simple: Change distribution terms.
1718 1995-02-23 Richard Stallman <rms@gnu.org>
1720 * src/files.c: Test __VMS_POSIX as well as VMS.
1722 1995-02-14 Jim Meyering <meyering@gnu.org>
1724 * src/bison.s1 (__yy_memcpy):
1725 Renamed from __yy_bcopy to avoid
1726 confusion. Reverse FROM and TO arguments to be consistent with
1729 1995-02-14 Jim Meyering <meyering@gnu.org>
1731 * bison.simple (__yy_memcpy):
1732 Renamed from __yy_bcopy to avoid
1733 confusion. Reverse FROM and TO arguments to be consistent with
1736 1994-11-10 David J. MacKenzie <djm@gnu.org>
1742 * Makefile.in (DISTFILES): Include NEWS.
1744 * Makefile.in (DISTFILES):
1745 Include install-sh, not install.sh.
1747 * configure.in: Update to Autoconf v2 macro names.
1749 1994-10-05 David J. MacKenzie <djm@gnu.org>
1751 * Makefile.in: fix typo
1753 * Makefile.in (prefix, exec_prefix):
1754 Let configure set them.
1756 1994-09-28 David J. MacKenzie <djm@gnu.org>
1758 * Makefile.in: Set datadir to $(prefix)/share.
1760 1994-09-15 Richard Stallman <rms@gnu.org>
1763 Update copyright notice and GPL version.
1765 1994-09-15 Richard Stallman <rms@gnu.org>
1768 Update copyright notice and GPL version.
1770 1994-07-12 Richard Stallman <rms@gnu.org>
1772 * src/reduce.c, src/reader.c:
1775 1994-05-05 David J. MacKenzie <djm@gnu.org>
1777 * Makefile.in: entered into RCS
1779 1994-03-26 Richard Stallman <rms@gnu.org>
1781 * src/bison.s1: entered into RCS
1783 1994-03-26 Richard Stallman <rms@gnu.org>
1785 * bison.simple: entered into RCS
1787 1994-03-25 Richard Stallman <rms@gnu.org>
1789 * src/main.c: entered into RCS
1791 1994-03-24 Richard Stallman <rms@gnu.org>
1793 * src/conflicts.c: entered into RCS
1795 1994-01-02 Richard Stallman <rms@gnu.org>
1797 * Makefile.in: *** empty log message ***
1799 1993-11-21 Richard Stallman <rms@gnu.org>
1801 * src/bison.s1: *** empty log message ***
1803 1993-11-21 Richard Stallman <rms@gnu.org>
1805 * doc/bison.texinfo: entered into RCS
1807 * doc/bison.texinfo: *** empty log message ***
1809 1993-11-21 Richard Stallman <rms@gnu.org>
1811 * bison.simple: *** empty log message ***
1813 1993-10-25 David J. MacKenzie <djm@gnu.org>
1815 * doc/bison.texinfo: *** empty log message ***
1817 1993-10-19 Richard Stallman <rms@gnu.org>
1819 * src/bison.s1: *** empty log message ***
1821 1993-10-19 Richard Stallman <rms@gnu.org>
1823 * bison.simple: *** empty log message ***
1825 1993-10-14 Richard Stallman <rms@gnu.org>
1827 * src/bison.s1: *** empty log message ***
1829 1993-10-14 Richard Stallman <rms@gnu.org>
1831 * bison.simple: *** empty log message ***
1833 1993-09-14 David J. MacKenzie <djm@gnu.org>
1835 * doc/bison.texinfo: *** empty log message ***
1837 1993-09-13 Noah Friedman <friedman@gnu.org>
1839 * Makefile.in: *** empty log message ***
1841 1993-09-10 Richard Stallman <rms@gnu.org>
1843 * src/conflicts.c: *** empty log message ***
1845 * src/system.h: entered into RCS
1847 1993-09-10 Richard Stallman <rms@gnu.org>
1849 * doc/bison.1: entered into RCS
1851 1993-09-06 Noah Friedman <friedman@gnu.org>
1853 * src/version.c: entered into RCS
1855 1993-09-06 Noah Friedman <friedman@gnu.org>
1857 * Makefile.in: *** empty log message ***
1859 1993-07-30 David J. MacKenzie <djm@gnu.org>
1861 * Makefile.in: *** empty log message ***
1863 1993-07-24 Richard Stallman <rms@gnu.org>
1865 * src/bison.s1: *** empty log message ***
1867 1993-07-24 Richard Stallman <rms@gnu.org>
1869 * bison.simple: *** empty log message ***
1871 1993-07-08 David J. MacKenzie <djm@gnu.org>
1873 * Makefile.in: *** empty log message ***
1875 1993-07-04 Richard Stallman <rms@gnu.org>
1877 * src/bison.s1: *** empty log message ***
1879 1993-07-04 Richard Stallman <rms@gnu.org>
1881 * bison.simple: *** empty log message ***
1883 1993-06-26 David J. MacKenzie <djm@gnu.org>
1885 * src/getargs.c: entered into RCS
1887 1993-06-26 David J. MacKenzie <djm@gnu.org>
1889 * doc/bison.texinfo: *** empty log message ***
1891 * doc/bison.1: New file.
1893 1993-06-25 Richard Stallman <rms@gnu.org>
1895 * src/getargs.c: New file.
1897 1993-06-16 Richard Stallman <rms@gnu.org>
1899 * src/bison.s1: *** empty log message ***
1901 1993-06-16 Richard Stallman <rms@gnu.org>
1903 * bison.simple: *** empty log message ***
1905 1993-06-03 Richard Stallman <rms@gnu.org>
1907 * src/bison.s1: New file.
1909 1993-06-03 Richard Stallman <rms@gnu.org>
1911 * doc/bison.texinfo: *** empty log message ***
1913 1993-06-03 Richard Stallman <rms@gnu.org>
1915 * bison.simple: New file.
1917 1993-05-19 Richard Stallman <rms@gnu.org>
1919 * doc/bison.texinfo: New file.
1921 1993-05-07 Noah Friedman <friedman@gnu.org>
1923 * Makefile.in: *** empty log message ***
1925 1993-04-28 Noah Friedman <friedman@gnu.org>
1927 * src/reader.c: *** empty log message ***
1929 1993-04-23 Noah Friedman <friedman@gnu.org>
1931 * src/alloc.h: entered into RCS
1933 1993-04-20 David J. MacKenzie <djm@gnu.org>
1935 * src/version.c: *** empty log message ***
1937 * src/files.c, src/allocate.c:
1940 * src/reader.c: *** empty log message ***
1942 * src/lex.c: entered into RCS
1944 * src/conflicts.c: New file.
1946 * src/symtab.c: entered into RCS
1948 * src/alloc.h: New file.
1950 * src/LR0.c: entered into RCS
1952 1993-04-18 Noah Friedman <friedman@gnu.org>
1954 * src/reader.c: New file.
1956 * src/version.c: *** empty log message ***
1958 1993-04-18 Noah Friedman <friedman@gnu.org>
1960 * Makefile.in: *** empty log message ***
1962 1993-04-17 Noah Friedman <friedman@gnu.org>
1964 * Makefile.in: *** empty log message ***
1966 1993-04-15 Richard Stallman <rms@gnu.org>
1968 * src/main.c, src/files.c:
1971 1993-04-15 Noah Friedman <friedman@gnu.org>
1973 * configure.in: entered into RCS
1975 * configure.in: *** empty log message ***
1977 * configure.in: New file.
1979 1993-04-14 Richard Stallman <rms@gnu.org>
1981 * Makefile.in: New file.
1983 1993-04-13 Richard Stallman <rms@gnu.org>
1985 * src/version.c: New file.
1987 1993-03-25 Richard Stallman <rms@gnu.org>
1989 * src/output.c: entered into RCS
1991 1992-09-25 Richard Stallman <rms@gnu.org>
1993 * configure.bat: entered into RCS
1995 1992-06-22 Richard Stallman <rms@gnu.org>
1997 * src/vmsgetargs.c: entered into RCS
1999 1992-06-22 Richard Stallman <rms@gnu.org>
2001 * doc/bison.rnh: entered into RCS
2003 1992-04-20 David J. MacKenzie <djm@gnu.org>
2005 * README: entered into RCS
2007 1992-01-22 Richard Stallman <rms@gnu.org>
2009 * src/machine.h: entered into RCS
2011 1991-12-21 Richard Stallman <rms@gnu.org>
2013 * src/lalr.c, src/closure.c:
2016 1991-12-20 Richard Stallman <rms@gnu.org>
2018 * src/state.h: entered into RCS
2020 1991-12-18 Richard Stallman <rms@gnu.org>
2022 * src/print.c, src/nullable.c, src/derives.c:
2025 1991-11-03 David J. MacKenzie <djm@gnu.org>
2027 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2030 1988-09-09 Richard Stallman <rms@gnu.org>
2032 * src/bison.hairy: entered into RCS
2034 1987-12-16 Richard Stallman <rms@gnu.org>
2036 * REFERENCES: entered into RCS