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