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