]> git.saurik.com Git - bison.git/blame_incremental - ChangeLog
* src/reader.c (read_declarations): Don't abort on tok_illegal,
[bison.git] / ChangeLog
... / ...
CommitLineData
12001-11-26 Akim Demaille <akim@epita.fr>
2
3 * src/reader.c (read_declarations): Don't abort on tok_illegal,
4 issue an error message.
5 * tests/regression.at (Invalid %directive): New.
6 Reported by Hans Aberg.
7
82001-11-26 Akim Demaille <akim@epita.fr>
9
10 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
11 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
12
132001-11-26 Akim Demaille <akim@epita.fr>
14
15 * src/conflicts.c (conflicts_print): Don't complain at all when
16 there are no reduce/reduce conflicts, and as many shift/reduce
17 conflicts as expected.
18 * tests/regression.at (%expect right): Adjust.
19
202001-11-25 Marc Autret <autret_m@epita.fr>
21
22 * doc/bison.texinfo (Mystery Conflicts): Hint '-v' use.
23 From Golubev I. N.
24
252001-11-23 Akim Demaille <akim@epita.fr>
26
27 * lib/alloca.c: Update, from fileutils.
28
292001-11-23 Akim Demaille <akim@epita.fr>
30
31 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
32
332001-11-23 Akim Demaille <akim@epita.fr>
34
35 * src/system.h: Include alloca.h.
36 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
37
382001-11-23 Akim Demaille <akim@epita.fr>
39
40 * src/print_graph.c (print_actions): Remove `rule', unused.
41 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
42 pacify GCC's signed < unsigned warnings.
43 * src/closure.c (itemsetsize): Likewise.
44 * src/reader.c (symbol_list_new): Static.
45
462001-11-23 Akim Demaille <akim@epita.fr>
47
48 Attaching lineno to buckets is stupid, since only one copy of each
49 symbol is kept, only the line of the first occurrence is kept too.
50
51 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
52 * src/reader.c (rline_allocated): Remove, unused.
53 (symbol_list): Have a `line' member.
54 (symbol_list_new): New.
55 (readgram): Use it.
56 * src/print.c (print_grammar): Output the rule line numbers.
57 * tests/regression.at (Solved SR Conflicts)
58 (Unresolved SR Conflicts): Adjust.
59 Reported by Hans Aberg.
60
612001-11-22 Marc Autret <autret_m@epita.fr>
62
63 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
64
652001-11-22 Marc Autret <autret_m@epita.fr>
66
67 * src/muscle_tab.c (muscle_init): Remove initialization of
68 skeleton muscle.
69 * src/output.c (output_master_parser): Do it here.
70
712001-11-20 Akim Demaille <akim@epita.fr>
72
73 * po/sv.po: New.
74 * configure.in (ALL_LINGUAS): Adjust.
75 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
76 longer contains strings to translate.
77
782001-11-19 Akim Demaille <akim@epita.fr>
79
80 * src/conflicts.c (conflicts_print): Add a missing \n.
81
822001-11-19 Akim Demaille <akim@epita.fr>
83
84 * src/nullable.c (nullable_print): New.
85 (set_nullable): Call it when tracing.
86 Better locality of variables.
87
882001-11-19 Akim Demaille <akim@epita.fr>
89
90 * src/print.c (print_actions): Better locality of variables.
91
922001-11-19 Akim Demaille <akim@epita.fr>
93
94 * src/derives.c (print_derives): Fix and enrich.
95 * src/closure.c (print_fderives): Likewise.
96
972001-11-19 Akim Demaille <akim@epita.fr>
98
99 * src/closure.c (itemsetend): Remove, replaced with...
100 (itemsetsize): new.
101
1022001-11-19 Akim Demaille <akim@epita.fr>
103
104 * src/LR0.c (kernel_end): Remove, replaced with...
105 (kernel_size): new.
106
1072001-11-19 Akim Demaille <akim@epita.fr>
108
109 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
110 to clarify.
111
1122001-11-19 Akim Demaille <akim@epita.fr>
113
114 * src/closure.c (closure): Use arrays instead of pointers to clarify.
115
1162001-11-19 Akim Demaille <akim@epita.fr>
117
118 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
119 trace messages.
120 * src/LR0.c: Likewise.
121 (allocate_itemsets): Use arrays instead of pointers to clarify.
122
1232001-11-19 Akim Demaille <akim@epita.fr>
124
125 * src/getargs.c (statistics_flag): Replace with...
126 (trace_flag): New.
127 (longopts): Accept --trace instead of --statistics.
128 * src/getargs.h, src/options.c: Adjust.
129 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
130 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
131
1322001-11-19 Akim Demaille <akim@epita.fr>
133
134 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
135 pointers to clarify the code.
136 (save_reductions, save_shifts): Factor common parts of alternatives.
137
1382001-11-19 Akim Demaille <akim@epita.fr>
139
140 * src/LR0.c (new_state, get_state): Complete TRACE code.
141 * src/closure.c: Include `reader.h' to get `tags', needed by the
142 trace code.
143 Rename the conditional DEBUG as TRACE.
144 Output consistently TRACEs to stderr, not stdout.
145 * src/derives.c: Likewise.
146 * src/reduce.c: (inaccessable_symbols): Using if is better style
147 than goto.
148 Use `#if TRACE' instead of `#if 0' for tracing code.
149
1502001-11-19 Akim Demaille <akim@epita.fr>
151
152 * src/system.h (LIST_FREE, shortcpy): New.
153 * src/LR0.c: Use them.
154 * src/output.c (free_itemsets, free_reductions, free_shifts):
155 Remove, replaced by LIST_FREE.
156
1572001-11-19 Akim Demaille <akim@epita.fr>
158
159 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
160 (REDUCTIONS_ALLOC): New.
161 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
162 allocation.
163
1642001-11-19 Akim Demaille <akim@epita.fr>
165
166 * src/LR0.c (new_state): Complete trace code.
167 * src/nullable.c (set_nullable): Don't translate traces.
168
1692001-11-19 Akim Demaille <akim@epita.fr>
170
171 * src/print_graph.c (print_core): Better locality of variables.
172 * src/print.c (print_core): Likewise.
173
1742001-11-19 Akim Demaille <akim@epita.fr>
175
176 * src/vcg.c: You do the output, so you are responsible of the
177 handling of VCG syntax, in particular: use quotearg.
178 * src/print_graph.c: Don't.
179 (print_actions): Don't output the actions as part of the nodes,
180 since that's the job of the edges.
181 (print_state): Don't output by hand: fill the node description,
182 and ask for its output.
183
1842001-11-19 Akim Demaille <akim@epita.fr>
185
186 * src/bison.simple (yyparse): When verbosely reporting an error,
187 no longer put additional quotes around token names.
188 * tests/calc.at: Adjust.
189
1902001-11-19 Akim Demaille <akim@epita.fr>
191
192 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
193 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
194 * src/output.c: Adjust.
195
1962001-11-19 Akim Demaille <akim@epita.fr>
197
198 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
199 (rule_t): this.
200 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
201
2022001-11-19 Akim Demaille <akim@epita.fr>
203
204 * src/gram.h (rule_t): New.
205 (rule_table): New.
206 (rrhs, rlhs): Remove, part of state_t.
207 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
208 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
209 * src/reader.c, src/reduce.c: Adjust.
210
2112001-11-19 Akim Demaille <akim@epita.fr>
212
213 * src/reader.c (symbols_output): New, extracted from...
214 (packsymbols): Here.
215 (reader): Call it.
216
2172001-11-19 Akim Demaille <akim@epita.fr>
218
219 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
220 (maxrhs): this new function.
221
2222001-11-19 Akim Demaille <akim@epita.fr>
223
224 * src/lalr.c (F): New macro to access the variable F.
225 Adjust.
226
2272001-11-19 Akim Demaille <akim@epita.fr>
228
229 * src/lalr.h (LA): New macro to access the variable LA.
230 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
231 * src/lalr.c: Adjust.
232
2332001-11-19 Akim Demaille <akim@epita.fr>
234
235 * src/lalr.c (initialize_LA): Only initialize LA. Let...
236 (set_state_table): handle the `lookaheads' members.
237
2382001-11-19 Akim Demaille <akim@epita.fr>
239
240 * src/lalr.h (lookaheads): Removed array, whose contents is now
241 a member of...
242 (state_t): this structure.
243 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
244 Adjust.
245
2462001-11-19 Akim Demaille <akim@epita.fr>
247
248 * src/lalr.h (consistent): Removed array, whose contents is now
249 a member of...
250 (state_t): this structure.
251 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
252 Adjust.
253
2542001-11-19 Akim Demaille <akim@epita.fr>
255
256 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
257 contents are now members of...
258 (state_t): this structure.
259 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
260 Adjust.
261
2622001-11-19 Akim Demaille <akim@epita.fr>
263
264 * src/lalr.h (state_t): New.
265 (state_table): Be a state_t * instead of a core **.
266 (accessing_symbol): Remove, part of state_t.
267 * src/lalr.c: Adjust.
268 (set_accessing_symbol): Merge into...
269 (set_state_table): this.
270 * src/print_graph.c, src/conflicts.c: Adjust.
271
2722001-11-14 Akim Demaille <akim@epita.fr>
273
274 * tests/calc.at, tests/output.at, tests/regression.at,
275 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
276 now the tests are run in private dirs, therefore AC_CLEANUP and
277 family can be simplified to 0-ary.
278 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
279 use abs. path to find config.h.
280 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
281 stderr, there can be way too much random noise.
282 Instead pass -Werror to GCC and rely on the exit status.
283 Reported by Wolfram Wagner.
284
2852001-11-14 Akim Demaille <akim@epita.fr>
286
287 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
288 defined only if yyoverflow is defined, to avoid `warning: unused
289 variable `yyvs1''.
290 Reported by The Test Suite.
291
2922001-11-14 Akim Demaille <akim@epita.fr>
293
294 * src/print.c: Include reduce.h.
295 Reported by Hans Aberg.
296
2972001-11-14 Akim Demaille <akim@epita.fr>
298
299 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
300 Revert a previous patch: these are really const.
301 * src/conflicts.c (conflict_report): Additional useless pair of
302 braces to pacify GCC's warnings for `if () if () {} else {}'.
303 * src/lex.c (parse_percent_token): Replace equal_offset with
304 arg_offset.
305 arg is const.
306 Be sure to strdup `arg' when used, since there is no reason for
307 token_buffer not to change.
308
3092001-11-14 Akim Demaille <akim@epita.fr>
310
311 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
312 definition.
313 * src/main.c (main): Use them.
314 Suggested by Hans Aberg.
315
3162001-11-12 Akim Demaille <akim@epita.fr>
317
318 * src/system.h (ngettext): Now that we use ngettext, be sure to
319 provide a default definition when NLS are not used.
320
3212001-11-12 Akim Demaille <akim@epita.fr>
322
323 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
324 Use @kbd to denote user input.
325 (Language and Grammar): ANSIfy the example.
326 Adjust its layout for info/notinfo.
327 (Location Tracking Calc): Output error messages to stderr.
328 Output locations in a more GNUtically correct way.
329 Fix a couple of Englishos.
330 Adjust @group/@end group pairs.
331
3322001-11-12 Akim Demaille <akim@epita.fr>
333
334 %expext was not functioning at all.
335
336 * src/conflicts.c (expected_conflicts): Set to -1.
337 (conflict_report): Use ngettext.
338 (conflicts_print): Check %expect and make its violation an error.
339 * doc/bison.texinfo (Expect Decl): Adjust.
340 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
341 * tests/regression.at (%expect not enough, %expect right)
342 (%expect too much): New.
343
3442001-11-12 Akim Demaille <akim@epita.fr>
345
346 * tests/regression.at (Conflicts): Rename as...
347 (Unresolved SR Conflicts): this.
348 (Solved SR Conflicts): New.
349
3502001-11-12 Akim Demaille <akim@epita.fr>
351
352 * src/reduce.c (print_results): Rename as...
353 (reduce_output): This.
354 Output to OUT, passed as argument, instead of output_obstack.
355 (dump_grammar): Likewise.
356 (reduce_free): New.
357 Also free V1.
358 (reduce_grammar): No longer call reduce_output, since...
359 * src/print.c (print_results): do it.
360 * src/main.c (main): Call reduce_free;
361
3622001-11-12 Akim Demaille <akim@epita.fr>
363
364 * src/conflicts.c (print_reductions): Accept OUT as argument.
365 Output to it, not to output_obstack.
366 * src/print.c (print_actions): Adjust.
367
3682001-11-12 Akim Demaille <akim@epita.fr>
369
370 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
371 the result instead of using...
372 (src_total, rrc_total, src_count, rrc_count): Remove.
373 (any_conflicts): Remove.
374 (print_conflicts): Split into...
375 (conflicts_print, conflicts_output): New.
376 * src/conflicts.h: Adjust.
377 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
378 * src/print.c (print_grammar): Issue `\n' between two rules.
379 * tests/regression.at (Conflicts): New.
380 Reported by Tom Lane.
381
3822001-11-12 Akim Demaille <akim@epita.fr>
383
384 * tests/regression.at (Invalid input): Remove, duplicate with
385 ``Invalid input: 1''.
386
3872001-11-12 Akim Demaille <akim@epita.fr>
388
389 * tests/torture.at (AT_DATA_STACK_TORTURE)
390 (Exploding the Stack Size with Alloca)
391 (Exploding the Stack Size with Malloc): New.
392
3932001-11-12 Akim Demaille <akim@epita.fr>
394
395 * src/bison.simple (YYSTACK_REALLOC): New.
396 (yyparse) [!yyoverflow]: Use it and free the old stack.
397 Reported by Per Allansson.
398
3992001-11-12 Pascal Bart <pascal.bart@epita.fr>
400
401 * src/bison.simple: Define type yystype instead of YYSTYPE, and
402 define CPP macro, which substitute YYSTYPE by yystype.
403 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
404 with yyltype/YYLTYPE. This allows inclusion of the generated
405 header within the parser if the compiler, such as GGC, accepts
406 multiple equivalent #defines.
407 From Akim.
408
4092001-11-05 Akim Demaille <akim@epita.fr>
410
411 * src/reader.c (symbols_output): New, extracted from...
412 (packsymbols): here.
413 (reader): Adjust.
414
4152001-11-05 Akim Demaille <akim@epita.fr>
416
417 * src/lex.c (parse_percent_token): s/quotearg/quote/.
418
4192001-11-05 Akim Demaille <akim@epita.fr>
420
421 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
422 pattern.
423
4242001-11-05 Akim Demaille <akim@epita.fr>
425
426 * src/options.h (struct option_table_struct): set_flags is void*.
427 * src/options.c (longopts): Support `--output' and `%output'.
428 (usage): Adjust.
429 * src/lex.h (tok_setopt): Remove, replaced with...
430 (tok_intopt, tok_stropt): these new guys.
431 * src/lex.c (getopt.h): Not needed.
432 (token_buffer, unlexed_token_buffer): Not const.
433 (percent_table): Promote `-' over `_' in directive names.
434 Active `%name-prefix', `file-prefix', and `output'.
435 (parse_percent_token): Accept possible arguments to directives.
436 Promote `-' over `_' in directive names.
437
4382001-11-04 Akim Demaille <akim@epita.fr>
439
440 * doc/bison.texinfo (Decl Summary): Split the list into
441 `directives for grammars' and `directives for bison'.
442 Sort'em.
443 Add description of `%name-prefix', `file-prefix', and `output'.
444 Promote `-' over `_' in directive names.
445 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
446 Simplify the description of `--name-prefix'.
447 Promote `-' over `_' in directive names.
448 Promote `--output' over `--output-file'.
449 Fix the description of `--defines'.
450 * tests/output.at: Exercise %file-prefix and %output.
451
4522001-11-02 Akim Demaille <akim@epita.fr>
453
454 * doc/refcard.tex: Update.
455
4562001-11-02 Akim Demaille <akim@epita.fr>
457
458 * src/symtab.h (SUNDEF): New.
459 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
460 stand for `uninitialized', instead of 0.
461 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
462 * src/lex.c (lex): Adjust.
463
464 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
465 Number it 0.
466 Let yylex return it instead of a plain 0.
467 Reported by Dick Streefland.
468
4692001-11-02 Akim Demaille <akim@epita.fr>
470
471 * tests/regression.at (Mixing %token styles): New test.
472
4732001-11-02 Akim Demaille <akim@epita.fr>
474
475 * src/reader.c (parse_thong_decl): Formatting changes.
476 (token_translations_init): New, extracted from...
477 (packsymbols): Here.
478 Adjust.
479
4802001-11-01 Akim Demaille <akim@epita.fr>
481
482 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
483 Check that `9foo.y' produces correct cpp guards.
484 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
485 guards.
486 Reported by Wwp.
487
4882001-11-01 Akim Demaille <akim@epita.fr>
489
490 * tests/regression.at (Invalid input: 2): New.
491 * src/lex.c (unlexed_token_buffer): New.
492 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
493 too.
494 Reported by Wwp.
495
4962001-11-01 Akim Demaille <akim@epita.fr>
497
498 * tests/calc.at: Catch up with 1.30.
499 * configure.in: Bump to 1.49a.
500 Adjust to newer Autotest.
501
5022001-10-19 Pascal Bart <pascal.bart@epita.fr>
503
504 * src/conflicts.c: Move global variables rrc_total and src_total ...
505 (print_conflicts): here.
506 * src/output.c (output): Free global variable user_toknums.
507 * src/lex.c (token_obstack): Become static.
508
5092001-10-18 Akim Demaille <akim@epita.fr>
510
511 * tests/atlocal.in (GCC): Add.
512 * tests/calc.at: s/m4_match/m4_bmatch/.
513 s/m4_patsubst/m4_bpatsubst/.
514 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
515 * configure.in: AC_SUBST(GCC).
516
5172001-10-14 Marc Autret <autret_m@epita.fr>
518
519 * src/options.c (create_long_option_table): Fix.
520
5212001-10-10 Akim Demaille <akim@epita.fr>
522
523 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
524
5252001-10-04 Akim Demaille <akim@epita.fr>
526
527 * src/reader.c (parse_union_decl): Push the caracters in
528 union_obstack, not attrs_obstack.
529
5302001-10-04 Akim Demaille <akim@epita.fr>
531
532 Merge in the branch 1.29.
533
534 * src/reader.c (packsymbols): Use a temporary obstack for
535 `%%tokendef', since output_stack is already used elsewhere.
536
537 2001-10-02 Akim Demaille <akim@epita.fr>
538
539 Bump 1.29d.
540
541 2001-10-02 Akim Demaille <akim@epita.fr>
542
543 Version 1.29c.
544
545 2001-10-02 Akim Demaille <akim@epita.fr>
546
547 * tests/regression.at (Invalid CPP headers): New.
548 From Alexander Belopolsky.
549 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
550
551 2001-10-02 Akim Demaille <akim@epita.fr>
552
553 * tests/regression.at (Invalid input): New.
554 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
555 Reported by Shura.
556
557 2001-10-02 Akim Demaille <akim@epita.fr>
558
559 * tests/calc.at: Now that --debug works, the tests must be adjusted.
560
561 2001-10-02 Akim Demaille <akim@epita.fr>
562
563 * src/output.c (output_parser): Assert `skeleton'.
564 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
565 systems.
566 From Shura.
567
568 2001-10-01 Marc Autret <autret_m@epita.fr>
569
570 * src/lex.h: Echo modifications.
571 * src/lex.c (unlex): Parameter is now token_t.
572 From Hans Aberg.
573
574 2001-10-01 Marc Autret <autret_m@epita.fr>
575
576 * src/main.c: Include lex.h.
577 From Hans Aberg.
578
579 2001-09-29 Akim Demaille <akim@epita.fr>
580
581 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
582
583 2001-09-28 Akim Demaille <akim@epita.fr>
584
585 * tests/testsuite.at: Update to newer Autotest.
586 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
587
588 2001-09-27 Akim Demaille <akim@epita.fr>
589
590 Position independent wrapper.
591
592 * tests/bison: Remove.
593 * tests/bison.in: New.
594 * configure.in: Adjust.
595
596 2001-09-27 Paul Eggert <eggert@twinsun.com>
597
598 Port quotearg fixes from tar 1.13.24.
599
600 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
601 tm to be declared.
602 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
603 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
604
605 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
606 * m4/mbrtowc.m4: New file.
607 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
608 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
609
610 2001-09-27 Akim Demaille <akim@epita.fr>
611
612 Bump to 1.29c.
613
614 2001-09-27 Akim Demaille <akim@epita.fr>
615
616 Version 1.29b.
617
618 2001-09-25 Akim Demaille <akim@epita.fr>
619
620 * src/system.h: Include `xalloc.h'.
621 Remove it from the C files.
622 * src/files.c (output_files): Free the obstacks.
623 * src/lex.c (init_lex): Rename as...
624 (lex_init): this.
625 (lex_free): New.
626 * src/main.c (main): Use it.
627
628 2001-09-24 Marc Autret <autret_m@epita.fr>
629
630 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
631 to output informations in fout (FILE*).
632 (open_graph, close_graph): Likewise.
633 (output_graph, output_edge, output_node): Likewise.
634 * src/vcg.h: Update function prototypes.
635 * src/print_graph.c (print_graph): Open output graph file.
636 (print_actions): Adjust.
637 * src/files.h: Remove extern declaration.
638 * src/files.c: Remove graph_obstack declaration.
639 (open_files): Remove graph_obstack initialization.
640 (output_files): Remove graph_obstack saving.
641
642 2001-09-24 Marc Autret <autret_m@epita.fr>
643
644 * src/files.c (compute_output_file_names): Fix.
645
646 2001-09-24 Marc Autret <autret_m@epita.fr>,
647 Akim Demaille <akim@epita.fr>
648
649 * src/reader.c (reader): Remove call to free_symtab ().
650 * src/main.c (main): Call it here.
651 Include symtab.h.
652 * src/conflicts.c (initialize_conflicts): Rename as...
653 (solve_conflicts): this.
654 * src/print.c (print_core, print_actions, print_state)
655 (print_grammar): Dump to a file instead a `output_obstack'.
656 (print_results): Dump `output_obstack', and then proceed with the
657 FILE *.
658 * src/files.c (compute_output_file_names, close_files): New.
659 (output_files): Adjust.
660 * src/main.c (main): Adjust.
661
662 2001-09-23 Marc Autret <autret_m@epita.fr>
663
664 * src/files.c (compute_header_macro): Computes header macro name
665 from spec_defines_file when given.
666
667 2001-09-23 Marc Autret <autret_m@epita.fr>
668
669 * src/files.c (output_files): Add default extensions.
670
671 2001-09-22 Akim Demaille <akim@epita.fr>
672
673 * src/conflicts.c (finalize_conflicts): Rename as...
674 (free_conflicts): this.
675
676 2001-09-22 Akim Demaille <akim@epita.fr>
677
678 * src/gram.c (gram_free): Rename back as...
679 (dummy): this.
680 (output_token_translations): Free `token_translations'.
681 * src/symtab.c (free_symtab): Free the tag field.
682
683 2001-09-22 Akim Demaille <akim@epita.fr>
684
685 Remove `translations' as it is always set to true.
686
687 * src/gram.h: Adjust.
688 * src/reader.c (packsymbols, parse_token_decl): Adjust
689 * src/print.c (print_grammar): Adjust.
690 * src/output.c (output_token_translations): Adjust.
691 * src/lex.c (lex): Adjust.
692 * src/gram.c: Be sure the set pointers to NULL.
693 (dummy): Rename as...
694 (gram_free): this.
695
696 2001-09-22 Akim Demaille <akim@epita.fr>
697
698 * configure.in: Invoke AM_LIB_DMALLOC.
699 * src/system.h: Use dmalloc.
700 * src/LR0.c: Be sure to have pointers initialized to NULL.
701 (allocate_itemsets): Allocate kernel_items only if needed.
702
703 2001-09-22 Akim Demaille <akim@epita.fr>
704
705 * configure.in: Bump to 1.29b.
706 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
707 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
708 need xmalloc.c in calc.y.
709 From Pascal Bart.
710
711 2001-09-21 Akim Demaille <akim@epita.fr>
712
713 Version 1.29a.
714 * Makefile.maint, config/config.guess, config/config.sub,
715 * config/missing: Update from masters.
716 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
717 upon package.m4.
718 * configure.in (ALL_LINGUAS): Add `tr'.
719
720 2001-09-21 Akim Demaille <akim@epita.fr>
721
722 * tests/Makefile.am (package.m4): Move to...
723 ($(srcdir)/$(TESTSUITE)): here.
724
725 2001-09-20 Akim Demaille <akim@epita.fr>
726
727 * src/complain.c: No longer try to be standalone: use system.h.
728 Don't assume __STDC__ is defined to 1. Just test if it is defined.
729 * src/complain.h: Likewise.
730 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
731 Remove the unused variable `n'.
732 From Albert Chin-A-Young.
733
734 2001-09-18 Marc Autret <autret_m@epita.fr>
735
736 * doc/bison.1: Update.
737 * doc/bison.texinfo (Bison Options): Update --defines and --graph
738 descriptions.
739 (Option Cross Key): Update.
740 Add --graph.
741
742 2001-09-18 Marc Autret <autret_m@epita.fr>
743
744 * tests/regression.at: New test (comment in %union).
745
746 2001-09-18 Marc Autret <autret_m@epita.fr>
747
748 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
749 do that.
750 Reported by Keith Browne.
751
752 2001-09-18 Marc Autret <autret_m@epita.fr>
753
754 * tests/output.at: Add tests for --defines and --graph.
755
756 2001-09-18 Marc Autret <autret_m@epita.fr>
757
758 * tests/output.at: Removes tests of %{header,src}_extension features.
759
760 2001-09-18 Akim Demaille <akim@epita.fr>
761
762 * tests/Makefile.am (package.m4): New.
763 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
764 (_AT_CHECK_CALC_ERROR): Likewise.
765 Factor the `, ' part of verbose error messages.
766
767 2001-09-18 Marc Autret <autret_m@epita.fr>
768
769 * src/getargs.c (longopts): Declare --defines and --graph as options
770 with optional arguments.
771 * src/files.h: Add extern declarations.
772 * src/files.c (spec_graph_file, spec_defines_file): New.
773 (output_files): Update.
774 Remove CPP-outed code.
775
776 2001-09-18 Marc Autret <autret_m@epita.fr>
777
778 Turn off %{source,header}_extension feature.
779
780 * src/files.c (compute_exts_from_gf): Update.
781 (compute_exts_from_src): Update.
782 (output_files): CPP-out useless code.
783 * src/files.h: Remove {header,source}_extension extern declarations.
784 * src/reader.c (parse_dquoted_param): CPP-out.
785 (parse_header_extension_decl): Remove.
786 (parse_source_extension_decl): Remove.
787 (read_declarations): Remove cases tok_{hdrext,srcext}.
788 * src/lex.c (percent_table): Remove {header,source}_extension entries.
789 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
790
791 2001-09-10 Akim Demaille <akim@epita.fr>
792
793 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
794 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
795 (AT_CHECK_OUTPUT): this.
796 Merely check ls' exit status, its output is useless.
797
798 2001-09-10 Akim Demaille <akim@epita.fr>
799
800 * tests/calc.at: Use m4_match.
801 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
802
803 2001-09-10 Marc Autret <autret_m@epita.fr>,
804 Akim Demaille <akim@epita.fr>
805
806 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
807 enum color_e.
808 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
809 to `normal'.
810 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
811 * src/lex.h: Adjust prototype.
812 (token_t): Add `tok_undef'.
813 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
814 (parse_percent_token): Now returns token_t.
815 Add default statement in switch.
816 (lex): Separate `c' as an input variable, from the token_t result
817 part.
818 (unlexed): Is a token_t.
819
820 2001-09-10 Akim Demaille <akim@epita.fr>
821
822 * configure.in: Bump to 1.29a.
823
824 2001-09-07 Akim Demaille <akim@epita.fr>
825
826 Version 1.29.
827
828 2001-08-30 Akim Demaille <akim@epita.fr>
829
830 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
831 * m4/atconfig.m4: Remove.
832 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
833 * tests/bison: New.
834 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
835 m4_if, m4_patsubst, and m4_regexp.
836 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
837 `input' file instead of echo.
838
839 2001-08-29 Akim Demaille <akim@epita.fr>
840
841 Bump to 1.28e.
842
843 2001-08-29 Akim Demaille <akim@epita.fr>
844
845 Version 1.28d.
846
847 2001-08-29 Paul Eggert <eggert@twinsun.com>
848
849 * src/bison.simple (yyparse): Don't take the address of an
850 item before the start of an array, as that doesn't conform to
851 the C Standard.
852
853 2001-08-29 Robert Anisko <anisko_r@epita.fr>
854
855 * doc/bison.texinfo (Location Tracking Calc): New node.
856
857 2001-08-29 Paul Eggert <eggert@twinsun.com>
858
859 * src/output.c (output): Do not define const, as this now
860 causes more problems than it cures.
861
862 2001-08-29 Akim Demaille <akim@epita.fr>
863
864 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
865 the nodes.
866 Be sure to tag the `detailmenu'.
867
868 2001-08-29 Akim Demaille <akim@epita.fr>
869
870 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
871 download in a tmp dir.
872
873 2001-08-28 Marc Autret <autret_m@epita.fr>
874
875 * config/depcomp: New file.
876
877 2001-08-28 Marc Autret <autret_m@epita.fr>
878
879 * doc/bison.1 (mandoc): Adjust.
880 From Juan Manuel Guerrero.
881
882 2001-08-28 Marc Autret <autret_m@epita.fr>
883
884 * src/print_graph.c (print_state): Fix.
885
886 2001-08-27 Marc Autret <autret_m@epita.fr>
887
888 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
889 char * members.
890 Echo modifications to the functions prototypes.
891 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
892
893 2001-08-27 Marc Autret <autret_m@epita.fr>
894
895 * src/vcg.c: Include `xalloc.h'.
896 (add_colorentry): New.
897 (add_classname): New.
898 (add_infoname): New.
899 * src/vcg.h: Add new prototypes.
900
901 2001-08-27 Akim Demaille <akim@epita.fr>
902
903 * Makefile.maint: Sync. again with CVS Autoconf.
904
905 2001-08-27 Akim Demaille <akim@epita.fr>
906
907 * Makefile.maint: Formatting changes.
908 (po-update, cvs-update, update): New targets.
909 (AMTAR): Remove.
910
911 2001-08-27 Akim Demaille <akim@epita.fr>
912
913 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
914 * Makefile.maint: Sync. with CVS Autoconf.
915
916 2001-08-27 Marc Autret <autret_m@epita.fr>
917
918 * src/vcg.h (struct infoname_s): New.
919 (struct colorentry_s): New.
920 (graph_s): New fields {vertical,horizontal}_order in structure.
921 Add `infoname' field.
922 Add `colorentry' field;
923 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
924 (G_HORIZONTAL_ORDER): New.
925 (G_INFONAME): New.
926 (G_COLORENTRY): New.
927 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
928 Add output of `infoname'.
929 Add output of `colorentry'.
930
931 2001-08-27 Marc Autret <autret_m@epita.fr>
932
933 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
934 This one shadowed a global parameter.
935
936 2001-08-24 Marc Autret <autret_m@epita.fr>
937
938 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
939 instead of `unsigned'.
940 (print_state): Do not call obstack_object_size () in obstack_grow ()
941 to avoid macro variables shadowing.
942
943 2001-08-23 Marc Autret <autret_m@epita.fr>
944
945 * src/lex.c (percent_table): Typo: s/naem/name/.
946 Add graph option.
947 Normalize new options declarations.
948
949 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
950
951 * tests/suite.at: Exercise %header_extension and %source_extension.
952
953 2001-08-16 Marc Autret <autret_m@epita.fr>
954
955 * src/reader.c (parse_dquoted_param): New.
956 (parse_header_extension_decl): Use it.
957 (parse_source_extension_decl): Likewise.
958
959 2001-08-16 Marc Autret <autret_m@epita.fr>
960
961 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
962 (get_xxxx_str): Use assert () instead of complain ().
963 Remove return invokations in default cases.
964 (get_decision_str): Modify default behaviour. Remove second argument.
965 Echo modifications on calls.
966 (output_graph): Fix.
967
968 2001-08-16 Marc Autret <autret_m@epita.fr>
969
970 * src/getargs.c (usage): Update with ``-g, --graph''.
971
972 2001-08-16 Marc Autret <autret_m@epita.fr>
973
974 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
975 (Option Cross Key): Likewise.
976 * doc/bison.1: Update.
977
9782001-09-25 Pascal Bart <pascal.bart@epita.fr>
979
980 * src/output.c (output_master_parser): Don't finish action_obstack.
981 (output_parser): Don't care about the muscle action, here.
982 (prepare): Copy the action_obstack in the action muscle.
983 (output): Free action_obstack.
984
9852001-09-23 Pascal Bart <pascal.bart@epita.fr>
986
987 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
988 will contain `%union' declaration.
989 (parse_union_decl): Delete #line directive output.
990 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
991 informations about %union.
992 (parse_union_decl): Copy the union_obstack in the muscle stype.
993 * src/bison.simple: Add new #line directive.
994 Add typdef %%stype YYSTYPE.
995
9962001-09-23 Pascal Bart <pascal.bart@epita.fr>
997
998 * src/bison.simple: Add new `#line' directive.
999
10002001-09-22 Pascal Bart <pascal.bart@epita.fr>
1001
1002 * src/bison.simple: New `#line' directive.
1003 * src/output.c (output_parser): Support new dynamic muscle input_line.
1004
10052001-09-22 Marc Autret <autret_m@epita.fr>
1006
1007 * src/output.c (output_master_parser): New.
1008 (output_parser): Be more re-entrant.
1009
10102001-09-21 Marc Autret <autret_m@epita.fr>
1011
1012 * src/reader.c (copy_definition, parse_union_decl): Update and use
1013 `linef' muscle.
1014 (copy_action): Likewise.
1015 Use obstack_1grow ().
1016 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1017
10182001-09-21 Marc Autret <autret_m@epita.fr>
1019
1020 * src/options.c (option_table): Adjust.
1021 * src/lex.c (parse_percent_token): Fix.
1022
10232001-09-20 Pascal Bart <pascal.bart@epita.fr>
1024
1025 * src/options.c (symtab.h): Include it, need by lex.h.
1026
10272001-09-20 Pascal Bart <pascal.bart@epita.fr>
1028
1029 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1030 is now an option_table_struct*.
1031 (option_strcmp): New function option_strcmp.
1032 (parse_percent_token): Call option_strcmp.
1033 * src/getargs.c (xalloc.h, options.h): Include it.
1034 (getargs): Call create_long_option_table.
1035 (getargs): Free longopts at the end of the function.
1036 (shortopts): Move in options.c.
1037 * src/options.c (create_long_option_table): New function. Convert
1038 information from option_table to option structure.
1039 * src/reader.c (options.h): Include it.
1040
1041 * src/Makefile.am: Adjust.
1042 * src/options.c (option_table): Create from longopts and percent_table.
1043 * src/getargs.c (longopts): Delete.
1044 * src/lex.c (struct percent_table_struct): Delete.
1045 (percent_table): Delete.
1046 (options.h): Include it.
1047 * src/options.c: Create.
1048 * src/options.h: Create.
1049 Declare enum opt_access_e.
1050 Define struct option_table_struct.
1051
10522001-09-20 Marc Autret <autret_m@epita.fr>
1053
1054 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1055 sections of Bison.
1056
10572001-09-19 Pascal Bart <pascal.bart@epita.fr>
1058
1059 * src/bison.simple: s/%%filename/%%skeleton.
1060 * src/muscle_tab.c (getargs.h): Include it.
1061 (muscle_init): Insert new muscle skeleton.
1062
10632001-09-18 Pascal Bart <pascal.bart@epita.fr>
1064
1065 * src/output.c (output_parser): Delete unused variable actions_dumped.
1066
10672001-09-07 Pascal Bart <pascal.bart@epita.fr>
1068
1069 * src/output.c (output): Delete call to reader_output_yylsp.
1070 * src/reader.c (reader): Likewise.
1071 * src/reader.h: Delete declaration of reader_output_yylsp.
1072
10732001-09-02 Marc Autret <autret_m@epita.fr>
1074
1075 * src/reader.c: Include muscle_tab.h.
1076 (parse_union_decl): Update.
1077 (parse_macro_decl): Rename parse_muscle_decl.
1078 Update to use renamed functions and variable.
1079 (read_declarations, copy_action, read_additionnal_code, : Updated
1080 with correct variables and functions names.
1081 (packsymbols, reader): Likewise.
1082
1083 * src/reader.h (muscle_obstack): Extern declaration update.
1084
1085 * src/output.c: Include muscle_tab.h
1086 In all functions using macro_insert, change by using muscle_insert ().
1087 (macro_obstack): Rename muscle_obstack.
1088 Echo modifications in the whole file.
1089 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1090 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1091 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1092
1093 * src/muscle_tab.h: Update double inclusion macros.
1094 (macro_entry_s): Rename muscle_entry_s.
1095 Update prototypes.
1096
1097 * src/muscle_tab.c: Include muscle_tab.h.
1098 Rename macro_tabble to muscle_table.
1099 (mhash1, mhash2, mcmp): Use muscle_entry.
1100 (macro_init): Rename muscle_init. Update.
1101 (macro_insert): Rename muscle_insert. Update.
1102 (macro_find): Rename muscle_find. Update.
1103
1104 * src/main.c: Include muscle_tab.h.
1105 (main): Call muscle_init ().
1106 * src/Makefile.am (bison_SOURCES): Echo modifications.
1107
11082001-09-02 Marc Autret <autret_m@epita.fr>
1109
1110 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1111
1112 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1113
11142001-09-02 Marc Autret <autret_m@epita.fr>
1115
1116 * src/macrotab.c, src/macrotab.h: Remove.
1117
11182001-09-01 Pascal Bart <pascal.bart@epita.fr>
1119
1120 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1121 filename.
1122
11232001-09-01 Marc Autret <autret_m@epita.fr>
1124
1125 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1126 to an explicit value to activate the feature. We do it here.
1127
11282001-08-31 Pascal Bart <pascal.bart@epita.fr>
1129
1130 * src/output.c (prepare): Delete the `filename' muscule insertion.
1131 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1132 (parse_union_decl): Likewise.
1133 * src/macrotab.c (macro_init): Initialize filename by infile.
1134
11352001-08-31 Marc Autret <autret_m@epita.fr>
1136
1137 * src/bison.simple (YYLSP_NEEDED): New definition.
1138 * src/output.c (prepare): Add macro insertion of `locations_flag'
1139
11402001-08-31 Pascal Bart <pascal.bart@epita.fr>
1141
1142 * src/output.c (prepare): Delete insertion of previous muscles,
1143 and insert the `prefix' muscles.
1144 * src/macrotab.c (macro_init): Likewise.
1145 (macro_init): Initialization prefix directive by `yy'.
1146 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1147 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1148 yylval, yydebug, yyerror, yynerrs and yyparse.
1149 New directive `#define' to substitute yydebug, ... with option
1150 name_prefix.
1151
11522001-08-31 Pascal Bart <pascal.bart@epita.fr>
1153
1154 * src/main.c (main): Standardize.
1155 * src/output.c (output_table_data, output_parser): Likewise.
1156 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1157
11582001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1159
1160 * src/reader.c (read_additionnal_code): Rename %%user_code to
1161 %%epilogue.
1162 * src/output.c (output): Rename %%declarations to %%prologue.
1163 * src/bison.simple: Echo modifications.
1164
11652001-08-31 Marc Autret <autret_m@epita.fr>
1166
1167 * src/reader.c (readgram): CleanUp.
1168 (output_token_defines): Likewise.
1169 (packsymbols): Likewise.
1170 (reader): Likewise.
1171 * src/output.c (output): CPP-out useless code.
1172
11732001-08-31 Pascal Bart <pascal.bart@epita.fr>
1174
1175 * src/reader.c (reader): Delete obsolete call to function
1176 output_trailers and output_headers.
1177 * src/output.h: Remove obsolete functions prototypes of output_headers
1178 and output_trailers.
1179
11802001-08-30 Pascal Bart <pascal.bart@epita.fr>
1181
1182 * src/main.c: Include macrotab.h.
1183 * src/macrotab.h (macro_entry_s): Constify fields.
1184 Adjust functions prototypes.
1185 * src/macrotab.c (macro_insert): Constify key and value.
1186 (macro_find): Constify key.
1187 (macro_insert): Include 'xalloc.h'
1188 (macro_insert): Use XMALLOC.
1189 (macro_find): Constify return value.
1190 * src/output.c (output_table_data): Rename table to table_data.
1191 (output_parser): Constify macro_key, macro_value.
1192
11932001-08-30 Marc Autret <autret_m@epita.fr>
1194
1195 * src/reader.c (parse_skel_decl): New.
1196 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1197 * src/lex.h (token_t): New token `tok_skel'.
1198 * src/lex.c (percent_table): Add skeleton option entry.
1199 Standardize.
1200
12012001-08-29 Marc Autret <autret_m@epita.fr>
1202
1203 * src/bison.simple: Add %%user_code directive at the end.
1204 * src/reader.c (read_additionnal_code): New.
1205 (reader): Use it.
1206 * src/output.c (output_program): Remove.
1207 (output): Update.
1208
12092001-08-28 Marc Autret <autret_m@epita.fr>
1210
1211 * src/output.c (output_actions): Clean up.
1212 (output_gram): CPP-out useless code.
1213 * src/reader.c (reader): Clean up, CPP-out useless code.
1214
12152001-08-28 Pascal Bart <pascal.bart@epita.fr>
1216
1217 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1218 directive.
1219 * src/bison.simple: Add `%%definitions'.
1220
12212001-08-28 Marc Autret <autret_m@epita.fr>
1222
1223 * config/depcomp: New file.
1224
12252001-08-27 Paul Eggert <eggert@twinsun.com>
1226
1227 * src/bison.simple (yyparse): Don't take the address of an
1228 item before the start of an array, as that doesn't conform to
1229 the C Standard.
1230
12312001-08-27 Robert Anisko <robert.anisko@epita.fr>
1232
1233 * src/output.c (output): Remove the initialization of the macro
1234 obstack. It was done too late here.
1235
1236 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1237 completely wrong.
1238 (reader): Initialize the macro obstack here, since we need it to grow
1239 '%define' directives.
1240
1241 * src/reader.h: Declare the macro obstack as extern.
1242
12432001-08-27 Robert Anisko <robert.anisko@epita.fr>
1244
1245 * src/output.c (output_parser): Fix. Store single '%' characters in
1246 the output obstack instead of throwing them away.
1247
12482001-08-27 Akim Demaille <akim@epita.fr>
1249
1250 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1251
12522001-08-25 Robert Anisko <robert.anisko@epita.fr>
1253
1254 * lib/Makefile.am: Adjust.
1255
12562001-08-25 Robert Anisko <robert.anisko@epita.fr>
1257
1258 * src/bison.simple: Update and add '%%' directives.
1259
12602001-08-25 Robert Anisko <robert.anisko@epita.fr>
1261
1262 * src/reader.c (reader): Remove calls to 'output_headers' and
1263 'output_trailers'. Remove some C output.
1264 (readgram): Disable a piece of code that was writing a default
1265 definition for 'YYSTYPE'.
1266 (reader_output_yylsp): Remove.
1267 (packsymbols): Output token defintions to a macro.
1268 (copy_definition): Disable C output.
1269
1270 * src/reader.c (parse_macro_decl): New function used to parse macro
1271 declarations.
1272 (copy_string2): Put the body of copy_string into this new function.
1273 Add a parameter to let the caller choose whether he wants to copy the
1274 string delimiters or not.
1275 (copy_string): Be a simple call to copy_string2 with the last argument
1276 bound to true.
1277 (read_declarations): Add case for macro definition.
1278 (copy_identifier): New.
1279 (parse_macro_decl): Read macro identifiers using copy_identifier
1280 rather than lex.
1281
12822001-08-25 Robert Anisko <robert.anisko@epita.fr>
1283
1284 * src/output.c (prepare): Add prefixed names.
1285 (output_parser): Output semantic actions.
1286 (output_parser): Fix bug on '%%line' directives.
1287
1288 * src/output.c (output_headers): Remove. The C code printed by this
1289 function should now be in the skeletons.
1290 (output_trailers): Remove.
1291 (output): Disable call to 'reader_output_yylsp'.
1292 (output_rule_data): Do not output tables to the table obstack.
1293
1294 * src/output.c: Remove some C dedicated output.
1295 Improve the use of macro and output obstacks.
1296 (output_defines): Remove.
1297
1298 * src/output.c (output_token_translations): Associate 'translate'
1299 table with a macro. No output to the table obstack.
1300 (output_gram): Same for 'rhs' and 'prhs'.
1301 (output_stos): Same for 'stos'.
1302 (output_rule_data): Same for 'r1' and 'r2'.
1303 (token_actions): Same for 'defact'.
1304 (goto_actions): Same for 'defgoto'.
1305 (output_base): Same for 'pact' and 'pgoto'.
1306 (output_table): Same for 'table'.
1307 (output_check): Same for 'check'.
1308
1309 * src/output.c (output_table_data): New function.
1310 (output_short_table): Remove.
1311 (output_short_or_char_table): Remove.
1312
1313 * src/output.c (output_parser): Replace most of the skeleton copy code
1314 with something new. Skeletons are now processed character by character
1315 rather than line by line, and Bison looks for '%%' macros. This is the
1316 first step in making Bison's output process (a lot) more flexible.
1317 (output_parser): Use the macro table.
1318
13192001-08-25 Robert Anisko <robert.anisko@epita.fr>
1320
1321 * src/main.c (main): Initialize the macro table.
1322
13232001-08-25 Robert Anisko <robert.anisko@epita.fr>
1324
1325 * src/lex.c (percent_table): Add tok_define.
1326 * src/lex.h: Add tok_define.
1327
13282001-08-25 Robert Anisko <robert.anisko@epita.fr>
1329
1330 * src/macrotab.c: New file.
1331 * src/macrotab.h: New file.
1332 * src/Makefile.am: Update.
1333
13342001-08-25 Robert Anisko <robert.anisko@epita.fr>
1335
1336 * lib/hash.c: New file.
1337 * lib/hash.h: New file.
1338 * lib/Makefile.am: Update.
1339
13402001-08-15 Akim Demaille <akim@epita.fr>
1341
1342 Version 1.28c.
1343
13442001-08-15 Marc Autret <autret_m@epita.fr>
1345
1346 * src/reader.c (readgram): Indent output macro YYSTYPE.
1347 (packsymbols): Likewise.
1348 (output_token_defines): Likewise.
1349 * src/files.c: Standardize.
1350 (compute_header_macro): New.
1351 (defines_obstack_save): New. Use compute_header_macro.
1352 (output_files): Update. Use defines_obstack_save.
1353
13542001-08-15 Akim Demaille <akim@epita.fr>
1355
1356 * doc/bison.texinfo (Table of Symbols): Document
1357 YYSTACK_USE_ALLOCA.
1358
13592001-08-15 Akim Demaille <akim@epita.fr>
1360
1361 * missing: Update from CVS Automake.
1362 * config/config.guess, config/config.sub, config/texinfo.tex:
1363 Update from gnu.org.
1364
13652001-08-15 Akim Demaille <akim@epita.fr>
1366
1367 * Makefile.maint: Sync with CVS Autoconf.
1368
13692001-08-14 Pascal Bart <pascal.bart@epita.fr>
1370
1371 * doc/bison.texinfo: Include GNU Free Documentation License from
1372 `fdl.texi'.
1373 * doc/fdl.texi: Add to package.
1374
13752001-08-14 Marc Autret <autret_m@epita.fr>
1376
1377 Turn on %{source,header}_extension features.
1378
1379 * src/lex.c (percent_table): Un-CPP out header_extension and
1380 source_extension.
1381 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1382 (compute_exts_from_src): Remove conditions. It restores priorities
1383 between options.
1384
13852001-08-14 Marc Autret <autret_m@epita.fr>
1386
1387 * src/files.c (compute_base_names): Add extensions computing when
1388 `--file-prefix' used.
1389 Standardize function calls.
1390
13912001-08-13 Marc Autret <autret_m@epita.fr>
1392
1393 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1394 defining it (defined but null disables alloca).
1395
13962001-08-13 Marc Autret <autret_m@epita.fr>
1397
1398 * src/bison.simple (_yy_memcpy): CPP reformat.
1399
14002001-08-13 Pascal Bart <pascal.bart@epita.fr>
1401
1402 * tests/atconfig.in (CPPFLAGS): Fix.
1403
14042001-08-10 Pascal Bart <pascal.bart@epita.fr>
1405
1406 * doc/bison.texinfo: Include GNU General Public License from
1407 `gpl.texi'.
1408 * doc/gpl.texi: Add to package.
1409
14102001-08-10 Marc Autret <autret_m@epita.fr>
1411
1412 * src/print_graph.h: Fix.
1413 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1414
14152001-08-10 Akim Demaille <akim@epita.fr>
1416
1417 * src/system.h: Provide default declarations for stpcpy, strndup,
1418 and strnlen.
1419
14202001-08-10 Robert Anisko <anisko_r@epita.fr>
1421
1422 * doc/bison.texinfo (Locations): Update @$ stuff.
1423
14242001-08-09 Robert Anisko <anisko_r@epita.fr>
1425
1426 * src/bison.simple (YYLLOC_DEFAULT): Update.
1427 (yyparse): Adjust.
1428
14292001-08-08 Marc Autret <autret_m@epita.fr>
1430
1431 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1432 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1433 Reported by Fabrice Bauzac.
1434
14352001-08-08 Marc Autret <autret_m@epita.fr>
1436
1437 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1438 * src/vcg.c (output_node): Fix.
1439 * src/vcg.h: Cleanup.
1440 * src/print_graph.c: Add comments.
1441 (node_output_size): New global variable. Simplify the formatting of
1442 the VCG graph output.
1443 (print_actions): Unused code is now used. It notifies the final state
1444 and no action states in the VCG graph. It also give the reduce actions.
1445 The `shift and goto' edges are red and the `go to state' edges are
1446 blue.
1447 Get the current node name and node_obstack by argument.
1448 (node_obstack): New variable.
1449 (print_state): Manage node_obstack.
1450 (print_core): Use node_obstack given by argument.
1451 A node is not only computed here but in print_actions also.
1452 (print_graph): CPP out useless code instead of commenting it.
1453
14542001-08-07 Pascal Bart <pascal.bart@epita.fr>
1455
1456 * tests/atconfig.in (CPPFLAGS): Fix.
1457
14582001-08-07 Akim Demaille <akim@epita.fr>
1459
1460 * src/print_graph.c (quote): New.
1461 (print_core): Use it.
1462
14632001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1464
1465 * src/vcg.c (complain.h): Include it.
1466 Unepitaize `return' invocations.
1467 [NDEBUG] (main): Remove.
1468 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1469 * src/files.c (open_files): Initialize graph_obstack.
1470 * src/print_graph.c (print_actions): CPP out useless code.
1471 (print_core): Don't output the last `\n' in labels.
1472 Use `quote'.
1473 * src/files.c (output_files): Output the VCG file.
1474 * src/main.c (main): Invoke print_graph ();
1475
14762001-08-06 Marc Autret <autret_m@epita.fr>
1477
1478 Automaton VCG graph output.
1479 Using option ``-g'' or long option ``--graph'', you can generate
1480 a gram_filename.vcg file containing a VCG description of the LALR (1)
1481 automaton of your grammar.
1482
1483 * src/main.c: Call to print_graph() function.
1484 * src/getargs.h: Update.
1485 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1486 (graph_flag): New flag.
1487 (longopts): Update.
1488 (getargs): Add case `g'.
1489 * src/files.c (graph_obstack): New obstack struct.
1490 (open_files): Initialize new obstack.
1491 (output_files): Saves graph_obstack if required.
1492 * src/files.h (graph_obstack): New extern declaration.
1493 * src/Makefile.am: Add new source files.
1494
14952001-08-06 Marc Autret <autret_m@epita.fr>
1496
1497 * src/print_graph.c, src/print_graph.h (graph): New.
1498 * src/vcg.h: New file.
1499 * src/vcg.c: New file, VCG graph handling.
1500
15012001-08-06 Marc Autret <autret_m@epita.fr>
1502
1503 Add of %source_extension and %header_extension which specify
1504 the source or/and the header output file extension.
1505
1506 * src/files.c (compute_base_names): Remove initialisation of
1507 src_extension and header_extension.
1508 (compute_exts_from_gf): Update.
1509 (compute_exts_from_src): Update.
1510 (output_files): Update.
1511 * src/reader.c (parse_header_extension_decl): New.
1512 (parse_source_extension_decl): New.
1513 (read_declarations): New case statements for the new tokens.
1514 * src/lex.c (percent_table): Add entries for %source_extension
1515 and %header_extension.
1516 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1517
15182001-08-06 Marc Autret <autret_m@epita.fr>
1519
1520 * configure.in: Bump to 1.28c.
1521 * doc/bison.texinfo: Texinfo thingies.
1522
15232001-08-04 Pascal Bart <pascal.bart@epita.fr>
1524
1525 * tests/atconfig.in (CPPFLAGS): Add.
1526 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1527
15282001-08-03 Akim Demaille <akim@epita.fr>
1529
1530 Version 1.28b.
1531
15322001-08-03 Akim Demaille <akim@epita.fr>
1533
1534 * tests/Makefile.am (check-local): Ship testsuite.
1535 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1536 Include `string.h'.
1537
15382001-08-03 Akim Demaille <akim@epita.fr>
1539
1540 * configure.in: Try using -Wformat when compiling.
1541
15422001-08-03 Akim Demaille <akim@epita.fr>
1543
1544 * configure.in: Bump to 1.28b.
1545
15462001-08-03 Akim Demaille <akim@epita.fr>
1547
1548 * src/complain.c: Adjust strerror_r portability issues.
1549
15502001-08-03 Akim Demaille <akim@epita.fr>
1551
1552 Version 1.28a.
1553
15542001-08-03 Akim Demaille <akim@epita.fr>
1555
1556 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1557 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1558 * src/getargs.c: Include complain.h.
1559 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1560 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1561
15622001-08-03 Akim Demaille <akim@epita.fr>
1563
1564 * src/reader.c (readgram): Display hidden chars in error messages.
1565
15662001-08-03 Akim Demaille <akim@epita.fr>
1567
1568 Update to gettext 0.10.39.
1569
15702001-08-03 Akim Demaille <akim@epita.fr>
1571
1572 * lib/strspn.c: New.
1573
15742001-08-01 Marc Autret <autret_m@epita.fr>
1575
1576 * doc/bison.texinfo: Update.
1577 * doc/bison.1 (mandoc): Update.
1578 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1579 * src/files.c: Support output files extensions computing.
1580 (src_extension): New static variable.
1581 (header_extension): New static variable.
1582 (tr): New function.
1583 (get_extension_index): New function, gets the index of an extension
1584 filename in a string.
1585 (compute_exts_from_gf): New function, computes extensions from the
1586 grammar file extension.
1587 (compute_exts_from_src): New functions, computes extensions from the
1588 C source file extension, file given by ``-o'' option.
1589 (compute_base_names): Update.
1590 (output_files): Update.
1591
15922001-08-01 Robert Anisko <anisko_r@epita.fr>
1593
1594 * doc/bison.texi: Document @$.
1595 (Locations): New section.
1596
15972001-07-18 Akim Demaille <akim@epita.fr>
1598
1599 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1600 * config/prev-version.txt, config/move-if-change: New.
1601 * Makefile.am: Adjust.
1602
16032001-07-08 Pascal Bart <pascal.bart@epita.fr>
1604
1605 * src/bison.simple (yyparse): Suppress warning `comparaison
1606 between signed and unsigned'.
1607
16082001-07-05 Pascal Bart <pascal.bart@epita.fr>
1609
1610 * src/getargs.h (raw_flag): Remove.
1611 * src/getargs.c: Die on `-r'/`--raw'.
1612 * src/lex.c (parse_percent_token): Die on `%raw'.
1613 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1614 * tests/calc.at: Suppress test with option `--raw'.
1615
16162001-07-14 Akim Demaille <akim@epita.fr>
1617
1618 * config/: New.
1619 * configure.in: Require Autoconf 2.50.
1620 Update to gettext 0.10.38.
1621
16222001-03-16 Akim Demaille <akim@epita.fr>
1623
1624 * doc/bison.texinfo: ANSIfy the examples.
1625
16262001-03-16 Akim Demaille <akim@epita.fr>
1627
1628 * getargs.c (skeleton): New variable.
1629 (longopts): --skeleton is a new option.
1630 (shortopts, getargs): -S is a new option.
1631 * getargs.h: Declare skeleton.
1632 * output.c (output_parser): Use it.
1633
16342001-03-16 Akim Demaille <akim@epita.fr>
1635
1636 * m4/strerror_r.m4: New.
1637 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1638 * lib/error.h, lib/error.c: Update.
1639
16402001-03-16 Akim Demaille <akim@epita.fr>
1641
1642 * src/getargs.c (longopts): Clean up.
1643
16442001-02-21 Akim Demaille <akim@epita.fr>
1645
1646 * src/reader.c (gensym): `gensym_count' is your own.
1647 Use a static buf to create the symbol name, as token_buffer is no
1648 longer a buffer.
1649
16502001-02-08 Akim Demaille <akim@epita.fr>
1651
1652 * src/conflicts.c (conflict_report): Be sure not to append to res
1653 between two calls, which could happen if both first sprintf were
1654 skipped, but not the first cp += strlen.
1655
16562001-02-08 Akim Demaille <akim@epita.fr>
1657
1658 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1659 New, from fileutils 4.0.37.
1660 * configure.in: Require Autoconf 2.49c. I took some time before
1661 making this decision. This is the only way out for portability
1662 issues in Bison, it would mean way too much duplicate effort to
1663 import in Bison features implemented in 2.49c since 2.13.
1664 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1665
16662001-02-02 Akim Demaille <akim@epita.fr>
1667
1668 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1669 * lib/xalloc.h, lib/xmalloc.c: Update.
1670
16712001-01-19 Akim Demaille <akim@epita.fr>
1672
1673 Get rid of the ad hoc handling of token_buffer in the scanner: use
1674 the obstacks.
1675
1676 * src/lex.c (token_obstack): New.
1677 (init_lex): Initialize it. No longer call...
1678 (grow_token_buffer): this. Remove it.
1679 Adjust all the places which used it to use the obstack.
1680
16812001-01-19 Akim Demaille <akim@epita.fr>
1682
1683 * src/lex.h: Rename all the tokens:
1684 s/\bENDFILE\b/tok_eof/g;
1685 s/\bIDENTIFIER\b/tok_identifier/g;
1686 etc.
1687 Let them be enums, not #define, to ease debugging.
1688 Adjust all the code.
1689
16902001-01-18 Akim Demaille <akim@epita.fr>
1691
1692 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1693 * src/lex.c (maxtoken, grow_token_buffer): Static.
1694
16952001-01-18 Akim Demaille <akim@epita.fr>
1696
1697 Since we now use obstacks, more % directives can be enabled.
1698
1699 * src/lex.c (percent_table): Also accept `%yacc',
1700 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1701 `%debug'.
1702 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1703 instead of returning a token.
1704 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1705 * src/reader.c (read_declarations): Adjust.
1706 * src/files.c (open_files): Don't call `compute_base_names', don't
1707 compute `attrsfile' since they depend upon data which might be
1708 *in* the input file now.
1709 (output_files): Do it here.
1710 * src/output.c (output_headers): Document the fact that this patch
1711 introduces a guaranteed SEGV for semantic parsers.
1712 * doc/bison.texinfo: Document them.
1713 * tests/suite.at: Exercise these %options.
1714
17152000-12-20 Akim Demaille <akim@epita.fr>
1716
1717 Also handle the output file (--verbose) with obstacks.
1718
1719 * files.c (foutput): Remove.
1720 (output_obstack): New.
1721 Adjust all dependencies.
1722 * src/conflicts.c: Return a string.
1723 * src/system.h (obstack_grow_string): Rename as...
1724 (obstack_sgrow): this. Be ready to work with non literals.
1725 (obstack_fgrow4): New.
1726
17272000-12-20 Akim Demaille <akim@epita.fr>
1728
1729 * src/files.c (open_files): Fix the computation of short_base_name
1730 in the case of `-o foo.tab.c'.
1731
17322000-12-20 Akim Demaille <akim@epita.fr>
1733
1734 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1735 (copy_dollar): Now that everything uses obstacks, get rid of the
1736 FILE * parameters.
1737
17382000-12-20 Akim Demaille <akim@epita.fr>
1739
1740 * src/files.c (open_files): Actually the `.output' file is based
1741 on the short_base_name, not base_name.
1742 * tests/suite.at (Checking output file names): Adjust.
1743
17442000-12-20 Akim Demaille <akim@epita.fr>
1745
1746 * src/bison.s1: Remove, we now use directly...
1747 * src/bison.simple: this.
1748 * src/Makefile.am: Use pkgdata instead of data.
1749
17502000-12-20 Akim Demaille <akim@epita.fr>
1751
1752 * src/files.c (guard_obstack): New.
1753 (open_files): Initialize it.
1754 (output_files): Dump it...
1755 * src/files.h: Export it.
1756 * src/reader.c (copy_guard): Use it.
1757
17582000-12-19 Akim Demaille <akim@epita.fr>
1759
1760 * src/files.c (outfile, defsfile, actfile): Removed as global
1761 vars.
1762 (open_files): Don't compute them.
1763 (output_files): Adjust.
1764 (base_name, short_base_name): Be global.
1765 Adjust dependencies.
1766
17672000-12-19 Akim Demaille <akim@epita.fr>
1768
1769 * src/files.c (strsuffix): New.
1770 (stringappend): Be just like strcat but allocate.
1771 (base_names): Eve out from open_files.
1772 Try to simplify the rather hairy computation of base_name and
1773 short_base_name.
1774 (open_files): Use it.
1775 * tests/suite.at (Checking output file names): New test.
1776
17772000-12-19 Akim Demaille <akim@epita.fr>
1778
1779 * src/system.h (obstack_grow_literal_string): Rename as...
1780 (obstack_grow_string): this.
1781 * src/output.c (output_parser): Recognize `%% actions' instead of
1782 `$'.
1783 * src/bison.s1: s/$/%% actions/.
1784 * src/bison.hairy: Likewise.
1785
17862000-12-19 Akim Demaille <akim@epita.fr>
1787
1788 * src/output.c (output_parser): Compute the `#line' lines when
1789 there are.
1790 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1791 Suggested by Hans Aberg.
1792
17932000-12-19 Akim Demaille <akim@epita.fr>
1794
1795 Let the handling of the skeleton files be local to the procedures
1796 that use it.
1797
1798 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1799 longer static.
1800 (fparser, open_extra_files): Remove.
1801 (open_files, output_files): Don't take care of fparser.
1802 * src/files.h: Adjust.
1803 * src/output.c (output_parser): Open and close the file to the
1804 skeleton.
1805 * src/reader.c (read_declarations): When %semantic_parser, open
1806 fguard.
1807
18082000-12-19 Akim Demaille <akim@epita.fr>
1809
1810 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1811 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1812
18132000-12-19 Akim Demaille <akim@epita.fr>
1814
1815 * src/files.c (open_files): Yipee! We no longer need all the code
1816 looking for `/tmp' since we have no tmp file.
1817
18182000-12-19 Akim Demaille <akim@epita.fr>
1819
1820 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1821 New macros.
1822 * src/files.c (open_files): Less dependency on MSDOS etc.
1823
18242000-12-14 Akim Demaille <akim@epita.fr>
1825
1826 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1827 Provide a default definition.
1828 Use it when executing the default @ action.
1829 * src/reader.c (reader_output_yylsp): No longer include
1830 `timestamp' and `text' in the default YYLTYPE.
1831
18322000-12-12 Akim Demaille <akim@epita.fr>
1833
1834 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1835 (copy_guard): Quote the file names.
1836 Reported by Laurent Mascherpa.
1837
18382000-12-12 Akim Demaille <akim@epita.fr>
1839
1840 * src/output.c (output_headers, output_program, output): Be sure
1841 to escape special characters when outputting filenames.
1842 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1843 (output_headers): Don't depend on them, Use ACTSTR.
1844
18452000-11-17 Akim Demaille <akim@epita.fr>
1846
1847 * lib/obstack.h: Formatting changes.
1848 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1849 prevents type checking.
1850 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1851 cast the value to (void *): assigning a `foo *' to a `void *'
1852 variable is valid.
1853 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1854 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1855 append characters.
1856
18572000-11-17 Akim Demaille <akim@epita.fr>
1858
1859 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1860 as...
1861 (suite.m4, regression.m4, calc.m4): these.
1862 * tests/atgeneral.m4: Update from CVS Autoconf.
1863
18642000-11-17 Akim Demaille <akim@epita.fr>
1865
1866 * tests/regression.m4 (%union and --defines): New test,
1867 demonstrating a current bug in the obstack implementation.
1868
18692000-11-17 Akim Demaille <akim@epita.fr>
1870
1871 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1872 macros.
1873 Use them to declare the variables which are global or local to
1874 `yyparse'.
1875
18762000-11-17 Akim Demaille <akim@epita.fr>
1877
1878 * acconfig.h: Remove, no longer used.
1879
18802000-11-07 Akim Demaille <akim@epita.fr>
1881
1882 * src: s/Copyright (C)/Copyright/g.
1883
18842000-11-07 Akim Demaille <akim@epita.fr>
1885
1886 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1887 defining.
1888 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1889
18902000-11-07 Akim Demaille <akim@epita.fr>
1891
1892 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1893 Merge in a single CPP if/else.
1894
18952000-11-07 Akim Demaille <akim@epita.fr>
1896
1897 * src/output.c (output): Remove useless variables.
1898 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1899 argument `data' for consistency with the prototypes.
1900 Qualify it `const'.
1901 (obstack_copy, obstack_copy0): Rename the second argument as
1902 `address' for consistency. Qualify it `const'.
1903 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1904 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1905 `const' their input argument (`data' or `address').
1906 Adjust the corresponding macros to include `const' in casts.
1907
19082000-11-03 Akim Demaille <akim@epita.fr>
1909
1910 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1911 s/PFILE1/BISON_HAIRY/.
1912 Adjust dependencies.
1913
19142000-11-03 Akim Demaille <akim@epita.fr>
1915
1916 For some reason, this was not applied.
1917
1918 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1919 `unlink': it's no longer used.
1920
19212000-11-03 Akim Demaille <akim@epita.fr>
1922
1923 * src/files.c (skeleton_find): New function, eved out of...
1924 (open_files, open_extra_files): here.
1925
19262000-11-03 Akim Demaille <akim@epita.fr>
1927
1928 Don't use `atexit'.
1929
1930 * src/files.c (obstack_save): New function.
1931 (done): Rename as...
1932 (output_files): this.
1933 Use `obstack_save'.
1934 * src/main.c (main): Don't use `atexit' to register `done', since
1935 it no longer has to remove tmp files, just call `output_files'
1936 when there are no errors.
1937
19382000-11-02 Akim Demaille <akim@epita.fr>
1939
1940 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1941 `unlink': it's no longer used.
1942 * src/files.h: Formatting changes.
1943
19442000-11-02 Akim Demaille <akim@epita.fr>
1945
1946 Remove the last uses of mktemp and unlink/delete.
1947
1948 * src/files.c (fdefines, ftable): Removed.
1949 (defines_ostack, table_obstack): New.
1950 Adjust dependencies of the former into uses of the latter.
1951 * src/output.c (output_short_or_char_table, output_short_table):
1952 Convert to using obstacks.
1953 * src/reader.c (copy_comment2): Accept one FILE * and two
1954 obstacks.
1955 (output_token_defines, reader_output_yylsp): Use obstacks.
1956 * src/system.h (obstack_fgrow3): New.
1957
19582000-11-01 Akim Demaille <akim@epita.fr>
1959
1960 Change each use of `fattrs' into a use of `attrs_obstack'.
1961
1962 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1963 * src/files.c (fattrs): Remove.
1964 (attrs_obstack): New.
1965 Adjust all dependencies.
1966 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1967
19682000-11-01 Akim Demaille <akim@epita.fr>
1969
1970 Introduce obstacks.
1971 Change each use of `faction' into a use of `action_obstack'.
1972
1973 * lib/obstack.h, lib/obstack.c: New files.
1974 * src/files.c (faction): Remove.
1975 (action_obstack): New.
1976 Adjust all dependencies.
1977
19782000-10-20 Akim Demaille <akim@epita.fr>
1979
1980 * lib/quote.h (PARAMS): New macro. Use it.
1981
19822000-10-16 Akim Demaille <akim@epita.fr>
1983
1984 * src/output.c (output_short_or_char_table): New function.
1985 (output_short_table, output_token_translations): Use it.
1986 (goto_actions): Use output_short_table.
1987
19882000-10-16 Akim Demaille <akim@epita.fr>
1989
1990 * src/symtab.c (bucket_new): New function.
1991 (getsym): Use it.
1992
1993 * src/output.c (output_short_table): New argument to display the
1994 comment associated with the table.
1995 Adjust dependencies.
1996 (output_gram): Use it.
1997 (output_rule_data): Nicer output layout for YYTNAME.
1998
19992000-10-16 Akim Demaille <akim@epita.fr>
2000
2001 * src/lex.c (read_typename): New function.
2002 (lex): Use it.
2003 * src/reader.c (copy_dollar): Likewise.
2004
20052000-10-16 Akim Demaille <akim@epita.fr>
2006
2007 * src/reader.c (copy_comment2): Expect the input stream to be on
2008 the `/' which is suspected to open a comment, instead of being
2009 called after `//' or `/*' was read.
2010 (copy_comment, copy_definition, parse_union_decl, copy_action)
2011 (copy_guard): Adjust.
2012
20132000-10-16 Akim Demaille <akim@epita.fr>
2014
2015 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2016 `read_signed_integer'.
2017
20182000-10-16 Akim Demaille <akim@epita.fr>
2019
2020 * src/reader.c (copy_dollar): New function.
2021 (copy_guard, copy_action): Use it.
2022
20232000-10-16 Akim Demaille <akim@epita.fr>
2024
2025 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2026 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2027 New files, from Fileutils 4.0.27.
2028 * src/main.c (printable_version): Remove.
2029 * src/lex.c, src/reader.c: Use `quote'.
2030
20312000-10-04 Akim Demaille <akim@epita.fr>
2032
2033 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2034
20352000-10-04 Akim Demaille <akim@epita.fr>
2036
2037 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2038
20392000-10-04 Akim Demaille <akim@epita.fr>
2040
2041 When a literal string is used to define two different tokens,
2042 `bison -v' segfaults.
2043 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2044
2045 * tests/regression.m4: New file.
2046 Include the core of the sample provided by Piotr Gackiewicz.
2047 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2048 properly.
2049
20502000-10-04 Akim Demaille <akim@epita.fr>
2051
2052 * src/reader.c (parse_expect_decl): Keep `count' within the size
2053 of `buffer'.
2054 From Neil Booth.
2055
20562000-10-02 Paul Eggert <eggert@twinsun.com>
2057
2058 * bison.s1 (yyparse): Assign the default value
2059 unconditionally, to avoid a GCC warning and make the parser a
2060 tad smaller.
2061
20622000-10-02 Akim Demaille <akim@epita.fr>
2063
2064 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2065 options.
2066
20672000-10-02 Akim Demaille <akim@epita.fr>
2068
2069 * src/derives.c, src/print.c, src/reduce.c: To ease the
2070 translation, move some `\n' out of the translated strings.
2071
20722000-10-02 Akim Demaille <akim@epita.fr>
2073
2074 The location tracking mechanism is precious for parse error
2075 messages. Nevertheless, it is enabled only when `@n' is used in
2076 the grammar, which is a different issue (you can use it in error
2077 message, but not in the grammar per se). Therefore, there should
2078 be another means to enable it.
2079
2080 * src/getargs.c (getargs): Support `--locations'.
2081 (usage): Report it.
2082 * src/getargs.h (locationsflag): Export it.
2083 * src/lex.c (percent_table): Support `%locations'.
2084 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2085 with `locationsflag'.
2086 * doc/bison.texinfo: Document `--locations' and `%locations'.
2087 Sort the options.
2088 * tests/calc.m4: Test it.
2089
2090 For regularity of the names, replace each
2091 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2092 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2093 In addition replace each `flag' with `_flag'.
2094
20952000-10-02 Akim Demaille <akim@epita.fr>
2096
2097 Also test parse error messages, including with YYERROR_VERBOSE.
2098
2099 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2100 associative).
2101 Use it to check the computations.
2102 Use it to check `nonassoc' is honored.
2103 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2104 `--yyerror-verbose'.
2105 (_AT_CHECK_CALC): Adjust to this option.
2106 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2107
21082000-10-02 Akim Demaille <akim@epita.fr>
2109
2110 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2111 the latter demonstrates a flaw in the handling of non debugging
2112 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2113 was used in order to simplify:
2114
2115 #if YYDEBUG
2116 if (yydebug)
2117 {
2118 ...
2119 }
2120 #endif
2121
2122 into
2123
2124 if (yydebug)
2125 {
2126 ...
2127 }
2128
2129 unfortunately this leads to a CPP conflict when
2130 `--name-prefix=foo' is used since it produces `#define yydebug
2131 foodebug'.
2132
2133 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2134 (YYDPRINTF): New macro.
2135 Spread its use.
2136 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2137 the bison options.
2138 Also test `--verbose', `--defines' and `--name-prefix'.
2139
21402000-10-02 Akim Demaille <akim@epita.fr>
2141
2142 Improve the readability of the produced parsers.
2143
2144 * src/bison.s1: Formatting changes.
2145 Improve the comment related to the `$' mark.
2146 (yydefault): Don't fall through to `yyresume': `goto' there.
2147 * src/output.c (output_parser): When the `$' is met, skip the end
2148 of its line.
2149 New variable, `number_of_dollar_signs', to check there's exactly
2150 one `$' in the parser skeleton.
2151
21522000-10-02 Akim Demaille <akim@epita.fr>
2153
2154 * lib/xstrdup.c: New file, from the fileutils.
2155 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2156 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2157 instead of strlen + xmalloc + strcpy.
2158 * src/symtab.c (copys): Remove, use xstrdup instead.
2159
21602000-10-02 Akim Demaille <akim@epita.fr>
2161
2162 * src/gram.h (associativity): New enum type which replaces the
2163 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2164 `right_assoc', `left_assoc' and `non_assoc'.
2165 Adjust all dependencies.
2166 * src/reader.c: Formatting changes.
2167 (LTYPESTR): Don't define it, use it as a literal in
2168 `reader_output_yylsp'.
2169 * src/symtab.h (symbol_class): New enum type which replaces the
2170 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2171 `sunknown', `stoken and `snterm'.
2172
21732000-10-02 Akim Demaille <akim@epita.fr>
2174
2175 * src/getargs.c (fixed_outfiles): Rename as...
2176 (yaccflag): for consistency and accuracy.
2177 Adjust dependencies.
2178
21792000-10-02 Akim Demaille <akim@epita.fr>
2180
2181 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2182 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2183 difficult and introduced a lot of core dump. It turns out that
2184 Bison used an implementation of `xmalloc' based on `calloc', and
2185 at various places it does depend upon the initialization to 0. I
2186 have not tried to isolate the pertinent places, and all the former
2187 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2188 someone should address this issue.
2189
2190 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2191 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2192 files.
2193 Adjust dependencies.
2194 * src/warshall.h: New file.
2195 Propagate.
2196
21972000-10-02 Akim Demaille <akim@epita.fr>
2198
2199 Various anti-`extern in *.c' changes.
2200
2201 * src/system.h: Include `assert.h'.
2202
22032000-10-02 Akim Demaille <akim@epita.fr>
2204
2205 * src/state.h (nstates, final_state, first_state, first_shift)
2206 (first_reduction): Move their exportation from here...
2207 * src/LR0.h: to here.
2208 Adjust dependencies.
2209 * src/getargs.c (statisticsflag): New variable.
2210 Add support for `--statistics'.
2211 Adjust dependencies.
2212
2213 Remove a lot of now useless `extern' statements in most files.
2214
22152000-10-02 Akim Demaille <akim@epita.fr>
2216
2217 * src/LR0.h: New file.
2218 Propagate its use.
2219
22202000-10-02 Akim Demaille <akim@epita.fr>
2221
2222 * src/print.h: New file.
2223 Propagate its use.
2224 * src/print.c: Formatting and ordering changes.
2225 (verbose, terse): Replace with...
2226 (print_results): this new function.
2227 Adjust dependencies.
2228
22292000-10-02 Akim Demaille <akim@epita.fr>
2230
2231 * src/conflicts.c (conflict_report): New function.
2232 (conflict_log, verbose_conflict_log): Replace with...
2233 (print_conflicts): this function.
2234 Adjust dependencies.
2235 * src/conflicts.h: New file.
2236 Propagate its inclusion.
2237
22382000-10-02 Akim Demaille <akim@epita.fr>
2239
2240 * src/nullable.h: New file.
2241 Propagate its inclusion.
2242 * src/nullable.c: Formatting changes.
2243
22442000-10-02 Akim Demaille <akim@epita.fr>
2245
2246 * src/reduce.h: New file.
2247 Propagate its inclusion.
2248 * src/reduce.c: Topological sort and other formatting changes.
2249 (bool, TRUE, FALSE): Move their definition to...
2250 * src/system.h: here.
2251
22522000-10-02 Akim Demaille <akim@epita.fr>
2253
2254 * src/files.c: Formatting changes.
2255 (tryopen, tryclose, openfiles): Rename as...
2256 (xfopen, xfclose, open_files): this.
2257 (stringappend): static.
2258 * src/files.h: Complete the list of exported symbols.
2259 Propagate its use.
2260
22612000-10-02 Akim Demaille <akim@epita.fr>
2262
2263 * src/reader.h: New file.
2264 Propagate its use instead of tedious list of `extern' and
2265 prototypes.
2266 * src/reader.c: Formatting changes, topological sort,
2267 s/register//.
2268
22692000-10-02 Akim Demaille <akim@epita.fr>
2270
2271 * src/lex.h: Prototype `lex.c' exported functions.
2272 * src/reader.c: Adjust.
2273 * src/lex.c: Formatting changes.
2274 (safegetc): Rename as...
2275 (xgetc): this.
2276
22772000-10-02 Akim Demaille <akim@epita.fr>
2278
2279 * src/lalr.h: New file.
2280 Propagate its inclusion instead of prototypes and `extern'.
2281 * src/lalr.c: Formatting changes, topological sorting etc.
2282
22832000-10-02 Akim Demaille <akim@epita.fr>
2284
2285 * src/output.c (token_actions): Introduce a temporary array,
2286 YYDEFACT, that makes it possible for this function to use
2287 output_short_table.
2288
22892000-10-02 Akim Demaille <akim@epita.fr>
2290
2291 `user_toknums' is output as a `short[]' in `output.c', while it is
2292 defined as a `int[]' in `reader.c'. For consistency with the
2293 other output tables, `user_toknums' is now defined as a table of
2294 shorts.
2295
2296 * src/reader.c (user_toknums): Be a short table instead of an int
2297 table.
2298 Adjust dependencies.
2299
2300 Factor the short table outputs.
2301
2302 * src/output.c (output_short_table): New function.
2303 * src/output.c (output_gram, output_stos, output_rule_data)
2304 (output_base, output_table, output_check): Use it.
2305
23062000-10-02 Akim Demaille <akim@epita.fr>
2307
2308 * src/output.c (output): Topological sort of the functions, in
2309 order to get rid of the `static' prototypes.
2310 No longer use `register'.
2311 * src/output.h: New file.
2312 Propagate its inclusion in files explicitly prototyping functions
2313 from output.c.
2314
23152000-09-21 Akim Demaille <akim@epita.fr>
2316
2317 * src/atgeneral.m4: Update from Autoconf.
2318
23192000-09-21 Akim Demaille <akim@epita.fr>
2320
2321 * src/closure.h: New file.
2322 * src/closure.c: Formatting changes, topological sort over the
2323 functions, use of closure.h.
2324 (initialize_closure, finalize_closure): Rename as...
2325 (new_closure, free_closure): these. Adjust dependencies.
2326 * src/LR0.c: Formatting changes, topological sort, use of
2327 cloture.h.
2328 (initialize_states): Rename as...
2329 (new_states): this.
2330 * src/Makefile.am (noinst_HEADERS): Adjust.
2331
23322000-09-20 Akim Demaille <akim@epita.fr>
2333
2334 * src/acconfig.h: Don't protect config.h against multiple
2335 inclusion.
2336 Don't define PARAMS.
2337 * src/system.h: Define PARAMS.
2338 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2339 purpose of config.h. system.h must not try to fix wrong
2340 definitions in config.h.
2341
23422000-09-20 Akim Demaille <akim@epita.fr>
2343
2344 * src/derives.h: New file.
2345 * src/main.c, src/derives.h: Use it.
2346 Formatting changes.
2347 * src/Makefile.am (noinst_HEADERS): Adjust.
2348
23492000-09-20 Akim Demaille <akim@epita.fr>
2350
2351 * tests/atgeneral.m4: Update from Autoconf.
2352 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2353 (AT_CHECK_CALC): New macros.
2354 Use these macros to test bison with options `', `--raw',
2355 `--debug', `--yacc', `--yacc --debug'.
2356
23572000-09-19 Akim Demaille <akim@epita.fr>
2358
2359 * src/output.c: Formatting changes.
2360 * src/machine.h: Remove, leaving its contents in...
2361 * src/system.h: here.
2362 Include stdio.h.
2363 Adjust all dependencies on stdio.h and machine.h.
2364 * src/getargs.h: New file.
2365 Let all `extern' declarations about getargs.c be replaced with
2366 inclusion of `getargs.h'.
2367 * src/Makefile.am (noinst_HEADERS): Adjust.
2368
2369 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2370 scope.
2371 (yyerror): Returns void, not int.
2372 * doc/bison.texinfo: Formatting changes.
2373
23742000-09-19 Akim Demaille <akim@epita.fr>
2375
2376 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2377 portable.
2378
23792000-09-18 Akim Demaille <akim@epita.fr>
2380
2381 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2382 * src/Makefile.am (INCLUDES): Don't.
2383 Be ready to fetch headers in lib/.
2384
23852000-09-18 Akim Demaille <akim@epita.fr>
2386
2387 * doc/bison.texinfo: Update the copyright.
2388 ANSIfy and GNUify the examples.
2389 Remove the old menu.
2390
23912000-09-18 Akim Demaille <akim@epita.fr>
2392
2393 First set of tests: use the `calc' example from the documentation.
2394
2395 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2396 is defined only when YYDEBUG is.
2397 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2398 * src/files.c (tryopen, tryclose): Formatting changes.
2399 Move to the top and be static.
2400 * src/reader.c (read_signed_integer): Likewise.
2401 * tests/calc.m4: New file.
2402 * Makefile.am, suite.m4: Adjust.
2403 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2404
24052000-09-18 Akim Demaille <akim@epita.fr>
2406
2407 Add support for an Autotest test suite for Bison.
2408
2409 * m4/m4.m4, m4/atconfig.m4: New files.
2410 * m4/Makefile.am (EXTRA_DIST): Adjust.
2411 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2412 files.
2413 * src/getargs.c: Display a more standard --version message.
2414 * src/reader.c (reader): Formatting changes.
2415 No longer depend upon VERSION_STRING.
2416 * configure.in: No longer use `dnl'.
2417 Set up the test suite and the new directory `tests/.
2418 (VERSION_STRING): Remove.
2419
24202000-04-14 Akim Demaille <akim@epita.fr>
2421
2422 * src/reader.c (copy_comment2): New function, same as former
2423 `copy_comment', but outputs into two FILE *.
2424 (copy_comment): Use it.
2425 (parse_union_decl): Use it.
2426 (get_type, parse_start_decl): Use the same `invalid' message.
2427 (parse_start_decl, parse_union_decl): Use the same `multiple'
2428 message.
2429 (parse_union_decl, copy_guard, copy_action): Use the same
2430 `unmatched' message.
2431 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2432
24332000-03-31 Akim Demaille <akim@epita.fr>
2434
2435 * src/files.c (tryopen, tryclose): Move to the top.
2436 Be static.
2437
24382000-03-31 Akim Demaille <akim@epita.fr>
2439
2440 * src/main.c (main): Don't call `done', exit does it.
2441
24422000-03-31 Akim Demaille <akim@epita.fr>
2443
2444 * allocate.c: s/return (foo)/return foo/.
2445 * lalr.c: Likewise.
2446 * LR0.c: Likewise.
2447 * output.c: Likewise.
2448 * reader.c: Likewise.
2449 * symtab.c: Likewise.
2450 * vmsgetargs.c: Likewise.
2451
24522000-03-31 Akim Demaille <akim@epita.fr>
2453
2454 Clean up the error reporting functions.
2455
2456 * src/report.c: New file.
2457 * src/report.h: Likewise.
2458 * src/Makefile.am: Adjust.
2459 * m4/error.m4: New file.
2460 * m4/Makefile.am: Adjust.
2461 * configure.in (jm_PREREQ_ERROR): Call it.
2462 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2463 Remove.
2464 (fatal, fatals): Remove. All callers use complain.c::fatal.
2465 (warn, warni, warns, warnss, warnss): Remove. All callers use
2466 complain.c::complain.
2467 (toomany): Remove, use fatal instead.
2468 * src/files.c (done): No argument, use complain_message_count.
2469 * src/main.c (main): Register `done' to `atexit'.
2470
2471 * src/getargs.c (usage): More `fputs', less `fprintf'.
2472
24732000-03-28 Akim Demaille <akim@epita.fr>
2474
2475 * lib/: New directory.
2476 * Makefile.am (SUBDIRS): Adjust.
2477 * configure.in: Adjust.
2478 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2479 useless.
2480 * src/alloca.c: Moved to lib/.
2481 * src/getopt.c: Likewise.
2482 * src/getopt1.c: Likewise.
2483 * src/getopt.h: Likewise.
2484 * src/ansi2knr.c: Likewise.
2485 * src/ansi2knr.1: Likewise.
2486 * src/Makefile.am: Adjust.
2487 * lib/Makefile.am: New file.
2488
24892000-03-28 Akim Demaille <akim@epita.fr>
2490
2491 * src/getargs.c (usage): Refresh the help message.
2492
24932000-03-17 Akim Demaille <akim@epita.fr>
2494
2495 * src/getopt1.c: Updated from textutils 2.0e
2496 * src/getopt.c: Likewise.
2497 * src/getopt.h: Likewise.
2498
24992000-03-17 Akim Demaille <akim@epita.fr>
2500
2501 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2502 the file name, not the whole `#line LINE FILE'.
2503
25042000-03-17 Akim Demaille <akim@epita.fr>
2505
2506 On syntax errors, report the token on which we choked.
2507
2508 * src/bison.s1 (yyparse): In the label yyerrlab, when
2509 YYERROR_VERBOSE, add yychar in msg.
2510
25112000-03-17 Akim Demaille <akim@epita.fr>
2512
2513 * src/reader.c (copy_at): New function.
2514 (copy_guard): Use it.
2515 (copy_action): Use it.
2516
25172000-03-17 Akim Demaille <akim@epita.fr>
2518
2519 Be kind to translators, save some useless translations.
2520
2521 * src/main.c (banner): New function.
2522 (fatal_banner): Use it.
2523 (warn_banner): Use it.
2524
25252000-03-17 Akim Demaille <akim@epita.fr>
2526
2527 * src/reader.c (copy_definition): Use copy_string and
2528 copy_comment. Removed now unused `match', `ended',
2529 `cplus_comment'.
2530 (copy_comment, copy_string): Moved, to be visible from
2531 copy_definition.
2532
25332000-03-17 Akim Demaille <akim@epita.fr>
2534
2535 * src/reader.c (copy_string): Declare `static inline'. No
2536 problems with inline, since it is checked by configure.
2537 (copy_comment): Likewise.
2538
25392000-03-17 Akim Demaille <akim@epita.fr>
2540
2541 * src/reader.c (packsymbols): Formatting changes.
2542
25432000-03-17 Akim Demaille <akim@epita.fr>
2544
2545 * src/reader.c (copy_comment): New function, factored out from:
2546 (copy_action): Use it. Removed now unused `match', `ended',
2547 `cplus_comment'.
2548 (copy_guard): Likewise.
2549
25502000-03-17 Akim Demaille <akim@epita.fr>
2551
2552 * src/reader.c (copy_string): New function, factored out from:
2553 (copy_action): Use it.
2554 (copy_guard): Likewise.
2555
25562000-03-17 Akim Demaille <akim@epita.fr>
2557
2558 Change the handling of @s so that they behave exactly like $s.
2559 There is now a pseudo variable @$ (readble and writable), location
2560 of the lhs of the rule (by default ranging from the location of
2561 the first symbol of the rhs, to the location of the last symbol,
2562 or, if the rhs is empty, YYLLOC).
2563
2564 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2565 yyval.
2566 (yyparse): When providing a default semantic action, provide a
2567 default location action.
2568 (after the $): No longer change `*YYLSP', just stack YYLOC the
2569 same way you stack YYVAL.
2570 * src/reader.c (read_declarations): Use warns.
2571 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2572 (copy_action, case '@'): Likewise.
2573 Use a standard error message, to save useless work from
2574 translators.
2575
25762000-03-17 Akim Demaille <akim@epita.fr>
2577
2578 * src/bison.s1: Formatting and cosmetics changes.
2579 * src/reader.c: Likewise.
2580 Update the Copyright notice.
2581
25822000-03-17 Akim Demaille <akim@epita.fr>
2583
2584 * src/bison.s1 (#line): All set to `#line' only, since the
2585 Makefile now handles them.
2586
25872000-03-16 Akim Demaille <akim@epita.fr>
2588
2589 * src/output.c (output_rule_data): Output the documentation of
2590 some of the tables.
2591 (Copyright notice): Update.
2592 Formatting changes.
2593
25942000-03-16 Akim Demaille <akim@epita.fr>
2595
2596 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2597 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2598 One `#if YYDEBUG' remains, since it uses variables which are
2599 defined only if `YYDEBUG != 0'.
2600
26012000-03-16 Akim Demaille <akim@epita.fr>
2602
2603 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2604 and related variables so that the similarities are highlighted.
2605
26062000-03-16 Akim Demaille <akim@epita.fr>
2607
2608 * src/bison.s1: Properly indent CPP directives.
2609
26102000-03-16 Akim Demaille <akim@epita.fr>
2611
2612 * src/bison.s1: Properly indent the `alloca' CPP section.
2613
26142000-03-16 Akim Demaille <akim@epita.fr>
2615
2616 Do not hard code values of directories in `configure.in'.
2617 Update the `configure' tool chain.
2618
2619 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2620 src/makefile.am.
2621 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2622 (AC_OUTPUT): Add m4/Makefile.
2623 Bump to bison 1.28a, 1.29 has never been released.
2624 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2625 handled via src/Makefile.am.
2626 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2627 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2628 autoheader.
2629 * Makefile.am (SUBDIRS): Add m4.
2630 (ACLOCAL_AM_FLAGS): New variable.
2631 (AUTOMAKE_OPTIONS): Add check-news.
2632 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2633 the proper line number and file name.
2634 (DEFS): Propagate the location of bison library files and of the
2635 locale files.
2636 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2637 builddir.
2638 * acinclude.m4: Remove, replaced by the directory m4.
2639 * m4/Makefile.am (EXTRA_DIST): New variable.
2640 * m4/gettext.m4: New file, from the fileutils.
2641 * m4/lcmessage.m4: Likewise
2642 * m4/progtest.m4: Likewise.
2643 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2644
26452000-03-10 Akim Demaille <akim@epita.fr>
2646
2647 * src/closure.c:
2648 Formatting changes of various comments.
2649 Respect the GNU coding standards at various places.
2650 Don't use `_()' when no translation is needed.
2651
26521999-12-13 Jesse Thilo <jthilo@gnu.org>
2653
2654 * src/files.c:
2655 OS/2 honors TMPDIR environment variable.
2656
26571999-12-13 Jesse Thilo <jthilo@gnu.org>
2658
2659 * doc/bison.texinfo: Tweaked spelling and grammar.
2660 Updated ISBN.
2661 Removed reference to price of printed copy.
2662 Mention BISON_SIMPLE and BISON_HAIRY.
2663
26641999-12-13 Jesse Thilo <jthilo@gnu.org>
2665
2666 * configure.in, NEWS:
2667 Bison 1.29 released.
2668
26691999-10-27 Jesse Thilo <jthilo@gnu.org>
2670
2671 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2672 Added reference card.
2673
26741999-07-26 Jesse Thilo <jthilo@gnu.org>
2675
2676 * po/ru.po: Added Russian translation.
2677
26781999-07-26 Jesse Thilo <jthilo@gnu.org>
2679
2680 * configure.in: Added Russian translation.
2681
26821999-07-06 Jesse Thilo <jthilo@gnu.org>
2683
2684 * configure.in, NEWS, README:
2685 Released version 1.28.
2686
26871999-06-14 Jesse Thilo <jthilo@gnu.org>
2688
2689 * src/system.h:
2690 Squashed redefinition warning on some systems.
2691
2692 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2693 Have configure build version string instead of relying on ANSI string
2694 concatentation.
2695
26961999-06-14 Jesse Thilo <jthilo@gnu.org>
2697
2698 * po/POTFILES.in: Got rid of version.c.
2699
27001999-06-14 Jesse Thilo <jthilo@gnu.org>
2701
2702 * acconfig.h, configure.in:
2703 Have configure build version string instead of relying on ANSI string
2704 concatentation.
2705
27061999-06-08 Jesse Thilo <jthilo@gnu.org>
2707
2708 * doc/bison.1:
2709 Dropped mention of `+' for long-named options.
2710
27111999-05-30 Jesse Thilo <jthilo@gnu.org>
2712
2713 * src/files.c: Added <unistd.h> for unlink().
2714
2715 * src/Makefile.am, src/system.h:
2716 I18n fixes.
2717
27181999-05-30 Jesse Thilo <jthilo@gnu.org>
2719
2720 * README: Added a FAQ list.
2721
2722 * configure.in, acconfig.h:
2723 I18n fixes.
2724
27251999-05-30 Jesse Thilo <jthilo@gnu.org>
2726
2727 * doc/FAQ, doc/Makefile.am:
2728 Added a FAQ list.
2729
27301999-05-19 Jesse Thilo <jthilo@gnu.org>
2731
2732 * src/alloc.h, src/symtab.h, src/version.c:
2733 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2734
27351999-04-18 Jesse Thilo <jthilo@gnu.org>
2736
2737 * src/.cvsignore, src/Makefile.am:
2738 Reorganized: sources in `src', documentation in `doc'.
2739
2740 * src/lex.c (literalchar):
2741 fixed the code for escaping double quotes (thanks
2742 Jonathan Czisny.)
2743
27441999-04-18 Jesse Thilo <jthilo@gnu.org>
2745
2746 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2747 Adjusted paths to reflect directory reorganization.
2748
27491999-04-18 Jesse Thilo <jthilo@gnu.org>
2750
2751 * doc/.cvsignore, doc/Makefile.am:
2752 Reorganized: sources in `src', documentation in `doc'.
2753
27541999-04-18 Jesse Thilo <jthilo@gnu.org>
2755
2756 * configure.in:
2757 Updated AC_INIT file to reflect directory reorganization.
2758
2759 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2760 Reorganized: sources in `src', documentation in `doc'.
2761
27621999-04-13 Jesse Thilo <jthilo@gnu.org>
2763
2764 * src/allocate.c:
2765 Don't declare calloc() and realloc() if not necessary.
2766
27671999-04-13 Jesse Thilo <jthilo@gnu.org>
2768
2769 * configure.in, acconfig.h, acinclude.m4:
2770 Don't declare calloc() and realloc() if not necessary.
2771
27721999-03-23 Jesse Thilo <jthilo@gnu.org>
2773
2774 * po/.cvsignore: Added i18n support.
2775
27761999-03-23 Jesse Thilo <jthilo@gnu.org>
2777
2778 * acconfig.h, configure.in, Makefile.am:
2779 Added i18n support.
2780
27811999-03-22 Jesse Thilo <jthilo@gnu.org>
2782
2783 * src/bison.s1: Fixed #line numbers.
2784
27851999-03-15 Jesse Thilo <jthilo@gnu.org>
2786
2787 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2788 Added PO files from Translation Project.
2789
27901999-03-03 Jesse Thilo <jthilo@gnu.org>
2791
2792 * Makefile.am:
2793 Added support for non-ANSI compilers (ansi2knr).
2794
27951999-02-16 Jesse Thilo <jthilo@gnu.org>
2796
2797 * configure.in: Bumped version number to 1.27.
2798
2799 * Makefile.am:
2800 Added `bison.simple' to list of files removed by `make distclean'.
2801
28021999-02-12 Jesse Thilo <jthilo@gnu.org>
2803
2804 * src/files.c, src/files.h:
2805 Defined locations of parser files in config.h instead of Makefile.
2806
28071999-02-12 Jesse Thilo <jthilo@gnu.org>
2808
2809 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2810 Defined locations of parser files in config.h instead of Makefile.
2811
28121999-02-09 Jesse Thilo <jthilo@gnu.org>
2813
2814 * Makefile.am:
2815 Removed inappropriate use of $< macro.
2816
28171999-02-05 Jesse Thilo <jthilo@gnu.org>
2818
2819 * po/Makefile.in.in, po/POTFILES.in:
2820 Add `po' directory skeleton.
2821
28221999-01-27 Jesse Thilo <jthilo@gnu.org>
2823
2824 * README: Document help-bison list.
2825
2826 * configure.in: Add check for mkstemp().
2827
28281999-01-20 Jesse Thilo <jthilo@gnu.org>
2829
2830 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2831 Hush a few compiler warnings.
2832
2833 * src/files.c:
2834 Add tryclose(), which verifies that fclose was successful.
2835 Hush a couple of compiler warnings.
2836
28371999-01-20 Jesse Thilo <jthilo@gnu.org>
2838
2839 * Makefile.am, OChangeLog:
2840 ChangeLog is now automatically generated. Include the old version as
2841 OChangeLog.
2842
28431999-01-14 Jesse Thilo <jthilo@gnu.org>
2844
2845 * 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:
2846 Update FSF address.
2847
28481999-01-14 Jesse Thilo <jthilo@gnu.org>
2849
2850 * doc/bison.texinfo: Fix formatting glitch.
2851
2852 * doc/bison.texinfo: Update FSF address.
2853
28541999-01-14 Jesse Thilo <jthilo@gnu.org>
2855
2856 * acconfig.h: Update FSF address.
2857
28581999-01-08 Jesse Thilo <jthilo@gnu.org>
2859
2860 * src/system.h:
2861 Don't define PACKAGE here, since config.h defines it.
2862
28631998-12-30 Jesse Thilo <jthilo@gnu.org>
2864
2865 * src/reader.c: Update copyright date.
2866
2867 * src/main.c:
2868 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2869 favor of output directly to stderr (avoids buffer overruns).
2870
2871 * src/reader.c: Some checks for premature EOF.
2872
2873 * 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:
2874 Use prototypes if the compiler understands them.
2875
2876 * src/files.c: Honor TMPDIR on Unix hosts.
2877 Use prototypes if the compiler understands them.
2878
2879 * src/reader.c:
2880 Fix a couple of buffer overrun bugs.
2881 Use prototypes if the compiler understands them.
2882
2883 * src/system.h: Include unistd.h and ctype.h.
2884 Use #ifdef instead of #if for NLS symbols.
2885
28861998-12-30 Jesse Thilo <jthilo@gnu.org>
2887
2888 * doc/bison.texinfo:
2889 Delete comment "consider using @set for edition number, etc..." since
2890 we now are doing so.
2891
28921998-12-30 Jesse Thilo <jthilo@gnu.org>
2893
2894 * configure.in:
2895 Use prototypes if the compiler understands them.
2896
2897 * NEWS: Document 1.26 highlights.
2898
2899 * Makefile.am: Require Automake 1.3 or later.
2900
2901 * acconfig.h:
2902 Use prototypes if the compiler understands them.
2903
29041998-12-29 Jesse Thilo <jthilo@gnu.org>
2905
2906 * src/version.c:
2907 Use VERSION symbol from automake for version number.
2908
29091998-12-29 Jesse Thilo <jthilo@gnu.org>
2910
2911 * acconfig.h, configure.in, version.cin:
2912 Use VERSION symbol from automake for version number.
2913
29141998-11-28 Jesse Thilo <jthilo@gnu.org>
2915
2916 * Makefile.am:
2917 Distribute original version of simple parser (bison.s1), not built
2918 version (bison.simple).
2919
29201998-11-28 Jesse Thilo <jthilo@gnu.org>
2921
2922 * doc/bison.texinfo: Add info dir entry.
2923
2924 * doc/bison.texinfo:
2925 Let automake put version number into documentation.
2926
29271998-11-26 Jesse Thilo <jthilo@gnu.org>
2928
2929 * src/bison.cld, src/build.com, src/vmshlp.mar:
2930 Add non-RCS files from /gd/gnu/bison.
2931
29321998-11-26 Jesse Thilo <jthilo@gnu.org>
2933
2934 * doc/bison.1:
2935 Document the BISON_HAIRY and BISON_SIMPLE variables.
2936
29371998-11-25 Jesse Thilo <jthilo@gnu.org>
2938
2939 * src/version.c: Build version.c automatically.
2940
2941 * src/reader.c:
2942 Fix token numbering (used to start at 258, not 257).
2943
2944 * src/system.h: Include config.h.
2945
2946 * src/getargs.c: Update bug report address.
2947
2948 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2949 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2950
29511998-11-25 Jesse Thilo <jthilo@gnu.org>
2952
2953 * Makefile.am:
2954 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2955
2956 * configure.in, version.cin:
2957 Build version.c automatically.
2958
2959 * AUTHORS: Add AUTHORS file.
2960
2961 * README: Update bug report address.
2962
2963 * bison.simple:
2964 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2965
2966 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2967 Add automake stuff.
2968
29691998-11-25 Jesse Thilo <jthilo@gnu.org>
2970
2971 * doc/bison.texinfo: Clean up some formatting.
2972
29731998-05-05 Richard Stallman <rms@gnu.org>
2974
2975 * doc/bison.texinfo:
2976 Explain better why to make a pure parser.
2977
29781998-01-05 Richard Stallman <rms@gnu.org>
2979
2980 * src/files.c (openfiles):
2981 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2982 find a temporary directory, if possible. Do not unlink files while
2983 they are open.
2984
29851997-08-25 Richard Stallman <rms@gnu.org>
2986
2987 * src/reader.c (stack_offset;):
2988 Change some warni to warns.
2989
2990 * src/lex.c (literalchar): Use warns, not warni.
2991
29921997-06-28 Richard Stallman <rms@gnu.org>
2993
2994 * src/bison.s1: Add a Bison version comment.
2995
2996 * src/main.c (fatal, warn, berror):
2997 Use program_name.
2998
29991997-06-28 Richard Stallman <rms@gnu.org>
3000
3001 * Makefile.in (bison_version): New variable.
3002 (dist): Use that variable.
3003 (bison.s1): Substitute the Bison version into bison.simple.
3004
3005 * bison.simple: Add a Bison version comment.
3006
30071997-06-18 Richard Stallman <rms@gnu.org>
3008
3009 * src/main.c (fatal, warn, berror):
3010 Make error messages standard.
3011 (toomany): Improve error message text.
3012
3013 * 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:
3014 new.h renamed to alloc.h.
3015
30161997-06-18 Richard Stallman <rms@gnu.org>
3017
3018 * Makefile.in: new.h renamed to alloc.h.
3019
30201997-05-24 Richard Stallman <rms@gnu.org>
3021
3022 * src/lex.c (literalchar):
3023 Fix the code for escaping \, " and '.
3024
3025 (lex): Avoid trouble when there are many chars
3026 to discard in a char literal with just several chars in it.
3027
30281997-05-17 Richard Stallman <rms@gnu.org>
3029
3030 * src/bison.s1:
3031 Use malloc, if using alloca is troublesome.
3032 (YYSTACK_USE_ALLOCA): New flag macro.
3033 Define it for some systems and compilers.
3034 (YYSTACK_ALLOC): New macro.
3035 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3036 If it was malloc'd, free it.
3037
30381997-05-17 Richard Stallman <rms@gnu.org>
3039
3040 * bison.simple:
3041 Use malloc, if using alloca is troublesome.
3042 (YYSTACK_USE_ALLOCA): New flag macro.
3043 Define it for some systems and compilers.
3044 (YYSTACK_ALLOC): New macro.
3045 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3046 If it was malloc'd, free it.
3047
30481997-04-23 Richard Stallman <rms@gnu.org>
3049
3050 * src/bison.s1:
3051 (alloca) [__hpux]: Always define as __builtin_alloca.
3052
30531997-04-23 Richard Stallman <rms@gnu.org>
3054
3055 * bison.simple:
3056 (alloca) [__hpux]: Always define as __builtin_alloca.
3057
30581997-04-22 Richard Stallman <rms@gnu.org>
3059
3060 * src/bison.s1:
3061 [__hpux]: Include alloca.h (right for HPUX 10)
3062 instead of declaring alloca (right for HPUX 9).
3063
3064 * src/bison.s1 (__yy_memcpy):
3065 Declare arg `count' as unsigned int.
3066 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3067
30681997-04-22 Richard Stallman <rms@gnu.org>
3069
3070 * bison.simple:
3071 [__hpux]: Include alloca.h (right for HPUX 10)
3072 instead of declaring alloca (right for HPUX 9).
3073
3074 * bison.simple (__yy_memcpy):
3075 Declare arg `count' as unsigned int.
3076 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3077
30781997-01-03 Richard Stallman <rms@gnu.org>
3079
3080 * src/allocate.c: [__STDC__ or _MSC_VER]:
3081 Declare calloc and realloc to return void *.
3082
30831997-01-02 Richard Stallman <rms@gnu.org>
3084
3085 * src/system.h:
3086 [_MSC_VER]: Include stdlib.h and process.h.
3087 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3088
3089 * src/main.c (main): Return FAILURE as a value.
3090 (printable_version): Declare arg as int, not char.
3091
30921997-01-02 Richard Stallman <rms@gnu.org>
3093
3094 * Makefile.in (dist):
3095 Explicitly check for symlinks, and copy them.
3096
30971996-12-19 Richard Stallman <rms@gnu.org>
3098
3099 * src/files.c:
3100 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3101
31021996-12-18 Paul Eggert <eggert@gnu.org>
3103
3104 * src/bison.s1 (yyparse):
3105 If __GNUC__ and YYPARSE_PARAM are both defined,
3106 declare yyparse to have a void * argument.
3107
31081996-12-18 Paul Eggert <eggert@gnu.org>
3109
3110 * bison.simple (yyparse):
3111 If __GNUC__ and YYPARSE_PARAM are both defined,
3112 declare yyparse to have a void * argument.
3113
31141996-12-17 Richard Stallman <rms@gnu.org>
3115
3116 * src/reduce.c (nbits): Add some casts.
3117
31181996-08-12 Richard Stallman <rms@gnu.org>
3119
3120 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3121
31221996-08-12 Richard Stallman <rms@gnu.org>
3123
3124 * bison.simple: Test _MSDOS as well as _MSDOS_.
3125
31261996-07-31 Richard Stallman <rms@gnu.org>
3127
3128 * src/bison.s1:
3129 [__sun && __i386]: Include alloca.h.
3130
31311996-07-31 Richard Stallman <rms@gnu.org>
3132
3133 * bison.simple:
3134 [__sun && __i386]: Include alloca.h.
3135
31361996-07-30 Richard Stallman <rms@gnu.org>
3137
3138 * src/bison.s1: Comment change.
3139
3140 * src/bison.s1: Test _MSDOS_, not MSDOS.
3141
31421996-07-30 Richard Stallman <rms@gnu.org>
3143
3144 * bison.simple: Comment change.
3145
3146 * bison.simple: Test _MSDOS_, not MSDOS.
3147
31481996-06-01 Richard Stallman <rms@gnu.org>
3149
3150 * 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:
3151 Insert `_' macro around many string constants.
3152
3153 * src/main.c:
3154 Insert `_' macro around many string constants.
3155
3156 (main): Call setlocale, bindtextdomain and textdomain.
3157
3158 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3159 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3160 [ENABLE_NLS]: Include libintl.h.
3161 [ENABLE_NLS] (gettext): Define.
3162 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3163 (N_, PACKAGE, LOCALEDIR): New macros.
3164
31651996-06-01 Richard Stallman <rms@gnu.org>
3166
3167 * POTFILES.in: New file.
3168
3169 * Makefile.in (allocate.o):
3170 Define target explicitly.
3171
3172 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3173 (LDFLAGS): Set to @LDFLAGS@.
3174 (configure): Run autoconf only if preceding `cd' succeeds.
3175 (bison.s1): Redirect output to temporary file then move the
3176 temporary to the target, rather than redirecting directly to bison.s1.
3177 (clean): Remove config.status and config.log.
3178 (distclean): Don't remove config.status here.
3179
31801996-05-12 Richard Stallman <rms@gnu.org>
3181
3182 * src/bison.s1:
3183 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3184
31851996-05-12 Richard Stallman <rms@gnu.org>
3186
3187 * bison.simple:
3188 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3189
31901996-05-11 Richard Stallman <rms@gnu.org>
3191
3192 * src/bison.s1 (__yy_memcpy):
3193 Really reorder the args, as was supposedly done on Feb 14 1995.
3194 (yyparse): Calls changed accordingly.
3195
31961996-05-11 Richard Stallman <rms@gnu.org>
3197
3198 * Makefile.in (dist): Don't use $(srcdir).
3199
3200 * bison.simple (__yy_memcpy):
3201 Really reorder the args, as was supposedly done on Feb 14 1995.
3202 (yyparse): Calls changed accordingly.
3203
32041996-01-27 Richard Stallman <rms@gnu.org>
3205
3206 * src/output.c (output_rule_data):
3207 Test YYERROR_VERBOSE in the conditional
3208 around the definition of ttyname.
3209
32101995-12-29 Richard Stallman <rms@gnu.org>
3211
3212 * src/bison.s1:
3213 Fix line numbers in #line commands.
3214
32151995-12-29 Richard Stallman <rms@gnu.org>
3216
3217 * bison.simple:
3218 Fix line numbers in #line commands.
3219
32201995-12-27 Richard Stallman <rms@gnu.org>
3221
3222 * src/bison.s1 (YYPARSE_PARAM_DECL):
3223 In C++, make it always null.
3224 (YYPARSE_PARAM_ARG): New macro.
3225 (yyparse): Use YYPARSE_PARAM_ARG.
3226
32271995-12-27 Richard Stallman <rms@gnu.org>
3228
3229 * bison.simple (YYPARSE_PARAM_DECL):
3230 In C++, make it always null.
3231 (YYPARSE_PARAM_ARG): New macro.
3232 (yyparse): Use YYPARSE_PARAM_ARG.
3233
32341995-11-29 Richard Stallman <rms@gnu.org>
3235
3236 * doc/bison.texinfo:
3237 Describe literal string tokens, %raw, %no_lines, %token_table.
3238
32391995-11-29 Daniel Hagerty <hag@gnu.org>
3240
3241 * doc/bison.texinfo: Fixed update date
3242
32431995-10-16 Richard Stallman <rms@gnu.org>
3244
3245 * src/version.c: Version 1.25.
3246
32471995-10-16 Richard Stallman <rms@gnu.org>
3248
3249 * NEWS: *** empty log message ***
3250
32511995-10-16 Richard Stallman <rms@gnu.org>
3252
3253 * doc/bison.1, doc/bison.rnh:
3254 Add new options.
3255
32561995-10-15 Richard Stallman <rms@gnu.org>
3257
3258 * src/vmsgetargs.c, src/getargs.c:
3259 Added -n, -k, and -raw switches.
3260 (noparserflag, toknumflag, rawtoknumflag): New variables.
3261
3262 * src/symtab.h (SALIAS):
3263 New #define for adding aliases to %token.
3264 (struct bucket): Added `alias' field.
3265
3266 * src/reduce.c (reduce_grammar):
3267 Revise error message.
3268 (print_notices): Remove final `.' from error message.
3269
3270 * src/reader.c (reader_output_yylsp):
3271 New function.
3272 (readgram): Use `#if 0' around code that accepted %command
3273 inside grammar rules: The documentation doesn't allow it,
3274 and it will fail since the %command processors scan for the next %.
3275 (parse_token_decl): Extended the %token
3276 declaration to allow a multi-character symbol as an alias.
3277 (parse_thong_decl): New function.
3278 (read_declarations): Added %thong declarations.
3279 (read_declarations): Handle NOOP to deal with allowing
3280 % declarations as another means to specify the flags.
3281 (readgram): Allow %prec prior to semantics embedded in a rule.
3282 (skip_to_char, read_declarations, copy_definition)
3283 (parse_token_decl, parse_start_decl, parse_type_decl)
3284 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3285 (get_type_name, copy_guard, copy_action, readgram)
3286 (get_type, packsymbols): Revised most error messages.
3287 Changed `fatal' to `warnxxx' to avoid aborting for error.
3288 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3289 (read_declarations): Improve the error message for
3290 an invalid character. Do not abort.
3291 (read_declarations, copy_guard, copy_action): Use
3292 printable_version to avoid unprintable characters in printed output.
3293 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3294 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3295 Allow the type of a non-terminal can be given
3296 more than once, as long as all specifications give the same type.
3297
3298 * src/output.c:
3299 (output_headers, output_trailers, output, output_gram)
3300 (output_rule_data): Implement noparserflag variable.
3301 Implement toknumflag variable.
3302 (output): Call reader_output_yylsp to output LTYPESTR.
3303
3304 * src/main.c (main):
3305 If reader sees an error, don't process the grammar.
3306 (fatals): Updated to not use VARARGS1.
3307 (printable_version, int_to_string, warn, warni, warns, warnss)
3308 (warnsss): New error reporting functions. Avoid abort for error.
3309
3310 * src/lex.h:
3311 Added THONG and NOOP for alias processing.
3312 Added SETOPT for the new code that allows setting options with %flags.
3313
3314 * src/lex.c:
3315 Include getopt.h. Add some extern decls.
3316 (safegetc): New function to deal with EOF gracefully.
3317 (literalchar); new function to deal with reading \ escapes.
3318 (lex): Use literalchar.
3319 (lex): Implemented "..." tokens.
3320 (literalchar, lex, parse_percent_token): Made tokenbuffer
3321 always contain the token. This includes growing the token
3322 buffer while reading an integer.
3323 (parse_percent_token): Replaced if-else statement with percent_table.
3324 (parse_percent_token): Added % declarations as another
3325 way to specify the flags -n, -l, and -r. Also added hooks for
3326 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3327 major changes to files.c.
3328 (lex) Retain in the incoming stream a character following
3329 an incorrect '/'.
3330 (skip_white_space, lex): Revised most error messages
3331 and changed fatal to warn to avoid aborting.
3332 (percent_table): Added %thong declarations.
3333
3334 * src/gram.h: Comment changes.
3335
3336 * src/files.c (openfiles, open_extra_files, done):
3337 Add faction flag
3338 and actfile file. Handle noparserflag. Both for -n switch.
3339
3340 * src/conflicts.c (resolve_sr_conflict):
3341 Remove use of alloca.
3342
33431995-06-01 Jim Meyering <meyering@gnu.org>
3344
3345 * doc/bison.texinfo: *** empty log message ***
3346
33471995-05-06 Richard Stallman <rms@gnu.org>
3348
3349 * src/bison.s1: Comment change.
3350
33511995-05-06 Richard Stallman <rms@gnu.org>
3352
3353 * bison.simple: Comment change.
3354
33551995-05-03 Richard Stallman <rms@gnu.org>
3356
3357 * src/version.c: Version now 1.24.
3358
3359 * src/bison.s1: Change distribution terms.
3360
3361 * src/version.c: Version now 1.23.
3362
33631995-05-03 Richard Stallman <rms@gnu.org>
3364
3365 * doc/bison.texinfo:
3366 Rewrite "Conditions for Using Bison".
3367 Update version to 1.24.
3368
33691995-05-03 Richard Stallman <rms@gnu.org>
3370
3371 * bison.simple: Change distribution terms.
3372
33731995-02-23 Richard Stallman <rms@gnu.org>
3374
3375 * src/files.c: Test __VMS_POSIX as well as VMS.
3376
33771995-02-14 Jim Meyering <meyering@gnu.org>
3378
3379 * src/bison.s1 (__yy_memcpy):
3380 Renamed from __yy_bcopy to avoid
3381 confusion. Reverse FROM and TO arguments to be consistent with
3382 those of memcpy.
3383
33841995-02-14 Jim Meyering <meyering@gnu.org>
3385
3386 * bison.simple (__yy_memcpy):
3387 Renamed from __yy_bcopy to avoid
3388 confusion. Reverse FROM and TO arguments to be consistent with
3389 those of memcpy.
3390
33911994-11-10 David J. MacKenzie <djm@gnu.org>
3392
3393 * NEWS: reformat
3394
3395 * NEWS: New file.
3396
3397 * Makefile.in (DISTFILES): Include NEWS.
3398
3399 * Makefile.in (DISTFILES):
3400 Include install-sh, not install.sh.
3401
3402 * configure.in: Update to Autoconf v2 macro names.
3403
34041994-10-05 David J. MacKenzie <djm@gnu.org>
3405
3406 * Makefile.in: fix typo
3407
3408 * Makefile.in (prefix, exec_prefix):
3409 Let configure set them.
3410
34111994-09-28 David J. MacKenzie <djm@gnu.org>
3412
3413 * Makefile.in: Set datadir to $(prefix)/share.
3414
34151994-09-15 Richard Stallman <rms@gnu.org>
3416
3417 * src/bison.s1:
3418 Update copyright notice and GPL version.
3419
34201994-09-15 Richard Stallman <rms@gnu.org>
3421
3422 * bison.simple:
3423 Update copyright notice and GPL version.
3424
34251994-07-12 Richard Stallman <rms@gnu.org>
3426
3427 * src/reduce.c, src/reader.c:
3428 entered into RCS
3429
34301994-05-05 David J. MacKenzie <djm@gnu.org>
3431
3432 * Makefile.in: entered into RCS
3433
34341994-03-26 Richard Stallman <rms@gnu.org>
3435
3436 * src/bison.s1: entered into RCS
3437
34381994-03-26 Richard Stallman <rms@gnu.org>
3439
3440 * bison.simple: entered into RCS
3441
34421994-03-25 Richard Stallman <rms@gnu.org>
3443
3444 * src/main.c: entered into RCS
3445
34461994-03-24 Richard Stallman <rms@gnu.org>
3447
3448 * src/conflicts.c: entered into RCS
3449
34501994-01-02 Richard Stallman <rms@gnu.org>
3451
3452 * Makefile.in: *** empty log message ***
3453
34541993-11-21 Richard Stallman <rms@gnu.org>
3455
3456 * src/bison.s1: *** empty log message ***
3457
34581993-11-21 Richard Stallman <rms@gnu.org>
3459
3460 * doc/bison.texinfo: entered into RCS
3461
3462 * doc/bison.texinfo: *** empty log message ***
3463
34641993-11-21 Richard Stallman <rms@gnu.org>
3465
3466 * bison.simple: *** empty log message ***
3467
34681993-10-25 David J. MacKenzie <djm@gnu.org>
3469
3470 * doc/bison.texinfo: *** empty log message ***
3471
34721993-10-19 Richard Stallman <rms@gnu.org>
3473
3474 * src/bison.s1: *** empty log message ***
3475
34761993-10-19 Richard Stallman <rms@gnu.org>
3477
3478 * bison.simple: *** empty log message ***
3479
34801993-10-14 Richard Stallman <rms@gnu.org>
3481
3482 * src/bison.s1: *** empty log message ***
3483
34841993-10-14 Richard Stallman <rms@gnu.org>
3485
3486 * bison.simple: *** empty log message ***
3487
34881993-09-14 David J. MacKenzie <djm@gnu.org>
3489
3490 * doc/bison.texinfo: *** empty log message ***
3491
34921993-09-13 Noah Friedman <friedman@gnu.org>
3493
3494 * Makefile.in: *** empty log message ***
3495
34961993-09-10 Richard Stallman <rms@gnu.org>
3497
3498 * src/conflicts.c: *** empty log message ***
3499
3500 * src/system.h: entered into RCS
3501
35021993-09-10 Richard Stallman <rms@gnu.org>
3503
3504 * doc/bison.1: entered into RCS
3505
35061993-09-06 Noah Friedman <friedman@gnu.org>
3507
3508 * src/version.c: entered into RCS
3509
35101993-09-06 Noah Friedman <friedman@gnu.org>
3511
3512 * Makefile.in: *** empty log message ***
3513
35141993-07-30 David J. MacKenzie <djm@gnu.org>
3515
3516 * Makefile.in: *** empty log message ***
3517
35181993-07-24 Richard Stallman <rms@gnu.org>
3519
3520 * src/bison.s1: *** empty log message ***
3521
35221993-07-24 Richard Stallman <rms@gnu.org>
3523
3524 * bison.simple: *** empty log message ***
3525
35261993-07-08 David J. MacKenzie <djm@gnu.org>
3527
3528 * Makefile.in: *** empty log message ***
3529
35301993-07-04 Richard Stallman <rms@gnu.org>
3531
3532 * src/bison.s1: *** empty log message ***
3533
35341993-07-04 Richard Stallman <rms@gnu.org>
3535
3536 * bison.simple: *** empty log message ***
3537
35381993-06-26 David J. MacKenzie <djm@gnu.org>
3539
3540 * src/getargs.c: entered into RCS
3541
35421993-06-26 David J. MacKenzie <djm@gnu.org>
3543
3544 * doc/bison.texinfo: *** empty log message ***
3545
3546 * doc/bison.1: New file.
3547
35481993-06-25 Richard Stallman <rms@gnu.org>
3549
3550 * src/getargs.c: New file.
3551
35521993-06-16 Richard Stallman <rms@gnu.org>
3553
3554 * src/bison.s1: *** empty log message ***
3555
35561993-06-16 Richard Stallman <rms@gnu.org>
3557
3558 * bison.simple: *** empty log message ***
3559
35601993-06-03 Richard Stallman <rms@gnu.org>
3561
3562 * src/bison.s1: New file.
3563
35641993-06-03 Richard Stallman <rms@gnu.org>
3565
3566 * doc/bison.texinfo: *** empty log message ***
3567
35681993-06-03 Richard Stallman <rms@gnu.org>
3569
3570 * bison.simple: New file.
3571
35721993-05-19 Richard Stallman <rms@gnu.org>
3573
3574 * doc/bison.texinfo: New file.
3575
35761993-05-07 Noah Friedman <friedman@gnu.org>
3577
3578 * Makefile.in: *** empty log message ***
3579
35801993-04-28 Noah Friedman <friedman@gnu.org>
3581
3582 * src/reader.c: *** empty log message ***
3583
35841993-04-23 Noah Friedman <friedman@gnu.org>
3585
3586 * src/alloc.h: entered into RCS
3587
35881993-04-20 David J. MacKenzie <djm@gnu.org>
3589
3590 * src/version.c: *** empty log message ***
3591
3592 * src/files.c, src/allocate.c:
3593 entered into RCS
3594
3595 * src/reader.c: *** empty log message ***
3596
3597 * src/lex.c: entered into RCS
3598
3599 * src/conflicts.c: New file.
3600
3601 * src/symtab.c: entered into RCS
3602
3603 * src/alloc.h: New file.
3604
3605 * src/LR0.c: entered into RCS
3606
36071993-04-18 Noah Friedman <friedman@gnu.org>
3608
3609 * src/reader.c: New file.
3610
3611 * src/version.c: *** empty log message ***
3612
36131993-04-18 Noah Friedman <friedman@gnu.org>
3614
3615 * Makefile.in: *** empty log message ***
3616
36171993-04-17 Noah Friedman <friedman@gnu.org>
3618
3619 * Makefile.in: *** empty log message ***
3620
36211993-04-15 Richard Stallman <rms@gnu.org>
3622
3623 * src/main.c, src/files.c:
3624 New file.
3625
36261993-04-15 Noah Friedman <friedman@gnu.org>
3627
3628 * configure.in: entered into RCS
3629
3630 * configure.in: *** empty log message ***
3631
3632 * configure.in: New file.
3633
36341993-04-14 Richard Stallman <rms@gnu.org>
3635
3636 * Makefile.in: New file.
3637
36381993-04-13 Richard Stallman <rms@gnu.org>
3639
3640 * src/version.c: New file.
3641
36421993-03-25 Richard Stallman <rms@gnu.org>
3643
3644 * src/output.c: entered into RCS
3645
36461992-09-25 Richard Stallman <rms@gnu.org>
3647
3648 * configure.bat: entered into RCS
3649
36501992-06-22 Richard Stallman <rms@gnu.org>
3651
3652 * src/vmsgetargs.c: entered into RCS
3653
36541992-06-22 Richard Stallman <rms@gnu.org>
3655
3656 * doc/bison.rnh: entered into RCS
3657
36581992-04-20 David J. MacKenzie <djm@gnu.org>
3659
3660 * README: entered into RCS
3661
36621992-01-22 Richard Stallman <rms@gnu.org>
3663
3664 * src/machine.h: entered into RCS
3665
36661991-12-21 Richard Stallman <rms@gnu.org>
3667
3668 * src/lalr.c, src/closure.c:
3669 entered into RCS
3670
36711991-12-20 Richard Stallman <rms@gnu.org>
3672
3673 * src/state.h: entered into RCS
3674
36751991-12-18 Richard Stallman <rms@gnu.org>
3676
3677 * src/print.c, src/nullable.c, src/derives.c:
3678 entered into RCS
3679
36801991-11-03 David J. MacKenzie <djm@gnu.org>
3681
3682 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3683 entered into RCS
3684
36851988-09-09 Richard Stallman <rms@gnu.org>
3686
3687 * src/bison.hairy: entered into RCS
3688
36891987-12-16 Richard Stallman <rms@gnu.org>
3690
3691 * REFERENCES: entered into RCS