]> git.saurik.com Git - bison.git/blob - ChangeLog
* src/system.h: Provide default declarations for stpcpy, strndup,
[bison.git] / ChangeLog
1 2001-08-10 Akim Demaille <akim@epita.fr>
2
3 * src/system.h: Provide default declarations for stpcpy, strndup,
4 and strnlen.
5
6 2001-08-10 Robert Anisko <anisko_r@epita.fr>
7
8 * doc/bison.texinfo (Locations): Update @$ stuff.
9
10 2001-08-09 Robert Anisko <anisko_r@epita.fr>
11
12 * src/bison.simple (YYLLOC_DEFAULT): Update.
13 (yyparse): Adjust.
14
15 2001-08-08 Marc Autret <autret_m@epita.fr>
16
17 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
18 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
19 Reported by Fabrice Bauzac.
20
21 2001-08-08 Marc Autret <autret_m@epita.fr>
22
23 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
24 * src/vcg.c (output_node): Fix.
25 * src/vcg.h: Cleanup.
26 * src/print_graph.c: Add comments.
27 (node_output_size): New global variable. Simplify the formatting of
28 the VCG graph output.
29 (print_actions): Unused code is now used. It notifies the final state
30 and no action states in the VCG graph. It also give the reduce actions.
31 The `shift and goto' edges are red and the `go to state' edges are
32 blue.
33 Get the current node name and node_obstack by argument.
34 (node_obstack): New variable.
35 (print_state): Manage node_obstack.
36 (print_core): Use node_obstack given by argument.
37 A node is not only computed here but in print_actions also.
38 (print_graph): CPP out useless code instead of commenting it.
39
40 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
41
42 * tests/atconfig.in (CPPFLAGS): Fix.
43
44 2001-08-07 Akim Demaille <akim@epita.fr>
45
46 * src/print_graph.c (quote): New.
47 (print_core): Use it.
48
49 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
50
51 * src/vcg.c (complain.h): Include it.
52 Unepitaize `return' invocations.
53 [NDEBUG] (main): Remove.
54 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * memebers.
55 * src/files.c (open_files): Initialize graph_obstack.
56 * src/print_graph.c (print_actions): CPP out useless code.
57 (print_core): Don't output the last `\n' in labels.
58 Use `quote'.
59 * src/files.c (output_files): Output the VCG file.
60 * src/main.c (main): Invoke print_graph ();
61
62 2001-08-06 Marc Autret <autret_m@epita.fr>
63
64 Automaton VCG graph output.
65 Using option ``-g'' or long option ``--graph'', you can generate
66 a gram_filename.vcg file containing a VCG description of the LALR (1)
67 automaton of your grammar.
68
69 * src/main.c: Call to print_graph() function.
70 * src/getargs.h: Update.
71 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
72 (graph_flag): New flag.
73 (longopts): Update.
74 (getargs): Add case `g'.
75 * src/files.c (graph_obstack): New obstack struct.
76 (open_files): Initialize new obstack.
77 (output_files): Saves graph_obstack if required.
78 * src/files.h (graph_obstack): New extern declaration.
79 * src/Makefile.am: Add new source files.
80
81 2001-08-06 Marc Autret <autret_m@epita.fr>
82
83 * src/print_graph.c, src/print_graph.h (graph): New.
84 * src/vcg.h: New file.
85 * src/vcg.c: New file, VCG graph handling.
86
87 2001-08-06 Marc Autret <autret_m@epita.fr>
88
89 Add of %source_extension and %header_extension which specify
90 the source or/and the header output file extension.
91
92 * src/files.c (compute_base_names): Remove initialisation of
93 src_extension and header_extension.
94 (compute_exts_from_gf): Update.
95 (compute_exts_from_src): Update.
96 (output_files): Update.
97 * src/reader.c (parse_header_extension_decl): New.
98 (parse_source_extension_decl): New.
99 (read_declarations): New case statements for the new tokens.
100 * src/lex.c (percent_table): Add entries for %source_extension
101 and %header_extension.
102 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
103
104 2001-08-06 Marc Autret <autret_m@epita.fr>
105
106 * configure.in: Bump to 1.28c.
107 * doc/bison.texinfo: Texinfo thingies.
108
109 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
110
111 * tests/atconfig.in (CPPFLAGS): Add.
112 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
113
114 2001-08-03 Akim Demaille <akim@epita.fr>
115
116 Version 1.28b.
117
118 2001-08-03 Akim Demaille <akim@epita.fr>
119
120 * tests/Makefile.am (check-local): Ship testsuite.
121 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
122 Include `string.h'.
123
124 2001-08-03 Akim Demaille <akim@epita.fr>
125
126 * configure.in: Try using -Wformat when compiling.
127
128 2001-08-03 Akim Demaille <akim@epita.fr>
129
130 * configure.in: Bump to 1.28b.
131
132 2001-08-03 Akim Demaille <akim@epita.fr>
133
134 * src/complain.c: Adjust strerror_r portability issues.
135
136 2001-08-03 Akim Demaille <akim@epita.fr>
137
138 Version 1.28a.
139
140 2001-08-03 Akim Demaille <akim@epita.fr>
141
142 * src/getargs.c, src/getarg.h (skeleton)): Constify.
143 * src/lex.c (literalchar): Avoid name clashes on `buf'.
144 * src/getargs.c: Include complain.h.
145 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
146 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
147
148 2001-08-03 Akim Demaille <akim@epita.fr>
149
150 * src/reader.c (readgram): Display hidden chars in error messages.
151
152 2001-08-03 Akim Demaille <akim@epita.fr>
153
154 Update to gettext 0.10.39.
155
156 2001-08-03 Akim Demaille <akim@epita.fr>
157
158 * lib/strspn.c: New.
159
160 2001-08-01 Marc Autret <autret_m@epita.fr>
161
162 * doc/bison.texinfo: Update.
163 * doc/bison.1 (mandoc): Update.
164 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
165 * src/files.c: Support output files extensions computing.
166 (src_extension): New static variable.
167 (header_extension): New static variable.
168 (tr): New function.
169 (get_extension_index): New function, gets the index of an extension
170 filename in a string.
171 (compute_exts_from_gf): New function, computes extensions from the
172 grammar file extension.
173 (compute_exts_from_src): New functions, computes extensions from the
174 C source file extension, file given by ``-o'' option.
175 (compute_base_names): Update.
176 (output_files): Update.
177
178 2001-08-01 Robert Anisko <anisko_r@epita.fr>
179
180 * doc/bison.texi: Document @$.
181 (Locations): New section.
182
183 2001-07-18 Akim Demaille <akim@epita.fr>
184
185 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
186 * config/prev-version.txt, config/move-if-change: New.
187 * Makefile.am: Adjust.
188
189 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
190
191 * src/bison.simple (yyparse): Suppress warning `comparaison
192 between signed and unsigned'.
193
194 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
195
196 * src/getargs.h (raw_flag): Remove.
197 * src/getargs.c: Die on `-r'/`--raw'.
198 * src/lex.c (parse_percent_token): Die on `%raw'.
199 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
200 * tests/calc.at: Suppress test with option `--raw'.
201
202 2001-07-14 Akim Demaille <akim@epita.fr>
203
204 * config/: New.
205 * configure.in: Require Autoconf 2.50.
206 Update to gettext 0.10.38.
207
208 2001-03-16 Akim Demaille <akim@epita.fr>
209
210 * doc/bison.texinfo: ANSIfy the examples.
211
212 2001-03-16 Akim Demaille <akim@epita.fr>
213
214 * getargs.c (skeleton): New variable.
215 (longopts): --skeleton is a new option.
216 (shortopts, getargs): -S is a new option.
217 * getargs.h: Declare skeleton.
218 * output.c (output_parser): Use it.
219
220 2001-03-16 Akim Demaille <akim@epita.fr>
221
222 * m4/strerror_r.m4: New.
223 * m4/error.m4: Run AC_FUNC_STRERROR_R.
224 * lib/error.h, lib/error.c: Update.
225
226 2001-03-16 Akim Demaille <akim@epita.fr>
227
228 * src/getargs.c (longopts): Clean up.
229
230 2001-02-21 Akim Demaille <akim@epita.fr>
231
232 * src/reader.c (gensym): `gensym_count' is your own.
233 Use a static buf to create the symbol name, as token_buffer is no
234 longer a buffer.
235
236 2001-02-08 Akim Demaille <akim@epita.fr>
237
238 * src/conflicts.c (conflict_report): Be sure not to append to res
239 between two calls, which could happen if both first sprintf were
240 skipped, but not the first cp += strlen.
241
242 2001-02-08 Akim Demaille <akim@epita.fr>
243
244 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
245 New, from fileutils 4.0.37.
246 * configure.in: Require Autoconf 2.49c. I took some time before
247 making this decision. This is the only way out for portability
248 issues in Bison, it would mean way too much duplicate effort to
249 import in Bison features implemented in 2.49c since 2.13.
250 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
251
252 2001-02-02 Akim Demaille <akim@epita.fr>
253
254 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
255 * lib/xalloc.h, lib/xmalloc.c: Update.
256
257 2001-01-19 Akim Demaille <akim@epita.fr>
258
259 Get rid of the ad hoc handling of token_buffer in the scanner: use
260 the obstacks.
261
262 * src/lex.c (token_obstack): New.
263 (init_lex): Initialize it. No longer call...
264 (grow_token_buffer): this. Remove it.
265 Adjust all the places which used it to use the obstack.
266
267 2001-01-19 Akim Demaille <akim@epita.fr>
268
269 * src/lex.h: Rename all the tokens:
270 s/\bENDFILE\b/tok_eof/g;
271 s/\bIDENTIFIER\b/tok_identifier/g;
272 etc.
273 Let them be enums, not #define, to ease debugging.
274 Adjust all the code.
275
276 2001-01-18 Akim Demaille <akim@epita.fr>
277
278 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
279 * src/lex.c (maxtoken, grow_token_buffer): Static.
280
281 2001-01-18 Akim Demaille <akim@epita.fr>
282
283 Since we now use obstacks, more % directives can be enabled.
284
285 * src/lex.c (percent_table): Also accept `%yacc',
286 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
287 `%debug'.
288 Handle the actions for `%semantic_parser' and `%pure_parser' here,
289 instead of returning a token.
290 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
291 * src/reader.c (read_declarations): Adjust.
292 * src/files.c (open_files): Don't call `compute_base_names', don't
293 compute `attrsfile' since they depend upon data which might be
294 *in* the input file now.
295 (output_files): Do it here.
296 * src/output.c (output_headers): Document the fact that this patch
297 introduces a guaranteed SEGV for semantic parsers.
298 * doc/bison.texinfo: Document them.
299 * tests/suite.at: Exercise these %options.
300
301 2000-12-20 Akim Demaille <akim@epita.fr>
302
303 Also handle the output file (--verbose) with obstacks.
304
305 * files.c (foutput): Remove.
306 (output_obstack): New.
307 Adjust all dependencies.
308 * src/conflicts.c: Return a string.
309 * src/system.h (obstack_grow_string): Rename as...
310 (obstack_sgrow): this. Be ready to work with non literals.
311 (obstack_fgrow4): New.
312
313 2000-12-20 Akim Demaille <akim@epita.fr>
314
315 * src/files.c (open_files): Fix the computation of short_base_name
316 in the case of `-o foo.tab.c'.
317
318 2000-12-20 Akim Demaille <akim@epita.fr>
319
320 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
321 (copy_dollar): Now that everything uses obstacks, get rid of the
322 FILE * parameters.
323
324 2000-12-20 Akim Demaille <akim@epita.fr>
325
326 * src/files.c (open_files): Actually the `.output' file is based
327 on the short_base_name, not base_name.
328 * tests/suite.at (Checking output file names): Adjust.
329
330 2000-12-20 Akim Demaille <akim@epita.fr>
331
332 * src/bison.s1: Remove, we now use directly...
333 * src/bison.simple: this.
334 * src/Makefile.am: Use pkgdata instead of data.
335
336 2000-12-20 Akim Demaille <akim@epita.fr>
337
338 * src/files.c (guard_obstack): New.
339 (open_files): Initialize it.
340 (output_files): Dump it...
341 * src/files.h: Export it.
342 * src/reader.c (copy_guard): Use it.
343
344 2000-12-19 Akim Demaille <akim@epita.fr>
345
346 * src/files.c (outfile, defsfile, actfile): Removed as global
347 vars.
348 (open_files): Don't compute them.
349 (output_files): Adjust.
350 (base_name, short_base_name): Be global.
351 Adjust dependencies.
352
353 2000-12-19 Akim Demaille <akim@epita.fr>
354
355 * src/files.c (strsuffix): New.
356 (stringappend): Be just like strcat but allocate.
357 (base_names): Eve out from open_files.
358 Try to simplify the rather hairy computation of base_name and
359 short_base_name.
360 (open_files): Use it.
361 * tests/suite.at (Checking output file names): New test.
362
363 2000-12-19 Akim Demaille <akim@epita.fr>
364
365 * src/system.h (obstack_grow_literal_string): Rename as...
366 (obstack_grow_string): this.
367 * src/output.c (output_parser): Recognize `%% actions' instead of
368 `$'.
369 * src/bison.s1: s/$/%% actions/.
370 * src/bison.hairy: Likewise.
371
372 2000-12-19 Akim Demaille <akim@epita.fr>
373
374 * src/output.c (output_parser): Compute the `#line' lines when
375 there are.
376 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
377 Suggested by Hans Aberg.
378
379 2000-12-19 Akim Demaille <akim@epita.fr>
380
381 Let the handling of the skeleton files be local to the procedures
382 that use it.
383
384 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
385 longer static.
386 (fparser, open_extra_files): Remove.
387 (open_files, output_files): Don't take care of fparser.
388 * src/files.h: Adjust.
389 * src/output.c (output_parser): Open and close the file to the
390 skeleton.
391 * src/reader.c (read_declarations): When %semantic_parser, open
392 fguard.
393
394 2000-12-19 Akim Demaille <akim@epita.fr>
395
396 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
397 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
398
399 2000-12-19 Akim Demaille <akim@epita.fr>
400
401 * src/files.c (open_files): Yipee! We no longer need all the code
402 looking for `/tmp' since we have no tmp file.
403
404 2000-12-19 Akim Demaille <akim@epita.fr>
405
406 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
407 New macros.
408 * src/files.c (open_files): Less dependency on MSDOS etc.
409
410 2000-12-14 Akim Demaille <akim@epita.fr>
411
412 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
413 Provide a default definition.
414 Use it when executing the default @ action.
415 * src/reader.c (reader_output_yylsp): No longer include
416 `timestamp' and `text' in the default YYLTYPE.
417
418 2000-12-12 Akim Demaille <akim@epita.fr>
419
420 * src/reader.c (copy_definition, parse_union_decl, copy_action)
421 (copy_guard): Quote the file names.
422 Reported by Laurent Mascherpa.
423
424 2000-12-12 Akim Demaille <akim@epita.fr>
425
426 * src/output.c (output_headers, output_program, output): Be sure
427 to escape special characters when outputting filenames.
428 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
429 (output_headers): Don't depend on them, Use ACTSTR.
430
431 2000-11-17 Akim Demaille <akim@epita.fr>
432
433 * lib/obstack.h: Formatting changes.
434 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
435 prevents type checking.
436 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
437 cast the value to (void *): assigning a `foo *' to a `void *'
438 variable is valid.
439 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
440 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
441 append characters.
442
443 2000-11-17 Akim Demaille <akim@epita.fr>
444
445 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
446 as...
447 (suite.m4, regression.m4, calc.m4): these.
448 * tests/atgeneral.m4: Update from CVS Autoconf.
449
450 2000-11-17 Akim Demaille <akim@epita.fr>
451
452 * tests/regression.m4 (%union and --defines): New test,
453 demonstrating a current bug in the obstack implementation.
454
455 2000-11-17 Akim Demaille <akim@epita.fr>
456
457 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
458 macros.
459 Use them to declare the variables which are global or local to
460 `yyparse'.
461
462 2000-11-17 Akim Demaille <akim@epita.fr>
463
464 * acconfig.h: Remove, no longer used.
465
466 2000-11-07 Akim Demaille <akim@epita.fr>
467
468 * src: s/Copyright (C)/Copyright/g.
469
470 2000-11-07 Akim Demaille <akim@epita.fr>
471
472 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
473 defining.
474 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
475
476 2000-11-07 Akim Demaille <akim@epita.fr>
477
478 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
479 Merge in a single CPP if/else.
480
481 2000-11-07 Akim Demaille <akim@epita.fr>
482
483 * src/output.c (output): Remove useless variables.
484 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
485 argument `data' for consistency with the prototypes.
486 Qualify it `const'.
487 (obstack_copy, obstack_copy0): Rename the second argument as
488 `address' for consistency. Qualify it `const'.
489 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
490 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
491 `const' their input argument (`data' or `address').
492 Adjust the corresponding macros to include `const' in casts.
493
494 2000-11-03 Akim Demaille <akim@epita.fr>
495
496 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
497 s/PFILE1/BISON_HAIRY/.
498 Adjust dependencies.
499
500 2000-11-03 Akim Demaille <akim@epita.fr>
501
502 For some reason, this was not applied.
503
504 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
505 `unlink': it's no longer used.
506
507 2000-11-03 Akim Demaille <akim@epita.fr>
508
509 * src/files.c (skeleton_find): New function, eved out of...
510 (open_files, open_extra_files): here.
511
512 2000-11-03 Akim Demaille <akim@epita.fr>
513
514 Don't use `atexit'.
515
516 * src/files.c (obstack_save): New function.
517 (done): Rename as...
518 (output_files): this.
519 Use `obstack_save'.
520 * src/main.c (main): Don't use `atexit' to register `done', since
521 it no longer has to remove tmp files, just call `output_files'
522 when there are no errors.
523
524 2000-11-02 Akim Demaille <akim@epita.fr>
525
526 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
527 `unlink': it's no longer used.
528 * src/files.h: Formatting changes.
529
530 2000-11-02 Akim Demaille <akim@epita.fr>
531
532 Remove the last uses of mktemp and unlink/delete.
533
534 * src/files.c (fdefines, ftable): Removed.
535 (defines_ostack, table_obstack): New.
536 Adjust dependencies of the former into uses of the latter.
537 * src/output.c (output_short_or_char_table, output_short_table):
538 Convert to using obstacks.
539 * src/reader.c (copy_comment2): Accept one FILE * and two
540 obstacks.
541 (output_token_defines, reader_output_yylsp): Use obstacks.
542 * src/system.h (obstack_fgrow3): New.
543
544 2000-11-01 Akim Demaille <akim@epita.fr>
545
546 Change each use of `fattrs' into a use of `attrs_obstack'.
547
548 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
549 * src/files.c (fattrs): Remove.
550 (attrs_obstack): New.
551 Adjust all dependencies.
552 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
553
554 2000-11-01 Akim Demaille <akim@epita.fr>
555
556 Introduce obstacks.
557 Change each use of `faction' into a use of `action_obstack'.
558
559 * lib/obstack.h, lib/obstack.c: New files.
560 * src/files.c (faction): Remove.
561 (action_obstack): New.
562 Adjust all dependencies.
563
564 2000-10-20 Akim Demaille <akim@epita.fr>
565
566 * lib/quote.h (PARAMS): New macro. Use it.
567
568 2000-10-16 Akim Demaille <akim@epita.fr>
569
570 * src/output.c (output_short_or_char_table): New function.
571 (output_short_table, output_token_translations): Use it.
572 (goto_actions): Use output_short_table.
573
574 2000-10-16 Akim Demaille <akim@epita.fr>
575
576 * src/symtab.c (bucket_new): New function.
577 (getsym): Use it.
578
579 * src/output.c (output_short_table): New argument to display the
580 comment associated with the table.
581 Adjust dependencies.
582 (output_gram): Use it.
583 (output_rule_data): Nicer output layout for YYTNAME.
584
585 2000-10-16 Akim Demaille <akim@epita.fr>
586
587 * src/lex.c (read_typename): New function.
588 (lex): Use it.
589 * src/reader.c (copy_dollar): Likewise.
590
591 2000-10-16 Akim Demaille <akim@epita.fr>
592
593 * src/reader.c (copy_comment2): Expect the input stream to be on
594 the `/' which is suspected to open a comment, instead of being
595 called after `//' or `/*' was read.
596 (copy_comment, copy_definition, parse_union_decl, copy_action)
597 (copy_guard): Adjust.
598
599 2000-10-16 Akim Demaille <akim@epita.fr>
600
601 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
602 `read_signed_integer'.
603
604 2000-10-16 Akim Demaille <akim@epita.fr>
605
606 * src/reader.c (copy_dollar): New function.
607 (copy_guard, copy_action): Use it.
608
609 2000-10-16 Akim Demaille <akim@epita.fr>
610
611 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
612 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
613 New files, from Fileutils 4.0.27.
614 * src/main.c (printable_version): Remove.
615 * src/lex.c, src/reader.c: Use `quote'.
616
617 2000-10-04 Akim Demaille <akim@epita.fr>
618
619 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
620
621 2000-10-04 Akim Demaille <akim@epita.fr>
622
623 * doc/bison.texinfo: Various typos spotted by Neil Booth.
624
625 2000-10-04 Akim Demaille <akim@epita.fr>
626
627 When a literal string is used to define two different tokens,
628 `bison -v' segfaults.
629 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
630
631 * tests/regression.m4: New file.
632 Include the core of the sample provided by Piotr Gackiewicz.
633 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
634 properly.
635
636 2000-10-04 Akim Demaille <akim@epita.fr>
637
638 * src/reader.c (parse_expect_decl): Keep `count' within the size
639 of `buffer'.
640 From Neil Booth.
641
642 2000-10-02 Paul Eggert <eggert@twinsun.com>
643
644 * bison.s1 (yyparse): Assign the default value
645 unconditionally, to avoid a GCC warning and make the parser a
646 tad smaller.
647
648 2000-10-02 Akim Demaille <akim@epita.fr>
649
650 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
651 options.
652
653 2000-10-02 Akim Demaille <akim@epita.fr>
654
655 * src/derives.c, src/print.c, src/reduce.c: To ease the
656 translation, move some `\n' out of the translated strings.
657
658 2000-10-02 Akim Demaille <akim@epita.fr>
659
660 The location tracking mechanism is precious for parse error
661 messages. Nevertheless, it is enabled only when `@n' is used in
662 the grammar, which is a different issue (you can use it in error
663 message, but not in the grammar per se). Therefore, there should
664 be another means to enable it.
665
666 * src/getargs.c (getargs): Support `--locations'.
667 (usage): Report it.
668 * src/getargs.h (locationsflag): Export it.
669 * src/lex.c (percent_table): Support `%locations'.
670 * src/reader.c (yylsp_needed): Remove this variable, now replaced
671 with `locationsflag'.
672 * doc/bison.texinfo: Document `--locations' and `%locations'.
673 Sort the options.
674 * tests/calc.m4: Test it.
675
676 For regularity of the names, replace each
677 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
678 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
679 In addition replace each `flag' with `_flag'.
680
681 2000-10-02 Akim Demaille <akim@epita.fr>
682
683 Also test parse error messages, including with YYERROR_VERBOSE.
684
685 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
686 associative).
687 Use it to check the computations.
688 Use it to check `nonassoc' is honored.
689 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
690 `--yyerror-verbose'.
691 (_AT_CHECK_CALC): Adjust to this option.
692 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
693
694 2000-10-02 Akim Demaille <akim@epita.fr>
695
696 Test also `--verbose', `--defines' and `--name-prefix'. Testing
697 the latter demonstrates a flaw in the handling of non debugging
698 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
699 was used in order to simplify:
700
701 #if YYDEBUG
702 if (yydebug)
703 {
704 ...
705 }
706 #endif
707
708 into
709
710 if (yydebug)
711 {
712 ...
713 }
714
715 unfortunately this leads to a CPP conflict when
716 `--name-prefix=foo' is used since it produces `#define yydebug
717 foodebug'.
718
719 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
720 (YYDPRINTF): New macro.
721 Spread its use.
722 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
723 the bison options.
724 Also test `--verbose', `--defines' and `--name-prefix'.
725
726 2000-10-02 Akim Demaille <akim@epita.fr>
727
728 Improve the readability of the produced parsers.
729
730 * src/bison.s1: Formatting changes.
731 Improve the comment related to the `$' mark.
732 (yydefault): Don't fall through to `yyresume': `goto' there.
733 * src/output.c (output_parser): When the `$' is met, skip the end
734 of its line.
735 New variable, `number_of_dollar_signs', to check there's exactly
736 one `$' in the parser skeleton.
737
738 2000-10-02 Akim Demaille <akim@epita.fr>
739
740 * lib/xstrdup.c: New file, from the fileutils.
741 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
742 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
743 instead of strlen + xmalloc + strcpy.
744 * src/symtab.c (copys): Remove, use xstrdup instead.
745
746 2000-10-02 Akim Demaille <akim@epita.fr>
747
748 * src/gram.h (associativity): New enum type which replaces the
749 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
750 `right_assoc', `left_assoc' and `non_assoc'.
751 Adjust all dependencies.
752 * src/reader.c: Formatting changes.
753 (LTYPESTR): Don't define it, use it as a literal in
754 `reader_output_yylsp'.
755 * src/symtab.h (symbol_class): New enum type which replaces the
756 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
757 `sunknown', `stoken and `snterm'.
758
759 2000-10-02 Akim Demaille <akim@epita.fr>
760
761 * src/getargs.c (fixed_outfiles): Rename as...
762 (yaccflag): for consistency and accuracy.
763 Adjust dependencies.
764
765 2000-10-02 Akim Demaille <akim@epita.fr>
766
767 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
768 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
769 difficult and introduced a lot of core dump. It turns out that
770 Bison used an implementation of `xmalloc' based on `calloc', and
771 at various places it does depend upon the initialization to 0. I
772 have not tried to isolate the pertinent places, and all the former
773 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
774 someone should address this issue.
775
776 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
777 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
778 files.
779 Adjust dependencies.
780 * src/warshall.h: New file.
781 Propagate.
782
783 2000-10-02 Akim Demaille <akim@epita.fr>
784
785 Various anti-`extern in *.c' changes.
786
787 * src/system.h: Include `assert.h'.
788
789 2000-10-02 Akim Demaille <akim@epita.fr>
790
791 * src/state.h (nstates, final_state, first_state, first_shift)
792 (first_reduction): Move their exportation from here...
793 * src/LR0.h: to here.
794 Adjust dependencies.
795 * src/getargs.c (statisticsflag): New variable.
796 Add support for `--statistics'.
797 Adjust dependencies.
798
799 Remove a lot of now useless `extern' statements in most files.
800
801 2000-10-02 Akim Demaille <akim@epita.fr>
802
803 * src/LR0.h: New file.
804 Propagate its use.
805
806 2000-10-02 Akim Demaille <akim@epita.fr>
807
808 * src/print.h: New file.
809 Propagate its use.
810 * src/print.c: Formatting and ordering changes.
811 (verbose, terse): Replace with...
812 (print_results): this new function.
813 Adjust dependencies.
814
815 2000-10-02 Akim Demaille <akim@epita.fr>
816
817 * src/conflicts.c (conflict_report): New function.
818 (conflict_log, verbose_conflict_log): Replace with...
819 (print_conflicts): this function.
820 Adjust dependencies.
821 * src/conflicts.h: New file.
822 Propagate its inclusion.
823
824 2000-10-02 Akim Demaille <akim@epita.fr>
825
826 * src/nullable.h: New file.
827 Propagate its inclusion.
828 * src/nullable.c: Formatting changes.
829
830 2000-10-02 Akim Demaille <akim@epita.fr>
831
832 * src/reduce.h: New file.
833 Propagate its inclusion.
834 * src/reduce.c: Topological sort and other formatting changes.
835 (bool, TRUE, FALSE): Move their definition to...
836 * src/system.h: here.
837
838 2000-10-02 Akim Demaille <akim@epita.fr>
839
840 * src/files.c: Formatting changes.
841 (tryopen, tryclose, openfiles): Rename as...
842 (xfopen, xfclose, open_files): this.
843 (stringappend): static.
844 * src/files.h: Complete the list of exported symbols.
845 Propagate its use.
846
847 2000-10-02 Akim Demaille <akim@epita.fr>
848
849 * src/reader.h: New file.
850 Propagate its use instead of tedious list of `extern' and
851 prototypes.
852 * src/reader.c: Formatting changes, topological sort,
853 s/register//.
854
855 2000-10-02 Akim Demaille <akim@epita.fr>
856
857 * src/lex.h: Prototype `lex.c' exported functions.
858 * src/reader.c: Adjust.
859 * src/lex.c: Formatting changes.
860 (safegetc): Rename as...
861 (xgetc): this.
862
863 2000-10-02 Akim Demaille <akim@epita.fr>
864
865 * src/lalr.h: New file.
866 Propagate its inclusion instead of prototypes and `extern'.
867 * src/lalr.c: Formatting changes, topological sorting etc.
868
869 2000-10-02 Akim Demaille <akim@epita.fr>
870
871 * src/output.c (token_actions): Introduce a temporary array,
872 YYDEFACT, that makes it possible for this function to use
873 output_short_table.
874
875 2000-10-02 Akim Demaille <akim@epita.fr>
876
877 `user_toknums' is output as a `short[]' in `output.c', while it is
878 defined as a `int[]' in `reader.c'. For consistency with the
879 other output tables, `user_toknums' is now defined as a table of
880 shorts.
881
882 * src/reader.c (user_toknums): Be a short table instead of an int
883 table.
884 Adjust dependencies.
885
886 Factor the short table outputs.
887
888 * src/output.c (output_short_table): New function.
889 * src/output.c (output_gram, output_stos, output_rule_data)
890 (output_base, output_table, output_check): Use it.
891
892 2000-10-02 Akim Demaille <akim@epita.fr>
893
894 * src/output.c (output): Topological sort of the functions, in
895 order to get rid of the `static' prototypes.
896 No longer use `register'.
897 * src/output.h: New file.
898 Propagate its inclusion in files explicitly prototyping functions
899 from output.c.
900
901 2000-09-21 Akim Demaille <akim@epita.fr>
902
903 * src/atgeneral.m4: Update from Autoconf.
904
905 2000-09-21 Akim Demaille <akim@epita.fr>
906
907 * src/closure.h: New file.
908 * src/closure.c: Formatting changes, topological sort over the
909 functions, use of closure.h.
910 (initialize_closure, finalize_closure): Rename as...
911 (new_closure, free_closure): these. Adjust dependencies.
912 * src/LR0.c: Formatting changes, topological sort, use of
913 cloture.h.
914 (initialize_states): Rename as...
915 (new_states): this.
916 * src/Makefile.am (noinst_HEADERS): Adjust.
917
918 2000-09-20 Akim Demaille <akim@epita.fr>
919
920 * src/acconfig.h: Don't protect config.h against multiple
921 inclusion.
922 Don't define PARAMS.
923 * src/system.h: Define PARAMS.
924 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
925 purpose of config.h. system.h must not try to fix wrong
926 definitions in config.h.
927
928 2000-09-20 Akim Demaille <akim@epita.fr>
929
930 * src/derives.h: New file.
931 * src/main.c, src/derives.h: Use it.
932 Formatting changes.
933 * src/Makefile.am (noinst_HEADERS): Adjust.
934
935 2000-09-20 Akim Demaille <akim@epita.fr>
936
937 * tests/atgeneral.m4: Update from Autoconf.
938 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
939 (AT_CHECK_CALC): New macros.
940 Use these macros to test bison with options `', `--raw',
941 `--debug', `--yacc', `--yacc --debug'.
942
943 2000-09-19 Akim Demaille <akim@epita.fr>
944
945 * src/output.c: Formatting changes.
946 * src/machine.h: Remove, leaving its contents in...
947 * src/system.h: here.
948 Include stdio.h.
949 Adjust all dependencies on stdio.h and machine.h.
950 * src/getargs.h: New file.
951 Let all `extern' declarations about getargs.c be replaced with
952 inclusion of `getargs.h'.
953 * src/Makefile.am (noinst_HEADERS): Adjust.
954
955 * tests/calc.m4 (yyin): Be initialized in main, not on the global
956 scope.
957 (yyerror): Returns void, not int.
958 * doc/bison.texinfo: Formatting changes.
959
960 2000-09-19 Akim Demaille <akim@epita.fr>
961
962 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
963 portable.
964
965 2000-09-18 Akim Demaille <akim@epita.fr>
966
967 * configure.in: Append WARNING_CFLAGS to CFLAGS.
968 * src/Makefile.am (INCLUDES): Don't.
969 Be ready to fetch headers in lib/.
970
971 2000-09-18 Akim Demaille <akim@epita.fr>
972
973 * doc/bison.texinfo: Update the copyright.
974 ANSIfy and GNUify the examples.
975 Remove the old menu.
976
977 2000-09-18 Akim Demaille <akim@epita.fr>
978
979 First set of tests: use the `calc' example from the documentation.
980
981 * src/bison.s1 (yyparse): Condition the code using `yytname' which
982 is defined only when YYDEBUG is.
983 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
984 * src/files.c (tryopen, tryclose): Formatting changes.
985 Move to the top and be static.
986 * src/reader.c (read_signed_integer): Likewise.
987 * tests/calc.m4: New file.
988 * Makefile.am, suite.m4: Adjust.
989 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
990
991 2000-09-18 Akim Demaille <akim@epita.fr>
992
993 Add support for an Autotest test suite for Bison.
994
995 * m4/m4.m4, m4/atconfig.m4: New files.
996 * m4/Makefile.am (EXTRA_DIST): Adjust.
997 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
998 files.
999 * src/getargs.c: Display a more standard --version message.
1000 * src/reader.c (reader): Formatting changes.
1001 No longer depend upon VERSION_STRING.
1002 * configure.in: No longer use `dnl'.
1003 Set up the test suite and the new directory `tests/.
1004 (VERSION_STRING): Remove.
1005
1006 2000-04-14 Akim Demaille <akim@epita.fr>
1007
1008 * src/reader.c (copy_comment2): New function, same as former
1009 `copy_comment', but outputs into two FILE *.
1010 (copy_comment): Use it.
1011 (parse_union_decl): Use it.
1012 (get_type, parse_start_decl): Use the same `invalid' message.
1013 (parse_start_decl, parse_union_decl): Use the same `multiple'
1014 message.
1015 (parse_union_decl, copy_guard, copy_action): Use the same
1016 `unmatched' message.
1017 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1018
1019 2000-03-31 Akim Demaille <akim@epita.fr>
1020
1021 * src/files.c (tryopen, tryclose): Move to the top.
1022 Be static.
1023
1024 2000-03-31 Akim Demaille <akim@epita.fr>
1025
1026 * src/main.c (main): Don't call `done', exit does it.
1027
1028 2000-03-31 Akim Demaille <akim@epita.fr>
1029
1030 * allocate.c: s/return (foo)/return foo/.
1031 * lalr.c: Likewise.
1032 * LR0.c: Likewise.
1033 * output.c: Likewise.
1034 * reader.c: Likewise.
1035 * symtab.c: Likewise.
1036 * vmsgetargs.c: Likewise.
1037
1038 2000-03-31 Akim Demaille <akim@epita.fr>
1039
1040 Clean up the error reporting functions.
1041
1042 * src/report.c: New file.
1043 * src/report.h: Likewise.
1044 * src/Makefile.am: Adjust.
1045 * m4/error.m4: New file.
1046 * m4/Makefile.am: Adjust.
1047 * configure.in (jm_PREREQ_ERROR): Call it.
1048 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1049 Remove.
1050 (fatal, fatals): Remove. All callers use complain.c::fatal.
1051 (warn, warni, warns, warnss, warnss): Remove. All callers use
1052 complain.c::complain.
1053 (toomany): Remove, use fatal instead.
1054 * src/files.c (done): No argument, use complain_message_count.
1055 * src/main.c (main): Register `done' to `atexit'.
1056
1057 * src/getargs.c (usage): More `fputs', less `fprintf'.
1058
1059 2000-03-28 Akim Demaille <akim@epita.fr>
1060
1061 * lib/: New directory.
1062 * Makefile.am (SUBDIRS): Adjust.
1063 * configure.in: Adjust.
1064 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1065 useless.
1066 * src/alloca.c: Moved to lib/.
1067 * src/getopt.c: Likewise.
1068 * src/getopt1.c: Likewise.
1069 * src/getopt.h: Likewise.
1070 * src/ansi2knr.c: Likewise.
1071 * src/ansi2knr.1: Likewise.
1072 * src/Makefile.am: Adjust.
1073 * lib/Makefile.am: New file.
1074
1075 2000-03-28 Akim Demaille <akim@epita.fr>
1076
1077 * src/getargs.c (usage): Refresh the help message.
1078
1079 2000-03-17 Akim Demaille <akim@epita.fr>
1080
1081 * src/getopt1.c: Updated from textutils 2.0e
1082 * src/getopt.c: Likewise.
1083 * src/getopt.h: Likewise.
1084
1085 2000-03-17 Akim Demaille <akim@epita.fr>
1086
1087 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1088 the file name, not the whole `#line LINE FILE'.
1089
1090 2000-03-17 Akim Demaille <akim@epita.fr>
1091
1092 On syntax errors, report the token on which we choked.
1093
1094 * src/bison.s1 (yyparse): In the label yyerrlab, when
1095 YYERROR_VERBOSE, add yychar in msg.
1096
1097 2000-03-17 Akim Demaille <akim@epita.fr>
1098
1099 * src/reader.c (copy_at): New function.
1100 (copy_guard): Use it.
1101 (copy_action): Use it.
1102
1103 2000-03-17 Akim Demaille <akim@epita.fr>
1104
1105 Be kind to translators, save some useless translations.
1106
1107 * src/main.c (banner): New function.
1108 (fatal_banner): Use it.
1109 (warn_banner): Use it.
1110
1111 2000-03-17 Akim Demaille <akim@epita.fr>
1112
1113 * src/reader.c (copy_definition): Use copy_string and
1114 copy_comment. Removed now unused `match', `ended',
1115 `cplus_comment'.
1116 (copy_comment, copy_string): Moved, to be visible from
1117 copy_definition.
1118
1119 2000-03-17 Akim Demaille <akim@epita.fr>
1120
1121 * src/reader.c (copy_string): Declare `static inline'. No
1122 problems with inline, since it is checked by configure.
1123 (copy_comment): Likewise.
1124
1125 2000-03-17 Akim Demaille <akim@epita.fr>
1126
1127 * src/reader.c (packsymbols): Formatting changes.
1128
1129 2000-03-17 Akim Demaille <akim@epita.fr>
1130
1131 * src/reader.c (copy_comment): New function, factored out from:
1132 (copy_action): Use it. Removed now unused `match', `ended',
1133 `cplus_comment'.
1134 (copy_guard): Likewise.
1135
1136 2000-03-17 Akim Demaille <akim@epita.fr>
1137
1138 * src/reader.c (copy_string): New function, factored out from:
1139 (copy_action): Use it.
1140 (copy_guard): Likewise.
1141
1142 2000-03-17 Akim Demaille <akim@epita.fr>
1143
1144 Change the handling of @s so that they behave exactly like $s.
1145 There is now a pseudo variable @$ (readble and writable), location
1146 of the lhs of the rule (by default ranging from the location of
1147 the first symbol of the rhs, to the location of the last symbol,
1148 or, if the rhs is empty, YYLLOC).
1149
1150 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1151 yyval.
1152 (yyparse): When providing a default semantic action, provide a
1153 default location action.
1154 (after the $): No longer change `*YYLSP', just stack YYLOC the
1155 same way you stack YYVAL.
1156 * src/reader.c (read_declarations): Use warns.
1157 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1158 (copy_action, case '@'): Likewise.
1159 Use a standard error message, to save useless work from
1160 translators.
1161
1162 2000-03-17 Akim Demaille <akim@epita.fr>
1163
1164 * src/bison.s1: Formatting and cosmetics changes.
1165 * src/reader.c: Likewise.
1166 Update the Copyright notice.
1167
1168 2000-03-17 Akim Demaille <akim@epita.fr>
1169
1170 * src/bison.s1 (#line): All set to `#line' only, since the
1171 Makefile now handles them.
1172
1173 2000-03-16 Akim Demaille <akim@epita.fr>
1174
1175 * src/output.c (output_rule_data): Output the documentation of
1176 some of the tables.
1177 (Copyright notice): Update.
1178 Formatting changes.
1179
1180 2000-03-16 Akim Demaille <akim@epita.fr>
1181
1182 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1183 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1184 One `#if YYDEBUG' remains, since it uses variables which are
1185 defined only if `YYDEBUG != 0'.
1186
1187 2000-03-16 Akim Demaille <akim@epita.fr>
1188
1189 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1190 and related variables so that the similarities are highlighted.
1191
1192 2000-03-16 Akim Demaille <akim@epita.fr>
1193
1194 * src/bison.s1: Properly indent CPP directives.
1195
1196 2000-03-16 Akim Demaille <akim@epita.fr>
1197
1198 * src/bison.s1: Properly indent the `alloca' CPP section.
1199
1200 2000-03-16 Akim Demaille <akim@epita.fr>
1201
1202 Do not hard code values of directories in `configure.in'.
1203 Update the `configure' tool chain.
1204
1205 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1206 src/makefile.am.
1207 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1208 (AC_OUTPUT): Add m4/Makefile.
1209 Bump to bison 1.28a, 1.29 has never been released.
1210 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1211 handled via src/Makefile.am.
1212 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1213 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1214 autoheader.
1215 * Makefile.am (SUBDIRS): Add m4.
1216 (ACLOCAL_AM_FLAGS): New variable.
1217 (AUTOMAKE_OPTIONS): Add check-news.
1218 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1219 the proper line number and file name.
1220 (DEFS): Propagate the location of bison library files and of the
1221 locale files.
1222 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1223 builddir.
1224 * acinclude.m4: Remove, replaced by the directory m4.
1225 * m4/Makefile.am (EXTRA_DIST): New variable.
1226 * m4/gettext.m4: New file, from the fileutils.
1227 * m4/lcmessage.m4: Likewise
1228 * m4/progtest.m4: Likewise.
1229 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1230
1231 2000-03-10 Akim Demaille <akim@epita.fr>
1232
1233 * src/closure.c:
1234 Formatting changes of various comments.
1235 Respect the GNU coding standards at various places.
1236 Don't use `_()' when no translation is needed.
1237
1238 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1239
1240 * src/files.c:
1241 OS/2 honors TMPDIR environment variable.
1242
1243 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1244
1245 * doc/bison.texinfo: Tweaked spelling and grammar.
1246 Updated ISBN.
1247 Removed reference to price of printed copy.
1248 Mention BISON_SIMPLE and BISON_HAIRY.
1249
1250 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1251
1252 * configure.in, NEWS:
1253 Bison 1.29 released.
1254
1255 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1256
1257 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1258 Added reference card.
1259
1260 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1261
1262 * po/ru.po: Added Russian translation.
1263
1264 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1265
1266 * configure.in: Added Russian translation.
1267
1268 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1269
1270 * configure.in, NEWS, README:
1271 Released version 1.28.
1272
1273 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1274
1275 * src/system.h:
1276 Squashed redefinition warning on some systems.
1277
1278 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1279 Have configure build version string instead of relying on ANSI string
1280 concatentation.
1281
1282 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1283
1284 * po/POTFILES.in: Got rid of version.c.
1285
1286 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1287
1288 * acconfig.h, configure.in:
1289 Have configure build version string instead of relying on ANSI string
1290 concatentation.
1291
1292 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1293
1294 * doc/bison.1:
1295 Dropped mention of `+' for long-named options.
1296
1297 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1298
1299 * src/files.c: Added <unistd.h> for unlink().
1300
1301 * src/Makefile.am, src/system.h:
1302 I18n fixes.
1303
1304 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1305
1306 * README: Added a FAQ list.
1307
1308 * configure.in, acconfig.h:
1309 I18n fixes.
1310
1311 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1312
1313 * doc/FAQ, doc/Makefile.am:
1314 Added a FAQ list.
1315
1316 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1317
1318 * src/alloc.h, src/symtab.h, src/version.c:
1319 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1320
1321 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1322
1323 * src/.cvsignore, src/Makefile.am:
1324 Reorganized: sources in `src', documentation in `doc'.
1325
1326 * src/lex.c (literalchar):
1327 fixed the code for escaping double quotes (thanks
1328 Jonathan Czisny.)
1329
1330 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1331
1332 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1333 Adjusted paths to reflect directory reorganization.
1334
1335 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1336
1337 * doc/.cvsignore, doc/Makefile.am:
1338 Reorganized: sources in `src', documentation in `doc'.
1339
1340 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1341
1342 * configure.in:
1343 Updated AC_INIT file to reflect directory reorganization.
1344
1345 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1346 Reorganized: sources in `src', documentation in `doc'.
1347
1348 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1349
1350 * src/allocate.c:
1351 Don't declare calloc() and realloc() if not necessary.
1352
1353 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1354
1355 * configure.in, acconfig.h, acinclude.m4:
1356 Don't declare calloc() and realloc() if not necessary.
1357
1358 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1359
1360 * po/.cvsignore: Added i18n support.
1361
1362 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1363
1364 * acconfig.h, configure.in, Makefile.am:
1365 Added i18n support.
1366
1367 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1368
1369 * src/bison.s1: Fixed #line numbers.
1370
1371 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1372
1373 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1374 Added PO files from Translation Project.
1375
1376 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1377
1378 * Makefile.am:
1379 Added support for non-ANSI compilers (ansi2knr).
1380
1381 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1382
1383 * configure.in: Bumped version number to 1.27.
1384
1385 * Makefile.am:
1386 Added `bison.simple' to list of files removed by `make distclean'.
1387
1388 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1389
1390 * src/files.c, src/files.h:
1391 Defined locations of parser files in config.h instead of Makefile.
1392
1393 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1394
1395 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1396 Defined locations of parser files in config.h instead of Makefile.
1397
1398 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1399
1400 * Makefile.am:
1401 Removed inappropriate use of $< macro.
1402
1403 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1404
1405 * po/Makefile.in.in, po/POTFILES.in:
1406 Add `po' directory skeleton.
1407
1408 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1409
1410 * README: Document help-bison list.
1411
1412 * configure.in: Add check for mkstemp().
1413
1414 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1415
1416 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1417 Hush a few compiler warnings.
1418
1419 * src/files.c:
1420 Add tryclose(), which verifies that fclose was successful.
1421 Hush a couple of compiler warnings.
1422
1423 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1424
1425 * Makefile.am, OChangeLog:
1426 ChangeLog is now automatically generated. Include the old version as
1427 OChangeLog.
1428
1429 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1430
1431 * 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:
1432 Update FSF address.
1433
1434 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1435
1436 * doc/bison.texinfo: Fix formatting glitch.
1437
1438 * doc/bison.texinfo: Update FSF address.
1439
1440 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1441
1442 * acconfig.h: Update FSF address.
1443
1444 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1445
1446 * src/system.h:
1447 Don't define PACKAGE here, since config.h defines it.
1448
1449 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1450
1451 * src/reader.c: Update copyright date.
1452
1453 * src/main.c:
1454 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1455 favor of output directly to stderr (avoids buffer overruns).
1456
1457 * src/reader.c: Some checks for premature EOF.
1458
1459 * 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:
1460 Use prototypes if the compiler understands them.
1461
1462 * src/files.c: Honor TMPDIR on Unix hosts.
1463 Use prototypes if the compiler understands them.
1464
1465 * src/reader.c:
1466 Fix a couple of buffer overrun bugs.
1467 Use prototypes if the compiler understands them.
1468
1469 * src/system.h: Include unistd.h and ctype.h.
1470 Use #ifdef instead of #if for NLS symbols.
1471
1472 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1473
1474 * doc/bison.texinfo:
1475 Delete comment "consider using @set for edition number, etc..." since
1476 we now are doing so.
1477
1478 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1479
1480 * configure.in:
1481 Use prototypes if the compiler understands them.
1482
1483 * NEWS: Document 1.26 highlights.
1484
1485 * Makefile.am: Require Automake 1.3 or later.
1486
1487 * acconfig.h:
1488 Use prototypes if the compiler understands them.
1489
1490 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1491
1492 * src/version.c:
1493 Use VERSION symbol from automake for version number.
1494
1495 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1496
1497 * acconfig.h, configure.in, version.cin:
1498 Use VERSION symbol from automake for version number.
1499
1500 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1501
1502 * Makefile.am:
1503 Distribute original version of simple parser (bison.s1), not built
1504 version (bison.simple).
1505
1506 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1507
1508 * doc/bison.texinfo: Add info dir entry.
1509
1510 * doc/bison.texinfo:
1511 Let automake put version number into documentation.
1512
1513 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1514
1515 * src/bison.cld, src/build.com, src/vmshlp.mar:
1516 Add non-RCS files from /gd/gnu/bison.
1517
1518 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1519
1520 * doc/bison.1:
1521 Document the BISON_HAIRY and BISON_SIMPLE variables.
1522
1523 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1524
1525 * src/version.c: Build version.c automatically.
1526
1527 * src/reader.c:
1528 Fix token numbering (used to start at 258, not 257).
1529
1530 * src/system.h: Include config.h.
1531
1532 * src/getargs.c: Update bug report address.
1533
1534 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1535 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1536
1537 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1538
1539 * Makefile.am:
1540 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1541
1542 * configure.in, version.cin:
1543 Build version.c automatically.
1544
1545 * AUTHORS: Add AUTHORS file.
1546
1547 * README: Update bug report address.
1548
1549 * bison.simple:
1550 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1551
1552 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1553 Add automake stuff.
1554
1555 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1556
1557 * doc/bison.texinfo: Clean up some formatting.
1558
1559 1998-05-05 Richard Stallman <rms@gnu.org>
1560
1561 * doc/bison.texinfo:
1562 Explain better why to make a pure parser.
1563
1564 1998-01-05 Richard Stallman <rms@gnu.org>
1565
1566 * src/files.c (openfiles):
1567 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1568 find a temporary directory, if possible. Do not unlink files while
1569 they are open.
1570
1571 1997-08-25 Richard Stallman <rms@gnu.org>
1572
1573 * src/reader.c (stack_offset;):
1574 Change some warni to warns.
1575
1576 * src/lex.c (literalchar): Use warns, not warni.
1577
1578 1997-06-28 Richard Stallman <rms@gnu.org>
1579
1580 * src/bison.s1: Add a Bison version comment.
1581
1582 * src/main.c (fatal, warn, berror):
1583 Use program_name.
1584
1585 1997-06-28 Richard Stallman <rms@gnu.org>
1586
1587 * Makefile.in (bison_version): New variable.
1588 (dist): Use that variable.
1589 (bison.s1): Substitute the Bison version into bison.simple.
1590
1591 * bison.simple: Add a Bison version comment.
1592
1593 1997-06-18 Richard Stallman <rms@gnu.org>
1594
1595 * src/main.c (fatal, warn, berror):
1596 Make error messages standard.
1597 (toomany): Improve error message text.
1598
1599 * 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:
1600 new.h renamed to alloc.h.
1601
1602 1997-06-18 Richard Stallman <rms@gnu.org>
1603
1604 * Makefile.in: new.h renamed to alloc.h.
1605
1606 1997-05-24 Richard Stallman <rms@gnu.org>
1607
1608 * src/lex.c (literalchar):
1609 Fix the code for escaping \, " and '.
1610
1611 (lex): Avoid trouble when there are many chars
1612 to discard in a char literal with just several chars in it.
1613
1614 1997-05-17 Richard Stallman <rms@gnu.org>
1615
1616 * src/bison.s1:
1617 Use malloc, if using alloca is troublesome.
1618 (YYSTACK_USE_ALLOCA): New flag macro.
1619 Define it for some systems and compilers.
1620 (YYSTACK_ALLOC): New macro.
1621 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1622 If it was malloc'd, free it.
1623
1624 1997-05-17 Richard Stallman <rms@gnu.org>
1625
1626 * bison.simple:
1627 Use malloc, if using alloca is troublesome.
1628 (YYSTACK_USE_ALLOCA): New flag macro.
1629 Define it for some systems and compilers.
1630 (YYSTACK_ALLOC): New macro.
1631 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1632 If it was malloc'd, free it.
1633
1634 1997-04-23 Richard Stallman <rms@gnu.org>
1635
1636 * src/bison.s1:
1637 (alloca) [__hpux]: Always define as __builtin_alloca.
1638
1639 1997-04-23 Richard Stallman <rms@gnu.org>
1640
1641 * bison.simple:
1642 (alloca) [__hpux]: Always define as __builtin_alloca.
1643
1644 1997-04-22 Richard Stallman <rms@gnu.org>
1645
1646 * src/bison.s1:
1647 [__hpux]: Include alloca.h (right for HPUX 10)
1648 instead of declaring alloca (right for HPUX 9).
1649
1650 * src/bison.s1 (__yy_memcpy):
1651 Declare arg `count' as unsigned int.
1652 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1653
1654 1997-04-22 Richard Stallman <rms@gnu.org>
1655
1656 * bison.simple:
1657 [__hpux]: Include alloca.h (right for HPUX 10)
1658 instead of declaring alloca (right for HPUX 9).
1659
1660 * bison.simple (__yy_memcpy):
1661 Declare arg `count' as unsigned int.
1662 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1663
1664 1997-01-03 Richard Stallman <rms@gnu.org>
1665
1666 * src/allocate.c: [__STDC__ or _MSC_VER]:
1667 Declare calloc and realloc to return void *.
1668
1669 1997-01-02 Richard Stallman <rms@gnu.org>
1670
1671 * src/system.h:
1672 [_MSC_VER]: Include stdlib.h and process.h.
1673 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1674
1675 * src/main.c (main): Return FAILURE as a value.
1676 (printable_version): Declare arg as int, not char.
1677
1678 1997-01-02 Richard Stallman <rms@gnu.org>
1679
1680 * Makefile.in (dist):
1681 Explicitly check for symlinks, and copy them.
1682
1683 1996-12-19 Richard Stallman <rms@gnu.org>
1684
1685 * src/files.c:
1686 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1687
1688 1996-12-18 Paul Eggert <eggert@gnu.org>
1689
1690 * src/bison.s1 (yyparse):
1691 If __GNUC__ and YYPARSE_PARAM are both defined,
1692 declare yyparse to have a void * argument.
1693
1694 1996-12-18 Paul Eggert <eggert@gnu.org>
1695
1696 * bison.simple (yyparse):
1697 If __GNUC__ and YYPARSE_PARAM are both defined,
1698 declare yyparse to have a void * argument.
1699
1700 1996-12-17 Richard Stallman <rms@gnu.org>
1701
1702 * src/reduce.c (nbits): Add some casts.
1703
1704 1996-08-12 Richard Stallman <rms@gnu.org>
1705
1706 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1707
1708 1996-08-12 Richard Stallman <rms@gnu.org>
1709
1710 * bison.simple: Test _MSDOS as well as _MSDOS_.
1711
1712 1996-07-31 Richard Stallman <rms@gnu.org>
1713
1714 * src/bison.s1:
1715 [__sun && __i386]: Include alloca.h.
1716
1717 1996-07-31 Richard Stallman <rms@gnu.org>
1718
1719 * bison.simple:
1720 [__sun && __i386]: Include alloca.h.
1721
1722 1996-07-30 Richard Stallman <rms@gnu.org>
1723
1724 * src/bison.s1: Comment change.
1725
1726 * src/bison.s1: Test _MSDOS_, not MSDOS.
1727
1728 1996-07-30 Richard Stallman <rms@gnu.org>
1729
1730 * bison.simple: Comment change.
1731
1732 * bison.simple: Test _MSDOS_, not MSDOS.
1733
1734 1996-06-01 Richard Stallman <rms@gnu.org>
1735
1736 * 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:
1737 Insert `_' macro around many string constants.
1738
1739 * src/main.c:
1740 Insert `_' macro around many string constants.
1741
1742 (main): Call setlocale, bindtextdomain and textdomain.
1743
1744 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1745 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1746 [ENABLE_NLS]: Include libintl.h.
1747 [ENABLE_NLS] (gettext): Define.
1748 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1749 (N_, PACKAGE, LOCALEDIR): New macros.
1750
1751 1996-06-01 Richard Stallman <rms@gnu.org>
1752
1753 * POTFILES.in: New file.
1754
1755 * Makefile.in (allocate.o):
1756 Define target explicitly.
1757
1758 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1759 (LDFLAGS): Set to @LDFLAGS@.
1760 (configure): Run autoconf only if preceding `cd' succeeds.
1761 (bison.s1): Redirect output to temporary file then move the
1762 temporary to the target, rather than redirecting directly to bison.s1.
1763 (clean): Remove config.status and config.log.
1764 (distclean): Don't remove config.status here.
1765
1766 1996-05-12 Richard Stallman <rms@gnu.org>
1767
1768 * src/bison.s1:
1769 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1770
1771 1996-05-12 Richard Stallman <rms@gnu.org>
1772
1773 * bison.simple:
1774 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1775
1776 1996-05-11 Richard Stallman <rms@gnu.org>
1777
1778 * src/bison.s1 (__yy_memcpy):
1779 Really reorder the args, as was supposedly done on Feb 14 1995.
1780 (yyparse): Calls changed accordingly.
1781
1782 1996-05-11 Richard Stallman <rms@gnu.org>
1783
1784 * Makefile.in (dist): Don't use $(srcdir).
1785
1786 * bison.simple (__yy_memcpy):
1787 Really reorder the args, as was supposedly done on Feb 14 1995.
1788 (yyparse): Calls changed accordingly.
1789
1790 1996-01-27 Richard Stallman <rms@gnu.org>
1791
1792 * src/output.c (output_rule_data):
1793 Test YYERROR_VERBOSE in the conditional
1794 around the definition of ttyname.
1795
1796 1995-12-29 Richard Stallman <rms@gnu.org>
1797
1798 * src/bison.s1:
1799 Fix line numbers in #line commands.
1800
1801 1995-12-29 Richard Stallman <rms@gnu.org>
1802
1803 * bison.simple:
1804 Fix line numbers in #line commands.
1805
1806 1995-12-27 Richard Stallman <rms@gnu.org>
1807
1808 * src/bison.s1 (YYPARSE_PARAM_DECL):
1809 In C++, make it always null.
1810 (YYPARSE_PARAM_ARG): New macro.
1811 (yyparse): Use YYPARSE_PARAM_ARG.
1812
1813 1995-12-27 Richard Stallman <rms@gnu.org>
1814
1815 * bison.simple (YYPARSE_PARAM_DECL):
1816 In C++, make it always null.
1817 (YYPARSE_PARAM_ARG): New macro.
1818 (yyparse): Use YYPARSE_PARAM_ARG.
1819
1820 1995-11-29 Richard Stallman <rms@gnu.org>
1821
1822 * doc/bison.texinfo:
1823 Describe literal string tokens, %raw, %no_lines, %token_table.
1824
1825 1995-11-29 Daniel Hagerty <hag@gnu.org>
1826
1827 * doc/bison.texinfo: Fixed update date
1828
1829 1995-10-16 Richard Stallman <rms@gnu.org>
1830
1831 * src/version.c: Version 1.25.
1832
1833 1995-10-16 Richard Stallman <rms@gnu.org>
1834
1835 * NEWS: *** empty log message ***
1836
1837 1995-10-16 Richard Stallman <rms@gnu.org>
1838
1839 * doc/bison.1, doc/bison.rnh:
1840 Add new options.
1841
1842 1995-10-15 Richard Stallman <rms@gnu.org>
1843
1844 * src/vmsgetargs.c, src/getargs.c:
1845 Added -n, -k, and -raw switches.
1846 (noparserflag, toknumflag, rawtoknumflag): New variables.
1847
1848 * src/symtab.h (SALIAS):
1849 New #define for adding aliases to %token.
1850 (struct bucket): Added `alias' field.
1851
1852 * src/reduce.c (reduce_grammar):
1853 Revise error message.
1854 (print_notices): Remove final `.' from error message.
1855
1856 * src/reader.c (reader_output_yylsp):
1857 New function.
1858 (readgram): Use `#if 0' around code that accepted %command
1859 inside grammar rules: The documentation doesn't allow it,
1860 and it will fail since the %command processors scan for the next %.
1861 (parse_token_decl): Extended the %token
1862 declaration to allow a multi-character symbol as an alias.
1863 (parse_thong_decl): New function.
1864 (read_declarations): Added %thong declarations.
1865 (read_declarations): Handle NOOP to deal with allowing
1866 % declarations as another means to specify the flags.
1867 (readgram): Allow %prec prior to semantics embedded in a rule.
1868 (skip_to_char, read_declarations, copy_definition)
1869 (parse_token_decl, parse_start_decl, parse_type_decl)
1870 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1871 (get_type_name, copy_guard, copy_action, readgram)
1872 (get_type, packsymbols): Revised most error messages.
1873 Changed `fatal' to `warnxxx' to avoid aborting for error.
1874 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1875 (read_declarations): Improve the error message for
1876 an invalid character. Do not abort.
1877 (read_declarations, copy_guard, copy_action): Use
1878 printable_version to avoid unprintable characters in printed output.
1879 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1880 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1881 Allow the type of a non-terminal can be given
1882 more than once, as long as all specifications give the same type.
1883
1884 * src/output.c:
1885 (output_headers, output_trailers, output, output_gram)
1886 (output_rule_data): Implement noparserflag variable.
1887 Implement toknumflag variable.
1888 (output): Call reader_output_yylsp to output LTYPESTR.
1889
1890 * src/main.c (main):
1891 If reader sees an error, don't process the grammar.
1892 (fatals): Updated to not use VARARGS1.
1893 (printable_version, int_to_string, warn, warni, warns, warnss)
1894 (warnsss): New error reporting functions. Avoid abort for error.
1895
1896 * src/lex.h:
1897 Added THONG and NOOP for alias processing.
1898 Added SETOPT for the new code that allows setting options with %flags.
1899
1900 * src/lex.c:
1901 Include getopt.h. Add some extern decls.
1902 (safegetc): New function to deal with EOF gracefully.
1903 (literalchar); new function to deal with reading \ escapes.
1904 (lex): Use literalchar.
1905 (lex): Implemented "..." tokens.
1906 (literalchar, lex, parse_percent_token): Made tokenbuffer
1907 always contain the token. This includes growing the token
1908 buffer while reading an integer.
1909 (parse_percent_token): Replaced if-else statement with percent_table.
1910 (parse_percent_token): Added % declarations as another
1911 way to specify the flags -n, -l, and -r. Also added hooks for
1912 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1913 major changes to files.c.
1914 (lex) Retain in the incoming stream a character following
1915 an incorrect '/'.
1916 (skip_white_space, lex): Revised most error messages
1917 and changed fatal to warn to avoid aborting.
1918 (percent_table): Added %thong declarations.
1919
1920 * src/gram.h: Comment changes.
1921
1922 * src/files.c (openfiles, open_extra_files, done):
1923 Add faction flag
1924 and actfile file. Handle noparserflag. Both for -n switch.
1925
1926 * src/conflicts.c (resolve_sr_conflict):
1927 Remove use of alloca.
1928
1929 1995-06-01 Jim Meyering <meyering@gnu.org>
1930
1931 * doc/bison.texinfo: *** empty log message ***
1932
1933 1995-05-06 Richard Stallman <rms@gnu.org>
1934
1935 * src/bison.s1: Comment change.
1936
1937 1995-05-06 Richard Stallman <rms@gnu.org>
1938
1939 * bison.simple: Comment change.
1940
1941 1995-05-03 Richard Stallman <rms@gnu.org>
1942
1943 * src/version.c: Version now 1.24.
1944
1945 * src/bison.s1: Change distribution terms.
1946
1947 * src/version.c: Version now 1.23.
1948
1949 1995-05-03 Richard Stallman <rms@gnu.org>
1950
1951 * doc/bison.texinfo:
1952 Rewrite "Conditions for Using Bison".
1953 Update version to 1.24.
1954
1955 1995-05-03 Richard Stallman <rms@gnu.org>
1956
1957 * bison.simple: Change distribution terms.
1958
1959 1995-02-23 Richard Stallman <rms@gnu.org>
1960
1961 * src/files.c: Test __VMS_POSIX as well as VMS.
1962
1963 1995-02-14 Jim Meyering <meyering@gnu.org>
1964
1965 * src/bison.s1 (__yy_memcpy):
1966 Renamed from __yy_bcopy to avoid
1967 confusion. Reverse FROM and TO arguments to be consistent with
1968 those of memcpy.
1969
1970 1995-02-14 Jim Meyering <meyering@gnu.org>
1971
1972 * bison.simple (__yy_memcpy):
1973 Renamed from __yy_bcopy to avoid
1974 confusion. Reverse FROM and TO arguments to be consistent with
1975 those of memcpy.
1976
1977 1994-11-10 David J. MacKenzie <djm@gnu.org>
1978
1979 * NEWS: reformat
1980
1981 * NEWS: New file.
1982
1983 * Makefile.in (DISTFILES): Include NEWS.
1984
1985 * Makefile.in (DISTFILES):
1986 Include install-sh, not install.sh.
1987
1988 * configure.in: Update to Autoconf v2 macro names.
1989
1990 1994-10-05 David J. MacKenzie <djm@gnu.org>
1991
1992 * Makefile.in: fix typo
1993
1994 * Makefile.in (prefix, exec_prefix):
1995 Let configure set them.
1996
1997 1994-09-28 David J. MacKenzie <djm@gnu.org>
1998
1999 * Makefile.in: Set datadir to $(prefix)/share.
2000
2001 1994-09-15 Richard Stallman <rms@gnu.org>
2002
2003 * src/bison.s1:
2004 Update copyright notice and GPL version.
2005
2006 1994-09-15 Richard Stallman <rms@gnu.org>
2007
2008 * bison.simple:
2009 Update copyright notice and GPL version.
2010
2011 1994-07-12 Richard Stallman <rms@gnu.org>
2012
2013 * src/reduce.c, src/reader.c:
2014 entered into RCS
2015
2016 1994-05-05 David J. MacKenzie <djm@gnu.org>
2017
2018 * Makefile.in: entered into RCS
2019
2020 1994-03-26 Richard Stallman <rms@gnu.org>
2021
2022 * src/bison.s1: entered into RCS
2023
2024 1994-03-26 Richard Stallman <rms@gnu.org>
2025
2026 * bison.simple: entered into RCS
2027
2028 1994-03-25 Richard Stallman <rms@gnu.org>
2029
2030 * src/main.c: entered into RCS
2031
2032 1994-03-24 Richard Stallman <rms@gnu.org>
2033
2034 * src/conflicts.c: entered into RCS
2035
2036 1994-01-02 Richard Stallman <rms@gnu.org>
2037
2038 * Makefile.in: *** empty log message ***
2039
2040 1993-11-21 Richard Stallman <rms@gnu.org>
2041
2042 * src/bison.s1: *** empty log message ***
2043
2044 1993-11-21 Richard Stallman <rms@gnu.org>
2045
2046 * doc/bison.texinfo: entered into RCS
2047
2048 * doc/bison.texinfo: *** empty log message ***
2049
2050 1993-11-21 Richard Stallman <rms@gnu.org>
2051
2052 * bison.simple: *** empty log message ***
2053
2054 1993-10-25 David J. MacKenzie <djm@gnu.org>
2055
2056 * doc/bison.texinfo: *** empty log message ***
2057
2058 1993-10-19 Richard Stallman <rms@gnu.org>
2059
2060 * src/bison.s1: *** empty log message ***
2061
2062 1993-10-19 Richard Stallman <rms@gnu.org>
2063
2064 * bison.simple: *** empty log message ***
2065
2066 1993-10-14 Richard Stallman <rms@gnu.org>
2067
2068 * src/bison.s1: *** empty log message ***
2069
2070 1993-10-14 Richard Stallman <rms@gnu.org>
2071
2072 * bison.simple: *** empty log message ***
2073
2074 1993-09-14 David J. MacKenzie <djm@gnu.org>
2075
2076 * doc/bison.texinfo: *** empty log message ***
2077
2078 1993-09-13 Noah Friedman <friedman@gnu.org>
2079
2080 * Makefile.in: *** empty log message ***
2081
2082 1993-09-10 Richard Stallman <rms@gnu.org>
2083
2084 * src/conflicts.c: *** empty log message ***
2085
2086 * src/system.h: entered into RCS
2087
2088 1993-09-10 Richard Stallman <rms@gnu.org>
2089
2090 * doc/bison.1: entered into RCS
2091
2092 1993-09-06 Noah Friedman <friedman@gnu.org>
2093
2094 * src/version.c: entered into RCS
2095
2096 1993-09-06 Noah Friedman <friedman@gnu.org>
2097
2098 * Makefile.in: *** empty log message ***
2099
2100 1993-07-30 David J. MacKenzie <djm@gnu.org>
2101
2102 * Makefile.in: *** empty log message ***
2103
2104 1993-07-24 Richard Stallman <rms@gnu.org>
2105
2106 * src/bison.s1: *** empty log message ***
2107
2108 1993-07-24 Richard Stallman <rms@gnu.org>
2109
2110 * bison.simple: *** empty log message ***
2111
2112 1993-07-08 David J. MacKenzie <djm@gnu.org>
2113
2114 * Makefile.in: *** empty log message ***
2115
2116 1993-07-04 Richard Stallman <rms@gnu.org>
2117
2118 * src/bison.s1: *** empty log message ***
2119
2120 1993-07-04 Richard Stallman <rms@gnu.org>
2121
2122 * bison.simple: *** empty log message ***
2123
2124 1993-06-26 David J. MacKenzie <djm@gnu.org>
2125
2126 * src/getargs.c: entered into RCS
2127
2128 1993-06-26 David J. MacKenzie <djm@gnu.org>
2129
2130 * doc/bison.texinfo: *** empty log message ***
2131
2132 * doc/bison.1: New file.
2133
2134 1993-06-25 Richard Stallman <rms@gnu.org>
2135
2136 * src/getargs.c: New file.
2137
2138 1993-06-16 Richard Stallman <rms@gnu.org>
2139
2140 * src/bison.s1: *** empty log message ***
2141
2142 1993-06-16 Richard Stallman <rms@gnu.org>
2143
2144 * bison.simple: *** empty log message ***
2145
2146 1993-06-03 Richard Stallman <rms@gnu.org>
2147
2148 * src/bison.s1: New file.
2149
2150 1993-06-03 Richard Stallman <rms@gnu.org>
2151
2152 * doc/bison.texinfo: *** empty log message ***
2153
2154 1993-06-03 Richard Stallman <rms@gnu.org>
2155
2156 * bison.simple: New file.
2157
2158 1993-05-19 Richard Stallman <rms@gnu.org>
2159
2160 * doc/bison.texinfo: New file.
2161
2162 1993-05-07 Noah Friedman <friedman@gnu.org>
2163
2164 * Makefile.in: *** empty log message ***
2165
2166 1993-04-28 Noah Friedman <friedman@gnu.org>
2167
2168 * src/reader.c: *** empty log message ***
2169
2170 1993-04-23 Noah Friedman <friedman@gnu.org>
2171
2172 * src/alloc.h: entered into RCS
2173
2174 1993-04-20 David J. MacKenzie <djm@gnu.org>
2175
2176 * src/version.c: *** empty log message ***
2177
2178 * src/files.c, src/allocate.c:
2179 entered into RCS
2180
2181 * src/reader.c: *** empty log message ***
2182
2183 * src/lex.c: entered into RCS
2184
2185 * src/conflicts.c: New file.
2186
2187 * src/symtab.c: entered into RCS
2188
2189 * src/alloc.h: New file.
2190
2191 * src/LR0.c: entered into RCS
2192
2193 1993-04-18 Noah Friedman <friedman@gnu.org>
2194
2195 * src/reader.c: New file.
2196
2197 * src/version.c: *** empty log message ***
2198
2199 1993-04-18 Noah Friedman <friedman@gnu.org>
2200
2201 * Makefile.in: *** empty log message ***
2202
2203 1993-04-17 Noah Friedman <friedman@gnu.org>
2204
2205 * Makefile.in: *** empty log message ***
2206
2207 1993-04-15 Richard Stallman <rms@gnu.org>
2208
2209 * src/main.c, src/files.c:
2210 New file.
2211
2212 1993-04-15 Noah Friedman <friedman@gnu.org>
2213
2214 * configure.in: entered into RCS
2215
2216 * configure.in: *** empty log message ***
2217
2218 * configure.in: New file.
2219
2220 1993-04-14 Richard Stallman <rms@gnu.org>
2221
2222 * Makefile.in: New file.
2223
2224 1993-04-13 Richard Stallman <rms@gnu.org>
2225
2226 * src/version.c: New file.
2227
2228 1993-03-25 Richard Stallman <rms@gnu.org>
2229
2230 * src/output.c: entered into RCS
2231
2232 1992-09-25 Richard Stallman <rms@gnu.org>
2233
2234 * configure.bat: entered into RCS
2235
2236 1992-06-22 Richard Stallman <rms@gnu.org>
2237
2238 * src/vmsgetargs.c: entered into RCS
2239
2240 1992-06-22 Richard Stallman <rms@gnu.org>
2241
2242 * doc/bison.rnh: entered into RCS
2243
2244 1992-04-20 David J. MacKenzie <djm@gnu.org>
2245
2246 * README: entered into RCS
2247
2248 1992-01-22 Richard Stallman <rms@gnu.org>
2249
2250 * src/machine.h: entered into RCS
2251
2252 1991-12-21 Richard Stallman <rms@gnu.org>
2253
2254 * src/lalr.c, src/closure.c:
2255 entered into RCS
2256
2257 1991-12-20 Richard Stallman <rms@gnu.org>
2258
2259 * src/state.h: entered into RCS
2260
2261 1991-12-18 Richard Stallman <rms@gnu.org>
2262
2263 * src/print.c, src/nullable.c, src/derives.c:
2264 entered into RCS
2265
2266 1991-11-03 David J. MacKenzie <djm@gnu.org>
2267
2268 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2269 entered into RCS
2270
2271 1988-09-09 Richard Stallman <rms@gnu.org>
2272
2273 * src/bison.hairy: entered into RCS
2274
2275 1987-12-16 Richard Stallman <rms@gnu.org>
2276
2277 * REFERENCES: entered into RCS