1 2001-08-03 Akim Demaille <akim@epita.fr>
3 * src/getargs.c, src/getarg.h (skeleton)): Constify.
4 * src/lex.c (literalchar): Avoid name clashes on `buf'.
5 * src/getargs.c: Include complain.h.
6 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
7 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
9 2001-08-03 Akim Demaille <akim@epita.fr>
11 * src/reader.c (readgram): Display hidden chars in error messages.
13 2001-08-03 Akim Demaille <akim@epita.fr>
15 Update to gettext 0.10.39.
17 2001-08-03 Akim Demaille <akim@epita.fr>
21 2001-08-01 Marc Autret <autret_m@epita.fr>
23 * doc/bison.texinfo: Update.
24 * doc/bison.1 (mandoc): Update.
25 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
26 * src/files.c: Support output files extensions computing.
27 (src_extension): New static variable.
28 (header_extension): New static variable.
30 (get_extension_index): New function, gets the index of an extension
32 (compute_exts_from_gf): New function, computes extensions from the
33 grammar file extension.
34 (compute_exts_from_src): New functions, computes extensions from the
35 C source file extension, file given by ``-o'' option.
36 (compute_base_names): Update.
37 (output_files): Update.
39 2001-08-01 Robert Anisko <anisko_r@epita.fr>
41 * doc/bison.texi: Document @$.
42 (Locations): New section.
44 2001-07-18 Akim Demaille <akim@epita.fr>
46 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
47 * config/prev-version.txt, config/move-if-change: New.
48 * Makefile.am: Adjust.
50 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
52 * src/bison.simple (yyparse): Suppress warning `comparaison
53 between signed and unsigned'.
55 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
57 * src/getargs.h (raw_flag): Remove.
58 * src/getargs.c: Die on `-r'/`--raw'.
59 * src/lex.c (parse_percent_token): Die on `%raw'.
60 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
61 * tests/calc.at: Suppress test with option `--raw'.
63 2001-07-14 Akim Demaille <akim@epita.fr>
66 * configure.in: Require Autoconf 2.50.
67 Update to gettext 0.10.38.
69 2001-03-16 Akim Demaille <akim@epita.fr>
71 * doc/bison.texinfo: ANSIfy the examples.
73 2001-03-16 Akim Demaille <akim@epita.fr>
75 * getargs.c (skeleton): New variable.
76 (longopts): --skeleton is a new option.
77 (shortopts, getargs): -S is a new option.
78 * getargs.h: Declare skeleton.
79 * output.c (output_parser): Use it.
81 2001-03-16 Akim Demaille <akim@epita.fr>
83 * m4/strerror_r.m4: New.
84 * m4/error.m4: Run AC_FUNC_STRERROR_R.
85 * lib/error.h, lib/error.c: Update.
87 2001-03-16 Akim Demaille <akim@epita.fr>
89 * src/getargs.c (longopts): Clean up.
91 2001-02-21 Akim Demaille <akim@epita.fr>
93 * src/reader.c (gensym): `gensym_count' is your own.
94 Use a static buf to create the symbol name, as token_buffer is no
97 2001-02-08 Akim Demaille <akim@epita.fr>
99 * src/conflicts.c (conflict_report): Be sure not to append to res
100 between two calls, which could happen if both first sprintf were
101 skipped, but not the first cp += strlen.
103 2001-02-08 Akim Demaille <akim@epita.fr>
105 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
106 New, from fileutils 4.0.37.
107 * configure.in: Require Autoconf 2.49c. I took some time before
108 making this decision. This is the only way out for portability
109 issues in Bison, it would mean way too much duplicate effort to
110 import in Bison features implemented in 2.49c since 2.13.
111 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
113 2001-02-02 Akim Demaille <akim@epita.fr>
115 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
116 * lib/xalloc.h, lib/xmalloc.c: Update.
118 2001-01-19 Akim Demaille <akim@epita.fr>
120 Get rid of the ad hoc handling of token_buffer in the scanner: use
123 * src/lex.c (token_obstack): New.
124 (init_lex): Initialize it. No longer call...
125 (grow_token_buffer): this. Remove it.
126 Adjust all the places which used it to use the obstack.
128 2001-01-19 Akim Demaille <akim@epita.fr>
130 * src/lex.h: Rename all the tokens:
131 s/\bENDFILE\b/tok_eof/g;
132 s/\bIDENTIFIER\b/tok_identifier/g;
134 Let them be enums, not #define, to ease debugging.
137 2001-01-18 Akim Demaille <akim@epita.fr>
139 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
140 * src/lex.c (maxtoken, grow_token_buffer): Static.
142 2001-01-18 Akim Demaille <akim@epita.fr>
144 Since we now use obstacks, more % directives can be enabled.
146 * src/lex.c (percent_table): Also accept `%yacc',
147 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
149 Handle the actions for `%semantic_parser' and `%pure_parser' here,
150 instead of returning a token.
151 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
152 * src/reader.c (read_declarations): Adjust.
153 * src/files.c (open_files): Don't call `compute_base_names', don't
154 compute `attrsfile' since they depend upon data which might be
155 *in* the input file now.
156 (output_files): Do it here.
157 * src/output.c (output_headers): Document the fact that this patch
158 introduces a guaranteed SEGV for semantic parsers.
159 * doc/bison.texinfo: Document them.
160 * tests/suite.at: Exercise these %options.
162 2000-12-20 Akim Demaille <akim@epita.fr>
164 Also handle the output file (--verbose) with obstacks.
166 * files.c (foutput): Remove.
167 (output_obstack): New.
168 Adjust all dependencies.
169 * src/conflicts.c: Return a string.
170 * src/system.h (obstack_grow_string): Rename as...
171 (obstack_sgrow): this. Be ready to work with non literals.
172 (obstack_fgrow4): New.
174 2000-12-20 Akim Demaille <akim@epita.fr>
176 * src/files.c (open_files): Fix the computation of short_base_name
177 in the case of `-o foo.tab.c'.
179 2000-12-20 Akim Demaille <akim@epita.fr>
181 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
182 (copy_dollar): Now that everything uses obstacks, get rid of the
185 2000-12-20 Akim Demaille <akim@epita.fr>
187 * src/files.c (open_files): Actually the `.output' file is based
188 on the short_base_name, not base_name.
189 * tests/suite.at (Checking output file names): Adjust.
191 2000-12-20 Akim Demaille <akim@epita.fr>
193 * src/bison.s1: Remove, we now use directly...
194 * src/bison.simple: this.
195 * src/Makefile.am: Use pkgdata instead of data.
197 2000-12-20 Akim Demaille <akim@epita.fr>
199 * src/files.c (guard_obstack): New.
200 (open_files): Initialize it.
201 (output_files): Dump it...
202 * src/files.h: Export it.
203 * src/reader.c (copy_guard): Use it.
205 2000-12-19 Akim Demaille <akim@epita.fr>
207 * src/files.c (outfile, defsfile, actfile): Removed as global
209 (open_files): Don't compute them.
210 (output_files): Adjust.
211 (base_name, short_base_name): Be global.
214 2000-12-19 Akim Demaille <akim@epita.fr>
216 * src/files.c (strsuffix): New.
217 (stringappend): Be just like strcat but allocate.
218 (base_names): Eve out from open_files.
219 Try to simplify the rather hairy computation of base_name and
221 (open_files): Use it.
222 * tests/suite.at (Checking output file names): New test.
224 2000-12-19 Akim Demaille <akim@epita.fr>
226 * src/system.h (obstack_grow_literal_string): Rename as...
227 (obstack_grow_string): this.
228 * src/output.c (output_parser): Recognize `%% actions' instead of
230 * src/bison.s1: s/$/%% actions/.
231 * src/bison.hairy: Likewise.
233 2000-12-19 Akim Demaille <akim@epita.fr>
235 * src/output.c (output_parser): Compute the `#line' lines when
237 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
238 Suggested by Hans Aberg.
240 2000-12-19 Akim Demaille <akim@epita.fr>
242 Let the handling of the skeleton files be local to the procedures
245 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
247 (fparser, open_extra_files): Remove.
248 (open_files, output_files): Don't take care of fparser.
249 * src/files.h: Adjust.
250 * src/output.c (output_parser): Open and close the file to the
252 * src/reader.c (read_declarations): When %semantic_parser, open
255 2000-12-19 Akim Demaille <akim@epita.fr>
257 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
258 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
260 2000-12-19 Akim Demaille <akim@epita.fr>
262 * src/files.c (open_files): Yipee! We no longer need all the code
263 looking for `/tmp' since we have no tmp file.
265 2000-12-19 Akim Demaille <akim@epita.fr>
267 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
269 * src/files.c (open_files): Less dependency on MSDOS etc.
271 2000-12-14 Akim Demaille <akim@epita.fr>
273 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
274 Provide a default definition.
275 Use it when executing the default @ action.
276 * src/reader.c (reader_output_yylsp): No longer include
277 `timestamp' and `text' in the default YYLTYPE.
279 2000-12-12 Akim Demaille <akim@epita.fr>
281 * src/reader.c (copy_definition, parse_union_decl, copy_action)
282 (copy_guard): Quote the file names.
283 Reported by Laurent Mascherpa.
285 2000-12-12 Akim Demaille <akim@epita.fr>
287 * src/output.c (output_headers, output_program, output): Be sure
288 to escape special characters when outputting filenames.
289 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
290 (output_headers): Don't depend on them, Use ACTSTR.
292 2000-11-17 Akim Demaille <akim@epita.fr>
294 * lib/obstack.h: Formatting changes.
295 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
296 prevents type checking.
297 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
298 cast the value to (void *): assigning a `foo *' to a `void *'
300 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
301 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
304 2000-11-17 Akim Demaille <akim@epita.fr>
306 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
308 (suite.m4, regression.m4, calc.m4): these.
309 * tests/atgeneral.m4: Update from CVS Autoconf.
311 2000-11-17 Akim Demaille <akim@epita.fr>
313 * tests/regression.m4 (%union and --defines): New test,
314 demonstrating a current bug in the obstack implementation.
316 2000-11-17 Akim Demaille <akim@epita.fr>
318 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
320 Use them to declare the variables which are global or local to
323 2000-11-17 Akim Demaille <akim@epita.fr>
325 * acconfig.h: Remove, no longer used.
327 2000-11-07 Akim Demaille <akim@epita.fr>
329 * src: s/Copyright (C)/Copyright/g.
331 2000-11-07 Akim Demaille <akim@epita.fr>
333 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
335 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
337 2000-11-07 Akim Demaille <akim@epita.fr>
339 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
340 Merge in a single CPP if/else.
342 2000-11-07 Akim Demaille <akim@epita.fr>
344 * src/output.c (output): Remove useless variables.
345 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
346 argument `data' for consistency with the prototypes.
348 (obstack_copy, obstack_copy0): Rename the second argument as
349 `address' for consistency. Qualify it `const'.
350 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
351 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
352 `const' their input argument (`data' or `address').
353 Adjust the corresponding macros to include `const' in casts.
355 2000-11-03 Akim Demaille <akim@epita.fr>
357 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
358 s/PFILE1/BISON_HAIRY/.
361 2000-11-03 Akim Demaille <akim@epita.fr>
363 For some reason, this was not applied.
365 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
366 `unlink': it's no longer used.
368 2000-11-03 Akim Demaille <akim@epita.fr>
370 * src/files.c (skeleton_find): New function, eved out of...
371 (open_files, open_extra_files): here.
373 2000-11-03 Akim Demaille <akim@epita.fr>
377 * src/files.c (obstack_save): New function.
379 (output_files): this.
381 * src/main.c (main): Don't use `atexit' to register `done', since
382 it no longer has to remove tmp files, just call `output_files'
383 when there are no errors.
385 2000-11-02 Akim Demaille <akim@epita.fr>
387 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
388 `unlink': it's no longer used.
389 * src/files.h: Formatting changes.
391 2000-11-02 Akim Demaille <akim@epita.fr>
393 Remove the last uses of mktemp and unlink/delete.
395 * src/files.c (fdefines, ftable): Removed.
396 (defines_ostack, table_obstack): New.
397 Adjust dependencies of the former into uses of the latter.
398 * src/output.c (output_short_or_char_table, output_short_table):
399 Convert to using obstacks.
400 * src/reader.c (copy_comment2): Accept one FILE * and two
402 (output_token_defines, reader_output_yylsp): Use obstacks.
403 * src/system.h (obstack_fgrow3): New.
405 2000-11-01 Akim Demaille <akim@epita.fr>
407 Change each use of `fattrs' into a use of `attrs_obstack'.
409 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
410 * src/files.c (fattrs): Remove.
411 (attrs_obstack): New.
412 Adjust all dependencies.
413 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
415 2000-11-01 Akim Demaille <akim@epita.fr>
418 Change each use of `faction' into a use of `action_obstack'.
420 * lib/obstack.h, lib/obstack.c: New files.
421 * src/files.c (faction): Remove.
422 (action_obstack): New.
423 Adjust all dependencies.
425 2000-10-20 Akim Demaille <akim@epita.fr>
427 * lib/quote.h (PARAMS): New macro. Use it.
429 2000-10-16 Akim Demaille <akim@epita.fr>
431 * src/output.c (output_short_or_char_table): New function.
432 (output_short_table, output_token_translations): Use it.
433 (goto_actions): Use output_short_table.
435 2000-10-16 Akim Demaille <akim@epita.fr>
437 * src/symtab.c (bucket_new): New function.
440 * src/output.c (output_short_table): New argument to display the
441 comment associated with the table.
443 (output_gram): Use it.
444 (output_rule_data): Nicer output layout for YYTNAME.
446 2000-10-16 Akim Demaille <akim@epita.fr>
448 * src/lex.c (read_typename): New function.
450 * src/reader.c (copy_dollar): Likewise.
452 2000-10-16 Akim Demaille <akim@epita.fr>
454 * src/reader.c (copy_comment2): Expect the input stream to be on
455 the `/' which is suspected to open a comment, instead of being
456 called after `//' or `/*' was read.
457 (copy_comment, copy_definition, parse_union_decl, copy_action)
458 (copy_guard): Adjust.
460 2000-10-16 Akim Demaille <akim@epita.fr>
462 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
463 `read_signed_integer'.
465 2000-10-16 Akim Demaille <akim@epita.fr>
467 * src/reader.c (copy_dollar): New function.
468 (copy_guard, copy_action): Use it.
470 2000-10-16 Akim Demaille <akim@epita.fr>
472 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
473 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
474 New files, from Fileutils 4.0.27.
475 * src/main.c (printable_version): Remove.
476 * src/lex.c, src/reader.c: Use `quote'.
478 2000-10-04 Akim Demaille <akim@epita.fr>
480 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
482 2000-10-04 Akim Demaille <akim@epita.fr>
484 * doc/bison.texinfo: Various typos spotted by Neil Booth.
486 2000-10-04 Akim Demaille <akim@epita.fr>
488 When a literal string is used to define two different tokens,
489 `bison -v' segfaults.
490 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
492 * tests/regression.m4: New file.
493 Include the core of the sample provided by Piotr Gackiewicz.
494 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
497 2000-10-04 Akim Demaille <akim@epita.fr>
499 * src/reader.c (parse_expect_decl): Keep `count' within the size
503 2000-10-02 Paul Eggert <eggert@twinsun.com>
505 * bison.s1 (yyparse): Assign the default value
506 unconditionally, to avoid a GCC warning and make the parser a
509 2000-10-02 Akim Demaille <akim@epita.fr>
511 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
514 2000-10-02 Akim Demaille <akim@epita.fr>
516 * src/derives.c, src/print.c, src/reduce.c: To ease the
517 translation, move some `\n' out of the translated strings.
519 2000-10-02 Akim Demaille <akim@epita.fr>
521 The location tracking mechanism is precious for parse error
522 messages. Nevertheless, it is enabled only when `@n' is used in
523 the grammar, which is a different issue (you can use it in error
524 message, but not in the grammar per se). Therefore, there should
525 be another means to enable it.
527 * src/getargs.c (getargs): Support `--locations'.
529 * src/getargs.h (locationsflag): Export it.
530 * src/lex.c (percent_table): Support `%locations'.
531 * src/reader.c (yylsp_needed): Remove this variable, now replaced
532 with `locationsflag'.
533 * doc/bison.texinfo: Document `--locations' and `%locations'.
535 * tests/calc.m4: Test it.
537 For regularity of the names, replace each
538 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
539 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
540 In addition replace each `flag' with `_flag'.
542 2000-10-02 Akim Demaille <akim@epita.fr>
544 Also test parse error messages, including with YYERROR_VERBOSE.
546 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
548 Use it to check the computations.
549 Use it to check `nonassoc' is honored.
550 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
552 (_AT_CHECK_CALC): Adjust to this option.
553 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
555 2000-10-02 Akim Demaille <akim@epita.fr>
557 Test also `--verbose', `--defines' and `--name-prefix'. Testing
558 the latter demonstrates a flaw in the handling of non debugging
559 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
560 was used in order to simplify:
576 unfortunately this leads to a CPP conflict when
577 `--name-prefix=foo' is used since it produces `#define yydebug
580 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
581 (YYDPRINTF): New macro.
583 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
585 Also test `--verbose', `--defines' and `--name-prefix'.
587 2000-10-02 Akim Demaille <akim@epita.fr>
589 Improve the readability of the produced parsers.
591 * src/bison.s1: Formatting changes.
592 Improve the comment related to the `$' mark.
593 (yydefault): Don't fall through to `yyresume': `goto' there.
594 * src/output.c (output_parser): When the `$' is met, skip the end
596 New variable, `number_of_dollar_signs', to check there's exactly
597 one `$' in the parser skeleton.
599 2000-10-02 Akim Demaille <akim@epita.fr>
601 * lib/xstrdup.c: New file, from the fileutils.
602 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
603 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
604 instead of strlen + xmalloc + strcpy.
605 * src/symtab.c (copys): Remove, use xstrdup instead.
607 2000-10-02 Akim Demaille <akim@epita.fr>
609 * src/gram.h (associativity): New enum type which replaces the
610 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
611 `right_assoc', `left_assoc' and `non_assoc'.
612 Adjust all dependencies.
613 * src/reader.c: Formatting changes.
614 (LTYPESTR): Don't define it, use it as a literal in
615 `reader_output_yylsp'.
616 * src/symtab.h (symbol_class): New enum type which replaces the
617 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
618 `sunknown', `stoken and `snterm'.
620 2000-10-02 Akim Demaille <akim@epita.fr>
622 * src/getargs.c (fixed_outfiles): Rename as...
623 (yaccflag): for consistency and accuracy.
626 2000-10-02 Akim Demaille <akim@epita.fr>
628 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
629 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
630 difficult and introduced a lot of core dump. It turns out that
631 Bison used an implementation of `xmalloc' based on `calloc', and
632 at various places it does depend upon the initialization to 0. I
633 have not tried to isolate the pertinent places, and all the former
634 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
635 someone should address this issue.
637 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
638 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
641 * src/warshall.h: New file.
644 2000-10-02 Akim Demaille <akim@epita.fr>
646 Various anti-`extern in *.c' changes.
648 * src/system.h: Include `assert.h'.
650 2000-10-02 Akim Demaille <akim@epita.fr>
652 * src/state.h (nstates, final_state, first_state, first_shift)
653 (first_reduction): Move their exportation from here...
654 * src/LR0.h: to here.
656 * src/getargs.c (statisticsflag): New variable.
657 Add support for `--statistics'.
660 Remove a lot of now useless `extern' statements in most files.
662 2000-10-02 Akim Demaille <akim@epita.fr>
664 * src/LR0.h: New file.
667 2000-10-02 Akim Demaille <akim@epita.fr>
669 * src/print.h: New file.
671 * src/print.c: Formatting and ordering changes.
672 (verbose, terse): Replace with...
673 (print_results): this new function.
676 2000-10-02 Akim Demaille <akim@epita.fr>
678 * src/conflicts.c (conflict_report): New function.
679 (conflict_log, verbose_conflict_log): Replace with...
680 (print_conflicts): this function.
682 * src/conflicts.h: New file.
683 Propagate its inclusion.
685 2000-10-02 Akim Demaille <akim@epita.fr>
687 * src/nullable.h: New file.
688 Propagate its inclusion.
689 * src/nullable.c: Formatting changes.
691 2000-10-02 Akim Demaille <akim@epita.fr>
693 * src/reduce.h: New file.
694 Propagate its inclusion.
695 * src/reduce.c: Topological sort and other formatting changes.
696 (bool, TRUE, FALSE): Move their definition to...
697 * src/system.h: here.
699 2000-10-02 Akim Demaille <akim@epita.fr>
701 * src/files.c: Formatting changes.
702 (tryopen, tryclose, openfiles): Rename as...
703 (xfopen, xfclose, open_files): this.
704 (stringappend): static.
705 * src/files.h: Complete the list of exported symbols.
708 2000-10-02 Akim Demaille <akim@epita.fr>
710 * src/reader.h: New file.
711 Propagate its use instead of tedious list of `extern' and
713 * src/reader.c: Formatting changes, topological sort,
716 2000-10-02 Akim Demaille <akim@epita.fr>
718 * src/lex.h: Prototype `lex.c' exported functions.
719 * src/reader.c: Adjust.
720 * src/lex.c: Formatting changes.
721 (safegetc): Rename as...
724 2000-10-02 Akim Demaille <akim@epita.fr>
726 * src/lalr.h: New file.
727 Propagate its inclusion instead of prototypes and `extern'.
728 * src/lalr.c: Formatting changes, topological sorting etc.
730 2000-10-02 Akim Demaille <akim@epita.fr>
732 * src/output.c (token_actions): Introduce a temporary array,
733 YYDEFACT, that makes it possible for this function to use
736 2000-10-02 Akim Demaille <akim@epita.fr>
738 `user_toknums' is output as a `short[]' in `output.c', while it is
739 defined as a `int[]' in `reader.c'. For consistency with the
740 other output tables, `user_toknums' is now defined as a table of
743 * src/reader.c (user_toknums): Be a short table instead of an int
747 Factor the short table outputs.
749 * src/output.c (output_short_table): New function.
750 * src/output.c (output_gram, output_stos, output_rule_data)
751 (output_base, output_table, output_check): Use it.
753 2000-10-02 Akim Demaille <akim@epita.fr>
755 * src/output.c (output): Topological sort of the functions, in
756 order to get rid of the `static' prototypes.
757 No longer use `register'.
758 * src/output.h: New file.
759 Propagate its inclusion in files explicitly prototyping functions
762 2000-09-21 Akim Demaille <akim@epita.fr>
764 * src/atgeneral.m4: Update from Autoconf.
766 2000-09-21 Akim Demaille <akim@epita.fr>
768 * src/closure.h: New file.
769 * src/closure.c: Formatting changes, topological sort over the
770 functions, use of closure.h.
771 (initialize_closure, finalize_closure): Rename as...
772 (new_closure, free_closure): these. Adjust dependencies.
773 * src/LR0.c: Formatting changes, topological sort, use of
775 (initialize_states): Rename as...
777 * src/Makefile.am (noinst_HEADERS): Adjust.
779 2000-09-20 Akim Demaille <akim@epita.fr>
781 * src/acconfig.h: Don't protect config.h against multiple
784 * src/system.h: Define PARAMS.
785 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
786 purpose of config.h. system.h must not try to fix wrong
787 definitions in config.h.
789 2000-09-20 Akim Demaille <akim@epita.fr>
791 * src/derives.h: New file.
792 * src/main.c, src/derives.h: Use it.
794 * src/Makefile.am (noinst_HEADERS): Adjust.
796 2000-09-20 Akim Demaille <akim@epita.fr>
798 * tests/atgeneral.m4: Update from Autoconf.
799 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
800 (AT_CHECK_CALC): New macros.
801 Use these macros to test bison with options `', `--raw',
802 `--debug', `--yacc', `--yacc --debug'.
804 2000-09-19 Akim Demaille <akim@epita.fr>
806 * src/output.c: Formatting changes.
807 * src/machine.h: Remove, leaving its contents in...
808 * src/system.h: here.
810 Adjust all dependencies on stdio.h and machine.h.
811 * src/getargs.h: New file.
812 Let all `extern' declarations about getargs.c be replaced with
813 inclusion of `getargs.h'.
814 * src/Makefile.am (noinst_HEADERS): Adjust.
816 * tests/calc.m4 (yyin): Be initialized in main, not on the global
818 (yyerror): Returns void, not int.
819 * doc/bison.texinfo: Formatting changes.
821 2000-09-19 Akim Demaille <akim@epita.fr>
823 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
826 2000-09-18 Akim Demaille <akim@epita.fr>
828 * configure.in: Append WARNING_CFLAGS to CFLAGS.
829 * src/Makefile.am (INCLUDES): Don't.
830 Be ready to fetch headers in lib/.
832 2000-09-18 Akim Demaille <akim@epita.fr>
834 * doc/bison.texinfo: Update the copyright.
835 ANSIfy and GNUify the examples.
838 2000-09-18 Akim Demaille <akim@epita.fr>
840 First set of tests: use the `calc' example from the documentation.
842 * src/bison.s1 (yyparse): Condition the code using `yytname' which
843 is defined only when YYDEBUG is.
844 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
845 * src/files.c (tryopen, tryclose): Formatting changes.
846 Move to the top and be static.
847 * src/reader.c (read_signed_integer): Likewise.
848 * tests/calc.m4: New file.
849 * Makefile.am, suite.m4: Adjust.
850 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
852 2000-09-18 Akim Demaille <akim@epita.fr>
854 Add support for an Autotest test suite for Bison.
856 * m4/m4.m4, m4/atconfig.m4: New files.
857 * m4/Makefile.am (EXTRA_DIST): Adjust.
858 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
860 * src/getargs.c: Display a more standard --version message.
861 * src/reader.c (reader): Formatting changes.
862 No longer depend upon VERSION_STRING.
863 * configure.in: No longer use `dnl'.
864 Set up the test suite and the new directory `tests/.
865 (VERSION_STRING): Remove.
867 2000-04-14 Akim Demaille <akim@epita.fr>
869 * src/reader.c (copy_comment2): New function, same as former
870 `copy_comment', but outputs into two FILE *.
871 (copy_comment): Use it.
872 (parse_union_decl): Use it.
873 (get_type, parse_start_decl): Use the same `invalid' message.
874 (parse_start_decl, parse_union_decl): Use the same `multiple'
876 (parse_union_decl, copy_guard, copy_action): Use the same
878 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
880 2000-03-31 Akim Demaille <akim@epita.fr>
882 * src/files.c (tryopen, tryclose): Move to the top.
885 2000-03-31 Akim Demaille <akim@epita.fr>
887 * src/main.c (main): Don't call `done', exit does it.
889 2000-03-31 Akim Demaille <akim@epita.fr>
891 * allocate.c: s/return (foo)/return foo/.
894 * output.c: Likewise.
895 * reader.c: Likewise.
896 * symtab.c: Likewise.
897 * vmsgetargs.c: Likewise.
899 2000-03-31 Akim Demaille <akim@epita.fr>
901 Clean up the error reporting functions.
903 * src/report.c: New file.
904 * src/report.h: Likewise.
905 * src/Makefile.am: Adjust.
906 * m4/error.m4: New file.
907 * m4/Makefile.am: Adjust.
908 * configure.in (jm_PREREQ_ERROR): Call it.
909 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
911 (fatal, fatals): Remove. All callers use complain.c::fatal.
912 (warn, warni, warns, warnss, warnss): Remove. All callers use
913 complain.c::complain.
914 (toomany): Remove, use fatal instead.
915 * src/files.c (done): No argument, use complain_message_count.
916 * src/main.c (main): Register `done' to `atexit'.
918 * src/getargs.c (usage): More `fputs', less `fprintf'.
920 2000-03-28 Akim Demaille <akim@epita.fr>
922 * lib/: New directory.
923 * Makefile.am (SUBDIRS): Adjust.
924 * configure.in: Adjust.
925 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
927 * src/alloca.c: Moved to lib/.
928 * src/getopt.c: Likewise.
929 * src/getopt1.c: Likewise.
930 * src/getopt.h: Likewise.
931 * src/ansi2knr.c: Likewise.
932 * src/ansi2knr.1: Likewise.
933 * src/Makefile.am: Adjust.
934 * lib/Makefile.am: New file.
936 2000-03-28 Akim Demaille <akim@epita.fr>
938 * src/getargs.c (usage): Refresh the help message.
940 2000-03-17 Akim Demaille <akim@epita.fr>
942 * src/getopt1.c: Updated from textutils 2.0e
943 * src/getopt.c: Likewise.
944 * src/getopt.h: Likewise.
946 2000-03-17 Akim Demaille <akim@epita.fr>
948 * src/Makefile.am (bison.simple): Fix the awk program: quote only
949 the file name, not the whole `#line LINE FILE'.
951 2000-03-17 Akim Demaille <akim@epita.fr>
953 On syntax errors, report the token on which we choked.
955 * src/bison.s1 (yyparse): In the label yyerrlab, when
956 YYERROR_VERBOSE, add yychar in msg.
958 2000-03-17 Akim Demaille <akim@epita.fr>
960 * src/reader.c (copy_at): New function.
961 (copy_guard): Use it.
962 (copy_action): Use it.
964 2000-03-17 Akim Demaille <akim@epita.fr>
966 Be kind to translators, save some useless translations.
968 * src/main.c (banner): New function.
969 (fatal_banner): Use it.
970 (warn_banner): Use it.
972 2000-03-17 Akim Demaille <akim@epita.fr>
974 * src/reader.c (copy_definition): Use copy_string and
975 copy_comment. Removed now unused `match', `ended',
977 (copy_comment, copy_string): Moved, to be visible from
980 2000-03-17 Akim Demaille <akim@epita.fr>
982 * src/reader.c (copy_string): Declare `static inline'. No
983 problems with inline, since it is checked by configure.
984 (copy_comment): Likewise.
986 2000-03-17 Akim Demaille <akim@epita.fr>
988 * src/reader.c (packsymbols): Formatting changes.
990 2000-03-17 Akim Demaille <akim@epita.fr>
992 * src/reader.c (copy_comment): New function, factored out from:
993 (copy_action): Use it. Removed now unused `match', `ended',
995 (copy_guard): Likewise.
997 2000-03-17 Akim Demaille <akim@epita.fr>
999 * src/reader.c (copy_string): New function, factored out from:
1000 (copy_action): Use it.
1001 (copy_guard): Likewise.
1003 2000-03-17 Akim Demaille <akim@epita.fr>
1005 Change the handling of @s so that they behave exactly like $s.
1006 There is now a pseudo variable @$ (readble and writable), location
1007 of the lhs of the rule (by default ranging from the location of
1008 the first symbol of the rhs, to the location of the last symbol,
1009 or, if the rhs is empty, YYLLOC).
1011 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1013 (yyparse): When providing a default semantic action, provide a
1014 default location action.
1015 (after the $): No longer change `*YYLSP', just stack YYLOC the
1016 same way you stack YYVAL.
1017 * src/reader.c (read_declarations): Use warns.
1018 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1019 (copy_action, case '@'): Likewise.
1020 Use a standard error message, to save useless work from
1023 2000-03-17 Akim Demaille <akim@epita.fr>
1025 * src/bison.s1: Formatting and cosmetics changes.
1026 * src/reader.c: Likewise.
1027 Update the Copyright notice.
1029 2000-03-17 Akim Demaille <akim@epita.fr>
1031 * src/bison.s1 (#line): All set to `#line' only, since the
1032 Makefile now handles them.
1034 2000-03-16 Akim Demaille <akim@epita.fr>
1036 * src/output.c (output_rule_data): Output the documentation of
1038 (Copyright notice): Update.
1041 2000-03-16 Akim Demaille <akim@epita.fr>
1043 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1044 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1045 One `#if YYDEBUG' remains, since it uses variables which are
1046 defined only if `YYDEBUG != 0'.
1048 2000-03-16 Akim Demaille <akim@epita.fr>
1050 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1051 and related variables so that the similarities are highlighted.
1053 2000-03-16 Akim Demaille <akim@epita.fr>
1055 * src/bison.s1: Properly indent CPP directives.
1057 2000-03-16 Akim Demaille <akim@epita.fr>
1059 * src/bison.s1: Properly indent the `alloca' CPP section.
1061 2000-03-16 Akim Demaille <akim@epita.fr>
1063 Do not hard code values of directories in `configure.in'.
1064 Update the `configure' tool chain.
1066 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1068 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1069 (AC_OUTPUT): Add m4/Makefile.
1070 Bump to bison 1.28a, 1.29 has never been released.
1071 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1072 handled via src/Makefile.am.
1073 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1074 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1076 * Makefile.am (SUBDIRS): Add m4.
1077 (ACLOCAL_AM_FLAGS): New variable.
1078 (AUTOMAKE_OPTIONS): Add check-news.
1079 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1080 the proper line number and file name.
1081 (DEFS): Propagate the location of bison library files and of the
1083 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1085 * acinclude.m4: Remove, replaced by the directory m4.
1086 * m4/Makefile.am (EXTRA_DIST): New variable.
1087 * m4/gettext.m4: New file, from the fileutils.
1088 * m4/lcmessage.m4: Likewise
1089 * m4/progtest.m4: Likewise.
1090 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1092 2000-03-10 Akim Demaille <akim@epita.fr>
1095 Formatting changes of various comments.
1096 Respect the GNU coding standards at various places.
1097 Don't use `_()' when no translation is needed.
1099 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1102 OS/2 honors TMPDIR environment variable.
1104 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1106 * doc/bison.texinfo: Tweaked spelling and grammar.
1108 Removed reference to price of printed copy.
1109 Mention BISON_SIMPLE and BISON_HAIRY.
1111 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1113 * configure.in, NEWS:
1114 Bison 1.29 released.
1116 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1118 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1119 Added reference card.
1121 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1123 * po/ru.po: Added Russian translation.
1125 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1127 * configure.in: Added Russian translation.
1129 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1131 * configure.in, NEWS, README:
1132 Released version 1.28.
1134 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1137 Squashed redefinition warning on some systems.
1139 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1140 Have configure build version string instead of relying on ANSI string
1143 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1145 * po/POTFILES.in: Got rid of version.c.
1147 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1149 * acconfig.h, configure.in:
1150 Have configure build version string instead of relying on ANSI string
1153 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1156 Dropped mention of `+' for long-named options.
1158 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1160 * src/files.c: Added <unistd.h> for unlink().
1162 * src/Makefile.am, src/system.h:
1165 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1167 * README: Added a FAQ list.
1169 * configure.in, acconfig.h:
1172 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1174 * doc/FAQ, doc/Makefile.am:
1177 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1179 * src/alloc.h, src/symtab.h, src/version.c:
1180 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1182 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1184 * src/.cvsignore, src/Makefile.am:
1185 Reorganized: sources in `src', documentation in `doc'.
1187 * src/lex.c (literalchar):
1188 fixed the code for escaping double quotes (thanks
1191 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1193 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1194 Adjusted paths to reflect directory reorganization.
1196 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1198 * doc/.cvsignore, doc/Makefile.am:
1199 Reorganized: sources in `src', documentation in `doc'.
1201 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1204 Updated AC_INIT file to reflect directory reorganization.
1206 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1207 Reorganized: sources in `src', documentation in `doc'.
1209 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1212 Don't declare calloc() and realloc() if not necessary.
1214 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1216 * configure.in, acconfig.h, acinclude.m4:
1217 Don't declare calloc() and realloc() if not necessary.
1219 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1221 * po/.cvsignore: Added i18n support.
1223 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1225 * acconfig.h, configure.in, Makefile.am:
1228 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1230 * src/bison.s1: Fixed #line numbers.
1232 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1234 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1235 Added PO files from Translation Project.
1237 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1240 Added support for non-ANSI compilers (ansi2knr).
1242 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1244 * configure.in: Bumped version number to 1.27.
1247 Added `bison.simple' to list of files removed by `make distclean'.
1249 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1251 * src/files.c, src/files.h:
1252 Defined locations of parser files in config.h instead of Makefile.
1254 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1256 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1257 Defined locations of parser files in config.h instead of Makefile.
1259 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1262 Removed inappropriate use of $< macro.
1264 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1266 * po/Makefile.in.in, po/POTFILES.in:
1267 Add `po' directory skeleton.
1269 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1271 * README: Document help-bison list.
1273 * configure.in: Add check for mkstemp().
1275 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1277 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1278 Hush a few compiler warnings.
1281 Add tryclose(), which verifies that fclose was successful.
1282 Hush a couple of compiler warnings.
1284 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1286 * Makefile.am, OChangeLog:
1287 ChangeLog is now automatically generated. Include the old version as
1290 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1292 * 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:
1295 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1297 * doc/bison.texinfo: Fix formatting glitch.
1299 * doc/bison.texinfo: Update FSF address.
1301 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1303 * acconfig.h: Update FSF address.
1305 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1308 Don't define PACKAGE here, since config.h defines it.
1310 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1312 * src/reader.c: Update copyright date.
1315 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1316 favor of output directly to stderr (avoids buffer overruns).
1318 * src/reader.c: Some checks for premature EOF.
1320 * 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:
1321 Use prototypes if the compiler understands them.
1323 * src/files.c: Honor TMPDIR on Unix hosts.
1324 Use prototypes if the compiler understands them.
1327 Fix a couple of buffer overrun bugs.
1328 Use prototypes if the compiler understands them.
1330 * src/system.h: Include unistd.h and ctype.h.
1331 Use #ifdef instead of #if for NLS symbols.
1333 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1335 * doc/bison.texinfo:
1336 Delete comment "consider using @set for edition number, etc..." since
1337 we now are doing so.
1339 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1342 Use prototypes if the compiler understands them.
1344 * NEWS: Document 1.26 highlights.
1346 * Makefile.am: Require Automake 1.3 or later.
1349 Use prototypes if the compiler understands them.
1351 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1354 Use VERSION symbol from automake for version number.
1356 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1358 * acconfig.h, configure.in, version.cin:
1359 Use VERSION symbol from automake for version number.
1361 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1364 Distribute original version of simple parser (bison.s1), not built
1365 version (bison.simple).
1367 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1369 * doc/bison.texinfo: Add info dir entry.
1371 * doc/bison.texinfo:
1372 Let automake put version number into documentation.
1374 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1376 * src/bison.cld, src/build.com, src/vmshlp.mar:
1377 Add non-RCS files from /gd/gnu/bison.
1379 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1382 Document the BISON_HAIRY and BISON_SIMPLE variables.
1384 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1386 * src/version.c: Build version.c automatically.
1389 Fix token numbering (used to start at 258, not 257).
1391 * src/system.h: Include config.h.
1393 * src/getargs.c: Update bug report address.
1395 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1396 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1398 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1401 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1403 * configure.in, version.cin:
1404 Build version.c automatically.
1406 * AUTHORS: Add AUTHORS file.
1408 * README: Update bug report address.
1411 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1413 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1416 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1418 * doc/bison.texinfo: Clean up some formatting.
1420 1998-05-05 Richard Stallman <rms@gnu.org>
1422 * doc/bison.texinfo:
1423 Explain better why to make a pure parser.
1425 1998-01-05 Richard Stallman <rms@gnu.org>
1427 * src/files.c (openfiles):
1428 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1429 find a temporary directory, if possible. Do not unlink files while
1432 1997-08-25 Richard Stallman <rms@gnu.org>
1434 * src/reader.c (stack_offset;):
1435 Change some warni to warns.
1437 * src/lex.c (literalchar): Use warns, not warni.
1439 1997-06-28 Richard Stallman <rms@gnu.org>
1441 * src/bison.s1: Add a Bison version comment.
1443 * src/main.c (fatal, warn, berror):
1446 1997-06-28 Richard Stallman <rms@gnu.org>
1448 * Makefile.in (bison_version): New variable.
1449 (dist): Use that variable.
1450 (bison.s1): Substitute the Bison version into bison.simple.
1452 * bison.simple: Add a Bison version comment.
1454 1997-06-18 Richard Stallman <rms@gnu.org>
1456 * src/main.c (fatal, warn, berror):
1457 Make error messages standard.
1458 (toomany): Improve error message text.
1460 * 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:
1461 new.h renamed to alloc.h.
1463 1997-06-18 Richard Stallman <rms@gnu.org>
1465 * Makefile.in: new.h renamed to alloc.h.
1467 1997-05-24 Richard Stallman <rms@gnu.org>
1469 * src/lex.c (literalchar):
1470 Fix the code for escaping \, " and '.
1472 (lex): Avoid trouble when there are many chars
1473 to discard in a char literal with just several chars in it.
1475 1997-05-17 Richard Stallman <rms@gnu.org>
1478 Use malloc, if using alloca is troublesome.
1479 (YYSTACK_USE_ALLOCA): New flag macro.
1480 Define it for some systems and compilers.
1481 (YYSTACK_ALLOC): New macro.
1482 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1483 If it was malloc'd, free it.
1485 1997-05-17 Richard Stallman <rms@gnu.org>
1488 Use malloc, if using alloca is troublesome.
1489 (YYSTACK_USE_ALLOCA): New flag macro.
1490 Define it for some systems and compilers.
1491 (YYSTACK_ALLOC): New macro.
1492 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1493 If it was malloc'd, free it.
1495 1997-04-23 Richard Stallman <rms@gnu.org>
1498 (alloca) [__hpux]: Always define as __builtin_alloca.
1500 1997-04-23 Richard Stallman <rms@gnu.org>
1503 (alloca) [__hpux]: Always define as __builtin_alloca.
1505 1997-04-22 Richard Stallman <rms@gnu.org>
1508 [__hpux]: Include alloca.h (right for HPUX 10)
1509 instead of declaring alloca (right for HPUX 9).
1511 * src/bison.s1 (__yy_memcpy):
1512 Declare arg `count' as unsigned int.
1513 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1515 1997-04-22 Richard Stallman <rms@gnu.org>
1518 [__hpux]: Include alloca.h (right for HPUX 10)
1519 instead of declaring alloca (right for HPUX 9).
1521 * bison.simple (__yy_memcpy):
1522 Declare arg `count' as unsigned int.
1523 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1525 1997-01-03 Richard Stallman <rms@gnu.org>
1527 * src/allocate.c: [__STDC__ or _MSC_VER]:
1528 Declare calloc and realloc to return void *.
1530 1997-01-02 Richard Stallman <rms@gnu.org>
1533 [_MSC_VER]: Include stdlib.h and process.h.
1534 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1536 * src/main.c (main): Return FAILURE as a value.
1537 (printable_version): Declare arg as int, not char.
1539 1997-01-02 Richard Stallman <rms@gnu.org>
1541 * Makefile.in (dist):
1542 Explicitly check for symlinks, and copy them.
1544 1996-12-19 Richard Stallman <rms@gnu.org>
1547 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1549 1996-12-18 Paul Eggert <eggert@gnu.org>
1551 * src/bison.s1 (yyparse):
1552 If __GNUC__ and YYPARSE_PARAM are both defined,
1553 declare yyparse to have a void * argument.
1555 1996-12-18 Paul Eggert <eggert@gnu.org>
1557 * bison.simple (yyparse):
1558 If __GNUC__ and YYPARSE_PARAM are both defined,
1559 declare yyparse to have a void * argument.
1561 1996-12-17 Richard Stallman <rms@gnu.org>
1563 * src/reduce.c (nbits): Add some casts.
1565 1996-08-12 Richard Stallman <rms@gnu.org>
1567 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1569 1996-08-12 Richard Stallman <rms@gnu.org>
1571 * bison.simple: Test _MSDOS as well as _MSDOS_.
1573 1996-07-31 Richard Stallman <rms@gnu.org>
1576 [__sun && __i386]: Include alloca.h.
1578 1996-07-31 Richard Stallman <rms@gnu.org>
1581 [__sun && __i386]: Include alloca.h.
1583 1996-07-30 Richard Stallman <rms@gnu.org>
1585 * src/bison.s1: Comment change.
1587 * src/bison.s1: Test _MSDOS_, not MSDOS.
1589 1996-07-30 Richard Stallman <rms@gnu.org>
1591 * bison.simple: Comment change.
1593 * bison.simple: Test _MSDOS_, not MSDOS.
1595 1996-06-01 Richard Stallman <rms@gnu.org>
1597 * 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:
1598 Insert `_' macro around many string constants.
1601 Insert `_' macro around many string constants.
1603 (main): Call setlocale, bindtextdomain and textdomain.
1605 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1606 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1607 [ENABLE_NLS]: Include libintl.h.
1608 [ENABLE_NLS] (gettext): Define.
1609 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1610 (N_, PACKAGE, LOCALEDIR): New macros.
1612 1996-06-01 Richard Stallman <rms@gnu.org>
1614 * POTFILES.in: New file.
1616 * Makefile.in (allocate.o):
1617 Define target explicitly.
1619 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1620 (LDFLAGS): Set to @LDFLAGS@.
1621 (configure): Run autoconf only if preceding `cd' succeeds.
1622 (bison.s1): Redirect output to temporary file then move the
1623 temporary to the target, rather than redirecting directly to bison.s1.
1624 (clean): Remove config.status and config.log.
1625 (distclean): Don't remove config.status here.
1627 1996-05-12 Richard Stallman <rms@gnu.org>
1630 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1632 1996-05-12 Richard Stallman <rms@gnu.org>
1635 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1637 1996-05-11 Richard Stallman <rms@gnu.org>
1639 * src/bison.s1 (__yy_memcpy):
1640 Really reorder the args, as was supposedly done on Feb 14 1995.
1641 (yyparse): Calls changed accordingly.
1643 1996-05-11 Richard Stallman <rms@gnu.org>
1645 * Makefile.in (dist): Don't use $(srcdir).
1647 * bison.simple (__yy_memcpy):
1648 Really reorder the args, as was supposedly done on Feb 14 1995.
1649 (yyparse): Calls changed accordingly.
1651 1996-01-27 Richard Stallman <rms@gnu.org>
1653 * src/output.c (output_rule_data):
1654 Test YYERROR_VERBOSE in the conditional
1655 around the definition of ttyname.
1657 1995-12-29 Richard Stallman <rms@gnu.org>
1660 Fix line numbers in #line commands.
1662 1995-12-29 Richard Stallman <rms@gnu.org>
1665 Fix line numbers in #line commands.
1667 1995-12-27 Richard Stallman <rms@gnu.org>
1669 * src/bison.s1 (YYPARSE_PARAM_DECL):
1670 In C++, make it always null.
1671 (YYPARSE_PARAM_ARG): New macro.
1672 (yyparse): Use YYPARSE_PARAM_ARG.
1674 1995-12-27 Richard Stallman <rms@gnu.org>
1676 * bison.simple (YYPARSE_PARAM_DECL):
1677 In C++, make it always null.
1678 (YYPARSE_PARAM_ARG): New macro.
1679 (yyparse): Use YYPARSE_PARAM_ARG.
1681 1995-11-29 Richard Stallman <rms@gnu.org>
1683 * doc/bison.texinfo:
1684 Describe literal string tokens, %raw, %no_lines, %token_table.
1686 1995-11-29 Daniel Hagerty <hag@gnu.org>
1688 * doc/bison.texinfo: Fixed update date
1690 1995-10-16 Richard Stallman <rms@gnu.org>
1692 * src/version.c: Version 1.25.
1694 1995-10-16 Richard Stallman <rms@gnu.org>
1696 * NEWS: *** empty log message ***
1698 1995-10-16 Richard Stallman <rms@gnu.org>
1700 * doc/bison.1, doc/bison.rnh:
1703 1995-10-15 Richard Stallman <rms@gnu.org>
1705 * src/vmsgetargs.c, src/getargs.c:
1706 Added -n, -k, and -raw switches.
1707 (noparserflag, toknumflag, rawtoknumflag): New variables.
1709 * src/symtab.h (SALIAS):
1710 New #define for adding aliases to %token.
1711 (struct bucket): Added `alias' field.
1713 * src/reduce.c (reduce_grammar):
1714 Revise error message.
1715 (print_notices): Remove final `.' from error message.
1717 * src/reader.c (reader_output_yylsp):
1719 (readgram): Use `#if 0' around code that accepted %command
1720 inside grammar rules: The documentation doesn't allow it,
1721 and it will fail since the %command processors scan for the next %.
1722 (parse_token_decl): Extended the %token
1723 declaration to allow a multi-character symbol as an alias.
1724 (parse_thong_decl): New function.
1725 (read_declarations): Added %thong declarations.
1726 (read_declarations): Handle NOOP to deal with allowing
1727 % declarations as another means to specify the flags.
1728 (readgram): Allow %prec prior to semantics embedded in a rule.
1729 (skip_to_char, read_declarations, copy_definition)
1730 (parse_token_decl, parse_start_decl, parse_type_decl)
1731 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1732 (get_type_name, copy_guard, copy_action, readgram)
1733 (get_type, packsymbols): Revised most error messages.
1734 Changed `fatal' to `warnxxx' to avoid aborting for error.
1735 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1736 (read_declarations): Improve the error message for
1737 an invalid character. Do not abort.
1738 (read_declarations, copy_guard, copy_action): Use
1739 printable_version to avoid unprintable characters in printed output.
1740 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1741 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1742 Allow the type of a non-terminal can be given
1743 more than once, as long as all specifications give the same type.
1746 (output_headers, output_trailers, output, output_gram)
1747 (output_rule_data): Implement noparserflag variable.
1748 Implement toknumflag variable.
1749 (output): Call reader_output_yylsp to output LTYPESTR.
1751 * src/main.c (main):
1752 If reader sees an error, don't process the grammar.
1753 (fatals): Updated to not use VARARGS1.
1754 (printable_version, int_to_string, warn, warni, warns, warnss)
1755 (warnsss): New error reporting functions. Avoid abort for error.
1758 Added THONG and NOOP for alias processing.
1759 Added SETOPT for the new code that allows setting options with %flags.
1762 Include getopt.h. Add some extern decls.
1763 (safegetc): New function to deal with EOF gracefully.
1764 (literalchar); new function to deal with reading \ escapes.
1765 (lex): Use literalchar.
1766 (lex): Implemented "..." tokens.
1767 (literalchar, lex, parse_percent_token): Made tokenbuffer
1768 always contain the token. This includes growing the token
1769 buffer while reading an integer.
1770 (parse_percent_token): Replaced if-else statement with percent_table.
1771 (parse_percent_token): Added % declarations as another
1772 way to specify the flags -n, -l, and -r. Also added hooks for
1773 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1774 major changes to files.c.
1775 (lex) Retain in the incoming stream a character following
1777 (skip_white_space, lex): Revised most error messages
1778 and changed fatal to warn to avoid aborting.
1779 (percent_table): Added %thong declarations.
1781 * src/gram.h: Comment changes.
1783 * src/files.c (openfiles, open_extra_files, done):
1785 and actfile file. Handle noparserflag. Both for -n switch.
1787 * src/conflicts.c (resolve_sr_conflict):
1788 Remove use of alloca.
1790 1995-06-01 Jim Meyering <meyering@gnu.org>
1792 * doc/bison.texinfo: *** empty log message ***
1794 1995-05-06 Richard Stallman <rms@gnu.org>
1796 * src/bison.s1: Comment change.
1798 1995-05-06 Richard Stallman <rms@gnu.org>
1800 * bison.simple: Comment change.
1802 1995-05-03 Richard Stallman <rms@gnu.org>
1804 * src/version.c: Version now 1.24.
1806 * src/bison.s1: Change distribution terms.
1808 * src/version.c: Version now 1.23.
1810 1995-05-03 Richard Stallman <rms@gnu.org>
1812 * doc/bison.texinfo:
1813 Rewrite "Conditions for Using Bison".
1814 Update version to 1.24.
1816 1995-05-03 Richard Stallman <rms@gnu.org>
1818 * bison.simple: Change distribution terms.
1820 1995-02-23 Richard Stallman <rms@gnu.org>
1822 * src/files.c: Test __VMS_POSIX as well as VMS.
1824 1995-02-14 Jim Meyering <meyering@gnu.org>
1826 * src/bison.s1 (__yy_memcpy):
1827 Renamed from __yy_bcopy to avoid
1828 confusion. Reverse FROM and TO arguments to be consistent with
1831 1995-02-14 Jim Meyering <meyering@gnu.org>
1833 * bison.simple (__yy_memcpy):
1834 Renamed from __yy_bcopy to avoid
1835 confusion. Reverse FROM and TO arguments to be consistent with
1838 1994-11-10 David J. MacKenzie <djm@gnu.org>
1844 * Makefile.in (DISTFILES): Include NEWS.
1846 * Makefile.in (DISTFILES):
1847 Include install-sh, not install.sh.
1849 * configure.in: Update to Autoconf v2 macro names.
1851 1994-10-05 David J. MacKenzie <djm@gnu.org>
1853 * Makefile.in: fix typo
1855 * Makefile.in (prefix, exec_prefix):
1856 Let configure set them.
1858 1994-09-28 David J. MacKenzie <djm@gnu.org>
1860 * Makefile.in: Set datadir to $(prefix)/share.
1862 1994-09-15 Richard Stallman <rms@gnu.org>
1865 Update copyright notice and GPL version.
1867 1994-09-15 Richard Stallman <rms@gnu.org>
1870 Update copyright notice and GPL version.
1872 1994-07-12 Richard Stallman <rms@gnu.org>
1874 * src/reduce.c, src/reader.c:
1877 1994-05-05 David J. MacKenzie <djm@gnu.org>
1879 * Makefile.in: entered into RCS
1881 1994-03-26 Richard Stallman <rms@gnu.org>
1883 * src/bison.s1: entered into RCS
1885 1994-03-26 Richard Stallman <rms@gnu.org>
1887 * bison.simple: entered into RCS
1889 1994-03-25 Richard Stallman <rms@gnu.org>
1891 * src/main.c: entered into RCS
1893 1994-03-24 Richard Stallman <rms@gnu.org>
1895 * src/conflicts.c: entered into RCS
1897 1994-01-02 Richard Stallman <rms@gnu.org>
1899 * Makefile.in: *** empty log message ***
1901 1993-11-21 Richard Stallman <rms@gnu.org>
1903 * src/bison.s1: *** empty log message ***
1905 1993-11-21 Richard Stallman <rms@gnu.org>
1907 * doc/bison.texinfo: entered into RCS
1909 * doc/bison.texinfo: *** empty log message ***
1911 1993-11-21 Richard Stallman <rms@gnu.org>
1913 * bison.simple: *** empty log message ***
1915 1993-10-25 David J. MacKenzie <djm@gnu.org>
1917 * doc/bison.texinfo: *** empty log message ***
1919 1993-10-19 Richard Stallman <rms@gnu.org>
1921 * src/bison.s1: *** empty log message ***
1923 1993-10-19 Richard Stallman <rms@gnu.org>
1925 * bison.simple: *** empty log message ***
1927 1993-10-14 Richard Stallman <rms@gnu.org>
1929 * src/bison.s1: *** empty log message ***
1931 1993-10-14 Richard Stallman <rms@gnu.org>
1933 * bison.simple: *** empty log message ***
1935 1993-09-14 David J. MacKenzie <djm@gnu.org>
1937 * doc/bison.texinfo: *** empty log message ***
1939 1993-09-13 Noah Friedman <friedman@gnu.org>
1941 * Makefile.in: *** empty log message ***
1943 1993-09-10 Richard Stallman <rms@gnu.org>
1945 * src/conflicts.c: *** empty log message ***
1947 * src/system.h: entered into RCS
1949 1993-09-10 Richard Stallman <rms@gnu.org>
1951 * doc/bison.1: entered into RCS
1953 1993-09-06 Noah Friedman <friedman@gnu.org>
1955 * src/version.c: entered into RCS
1957 1993-09-06 Noah Friedman <friedman@gnu.org>
1959 * Makefile.in: *** empty log message ***
1961 1993-07-30 David J. MacKenzie <djm@gnu.org>
1963 * Makefile.in: *** empty log message ***
1965 1993-07-24 Richard Stallman <rms@gnu.org>
1967 * src/bison.s1: *** empty log message ***
1969 1993-07-24 Richard Stallman <rms@gnu.org>
1971 * bison.simple: *** empty log message ***
1973 1993-07-08 David J. MacKenzie <djm@gnu.org>
1975 * Makefile.in: *** empty log message ***
1977 1993-07-04 Richard Stallman <rms@gnu.org>
1979 * src/bison.s1: *** empty log message ***
1981 1993-07-04 Richard Stallman <rms@gnu.org>
1983 * bison.simple: *** empty log message ***
1985 1993-06-26 David J. MacKenzie <djm@gnu.org>
1987 * src/getargs.c: entered into RCS
1989 1993-06-26 David J. MacKenzie <djm@gnu.org>
1991 * doc/bison.texinfo: *** empty log message ***
1993 * doc/bison.1: New file.
1995 1993-06-25 Richard Stallman <rms@gnu.org>
1997 * src/getargs.c: New file.
1999 1993-06-16 Richard Stallman <rms@gnu.org>
2001 * src/bison.s1: *** empty log message ***
2003 1993-06-16 Richard Stallman <rms@gnu.org>
2005 * bison.simple: *** empty log message ***
2007 1993-06-03 Richard Stallman <rms@gnu.org>
2009 * src/bison.s1: New file.
2011 1993-06-03 Richard Stallman <rms@gnu.org>
2013 * doc/bison.texinfo: *** empty log message ***
2015 1993-06-03 Richard Stallman <rms@gnu.org>
2017 * bison.simple: New file.
2019 1993-05-19 Richard Stallman <rms@gnu.org>
2021 * doc/bison.texinfo: New file.
2023 1993-05-07 Noah Friedman <friedman@gnu.org>
2025 * Makefile.in: *** empty log message ***
2027 1993-04-28 Noah Friedman <friedman@gnu.org>
2029 * src/reader.c: *** empty log message ***
2031 1993-04-23 Noah Friedman <friedman@gnu.org>
2033 * src/alloc.h: entered into RCS
2035 1993-04-20 David J. MacKenzie <djm@gnu.org>
2037 * src/version.c: *** empty log message ***
2039 * src/files.c, src/allocate.c:
2042 * src/reader.c: *** empty log message ***
2044 * src/lex.c: entered into RCS
2046 * src/conflicts.c: New file.
2048 * src/symtab.c: entered into RCS
2050 * src/alloc.h: New file.
2052 * src/LR0.c: entered into RCS
2054 1993-04-18 Noah Friedman <friedman@gnu.org>
2056 * src/reader.c: New file.
2058 * src/version.c: *** empty log message ***
2060 1993-04-18 Noah Friedman <friedman@gnu.org>
2062 * Makefile.in: *** empty log message ***
2064 1993-04-17 Noah Friedman <friedman@gnu.org>
2066 * Makefile.in: *** empty log message ***
2068 1993-04-15 Richard Stallman <rms@gnu.org>
2070 * src/main.c, src/files.c:
2073 1993-04-15 Noah Friedman <friedman@gnu.org>
2075 * configure.in: entered into RCS
2077 * configure.in: *** empty log message ***
2079 * configure.in: New file.
2081 1993-04-14 Richard Stallman <rms@gnu.org>
2083 * Makefile.in: New file.
2085 1993-04-13 Richard Stallman <rms@gnu.org>
2087 * src/version.c: New file.
2089 1993-03-25 Richard Stallman <rms@gnu.org>
2091 * src/output.c: entered into RCS
2093 1992-09-25 Richard Stallman <rms@gnu.org>
2095 * configure.bat: entered into RCS
2097 1992-06-22 Richard Stallman <rms@gnu.org>
2099 * src/vmsgetargs.c: entered into RCS
2101 1992-06-22 Richard Stallman <rms@gnu.org>
2103 * doc/bison.rnh: entered into RCS
2105 1992-04-20 David J. MacKenzie <djm@gnu.org>
2107 * README: entered into RCS
2109 1992-01-22 Richard Stallman <rms@gnu.org>
2111 * src/machine.h: entered into RCS
2113 1991-12-21 Richard Stallman <rms@gnu.org>
2115 * src/lalr.c, src/closure.c:
2118 1991-12-20 Richard Stallman <rms@gnu.org>
2120 * src/state.h: entered into RCS
2122 1991-12-18 Richard Stallman <rms@gnu.org>
2124 * src/print.c, src/nullable.c, src/derives.c:
2127 1991-11-03 David J. MacKenzie <djm@gnu.org>
2129 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2132 1988-09-09 Richard Stallman <rms@gnu.org>
2134 * src/bison.hairy: entered into RCS
2136 1987-12-16 Richard Stallman <rms@gnu.org>
2138 * REFERENCES: entered into RCS