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