1 2001-01-19 Akim Demaille <akim@epita.fr>
3 * src/lex.h: Rename all the tokens:
4 s/\bENDFILE\b/tok_eof/g;
5 s/\bIDENTIFIER\b/tok_identifier/g;
7 Let them be enums, not #define, to ease debugging.
10 2001-01-18 Akim Demaille <akim@epita.fr>
12 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
13 * src/lex.c (maxtoken, grow_token_buffer): Static.
15 2001-01-18 Akim Demaille <akim@epita.fr>
17 Since we now use obstacks, more % directives can be enabled.
19 * src/lex.c (percent_table): Also accept `%yacc',
20 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
22 Handle the actions for `%semantic_parser' and `%pure_parser' here,
23 instead of returning a token.
24 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
25 * src/reader.c (read_declarations): Adjust.
26 * src/files.c (open_files): Don't call `compute_base_names', don't
27 compute `attrsfile' since they depend upon data which might be
28 *in* the input file now.
29 (output_files): Do it here.
30 * src/output.c (output_headers): Document the fact that this patch
31 introduces a guaranteed SEGV for semantic parsers.
32 * doc/bison.texinfo: Document them.
33 * tests/suite.at: Exercise these %options.
35 2000-12-20 Akim Demaille <akim@epita.fr>
37 Also handle the output file (--verbose) with obstacks.
39 * files.c (foutput): Remove.
40 (output_obstack): New.
41 Adjust all dependencies.
42 * src/conflicts.c: Return a string.
43 * src/system.h (obstack_grow_string): Rename as...
44 (obstack_sgrow): this. Be ready to work with non literals.
45 (obstack_fgrow4): New.
47 2000-12-20 Akim Demaille <akim@epita.fr>
49 * src/files.c (open_files): Fix the computation of short_base_name
50 in the case of `-o foo.tab.c'.
52 2000-12-20 Akim Demaille <akim@epita.fr>
54 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
55 (copy_dollar): Now that everything uses obstacks, get rid of the
58 2000-12-20 Akim Demaille <akim@epita.fr>
60 * src/files.c (open_files): Actually the `.output' file is based
61 on the short_base_name, not base_name.
62 * tests/suite.at (Checking output file names): Adjust.
64 2000-12-20 Akim Demaille <akim@epita.fr>
66 * src/bison.s1: Remove, we now use directly...
67 * src/bison.simple: this.
68 * src/Makefile.am: Use pkgdata instead of data.
70 2000-12-20 Akim Demaille <akim@epita.fr>
72 * src/files.c (guard_obstack): New.
73 (open_files): Initialize it.
74 (output_files): Dump it...
75 * src/files.h: Export it.
76 * src/reader.c (copy_guard): Use it.
78 2000-12-19 Akim Demaille <akim@epita.fr>
80 * src/files.c (outfile, defsfile, actfile): Removed as global
82 (open_files): Don't compute them.
83 (output_files): Adjust.
84 (base_name, short_base_name): Be global.
87 2000-12-19 Akim Demaille <akim@epita.fr>
89 * src/files.c (strsuffix): New.
90 (stringappend): Be just like strcat but allocate.
91 (base_names): Eve out from open_files.
92 Try to simplify the rather hairy computation of base_name and
95 * tests/suite.at (Checking output file names): New test.
97 2000-12-19 Akim Demaille <akim@epita.fr>
99 * src/system.h (obstack_grow_literal_string): Rename as...
100 (obstack_grow_string): this.
101 * src/output.c (output_parser): Recognize `%% actions' instead of
103 * src/bison.s1: s/$/%% actions/.
104 * src/bison.hairy: Likewise.
106 2000-12-19 Akim Demaille <akim@epita.fr>
108 * src/output.c (output_parser): Compute the `#line' lines when
110 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
111 Suggested by Hans Aberg.
113 2000-12-19 Akim Demaille <akim@epita.fr>
115 Let the handling of the skeleton files be local to the procedures
118 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
120 (fparser, open_extra_files): Remove.
121 (open_files, output_files): Don't take care of fparser.
122 * src/files.h: Adjust.
123 * src/output.c (output_parser): Open and close the file to the
125 * src/reader.c (read_declarations): When %semantic_parser, open
128 2000-12-19 Akim Demaille <akim@epita.fr>
130 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
131 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
133 2000-12-19 Akim Demaille <akim@epita.fr>
135 * src/files.c (open_files): Yipee! We no longer need all the code
136 looking for `/tmp' since we have no tmp file.
138 2000-12-19 Akim Demaille <akim@epita.fr>
140 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
142 * src/files.c (open_files): Less dependency on MSDOS etc.
144 2000-12-14 Akim Demaille <akim@epita.fr>
146 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
147 Provide a default definition.
148 Use it when executing the default @ action.
149 * src/reader.c (reader_output_yylsp): No longer include
150 `timestamp' and `text' in the default YYLTYPE.
152 2000-12-12 Akim Demaille <akim@epita.fr>
154 * src/reader.c (copy_definition, parse_union_decl, copy_action)
155 (copy_guard): Quote the file names.
156 Reported by Laurent Mascherpa.
158 2000-12-12 Akim Demaille <akim@epita.fr>
160 * src/output.c (output_headers, output_program, output): Be sure
161 to escape special characters when outputting filenames.
162 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
163 (output_headers): Don't depend on them, Use ACTSTR.
165 2000-11-17 Akim Demaille <akim@epita.fr>
167 * lib/obstack.h: Formatting changes.
168 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
169 prevents type checking.
170 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
171 cast the value to (void *): assigning a `foo *' to a `void *'
173 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
174 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
177 2000-11-17 Akim Demaille <akim@epita.fr>
179 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
181 (suite.m4, regression.m4, calc.m4): these.
182 * tests/atgeneral.m4: Update from CVS Autoconf.
184 2000-11-17 Akim Demaille <akim@epita.fr>
186 * tests/regression.m4 (%union and --defines): New test,
187 demonstrating a current bug in the obstack implementation.
189 2000-11-17 Akim Demaille <akim@epita.fr>
191 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
193 Use them to declare the variables which are global or local to
196 2000-11-17 Akim Demaille <akim@epita.fr>
198 * acconfig.h: Remove, no longer used.
200 2000-11-07 Akim Demaille <akim@epita.fr>
202 * src: s/Copyright (C)/Copyright/g.
204 2000-11-07 Akim Demaille <akim@epita.fr>
206 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
208 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
210 2000-11-07 Akim Demaille <akim@epita.fr>
212 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
213 Merge in a single CPP if/else.
215 2000-11-07 Akim Demaille <akim@epita.fr>
217 * src/output.c (output): Remove useless variables.
218 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
219 argument `data' for consistency with the prototypes.
221 (obstack_copy, obstack_copy0): Rename the second argument as
222 `address' for consistency. Qualify it `const'.
223 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
224 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
225 `const' their input argument (`data' or `address').
226 Adjust the corresponding macros to include `const' in casts.
228 2000-11-03 Akim Demaille <akim@epita.fr>
230 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
231 s/PFILE1/BISON_HAIRY/.
234 2000-11-03 Akim Demaille <akim@epita.fr>
236 For some reason, this was not applied.
238 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
239 `unlink': it's no longer used.
241 2000-11-03 Akim Demaille <akim@epita.fr>
243 * src/files.c (skeleton_find): New function, eved out of...
244 (open_files, open_extra_files): here.
246 2000-11-03 Akim Demaille <akim@epita.fr>
250 * src/files.c (obstack_save): New function.
252 (output_files): this.
254 * src/main.c (main): Don't use `atexit' to register `done', since
255 it no longer has to remove tmp files, just call `output_files'
256 when there are no errors.
258 2000-11-02 Akim Demaille <akim@epita.fr>
260 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
261 `unlink': it's no longer used.
262 * src/files.h: Formatting changes.
264 2000-11-02 Akim Demaille <akim@epita.fr>
266 Remove the last uses of mktemp and unlink/delete.
268 * src/files.c (fdefines, ftable): Removed.
269 (defines_ostack, table_obstack): New.
270 Adjust dependencies of the former into uses of the latter.
271 * src/output.c (output_short_or_char_table, output_short_table):
272 Convert to using obstacks.
273 * src/reader.c (copy_comment2): Accept one FILE * and two
275 (output_token_defines, reader_output_yylsp): Use obstacks.
276 * src/system.h (obstack_fgrow3): New.
278 2000-11-01 Akim Demaille <akim@epita.fr>
280 Change each use of `fattrs' into a use of `attrs_obstack'.
282 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
283 * src/files.c (fattrs): Remove.
284 (attrs_obstack): New.
285 Adjust all dependencies.
286 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
288 2000-11-01 Akim Demaille <akim@epita.fr>
291 Change each use of `faction' into a use of `action_obstack'.
293 * lib/obstack.h, lib/obstack.c: New files.
294 * src/files.c (faction): Remove.
295 (action_obstack): New.
296 Adjust all dependencies.
298 2000-10-20 Akim Demaille <akim@epita.fr>
300 * lib/quote.h (PARAMS): New macro. Use it.
302 2000-10-16 Akim Demaille <akim@epita.fr>
304 * src/output.c (output_short_or_char_table): New function.
305 (output_short_table, output_token_translations): Use it.
306 (goto_actions): Use output_short_table.
308 2000-10-16 Akim Demaille <akim@epita.fr>
310 * src/symtab.c (bucket_new): New function.
313 * src/output.c (output_short_table): New argument to display the
314 comment associated with the table.
316 (output_gram): Use it.
317 (output_rule_data): Nicer output layout for YYTNAME.
319 2000-10-16 Akim Demaille <akim@epita.fr>
321 * src/lex.c (read_typename): New function.
323 * src/reader.c (copy_dollar): Likewise.
325 2000-10-16 Akim Demaille <akim@epita.fr>
327 * src/reader.c (copy_comment2): Expect the input stream to be on
328 the `/' which is suspected to open a comment, instead of being
329 called after `//' or `/*' was read.
330 (copy_comment, copy_definition, parse_union_decl, copy_action)
331 (copy_guard): Adjust.
333 2000-10-16 Akim Demaille <akim@epita.fr>
335 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
336 `read_signed_integer'.
338 2000-10-16 Akim Demaille <akim@epita.fr>
340 * src/reader.c (copy_dollar): New function.
341 (copy_guard, copy_action): Use it.
343 2000-10-16 Akim Demaille <akim@epita.fr>
345 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
346 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
347 New files, from Fileutils 4.0.27.
348 * src/main.c (printable_version): Remove.
349 * src/lex.c, src/reader.c: Use `quote'.
351 2000-10-04 Akim Demaille <akim@epita.fr>
353 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
355 2000-10-04 Akim Demaille <akim@epita.fr>
357 * doc/bison.texinfo: Various typos spotted by Neil Booth.
359 2000-10-04 Akim Demaille <akim@epita.fr>
361 When a literal string is used to define two different tokens,
362 `bison -v' segfaults.
363 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
365 * tests/regression.m4: New file.
366 Include the core of the sample provided by Piotr Gackiewicz.
367 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
370 2000-10-04 Akim Demaille <akim@epita.fr>
372 * src/reader.c (parse_expect_decl): Keep `count' within the size
376 2000-10-02 Paul Eggert <eggert@twinsun.com>
378 * bison.s1 (yyparse): Assign the default value
379 unconditionally, to avoid a GCC warning and make the parser a
382 2000-10-02 Akim Demaille <akim@epita.fr>
384 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
387 2000-10-02 Akim Demaille <akim@epita.fr>
389 * src/derives.c, src/print.c, src/reduce.c: To ease the
390 translation, move some `\n' out of the translated strings.
392 2000-10-02 Akim Demaille <akim@epita.fr>
394 The location tracking mechanism is precious for parse error
395 messages. Nevertheless, it is enabled only when `@n' is used in
396 the grammar, which is a different issue (you can use it in error
397 message, but not in the grammar per se). Therefore, there should
398 be another means to enable it.
400 * src/getargs.c (getargs): Support `--locations'.
402 * src/getargs.h (locationsflag): Export it.
403 * src/lex.c (percent_table): Support `%locations'.
404 * src/reader.c (yylsp_needed): Remove this variable, now replaced
405 with `locationsflag'.
406 * doc/bison.texinfo: Document `--locations' and `%locations'.
408 * tests/calc.m4: Test it.
410 For regularity of the names, replace each
411 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
412 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
413 In addition replace each `flag' with `_flag'.
415 2000-10-02 Akim Demaille <akim@epita.fr>
417 Also test parse error messages, including with YYERROR_VERBOSE.
419 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
421 Use it to check the computations.
422 Use it to check `nonassoc' is honored.
423 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
425 (_AT_CHECK_CALC): Adjust to this option.
426 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
428 2000-10-02 Akim Demaille <akim@epita.fr>
430 Test also `--verbose', `--defines' and `--name-prefix'. Testing
431 the latter demonstrates a flaw in the handling of non debugging
432 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
433 was used in order to simplify:
449 unfortunately this leads to a CPP conflict when
450 `--name-prefix=foo' is used since it produces `#define yydebug
453 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
454 (YYDPRINTF): New macro.
456 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
458 Also test `--verbose', `--defines' and `--name-prefix'.
460 2000-10-02 Akim Demaille <akim@epita.fr>
462 Improve the readability of the produced parsers.
464 * src/bison.s1: Formatting changes.
465 Improve the comment related to the `$' mark.
466 (yydefault): Don't fall through to `yyresume': `goto' there.
467 * src/output.c (output_parser): When the `$' is met, skip the end
469 New variable, `number_of_dollar_signs', to check there's exactly
470 one `$' in the parser skeleton.
472 2000-10-02 Akim Demaille <akim@epita.fr>
474 * lib/xstrdup.c: New file, from the fileutils.
475 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
476 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
477 instead of strlen + xmalloc + strcpy.
478 * src/symtab.c (copys): Remove, use xstrdup instead.
480 2000-10-02 Akim Demaille <akim@epita.fr>
482 * src/gram.h (associativity): New enum type which replaces the
483 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
484 `right_assoc', `left_assoc' and `non_assoc'.
485 Adjust all dependencies.
486 * src/reader.c: Formatting changes.
487 (LTYPESTR): Don't define it, use it as a literal in
488 `reader_output_yylsp'.
489 * src/symtab.h (symbol_class): New enum type which replaces the
490 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
491 `sunknown', `stoken and `snterm'.
493 2000-10-02 Akim Demaille <akim@epita.fr>
495 * src/getargs.c (fixed_outfiles): Rename as...
496 (yaccflag): for consistency and accuracy.
499 2000-10-02 Akim Demaille <akim@epita.fr>
501 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
502 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
503 difficult and introduced a lot of core dump. It turns out that
504 Bison used an implementation of `xmalloc' based on `calloc', and
505 at various places it does depend upon the initialization to 0. I
506 have not tried to isolate the pertinent places, and all the former
507 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
508 someone should address this issue.
510 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
511 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
514 * src/warshall.h: New file.
517 2000-10-02 Akim Demaille <akim@epita.fr>
519 Various anti-`extern in *.c' changes.
521 * src/system.h: Include `assert.h'.
523 2000-10-02 Akim Demaille <akim@epita.fr>
525 * src/state.h (nstates, final_state, first_state, first_shift)
526 (first_reduction): Move their exportation from here...
527 * src/LR0.h: to here.
529 * src/getargs.c (statisticsflag): New variable.
530 Add support for `--statistics'.
533 Remove a lot of now useless `extern' statements in most files.
535 2000-10-02 Akim Demaille <akim@epita.fr>
537 * src/LR0.h: New file.
540 2000-10-02 Akim Demaille <akim@epita.fr>
542 * src/print.h: New file.
544 * src/print.c: Formatting and ordering changes.
545 (verbose, terse): Replace with...
546 (print_results): this new function.
549 2000-10-02 Akim Demaille <akim@epita.fr>
551 * src/conflicts.c (conflict_report): New function.
552 (conflict_log, verbose_conflict_log): Replace with...
553 (print_conflicts): this function.
555 * src/conflicts.h: New file.
556 Propagate its inclusion.
558 2000-10-02 Akim Demaille <akim@epita.fr>
560 * src/nullable.h: New file.
561 Propagate its inclusion.
562 * src/nullable.c: Formatting changes.
564 2000-10-02 Akim Demaille <akim@epita.fr>
566 * src/reduce.h: New file.
567 Propagate its inclusion.
568 * src/reduce.c: Topological sort and other formatting changes.
569 (bool, TRUE, FALSE): Move their definition to...
570 * src/system.h: here.
572 2000-10-02 Akim Demaille <akim@epita.fr>
574 * src/files.c: Formatting changes.
575 (tryopen, tryclose, openfiles): Rename as...
576 (xfopen, xfclose, open_files): this.
577 (stringappend): static.
578 * src/files.h: Complete the list of exported symbols.
581 2000-10-02 Akim Demaille <akim@epita.fr>
583 * src/reader.h: New file.
584 Propagate its use instead of tedious list of `extern' and
586 * src/reader.c: Formatting changes, topological sort,
589 2000-10-02 Akim Demaille <akim@epita.fr>
591 * src/lex.h: Prototype `lex.c' exported functions.
592 * src/reader.c: Adjust.
593 * src/lex.c: Formatting changes.
594 (safegetc): Rename as...
597 2000-10-02 Akim Demaille <akim@epita.fr>
599 * src/lalr.h: New file.
600 Propagate its inclusion instead of prototypes and `extern'.
601 * src/lalr.c: Formatting changes, topological sorting etc.
603 2000-10-02 Akim Demaille <akim@epita.fr>
605 * src/output.c (token_actions): Introduce a temporary array,
606 YYDEFACT, that makes it possible for this function to use
609 2000-10-02 Akim Demaille <akim@epita.fr>
611 `user_toknums' is output as a `short[]' in `output.c', while it is
612 defined as a `int[]' in `reader.c'. For consistency with the
613 other output tables, `user_toknums' is now defined as a table of
616 * src/reader.c (user_toknums): Be a short table instead of an int
620 Factor the short table outputs.
622 * src/output.c (output_short_table): New function.
623 * src/output.c (output_gram, output_stos, output_rule_data)
624 (output_base, output_table, output_check): Use it.
626 2000-10-02 Akim Demaille <akim@epita.fr>
628 * src/output.c (output): Topological sort of the functions, in
629 order to get rid of the `static' prototypes.
630 No longer use `register'.
631 * src/output.h: New file.
632 Propagate its inclusion in files explicitly prototyping functions
635 2000-09-21 Akim Demaille <akim@epita.fr>
637 * src/atgeneral.m4: Update from Autoconf.
639 2000-09-21 Akim Demaille <akim@epita.fr>
641 * src/closure.h: New file.
642 * src/closure.c: Formatting changes, topological sort over the
643 functions, use of closure.h.
644 (initialize_closure, finalize_closure): Rename as...
645 (new_closure, free_closure): these. Adjust dependencies.
646 * src/LR0.c: Formatting changes, topological sort, use of
648 (initialize_states): Rename as...
650 * src/Makefile.am (noinst_HEADERS): Adjust.
652 2000-09-20 Akim Demaille <akim@epita.fr>
654 * src/acconfig.h: Don't protect config.h against multiple
657 * src/system.h: Define PARAMS.
658 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
659 purpose of config.h. system.h must not try to fix wrong
660 definitions in config.h.
662 2000-09-20 Akim Demaille <akim@epita.fr>
664 * src/derives.h: New file.
665 * src/main.c, src/derives.h: Use it.
667 * src/Makefile.am (noinst_HEADERS): Adjust.
669 2000-09-20 Akim Demaille <akim@epita.fr>
671 * tests/atgeneral.m4: Update from Autoconf.
672 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
673 (AT_CHECK_CALC): New macros.
674 Use these macros to test bison with options `', `--raw',
675 `--debug', `--yacc', `--yacc --debug'.
677 2000-09-19 Akim Demaille <akim@epita.fr>
679 * src/output.c: Formatting changes.
680 * src/machine.h: Remove, leaving its contents in...
681 * src/system.h: here.
683 Adjust all dependencies on stdio.h and machine.h.
684 * src/getargs.h: New file.
685 Let all `extern' declarations about getargs.c be replaced with
686 inclusion of `getargs.h'.
687 * src/Makefile.am (noinst_HEADERS): Adjust.
689 * tests/calc.m4 (yyin): Be initialized in main, not on the global
691 (yyerror): Returns void, not int.
692 * doc/bison.texinfo: Formatting changes.
694 2000-09-19 Akim Demaille <akim@epita.fr>
696 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
699 2000-09-18 Akim Demaille <akim@epita.fr>
701 * configure.in: Append WARNING_CFLAGS to CFLAGS.
702 * src/Makefile.am (INCLUDES): Don't.
703 Be ready to fetch headers in lib/.
705 2000-09-18 Akim Demaille <akim@epita.fr>
707 * doc/bison.texinfo: Update the copyright.
708 ANSIfy and GNUify the examples.
711 2000-09-18 Akim Demaille <akim@epita.fr>
713 First set of tests: use the `calc' example from the documentation.
715 * src/bison.s1 (yyparse): Condition the code using `yytname' which
716 is defined only when YYDEBUG is.
717 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
718 * src/files.c (tryopen, tryclose): Formatting changes.
719 Move to the top and be static.
720 * src/reader.c (read_signed_integer): Likewise.
721 * tests/calc.m4: New file.
722 * Makefile.am, suite.m4: Adjust.
723 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
725 2000-09-18 Akim Demaille <akim@epita.fr>
727 Add support for an Autotest test suite for Bison.
729 * m4/m4.m4, m4/atconfig.m4: New files.
730 * m4/Makefile.am (EXTRA_DIST): Adjust.
731 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
733 * src/getargs.c: Display a more standard --version message.
734 * src/reader.c (reader): Formatting changes.
735 No longer depend upon VERSION_STRING.
736 * configure.in: No longer use `dnl'.
737 Set up the test suite and the new directory `tests/.
738 (VERSION_STRING): Remove.
740 2000-04-14 Akim Demaille <akim@epita.fr>
742 * src/reader.c (copy_comment2): New function, same as former
743 `copy_comment', but outputs into two FILE *.
744 (copy_comment): Use it.
745 (parse_union_decl): Use it.
746 (get_type, parse_start_decl): Use the same `invalid' message.
747 (parse_start_decl, parse_union_decl): Use the same `multiple'
749 (parse_union_decl, copy_guard, copy_action): Use the same
751 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
753 2000-03-31 Akim Demaille <akim@epita.fr>
755 * src/files.c (tryopen, tryclose): Move to the top.
758 2000-03-31 Akim Demaille <akim@epita.fr>
760 * src/main.c (main): Don't call `done', exit does it.
762 2000-03-31 Akim Demaille <akim@epita.fr>
764 * allocate.c: s/return (foo)/return foo/.
767 * output.c: Likewise.
768 * reader.c: Likewise.
769 * symtab.c: Likewise.
770 * vmsgetargs.c: Likewise.
772 2000-03-31 Akim Demaille <akim@epita.fr>
774 Clean up the error reporting functions.
776 * src/report.c: New file.
777 * src/report.h: Likewise.
778 * src/Makefile.am: Adjust.
779 * m4/error.m4: New file.
780 * m4/Makefile.am: Adjust.
781 * configure.in (jm_PREREQ_ERROR): Call it.
782 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
784 (fatal, fatals): Remove. All callers use complain.c::fatal.
785 (warn, warni, warns, warnss, warnss): Remove. All callers use
786 complain.c::complain.
787 (toomany): Remove, use fatal instead.
788 * src/files.c (done): No argument, use complain_message_count.
789 * src/main.c (main): Register `done' to `atexit'.
791 * src/getargs.c (usage): More `fputs', less `fprintf'.
793 2000-03-28 Akim Demaille <akim@epita.fr>
795 * lib/: New directory.
796 * Makefile.am (SUBDIRS): Adjust.
797 * configure.in: Adjust.
798 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
800 * src/alloca.c: Moved to lib/.
801 * src/getopt.c: Likewise.
802 * src/getopt1.c: Likewise.
803 * src/getopt.h: Likewise.
804 * src/ansi2knr.c: Likewise.
805 * src/ansi2knr.1: Likewise.
806 * src/Makefile.am: Adjust.
807 * lib/Makefile.am: New file.
809 2000-03-28 Akim Demaille <akim@epita.fr>
811 * src/getargs.c (usage): Refresh the help message.
813 2000-03-17 Akim Demaille <akim@epita.fr>
815 * src/getopt1.c: Updated from textutils 2.0e
816 * src/getopt.c: Likewise.
817 * src/getopt.h: Likewise.
819 2000-03-17 Akim Demaille <akim@epita.fr>
821 * src/Makefile.am (bison.simple): Fix the awk program: quote only
822 the file name, not the whole `#line LINE FILE'.
824 2000-03-17 Akim Demaille <akim@epita.fr>
826 On syntax errors, report the token on which we choked.
828 * src/bison.s1 (yyparse): In the label yyerrlab, when
829 YYERROR_VERBOSE, add yychar in msg.
831 2000-03-17 Akim Demaille <akim@epita.fr>
833 * src/reader.c (copy_at): New function.
834 (copy_guard): Use it.
835 (copy_action): Use it.
837 2000-03-17 Akim Demaille <akim@epita.fr>
839 Be kind to translators, save some useless translations.
841 * src/main.c (banner): New function.
842 (fatal_banner): Use it.
843 (warn_banner): Use it.
845 2000-03-17 Akim Demaille <akim@epita.fr>
847 * src/reader.c (copy_definition): Use copy_string and
848 copy_comment. Removed now unused `match', `ended',
850 (copy_comment, copy_string): Moved, to be visible from
853 2000-03-17 Akim Demaille <akim@epita.fr>
855 * src/reader.c (copy_string): Declare `static inline'. No
856 problems with inline, since it is checked by configure.
857 (copy_comment): Likewise.
859 2000-03-17 Akim Demaille <akim@epita.fr>
861 * src/reader.c (packsymbols): Formatting changes.
863 2000-03-17 Akim Demaille <akim@epita.fr>
865 * src/reader.c (copy_comment): New function, factored out from:
866 (copy_action): Use it. Removed now unused `match', `ended',
868 (copy_guard): Likewise.
870 2000-03-17 Akim Demaille <akim@epita.fr>
872 * src/reader.c (copy_string): New function, factored out from:
873 (copy_action): Use it.
874 (copy_guard): Likewise.
876 2000-03-17 Akim Demaille <akim@epita.fr>
878 Change the handling of @s so that they behave exactly like $s.
879 There is now a pseudo variable @$ (readble and writable), location
880 of the lhs of the rule (by default ranging from the location of
881 the first symbol of the rhs, to the location of the last symbol,
882 or, if the rhs is empty, YYLLOC).
884 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
886 (yyparse): When providing a default semantic action, provide a
887 default location action.
888 (after the $): No longer change `*YYLSP', just stack YYLOC the
889 same way you stack YYVAL.
890 * src/reader.c (read_declarations): Use warns.
891 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
892 (copy_action, case '@'): Likewise.
893 Use a standard error message, to save useless work from
896 2000-03-17 Akim Demaille <akim@epita.fr>
898 * src/bison.s1: Formatting and cosmetics changes.
899 * src/reader.c: Likewise.
900 Update the Copyright notice.
902 2000-03-17 Akim Demaille <akim@epita.fr>
904 * src/bison.s1 (#line): All set to `#line' only, since the
905 Makefile now handles them.
907 2000-03-16 Akim Demaille <akim@epita.fr>
909 * src/output.c (output_rule_data): Output the documentation of
911 (Copyright notice): Update.
914 2000-03-16 Akim Demaille <akim@epita.fr>
916 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
917 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
918 One `#if YYDEBUG' remains, since it uses variables which are
919 defined only if `YYDEBUG != 0'.
921 2000-03-16 Akim Demaille <akim@epita.fr>
923 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
924 and related variables so that the similarities are highlighted.
926 2000-03-16 Akim Demaille <akim@epita.fr>
928 * src/bison.s1: Properly indent CPP directives.
930 2000-03-16 Akim Demaille <akim@epita.fr>
932 * src/bison.s1: Properly indent the `alloca' CPP section.
934 2000-03-16 Akim Demaille <akim@epita.fr>
936 Do not hard code values of directories in `configure.in'.
937 Update the `configure' tool chain.
939 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
941 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
942 (AC_OUTPUT): Add m4/Makefile.
943 Bump to bison 1.28a, 1.29 has never been released.
944 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
945 handled via src/Makefile.am.
946 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
947 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
949 * Makefile.am (SUBDIRS): Add m4.
950 (ACLOCAL_AM_FLAGS): New variable.
951 (AUTOMAKE_OPTIONS): Add check-news.
952 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
953 the proper line number and file name.
954 (DEFS): Propagate the location of bison library files and of the
956 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
958 * acinclude.m4: Remove, replaced by the directory m4.
959 * m4/Makefile.am (EXTRA_DIST): New variable.
960 * m4/gettext.m4: New file, from the fileutils.
961 * m4/lcmessage.m4: Likewise
962 * m4/progtest.m4: Likewise.
963 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
965 2000-03-10 Akim Demaille <akim@epita.fr>
968 Formatting changes of various comments.
969 Respect the GNU coding standards at various places.
970 Don't use `_()' when no translation is needed.
972 1999-12-13 Jesse Thilo <jthilo@gnu.org>
975 OS/2 honors TMPDIR environment variable.
977 1999-12-13 Jesse Thilo <jthilo@gnu.org>
979 * doc/bison.texinfo: Tweaked spelling and grammar.
981 Removed reference to price of printed copy.
982 Mention BISON_SIMPLE and BISON_HAIRY.
984 1999-12-13 Jesse Thilo <jthilo@gnu.org>
986 * configure.in, NEWS:
989 1999-10-27 Jesse Thilo <jthilo@gnu.org>
991 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
992 Added reference card.
994 1999-07-26 Jesse Thilo <jthilo@gnu.org>
996 * po/ru.po: Added Russian translation.
998 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1000 * configure.in: Added Russian translation.
1002 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1004 * configure.in, NEWS, README:
1005 Released version 1.28.
1007 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1010 Squashed redefinition warning on some systems.
1012 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1013 Have configure build version string instead of relying on ANSI string
1016 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1018 * po/POTFILES.in: Got rid of version.c.
1020 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1022 * acconfig.h, configure.in:
1023 Have configure build version string instead of relying on ANSI string
1026 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1029 Dropped mention of `+' for long-named options.
1031 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1033 * src/files.c: Added <unistd.h> for unlink().
1035 * src/Makefile.am, src/system.h:
1038 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1040 * README: Added a FAQ list.
1042 * configure.in, acconfig.h:
1045 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1047 * doc/FAQ, doc/Makefile.am:
1050 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1052 * src/alloc.h, src/symtab.h, src/version.c:
1053 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1055 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1057 * src/.cvsignore, src/Makefile.am:
1058 Reorganized: sources in `src', documentation in `doc'.
1060 * src/lex.c (literalchar):
1061 fixed the code for escaping double quotes (thanks
1064 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1066 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1067 Adjusted paths to reflect directory reorganization.
1069 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1071 * doc/.cvsignore, doc/Makefile.am:
1072 Reorganized: sources in `src', documentation in `doc'.
1074 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1077 Updated AC_INIT file to reflect directory reorganization.
1079 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1080 Reorganized: sources in `src', documentation in `doc'.
1082 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1085 Don't declare calloc() and realloc() if not necessary.
1087 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1089 * configure.in, acconfig.h, acinclude.m4:
1090 Don't declare calloc() and realloc() if not necessary.
1092 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1094 * po/.cvsignore: Added i18n support.
1096 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1098 * acconfig.h, configure.in, Makefile.am:
1101 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1103 * src/bison.s1: Fixed #line numbers.
1105 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1107 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1108 Added PO files from Translation Project.
1110 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1113 Added support for non-ANSI compilers (ansi2knr).
1115 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1117 * configure.in: Bumped version number to 1.27.
1120 Added `bison.simple' to list of files removed by `make distclean'.
1122 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1124 * src/files.c, src/files.h:
1125 Defined locations of parser files in config.h instead of Makefile.
1127 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1129 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1130 Defined locations of parser files in config.h instead of Makefile.
1132 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1135 Removed inappropriate use of $< macro.
1137 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1139 * po/Makefile.in.in, po/POTFILES.in:
1140 Add `po' directory skeleton.
1142 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1144 * README: Document help-bison list.
1146 * configure.in: Add check for mkstemp().
1148 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1150 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1151 Hush a few compiler warnings.
1154 Add tryclose(), which verifies that fclose was successful.
1155 Hush a couple of compiler warnings.
1157 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1159 * Makefile.am, OChangeLog:
1160 ChangeLog is now automatically generated. Include the old version as
1163 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1165 * 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:
1168 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1170 * doc/bison.texinfo: Fix formatting glitch.
1172 * doc/bison.texinfo: Update FSF address.
1174 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1176 * acconfig.h: Update FSF address.
1178 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1181 Don't define PACKAGE here, since config.h defines it.
1183 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1185 * src/reader.c: Update copyright date.
1188 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1189 favor of output directly to stderr (avoids buffer overruns).
1191 * src/reader.c: Some checks for premature EOF.
1193 * 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:
1194 Use prototypes if the compiler understands them.
1196 * src/files.c: Honor TMPDIR on Unix hosts.
1197 Use prototypes if the compiler understands them.
1200 Fix a couple of buffer overrun bugs.
1201 Use prototypes if the compiler understands them.
1203 * src/system.h: Include unistd.h and ctype.h.
1204 Use #ifdef instead of #if for NLS symbols.
1206 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1208 * doc/bison.texinfo:
1209 Delete comment "consider using @set for edition number, etc..." since
1210 we now are doing so.
1212 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1215 Use prototypes if the compiler understands them.
1217 * NEWS: Document 1.26 highlights.
1219 * Makefile.am: Require Automake 1.3 or later.
1222 Use prototypes if the compiler understands them.
1224 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1227 Use VERSION symbol from automake for version number.
1229 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1231 * acconfig.h, configure.in, version.cin:
1232 Use VERSION symbol from automake for version number.
1234 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1237 Distribute original version of simple parser (bison.s1), not built
1238 version (bison.simple).
1240 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1242 * doc/bison.texinfo: Add info dir entry.
1244 * doc/bison.texinfo:
1245 Let automake put version number into documentation.
1247 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1249 * src/bison.cld, src/build.com, src/vmshlp.mar:
1250 Add non-RCS files from /gd/gnu/bison.
1252 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1255 Document the BISON_HAIRY and BISON_SIMPLE variables.
1257 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1259 * src/version.c: Build version.c automatically.
1262 Fix token numbering (used to start at 258, not 257).
1264 * src/system.h: Include config.h.
1266 * src/getargs.c: Update bug report address.
1268 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1269 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1271 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1274 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1276 * configure.in, version.cin:
1277 Build version.c automatically.
1279 * AUTHORS: Add AUTHORS file.
1281 * README: Update bug report address.
1284 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1286 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1289 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1291 * doc/bison.texinfo: Clean up some formatting.
1293 1998-05-05 Richard Stallman <rms@gnu.org>
1295 * doc/bison.texinfo:
1296 Explain better why to make a pure parser.
1298 1998-01-05 Richard Stallman <rms@gnu.org>
1300 * src/files.c (openfiles):
1301 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1302 find a temporary directory, if possible. Do not unlink files while
1305 1997-08-25 Richard Stallman <rms@gnu.org>
1307 * src/reader.c (stack_offset;):
1308 Change some warni to warns.
1310 * src/lex.c (literalchar): Use warns, not warni.
1312 1997-06-28 Richard Stallman <rms@gnu.org>
1314 * src/bison.s1: Add a Bison version comment.
1316 * src/main.c (fatal, warn, berror):
1319 1997-06-28 Richard Stallman <rms@gnu.org>
1321 * Makefile.in (bison_version): New variable.
1322 (dist): Use that variable.
1323 (bison.s1): Substitute the Bison version into bison.simple.
1325 * bison.simple: Add a Bison version comment.
1327 1997-06-18 Richard Stallman <rms@gnu.org>
1329 * src/main.c (fatal, warn, berror):
1330 Make error messages standard.
1331 (toomany): Improve error message text.
1333 * 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:
1334 new.h renamed to alloc.h.
1336 1997-06-18 Richard Stallman <rms@gnu.org>
1338 * Makefile.in: new.h renamed to alloc.h.
1340 1997-05-24 Richard Stallman <rms@gnu.org>
1342 * src/lex.c (literalchar):
1343 Fix the code for escaping \, " and '.
1345 (lex): Avoid trouble when there are many chars
1346 to discard in a char literal with just several chars in it.
1348 1997-05-17 Richard Stallman <rms@gnu.org>
1351 Use malloc, if using alloca is troublesome.
1352 (YYSTACK_USE_ALLOCA): New flag macro.
1353 Define it for some systems and compilers.
1354 (YYSTACK_ALLOC): New macro.
1355 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1356 If it was malloc'd, free it.
1358 1997-05-17 Richard Stallman <rms@gnu.org>
1361 Use malloc, if using alloca is troublesome.
1362 (YYSTACK_USE_ALLOCA): New flag macro.
1363 Define it for some systems and compilers.
1364 (YYSTACK_ALLOC): New macro.
1365 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1366 If it was malloc'd, free it.
1368 1997-04-23 Richard Stallman <rms@gnu.org>
1371 (alloca) [__hpux]: Always define as __builtin_alloca.
1373 1997-04-23 Richard Stallman <rms@gnu.org>
1376 (alloca) [__hpux]: Always define as __builtin_alloca.
1378 1997-04-22 Richard Stallman <rms@gnu.org>
1381 [__hpux]: Include alloca.h (right for HPUX 10)
1382 instead of declaring alloca (right for HPUX 9).
1384 * src/bison.s1 (__yy_memcpy):
1385 Declare arg `count' as unsigned int.
1386 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1388 1997-04-22 Richard Stallman <rms@gnu.org>
1391 [__hpux]: Include alloca.h (right for HPUX 10)
1392 instead of declaring alloca (right for HPUX 9).
1394 * bison.simple (__yy_memcpy):
1395 Declare arg `count' as unsigned int.
1396 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1398 1997-01-03 Richard Stallman <rms@gnu.org>
1400 * src/allocate.c: [__STDC__ or _MSC_VER]:
1401 Declare calloc and realloc to return void *.
1403 1997-01-02 Richard Stallman <rms@gnu.org>
1406 [_MSC_VER]: Include stdlib.h and process.h.
1407 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1409 * src/main.c (main): Return FAILURE as a value.
1410 (printable_version): Declare arg as int, not char.
1412 1997-01-02 Richard Stallman <rms@gnu.org>
1414 * Makefile.in (dist):
1415 Explicitly check for symlinks, and copy them.
1417 1996-12-19 Richard Stallman <rms@gnu.org>
1420 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1422 1996-12-18 Paul Eggert <eggert@gnu.org>
1424 * src/bison.s1 (yyparse):
1425 If __GNUC__ and YYPARSE_PARAM are both defined,
1426 declare yyparse to have a void * argument.
1428 1996-12-18 Paul Eggert <eggert@gnu.org>
1430 * bison.simple (yyparse):
1431 If __GNUC__ and YYPARSE_PARAM are both defined,
1432 declare yyparse to have a void * argument.
1434 1996-12-17 Richard Stallman <rms@gnu.org>
1436 * src/reduce.c (nbits): Add some casts.
1438 1996-08-12 Richard Stallman <rms@gnu.org>
1440 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1442 1996-08-12 Richard Stallman <rms@gnu.org>
1444 * bison.simple: Test _MSDOS as well as _MSDOS_.
1446 1996-07-31 Richard Stallman <rms@gnu.org>
1449 [__sun && __i386]: Include alloca.h.
1451 1996-07-31 Richard Stallman <rms@gnu.org>
1454 [__sun && __i386]: Include alloca.h.
1456 1996-07-30 Richard Stallman <rms@gnu.org>
1458 * src/bison.s1: Comment change.
1460 * src/bison.s1: Test _MSDOS_, not MSDOS.
1462 1996-07-30 Richard Stallman <rms@gnu.org>
1464 * bison.simple: Comment change.
1466 * bison.simple: Test _MSDOS_, not MSDOS.
1468 1996-06-01 Richard Stallman <rms@gnu.org>
1470 * 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:
1471 Insert `_' macro around many string constants.
1474 Insert `_' macro around many string constants.
1476 (main): Call setlocale, bindtextdomain and textdomain.
1478 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1479 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1480 [ENABLE_NLS]: Include libintl.h.
1481 [ENABLE_NLS] (gettext): Define.
1482 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1483 (N_, PACKAGE, LOCALEDIR): New macros.
1485 1996-06-01 Richard Stallman <rms@gnu.org>
1487 * POTFILES.in: New file.
1489 * Makefile.in (allocate.o):
1490 Define target explicitly.
1492 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1493 (LDFLAGS): Set to @LDFLAGS@.
1494 (configure): Run autoconf only if preceding `cd' succeeds.
1495 (bison.s1): Redirect output to temporary file then move the
1496 temporary to the target, rather than redirecting directly to bison.s1.
1497 (clean): Remove config.status and config.log.
1498 (distclean): Don't remove config.status here.
1500 1996-05-12 Richard Stallman <rms@gnu.org>
1503 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1505 1996-05-12 Richard Stallman <rms@gnu.org>
1508 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1510 1996-05-11 Richard Stallman <rms@gnu.org>
1512 * src/bison.s1 (__yy_memcpy):
1513 Really reorder the args, as was supposedly done on Feb 14 1995.
1514 (yyparse): Calls changed accordingly.
1516 1996-05-11 Richard Stallman <rms@gnu.org>
1518 * Makefile.in (dist): Don't use $(srcdir).
1520 * bison.simple (__yy_memcpy):
1521 Really reorder the args, as was supposedly done on Feb 14 1995.
1522 (yyparse): Calls changed accordingly.
1524 1996-01-27 Richard Stallman <rms@gnu.org>
1526 * src/output.c (output_rule_data):
1527 Test YYERROR_VERBOSE in the conditional
1528 around the definition of ttyname.
1530 1995-12-29 Richard Stallman <rms@gnu.org>
1533 Fix line numbers in #line commands.
1535 1995-12-29 Richard Stallman <rms@gnu.org>
1538 Fix line numbers in #line commands.
1540 1995-12-27 Richard Stallman <rms@gnu.org>
1542 * src/bison.s1 (YYPARSE_PARAM_DECL):
1543 In C++, make it always null.
1544 (YYPARSE_PARAM_ARG): New macro.
1545 (yyparse): Use YYPARSE_PARAM_ARG.
1547 1995-12-27 Richard Stallman <rms@gnu.org>
1549 * bison.simple (YYPARSE_PARAM_DECL):
1550 In C++, make it always null.
1551 (YYPARSE_PARAM_ARG): New macro.
1552 (yyparse): Use YYPARSE_PARAM_ARG.
1554 1995-11-29 Richard Stallman <rms@gnu.org>
1556 * doc/bison.texinfo:
1557 Describe literal string tokens, %raw, %no_lines, %token_table.
1559 1995-11-29 Daniel Hagerty <hag@gnu.org>
1561 * doc/bison.texinfo: Fixed update date
1563 1995-10-16 Richard Stallman <rms@gnu.org>
1565 * src/version.c: Version 1.25.
1567 1995-10-16 Richard Stallman <rms@gnu.org>
1569 * NEWS: *** empty log message ***
1571 1995-10-16 Richard Stallman <rms@gnu.org>
1573 * doc/bison.1, doc/bison.rnh:
1576 1995-10-15 Richard Stallman <rms@gnu.org>
1578 * src/vmsgetargs.c, src/getargs.c:
1579 Added -n, -k, and -raw switches.
1580 (noparserflag, toknumflag, rawtoknumflag): New variables.
1582 * src/symtab.h (SALIAS):
1583 New #define for adding aliases to %token.
1584 (struct bucket): Added `alias' field.
1586 * src/reduce.c (reduce_grammar):
1587 Revise error message.
1588 (print_notices): Remove final `.' from error message.
1590 * src/reader.c (reader_output_yylsp):
1592 (readgram): Use `#if 0' around code that accepted %command
1593 inside grammar rules: The documentation doesn't allow it,
1594 and it will fail since the %command processors scan for the next %.
1595 (parse_token_decl): Extended the %token
1596 declaration to allow a multi-character symbol as an alias.
1597 (parse_thong_decl): New function.
1598 (read_declarations): Added %thong declarations.
1599 (read_declarations): Handle NOOP to deal with allowing
1600 % declarations as another means to specify the flags.
1601 (readgram): Allow %prec prior to semantics embedded in a rule.
1602 (skip_to_char, read_declarations, copy_definition)
1603 (parse_token_decl, parse_start_decl, parse_type_decl)
1604 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1605 (get_type_name, copy_guard, copy_action, readgram)
1606 (get_type, packsymbols): Revised most error messages.
1607 Changed `fatal' to `warnxxx' to avoid aborting for error.
1608 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1609 (read_declarations): Improve the error message for
1610 an invalid character. Do not abort.
1611 (read_declarations, copy_guard, copy_action): Use
1612 printable_version to avoid unprintable characters in printed output.
1613 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1614 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1615 Allow the type of a non-terminal can be given
1616 more than once, as long as all specifications give the same type.
1619 (output_headers, output_trailers, output, output_gram)
1620 (output_rule_data): Implement noparserflag variable.
1621 Implement toknumflag variable.
1622 (output): Call reader_output_yylsp to output LTYPESTR.
1624 * src/main.c (main):
1625 If reader sees an error, don't process the grammar.
1626 (fatals): Updated to not use VARARGS1.
1627 (printable_version, int_to_string, warn, warni, warns, warnss)
1628 (warnsss): New error reporting functions. Avoid abort for error.
1631 Added THONG and NOOP for alias processing.
1632 Added SETOPT for the new code that allows setting options with %flags.
1635 Include getopt.h. Add some extern decls.
1636 (safegetc): New function to deal with EOF gracefully.
1637 (literalchar); new function to deal with reading \ escapes.
1638 (lex): Use literalchar.
1639 (lex): Implemented "..." tokens.
1640 (literalchar, lex, parse_percent_token): Made tokenbuffer
1641 always contain the token. This includes growing the token
1642 buffer while reading an integer.
1643 (parse_percent_token): Replaced if-else statement with percent_table.
1644 (parse_percent_token): Added % declarations as another
1645 way to specify the flags -n, -l, and -r. Also added hooks for
1646 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1647 major changes to files.c.
1648 (lex) Retain in the incoming stream a character following
1650 (skip_white_space, lex): Revised most error messages
1651 and changed fatal to warn to avoid aborting.
1652 (percent_table): Added %thong declarations.
1654 * src/gram.h: Comment changes.
1656 * src/files.c (openfiles, open_extra_files, done):
1658 and actfile file. Handle noparserflag. Both for -n switch.
1660 * src/conflicts.c (resolve_sr_conflict):
1661 Remove use of alloca.
1663 1995-06-01 Jim Meyering <meyering@gnu.org>
1665 * doc/bison.texinfo: *** empty log message ***
1667 1995-05-06 Richard Stallman <rms@gnu.org>
1669 * src/bison.s1: Comment change.
1671 1995-05-06 Richard Stallman <rms@gnu.org>
1673 * bison.simple: Comment change.
1675 1995-05-03 Richard Stallman <rms@gnu.org>
1677 * src/version.c: Version now 1.24.
1679 * src/bison.s1: Change distribution terms.
1681 * src/version.c: Version now 1.23.
1683 1995-05-03 Richard Stallman <rms@gnu.org>
1685 * doc/bison.texinfo:
1686 Rewrite "Conditions for Using Bison".
1687 Update version to 1.24.
1689 1995-05-03 Richard Stallman <rms@gnu.org>
1691 * bison.simple: Change distribution terms.
1693 1995-02-23 Richard Stallman <rms@gnu.org>
1695 * src/files.c: Test __VMS_POSIX as well as VMS.
1697 1995-02-14 Jim Meyering <meyering@gnu.org>
1699 * src/bison.s1 (__yy_memcpy):
1700 Renamed from __yy_bcopy to avoid
1701 confusion. Reverse FROM and TO arguments to be consistent with
1704 1995-02-14 Jim Meyering <meyering@gnu.org>
1706 * bison.simple (__yy_memcpy):
1707 Renamed from __yy_bcopy to avoid
1708 confusion. Reverse FROM and TO arguments to be consistent with
1711 1994-11-10 David J. MacKenzie <djm@gnu.org>
1717 * Makefile.in (DISTFILES): Include NEWS.
1719 * Makefile.in (DISTFILES):
1720 Include install-sh, not install.sh.
1722 * configure.in: Update to Autoconf v2 macro names.
1724 1994-10-05 David J. MacKenzie <djm@gnu.org>
1726 * Makefile.in: fix typo
1728 * Makefile.in (prefix, exec_prefix):
1729 Let configure set them.
1731 1994-09-28 David J. MacKenzie <djm@gnu.org>
1733 * Makefile.in: Set datadir to $(prefix)/share.
1735 1994-09-15 Richard Stallman <rms@gnu.org>
1738 Update copyright notice and GPL version.
1740 1994-09-15 Richard Stallman <rms@gnu.org>
1743 Update copyright notice and GPL version.
1745 1994-07-12 Richard Stallman <rms@gnu.org>
1747 * src/reduce.c, src/reader.c:
1750 1994-05-05 David J. MacKenzie <djm@gnu.org>
1752 * Makefile.in: entered into RCS
1754 1994-03-26 Richard Stallman <rms@gnu.org>
1756 * src/bison.s1: entered into RCS
1758 1994-03-26 Richard Stallman <rms@gnu.org>
1760 * bison.simple: entered into RCS
1762 1994-03-25 Richard Stallman <rms@gnu.org>
1764 * src/main.c: entered into RCS
1766 1994-03-24 Richard Stallman <rms@gnu.org>
1768 * src/conflicts.c: entered into RCS
1770 1994-01-02 Richard Stallman <rms@gnu.org>
1772 * Makefile.in: *** empty log message ***
1774 1993-11-21 Richard Stallman <rms@gnu.org>
1776 * src/bison.s1: *** empty log message ***
1778 1993-11-21 Richard Stallman <rms@gnu.org>
1780 * doc/bison.texinfo: entered into RCS
1782 * doc/bison.texinfo: *** empty log message ***
1784 1993-11-21 Richard Stallman <rms@gnu.org>
1786 * bison.simple: *** empty log message ***
1788 1993-10-25 David J. MacKenzie <djm@gnu.org>
1790 * doc/bison.texinfo: *** empty log message ***
1792 1993-10-19 Richard Stallman <rms@gnu.org>
1794 * src/bison.s1: *** empty log message ***
1796 1993-10-19 Richard Stallman <rms@gnu.org>
1798 * bison.simple: *** empty log message ***
1800 1993-10-14 Richard Stallman <rms@gnu.org>
1802 * src/bison.s1: *** empty log message ***
1804 1993-10-14 Richard Stallman <rms@gnu.org>
1806 * bison.simple: *** empty log message ***
1808 1993-09-14 David J. MacKenzie <djm@gnu.org>
1810 * doc/bison.texinfo: *** empty log message ***
1812 1993-09-13 Noah Friedman <friedman@gnu.org>
1814 * Makefile.in: *** empty log message ***
1816 1993-09-10 Richard Stallman <rms@gnu.org>
1818 * src/conflicts.c: *** empty log message ***
1820 * src/system.h: entered into RCS
1822 1993-09-10 Richard Stallman <rms@gnu.org>
1824 * doc/bison.1: entered into RCS
1826 1993-09-06 Noah Friedman <friedman@gnu.org>
1828 * src/version.c: entered into RCS
1830 1993-09-06 Noah Friedman <friedman@gnu.org>
1832 * Makefile.in: *** empty log message ***
1834 1993-07-30 David J. MacKenzie <djm@gnu.org>
1836 * Makefile.in: *** empty log message ***
1838 1993-07-24 Richard Stallman <rms@gnu.org>
1840 * src/bison.s1: *** empty log message ***
1842 1993-07-24 Richard Stallman <rms@gnu.org>
1844 * bison.simple: *** empty log message ***
1846 1993-07-08 David J. MacKenzie <djm@gnu.org>
1848 * Makefile.in: *** empty log message ***
1850 1993-07-04 Richard Stallman <rms@gnu.org>
1852 * src/bison.s1: *** empty log message ***
1854 1993-07-04 Richard Stallman <rms@gnu.org>
1856 * bison.simple: *** empty log message ***
1858 1993-06-26 David J. MacKenzie <djm@gnu.org>
1860 * src/getargs.c: entered into RCS
1862 1993-06-26 David J. MacKenzie <djm@gnu.org>
1864 * doc/bison.texinfo: *** empty log message ***
1866 * doc/bison.1: New file.
1868 1993-06-25 Richard Stallman <rms@gnu.org>
1870 * src/getargs.c: New file.
1872 1993-06-16 Richard Stallman <rms@gnu.org>
1874 * src/bison.s1: *** empty log message ***
1876 1993-06-16 Richard Stallman <rms@gnu.org>
1878 * bison.simple: *** empty log message ***
1880 1993-06-03 Richard Stallman <rms@gnu.org>
1882 * src/bison.s1: New file.
1884 1993-06-03 Richard Stallman <rms@gnu.org>
1886 * doc/bison.texinfo: *** empty log message ***
1888 1993-06-03 Richard Stallman <rms@gnu.org>
1890 * bison.simple: New file.
1892 1993-05-19 Richard Stallman <rms@gnu.org>
1894 * doc/bison.texinfo: New file.
1896 1993-05-07 Noah Friedman <friedman@gnu.org>
1898 * Makefile.in: *** empty log message ***
1900 1993-04-28 Noah Friedman <friedman@gnu.org>
1902 * src/reader.c: *** empty log message ***
1904 1993-04-23 Noah Friedman <friedman@gnu.org>
1906 * src/alloc.h: entered into RCS
1908 1993-04-20 David J. MacKenzie <djm@gnu.org>
1910 * src/version.c: *** empty log message ***
1912 * src/files.c, src/allocate.c:
1915 * src/reader.c: *** empty log message ***
1917 * src/lex.c: entered into RCS
1919 * src/conflicts.c: New file.
1921 * src/symtab.c: entered into RCS
1923 * src/alloc.h: New file.
1925 * src/LR0.c: entered into RCS
1927 1993-04-18 Noah Friedman <friedman@gnu.org>
1929 * src/reader.c: New file.
1931 * src/version.c: *** empty log message ***
1933 1993-04-18 Noah Friedman <friedman@gnu.org>
1935 * Makefile.in: *** empty log message ***
1937 1993-04-17 Noah Friedman <friedman@gnu.org>
1939 * Makefile.in: *** empty log message ***
1941 1993-04-15 Richard Stallman <rms@gnu.org>
1943 * src/main.c, src/files.c:
1946 1993-04-15 Noah Friedman <friedman@gnu.org>
1948 * configure.in: entered into RCS
1950 * configure.in: *** empty log message ***
1952 * configure.in: New file.
1954 1993-04-14 Richard Stallman <rms@gnu.org>
1956 * Makefile.in: New file.
1958 1993-04-13 Richard Stallman <rms@gnu.org>
1960 * src/version.c: New file.
1962 1993-03-25 Richard Stallman <rms@gnu.org>
1964 * src/output.c: entered into RCS
1966 1992-09-25 Richard Stallman <rms@gnu.org>
1968 * configure.bat: entered into RCS
1970 1992-06-22 Richard Stallman <rms@gnu.org>
1972 * src/vmsgetargs.c: entered into RCS
1974 1992-06-22 Richard Stallman <rms@gnu.org>
1976 * doc/bison.rnh: entered into RCS
1978 1992-04-20 David J. MacKenzie <djm@gnu.org>
1980 * README: entered into RCS
1982 1992-01-22 Richard Stallman <rms@gnu.org>
1984 * src/machine.h: entered into RCS
1986 1991-12-21 Richard Stallman <rms@gnu.org>
1988 * src/lalr.c, src/closure.c:
1991 1991-12-20 Richard Stallman <rms@gnu.org>
1993 * src/state.h: entered into RCS
1995 1991-12-18 Richard Stallman <rms@gnu.org>
1997 * src/print.c, src/nullable.c, src/derives.c:
2000 1991-11-03 David J. MacKenzie <djm@gnu.org>
2002 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2005 1988-09-09 Richard Stallman <rms@gnu.org>
2007 * src/bison.hairy: entered into RCS
2009 1987-12-16 Richard Stallman <rms@gnu.org>
2011 * REFERENCES: entered into RCS