]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/closure.c (closure): `b' and `ruleno' denote the same value:
[bison.git] / ChangeLog
CommitLineData
4b35e1c1
AD
12001-11-28 Akim Demaille <akim@epita.fr>
2
3 * src/closure.c (closure): `b' and `ruleno' denote the same value:
4 keep ruleno only.
5
6
d2b04478
AD
72001-11-28 Akim Demaille <akim@epita.fr>
8
9 * src/closure.c (closure): Instead of looping over word in array
10 then bits in words, loop over bits in array.
11
12
2c4c30aa
AD
132001-11-28 Akim Demaille <akim@epita.fr>
14
15 * src/closure.c (closure): No longer optimize the special case
16 where all the bits of `ruleset[r]' are set to 0, to make the code
17 clearer.
18
19
576890b7
AD
202001-11-28 Akim Demaille <akim@epita.fr>
21
22 * src/closure.c (closure): `r' and `c' are new variables, used to
23 de-obfuscate accesses to RULESET and CORE.
24
cb487d7d
AD
252001-11-28 Akim Demaille <akim@epita.fr>
26
27 * src/reduce.c (reduce_print): Use ngettext.
28 (dump_grammar): Improve the trace accuracy.
29
6013d43f
AD
302001-11-28 Akim Demaille <akim@epita.fr>
31
32 * src/reduce.c (dump_grammar): Don't translate trace messages.
33
cb4956ee
AD
342001-11-28 Akim Demaille <akim@epita.fr>
35
36 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
37 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
38 as all tags are free'ed afterwards.
39 From Enrico Scholz.
40
648185ab
PE
412001-11-27 Paul Eggert <eggert@twinsun.com>
42
43 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
44 use alloca when we didn't want to, and vice versa.
45
68254a03
MA
462001-11-27 Marc Autret <autret_m@epita.fr>
47
48 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle initialization.
49 * src/output.c (prepare): Remove its update.
50
04d843a2
MA
512001-11-27 Marc Autret <autret_m@epita.fr>
52
53 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
54 Use %error-verbose.
55
d2079671 562001-11-27 Marc Autret <autret_m@epita.fr>
eeeb962b
MA
57
58 * src/bison.simple: Remove YYERROR_VERBOSE using.
59 Use %%error_verbose.
60 (yyparse): Likewise.
61 * src/output.c (prepare): Give its final value.
62 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
63 * src/getargs.h: Add its extern declaration.
64 * src/getargs.c (error_verbose_flag): New int.
65 (getargs): Update to catch new case.
66 * src/options.c (option_table): 'error-verbose' is a new option.
67 (shortopts): Update.
68
e0327bc8
AD
692001-11-27 Akim Demaille <akim@epita.fr>
70
71 * src/system.h: Use intl/libgettext.h.
72 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
73
000f1a3c
AD
742001-11-27 Akim Demaille <akim@epita.fr>
75
76 * tests/torture.at (Exploding the Stack Size with Malloc):
77 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
78
26cfe0be
AD
792001-11-27 Akim Demaille <akim@epita.fr>
80
81 * src/files.c: Include error.h.
82 Reported by Hans Aberg.
83
f6bd5427
MA
842001-11-26 Marc Autret <autret_m@epita.fr>
85
d2079671 86 * src/reader.c (parse_include_decl): New, not yet implemented.
f6bd5427
MA
87 (read_declarations): Add case tok_include.
88 * src/getargs.h (include): Add its extern definition.
89 * src/getargs.c (include): New const char *.
90 (getargs): Add case '-I'.
91 * src/options.c (option_table): Add include as command line and
92 percent option.
93 * src/lex.h (token_t): Add tok_include.
94
2ca209c1
AD
952001-11-26 Akim Demaille <akim@epita.fr>
96
97 * src/reader.c (readgram): Make sure rules for mid-rule actions
98 have a lineno equal to that of their host rule.
99 Reported by Hans Aberg.
100 * tests/regression.at (Rule Line Numbers): New.
101
0e41b407
AD
1022001-11-26 Akim Demaille <akim@epita.fr>
103
104 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
105 size_ts.
106
1072001-11-26 Akim Demaille <akim@epita.fr>
108
109 * src/complain.c, src/complain.h (error): Remove, provided by
110 lib/error.[ch].
111
e0c40012
AD
1122001-11-26 Akim Demaille <akim@epita.fr>
113
114 * src/reader.c (read_declarations): Don't abort on tok_illegal,
115 issue an error message.
116 * tests/regression.at (Invalid %directive): New.
117 Reported by Hans Aberg.
118
5e147124
AD
1192001-11-26 Akim Demaille <akim@epita.fr>
120
121 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
122 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
123
a034c8b8
AD
1242001-11-26 Akim Demaille <akim@epita.fr>
125
126 * src/conflicts.c (conflicts_print): Don't complain at all when
127 there are no reduce/reduce conflicts, and as many shift/reduce
128 conflicts as expected.
129 * tests/regression.at (%expect right): Adjust.
130
c64a20f3
AD
1312001-11-23 Akim Demaille <akim@epita.fr>
132
133 * lib/alloca.c: Update, from fileutils.
134
5b0d29bb
AD
1352001-11-23 Akim Demaille <akim@epita.fr>
136
137 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
138
722c4bfe
AD
1392001-11-23 Akim Demaille <akim@epita.fr>
140
141 * src/system.h: Include alloca.h.
142 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
143
6255b435
AD
1442001-11-23 Akim Demaille <akim@epita.fr>
145
146 * src/print_graph.c (print_actions): Remove `rule', unused.
147 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
148 pacify GCC's signed < unsigned warnings.
149 * src/closure.c (itemsetsize): Likewise.
150 * src/reader.c (symbol_list_new): Static.
151
b29b2ed5
AD
1522001-11-23 Akim Demaille <akim@epita.fr>
153
154 Attaching lineno to buckets is stupid, since only one copy of each
155 symbol is kept, only the line of the first occurrence is kept too.
156
157 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
158 * src/reader.c (rline_allocated): Remove, unused.
159 (symbol_list): Have a `line' member.
160 (symbol_list_new): New.
161 (readgram): Use it.
162 * src/print.c (print_grammar): Output the rule line numbers.
163 * tests/regression.at (Solved SR Conflicts)
164 (Unresolved SR Conflicts): Adjust.
165 Reported by Hans Aberg.
166
a81b1d4a
MA
1672001-11-22 Marc Autret <autret_m@epita.fr>
168
169 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
170
c1ecb3c1
MA
1712001-11-22 Marc Autret <autret_m@epita.fr>
172
173 * src/muscle_tab.c (muscle_init): Remove initialization of
174 skeleton muscle.
175 * src/output.c (output_master_parser): Do it here.
176
fbe01355
AD
1772001-11-20 Akim Demaille <akim@epita.fr>
178
179 * po/sv.po: New.
180 * configure.in (ALL_LINGUAS): Adjust.
181 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
182 longer contains strings to translate.
183
81e895c0
AD
1842001-11-19 Akim Demaille <akim@epita.fr>
185
186 * src/conflicts.c (conflicts_print): Add a missing \n.
187
6bb1878b
AD
1882001-11-19 Akim Demaille <akim@epita.fr>
189
190 * src/nullable.c (nullable_print): New.
191 (set_nullable): Call it when tracing.
192 Better locality of variables.
193
d9ec2d07
AD
1942001-11-19 Akim Demaille <akim@epita.fr>
195
196 * src/print.c (print_actions): Better locality of variables.
197
720e5c1b
AD
1982001-11-19 Akim Demaille <akim@epita.fr>
199
200 * src/derives.c (print_derives): Fix and enrich.
201 * src/closure.c (print_fderives): Likewise.
202
fb908786
AD
2032001-11-19 Akim Demaille <akim@epita.fr>
204
205 * src/closure.c (itemsetend): Remove, replaced with...
206 (itemsetsize): new.
207
125ecb56
AD
2082001-11-19 Akim Demaille <akim@epita.fr>
209
210 * src/LR0.c (kernel_end): Remove, replaced with...
211 (kernel_size): new.
212
d8cf039f
AD
2132001-11-19 Akim Demaille <akim@epita.fr>
214
215 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
216 to clarify.
217
7bec0760
AD
2182001-11-19 Akim Demaille <akim@epita.fr>
219
220 * src/closure.c (closure): Use arrays instead of pointers to clarify.
221
c87d4863
AD
2222001-11-19 Akim Demaille <akim@epita.fr>
223
224 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
225 trace messages.
226 * src/LR0.c: Likewise.
227 (allocate_itemsets): Use arrays instead of pointers to clarify.
228
9bfe901c
AD
2292001-11-19 Akim Demaille <akim@epita.fr>
230
231 * src/getargs.c (statistics_flag): Replace with...
232 (trace_flag): New.
233 (longopts): Accept --trace instead of --statistics.
234 * src/getargs.h, src/options.c: Adjust.
235 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
236 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
237
97db7bd4
AD
2382001-11-19 Akim Demaille <akim@epita.fr>
239
cc72668c 240 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
97db7bd4
AD
241 pointers to clarify the code.
242 (save_reductions, save_shifts): Factor common parts of alternatives.
243
2c5f66ed
AD
2442001-11-19 Akim Demaille <akim@epita.fr>
245
246 * src/LR0.c (new_state, get_state): Complete TRACE code.
247 * src/closure.c: Include `reader.h' to get `tags', needed by the
248 trace code.
249 Rename the conditional DEBUG as TRACE.
250 Output consistently TRACEs to stderr, not stdout.
251 * src/derives.c: Likewise.
252 * src/reduce.c: (inaccessable_symbols): Using if is better style
253 than goto.
254 Use `#if TRACE' instead of `#if 0' for tracing code.
255
300f275f
AD
2562001-11-19 Akim Demaille <akim@epita.fr>
257
258 * src/system.h (LIST_FREE, shortcpy): New.
259 * src/LR0.c: Use them.
260 * src/output.c (free_itemsets, free_reductions, free_shifts):
261 Remove, replaced by LIST_FREE.
262
f59c437a
AD
2632001-11-19 Akim Demaille <akim@epita.fr>
264
265 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
266 (REDUCTIONS_ALLOC): New.
267 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
268 allocation.
269
6986fd9e
AD
2702001-11-19 Akim Demaille <akim@epita.fr>
271
272 * src/LR0.c (new_state): Complete trace code.
273 * src/nullable.c (set_nullable): Don't translate traces.
274
4bc30f78
AD
2752001-11-19 Akim Demaille <akim@epita.fr>
276
277 * src/print_graph.c (print_core): Better locality of variables.
278 * src/print.c (print_core): Likewise.
279
08a946e0
AD
2802001-11-19 Akim Demaille <akim@epita.fr>
281
282 * src/vcg.c: You do the output, so you are responsible of the
283 handling of VCG syntax, in particular: use quotearg.
284 * src/print_graph.c: Don't.
285 (print_actions): Don't output the actions as part of the nodes,
286 since that's the job of the edges.
287 (print_state): Don't output by hand: fill the node description,
9bfe901c 288 and ask for its output.
08a946e0 289
f0473484
AD
2902001-11-19 Akim Demaille <akim@epita.fr>
291
cc72668c
AD
292 * src/bison.simple (yyparse): When verbosely reporting an error,
293 no longer put additional quotes around token names.
f0473484
AD
294 * tests/calc.at: Adjust.
295
e41dc700
AD
2962001-11-19 Akim Demaille <akim@epita.fr>
297
298 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
299 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
300 * src/output.c: Adjust.
301
652a871c
AD
3022001-11-19 Akim Demaille <akim@epita.fr>
303
304 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
305 (rule_t): this.
306 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
307
b2ed6e58
AD
3082001-11-19 Akim Demaille <akim@epita.fr>
309
310 * src/gram.h (rule_t): New.
311 (rule_table): New.
312 (rrhs, rlhs): Remove, part of state_t.
313 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
314 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
315 * src/reader.c, src/reduce.c: Adjust.
316
edad7067
AD
3172001-11-19 Akim Demaille <akim@epita.fr>
318
319 * src/reader.c (symbols_output): New, extracted from...
320 (packsymbols): Here.
321 (reader): Call it.
322
3feec034
AD
3232001-11-19 Akim Demaille <akim@epita.fr>
324
325 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
326 (maxrhs): this new function.
327
ddcd5fdf
AD
3282001-11-19 Akim Demaille <akim@epita.fr>
329
cc72668c 330 * src/lalr.c (F): New macro to access the variable F.
ddcd5fdf
AD
331 Adjust.
332
bb527fc2
AD
3332001-11-19 Akim Demaille <akim@epita.fr>
334
cc72668c 335 * src/lalr.h (LA): New macro to access the variable LA.
bb527fc2
AD
336 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
337 * src/lalr.c: Adjust.
338
a845a697
AD
3392001-11-19 Akim Demaille <akim@epita.fr>
340
341 * src/lalr.c (initialize_LA): Only initialize LA. Let...
342 (set_state_table): handle the `lookaheads' members.
343
f004bf6a
AD
3442001-11-19 Akim Demaille <akim@epita.fr>
345
cc72668c
AD
346 * src/lalr.h (lookaheads): Removed array, whose contents is now
347 a member of...
f004bf6a
AD
348 (state_t): this structure.
349 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
350 Adjust.
351
de326cc0
AD
3522001-11-19 Akim Demaille <akim@epita.fr>
353
cc72668c
AD
354 * src/lalr.h (consistent): Removed array, whose contents is now
355 a member of...
de326cc0
AD
356 (state_t): this structure.
357 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
358 Adjust.
359
90b4416b
AD
3602001-11-19 Akim Demaille <akim@epita.fr>
361
cc72668c
AD
362 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
363 contents are now members of...
90b4416b
AD
364 (state_t): this structure.
365 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
366 Adjust.
367
9703cc49
AD
3682001-11-19 Akim Demaille <akim@epita.fr>
369
370 * src/lalr.h (state_t): New.
371 (state_table): Be a state_t * instead of a core **.
372 (accessing_symbol): Remove, part of state_t.
373 * src/lalr.c: Adjust.
374 (set_accessing_symbol): Merge into...
375 (set_state_table): this.
376 * src/print_graph.c, src/conflicts.c: Adjust.
377
d803322e
AD
3782001-11-14 Akim Demaille <akim@epita.fr>
379
380 * tests/calc.at, tests/output.at, tests/regression.at,
381 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
382 now the tests are run in private dirs, therefore AC_CLEANUP and
383 family can be simplified to 0-ary.
384 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
385 use abs. path to find config.h.
386 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
387 stderr, there can be way too much random noise.
388 Instead pass -Werror to GCC and rely on the exit status.
389 Reported by Wolfram Wagner.
390
3d76b07d
AD
3912001-11-14 Akim Demaille <akim@epita.fr>
392
393 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
394 defined only if yyoverflow is defined, to avoid `warning: unused
395 variable `yyvs1''.
396 Reported by The Test Suite.
397
09b503c8
AD
3982001-11-14 Akim Demaille <akim@epita.fr>
399
400 * src/print.c: Include reduce.h.
401 Reported by Hans Aberg.
402
4032001-11-14 Akim Demaille <akim@epita.fr>
404
405 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
406 Revert a previous patch: these are really const.
407 * src/conflicts.c (conflict_report): Additional useless pair of
408 braces to pacify GCC's warnings for `if () if () {} else {}'.
409 * src/lex.c (parse_percent_token): Replace equal_offset with
410 arg_offset.
411 arg is const.
412 Be sure to strdup `arg' when used, since there is no reason for
413 token_buffer not to change.
414
0f37a994
AD
4152001-11-14 Akim Demaille <akim@epita.fr>
416
417 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
418 definition.
419 * src/main.c (main): Use them.
420 Suggested by Hans Aberg.
421
d39d93b8
AD
4222001-11-12 Akim Demaille <akim@epita.fr>
423
424 * src/system.h (ngettext): Now that we use ngettext, be sure to
425 provide a default definition when NLS are not used.
426
9edcd895
AD
4272001-11-12 Akim Demaille <akim@epita.fr>
428
429 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
430 Use @kbd to denote user input.
431 (Language and Grammar): ANSIfy the example.
432 Adjust its layout for info/notinfo.
433 (Location Tracking Calc): Output error messages to stderr.
434 Output locations in a more GNUtically correct way.
435 Fix a couple of Englishos.
436 Adjust @group/@end group pairs.
437
7da99ede
AD
4382001-11-12 Akim Demaille <akim@epita.fr>
439
440 %expext was not functioning at all.
441
442 * src/conflicts.c (expected_conflicts): Set to -1.
443 (conflict_report): Use ngettext.
444 (conflicts_print): Check %expect and make its violation an error.
445 * doc/bison.texinfo (Expect Decl): Adjust.
446 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
447 * tests/regression.at (%expect not enough, %expect right)
448 (%expect too much): New.
449
ba9dda1a
AD
4502001-11-12 Akim Demaille <akim@epita.fr>
451
452 * tests/regression.at (Conflicts): Rename as...
453 (Unresolved SR Conflicts): this.
454 (Solved SR Conflicts): New.
455
337c5bd1
AD
4562001-11-12 Akim Demaille <akim@epita.fr>
457
458 * src/reduce.c (print_results): Rename as...
459 (reduce_output): This.
460 Output to OUT, passed as argument, instead of output_obstack.
461 (dump_grammar): Likewise.
462 (reduce_free): New.
463 Also free V1.
464 (reduce_grammar): No longer call reduce_output, since...
465 * src/print.c (print_results): do it.
466 * src/main.c (main): Call reduce_free;
467
c73a41af
AD
4682001-11-12 Akim Demaille <akim@epita.fr>
469
470 * src/conflicts.c (print_reductions): Accept OUT as argument.
471 Output to it, not to output_obstack.
472 * src/print.c (print_actions): Adjust.
473
0df87bb6
AD
4742001-11-12 Akim Demaille <akim@epita.fr>
475
476 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
477 the result instead of using...
478 (src_total, rrc_total, src_count, rrc_count): Remove.
479 (any_conflicts): Remove.
480 (print_conflicts): Split into...
481 (conflicts_print, conflicts_output): New.
482 * src/conflicts.h: Adjust.
483 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
0f37a994 484 * src/print.c (print_grammar): Issue `\n' between two rules.
0df87bb6
AD
485 * tests/regression.at (Conflicts): New.
486 Reported by Tom Lane.
487
e4d3d4de
AD
4882001-11-12 Akim Demaille <akim@epita.fr>
489
490 * tests/regression.at (Invalid input): Remove, duplicate with
491 ``Invalid input: 1''.
492
6d7d248e
AD
4932001-11-12 Akim Demaille <akim@epita.fr>
494
495 * tests/torture.at (AT_DATA_STACK_TORTURE)
496 (Exploding the Stack Size with Alloca)
497 (Exploding the Stack Size with Malloc): New.
498
e9e4c321
AD
4992001-11-12 Akim Demaille <akim@epita.fr>
500
501 * src/bison.simple (YYSTACK_REALLOC): New.
502 (yyparse) [!yyoverflow]: Use it and free the old stack.
0f37a994 503 Reported by Per Allansson.
e9e4c321 504
5f7e0832
AD
5052001-11-12 Pascal Bart <pascal.bart@epita.fr>
506
507 * src/bison.simple: Define type yystype instead of YYSTYPE, and
508 define CPP macro, which substitute YYSTYPE by yystype.
509 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
510 with yyltype/YYLTYPE. This allows inclusion of the generated
511 header within the parser if the compiler, such as GGC, accepts
512 multiple equivalent #defines.
513 From Akim.
514
e3f1699f
AD
5152001-11-05 Akim Demaille <akim@epita.fr>
516
517 * src/reader.c (symbols_output): New, extracted from...
518 (packsymbols): here.
519 (reader): Adjust.
520
65be0866
AD
5212001-11-05 Akim Demaille <akim@epita.fr>
522
523 * src/lex.c (parse_percent_token): s/quotearg/quote/.
524
e4d910bf
AD
5252001-11-05 Akim Demaille <akim@epita.fr>
526
527 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
528 pattern.
529
951366c1
AD
5302001-11-05 Akim Demaille <akim@epita.fr>
531
532 * src/options.h (struct option_table_struct): set_flags is void*.
533 * src/options.c (longopts): Support `--output' and `%output'.
534 (usage): Adjust.
535 * src/lex.h (tok_setopt): Remove, replaced with...
536 (tok_intopt, tok_stropt): these new guys.
537 * src/lex.c (getopt.h): Not needed.
538 (token_buffer, unlexed_token_buffer): Not const.
539 (percent_table): Promote `-' over `_' in directive names.
540 Active `%name-prefix', `file-prefix', and `output'.
541 (parse_percent_token): Accept possible arguments to directives.
542 Promote `-' over `_' in directive names.
543
d8988b2f
AD
5442001-11-04 Akim Demaille <akim@epita.fr>
545
546 * doc/bison.texinfo (Decl Summary): Split the list into
547 `directives for grammars' and `directives for bison'.
548 Sort'em.
549 Add description of `%name-prefix', `file-prefix', and `output'.
550 Promote `-' over `_' in directive names.
551 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
552 Simplify the description of `--name-prefix'.
553 Promote `-' over `_' in directive names.
554 Promote `--output' over `--output-file'.
555 Fix the description of `--defines'.
556 * tests/output.at: Exercise %file-prefix and %output.
557
6468d18e
AD
5582001-11-02 Akim Demaille <akim@epita.fr>
559
560 * doc/refcard.tex: Update.
561
6b7e85b9
AD
5622001-11-02 Akim Demaille <akim@epita.fr>
563
564 * src/symtab.h (SUNDEF): New.
565 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
566 stand for `uninitialized', instead of 0.
567 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
568 * src/lex.c (lex): Adjust.
569
570 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
571 Number it 0.
572 Let yylex return it instead of a plain 0.
573 Reported by Dick Streefland.
574
cd5aafcf
AD
5752001-11-02 Akim Demaille <akim@epita.fr>
576
577 * tests/regression.at (Mixing %token styles): New test.
578
037ca2f1
AD
5792001-11-02 Akim Demaille <akim@epita.fr>
580
581 * src/reader.c (parse_thong_decl): Formatting changes.
582 (token_translations_init): New, extracted from...
583 (packsymbols): Here.
584 Adjust.
585
270a173c
AD
5862001-11-01 Akim Demaille <akim@epita.fr>
587
588 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
589 Check that `9foo.y' produces correct cpp guards.
590 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
591 guards.
592 Reported by Wwp.
593
561f9a30
AD
5942001-11-01 Akim Demaille <akim@epita.fr>
595
596 * tests/regression.at (Invalid input: 2): New.
597 * src/lex.c (unlexed_token_buffer): New.
598 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
599 too.
600 Reported by Wwp.
601
f987e9d2
AD
6022001-11-01 Akim Demaille <akim@epita.fr>
603
604 * tests/calc.at: Catch up with 1.30.
605 * configure.in: Bump to 1.49a.
606 Adjust to newer Autotest.
607
0846f581
PB
6082001-10-19 Pascal Bart <pascal.bart@epita.fr>
609
610 * src/conflicts.c: Move global variables rrc_total and src_total ...
611 (print_conflicts): here.
612 * src/output.c (output): Free global variable user_toknums.
613 * src/lex.c (token_obstack): Become static.
614
3c1a79b3
AD
6152001-10-18 Akim Demaille <akim@epita.fr>
616
617 * tests/atlocal.in (GCC): Add.
618 * tests/calc.at: s/m4_match/m4_bmatch/.
619 s/m4_patsubst/m4_bpatsubst/.
620 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
621 * configure.in: AC_SUBST(GCC).
622
5d52e7d0
MA
6232001-10-14 Marc Autret <autret_m@epita.fr>
624
625 * src/options.c (create_long_option_table): Fix.
626
631aa1d3
AD
6272001-10-10 Akim Demaille <akim@epita.fr>
628
629 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
630
f6ec6d13
AD
6312001-10-04 Akim Demaille <akim@epita.fr>
632
633 * src/reader.c (parse_union_decl): Push the caracters in
634 union_obstack, not attrs_obstack.
635
342b8b6e
AD
6362001-10-04 Akim Demaille <akim@epita.fr>
637
638 Merge in the branch 1.29.
639
640 * src/reader.c (packsymbols): Use a temporary obstack for
641 `%%tokendef', since output_stack is already used elsewhere.
642
643 2001-10-02 Akim Demaille <akim@epita.fr>
644
645 Bump 1.29d.
646
647 2001-10-02 Akim Demaille <akim@epita.fr>
648
649 Version 1.29c.
650
651 2001-10-02 Akim Demaille <akim@epita.fr>
652
653 * tests/regression.at (Invalid CPP headers): New.
654 From Alexander Belopolsky.
655 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
656
657 2001-10-02 Akim Demaille <akim@epita.fr>
658
659 * tests/regression.at (Invalid input): New.
660 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
661 Reported by Shura.
662
663 2001-10-02 Akim Demaille <akim@epita.fr>
664
665 * tests/calc.at: Now that --debug works, the tests must be adjusted.
666
667 2001-10-02 Akim Demaille <akim@epita.fr>
668
669 * src/output.c (output_parser): Assert `skeleton'.
670 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
671 systems.
672 From Shura.
673
674 2001-10-01 Marc Autret <autret_m@epita.fr>
675
676 * src/lex.h: Echo modifications.
677 * src/lex.c (unlex): Parameter is now token_t.
678 From Hans Aberg.
679
680 2001-10-01 Marc Autret <autret_m@epita.fr>
681
682 * src/main.c: Include lex.h.
683 From Hans Aberg.
684
685 2001-09-29 Akim Demaille <akim@epita.fr>
686
687 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
688
689 2001-09-28 Akim Demaille <akim@epita.fr>
690
691 * tests/testsuite.at: Update to newer Autotest.
692 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
693
694 2001-09-27 Akim Demaille <akim@epita.fr>
695
696 Position independent wrapper.
697
698 * tests/bison: Remove.
699 * tests/bison.in: New.
700 * configure.in: Adjust.
701
702 2001-09-27 Paul Eggert <eggert@twinsun.com>
703
704 Port quotearg fixes from tar 1.13.24.
705
706 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
707 tm to be declared.
708 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
709 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
710
711 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
712 * m4/mbrtowc.m4: New file.
713 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
714 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
715
716 2001-09-27 Akim Demaille <akim@epita.fr>
717
718 Bump to 1.29c.
719
720 2001-09-27 Akim Demaille <akim@epita.fr>
721
722 Version 1.29b.
723
724 2001-09-25 Akim Demaille <akim@epita.fr>
725
726 * src/system.h: Include `xalloc.h'.
727 Remove it from the C files.
728 * src/files.c (output_files): Free the obstacks.
729 * src/lex.c (init_lex): Rename as...
730 (lex_init): this.
731 (lex_free): New.
732 * src/main.c (main): Use it.
733
734 2001-09-24 Marc Autret <autret_m@epita.fr>
735
736 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
737 to output informations in fout (FILE*).
738 (open_graph, close_graph): Likewise.
739 (output_graph, output_edge, output_node): Likewise.
740 * src/vcg.h: Update function prototypes.
741 * src/print_graph.c (print_graph): Open output graph file.
742 (print_actions): Adjust.
743 * src/files.h: Remove extern declaration.
744 * src/files.c: Remove graph_obstack declaration.
745 (open_files): Remove graph_obstack initialization.
746 (output_files): Remove graph_obstack saving.
747
748 2001-09-24 Marc Autret <autret_m@epita.fr>
749
750 * src/files.c (compute_output_file_names): Fix.
751
752 2001-09-24 Marc Autret <autret_m@epita.fr>,
753 Akim Demaille <akim@epita.fr>
754
755 * src/reader.c (reader): Remove call to free_symtab ().
756 * src/main.c (main): Call it here.
757 Include symtab.h.
758 * src/conflicts.c (initialize_conflicts): Rename as...
759 (solve_conflicts): this.
760 * src/print.c (print_core, print_actions, print_state)
761 (print_grammar): Dump to a file instead a `output_obstack'.
762 (print_results): Dump `output_obstack', and then proceed with the
763 FILE *.
764 * src/files.c (compute_output_file_names, close_files): New.
765 (output_files): Adjust.
766 * src/main.c (main): Adjust.
767
768 2001-09-23 Marc Autret <autret_m@epita.fr>
769
770 * src/files.c (compute_header_macro): Computes header macro name
771 from spec_defines_file when given.
772
773 2001-09-23 Marc Autret <autret_m@epita.fr>
774
775 * src/files.c (output_files): Add default extensions.
776
777 2001-09-22 Akim Demaille <akim@epita.fr>
778
779 * src/conflicts.c (finalize_conflicts): Rename as...
780 (free_conflicts): this.
781
782 2001-09-22 Akim Demaille <akim@epita.fr>
783
784 * src/gram.c (gram_free): Rename back as...
785 (dummy): this.
786 (output_token_translations): Free `token_translations'.
787 * src/symtab.c (free_symtab): Free the tag field.
788
789 2001-09-22 Akim Demaille <akim@epita.fr>
790
791 Remove `translations' as it is always set to true.
792
793 * src/gram.h: Adjust.
794 * src/reader.c (packsymbols, parse_token_decl): Adjust
795 * src/print.c (print_grammar): Adjust.
796 * src/output.c (output_token_translations): Adjust.
797 * src/lex.c (lex): Adjust.
798 * src/gram.c: Be sure the set pointers to NULL.
799 (dummy): Rename as...
800 (gram_free): this.
801
802 2001-09-22 Akim Demaille <akim@epita.fr>
803
804 * configure.in: Invoke AM_LIB_DMALLOC.
805 * src/system.h: Use dmalloc.
806 * src/LR0.c: Be sure to have pointers initialized to NULL.
807 (allocate_itemsets): Allocate kernel_items only if needed.
808
809 2001-09-22 Akim Demaille <akim@epita.fr>
810
811 * configure.in: Bump to 1.29b.
812 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
813 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
814 need xmalloc.c in calc.y.
815 From Pascal Bart.
816
817 2001-09-21 Akim Demaille <akim@epita.fr>
818
819 Version 1.29a.
820 * Makefile.maint, config/config.guess, config/config.sub,
821 * config/missing: Update from masters.
822 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
823 upon package.m4.
824 * configure.in (ALL_LINGUAS): Add `tr'.
825
826 2001-09-21 Akim Demaille <akim@epita.fr>
827
828 * tests/Makefile.am (package.m4): Move to...
829 ($(srcdir)/$(TESTSUITE)): here.
830
831 2001-09-20 Akim Demaille <akim@epita.fr>
832
833 * src/complain.c: No longer try to be standalone: use system.h.
834 Don't assume __STDC__ is defined to 1. Just test if it is defined.
835 * src/complain.h: Likewise.
836 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
837 Remove the unused variable `n'.
838 From Albert Chin-A-Young.
839
840 2001-09-18 Marc Autret <autret_m@epita.fr>
841
842 * doc/bison.1: Update.
843 * doc/bison.texinfo (Bison Options): Update --defines and --graph
844 descriptions.
845 (Option Cross Key): Update.
846 Add --graph.
847
848 2001-09-18 Marc Autret <autret_m@epita.fr>
849
850 * tests/regression.at: New test (comment in %union).
851
852 2001-09-18 Marc Autret <autret_m@epita.fr>
853
854 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
855 do that.
856 Reported by Keith Browne.
857
858 2001-09-18 Marc Autret <autret_m@epita.fr>
859
860 * tests/output.at: Add tests for --defines and --graph.
861
862 2001-09-18 Marc Autret <autret_m@epita.fr>
863
864 * tests/output.at: Removes tests of %{header,src}_extension features.
865
866 2001-09-18 Akim Demaille <akim@epita.fr>
867
868 * tests/Makefile.am (package.m4): New.
869 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
870 (_AT_CHECK_CALC_ERROR): Likewise.
871 Factor the `, ' part of verbose error messages.
872
873 2001-09-18 Marc Autret <autret_m@epita.fr>
874
875 * src/getargs.c (longopts): Declare --defines and --graph as options
876 with optional arguments.
877 * src/files.h: Add extern declarations.
878 * src/files.c (spec_graph_file, spec_defines_file): New.
879 (output_files): Update.
880 Remove CPP-outed code.
881
882 2001-09-18 Marc Autret <autret_m@epita.fr>
883
884 Turn off %{source,header}_extension feature.
885
886 * src/files.c (compute_exts_from_gf): Update.
887 (compute_exts_from_src): Update.
888 (output_files): CPP-out useless code.
889 * src/files.h: Remove {header,source}_extension extern declarations.
890 * src/reader.c (parse_dquoted_param): CPP-out.
891 (parse_header_extension_decl): Remove.
892 (parse_source_extension_decl): Remove.
893 (read_declarations): Remove cases tok_{hdrext,srcext}.
894 * src/lex.c (percent_table): Remove {header,source}_extension entries.
895 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
896
897 2001-09-10 Akim Demaille <akim@epita.fr>
898
899 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
900 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
901 (AT_CHECK_OUTPUT): this.
902 Merely check ls' exit status, its output is useless.
903
904 2001-09-10 Akim Demaille <akim@epita.fr>
905
906 * tests/calc.at: Use m4_match.
907 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
908
909 2001-09-10 Marc Autret <autret_m@epita.fr>,
910 Akim Demaille <akim@epita.fr>
911
912 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
913 enum color_e.
914 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
915 to `normal'.
916 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
917 * src/lex.h: Adjust prototype.
918 (token_t): Add `tok_undef'.
919 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
920 (parse_percent_token): Now returns token_t.
921 Add default statement in switch.
922 (lex): Separate `c' as an input variable, from the token_t result
923 part.
924 (unlexed): Is a token_t.
925
926 2001-09-10 Akim Demaille <akim@epita.fr>
927
928 * configure.in: Bump to 1.29a.
929
930 2001-09-07 Akim Demaille <akim@epita.fr>
931
932 Version 1.29.
933
934 2001-08-30 Akim Demaille <akim@epita.fr>
935
936 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
937 * m4/atconfig.m4: Remove.
938 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
939 * tests/bison: New.
940 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
941 m4_if, m4_patsubst, and m4_regexp.
942 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
943 `input' file instead of echo.
944
945 2001-08-29 Akim Demaille <akim@epita.fr>
946
947 Bump to 1.28e.
948
949 2001-08-29 Akim Demaille <akim@epita.fr>
950
951 Version 1.28d.
952
953 2001-08-29 Paul Eggert <eggert@twinsun.com>
954
955 * src/bison.simple (yyparse): Don't take the address of an
956 item before the start of an array, as that doesn't conform to
957 the C Standard.
958
959 2001-08-29 Robert Anisko <anisko_r@epita.fr>
960
961 * doc/bison.texinfo (Location Tracking Calc): New node.
962
963 2001-08-29 Paul Eggert <eggert@twinsun.com>
964
965 * src/output.c (output): Do not define const, as this now
966 causes more problems than it cures.
967
968 2001-08-29 Akim Demaille <akim@epita.fr>
969
970 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
971 the nodes.
972 Be sure to tag the `detailmenu'.
973
974 2001-08-29 Akim Demaille <akim@epita.fr>
975
976 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
977 download in a tmp dir.
978
979 2001-08-28 Marc Autret <autret_m@epita.fr>
980
981 * config/depcomp: New file.
982
983 2001-08-28 Marc Autret <autret_m@epita.fr>
984
985 * doc/bison.1 (mandoc): Adjust.
986 From Juan Manuel Guerrero.
987
988 2001-08-28 Marc Autret <autret_m@epita.fr>
989
990 * src/print_graph.c (print_state): Fix.
991
992 2001-08-27 Marc Autret <autret_m@epita.fr>
993
994 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
995 char * members.
996 Echo modifications to the functions prototypes.
997 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
998
999 2001-08-27 Marc Autret <autret_m@epita.fr>
1000
1001 * src/vcg.c: Include `xalloc.h'.
1002 (add_colorentry): New.
1003 (add_classname): New.
1004 (add_infoname): New.
1005 * src/vcg.h: Add new prototypes.
1006
1007 2001-08-27 Akim Demaille <akim@epita.fr>
1008
1009 * Makefile.maint: Sync. again with CVS Autoconf.
1010
1011 2001-08-27 Akim Demaille <akim@epita.fr>
1012
1013 * Makefile.maint: Formatting changes.
1014 (po-update, cvs-update, update): New targets.
1015 (AMTAR): Remove.
1016
1017 2001-08-27 Akim Demaille <akim@epita.fr>
1018
1019 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1020 * Makefile.maint: Sync. with CVS Autoconf.
1021
1022 2001-08-27 Marc Autret <autret_m@epita.fr>
1023
1024 * src/vcg.h (struct infoname_s): New.
1025 (struct colorentry_s): New.
1026 (graph_s): New fields {vertical,horizontal}_order in structure.
1027 Add `infoname' field.
1028 Add `colorentry' field;
1029 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1030 (G_HORIZONTAL_ORDER): New.
1031 (G_INFONAME): New.
1032 (G_COLORENTRY): New.
1033 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1034 Add output of `infoname'.
1035 Add output of `colorentry'.
1036
1037 2001-08-27 Marc Autret <autret_m@epita.fr>
1038
1039 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1040 This one shadowed a global parameter.
1041
1042 2001-08-24 Marc Autret <autret_m@epita.fr>
1043
1044 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1045 instead of `unsigned'.
1046 (print_state): Do not call obstack_object_size () in obstack_grow ()
1047 to avoid macro variables shadowing.
1048
1049 2001-08-23 Marc Autret <autret_m@epita.fr>
1050
1051 * src/lex.c (percent_table): Typo: s/naem/name/.
1052 Add graph option.
1053 Normalize new options declarations.
1054
1055 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1056
1057 * tests/suite.at: Exercise %header_extension and %source_extension.
1058
1059 2001-08-16 Marc Autret <autret_m@epita.fr>
1060
1061 * src/reader.c (parse_dquoted_param): New.
1062 (parse_header_extension_decl): Use it.
1063 (parse_source_extension_decl): Likewise.
1064
1065 2001-08-16 Marc Autret <autret_m@epita.fr>
1066
1067 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1068 (get_xxxx_str): Use assert () instead of complain ().
1069 Remove return invokations in default cases.
1070 (get_decision_str): Modify default behaviour. Remove second argument.
1071 Echo modifications on calls.
1072 (output_graph): Fix.
1073
1074 2001-08-16 Marc Autret <autret_m@epita.fr>
1075
1076 * src/getargs.c (usage): Update with ``-g, --graph''.
1077
1078 2001-08-16 Marc Autret <autret_m@epita.fr>
1079
1080 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1081 (Option Cross Key): Likewise.
1082 * doc/bison.1: Update.
1083
1c8c2190
PB
10842001-09-25 Pascal Bart <pascal.bart@epita.fr>
1085
1086 * src/output.c (output_master_parser): Don't finish action_obstack.
1087 (output_parser): Don't care about the muscle action, here.
1088 (prepare): Copy the action_obstack in the action muscle.
1089 (output): Free action_obstack.
1090
180d45ba
PB
10912001-09-23 Pascal Bart <pascal.bart@epita.fr>
1092
1093 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1094 will contain `%union' declaration.
1095 (parse_union_decl): Delete #line directive output.
1096 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1097 informations about %union.
1098 (parse_union_decl): Copy the union_obstack in the muscle stype.
1099 * src/bison.simple: Add new #line directive.
1100 Add typdef %%stype YYSTYPE.
1101
c51d1a19
PB
11022001-09-23 Pascal Bart <pascal.bart@epita.fr>
1103
1104 * src/bison.simple: Add new `#line' directive.
1105
6f9344da
PB
11062001-09-22 Pascal Bart <pascal.bart@epita.fr>
1107
1108 * src/bison.simple: New `#line' directive.
1109 * src/output.c (output_parser): Support new dynamic muscle input_line.
1110
652def80
MA
11112001-09-22 Marc Autret <autret_m@epita.fr>
1112
1113 * src/output.c (output_master_parser): New.
1114 (output_parser): Be more re-entrant.
1115
25b222fa
MA
11162001-09-21 Marc Autret <autret_m@epita.fr>
1117
1118 * src/reader.c (copy_definition, parse_union_decl): Update and use
1119 `linef' muscle.
1120 (copy_action): Likewise.
1121 Use obstack_1grow ().
1122 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1123
6bc35ae5
MA
11242001-09-21 Marc Autret <autret_m@epita.fr>
1125
1126 * src/options.c (option_table): Adjust.
1127 * src/lex.c (parse_percent_token): Fix.
1128
c0629aa1
PB
11292001-09-20 Pascal Bart <pascal.bart@epita.fr>
1130
1131 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 1132
82b6d266
PB
11332001-09-20 Pascal Bart <pascal.bart@epita.fr>
1134
1135 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1136 is now an option_table_struct*.
1137 (option_strcmp): New function option_strcmp.
1138 (parse_percent_token): Call option_strcmp.
1139 * src/getargs.c (xalloc.h, options.h): Include it.
1140 (getargs): Call create_long_option_table.
1141 (getargs): Free longopts at the end of the function.
1142 (shortopts): Move in options.c.
1143 * src/options.c (create_long_option_table): New function. Convert
1144 information from option_table to option structure.
1145 * src/reader.c (options.h): Include it.
1146
1147 * src/Makefile.am: Adjust.
1148 * src/options.c (option_table): Create from longopts and percent_table.
1149 * src/getargs.c (longopts): Delete.
1150 * src/lex.c (struct percent_table_struct): Delete.
1151 (percent_table): Delete.
1152 (options.h): Include it.
1153 * src/options.c: Create.
1154 * src/options.h: Create.
1155 Declare enum opt_access_e.
1156 Define struct option_table_struct.
1157
75f5aaea
MA
11582001-09-20 Marc Autret <autret_m@epita.fr>
1159
1160 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1161 sections of Bison.
1162
f508cb0a
PB
11632001-09-19 Pascal Bart <pascal.bart@epita.fr>
1164
1165 * src/bison.simple: s/%%filename/%%skeleton.
1166 * src/muscle_tab.c (getargs.h): Include it.
1167 (muscle_init): Insert new muscle skeleton.
1168
13105fc1
PB
11692001-09-18 Pascal Bart <pascal.bart@epita.fr>
1170
1171 * src/output.c (output_parser): Delete unused variable actions_dumped.
1172
b0c4483e
PB
11732001-09-07 Pascal Bart <pascal.bart@epita.fr>
1174
1175 * src/output.c (output): Delete call to reader_output_yylsp.
1176 * src/reader.c (reader): Likewise.
1177 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 1178
11d82f03
MA
11792001-09-02 Marc Autret <autret_m@epita.fr>
1180
1181 * src/reader.c: Include muscle_tab.h.
1182 (parse_union_decl): Update.
1183 (parse_macro_decl): Rename parse_muscle_decl.
1184 Update to use renamed functions and variable.
1185 (read_declarations, copy_action, read_additionnal_code, : Updated
1186 with correct variables and functions names.
1187 (packsymbols, reader): Likewise.
342b8b6e 1188
11d82f03 1189 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 1190
11d82f03
MA
1191 * src/output.c: Include muscle_tab.h
1192 In all functions using macro_insert, change by using muscle_insert ().
1193 (macro_obstack): Rename muscle_obstack.
1194 Echo modifications in the whole file.
1195 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1196 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1197 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1198
1199 * src/muscle_tab.h: Update double inclusion macros.
1200 (macro_entry_s): Rename muscle_entry_s.
1201 Update prototypes.
342b8b6e 1202
11d82f03
MA
1203 * src/muscle_tab.c: Include muscle_tab.h.
1204 Rename macro_tabble to muscle_table.
1205 (mhash1, mhash2, mcmp): Use muscle_entry.
1206 (macro_init): Rename muscle_init. Update.
1207 (macro_insert): Rename muscle_insert. Update.
1208 (macro_find): Rename muscle_find. Update.
1209
1210 * src/main.c: Include muscle_tab.h.
1211 (main): Call muscle_init ().
1212 * src/Makefile.am (bison_SOURCES): Echo modifications.
1213
93a37297
MA
12142001-09-02 Marc Autret <autret_m@epita.fr>
1215
f753cd62 1216 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 1217
f753cd62
MA
1218 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1219
12202001-09-02 Marc Autret <autret_m@epita.fr>
1221
1222 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 1223
682d48cd
PB
12242001-09-01 Pascal Bart <pascal.bart@epita.fr>
1225
342b8b6e 1226 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
1227 filename.
1228
087c8fda
MA
12292001-09-01 Marc Autret <autret_m@epita.fr>
1230
1231 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1232 to an explicit value to activate the feature. We do it here.
1233
dda680cb
PB
12342001-08-31 Pascal Bart <pascal.bart@epita.fr>
1235
1236 * src/output.c (prepare): Delete the `filename' muscule insertion.
1237 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1238 (parse_union_decl): Likewise.
1239 * src/macrotab.c (macro_init): Initialize filename by infile.
1240
9e644e64
MA
12412001-08-31 Marc Autret <autret_m@epita.fr>
1242
1243 * src/bison.simple (YYLSP_NEEDED): New definition.
1244 * src/output.c (prepare): Add macro insertion of `locations_flag'
1245
17da6427
PB
12462001-08-31 Pascal Bart <pascal.bart@epita.fr>
1247
1248 * src/output.c (prepare): Delete insertion of previous muscles,
1249 and insert the `prefix' muscles.
1250 * src/macrotab.c (macro_init): Likewise.
1251 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 1252 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
1253 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1254 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 1255 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
1256 name_prefix.
1257
e8cb70b9
PB
12582001-08-31 Pascal Bart <pascal.bart@epita.fr>
1259
1260 * src/main.c (main): Standardize.
1261 * src/output.c (output_table_data, output_parser): Likewise.
1262 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1263
63c2d5de
MA
12642001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1265
342b8b6e 1266 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
1267 %%epilogue.
1268 * src/output.c (output): Rename %%declarations to %%prologue.
1269 * src/bison.simple: Echo modifications.
342b8b6e 1270
d8cb5183
MA
12712001-08-31 Marc Autret <autret_m@epita.fr>
1272
1273 * src/reader.c (readgram): CleanUp.
1274 (output_token_defines): Likewise.
1275 (packsymbols): Likewise.
1276 (reader): Likewise.
1277 * src/output.c (output): CPP-out useless code.
1278
6c686258
PB
12792001-08-31 Pascal Bart <pascal.bart@epita.fr>
1280
342b8b6e 1281 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
1282 output_trailers and output_headers.
1283 * src/output.h: Remove obsolete functions prototypes of output_headers
1284 and output_trailers.
1285
8f451ef7
PB
12862001-08-30 Pascal Bart <pascal.bart@epita.fr>
1287
1288 * src/main.c: Include macrotab.h.
342b8b6e 1289 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
1290 Adjust functions prototypes.
1291 * src/macrotab.c (macro_insert): Constify key and value.
1292 (macro_find): Constify key.
1293 (macro_insert): Include 'xalloc.h'
1294 (macro_insert): Use XMALLOC.
1295 (macro_find): Constify return value.
1296 * src/output.c (output_table_data): Rename table to table_data.
1297 (output_parser): Constify macro_key, macro_value.
1298
997b6fd0 12992001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
1300
1301 * src/reader.c (parse_skel_decl): New.
342b8b6e 1302 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
1303 * src/lex.h (token_t): New token `tok_skel'.
1304 * src/lex.c (percent_table): Add skeleton option entry.
1305 Standardize.
1306
ff48177d
MA
13072001-08-29 Marc Autret <autret_m@epita.fr>
1308
1309 * src/bison.simple: Add %%user_code directive at the end.
1310 * src/reader.c (read_additionnal_code): New.
1311 (reader): Use it.
1312 * src/output.c (output_program): Remove.
1313 (output): Update.
1314
b33160bf
MA
13152001-08-28 Marc Autret <autret_m@epita.fr>
1316
1317 * src/output.c (output_actions): Clean up.
4e5caae2 1318 (output_gram): CPP-out useless code.
b33160bf
MA
1319 * src/reader.c (reader): Clean up, CPP-out useless code.
1320
d1a2daf7
PB
13212001-08-28 Pascal Bart <pascal.bart@epita.fr>
1322
342b8b6e 1323 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 1324 directive.
d1a2daf7
PB
1325 * src/bison.simple: Add `%%definitions'.
1326
2b763dfe
MA
13272001-08-28 Marc Autret <autret_m@epita.fr>
1328
1329 * config/depcomp: New file.
1330
f1a87ef6
PE
13312001-08-27 Paul Eggert <eggert@twinsun.com>
1332
1333 * src/bison.simple (yyparse): Don't take the address of an
1334 item before the start of an array, as that doesn't conform to
1335 the C Standard.
1336
82e236e2
RA
13372001-08-27 Robert Anisko <robert.anisko@epita.fr>
1338
f1a87ef6 1339 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
1340 obstack. It was done too late here.
1341
1342 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1343 completely wrong.
1344 (reader): Initialize the macro obstack here, since we need it to grow
1345 '%define' directives.
1346
1347 * src/reader.h: Declare the macro obstack as extern.
1348
b0cfa28a
RA
13492001-08-27 Robert Anisko <robert.anisko@epita.fr>
1350
1351 * src/output.c (output_parser): Fix. Store single '%' characters in
1352 the output obstack instead of throwing them away.
1353
6fc74234
AD
13542001-08-27 Akim Demaille <akim@epita.fr>
1355
1356 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1357
9c76d118
RA
13582001-08-25 Robert Anisko <robert.anisko@epita.fr>
1359
1360 * lib/Makefile.am: Adjust.
1361
a8289c62
RA
13622001-08-25 Robert Anisko <robert.anisko@epita.fr>
1363
1364 * src/bison.simple: Update and add '%%' directives.
1365
b6610515
RA
13662001-08-25 Robert Anisko <robert.anisko@epita.fr>
1367
1368 * src/reader.c (reader): Remove calls to 'output_headers' and
1369 'output_trailers'. Remove some C output.
1370 (readgram): Disable a piece of code that was writing a default
1371 definition for 'YYSTYPE'.
1372 (reader_output_yylsp): Remove.
1373 (packsymbols): Output token defintions to a macro.
1374 (copy_definition): Disable C output.
6fc74234 1375
b6610515
RA
1376 * src/reader.c (parse_macro_decl): New function used to parse macro
1377 declarations.
1378 (copy_string2): Put the body of copy_string into this new function.
1379 Add a parameter to let the caller choose whether he wants to copy the
1380 string delimiters or not.
1381 (copy_string): Be a simple call to copy_string2 with the last argument
1382 bound to true.
1383 (read_declarations): Add case for macro definition.
1384 (copy_identifier): New.
6fc74234 1385 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
1386 rather than lex.
1387
26f609ff
RA
13882001-08-25 Robert Anisko <robert.anisko@epita.fr>
1389
1390 * src/output.c (prepare): Add prefixed names.
1391 (output_parser): Output semantic actions.
1392 (output_parser): Fix bug on '%%line' directives.
6fc74234 1393
26f609ff
RA
1394 * src/output.c (output_headers): Remove. The C code printed by this
1395 function should now be in the skeletons.
1396 (output_trailers): Remove.
1397 (output): Disable call to 'reader_output_yylsp'.
1398 (output_rule_data): Do not output tables to the table obstack.
1399
1400 * src/output.c: Remove some C dedicated output.
1401 Improve the use of macro and output obstacks.
1402 (output_defines): Remove.
6fc74234 1403
26f609ff
RA
1404 * src/output.c (output_token_translations): Associate 'translate'
1405 table with a macro. No output to the table obstack.
1406 (output_gram): Same for 'rhs' and 'prhs'.
1407 (output_stos): Same for 'stos'.
1408 (output_rule_data): Same for 'r1' and 'r2'.
1409 (token_actions): Same for 'defact'.
1410 (goto_actions): Same for 'defgoto'.
1411 (output_base): Same for 'pact' and 'pgoto'.
1412 (output_table): Same for 'table'.
1413 (output_check): Same for 'check'.
6fc74234 1414
26f609ff
RA
1415 * src/output.c (output_table_data): New function.
1416 (output_short_table): Remove.
1417 (output_short_or_char_table): Remove.
6fc74234 1418
26f609ff
RA
1419 * src/output.c (output_parser): Replace most of the skeleton copy code
1420 with something new. Skeletons are now processed character by character
1421 rather than line by line, and Bison looks for '%%' macros. This is the
1422 first step in making Bison's output process (a lot) more flexible.
1423 (output_parser): Use the macro table.
1424
6f43b113
RA
14252001-08-25 Robert Anisko <robert.anisko@epita.fr>
1426
1427 * src/main.c (main): Initialize the macro table.
1428
dd3127cf
RA
14292001-08-25 Robert Anisko <robert.anisko@epita.fr>
1430
1431 * src/lex.c (percent_table): Add tok_define.
1432 * src/lex.h: Add tok_define.
1433
aa321494
RA
14342001-08-25 Robert Anisko <robert.anisko@epita.fr>
1435
1436 * src/macrotab.c: New file.
1437 * src/macrotab.h: New file.
1438 * src/Makefile.am: Update.
1439
68bd3b6b
RA
14402001-08-25 Robert Anisko <robert.anisko@epita.fr>
1441
1442 * lib/hash.c: New file.
1443 * lib/hash.h: New file.
1444 * lib/Makefile.am: Update.
1445
45f8dd1e
AD
14462001-08-15 Akim Demaille <akim@epita.fr>
1447
1448 Version 1.28c.
1449
40a64a7a 14502001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
1451
1452 * src/reader.c (readgram): Indent output macro YYSTYPE.
1453 (packsymbols): Likewise.
1454 (output_token_defines): Likewise.
1455 * src/files.c: Standardize.
1456 (compute_header_macro): New.
1457 (defines_obstack_save): New. Use compute_header_macro.
1458 (output_files): Update. Use defines_obstack_save.
1459
f9a8293a
AD
14602001-08-15 Akim Demaille <akim@epita.fr>
1461
1462 * doc/bison.texinfo (Table of Symbols): Document
1463 YYSTACK_USE_ALLOCA.
1464
150ca7a7
AD
14652001-08-15 Akim Demaille <akim@epita.fr>
1466
1467 * missing: Update from CVS Automake.
1468 * config/config.guess, config/config.sub, config/texinfo.tex:
1469 Update from gnu.org.
1470
69b5cec4
AD
14712001-08-15 Akim Demaille <akim@epita.fr>
1472
1473 * Makefile.maint: Sync with CVS Autoconf.
1474
f2b5126e
PB
14752001-08-14 Pascal Bart <pascal.bart@epita.fr>
1476
69b5cec4 1477 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
1478 `fdl.texi'.
1479 * doc/fdl.texi: Add to package.
1480
4ecbf796
MA
14812001-08-14 Marc Autret <autret_m@epita.fr>
1482
1483 Turn on %{source,header}_extension features.
1484
69b5cec4 1485 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
1486 source_extension.
1487 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 1488 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
1489 between options.
1490
95fb5662
MA
14912001-08-14 Marc Autret <autret_m@epita.fr>
1492
1493 * src/files.c (compute_base_names): Add extensions computing when
1494 `--file-prefix' used.
1495 Standardize function calls.
1496
78d09da9
MA
14972001-08-13 Marc Autret <autret_m@epita.fr>
1498
69b5cec4 1499 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
1500 defining it (defined but null disables alloca).
1501
5a009f2c
MA
15022001-08-13 Marc Autret <autret_m@epita.fr>
1503
1504 * src/bison.simple (_yy_memcpy): CPP reformat.
1505
1e41465a
PB
15062001-08-13 Pascal Bart <pascal.bart@epita.fr>
1507
1508 * tests/atconfig.in (CPPFLAGS): Fix.
1509
c67a198d
PB
15102001-08-10 Pascal Bart <pascal.bart@epita.fr>
1511
79282c6c 1512 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
1513 `gpl.texi'.
1514 * doc/gpl.texi: Add to package.
1515
09a6de7e
MA
15162001-08-10 Marc Autret <autret_m@epita.fr>
1517
1518 * src/print_graph.h: Fix.
1519 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1520
b77b9ee0
AD
15212001-08-10 Akim Demaille <akim@epita.fr>
1522
1523 * src/system.h: Provide default declarations for stpcpy, strndup,
1524 and strnlen.
1525
3e259915
MA
15262001-08-10 Robert Anisko <anisko_r@epita.fr>
1527
1528 * doc/bison.texinfo (Locations): Update @$ stuff.
1529
ca96bc2d
MA
15302001-08-09 Robert Anisko <anisko_r@epita.fr>
1531
1532 * src/bison.simple (YYLLOC_DEFAULT): Update.
1533 (yyparse): Adjust.
1534
fdc6758b
MA
15352001-08-08 Marc Autret <autret_m@epita.fr>
1536
b77b9ee0 1537 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1538 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1539 Reported by Fabrice Bauzac.
957d4dbf 1540
600cad3b
MA
15412001-08-08 Marc Autret <autret_m@epita.fr>
1542
1543 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1544 * src/vcg.c (output_node): Fix.
1545 * src/vcg.h: Cleanup.
1546 * src/print_graph.c: Add comments.
b77b9ee0 1547 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1548 the VCG graph output.
b77b9ee0 1549 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1550 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1551 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1552 blue.
1553 Get the current node name and node_obstack by argument.
1554 (node_obstack): New variable.
1555 (print_state): Manage node_obstack.
1556 (print_core): Use node_obstack given by argument.
1557 A node is not only computed here but in print_actions also.
1558 (print_graph): CPP out useless code instead of commenting it.
1559
976e528f
AD
15602001-08-07 Pascal Bart <pascal.bart@epita.fr>
1561
1562 * tests/atconfig.in (CPPFLAGS): Fix.
1563
20e8e5ca
AD
15642001-08-07 Akim Demaille <akim@epita.fr>
1565
1566 * src/print_graph.c (quote): New.
1567 (print_core): Use it.
1568
957d4dbf 15692001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1570
3e3da797
AD
1571 * src/vcg.c (complain.h): Include it.
1572 Unepitaize `return' invocations.
c4b66126 1573 [NDEBUG] (main): Remove.
79282c6c 1574 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1575 * src/files.c (open_files): Initialize graph_obstack.
1576 * src/print_graph.c (print_actions): CPP out useless code.
1577 (print_core): Don't output the last `\n' in labels.
1578 Use `quote'.
1579 * src/files.c (output_files): Output the VCG file.
1580 * src/main.c (main): Invoke print_graph ();
3e3da797 1581
957d4dbf 15822001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1583
1584 Automaton VCG graph output.
1585 Using option ``-g'' or long option ``--graph'', you can generate
1586 a gram_filename.vcg file containing a VCG description of the LALR (1)
1587 automaton of your grammar.
1588
1589 * src/main.c: Call to print_graph() function.
1590 * src/getargs.h: Update.
1591 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1592 (graph_flag): New flag.
1593 (longopts): Update.
1594 (getargs): Add case `g'.
1595 * src/files.c (graph_obstack): New obstack struct.
1596 (open_files): Initialize new obstack.
1597 (output_files): Saves graph_obstack if required.
1598 * src/files.h (graph_obstack): New extern declaration.
1599 * src/Makefile.am: Add new source files.
1600
957d4dbf 16012001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1602
1603 * src/print_graph.c, src/print_graph.h (graph): New.
1604 * src/vcg.h: New file.
1605 * src/vcg.c: New file, VCG graph handling.
1606
7333d403
AD
16072001-08-06 Marc Autret <autret_m@epita.fr>
1608
1609 Add of %source_extension and %header_extension which specify
1610 the source or/and the header output file extension.
1611
1612 * src/files.c (compute_base_names): Remove initialisation of
1613 src_extension and header_extension.
1614 (compute_exts_from_gf): Update.
1615 (compute_exts_from_src): Update.
1616 (output_files): Update.
1617 * src/reader.c (parse_header_extension_decl): New.
1618 (parse_source_extension_decl): New.
1619 (read_declarations): New case statements for the new tokens.
1620 * src/lex.c (percent_table): Add entries for %source_extension
1621 and %header_extension.
1622 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1623
84163231
AD
16242001-08-06 Marc Autret <autret_m@epita.fr>
1625
1626 * configure.in: Bump to 1.28c.
1627 * doc/bison.texinfo: Texinfo thingies.
1628
8303fc42
AD
16292001-08-04 Pascal Bart <pascal.bart@epita.fr>
1630
1631 * tests/atconfig.in (CPPFLAGS): Add.
1632 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1633
70a84437
AD
16342001-08-03 Akim Demaille <akim@epita.fr>
1635
1636 Version 1.28b.
1637
2ce10144
AD
16382001-08-03 Akim Demaille <akim@epita.fr>
1639
1640 * tests/Makefile.am (check-local): Ship testsuite.
1641 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1642 Include `string.h'.
1643
1e3e4bc1
AD
16442001-08-03 Akim Demaille <akim@epita.fr>
1645
1646 * configure.in: Try using -Wformat when compiling.
1647
42b45b7f
AD
16482001-08-03 Akim Demaille <akim@epita.fr>
1649
1650 * configure.in: Bump to 1.28b.
1651
8f13fe33
AD
16522001-08-03 Akim Demaille <akim@epita.fr>
1653
1654 * src/complain.c: Adjust strerror_r portability issues.
1655
b37ba92c
AD
16562001-08-03 Akim Demaille <akim@epita.fr>
1657
1658 Version 1.28a.
1659
b0ce6046
AD
16602001-08-03 Akim Demaille <akim@epita.fr>
1661
1662 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1663 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1664 * src/getargs.c: Include complain.h.
1665 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1666 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1667
d01c415b
AD
16682001-08-03 Akim Demaille <akim@epita.fr>
1669
1670 * src/reader.c (readgram): Display hidden chars in error messages.
1671
459dd1a6
AD
16722001-08-03 Akim Demaille <akim@epita.fr>
1673
1674 Update to gettext 0.10.39.
1675
53b74c0c
AD
16762001-08-03 Akim Demaille <akim@epita.fr>
1677
1678 * lib/strspn.c: New.
1679
234a3be3
AD
16802001-08-01 Marc Autret <autret_m@epita.fr>
1681
1682 * doc/bison.texinfo: Update.
1683 * doc/bison.1 (mandoc): Update.
1684 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1685 * src/files.c: Support output files extensions computing.
1686 (src_extension): New static variable.
1687 (header_extension): New static variable.
1688 (tr): New function.
1689 (get_extension_index): New function, gets the index of an extension
1690 filename in a string.
1691 (compute_exts_from_gf): New function, computes extensions from the
1692 grammar file extension.
1693 (compute_exts_from_src): New functions, computes extensions from the
1694 C source file extension, file given by ``-o'' option.
1695 (compute_base_names): Update.
1696 (output_files): Update.
1697
847bf1f5
AD
16982001-08-01 Robert Anisko <anisko_r@epita.fr>
1699
d995fee7 1700 * doc/bison.texi: Document @$.
847bf1f5
AD
1701 (Locations): New section.
1702
d074a105
AD
17032001-07-18 Akim Demaille <akim@epita.fr>
1704
1705 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1706 * config/prev-version.txt, config/move-if-change: New.
1707 * Makefile.am: Adjust.
1708
3419715d
AD
17092001-07-08 Pascal Bart <pascal.bart@epita.fr>
1710
1711 * src/bison.simple (yyparse): Suppress warning `comparaison
1712 between signed and unsigned'.
1713
62ab6972
AD
17142001-07-05 Pascal Bart <pascal.bart@epita.fr>
1715
1716 * src/getargs.h (raw_flag): Remove.
1717 * src/getargs.c: Die on `-r'/`--raw'.
1718 * src/lex.c (parse_percent_token): Die on `%raw'.
1719 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1720 * tests/calc.at: Suppress test with option `--raw'.
1721
1e24cc5b
AD
17222001-07-14 Akim Demaille <akim@epita.fr>
1723
1724 * config/: New.
1725 * configure.in: Require Autoconf 2.50.
1726 Update to gettext 0.10.38.
1727
32dfccf8
AD
17282001-03-16 Akim Demaille <akim@epita.fr>
1729
1730 * doc/bison.texinfo: ANSIfy the examples.
1731
cd5bd6ac
AD
17322001-03-16 Akim Demaille <akim@epita.fr>
1733
1734 * getargs.c (skeleton): New variable.
1735 (longopts): --skeleton is a new option.
1736 (shortopts, getargs): -S is a new option.
1737 * getargs.h: Declare skeleton.
1738 * output.c (output_parser): Use it.
1739
5141b016
AD
17402001-03-16 Akim Demaille <akim@epita.fr>
1741
1742 * m4/strerror_r.m4: New.
1743 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1744 * lib/error.h, lib/error.c: Update.
1745
447992b9
AD
17462001-03-16 Akim Demaille <akim@epita.fr>
1747
1748 * src/getargs.c (longopts): Clean up.
1749
274d42ce
AD
17502001-02-21 Akim Demaille <akim@epita.fr>
1751
1752 * src/reader.c (gensym): `gensym_count' is your own.
1753 Use a static buf to create the symbol name, as token_buffer is no
1754 longer a buffer.
1755
22c821f3
AD
17562001-02-08 Akim Demaille <akim@epita.fr>
1757
1758 * src/conflicts.c (conflict_report): Be sure not to append to res
1759 between two calls, which could happen if both first sprintf were
1760 skipped, but not the first cp += strlen.
1761
18569462
AD
17622001-02-08 Akim Demaille <akim@epita.fr>
1763
1764 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1765 New, from fileutils 4.0.37.
1766 * configure.in: Require Autoconf 2.49c. I took some time before
1767 making this decision. This is the only way out for portability
1768 issues in Bison, it would mean way too much duplicate effort to
1769 import in Bison features implemented in 2.49c since 2.13.
1770 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1771
0d8f3c8a
AD
17722001-02-02 Akim Demaille <akim@epita.fr>
1773
1774 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 1775 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 1776
f17bcd1f
AD
17772001-01-19 Akim Demaille <akim@epita.fr>
1778
1779 Get rid of the ad hoc handling of token_buffer in the scanner: use
1780 the obstacks.
1781
1782 * src/lex.c (token_obstack): New.
1783 (init_lex): Initialize it. No longer call...
1784 (grow_token_buffer): this. Remove it.
1785 Adjust all the places which used it to use the obstack.
1786
511e79b3
AD
17872001-01-19 Akim Demaille <akim@epita.fr>
1788
1789 * src/lex.h: Rename all the tokens:
1790 s/\bENDFILE\b/tok_eof/g;
1791 s/\bIDENTIFIER\b/tok_identifier/g;
1792 etc.
1793 Let them be enums, not #define, to ease debugging.
1794 Adjust all the code.
1795
0d6508ef
AD
17962001-01-18 Akim Demaille <akim@epita.fr>
1797
1798 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1799 * src/lex.c (maxtoken, grow_token_buffer): Static.
1800
6deb4447
AD
18012001-01-18 Akim Demaille <akim@epita.fr>
1802
1803 Since we now use obstacks, more % directives can be enabled.
1804
1805 * src/lex.c (percent_table): Also accept `%yacc',
1806 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1807 `%debug'.
1808 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1809 instead of returning a token.
1810 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1811 * src/reader.c (read_declarations): Adjust.
1812 * src/files.c (open_files): Don't call `compute_base_names', don't
1813 compute `attrsfile' since they depend upon data which might be
1814 *in* the input file now.
1815 (output_files): Do it here.
1816 * src/output.c (output_headers): Document the fact that this patch
1817 introduces a guaranteed SEGV for semantic parsers.
1818 * doc/bison.texinfo: Document them.
1819 * tests/suite.at: Exercise these %options.
1820
ff4423cc
AD
18212000-12-20 Akim Demaille <akim@epita.fr>
1822
1823 Also handle the output file (--verbose) with obstacks.
1824
1825 * files.c (foutput): Remove.
1826 (output_obstack): New.
1827 Adjust all dependencies.
1828 * src/conflicts.c: Return a string.
1829 * src/system.h (obstack_grow_string): Rename as...
1830 (obstack_sgrow): this. Be ready to work with non literals.
1831 (obstack_fgrow4): New.
1832
956dba3a
AD
18332000-12-20 Akim Demaille <akim@epita.fr>
1834
1835 * src/files.c (open_files): Fix the computation of short_base_name
1836 in the case of `-o foo.tab.c'.
1837
337bab46
AD
18382000-12-20 Akim Demaille <akim@epita.fr>
1839
1840 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1841 (copy_dollar): Now that everything uses obstacks, get rid of the
1842 FILE * parameters.
1843
5d3214b8
AD
18442000-12-20 Akim Demaille <akim@epita.fr>
1845
1846 * src/files.c (open_files): Actually the `.output' file is based
1847 on the short_base_name, not base_name.
1848 * tests/suite.at (Checking output file names): Adjust.
1849
29092a57
AD
18502000-12-20 Akim Demaille <akim@epita.fr>
1851
1852 * src/bison.s1: Remove, we now use directly...
1853 * src/bison.simple: this.
1854 * src/Makefile.am: Use pkgdata instead of data.
1855
ea5607fd
AD
18562000-12-20 Akim Demaille <akim@epita.fr>
1857
1858 * src/files.c (guard_obstack): New.
1859 (open_files): Initialize it.
1860 (output_files): Dump it...
1861 * src/files.h: Export it.
1862 * src/reader.c (copy_guard): Use it.
1863
27110317
AD
18642000-12-19 Akim Demaille <akim@epita.fr>
1865
1866 * src/files.c (outfile, defsfile, actfile): Removed as global
1867 vars.
1868 (open_files): Don't compute them.
1869 (output_files): Adjust.
1870 (base_name, short_base_name): Be global.
1871 Adjust dependencies.
1872
19c50364
AD
18732000-12-19 Akim Demaille <akim@epita.fr>
1874
1875 * src/files.c (strsuffix): New.
1876 (stringappend): Be just like strcat but allocate.
1877 (base_names): Eve out from open_files.
1878 Try to simplify the rather hairy computation of base_name and
1879 short_base_name.
1880 (open_files): Use it.
1881 * tests/suite.at (Checking output file names): New test.
1882
573c1d9f
AD
18832000-12-19 Akim Demaille <akim@epita.fr>
1884
1885 * src/system.h (obstack_grow_literal_string): Rename as...
1886 (obstack_grow_string): this.
1887 * src/output.c (output_parser): Recognize `%% actions' instead of
1888 `$'.
1889 * src/bison.s1: s/$/%% actions/.
1890 * src/bison.hairy: Likewise.
1891
ef7ddedd
AD
18922000-12-19 Akim Demaille <akim@epita.fr>
1893
1894 * src/output.c (output_parser): Compute the `#line' lines when
1895 there are.
1896 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1897 Suggested by Hans Aberg.
1898
ff61dabd
AD
18992000-12-19 Akim Demaille <akim@epita.fr>
1900
1901 Let the handling of the skeleton files be local to the procedures
1902 that use it.
1903
1904 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1905 longer static.
1906 (fparser, open_extra_files): Remove.
1907 (open_files, output_files): Don't take care of fparser.
1908 * src/files.h: Adjust.
1909 * src/output.c (output_parser): Open and close the file to the
1910 skeleton.
1911 * src/reader.c (read_declarations): When %semantic_parser, open
1912 fguard.
1913
55b96341
AD
19142000-12-19 Akim Demaille <akim@epita.fr>
1915
1916 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1917 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1918
358c15b7
AD
19192000-12-19 Akim Demaille <akim@epita.fr>
1920
1921 * src/files.c (open_files): Yipee! We no longer need all the code
1922 looking for `/tmp' since we have no tmp file.
1923
7de3329e
AD
19242000-12-19 Akim Demaille <akim@epita.fr>
1925
1926 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1927 New macros.
1928 * src/files.c (open_files): Less dependency on MSDOS etc.
1929
3abcd459
AD
19302000-12-14 Akim Demaille <akim@epita.fr>
1931
1932 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1933 Provide a default definition.
1934 Use it when executing the default @ action.
1935 * src/reader.c (reader_output_yylsp): No longer include
1936 `timestamp' and `text' in the default YYLTYPE.
1937
2a91a95e
AD
19382000-12-12 Akim Demaille <akim@epita.fr>
1939
1940 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1941 (copy_guard): Quote the file names.
1942 Reported by Laurent Mascherpa.
1943
14d3eb9b
AD
19442000-12-12 Akim Demaille <akim@epita.fr>
1945
1946 * src/output.c (output_headers, output_program, output): Be sure
1947 to escape special characters when outputting filenames.
1948 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1949 (output_headers): Don't depend on them, Use ACTSTR.
1950
d7045ec6
AD
19512000-11-17 Akim Demaille <akim@epita.fr>
1952
1953 * lib/obstack.h: Formatting changes.
1954 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1955 prevents type checking.
1956 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1957 cast the value to (void *): assigning a `foo *' to a `void *'
1958 variable is valid.
1959 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1960 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1961 append characters.
1962
6fd54b73
AD
19632000-11-17 Akim Demaille <akim@epita.fr>
1964
1965 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1966 as...
1967 (suite.m4, regression.m4, calc.m4): these.
1968 * tests/atgeneral.m4: Update from CVS Autoconf.
1969
4c50eae6
AD
19702000-11-17 Akim Demaille <akim@epita.fr>
1971
1972 * tests/regression.m4 (%union and --defines): New test,
1973 demonstrating a current bug in the obstack implementation.
1974
a35f64ea
AD
19752000-11-17 Akim Demaille <akim@epita.fr>
1976
1977 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1978 macros.
1979 Use them to declare the variables which are global or local to
1980 `yyparse'.
1981
7de23534
AD
19822000-11-17 Akim Demaille <akim@epita.fr>
1983
1984 * acconfig.h: Remove, no longer used.
1985
aa7815f5
AD
19862000-11-07 Akim Demaille <akim@epita.fr>
1987
1988 * src: s/Copyright (C)/Copyright/g.
1989
5af1f549
AD
19902000-11-07 Akim Demaille <akim@epita.fr>
1991
1992 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1993 defining.
1994 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1995
553e2b22
AD
19962000-11-07 Akim Demaille <akim@epita.fr>
1997
1998 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1999 Merge in a single CPP if/else.
2000
8a4f41d6
AD
20012000-11-07 Akim Demaille <akim@epita.fr>
2002
2003 * src/output.c (output): Remove useless variables.
2004 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2005 argument `data' for consistency with the prototypes.
2006 Qualify it `const'.
2007 (obstack_copy, obstack_copy0): Rename the second argument as
2008 `address' for consistency. Qualify it `const'.
2009 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2010 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2011 `const' their input argument (`data' or `address').
2012 Adjust the corresponding macros to include `const' in casts.
2013
095a3fb5
AD
20142000-11-03 Akim Demaille <akim@epita.fr>
2015
2016 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2017 s/PFILE1/BISON_HAIRY/.
2018 Adjust dependencies.
2019
d1cdce7c
AD
20202000-11-03 Akim Demaille <akim@epita.fr>
2021
090c5ebf 2022 For some reason, this was not applied.
d1cdce7c
AD
2023
2024 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2025 `unlink': it's no longer used.
2026
9311529b
AD
20272000-11-03 Akim Demaille <akim@epita.fr>
2028
2029 * src/files.c (skeleton_find): New function, eved out of...
2030 (open_files, open_extra_files): here.
2031
d8880f69
AD
20322000-11-03 Akim Demaille <akim@epita.fr>
2033
2034 Don't use `atexit'.
2035
2036 * src/files.c (obstack_save): New function.
2037 (done): Rename as...
2038 (output_files): this.
2039 Use `obstack_save'.
2040 * src/main.c (main): Don't use `atexit' to register `done', since
2041 it no longer has to remove tmp files, just call `output_files'
2042 when there are no errors.
2043
0dbb648e
AD
20442000-11-02 Akim Demaille <akim@epita.fr>
2045
2046 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2047 `unlink': it's no longer used.
2048 * src/files.h: Formatting changes.
2049
896fe5c1
AD
20502000-11-02 Akim Demaille <akim@epita.fr>
2051
2052 Remove the last uses of mktemp and unlink/delete.
2053
2054 * src/files.c (fdefines, ftable): Removed.
2055 (defines_ostack, table_obstack): New.
2056 Adjust dependencies of the former into uses of the latter.
2057 * src/output.c (output_short_or_char_table, output_short_table):
2058 Convert to using obstacks.
2059 * src/reader.c (copy_comment2): Accept one FILE * and two
2060 obstacks.
2061 (output_token_defines, reader_output_yylsp): Use obstacks.
2062 * src/system.h (obstack_fgrow3): New.
2063
dd60faec
AD
20642000-11-01 Akim Demaille <akim@epita.fr>
2065
2066 Change each use of `fattrs' into a use of `attrs_obstack'.
2067
2068 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2069 * src/files.c (fattrs): Remove.
2070 (attrs_obstack): New.
2071 Adjust all dependencies.
2072 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2073
8c7ebe49
AD
20742000-11-01 Akim Demaille <akim@epita.fr>
2075
2076 Introduce obstacks.
2077 Change each use of `faction' into a use of `action_obstack'.
2078
2079 * lib/obstack.h, lib/obstack.c: New files.
2080 * src/files.c (faction): Remove.
2081 (action_obstack): New.
2082 Adjust all dependencies.
2083
77aee789
AD
20842000-10-20 Akim Demaille <akim@epita.fr>
2085
2086 * lib/quote.h (PARAMS): New macro. Use it.
2087
43591cec
AD
20882000-10-16 Akim Demaille <akim@epita.fr>
2089
2090 * src/output.c (output_short_or_char_table): New function.
2091 (output_short_table, output_token_translations): Use it.
2092 (goto_actions): Use output_short_table.
2093
1e9798d5
AD
20942000-10-16 Akim Demaille <akim@epita.fr>
2095
2096 * src/symtab.c (bucket_new): New function.
2097 (getsym): Use it.
2098
2099 * src/output.c (output_short_table): New argument to display the
2100 comment associated with the table.
2101 Adjust dependencies.
2102 (output_gram): Use it.
2103 (output_rule_data): Nicer output layout for YYTNAME.
2104
f282676b
AD
21052000-10-16 Akim Demaille <akim@epita.fr>
2106
2107 * src/lex.c (read_typename): New function.
2108 (lex): Use it.
2109 * src/reader.c (copy_dollar): Likewise.
2110
550a72a3
AD
21112000-10-16 Akim Demaille <akim@epita.fr>
2112
2113 * src/reader.c (copy_comment2): Expect the input stream to be on
2114 the `/' which is suspected to open a comment, instead of being
2115 called after `//' or `/*' was read.
2116 (copy_comment, copy_definition, parse_union_decl, copy_action)
2117 (copy_guard): Adjust.
2118
131e2fef
AD
21192000-10-16 Akim Demaille <akim@epita.fr>
2120
2121 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2122 `read_signed_integer'.
2123
79282c5a
AD
21242000-10-16 Akim Demaille <akim@epita.fr>
2125
2126 * src/reader.c (copy_dollar): New function.
2127 (copy_guard, copy_action): Use it.
2128
ff4a34be
AD
21292000-10-16 Akim Demaille <akim@epita.fr>
2130
2131 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2132 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2133 New files, from Fileutils 4.0.27.
2134 * src/main.c (printable_version): Remove.
2135 * src/lex.c, src/reader.c: Use `quote'.
2136
21372000-10-04 Akim Demaille <akim@epita.fr>
2138
2139 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2140
14ded682
AD
21412000-10-04 Akim Demaille <akim@epita.fr>
2142
2143 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2144
8e03724b
AD
21452000-10-04 Akim Demaille <akim@epita.fr>
2146
2147 When a literal string is used to define two different tokens,
2148 `bison -v' segfaults.
2149 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2150
2151 * tests/regression.m4: New file.
2152 Include the core of the sample provided by Piotr Gackiewicz.
2153 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2154 properly.
2155
a9e64249
AD
21562000-10-04 Akim Demaille <akim@epita.fr>
2157
2158 * src/reader.c (parse_expect_decl): Keep `count' within the size
2159 of `buffer'.
2160 From Neil Booth.
2161
da9abf43
AD
21622000-10-02 Paul Eggert <eggert@twinsun.com>
2163
2164 * bison.s1 (yyparse): Assign the default value
2165 unconditionally, to avoid a GCC warning and make the parser a
2166 tad smaller.
2167
c33638bb
AD
21682000-10-02 Akim Demaille <akim@epita.fr>
2169
2170 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2171 options.
2172
444c570a
AD
21732000-10-02 Akim Demaille <akim@epita.fr>
2174
2175 * src/derives.c, src/print.c, src/reduce.c: To ease the
2176 translation, move some `\n' out of the translated strings.
2177
89cab50d
AD
21782000-10-02 Akim Demaille <akim@epita.fr>
2179
2180 The location tracking mechanism is precious for parse error
2181 messages. Nevertheless, it is enabled only when `@n' is used in
2182 the grammar, which is a different issue (you can use it in error
2183 message, but not in the grammar per se). Therefore, there should
2184 be another means to enable it.
2185
2186 * src/getargs.c (getargs): Support `--locations'.
2187 (usage): Report it.
2188 * src/getargs.h (locationsflag): Export it.
2189 * src/lex.c (percent_table): Support `%locations'.
2190 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2191 with `locationsflag'.
2192 * doc/bison.texinfo: Document `--locations' and `%locations'.
2193 Sort the options.
2194 * tests/calc.m4: Test it.
2195
2196 For regularity of the names, replace each
2197 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2198 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2199 In addition replace each `flag' with `_flag'.
2200
d6c2cba0
AD
22012000-10-02 Akim Demaille <akim@epita.fr>
2202
2203 Also test parse error messages, including with YYERROR_VERBOSE.
2204
2205 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2206 associative).
2207 Use it to check the computations.
2208 Use it to check `nonassoc' is honored.
2209 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2210 `--yyerror-verbose'.
2211 (_AT_CHECK_CALC): Adjust to this option.
2212 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2213
5a35a6cb
AD
22142000-10-02 Akim Demaille <akim@epita.fr>
2215
2216 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2217 the latter demonstrates a flaw in the handling of non debugging
2218 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2219 was used in order to simplify:
2220
2221 #if YYDEBUG
2222 if (yydebug)
2223 {
2224 ...
2225 }
2226 #endif
2227
2228 into
2229
2230 if (yydebug)
2231 {
2232 ...
2233 }
2234
2235 unfortunately this leads to a CPP conflict when
2236 `--name-prefix=foo' is used since it produces `#define yydebug
2237 foodebug'.
2238
2239 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2240 (YYDPRINTF): New macro.
2241 Spread its use.
2242 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2243 the bison options.
2244 Also test `--verbose', `--defines' and `--name-prefix'.
2245
71da9eea
AD
22462000-10-02 Akim Demaille <akim@epita.fr>
2247
2248 Improve the readability of the produced parsers.
2249
2250 * src/bison.s1: Formatting changes.
2251 Improve the comment related to the `$' mark.
2252 (yydefault): Don't fall through to `yyresume': `goto' there.
2253 * src/output.c (output_parser): When the `$' is met, skip the end
2254 of its line.
2255 New variable, `number_of_dollar_signs', to check there's exactly
2256 one `$' in the parser skeleton.
2257
95e36146
AD
22582000-10-02 Akim Demaille <akim@epita.fr>
2259
2260 * lib/xstrdup.c: New file, from the fileutils.
2261 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2262 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2263 instead of strlen + xmalloc + strcpy.
2264 * src/symtab.c (copys): Remove, use xstrdup instead.
2265
d7020c20
AD
22662000-10-02 Akim Demaille <akim@epita.fr>
2267
2268 * src/gram.h (associativity): New enum type which replaces the
2269 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2270 `right_assoc', `left_assoc' and `non_assoc'.
2271 Adjust all dependencies.
2272 * src/reader.c: Formatting changes.
2273 (LTYPESTR): Don't define it, use it as a literal in
2274 `reader_output_yylsp'.
2275 * src/symtab.h (symbol_class): New enum type which replaces the
2276 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2277 `sunknown', `stoken and `snterm'.
2278
1916f98e
AD
22792000-10-02 Akim Demaille <akim@epita.fr>
2280
2281 * src/getargs.c (fixed_outfiles): Rename as...
2282 (yaccflag): for consistency and accuracy.
2283 Adjust dependencies.
2284
d7913476
AD
22852000-10-02 Akim Demaille <akim@epita.fr>
2286
2287 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2288 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2289 difficult and introduced a lot of core dump. It turns out that
2290 Bison used an implementation of `xmalloc' based on `calloc', and
2291 at various places it does depend upon the initialization to 0. I
2292 have not tried to isolate the pertinent places, and all the former
2293 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2294 someone should address this issue.
2295
2296 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2297 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2298 files.
2299 Adjust dependencies.
2300 * src/warshall.h: New file.
2301 Propagate.
2302
340ef489
AD
23032000-10-02 Akim Demaille <akim@epita.fr>
2304
2305 Various anti-`extern in *.c' changes.
2306
2307 * src/system.h: Include `assert.h'.
2308
b2ca4022
AD
23092000-10-02 Akim Demaille <akim@epita.fr>
2310
2311 * src/state.h (nstates, final_state, first_state, first_shift)
2312 (first_reduction): Move their exportation from here...
2313 * src/LR0.h: to here.
2314 Adjust dependencies.
2315 * src/getargs.c (statisticsflag): New variable.
2316 Add support for `--statistics'.
2317 Adjust dependencies.
2318
2319 Remove a lot of now useless `extern' statements in most files.
2320
403b315b
AD
23212000-10-02 Akim Demaille <akim@epita.fr>
2322
2323 * src/LR0.h: New file.
2324 Propagate its use.
2325
07a58c13
AD
23262000-10-02 Akim Demaille <akim@epita.fr>
2327
2328 * src/print.h: New file.
2329 Propagate its use.
2330 * src/print.c: Formatting and ordering changes.
2331 (verbose, terse): Replace with...
2332 (print_results): this new function.
2333 Adjust dependencies.
2334
0619caf0
AD
23352000-10-02 Akim Demaille <akim@epita.fr>
2336
2337 * src/conflicts.c (conflict_report): New function.
2338 (conflict_log, verbose_conflict_log): Replace with...
2339 (print_conflicts): this function.
2340 Adjust dependencies.
2341 * src/conflicts.h: New file.
2342 Propagate its inclusion.
2343
3519ec76
AD
23442000-10-02 Akim Demaille <akim@epita.fr>
2345
2346 * src/nullable.h: New file.
2347 Propagate its inclusion.
2348 * src/nullable.c: Formatting changes.
2349
015acc48
AD
23502000-10-02 Akim Demaille <akim@epita.fr>
2351
2352 * src/reduce.h: New file.
2353 Propagate its inclusion.
2354 * src/reduce.c: Topological sort and other formatting changes.
2355 (bool, TRUE, FALSE): Move their definition to...
2356 * src/system.h: here.
2357
8963a27b
AD
23582000-10-02 Akim Demaille <akim@epita.fr>
2359
2360 * src/files.c: Formatting changes.
2361 (tryopen, tryclose, openfiles): Rename as...
2362 (xfopen, xfclose, open_files): this.
2363 (stringappend): static.
2364 * src/files.h: Complete the list of exported symbols.
2365 Propagate its use.
2366
a70083a3
AD
23672000-10-02 Akim Demaille <akim@epita.fr>
2368
2369 * src/reader.h: New file.
2370 Propagate its use instead of tedious list of `extern' and
2371 prototypes.
2372 * src/reader.c: Formatting changes, topological sort,
2373 s/register//.
2374
abadc117
AD
23752000-10-02 Akim Demaille <akim@epita.fr>
2376
2377 * src/lex.h: Prototype `lex.c' exported functions.
2378 * src/reader.c: Adjust.
2379 * src/lex.c: Formatting changes.
2380 (safegetc): Rename as...
2381 (xgetc): this.
2382
720d742f
AD
23832000-10-02 Akim Demaille <akim@epita.fr>
2384
2385 * src/lalr.h: New file.
2386 Propagate its inclusion instead of prototypes and `extern'.
2387 * src/lalr.c: Formatting changes, topological sorting etc.
2388
f2acea59
AD
23892000-10-02 Akim Demaille <akim@epita.fr>
2390
2391 * src/output.c (token_actions): Introduce a temporary array,
2392 YYDEFACT, that makes it possible for this function to use
2393 output_short_table.
2394
d019d655
AD
23952000-10-02 Akim Demaille <akim@epita.fr>
2396
2397 `user_toknums' is output as a `short[]' in `output.c', while it is
2398 defined as a `int[]' in `reader.c'. For consistency with the
2399 other output tables, `user_toknums' is now defined as a table of
2400 shorts.
2401
2402 * src/reader.c (user_toknums): Be a short table instead of an int
2403 table.
2404 Adjust dependencies.
2405
2406 Factor the short table outputs.
2407
2408 * src/output.c (output_short_table): New function.
2409 * src/output.c (output_gram, output_stos, output_rule_data)
2410 (output_base, output_table, output_check): Use it.
2411
6c89f1c1
AD
24122000-10-02 Akim Demaille <akim@epita.fr>
2413
2414 * src/output.c (output): Topological sort of the functions, in
2415 order to get rid of the `static' prototypes.
2416 No longer use `register'.
2417 * src/output.h: New file.
2418 Propagate its inclusion in files explicitly prototyping functions
2419 from output.c.
2420
d9efd181
AD
24212000-09-21 Akim Demaille <akim@epita.fr>
2422
2423 * src/atgeneral.m4: Update from Autoconf.
2424
c29240e7 24252000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
2426
2427 * src/closure.h: New file.
2428 * src/closure.c: Formatting changes, topological sort over the
2429 functions, use of closure.h.
2430 (initialize_closure, finalize_closure): Rename as...
2431 (new_closure, free_closure): these. Adjust dependencies.
2432 * src/LR0.c: Formatting changes, topological sort, use of
2433 cloture.h.
2434 (initialize_states): Rename as...
2435 (new_states): this.
2436 * src/Makefile.am (noinst_HEADERS): Adjust.
2437
499daa50
AD
24382000-09-20 Akim Demaille <akim@epita.fr>
2439
2440 * src/acconfig.h: Don't protect config.h against multiple
2441 inclusion.
2442 Don't define PARAMS.
2443 * src/system.h: Define PARAMS.
2444 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2445 purpose of config.h. system.h must not try to fix wrong
2446 definitions in config.h.
2447
cc84fd5d
AD
24482000-09-20 Akim Demaille <akim@epita.fr>
2449
2450 * src/derives.h: New file.
2451 * src/main.c, src/derives.h: Use it.
2452 Formatting changes.
2453 * src/Makefile.am (noinst_HEADERS): Adjust.
2454
db5b3a89
AD
24552000-09-20 Akim Demaille <akim@epita.fr>
2456
2457 * tests/atgeneral.m4: Update from Autoconf.
2458 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2459 (AT_CHECK_CALC): New macros.
2460 Use these macros to test bison with options `', `--raw',
2461 `--debug', `--yacc', `--yacc --debug'.
2462
ceed8467
AD
24632000-09-19 Akim Demaille <akim@epita.fr>
2464
2465 * src/output.c: Formatting changes.
2466 * src/machine.h: Remove, leaving its contents in...
2467 * src/system.h: here.
2468 Include stdio.h.
2469 Adjust all dependencies on stdio.h and machine.h.
2470 * src/getargs.h: New file.
2471 Let all `extern' declarations about getargs.c be replaced with
2472 inclusion of `getargs.h'.
2473 * src/Makefile.am (noinst_HEADERS): Adjust.
2474
2475 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2476 scope.
2477 (yyerror): Returns void, not int.
2478 * doc/bison.texinfo: Formatting changes.
2479
05a1d24b
AD
24802000-09-19 Akim Demaille <akim@epita.fr>
2481
2482 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2483 portable.
2484
cbd25751
AD
24852000-09-18 Akim Demaille <akim@epita.fr>
2486
2487 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2488 * src/Makefile.am (INCLUDES): Don't.
2489 Be ready to fetch headers in lib/.
2490
13863333
AD
24912000-09-18 Akim Demaille <akim@epita.fr>
2492
2493 * doc/bison.texinfo: Update the copyright.
2494 ANSIfy and GNUify the examples.
2495 Remove the old menu.
2496
0d533154
AD
24972000-09-18 Akim Demaille <akim@epita.fr>
2498
2499 First set of tests: use the `calc' example from the documentation.
2500
2501 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2502 is defined only when YYDEBUG is.
2503 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2504 * src/files.c (tryopen, tryclose): Formatting changes.
2505 Move to the top and be static.
2506 * src/reader.c (read_signed_integer): Likewise.
2507 * tests/calc.m4: New file.
2508 * Makefile.am, suite.m4: Adjust.
2509 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2510
e79137ac
AD
25112000-09-18 Akim Demaille <akim@epita.fr>
2512
2513 Add support for an Autotest test suite for Bison.
2514
2515 * m4/m4.m4, m4/atconfig.m4: New files.
2516 * m4/Makefile.am (EXTRA_DIST): Adjust.
2517 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2518 files.
2519 * src/getargs.c: Display a more standard --version message.
2520 * src/reader.c (reader): Formatting changes.
2521 No longer depend upon VERSION_STRING.
2522 * configure.in: No longer use `dnl'.
2523 Set up the test suite and the new directory `tests/.
2524 (VERSION_STRING): Remove.
2525
27821bff
AD
25262000-04-14 Akim Demaille <akim@epita.fr>
2527
2528 * src/reader.c (copy_comment2): New function, same as former
2529 `copy_comment', but outputs into two FILE *.
2530 (copy_comment): Use it.
2531 (parse_union_decl): Use it.
2532 (get_type, parse_start_decl): Use the same `invalid' message.
2533 (parse_start_decl, parse_union_decl): Use the same `multiple'
2534 message.
2535 (parse_union_decl, copy_guard, copy_action): Use the same
2536 `unmatched' message.
2537 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2538
cfe5fbc0
AD
25392000-03-31 Akim Demaille <akim@epita.fr>
2540
2541 * src/files.c (tryopen, tryclose): Move to the top.
2542 Be static.
2543
cb7db13e
AD
25442000-03-31 Akim Demaille <akim@epita.fr>
2545
2546 * src/main.c (main): Don't call `done', exit does it.
2547
a0f6b076
AD
25482000-03-31 Akim Demaille <akim@epita.fr>
2549
36281465
AD
2550 * allocate.c: s/return (foo)/return foo/.
2551 * lalr.c: Likewise.
2552 * LR0.c: Likewise.
2553 * output.c: Likewise.
2554 * reader.c: Likewise.
2555 * symtab.c: Likewise.
2556 * vmsgetargs.c: Likewise.
2557
25582000-03-31 Akim Demaille <akim@epita.fr>
2559
2560 Clean up the error reporting functions.
a0f6b076
AD
2561
2562 * src/report.c: New file.
2563 * src/report.h: Likewise.
2564 * src/Makefile.am: Adjust.
2565 * m4/error.m4: New file.
2566 * m4/Makefile.am: Adjust.
2567 * configure.in (jm_PREREQ_ERROR): Call it.
2568 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2569 Remove.
2570 (fatal, fatals): Remove. All callers use complain.c::fatal.
2571 (warn, warni, warns, warnss, warnss): Remove. All callers use
2572 complain.c::complain.
2573 (toomany): Remove, use fatal instead.
2574 * src/files.c (done): No argument, use complain_message_count.
2575 * src/main.c (main): Register `done' to `atexit'.
2576
2577 * src/getargs.c (usage): More `fputs', less `fprintf'.
2578
18539825
AD
25792000-03-28 Akim Demaille <akim@epita.fr>
2580
2581 * lib/: New directory.
2582 * Makefile.am (SUBDIRS): Adjust.
2583 * configure.in: Adjust.
2584 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2585 useless.
2586 * src/alloca.c: Moved to lib/.
2587 * src/getopt.c: Likewise.
2588 * src/getopt1.c: Likewise.
2589 * src/getopt.h: Likewise.
2590 * src/ansi2knr.c: Likewise.
2591 * src/ansi2knr.1: Likewise.
2592 * src/Makefile.am: Adjust.
2593 * lib/Makefile.am: New file.
2594
9f306f2a
AD
25952000-03-28 Akim Demaille <akim@epita.fr>
2596
2597 * src/getargs.c (usage): Refresh the help message.
2598
0ba347b6
AD
25992000-03-17 Akim Demaille <akim@epita.fr>
2600
2601 * src/getopt1.c: Updated from textutils 2.0e
2602 * src/getopt.c: Likewise.
2603 * src/getopt.h: Likewise.
2604
dbe7f271
AD
26052000-03-17 Akim Demaille <akim@epita.fr>
2606
2607 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2608 the file name, not the whole `#line LINE FILE'.
2609
75bbe78d
AD
26102000-03-17 Akim Demaille <akim@epita.fr>
2611
2612 On syntax errors, report the token on which we choked.
2613
aa5fd0ee
AD
2614 * src/bison.s1 (yyparse): In the label yyerrlab, when
2615 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2616
7b306f52
AD
26172000-03-17 Akim Demaille <akim@epita.fr>
2618
aa5fd0ee 2619 * src/reader.c (copy_at): New function.
7b306f52
AD
2620 (copy_guard): Use it.
2621 (copy_action): Use it.
2622
e87b5700
AD
26232000-03-17 Akim Demaille <akim@epita.fr>
2624
2625 Be kind to translators, save some useless translations.
2626
aa5fd0ee 2627 * src/main.c (banner): New function.
e87b5700
AD
2628 (fatal_banner): Use it.
2629 (warn_banner): Use it.
2630
ae3c3164
AD
26312000-03-17 Akim Demaille <akim@epita.fr>
2632
aa5fd0ee
AD
2633 * src/reader.c (copy_definition): Use copy_string and
2634 copy_comment. Removed now unused `match', `ended',
2635 `cplus_comment'.
ae3c3164
AD
2636 (copy_comment, copy_string): Moved, to be visible from
2637 copy_definition.
2638
4dc58e7c
AD
26392000-03-17 Akim Demaille <akim@epita.fr>
2640
aa5fd0ee
AD
2641 * src/reader.c (copy_string): Declare `static inline'. No
2642 problems with inline, since it is checked by configure.
4dc58e7c
AD
2643 (copy_comment): Likewise.
2644
0a6384c4
AD
26452000-03-17 Akim Demaille <akim@epita.fr>
2646
aa5fd0ee 2647 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2648
3cef001a
AD
26492000-03-17 Akim Demaille <akim@epita.fr>
2650
aa5fd0ee 2651 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2652 (copy_action): Use it. Removed now unused `match', `ended',
2653 `cplus_comment'.
2654 (copy_guard): Likewise.
2655
ca36d2ef
AD
26562000-03-17 Akim Demaille <akim@epita.fr>
2657
aa5fd0ee 2658 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2659 (copy_action): Use it.
2660 (copy_guard): Likewise.
2661
6666f98f
AD
26622000-03-17 Akim Demaille <akim@epita.fr>
2663
2664 Change the handling of @s so that they behave exactly like $s.
2665 There is now a pseudo variable @$ (readble and writable), location
2666 of the lhs of the rule (by default ranging from the location of
2667 the first symbol of the rhs, to the location of the last symbol,
2668 or, if the rhs is empty, YYLLOC).
2669
2670 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2671 yyval.
2672 (yyparse): When providing a default semantic action, provide a
2673 default location action.
2674 (after the $): No longer change `*YYLSP', just stack YYLOC the
2675 same way you stack YYVAL.
2676 * src/reader.c (read_declarations): Use warns.
2677 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2678 (copy_action, case '@'): Likewise.
2679 Use a standard error message, to save useless work from
2680 translators.
2681
41aca2e0
AD
26822000-03-17 Akim Demaille <akim@epita.fr>
2683
aa5fd0ee
AD
2684 * src/bison.s1: Formatting and cosmetics changes.
2685 * src/reader.c: Likewise.
41aca2e0
AD
2686 Update the Copyright notice.
2687
dc08c1d5
AD
26882000-03-17 Akim Demaille <akim@epita.fr>
2689
aa5fd0ee
AD
2690 * src/bison.s1 (#line): All set to `#line' only, since the
2691 Makefile now handles them.
dc08c1d5 2692
9ee3c97b
AD
26932000-03-16 Akim Demaille <akim@epita.fr>
2694
2695 * src/output.c (output_rule_data): Output the documentation of
2696 some of the tables.
2697 (Copyright notice): Update.
2698 Formatting changes.
2699
0de741ca
AD
27002000-03-16 Akim Demaille <akim@epita.fr>
2701
2702 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2703 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2704 One `#if YYDEBUG' remains, since it uses variables which are
2705 defined only if `YYDEBUG != 0'.
2706
bb10be54
AD
27072000-03-16 Akim Demaille <akim@epita.fr>
2708
2709 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2710 and related variables so that the similarities are highlighted.
2711
b07b484a
AD
27122000-03-16 Akim Demaille <akim@epita.fr>
2713
2714 * src/bison.s1: Properly indent CPP directives.
2715
361f60b3
AD
27162000-03-16 Akim Demaille <akim@epita.fr>
2717
2718 * src/bison.s1: Properly indent the `alloca' CPP section.
2719
8c44d3ec
AD
27202000-03-16 Akim Demaille <akim@epita.fr>
2721
2722 Do not hard code values of directories in `configure.in'.
2723 Update the `configure' tool chain.
2724
2725 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2726 src/makefile.am.
2727 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2728 (AC_OUTPUT): Add m4/Makefile.
2729 Bump to bison 1.28a, 1.29 has never been released.
2730 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2731 handled via src/Makefile.am.
2732 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2733 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2734 autoheader.
2735 * Makefile.am (SUBDIRS): Add m4.
2736 (ACLOCAL_AM_FLAGS): New variable.
2737 (AUTOMAKE_OPTIONS): Add check-news.
2738 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2739 the proper line number and file name.
2740 (DEFS): Propagate the location of bison library files and of the
2741 locale files.
2742 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2743 builddir.
2744 * acinclude.m4: Remove, replaced by the directory m4.
2745 * m4/Makefile.am (EXTRA_DIST): New variable.
2746 * m4/gettext.m4: New file, from the fileutils.
2747 * m4/lcmessage.m4: Likewise
2748 * m4/progtest.m4: Likewise.
2749 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2750
f95997e7
AD
27512000-03-10 Akim Demaille <akim@epita.fr>
2752
2753 * src/closure.c:
2754 Formatting changes of various comments.
2755 Respect the GNU coding standards at various places.
2756 Don't use `_()' when no translation is needed.
2757
27581999-12-13 Jesse Thilo <jthilo@gnu.org>
2759
2760 * src/files.c:
2761 OS/2 honors TMPDIR environment variable.
2762
27631999-12-13 Jesse Thilo <jthilo@gnu.org>
2764
2765 * doc/bison.texinfo: Tweaked spelling and grammar.
2766 Updated ISBN.
2767 Removed reference to price of printed copy.
2768 Mention BISON_SIMPLE and BISON_HAIRY.
2769
27701999-12-13 Jesse Thilo <jthilo@gnu.org>
2771
2772 * configure.in, NEWS:
2773 Bison 1.29 released.
2774
27751999-10-27 Jesse Thilo <jthilo@gnu.org>
2776
2777 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2778 Added reference card.
2779
27801999-07-26 Jesse Thilo <jthilo@gnu.org>
2781
2782 * po/ru.po: Added Russian translation.
2783
27841999-07-26 Jesse Thilo <jthilo@gnu.org>
2785
2786 * configure.in: Added Russian translation.
2787
27881999-07-06 Jesse Thilo <jthilo@gnu.org>
2789
2790 * configure.in, NEWS, README:
2791 Released version 1.28.
2792
27931999-06-14 Jesse Thilo <jthilo@gnu.org>
2794
2795 * src/system.h:
2796 Squashed redefinition warning on some systems.
2797
2798 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2799 Have configure build version string instead of relying on ANSI string
2800 concatentation.
2801
28021999-06-14 Jesse Thilo <jthilo@gnu.org>
2803
2804 * po/POTFILES.in: Got rid of version.c.
2805
28061999-06-14 Jesse Thilo <jthilo@gnu.org>
2807
2808 * acconfig.h, configure.in:
2809 Have configure build version string instead of relying on ANSI string
2810 concatentation.
2811
28121999-06-08 Jesse Thilo <jthilo@gnu.org>
2813
2814 * doc/bison.1:
2815 Dropped mention of `+' for long-named options.
2816
28171999-05-30 Jesse Thilo <jthilo@gnu.org>
2818
2819 * src/files.c: Added <unistd.h> for unlink().
2820
2821 * src/Makefile.am, src/system.h:
2822 I18n fixes.
2823
28241999-05-30 Jesse Thilo <jthilo@gnu.org>
2825
2826 * README: Added a FAQ list.
2827
2828 * configure.in, acconfig.h:
2829 I18n fixes.
2830
28311999-05-30 Jesse Thilo <jthilo@gnu.org>
2832
2833 * doc/FAQ, doc/Makefile.am:
2834 Added a FAQ list.
2835
28361999-05-19 Jesse Thilo <jthilo@gnu.org>
2837
2838 * src/alloc.h, src/symtab.h, src/version.c:
2839 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2840
28411999-04-18 Jesse Thilo <jthilo@gnu.org>
2842
2843 * src/.cvsignore, src/Makefile.am:
2844 Reorganized: sources in `src', documentation in `doc'.
2845
2846 * src/lex.c (literalchar):
2847 fixed the code for escaping double quotes (thanks
2848 Jonathan Czisny.)
2849
28501999-04-18 Jesse Thilo <jthilo@gnu.org>
2851
2852 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2853 Adjusted paths to reflect directory reorganization.
2854
28551999-04-18 Jesse Thilo <jthilo@gnu.org>
2856
2857 * doc/.cvsignore, doc/Makefile.am:
2858 Reorganized: sources in `src', documentation in `doc'.
2859
28601999-04-18 Jesse Thilo <jthilo@gnu.org>
2861
2862 * configure.in:
2863 Updated AC_INIT file to reflect directory reorganization.
2864
2865 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2866 Reorganized: sources in `src', documentation in `doc'.
2867
28681999-04-13 Jesse Thilo <jthilo@gnu.org>
2869
2870 * src/allocate.c:
2871 Don't declare calloc() and realloc() if not necessary.
2872
28731999-04-13 Jesse Thilo <jthilo@gnu.org>
2874
2875 * configure.in, acconfig.h, acinclude.m4:
2876 Don't declare calloc() and realloc() if not necessary.
2877
28781999-03-23 Jesse Thilo <jthilo@gnu.org>
2879
2880 * po/.cvsignore: Added i18n support.
2881
28821999-03-23 Jesse Thilo <jthilo@gnu.org>
2883
2884 * acconfig.h, configure.in, Makefile.am:
2885 Added i18n support.
2886
28871999-03-22 Jesse Thilo <jthilo@gnu.org>
2888
2889 * src/bison.s1: Fixed #line numbers.
2890
28911999-03-15 Jesse Thilo <jthilo@gnu.org>
2892
2893 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2894 Added PO files from Translation Project.
2895
28961999-03-03 Jesse Thilo <jthilo@gnu.org>
2897
2898 * Makefile.am:
2899 Added support for non-ANSI compilers (ansi2knr).
2900
29011999-02-16 Jesse Thilo <jthilo@gnu.org>
2902
2903 * configure.in: Bumped version number to 1.27.
2904
2905 * Makefile.am:
2906 Added `bison.simple' to list of files removed by `make distclean'.
2907
29081999-02-12 Jesse Thilo <jthilo@gnu.org>
2909
2910 * src/files.c, src/files.h:
2911 Defined locations of parser files in config.h instead of Makefile.
2912
29131999-02-12 Jesse Thilo <jthilo@gnu.org>
2914
2915 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2916 Defined locations of parser files in config.h instead of Makefile.
2917
29181999-02-09 Jesse Thilo <jthilo@gnu.org>
2919
2920 * Makefile.am:
2921 Removed inappropriate use of $< macro.
2922
29231999-02-05 Jesse Thilo <jthilo@gnu.org>
2924
2925 * po/Makefile.in.in, po/POTFILES.in:
2926 Add `po' directory skeleton.
2927
29281999-01-27 Jesse Thilo <jthilo@gnu.org>
2929
2930 * README: Document help-bison list.
2931
2932 * configure.in: Add check for mkstemp().
2933
29341999-01-20 Jesse Thilo <jthilo@gnu.org>
2935
2936 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2937 Hush a few compiler warnings.
2938
2939 * src/files.c:
2940 Add tryclose(), which verifies that fclose was successful.
2941 Hush a couple of compiler warnings.
2942
29431999-01-20 Jesse Thilo <jthilo@gnu.org>
2944
2945 * Makefile.am, OChangeLog:
2946 ChangeLog is now automatically generated. Include the old version as
2947 OChangeLog.
2948
29491999-01-14 Jesse Thilo <jthilo@gnu.org>
2950
2951 * 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:
2952 Update FSF address.
2953
29541999-01-14 Jesse Thilo <jthilo@gnu.org>
2955
2956 * doc/bison.texinfo: Fix formatting glitch.
2957
2958 * doc/bison.texinfo: Update FSF address.
2959
29601999-01-14 Jesse Thilo <jthilo@gnu.org>
2961
2962 * acconfig.h: Update FSF address.
2963
29641999-01-08 Jesse Thilo <jthilo@gnu.org>
2965
2966 * src/system.h:
2967 Don't define PACKAGE here, since config.h defines it.
2968
29691998-12-30 Jesse Thilo <jthilo@gnu.org>
2970
2971 * src/reader.c: Update copyright date.
2972
2973 * src/main.c:
2974 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2975 favor of output directly to stderr (avoids buffer overruns).
2976
2977 * src/reader.c: Some checks for premature EOF.
2978
2979 * 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:
2980 Use prototypes if the compiler understands them.
2981
2982 * src/files.c: Honor TMPDIR on Unix hosts.
2983 Use prototypes if the compiler understands them.
2984
2985 * src/reader.c:
2986 Fix a couple of buffer overrun bugs.
2987 Use prototypes if the compiler understands them.
2988
2989 * src/system.h: Include unistd.h and ctype.h.
2990 Use #ifdef instead of #if for NLS symbols.
2991
29921998-12-30 Jesse Thilo <jthilo@gnu.org>
2993
2994 * doc/bison.texinfo:
2995 Delete comment "consider using @set for edition number, etc..." since
2996 we now are doing so.
2997
29981998-12-30 Jesse Thilo <jthilo@gnu.org>
2999
3000 * configure.in:
3001 Use prototypes if the compiler understands them.
3002
3003 * NEWS: Document 1.26 highlights.
3004
3005 * Makefile.am: Require Automake 1.3 or later.
3006
3007 * acconfig.h:
3008 Use prototypes if the compiler understands them.
3009
30101998-12-29 Jesse Thilo <jthilo@gnu.org>
3011
3012 * src/version.c:
3013 Use VERSION symbol from automake for version number.
3014
30151998-12-29 Jesse Thilo <jthilo@gnu.org>
3016
3017 * acconfig.h, configure.in, version.cin:
3018 Use VERSION symbol from automake for version number.
3019
30201998-11-28 Jesse Thilo <jthilo@gnu.org>
3021
3022 * Makefile.am:
3023 Distribute original version of simple parser (bison.s1), not built
3024 version (bison.simple).
3025
30261998-11-28 Jesse Thilo <jthilo@gnu.org>
3027
3028 * doc/bison.texinfo: Add info dir entry.
3029
3030 * doc/bison.texinfo:
3031 Let automake put version number into documentation.
3032
30331998-11-26 Jesse Thilo <jthilo@gnu.org>
3034
3035 * src/bison.cld, src/build.com, src/vmshlp.mar:
3036 Add non-RCS files from /gd/gnu/bison.
3037
30381998-11-26 Jesse Thilo <jthilo@gnu.org>
3039
3040 * doc/bison.1:
3041 Document the BISON_HAIRY and BISON_SIMPLE variables.
3042
30431998-11-25 Jesse Thilo <jthilo@gnu.org>
3044
3045 * src/version.c: Build version.c automatically.
3046
3047 * src/reader.c:
3048 Fix token numbering (used to start at 258, not 257).
3049
3050 * src/system.h: Include config.h.
3051
3052 * src/getargs.c: Update bug report address.
3053
3054 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3055 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3056
30571998-11-25 Jesse Thilo <jthilo@gnu.org>
3058
3059 * Makefile.am:
3060 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3061
3062 * configure.in, version.cin:
3063 Build version.c automatically.
3064
3065 * AUTHORS: Add AUTHORS file.
3066
3067 * README: Update bug report address.
3068
3069 * bison.simple:
3070 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3071
3072 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3073 Add automake stuff.
3074
30751998-11-25 Jesse Thilo <jthilo@gnu.org>
3076
3077 * doc/bison.texinfo: Clean up some formatting.
3078
30791998-05-05 Richard Stallman <rms@gnu.org>
3080
3081 * doc/bison.texinfo:
3082 Explain better why to make a pure parser.
3083
30841998-01-05 Richard Stallman <rms@gnu.org>
3085
3086 * src/files.c (openfiles):
3087 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3088 find a temporary directory, if possible. Do not unlink files while
3089 they are open.
3090
30911997-08-25 Richard Stallman <rms@gnu.org>
3092
3093 * src/reader.c (stack_offset;):
3094 Change some warni to warns.
3095
3096 * src/lex.c (literalchar): Use warns, not warni.
3097
30981997-06-28 Richard Stallman <rms@gnu.org>
3099
3100 * src/bison.s1: Add a Bison version comment.
3101
3102 * src/main.c (fatal, warn, berror):
3103 Use program_name.
3104
31051997-06-28 Richard Stallman <rms@gnu.org>
3106
3107 * Makefile.in (bison_version): New variable.
3108 (dist): Use that variable.
3109 (bison.s1): Substitute the Bison version into bison.simple.
3110
3111 * bison.simple: Add a Bison version comment.
3112
31131997-06-18 Richard Stallman <rms@gnu.org>
3114
3115 * src/main.c (fatal, warn, berror):
3116 Make error messages standard.
3117 (toomany): Improve error message text.
3118
3119 * 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:
3120 new.h renamed to alloc.h.
3121
31221997-06-18 Richard Stallman <rms@gnu.org>
3123
3124 * Makefile.in: new.h renamed to alloc.h.
3125
31261997-05-24 Richard Stallman <rms@gnu.org>
3127
3128 * src/lex.c (literalchar):
3129 Fix the code for escaping \, " and '.
3130
3131 (lex): Avoid trouble when there are many chars
3132 to discard in a char literal with just several chars in it.
3133
31341997-05-17 Richard Stallman <rms@gnu.org>
3135
3136 * src/bison.s1:
3137 Use malloc, if using alloca is troublesome.
3138 (YYSTACK_USE_ALLOCA): New flag macro.
3139 Define it for some systems and compilers.
3140 (YYSTACK_ALLOC): New macro.
3141 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3142 If it was malloc'd, free it.
3143
31441997-05-17 Richard Stallman <rms@gnu.org>
3145
3146 * bison.simple:
3147 Use malloc, if using alloca is troublesome.
3148 (YYSTACK_USE_ALLOCA): New flag macro.
3149 Define it for some systems and compilers.
3150 (YYSTACK_ALLOC): New macro.
3151 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3152 If it was malloc'd, free it.
3153
31541997-04-23 Richard Stallman <rms@gnu.org>
3155
3156 * src/bison.s1:
3157 (alloca) [__hpux]: Always define as __builtin_alloca.
3158
31591997-04-23 Richard Stallman <rms@gnu.org>
3160
3161 * bison.simple:
3162 (alloca) [__hpux]: Always define as __builtin_alloca.
3163
31641997-04-22 Richard Stallman <rms@gnu.org>
3165
3166 * src/bison.s1:
3167 [__hpux]: Include alloca.h (right for HPUX 10)
3168 instead of declaring alloca (right for HPUX 9).
3169
3170 * src/bison.s1 (__yy_memcpy):
3171 Declare arg `count' as unsigned int.
3172 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3173
31741997-04-22 Richard Stallman <rms@gnu.org>
3175
3176 * bison.simple:
3177 [__hpux]: Include alloca.h (right for HPUX 10)
3178 instead of declaring alloca (right for HPUX 9).
3179
3180 * bison.simple (__yy_memcpy):
3181 Declare arg `count' as unsigned int.
3182 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3183
31841997-01-03 Richard Stallman <rms@gnu.org>
3185
3186 * src/allocate.c: [__STDC__ or _MSC_VER]:
3187 Declare calloc and realloc to return void *.
3188
31891997-01-02 Richard Stallman <rms@gnu.org>
3190
3191 * src/system.h:
3192 [_MSC_VER]: Include stdlib.h and process.h.
3193 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3194
3195 * src/main.c (main): Return FAILURE as a value.
3196 (printable_version): Declare arg as int, not char.
3197
31981997-01-02 Richard Stallman <rms@gnu.org>
3199
3200 * Makefile.in (dist):
3201 Explicitly check for symlinks, and copy them.
3202
32031996-12-19 Richard Stallman <rms@gnu.org>
3204
3205 * src/files.c:
3206 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3207
32081996-12-18 Paul Eggert <eggert@gnu.org>
3209
3210 * src/bison.s1 (yyparse):
3211 If __GNUC__ and YYPARSE_PARAM are both defined,
3212 declare yyparse to have a void * argument.
3213
32141996-12-18 Paul Eggert <eggert@gnu.org>
3215
3216 * bison.simple (yyparse):
3217 If __GNUC__ and YYPARSE_PARAM are both defined,
3218 declare yyparse to have a void * argument.
3219
32201996-12-17 Richard Stallman <rms@gnu.org>
3221
3222 * src/reduce.c (nbits): Add some casts.
3223
32241996-08-12 Richard Stallman <rms@gnu.org>
3225
3226 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3227
32281996-08-12 Richard Stallman <rms@gnu.org>
3229
3230 * bison.simple: Test _MSDOS as well as _MSDOS_.
3231
32321996-07-31 Richard Stallman <rms@gnu.org>
3233
3234 * src/bison.s1:
3235 [__sun && __i386]: Include alloca.h.
3236
32371996-07-31 Richard Stallman <rms@gnu.org>
3238
3239 * bison.simple:
3240 [__sun && __i386]: Include alloca.h.
3241
32421996-07-30 Richard Stallman <rms@gnu.org>
3243
3244 * src/bison.s1: Comment change.
3245
3246 * src/bison.s1: Test _MSDOS_, not MSDOS.
3247
32481996-07-30 Richard Stallman <rms@gnu.org>
3249
3250 * bison.simple: Comment change.
3251
3252 * bison.simple: Test _MSDOS_, not MSDOS.
3253
32541996-06-01 Richard Stallman <rms@gnu.org>
3255
3256 * 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:
3257 Insert `_' macro around many string constants.
3258
3259 * src/main.c:
3260 Insert `_' macro around many string constants.
3261
3262 (main): Call setlocale, bindtextdomain and textdomain.
3263
3264 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3265 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3266 [ENABLE_NLS]: Include libintl.h.
3267 [ENABLE_NLS] (gettext): Define.
3268 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3269 (N_, PACKAGE, LOCALEDIR): New macros.
3270
32711996-06-01 Richard Stallman <rms@gnu.org>
3272
3273 * POTFILES.in: New file.
3274
3275 * Makefile.in (allocate.o):
3276 Define target explicitly.
3277
3278 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3279 (LDFLAGS): Set to @LDFLAGS@.
3280 (configure): Run autoconf only if preceding `cd' succeeds.
3281 (bison.s1): Redirect output to temporary file then move the
3282 temporary to the target, rather than redirecting directly to bison.s1.
3283 (clean): Remove config.status and config.log.
3284 (distclean): Don't remove config.status here.
3285
32861996-05-12 Richard Stallman <rms@gnu.org>
3287
3288 * src/bison.s1:
3289 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3290
32911996-05-12 Richard Stallman <rms@gnu.org>
3292
3293 * bison.simple:
3294 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3295
32961996-05-11 Richard Stallman <rms@gnu.org>
3297
3298 * src/bison.s1 (__yy_memcpy):
3299 Really reorder the args, as was supposedly done on Feb 14 1995.
3300 (yyparse): Calls changed accordingly.
3301
33021996-05-11 Richard Stallman <rms@gnu.org>
3303
3304 * Makefile.in (dist): Don't use $(srcdir).
3305
3306 * bison.simple (__yy_memcpy):
3307 Really reorder the args, as was supposedly done on Feb 14 1995.
3308 (yyparse): Calls changed accordingly.
3309
33101996-01-27 Richard Stallman <rms@gnu.org>
3311
3312 * src/output.c (output_rule_data):
3313 Test YYERROR_VERBOSE in the conditional
3314 around the definition of ttyname.
3315
33161995-12-29 Richard Stallman <rms@gnu.org>
3317
3318 * src/bison.s1:
3319 Fix line numbers in #line commands.
3320
33211995-12-29 Richard Stallman <rms@gnu.org>
3322
3323 * bison.simple:
3324 Fix line numbers in #line commands.
3325
33261995-12-27 Richard Stallman <rms@gnu.org>
3327
3328 * src/bison.s1 (YYPARSE_PARAM_DECL):
3329 In C++, make it always null.
3330 (YYPARSE_PARAM_ARG): New macro.
3331 (yyparse): Use YYPARSE_PARAM_ARG.
3332
33331995-12-27 Richard Stallman <rms@gnu.org>
3334
3335 * bison.simple (YYPARSE_PARAM_DECL):
3336 In C++, make it always null.
3337 (YYPARSE_PARAM_ARG): New macro.
3338 (yyparse): Use YYPARSE_PARAM_ARG.
3339
33401995-11-29 Richard Stallman <rms@gnu.org>
3341
3342 * doc/bison.texinfo:
3343 Describe literal string tokens, %raw, %no_lines, %token_table.
3344
33451995-11-29 Daniel Hagerty <hag@gnu.org>
3346
3347 * doc/bison.texinfo: Fixed update date
3348
33491995-10-16 Richard Stallman <rms@gnu.org>
3350
3351 * src/version.c: Version 1.25.
3352
33531995-10-16 Richard Stallman <rms@gnu.org>
3354
3355 * NEWS: *** empty log message ***
3356
33571995-10-16 Richard Stallman <rms@gnu.org>
3358
3359 * doc/bison.1, doc/bison.rnh:
3360 Add new options.
3361
33621995-10-15 Richard Stallman <rms@gnu.org>
3363
3364 * src/vmsgetargs.c, src/getargs.c:
3365 Added -n, -k, and -raw switches.
3366 (noparserflag, toknumflag, rawtoknumflag): New variables.
3367
3368 * src/symtab.h (SALIAS):
3369 New #define for adding aliases to %token.
3370 (struct bucket): Added `alias' field.
3371
3372 * src/reduce.c (reduce_grammar):
3373 Revise error message.
3374 (print_notices): Remove final `.' from error message.
3375
3376 * src/reader.c (reader_output_yylsp):
3377 New function.
3378 (readgram): Use `#if 0' around code that accepted %command
3379 inside grammar rules: The documentation doesn't allow it,
3380 and it will fail since the %command processors scan for the next %.
3381 (parse_token_decl): Extended the %token
3382 declaration to allow a multi-character symbol as an alias.
3383 (parse_thong_decl): New function.
3384 (read_declarations): Added %thong declarations.
3385 (read_declarations): Handle NOOP to deal with allowing
3386 % declarations as another means to specify the flags.
3387 (readgram): Allow %prec prior to semantics embedded in a rule.
3388 (skip_to_char, read_declarations, copy_definition)
3389 (parse_token_decl, parse_start_decl, parse_type_decl)
3390 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3391 (get_type_name, copy_guard, copy_action, readgram)
3392 (get_type, packsymbols): Revised most error messages.
3393 Changed `fatal' to `warnxxx' to avoid aborting for error.
3394 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3395 (read_declarations): Improve the error message for
3396 an invalid character. Do not abort.
3397 (read_declarations, copy_guard, copy_action): Use
3398 printable_version to avoid unprintable characters in printed output.
3399 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3400 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3401 Allow the type of a non-terminal can be given
3402 more than once, as long as all specifications give the same type.
3403
3404 * src/output.c:
3405 (output_headers, output_trailers, output, output_gram)
3406 (output_rule_data): Implement noparserflag variable.
3407 Implement toknumflag variable.
3408 (output): Call reader_output_yylsp to output LTYPESTR.
3409
3410 * src/main.c (main):
3411 If reader sees an error, don't process the grammar.
3412 (fatals): Updated to not use VARARGS1.
3413 (printable_version, int_to_string, warn, warni, warns, warnss)
3414 (warnsss): New error reporting functions. Avoid abort for error.
3415
3416 * src/lex.h:
3417 Added THONG and NOOP for alias processing.
3418 Added SETOPT for the new code that allows setting options with %flags.
3419
3420 * src/lex.c:
3421 Include getopt.h. Add some extern decls.
3422 (safegetc): New function to deal with EOF gracefully.
3423 (literalchar); new function to deal with reading \ escapes.
3424 (lex): Use literalchar.
3425 (lex): Implemented "..." tokens.
3426 (literalchar, lex, parse_percent_token): Made tokenbuffer
3427 always contain the token. This includes growing the token
3428 buffer while reading an integer.
3429 (parse_percent_token): Replaced if-else statement with percent_table.
3430 (parse_percent_token): Added % declarations as another
3431 way to specify the flags -n, -l, and -r. Also added hooks for
3432 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3433 major changes to files.c.
3434 (lex) Retain in the incoming stream a character following
3435 an incorrect '/'.
3436 (skip_white_space, lex): Revised most error messages
3437 and changed fatal to warn to avoid aborting.
3438 (percent_table): Added %thong declarations.
3439
3440 * src/gram.h: Comment changes.
3441
3442 * src/files.c (openfiles, open_extra_files, done):
3443 Add faction flag
3444 and actfile file. Handle noparserflag. Both for -n switch.
3445
3446 * src/conflicts.c (resolve_sr_conflict):
3447 Remove use of alloca.
3448
34491995-06-01 Jim Meyering <meyering@gnu.org>
3450
3451 * doc/bison.texinfo: *** empty log message ***
3452
34531995-05-06 Richard Stallman <rms@gnu.org>
3454
3455 * src/bison.s1: Comment change.
3456
34571995-05-06 Richard Stallman <rms@gnu.org>
3458
3459 * bison.simple: Comment change.
3460
34611995-05-03 Richard Stallman <rms@gnu.org>
3462
3463 * src/version.c: Version now 1.24.
3464
3465 * src/bison.s1: Change distribution terms.
3466
3467 * src/version.c: Version now 1.23.
3468
34691995-05-03 Richard Stallman <rms@gnu.org>
3470
3471 * doc/bison.texinfo:
3472 Rewrite "Conditions for Using Bison".
3473 Update version to 1.24.
3474
34751995-05-03 Richard Stallman <rms@gnu.org>
3476
3477 * bison.simple: Change distribution terms.
3478
34791995-02-23 Richard Stallman <rms@gnu.org>
3480
3481 * src/files.c: Test __VMS_POSIX as well as VMS.
3482
34831995-02-14 Jim Meyering <meyering@gnu.org>
3484
3485 * src/bison.s1 (__yy_memcpy):
3486 Renamed from __yy_bcopy to avoid
3487 confusion. Reverse FROM and TO arguments to be consistent with
3488 those of memcpy.
3489
34901995-02-14 Jim Meyering <meyering@gnu.org>
3491
3492 * bison.simple (__yy_memcpy):
3493 Renamed from __yy_bcopy to avoid
3494 confusion. Reverse FROM and TO arguments to be consistent with
3495 those of memcpy.
3496
34971994-11-10 David J. MacKenzie <djm@gnu.org>
3498
3499 * NEWS: reformat
3500
3501 * NEWS: New file.
3502
3503 * Makefile.in (DISTFILES): Include NEWS.
3504
3505 * Makefile.in (DISTFILES):
3506 Include install-sh, not install.sh.
3507
3508 * configure.in: Update to Autoconf v2 macro names.
3509
35101994-10-05 David J. MacKenzie <djm@gnu.org>
3511
3512 * Makefile.in: fix typo
3513
3514 * Makefile.in (prefix, exec_prefix):
3515 Let configure set them.
3516
35171994-09-28 David J. MacKenzie <djm@gnu.org>
3518
3519 * Makefile.in: Set datadir to $(prefix)/share.
3520
35211994-09-15 Richard Stallman <rms@gnu.org>
3522
3523 * src/bison.s1:
3524 Update copyright notice and GPL version.
3525
35261994-09-15 Richard Stallman <rms@gnu.org>
3527
3528 * bison.simple:
3529 Update copyright notice and GPL version.
3530
35311994-07-12 Richard Stallman <rms@gnu.org>
3532
3533 * src/reduce.c, src/reader.c:
3534 entered into RCS
3535
35361994-05-05 David J. MacKenzie <djm@gnu.org>
3537
3538 * Makefile.in: entered into RCS
3539
35401994-03-26 Richard Stallman <rms@gnu.org>
3541
3542 * src/bison.s1: entered into RCS
3543
35441994-03-26 Richard Stallman <rms@gnu.org>
3545
3546 * bison.simple: entered into RCS
3547
35481994-03-25 Richard Stallman <rms@gnu.org>
3549
3550 * src/main.c: entered into RCS
3551
35521994-03-24 Richard Stallman <rms@gnu.org>
3553
3554 * src/conflicts.c: entered into RCS
3555
35561994-01-02 Richard Stallman <rms@gnu.org>
3557
3558 * Makefile.in: *** empty log message ***
3559
35601993-11-21 Richard Stallman <rms@gnu.org>
3561
3562 * src/bison.s1: *** empty log message ***
3563
35641993-11-21 Richard Stallman <rms@gnu.org>
3565
3566 * doc/bison.texinfo: entered into RCS
3567
3568 * doc/bison.texinfo: *** empty log message ***
3569
35701993-11-21 Richard Stallman <rms@gnu.org>
3571
3572 * bison.simple: *** empty log message ***
3573
35741993-10-25 David J. MacKenzie <djm@gnu.org>
3575
3576 * doc/bison.texinfo: *** empty log message ***
3577
35781993-10-19 Richard Stallman <rms@gnu.org>
3579
3580 * src/bison.s1: *** empty log message ***
3581
35821993-10-19 Richard Stallman <rms@gnu.org>
3583
3584 * bison.simple: *** empty log message ***
3585
35861993-10-14 Richard Stallman <rms@gnu.org>
3587
3588 * src/bison.s1: *** empty log message ***
3589
35901993-10-14 Richard Stallman <rms@gnu.org>
3591
3592 * bison.simple: *** empty log message ***
3593
35941993-09-14 David J. MacKenzie <djm@gnu.org>
3595
3596 * doc/bison.texinfo: *** empty log message ***
3597
35981993-09-13 Noah Friedman <friedman@gnu.org>
3599
3600 * Makefile.in: *** empty log message ***
3601
36021993-09-10 Richard Stallman <rms@gnu.org>
3603
3604 * src/conflicts.c: *** empty log message ***
3605
3606 * src/system.h: entered into RCS
3607
36081993-09-10 Richard Stallman <rms@gnu.org>
3609
3610 * doc/bison.1: entered into RCS
3611
36121993-09-06 Noah Friedman <friedman@gnu.org>
3613
3614 * src/version.c: entered into RCS
3615
36161993-09-06 Noah Friedman <friedman@gnu.org>
3617
3618 * Makefile.in: *** empty log message ***
3619
36201993-07-30 David J. MacKenzie <djm@gnu.org>
3621
3622 * Makefile.in: *** empty log message ***
3623
36241993-07-24 Richard Stallman <rms@gnu.org>
3625
3626 * src/bison.s1: *** empty log message ***
3627
36281993-07-24 Richard Stallman <rms@gnu.org>
3629
3630 * bison.simple: *** empty log message ***
3631
36321993-07-08 David J. MacKenzie <djm@gnu.org>
3633
3634 * Makefile.in: *** empty log message ***
3635
36361993-07-04 Richard Stallman <rms@gnu.org>
3637
3638 * src/bison.s1: *** empty log message ***
3639
36401993-07-04 Richard Stallman <rms@gnu.org>
3641
3642 * bison.simple: *** empty log message ***
3643
36441993-06-26 David J. MacKenzie <djm@gnu.org>
3645
3646 * src/getargs.c: entered into RCS
3647
36481993-06-26 David J. MacKenzie <djm@gnu.org>
3649
3650 * doc/bison.texinfo: *** empty log message ***
3651
3652 * doc/bison.1: New file.
3653
36541993-06-25 Richard Stallman <rms@gnu.org>
3655
3656 * src/getargs.c: New file.
3657
36581993-06-16 Richard Stallman <rms@gnu.org>
3659
3660 * src/bison.s1: *** empty log message ***
3661
36621993-06-16 Richard Stallman <rms@gnu.org>
3663
3664 * bison.simple: *** empty log message ***
3665
36661993-06-03 Richard Stallman <rms@gnu.org>
3667
3668 * src/bison.s1: New file.
3669
36701993-06-03 Richard Stallman <rms@gnu.org>
3671
3672 * doc/bison.texinfo: *** empty log message ***
3673
36741993-06-03 Richard Stallman <rms@gnu.org>
3675
3676 * bison.simple: New file.
3677
36781993-05-19 Richard Stallman <rms@gnu.org>
3679
3680 * doc/bison.texinfo: New file.
3681
36821993-05-07 Noah Friedman <friedman@gnu.org>
3683
3684 * Makefile.in: *** empty log message ***
3685
36861993-04-28 Noah Friedman <friedman@gnu.org>
3687
3688 * src/reader.c: *** empty log message ***
3689
36901993-04-23 Noah Friedman <friedman@gnu.org>
3691
3692 * src/alloc.h: entered into RCS
3693
36941993-04-20 David J. MacKenzie <djm@gnu.org>
3695
3696 * src/version.c: *** empty log message ***
3697
3698 * src/files.c, src/allocate.c:
3699 entered into RCS
3700
3701 * src/reader.c: *** empty log message ***
3702
3703 * src/lex.c: entered into RCS
3704
3705 * src/conflicts.c: New file.
3706
3707 * src/symtab.c: entered into RCS
3708
3709 * src/alloc.h: New file.
3710
3711 * src/LR0.c: entered into RCS
3712
37131993-04-18 Noah Friedman <friedman@gnu.org>
3714
3715 * src/reader.c: New file.
3716
3717 * src/version.c: *** empty log message ***
3718
37191993-04-18 Noah Friedman <friedman@gnu.org>
3720
3721 * Makefile.in: *** empty log message ***
3722
37231993-04-17 Noah Friedman <friedman@gnu.org>
3724
3725 * Makefile.in: *** empty log message ***
3726
37271993-04-15 Richard Stallman <rms@gnu.org>
3728
3729 * src/main.c, src/files.c:
3730 New file.
3731
37321993-04-15 Noah Friedman <friedman@gnu.org>
3733
3734 * configure.in: entered into RCS
3735
3736 * configure.in: *** empty log message ***
3737
3738 * configure.in: New file.
3739
37401993-04-14 Richard Stallman <rms@gnu.org>
3741
3742 * Makefile.in: New file.
3743
37441993-04-13 Richard Stallman <rms@gnu.org>
3745
3746 * src/version.c: New file.
3747
37481993-03-25 Richard Stallman <rms@gnu.org>
3749
3750 * src/output.c: entered into RCS
3751
37521992-09-25 Richard Stallman <rms@gnu.org>
3753
3754 * configure.bat: entered into RCS
3755
37561992-06-22 Richard Stallman <rms@gnu.org>
3757
3758 * src/vmsgetargs.c: entered into RCS
3759
37601992-06-22 Richard Stallman <rms@gnu.org>
3761
3762 * doc/bison.rnh: entered into RCS
3763
37641992-04-20 David J. MacKenzie <djm@gnu.org>
3765
3766 * README: entered into RCS
3767
37681992-01-22 Richard Stallman <rms@gnu.org>
3769
3770 * src/machine.h: entered into RCS
3771
37721991-12-21 Richard Stallman <rms@gnu.org>
3773
3774 * src/lalr.c, src/closure.c:
3775 entered into RCS
3776
37771991-12-20 Richard Stallman <rms@gnu.org>
3778
3779 * src/state.h: entered into RCS
3780
37811991-12-18 Richard Stallman <rms@gnu.org>
3782
3783 * src/print.c, src/nullable.c, src/derives.c:
3784 entered into RCS
3785
37861991-11-03 David J. MacKenzie <djm@gnu.org>
3787
3788 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3789 entered into RCS
3790
37911988-09-09 Richard Stallman <rms@gnu.org>
3792
3793 * src/bison.hairy: entered into RCS
3794
37951987-12-16 Richard Stallman <rms@gnu.org>
3796
3797 * REFERENCES: entered into RCS