]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/bison.simple: Adjust muscle names.
[bison.git] / ChangeLog
CommitLineData
5b5d1929
MA
12001-11-28 Marc Autret <autret_m@epita.fr>
2
3 * src/bison.simple: Adjust muscle names.
4 * src/muscle_tab.c (muscle_init): Also rename the muscles.
5 * src/output.c (prepare): s/_/-/ for the muscles names.
6 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
7
8850be4b
MA
82001-11-28 Marc Autret <autret_m@epita.fr>
9
10 * src/bison.simple: Fix debug.
11 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
12
4a38e613
AD
132001-11-28 Akim Demaille <akim@epita.fr>
14
15 * src/LR0.c (shifts_new): New.
16 (save_shifts, insert_start_shift, augment_automaton): Use it.
17
4b35e1c1
AD
182001-11-28 Akim Demaille <akim@epita.fr>
19
20 * src/closure.c (closure): `b' and `ruleno' denote the same value:
21 keep ruleno only.
22
d2b04478
AD
232001-11-28 Akim Demaille <akim@epita.fr>
24
25 * src/closure.c (closure): Instead of looping over word in array
26 then bits in words, loop over bits in array.
27
2c4c30aa
AD
282001-11-28 Akim Demaille <akim@epita.fr>
29
30 * src/closure.c (closure): No longer optimize the special case
31 where all the bits of `ruleset[r]' are set to 0, to make the code
32 clearer.
33
576890b7
AD
342001-11-28 Akim Demaille <akim@epita.fr>
35
36 * src/closure.c (closure): `r' and `c' are new variables, used to
37 de-obfuscate accesses to RULESET and CORE.
38
cb487d7d
AD
392001-11-28 Akim Demaille <akim@epita.fr>
40
41 * src/reduce.c (reduce_print): Use ngettext.
42 (dump_grammar): Improve the trace accuracy.
43
6013d43f
AD
442001-11-28 Akim Demaille <akim@epita.fr>
45
46 * src/reduce.c (dump_grammar): Don't translate trace messages.
47
cb4956ee
AD
482001-11-28 Akim Demaille <akim@epita.fr>
49
50 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
51 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
52 as all tags are free'ed afterwards.
53 From Enrico Scholz.
54
648185ab
PE
552001-11-27 Paul Eggert <eggert@twinsun.com>
56
57 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
58 use alloca when we didn't want to, and vice versa.
59
68254a03
MA
602001-11-27 Marc Autret <autret_m@epita.fr>
61
9113b58f
AD
62 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
63 initialization.
68254a03
MA
64 * src/output.c (prepare): Remove its update.
65
04d843a2
MA
662001-11-27 Marc Autret <autret_m@epita.fr>
67
68 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
69 Use %error-verbose.
70
d2079671 712001-11-27 Marc Autret <autret_m@epita.fr>
eeeb962b
MA
72
73 * src/bison.simple: Remove YYERROR_VERBOSE using.
74 Use %%error_verbose.
75 (yyparse): Likewise.
76 * src/output.c (prepare): Give its final value.
77 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
78 * src/getargs.h: Add its extern declaration.
79 * src/getargs.c (error_verbose_flag): New int.
80 (getargs): Update to catch new case.
81 * src/options.c (option_table): 'error-verbose' is a new option.
82 (shortopts): Update.
83
e0327bc8
AD
842001-11-27 Akim Demaille <akim@epita.fr>
85
86 * src/system.h: Use intl/libgettext.h.
87 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
88
000f1a3c
AD
892001-11-27 Akim Demaille <akim@epita.fr>
90
91 * tests/torture.at (Exploding the Stack Size with Malloc):
92 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
93
26cfe0be
AD
942001-11-27 Akim Demaille <akim@epita.fr>
95
96 * src/files.c: Include error.h.
97 Reported by Hans Aberg.
98
f6bd5427
MA
992001-11-26 Marc Autret <autret_m@epita.fr>
100
d2079671 101 * src/reader.c (parse_include_decl): New, not yet implemented.
f6bd5427
MA
102 (read_declarations): Add case tok_include.
103 * src/getargs.h (include): Add its extern definition.
104 * src/getargs.c (include): New const char *.
105 (getargs): Add case '-I'.
106 * src/options.c (option_table): Add include as command line and
107 percent option.
108 * src/lex.h (token_t): Add tok_include.
109
2ca209c1
AD
1102001-11-26 Akim Demaille <akim@epita.fr>
111
112 * src/reader.c (readgram): Make sure rules for mid-rule actions
113 have a lineno equal to that of their host rule.
114 Reported by Hans Aberg.
115 * tests/regression.at (Rule Line Numbers): New.
116
0e41b407
AD
1172001-11-26 Akim Demaille <akim@epita.fr>
118
119 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
120 size_ts.
121
1222001-11-26 Akim Demaille <akim@epita.fr>
123
124 * src/complain.c, src/complain.h (error): Remove, provided by
125 lib/error.[ch].
126
e0c40012
AD
1272001-11-26 Akim Demaille <akim@epita.fr>
128
129 * src/reader.c (read_declarations): Don't abort on tok_illegal,
130 issue an error message.
131 * tests/regression.at (Invalid %directive): New.
132 Reported by Hans Aberg.
133
5e147124
AD
1342001-11-26 Akim Demaille <akim@epita.fr>
135
136 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
137 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
138
a034c8b8
AD
1392001-11-26 Akim Demaille <akim@epita.fr>
140
141 * src/conflicts.c (conflicts_print): Don't complain at all when
142 there are no reduce/reduce conflicts, and as many shift/reduce
143 conflicts as expected.
144 * tests/regression.at (%expect right): Adjust.
145
c64a20f3
AD
1462001-11-23 Akim Demaille <akim@epita.fr>
147
148 * lib/alloca.c: Update, from fileutils.
149
5b0d29bb
AD
1502001-11-23 Akim Demaille <akim@epita.fr>
151
152 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
153
722c4bfe
AD
1542001-11-23 Akim Demaille <akim@epita.fr>
155
156 * src/system.h: Include alloca.h.
157 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
158
6255b435
AD
1592001-11-23 Akim Demaille <akim@epita.fr>
160
161 * src/print_graph.c (print_actions): Remove `rule', unused.
162 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
163 pacify GCC's signed < unsigned warnings.
164 * src/closure.c (itemsetsize): Likewise.
165 * src/reader.c (symbol_list_new): Static.
166
b29b2ed5
AD
1672001-11-23 Akim Demaille <akim@epita.fr>
168
169 Attaching lineno to buckets is stupid, since only one copy of each
170 symbol is kept, only the line of the first occurrence is kept too.
171
172 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
173 * src/reader.c (rline_allocated): Remove, unused.
174 (symbol_list): Have a `line' member.
175 (symbol_list_new): New.
176 (readgram): Use it.
177 * src/print.c (print_grammar): Output the rule line numbers.
178 * tests/regression.at (Solved SR Conflicts)
179 (Unresolved SR Conflicts): Adjust.
180 Reported by Hans Aberg.
181
a81b1d4a
MA
1822001-11-22 Marc Autret <autret_m@epita.fr>
183
184 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
185
c1ecb3c1
MA
1862001-11-22 Marc Autret <autret_m@epita.fr>
187
188 * src/muscle_tab.c (muscle_init): Remove initialization of
189 skeleton muscle.
190 * src/output.c (output_master_parser): Do it here.
191
fbe01355
AD
1922001-11-20 Akim Demaille <akim@epita.fr>
193
194 * po/sv.po: New.
195 * configure.in (ALL_LINGUAS): Adjust.
196 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
197 longer contains strings to translate.
198
81e895c0
AD
1992001-11-19 Akim Demaille <akim@epita.fr>
200
201 * src/conflicts.c (conflicts_print): Add a missing \n.
202
6bb1878b
AD
2032001-11-19 Akim Demaille <akim@epita.fr>
204
205 * src/nullable.c (nullable_print): New.
206 (set_nullable): Call it when tracing.
207 Better locality of variables.
208
d9ec2d07
AD
2092001-11-19 Akim Demaille <akim@epita.fr>
210
211 * src/print.c (print_actions): Better locality of variables.
212
720e5c1b
AD
2132001-11-19 Akim Demaille <akim@epita.fr>
214
215 * src/derives.c (print_derives): Fix and enrich.
216 * src/closure.c (print_fderives): Likewise.
217
fb908786
AD
2182001-11-19 Akim Demaille <akim@epita.fr>
219
220 * src/closure.c (itemsetend): Remove, replaced with...
221 (itemsetsize): new.
222
125ecb56
AD
2232001-11-19 Akim Demaille <akim@epita.fr>
224
225 * src/LR0.c (kernel_end): Remove, replaced with...
226 (kernel_size): new.
227
d8cf039f
AD
2282001-11-19 Akim Demaille <akim@epita.fr>
229
230 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
231 to clarify.
232
7bec0760
AD
2332001-11-19 Akim Demaille <akim@epita.fr>
234
235 * src/closure.c (closure): Use arrays instead of pointers to clarify.
236
c87d4863
AD
2372001-11-19 Akim Demaille <akim@epita.fr>
238
239 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
240 trace messages.
241 * src/LR0.c: Likewise.
242 (allocate_itemsets): Use arrays instead of pointers to clarify.
243
9bfe901c
AD
2442001-11-19 Akim Demaille <akim@epita.fr>
245
246 * src/getargs.c (statistics_flag): Replace with...
247 (trace_flag): New.
248 (longopts): Accept --trace instead of --statistics.
249 * src/getargs.h, src/options.c: Adjust.
250 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
251 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
252
97db7bd4
AD
2532001-11-19 Akim Demaille <akim@epita.fr>
254
cc72668c 255 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
97db7bd4
AD
256 pointers to clarify the code.
257 (save_reductions, save_shifts): Factor common parts of alternatives.
258
2c5f66ed
AD
2592001-11-19 Akim Demaille <akim@epita.fr>
260
261 * src/LR0.c (new_state, get_state): Complete TRACE code.
262 * src/closure.c: Include `reader.h' to get `tags', needed by the
263 trace code.
264 Rename the conditional DEBUG as TRACE.
265 Output consistently TRACEs to stderr, not stdout.
266 * src/derives.c: Likewise.
267 * src/reduce.c: (inaccessable_symbols): Using if is better style
268 than goto.
269 Use `#if TRACE' instead of `#if 0' for tracing code.
270
300f275f
AD
2712001-11-19 Akim Demaille <akim@epita.fr>
272
273 * src/system.h (LIST_FREE, shortcpy): New.
274 * src/LR0.c: Use them.
275 * src/output.c (free_itemsets, free_reductions, free_shifts):
276 Remove, replaced by LIST_FREE.
277
f59c437a
AD
2782001-11-19 Akim Demaille <akim@epita.fr>
279
280 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
281 (REDUCTIONS_ALLOC): New.
282 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
283 allocation.
284
6986fd9e
AD
2852001-11-19 Akim Demaille <akim@epita.fr>
286
287 * src/LR0.c (new_state): Complete trace code.
288 * src/nullable.c (set_nullable): Don't translate traces.
289
4bc30f78
AD
2902001-11-19 Akim Demaille <akim@epita.fr>
291
292 * src/print_graph.c (print_core): Better locality of variables.
293 * src/print.c (print_core): Likewise.
294
08a946e0
AD
2952001-11-19 Akim Demaille <akim@epita.fr>
296
297 * src/vcg.c: You do the output, so you are responsible of the
298 handling of VCG syntax, in particular: use quotearg.
299 * src/print_graph.c: Don't.
300 (print_actions): Don't output the actions as part of the nodes,
301 since that's the job of the edges.
302 (print_state): Don't output by hand: fill the node description,
9bfe901c 303 and ask for its output.
08a946e0 304
f0473484
AD
3052001-11-19 Akim Demaille <akim@epita.fr>
306
cc72668c
AD
307 * src/bison.simple (yyparse): When verbosely reporting an error,
308 no longer put additional quotes around token names.
f0473484
AD
309 * tests/calc.at: Adjust.
310
e41dc700
AD
3112001-11-19 Akim Demaille <akim@epita.fr>
312
313 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
314 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
315 * src/output.c: Adjust.
316
652a871c
AD
3172001-11-19 Akim Demaille <akim@epita.fr>
318
319 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
320 (rule_t): this.
321 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
322
b2ed6e58
AD
3232001-11-19 Akim Demaille <akim@epita.fr>
324
325 * src/gram.h (rule_t): New.
326 (rule_table): New.
327 (rrhs, rlhs): Remove, part of state_t.
328 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
329 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
330 * src/reader.c, src/reduce.c: Adjust.
331
edad7067
AD
3322001-11-19 Akim Demaille <akim@epita.fr>
333
334 * src/reader.c (symbols_output): New, extracted from...
335 (packsymbols): Here.
336 (reader): Call it.
337
3feec034
AD
3382001-11-19 Akim Demaille <akim@epita.fr>
339
340 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
341 (maxrhs): this new function.
342
ddcd5fdf
AD
3432001-11-19 Akim Demaille <akim@epita.fr>
344
cc72668c 345 * src/lalr.c (F): New macro to access the variable F.
ddcd5fdf
AD
346 Adjust.
347
bb527fc2
AD
3482001-11-19 Akim Demaille <akim@epita.fr>
349
cc72668c 350 * src/lalr.h (LA): New macro to access the variable LA.
bb527fc2
AD
351 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
352 * src/lalr.c: Adjust.
353
a845a697
AD
3542001-11-19 Akim Demaille <akim@epita.fr>
355
356 * src/lalr.c (initialize_LA): Only initialize LA. Let...
357 (set_state_table): handle the `lookaheads' members.
358
f004bf6a
AD
3592001-11-19 Akim Demaille <akim@epita.fr>
360
cc72668c
AD
361 * src/lalr.h (lookaheads): Removed array, whose contents is now
362 a member of...
f004bf6a
AD
363 (state_t): this structure.
364 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
365 Adjust.
366
de326cc0
AD
3672001-11-19 Akim Demaille <akim@epita.fr>
368
cc72668c
AD
369 * src/lalr.h (consistent): Removed array, whose contents is now
370 a member of...
de326cc0
AD
371 (state_t): this structure.
372 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
373 Adjust.
374
90b4416b
AD
3752001-11-19 Akim Demaille <akim@epita.fr>
376
cc72668c
AD
377 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
378 contents are now members of...
90b4416b
AD
379 (state_t): this structure.
380 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
381 Adjust.
382
9703cc49
AD
3832001-11-19 Akim Demaille <akim@epita.fr>
384
385 * src/lalr.h (state_t): New.
386 (state_table): Be a state_t * instead of a core **.
387 (accessing_symbol): Remove, part of state_t.
388 * src/lalr.c: Adjust.
389 (set_accessing_symbol): Merge into...
390 (set_state_table): this.
391 * src/print_graph.c, src/conflicts.c: Adjust.
392
d803322e
AD
3932001-11-14 Akim Demaille <akim@epita.fr>
394
395 * tests/calc.at, tests/output.at, tests/regression.at,
396 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
397 now the tests are run in private dirs, therefore AC_CLEANUP and
398 family can be simplified to 0-ary.
399 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
400 use abs. path to find config.h.
401 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
402 stderr, there can be way too much random noise.
403 Instead pass -Werror to GCC and rely on the exit status.
404 Reported by Wolfram Wagner.
405
3d76b07d
AD
4062001-11-14 Akim Demaille <akim@epita.fr>
407
408 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
409 defined only if yyoverflow is defined, to avoid `warning: unused
410 variable `yyvs1''.
411 Reported by The Test Suite.
412
09b503c8
AD
4132001-11-14 Akim Demaille <akim@epita.fr>
414
415 * src/print.c: Include reduce.h.
416 Reported by Hans Aberg.
417
4182001-11-14 Akim Demaille <akim@epita.fr>
419
420 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
421 Revert a previous patch: these are really const.
422 * src/conflicts.c (conflict_report): Additional useless pair of
423 braces to pacify GCC's warnings for `if () if () {} else {}'.
424 * src/lex.c (parse_percent_token): Replace equal_offset with
425 arg_offset.
426 arg is const.
427 Be sure to strdup `arg' when used, since there is no reason for
428 token_buffer not to change.
429
0f37a994
AD
4302001-11-14 Akim Demaille <akim@epita.fr>
431
432 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
433 definition.
434 * src/main.c (main): Use them.
435 Suggested by Hans Aberg.
436
d39d93b8
AD
4372001-11-12 Akim Demaille <akim@epita.fr>
438
439 * src/system.h (ngettext): Now that we use ngettext, be sure to
440 provide a default definition when NLS are not used.
441
9edcd895
AD
4422001-11-12 Akim Demaille <akim@epita.fr>
443
444 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
445 Use @kbd to denote user input.
446 (Language and Grammar): ANSIfy the example.
447 Adjust its layout for info/notinfo.
448 (Location Tracking Calc): Output error messages to stderr.
449 Output locations in a more GNUtically correct way.
450 Fix a couple of Englishos.
451 Adjust @group/@end group pairs.
452
7da99ede
AD
4532001-11-12 Akim Demaille <akim@epita.fr>
454
455 %expext was not functioning at all.
456
457 * src/conflicts.c (expected_conflicts): Set to -1.
458 (conflict_report): Use ngettext.
459 (conflicts_print): Check %expect and make its violation an error.
460 * doc/bison.texinfo (Expect Decl): Adjust.
461 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
462 * tests/regression.at (%expect not enough, %expect right)
463 (%expect too much): New.
464
ba9dda1a
AD
4652001-11-12 Akim Demaille <akim@epita.fr>
466
467 * tests/regression.at (Conflicts): Rename as...
468 (Unresolved SR Conflicts): this.
469 (Solved SR Conflicts): New.
470
337c5bd1
AD
4712001-11-12 Akim Demaille <akim@epita.fr>
472
473 * src/reduce.c (print_results): Rename as...
474 (reduce_output): This.
475 Output to OUT, passed as argument, instead of output_obstack.
476 (dump_grammar): Likewise.
477 (reduce_free): New.
478 Also free V1.
479 (reduce_grammar): No longer call reduce_output, since...
480 * src/print.c (print_results): do it.
481 * src/main.c (main): Call reduce_free;
482
c73a41af
AD
4832001-11-12 Akim Demaille <akim@epita.fr>
484
485 * src/conflicts.c (print_reductions): Accept OUT as argument.
486 Output to it, not to output_obstack.
487 * src/print.c (print_actions): Adjust.
488
0df87bb6
AD
4892001-11-12 Akim Demaille <akim@epita.fr>
490
491 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
492 the result instead of using...
493 (src_total, rrc_total, src_count, rrc_count): Remove.
494 (any_conflicts): Remove.
495 (print_conflicts): Split into...
496 (conflicts_print, conflicts_output): New.
497 * src/conflicts.h: Adjust.
498 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
0f37a994 499 * src/print.c (print_grammar): Issue `\n' between two rules.
0df87bb6
AD
500 * tests/regression.at (Conflicts): New.
501 Reported by Tom Lane.
502
e4d3d4de
AD
5032001-11-12 Akim Demaille <akim@epita.fr>
504
505 * tests/regression.at (Invalid input): Remove, duplicate with
506 ``Invalid input: 1''.
507
6d7d248e
AD
5082001-11-12 Akim Demaille <akim@epita.fr>
509
510 * tests/torture.at (AT_DATA_STACK_TORTURE)
511 (Exploding the Stack Size with Alloca)
512 (Exploding the Stack Size with Malloc): New.
513
e9e4c321
AD
5142001-11-12 Akim Demaille <akim@epita.fr>
515
516 * src/bison.simple (YYSTACK_REALLOC): New.
517 (yyparse) [!yyoverflow]: Use it and free the old stack.
0f37a994 518 Reported by Per Allansson.
e9e4c321 519
5f7e0832
AD
5202001-11-12 Pascal Bart <pascal.bart@epita.fr>
521
522 * src/bison.simple: Define type yystype instead of YYSTYPE, and
523 define CPP macro, which substitute YYSTYPE by yystype.
524 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
525 with yyltype/YYLTYPE. This allows inclusion of the generated
526 header within the parser if the compiler, such as GGC, accepts
527 multiple equivalent #defines.
528 From Akim.
529
e3f1699f
AD
5302001-11-05 Akim Demaille <akim@epita.fr>
531
532 * src/reader.c (symbols_output): New, extracted from...
533 (packsymbols): here.
534 (reader): Adjust.
535
65be0866
AD
5362001-11-05 Akim Demaille <akim@epita.fr>
537
538 * src/lex.c (parse_percent_token): s/quotearg/quote/.
539
e4d910bf
AD
5402001-11-05 Akim Demaille <akim@epita.fr>
541
542 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
543 pattern.
544
951366c1
AD
5452001-11-05 Akim Demaille <akim@epita.fr>
546
547 * src/options.h (struct option_table_struct): set_flags is void*.
548 * src/options.c (longopts): Support `--output' and `%output'.
549 (usage): Adjust.
550 * src/lex.h (tok_setopt): Remove, replaced with...
551 (tok_intopt, tok_stropt): these new guys.
552 * src/lex.c (getopt.h): Not needed.
553 (token_buffer, unlexed_token_buffer): Not const.
554 (percent_table): Promote `-' over `_' in directive names.
555 Active `%name-prefix', `file-prefix', and `output'.
556 (parse_percent_token): Accept possible arguments to directives.
557 Promote `-' over `_' in directive names.
558
d8988b2f
AD
5592001-11-04 Akim Demaille <akim@epita.fr>
560
561 * doc/bison.texinfo (Decl Summary): Split the list into
562 `directives for grammars' and `directives for bison'.
563 Sort'em.
564 Add description of `%name-prefix', `file-prefix', and `output'.
565 Promote `-' over `_' in directive names.
566 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
567 Simplify the description of `--name-prefix'.
568 Promote `-' over `_' in directive names.
569 Promote `--output' over `--output-file'.
570 Fix the description of `--defines'.
571 * tests/output.at: Exercise %file-prefix and %output.
572
6468d18e
AD
5732001-11-02 Akim Demaille <akim@epita.fr>
574
575 * doc/refcard.tex: Update.
576
6b7e85b9
AD
5772001-11-02 Akim Demaille <akim@epita.fr>
578
579 * src/symtab.h (SUNDEF): New.
580 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
581 stand for `uninitialized', instead of 0.
582 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
583 * src/lex.c (lex): Adjust.
584
585 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
586 Number it 0.
587 Let yylex return it instead of a plain 0.
588 Reported by Dick Streefland.
589
cd5aafcf
AD
5902001-11-02 Akim Demaille <akim@epita.fr>
591
592 * tests/regression.at (Mixing %token styles): New test.
593
037ca2f1
AD
5942001-11-02 Akim Demaille <akim@epita.fr>
595
596 * src/reader.c (parse_thong_decl): Formatting changes.
597 (token_translations_init): New, extracted from...
598 (packsymbols): Here.
599 Adjust.
600
270a173c
AD
6012001-11-01 Akim Demaille <akim@epita.fr>
602
603 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
604 Check that `9foo.y' produces correct cpp guards.
605 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
606 guards.
607 Reported by Wwp.
608
561f9a30
AD
6092001-11-01 Akim Demaille <akim@epita.fr>
610
611 * tests/regression.at (Invalid input: 2): New.
612 * src/lex.c (unlexed_token_buffer): New.
613 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
614 too.
615 Reported by Wwp.
616
f987e9d2
AD
6172001-11-01 Akim Demaille <akim@epita.fr>
618
619 * tests/calc.at: Catch up with 1.30.
620 * configure.in: Bump to 1.49a.
621 Adjust to newer Autotest.
622
0846f581
PB
6232001-10-19 Pascal Bart <pascal.bart@epita.fr>
624
625 * src/conflicts.c: Move global variables rrc_total and src_total ...
626 (print_conflicts): here.
627 * src/output.c (output): Free global variable user_toknums.
628 * src/lex.c (token_obstack): Become static.
629
3c1a79b3
AD
6302001-10-18 Akim Demaille <akim@epita.fr>
631
632 * tests/atlocal.in (GCC): Add.
633 * tests/calc.at: s/m4_match/m4_bmatch/.
634 s/m4_patsubst/m4_bpatsubst/.
635 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
636 * configure.in: AC_SUBST(GCC).
637
5d52e7d0
MA
6382001-10-14 Marc Autret <autret_m@epita.fr>
639
640 * src/options.c (create_long_option_table): Fix.
641
631aa1d3
AD
6422001-10-10 Akim Demaille <akim@epita.fr>
643
644 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
645
f6ec6d13
AD
6462001-10-04 Akim Demaille <akim@epita.fr>
647
648 * src/reader.c (parse_union_decl): Push the caracters in
649 union_obstack, not attrs_obstack.
650
342b8b6e
AD
6512001-10-04 Akim Demaille <akim@epita.fr>
652
653 Merge in the branch 1.29.
654
655 * src/reader.c (packsymbols): Use a temporary obstack for
656 `%%tokendef', since output_stack is already used elsewhere.
657
658 2001-10-02 Akim Demaille <akim@epita.fr>
659
660 Bump 1.29d.
661
662 2001-10-02 Akim Demaille <akim@epita.fr>
663
664 Version 1.29c.
665
666 2001-10-02 Akim Demaille <akim@epita.fr>
667
668 * tests/regression.at (Invalid CPP headers): New.
669 From Alexander Belopolsky.
670 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
671
672 2001-10-02 Akim Demaille <akim@epita.fr>
673
674 * tests/regression.at (Invalid input): New.
675 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
676 Reported by Shura.
677
678 2001-10-02 Akim Demaille <akim@epita.fr>
679
680 * tests/calc.at: Now that --debug works, the tests must be adjusted.
681
682 2001-10-02 Akim Demaille <akim@epita.fr>
683
684 * src/output.c (output_parser): Assert `skeleton'.
685 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
686 systems.
687 From Shura.
688
689 2001-10-01 Marc Autret <autret_m@epita.fr>
690
691 * src/lex.h: Echo modifications.
692 * src/lex.c (unlex): Parameter is now token_t.
693 From Hans Aberg.
694
695 2001-10-01 Marc Autret <autret_m@epita.fr>
696
697 * src/main.c: Include lex.h.
698 From Hans Aberg.
699
700 2001-09-29 Akim Demaille <akim@epita.fr>
701
702 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
703
704 2001-09-28 Akim Demaille <akim@epita.fr>
705
706 * tests/testsuite.at: Update to newer Autotest.
707 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
708
709 2001-09-27 Akim Demaille <akim@epita.fr>
710
711 Position independent wrapper.
712
713 * tests/bison: Remove.
714 * tests/bison.in: New.
715 * configure.in: Adjust.
716
717 2001-09-27 Paul Eggert <eggert@twinsun.com>
718
719 Port quotearg fixes from tar 1.13.24.
720
721 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
722 tm to be declared.
723 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
724 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
725
726 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
727 * m4/mbrtowc.m4: New file.
728 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
729 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
730
731 2001-09-27 Akim Demaille <akim@epita.fr>
732
733 Bump to 1.29c.
734
735 2001-09-27 Akim Demaille <akim@epita.fr>
736
737 Version 1.29b.
738
739 2001-09-25 Akim Demaille <akim@epita.fr>
740
741 * src/system.h: Include `xalloc.h'.
742 Remove it from the C files.
743 * src/files.c (output_files): Free the obstacks.
744 * src/lex.c (init_lex): Rename as...
745 (lex_init): this.
746 (lex_free): New.
747 * src/main.c (main): Use it.
748
749 2001-09-24 Marc Autret <autret_m@epita.fr>
750
751 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
752 to output informations in fout (FILE*).
753 (open_graph, close_graph): Likewise.
754 (output_graph, output_edge, output_node): Likewise.
755 * src/vcg.h: Update function prototypes.
756 * src/print_graph.c (print_graph): Open output graph file.
757 (print_actions): Adjust.
758 * src/files.h: Remove extern declaration.
759 * src/files.c: Remove graph_obstack declaration.
760 (open_files): Remove graph_obstack initialization.
761 (output_files): Remove graph_obstack saving.
762
763 2001-09-24 Marc Autret <autret_m@epita.fr>
764
765 * src/files.c (compute_output_file_names): Fix.
766
767 2001-09-24 Marc Autret <autret_m@epita.fr>,
768 Akim Demaille <akim@epita.fr>
769
770 * src/reader.c (reader): Remove call to free_symtab ().
771 * src/main.c (main): Call it here.
772 Include symtab.h.
773 * src/conflicts.c (initialize_conflicts): Rename as...
774 (solve_conflicts): this.
775 * src/print.c (print_core, print_actions, print_state)
776 (print_grammar): Dump to a file instead a `output_obstack'.
777 (print_results): Dump `output_obstack', and then proceed with the
778 FILE *.
779 * src/files.c (compute_output_file_names, close_files): New.
780 (output_files): Adjust.
781 * src/main.c (main): Adjust.
782
783 2001-09-23 Marc Autret <autret_m@epita.fr>
784
785 * src/files.c (compute_header_macro): Computes header macro name
786 from spec_defines_file when given.
787
788 2001-09-23 Marc Autret <autret_m@epita.fr>
789
790 * src/files.c (output_files): Add default extensions.
791
792 2001-09-22 Akim Demaille <akim@epita.fr>
793
794 * src/conflicts.c (finalize_conflicts): Rename as...
795 (free_conflicts): this.
796
797 2001-09-22 Akim Demaille <akim@epita.fr>
798
799 * src/gram.c (gram_free): Rename back as...
800 (dummy): this.
801 (output_token_translations): Free `token_translations'.
802 * src/symtab.c (free_symtab): Free the tag field.
803
804 2001-09-22 Akim Demaille <akim@epita.fr>
805
806 Remove `translations' as it is always set to true.
807
808 * src/gram.h: Adjust.
809 * src/reader.c (packsymbols, parse_token_decl): Adjust
810 * src/print.c (print_grammar): Adjust.
811 * src/output.c (output_token_translations): Adjust.
812 * src/lex.c (lex): Adjust.
813 * src/gram.c: Be sure the set pointers to NULL.
814 (dummy): Rename as...
815 (gram_free): this.
816
817 2001-09-22 Akim Demaille <akim@epita.fr>
818
819 * configure.in: Invoke AM_LIB_DMALLOC.
820 * src/system.h: Use dmalloc.
821 * src/LR0.c: Be sure to have pointers initialized to NULL.
822 (allocate_itemsets): Allocate kernel_items only if needed.
823
824 2001-09-22 Akim Demaille <akim@epita.fr>
825
826 * configure.in: Bump to 1.29b.
827 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
828 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
829 need xmalloc.c in calc.y.
830 From Pascal Bart.
831
832 2001-09-21 Akim Demaille <akim@epita.fr>
833
834 Version 1.29a.
835 * Makefile.maint, config/config.guess, config/config.sub,
836 * config/missing: Update from masters.
837 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
838 upon package.m4.
839 * configure.in (ALL_LINGUAS): Add `tr'.
840
841 2001-09-21 Akim Demaille <akim@epita.fr>
842
843 * tests/Makefile.am (package.m4): Move to...
844 ($(srcdir)/$(TESTSUITE)): here.
845
846 2001-09-20 Akim Demaille <akim@epita.fr>
847
848 * src/complain.c: No longer try to be standalone: use system.h.
849 Don't assume __STDC__ is defined to 1. Just test if it is defined.
850 * src/complain.h: Likewise.
851 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
852 Remove the unused variable `n'.
853 From Albert Chin-A-Young.
854
855 2001-09-18 Marc Autret <autret_m@epita.fr>
856
857 * doc/bison.1: Update.
858 * doc/bison.texinfo (Bison Options): Update --defines and --graph
859 descriptions.
860 (Option Cross Key): Update.
861 Add --graph.
862
863 2001-09-18 Marc Autret <autret_m@epita.fr>
864
865 * tests/regression.at: New test (comment in %union).
866
867 2001-09-18 Marc Autret <autret_m@epita.fr>
868
869 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
870 do that.
871 Reported by Keith Browne.
872
873 2001-09-18 Marc Autret <autret_m@epita.fr>
874
875 * tests/output.at: Add tests for --defines and --graph.
876
877 2001-09-18 Marc Autret <autret_m@epita.fr>
878
879 * tests/output.at: Removes tests of %{header,src}_extension features.
880
881 2001-09-18 Akim Demaille <akim@epita.fr>
882
883 * tests/Makefile.am (package.m4): New.
884 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
885 (_AT_CHECK_CALC_ERROR): Likewise.
886 Factor the `, ' part of verbose error messages.
887
888 2001-09-18 Marc Autret <autret_m@epita.fr>
889
890 * src/getargs.c (longopts): Declare --defines and --graph as options
891 with optional arguments.
892 * src/files.h: Add extern declarations.
893 * src/files.c (spec_graph_file, spec_defines_file): New.
894 (output_files): Update.
895 Remove CPP-outed code.
896
897 2001-09-18 Marc Autret <autret_m@epita.fr>
898
899 Turn off %{source,header}_extension feature.
900
901 * src/files.c (compute_exts_from_gf): Update.
902 (compute_exts_from_src): Update.
903 (output_files): CPP-out useless code.
904 * src/files.h: Remove {header,source}_extension extern declarations.
905 * src/reader.c (parse_dquoted_param): CPP-out.
906 (parse_header_extension_decl): Remove.
907 (parse_source_extension_decl): Remove.
908 (read_declarations): Remove cases tok_{hdrext,srcext}.
909 * src/lex.c (percent_table): Remove {header,source}_extension entries.
910 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
911
912 2001-09-10 Akim Demaille <akim@epita.fr>
913
914 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
915 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
916 (AT_CHECK_OUTPUT): this.
917 Merely check ls' exit status, its output is useless.
918
919 2001-09-10 Akim Demaille <akim@epita.fr>
920
921 * tests/calc.at: Use m4_match.
922 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
923
924 2001-09-10 Marc Autret <autret_m@epita.fr>,
925 Akim Demaille <akim@epita.fr>
926
927 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
928 enum color_e.
929 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
930 to `normal'.
931 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
932 * src/lex.h: Adjust prototype.
933 (token_t): Add `tok_undef'.
934 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
935 (parse_percent_token): Now returns token_t.
936 Add default statement in switch.
937 (lex): Separate `c' as an input variable, from the token_t result
938 part.
939 (unlexed): Is a token_t.
940
941 2001-09-10 Akim Demaille <akim@epita.fr>
942
943 * configure.in: Bump to 1.29a.
944
945 2001-09-07 Akim Demaille <akim@epita.fr>
946
947 Version 1.29.
948
949 2001-08-30 Akim Demaille <akim@epita.fr>
950
951 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
952 * m4/atconfig.m4: Remove.
953 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
954 * tests/bison: New.
955 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
956 m4_if, m4_patsubst, and m4_regexp.
957 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
958 `input' file instead of echo.
959
960 2001-08-29 Akim Demaille <akim@epita.fr>
961
962 Bump to 1.28e.
963
964 2001-08-29 Akim Demaille <akim@epita.fr>
965
966 Version 1.28d.
967
968 2001-08-29 Paul Eggert <eggert@twinsun.com>
969
970 * src/bison.simple (yyparse): Don't take the address of an
971 item before the start of an array, as that doesn't conform to
972 the C Standard.
973
974 2001-08-29 Robert Anisko <anisko_r@epita.fr>
975
976 * doc/bison.texinfo (Location Tracking Calc): New node.
977
978 2001-08-29 Paul Eggert <eggert@twinsun.com>
979
980 * src/output.c (output): Do not define const, as this now
981 causes more problems than it cures.
982
983 2001-08-29 Akim Demaille <akim@epita.fr>
984
985 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
986 the nodes.
987 Be sure to tag the `detailmenu'.
988
989 2001-08-29 Akim Demaille <akim@epita.fr>
990
991 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
992 download in a tmp dir.
993
994 2001-08-28 Marc Autret <autret_m@epita.fr>
995
996 * config/depcomp: New file.
997
998 2001-08-28 Marc Autret <autret_m@epita.fr>
999
1000 * doc/bison.1 (mandoc): Adjust.
1001 From Juan Manuel Guerrero.
1002
1003 2001-08-28 Marc Autret <autret_m@epita.fr>
1004
1005 * src/print_graph.c (print_state): Fix.
1006
1007 2001-08-27 Marc Autret <autret_m@epita.fr>
1008
1009 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1010 char * members.
1011 Echo modifications to the functions prototypes.
1012 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1013
1014 2001-08-27 Marc Autret <autret_m@epita.fr>
1015
1016 * src/vcg.c: Include `xalloc.h'.
1017 (add_colorentry): New.
1018 (add_classname): New.
1019 (add_infoname): New.
1020 * src/vcg.h: Add new prototypes.
1021
1022 2001-08-27 Akim Demaille <akim@epita.fr>
1023
1024 * Makefile.maint: Sync. again with CVS Autoconf.
1025
1026 2001-08-27 Akim Demaille <akim@epita.fr>
1027
1028 * Makefile.maint: Formatting changes.
1029 (po-update, cvs-update, update): New targets.
1030 (AMTAR): Remove.
1031
1032 2001-08-27 Akim Demaille <akim@epita.fr>
1033
1034 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1035 * Makefile.maint: Sync. with CVS Autoconf.
1036
1037 2001-08-27 Marc Autret <autret_m@epita.fr>
1038
1039 * src/vcg.h (struct infoname_s): New.
1040 (struct colorentry_s): New.
1041 (graph_s): New fields {vertical,horizontal}_order in structure.
1042 Add `infoname' field.
1043 Add `colorentry' field;
1044 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1045 (G_HORIZONTAL_ORDER): New.
1046 (G_INFONAME): New.
1047 (G_COLORENTRY): New.
1048 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1049 Add output of `infoname'.
1050 Add output of `colorentry'.
1051
1052 2001-08-27 Marc Autret <autret_m@epita.fr>
1053
1054 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1055 This one shadowed a global parameter.
1056
1057 2001-08-24 Marc Autret <autret_m@epita.fr>
1058
1059 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1060 instead of `unsigned'.
1061 (print_state): Do not call obstack_object_size () in obstack_grow ()
1062 to avoid macro variables shadowing.
1063
1064 2001-08-23 Marc Autret <autret_m@epita.fr>
1065
1066 * src/lex.c (percent_table): Typo: s/naem/name/.
1067 Add graph option.
1068 Normalize new options declarations.
1069
1070 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1071
1072 * tests/suite.at: Exercise %header_extension and %source_extension.
1073
1074 2001-08-16 Marc Autret <autret_m@epita.fr>
1075
1076 * src/reader.c (parse_dquoted_param): New.
1077 (parse_header_extension_decl): Use it.
1078 (parse_source_extension_decl): Likewise.
1079
1080 2001-08-16 Marc Autret <autret_m@epita.fr>
1081
1082 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1083 (get_xxxx_str): Use assert () instead of complain ().
1084 Remove return invokations in default cases.
1085 (get_decision_str): Modify default behaviour. Remove second argument.
1086 Echo modifications on calls.
1087 (output_graph): Fix.
1088
1089 2001-08-16 Marc Autret <autret_m@epita.fr>
1090
1091 * src/getargs.c (usage): Update with ``-g, --graph''.
1092
1093 2001-08-16 Marc Autret <autret_m@epita.fr>
1094
1095 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1096 (Option Cross Key): Likewise.
1097 * doc/bison.1: Update.
1098
1c8c2190
PB
10992001-09-25 Pascal Bart <pascal.bart@epita.fr>
1100
1101 * src/output.c (output_master_parser): Don't finish action_obstack.
1102 (output_parser): Don't care about the muscle action, here.
1103 (prepare): Copy the action_obstack in the action muscle.
1104 (output): Free action_obstack.
1105
180d45ba
PB
11062001-09-23 Pascal Bart <pascal.bart@epita.fr>
1107
1108 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1109 will contain `%union' declaration.
1110 (parse_union_decl): Delete #line directive output.
1111 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1112 informations about %union.
1113 (parse_union_decl): Copy the union_obstack in the muscle stype.
1114 * src/bison.simple: Add new #line directive.
1115 Add typdef %%stype YYSTYPE.
1116
c51d1a19
PB
11172001-09-23 Pascal Bart <pascal.bart@epita.fr>
1118
1119 * src/bison.simple: Add new `#line' directive.
1120
6f9344da
PB
11212001-09-22 Pascal Bart <pascal.bart@epita.fr>
1122
1123 * src/bison.simple: New `#line' directive.
1124 * src/output.c (output_parser): Support new dynamic muscle input_line.
1125
652def80
MA
11262001-09-22 Marc Autret <autret_m@epita.fr>
1127
1128 * src/output.c (output_master_parser): New.
1129 (output_parser): Be more re-entrant.
1130
25b222fa
MA
11312001-09-21 Marc Autret <autret_m@epita.fr>
1132
1133 * src/reader.c (copy_definition, parse_union_decl): Update and use
1134 `linef' muscle.
1135 (copy_action): Likewise.
1136 Use obstack_1grow ().
1137 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1138
6bc35ae5
MA
11392001-09-21 Marc Autret <autret_m@epita.fr>
1140
1141 * src/options.c (option_table): Adjust.
1142 * src/lex.c (parse_percent_token): Fix.
1143
c0629aa1
PB
11442001-09-20 Pascal Bart <pascal.bart@epita.fr>
1145
1146 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 1147
82b6d266
PB
11482001-09-20 Pascal Bart <pascal.bart@epita.fr>
1149
1150 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1151 is now an option_table_struct*.
1152 (option_strcmp): New function option_strcmp.
1153 (parse_percent_token): Call option_strcmp.
1154 * src/getargs.c (xalloc.h, options.h): Include it.
1155 (getargs): Call create_long_option_table.
1156 (getargs): Free longopts at the end of the function.
1157 (shortopts): Move in options.c.
1158 * src/options.c (create_long_option_table): New function. Convert
1159 information from option_table to option structure.
1160 * src/reader.c (options.h): Include it.
1161
1162 * src/Makefile.am: Adjust.
1163 * src/options.c (option_table): Create from longopts and percent_table.
1164 * src/getargs.c (longopts): Delete.
1165 * src/lex.c (struct percent_table_struct): Delete.
1166 (percent_table): Delete.
1167 (options.h): Include it.
1168 * src/options.c: Create.
1169 * src/options.h: Create.
1170 Declare enum opt_access_e.
1171 Define struct option_table_struct.
1172
75f5aaea
MA
11732001-09-20 Marc Autret <autret_m@epita.fr>
1174
1175 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1176 sections of Bison.
1177
f508cb0a
PB
11782001-09-19 Pascal Bart <pascal.bart@epita.fr>
1179
1180 * src/bison.simple: s/%%filename/%%skeleton.
1181 * src/muscle_tab.c (getargs.h): Include it.
1182 (muscle_init): Insert new muscle skeleton.
1183
13105fc1
PB
11842001-09-18 Pascal Bart <pascal.bart@epita.fr>
1185
1186 * src/output.c (output_parser): Delete unused variable actions_dumped.
1187
b0c4483e
PB
11882001-09-07 Pascal Bart <pascal.bart@epita.fr>
1189
1190 * src/output.c (output): Delete call to reader_output_yylsp.
1191 * src/reader.c (reader): Likewise.
1192 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 1193
11d82f03
MA
11942001-09-02 Marc Autret <autret_m@epita.fr>
1195
1196 * src/reader.c: Include muscle_tab.h.
1197 (parse_union_decl): Update.
1198 (parse_macro_decl): Rename parse_muscle_decl.
1199 Update to use renamed functions and variable.
1200 (read_declarations, copy_action, read_additionnal_code, : Updated
1201 with correct variables and functions names.
1202 (packsymbols, reader): Likewise.
342b8b6e 1203
11d82f03 1204 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 1205
11d82f03
MA
1206 * src/output.c: Include muscle_tab.h
1207 In all functions using macro_insert, change by using muscle_insert ().
1208 (macro_obstack): Rename muscle_obstack.
1209 Echo modifications in the whole file.
1210 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1211 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1212 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1213
1214 * src/muscle_tab.h: Update double inclusion macros.
1215 (macro_entry_s): Rename muscle_entry_s.
1216 Update prototypes.
342b8b6e 1217
11d82f03
MA
1218 * src/muscle_tab.c: Include muscle_tab.h.
1219 Rename macro_tabble to muscle_table.
1220 (mhash1, mhash2, mcmp): Use muscle_entry.
1221 (macro_init): Rename muscle_init. Update.
1222 (macro_insert): Rename muscle_insert. Update.
1223 (macro_find): Rename muscle_find. Update.
1224
1225 * src/main.c: Include muscle_tab.h.
1226 (main): Call muscle_init ().
1227 * src/Makefile.am (bison_SOURCES): Echo modifications.
1228
93a37297
MA
12292001-09-02 Marc Autret <autret_m@epita.fr>
1230
f753cd62 1231 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 1232
f753cd62
MA
1233 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1234
12352001-09-02 Marc Autret <autret_m@epita.fr>
1236
1237 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 1238
682d48cd
PB
12392001-09-01 Pascal Bart <pascal.bart@epita.fr>
1240
342b8b6e 1241 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
1242 filename.
1243
087c8fda
MA
12442001-09-01 Marc Autret <autret_m@epita.fr>
1245
1246 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1247 to an explicit value to activate the feature. We do it here.
1248
dda680cb
PB
12492001-08-31 Pascal Bart <pascal.bart@epita.fr>
1250
1251 * src/output.c (prepare): Delete the `filename' muscule insertion.
1252 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1253 (parse_union_decl): Likewise.
1254 * src/macrotab.c (macro_init): Initialize filename by infile.
1255
9e644e64
MA
12562001-08-31 Marc Autret <autret_m@epita.fr>
1257
1258 * src/bison.simple (YYLSP_NEEDED): New definition.
1259 * src/output.c (prepare): Add macro insertion of `locations_flag'
1260
17da6427
PB
12612001-08-31 Pascal Bart <pascal.bart@epita.fr>
1262
1263 * src/output.c (prepare): Delete insertion of previous muscles,
1264 and insert the `prefix' muscles.
1265 * src/macrotab.c (macro_init): Likewise.
1266 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 1267 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
1268 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1269 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 1270 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
1271 name_prefix.
1272
e8cb70b9
PB
12732001-08-31 Pascal Bart <pascal.bart@epita.fr>
1274
1275 * src/main.c (main): Standardize.
1276 * src/output.c (output_table_data, output_parser): Likewise.
1277 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1278
63c2d5de
MA
12792001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1280
342b8b6e 1281 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
1282 %%epilogue.
1283 * src/output.c (output): Rename %%declarations to %%prologue.
1284 * src/bison.simple: Echo modifications.
342b8b6e 1285
d8cb5183
MA
12862001-08-31 Marc Autret <autret_m@epita.fr>
1287
1288 * src/reader.c (readgram): CleanUp.
1289 (output_token_defines): Likewise.
1290 (packsymbols): Likewise.
1291 (reader): Likewise.
1292 * src/output.c (output): CPP-out useless code.
1293
6c686258
PB
12942001-08-31 Pascal Bart <pascal.bart@epita.fr>
1295
342b8b6e 1296 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
1297 output_trailers and output_headers.
1298 * src/output.h: Remove obsolete functions prototypes of output_headers
1299 and output_trailers.
1300
8f451ef7
PB
13012001-08-30 Pascal Bart <pascal.bart@epita.fr>
1302
1303 * src/main.c: Include macrotab.h.
342b8b6e 1304 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
1305 Adjust functions prototypes.
1306 * src/macrotab.c (macro_insert): Constify key and value.
1307 (macro_find): Constify key.
1308 (macro_insert): Include 'xalloc.h'
1309 (macro_insert): Use XMALLOC.
1310 (macro_find): Constify return value.
1311 * src/output.c (output_table_data): Rename table to table_data.
1312 (output_parser): Constify macro_key, macro_value.
1313
997b6fd0 13142001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
1315
1316 * src/reader.c (parse_skel_decl): New.
342b8b6e 1317 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
1318 * src/lex.h (token_t): New token `tok_skel'.
1319 * src/lex.c (percent_table): Add skeleton option entry.
1320 Standardize.
1321
ff48177d
MA
13222001-08-29 Marc Autret <autret_m@epita.fr>
1323
1324 * src/bison.simple: Add %%user_code directive at the end.
1325 * src/reader.c (read_additionnal_code): New.
1326 (reader): Use it.
1327 * src/output.c (output_program): Remove.
1328 (output): Update.
1329
b33160bf
MA
13302001-08-28 Marc Autret <autret_m@epita.fr>
1331
1332 * src/output.c (output_actions): Clean up.
4e5caae2 1333 (output_gram): CPP-out useless code.
b33160bf
MA
1334 * src/reader.c (reader): Clean up, CPP-out useless code.
1335
d1a2daf7
PB
13362001-08-28 Pascal Bart <pascal.bart@epita.fr>
1337
342b8b6e 1338 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 1339 directive.
d1a2daf7
PB
1340 * src/bison.simple: Add `%%definitions'.
1341
2b763dfe
MA
13422001-08-28 Marc Autret <autret_m@epita.fr>
1343
1344 * config/depcomp: New file.
1345
f1a87ef6
PE
13462001-08-27 Paul Eggert <eggert@twinsun.com>
1347
1348 * src/bison.simple (yyparse): Don't take the address of an
1349 item before the start of an array, as that doesn't conform to
1350 the C Standard.
1351
82e236e2
RA
13522001-08-27 Robert Anisko <robert.anisko@epita.fr>
1353
f1a87ef6 1354 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
1355 obstack. It was done too late here.
1356
1357 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1358 completely wrong.
1359 (reader): Initialize the macro obstack here, since we need it to grow
1360 '%define' directives.
1361
1362 * src/reader.h: Declare the macro obstack as extern.
1363
b0cfa28a
RA
13642001-08-27 Robert Anisko <robert.anisko@epita.fr>
1365
1366 * src/output.c (output_parser): Fix. Store single '%' characters in
1367 the output obstack instead of throwing them away.
1368
6fc74234
AD
13692001-08-27 Akim Demaille <akim@epita.fr>
1370
1371 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1372
9c76d118
RA
13732001-08-25 Robert Anisko <robert.anisko@epita.fr>
1374
1375 * lib/Makefile.am: Adjust.
1376
a8289c62
RA
13772001-08-25 Robert Anisko <robert.anisko@epita.fr>
1378
1379 * src/bison.simple: Update and add '%%' directives.
1380
b6610515
RA
13812001-08-25 Robert Anisko <robert.anisko@epita.fr>
1382
1383 * src/reader.c (reader): Remove calls to 'output_headers' and
1384 'output_trailers'. Remove some C output.
1385 (readgram): Disable a piece of code that was writing a default
1386 definition for 'YYSTYPE'.
1387 (reader_output_yylsp): Remove.
1388 (packsymbols): Output token defintions to a macro.
1389 (copy_definition): Disable C output.
6fc74234 1390
b6610515
RA
1391 * src/reader.c (parse_macro_decl): New function used to parse macro
1392 declarations.
1393 (copy_string2): Put the body of copy_string into this new function.
1394 Add a parameter to let the caller choose whether he wants to copy the
1395 string delimiters or not.
1396 (copy_string): Be a simple call to copy_string2 with the last argument
1397 bound to true.
1398 (read_declarations): Add case for macro definition.
1399 (copy_identifier): New.
6fc74234 1400 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
1401 rather than lex.
1402
26f609ff
RA
14032001-08-25 Robert Anisko <robert.anisko@epita.fr>
1404
1405 * src/output.c (prepare): Add prefixed names.
1406 (output_parser): Output semantic actions.
1407 (output_parser): Fix bug on '%%line' directives.
6fc74234 1408
26f609ff
RA
1409 * src/output.c (output_headers): Remove. The C code printed by this
1410 function should now be in the skeletons.
1411 (output_trailers): Remove.
1412 (output): Disable call to 'reader_output_yylsp'.
1413 (output_rule_data): Do not output tables to the table obstack.
1414
1415 * src/output.c: Remove some C dedicated output.
1416 Improve the use of macro and output obstacks.
1417 (output_defines): Remove.
6fc74234 1418
26f609ff
RA
1419 * src/output.c (output_token_translations): Associate 'translate'
1420 table with a macro. No output to the table obstack.
1421 (output_gram): Same for 'rhs' and 'prhs'.
1422 (output_stos): Same for 'stos'.
1423 (output_rule_data): Same for 'r1' and 'r2'.
1424 (token_actions): Same for 'defact'.
1425 (goto_actions): Same for 'defgoto'.
1426 (output_base): Same for 'pact' and 'pgoto'.
1427 (output_table): Same for 'table'.
1428 (output_check): Same for 'check'.
6fc74234 1429
26f609ff
RA
1430 * src/output.c (output_table_data): New function.
1431 (output_short_table): Remove.
1432 (output_short_or_char_table): Remove.
6fc74234 1433
26f609ff
RA
1434 * src/output.c (output_parser): Replace most of the skeleton copy code
1435 with something new. Skeletons are now processed character by character
1436 rather than line by line, and Bison looks for '%%' macros. This is the
1437 first step in making Bison's output process (a lot) more flexible.
1438 (output_parser): Use the macro table.
1439
6f43b113
RA
14402001-08-25 Robert Anisko <robert.anisko@epita.fr>
1441
1442 * src/main.c (main): Initialize the macro table.
1443
dd3127cf
RA
14442001-08-25 Robert Anisko <robert.anisko@epita.fr>
1445
1446 * src/lex.c (percent_table): Add tok_define.
1447 * src/lex.h: Add tok_define.
1448
aa321494
RA
14492001-08-25 Robert Anisko <robert.anisko@epita.fr>
1450
1451 * src/macrotab.c: New file.
1452 * src/macrotab.h: New file.
1453 * src/Makefile.am: Update.
1454
68bd3b6b
RA
14552001-08-25 Robert Anisko <robert.anisko@epita.fr>
1456
1457 * lib/hash.c: New file.
1458 * lib/hash.h: New file.
1459 * lib/Makefile.am: Update.
1460
45f8dd1e
AD
14612001-08-15 Akim Demaille <akim@epita.fr>
1462
1463 Version 1.28c.
1464
40a64a7a 14652001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
1466
1467 * src/reader.c (readgram): Indent output macro YYSTYPE.
1468 (packsymbols): Likewise.
1469 (output_token_defines): Likewise.
1470 * src/files.c: Standardize.
1471 (compute_header_macro): New.
1472 (defines_obstack_save): New. Use compute_header_macro.
1473 (output_files): Update. Use defines_obstack_save.
1474
f9a8293a
AD
14752001-08-15 Akim Demaille <akim@epita.fr>
1476
1477 * doc/bison.texinfo (Table of Symbols): Document
1478 YYSTACK_USE_ALLOCA.
1479
150ca7a7
AD
14802001-08-15 Akim Demaille <akim@epita.fr>
1481
1482 * missing: Update from CVS Automake.
1483 * config/config.guess, config/config.sub, config/texinfo.tex:
1484 Update from gnu.org.
1485
69b5cec4
AD
14862001-08-15 Akim Demaille <akim@epita.fr>
1487
1488 * Makefile.maint: Sync with CVS Autoconf.
1489
f2b5126e
PB
14902001-08-14 Pascal Bart <pascal.bart@epita.fr>
1491
69b5cec4 1492 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
1493 `fdl.texi'.
1494 * doc/fdl.texi: Add to package.
1495
4ecbf796
MA
14962001-08-14 Marc Autret <autret_m@epita.fr>
1497
1498 Turn on %{source,header}_extension features.
1499
69b5cec4 1500 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
1501 source_extension.
1502 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 1503 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
1504 between options.
1505
95fb5662
MA
15062001-08-14 Marc Autret <autret_m@epita.fr>
1507
1508 * src/files.c (compute_base_names): Add extensions computing when
1509 `--file-prefix' used.
1510 Standardize function calls.
1511
78d09da9
MA
15122001-08-13 Marc Autret <autret_m@epita.fr>
1513
69b5cec4 1514 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
1515 defining it (defined but null disables alloca).
1516
5a009f2c
MA
15172001-08-13 Marc Autret <autret_m@epita.fr>
1518
1519 * src/bison.simple (_yy_memcpy): CPP reformat.
1520
1e41465a
PB
15212001-08-13 Pascal Bart <pascal.bart@epita.fr>
1522
1523 * tests/atconfig.in (CPPFLAGS): Fix.
1524
c67a198d
PB
15252001-08-10 Pascal Bart <pascal.bart@epita.fr>
1526
79282c6c 1527 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
1528 `gpl.texi'.
1529 * doc/gpl.texi: Add to package.
1530
09a6de7e
MA
15312001-08-10 Marc Autret <autret_m@epita.fr>
1532
1533 * src/print_graph.h: Fix.
1534 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1535
b77b9ee0
AD
15362001-08-10 Akim Demaille <akim@epita.fr>
1537
1538 * src/system.h: Provide default declarations for stpcpy, strndup,
1539 and strnlen.
1540
3e259915
MA
15412001-08-10 Robert Anisko <anisko_r@epita.fr>
1542
1543 * doc/bison.texinfo (Locations): Update @$ stuff.
1544
ca96bc2d
MA
15452001-08-09 Robert Anisko <anisko_r@epita.fr>
1546
1547 * src/bison.simple (YYLLOC_DEFAULT): Update.
1548 (yyparse): Adjust.
1549
fdc6758b
MA
15502001-08-08 Marc Autret <autret_m@epita.fr>
1551
b77b9ee0 1552 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1553 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1554 Reported by Fabrice Bauzac.
957d4dbf 1555
600cad3b
MA
15562001-08-08 Marc Autret <autret_m@epita.fr>
1557
1558 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1559 * src/vcg.c (output_node): Fix.
1560 * src/vcg.h: Cleanup.
1561 * src/print_graph.c: Add comments.
b77b9ee0 1562 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1563 the VCG graph output.
b77b9ee0 1564 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1565 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1566 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1567 blue.
1568 Get the current node name and node_obstack by argument.
1569 (node_obstack): New variable.
1570 (print_state): Manage node_obstack.
1571 (print_core): Use node_obstack given by argument.
1572 A node is not only computed here but in print_actions also.
1573 (print_graph): CPP out useless code instead of commenting it.
1574
976e528f
AD
15752001-08-07 Pascal Bart <pascal.bart@epita.fr>
1576
1577 * tests/atconfig.in (CPPFLAGS): Fix.
1578
20e8e5ca
AD
15792001-08-07 Akim Demaille <akim@epita.fr>
1580
1581 * src/print_graph.c (quote): New.
1582 (print_core): Use it.
1583
957d4dbf 15842001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1585
3e3da797
AD
1586 * src/vcg.c (complain.h): Include it.
1587 Unepitaize `return' invocations.
c4b66126 1588 [NDEBUG] (main): Remove.
79282c6c 1589 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1590 * src/files.c (open_files): Initialize graph_obstack.
1591 * src/print_graph.c (print_actions): CPP out useless code.
1592 (print_core): Don't output the last `\n' in labels.
1593 Use `quote'.
1594 * src/files.c (output_files): Output the VCG file.
1595 * src/main.c (main): Invoke print_graph ();
3e3da797 1596
957d4dbf 15972001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1598
1599 Automaton VCG graph output.
1600 Using option ``-g'' or long option ``--graph'', you can generate
1601 a gram_filename.vcg file containing a VCG description of the LALR (1)
1602 automaton of your grammar.
1603
1604 * src/main.c: Call to print_graph() function.
1605 * src/getargs.h: Update.
1606 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1607 (graph_flag): New flag.
1608 (longopts): Update.
1609 (getargs): Add case `g'.
1610 * src/files.c (graph_obstack): New obstack struct.
1611 (open_files): Initialize new obstack.
1612 (output_files): Saves graph_obstack if required.
1613 * src/files.h (graph_obstack): New extern declaration.
1614 * src/Makefile.am: Add new source files.
1615
957d4dbf 16162001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1617
1618 * src/print_graph.c, src/print_graph.h (graph): New.
1619 * src/vcg.h: New file.
1620 * src/vcg.c: New file, VCG graph handling.
1621
7333d403
AD
16222001-08-06 Marc Autret <autret_m@epita.fr>
1623
1624 Add of %source_extension and %header_extension which specify
1625 the source or/and the header output file extension.
1626
1627 * src/files.c (compute_base_names): Remove initialisation of
1628 src_extension and header_extension.
1629 (compute_exts_from_gf): Update.
1630 (compute_exts_from_src): Update.
1631 (output_files): Update.
1632 * src/reader.c (parse_header_extension_decl): New.
1633 (parse_source_extension_decl): New.
1634 (read_declarations): New case statements for the new tokens.
1635 * src/lex.c (percent_table): Add entries for %source_extension
1636 and %header_extension.
1637 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1638
84163231
AD
16392001-08-06 Marc Autret <autret_m@epita.fr>
1640
1641 * configure.in: Bump to 1.28c.
1642 * doc/bison.texinfo: Texinfo thingies.
1643
8303fc42
AD
16442001-08-04 Pascal Bart <pascal.bart@epita.fr>
1645
1646 * tests/atconfig.in (CPPFLAGS): Add.
1647 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1648
70a84437
AD
16492001-08-03 Akim Demaille <akim@epita.fr>
1650
1651 Version 1.28b.
1652
2ce10144
AD
16532001-08-03 Akim Demaille <akim@epita.fr>
1654
1655 * tests/Makefile.am (check-local): Ship testsuite.
1656 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1657 Include `string.h'.
1658
1e3e4bc1
AD
16592001-08-03 Akim Demaille <akim@epita.fr>
1660
1661 * configure.in: Try using -Wformat when compiling.
1662
42b45b7f
AD
16632001-08-03 Akim Demaille <akim@epita.fr>
1664
1665 * configure.in: Bump to 1.28b.
1666
8f13fe33
AD
16672001-08-03 Akim Demaille <akim@epita.fr>
1668
1669 * src/complain.c: Adjust strerror_r portability issues.
1670
b37ba92c
AD
16712001-08-03 Akim Demaille <akim@epita.fr>
1672
1673 Version 1.28a.
1674
b0ce6046
AD
16752001-08-03 Akim Demaille <akim@epita.fr>
1676
1677 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1678 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1679 * src/getargs.c: Include complain.h.
1680 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1681 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1682
d01c415b
AD
16832001-08-03 Akim Demaille <akim@epita.fr>
1684
1685 * src/reader.c (readgram): Display hidden chars in error messages.
1686
459dd1a6
AD
16872001-08-03 Akim Demaille <akim@epita.fr>
1688
1689 Update to gettext 0.10.39.
1690
53b74c0c
AD
16912001-08-03 Akim Demaille <akim@epita.fr>
1692
1693 * lib/strspn.c: New.
1694
234a3be3
AD
16952001-08-01 Marc Autret <autret_m@epita.fr>
1696
1697 * doc/bison.texinfo: Update.
1698 * doc/bison.1 (mandoc): Update.
1699 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1700 * src/files.c: Support output files extensions computing.
1701 (src_extension): New static variable.
1702 (header_extension): New static variable.
1703 (tr): New function.
1704 (get_extension_index): New function, gets the index of an extension
1705 filename in a string.
1706 (compute_exts_from_gf): New function, computes extensions from the
1707 grammar file extension.
1708 (compute_exts_from_src): New functions, computes extensions from the
1709 C source file extension, file given by ``-o'' option.
1710 (compute_base_names): Update.
1711 (output_files): Update.
1712
847bf1f5
AD
17132001-08-01 Robert Anisko <anisko_r@epita.fr>
1714
d995fee7 1715 * doc/bison.texi: Document @$.
847bf1f5
AD
1716 (Locations): New section.
1717
d074a105
AD
17182001-07-18 Akim Demaille <akim@epita.fr>
1719
1720 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1721 * config/prev-version.txt, config/move-if-change: New.
1722 * Makefile.am: Adjust.
1723
3419715d
AD
17242001-07-08 Pascal Bart <pascal.bart@epita.fr>
1725
1726 * src/bison.simple (yyparse): Suppress warning `comparaison
1727 between signed and unsigned'.
1728
62ab6972
AD
17292001-07-05 Pascal Bart <pascal.bart@epita.fr>
1730
1731 * src/getargs.h (raw_flag): Remove.
1732 * src/getargs.c: Die on `-r'/`--raw'.
1733 * src/lex.c (parse_percent_token): Die on `%raw'.
1734 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1735 * tests/calc.at: Suppress test with option `--raw'.
1736
1e24cc5b
AD
17372001-07-14 Akim Demaille <akim@epita.fr>
1738
1739 * config/: New.
1740 * configure.in: Require Autoconf 2.50.
1741 Update to gettext 0.10.38.
1742
32dfccf8
AD
17432001-03-16 Akim Demaille <akim@epita.fr>
1744
1745 * doc/bison.texinfo: ANSIfy the examples.
1746
cd5bd6ac
AD
17472001-03-16 Akim Demaille <akim@epita.fr>
1748
1749 * getargs.c (skeleton): New variable.
1750 (longopts): --skeleton is a new option.
1751 (shortopts, getargs): -S is a new option.
1752 * getargs.h: Declare skeleton.
1753 * output.c (output_parser): Use it.
1754
5141b016
AD
17552001-03-16 Akim Demaille <akim@epita.fr>
1756
1757 * m4/strerror_r.m4: New.
1758 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1759 * lib/error.h, lib/error.c: Update.
1760
447992b9
AD
17612001-03-16 Akim Demaille <akim@epita.fr>
1762
1763 * src/getargs.c (longopts): Clean up.
1764
274d42ce
AD
17652001-02-21 Akim Demaille <akim@epita.fr>
1766
1767 * src/reader.c (gensym): `gensym_count' is your own.
1768 Use a static buf to create the symbol name, as token_buffer is no
1769 longer a buffer.
1770
22c821f3
AD
17712001-02-08 Akim Demaille <akim@epita.fr>
1772
1773 * src/conflicts.c (conflict_report): Be sure not to append to res
1774 between two calls, which could happen if both first sprintf were
1775 skipped, but not the first cp += strlen.
1776
18569462
AD
17772001-02-08 Akim Demaille <akim@epita.fr>
1778
1779 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1780 New, from fileutils 4.0.37.
1781 * configure.in: Require Autoconf 2.49c. I took some time before
1782 making this decision. This is the only way out for portability
1783 issues in Bison, it would mean way too much duplicate effort to
1784 import in Bison features implemented in 2.49c since 2.13.
1785 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1786
0d8f3c8a
AD
17872001-02-02 Akim Demaille <akim@epita.fr>
1788
1789 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 1790 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 1791
f17bcd1f
AD
17922001-01-19 Akim Demaille <akim@epita.fr>
1793
1794 Get rid of the ad hoc handling of token_buffer in the scanner: use
1795 the obstacks.
1796
1797 * src/lex.c (token_obstack): New.
1798 (init_lex): Initialize it. No longer call...
1799 (grow_token_buffer): this. Remove it.
1800 Adjust all the places which used it to use the obstack.
1801
511e79b3
AD
18022001-01-19 Akim Demaille <akim@epita.fr>
1803
1804 * src/lex.h: Rename all the tokens:
1805 s/\bENDFILE\b/tok_eof/g;
1806 s/\bIDENTIFIER\b/tok_identifier/g;
1807 etc.
1808 Let them be enums, not #define, to ease debugging.
1809 Adjust all the code.
1810
0d6508ef
AD
18112001-01-18 Akim Demaille <akim@epita.fr>
1812
1813 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1814 * src/lex.c (maxtoken, grow_token_buffer): Static.
1815
6deb4447
AD
18162001-01-18 Akim Demaille <akim@epita.fr>
1817
1818 Since we now use obstacks, more % directives can be enabled.
1819
1820 * src/lex.c (percent_table): Also accept `%yacc',
1821 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1822 `%debug'.
1823 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1824 instead of returning a token.
1825 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1826 * src/reader.c (read_declarations): Adjust.
1827 * src/files.c (open_files): Don't call `compute_base_names', don't
1828 compute `attrsfile' since they depend upon data which might be
1829 *in* the input file now.
1830 (output_files): Do it here.
1831 * src/output.c (output_headers): Document the fact that this patch
1832 introduces a guaranteed SEGV for semantic parsers.
1833 * doc/bison.texinfo: Document them.
1834 * tests/suite.at: Exercise these %options.
1835
ff4423cc
AD
18362000-12-20 Akim Demaille <akim@epita.fr>
1837
1838 Also handle the output file (--verbose) with obstacks.
1839
1840 * files.c (foutput): Remove.
1841 (output_obstack): New.
1842 Adjust all dependencies.
1843 * src/conflicts.c: Return a string.
1844 * src/system.h (obstack_grow_string): Rename as...
1845 (obstack_sgrow): this. Be ready to work with non literals.
1846 (obstack_fgrow4): New.
1847
956dba3a
AD
18482000-12-20 Akim Demaille <akim@epita.fr>
1849
1850 * src/files.c (open_files): Fix the computation of short_base_name
1851 in the case of `-o foo.tab.c'.
1852
337bab46
AD
18532000-12-20 Akim Demaille <akim@epita.fr>
1854
1855 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1856 (copy_dollar): Now that everything uses obstacks, get rid of the
1857 FILE * parameters.
1858
5d3214b8
AD
18592000-12-20 Akim Demaille <akim@epita.fr>
1860
1861 * src/files.c (open_files): Actually the `.output' file is based
1862 on the short_base_name, not base_name.
1863 * tests/suite.at (Checking output file names): Adjust.
1864
29092a57
AD
18652000-12-20 Akim Demaille <akim@epita.fr>
1866
1867 * src/bison.s1: Remove, we now use directly...
1868 * src/bison.simple: this.
1869 * src/Makefile.am: Use pkgdata instead of data.
1870
ea5607fd
AD
18712000-12-20 Akim Demaille <akim@epita.fr>
1872
1873 * src/files.c (guard_obstack): New.
1874 (open_files): Initialize it.
1875 (output_files): Dump it...
1876 * src/files.h: Export it.
1877 * src/reader.c (copy_guard): Use it.
1878
27110317
AD
18792000-12-19 Akim Demaille <akim@epita.fr>
1880
1881 * src/files.c (outfile, defsfile, actfile): Removed as global
1882 vars.
1883 (open_files): Don't compute them.
1884 (output_files): Adjust.
1885 (base_name, short_base_name): Be global.
1886 Adjust dependencies.
1887
19c50364
AD
18882000-12-19 Akim Demaille <akim@epita.fr>
1889
1890 * src/files.c (strsuffix): New.
1891 (stringappend): Be just like strcat but allocate.
1892 (base_names): Eve out from open_files.
1893 Try to simplify the rather hairy computation of base_name and
1894 short_base_name.
1895 (open_files): Use it.
1896 * tests/suite.at (Checking output file names): New test.
1897
573c1d9f
AD
18982000-12-19 Akim Demaille <akim@epita.fr>
1899
1900 * src/system.h (obstack_grow_literal_string): Rename as...
1901 (obstack_grow_string): this.
1902 * src/output.c (output_parser): Recognize `%% actions' instead of
1903 `$'.
1904 * src/bison.s1: s/$/%% actions/.
1905 * src/bison.hairy: Likewise.
1906
ef7ddedd
AD
19072000-12-19 Akim Demaille <akim@epita.fr>
1908
1909 * src/output.c (output_parser): Compute the `#line' lines when
1910 there are.
1911 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1912 Suggested by Hans Aberg.
1913
ff61dabd
AD
19142000-12-19 Akim Demaille <akim@epita.fr>
1915
1916 Let the handling of the skeleton files be local to the procedures
1917 that use it.
1918
1919 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1920 longer static.
1921 (fparser, open_extra_files): Remove.
1922 (open_files, output_files): Don't take care of fparser.
1923 * src/files.h: Adjust.
1924 * src/output.c (output_parser): Open and close the file to the
1925 skeleton.
1926 * src/reader.c (read_declarations): When %semantic_parser, open
1927 fguard.
1928
55b96341
AD
19292000-12-19 Akim Demaille <akim@epita.fr>
1930
1931 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1932 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1933
358c15b7
AD
19342000-12-19 Akim Demaille <akim@epita.fr>
1935
1936 * src/files.c (open_files): Yipee! We no longer need all the code
1937 looking for `/tmp' since we have no tmp file.
1938
7de3329e
AD
19392000-12-19 Akim Demaille <akim@epita.fr>
1940
1941 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1942 New macros.
1943 * src/files.c (open_files): Less dependency on MSDOS etc.
1944
3abcd459
AD
19452000-12-14 Akim Demaille <akim@epita.fr>
1946
1947 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1948 Provide a default definition.
1949 Use it when executing the default @ action.
1950 * src/reader.c (reader_output_yylsp): No longer include
1951 `timestamp' and `text' in the default YYLTYPE.
1952
2a91a95e
AD
19532000-12-12 Akim Demaille <akim@epita.fr>
1954
1955 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1956 (copy_guard): Quote the file names.
1957 Reported by Laurent Mascherpa.
1958
14d3eb9b
AD
19592000-12-12 Akim Demaille <akim@epita.fr>
1960
1961 * src/output.c (output_headers, output_program, output): Be sure
1962 to escape special characters when outputting filenames.
1963 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1964 (output_headers): Don't depend on them, Use ACTSTR.
1965
d7045ec6
AD
19662000-11-17 Akim Demaille <akim@epita.fr>
1967
1968 * lib/obstack.h: Formatting changes.
1969 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1970 prevents type checking.
1971 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1972 cast the value to (void *): assigning a `foo *' to a `void *'
1973 variable is valid.
1974 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1975 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1976 append characters.
1977
6fd54b73
AD
19782000-11-17 Akim Demaille <akim@epita.fr>
1979
1980 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1981 as...
1982 (suite.m4, regression.m4, calc.m4): these.
1983 * tests/atgeneral.m4: Update from CVS Autoconf.
1984
4c50eae6
AD
19852000-11-17 Akim Demaille <akim@epita.fr>
1986
1987 * tests/regression.m4 (%union and --defines): New test,
1988 demonstrating a current bug in the obstack implementation.
1989
a35f64ea
AD
19902000-11-17 Akim Demaille <akim@epita.fr>
1991
1992 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1993 macros.
1994 Use them to declare the variables which are global or local to
1995 `yyparse'.
1996
7de23534
AD
19972000-11-17 Akim Demaille <akim@epita.fr>
1998
1999 * acconfig.h: Remove, no longer used.
2000
aa7815f5
AD
20012000-11-07 Akim Demaille <akim@epita.fr>
2002
2003 * src: s/Copyright (C)/Copyright/g.
2004
5af1f549
AD
20052000-11-07 Akim Demaille <akim@epita.fr>
2006
2007 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2008 defining.
2009 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2010
553e2b22
AD
20112000-11-07 Akim Demaille <akim@epita.fr>
2012
2013 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2014 Merge in a single CPP if/else.
2015
8a4f41d6
AD
20162000-11-07 Akim Demaille <akim@epita.fr>
2017
2018 * src/output.c (output): Remove useless variables.
2019 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2020 argument `data' for consistency with the prototypes.
2021 Qualify it `const'.
2022 (obstack_copy, obstack_copy0): Rename the second argument as
2023 `address' for consistency. Qualify it `const'.
2024 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2025 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2026 `const' their input argument (`data' or `address').
2027 Adjust the corresponding macros to include `const' in casts.
2028
095a3fb5
AD
20292000-11-03 Akim Demaille <akim@epita.fr>
2030
2031 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2032 s/PFILE1/BISON_HAIRY/.
2033 Adjust dependencies.
2034
d1cdce7c
AD
20352000-11-03 Akim Demaille <akim@epita.fr>
2036
090c5ebf 2037 For some reason, this was not applied.
d1cdce7c
AD
2038
2039 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2040 `unlink': it's no longer used.
2041
9311529b
AD
20422000-11-03 Akim Demaille <akim@epita.fr>
2043
2044 * src/files.c (skeleton_find): New function, eved out of...
2045 (open_files, open_extra_files): here.
2046
d8880f69
AD
20472000-11-03 Akim Demaille <akim@epita.fr>
2048
2049 Don't use `atexit'.
2050
2051 * src/files.c (obstack_save): New function.
2052 (done): Rename as...
2053 (output_files): this.
2054 Use `obstack_save'.
2055 * src/main.c (main): Don't use `atexit' to register `done', since
2056 it no longer has to remove tmp files, just call `output_files'
2057 when there are no errors.
2058
0dbb648e
AD
20592000-11-02 Akim Demaille <akim@epita.fr>
2060
2061 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2062 `unlink': it's no longer used.
2063 * src/files.h: Formatting changes.
2064
896fe5c1
AD
20652000-11-02 Akim Demaille <akim@epita.fr>
2066
2067 Remove the last uses of mktemp and unlink/delete.
2068
2069 * src/files.c (fdefines, ftable): Removed.
2070 (defines_ostack, table_obstack): New.
2071 Adjust dependencies of the former into uses of the latter.
2072 * src/output.c (output_short_or_char_table, output_short_table):
2073 Convert to using obstacks.
2074 * src/reader.c (copy_comment2): Accept one FILE * and two
2075 obstacks.
2076 (output_token_defines, reader_output_yylsp): Use obstacks.
2077 * src/system.h (obstack_fgrow3): New.
2078
dd60faec
AD
20792000-11-01 Akim Demaille <akim@epita.fr>
2080
2081 Change each use of `fattrs' into a use of `attrs_obstack'.
2082
2083 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2084 * src/files.c (fattrs): Remove.
2085 (attrs_obstack): New.
2086 Adjust all dependencies.
2087 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2088
8c7ebe49
AD
20892000-11-01 Akim Demaille <akim@epita.fr>
2090
2091 Introduce obstacks.
2092 Change each use of `faction' into a use of `action_obstack'.
2093
2094 * lib/obstack.h, lib/obstack.c: New files.
2095 * src/files.c (faction): Remove.
2096 (action_obstack): New.
2097 Adjust all dependencies.
2098
77aee789
AD
20992000-10-20 Akim Demaille <akim@epita.fr>
2100
2101 * lib/quote.h (PARAMS): New macro. Use it.
2102
43591cec
AD
21032000-10-16 Akim Demaille <akim@epita.fr>
2104
2105 * src/output.c (output_short_or_char_table): New function.
2106 (output_short_table, output_token_translations): Use it.
2107 (goto_actions): Use output_short_table.
2108
1e9798d5
AD
21092000-10-16 Akim Demaille <akim@epita.fr>
2110
2111 * src/symtab.c (bucket_new): New function.
2112 (getsym): Use it.
2113
2114 * src/output.c (output_short_table): New argument to display the
2115 comment associated with the table.
2116 Adjust dependencies.
2117 (output_gram): Use it.
2118 (output_rule_data): Nicer output layout for YYTNAME.
2119
f282676b
AD
21202000-10-16 Akim Demaille <akim@epita.fr>
2121
2122 * src/lex.c (read_typename): New function.
2123 (lex): Use it.
2124 * src/reader.c (copy_dollar): Likewise.
2125
550a72a3
AD
21262000-10-16 Akim Demaille <akim@epita.fr>
2127
2128 * src/reader.c (copy_comment2): Expect the input stream to be on
2129 the `/' which is suspected to open a comment, instead of being
2130 called after `//' or `/*' was read.
2131 (copy_comment, copy_definition, parse_union_decl, copy_action)
2132 (copy_guard): Adjust.
2133
131e2fef
AD
21342000-10-16 Akim Demaille <akim@epita.fr>
2135
2136 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2137 `read_signed_integer'.
2138
79282c5a
AD
21392000-10-16 Akim Demaille <akim@epita.fr>
2140
2141 * src/reader.c (copy_dollar): New function.
2142 (copy_guard, copy_action): Use it.
2143
ff4a34be
AD
21442000-10-16 Akim Demaille <akim@epita.fr>
2145
2146 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2147 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2148 New files, from Fileutils 4.0.27.
2149 * src/main.c (printable_version): Remove.
2150 * src/lex.c, src/reader.c: Use `quote'.
2151
21522000-10-04 Akim Demaille <akim@epita.fr>
2153
2154 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2155
14ded682
AD
21562000-10-04 Akim Demaille <akim@epita.fr>
2157
2158 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2159
8e03724b
AD
21602000-10-04 Akim Demaille <akim@epita.fr>
2161
2162 When a literal string is used to define two different tokens,
2163 `bison -v' segfaults.
2164 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2165
2166 * tests/regression.m4: New file.
2167 Include the core of the sample provided by Piotr Gackiewicz.
2168 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2169 properly.
2170
a9e64249
AD
21712000-10-04 Akim Demaille <akim@epita.fr>
2172
2173 * src/reader.c (parse_expect_decl): Keep `count' within the size
2174 of `buffer'.
2175 From Neil Booth.
2176
da9abf43
AD
21772000-10-02 Paul Eggert <eggert@twinsun.com>
2178
2179 * bison.s1 (yyparse): Assign the default value
2180 unconditionally, to avoid a GCC warning and make the parser a
2181 tad smaller.
2182
c33638bb
AD
21832000-10-02 Akim Demaille <akim@epita.fr>
2184
2185 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2186 options.
2187
444c570a
AD
21882000-10-02 Akim Demaille <akim@epita.fr>
2189
2190 * src/derives.c, src/print.c, src/reduce.c: To ease the
2191 translation, move some `\n' out of the translated strings.
2192
89cab50d
AD
21932000-10-02 Akim Demaille <akim@epita.fr>
2194
2195 The location tracking mechanism is precious for parse error
2196 messages. Nevertheless, it is enabled only when `@n' is used in
2197 the grammar, which is a different issue (you can use it in error
2198 message, but not in the grammar per se). Therefore, there should
2199 be another means to enable it.
2200
2201 * src/getargs.c (getargs): Support `--locations'.
2202 (usage): Report it.
2203 * src/getargs.h (locationsflag): Export it.
2204 * src/lex.c (percent_table): Support `%locations'.
2205 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2206 with `locationsflag'.
2207 * doc/bison.texinfo: Document `--locations' and `%locations'.
2208 Sort the options.
2209 * tests/calc.m4: Test it.
2210
2211 For regularity of the names, replace each
2212 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2213 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2214 In addition replace each `flag' with `_flag'.
2215
d6c2cba0
AD
22162000-10-02 Akim Demaille <akim@epita.fr>
2217
2218 Also test parse error messages, including with YYERROR_VERBOSE.
2219
2220 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2221 associative).
2222 Use it to check the computations.
2223 Use it to check `nonassoc' is honored.
2224 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2225 `--yyerror-verbose'.
2226 (_AT_CHECK_CALC): Adjust to this option.
2227 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2228
5a35a6cb
AD
22292000-10-02 Akim Demaille <akim@epita.fr>
2230
2231 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2232 the latter demonstrates a flaw in the handling of non debugging
2233 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2234 was used in order to simplify:
2235
2236 #if YYDEBUG
2237 if (yydebug)
2238 {
2239 ...
2240 }
2241 #endif
2242
2243 into
2244
2245 if (yydebug)
2246 {
2247 ...
2248 }
2249
2250 unfortunately this leads to a CPP conflict when
2251 `--name-prefix=foo' is used since it produces `#define yydebug
2252 foodebug'.
2253
2254 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2255 (YYDPRINTF): New macro.
2256 Spread its use.
2257 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2258 the bison options.
2259 Also test `--verbose', `--defines' and `--name-prefix'.
2260
71da9eea
AD
22612000-10-02 Akim Demaille <akim@epita.fr>
2262
2263 Improve the readability of the produced parsers.
2264
2265 * src/bison.s1: Formatting changes.
2266 Improve the comment related to the `$' mark.
2267 (yydefault): Don't fall through to `yyresume': `goto' there.
2268 * src/output.c (output_parser): When the `$' is met, skip the end
2269 of its line.
2270 New variable, `number_of_dollar_signs', to check there's exactly
2271 one `$' in the parser skeleton.
2272
95e36146
AD
22732000-10-02 Akim Demaille <akim@epita.fr>
2274
2275 * lib/xstrdup.c: New file, from the fileutils.
2276 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2277 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2278 instead of strlen + xmalloc + strcpy.
2279 * src/symtab.c (copys): Remove, use xstrdup instead.
2280
d7020c20
AD
22812000-10-02 Akim Demaille <akim@epita.fr>
2282
2283 * src/gram.h (associativity): New enum type which replaces the
2284 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2285 `right_assoc', `left_assoc' and `non_assoc'.
2286 Adjust all dependencies.
2287 * src/reader.c: Formatting changes.
2288 (LTYPESTR): Don't define it, use it as a literal in
2289 `reader_output_yylsp'.
2290 * src/symtab.h (symbol_class): New enum type which replaces the
2291 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2292 `sunknown', `stoken and `snterm'.
2293
1916f98e
AD
22942000-10-02 Akim Demaille <akim@epita.fr>
2295
2296 * src/getargs.c (fixed_outfiles): Rename as...
2297 (yaccflag): for consistency and accuracy.
2298 Adjust dependencies.
2299
d7913476
AD
23002000-10-02 Akim Demaille <akim@epita.fr>
2301
2302 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2303 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2304 difficult and introduced a lot of core dump. It turns out that
2305 Bison used an implementation of `xmalloc' based on `calloc', and
2306 at various places it does depend upon the initialization to 0. I
2307 have not tried to isolate the pertinent places, and all the former
2308 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2309 someone should address this issue.
2310
2311 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2312 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2313 files.
2314 Adjust dependencies.
2315 * src/warshall.h: New file.
2316 Propagate.
2317
340ef489
AD
23182000-10-02 Akim Demaille <akim@epita.fr>
2319
2320 Various anti-`extern in *.c' changes.
2321
2322 * src/system.h: Include `assert.h'.
2323
b2ca4022
AD
23242000-10-02 Akim Demaille <akim@epita.fr>
2325
2326 * src/state.h (nstates, final_state, first_state, first_shift)
2327 (first_reduction): Move their exportation from here...
2328 * src/LR0.h: to here.
2329 Adjust dependencies.
2330 * src/getargs.c (statisticsflag): New variable.
2331 Add support for `--statistics'.
2332 Adjust dependencies.
2333
2334 Remove a lot of now useless `extern' statements in most files.
2335
403b315b
AD
23362000-10-02 Akim Demaille <akim@epita.fr>
2337
2338 * src/LR0.h: New file.
2339 Propagate its use.
2340
07a58c13
AD
23412000-10-02 Akim Demaille <akim@epita.fr>
2342
2343 * src/print.h: New file.
2344 Propagate its use.
2345 * src/print.c: Formatting and ordering changes.
2346 (verbose, terse): Replace with...
2347 (print_results): this new function.
2348 Adjust dependencies.
2349
0619caf0
AD
23502000-10-02 Akim Demaille <akim@epita.fr>
2351
2352 * src/conflicts.c (conflict_report): New function.
2353 (conflict_log, verbose_conflict_log): Replace with...
2354 (print_conflicts): this function.
2355 Adjust dependencies.
2356 * src/conflicts.h: New file.
2357 Propagate its inclusion.
2358
3519ec76
AD
23592000-10-02 Akim Demaille <akim@epita.fr>
2360
2361 * src/nullable.h: New file.
2362 Propagate its inclusion.
2363 * src/nullable.c: Formatting changes.
2364
015acc48
AD
23652000-10-02 Akim Demaille <akim@epita.fr>
2366
2367 * src/reduce.h: New file.
2368 Propagate its inclusion.
2369 * src/reduce.c: Topological sort and other formatting changes.
2370 (bool, TRUE, FALSE): Move their definition to...
2371 * src/system.h: here.
2372
8963a27b
AD
23732000-10-02 Akim Demaille <akim@epita.fr>
2374
2375 * src/files.c: Formatting changes.
2376 (tryopen, tryclose, openfiles): Rename as...
2377 (xfopen, xfclose, open_files): this.
2378 (stringappend): static.
2379 * src/files.h: Complete the list of exported symbols.
2380 Propagate its use.
2381
a70083a3
AD
23822000-10-02 Akim Demaille <akim@epita.fr>
2383
2384 * src/reader.h: New file.
2385 Propagate its use instead of tedious list of `extern' and
2386 prototypes.
2387 * src/reader.c: Formatting changes, topological sort,
2388 s/register//.
2389
abadc117
AD
23902000-10-02 Akim Demaille <akim@epita.fr>
2391
2392 * src/lex.h: Prototype `lex.c' exported functions.
2393 * src/reader.c: Adjust.
2394 * src/lex.c: Formatting changes.
2395 (safegetc): Rename as...
2396 (xgetc): this.
2397
720d742f
AD
23982000-10-02 Akim Demaille <akim@epita.fr>
2399
2400 * src/lalr.h: New file.
2401 Propagate its inclusion instead of prototypes and `extern'.
2402 * src/lalr.c: Formatting changes, topological sorting etc.
2403
f2acea59
AD
24042000-10-02 Akim Demaille <akim@epita.fr>
2405
2406 * src/output.c (token_actions): Introduce a temporary array,
2407 YYDEFACT, that makes it possible for this function to use
2408 output_short_table.
2409
d019d655
AD
24102000-10-02 Akim Demaille <akim@epita.fr>
2411
2412 `user_toknums' is output as a `short[]' in `output.c', while it is
2413 defined as a `int[]' in `reader.c'. For consistency with the
2414 other output tables, `user_toknums' is now defined as a table of
2415 shorts.
2416
2417 * src/reader.c (user_toknums): Be a short table instead of an int
2418 table.
2419 Adjust dependencies.
2420
2421 Factor the short table outputs.
2422
2423 * src/output.c (output_short_table): New function.
2424 * src/output.c (output_gram, output_stos, output_rule_data)
2425 (output_base, output_table, output_check): Use it.
2426
6c89f1c1
AD
24272000-10-02 Akim Demaille <akim@epita.fr>
2428
2429 * src/output.c (output): Topological sort of the functions, in
2430 order to get rid of the `static' prototypes.
2431 No longer use `register'.
2432 * src/output.h: New file.
2433 Propagate its inclusion in files explicitly prototyping functions
2434 from output.c.
2435
d9efd181
AD
24362000-09-21 Akim Demaille <akim@epita.fr>
2437
2438 * src/atgeneral.m4: Update from Autoconf.
2439
c29240e7 24402000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
2441
2442 * src/closure.h: New file.
2443 * src/closure.c: Formatting changes, topological sort over the
2444 functions, use of closure.h.
2445 (initialize_closure, finalize_closure): Rename as...
2446 (new_closure, free_closure): these. Adjust dependencies.
2447 * src/LR0.c: Formatting changes, topological sort, use of
2448 cloture.h.
2449 (initialize_states): Rename as...
2450 (new_states): this.
2451 * src/Makefile.am (noinst_HEADERS): Adjust.
2452
499daa50
AD
24532000-09-20 Akim Demaille <akim@epita.fr>
2454
2455 * src/acconfig.h: Don't protect config.h against multiple
2456 inclusion.
2457 Don't define PARAMS.
2458 * src/system.h: Define PARAMS.
2459 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2460 purpose of config.h. system.h must not try to fix wrong
2461 definitions in config.h.
2462
cc84fd5d
AD
24632000-09-20 Akim Demaille <akim@epita.fr>
2464
2465 * src/derives.h: New file.
2466 * src/main.c, src/derives.h: Use it.
2467 Formatting changes.
2468 * src/Makefile.am (noinst_HEADERS): Adjust.
2469
db5b3a89
AD
24702000-09-20 Akim Demaille <akim@epita.fr>
2471
2472 * tests/atgeneral.m4: Update from Autoconf.
2473 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2474 (AT_CHECK_CALC): New macros.
2475 Use these macros to test bison with options `', `--raw',
2476 `--debug', `--yacc', `--yacc --debug'.
2477
ceed8467
AD
24782000-09-19 Akim Demaille <akim@epita.fr>
2479
2480 * src/output.c: Formatting changes.
2481 * src/machine.h: Remove, leaving its contents in...
2482 * src/system.h: here.
2483 Include stdio.h.
2484 Adjust all dependencies on stdio.h and machine.h.
2485 * src/getargs.h: New file.
2486 Let all `extern' declarations about getargs.c be replaced with
2487 inclusion of `getargs.h'.
2488 * src/Makefile.am (noinst_HEADERS): Adjust.
2489
2490 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2491 scope.
2492 (yyerror): Returns void, not int.
2493 * doc/bison.texinfo: Formatting changes.
2494
05a1d24b
AD
24952000-09-19 Akim Demaille <akim@epita.fr>
2496
2497 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2498 portable.
2499
cbd25751
AD
25002000-09-18 Akim Demaille <akim@epita.fr>
2501
2502 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2503 * src/Makefile.am (INCLUDES): Don't.
2504 Be ready to fetch headers in lib/.
2505
13863333
AD
25062000-09-18 Akim Demaille <akim@epita.fr>
2507
2508 * doc/bison.texinfo: Update the copyright.
2509 ANSIfy and GNUify the examples.
2510 Remove the old menu.
2511
0d533154
AD
25122000-09-18 Akim Demaille <akim@epita.fr>
2513
2514 First set of tests: use the `calc' example from the documentation.
2515
2516 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2517 is defined only when YYDEBUG is.
2518 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2519 * src/files.c (tryopen, tryclose): Formatting changes.
2520 Move to the top and be static.
2521 * src/reader.c (read_signed_integer): Likewise.
2522 * tests/calc.m4: New file.
2523 * Makefile.am, suite.m4: Adjust.
2524 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2525
e79137ac
AD
25262000-09-18 Akim Demaille <akim@epita.fr>
2527
2528 Add support for an Autotest test suite for Bison.
2529
2530 * m4/m4.m4, m4/atconfig.m4: New files.
2531 * m4/Makefile.am (EXTRA_DIST): Adjust.
2532 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2533 files.
2534 * src/getargs.c: Display a more standard --version message.
2535 * src/reader.c (reader): Formatting changes.
2536 No longer depend upon VERSION_STRING.
2537 * configure.in: No longer use `dnl'.
2538 Set up the test suite and the new directory `tests/.
2539 (VERSION_STRING): Remove.
2540
27821bff
AD
25412000-04-14 Akim Demaille <akim@epita.fr>
2542
2543 * src/reader.c (copy_comment2): New function, same as former
2544 `copy_comment', but outputs into two FILE *.
2545 (copy_comment): Use it.
2546 (parse_union_decl): Use it.
2547 (get_type, parse_start_decl): Use the same `invalid' message.
2548 (parse_start_decl, parse_union_decl): Use the same `multiple'
2549 message.
2550 (parse_union_decl, copy_guard, copy_action): Use the same
2551 `unmatched' message.
2552 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2553
cfe5fbc0
AD
25542000-03-31 Akim Demaille <akim@epita.fr>
2555
2556 * src/files.c (tryopen, tryclose): Move to the top.
2557 Be static.
2558
cb7db13e
AD
25592000-03-31 Akim Demaille <akim@epita.fr>
2560
2561 * src/main.c (main): Don't call `done', exit does it.
2562
a0f6b076
AD
25632000-03-31 Akim Demaille <akim@epita.fr>
2564
36281465
AD
2565 * allocate.c: s/return (foo)/return foo/.
2566 * lalr.c: Likewise.
2567 * LR0.c: Likewise.
2568 * output.c: Likewise.
2569 * reader.c: Likewise.
2570 * symtab.c: Likewise.
2571 * vmsgetargs.c: Likewise.
2572
25732000-03-31 Akim Demaille <akim@epita.fr>
2574
2575 Clean up the error reporting functions.
a0f6b076
AD
2576
2577 * src/report.c: New file.
2578 * src/report.h: Likewise.
2579 * src/Makefile.am: Adjust.
2580 * m4/error.m4: New file.
2581 * m4/Makefile.am: Adjust.
2582 * configure.in (jm_PREREQ_ERROR): Call it.
2583 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2584 Remove.
2585 (fatal, fatals): Remove. All callers use complain.c::fatal.
2586 (warn, warni, warns, warnss, warnss): Remove. All callers use
2587 complain.c::complain.
2588 (toomany): Remove, use fatal instead.
2589 * src/files.c (done): No argument, use complain_message_count.
2590 * src/main.c (main): Register `done' to `atexit'.
2591
2592 * src/getargs.c (usage): More `fputs', less `fprintf'.
2593
18539825
AD
25942000-03-28 Akim Demaille <akim@epita.fr>
2595
2596 * lib/: New directory.
2597 * Makefile.am (SUBDIRS): Adjust.
2598 * configure.in: Adjust.
2599 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2600 useless.
2601 * src/alloca.c: Moved to lib/.
2602 * src/getopt.c: Likewise.
2603 * src/getopt1.c: Likewise.
2604 * src/getopt.h: Likewise.
2605 * src/ansi2knr.c: Likewise.
2606 * src/ansi2knr.1: Likewise.
2607 * src/Makefile.am: Adjust.
2608 * lib/Makefile.am: New file.
2609
9f306f2a
AD
26102000-03-28 Akim Demaille <akim@epita.fr>
2611
2612 * src/getargs.c (usage): Refresh the help message.
2613
0ba347b6
AD
26142000-03-17 Akim Demaille <akim@epita.fr>
2615
2616 * src/getopt1.c: Updated from textutils 2.0e
2617 * src/getopt.c: Likewise.
2618 * src/getopt.h: Likewise.
2619
dbe7f271
AD
26202000-03-17 Akim Demaille <akim@epita.fr>
2621
2622 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2623 the file name, not the whole `#line LINE FILE'.
2624
75bbe78d
AD
26252000-03-17 Akim Demaille <akim@epita.fr>
2626
2627 On syntax errors, report the token on which we choked.
2628
aa5fd0ee
AD
2629 * src/bison.s1 (yyparse): In the label yyerrlab, when
2630 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2631
7b306f52
AD
26322000-03-17 Akim Demaille <akim@epita.fr>
2633
aa5fd0ee 2634 * src/reader.c (copy_at): New function.
7b306f52
AD
2635 (copy_guard): Use it.
2636 (copy_action): Use it.
2637
e87b5700
AD
26382000-03-17 Akim Demaille <akim@epita.fr>
2639
2640 Be kind to translators, save some useless translations.
2641
aa5fd0ee 2642 * src/main.c (banner): New function.
e87b5700
AD
2643 (fatal_banner): Use it.
2644 (warn_banner): Use it.
2645
ae3c3164
AD
26462000-03-17 Akim Demaille <akim@epita.fr>
2647
aa5fd0ee
AD
2648 * src/reader.c (copy_definition): Use copy_string and
2649 copy_comment. Removed now unused `match', `ended',
2650 `cplus_comment'.
ae3c3164
AD
2651 (copy_comment, copy_string): Moved, to be visible from
2652 copy_definition.
2653
4dc58e7c
AD
26542000-03-17 Akim Demaille <akim@epita.fr>
2655
aa5fd0ee
AD
2656 * src/reader.c (copy_string): Declare `static inline'. No
2657 problems with inline, since it is checked by configure.
4dc58e7c
AD
2658 (copy_comment): Likewise.
2659
0a6384c4
AD
26602000-03-17 Akim Demaille <akim@epita.fr>
2661
aa5fd0ee 2662 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2663
3cef001a
AD
26642000-03-17 Akim Demaille <akim@epita.fr>
2665
aa5fd0ee 2666 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2667 (copy_action): Use it. Removed now unused `match', `ended',
2668 `cplus_comment'.
2669 (copy_guard): Likewise.
2670
ca36d2ef
AD
26712000-03-17 Akim Demaille <akim@epita.fr>
2672
aa5fd0ee 2673 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2674 (copy_action): Use it.
2675 (copy_guard): Likewise.
2676
6666f98f
AD
26772000-03-17 Akim Demaille <akim@epita.fr>
2678
2679 Change the handling of @s so that they behave exactly like $s.
2680 There is now a pseudo variable @$ (readble and writable), location
2681 of the lhs of the rule (by default ranging from the location of
2682 the first symbol of the rhs, to the location of the last symbol,
2683 or, if the rhs is empty, YYLLOC).
2684
2685 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2686 yyval.
2687 (yyparse): When providing a default semantic action, provide a
2688 default location action.
2689 (after the $): No longer change `*YYLSP', just stack YYLOC the
2690 same way you stack YYVAL.
2691 * src/reader.c (read_declarations): Use warns.
2692 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2693 (copy_action, case '@'): Likewise.
2694 Use a standard error message, to save useless work from
2695 translators.
2696
41aca2e0
AD
26972000-03-17 Akim Demaille <akim@epita.fr>
2698
aa5fd0ee
AD
2699 * src/bison.s1: Formatting and cosmetics changes.
2700 * src/reader.c: Likewise.
41aca2e0
AD
2701 Update the Copyright notice.
2702
dc08c1d5
AD
27032000-03-17 Akim Demaille <akim@epita.fr>
2704
aa5fd0ee
AD
2705 * src/bison.s1 (#line): All set to `#line' only, since the
2706 Makefile now handles them.
dc08c1d5 2707
9ee3c97b
AD
27082000-03-16 Akim Demaille <akim@epita.fr>
2709
2710 * src/output.c (output_rule_data): Output the documentation of
2711 some of the tables.
2712 (Copyright notice): Update.
2713 Formatting changes.
2714
0de741ca
AD
27152000-03-16 Akim Demaille <akim@epita.fr>
2716
2717 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2718 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2719 One `#if YYDEBUG' remains, since it uses variables which are
2720 defined only if `YYDEBUG != 0'.
2721
bb10be54
AD
27222000-03-16 Akim Demaille <akim@epita.fr>
2723
2724 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2725 and related variables so that the similarities are highlighted.
2726
b07b484a
AD
27272000-03-16 Akim Demaille <akim@epita.fr>
2728
2729 * src/bison.s1: Properly indent CPP directives.
2730
361f60b3
AD
27312000-03-16 Akim Demaille <akim@epita.fr>
2732
2733 * src/bison.s1: Properly indent the `alloca' CPP section.
2734
8c44d3ec
AD
27352000-03-16 Akim Demaille <akim@epita.fr>
2736
2737 Do not hard code values of directories in `configure.in'.
2738 Update the `configure' tool chain.
2739
2740 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2741 src/makefile.am.
2742 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2743 (AC_OUTPUT): Add m4/Makefile.
2744 Bump to bison 1.28a, 1.29 has never been released.
2745 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2746 handled via src/Makefile.am.
2747 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2748 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2749 autoheader.
2750 * Makefile.am (SUBDIRS): Add m4.
2751 (ACLOCAL_AM_FLAGS): New variable.
2752 (AUTOMAKE_OPTIONS): Add check-news.
2753 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2754 the proper line number and file name.
2755 (DEFS): Propagate the location of bison library files and of the
2756 locale files.
2757 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2758 builddir.
2759 * acinclude.m4: Remove, replaced by the directory m4.
2760 * m4/Makefile.am (EXTRA_DIST): New variable.
2761 * m4/gettext.m4: New file, from the fileutils.
2762 * m4/lcmessage.m4: Likewise
2763 * m4/progtest.m4: Likewise.
2764 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2765
f95997e7
AD
27662000-03-10 Akim Demaille <akim@epita.fr>
2767
2768 * src/closure.c:
2769 Formatting changes of various comments.
2770 Respect the GNU coding standards at various places.
2771 Don't use `_()' when no translation is needed.
2772
27731999-12-13 Jesse Thilo <jthilo@gnu.org>
2774
2775 * src/files.c:
2776 OS/2 honors TMPDIR environment variable.
2777
27781999-12-13 Jesse Thilo <jthilo@gnu.org>
2779
2780 * doc/bison.texinfo: Tweaked spelling and grammar.
2781 Updated ISBN.
2782 Removed reference to price of printed copy.
2783 Mention BISON_SIMPLE and BISON_HAIRY.
2784
27851999-12-13 Jesse Thilo <jthilo@gnu.org>
2786
2787 * configure.in, NEWS:
2788 Bison 1.29 released.
2789
27901999-10-27 Jesse Thilo <jthilo@gnu.org>
2791
2792 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2793 Added reference card.
2794
27951999-07-26 Jesse Thilo <jthilo@gnu.org>
2796
2797 * po/ru.po: Added Russian translation.
2798
27991999-07-26 Jesse Thilo <jthilo@gnu.org>
2800
2801 * configure.in: Added Russian translation.
2802
28031999-07-06 Jesse Thilo <jthilo@gnu.org>
2804
2805 * configure.in, NEWS, README:
2806 Released version 1.28.
2807
28081999-06-14 Jesse Thilo <jthilo@gnu.org>
2809
2810 * src/system.h:
2811 Squashed redefinition warning on some systems.
2812
2813 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2814 Have configure build version string instead of relying on ANSI string
2815 concatentation.
2816
28171999-06-14 Jesse Thilo <jthilo@gnu.org>
2818
2819 * po/POTFILES.in: Got rid of version.c.
2820
28211999-06-14 Jesse Thilo <jthilo@gnu.org>
2822
2823 * acconfig.h, configure.in:
2824 Have configure build version string instead of relying on ANSI string
2825 concatentation.
2826
28271999-06-08 Jesse Thilo <jthilo@gnu.org>
2828
2829 * doc/bison.1:
2830 Dropped mention of `+' for long-named options.
2831
28321999-05-30 Jesse Thilo <jthilo@gnu.org>
2833
2834 * src/files.c: Added <unistd.h> for unlink().
2835
2836 * src/Makefile.am, src/system.h:
2837 I18n fixes.
2838
28391999-05-30 Jesse Thilo <jthilo@gnu.org>
2840
2841 * README: Added a FAQ list.
2842
2843 * configure.in, acconfig.h:
2844 I18n fixes.
2845
28461999-05-30 Jesse Thilo <jthilo@gnu.org>
2847
2848 * doc/FAQ, doc/Makefile.am:
2849 Added a FAQ list.
2850
28511999-05-19 Jesse Thilo <jthilo@gnu.org>
2852
2853 * src/alloc.h, src/symtab.h, src/version.c:
2854 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2855
28561999-04-18 Jesse Thilo <jthilo@gnu.org>
2857
2858 * src/.cvsignore, src/Makefile.am:
2859 Reorganized: sources in `src', documentation in `doc'.
2860
2861 * src/lex.c (literalchar):
2862 fixed the code for escaping double quotes (thanks
2863 Jonathan Czisny.)
2864
28651999-04-18 Jesse Thilo <jthilo@gnu.org>
2866
2867 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2868 Adjusted paths to reflect directory reorganization.
2869
28701999-04-18 Jesse Thilo <jthilo@gnu.org>
2871
2872 * doc/.cvsignore, doc/Makefile.am:
2873 Reorganized: sources in `src', documentation in `doc'.
2874
28751999-04-18 Jesse Thilo <jthilo@gnu.org>
2876
2877 * configure.in:
2878 Updated AC_INIT file to reflect directory reorganization.
2879
2880 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2881 Reorganized: sources in `src', documentation in `doc'.
2882
28831999-04-13 Jesse Thilo <jthilo@gnu.org>
2884
2885 * src/allocate.c:
2886 Don't declare calloc() and realloc() if not necessary.
2887
28881999-04-13 Jesse Thilo <jthilo@gnu.org>
2889
2890 * configure.in, acconfig.h, acinclude.m4:
2891 Don't declare calloc() and realloc() if not necessary.
2892
28931999-03-23 Jesse Thilo <jthilo@gnu.org>
2894
2895 * po/.cvsignore: Added i18n support.
2896
28971999-03-23 Jesse Thilo <jthilo@gnu.org>
2898
2899 * acconfig.h, configure.in, Makefile.am:
2900 Added i18n support.
2901
29021999-03-22 Jesse Thilo <jthilo@gnu.org>
2903
2904 * src/bison.s1: Fixed #line numbers.
2905
29061999-03-15 Jesse Thilo <jthilo@gnu.org>
2907
2908 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2909 Added PO files from Translation Project.
2910
29111999-03-03 Jesse Thilo <jthilo@gnu.org>
2912
2913 * Makefile.am:
2914 Added support for non-ANSI compilers (ansi2knr).
2915
29161999-02-16 Jesse Thilo <jthilo@gnu.org>
2917
2918 * configure.in: Bumped version number to 1.27.
2919
2920 * Makefile.am:
2921 Added `bison.simple' to list of files removed by `make distclean'.
2922
29231999-02-12 Jesse Thilo <jthilo@gnu.org>
2924
2925 * src/files.c, src/files.h:
2926 Defined locations of parser files in config.h instead of Makefile.
2927
29281999-02-12 Jesse Thilo <jthilo@gnu.org>
2929
2930 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2931 Defined locations of parser files in config.h instead of Makefile.
2932
29331999-02-09 Jesse Thilo <jthilo@gnu.org>
2934
2935 * Makefile.am:
2936 Removed inappropriate use of $< macro.
2937
29381999-02-05 Jesse Thilo <jthilo@gnu.org>
2939
2940 * po/Makefile.in.in, po/POTFILES.in:
2941 Add `po' directory skeleton.
2942
29431999-01-27 Jesse Thilo <jthilo@gnu.org>
2944
2945 * README: Document help-bison list.
2946
2947 * configure.in: Add check for mkstemp().
2948
29491999-01-20 Jesse Thilo <jthilo@gnu.org>
2950
2951 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2952 Hush a few compiler warnings.
2953
2954 * src/files.c:
2955 Add tryclose(), which verifies that fclose was successful.
2956 Hush a couple of compiler warnings.
2957
29581999-01-20 Jesse Thilo <jthilo@gnu.org>
2959
2960 * Makefile.am, OChangeLog:
2961 ChangeLog is now automatically generated. Include the old version as
2962 OChangeLog.
2963
29641999-01-14 Jesse Thilo <jthilo@gnu.org>
2965
2966 * 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:
2967 Update FSF address.
2968
29691999-01-14 Jesse Thilo <jthilo@gnu.org>
2970
2971 * doc/bison.texinfo: Fix formatting glitch.
2972
2973 * doc/bison.texinfo: Update FSF address.
2974
29751999-01-14 Jesse Thilo <jthilo@gnu.org>
2976
2977 * acconfig.h: Update FSF address.
2978
29791999-01-08 Jesse Thilo <jthilo@gnu.org>
2980
2981 * src/system.h:
2982 Don't define PACKAGE here, since config.h defines it.
2983
29841998-12-30 Jesse Thilo <jthilo@gnu.org>
2985
2986 * src/reader.c: Update copyright date.
2987
2988 * src/main.c:
2989 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2990 favor of output directly to stderr (avoids buffer overruns).
2991
2992 * src/reader.c: Some checks for premature EOF.
2993
2994 * 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:
2995 Use prototypes if the compiler understands them.
2996
2997 * src/files.c: Honor TMPDIR on Unix hosts.
2998 Use prototypes if the compiler understands them.
2999
3000 * src/reader.c:
3001 Fix a couple of buffer overrun bugs.
3002 Use prototypes if the compiler understands them.
3003
3004 * src/system.h: Include unistd.h and ctype.h.
3005 Use #ifdef instead of #if for NLS symbols.
3006
30071998-12-30 Jesse Thilo <jthilo@gnu.org>
3008
3009 * doc/bison.texinfo:
3010 Delete comment "consider using @set for edition number, etc..." since
3011 we now are doing so.
3012
30131998-12-30 Jesse Thilo <jthilo@gnu.org>
3014
3015 * configure.in:
3016 Use prototypes if the compiler understands them.
3017
3018 * NEWS: Document 1.26 highlights.
3019
3020 * Makefile.am: Require Automake 1.3 or later.
3021
3022 * acconfig.h:
3023 Use prototypes if the compiler understands them.
3024
30251998-12-29 Jesse Thilo <jthilo@gnu.org>
3026
3027 * src/version.c:
3028 Use VERSION symbol from automake for version number.
3029
30301998-12-29 Jesse Thilo <jthilo@gnu.org>
3031
3032 * acconfig.h, configure.in, version.cin:
3033 Use VERSION symbol from automake for version number.
3034
30351998-11-28 Jesse Thilo <jthilo@gnu.org>
3036
3037 * Makefile.am:
3038 Distribute original version of simple parser (bison.s1), not built
3039 version (bison.simple).
3040
30411998-11-28 Jesse Thilo <jthilo@gnu.org>
3042
3043 * doc/bison.texinfo: Add info dir entry.
3044
3045 * doc/bison.texinfo:
3046 Let automake put version number into documentation.
3047
30481998-11-26 Jesse Thilo <jthilo@gnu.org>
3049
3050 * src/bison.cld, src/build.com, src/vmshlp.mar:
3051 Add non-RCS files from /gd/gnu/bison.
3052
30531998-11-26 Jesse Thilo <jthilo@gnu.org>
3054
3055 * doc/bison.1:
3056 Document the BISON_HAIRY and BISON_SIMPLE variables.
3057
30581998-11-25 Jesse Thilo <jthilo@gnu.org>
3059
3060 * src/version.c: Build version.c automatically.
3061
3062 * src/reader.c:
3063 Fix token numbering (used to start at 258, not 257).
3064
3065 * src/system.h: Include config.h.
3066
3067 * src/getargs.c: Update bug report address.
3068
3069 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3070 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3071
30721998-11-25 Jesse Thilo <jthilo@gnu.org>
3073
3074 * Makefile.am:
3075 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3076
3077 * configure.in, version.cin:
3078 Build version.c automatically.
3079
3080 * AUTHORS: Add AUTHORS file.
3081
3082 * README: Update bug report address.
3083
3084 * bison.simple:
3085 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3086
3087 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3088 Add automake stuff.
3089
30901998-11-25 Jesse Thilo <jthilo@gnu.org>
3091
3092 * doc/bison.texinfo: Clean up some formatting.
3093
30941998-05-05 Richard Stallman <rms@gnu.org>
3095
3096 * doc/bison.texinfo:
3097 Explain better why to make a pure parser.
3098
30991998-01-05 Richard Stallman <rms@gnu.org>
3100
3101 * src/files.c (openfiles):
3102 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3103 find a temporary directory, if possible. Do not unlink files while
3104 they are open.
3105
31061997-08-25 Richard Stallman <rms@gnu.org>
3107
3108 * src/reader.c (stack_offset;):
3109 Change some warni to warns.
3110
3111 * src/lex.c (literalchar): Use warns, not warni.
3112
31131997-06-28 Richard Stallman <rms@gnu.org>
3114
3115 * src/bison.s1: Add a Bison version comment.
3116
3117 * src/main.c (fatal, warn, berror):
3118 Use program_name.
3119
31201997-06-28 Richard Stallman <rms@gnu.org>
3121
3122 * Makefile.in (bison_version): New variable.
3123 (dist): Use that variable.
3124 (bison.s1): Substitute the Bison version into bison.simple.
3125
3126 * bison.simple: Add a Bison version comment.
3127
31281997-06-18 Richard Stallman <rms@gnu.org>
3129
3130 * src/main.c (fatal, warn, berror):
3131 Make error messages standard.
3132 (toomany): Improve error message text.
3133
3134 * 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:
3135 new.h renamed to alloc.h.
3136
31371997-06-18 Richard Stallman <rms@gnu.org>
3138
3139 * Makefile.in: new.h renamed to alloc.h.
3140
31411997-05-24 Richard Stallman <rms@gnu.org>
3142
3143 * src/lex.c (literalchar):
3144 Fix the code for escaping \, " and '.
3145
3146 (lex): Avoid trouble when there are many chars
3147 to discard in a char literal with just several chars in it.
3148
31491997-05-17 Richard Stallman <rms@gnu.org>
3150
3151 * src/bison.s1:
3152 Use malloc, if using alloca is troublesome.
3153 (YYSTACK_USE_ALLOCA): New flag macro.
3154 Define it for some systems and compilers.
3155 (YYSTACK_ALLOC): New macro.
3156 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3157 If it was malloc'd, free it.
3158
31591997-05-17 Richard Stallman <rms@gnu.org>
3160
3161 * bison.simple:
3162 Use malloc, if using alloca is troublesome.
3163 (YYSTACK_USE_ALLOCA): New flag macro.
3164 Define it for some systems and compilers.
3165 (YYSTACK_ALLOC): New macro.
3166 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3167 If it was malloc'd, free it.
3168
31691997-04-23 Richard Stallman <rms@gnu.org>
3170
3171 * src/bison.s1:
3172 (alloca) [__hpux]: Always define as __builtin_alloca.
3173
31741997-04-23 Richard Stallman <rms@gnu.org>
3175
3176 * bison.simple:
3177 (alloca) [__hpux]: Always define as __builtin_alloca.
3178
31791997-04-22 Richard Stallman <rms@gnu.org>
3180
3181 * src/bison.s1:
3182 [__hpux]: Include alloca.h (right for HPUX 10)
3183 instead of declaring alloca (right for HPUX 9).
3184
3185 * src/bison.s1 (__yy_memcpy):
3186 Declare arg `count' as unsigned int.
3187 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3188
31891997-04-22 Richard Stallman <rms@gnu.org>
3190
3191 * bison.simple:
3192 [__hpux]: Include alloca.h (right for HPUX 10)
3193 instead of declaring alloca (right for HPUX 9).
3194
3195 * bison.simple (__yy_memcpy):
3196 Declare arg `count' as unsigned int.
3197 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3198
31991997-01-03 Richard Stallman <rms@gnu.org>
3200
3201 * src/allocate.c: [__STDC__ or _MSC_VER]:
3202 Declare calloc and realloc to return void *.
3203
32041997-01-02 Richard Stallman <rms@gnu.org>
3205
3206 * src/system.h:
3207 [_MSC_VER]: Include stdlib.h and process.h.
3208 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3209
3210 * src/main.c (main): Return FAILURE as a value.
3211 (printable_version): Declare arg as int, not char.
3212
32131997-01-02 Richard Stallman <rms@gnu.org>
3214
3215 * Makefile.in (dist):
3216 Explicitly check for symlinks, and copy them.
3217
32181996-12-19 Richard Stallman <rms@gnu.org>
3219
3220 * src/files.c:
3221 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3222
32231996-12-18 Paul Eggert <eggert@gnu.org>
3224
3225 * src/bison.s1 (yyparse):
3226 If __GNUC__ and YYPARSE_PARAM are both defined,
3227 declare yyparse to have a void * argument.
3228
32291996-12-18 Paul Eggert <eggert@gnu.org>
3230
3231 * bison.simple (yyparse):
3232 If __GNUC__ and YYPARSE_PARAM are both defined,
3233 declare yyparse to have a void * argument.
3234
32351996-12-17 Richard Stallman <rms@gnu.org>
3236
3237 * src/reduce.c (nbits): Add some casts.
3238
32391996-08-12 Richard Stallman <rms@gnu.org>
3240
3241 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3242
32431996-08-12 Richard Stallman <rms@gnu.org>
3244
3245 * bison.simple: Test _MSDOS as well as _MSDOS_.
3246
32471996-07-31 Richard Stallman <rms@gnu.org>
3248
3249 * src/bison.s1:
3250 [__sun && __i386]: Include alloca.h.
3251
32521996-07-31 Richard Stallman <rms@gnu.org>
3253
3254 * bison.simple:
3255 [__sun && __i386]: Include alloca.h.
3256
32571996-07-30 Richard Stallman <rms@gnu.org>
3258
3259 * src/bison.s1: Comment change.
3260
3261 * src/bison.s1: Test _MSDOS_, not MSDOS.
3262
32631996-07-30 Richard Stallman <rms@gnu.org>
3264
3265 * bison.simple: Comment change.
3266
3267 * bison.simple: Test _MSDOS_, not MSDOS.
3268
32691996-06-01 Richard Stallman <rms@gnu.org>
3270
3271 * 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:
3272 Insert `_' macro around many string constants.
3273
3274 * src/main.c:
3275 Insert `_' macro around many string constants.
3276
3277 (main): Call setlocale, bindtextdomain and textdomain.
3278
3279 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3280 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3281 [ENABLE_NLS]: Include libintl.h.
3282 [ENABLE_NLS] (gettext): Define.
3283 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3284 (N_, PACKAGE, LOCALEDIR): New macros.
3285
32861996-06-01 Richard Stallman <rms@gnu.org>
3287
3288 * POTFILES.in: New file.
3289
3290 * Makefile.in (allocate.o):
3291 Define target explicitly.
3292
3293 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3294 (LDFLAGS): Set to @LDFLAGS@.
3295 (configure): Run autoconf only if preceding `cd' succeeds.
3296 (bison.s1): Redirect output to temporary file then move the
3297 temporary to the target, rather than redirecting directly to bison.s1.
3298 (clean): Remove config.status and config.log.
3299 (distclean): Don't remove config.status here.
3300
33011996-05-12 Richard Stallman <rms@gnu.org>
3302
3303 * src/bison.s1:
3304 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3305
33061996-05-12 Richard Stallman <rms@gnu.org>
3307
3308 * bison.simple:
3309 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3310
33111996-05-11 Richard Stallman <rms@gnu.org>
3312
3313 * src/bison.s1 (__yy_memcpy):
3314 Really reorder the args, as was supposedly done on Feb 14 1995.
3315 (yyparse): Calls changed accordingly.
3316
33171996-05-11 Richard Stallman <rms@gnu.org>
3318
3319 * Makefile.in (dist): Don't use $(srcdir).
3320
3321 * bison.simple (__yy_memcpy):
3322 Really reorder the args, as was supposedly done on Feb 14 1995.
3323 (yyparse): Calls changed accordingly.
3324
33251996-01-27 Richard Stallman <rms@gnu.org>
3326
3327 * src/output.c (output_rule_data):
3328 Test YYERROR_VERBOSE in the conditional
3329 around the definition of ttyname.
3330
33311995-12-29 Richard Stallman <rms@gnu.org>
3332
3333 * src/bison.s1:
3334 Fix line numbers in #line commands.
3335
33361995-12-29 Richard Stallman <rms@gnu.org>
3337
3338 * bison.simple:
3339 Fix line numbers in #line commands.
3340
33411995-12-27 Richard Stallman <rms@gnu.org>
3342
3343 * src/bison.s1 (YYPARSE_PARAM_DECL):
3344 In C++, make it always null.
3345 (YYPARSE_PARAM_ARG): New macro.
3346 (yyparse): Use YYPARSE_PARAM_ARG.
3347
33481995-12-27 Richard Stallman <rms@gnu.org>
3349
3350 * bison.simple (YYPARSE_PARAM_DECL):
3351 In C++, make it always null.
3352 (YYPARSE_PARAM_ARG): New macro.
3353 (yyparse): Use YYPARSE_PARAM_ARG.
3354
33551995-11-29 Richard Stallman <rms@gnu.org>
3356
3357 * doc/bison.texinfo:
3358 Describe literal string tokens, %raw, %no_lines, %token_table.
3359
33601995-11-29 Daniel Hagerty <hag@gnu.org>
3361
3362 * doc/bison.texinfo: Fixed update date
3363
33641995-10-16 Richard Stallman <rms@gnu.org>
3365
3366 * src/version.c: Version 1.25.
3367
33681995-10-16 Richard Stallman <rms@gnu.org>
3369
3370 * NEWS: *** empty log message ***
3371
33721995-10-16 Richard Stallman <rms@gnu.org>
3373
3374 * doc/bison.1, doc/bison.rnh:
3375 Add new options.
3376
33771995-10-15 Richard Stallman <rms@gnu.org>
3378
3379 * src/vmsgetargs.c, src/getargs.c:
3380 Added -n, -k, and -raw switches.
3381 (noparserflag, toknumflag, rawtoknumflag): New variables.
3382
3383 * src/symtab.h (SALIAS):
3384 New #define for adding aliases to %token.
3385 (struct bucket): Added `alias' field.
3386
3387 * src/reduce.c (reduce_grammar):
3388 Revise error message.
3389 (print_notices): Remove final `.' from error message.
3390
3391 * src/reader.c (reader_output_yylsp):
3392 New function.
3393 (readgram): Use `#if 0' around code that accepted %command
3394 inside grammar rules: The documentation doesn't allow it,
3395 and it will fail since the %command processors scan for the next %.
3396 (parse_token_decl): Extended the %token
3397 declaration to allow a multi-character symbol as an alias.
3398 (parse_thong_decl): New function.
3399 (read_declarations): Added %thong declarations.
3400 (read_declarations): Handle NOOP to deal with allowing
3401 % declarations as another means to specify the flags.
3402 (readgram): Allow %prec prior to semantics embedded in a rule.
3403 (skip_to_char, read_declarations, copy_definition)
3404 (parse_token_decl, parse_start_decl, parse_type_decl)
3405 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3406 (get_type_name, copy_guard, copy_action, readgram)
3407 (get_type, packsymbols): Revised most error messages.
3408 Changed `fatal' to `warnxxx' to avoid aborting for error.
3409 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3410 (read_declarations): Improve the error message for
3411 an invalid character. Do not abort.
3412 (read_declarations, copy_guard, copy_action): Use
3413 printable_version to avoid unprintable characters in printed output.
3414 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3415 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3416 Allow the type of a non-terminal can be given
3417 more than once, as long as all specifications give the same type.
3418
3419 * src/output.c:
3420 (output_headers, output_trailers, output, output_gram)
3421 (output_rule_data): Implement noparserflag variable.
3422 Implement toknumflag variable.
3423 (output): Call reader_output_yylsp to output LTYPESTR.
3424
3425 * src/main.c (main):
3426 If reader sees an error, don't process the grammar.
3427 (fatals): Updated to not use VARARGS1.
3428 (printable_version, int_to_string, warn, warni, warns, warnss)
3429 (warnsss): New error reporting functions. Avoid abort for error.
3430
3431 * src/lex.h:
3432 Added THONG and NOOP for alias processing.
3433 Added SETOPT for the new code that allows setting options with %flags.
3434
3435 * src/lex.c:
3436 Include getopt.h. Add some extern decls.
3437 (safegetc): New function to deal with EOF gracefully.
3438 (literalchar); new function to deal with reading \ escapes.
3439 (lex): Use literalchar.
3440 (lex): Implemented "..." tokens.
3441 (literalchar, lex, parse_percent_token): Made tokenbuffer
3442 always contain the token. This includes growing the token
3443 buffer while reading an integer.
3444 (parse_percent_token): Replaced if-else statement with percent_table.
3445 (parse_percent_token): Added % declarations as another
3446 way to specify the flags -n, -l, and -r. Also added hooks for
3447 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3448 major changes to files.c.
3449 (lex) Retain in the incoming stream a character following
3450 an incorrect '/'.
3451 (skip_white_space, lex): Revised most error messages
3452 and changed fatal to warn to avoid aborting.
3453 (percent_table): Added %thong declarations.
3454
3455 * src/gram.h: Comment changes.
3456
3457 * src/files.c (openfiles, open_extra_files, done):
3458 Add faction flag
3459 and actfile file. Handle noparserflag. Both for -n switch.
3460
3461 * src/conflicts.c (resolve_sr_conflict):
3462 Remove use of alloca.
3463
34641995-06-01 Jim Meyering <meyering@gnu.org>
3465
3466 * doc/bison.texinfo: *** empty log message ***
3467
34681995-05-06 Richard Stallman <rms@gnu.org>
3469
3470 * src/bison.s1: Comment change.
3471
34721995-05-06 Richard Stallman <rms@gnu.org>
3473
3474 * bison.simple: Comment change.
3475
34761995-05-03 Richard Stallman <rms@gnu.org>
3477
3478 * src/version.c: Version now 1.24.
3479
3480 * src/bison.s1: Change distribution terms.
3481
3482 * src/version.c: Version now 1.23.
3483
34841995-05-03 Richard Stallman <rms@gnu.org>
3485
3486 * doc/bison.texinfo:
3487 Rewrite "Conditions for Using Bison".
3488 Update version to 1.24.
3489
34901995-05-03 Richard Stallman <rms@gnu.org>
3491
3492 * bison.simple: Change distribution terms.
3493
34941995-02-23 Richard Stallman <rms@gnu.org>
3495
3496 * src/files.c: Test __VMS_POSIX as well as VMS.
3497
34981995-02-14 Jim Meyering <meyering@gnu.org>
3499
3500 * src/bison.s1 (__yy_memcpy):
3501 Renamed from __yy_bcopy to avoid
3502 confusion. Reverse FROM and TO arguments to be consistent with
3503 those of memcpy.
3504
35051995-02-14 Jim Meyering <meyering@gnu.org>
3506
3507 * bison.simple (__yy_memcpy):
3508 Renamed from __yy_bcopy to avoid
3509 confusion. Reverse FROM and TO arguments to be consistent with
3510 those of memcpy.
3511
35121994-11-10 David J. MacKenzie <djm@gnu.org>
3513
3514 * NEWS: reformat
3515
3516 * NEWS: New file.
3517
3518 * Makefile.in (DISTFILES): Include NEWS.
3519
3520 * Makefile.in (DISTFILES):
3521 Include install-sh, not install.sh.
3522
3523 * configure.in: Update to Autoconf v2 macro names.
3524
35251994-10-05 David J. MacKenzie <djm@gnu.org>
3526
3527 * Makefile.in: fix typo
3528
3529 * Makefile.in (prefix, exec_prefix):
3530 Let configure set them.
3531
35321994-09-28 David J. MacKenzie <djm@gnu.org>
3533
3534 * Makefile.in: Set datadir to $(prefix)/share.
3535
35361994-09-15 Richard Stallman <rms@gnu.org>
3537
3538 * src/bison.s1:
3539 Update copyright notice and GPL version.
3540
35411994-09-15 Richard Stallman <rms@gnu.org>
3542
3543 * bison.simple:
3544 Update copyright notice and GPL version.
3545
35461994-07-12 Richard Stallman <rms@gnu.org>
3547
3548 * src/reduce.c, src/reader.c:
3549 entered into RCS
3550
35511994-05-05 David J. MacKenzie <djm@gnu.org>
3552
3553 * Makefile.in: entered into RCS
3554
35551994-03-26 Richard Stallman <rms@gnu.org>
3556
3557 * src/bison.s1: entered into RCS
3558
35591994-03-26 Richard Stallman <rms@gnu.org>
3560
3561 * bison.simple: entered into RCS
3562
35631994-03-25 Richard Stallman <rms@gnu.org>
3564
3565 * src/main.c: entered into RCS
3566
35671994-03-24 Richard Stallman <rms@gnu.org>
3568
3569 * src/conflicts.c: entered into RCS
3570
35711994-01-02 Richard Stallman <rms@gnu.org>
3572
3573 * Makefile.in: *** empty log message ***
3574
35751993-11-21 Richard Stallman <rms@gnu.org>
3576
3577 * src/bison.s1: *** empty log message ***
3578
35791993-11-21 Richard Stallman <rms@gnu.org>
3580
3581 * doc/bison.texinfo: entered into RCS
3582
3583 * doc/bison.texinfo: *** empty log message ***
3584
35851993-11-21 Richard Stallman <rms@gnu.org>
3586
3587 * bison.simple: *** empty log message ***
3588
35891993-10-25 David J. MacKenzie <djm@gnu.org>
3590
3591 * doc/bison.texinfo: *** empty log message ***
3592
35931993-10-19 Richard Stallman <rms@gnu.org>
3594
3595 * src/bison.s1: *** empty log message ***
3596
35971993-10-19 Richard Stallman <rms@gnu.org>
3598
3599 * bison.simple: *** empty log message ***
3600
36011993-10-14 Richard Stallman <rms@gnu.org>
3602
3603 * src/bison.s1: *** empty log message ***
3604
36051993-10-14 Richard Stallman <rms@gnu.org>
3606
3607 * bison.simple: *** empty log message ***
3608
36091993-09-14 David J. MacKenzie <djm@gnu.org>
3610
3611 * doc/bison.texinfo: *** empty log message ***
3612
36131993-09-13 Noah Friedman <friedman@gnu.org>
3614
3615 * Makefile.in: *** empty log message ***
3616
36171993-09-10 Richard Stallman <rms@gnu.org>
3618
3619 * src/conflicts.c: *** empty log message ***
3620
3621 * src/system.h: entered into RCS
3622
36231993-09-10 Richard Stallman <rms@gnu.org>
3624
3625 * doc/bison.1: entered into RCS
3626
36271993-09-06 Noah Friedman <friedman@gnu.org>
3628
3629 * src/version.c: entered into RCS
3630
36311993-09-06 Noah Friedman <friedman@gnu.org>
3632
3633 * Makefile.in: *** empty log message ***
3634
36351993-07-30 David J. MacKenzie <djm@gnu.org>
3636
3637 * Makefile.in: *** empty log message ***
3638
36391993-07-24 Richard Stallman <rms@gnu.org>
3640
3641 * src/bison.s1: *** empty log message ***
3642
36431993-07-24 Richard Stallman <rms@gnu.org>
3644
3645 * bison.simple: *** empty log message ***
3646
36471993-07-08 David J. MacKenzie <djm@gnu.org>
3648
3649 * Makefile.in: *** empty log message ***
3650
36511993-07-04 Richard Stallman <rms@gnu.org>
3652
3653 * src/bison.s1: *** empty log message ***
3654
36551993-07-04 Richard Stallman <rms@gnu.org>
3656
3657 * bison.simple: *** empty log message ***
3658
36591993-06-26 David J. MacKenzie <djm@gnu.org>
3660
3661 * src/getargs.c: entered into RCS
3662
36631993-06-26 David J. MacKenzie <djm@gnu.org>
3664
3665 * doc/bison.texinfo: *** empty log message ***
3666
3667 * doc/bison.1: New file.
3668
36691993-06-25 Richard Stallman <rms@gnu.org>
3670
3671 * src/getargs.c: New file.
3672
36731993-06-16 Richard Stallman <rms@gnu.org>
3674
3675 * src/bison.s1: *** empty log message ***
3676
36771993-06-16 Richard Stallman <rms@gnu.org>
3678
3679 * bison.simple: *** empty log message ***
3680
36811993-06-03 Richard Stallman <rms@gnu.org>
3682
3683 * src/bison.s1: New file.
3684
36851993-06-03 Richard Stallman <rms@gnu.org>
3686
3687 * doc/bison.texinfo: *** empty log message ***
3688
36891993-06-03 Richard Stallman <rms@gnu.org>
3690
3691 * bison.simple: New file.
3692
36931993-05-19 Richard Stallman <rms@gnu.org>
3694
3695 * doc/bison.texinfo: New file.
3696
36971993-05-07 Noah Friedman <friedman@gnu.org>
3698
3699 * Makefile.in: *** empty log message ***
3700
37011993-04-28 Noah Friedman <friedman@gnu.org>
3702
3703 * src/reader.c: *** empty log message ***
3704
37051993-04-23 Noah Friedman <friedman@gnu.org>
3706
3707 * src/alloc.h: entered into RCS
3708
37091993-04-20 David J. MacKenzie <djm@gnu.org>
3710
3711 * src/version.c: *** empty log message ***
3712
3713 * src/files.c, src/allocate.c:
3714 entered into RCS
3715
3716 * src/reader.c: *** empty log message ***
3717
3718 * src/lex.c: entered into RCS
3719
3720 * src/conflicts.c: New file.
3721
3722 * src/symtab.c: entered into RCS
3723
3724 * src/alloc.h: New file.
3725
3726 * src/LR0.c: entered into RCS
3727
37281993-04-18 Noah Friedman <friedman@gnu.org>
3729
3730 * src/reader.c: New file.
3731
3732 * src/version.c: *** empty log message ***
3733
37341993-04-18 Noah Friedman <friedman@gnu.org>
3735
3736 * Makefile.in: *** empty log message ***
3737
37381993-04-17 Noah Friedman <friedman@gnu.org>
3739
3740 * Makefile.in: *** empty log message ***
3741
37421993-04-15 Richard Stallman <rms@gnu.org>
3743
3744 * src/main.c, src/files.c:
3745 New file.
3746
37471993-04-15 Noah Friedman <friedman@gnu.org>
3748
3749 * configure.in: entered into RCS
3750
3751 * configure.in: *** empty log message ***
3752
3753 * configure.in: New file.
3754
37551993-04-14 Richard Stallman <rms@gnu.org>
3756
3757 * Makefile.in: New file.
3758
37591993-04-13 Richard Stallman <rms@gnu.org>
3760
3761 * src/version.c: New file.
3762
37631993-03-25 Richard Stallman <rms@gnu.org>
3764
3765 * src/output.c: entered into RCS
3766
37671992-09-25 Richard Stallman <rms@gnu.org>
3768
3769 * configure.bat: entered into RCS
3770
37711992-06-22 Richard Stallman <rms@gnu.org>
3772
3773 * src/vmsgetargs.c: entered into RCS
3774
37751992-06-22 Richard Stallman <rms@gnu.org>
3776
3777 * doc/bison.rnh: entered into RCS
3778
37791992-04-20 David J. MacKenzie <djm@gnu.org>
3780
3781 * README: entered into RCS
3782
37831992-01-22 Richard Stallman <rms@gnu.org>
3784
3785 * src/machine.h: entered into RCS
3786
37871991-12-21 Richard Stallman <rms@gnu.org>
3788
3789 * src/lalr.c, src/closure.c:
3790 entered into RCS
3791
37921991-12-20 Richard Stallman <rms@gnu.org>
3793
3794 * src/state.h: entered into RCS
3795
37961991-12-18 Richard Stallman <rms@gnu.org>
3797
3798 * src/print.c, src/nullable.c, src/derives.c:
3799 entered into RCS
3800
38011991-11-03 David J. MacKenzie <djm@gnu.org>
3802
3803 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3804 entered into RCS
3805
38061988-09-09 Richard Stallman <rms@gnu.org>
3807
3808 * src/bison.hairy: entered into RCS
3809
38101987-12-16 Richard Stallman <rms@gnu.org>
3811
3812 * REFERENCES: entered into RCS