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