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