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