1 2001-02-02 Akim Demaille <akim@epita.fr>
3 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
4 * lib/xalloc.h, lib/xmalloc.c@ Update.
6 2001-01-19 Akim Demaille <akim@epita.fr>
8 * src/conflicts.c (conflict_report): Report the difference with
9 expected number of s/r conflicts.
11 2001-01-19 Akim Demaille <akim@epita.fr>
13 Get rid of the ad hoc handling of token_buffer in the scanner: use
16 * src/lex.c (token_obstack): New.
17 (init_lex): Initialize it. No longer call...
18 (grow_token_buffer): this. Remove it.
19 Adjust all the places which used it to use the obstack.
21 2001-01-19 Akim Demaille <akim@epita.fr>
23 * src/lex.h: Rename all the tokens:
24 s/\bENDFILE\b/tok_eof/g;
25 s/\bIDENTIFIER\b/tok_identifier/g;
27 Let them be enums, not #define, to ease debugging.
30 2001-01-18 Akim Demaille <akim@epita.fr>
32 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
33 * src/lex.c (maxtoken, grow_token_buffer): Static.
35 2001-01-18 Akim Demaille <akim@epita.fr>
37 Since we now use obstacks, more % directives can be enabled.
39 * src/lex.c (percent_table): Also accept `%yacc',
40 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
42 Handle the actions for `%semantic_parser' and `%pure_parser' here,
43 instead of returning a token.
44 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
45 * src/reader.c (read_declarations): Adjust.
46 * src/files.c (open_files): Don't call `compute_base_names', don't
47 compute `attrsfile' since they depend upon data which might be
48 *in* the input file now.
49 (output_files): Do it here.
50 * src/output.c (output_headers): Document the fact that this patch
51 introduces a guaranteed SEGV for semantic parsers.
52 * doc/bison.texinfo: Document them.
53 * tests/suite.at: Exercise these %options.
55 2000-12-20 Akim Demaille <akim@epita.fr>
57 Also handle the output file (--verbose) with obstacks.
59 * files.c (foutput): Remove.
60 (output_obstack): New.
61 Adjust all dependencies.
62 * src/conflicts.c: Return a string.
63 * src/system.h (obstack_grow_string): Rename as...
64 (obstack_sgrow): this. Be ready to work with non literals.
65 (obstack_fgrow4): New.
67 2000-12-20 Akim Demaille <akim@epita.fr>
69 * src/files.c (open_files): Fix the computation of short_base_name
70 in the case of `-o foo.tab.c'.
72 2000-12-20 Akim Demaille <akim@epita.fr>
74 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
75 (copy_dollar): Now that everything uses obstacks, get rid of the
78 2000-12-20 Akim Demaille <akim@epita.fr>
80 * src/files.c (open_files): Actually the `.output' file is based
81 on the short_base_name, not base_name.
82 * tests/suite.at (Checking output file names): Adjust.
84 2000-12-20 Akim Demaille <akim@epita.fr>
86 * src/bison.s1: Remove, we now use directly...
87 * src/bison.simple: this.
88 * src/Makefile.am: Use pkgdata instead of data.
90 2000-12-20 Akim Demaille <akim@epita.fr>
92 * src/files.c (guard_obstack): New.
93 (open_files): Initialize it.
94 (output_files): Dump it...
95 * src/files.h: Export it.
96 * src/reader.c (copy_guard): Use it.
98 2000-12-19 Akim Demaille <akim@epita.fr>
100 * src/files.c (outfile, defsfile, actfile): Removed as global
102 (open_files): Don't compute them.
103 (output_files): Adjust.
104 (base_name, short_base_name): Be global.
107 2000-12-19 Akim Demaille <akim@epita.fr>
109 * src/files.c (strsuffix): New.
110 (stringappend): Be just like strcat but allocate.
111 (base_names): Eve out from open_files.
112 Try to simplify the rather hairy computation of base_name and
114 (open_files): Use it.
115 * tests/suite.at (Checking output file names): New test.
117 2000-12-19 Akim Demaille <akim@epita.fr>
119 * src/system.h (obstack_grow_literal_string): Rename as...
120 (obstack_grow_string): this.
121 * src/output.c (output_parser): Recognize `%% actions' instead of
123 * src/bison.s1: s/$/%% actions/.
124 * src/bison.hairy: Likewise.
126 2000-12-19 Akim Demaille <akim@epita.fr>
128 * src/output.c (output_parser): Compute the `#line' lines when
130 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
131 Suggested by Hans Aberg.
133 2000-12-19 Akim Demaille <akim@epita.fr>
135 Let the handling of the skeleton files be local to the procedures
138 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
140 (fparser, open_extra_files): Remove.
141 (open_files, output_files): Don't take care of fparser.
142 * src/files.h: Adjust.
143 * src/output.c (output_parser): Open and close the file to the
145 * src/reader.c (read_declarations): When %semantic_parser, open
148 2000-12-19 Akim Demaille <akim@epita.fr>
150 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
151 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
153 2000-12-19 Akim Demaille <akim@epita.fr>
155 * src/files.c (open_files): Yipee! We no longer need all the code
156 looking for `/tmp' since we have no tmp file.
158 2000-12-19 Akim Demaille <akim@epita.fr>
160 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
162 * src/files.c (open_files): Less dependency on MSDOS etc.
164 2000-12-14 Akim Demaille <akim@epita.fr>
166 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
167 Provide a default definition.
168 Use it when executing the default @ action.
169 * src/reader.c (reader_output_yylsp): No longer include
170 `timestamp' and `text' in the default YYLTYPE.
172 2000-12-12 Akim Demaille <akim@epita.fr>
174 * src/reader.c (copy_definition, parse_union_decl, copy_action)
175 (copy_guard): Quote the file names.
176 Reported by Laurent Mascherpa.
178 2000-12-12 Akim Demaille <akim@epita.fr>
180 * src/output.c (output_headers, output_program, output): Be sure
181 to escape special characters when outputting filenames.
182 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
183 (output_headers): Don't depend on them, Use ACTSTR.
185 2000-11-17 Akim Demaille <akim@epita.fr>
187 * lib/obstack.h: Formatting changes.
188 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
189 prevents type checking.
190 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
191 cast the value to (void *): assigning a `foo *' to a `void *'
193 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
194 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
197 2000-11-17 Akim Demaille <akim@epita.fr>
199 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
201 (suite.m4, regression.m4, calc.m4): these.
202 * tests/atgeneral.m4: Update from CVS Autoconf.
204 2000-11-17 Akim Demaille <akim@epita.fr>
206 * tests/regression.m4 (%union and --defines): New test,
207 demonstrating a current bug in the obstack implementation.
209 2000-11-17 Akim Demaille <akim@epita.fr>
211 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
213 Use them to declare the variables which are global or local to
216 2000-11-17 Akim Demaille <akim@epita.fr>
218 * acconfig.h: Remove, no longer used.
220 2000-11-07 Akim Demaille <akim@epita.fr>
222 * src: s/Copyright (C)/Copyright/g.
224 2000-11-07 Akim Demaille <akim@epita.fr>
226 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
228 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
230 2000-11-07 Akim Demaille <akim@epita.fr>
232 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
233 Merge in a single CPP if/else.
235 2000-11-07 Akim Demaille <akim@epita.fr>
237 * src/output.c (output): Remove useless variables.
238 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
239 argument `data' for consistency with the prototypes.
241 (obstack_copy, obstack_copy0): Rename the second argument as
242 `address' for consistency. Qualify it `const'.
243 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
244 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
245 `const' their input argument (`data' or `address').
246 Adjust the corresponding macros to include `const' in casts.
248 2000-11-03 Akim Demaille <akim@epita.fr>
250 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
251 s/PFILE1/BISON_HAIRY/.
254 2000-11-03 Akim Demaille <akim@epita.fr>
256 For some reason, this was not applied.
258 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
259 `unlink': it's no longer used.
261 2000-11-03 Akim Demaille <akim@epita.fr>
263 * src/files.c (skeleton_find): New function, eved out of...
264 (open_files, open_extra_files): here.
266 2000-11-03 Akim Demaille <akim@epita.fr>
270 * src/files.c (obstack_save): New function.
272 (output_files): this.
274 * src/main.c (main): Don't use `atexit' to register `done', since
275 it no longer has to remove tmp files, just call `output_files'
276 when there are no errors.
278 2000-11-02 Akim Demaille <akim@epita.fr>
280 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
281 `unlink': it's no longer used.
282 * src/files.h: Formatting changes.
284 2000-11-02 Akim Demaille <akim@epita.fr>
286 Remove the last uses of mktemp and unlink/delete.
288 * src/files.c (fdefines, ftable): Removed.
289 (defines_ostack, table_obstack): New.
290 Adjust dependencies of the former into uses of the latter.
291 * src/output.c (output_short_or_char_table, output_short_table):
292 Convert to using obstacks.
293 * src/reader.c (copy_comment2): Accept one FILE * and two
295 (output_token_defines, reader_output_yylsp): Use obstacks.
296 * src/system.h (obstack_fgrow3): New.
298 2000-11-01 Akim Demaille <akim@epita.fr>
300 Change each use of `fattrs' into a use of `attrs_obstack'.
302 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
303 * src/files.c (fattrs): Remove.
304 (attrs_obstack): New.
305 Adjust all dependencies.
306 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
308 2000-11-01 Akim Demaille <akim@epita.fr>
311 Change each use of `faction' into a use of `action_obstack'.
313 * lib/obstack.h, lib/obstack.c: New files.
314 * src/files.c (faction): Remove.
315 (action_obstack): New.
316 Adjust all dependencies.
318 2000-10-20 Akim Demaille <akim@epita.fr>
320 * lib/quote.h (PARAMS): New macro. Use it.
322 2000-10-16 Akim Demaille <akim@epita.fr>
324 * src/output.c (output_short_or_char_table): New function.
325 (output_short_table, output_token_translations): Use it.
326 (goto_actions): Use output_short_table.
328 2000-10-16 Akim Demaille <akim@epita.fr>
330 * src/symtab.c (bucket_new): New function.
333 * src/output.c (output_short_table): New argument to display the
334 comment associated with the table.
336 (output_gram): Use it.
337 (output_rule_data): Nicer output layout for YYTNAME.
339 2000-10-16 Akim Demaille <akim@epita.fr>
341 * src/lex.c (read_typename): New function.
343 * src/reader.c (copy_dollar): Likewise.
345 2000-10-16 Akim Demaille <akim@epita.fr>
347 * src/reader.c (copy_comment2): Expect the input stream to be on
348 the `/' which is suspected to open a comment, instead of being
349 called after `//' or `/*' was read.
350 (copy_comment, copy_definition, parse_union_decl, copy_action)
351 (copy_guard): Adjust.
353 2000-10-16 Akim Demaille <akim@epita.fr>
355 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
356 `read_signed_integer'.
358 2000-10-16 Akim Demaille <akim@epita.fr>
360 * src/reader.c (copy_dollar): New function.
361 (copy_guard, copy_action): Use it.
363 2000-10-16 Akim Demaille <akim@epita.fr>
365 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
366 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
367 New files, from Fileutils 4.0.27.
368 * src/main.c (printable_version): Remove.
369 * src/lex.c, src/reader.c: Use `quote'.
371 2000-10-04 Akim Demaille <akim@epita.fr>
373 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
375 2000-10-04 Akim Demaille <akim@epita.fr>
377 * doc/bison.texinfo: Various typos spotted by Neil Booth.
379 2000-10-04 Akim Demaille <akim@epita.fr>
381 When a literal string is used to define two different tokens,
382 `bison -v' segfaults.
383 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
385 * tests/regression.m4: New file.
386 Include the core of the sample provided by Piotr Gackiewicz.
387 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
390 2000-10-04 Akim Demaille <akim@epita.fr>
392 * src/reader.c (parse_expect_decl): Keep `count' within the size
396 2000-10-02 Paul Eggert <eggert@twinsun.com>
398 * bison.s1 (yyparse): Assign the default value
399 unconditionally, to avoid a GCC warning and make the parser a
402 2000-10-02 Akim Demaille <akim@epita.fr>
404 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
407 2000-10-02 Akim Demaille <akim@epita.fr>
409 * src/derives.c, src/print.c, src/reduce.c: To ease the
410 translation, move some `\n' out of the translated strings.
412 2000-10-02 Akim Demaille <akim@epita.fr>
414 The location tracking mechanism is precious for parse error
415 messages. Nevertheless, it is enabled only when `@n' is used in
416 the grammar, which is a different issue (you can use it in error
417 message, but not in the grammar per se). Therefore, there should
418 be another means to enable it.
420 * src/getargs.c (getargs): Support `--locations'.
422 * src/getargs.h (locationsflag): Export it.
423 * src/lex.c (percent_table): Support `%locations'.
424 * src/reader.c (yylsp_needed): Remove this variable, now replaced
425 with `locationsflag'.
426 * doc/bison.texinfo: Document `--locations' and `%locations'.
428 * tests/calc.m4: Test it.
430 For regularity of the names, replace each
431 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
432 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
433 In addition replace each `flag' with `_flag'.
435 2000-10-02 Akim Demaille <akim@epita.fr>
437 Also test parse error messages, including with YYERROR_VERBOSE.
439 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
441 Use it to check the computations.
442 Use it to check `nonassoc' is honored.
443 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
445 (_AT_CHECK_CALC): Adjust to this option.
446 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
448 2000-10-02 Akim Demaille <akim@epita.fr>
450 Test also `--verbose', `--defines' and `--name-prefix'. Testing
451 the latter demonstrates a flaw in the handling of non debugging
452 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
453 was used in order to simplify:
469 unfortunately this leads to a CPP conflict when
470 `--name-prefix=foo' is used since it produces `#define yydebug
473 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
474 (YYDPRINTF): New macro.
476 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
478 Also test `--verbose', `--defines' and `--name-prefix'.
480 2000-10-02 Akim Demaille <akim@epita.fr>
482 Improve the readability of the produced parsers.
484 * src/bison.s1: Formatting changes.
485 Improve the comment related to the `$' mark.
486 (yydefault): Don't fall through to `yyresume': `goto' there.
487 * src/output.c (output_parser): When the `$' is met, skip the end
489 New variable, `number_of_dollar_signs', to check there's exactly
490 one `$' in the parser skeleton.
492 2000-10-02 Akim Demaille <akim@epita.fr>
494 * lib/xstrdup.c: New file, from the fileutils.
495 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
496 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
497 instead of strlen + xmalloc + strcpy.
498 * src/symtab.c (copys): Remove, use xstrdup instead.
500 2000-10-02 Akim Demaille <akim@epita.fr>
502 * src/gram.h (associativity): New enum type which replaces the
503 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
504 `right_assoc', `left_assoc' and `non_assoc'.
505 Adjust all dependencies.
506 * src/reader.c: Formatting changes.
507 (LTYPESTR): Don't define it, use it as a literal in
508 `reader_output_yylsp'.
509 * src/symtab.h (symbol_class): New enum type which replaces the
510 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
511 `sunknown', `stoken and `snterm'.
513 2000-10-02 Akim Demaille <akim@epita.fr>
515 * src/getargs.c (fixed_outfiles): Rename as...
516 (yaccflag): for consistency and accuracy.
519 2000-10-02 Akim Demaille <akim@epita.fr>
521 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
522 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
523 difficult and introduced a lot of core dump. It turns out that
524 Bison used an implementation of `xmalloc' based on `calloc', and
525 at various places it does depend upon the initialization to 0. I
526 have not tried to isolate the pertinent places, and all the former
527 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
528 someone should address this issue.
530 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
531 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
534 * src/warshall.h: New file.
537 2000-10-02 Akim Demaille <akim@epita.fr>
539 Various anti-`extern in *.c' changes.
541 * src/system.h: Include `assert.h'.
543 2000-10-02 Akim Demaille <akim@epita.fr>
545 * src/state.h (nstates, final_state, first_state, first_shift)
546 (first_reduction): Move their exportation from here...
547 * src/LR0.h: to here.
549 * src/getargs.c (statisticsflag): New variable.
550 Add support for `--statistics'.
553 Remove a lot of now useless `extern' statements in most files.
555 2000-10-02 Akim Demaille <akim@epita.fr>
557 * src/LR0.h: New file.
560 2000-10-02 Akim Demaille <akim@epita.fr>
562 * src/print.h: New file.
564 * src/print.c: Formatting and ordering changes.
565 (verbose, terse): Replace with...
566 (print_results): this new function.
569 2000-10-02 Akim Demaille <akim@epita.fr>
571 * src/conflicts.c (conflict_report): New function.
572 (conflict_log, verbose_conflict_log): Replace with...
573 (print_conflicts): this function.
575 * src/conflicts.h: New file.
576 Propagate its inclusion.
578 2000-10-02 Akim Demaille <akim@epita.fr>
580 * src/nullable.h: New file.
581 Propagate its inclusion.
582 * src/nullable.c: Formatting changes.
584 2000-10-02 Akim Demaille <akim@epita.fr>
586 * src/reduce.h: New file.
587 Propagate its inclusion.
588 * src/reduce.c: Topological sort and other formatting changes.
589 (bool, TRUE, FALSE): Move their definition to...
590 * src/system.h: here.
592 2000-10-02 Akim Demaille <akim@epita.fr>
594 * src/files.c: Formatting changes.
595 (tryopen, tryclose, openfiles): Rename as...
596 (xfopen, xfclose, open_files): this.
597 (stringappend): static.
598 * src/files.h: Complete the list of exported symbols.
601 2000-10-02 Akim Demaille <akim@epita.fr>
603 * src/reader.h: New file.
604 Propagate its use instead of tedious list of `extern' and
606 * src/reader.c: Formatting changes, topological sort,
609 2000-10-02 Akim Demaille <akim@epita.fr>
611 * src/lex.h: Prototype `lex.c' exported functions.
612 * src/reader.c: Adjust.
613 * src/lex.c: Formatting changes.
614 (safegetc): Rename as...
617 2000-10-02 Akim Demaille <akim@epita.fr>
619 * src/lalr.h: New file.
620 Propagate its inclusion instead of prototypes and `extern'.
621 * src/lalr.c: Formatting changes, topological sorting etc.
623 2000-10-02 Akim Demaille <akim@epita.fr>
625 * src/output.c (token_actions): Introduce a temporary array,
626 YYDEFACT, that makes it possible for this function to use
629 2000-10-02 Akim Demaille <akim@epita.fr>
631 `user_toknums' is output as a `short[]' in `output.c', while it is
632 defined as a `int[]' in `reader.c'. For consistency with the
633 other output tables, `user_toknums' is now defined as a table of
636 * src/reader.c (user_toknums): Be a short table instead of an int
640 Factor the short table outputs.
642 * src/output.c (output_short_table): New function.
643 * src/output.c (output_gram, output_stos, output_rule_data)
644 (output_base, output_table, output_check): Use it.
646 2000-10-02 Akim Demaille <akim@epita.fr>
648 * src/output.c (output): Topological sort of the functions, in
649 order to get rid of the `static' prototypes.
650 No longer use `register'.
651 * src/output.h: New file.
652 Propagate its inclusion in files explicitly prototyping functions
655 2000-09-21 Akim Demaille <akim@epita.fr>
657 * src/atgeneral.m4: Update from Autoconf.
659 2000-09-21 Akim Demaille <akim@epita.fr>
661 * src/closure.h: New file.
662 * src/closure.c: Formatting changes, topological sort over the
663 functions, use of closure.h.
664 (initialize_closure, finalize_closure): Rename as...
665 (new_closure, free_closure): these. Adjust dependencies.
666 * src/LR0.c: Formatting changes, topological sort, use of
668 (initialize_states): Rename as...
670 * src/Makefile.am (noinst_HEADERS): Adjust.
672 2000-09-20 Akim Demaille <akim@epita.fr>
674 * src/acconfig.h: Don't protect config.h against multiple
677 * src/system.h: Define PARAMS.
678 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
679 purpose of config.h. system.h must not try to fix wrong
680 definitions in config.h.
682 2000-09-20 Akim Demaille <akim@epita.fr>
684 * src/derives.h: New file.
685 * src/main.c, src/derives.h: Use it.
687 * src/Makefile.am (noinst_HEADERS): Adjust.
689 2000-09-20 Akim Demaille <akim@epita.fr>
691 * tests/atgeneral.m4: Update from Autoconf.
692 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
693 (AT_CHECK_CALC): New macros.
694 Use these macros to test bison with options `', `--raw',
695 `--debug', `--yacc', `--yacc --debug'.
697 2000-09-19 Akim Demaille <akim@epita.fr>
699 * src/output.c: Formatting changes.
700 * src/machine.h: Remove, leaving its contents in...
701 * src/system.h: here.
703 Adjust all dependencies on stdio.h and machine.h.
704 * src/getargs.h: New file.
705 Let all `extern' declarations about getargs.c be replaced with
706 inclusion of `getargs.h'.
707 * src/Makefile.am (noinst_HEADERS): Adjust.
709 * tests/calc.m4 (yyin): Be initialized in main, not on the global
711 (yyerror): Returns void, not int.
712 * doc/bison.texinfo: Formatting changes.
714 2000-09-19 Akim Demaille <akim@epita.fr>
716 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
719 2000-09-18 Akim Demaille <akim@epita.fr>
721 * configure.in: Append WARNING_CFLAGS to CFLAGS.
722 * src/Makefile.am (INCLUDES): Don't.
723 Be ready to fetch headers in lib/.
725 2000-09-18 Akim Demaille <akim@epita.fr>
727 * doc/bison.texinfo: Update the copyright.
728 ANSIfy and GNUify the examples.
731 2000-09-18 Akim Demaille <akim@epita.fr>
733 First set of tests: use the `calc' example from the documentation.
735 * src/bison.s1 (yyparse): Condition the code using `yytname' which
736 is defined only when YYDEBUG is.
737 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
738 * src/files.c (tryopen, tryclose): Formatting changes.
739 Move to the top and be static.
740 * src/reader.c (read_signed_integer): Likewise.
741 * tests/calc.m4: New file.
742 * Makefile.am, suite.m4: Adjust.
743 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
745 2000-09-18 Akim Demaille <akim@epita.fr>
747 Add support for an Autotest test suite for Bison.
749 * m4/m4.m4, m4/atconfig.m4: New files.
750 * m4/Makefile.am (EXTRA_DIST): Adjust.
751 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
753 * src/getargs.c: Display a more standard --version message.
754 * src/reader.c (reader): Formatting changes.
755 No longer depend upon VERSION_STRING.
756 * configure.in: No longer use `dnl'.
757 Set up the test suite and the new directory `tests/.
758 (VERSION_STRING): Remove.
760 2000-04-14 Akim Demaille <akim@epita.fr>
762 * src/reader.c (copy_comment2): New function, same as former
763 `copy_comment', but outputs into two FILE *.
764 (copy_comment): Use it.
765 (parse_union_decl): Use it.
766 (get_type, parse_start_decl): Use the same `invalid' message.
767 (parse_start_decl, parse_union_decl): Use the same `multiple'
769 (parse_union_decl, copy_guard, copy_action): Use the same
771 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
773 2000-03-31 Akim Demaille <akim@epita.fr>
775 * src/files.c (tryopen, tryclose): Move to the top.
778 2000-03-31 Akim Demaille <akim@epita.fr>
780 * src/main.c (main): Don't call `done', exit does it.
782 2000-03-31 Akim Demaille <akim@epita.fr>
784 * allocate.c: s/return (foo)/return foo/.
787 * output.c: Likewise.
788 * reader.c: Likewise.
789 * symtab.c: Likewise.
790 * vmsgetargs.c: Likewise.
792 2000-03-31 Akim Demaille <akim@epita.fr>
794 Clean up the error reporting functions.
796 * src/report.c: New file.
797 * src/report.h: Likewise.
798 * src/Makefile.am: Adjust.
799 * m4/error.m4: New file.
800 * m4/Makefile.am: Adjust.
801 * configure.in (jm_PREREQ_ERROR): Call it.
802 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
804 (fatal, fatals): Remove. All callers use complain.c::fatal.
805 (warn, warni, warns, warnss, warnss): Remove. All callers use
806 complain.c::complain.
807 (toomany): Remove, use fatal instead.
808 * src/files.c (done): No argument, use complain_message_count.
809 * src/main.c (main): Register `done' to `atexit'.
811 * src/getargs.c (usage): More `fputs', less `fprintf'.
813 2000-03-28 Akim Demaille <akim@epita.fr>
815 * lib/: New directory.
816 * Makefile.am (SUBDIRS): Adjust.
817 * configure.in: Adjust.
818 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
820 * src/alloca.c: Moved to lib/.
821 * src/getopt.c: Likewise.
822 * src/getopt1.c: Likewise.
823 * src/getopt.h: Likewise.
824 * src/ansi2knr.c: Likewise.
825 * src/ansi2knr.1: Likewise.
826 * src/Makefile.am: Adjust.
827 * lib/Makefile.am: New file.
829 2000-03-28 Akim Demaille <akim@epita.fr>
831 * src/getargs.c (usage): Refresh the help message.
833 2000-03-17 Akim Demaille <akim@epita.fr>
835 * src/getopt1.c: Updated from textutils 2.0e
836 * src/getopt.c: Likewise.
837 * src/getopt.h: Likewise.
839 2000-03-17 Akim Demaille <akim@epita.fr>
841 * src/Makefile.am (bison.simple): Fix the awk program: quote only
842 the file name, not the whole `#line LINE FILE'.
844 2000-03-17 Akim Demaille <akim@epita.fr>
846 On syntax errors, report the token on which we choked.
848 * src/bison.s1 (yyparse): In the label yyerrlab, when
849 YYERROR_VERBOSE, add yychar in msg.
851 2000-03-17 Akim Demaille <akim@epita.fr>
853 * src/reader.c (copy_at): New function.
854 (copy_guard): Use it.
855 (copy_action): Use it.
857 2000-03-17 Akim Demaille <akim@epita.fr>
859 Be kind to translators, save some useless translations.
861 * src/main.c (banner): New function.
862 (fatal_banner): Use it.
863 (warn_banner): Use it.
865 2000-03-17 Akim Demaille <akim@epita.fr>
867 * src/reader.c (copy_definition): Use copy_string and
868 copy_comment. Removed now unused `match', `ended',
870 (copy_comment, copy_string): Moved, to be visible from
873 2000-03-17 Akim Demaille <akim@epita.fr>
875 * src/reader.c (copy_string): Declare `static inline'. No
876 problems with inline, since it is checked by configure.
877 (copy_comment): Likewise.
879 2000-03-17 Akim Demaille <akim@epita.fr>
881 * src/reader.c (packsymbols): Formatting changes.
883 2000-03-17 Akim Demaille <akim@epita.fr>
885 * src/reader.c (copy_comment): New function, factored out from:
886 (copy_action): Use it. Removed now unused `match', `ended',
888 (copy_guard): Likewise.
890 2000-03-17 Akim Demaille <akim@epita.fr>
892 * src/reader.c (copy_string): New function, factored out from:
893 (copy_action): Use it.
894 (copy_guard): Likewise.
896 2000-03-17 Akim Demaille <akim@epita.fr>
898 Change the handling of @s so that they behave exactly like $s.
899 There is now a pseudo variable @$ (readble and writable), location
900 of the lhs of the rule (by default ranging from the location of
901 the first symbol of the rhs, to the location of the last symbol,
902 or, if the rhs is empty, YYLLOC).
904 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
906 (yyparse): When providing a default semantic action, provide a
907 default location action.
908 (after the $): No longer change `*YYLSP', just stack YYLOC the
909 same way you stack YYVAL.
910 * src/reader.c (read_declarations): Use warns.
911 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
912 (copy_action, case '@'): Likewise.
913 Use a standard error message, to save useless work from
916 2000-03-17 Akim Demaille <akim@epita.fr>
918 * src/bison.s1: Formatting and cosmetics changes.
919 * src/reader.c: Likewise.
920 Update the Copyright notice.
922 2000-03-17 Akim Demaille <akim@epita.fr>
924 * src/bison.s1 (#line): All set to `#line' only, since the
925 Makefile now handles them.
927 2000-03-16 Akim Demaille <akim@epita.fr>
929 * src/output.c (output_rule_data): Output the documentation of
931 (Copyright notice): Update.
934 2000-03-16 Akim Demaille <akim@epita.fr>
936 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
937 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
938 One `#if YYDEBUG' remains, since it uses variables which are
939 defined only if `YYDEBUG != 0'.
941 2000-03-16 Akim Demaille <akim@epita.fr>
943 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
944 and related variables so that the similarities are highlighted.
946 2000-03-16 Akim Demaille <akim@epita.fr>
948 * src/bison.s1: Properly indent CPP directives.
950 2000-03-16 Akim Demaille <akim@epita.fr>
952 * src/bison.s1: Properly indent the `alloca' CPP section.
954 2000-03-16 Akim Demaille <akim@epita.fr>
956 Do not hard code values of directories in `configure.in'.
957 Update the `configure' tool chain.
959 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
961 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
962 (AC_OUTPUT): Add m4/Makefile.
963 Bump to bison 1.28a, 1.29 has never been released.
964 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
965 handled via src/Makefile.am.
966 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
967 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
969 * Makefile.am (SUBDIRS): Add m4.
970 (ACLOCAL_AM_FLAGS): New variable.
971 (AUTOMAKE_OPTIONS): Add check-news.
972 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
973 the proper line number and file name.
974 (DEFS): Propagate the location of bison library files and of the
976 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
978 * acinclude.m4: Remove, replaced by the directory m4.
979 * m4/Makefile.am (EXTRA_DIST): New variable.
980 * m4/gettext.m4: New file, from the fileutils.
981 * m4/lcmessage.m4: Likewise
982 * m4/progtest.m4: Likewise.
983 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
985 2000-03-10 Akim Demaille <akim@epita.fr>
988 Formatting changes of various comments.
989 Respect the GNU coding standards at various places.
990 Don't use `_()' when no translation is needed.
992 1999-12-13 Jesse Thilo <jthilo@gnu.org>
995 OS/2 honors TMPDIR environment variable.
997 1999-12-13 Jesse Thilo <jthilo@gnu.org>
999 * doc/bison.texinfo: Tweaked spelling and grammar.
1001 Removed reference to price of printed copy.
1002 Mention BISON_SIMPLE and BISON_HAIRY.
1004 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1006 * configure.in, NEWS:
1007 Bison 1.29 released.
1009 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1011 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1012 Added reference card.
1014 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1016 * po/ru.po: Added Russian translation.
1018 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1020 * configure.in: Added Russian translation.
1022 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1024 * configure.in, NEWS, README:
1025 Released version 1.28.
1027 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1030 Squashed redefinition warning on some systems.
1032 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1033 Have configure build version string instead of relying on ANSI string
1036 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1038 * po/POTFILES.in: Got rid of version.c.
1040 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1042 * acconfig.h, configure.in:
1043 Have configure build version string instead of relying on ANSI string
1046 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1049 Dropped mention of `+' for long-named options.
1051 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1053 * src/files.c: Added <unistd.h> for unlink().
1055 * src/Makefile.am, src/system.h:
1058 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1060 * README: Added a FAQ list.
1062 * configure.in, acconfig.h:
1065 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1067 * doc/FAQ, doc/Makefile.am:
1070 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1072 * src/alloc.h, src/symtab.h, src/version.c:
1073 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1075 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1077 * src/.cvsignore, src/Makefile.am:
1078 Reorganized: sources in `src', documentation in `doc'.
1080 * src/lex.c (literalchar):
1081 fixed the code for escaping double quotes (thanks
1084 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1086 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1087 Adjusted paths to reflect directory reorganization.
1089 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1091 * doc/.cvsignore, doc/Makefile.am:
1092 Reorganized: sources in `src', documentation in `doc'.
1094 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1097 Updated AC_INIT file to reflect directory reorganization.
1099 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1100 Reorganized: sources in `src', documentation in `doc'.
1102 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1105 Don't declare calloc() and realloc() if not necessary.
1107 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1109 * configure.in, acconfig.h, acinclude.m4:
1110 Don't declare calloc() and realloc() if not necessary.
1112 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1114 * po/.cvsignore: Added i18n support.
1116 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1118 * acconfig.h, configure.in, Makefile.am:
1121 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1123 * src/bison.s1: Fixed #line numbers.
1125 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1127 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1128 Added PO files from Translation Project.
1130 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1133 Added support for non-ANSI compilers (ansi2knr).
1135 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1137 * configure.in: Bumped version number to 1.27.
1140 Added `bison.simple' to list of files removed by `make distclean'.
1142 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1144 * src/files.c, src/files.h:
1145 Defined locations of parser files in config.h instead of Makefile.
1147 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1149 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1150 Defined locations of parser files in config.h instead of Makefile.
1152 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1155 Removed inappropriate use of $< macro.
1157 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1159 * po/Makefile.in.in, po/POTFILES.in:
1160 Add `po' directory skeleton.
1162 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1164 * README: Document help-bison list.
1166 * configure.in: Add check for mkstemp().
1168 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1170 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1171 Hush a few compiler warnings.
1174 Add tryclose(), which verifies that fclose was successful.
1175 Hush a couple of compiler warnings.
1177 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1179 * Makefile.am, OChangeLog:
1180 ChangeLog is now automatically generated. Include the old version as
1183 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1185 * 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:
1188 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1190 * doc/bison.texinfo: Fix formatting glitch.
1192 * doc/bison.texinfo: Update FSF address.
1194 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1196 * acconfig.h: Update FSF address.
1198 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1201 Don't define PACKAGE here, since config.h defines it.
1203 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1205 * src/reader.c: Update copyright date.
1208 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1209 favor of output directly to stderr (avoids buffer overruns).
1211 * src/reader.c: Some checks for premature EOF.
1213 * 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:
1214 Use prototypes if the compiler understands them.
1216 * src/files.c: Honor TMPDIR on Unix hosts.
1217 Use prototypes if the compiler understands them.
1220 Fix a couple of buffer overrun bugs.
1221 Use prototypes if the compiler understands them.
1223 * src/system.h: Include unistd.h and ctype.h.
1224 Use #ifdef instead of #if for NLS symbols.
1226 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1228 * doc/bison.texinfo:
1229 Delete comment "consider using @set for edition number, etc..." since
1230 we now are doing so.
1232 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1235 Use prototypes if the compiler understands them.
1237 * NEWS: Document 1.26 highlights.
1239 * Makefile.am: Require Automake 1.3 or later.
1242 Use prototypes if the compiler understands them.
1244 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1247 Use VERSION symbol from automake for version number.
1249 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1251 * acconfig.h, configure.in, version.cin:
1252 Use VERSION symbol from automake for version number.
1254 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1257 Distribute original version of simple parser (bison.s1), not built
1258 version (bison.simple).
1260 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1262 * doc/bison.texinfo: Add info dir entry.
1264 * doc/bison.texinfo:
1265 Let automake put version number into documentation.
1267 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1269 * src/bison.cld, src/build.com, src/vmshlp.mar:
1270 Add non-RCS files from /gd/gnu/bison.
1272 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1275 Document the BISON_HAIRY and BISON_SIMPLE variables.
1277 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1279 * src/version.c: Build version.c automatically.
1282 Fix token numbering (used to start at 258, not 257).
1284 * src/system.h: Include config.h.
1286 * src/getargs.c: Update bug report address.
1288 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1289 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1291 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1294 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1296 * configure.in, version.cin:
1297 Build version.c automatically.
1299 * AUTHORS: Add AUTHORS file.
1301 * README: Update bug report address.
1304 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1306 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1309 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1311 * doc/bison.texinfo: Clean up some formatting.
1313 1998-05-05 Richard Stallman <rms@gnu.org>
1315 * doc/bison.texinfo:
1316 Explain better why to make a pure parser.
1318 1998-01-05 Richard Stallman <rms@gnu.org>
1320 * src/files.c (openfiles):
1321 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1322 find a temporary directory, if possible. Do not unlink files while
1325 1997-08-25 Richard Stallman <rms@gnu.org>
1327 * src/reader.c (stack_offset;):
1328 Change some warni to warns.
1330 * src/lex.c (literalchar): Use warns, not warni.
1332 1997-06-28 Richard Stallman <rms@gnu.org>
1334 * src/bison.s1: Add a Bison version comment.
1336 * src/main.c (fatal, warn, berror):
1339 1997-06-28 Richard Stallman <rms@gnu.org>
1341 * Makefile.in (bison_version): New variable.
1342 (dist): Use that variable.
1343 (bison.s1): Substitute the Bison version into bison.simple.
1345 * bison.simple: Add a Bison version comment.
1347 1997-06-18 Richard Stallman <rms@gnu.org>
1349 * src/main.c (fatal, warn, berror):
1350 Make error messages standard.
1351 (toomany): Improve error message text.
1353 * 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:
1354 new.h renamed to alloc.h.
1356 1997-06-18 Richard Stallman <rms@gnu.org>
1358 * Makefile.in: new.h renamed to alloc.h.
1360 1997-05-24 Richard Stallman <rms@gnu.org>
1362 * src/lex.c (literalchar):
1363 Fix the code for escaping \, " and '.
1365 (lex): Avoid trouble when there are many chars
1366 to discard in a char literal with just several chars in it.
1368 1997-05-17 Richard Stallman <rms@gnu.org>
1371 Use malloc, if using alloca is troublesome.
1372 (YYSTACK_USE_ALLOCA): New flag macro.
1373 Define it for some systems and compilers.
1374 (YYSTACK_ALLOC): New macro.
1375 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1376 If it was malloc'd, free it.
1378 1997-05-17 Richard Stallman <rms@gnu.org>
1381 Use malloc, if using alloca is troublesome.
1382 (YYSTACK_USE_ALLOCA): New flag macro.
1383 Define it for some systems and compilers.
1384 (YYSTACK_ALLOC): New macro.
1385 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1386 If it was malloc'd, free it.
1388 1997-04-23 Richard Stallman <rms@gnu.org>
1391 (alloca) [__hpux]: Always define as __builtin_alloca.
1393 1997-04-23 Richard Stallman <rms@gnu.org>
1396 (alloca) [__hpux]: Always define as __builtin_alloca.
1398 1997-04-22 Richard Stallman <rms@gnu.org>
1401 [__hpux]: Include alloca.h (right for HPUX 10)
1402 instead of declaring alloca (right for HPUX 9).
1404 * src/bison.s1 (__yy_memcpy):
1405 Declare arg `count' as unsigned int.
1406 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1408 1997-04-22 Richard Stallman <rms@gnu.org>
1411 [__hpux]: Include alloca.h (right for HPUX 10)
1412 instead of declaring alloca (right for HPUX 9).
1414 * bison.simple (__yy_memcpy):
1415 Declare arg `count' as unsigned int.
1416 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1418 1997-01-03 Richard Stallman <rms@gnu.org>
1420 * src/allocate.c: [__STDC__ or _MSC_VER]:
1421 Declare calloc and realloc to return void *.
1423 1997-01-02 Richard Stallman <rms@gnu.org>
1426 [_MSC_VER]: Include stdlib.h and process.h.
1427 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1429 * src/main.c (main): Return FAILURE as a value.
1430 (printable_version): Declare arg as int, not char.
1432 1997-01-02 Richard Stallman <rms@gnu.org>
1434 * Makefile.in (dist):
1435 Explicitly check for symlinks, and copy them.
1437 1996-12-19 Richard Stallman <rms@gnu.org>
1440 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1442 1996-12-18 Paul Eggert <eggert@gnu.org>
1444 * src/bison.s1 (yyparse):
1445 If __GNUC__ and YYPARSE_PARAM are both defined,
1446 declare yyparse to have a void * argument.
1448 1996-12-18 Paul Eggert <eggert@gnu.org>
1450 * bison.simple (yyparse):
1451 If __GNUC__ and YYPARSE_PARAM are both defined,
1452 declare yyparse to have a void * argument.
1454 1996-12-17 Richard Stallman <rms@gnu.org>
1456 * src/reduce.c (nbits): Add some casts.
1458 1996-08-12 Richard Stallman <rms@gnu.org>
1460 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1462 1996-08-12 Richard Stallman <rms@gnu.org>
1464 * bison.simple: Test _MSDOS as well as _MSDOS_.
1466 1996-07-31 Richard Stallman <rms@gnu.org>
1469 [__sun && __i386]: Include alloca.h.
1471 1996-07-31 Richard Stallman <rms@gnu.org>
1474 [__sun && __i386]: Include alloca.h.
1476 1996-07-30 Richard Stallman <rms@gnu.org>
1478 * src/bison.s1: Comment change.
1480 * src/bison.s1: Test _MSDOS_, not MSDOS.
1482 1996-07-30 Richard Stallman <rms@gnu.org>
1484 * bison.simple: Comment change.
1486 * bison.simple: Test _MSDOS_, not MSDOS.
1488 1996-06-01 Richard Stallman <rms@gnu.org>
1490 * 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:
1491 Insert `_' macro around many string constants.
1494 Insert `_' macro around many string constants.
1496 (main): Call setlocale, bindtextdomain and textdomain.
1498 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1499 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1500 [ENABLE_NLS]: Include libintl.h.
1501 [ENABLE_NLS] (gettext): Define.
1502 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1503 (N_, PACKAGE, LOCALEDIR): New macros.
1505 1996-06-01 Richard Stallman <rms@gnu.org>
1507 * POTFILES.in: New file.
1509 * Makefile.in (allocate.o):
1510 Define target explicitly.
1512 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1513 (LDFLAGS): Set to @LDFLAGS@.
1514 (configure): Run autoconf only if preceding `cd' succeeds.
1515 (bison.s1): Redirect output to temporary file then move the
1516 temporary to the target, rather than redirecting directly to bison.s1.
1517 (clean): Remove config.status and config.log.
1518 (distclean): Don't remove config.status here.
1520 1996-05-12 Richard Stallman <rms@gnu.org>
1523 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1525 1996-05-12 Richard Stallman <rms@gnu.org>
1528 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1530 1996-05-11 Richard Stallman <rms@gnu.org>
1532 * src/bison.s1 (__yy_memcpy):
1533 Really reorder the args, as was supposedly done on Feb 14 1995.
1534 (yyparse): Calls changed accordingly.
1536 1996-05-11 Richard Stallman <rms@gnu.org>
1538 * Makefile.in (dist): Don't use $(srcdir).
1540 * bison.simple (__yy_memcpy):
1541 Really reorder the args, as was supposedly done on Feb 14 1995.
1542 (yyparse): Calls changed accordingly.
1544 1996-01-27 Richard Stallman <rms@gnu.org>
1546 * src/output.c (output_rule_data):
1547 Test YYERROR_VERBOSE in the conditional
1548 around the definition of ttyname.
1550 1995-12-29 Richard Stallman <rms@gnu.org>
1553 Fix line numbers in #line commands.
1555 1995-12-29 Richard Stallman <rms@gnu.org>
1558 Fix line numbers in #line commands.
1560 1995-12-27 Richard Stallman <rms@gnu.org>
1562 * src/bison.s1 (YYPARSE_PARAM_DECL):
1563 In C++, make it always null.
1564 (YYPARSE_PARAM_ARG): New macro.
1565 (yyparse): Use YYPARSE_PARAM_ARG.
1567 1995-12-27 Richard Stallman <rms@gnu.org>
1569 * bison.simple (YYPARSE_PARAM_DECL):
1570 In C++, make it always null.
1571 (YYPARSE_PARAM_ARG): New macro.
1572 (yyparse): Use YYPARSE_PARAM_ARG.
1574 1995-11-29 Richard Stallman <rms@gnu.org>
1576 * doc/bison.texinfo:
1577 Describe literal string tokens, %raw, %no_lines, %token_table.
1579 1995-11-29 Daniel Hagerty <hag@gnu.org>
1581 * doc/bison.texinfo: Fixed update date
1583 1995-10-16 Richard Stallman <rms@gnu.org>
1585 * src/version.c: Version 1.25.
1587 1995-10-16 Richard Stallman <rms@gnu.org>
1589 * NEWS: *** empty log message ***
1591 1995-10-16 Richard Stallman <rms@gnu.org>
1593 * doc/bison.1, doc/bison.rnh:
1596 1995-10-15 Richard Stallman <rms@gnu.org>
1598 * src/vmsgetargs.c, src/getargs.c:
1599 Added -n, -k, and -raw switches.
1600 (noparserflag, toknumflag, rawtoknumflag): New variables.
1602 * src/symtab.h (SALIAS):
1603 New #define for adding aliases to %token.
1604 (struct bucket): Added `alias' field.
1606 * src/reduce.c (reduce_grammar):
1607 Revise error message.
1608 (print_notices): Remove final `.' from error message.
1610 * src/reader.c (reader_output_yylsp):
1612 (readgram): Use `#if 0' around code that accepted %command
1613 inside grammar rules: The documentation doesn't allow it,
1614 and it will fail since the %command processors scan for the next %.
1615 (parse_token_decl): Extended the %token
1616 declaration to allow a multi-character symbol as an alias.
1617 (parse_thong_decl): New function.
1618 (read_declarations): Added %thong declarations.
1619 (read_declarations): Handle NOOP to deal with allowing
1620 % declarations as another means to specify the flags.
1621 (readgram): Allow %prec prior to semantics embedded in a rule.
1622 (skip_to_char, read_declarations, copy_definition)
1623 (parse_token_decl, parse_start_decl, parse_type_decl)
1624 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1625 (get_type_name, copy_guard, copy_action, readgram)
1626 (get_type, packsymbols): Revised most error messages.
1627 Changed `fatal' to `warnxxx' to avoid aborting for error.
1628 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1629 (read_declarations): Improve the error message for
1630 an invalid character. Do not abort.
1631 (read_declarations, copy_guard, copy_action): Use
1632 printable_version to avoid unprintable characters in printed output.
1633 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1634 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1635 Allow the type of a non-terminal can be given
1636 more than once, as long as all specifications give the same type.
1639 (output_headers, output_trailers, output, output_gram)
1640 (output_rule_data): Implement noparserflag variable.
1641 Implement toknumflag variable.
1642 (output): Call reader_output_yylsp to output LTYPESTR.
1644 * src/main.c (main):
1645 If reader sees an error, don't process the grammar.
1646 (fatals): Updated to not use VARARGS1.
1647 (printable_version, int_to_string, warn, warni, warns, warnss)
1648 (warnsss): New error reporting functions. Avoid abort for error.
1651 Added THONG and NOOP for alias processing.
1652 Added SETOPT for the new code that allows setting options with %flags.
1655 Include getopt.h. Add some extern decls.
1656 (safegetc): New function to deal with EOF gracefully.
1657 (literalchar); new function to deal with reading \ escapes.
1658 (lex): Use literalchar.
1659 (lex): Implemented "..." tokens.
1660 (literalchar, lex, parse_percent_token): Made tokenbuffer
1661 always contain the token. This includes growing the token
1662 buffer while reading an integer.
1663 (parse_percent_token): Replaced if-else statement with percent_table.
1664 (parse_percent_token): Added % declarations as another
1665 way to specify the flags -n, -l, and -r. Also added hooks for
1666 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1667 major changes to files.c.
1668 (lex) Retain in the incoming stream a character following
1670 (skip_white_space, lex): Revised most error messages
1671 and changed fatal to warn to avoid aborting.
1672 (percent_table): Added %thong declarations.
1674 * src/gram.h: Comment changes.
1676 * src/files.c (openfiles, open_extra_files, done):
1678 and actfile file. Handle noparserflag. Both for -n switch.
1680 * src/conflicts.c (resolve_sr_conflict):
1681 Remove use of alloca.
1683 1995-06-01 Jim Meyering <meyering@gnu.org>
1685 * doc/bison.texinfo: *** empty log message ***
1687 1995-05-06 Richard Stallman <rms@gnu.org>
1689 * src/bison.s1: Comment change.
1691 1995-05-06 Richard Stallman <rms@gnu.org>
1693 * bison.simple: Comment change.
1695 1995-05-03 Richard Stallman <rms@gnu.org>
1697 * src/version.c: Version now 1.24.
1699 * src/bison.s1: Change distribution terms.
1701 * src/version.c: Version now 1.23.
1703 1995-05-03 Richard Stallman <rms@gnu.org>
1705 * doc/bison.texinfo:
1706 Rewrite "Conditions for Using Bison".
1707 Update version to 1.24.
1709 1995-05-03 Richard Stallman <rms@gnu.org>
1711 * bison.simple: Change distribution terms.
1713 1995-02-23 Richard Stallman <rms@gnu.org>
1715 * src/files.c: Test __VMS_POSIX as well as VMS.
1717 1995-02-14 Jim Meyering <meyering@gnu.org>
1719 * src/bison.s1 (__yy_memcpy):
1720 Renamed from __yy_bcopy to avoid
1721 confusion. Reverse FROM and TO arguments to be consistent with
1724 1995-02-14 Jim Meyering <meyering@gnu.org>
1726 * bison.simple (__yy_memcpy):
1727 Renamed from __yy_bcopy to avoid
1728 confusion. Reverse FROM and TO arguments to be consistent with
1731 1994-11-10 David J. MacKenzie <djm@gnu.org>
1737 * Makefile.in (DISTFILES): Include NEWS.
1739 * Makefile.in (DISTFILES):
1740 Include install-sh, not install.sh.
1742 * configure.in: Update to Autoconf v2 macro names.
1744 1994-10-05 David J. MacKenzie <djm@gnu.org>
1746 * Makefile.in: fix typo
1748 * Makefile.in (prefix, exec_prefix):
1749 Let configure set them.
1751 1994-09-28 David J. MacKenzie <djm@gnu.org>
1753 * Makefile.in: Set datadir to $(prefix)/share.
1755 1994-09-15 Richard Stallman <rms@gnu.org>
1758 Update copyright notice and GPL version.
1760 1994-09-15 Richard Stallman <rms@gnu.org>
1763 Update copyright notice and GPL version.
1765 1994-07-12 Richard Stallman <rms@gnu.org>
1767 * src/reduce.c, src/reader.c:
1770 1994-05-05 David J. MacKenzie <djm@gnu.org>
1772 * Makefile.in: entered into RCS
1774 1994-03-26 Richard Stallman <rms@gnu.org>
1776 * src/bison.s1: entered into RCS
1778 1994-03-26 Richard Stallman <rms@gnu.org>
1780 * bison.simple: entered into RCS
1782 1994-03-25 Richard Stallman <rms@gnu.org>
1784 * src/main.c: entered into RCS
1786 1994-03-24 Richard Stallman <rms@gnu.org>
1788 * src/conflicts.c: entered into RCS
1790 1994-01-02 Richard Stallman <rms@gnu.org>
1792 * Makefile.in: *** empty log message ***
1794 1993-11-21 Richard Stallman <rms@gnu.org>
1796 * src/bison.s1: *** empty log message ***
1798 1993-11-21 Richard Stallman <rms@gnu.org>
1800 * doc/bison.texinfo: entered into RCS
1802 * doc/bison.texinfo: *** empty log message ***
1804 1993-11-21 Richard Stallman <rms@gnu.org>
1806 * bison.simple: *** empty log message ***
1808 1993-10-25 David J. MacKenzie <djm@gnu.org>
1810 * doc/bison.texinfo: *** empty log message ***
1812 1993-10-19 Richard Stallman <rms@gnu.org>
1814 * src/bison.s1: *** empty log message ***
1816 1993-10-19 Richard Stallman <rms@gnu.org>
1818 * bison.simple: *** empty log message ***
1820 1993-10-14 Richard Stallman <rms@gnu.org>
1822 * src/bison.s1: *** empty log message ***
1824 1993-10-14 Richard Stallman <rms@gnu.org>
1826 * bison.simple: *** empty log message ***
1828 1993-09-14 David J. MacKenzie <djm@gnu.org>
1830 * doc/bison.texinfo: *** empty log message ***
1832 1993-09-13 Noah Friedman <friedman@gnu.org>
1834 * Makefile.in: *** empty log message ***
1836 1993-09-10 Richard Stallman <rms@gnu.org>
1838 * src/conflicts.c: *** empty log message ***
1840 * src/system.h: entered into RCS
1842 1993-09-10 Richard Stallman <rms@gnu.org>
1844 * doc/bison.1: entered into RCS
1846 1993-09-06 Noah Friedman <friedman@gnu.org>
1848 * src/version.c: entered into RCS
1850 1993-09-06 Noah Friedman <friedman@gnu.org>
1852 * Makefile.in: *** empty log message ***
1854 1993-07-30 David J. MacKenzie <djm@gnu.org>
1856 * Makefile.in: *** empty log message ***
1858 1993-07-24 Richard Stallman <rms@gnu.org>
1860 * src/bison.s1: *** empty log message ***
1862 1993-07-24 Richard Stallman <rms@gnu.org>
1864 * bison.simple: *** empty log message ***
1866 1993-07-08 David J. MacKenzie <djm@gnu.org>
1868 * Makefile.in: *** empty log message ***
1870 1993-07-04 Richard Stallman <rms@gnu.org>
1872 * src/bison.s1: *** empty log message ***
1874 1993-07-04 Richard Stallman <rms@gnu.org>
1876 * bison.simple: *** empty log message ***
1878 1993-06-26 David J. MacKenzie <djm@gnu.org>
1880 * src/getargs.c: entered into RCS
1882 1993-06-26 David J. MacKenzie <djm@gnu.org>
1884 * doc/bison.texinfo: *** empty log message ***
1886 * doc/bison.1: New file.
1888 1993-06-25 Richard Stallman <rms@gnu.org>
1890 * src/getargs.c: New file.
1892 1993-06-16 Richard Stallman <rms@gnu.org>
1894 * src/bison.s1: *** empty log message ***
1896 1993-06-16 Richard Stallman <rms@gnu.org>
1898 * bison.simple: *** empty log message ***
1900 1993-06-03 Richard Stallman <rms@gnu.org>
1902 * src/bison.s1: New file.
1904 1993-06-03 Richard Stallman <rms@gnu.org>
1906 * doc/bison.texinfo: *** empty log message ***
1908 1993-06-03 Richard Stallman <rms@gnu.org>
1910 * bison.simple: New file.
1912 1993-05-19 Richard Stallman <rms@gnu.org>
1914 * doc/bison.texinfo: New file.
1916 1993-05-07 Noah Friedman <friedman@gnu.org>
1918 * Makefile.in: *** empty log message ***
1920 1993-04-28 Noah Friedman <friedman@gnu.org>
1922 * src/reader.c: *** empty log message ***
1924 1993-04-23 Noah Friedman <friedman@gnu.org>
1926 * src/alloc.h: entered into RCS
1928 1993-04-20 David J. MacKenzie <djm@gnu.org>
1930 * src/version.c: *** empty log message ***
1932 * src/files.c, src/allocate.c:
1935 * src/reader.c: *** empty log message ***
1937 * src/lex.c: entered into RCS
1939 * src/conflicts.c: New file.
1941 * src/symtab.c: entered into RCS
1943 * src/alloc.h: New file.
1945 * src/LR0.c: entered into RCS
1947 1993-04-18 Noah Friedman <friedman@gnu.org>
1949 * src/reader.c: New file.
1951 * src/version.c: *** empty log message ***
1953 1993-04-18 Noah Friedman <friedman@gnu.org>
1955 * Makefile.in: *** empty log message ***
1957 1993-04-17 Noah Friedman <friedman@gnu.org>
1959 * Makefile.in: *** empty log message ***
1961 1993-04-15 Richard Stallman <rms@gnu.org>
1963 * src/main.c, src/files.c:
1966 1993-04-15 Noah Friedman <friedman@gnu.org>
1968 * configure.in: entered into RCS
1970 * configure.in: *** empty log message ***
1972 * configure.in: New file.
1974 1993-04-14 Richard Stallman <rms@gnu.org>
1976 * Makefile.in: New file.
1978 1993-04-13 Richard Stallman <rms@gnu.org>
1980 * src/version.c: New file.
1982 1993-03-25 Richard Stallman <rms@gnu.org>
1984 * src/output.c: entered into RCS
1986 1992-09-25 Richard Stallman <rms@gnu.org>
1988 * configure.bat: entered into RCS
1990 1992-06-22 Richard Stallman <rms@gnu.org>
1992 * src/vmsgetargs.c: entered into RCS
1994 1992-06-22 Richard Stallman <rms@gnu.org>
1996 * doc/bison.rnh: entered into RCS
1998 1992-04-20 David J. MacKenzie <djm@gnu.org>
2000 * README: entered into RCS
2002 1992-01-22 Richard Stallman <rms@gnu.org>
2004 * src/machine.h: entered into RCS
2006 1991-12-21 Richard Stallman <rms@gnu.org>
2008 * src/lalr.c, src/closure.c:
2011 1991-12-20 Richard Stallman <rms@gnu.org>
2013 * src/state.h: entered into RCS
2015 1991-12-18 Richard Stallman <rms@gnu.org>
2017 * src/print.c, src/nullable.c, src/derives.c:
2020 1991-11-03 David J. MacKenzie <djm@gnu.org>
2022 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2025 1988-09-09 Richard Stallman <rms@gnu.org>
2027 * src/bison.hairy: entered into RCS
2029 1987-12-16 Richard Stallman <rms@gnu.org>
2031 * REFERENCES: entered into RCS