]> git.saurik.com Git - bison.git/blame - ChangeLog
PO Update.
[bison.git] / ChangeLog
CommitLineData
3e3da797
AD
12001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_@epita.fr>
2
3 * src/print_graph.c (print_actions): CPP out useless code.
4 * src/vcg.c (complain.h): Include it.
5 Unepitaize `return' invocations.
6 * src/vcg.c [NDEBUG] (main): Remove.
7
22c2cbc0
AD
82001-08-06 Marc Autret <autret_@epita.fr>
9
10 Automaton VCG graph output.
11 Using option ``-g'' or long option ``--graph'', you can generate
12 a gram_filename.vcg file containing a VCG description of the LALR (1)
13 automaton of your grammar.
14
15 * src/main.c: Call to print_graph() function.
16 * src/getargs.h: Update.
17 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
18 (graph_flag): New flag.
19 (longopts): Update.
20 (getargs): Add case `g'.
21 * src/files.c (graph_obstack): New obstack struct.
22 (open_files): Initialize new obstack.
23 (output_files): Saves graph_obstack if required.
24 * src/files.h (graph_obstack): New extern declaration.
25 * src/Makefile.am: Add new source files.
26
ce4d5ce0
AD
272001-08-06 Marc Autret <autret_@epita.fr>
28
29 * src/print_graph.c, src/print_graph.h (graph): New.
30 * src/vcg.h: New file.
31 * src/vcg.c: New file, VCG graph handling.
32
7333d403
AD
332001-08-06 Marc Autret <autret_m@epita.fr>
34
35 Add of %source_extension and %header_extension which specify
36 the source or/and the header output file extension.
37
38 * src/files.c (compute_base_names): Remove initialisation of
39 src_extension and header_extension.
40 (compute_exts_from_gf): Update.
41 (compute_exts_from_src): Update.
42 (output_files): Update.
43 * src/reader.c (parse_header_extension_decl): New.
44 (parse_source_extension_decl): New.
45 (read_declarations): New case statements for the new tokens.
46 * src/lex.c (percent_table): Add entries for %source_extension
47 and %header_extension.
48 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
49
84163231
AD
502001-08-06 Marc Autret <autret_m@epita.fr>
51
52 * configure.in: Bump to 1.28c.
53 * doc/bison.texinfo: Texinfo thingies.
54
8303fc42
AD
552001-08-04 Pascal Bart <pascal.bart@epita.fr>
56
57 * tests/atconfig.in (CPPFLAGS): Add.
58 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
59
70a84437
AD
602001-08-03 Akim Demaille <akim@epita.fr>
61
62 Version 1.28b.
63
2ce10144
AD
642001-08-03 Akim Demaille <akim@epita.fr>
65
66 * tests/Makefile.am (check-local): Ship testsuite.
67 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
68 Include `string.h'.
69
1e3e4bc1
AD
702001-08-03 Akim Demaille <akim@epita.fr>
71
72 * configure.in: Try using -Wformat when compiling.
73
42b45b7f
AD
742001-08-03 Akim Demaille <akim@epita.fr>
75
76 * configure.in: Bump to 1.28b.
77
8f13fe33
AD
782001-08-03 Akim Demaille <akim@epita.fr>
79
80 * src/complain.c: Adjust strerror_r portability issues.
81
b37ba92c
AD
822001-08-03 Akim Demaille <akim@epita.fr>
83
84 Version 1.28a.
85
b0ce6046
AD
862001-08-03 Akim Demaille <akim@epita.fr>
87
88 * src/getargs.c, src/getarg.h (skeleton)): Constify.
89 * src/lex.c (literalchar): Avoid name clashes on `buf'.
90 * src/getargs.c: Include complain.h.
91 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
92 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
93
d01c415b
AD
942001-08-03 Akim Demaille <akim@epita.fr>
95
96 * src/reader.c (readgram): Display hidden chars in error messages.
97
459dd1a6
AD
982001-08-03 Akim Demaille <akim@epita.fr>
99
100 Update to gettext 0.10.39.
101
53b74c0c
AD
1022001-08-03 Akim Demaille <akim@epita.fr>
103
104 * lib/strspn.c: New.
105
234a3be3
AD
1062001-08-01 Marc Autret <autret_m@epita.fr>
107
108 * doc/bison.texinfo: Update.
109 * doc/bison.1 (mandoc): Update.
110 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
111 * src/files.c: Support output files extensions computing.
112 (src_extension): New static variable.
113 (header_extension): New static variable.
114 (tr): New function.
115 (get_extension_index): New function, gets the index of an extension
116 filename in a string.
117 (compute_exts_from_gf): New function, computes extensions from the
118 grammar file extension.
119 (compute_exts_from_src): New functions, computes extensions from the
120 C source file extension, file given by ``-o'' option.
121 (compute_base_names): Update.
122 (output_files): Update.
123
847bf1f5
AD
1242001-08-01 Robert Anisko <anisko_r@epita.fr>
125
d995fee7 126 * doc/bison.texi: Document @$.
847bf1f5
AD
127 (Locations): New section.
128
d074a105
AD
1292001-07-18 Akim Demaille <akim@epita.fr>
130
131 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
132 * config/prev-version.txt, config/move-if-change: New.
133 * Makefile.am: Adjust.
134
3419715d
AD
1352001-07-08 Pascal Bart <pascal.bart@epita.fr>
136
137 * src/bison.simple (yyparse): Suppress warning `comparaison
138 between signed and unsigned'.
139
62ab6972
AD
1402001-07-05 Pascal Bart <pascal.bart@epita.fr>
141
142 * src/getargs.h (raw_flag): Remove.
143 * src/getargs.c: Die on `-r'/`--raw'.
144 * src/lex.c (parse_percent_token): Die on `%raw'.
145 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
146 * tests/calc.at: Suppress test with option `--raw'.
147
1e24cc5b
AD
1482001-07-14 Akim Demaille <akim@epita.fr>
149
150 * config/: New.
151 * configure.in: Require Autoconf 2.50.
152 Update to gettext 0.10.38.
153
32dfccf8
AD
1542001-03-16 Akim Demaille <akim@epita.fr>
155
156 * doc/bison.texinfo: ANSIfy the examples.
157
cd5bd6ac
AD
1582001-03-16 Akim Demaille <akim@epita.fr>
159
160 * getargs.c (skeleton): New variable.
161 (longopts): --skeleton is a new option.
162 (shortopts, getargs): -S is a new option.
163 * getargs.h: Declare skeleton.
164 * output.c (output_parser): Use it.
165
5141b016
AD
1662001-03-16 Akim Demaille <akim@epita.fr>
167
168 * m4/strerror_r.m4: New.
169 * m4/error.m4: Run AC_FUNC_STRERROR_R.
170 * lib/error.h, lib/error.c: Update.
171
447992b9
AD
1722001-03-16 Akim Demaille <akim@epita.fr>
173
174 * src/getargs.c (longopts): Clean up.
175
274d42ce
AD
1762001-02-21 Akim Demaille <akim@epita.fr>
177
178 * src/reader.c (gensym): `gensym_count' is your own.
179 Use a static buf to create the symbol name, as token_buffer is no
180 longer a buffer.
181
22c821f3
AD
1822001-02-08 Akim Demaille <akim@epita.fr>
183
184 * src/conflicts.c (conflict_report): Be sure not to append to res
185 between two calls, which could happen if both first sprintf were
186 skipped, but not the first cp += strlen.
187
18569462
AD
1882001-02-08 Akim Demaille <akim@epita.fr>
189
190 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
191 New, from fileutils 4.0.37.
192 * configure.in: Require Autoconf 2.49c. I took some time before
193 making this decision. This is the only way out for portability
194 issues in Bison, it would mean way too much duplicate effort to
195 import in Bison features implemented in 2.49c since 2.13.
196 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
197
0d8f3c8a
AD
1982001-02-02 Akim Demaille <akim@epita.fr>
199
200 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 201 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 202
f17bcd1f
AD
2032001-01-19 Akim Demaille <akim@epita.fr>
204
205 Get rid of the ad hoc handling of token_buffer in the scanner: use
206 the obstacks.
207
208 * src/lex.c (token_obstack): New.
209 (init_lex): Initialize it. No longer call...
210 (grow_token_buffer): this. Remove it.
211 Adjust all the places which used it to use the obstack.
212
511e79b3
AD
2132001-01-19 Akim Demaille <akim@epita.fr>
214
215 * src/lex.h: Rename all the tokens:
216 s/\bENDFILE\b/tok_eof/g;
217 s/\bIDENTIFIER\b/tok_identifier/g;
218 etc.
219 Let them be enums, not #define, to ease debugging.
220 Adjust all the code.
221
0d6508ef
AD
2222001-01-18 Akim Demaille <akim@epita.fr>
223
224 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
225 * src/lex.c (maxtoken, grow_token_buffer): Static.
226
6deb4447
AD
2272001-01-18 Akim Demaille <akim@epita.fr>
228
229 Since we now use obstacks, more % directives can be enabled.
230
231 * src/lex.c (percent_table): Also accept `%yacc',
232 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
233 `%debug'.
234 Handle the actions for `%semantic_parser' and `%pure_parser' here,
235 instead of returning a token.
236 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
237 * src/reader.c (read_declarations): Adjust.
238 * src/files.c (open_files): Don't call `compute_base_names', don't
239 compute `attrsfile' since they depend upon data which might be
240 *in* the input file now.
241 (output_files): Do it here.
242 * src/output.c (output_headers): Document the fact that this patch
243 introduces a guaranteed SEGV for semantic parsers.
244 * doc/bison.texinfo: Document them.
245 * tests/suite.at: Exercise these %options.
246
ff4423cc
AD
2472000-12-20 Akim Demaille <akim@epita.fr>
248
249 Also handle the output file (--verbose) with obstacks.
250
251 * files.c (foutput): Remove.
252 (output_obstack): New.
253 Adjust all dependencies.
254 * src/conflicts.c: Return a string.
255 * src/system.h (obstack_grow_string): Rename as...
256 (obstack_sgrow): this. Be ready to work with non literals.
257 (obstack_fgrow4): New.
258
956dba3a
AD
2592000-12-20 Akim Demaille <akim@epita.fr>
260
261 * src/files.c (open_files): Fix the computation of short_base_name
262 in the case of `-o foo.tab.c'.
263
337bab46
AD
2642000-12-20 Akim Demaille <akim@epita.fr>
265
266 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
267 (copy_dollar): Now that everything uses obstacks, get rid of the
268 FILE * parameters.
269
5d3214b8
AD
2702000-12-20 Akim Demaille <akim@epita.fr>
271
272 * src/files.c (open_files): Actually the `.output' file is based
273 on the short_base_name, not base_name.
274 * tests/suite.at (Checking output file names): Adjust.
275
29092a57
AD
2762000-12-20 Akim Demaille <akim@epita.fr>
277
278 * src/bison.s1: Remove, we now use directly...
279 * src/bison.simple: this.
280 * src/Makefile.am: Use pkgdata instead of data.
281
ea5607fd
AD
2822000-12-20 Akim Demaille <akim@epita.fr>
283
284 * src/files.c (guard_obstack): New.
285 (open_files): Initialize it.
286 (output_files): Dump it...
287 * src/files.h: Export it.
288 * src/reader.c (copy_guard): Use it.
289
27110317
AD
2902000-12-19 Akim Demaille <akim@epita.fr>
291
292 * src/files.c (outfile, defsfile, actfile): Removed as global
293 vars.
294 (open_files): Don't compute them.
295 (output_files): Adjust.
296 (base_name, short_base_name): Be global.
297 Adjust dependencies.
298
19c50364
AD
2992000-12-19 Akim Demaille <akim@epita.fr>
300
301 * src/files.c (strsuffix): New.
302 (stringappend): Be just like strcat but allocate.
303 (base_names): Eve out from open_files.
304 Try to simplify the rather hairy computation of base_name and
305 short_base_name.
306 (open_files): Use it.
307 * tests/suite.at (Checking output file names): New test.
308
573c1d9f
AD
3092000-12-19 Akim Demaille <akim@epita.fr>
310
311 * src/system.h (obstack_grow_literal_string): Rename as...
312 (obstack_grow_string): this.
313 * src/output.c (output_parser): Recognize `%% actions' instead of
314 `$'.
315 * src/bison.s1: s/$/%% actions/.
316 * src/bison.hairy: Likewise.
317
ef7ddedd
AD
3182000-12-19 Akim Demaille <akim@epita.fr>
319
320 * src/output.c (output_parser): Compute the `#line' lines when
321 there are.
322 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
323 Suggested by Hans Aberg.
324
ff61dabd
AD
3252000-12-19 Akim Demaille <akim@epita.fr>
326
327 Let the handling of the skeleton files be local to the procedures
328 that use it.
329
330 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
331 longer static.
332 (fparser, open_extra_files): Remove.
333 (open_files, output_files): Don't take care of fparser.
334 * src/files.h: Adjust.
335 * src/output.c (output_parser): Open and close the file to the
336 skeleton.
337 * src/reader.c (read_declarations): When %semantic_parser, open
338 fguard.
339
55b96341
AD
3402000-12-19 Akim Demaille <akim@epita.fr>
341
342 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
343 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
344
358c15b7
AD
3452000-12-19 Akim Demaille <akim@epita.fr>
346
347 * src/files.c (open_files): Yipee! We no longer need all the code
348 looking for `/tmp' since we have no tmp file.
349
7de3329e
AD
3502000-12-19 Akim Demaille <akim@epita.fr>
351
352 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
353 New macros.
354 * src/files.c (open_files): Less dependency on MSDOS etc.
355
3abcd459
AD
3562000-12-14 Akim Demaille <akim@epita.fr>
357
358 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
359 Provide a default definition.
360 Use it when executing the default @ action.
361 * src/reader.c (reader_output_yylsp): No longer include
362 `timestamp' and `text' in the default YYLTYPE.
363
2a91a95e
AD
3642000-12-12 Akim Demaille <akim@epita.fr>
365
366 * src/reader.c (copy_definition, parse_union_decl, copy_action)
367 (copy_guard): Quote the file names.
368 Reported by Laurent Mascherpa.
369
14d3eb9b
AD
3702000-12-12 Akim Demaille <akim@epita.fr>
371
372 * src/output.c (output_headers, output_program, output): Be sure
373 to escape special characters when outputting filenames.
374 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
375 (output_headers): Don't depend on them, Use ACTSTR.
376
d7045ec6
AD
3772000-11-17 Akim Demaille <akim@epita.fr>
378
379 * lib/obstack.h: Formatting changes.
380 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
381 prevents type checking.
382 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
383 cast the value to (void *): assigning a `foo *' to a `void *'
384 variable is valid.
385 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
386 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
387 append characters.
388
6fd54b73
AD
3892000-11-17 Akim Demaille <akim@epita.fr>
390
391 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
392 as...
393 (suite.m4, regression.m4, calc.m4): these.
394 * tests/atgeneral.m4: Update from CVS Autoconf.
395
4c50eae6
AD
3962000-11-17 Akim Demaille <akim@epita.fr>
397
398 * tests/regression.m4 (%union and --defines): New test,
399 demonstrating a current bug in the obstack implementation.
400
a35f64ea
AD
4012000-11-17 Akim Demaille <akim@epita.fr>
402
403 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
404 macros.
405 Use them to declare the variables which are global or local to
406 `yyparse'.
407
7de23534
AD
4082000-11-17 Akim Demaille <akim@epita.fr>
409
410 * acconfig.h: Remove, no longer used.
411
aa7815f5
AD
4122000-11-07 Akim Demaille <akim@epita.fr>
413
414 * src: s/Copyright (C)/Copyright/g.
415
5af1f549
AD
4162000-11-07 Akim Demaille <akim@epita.fr>
417
418 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
419 defining.
420 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
421
553e2b22
AD
4222000-11-07 Akim Demaille <akim@epita.fr>
423
424 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
425 Merge in a single CPP if/else.
426
8a4f41d6
AD
4272000-11-07 Akim Demaille <akim@epita.fr>
428
429 * src/output.c (output): Remove useless variables.
430 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
431 argument `data' for consistency with the prototypes.
432 Qualify it `const'.
433 (obstack_copy, obstack_copy0): Rename the second argument as
434 `address' for consistency. Qualify it `const'.
435 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
436 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
437 `const' their input argument (`data' or `address').
438 Adjust the corresponding macros to include `const' in casts.
439
095a3fb5
AD
4402000-11-03 Akim Demaille <akim@epita.fr>
441
442 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
443 s/PFILE1/BISON_HAIRY/.
444 Adjust dependencies.
445
d1cdce7c
AD
4462000-11-03 Akim Demaille <akim@epita.fr>
447
090c5ebf 448 For some reason, this was not applied.
d1cdce7c
AD
449
450 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
451 `unlink': it's no longer used.
452
9311529b
AD
4532000-11-03 Akim Demaille <akim@epita.fr>
454
455 * src/files.c (skeleton_find): New function, eved out of...
456 (open_files, open_extra_files): here.
457
d8880f69
AD
4582000-11-03 Akim Demaille <akim@epita.fr>
459
460 Don't use `atexit'.
461
462 * src/files.c (obstack_save): New function.
463 (done): Rename as...
464 (output_files): this.
465 Use `obstack_save'.
466 * src/main.c (main): Don't use `atexit' to register `done', since
467 it no longer has to remove tmp files, just call `output_files'
468 when there are no errors.
469
0dbb648e
AD
4702000-11-02 Akim Demaille <akim@epita.fr>
471
472 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
473 `unlink': it's no longer used.
474 * src/files.h: Formatting changes.
475
896fe5c1
AD
4762000-11-02 Akim Demaille <akim@epita.fr>
477
478 Remove the last uses of mktemp and unlink/delete.
479
480 * src/files.c (fdefines, ftable): Removed.
481 (defines_ostack, table_obstack): New.
482 Adjust dependencies of the former into uses of the latter.
483 * src/output.c (output_short_or_char_table, output_short_table):
484 Convert to using obstacks.
485 * src/reader.c (copy_comment2): Accept one FILE * and two
486 obstacks.
487 (output_token_defines, reader_output_yylsp): Use obstacks.
488 * src/system.h (obstack_fgrow3): New.
489
dd60faec
AD
4902000-11-01 Akim Demaille <akim@epita.fr>
491
492 Change each use of `fattrs' into a use of `attrs_obstack'.
493
494 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
495 * src/files.c (fattrs): Remove.
496 (attrs_obstack): New.
497 Adjust all dependencies.
498 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
499
8c7ebe49
AD
5002000-11-01 Akim Demaille <akim@epita.fr>
501
502 Introduce obstacks.
503 Change each use of `faction' into a use of `action_obstack'.
504
505 * lib/obstack.h, lib/obstack.c: New files.
506 * src/files.c (faction): Remove.
507 (action_obstack): New.
508 Adjust all dependencies.
509
77aee789
AD
5102000-10-20 Akim Demaille <akim@epita.fr>
511
512 * lib/quote.h (PARAMS): New macro. Use it.
513
43591cec
AD
5142000-10-16 Akim Demaille <akim@epita.fr>
515
516 * src/output.c (output_short_or_char_table): New function.
517 (output_short_table, output_token_translations): Use it.
518 (goto_actions): Use output_short_table.
519
1e9798d5
AD
5202000-10-16 Akim Demaille <akim@epita.fr>
521
522 * src/symtab.c (bucket_new): New function.
523 (getsym): Use it.
524
525 * src/output.c (output_short_table): New argument to display the
526 comment associated with the table.
527 Adjust dependencies.
528 (output_gram): Use it.
529 (output_rule_data): Nicer output layout for YYTNAME.
530
f282676b
AD
5312000-10-16 Akim Demaille <akim@epita.fr>
532
533 * src/lex.c (read_typename): New function.
534 (lex): Use it.
535 * src/reader.c (copy_dollar): Likewise.
536
550a72a3
AD
5372000-10-16 Akim Demaille <akim@epita.fr>
538
539 * src/reader.c (copy_comment2): Expect the input stream to be on
540 the `/' which is suspected to open a comment, instead of being
541 called after `//' or `/*' was read.
542 (copy_comment, copy_definition, parse_union_decl, copy_action)
543 (copy_guard): Adjust.
544
131e2fef
AD
5452000-10-16 Akim Demaille <akim@epita.fr>
546
547 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
548 `read_signed_integer'.
549
79282c5a
AD
5502000-10-16 Akim Demaille <akim@epita.fr>
551
552 * src/reader.c (copy_dollar): New function.
553 (copy_guard, copy_action): Use it.
554
ff4a34be
AD
5552000-10-16 Akim Demaille <akim@epita.fr>
556
557 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
558 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
559 New files, from Fileutils 4.0.27.
560 * src/main.c (printable_version): Remove.
561 * src/lex.c, src/reader.c: Use `quote'.
562
5632000-10-04 Akim Demaille <akim@epita.fr>
564
565 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
566
14ded682
AD
5672000-10-04 Akim Demaille <akim@epita.fr>
568
569 * doc/bison.texinfo: Various typos spotted by Neil Booth.
570
8e03724b
AD
5712000-10-04 Akim Demaille <akim@epita.fr>
572
573 When a literal string is used to define two different tokens,
574 `bison -v' segfaults.
575 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
576
577 * tests/regression.m4: New file.
578 Include the core of the sample provided by Piotr Gackiewicz.
579 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
580 properly.
581
a9e64249
AD
5822000-10-04 Akim Demaille <akim@epita.fr>
583
584 * src/reader.c (parse_expect_decl): Keep `count' within the size
585 of `buffer'.
586 From Neil Booth.
587
da9abf43
AD
5882000-10-02 Paul Eggert <eggert@twinsun.com>
589
590 * bison.s1 (yyparse): Assign the default value
591 unconditionally, to avoid a GCC warning and make the parser a
592 tad smaller.
593
c33638bb
AD
5942000-10-02 Akim Demaille <akim@epita.fr>
595
596 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
597 options.
598
444c570a
AD
5992000-10-02 Akim Demaille <akim@epita.fr>
600
601 * src/derives.c, src/print.c, src/reduce.c: To ease the
602 translation, move some `\n' out of the translated strings.
603
89cab50d
AD
6042000-10-02 Akim Demaille <akim@epita.fr>
605
606 The location tracking mechanism is precious for parse error
607 messages. Nevertheless, it is enabled only when `@n' is used in
608 the grammar, which is a different issue (you can use it in error
609 message, but not in the grammar per se). Therefore, there should
610 be another means to enable it.
611
612 * src/getargs.c (getargs): Support `--locations'.
613 (usage): Report it.
614 * src/getargs.h (locationsflag): Export it.
615 * src/lex.c (percent_table): Support `%locations'.
616 * src/reader.c (yylsp_needed): Remove this variable, now replaced
617 with `locationsflag'.
618 * doc/bison.texinfo: Document `--locations' and `%locations'.
619 Sort the options.
620 * tests/calc.m4: Test it.
621
622 For regularity of the names, replace each
623 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
624 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
625 In addition replace each `flag' with `_flag'.
626
d6c2cba0
AD
6272000-10-02 Akim Demaille <akim@epita.fr>
628
629 Also test parse error messages, including with YYERROR_VERBOSE.
630
631 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
632 associative).
633 Use it to check the computations.
634 Use it to check `nonassoc' is honored.
635 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
636 `--yyerror-verbose'.
637 (_AT_CHECK_CALC): Adjust to this option.
638 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
639
5a35a6cb
AD
6402000-10-02 Akim Demaille <akim@epita.fr>
641
642 Test also `--verbose', `--defines' and `--name-prefix'. Testing
643 the latter demonstrates a flaw in the handling of non debugging
644 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
645 was used in order to simplify:
646
647 #if YYDEBUG
648 if (yydebug)
649 {
650 ...
651 }
652 #endif
653
654 into
655
656 if (yydebug)
657 {
658 ...
659 }
660
661 unfortunately this leads to a CPP conflict when
662 `--name-prefix=foo' is used since it produces `#define yydebug
663 foodebug'.
664
665 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
666 (YYDPRINTF): New macro.
667 Spread its use.
668 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
669 the bison options.
670 Also test `--verbose', `--defines' and `--name-prefix'.
671
71da9eea
AD
6722000-10-02 Akim Demaille <akim@epita.fr>
673
674 Improve the readability of the produced parsers.
675
676 * src/bison.s1: Formatting changes.
677 Improve the comment related to the `$' mark.
678 (yydefault): Don't fall through to `yyresume': `goto' there.
679 * src/output.c (output_parser): When the `$' is met, skip the end
680 of its line.
681 New variable, `number_of_dollar_signs', to check there's exactly
682 one `$' in the parser skeleton.
683
95e36146
AD
6842000-10-02 Akim Demaille <akim@epita.fr>
685
686 * lib/xstrdup.c: New file, from the fileutils.
687 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
688 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
689 instead of strlen + xmalloc + strcpy.
690 * src/symtab.c (copys): Remove, use xstrdup instead.
691
d7020c20
AD
6922000-10-02 Akim Demaille <akim@epita.fr>
693
694 * src/gram.h (associativity): New enum type which replaces the
695 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
696 `right_assoc', `left_assoc' and `non_assoc'.
697 Adjust all dependencies.
698 * src/reader.c: Formatting changes.
699 (LTYPESTR): Don't define it, use it as a literal in
700 `reader_output_yylsp'.
701 * src/symtab.h (symbol_class): New enum type which replaces the
702 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
703 `sunknown', `stoken and `snterm'.
704
1916f98e
AD
7052000-10-02 Akim Demaille <akim@epita.fr>
706
707 * src/getargs.c (fixed_outfiles): Rename as...
708 (yaccflag): for consistency and accuracy.
709 Adjust dependencies.
710
d7913476
AD
7112000-10-02 Akim Demaille <akim@epita.fr>
712
713 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
714 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
715 difficult and introduced a lot of core dump. It turns out that
716 Bison used an implementation of `xmalloc' based on `calloc', and
717 at various places it does depend upon the initialization to 0. I
718 have not tried to isolate the pertinent places, and all the former
719 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
720 someone should address this issue.
721
722 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
723 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
724 files.
725 Adjust dependencies.
726 * src/warshall.h: New file.
727 Propagate.
728
340ef489
AD
7292000-10-02 Akim Demaille <akim@epita.fr>
730
731 Various anti-`extern in *.c' changes.
732
733 * src/system.h: Include `assert.h'.
734
b2ca4022
AD
7352000-10-02 Akim Demaille <akim@epita.fr>
736
737 * src/state.h (nstates, final_state, first_state, first_shift)
738 (first_reduction): Move their exportation from here...
739 * src/LR0.h: to here.
740 Adjust dependencies.
741 * src/getargs.c (statisticsflag): New variable.
742 Add support for `--statistics'.
743 Adjust dependencies.
744
745 Remove a lot of now useless `extern' statements in most files.
746
403b315b
AD
7472000-10-02 Akim Demaille <akim@epita.fr>
748
749 * src/LR0.h: New file.
750 Propagate its use.
751
07a58c13
AD
7522000-10-02 Akim Demaille <akim@epita.fr>
753
754 * src/print.h: New file.
755 Propagate its use.
756 * src/print.c: Formatting and ordering changes.
757 (verbose, terse): Replace with...
758 (print_results): this new function.
759 Adjust dependencies.
760
0619caf0
AD
7612000-10-02 Akim Demaille <akim@epita.fr>
762
763 * src/conflicts.c (conflict_report): New function.
764 (conflict_log, verbose_conflict_log): Replace with...
765 (print_conflicts): this function.
766 Adjust dependencies.
767 * src/conflicts.h: New file.
768 Propagate its inclusion.
769
3519ec76
AD
7702000-10-02 Akim Demaille <akim@epita.fr>
771
772 * src/nullable.h: New file.
773 Propagate its inclusion.
774 * src/nullable.c: Formatting changes.
775
015acc48
AD
7762000-10-02 Akim Demaille <akim@epita.fr>
777
778 * src/reduce.h: New file.
779 Propagate its inclusion.
780 * src/reduce.c: Topological sort and other formatting changes.
781 (bool, TRUE, FALSE): Move their definition to...
782 * src/system.h: here.
783
8963a27b
AD
7842000-10-02 Akim Demaille <akim@epita.fr>
785
786 * src/files.c: Formatting changes.
787 (tryopen, tryclose, openfiles): Rename as...
788 (xfopen, xfclose, open_files): this.
789 (stringappend): static.
790 * src/files.h: Complete the list of exported symbols.
791 Propagate its use.
792
a70083a3
AD
7932000-10-02 Akim Demaille <akim@epita.fr>
794
795 * src/reader.h: New file.
796 Propagate its use instead of tedious list of `extern' and
797 prototypes.
798 * src/reader.c: Formatting changes, topological sort,
799 s/register//.
800
abadc117
AD
8012000-10-02 Akim Demaille <akim@epita.fr>
802
803 * src/lex.h: Prototype `lex.c' exported functions.
804 * src/reader.c: Adjust.
805 * src/lex.c: Formatting changes.
806 (safegetc): Rename as...
807 (xgetc): this.
808
720d742f
AD
8092000-10-02 Akim Demaille <akim@epita.fr>
810
811 * src/lalr.h: New file.
812 Propagate its inclusion instead of prototypes and `extern'.
813 * src/lalr.c: Formatting changes, topological sorting etc.
814
f2acea59
AD
8152000-10-02 Akim Demaille <akim@epita.fr>
816
817 * src/output.c (token_actions): Introduce a temporary array,
818 YYDEFACT, that makes it possible for this function to use
819 output_short_table.
820
d019d655
AD
8212000-10-02 Akim Demaille <akim@epita.fr>
822
823 `user_toknums' is output as a `short[]' in `output.c', while it is
824 defined as a `int[]' in `reader.c'. For consistency with the
825 other output tables, `user_toknums' is now defined as a table of
826 shorts.
827
828 * src/reader.c (user_toknums): Be a short table instead of an int
829 table.
830 Adjust dependencies.
831
832 Factor the short table outputs.
833
834 * src/output.c (output_short_table): New function.
835 * src/output.c (output_gram, output_stos, output_rule_data)
836 (output_base, output_table, output_check): Use it.
837
6c89f1c1
AD
8382000-10-02 Akim Demaille <akim@epita.fr>
839
840 * src/output.c (output): Topological sort of the functions, in
841 order to get rid of the `static' prototypes.
842 No longer use `register'.
843 * src/output.h: New file.
844 Propagate its inclusion in files explicitly prototyping functions
845 from output.c.
846
d9efd181
AD
8472000-09-21 Akim Demaille <akim@epita.fr>
848
849 * src/atgeneral.m4: Update from Autoconf.
850
c29240e7 8512000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
852
853 * src/closure.h: New file.
854 * src/closure.c: Formatting changes, topological sort over the
855 functions, use of closure.h.
856 (initialize_closure, finalize_closure): Rename as...
857 (new_closure, free_closure): these. Adjust dependencies.
858 * src/LR0.c: Formatting changes, topological sort, use of
859 cloture.h.
860 (initialize_states): Rename as...
861 (new_states): this.
862 * src/Makefile.am (noinst_HEADERS): Adjust.
863
499daa50
AD
8642000-09-20 Akim Demaille <akim@epita.fr>
865
866 * src/acconfig.h: Don't protect config.h against multiple
867 inclusion.
868 Don't define PARAMS.
869 * src/system.h: Define PARAMS.
870 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
871 purpose of config.h. system.h must not try to fix wrong
872 definitions in config.h.
873
cc84fd5d
AD
8742000-09-20 Akim Demaille <akim@epita.fr>
875
876 * src/derives.h: New file.
877 * src/main.c, src/derives.h: Use it.
878 Formatting changes.
879 * src/Makefile.am (noinst_HEADERS): Adjust.
880
db5b3a89
AD
8812000-09-20 Akim Demaille <akim@epita.fr>
882
883 * tests/atgeneral.m4: Update from Autoconf.
884 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
885 (AT_CHECK_CALC): New macros.
886 Use these macros to test bison with options `', `--raw',
887 `--debug', `--yacc', `--yacc --debug'.
888
ceed8467
AD
8892000-09-19 Akim Demaille <akim@epita.fr>
890
891 * src/output.c: Formatting changes.
892 * src/machine.h: Remove, leaving its contents in...
893 * src/system.h: here.
894 Include stdio.h.
895 Adjust all dependencies on stdio.h and machine.h.
896 * src/getargs.h: New file.
897 Let all `extern' declarations about getargs.c be replaced with
898 inclusion of `getargs.h'.
899 * src/Makefile.am (noinst_HEADERS): Adjust.
900
901 * tests/calc.m4 (yyin): Be initialized in main, not on the global
902 scope.
903 (yyerror): Returns void, not int.
904 * doc/bison.texinfo: Formatting changes.
905
05a1d24b
AD
9062000-09-19 Akim Demaille <akim@epita.fr>
907
908 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
909 portable.
910
cbd25751
AD
9112000-09-18 Akim Demaille <akim@epita.fr>
912
913 * configure.in: Append WARNING_CFLAGS to CFLAGS.
914 * src/Makefile.am (INCLUDES): Don't.
915 Be ready to fetch headers in lib/.
916
13863333
AD
9172000-09-18 Akim Demaille <akim@epita.fr>
918
919 * doc/bison.texinfo: Update the copyright.
920 ANSIfy and GNUify the examples.
921 Remove the old menu.
922
0d533154
AD
9232000-09-18 Akim Demaille <akim@epita.fr>
924
925 First set of tests: use the `calc' example from the documentation.
926
927 * src/bison.s1 (yyparse): Condition the code using `yytname' which
928 is defined only when YYDEBUG is.
929 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
930 * src/files.c (tryopen, tryclose): Formatting changes.
931 Move to the top and be static.
932 * src/reader.c (read_signed_integer): Likewise.
933 * tests/calc.m4: New file.
934 * Makefile.am, suite.m4: Adjust.
935 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
936
e79137ac
AD
9372000-09-18 Akim Demaille <akim@epita.fr>
938
939 Add support for an Autotest test suite for Bison.
940
941 * m4/m4.m4, m4/atconfig.m4: New files.
942 * m4/Makefile.am (EXTRA_DIST): Adjust.
943 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
944 files.
945 * src/getargs.c: Display a more standard --version message.
946 * src/reader.c (reader): Formatting changes.
947 No longer depend upon VERSION_STRING.
948 * configure.in: No longer use `dnl'.
949 Set up the test suite and the new directory `tests/.
950 (VERSION_STRING): Remove.
951
27821bff
AD
9522000-04-14 Akim Demaille <akim@epita.fr>
953
954 * src/reader.c (copy_comment2): New function, same as former
955 `copy_comment', but outputs into two FILE *.
956 (copy_comment): Use it.
957 (parse_union_decl): Use it.
958 (get_type, parse_start_decl): Use the same `invalid' message.
959 (parse_start_decl, parse_union_decl): Use the same `multiple'
960 message.
961 (parse_union_decl, copy_guard, copy_action): Use the same
962 `unmatched' message.
963 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
964
cfe5fbc0
AD
9652000-03-31 Akim Demaille <akim@epita.fr>
966
967 * src/files.c (tryopen, tryclose): Move to the top.
968 Be static.
969
cb7db13e
AD
9702000-03-31 Akim Demaille <akim@epita.fr>
971
972 * src/main.c (main): Don't call `done', exit does it.
973
a0f6b076
AD
9742000-03-31 Akim Demaille <akim@epita.fr>
975
36281465
AD
976 * allocate.c: s/return (foo)/return foo/.
977 * lalr.c: Likewise.
978 * LR0.c: Likewise.
979 * output.c: Likewise.
980 * reader.c: Likewise.
981 * symtab.c: Likewise.
982 * vmsgetargs.c: Likewise.
983
9842000-03-31 Akim Demaille <akim@epita.fr>
985
986 Clean up the error reporting functions.
a0f6b076
AD
987
988 * src/report.c: New file.
989 * src/report.h: Likewise.
990 * src/Makefile.am: Adjust.
991 * m4/error.m4: New file.
992 * m4/Makefile.am: Adjust.
993 * configure.in (jm_PREREQ_ERROR): Call it.
994 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
995 Remove.
996 (fatal, fatals): Remove. All callers use complain.c::fatal.
997 (warn, warni, warns, warnss, warnss): Remove. All callers use
998 complain.c::complain.
999 (toomany): Remove, use fatal instead.
1000 * src/files.c (done): No argument, use complain_message_count.
1001 * src/main.c (main): Register `done' to `atexit'.
1002
1003 * src/getargs.c (usage): More `fputs', less `fprintf'.
1004
18539825
AD
10052000-03-28 Akim Demaille <akim@epita.fr>
1006
1007 * lib/: New directory.
1008 * Makefile.am (SUBDIRS): Adjust.
1009 * configure.in: Adjust.
1010 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1011 useless.
1012 * src/alloca.c: Moved to lib/.
1013 * src/getopt.c: Likewise.
1014 * src/getopt1.c: Likewise.
1015 * src/getopt.h: Likewise.
1016 * src/ansi2knr.c: Likewise.
1017 * src/ansi2knr.1: Likewise.
1018 * src/Makefile.am: Adjust.
1019 * lib/Makefile.am: New file.
1020
9f306f2a
AD
10212000-03-28 Akim Demaille <akim@epita.fr>
1022
1023 * src/getargs.c (usage): Refresh the help message.
1024
0ba347b6
AD
10252000-03-17 Akim Demaille <akim@epita.fr>
1026
1027 * src/getopt1.c: Updated from textutils 2.0e
1028 * src/getopt.c: Likewise.
1029 * src/getopt.h: Likewise.
1030
dbe7f271
AD
10312000-03-17 Akim Demaille <akim@epita.fr>
1032
1033 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1034 the file name, not the whole `#line LINE FILE'.
1035
75bbe78d
AD
10362000-03-17 Akim Demaille <akim@epita.fr>
1037
1038 On syntax errors, report the token on which we choked.
1039
aa5fd0ee
AD
1040 * src/bison.s1 (yyparse): In the label yyerrlab, when
1041 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1042
7b306f52
AD
10432000-03-17 Akim Demaille <akim@epita.fr>
1044
aa5fd0ee 1045 * src/reader.c (copy_at): New function.
7b306f52
AD
1046 (copy_guard): Use it.
1047 (copy_action): Use it.
1048
e87b5700
AD
10492000-03-17 Akim Demaille <akim@epita.fr>
1050
1051 Be kind to translators, save some useless translations.
1052
aa5fd0ee 1053 * src/main.c (banner): New function.
e87b5700
AD
1054 (fatal_banner): Use it.
1055 (warn_banner): Use it.
1056
ae3c3164
AD
10572000-03-17 Akim Demaille <akim@epita.fr>
1058
aa5fd0ee
AD
1059 * src/reader.c (copy_definition): Use copy_string and
1060 copy_comment. Removed now unused `match', `ended',
1061 `cplus_comment'.
ae3c3164
AD
1062 (copy_comment, copy_string): Moved, to be visible from
1063 copy_definition.
1064
4dc58e7c
AD
10652000-03-17 Akim Demaille <akim@epita.fr>
1066
aa5fd0ee
AD
1067 * src/reader.c (copy_string): Declare `static inline'. No
1068 problems with inline, since it is checked by configure.
4dc58e7c
AD
1069 (copy_comment): Likewise.
1070
0a6384c4
AD
10712000-03-17 Akim Demaille <akim@epita.fr>
1072
aa5fd0ee 1073 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1074
3cef001a
AD
10752000-03-17 Akim Demaille <akim@epita.fr>
1076
aa5fd0ee 1077 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1078 (copy_action): Use it. Removed now unused `match', `ended',
1079 `cplus_comment'.
1080 (copy_guard): Likewise.
1081
ca36d2ef
AD
10822000-03-17 Akim Demaille <akim@epita.fr>
1083
aa5fd0ee 1084 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1085 (copy_action): Use it.
1086 (copy_guard): Likewise.
1087
6666f98f
AD
10882000-03-17 Akim Demaille <akim@epita.fr>
1089
1090 Change the handling of @s so that they behave exactly like $s.
1091 There is now a pseudo variable @$ (readble and writable), location
1092 of the lhs of the rule (by default ranging from the location of
1093 the first symbol of the rhs, to the location of the last symbol,
1094 or, if the rhs is empty, YYLLOC).
1095
1096 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1097 yyval.
1098 (yyparse): When providing a default semantic action, provide a
1099 default location action.
1100 (after the $): No longer change `*YYLSP', just stack YYLOC the
1101 same way you stack YYVAL.
1102 * src/reader.c (read_declarations): Use warns.
1103 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1104 (copy_action, case '@'): Likewise.
1105 Use a standard error message, to save useless work from
1106 translators.
1107
41aca2e0
AD
11082000-03-17 Akim Demaille <akim@epita.fr>
1109
aa5fd0ee
AD
1110 * src/bison.s1: Formatting and cosmetics changes.
1111 * src/reader.c: Likewise.
41aca2e0
AD
1112 Update the Copyright notice.
1113
dc08c1d5
AD
11142000-03-17 Akim Demaille <akim@epita.fr>
1115
aa5fd0ee
AD
1116 * src/bison.s1 (#line): All set to `#line' only, since the
1117 Makefile now handles them.
dc08c1d5 1118
9ee3c97b
AD
11192000-03-16 Akim Demaille <akim@epita.fr>
1120
1121 * src/output.c (output_rule_data): Output the documentation of
1122 some of the tables.
1123 (Copyright notice): Update.
1124 Formatting changes.
1125
0de741ca
AD
11262000-03-16 Akim Demaille <akim@epita.fr>
1127
1128 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1129 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1130 One `#if YYDEBUG' remains, since it uses variables which are
1131 defined only if `YYDEBUG != 0'.
1132
bb10be54
AD
11332000-03-16 Akim Demaille <akim@epita.fr>
1134
1135 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1136 and related variables so that the similarities are highlighted.
1137
b07b484a
AD
11382000-03-16 Akim Demaille <akim@epita.fr>
1139
1140 * src/bison.s1: Properly indent CPP directives.
1141
361f60b3
AD
11422000-03-16 Akim Demaille <akim@epita.fr>
1143
1144 * src/bison.s1: Properly indent the `alloca' CPP section.
1145
8c44d3ec
AD
11462000-03-16 Akim Demaille <akim@epita.fr>
1147
1148 Do not hard code values of directories in `configure.in'.
1149 Update the `configure' tool chain.
1150
1151 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1152 src/makefile.am.
1153 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1154 (AC_OUTPUT): Add m4/Makefile.
1155 Bump to bison 1.28a, 1.29 has never been released.
1156 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1157 handled via src/Makefile.am.
1158 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1159 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1160 autoheader.
1161 * Makefile.am (SUBDIRS): Add m4.
1162 (ACLOCAL_AM_FLAGS): New variable.
1163 (AUTOMAKE_OPTIONS): Add check-news.
1164 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1165 the proper line number and file name.
1166 (DEFS): Propagate the location of bison library files and of the
1167 locale files.
1168 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1169 builddir.
1170 * acinclude.m4: Remove, replaced by the directory m4.
1171 * m4/Makefile.am (EXTRA_DIST): New variable.
1172 * m4/gettext.m4: New file, from the fileutils.
1173 * m4/lcmessage.m4: Likewise
1174 * m4/progtest.m4: Likewise.
1175 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1176
f95997e7
AD
11772000-03-10 Akim Demaille <akim@epita.fr>
1178
1179 * src/closure.c:
1180 Formatting changes of various comments.
1181 Respect the GNU coding standards at various places.
1182 Don't use `_()' when no translation is needed.
1183
11841999-12-13 Jesse Thilo <jthilo@gnu.org>
1185
1186 * src/files.c:
1187 OS/2 honors TMPDIR environment variable.
1188
11891999-12-13 Jesse Thilo <jthilo@gnu.org>
1190
1191 * doc/bison.texinfo: Tweaked spelling and grammar.
1192 Updated ISBN.
1193 Removed reference to price of printed copy.
1194 Mention BISON_SIMPLE and BISON_HAIRY.
1195
11961999-12-13 Jesse Thilo <jthilo@gnu.org>
1197
1198 * configure.in, NEWS:
1199 Bison 1.29 released.
1200
12011999-10-27 Jesse Thilo <jthilo@gnu.org>
1202
1203 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1204 Added reference card.
1205
12061999-07-26 Jesse Thilo <jthilo@gnu.org>
1207
1208 * po/ru.po: Added Russian translation.
1209
12101999-07-26 Jesse Thilo <jthilo@gnu.org>
1211
1212 * configure.in: Added Russian translation.
1213
12141999-07-06 Jesse Thilo <jthilo@gnu.org>
1215
1216 * configure.in, NEWS, README:
1217 Released version 1.28.
1218
12191999-06-14 Jesse Thilo <jthilo@gnu.org>
1220
1221 * src/system.h:
1222 Squashed redefinition warning on some systems.
1223
1224 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1225 Have configure build version string instead of relying on ANSI string
1226 concatentation.
1227
12281999-06-14 Jesse Thilo <jthilo@gnu.org>
1229
1230 * po/POTFILES.in: Got rid of version.c.
1231
12321999-06-14 Jesse Thilo <jthilo@gnu.org>
1233
1234 * acconfig.h, configure.in:
1235 Have configure build version string instead of relying on ANSI string
1236 concatentation.
1237
12381999-06-08 Jesse Thilo <jthilo@gnu.org>
1239
1240 * doc/bison.1:
1241 Dropped mention of `+' for long-named options.
1242
12431999-05-30 Jesse Thilo <jthilo@gnu.org>
1244
1245 * src/files.c: Added <unistd.h> for unlink().
1246
1247 * src/Makefile.am, src/system.h:
1248 I18n fixes.
1249
12501999-05-30 Jesse Thilo <jthilo@gnu.org>
1251
1252 * README: Added a FAQ list.
1253
1254 * configure.in, acconfig.h:
1255 I18n fixes.
1256
12571999-05-30 Jesse Thilo <jthilo@gnu.org>
1258
1259 * doc/FAQ, doc/Makefile.am:
1260 Added a FAQ list.
1261
12621999-05-19 Jesse Thilo <jthilo@gnu.org>
1263
1264 * src/alloc.h, src/symtab.h, src/version.c:
1265 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1266
12671999-04-18 Jesse Thilo <jthilo@gnu.org>
1268
1269 * src/.cvsignore, src/Makefile.am:
1270 Reorganized: sources in `src', documentation in `doc'.
1271
1272 * src/lex.c (literalchar):
1273 fixed the code for escaping double quotes (thanks
1274 Jonathan Czisny.)
1275
12761999-04-18 Jesse Thilo <jthilo@gnu.org>
1277
1278 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1279 Adjusted paths to reflect directory reorganization.
1280
12811999-04-18 Jesse Thilo <jthilo@gnu.org>
1282
1283 * doc/.cvsignore, doc/Makefile.am:
1284 Reorganized: sources in `src', documentation in `doc'.
1285
12861999-04-18 Jesse Thilo <jthilo@gnu.org>
1287
1288 * configure.in:
1289 Updated AC_INIT file to reflect directory reorganization.
1290
1291 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1292 Reorganized: sources in `src', documentation in `doc'.
1293
12941999-04-13 Jesse Thilo <jthilo@gnu.org>
1295
1296 * src/allocate.c:
1297 Don't declare calloc() and realloc() if not necessary.
1298
12991999-04-13 Jesse Thilo <jthilo@gnu.org>
1300
1301 * configure.in, acconfig.h, acinclude.m4:
1302 Don't declare calloc() and realloc() if not necessary.
1303
13041999-03-23 Jesse Thilo <jthilo@gnu.org>
1305
1306 * po/.cvsignore: Added i18n support.
1307
13081999-03-23 Jesse Thilo <jthilo@gnu.org>
1309
1310 * acconfig.h, configure.in, Makefile.am:
1311 Added i18n support.
1312
13131999-03-22 Jesse Thilo <jthilo@gnu.org>
1314
1315 * src/bison.s1: Fixed #line numbers.
1316
13171999-03-15 Jesse Thilo <jthilo@gnu.org>
1318
1319 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1320 Added PO files from Translation Project.
1321
13221999-03-03 Jesse Thilo <jthilo@gnu.org>
1323
1324 * Makefile.am:
1325 Added support for non-ANSI compilers (ansi2knr).
1326
13271999-02-16 Jesse Thilo <jthilo@gnu.org>
1328
1329 * configure.in: Bumped version number to 1.27.
1330
1331 * Makefile.am:
1332 Added `bison.simple' to list of files removed by `make distclean'.
1333
13341999-02-12 Jesse Thilo <jthilo@gnu.org>
1335
1336 * src/files.c, src/files.h:
1337 Defined locations of parser files in config.h instead of Makefile.
1338
13391999-02-12 Jesse Thilo <jthilo@gnu.org>
1340
1341 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1342 Defined locations of parser files in config.h instead of Makefile.
1343
13441999-02-09 Jesse Thilo <jthilo@gnu.org>
1345
1346 * Makefile.am:
1347 Removed inappropriate use of $< macro.
1348
13491999-02-05 Jesse Thilo <jthilo@gnu.org>
1350
1351 * po/Makefile.in.in, po/POTFILES.in:
1352 Add `po' directory skeleton.
1353
13541999-01-27 Jesse Thilo <jthilo@gnu.org>
1355
1356 * README: Document help-bison list.
1357
1358 * configure.in: Add check for mkstemp().
1359
13601999-01-20 Jesse Thilo <jthilo@gnu.org>
1361
1362 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1363 Hush a few compiler warnings.
1364
1365 * src/files.c:
1366 Add tryclose(), which verifies that fclose was successful.
1367 Hush a couple of compiler warnings.
1368
13691999-01-20 Jesse Thilo <jthilo@gnu.org>
1370
1371 * Makefile.am, OChangeLog:
1372 ChangeLog is now automatically generated. Include the old version as
1373 OChangeLog.
1374
13751999-01-14 Jesse Thilo <jthilo@gnu.org>
1376
1377 * 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:
1378 Update FSF address.
1379
13801999-01-14 Jesse Thilo <jthilo@gnu.org>
1381
1382 * doc/bison.texinfo: Fix formatting glitch.
1383
1384 * doc/bison.texinfo: Update FSF address.
1385
13861999-01-14 Jesse Thilo <jthilo@gnu.org>
1387
1388 * acconfig.h: Update FSF address.
1389
13901999-01-08 Jesse Thilo <jthilo@gnu.org>
1391
1392 * src/system.h:
1393 Don't define PACKAGE here, since config.h defines it.
1394
13951998-12-30 Jesse Thilo <jthilo@gnu.org>
1396
1397 * src/reader.c: Update copyright date.
1398
1399 * src/main.c:
1400 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1401 favor of output directly to stderr (avoids buffer overruns).
1402
1403 * src/reader.c: Some checks for premature EOF.
1404
1405 * 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:
1406 Use prototypes if the compiler understands them.
1407
1408 * src/files.c: Honor TMPDIR on Unix hosts.
1409 Use prototypes if the compiler understands them.
1410
1411 * src/reader.c:
1412 Fix a couple of buffer overrun bugs.
1413 Use prototypes if the compiler understands them.
1414
1415 * src/system.h: Include unistd.h and ctype.h.
1416 Use #ifdef instead of #if for NLS symbols.
1417
14181998-12-30 Jesse Thilo <jthilo@gnu.org>
1419
1420 * doc/bison.texinfo:
1421 Delete comment "consider using @set for edition number, etc..." since
1422 we now are doing so.
1423
14241998-12-30 Jesse Thilo <jthilo@gnu.org>
1425
1426 * configure.in:
1427 Use prototypes if the compiler understands them.
1428
1429 * NEWS: Document 1.26 highlights.
1430
1431 * Makefile.am: Require Automake 1.3 or later.
1432
1433 * acconfig.h:
1434 Use prototypes if the compiler understands them.
1435
14361998-12-29 Jesse Thilo <jthilo@gnu.org>
1437
1438 * src/version.c:
1439 Use VERSION symbol from automake for version number.
1440
14411998-12-29 Jesse Thilo <jthilo@gnu.org>
1442
1443 * acconfig.h, configure.in, version.cin:
1444 Use VERSION symbol from automake for version number.
1445
14461998-11-28 Jesse Thilo <jthilo@gnu.org>
1447
1448 * Makefile.am:
1449 Distribute original version of simple parser (bison.s1), not built
1450 version (bison.simple).
1451
14521998-11-28 Jesse Thilo <jthilo@gnu.org>
1453
1454 * doc/bison.texinfo: Add info dir entry.
1455
1456 * doc/bison.texinfo:
1457 Let automake put version number into documentation.
1458
14591998-11-26 Jesse Thilo <jthilo@gnu.org>
1460
1461 * src/bison.cld, src/build.com, src/vmshlp.mar:
1462 Add non-RCS files from /gd/gnu/bison.
1463
14641998-11-26 Jesse Thilo <jthilo@gnu.org>
1465
1466 * doc/bison.1:
1467 Document the BISON_HAIRY and BISON_SIMPLE variables.
1468
14691998-11-25 Jesse Thilo <jthilo@gnu.org>
1470
1471 * src/version.c: Build version.c automatically.
1472
1473 * src/reader.c:
1474 Fix token numbering (used to start at 258, not 257).
1475
1476 * src/system.h: Include config.h.
1477
1478 * src/getargs.c: Update bug report address.
1479
1480 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1481 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1482
14831998-11-25 Jesse Thilo <jthilo@gnu.org>
1484
1485 * Makefile.am:
1486 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1487
1488 * configure.in, version.cin:
1489 Build version.c automatically.
1490
1491 * AUTHORS: Add AUTHORS file.
1492
1493 * README: Update bug report address.
1494
1495 * bison.simple:
1496 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1497
1498 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1499 Add automake stuff.
1500
15011998-11-25 Jesse Thilo <jthilo@gnu.org>
1502
1503 * doc/bison.texinfo: Clean up some formatting.
1504
15051998-05-05 Richard Stallman <rms@gnu.org>
1506
1507 * doc/bison.texinfo:
1508 Explain better why to make a pure parser.
1509
15101998-01-05 Richard Stallman <rms@gnu.org>
1511
1512 * src/files.c (openfiles):
1513 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1514 find a temporary directory, if possible. Do not unlink files while
1515 they are open.
1516
15171997-08-25 Richard Stallman <rms@gnu.org>
1518
1519 * src/reader.c (stack_offset;):
1520 Change some warni to warns.
1521
1522 * src/lex.c (literalchar): Use warns, not warni.
1523
15241997-06-28 Richard Stallman <rms@gnu.org>
1525
1526 * src/bison.s1: Add a Bison version comment.
1527
1528 * src/main.c (fatal, warn, berror):
1529 Use program_name.
1530
15311997-06-28 Richard Stallman <rms@gnu.org>
1532
1533 * Makefile.in (bison_version): New variable.
1534 (dist): Use that variable.
1535 (bison.s1): Substitute the Bison version into bison.simple.
1536
1537 * bison.simple: Add a Bison version comment.
1538
15391997-06-18 Richard Stallman <rms@gnu.org>
1540
1541 * src/main.c (fatal, warn, berror):
1542 Make error messages standard.
1543 (toomany): Improve error message text.
1544
1545 * 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:
1546 new.h renamed to alloc.h.
1547
15481997-06-18 Richard Stallman <rms@gnu.org>
1549
1550 * Makefile.in: new.h renamed to alloc.h.
1551
15521997-05-24 Richard Stallman <rms@gnu.org>
1553
1554 * src/lex.c (literalchar):
1555 Fix the code for escaping \, " and '.
1556
1557 (lex): Avoid trouble when there are many chars
1558 to discard in a char literal with just several chars in it.
1559
15601997-05-17 Richard Stallman <rms@gnu.org>
1561
1562 * src/bison.s1:
1563 Use malloc, if using alloca is troublesome.
1564 (YYSTACK_USE_ALLOCA): New flag macro.
1565 Define it for some systems and compilers.
1566 (YYSTACK_ALLOC): New macro.
1567 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1568 If it was malloc'd, free it.
1569
15701997-05-17 Richard Stallman <rms@gnu.org>
1571
1572 * bison.simple:
1573 Use malloc, if using alloca is troublesome.
1574 (YYSTACK_USE_ALLOCA): New flag macro.
1575 Define it for some systems and compilers.
1576 (YYSTACK_ALLOC): New macro.
1577 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1578 If it was malloc'd, free it.
1579
15801997-04-23 Richard Stallman <rms@gnu.org>
1581
1582 * src/bison.s1:
1583 (alloca) [__hpux]: Always define as __builtin_alloca.
1584
15851997-04-23 Richard Stallman <rms@gnu.org>
1586
1587 * bison.simple:
1588 (alloca) [__hpux]: Always define as __builtin_alloca.
1589
15901997-04-22 Richard Stallman <rms@gnu.org>
1591
1592 * src/bison.s1:
1593 [__hpux]: Include alloca.h (right for HPUX 10)
1594 instead of declaring alloca (right for HPUX 9).
1595
1596 * src/bison.s1 (__yy_memcpy):
1597 Declare arg `count' as unsigned int.
1598 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1599
16001997-04-22 Richard Stallman <rms@gnu.org>
1601
1602 * bison.simple:
1603 [__hpux]: Include alloca.h (right for HPUX 10)
1604 instead of declaring alloca (right for HPUX 9).
1605
1606 * bison.simple (__yy_memcpy):
1607 Declare arg `count' as unsigned int.
1608 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1609
16101997-01-03 Richard Stallman <rms@gnu.org>
1611
1612 * src/allocate.c: [__STDC__ or _MSC_VER]:
1613 Declare calloc and realloc to return void *.
1614
16151997-01-02 Richard Stallman <rms@gnu.org>
1616
1617 * src/system.h:
1618 [_MSC_VER]: Include stdlib.h and process.h.
1619 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1620
1621 * src/main.c (main): Return FAILURE as a value.
1622 (printable_version): Declare arg as int, not char.
1623
16241997-01-02 Richard Stallman <rms@gnu.org>
1625
1626 * Makefile.in (dist):
1627 Explicitly check for symlinks, and copy them.
1628
16291996-12-19 Richard Stallman <rms@gnu.org>
1630
1631 * src/files.c:
1632 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1633
16341996-12-18 Paul Eggert <eggert@gnu.org>
1635
1636 * src/bison.s1 (yyparse):
1637 If __GNUC__ and YYPARSE_PARAM are both defined,
1638 declare yyparse to have a void * argument.
1639
16401996-12-18 Paul Eggert <eggert@gnu.org>
1641
1642 * bison.simple (yyparse):
1643 If __GNUC__ and YYPARSE_PARAM are both defined,
1644 declare yyparse to have a void * argument.
1645
16461996-12-17 Richard Stallman <rms@gnu.org>
1647
1648 * src/reduce.c (nbits): Add some casts.
1649
16501996-08-12 Richard Stallman <rms@gnu.org>
1651
1652 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1653
16541996-08-12 Richard Stallman <rms@gnu.org>
1655
1656 * bison.simple: Test _MSDOS as well as _MSDOS_.
1657
16581996-07-31 Richard Stallman <rms@gnu.org>
1659
1660 * src/bison.s1:
1661 [__sun && __i386]: Include alloca.h.
1662
16631996-07-31 Richard Stallman <rms@gnu.org>
1664
1665 * bison.simple:
1666 [__sun && __i386]: Include alloca.h.
1667
16681996-07-30 Richard Stallman <rms@gnu.org>
1669
1670 * src/bison.s1: Comment change.
1671
1672 * src/bison.s1: Test _MSDOS_, not MSDOS.
1673
16741996-07-30 Richard Stallman <rms@gnu.org>
1675
1676 * bison.simple: Comment change.
1677
1678 * bison.simple: Test _MSDOS_, not MSDOS.
1679
16801996-06-01 Richard Stallman <rms@gnu.org>
1681
1682 * 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:
1683 Insert `_' macro around many string constants.
1684
1685 * src/main.c:
1686 Insert `_' macro around many string constants.
1687
1688 (main): Call setlocale, bindtextdomain and textdomain.
1689
1690 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1691 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1692 [ENABLE_NLS]: Include libintl.h.
1693 [ENABLE_NLS] (gettext): Define.
1694 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1695 (N_, PACKAGE, LOCALEDIR): New macros.
1696
16971996-06-01 Richard Stallman <rms@gnu.org>
1698
1699 * POTFILES.in: New file.
1700
1701 * Makefile.in (allocate.o):
1702 Define target explicitly.
1703
1704 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1705 (LDFLAGS): Set to @LDFLAGS@.
1706 (configure): Run autoconf only if preceding `cd' succeeds.
1707 (bison.s1): Redirect output to temporary file then move the
1708 temporary to the target, rather than redirecting directly to bison.s1.
1709 (clean): Remove config.status and config.log.
1710 (distclean): Don't remove config.status here.
1711
17121996-05-12 Richard Stallman <rms@gnu.org>
1713
1714 * src/bison.s1:
1715 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1716
17171996-05-12 Richard Stallman <rms@gnu.org>
1718
1719 * bison.simple:
1720 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1721
17221996-05-11 Richard Stallman <rms@gnu.org>
1723
1724 * src/bison.s1 (__yy_memcpy):
1725 Really reorder the args, as was supposedly done on Feb 14 1995.
1726 (yyparse): Calls changed accordingly.
1727
17281996-05-11 Richard Stallman <rms@gnu.org>
1729
1730 * Makefile.in (dist): Don't use $(srcdir).
1731
1732 * bison.simple (__yy_memcpy):
1733 Really reorder the args, as was supposedly done on Feb 14 1995.
1734 (yyparse): Calls changed accordingly.
1735
17361996-01-27 Richard Stallman <rms@gnu.org>
1737
1738 * src/output.c (output_rule_data):
1739 Test YYERROR_VERBOSE in the conditional
1740 around the definition of ttyname.
1741
17421995-12-29 Richard Stallman <rms@gnu.org>
1743
1744 * src/bison.s1:
1745 Fix line numbers in #line commands.
1746
17471995-12-29 Richard Stallman <rms@gnu.org>
1748
1749 * bison.simple:
1750 Fix line numbers in #line commands.
1751
17521995-12-27 Richard Stallman <rms@gnu.org>
1753
1754 * src/bison.s1 (YYPARSE_PARAM_DECL):
1755 In C++, make it always null.
1756 (YYPARSE_PARAM_ARG): New macro.
1757 (yyparse): Use YYPARSE_PARAM_ARG.
1758
17591995-12-27 Richard Stallman <rms@gnu.org>
1760
1761 * bison.simple (YYPARSE_PARAM_DECL):
1762 In C++, make it always null.
1763 (YYPARSE_PARAM_ARG): New macro.
1764 (yyparse): Use YYPARSE_PARAM_ARG.
1765
17661995-11-29 Richard Stallman <rms@gnu.org>
1767
1768 * doc/bison.texinfo:
1769 Describe literal string tokens, %raw, %no_lines, %token_table.
1770
17711995-11-29 Daniel Hagerty <hag@gnu.org>
1772
1773 * doc/bison.texinfo: Fixed update date
1774
17751995-10-16 Richard Stallman <rms@gnu.org>
1776
1777 * src/version.c: Version 1.25.
1778
17791995-10-16 Richard Stallman <rms@gnu.org>
1780
1781 * NEWS: *** empty log message ***
1782
17831995-10-16 Richard Stallman <rms@gnu.org>
1784
1785 * doc/bison.1, doc/bison.rnh:
1786 Add new options.
1787
17881995-10-15 Richard Stallman <rms@gnu.org>
1789
1790 * src/vmsgetargs.c, src/getargs.c:
1791 Added -n, -k, and -raw switches.
1792 (noparserflag, toknumflag, rawtoknumflag): New variables.
1793
1794 * src/symtab.h (SALIAS):
1795 New #define for adding aliases to %token.
1796 (struct bucket): Added `alias' field.
1797
1798 * src/reduce.c (reduce_grammar):
1799 Revise error message.
1800 (print_notices): Remove final `.' from error message.
1801
1802 * src/reader.c (reader_output_yylsp):
1803 New function.
1804 (readgram): Use `#if 0' around code that accepted %command
1805 inside grammar rules: The documentation doesn't allow it,
1806 and it will fail since the %command processors scan for the next %.
1807 (parse_token_decl): Extended the %token
1808 declaration to allow a multi-character symbol as an alias.
1809 (parse_thong_decl): New function.
1810 (read_declarations): Added %thong declarations.
1811 (read_declarations): Handle NOOP to deal with allowing
1812 % declarations as another means to specify the flags.
1813 (readgram): Allow %prec prior to semantics embedded in a rule.
1814 (skip_to_char, read_declarations, copy_definition)
1815 (parse_token_decl, parse_start_decl, parse_type_decl)
1816 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1817 (get_type_name, copy_guard, copy_action, readgram)
1818 (get_type, packsymbols): Revised most error messages.
1819 Changed `fatal' to `warnxxx' to avoid aborting for error.
1820 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1821 (read_declarations): Improve the error message for
1822 an invalid character. Do not abort.
1823 (read_declarations, copy_guard, copy_action): Use
1824 printable_version to avoid unprintable characters in printed output.
1825 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1826 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1827 Allow the type of a non-terminal can be given
1828 more than once, as long as all specifications give the same type.
1829
1830 * src/output.c:
1831 (output_headers, output_trailers, output, output_gram)
1832 (output_rule_data): Implement noparserflag variable.
1833 Implement toknumflag variable.
1834 (output): Call reader_output_yylsp to output LTYPESTR.
1835
1836 * src/main.c (main):
1837 If reader sees an error, don't process the grammar.
1838 (fatals): Updated to not use VARARGS1.
1839 (printable_version, int_to_string, warn, warni, warns, warnss)
1840 (warnsss): New error reporting functions. Avoid abort for error.
1841
1842 * src/lex.h:
1843 Added THONG and NOOP for alias processing.
1844 Added SETOPT for the new code that allows setting options with %flags.
1845
1846 * src/lex.c:
1847 Include getopt.h. Add some extern decls.
1848 (safegetc): New function to deal with EOF gracefully.
1849 (literalchar); new function to deal with reading \ escapes.
1850 (lex): Use literalchar.
1851 (lex): Implemented "..." tokens.
1852 (literalchar, lex, parse_percent_token): Made tokenbuffer
1853 always contain the token. This includes growing the token
1854 buffer while reading an integer.
1855 (parse_percent_token): Replaced if-else statement with percent_table.
1856 (parse_percent_token): Added % declarations as another
1857 way to specify the flags -n, -l, and -r. Also added hooks for
1858 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1859 major changes to files.c.
1860 (lex) Retain in the incoming stream a character following
1861 an incorrect '/'.
1862 (skip_white_space, lex): Revised most error messages
1863 and changed fatal to warn to avoid aborting.
1864 (percent_table): Added %thong declarations.
1865
1866 * src/gram.h: Comment changes.
1867
1868 * src/files.c (openfiles, open_extra_files, done):
1869 Add faction flag
1870 and actfile file. Handle noparserflag. Both for -n switch.
1871
1872 * src/conflicts.c (resolve_sr_conflict):
1873 Remove use of alloca.
1874
18751995-06-01 Jim Meyering <meyering@gnu.org>
1876
1877 * doc/bison.texinfo: *** empty log message ***
1878
18791995-05-06 Richard Stallman <rms@gnu.org>
1880
1881 * src/bison.s1: Comment change.
1882
18831995-05-06 Richard Stallman <rms@gnu.org>
1884
1885 * bison.simple: Comment change.
1886
18871995-05-03 Richard Stallman <rms@gnu.org>
1888
1889 * src/version.c: Version now 1.24.
1890
1891 * src/bison.s1: Change distribution terms.
1892
1893 * src/version.c: Version now 1.23.
1894
18951995-05-03 Richard Stallman <rms@gnu.org>
1896
1897 * doc/bison.texinfo:
1898 Rewrite "Conditions for Using Bison".
1899 Update version to 1.24.
1900
19011995-05-03 Richard Stallman <rms@gnu.org>
1902
1903 * bison.simple: Change distribution terms.
1904
19051995-02-23 Richard Stallman <rms@gnu.org>
1906
1907 * src/files.c: Test __VMS_POSIX as well as VMS.
1908
19091995-02-14 Jim Meyering <meyering@gnu.org>
1910
1911 * src/bison.s1 (__yy_memcpy):
1912 Renamed from __yy_bcopy to avoid
1913 confusion. Reverse FROM and TO arguments to be consistent with
1914 those of memcpy.
1915
19161995-02-14 Jim Meyering <meyering@gnu.org>
1917
1918 * bison.simple (__yy_memcpy):
1919 Renamed from __yy_bcopy to avoid
1920 confusion. Reverse FROM and TO arguments to be consistent with
1921 those of memcpy.
1922
19231994-11-10 David J. MacKenzie <djm@gnu.org>
1924
1925 * NEWS: reformat
1926
1927 * NEWS: New file.
1928
1929 * Makefile.in (DISTFILES): Include NEWS.
1930
1931 * Makefile.in (DISTFILES):
1932 Include install-sh, not install.sh.
1933
1934 * configure.in: Update to Autoconf v2 macro names.
1935
19361994-10-05 David J. MacKenzie <djm@gnu.org>
1937
1938 * Makefile.in: fix typo
1939
1940 * Makefile.in (prefix, exec_prefix):
1941 Let configure set them.
1942
19431994-09-28 David J. MacKenzie <djm@gnu.org>
1944
1945 * Makefile.in: Set datadir to $(prefix)/share.
1946
19471994-09-15 Richard Stallman <rms@gnu.org>
1948
1949 * src/bison.s1:
1950 Update copyright notice and GPL version.
1951
19521994-09-15 Richard Stallman <rms@gnu.org>
1953
1954 * bison.simple:
1955 Update copyright notice and GPL version.
1956
19571994-07-12 Richard Stallman <rms@gnu.org>
1958
1959 * src/reduce.c, src/reader.c:
1960 entered into RCS
1961
19621994-05-05 David J. MacKenzie <djm@gnu.org>
1963
1964 * Makefile.in: entered into RCS
1965
19661994-03-26 Richard Stallman <rms@gnu.org>
1967
1968 * src/bison.s1: entered into RCS
1969
19701994-03-26 Richard Stallman <rms@gnu.org>
1971
1972 * bison.simple: entered into RCS
1973
19741994-03-25 Richard Stallman <rms@gnu.org>
1975
1976 * src/main.c: entered into RCS
1977
19781994-03-24 Richard Stallman <rms@gnu.org>
1979
1980 * src/conflicts.c: entered into RCS
1981
19821994-01-02 Richard Stallman <rms@gnu.org>
1983
1984 * Makefile.in: *** empty log message ***
1985
19861993-11-21 Richard Stallman <rms@gnu.org>
1987
1988 * src/bison.s1: *** empty log message ***
1989
19901993-11-21 Richard Stallman <rms@gnu.org>
1991
1992 * doc/bison.texinfo: entered into RCS
1993
1994 * doc/bison.texinfo: *** empty log message ***
1995
19961993-11-21 Richard Stallman <rms@gnu.org>
1997
1998 * bison.simple: *** empty log message ***
1999
20001993-10-25 David J. MacKenzie <djm@gnu.org>
2001
2002 * doc/bison.texinfo: *** empty log message ***
2003
20041993-10-19 Richard Stallman <rms@gnu.org>
2005
2006 * src/bison.s1: *** empty log message ***
2007
20081993-10-19 Richard Stallman <rms@gnu.org>
2009
2010 * bison.simple: *** empty log message ***
2011
20121993-10-14 Richard Stallman <rms@gnu.org>
2013
2014 * src/bison.s1: *** empty log message ***
2015
20161993-10-14 Richard Stallman <rms@gnu.org>
2017
2018 * bison.simple: *** empty log message ***
2019
20201993-09-14 David J. MacKenzie <djm@gnu.org>
2021
2022 * doc/bison.texinfo: *** empty log message ***
2023
20241993-09-13 Noah Friedman <friedman@gnu.org>
2025
2026 * Makefile.in: *** empty log message ***
2027
20281993-09-10 Richard Stallman <rms@gnu.org>
2029
2030 * src/conflicts.c: *** empty log message ***
2031
2032 * src/system.h: entered into RCS
2033
20341993-09-10 Richard Stallman <rms@gnu.org>
2035
2036 * doc/bison.1: entered into RCS
2037
20381993-09-06 Noah Friedman <friedman@gnu.org>
2039
2040 * src/version.c: entered into RCS
2041
20421993-09-06 Noah Friedman <friedman@gnu.org>
2043
2044 * Makefile.in: *** empty log message ***
2045
20461993-07-30 David J. MacKenzie <djm@gnu.org>
2047
2048 * Makefile.in: *** empty log message ***
2049
20501993-07-24 Richard Stallman <rms@gnu.org>
2051
2052 * src/bison.s1: *** empty log message ***
2053
20541993-07-24 Richard Stallman <rms@gnu.org>
2055
2056 * bison.simple: *** empty log message ***
2057
20581993-07-08 David J. MacKenzie <djm@gnu.org>
2059
2060 * Makefile.in: *** empty log message ***
2061
20621993-07-04 Richard Stallman <rms@gnu.org>
2063
2064 * src/bison.s1: *** empty log message ***
2065
20661993-07-04 Richard Stallman <rms@gnu.org>
2067
2068 * bison.simple: *** empty log message ***
2069
20701993-06-26 David J. MacKenzie <djm@gnu.org>
2071
2072 * src/getargs.c: entered into RCS
2073
20741993-06-26 David J. MacKenzie <djm@gnu.org>
2075
2076 * doc/bison.texinfo: *** empty log message ***
2077
2078 * doc/bison.1: New file.
2079
20801993-06-25 Richard Stallman <rms@gnu.org>
2081
2082 * src/getargs.c: New file.
2083
20841993-06-16 Richard Stallman <rms@gnu.org>
2085
2086 * src/bison.s1: *** empty log message ***
2087
20881993-06-16 Richard Stallman <rms@gnu.org>
2089
2090 * bison.simple: *** empty log message ***
2091
20921993-06-03 Richard Stallman <rms@gnu.org>
2093
2094 * src/bison.s1: New file.
2095
20961993-06-03 Richard Stallman <rms@gnu.org>
2097
2098 * doc/bison.texinfo: *** empty log message ***
2099
21001993-06-03 Richard Stallman <rms@gnu.org>
2101
2102 * bison.simple: New file.
2103
21041993-05-19 Richard Stallman <rms@gnu.org>
2105
2106 * doc/bison.texinfo: New file.
2107
21081993-05-07 Noah Friedman <friedman@gnu.org>
2109
2110 * Makefile.in: *** empty log message ***
2111
21121993-04-28 Noah Friedman <friedman@gnu.org>
2113
2114 * src/reader.c: *** empty log message ***
2115
21161993-04-23 Noah Friedman <friedman@gnu.org>
2117
2118 * src/alloc.h: entered into RCS
2119
21201993-04-20 David J. MacKenzie <djm@gnu.org>
2121
2122 * src/version.c: *** empty log message ***
2123
2124 * src/files.c, src/allocate.c:
2125 entered into RCS
2126
2127 * src/reader.c: *** empty log message ***
2128
2129 * src/lex.c: entered into RCS
2130
2131 * src/conflicts.c: New file.
2132
2133 * src/symtab.c: entered into RCS
2134
2135 * src/alloc.h: New file.
2136
2137 * src/LR0.c: entered into RCS
2138
21391993-04-18 Noah Friedman <friedman@gnu.org>
2140
2141 * src/reader.c: New file.
2142
2143 * src/version.c: *** empty log message ***
2144
21451993-04-18 Noah Friedman <friedman@gnu.org>
2146
2147 * Makefile.in: *** empty log message ***
2148
21491993-04-17 Noah Friedman <friedman@gnu.org>
2150
2151 * Makefile.in: *** empty log message ***
2152
21531993-04-15 Richard Stallman <rms@gnu.org>
2154
2155 * src/main.c, src/files.c:
2156 New file.
2157
21581993-04-15 Noah Friedman <friedman@gnu.org>
2159
2160 * configure.in: entered into RCS
2161
2162 * configure.in: *** empty log message ***
2163
2164 * configure.in: New file.
2165
21661993-04-14 Richard Stallman <rms@gnu.org>
2167
2168 * Makefile.in: New file.
2169
21701993-04-13 Richard Stallman <rms@gnu.org>
2171
2172 * src/version.c: New file.
2173
21741993-03-25 Richard Stallman <rms@gnu.org>
2175
2176 * src/output.c: entered into RCS
2177
21781992-09-25 Richard Stallman <rms@gnu.org>
2179
2180 * configure.bat: entered into RCS
2181
21821992-06-22 Richard Stallman <rms@gnu.org>
2183
2184 * src/vmsgetargs.c: entered into RCS
2185
21861992-06-22 Richard Stallman <rms@gnu.org>
2187
2188 * doc/bison.rnh: entered into RCS
2189
21901992-04-20 David J. MacKenzie <djm@gnu.org>
2191
2192 * README: entered into RCS
2193
21941992-01-22 Richard Stallman <rms@gnu.org>
2195
2196 * src/machine.h: entered into RCS
2197
21981991-12-21 Richard Stallman <rms@gnu.org>
2199
2200 * src/lalr.c, src/closure.c:
2201 entered into RCS
2202
22031991-12-20 Richard Stallman <rms@gnu.org>
2204
2205 * src/state.h: entered into RCS
2206
22071991-12-18 Richard Stallman <rms@gnu.org>
2208
2209 * src/print.c, src/nullable.c, src/derives.c:
2210 entered into RCS
2211
22121991-11-03 David J. MacKenzie <djm@gnu.org>
2213
2214 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2215 entered into RCS
2216
22171988-09-09 Richard Stallman <rms@gnu.org>
2218
2219 * src/bison.hairy: entered into RCS
2220
22211987-12-16 Richard Stallman <rms@gnu.org>
2222
2223 * REFERENCES: entered into RCS