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