1 2001-08-03 Akim Demaille <akim@epita.fr>
3 Update to gettext 0.10.39.
5 2001-08-03 Akim Demaille <akim@epita.fr>
9 2001-08-01 Marc Autret <autret_m@epita.fr>
11 * doc/bison.texinfo: Update.
12 * doc/bison.1 (mandoc): Update.
13 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
14 * src/files.c: Support output files extensions computing.
15 (src_extension): New static variable.
16 (header_extension): New static variable.
18 (get_extension_index): New function, gets the index of an extension
20 (compute_exts_from_gf): New function, computes extensions from the
21 grammar file extension.
22 (compute_exts_from_src): New functions, computes extensions from the
23 C source file extension, file given by ``-o'' option.
24 (compute_base_names): Update.
25 (output_files): Update.
27 2001-08-01 Robert Anisko <anisko_r@epita.fr>
29 * doc/bison.texi: Document @$.
30 (Locations): New section.
32 2001-07-18 Akim Demaille <akim@epita.fr>
34 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
35 * config/prev-version.txt, config/move-if-change: New.
36 * Makefile.am: Adjust.
38 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
40 * src/bison.simple (yyparse): Suppress warning `comparaison
41 between signed and unsigned'.
43 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
45 * src/getargs.h (raw_flag): Remove.
46 * src/getargs.c: Die on `-r'/`--raw'.
47 * src/lex.c (parse_percent_token): Die on `%raw'.
48 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
49 * tests/calc.at: Suppress test with option `--raw'.
51 2001-07-14 Akim Demaille <akim@epita.fr>
54 * configure.in: Require Autoconf 2.50.
55 Update to gettext 0.10.38.
57 2001-03-16 Akim Demaille <akim@epita.fr>
59 * doc/bison.texinfo: ANSIfy the examples.
61 2001-03-16 Akim Demaille <akim@epita.fr>
63 * getargs.c (skeleton): New variable.
64 (longopts): --skeleton is a new option.
65 (shortopts, getargs): -S is a new option.
66 * getargs.h: Declare skeleton.
67 * output.c (output_parser): Use it.
69 2001-03-16 Akim Demaille <akim@epita.fr>
71 * m4/strerror_r.m4: New.
72 * m4/error.m4: Run AC_FUNC_STRERROR_R.
73 * lib/error.h, lib/error.c: Update.
75 2001-03-16 Akim Demaille <akim@epita.fr>
77 * src/getargs.c (longopts): Clean up.
79 2001-02-21 Akim Demaille <akim@epita.fr>
81 * src/reader.c (gensym): `gensym_count' is your own.
82 Use a static buf to create the symbol name, as token_buffer is no
85 2001-02-08 Akim Demaille <akim@epita.fr>
87 * src/conflicts.c (conflict_report): Be sure not to append to res
88 between two calls, which could happen if both first sprintf were
89 skipped, but not the first cp += strlen.
91 2001-02-08 Akim Demaille <akim@epita.fr>
93 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
94 New, from fileutils 4.0.37.
95 * configure.in: Require Autoconf 2.49c. I took some time before
96 making this decision. This is the only way out for portability
97 issues in Bison, it would mean way too much duplicate effort to
98 import in Bison features implemented in 2.49c since 2.13.
99 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
101 2001-02-02 Akim Demaille <akim@epita.fr>
103 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
104 * lib/xalloc.h, lib/xmalloc.c: Update.
106 2001-01-19 Akim Demaille <akim@epita.fr>
108 Get rid of the ad hoc handling of token_buffer in the scanner: use
111 * src/lex.c (token_obstack): New.
112 (init_lex): Initialize it. No longer call...
113 (grow_token_buffer): this. Remove it.
114 Adjust all the places which used it to use the obstack.
116 2001-01-19 Akim Demaille <akim@epita.fr>
118 * src/lex.h: Rename all the tokens:
119 s/\bENDFILE\b/tok_eof/g;
120 s/\bIDENTIFIER\b/tok_identifier/g;
122 Let them be enums, not #define, to ease debugging.
125 2001-01-18 Akim Demaille <akim@epita.fr>
127 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
128 * src/lex.c (maxtoken, grow_token_buffer): Static.
130 2001-01-18 Akim Demaille <akim@epita.fr>
132 Since we now use obstacks, more % directives can be enabled.
134 * src/lex.c (percent_table): Also accept `%yacc',
135 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
137 Handle the actions for `%semantic_parser' and `%pure_parser' here,
138 instead of returning a token.
139 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
140 * src/reader.c (read_declarations): Adjust.
141 * src/files.c (open_files): Don't call `compute_base_names', don't
142 compute `attrsfile' since they depend upon data which might be
143 *in* the input file now.
144 (output_files): Do it here.
145 * src/output.c (output_headers): Document the fact that this patch
146 introduces a guaranteed SEGV for semantic parsers.
147 * doc/bison.texinfo: Document them.
148 * tests/suite.at: Exercise these %options.
150 2000-12-20 Akim Demaille <akim@epita.fr>
152 Also handle the output file (--verbose) with obstacks.
154 * files.c (foutput): Remove.
155 (output_obstack): New.
156 Adjust all dependencies.
157 * src/conflicts.c: Return a string.
158 * src/system.h (obstack_grow_string): Rename as...
159 (obstack_sgrow): this. Be ready to work with non literals.
160 (obstack_fgrow4): New.
162 2000-12-20 Akim Demaille <akim@epita.fr>
164 * src/files.c (open_files): Fix the computation of short_base_name
165 in the case of `-o foo.tab.c'.
167 2000-12-20 Akim Demaille <akim@epita.fr>
169 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
170 (copy_dollar): Now that everything uses obstacks, get rid of the
173 2000-12-20 Akim Demaille <akim@epita.fr>
175 * src/files.c (open_files): Actually the `.output' file is based
176 on the short_base_name, not base_name.
177 * tests/suite.at (Checking output file names): Adjust.
179 2000-12-20 Akim Demaille <akim@epita.fr>
181 * src/bison.s1: Remove, we now use directly...
182 * src/bison.simple: this.
183 * src/Makefile.am: Use pkgdata instead of data.
185 2000-12-20 Akim Demaille <akim@epita.fr>
187 * src/files.c (guard_obstack): New.
188 (open_files): Initialize it.
189 (output_files): Dump it...
190 * src/files.h: Export it.
191 * src/reader.c (copy_guard): Use it.
193 2000-12-19 Akim Demaille <akim@epita.fr>
195 * src/files.c (outfile, defsfile, actfile): Removed as global
197 (open_files): Don't compute them.
198 (output_files): Adjust.
199 (base_name, short_base_name): Be global.
202 2000-12-19 Akim Demaille <akim@epita.fr>
204 * src/files.c (strsuffix): New.
205 (stringappend): Be just like strcat but allocate.
206 (base_names): Eve out from open_files.
207 Try to simplify the rather hairy computation of base_name and
209 (open_files): Use it.
210 * tests/suite.at (Checking output file names): New test.
212 2000-12-19 Akim Demaille <akim@epita.fr>
214 * src/system.h (obstack_grow_literal_string): Rename as...
215 (obstack_grow_string): this.
216 * src/output.c (output_parser): Recognize `%% actions' instead of
218 * src/bison.s1: s/$/%% actions/.
219 * src/bison.hairy: Likewise.
221 2000-12-19 Akim Demaille <akim@epita.fr>
223 * src/output.c (output_parser): Compute the `#line' lines when
225 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
226 Suggested by Hans Aberg.
228 2000-12-19 Akim Demaille <akim@epita.fr>
230 Let the handling of the skeleton files be local to the procedures
233 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
235 (fparser, open_extra_files): Remove.
236 (open_files, output_files): Don't take care of fparser.
237 * src/files.h: Adjust.
238 * src/output.c (output_parser): Open and close the file to the
240 * src/reader.c (read_declarations): When %semantic_parser, open
243 2000-12-19 Akim Demaille <akim@epita.fr>
245 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
246 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
248 2000-12-19 Akim Demaille <akim@epita.fr>
250 * src/files.c (open_files): Yipee! We no longer need all the code
251 looking for `/tmp' since we have no tmp file.
253 2000-12-19 Akim Demaille <akim@epita.fr>
255 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
257 * src/files.c (open_files): Less dependency on MSDOS etc.
259 2000-12-14 Akim Demaille <akim@epita.fr>
261 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
262 Provide a default definition.
263 Use it when executing the default @ action.
264 * src/reader.c (reader_output_yylsp): No longer include
265 `timestamp' and `text' in the default YYLTYPE.
267 2000-12-12 Akim Demaille <akim@epita.fr>
269 * src/reader.c (copy_definition, parse_union_decl, copy_action)
270 (copy_guard): Quote the file names.
271 Reported by Laurent Mascherpa.
273 2000-12-12 Akim Demaille <akim@epita.fr>
275 * src/output.c (output_headers, output_program, output): Be sure
276 to escape special characters when outputting filenames.
277 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
278 (output_headers): Don't depend on them, Use ACTSTR.
280 2000-11-17 Akim Demaille <akim@epita.fr>
282 * lib/obstack.h: Formatting changes.
283 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
284 prevents type checking.
285 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
286 cast the value to (void *): assigning a `foo *' to a `void *'
288 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
289 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
292 2000-11-17 Akim Demaille <akim@epita.fr>
294 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
296 (suite.m4, regression.m4, calc.m4): these.
297 * tests/atgeneral.m4: Update from CVS Autoconf.
299 2000-11-17 Akim Demaille <akim@epita.fr>
301 * tests/regression.m4 (%union and --defines): New test,
302 demonstrating a current bug in the obstack implementation.
304 2000-11-17 Akim Demaille <akim@epita.fr>
306 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
308 Use them to declare the variables which are global or local to
311 2000-11-17 Akim Demaille <akim@epita.fr>
313 * acconfig.h: Remove, no longer used.
315 2000-11-07 Akim Demaille <akim@epita.fr>
317 * src: s/Copyright (C)/Copyright/g.
319 2000-11-07 Akim Demaille <akim@epita.fr>
321 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
323 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
325 2000-11-07 Akim Demaille <akim@epita.fr>
327 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
328 Merge in a single CPP if/else.
330 2000-11-07 Akim Demaille <akim@epita.fr>
332 * src/output.c (output): Remove useless variables.
333 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
334 argument `data' for consistency with the prototypes.
336 (obstack_copy, obstack_copy0): Rename the second argument as
337 `address' for consistency. Qualify it `const'.
338 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
339 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
340 `const' their input argument (`data' or `address').
341 Adjust the corresponding macros to include `const' in casts.
343 2000-11-03 Akim Demaille <akim@epita.fr>
345 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
346 s/PFILE1/BISON_HAIRY/.
349 2000-11-03 Akim Demaille <akim@epita.fr>
351 For some reason, this was not applied.
353 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
354 `unlink': it's no longer used.
356 2000-11-03 Akim Demaille <akim@epita.fr>
358 * src/files.c (skeleton_find): New function, eved out of...
359 (open_files, open_extra_files): here.
361 2000-11-03 Akim Demaille <akim@epita.fr>
365 * src/files.c (obstack_save): New function.
367 (output_files): this.
369 * src/main.c (main): Don't use `atexit' to register `done', since
370 it no longer has to remove tmp files, just call `output_files'
371 when there are no errors.
373 2000-11-02 Akim Demaille <akim@epita.fr>
375 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
376 `unlink': it's no longer used.
377 * src/files.h: Formatting changes.
379 2000-11-02 Akim Demaille <akim@epita.fr>
381 Remove the last uses of mktemp and unlink/delete.
383 * src/files.c (fdefines, ftable): Removed.
384 (defines_ostack, table_obstack): New.
385 Adjust dependencies of the former into uses of the latter.
386 * src/output.c (output_short_or_char_table, output_short_table):
387 Convert to using obstacks.
388 * src/reader.c (copy_comment2): Accept one FILE * and two
390 (output_token_defines, reader_output_yylsp): Use obstacks.
391 * src/system.h (obstack_fgrow3): New.
393 2000-11-01 Akim Demaille <akim@epita.fr>
395 Change each use of `fattrs' into a use of `attrs_obstack'.
397 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
398 * src/files.c (fattrs): Remove.
399 (attrs_obstack): New.
400 Adjust all dependencies.
401 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
403 2000-11-01 Akim Demaille <akim@epita.fr>
406 Change each use of `faction' into a use of `action_obstack'.
408 * lib/obstack.h, lib/obstack.c: New files.
409 * src/files.c (faction): Remove.
410 (action_obstack): New.
411 Adjust all dependencies.
413 2000-10-20 Akim Demaille <akim@epita.fr>
415 * lib/quote.h (PARAMS): New macro. Use it.
417 2000-10-16 Akim Demaille <akim@epita.fr>
419 * src/output.c (output_short_or_char_table): New function.
420 (output_short_table, output_token_translations): Use it.
421 (goto_actions): Use output_short_table.
423 2000-10-16 Akim Demaille <akim@epita.fr>
425 * src/symtab.c (bucket_new): New function.
428 * src/output.c (output_short_table): New argument to display the
429 comment associated with the table.
431 (output_gram): Use it.
432 (output_rule_data): Nicer output layout for YYTNAME.
434 2000-10-16 Akim Demaille <akim@epita.fr>
436 * src/lex.c (read_typename): New function.
438 * src/reader.c (copy_dollar): Likewise.
440 2000-10-16 Akim Demaille <akim@epita.fr>
442 * src/reader.c (copy_comment2): Expect the input stream to be on
443 the `/' which is suspected to open a comment, instead of being
444 called after `//' or `/*' was read.
445 (copy_comment, copy_definition, parse_union_decl, copy_action)
446 (copy_guard): Adjust.
448 2000-10-16 Akim Demaille <akim@epita.fr>
450 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
451 `read_signed_integer'.
453 2000-10-16 Akim Demaille <akim@epita.fr>
455 * src/reader.c (copy_dollar): New function.
456 (copy_guard, copy_action): Use it.
458 2000-10-16 Akim Demaille <akim@epita.fr>
460 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
461 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
462 New files, from Fileutils 4.0.27.
463 * src/main.c (printable_version): Remove.
464 * src/lex.c, src/reader.c: Use `quote'.
466 2000-10-04 Akim Demaille <akim@epita.fr>
468 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
470 2000-10-04 Akim Demaille <akim@epita.fr>
472 * doc/bison.texinfo: Various typos spotted by Neil Booth.
474 2000-10-04 Akim Demaille <akim@epita.fr>
476 When a literal string is used to define two different tokens,
477 `bison -v' segfaults.
478 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
480 * tests/regression.m4: New file.
481 Include the core of the sample provided by Piotr Gackiewicz.
482 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
485 2000-10-04 Akim Demaille <akim@epita.fr>
487 * src/reader.c (parse_expect_decl): Keep `count' within the size
491 2000-10-02 Paul Eggert <eggert@twinsun.com>
493 * bison.s1 (yyparse): Assign the default value
494 unconditionally, to avoid a GCC warning and make the parser a
497 2000-10-02 Akim Demaille <akim@epita.fr>
499 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
502 2000-10-02 Akim Demaille <akim@epita.fr>
504 * src/derives.c, src/print.c, src/reduce.c: To ease the
505 translation, move some `\n' out of the translated strings.
507 2000-10-02 Akim Demaille <akim@epita.fr>
509 The location tracking mechanism is precious for parse error
510 messages. Nevertheless, it is enabled only when `@n' is used in
511 the grammar, which is a different issue (you can use it in error
512 message, but not in the grammar per se). Therefore, there should
513 be another means to enable it.
515 * src/getargs.c (getargs): Support `--locations'.
517 * src/getargs.h (locationsflag): Export it.
518 * src/lex.c (percent_table): Support `%locations'.
519 * src/reader.c (yylsp_needed): Remove this variable, now replaced
520 with `locationsflag'.
521 * doc/bison.texinfo: Document `--locations' and `%locations'.
523 * tests/calc.m4: Test it.
525 For regularity of the names, replace each
526 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
527 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
528 In addition replace each `flag' with `_flag'.
530 2000-10-02 Akim Demaille <akim@epita.fr>
532 Also test parse error messages, including with YYERROR_VERBOSE.
534 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
536 Use it to check the computations.
537 Use it to check `nonassoc' is honored.
538 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
540 (_AT_CHECK_CALC): Adjust to this option.
541 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
543 2000-10-02 Akim Demaille <akim@epita.fr>
545 Test also `--verbose', `--defines' and `--name-prefix'. Testing
546 the latter demonstrates a flaw in the handling of non debugging
547 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
548 was used in order to simplify:
564 unfortunately this leads to a CPP conflict when
565 `--name-prefix=foo' is used since it produces `#define yydebug
568 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
569 (YYDPRINTF): New macro.
571 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
573 Also test `--verbose', `--defines' and `--name-prefix'.
575 2000-10-02 Akim Demaille <akim@epita.fr>
577 Improve the readability of the produced parsers.
579 * src/bison.s1: Formatting changes.
580 Improve the comment related to the `$' mark.
581 (yydefault): Don't fall through to `yyresume': `goto' there.
582 * src/output.c (output_parser): When the `$' is met, skip the end
584 New variable, `number_of_dollar_signs', to check there's exactly
585 one `$' in the parser skeleton.
587 2000-10-02 Akim Demaille <akim@epita.fr>
589 * lib/xstrdup.c: New file, from the fileutils.
590 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
591 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
592 instead of strlen + xmalloc + strcpy.
593 * src/symtab.c (copys): Remove, use xstrdup instead.
595 2000-10-02 Akim Demaille <akim@epita.fr>
597 * src/gram.h (associativity): New enum type which replaces the
598 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
599 `right_assoc', `left_assoc' and `non_assoc'.
600 Adjust all dependencies.
601 * src/reader.c: Formatting changes.
602 (LTYPESTR): Don't define it, use it as a literal in
603 `reader_output_yylsp'.
604 * src/symtab.h (symbol_class): New enum type which replaces the
605 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
606 `sunknown', `stoken and `snterm'.
608 2000-10-02 Akim Demaille <akim@epita.fr>
610 * src/getargs.c (fixed_outfiles): Rename as...
611 (yaccflag): for consistency and accuracy.
614 2000-10-02 Akim Demaille <akim@epita.fr>
616 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
617 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
618 difficult and introduced a lot of core dump. It turns out that
619 Bison used an implementation of `xmalloc' based on `calloc', and
620 at various places it does depend upon the initialization to 0. I
621 have not tried to isolate the pertinent places, and all the former
622 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
623 someone should address this issue.
625 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
626 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
629 * src/warshall.h: New file.
632 2000-10-02 Akim Demaille <akim@epita.fr>
634 Various anti-`extern in *.c' changes.
636 * src/system.h: Include `assert.h'.
638 2000-10-02 Akim Demaille <akim@epita.fr>
640 * src/state.h (nstates, final_state, first_state, first_shift)
641 (first_reduction): Move their exportation from here...
642 * src/LR0.h: to here.
644 * src/getargs.c (statisticsflag): New variable.
645 Add support for `--statistics'.
648 Remove a lot of now useless `extern' statements in most files.
650 2000-10-02 Akim Demaille <akim@epita.fr>
652 * src/LR0.h: New file.
655 2000-10-02 Akim Demaille <akim@epita.fr>
657 * src/print.h: New file.
659 * src/print.c: Formatting and ordering changes.
660 (verbose, terse): Replace with...
661 (print_results): this new function.
664 2000-10-02 Akim Demaille <akim@epita.fr>
666 * src/conflicts.c (conflict_report): New function.
667 (conflict_log, verbose_conflict_log): Replace with...
668 (print_conflicts): this function.
670 * src/conflicts.h: New file.
671 Propagate its inclusion.
673 2000-10-02 Akim Demaille <akim@epita.fr>
675 * src/nullable.h: New file.
676 Propagate its inclusion.
677 * src/nullable.c: Formatting changes.
679 2000-10-02 Akim Demaille <akim@epita.fr>
681 * src/reduce.h: New file.
682 Propagate its inclusion.
683 * src/reduce.c: Topological sort and other formatting changes.
684 (bool, TRUE, FALSE): Move their definition to...
685 * src/system.h: here.
687 2000-10-02 Akim Demaille <akim@epita.fr>
689 * src/files.c: Formatting changes.
690 (tryopen, tryclose, openfiles): Rename as...
691 (xfopen, xfclose, open_files): this.
692 (stringappend): static.
693 * src/files.h: Complete the list of exported symbols.
696 2000-10-02 Akim Demaille <akim@epita.fr>
698 * src/reader.h: New file.
699 Propagate its use instead of tedious list of `extern' and
701 * src/reader.c: Formatting changes, topological sort,
704 2000-10-02 Akim Demaille <akim@epita.fr>
706 * src/lex.h: Prototype `lex.c' exported functions.
707 * src/reader.c: Adjust.
708 * src/lex.c: Formatting changes.
709 (safegetc): Rename as...
712 2000-10-02 Akim Demaille <akim@epita.fr>
714 * src/lalr.h: New file.
715 Propagate its inclusion instead of prototypes and `extern'.
716 * src/lalr.c: Formatting changes, topological sorting etc.
718 2000-10-02 Akim Demaille <akim@epita.fr>
720 * src/output.c (token_actions): Introduce a temporary array,
721 YYDEFACT, that makes it possible for this function to use
724 2000-10-02 Akim Demaille <akim@epita.fr>
726 `user_toknums' is output as a `short[]' in `output.c', while it is
727 defined as a `int[]' in `reader.c'. For consistency with the
728 other output tables, `user_toknums' is now defined as a table of
731 * src/reader.c (user_toknums): Be a short table instead of an int
735 Factor the short table outputs.
737 * src/output.c (output_short_table): New function.
738 * src/output.c (output_gram, output_stos, output_rule_data)
739 (output_base, output_table, output_check): Use it.
741 2000-10-02 Akim Demaille <akim@epita.fr>
743 * src/output.c (output): Topological sort of the functions, in
744 order to get rid of the `static' prototypes.
745 No longer use `register'.
746 * src/output.h: New file.
747 Propagate its inclusion in files explicitly prototyping functions
750 2000-09-21 Akim Demaille <akim@epita.fr>
752 * src/atgeneral.m4: Update from Autoconf.
754 2000-09-21 Akim Demaille <akim@epita.fr>
756 * src/closure.h: New file.
757 * src/closure.c: Formatting changes, topological sort over the
758 functions, use of closure.h.
759 (initialize_closure, finalize_closure): Rename as...
760 (new_closure, free_closure): these. Adjust dependencies.
761 * src/LR0.c: Formatting changes, topological sort, use of
763 (initialize_states): Rename as...
765 * src/Makefile.am (noinst_HEADERS): Adjust.
767 2000-09-20 Akim Demaille <akim@epita.fr>
769 * src/acconfig.h: Don't protect config.h against multiple
772 * src/system.h: Define PARAMS.
773 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
774 purpose of config.h. system.h must not try to fix wrong
775 definitions in config.h.
777 2000-09-20 Akim Demaille <akim@epita.fr>
779 * src/derives.h: New file.
780 * src/main.c, src/derives.h: Use it.
782 * src/Makefile.am (noinst_HEADERS): Adjust.
784 2000-09-20 Akim Demaille <akim@epita.fr>
786 * tests/atgeneral.m4: Update from Autoconf.
787 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
788 (AT_CHECK_CALC): New macros.
789 Use these macros to test bison with options `', `--raw',
790 `--debug', `--yacc', `--yacc --debug'.
792 2000-09-19 Akim Demaille <akim@epita.fr>
794 * src/output.c: Formatting changes.
795 * src/machine.h: Remove, leaving its contents in...
796 * src/system.h: here.
798 Adjust all dependencies on stdio.h and machine.h.
799 * src/getargs.h: New file.
800 Let all `extern' declarations about getargs.c be replaced with
801 inclusion of `getargs.h'.
802 * src/Makefile.am (noinst_HEADERS): Adjust.
804 * tests/calc.m4 (yyin): Be initialized in main, not on the global
806 (yyerror): Returns void, not int.
807 * doc/bison.texinfo: Formatting changes.
809 2000-09-19 Akim Demaille <akim@epita.fr>
811 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
814 2000-09-18 Akim Demaille <akim@epita.fr>
816 * configure.in: Append WARNING_CFLAGS to CFLAGS.
817 * src/Makefile.am (INCLUDES): Don't.
818 Be ready to fetch headers in lib/.
820 2000-09-18 Akim Demaille <akim@epita.fr>
822 * doc/bison.texinfo: Update the copyright.
823 ANSIfy and GNUify the examples.
826 2000-09-18 Akim Demaille <akim@epita.fr>
828 First set of tests: use the `calc' example from the documentation.
830 * src/bison.s1 (yyparse): Condition the code using `yytname' which
831 is defined only when YYDEBUG is.
832 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
833 * src/files.c (tryopen, tryclose): Formatting changes.
834 Move to the top and be static.
835 * src/reader.c (read_signed_integer): Likewise.
836 * tests/calc.m4: New file.
837 * Makefile.am, suite.m4: Adjust.
838 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
840 2000-09-18 Akim Demaille <akim@epita.fr>
842 Add support for an Autotest test suite for Bison.
844 * m4/m4.m4, m4/atconfig.m4: New files.
845 * m4/Makefile.am (EXTRA_DIST): Adjust.
846 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
848 * src/getargs.c: Display a more standard --version message.
849 * src/reader.c (reader): Formatting changes.
850 No longer depend upon VERSION_STRING.
851 * configure.in: No longer use `dnl'.
852 Set up the test suite and the new directory `tests/.
853 (VERSION_STRING): Remove.
855 2000-04-14 Akim Demaille <akim@epita.fr>
857 * src/reader.c (copy_comment2): New function, same as former
858 `copy_comment', but outputs into two FILE *.
859 (copy_comment): Use it.
860 (parse_union_decl): Use it.
861 (get_type, parse_start_decl): Use the same `invalid' message.
862 (parse_start_decl, parse_union_decl): Use the same `multiple'
864 (parse_union_decl, copy_guard, copy_action): Use the same
866 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
868 2000-03-31 Akim Demaille <akim@epita.fr>
870 * src/files.c (tryopen, tryclose): Move to the top.
873 2000-03-31 Akim Demaille <akim@epita.fr>
875 * src/main.c (main): Don't call `done', exit does it.
877 2000-03-31 Akim Demaille <akim@epita.fr>
879 * allocate.c: s/return (foo)/return foo/.
882 * output.c: Likewise.
883 * reader.c: Likewise.
884 * symtab.c: Likewise.
885 * vmsgetargs.c: Likewise.
887 2000-03-31 Akim Demaille <akim@epita.fr>
889 Clean up the error reporting functions.
891 * src/report.c: New file.
892 * src/report.h: Likewise.
893 * src/Makefile.am: Adjust.
894 * m4/error.m4: New file.
895 * m4/Makefile.am: Adjust.
896 * configure.in (jm_PREREQ_ERROR): Call it.
897 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
899 (fatal, fatals): Remove. All callers use complain.c::fatal.
900 (warn, warni, warns, warnss, warnss): Remove. All callers use
901 complain.c::complain.
902 (toomany): Remove, use fatal instead.
903 * src/files.c (done): No argument, use complain_message_count.
904 * src/main.c (main): Register `done' to `atexit'.
906 * src/getargs.c (usage): More `fputs', less `fprintf'.
908 2000-03-28 Akim Demaille <akim@epita.fr>
910 * lib/: New directory.
911 * Makefile.am (SUBDIRS): Adjust.
912 * configure.in: Adjust.
913 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
915 * src/alloca.c: Moved to lib/.
916 * src/getopt.c: Likewise.
917 * src/getopt1.c: Likewise.
918 * src/getopt.h: Likewise.
919 * src/ansi2knr.c: Likewise.
920 * src/ansi2knr.1: Likewise.
921 * src/Makefile.am: Adjust.
922 * lib/Makefile.am: New file.
924 2000-03-28 Akim Demaille <akim@epita.fr>
926 * src/getargs.c (usage): Refresh the help message.
928 2000-03-17 Akim Demaille <akim@epita.fr>
930 * src/getopt1.c: Updated from textutils 2.0e
931 * src/getopt.c: Likewise.
932 * src/getopt.h: Likewise.
934 2000-03-17 Akim Demaille <akim@epita.fr>
936 * src/Makefile.am (bison.simple): Fix the awk program: quote only
937 the file name, not the whole `#line LINE FILE'.
939 2000-03-17 Akim Demaille <akim@epita.fr>
941 On syntax errors, report the token on which we choked.
943 * src/bison.s1 (yyparse): In the label yyerrlab, when
944 YYERROR_VERBOSE, add yychar in msg.
946 2000-03-17 Akim Demaille <akim@epita.fr>
948 * src/reader.c (copy_at): New function.
949 (copy_guard): Use it.
950 (copy_action): Use it.
952 2000-03-17 Akim Demaille <akim@epita.fr>
954 Be kind to translators, save some useless translations.
956 * src/main.c (banner): New function.
957 (fatal_banner): Use it.
958 (warn_banner): Use it.
960 2000-03-17 Akim Demaille <akim@epita.fr>
962 * src/reader.c (copy_definition): Use copy_string and
963 copy_comment. Removed now unused `match', `ended',
965 (copy_comment, copy_string): Moved, to be visible from
968 2000-03-17 Akim Demaille <akim@epita.fr>
970 * src/reader.c (copy_string): Declare `static inline'. No
971 problems with inline, since it is checked by configure.
972 (copy_comment): Likewise.
974 2000-03-17 Akim Demaille <akim@epita.fr>
976 * src/reader.c (packsymbols): Formatting changes.
978 2000-03-17 Akim Demaille <akim@epita.fr>
980 * src/reader.c (copy_comment): New function, factored out from:
981 (copy_action): Use it. Removed now unused `match', `ended',
983 (copy_guard): Likewise.
985 2000-03-17 Akim Demaille <akim@epita.fr>
987 * src/reader.c (copy_string): New function, factored out from:
988 (copy_action): Use it.
989 (copy_guard): Likewise.
991 2000-03-17 Akim Demaille <akim@epita.fr>
993 Change the handling of @s so that they behave exactly like $s.
994 There is now a pseudo variable @$ (readble and writable), location
995 of the lhs of the rule (by default ranging from the location of
996 the first symbol of the rhs, to the location of the last symbol,
997 or, if the rhs is empty, YYLLOC).
999 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1001 (yyparse): When providing a default semantic action, provide a
1002 default location action.
1003 (after the $): No longer change `*YYLSP', just stack YYLOC the
1004 same way you stack YYVAL.
1005 * src/reader.c (read_declarations): Use warns.
1006 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1007 (copy_action, case '@'): Likewise.
1008 Use a standard error message, to save useless work from
1011 2000-03-17 Akim Demaille <akim@epita.fr>
1013 * src/bison.s1: Formatting and cosmetics changes.
1014 * src/reader.c: Likewise.
1015 Update the Copyright notice.
1017 2000-03-17 Akim Demaille <akim@epita.fr>
1019 * src/bison.s1 (#line): All set to `#line' only, since the
1020 Makefile now handles them.
1022 2000-03-16 Akim Demaille <akim@epita.fr>
1024 * src/output.c (output_rule_data): Output the documentation of
1026 (Copyright notice): Update.
1029 2000-03-16 Akim Demaille <akim@epita.fr>
1031 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1032 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1033 One `#if YYDEBUG' remains, since it uses variables which are
1034 defined only if `YYDEBUG != 0'.
1036 2000-03-16 Akim Demaille <akim@epita.fr>
1038 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1039 and related variables so that the similarities are highlighted.
1041 2000-03-16 Akim Demaille <akim@epita.fr>
1043 * src/bison.s1: Properly indent CPP directives.
1045 2000-03-16 Akim Demaille <akim@epita.fr>
1047 * src/bison.s1: Properly indent the `alloca' CPP section.
1049 2000-03-16 Akim Demaille <akim@epita.fr>
1051 Do not hard code values of directories in `configure.in'.
1052 Update the `configure' tool chain.
1054 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1056 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1057 (AC_OUTPUT): Add m4/Makefile.
1058 Bump to bison 1.28a, 1.29 has never been released.
1059 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1060 handled via src/Makefile.am.
1061 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1062 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1064 * Makefile.am (SUBDIRS): Add m4.
1065 (ACLOCAL_AM_FLAGS): New variable.
1066 (AUTOMAKE_OPTIONS): Add check-news.
1067 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1068 the proper line number and file name.
1069 (DEFS): Propagate the location of bison library files and of the
1071 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1073 * acinclude.m4: Remove, replaced by the directory m4.
1074 * m4/Makefile.am (EXTRA_DIST): New variable.
1075 * m4/gettext.m4: New file, from the fileutils.
1076 * m4/lcmessage.m4: Likewise
1077 * m4/progtest.m4: Likewise.
1078 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1080 2000-03-10 Akim Demaille <akim@epita.fr>
1083 Formatting changes of various comments.
1084 Respect the GNU coding standards at various places.
1085 Don't use `_()' when no translation is needed.
1087 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1090 OS/2 honors TMPDIR environment variable.
1092 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1094 * doc/bison.texinfo: Tweaked spelling and grammar.
1096 Removed reference to price of printed copy.
1097 Mention BISON_SIMPLE and BISON_HAIRY.
1099 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1101 * configure.in, NEWS:
1102 Bison 1.29 released.
1104 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1106 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1107 Added reference card.
1109 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1111 * po/ru.po: Added Russian translation.
1113 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1115 * configure.in: Added Russian translation.
1117 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1119 * configure.in, NEWS, README:
1120 Released version 1.28.
1122 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1125 Squashed redefinition warning on some systems.
1127 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1128 Have configure build version string instead of relying on ANSI string
1131 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1133 * po/POTFILES.in: Got rid of version.c.
1135 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1137 * acconfig.h, configure.in:
1138 Have configure build version string instead of relying on ANSI string
1141 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1144 Dropped mention of `+' for long-named options.
1146 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1148 * src/files.c: Added <unistd.h> for unlink().
1150 * src/Makefile.am, src/system.h:
1153 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1155 * README: Added a FAQ list.
1157 * configure.in, acconfig.h:
1160 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1162 * doc/FAQ, doc/Makefile.am:
1165 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1167 * src/alloc.h, src/symtab.h, src/version.c:
1168 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1170 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1172 * src/.cvsignore, src/Makefile.am:
1173 Reorganized: sources in `src', documentation in `doc'.
1175 * src/lex.c (literalchar):
1176 fixed the code for escaping double quotes (thanks
1179 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1181 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1182 Adjusted paths to reflect directory reorganization.
1184 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1186 * doc/.cvsignore, doc/Makefile.am:
1187 Reorganized: sources in `src', documentation in `doc'.
1189 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1192 Updated AC_INIT file to reflect directory reorganization.
1194 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1195 Reorganized: sources in `src', documentation in `doc'.
1197 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1200 Don't declare calloc() and realloc() if not necessary.
1202 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1204 * configure.in, acconfig.h, acinclude.m4:
1205 Don't declare calloc() and realloc() if not necessary.
1207 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1209 * po/.cvsignore: Added i18n support.
1211 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1213 * acconfig.h, configure.in, Makefile.am:
1216 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1218 * src/bison.s1: Fixed #line numbers.
1220 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1222 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1223 Added PO files from Translation Project.
1225 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1228 Added support for non-ANSI compilers (ansi2knr).
1230 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1232 * configure.in: Bumped version number to 1.27.
1235 Added `bison.simple' to list of files removed by `make distclean'.
1237 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1239 * src/files.c, src/files.h:
1240 Defined locations of parser files in config.h instead of Makefile.
1242 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1244 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1245 Defined locations of parser files in config.h instead of Makefile.
1247 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1250 Removed inappropriate use of $< macro.
1252 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1254 * po/Makefile.in.in, po/POTFILES.in:
1255 Add `po' directory skeleton.
1257 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1259 * README: Document help-bison list.
1261 * configure.in: Add check for mkstemp().
1263 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1265 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1266 Hush a few compiler warnings.
1269 Add tryclose(), which verifies that fclose was successful.
1270 Hush a couple of compiler warnings.
1272 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1274 * Makefile.am, OChangeLog:
1275 ChangeLog is now automatically generated. Include the old version as
1278 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1280 * 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:
1283 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1285 * doc/bison.texinfo: Fix formatting glitch.
1287 * doc/bison.texinfo: Update FSF address.
1289 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1291 * acconfig.h: Update FSF address.
1293 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1296 Don't define PACKAGE here, since config.h defines it.
1298 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1300 * src/reader.c: Update copyright date.
1303 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1304 favor of output directly to stderr (avoids buffer overruns).
1306 * src/reader.c: Some checks for premature EOF.
1308 * 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:
1309 Use prototypes if the compiler understands them.
1311 * src/files.c: Honor TMPDIR on Unix hosts.
1312 Use prototypes if the compiler understands them.
1315 Fix a couple of buffer overrun bugs.
1316 Use prototypes if the compiler understands them.
1318 * src/system.h: Include unistd.h and ctype.h.
1319 Use #ifdef instead of #if for NLS symbols.
1321 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1323 * doc/bison.texinfo:
1324 Delete comment "consider using @set for edition number, etc..." since
1325 we now are doing so.
1327 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1330 Use prototypes if the compiler understands them.
1332 * NEWS: Document 1.26 highlights.
1334 * Makefile.am: Require Automake 1.3 or later.
1337 Use prototypes if the compiler understands them.
1339 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1342 Use VERSION symbol from automake for version number.
1344 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1346 * acconfig.h, configure.in, version.cin:
1347 Use VERSION symbol from automake for version number.
1349 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1352 Distribute original version of simple parser (bison.s1), not built
1353 version (bison.simple).
1355 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1357 * doc/bison.texinfo: Add info dir entry.
1359 * doc/bison.texinfo:
1360 Let automake put version number into documentation.
1362 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1364 * src/bison.cld, src/build.com, src/vmshlp.mar:
1365 Add non-RCS files from /gd/gnu/bison.
1367 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1370 Document the BISON_HAIRY and BISON_SIMPLE variables.
1372 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1374 * src/version.c: Build version.c automatically.
1377 Fix token numbering (used to start at 258, not 257).
1379 * src/system.h: Include config.h.
1381 * src/getargs.c: Update bug report address.
1383 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1384 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1386 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1389 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1391 * configure.in, version.cin:
1392 Build version.c automatically.
1394 * AUTHORS: Add AUTHORS file.
1396 * README: Update bug report address.
1399 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1401 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1404 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1406 * doc/bison.texinfo: Clean up some formatting.
1408 1998-05-05 Richard Stallman <rms@gnu.org>
1410 * doc/bison.texinfo:
1411 Explain better why to make a pure parser.
1413 1998-01-05 Richard Stallman <rms@gnu.org>
1415 * src/files.c (openfiles):
1416 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1417 find a temporary directory, if possible. Do not unlink files while
1420 1997-08-25 Richard Stallman <rms@gnu.org>
1422 * src/reader.c (stack_offset;):
1423 Change some warni to warns.
1425 * src/lex.c (literalchar): Use warns, not warni.
1427 1997-06-28 Richard Stallman <rms@gnu.org>
1429 * src/bison.s1: Add a Bison version comment.
1431 * src/main.c (fatal, warn, berror):
1434 1997-06-28 Richard Stallman <rms@gnu.org>
1436 * Makefile.in (bison_version): New variable.
1437 (dist): Use that variable.
1438 (bison.s1): Substitute the Bison version into bison.simple.
1440 * bison.simple: Add a Bison version comment.
1442 1997-06-18 Richard Stallman <rms@gnu.org>
1444 * src/main.c (fatal, warn, berror):
1445 Make error messages standard.
1446 (toomany): Improve error message text.
1448 * 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:
1449 new.h renamed to alloc.h.
1451 1997-06-18 Richard Stallman <rms@gnu.org>
1453 * Makefile.in: new.h renamed to alloc.h.
1455 1997-05-24 Richard Stallman <rms@gnu.org>
1457 * src/lex.c (literalchar):
1458 Fix the code for escaping \, " and '.
1460 (lex): Avoid trouble when there are many chars
1461 to discard in a char literal with just several chars in it.
1463 1997-05-17 Richard Stallman <rms@gnu.org>
1466 Use malloc, if using alloca is troublesome.
1467 (YYSTACK_USE_ALLOCA): New flag macro.
1468 Define it for some systems and compilers.
1469 (YYSTACK_ALLOC): New macro.
1470 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1471 If it was malloc'd, free it.
1473 1997-05-17 Richard Stallman <rms@gnu.org>
1476 Use malloc, if using alloca is troublesome.
1477 (YYSTACK_USE_ALLOCA): New flag macro.
1478 Define it for some systems and compilers.
1479 (YYSTACK_ALLOC): New macro.
1480 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1481 If it was malloc'd, free it.
1483 1997-04-23 Richard Stallman <rms@gnu.org>
1486 (alloca) [__hpux]: Always define as __builtin_alloca.
1488 1997-04-23 Richard Stallman <rms@gnu.org>
1491 (alloca) [__hpux]: Always define as __builtin_alloca.
1493 1997-04-22 Richard Stallman <rms@gnu.org>
1496 [__hpux]: Include alloca.h (right for HPUX 10)
1497 instead of declaring alloca (right for HPUX 9).
1499 * src/bison.s1 (__yy_memcpy):
1500 Declare arg `count' as unsigned int.
1501 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1503 1997-04-22 Richard Stallman <rms@gnu.org>
1506 [__hpux]: Include alloca.h (right for HPUX 10)
1507 instead of declaring alloca (right for HPUX 9).
1509 * bison.simple (__yy_memcpy):
1510 Declare arg `count' as unsigned int.
1511 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1513 1997-01-03 Richard Stallman <rms@gnu.org>
1515 * src/allocate.c: [__STDC__ or _MSC_VER]:
1516 Declare calloc and realloc to return void *.
1518 1997-01-02 Richard Stallman <rms@gnu.org>
1521 [_MSC_VER]: Include stdlib.h and process.h.
1522 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1524 * src/main.c (main): Return FAILURE as a value.
1525 (printable_version): Declare arg as int, not char.
1527 1997-01-02 Richard Stallman <rms@gnu.org>
1529 * Makefile.in (dist):
1530 Explicitly check for symlinks, and copy them.
1532 1996-12-19 Richard Stallman <rms@gnu.org>
1535 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1537 1996-12-18 Paul Eggert <eggert@gnu.org>
1539 * src/bison.s1 (yyparse):
1540 If __GNUC__ and YYPARSE_PARAM are both defined,
1541 declare yyparse to have a void * argument.
1543 1996-12-18 Paul Eggert <eggert@gnu.org>
1545 * bison.simple (yyparse):
1546 If __GNUC__ and YYPARSE_PARAM are both defined,
1547 declare yyparse to have a void * argument.
1549 1996-12-17 Richard Stallman <rms@gnu.org>
1551 * src/reduce.c (nbits): Add some casts.
1553 1996-08-12 Richard Stallman <rms@gnu.org>
1555 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1557 1996-08-12 Richard Stallman <rms@gnu.org>
1559 * bison.simple: Test _MSDOS as well as _MSDOS_.
1561 1996-07-31 Richard Stallman <rms@gnu.org>
1564 [__sun && __i386]: Include alloca.h.
1566 1996-07-31 Richard Stallman <rms@gnu.org>
1569 [__sun && __i386]: Include alloca.h.
1571 1996-07-30 Richard Stallman <rms@gnu.org>
1573 * src/bison.s1: Comment change.
1575 * src/bison.s1: Test _MSDOS_, not MSDOS.
1577 1996-07-30 Richard Stallman <rms@gnu.org>
1579 * bison.simple: Comment change.
1581 * bison.simple: Test _MSDOS_, not MSDOS.
1583 1996-06-01 Richard Stallman <rms@gnu.org>
1585 * 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:
1586 Insert `_' macro around many string constants.
1589 Insert `_' macro around many string constants.
1591 (main): Call setlocale, bindtextdomain and textdomain.
1593 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1594 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1595 [ENABLE_NLS]: Include libintl.h.
1596 [ENABLE_NLS] (gettext): Define.
1597 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1598 (N_, PACKAGE, LOCALEDIR): New macros.
1600 1996-06-01 Richard Stallman <rms@gnu.org>
1602 * POTFILES.in: New file.
1604 * Makefile.in (allocate.o):
1605 Define target explicitly.
1607 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1608 (LDFLAGS): Set to @LDFLAGS@.
1609 (configure): Run autoconf only if preceding `cd' succeeds.
1610 (bison.s1): Redirect output to temporary file then move the
1611 temporary to the target, rather than redirecting directly to bison.s1.
1612 (clean): Remove config.status and config.log.
1613 (distclean): Don't remove config.status here.
1615 1996-05-12 Richard Stallman <rms@gnu.org>
1618 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1620 1996-05-12 Richard Stallman <rms@gnu.org>
1623 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1625 1996-05-11 Richard Stallman <rms@gnu.org>
1627 * src/bison.s1 (__yy_memcpy):
1628 Really reorder the args, as was supposedly done on Feb 14 1995.
1629 (yyparse): Calls changed accordingly.
1631 1996-05-11 Richard Stallman <rms@gnu.org>
1633 * Makefile.in (dist): Don't use $(srcdir).
1635 * bison.simple (__yy_memcpy):
1636 Really reorder the args, as was supposedly done on Feb 14 1995.
1637 (yyparse): Calls changed accordingly.
1639 1996-01-27 Richard Stallman <rms@gnu.org>
1641 * src/output.c (output_rule_data):
1642 Test YYERROR_VERBOSE in the conditional
1643 around the definition of ttyname.
1645 1995-12-29 Richard Stallman <rms@gnu.org>
1648 Fix line numbers in #line commands.
1650 1995-12-29 Richard Stallman <rms@gnu.org>
1653 Fix line numbers in #line commands.
1655 1995-12-27 Richard Stallman <rms@gnu.org>
1657 * src/bison.s1 (YYPARSE_PARAM_DECL):
1658 In C++, make it always null.
1659 (YYPARSE_PARAM_ARG): New macro.
1660 (yyparse): Use YYPARSE_PARAM_ARG.
1662 1995-12-27 Richard Stallman <rms@gnu.org>
1664 * bison.simple (YYPARSE_PARAM_DECL):
1665 In C++, make it always null.
1666 (YYPARSE_PARAM_ARG): New macro.
1667 (yyparse): Use YYPARSE_PARAM_ARG.
1669 1995-11-29 Richard Stallman <rms@gnu.org>
1671 * doc/bison.texinfo:
1672 Describe literal string tokens, %raw, %no_lines, %token_table.
1674 1995-11-29 Daniel Hagerty <hag@gnu.org>
1676 * doc/bison.texinfo: Fixed update date
1678 1995-10-16 Richard Stallman <rms@gnu.org>
1680 * src/version.c: Version 1.25.
1682 1995-10-16 Richard Stallman <rms@gnu.org>
1684 * NEWS: *** empty log message ***
1686 1995-10-16 Richard Stallman <rms@gnu.org>
1688 * doc/bison.1, doc/bison.rnh:
1691 1995-10-15 Richard Stallman <rms@gnu.org>
1693 * src/vmsgetargs.c, src/getargs.c:
1694 Added -n, -k, and -raw switches.
1695 (noparserflag, toknumflag, rawtoknumflag): New variables.
1697 * src/symtab.h (SALIAS):
1698 New #define for adding aliases to %token.
1699 (struct bucket): Added `alias' field.
1701 * src/reduce.c (reduce_grammar):
1702 Revise error message.
1703 (print_notices): Remove final `.' from error message.
1705 * src/reader.c (reader_output_yylsp):
1707 (readgram): Use `#if 0' around code that accepted %command
1708 inside grammar rules: The documentation doesn't allow it,
1709 and it will fail since the %command processors scan for the next %.
1710 (parse_token_decl): Extended the %token
1711 declaration to allow a multi-character symbol as an alias.
1712 (parse_thong_decl): New function.
1713 (read_declarations): Added %thong declarations.
1714 (read_declarations): Handle NOOP to deal with allowing
1715 % declarations as another means to specify the flags.
1716 (readgram): Allow %prec prior to semantics embedded in a rule.
1717 (skip_to_char, read_declarations, copy_definition)
1718 (parse_token_decl, parse_start_decl, parse_type_decl)
1719 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1720 (get_type_name, copy_guard, copy_action, readgram)
1721 (get_type, packsymbols): Revised most error messages.
1722 Changed `fatal' to `warnxxx' to avoid aborting for error.
1723 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1724 (read_declarations): Improve the error message for
1725 an invalid character. Do not abort.
1726 (read_declarations, copy_guard, copy_action): Use
1727 printable_version to avoid unprintable characters in printed output.
1728 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1729 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1730 Allow the type of a non-terminal can be given
1731 more than once, as long as all specifications give the same type.
1734 (output_headers, output_trailers, output, output_gram)
1735 (output_rule_data): Implement noparserflag variable.
1736 Implement toknumflag variable.
1737 (output): Call reader_output_yylsp to output LTYPESTR.
1739 * src/main.c (main):
1740 If reader sees an error, don't process the grammar.
1741 (fatals): Updated to not use VARARGS1.
1742 (printable_version, int_to_string, warn, warni, warns, warnss)
1743 (warnsss): New error reporting functions. Avoid abort for error.
1746 Added THONG and NOOP for alias processing.
1747 Added SETOPT for the new code that allows setting options with %flags.
1750 Include getopt.h. Add some extern decls.
1751 (safegetc): New function to deal with EOF gracefully.
1752 (literalchar); new function to deal with reading \ escapes.
1753 (lex): Use literalchar.
1754 (lex): Implemented "..." tokens.
1755 (literalchar, lex, parse_percent_token): Made tokenbuffer
1756 always contain the token. This includes growing the token
1757 buffer while reading an integer.
1758 (parse_percent_token): Replaced if-else statement with percent_table.
1759 (parse_percent_token): Added % declarations as another
1760 way to specify the flags -n, -l, and -r. Also added hooks for
1761 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1762 major changes to files.c.
1763 (lex) Retain in the incoming stream a character following
1765 (skip_white_space, lex): Revised most error messages
1766 and changed fatal to warn to avoid aborting.
1767 (percent_table): Added %thong declarations.
1769 * src/gram.h: Comment changes.
1771 * src/files.c (openfiles, open_extra_files, done):
1773 and actfile file. Handle noparserflag. Both for -n switch.
1775 * src/conflicts.c (resolve_sr_conflict):
1776 Remove use of alloca.
1778 1995-06-01 Jim Meyering <meyering@gnu.org>
1780 * doc/bison.texinfo: *** empty log message ***
1782 1995-05-06 Richard Stallman <rms@gnu.org>
1784 * src/bison.s1: Comment change.
1786 1995-05-06 Richard Stallman <rms@gnu.org>
1788 * bison.simple: Comment change.
1790 1995-05-03 Richard Stallman <rms@gnu.org>
1792 * src/version.c: Version now 1.24.
1794 * src/bison.s1: Change distribution terms.
1796 * src/version.c: Version now 1.23.
1798 1995-05-03 Richard Stallman <rms@gnu.org>
1800 * doc/bison.texinfo:
1801 Rewrite "Conditions for Using Bison".
1802 Update version to 1.24.
1804 1995-05-03 Richard Stallman <rms@gnu.org>
1806 * bison.simple: Change distribution terms.
1808 1995-02-23 Richard Stallman <rms@gnu.org>
1810 * src/files.c: Test __VMS_POSIX as well as VMS.
1812 1995-02-14 Jim Meyering <meyering@gnu.org>
1814 * src/bison.s1 (__yy_memcpy):
1815 Renamed from __yy_bcopy to avoid
1816 confusion. Reverse FROM and TO arguments to be consistent with
1819 1995-02-14 Jim Meyering <meyering@gnu.org>
1821 * bison.simple (__yy_memcpy):
1822 Renamed from __yy_bcopy to avoid
1823 confusion. Reverse FROM and TO arguments to be consistent with
1826 1994-11-10 David J. MacKenzie <djm@gnu.org>
1832 * Makefile.in (DISTFILES): Include NEWS.
1834 * Makefile.in (DISTFILES):
1835 Include install-sh, not install.sh.
1837 * configure.in: Update to Autoconf v2 macro names.
1839 1994-10-05 David J. MacKenzie <djm@gnu.org>
1841 * Makefile.in: fix typo
1843 * Makefile.in (prefix, exec_prefix):
1844 Let configure set them.
1846 1994-09-28 David J. MacKenzie <djm@gnu.org>
1848 * Makefile.in: Set datadir to $(prefix)/share.
1850 1994-09-15 Richard Stallman <rms@gnu.org>
1853 Update copyright notice and GPL version.
1855 1994-09-15 Richard Stallman <rms@gnu.org>
1858 Update copyright notice and GPL version.
1860 1994-07-12 Richard Stallman <rms@gnu.org>
1862 * src/reduce.c, src/reader.c:
1865 1994-05-05 David J. MacKenzie <djm@gnu.org>
1867 * Makefile.in: entered into RCS
1869 1994-03-26 Richard Stallman <rms@gnu.org>
1871 * src/bison.s1: entered into RCS
1873 1994-03-26 Richard Stallman <rms@gnu.org>
1875 * bison.simple: entered into RCS
1877 1994-03-25 Richard Stallman <rms@gnu.org>
1879 * src/main.c: entered into RCS
1881 1994-03-24 Richard Stallman <rms@gnu.org>
1883 * src/conflicts.c: entered into RCS
1885 1994-01-02 Richard Stallman <rms@gnu.org>
1887 * Makefile.in: *** empty log message ***
1889 1993-11-21 Richard Stallman <rms@gnu.org>
1891 * src/bison.s1: *** empty log message ***
1893 1993-11-21 Richard Stallman <rms@gnu.org>
1895 * doc/bison.texinfo: entered into RCS
1897 * doc/bison.texinfo: *** empty log message ***
1899 1993-11-21 Richard Stallman <rms@gnu.org>
1901 * bison.simple: *** empty log message ***
1903 1993-10-25 David J. MacKenzie <djm@gnu.org>
1905 * doc/bison.texinfo: *** empty log message ***
1907 1993-10-19 Richard Stallman <rms@gnu.org>
1909 * src/bison.s1: *** empty log message ***
1911 1993-10-19 Richard Stallman <rms@gnu.org>
1913 * bison.simple: *** empty log message ***
1915 1993-10-14 Richard Stallman <rms@gnu.org>
1917 * src/bison.s1: *** empty log message ***
1919 1993-10-14 Richard Stallman <rms@gnu.org>
1921 * bison.simple: *** empty log message ***
1923 1993-09-14 David J. MacKenzie <djm@gnu.org>
1925 * doc/bison.texinfo: *** empty log message ***
1927 1993-09-13 Noah Friedman <friedman@gnu.org>
1929 * Makefile.in: *** empty log message ***
1931 1993-09-10 Richard Stallman <rms@gnu.org>
1933 * src/conflicts.c: *** empty log message ***
1935 * src/system.h: entered into RCS
1937 1993-09-10 Richard Stallman <rms@gnu.org>
1939 * doc/bison.1: entered into RCS
1941 1993-09-06 Noah Friedman <friedman@gnu.org>
1943 * src/version.c: entered into RCS
1945 1993-09-06 Noah Friedman <friedman@gnu.org>
1947 * Makefile.in: *** empty log message ***
1949 1993-07-30 David J. MacKenzie <djm@gnu.org>
1951 * Makefile.in: *** empty log message ***
1953 1993-07-24 Richard Stallman <rms@gnu.org>
1955 * src/bison.s1: *** empty log message ***
1957 1993-07-24 Richard Stallman <rms@gnu.org>
1959 * bison.simple: *** empty log message ***
1961 1993-07-08 David J. MacKenzie <djm@gnu.org>
1963 * Makefile.in: *** empty log message ***
1965 1993-07-04 Richard Stallman <rms@gnu.org>
1967 * src/bison.s1: *** empty log message ***
1969 1993-07-04 Richard Stallman <rms@gnu.org>
1971 * bison.simple: *** empty log message ***
1973 1993-06-26 David J. MacKenzie <djm@gnu.org>
1975 * src/getargs.c: entered into RCS
1977 1993-06-26 David J. MacKenzie <djm@gnu.org>
1979 * doc/bison.texinfo: *** empty log message ***
1981 * doc/bison.1: New file.
1983 1993-06-25 Richard Stallman <rms@gnu.org>
1985 * src/getargs.c: New file.
1987 1993-06-16 Richard Stallman <rms@gnu.org>
1989 * src/bison.s1: *** empty log message ***
1991 1993-06-16 Richard Stallman <rms@gnu.org>
1993 * bison.simple: *** empty log message ***
1995 1993-06-03 Richard Stallman <rms@gnu.org>
1997 * src/bison.s1: New file.
1999 1993-06-03 Richard Stallman <rms@gnu.org>
2001 * doc/bison.texinfo: *** empty log message ***
2003 1993-06-03 Richard Stallman <rms@gnu.org>
2005 * bison.simple: New file.
2007 1993-05-19 Richard Stallman <rms@gnu.org>
2009 * doc/bison.texinfo: New file.
2011 1993-05-07 Noah Friedman <friedman@gnu.org>
2013 * Makefile.in: *** empty log message ***
2015 1993-04-28 Noah Friedman <friedman@gnu.org>
2017 * src/reader.c: *** empty log message ***
2019 1993-04-23 Noah Friedman <friedman@gnu.org>
2021 * src/alloc.h: entered into RCS
2023 1993-04-20 David J. MacKenzie <djm@gnu.org>
2025 * src/version.c: *** empty log message ***
2027 * src/files.c, src/allocate.c:
2030 * src/reader.c: *** empty log message ***
2032 * src/lex.c: entered into RCS
2034 * src/conflicts.c: New file.
2036 * src/symtab.c: entered into RCS
2038 * src/alloc.h: New file.
2040 * src/LR0.c: entered into RCS
2042 1993-04-18 Noah Friedman <friedman@gnu.org>
2044 * src/reader.c: New file.
2046 * src/version.c: *** empty log message ***
2048 1993-04-18 Noah Friedman <friedman@gnu.org>
2050 * Makefile.in: *** empty log message ***
2052 1993-04-17 Noah Friedman <friedman@gnu.org>
2054 * Makefile.in: *** empty log message ***
2056 1993-04-15 Richard Stallman <rms@gnu.org>
2058 * src/main.c, src/files.c:
2061 1993-04-15 Noah Friedman <friedman@gnu.org>
2063 * configure.in: entered into RCS
2065 * configure.in: *** empty log message ***
2067 * configure.in: New file.
2069 1993-04-14 Richard Stallman <rms@gnu.org>
2071 * Makefile.in: New file.
2073 1993-04-13 Richard Stallman <rms@gnu.org>
2075 * src/version.c: New file.
2077 1993-03-25 Richard Stallman <rms@gnu.org>
2079 * src/output.c: entered into RCS
2081 1992-09-25 Richard Stallman <rms@gnu.org>
2083 * configure.bat: entered into RCS
2085 1992-06-22 Richard Stallman <rms@gnu.org>
2087 * src/vmsgetargs.c: entered into RCS
2089 1992-06-22 Richard Stallman <rms@gnu.org>
2091 * doc/bison.rnh: entered into RCS
2093 1992-04-20 David J. MacKenzie <djm@gnu.org>
2095 * README: entered into RCS
2097 1992-01-22 Richard Stallman <rms@gnu.org>
2099 * src/machine.h: entered into RCS
2101 1991-12-21 Richard Stallman <rms@gnu.org>
2103 * src/lalr.c, src/closure.c:
2106 1991-12-20 Richard Stallman <rms@gnu.org>
2108 * src/state.h: entered into RCS
2110 1991-12-18 Richard Stallman <rms@gnu.org>
2112 * src/print.c, src/nullable.c, src/derives.c:
2115 1991-11-03 David J. MacKenzie <djm@gnu.org>
2117 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2120 1988-09-09 Richard Stallman <rms@gnu.org>
2122 * src/bison.hairy: entered into RCS
2124 1987-12-16 Richard Stallman <rms@gnu.org>
2126 * REFERENCES: entered into RCS