]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/conflicts.c (print_reductions): Improve variable locality.
[bison.git] / ChangeLog
CommitLineData
a17e599f
AD
12001-12-05 Akim Demaille <akim@epita.fr>
2
3 * src/conflicts.c (print_reductions): Improve variable locality.
4
5
a04bc341
AD
62001-12-05 Akim Demaille <akim@epita.fr>
7
8 * src/conflicts.c (print_reductions): Pessimize, but clarify.
9
10
c8ea038e
AD
112001-12-05 Akim Demaille <akim@epita.fr>
12
13 * src/conflicts.c (print_reductions): Improve variable locality.
14
15
aa2aab3c
AD
162001-12-05 Akim Demaille <akim@epita.fr>
17
18 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
19 * src/lalr.c: Use them.
20
21
b178c8cc
AD
222001-12-05 Akim Demaille <akim@epita.fr>
23
24 * src/LR0.c (augment_automaton): Formatting changes.
25 Better variable locality.
26
27
f67d13aa
AD
282001-12-05 Akim Demaille <akim@epita.fr>
29
30 * src/lalr.c (matrix_print): New.
31 (transpose): Use it.
32 Use arrays instead of pointers.
33
c2713865
AD
342001-12-05 Akim Demaille <akim@epita.fr>
35
36 * src/lalr.c (maxrhs): Move to...
37 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
38 * src/lalr.c (build_relations): Adjust.
39
9887c18a
AD
402001-12-05 Akim Demaille <akim@epita.fr>
41
42 * src/lalr.c (transpose): Free the memory allocated to the
43 argument, as it is replaced by the results by the unique caller.
44 (build_relations): Merely invoke transpose: it handles the memory
45 deallocation.
46 Improve variable locality.
47 Avoid variables used as mere abbreviations.
48 (compute_lookaheads): Use arrays instead of pointers.
49
4d4f699c
AD
502001-12-05 Akim Demaille <akim@epita.fr>
51
52 * src/lalr.c (initialize_F): Improve variable locality.
53 Avoid variables used as mere abbreviations.
54
80a69750
AD
552001-12-05 Akim Demaille <akim@epita.fr>
56
57 * src/derives.c (print_derives): Display the ruleno.
58 * src/lalr.c (initialize_F, transpose): Better variable locality
59 to improve readability.
60 Avoid variables used as mere abbreviations.
61
fe961097
AD
622001-12-05 Akim Demaille <akim@epita.fr>
63
64 * src/lalr.c (traverse): Use arrays instead of pointers.
65
e3e4e814
AD
662001-12-05 Akim Demaille <akim@epita.fr>
67
68 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
69 the handling of squeue.
70 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
71
72
630e182b
AD
732001-12-05 Akim Demaille <akim@epita.fr>
74
75 Because useless nonterminals are now kept alive (instead of being
76 `destroyed'), we now sometimes examine them, and store information
77 related to them. Hence we need to know their number, and adjust
78 memory allocations.
79
80 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
81 static.
82 * src/LR0.c (allocate_itemsets): The memory allocated to
83 `symbol_count' was used for two different purpose: once to count
84 the number of occurrences of each symbol, and later reassigned to
85 `shift_symbol', containing the symbol that can be shifted from a
86 given state.
87 Deobfuscate, i.e., allocate, use and free `symbol_count' here
88 only, and...
89 (new_itemsets): Allocate `shift_symbol' here.
90 (allocate_itemsets): symbol_count includes useless nonterminals.
91 Make room for them.
92 (free_storage): Use `free', not `XFREE', for pointers that cannot
93 be null.
94
95
81b51460
AD
962001-12-05 Akim Demaille <akim@epita.fr>
97
98 * src/nullable.c (set_nullable): Deobfuscate the handling of
99 ritem.
100 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
101
102
3067fbef
AD
1032001-12-05 Akim Demaille <akim@epita.fr>
104
105 * src/gram.c, src/gram.h (ritem_print): New.
106 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
107 (This useless function was defined only to work around VMS linkers
108 that can't handle compilation units with variables only).
109 * src/reduce.c (dump_grammar): Use it to trace the construction of
110 ritem.
111
c2bea5f9
PE
1122001-12-04 Paul Eggert <eggert@twinsun.com>
113
7d27c823
PE
114 * src/bison.simple (union yyalloc): Change member names
115 to be the same as the stack names.
116 (yyparse): yyptr is now union yyalloc *, not char *.
117 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
118 and may generate better code on some machines.
c2bea5f9
PE
119 (yystpcpy): Use prototype if __STDC__ is defined, not just
120 if __cplusplus is defined.
121
2c8a9dfa
AD
1222001-11-30 Akim Demaille <akim@epita.fr>
123
124 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
125 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
126 Gettext doesn't compile cleanly, and dies with -Werror.
127 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
128 Include WARNING_CFLAGS here.
129 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
130 before being defined.
131
f4e421e6
AD
1322001-11-27 Paul Eggert <eggert@twinsun.com>
133
134 * lib/quotearg.h (quotearg_n, quotearg_n_style):
135 First arg is int, not unsigned.
136 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
137 (SIZE_MAX, UINT_MAX): New macros.
138 (quotearg_n_options): Abort if N is negative.
139 Avoid overflow check on hosts where size_t is 64 bits and int
140 is 32 bits, as overflow is impossible there.
141 Fix off-by-one typo that caused unnecessary reallocation.
142
7093d0f5
AD
1432001-11-29 Paul Eggert <eggert@twinsun.com>
144
145 Name space cleanup in generated parser.
146
147 * doc/bison.texinfo (Bison Parser): Discuss system headers
148 and their effect on the user name space.
149
150 * src/bison.simple:
151 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
152 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
153 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
154
155 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
156 on user names when possible.
157
158 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
159 Simplify test for whather <alloca.h> exists.
160
161 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
162
163 (<stdio.h>): Include if YYDEBUG.
164
165 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
166 ! defined (yyoverflow) && ! defined (yymemcpy).
167
168 (yymemcpy, yyparse): Rename local variables as needed so that
169 they all begin with 'yy'.
170
171 (yystrlen, yystpcpy): New functions.
172
173 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
174 All uses changed.
175
176 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
177 instead of relying on string.h functions. Use YYSTACK_ALLOC
178 and YYSTACK_FREE instead of malloc and free.
179
fd51e5ff
AD
1802001-11-30 Akim Demaille <akim@epita.fr>
181
182 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
183 before their first uses.
184 (YYBISON, YYPURE): Move to the top of the output.
185
7d13ff5f
AD
1862001-11-30 Akim Demaille <akim@epita.fr>
187
188 * tests/reduce.at (Useless Nonterminals): Fix.
189
892a3995
AD
1902001-11-30 Akim Demaille <akim@epita.fr>
191
192 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
193 if body instead of `;' to pacify GCC's warnings.
194
68f1e3ed
AD
1952001-11-30 Akim Demaille <akim@epita.fr>
196
197 Instead of mapping the LHS of unused rules to -1, keep the LHS
198 valid, but flag the rules as invalid.
199
200 * src/gram.h (rule_t): `useful' is a new member.
201 * src/print.c (print_grammar): Adjust.
202 * src/derives.c (set_derives): Likewise.
203 * src/reader.c (packgram, reduce_output): Likewise.
204 * src/reduce.c (reduce_grammar_tables): Likewise.
205 * tests/reduce.at (Underivable Rules, Useless Rules): New.
206
d2d1b42b
AD
2072001-11-30 Akim Demaille <akim@epita.fr>
208
209 * src/reduce.c (reduce_output): Formatting changes.
210 * src/print.c (print_results, print_grammar): Likewise.
211 * tests/regression.at (Rule Line Numbers)
212 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
213
760b53a8
AD
2142001-11-30 Akim Demaille <akim@epita.fr>
215
216 * src/reduce.c (nonterminals_reduce): Instead of throwing away
217 useless nonterminals, move them at the end of the symbol arrays.
218 (reduce_output): Adjust.
219 * tests/reduce.at (Useless Nonterminals): Adjust.
220
00238958
AD
2212001-11-30 Akim Demaille <akim@epita.fr>
222
223 * src/reduce.c: Various comment/formatting changes.
224 (nonterminals_reduce): New, extracted from...
225 (reduce_grammar_tables): here.
226 (reduce_grammar): Call nonterminals_reduce.
227
396452de
PE
2282001-11-29 Paul Eggert <eggert@twinsun.com>
229
230 * src/bison.simple (YYSTACK_REALLOC): Remove.
231 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
232 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
233 New macros.
234 (union yyalloc): New type.
235 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
236 an arbitrary restriction on hosts where size_t is wider than int.
237
238 (yyparse): Don't dump core if alloca or malloc fails; instead, report
239 a parser stack overflow. Allocate just one block of memory for all
240 three stacks, instead of allocating three blocks; this typically is
241 faster and reduces fragmentation.
242
243 Do not limit the number of items in the stack to a value that fits
244 in 'int', as this is an arbitrary limit on hosts with 64-bit
245 size_t and 32-bit int.
246
147e184c
MA
2472001-11-29 Marc Autret <autret_m@epita.fr>
248
249 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
250 of defining YYERROR_VERBOSE.
251 [AT_DATA]: $4 is now out of C declarations in the prologue.
252
426cf563
MA
2532001-11-28 Marc Autret <autret_m@epita.fr>
254
255 * src/reader.c (parse_dquoted_param): New.
256 (parse_skel_decl): Use it.
257 * src/lex.h: Add its prototype.
258 * src/lex.c (literalchar): Become not static.
259
c7925b99
MA
2602001-11-28 Marc Autret <autret_m@epita.fr>
261
262 * src/output.h: And put its extern declaration here.
263 * src/output.c (error_verbose): Define here.
264 (prepare): Echo name modification.
265 * src/getargs.h: Clean its extern declaration.
266 * src/getargs.c (error_verbose_flag): Remove.
267 (getargs): Remove case 'e'.
268 * src/options.c (option_table): 'error-verbose' is now seen as simple
269 percent option.
270 Include output.h.
271
272 * src/reader.c (read_declarations): Remove case tok_include.
273 (parse_include_decl): Remove.
274 * src/lex.h (token_t): Remove tok_include.
275 * src/options.c (option_table): 'include' is now a simple command line
276 option.
277
5b5d1929
MA
2782001-11-28 Marc Autret <autret_m@epita.fr>
279
280 * src/bison.simple: Adjust muscle names.
281 * src/muscle_tab.c (muscle_init): Also rename the muscles.
282 * src/output.c (prepare): s/_/-/ for the muscles names.
283 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
284
8850be4b
MA
2852001-11-28 Marc Autret <autret_m@epita.fr>
286
287 * src/bison.simple: Fix debug.
288 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
289
4a38e613
AD
2902001-11-28 Akim Demaille <akim@epita.fr>
291
292 * src/LR0.c (shifts_new): New.
293 (save_shifts, insert_start_shift, augment_automaton): Use it.
294
4b35e1c1
AD
2952001-11-28 Akim Demaille <akim@epita.fr>
296
297 * src/closure.c (closure): `b' and `ruleno' denote the same value:
298 keep ruleno only.
299
d2b04478
AD
3002001-11-28 Akim Demaille <akim@epita.fr>
301
302 * src/closure.c (closure): Instead of looping over word in array
303 then bits in words, loop over bits in array.
304
2c4c30aa
AD
3052001-11-28 Akim Demaille <akim@epita.fr>
306
307 * src/closure.c (closure): No longer optimize the special case
308 where all the bits of `ruleset[r]' are set to 0, to make the code
309 clearer.
310
576890b7
AD
3112001-11-28 Akim Demaille <akim@epita.fr>
312
313 * src/closure.c (closure): `r' and `c' are new variables, used to
314 de-obfuscate accesses to RULESET and CORE.
315
cb487d7d
AD
3162001-11-28 Akim Demaille <akim@epita.fr>
317
318 * src/reduce.c (reduce_print): Use ngettext.
319 (dump_grammar): Improve the trace accuracy.
320
6013d43f
AD
3212001-11-28 Akim Demaille <akim@epita.fr>
322
323 * src/reduce.c (dump_grammar): Don't translate trace messages.
324
cb4956ee
AD
3252001-11-28 Akim Demaille <akim@epita.fr>
326
327 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
328 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
329 as all tags are free'ed afterwards.
330 From Enrico Scholz.
331
648185ab
PE
3322001-11-27 Paul Eggert <eggert@twinsun.com>
333
334 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
335 use alloca when we didn't want to, and vice versa.
336
68254a03
MA
3372001-11-27 Marc Autret <autret_m@epita.fr>
338
9113b58f
AD
339 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
340 initialization.
68254a03
MA
341 * src/output.c (prepare): Remove its update.
342
04d843a2
MA
3432001-11-27 Marc Autret <autret_m@epita.fr>
344
345 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
346 Use %error-verbose.
347
d2079671 3482001-11-27 Marc Autret <autret_m@epita.fr>
eeeb962b
MA
349
350 * src/bison.simple: Remove YYERROR_VERBOSE using.
351 Use %%error_verbose.
352 (yyparse): Likewise.
353 * src/output.c (prepare): Give its final value.
354 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
355 * src/getargs.h: Add its extern declaration.
356 * src/getargs.c (error_verbose_flag): New int.
357 (getargs): Update to catch new case.
358 * src/options.c (option_table): 'error-verbose' is a new option.
359 (shortopts): Update.
360
e0327bc8
AD
3612001-11-27 Akim Demaille <akim@epita.fr>
362
363 * src/system.h: Use intl/libgettext.h.
364 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
365
000f1a3c
AD
3662001-11-27 Akim Demaille <akim@epita.fr>
367
368 * tests/torture.at (Exploding the Stack Size with Malloc):
369 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
370
26cfe0be
AD
3712001-11-27 Akim Demaille <akim@epita.fr>
372
373 * src/files.c: Include error.h.
374 Reported by Hans Aberg.
375
f6bd5427
MA
3762001-11-26 Marc Autret <autret_m@epita.fr>
377
d2079671 378 * src/reader.c (parse_include_decl): New, not yet implemented.
f6bd5427
MA
379 (read_declarations): Add case tok_include.
380 * src/getargs.h (include): Add its extern definition.
381 * src/getargs.c (include): New const char *.
382 (getargs): Add case '-I'.
383 * src/options.c (option_table): Add include as command line and
384 percent option.
385 * src/lex.h (token_t): Add tok_include.
386
2ca209c1
AD
3872001-11-26 Akim Demaille <akim@epita.fr>
388
389 * src/reader.c (readgram): Make sure rules for mid-rule actions
390 have a lineno equal to that of their host rule.
391 Reported by Hans Aberg.
392 * tests/regression.at (Rule Line Numbers): New.
393
0e41b407
AD
3942001-11-26 Akim Demaille <akim@epita.fr>
395
396 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
397 size_ts.
398
3992001-11-26 Akim Demaille <akim@epita.fr>
400
401 * src/complain.c, src/complain.h (error): Remove, provided by
402 lib/error.[ch].
403
e0c40012
AD
4042001-11-26 Akim Demaille <akim@epita.fr>
405
406 * src/reader.c (read_declarations): Don't abort on tok_illegal,
407 issue an error message.
408 * tests/regression.at (Invalid %directive): New.
409 Reported by Hans Aberg.
410
5e147124
AD
4112001-11-26 Akim Demaille <akim@epita.fr>
412
413 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
414 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
415
a034c8b8
AD
4162001-11-26 Akim Demaille <akim@epita.fr>
417
418 * src/conflicts.c (conflicts_print): Don't complain at all when
419 there are no reduce/reduce conflicts, and as many shift/reduce
420 conflicts as expected.
421 * tests/regression.at (%expect right): Adjust.
422
c64a20f3
AD
4232001-11-23 Akim Demaille <akim@epita.fr>
424
425 * lib/alloca.c: Update, from fileutils.
426
5b0d29bb
AD
4272001-11-23 Akim Demaille <akim@epita.fr>
428
429 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
430
722c4bfe
AD
4312001-11-23 Akim Demaille <akim@epita.fr>
432
433 * src/system.h: Include alloca.h.
434 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
435
6255b435
AD
4362001-11-23 Akim Demaille <akim@epita.fr>
437
438 * src/print_graph.c (print_actions): Remove `rule', unused.
439 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
440 pacify GCC's signed < unsigned warnings.
441 * src/closure.c (itemsetsize): Likewise.
442 * src/reader.c (symbol_list_new): Static.
443
b29b2ed5
AD
4442001-11-23 Akim Demaille <akim@epita.fr>
445
446 Attaching lineno to buckets is stupid, since only one copy of each
447 symbol is kept, only the line of the first occurrence is kept too.
448
449 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
450 * src/reader.c (rline_allocated): Remove, unused.
451 (symbol_list): Have a `line' member.
452 (symbol_list_new): New.
453 (readgram): Use it.
454 * src/print.c (print_grammar): Output the rule line numbers.
455 * tests/regression.at (Solved SR Conflicts)
456 (Unresolved SR Conflicts): Adjust.
457 Reported by Hans Aberg.
458
a81b1d4a
MA
4592001-11-22 Marc Autret <autret_m@epita.fr>
460
461 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
462
c1ecb3c1
MA
4632001-11-22 Marc Autret <autret_m@epita.fr>
464
465 * src/muscle_tab.c (muscle_init): Remove initialization of
466 skeleton muscle.
467 * src/output.c (output_master_parser): Do it here.
468
fbe01355
AD
4692001-11-20 Akim Demaille <akim@epita.fr>
470
471 * po/sv.po: New.
472 * configure.in (ALL_LINGUAS): Adjust.
473 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
474 longer contains strings to translate.
475
81e895c0
AD
4762001-11-19 Akim Demaille <akim@epita.fr>
477
478 * src/conflicts.c (conflicts_print): Add a missing \n.
479
6bb1878b
AD
4802001-11-19 Akim Demaille <akim@epita.fr>
481
482 * src/nullable.c (nullable_print): New.
483 (set_nullable): Call it when tracing.
484 Better locality of variables.
485
d9ec2d07
AD
4862001-11-19 Akim Demaille <akim@epita.fr>
487
488 * src/print.c (print_actions): Better locality of variables.
489
720e5c1b
AD
4902001-11-19 Akim Demaille <akim@epita.fr>
491
492 * src/derives.c (print_derives): Fix and enrich.
493 * src/closure.c (print_fderives): Likewise.
494
fb908786
AD
4952001-11-19 Akim Demaille <akim@epita.fr>
496
497 * src/closure.c (itemsetend): Remove, replaced with...
498 (itemsetsize): new.
499
125ecb56
AD
5002001-11-19 Akim Demaille <akim@epita.fr>
501
502 * src/LR0.c (kernel_end): Remove, replaced with...
503 (kernel_size): new.
504
d8cf039f
AD
5052001-11-19 Akim Demaille <akim@epita.fr>
506
507 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
508 to clarify.
509
7bec0760
AD
5102001-11-19 Akim Demaille <akim@epita.fr>
511
512 * src/closure.c (closure): Use arrays instead of pointers to clarify.
513
c87d4863
AD
5142001-11-19 Akim Demaille <akim@epita.fr>
515
516 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
517 trace messages.
518 * src/LR0.c: Likewise.
519 (allocate_itemsets): Use arrays instead of pointers to clarify.
520
9bfe901c
AD
5212001-11-19 Akim Demaille <akim@epita.fr>
522
523 * src/getargs.c (statistics_flag): Replace with...
524 (trace_flag): New.
525 (longopts): Accept --trace instead of --statistics.
526 * src/getargs.h, src/options.c: Adjust.
527 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
528 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
529
97db7bd4
AD
5302001-11-19 Akim Demaille <akim@epita.fr>
531
cc72668c 532 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
97db7bd4
AD
533 pointers to clarify the code.
534 (save_reductions, save_shifts): Factor common parts of alternatives.
535
2c5f66ed
AD
5362001-11-19 Akim Demaille <akim@epita.fr>
537
538 * src/LR0.c (new_state, get_state): Complete TRACE code.
539 * src/closure.c: Include `reader.h' to get `tags', needed by the
540 trace code.
541 Rename the conditional DEBUG as TRACE.
542 Output consistently TRACEs to stderr, not stdout.
543 * src/derives.c: Likewise.
544 * src/reduce.c: (inaccessable_symbols): Using if is better style
545 than goto.
546 Use `#if TRACE' instead of `#if 0' for tracing code.
547
300f275f
AD
5482001-11-19 Akim Demaille <akim@epita.fr>
549
550 * src/system.h (LIST_FREE, shortcpy): New.
551 * src/LR0.c: Use them.
552 * src/output.c (free_itemsets, free_reductions, free_shifts):
553 Remove, replaced by LIST_FREE.
554
f59c437a
AD
5552001-11-19 Akim Demaille <akim@epita.fr>
556
557 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
558 (REDUCTIONS_ALLOC): New.
559 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
560 allocation.
561
6986fd9e
AD
5622001-11-19 Akim Demaille <akim@epita.fr>
563
564 * src/LR0.c (new_state): Complete trace code.
565 * src/nullable.c (set_nullable): Don't translate traces.
566
4bc30f78
AD
5672001-11-19 Akim Demaille <akim@epita.fr>
568
569 * src/print_graph.c (print_core): Better locality of variables.
570 * src/print.c (print_core): Likewise.
571
08a946e0
AD
5722001-11-19 Akim Demaille <akim@epita.fr>
573
574 * src/vcg.c: You do the output, so you are responsible of the
575 handling of VCG syntax, in particular: use quotearg.
576 * src/print_graph.c: Don't.
577 (print_actions): Don't output the actions as part of the nodes,
578 since that's the job of the edges.
579 (print_state): Don't output by hand: fill the node description,
9bfe901c 580 and ask for its output.
08a946e0 581
f0473484
AD
5822001-11-19 Akim Demaille <akim@epita.fr>
583
cc72668c
AD
584 * src/bison.simple (yyparse): When verbosely reporting an error,
585 no longer put additional quotes around token names.
f0473484
AD
586 * tests/calc.at: Adjust.
587
e41dc700
AD
5882001-11-19 Akim Demaille <akim@epita.fr>
589
590 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
591 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
592 * src/output.c: Adjust.
593
652a871c
AD
5942001-11-19 Akim Demaille <akim@epita.fr>
595
596 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
597 (rule_t): this.
598 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
599
b2ed6e58
AD
6002001-11-19 Akim Demaille <akim@epita.fr>
601
602 * src/gram.h (rule_t): New.
603 (rule_table): New.
604 (rrhs, rlhs): Remove, part of state_t.
605 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
606 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
607 * src/reader.c, src/reduce.c: Adjust.
608
edad7067
AD
6092001-11-19 Akim Demaille <akim@epita.fr>
610
611 * src/reader.c (symbols_output): New, extracted from...
612 (packsymbols): Here.
613 (reader): Call it.
614
3feec034
AD
6152001-11-19 Akim Demaille <akim@epita.fr>
616
617 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
618 (maxrhs): this new function.
619
ddcd5fdf
AD
6202001-11-19 Akim Demaille <akim@epita.fr>
621
cc72668c 622 * src/lalr.c (F): New macro to access the variable F.
ddcd5fdf
AD
623 Adjust.
624
bb527fc2
AD
6252001-11-19 Akim Demaille <akim@epita.fr>
626
cc72668c 627 * src/lalr.h (LA): New macro to access the variable LA.
bb527fc2
AD
628 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
629 * src/lalr.c: Adjust.
630
a845a697
AD
6312001-11-19 Akim Demaille <akim@epita.fr>
632
633 * src/lalr.c (initialize_LA): Only initialize LA. Let...
634 (set_state_table): handle the `lookaheads' members.
635
f004bf6a
AD
6362001-11-19 Akim Demaille <akim@epita.fr>
637
cc72668c
AD
638 * src/lalr.h (lookaheads): Removed array, whose contents is now
639 a member of...
f004bf6a
AD
640 (state_t): this structure.
641 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
642 Adjust.
643
de326cc0
AD
6442001-11-19 Akim Demaille <akim@epita.fr>
645
cc72668c
AD
646 * src/lalr.h (consistent): Removed array, whose contents is now
647 a member of...
de326cc0
AD
648 (state_t): this structure.
649 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
650 Adjust.
651
90b4416b
AD
6522001-11-19 Akim Demaille <akim@epita.fr>
653
cc72668c
AD
654 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
655 contents are now members of...
90b4416b
AD
656 (state_t): this structure.
657 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
658 Adjust.
659
9703cc49
AD
6602001-11-19 Akim Demaille <akim@epita.fr>
661
662 * src/lalr.h (state_t): New.
663 (state_table): Be a state_t * instead of a core **.
664 (accessing_symbol): Remove, part of state_t.
665 * src/lalr.c: Adjust.
666 (set_accessing_symbol): Merge into...
667 (set_state_table): this.
668 * src/print_graph.c, src/conflicts.c: Adjust.
669
d803322e
AD
6702001-11-14 Akim Demaille <akim@epita.fr>
671
672 * tests/calc.at, tests/output.at, tests/regression.at,
673 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
674 now the tests are run in private dirs, therefore AC_CLEANUP and
675 family can be simplified to 0-ary.
676 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
677 use abs. path to find config.h.
678 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
679 stderr, there can be way too much random noise.
680 Instead pass -Werror to GCC and rely on the exit status.
681 Reported by Wolfram Wagner.
682
3d76b07d
AD
6832001-11-14 Akim Demaille <akim@epita.fr>
684
685 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
686 defined only if yyoverflow is defined, to avoid `warning: unused
687 variable `yyvs1''.
688 Reported by The Test Suite.
689
09b503c8
AD
6902001-11-14 Akim Demaille <akim@epita.fr>
691
692 * src/print.c: Include reduce.h.
693 Reported by Hans Aberg.
694
6952001-11-14 Akim Demaille <akim@epita.fr>
696
697 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
698 Revert a previous patch: these are really const.
699 * src/conflicts.c (conflict_report): Additional useless pair of
700 braces to pacify GCC's warnings for `if () if () {} else {}'.
701 * src/lex.c (parse_percent_token): Replace equal_offset with
702 arg_offset.
703 arg is const.
704 Be sure to strdup `arg' when used, since there is no reason for
705 token_buffer not to change.
706
0f37a994
AD
7072001-11-14 Akim Demaille <akim@epita.fr>
708
709 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
710 definition.
711 * src/main.c (main): Use them.
712 Suggested by Hans Aberg.
713
d39d93b8
AD
7142001-11-12 Akim Demaille <akim@epita.fr>
715
716 * src/system.h (ngettext): Now that we use ngettext, be sure to
717 provide a default definition when NLS are not used.
718
9edcd895
AD
7192001-11-12 Akim Demaille <akim@epita.fr>
720
721 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
722 Use @kbd to denote user input.
723 (Language and Grammar): ANSIfy the example.
724 Adjust its layout for info/notinfo.
725 (Location Tracking Calc): Output error messages to stderr.
726 Output locations in a more GNUtically correct way.
727 Fix a couple of Englishos.
728 Adjust @group/@end group pairs.
729
7da99ede
AD
7302001-11-12 Akim Demaille <akim@epita.fr>
731
732 %expext was not functioning at all.
733
734 * src/conflicts.c (expected_conflicts): Set to -1.
735 (conflict_report): Use ngettext.
736 (conflicts_print): Check %expect and make its violation an error.
737 * doc/bison.texinfo (Expect Decl): Adjust.
738 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
739 * tests/regression.at (%expect not enough, %expect right)
740 (%expect too much): New.
741
ba9dda1a
AD
7422001-11-12 Akim Demaille <akim@epita.fr>
743
744 * tests/regression.at (Conflicts): Rename as...
745 (Unresolved SR Conflicts): this.
746 (Solved SR Conflicts): New.
747
337c5bd1
AD
7482001-11-12 Akim Demaille <akim@epita.fr>
749
750 * src/reduce.c (print_results): Rename as...
751 (reduce_output): This.
752 Output to OUT, passed as argument, instead of output_obstack.
753 (dump_grammar): Likewise.
754 (reduce_free): New.
755 Also free V1.
756 (reduce_grammar): No longer call reduce_output, since...
757 * src/print.c (print_results): do it.
758 * src/main.c (main): Call reduce_free;
759
c73a41af
AD
7602001-11-12 Akim Demaille <akim@epita.fr>
761
762 * src/conflicts.c (print_reductions): Accept OUT as argument.
763 Output to it, not to output_obstack.
764 * src/print.c (print_actions): Adjust.
765
0df87bb6
AD
7662001-11-12 Akim Demaille <akim@epita.fr>
767
768 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
769 the result instead of using...
770 (src_total, rrc_total, src_count, rrc_count): Remove.
771 (any_conflicts): Remove.
772 (print_conflicts): Split into...
773 (conflicts_print, conflicts_output): New.
774 * src/conflicts.h: Adjust.
775 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
0f37a994 776 * src/print.c (print_grammar): Issue `\n' between two rules.
0df87bb6
AD
777 * tests/regression.at (Conflicts): New.
778 Reported by Tom Lane.
779
e4d3d4de
AD
7802001-11-12 Akim Demaille <akim@epita.fr>
781
782 * tests/regression.at (Invalid input): Remove, duplicate with
783 ``Invalid input: 1''.
784
6d7d248e
AD
7852001-11-12 Akim Demaille <akim@epita.fr>
786
787 * tests/torture.at (AT_DATA_STACK_TORTURE)
788 (Exploding the Stack Size with Alloca)
789 (Exploding the Stack Size with Malloc): New.
790
e9e4c321
AD
7912001-11-12 Akim Demaille <akim@epita.fr>
792
793 * src/bison.simple (YYSTACK_REALLOC): New.
794 (yyparse) [!yyoverflow]: Use it and free the old stack.
0f37a994 795 Reported by Per Allansson.
e9e4c321 796
5f7e0832
AD
7972001-11-12 Pascal Bart <pascal.bart@epita.fr>
798
799 * src/bison.simple: Define type yystype instead of YYSTYPE, and
800 define CPP macro, which substitute YYSTYPE by yystype.
801 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
802 with yyltype/YYLTYPE. This allows inclusion of the generated
803 header within the parser if the compiler, such as GGC, accepts
804 multiple equivalent #defines.
805 From Akim.
806
e3f1699f
AD
8072001-11-05 Akim Demaille <akim@epita.fr>
808
809 * src/reader.c (symbols_output): New, extracted from...
810 (packsymbols): here.
811 (reader): Adjust.
812
65be0866
AD
8132001-11-05 Akim Demaille <akim@epita.fr>
814
815 * src/lex.c (parse_percent_token): s/quotearg/quote/.
816
e4d910bf
AD
8172001-11-05 Akim Demaille <akim@epita.fr>
818
819 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
820 pattern.
821
951366c1
AD
8222001-11-05 Akim Demaille <akim@epita.fr>
823
824 * src/options.h (struct option_table_struct): set_flags is void*.
825 * src/options.c (longopts): Support `--output' and `%output'.
826 (usage): Adjust.
827 * src/lex.h (tok_setopt): Remove, replaced with...
828 (tok_intopt, tok_stropt): these new guys.
829 * src/lex.c (getopt.h): Not needed.
830 (token_buffer, unlexed_token_buffer): Not const.
831 (percent_table): Promote `-' over `_' in directive names.
832 Active `%name-prefix', `file-prefix', and `output'.
833 (parse_percent_token): Accept possible arguments to directives.
834 Promote `-' over `_' in directive names.
835
d8988b2f
AD
8362001-11-04 Akim Demaille <akim@epita.fr>
837
838 * doc/bison.texinfo (Decl Summary): Split the list into
839 `directives for grammars' and `directives for bison'.
840 Sort'em.
841 Add description of `%name-prefix', `file-prefix', and `output'.
842 Promote `-' over `_' in directive names.
843 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
844 Simplify the description of `--name-prefix'.
845 Promote `-' over `_' in directive names.
846 Promote `--output' over `--output-file'.
847 Fix the description of `--defines'.
848 * tests/output.at: Exercise %file-prefix and %output.
849
6468d18e
AD
8502001-11-02 Akim Demaille <akim@epita.fr>
851
852 * doc/refcard.tex: Update.
853
6b7e85b9
AD
8542001-11-02 Akim Demaille <akim@epita.fr>
855
856 * src/symtab.h (SUNDEF): New.
857 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
858 stand for `uninitialized', instead of 0.
859 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
860 * src/lex.c (lex): Adjust.
861
862 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
863 Number it 0.
864 Let yylex return it instead of a plain 0.
865 Reported by Dick Streefland.
866
cd5aafcf
AD
8672001-11-02 Akim Demaille <akim@epita.fr>
868
869 * tests/regression.at (Mixing %token styles): New test.
870
037ca2f1
AD
8712001-11-02 Akim Demaille <akim@epita.fr>
872
873 * src/reader.c (parse_thong_decl): Formatting changes.
874 (token_translations_init): New, extracted from...
875 (packsymbols): Here.
876 Adjust.
877
270a173c
AD
8782001-11-01 Akim Demaille <akim@epita.fr>
879
880 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
881 Check that `9foo.y' produces correct cpp guards.
882 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
883 guards.
884 Reported by Wwp.
885
561f9a30
AD
8862001-11-01 Akim Demaille <akim@epita.fr>
887
888 * tests/regression.at (Invalid input: 2): New.
889 * src/lex.c (unlexed_token_buffer): New.
890 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
891 too.
892 Reported by Wwp.
893
f987e9d2
AD
8942001-11-01 Akim Demaille <akim@epita.fr>
895
896 * tests/calc.at: Catch up with 1.30.
897 * configure.in: Bump to 1.49a.
898 Adjust to newer Autotest.
899
0846f581
PB
9002001-10-19 Pascal Bart <pascal.bart@epita.fr>
901
902 * src/conflicts.c: Move global variables rrc_total and src_total ...
903 (print_conflicts): here.
904 * src/output.c (output): Free global variable user_toknums.
905 * src/lex.c (token_obstack): Become static.
906
3c1a79b3
AD
9072001-10-18 Akim Demaille <akim@epita.fr>
908
909 * tests/atlocal.in (GCC): Add.
910 * tests/calc.at: s/m4_match/m4_bmatch/.
911 s/m4_patsubst/m4_bpatsubst/.
912 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
913 * configure.in: AC_SUBST(GCC).
914
5d52e7d0
MA
9152001-10-14 Marc Autret <autret_m@epita.fr>
916
917 * src/options.c (create_long_option_table): Fix.
918
631aa1d3
AD
9192001-10-10 Akim Demaille <akim@epita.fr>
920
921 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
922
f6ec6d13
AD
9232001-10-04 Akim Demaille <akim@epita.fr>
924
925 * src/reader.c (parse_union_decl): Push the caracters in
926 union_obstack, not attrs_obstack.
927
342b8b6e
AD
9282001-10-04 Akim Demaille <akim@epita.fr>
929
930 Merge in the branch 1.29.
931
932 * src/reader.c (packsymbols): Use a temporary obstack for
933 `%%tokendef', since output_stack is already used elsewhere.
934
935 2001-10-02 Akim Demaille <akim@epita.fr>
936
937 Bump 1.29d.
938
939 2001-10-02 Akim Demaille <akim@epita.fr>
940
941 Version 1.29c.
942
943 2001-10-02 Akim Demaille <akim@epita.fr>
944
945 * tests/regression.at (Invalid CPP headers): New.
946 From Alexander Belopolsky.
947 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
948
949 2001-10-02 Akim Demaille <akim@epita.fr>
950
951 * tests/regression.at (Invalid input): New.
952 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
953 Reported by Shura.
954
955 2001-10-02 Akim Demaille <akim@epita.fr>
956
957 * tests/calc.at: Now that --debug works, the tests must be adjusted.
958
959 2001-10-02 Akim Demaille <akim@epita.fr>
960
961 * src/output.c (output_parser): Assert `skeleton'.
962 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
963 systems.
964 From Shura.
965
966 2001-10-01 Marc Autret <autret_m@epita.fr>
967
968 * src/lex.h: Echo modifications.
969 * src/lex.c (unlex): Parameter is now token_t.
970 From Hans Aberg.
971
972 2001-10-01 Marc Autret <autret_m@epita.fr>
973
974 * src/main.c: Include lex.h.
975 From Hans Aberg.
976
977 2001-09-29 Akim Demaille <akim@epita.fr>
978
979 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
980
981 2001-09-28 Akim Demaille <akim@epita.fr>
982
983 * tests/testsuite.at: Update to newer Autotest.
984 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
985
986 2001-09-27 Akim Demaille <akim@epita.fr>
987
988 Position independent wrapper.
989
990 * tests/bison: Remove.
991 * tests/bison.in: New.
992 * configure.in: Adjust.
993
994 2001-09-27 Paul Eggert <eggert@twinsun.com>
995
996 Port quotearg fixes from tar 1.13.24.
997
998 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
999 tm to be declared.
1000 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1001 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1002
1003 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1004 * m4/mbrtowc.m4: New file.
1005 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1006 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1007
1008 2001-09-27 Akim Demaille <akim@epita.fr>
1009
1010 Bump to 1.29c.
1011
1012 2001-09-27 Akim Demaille <akim@epita.fr>
1013
1014 Version 1.29b.
1015
1016 2001-09-25 Akim Demaille <akim@epita.fr>
1017
1018 * src/system.h: Include `xalloc.h'.
1019 Remove it from the C files.
1020 * src/files.c (output_files): Free the obstacks.
1021 * src/lex.c (init_lex): Rename as...
1022 (lex_init): this.
1023 (lex_free): New.
1024 * src/main.c (main): Use it.
1025
1026 2001-09-24 Marc Autret <autret_m@epita.fr>
1027
1028 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1029 to output informations in fout (FILE*).
1030 (open_graph, close_graph): Likewise.
1031 (output_graph, output_edge, output_node): Likewise.
1032 * src/vcg.h: Update function prototypes.
1033 * src/print_graph.c (print_graph): Open output graph file.
1034 (print_actions): Adjust.
1035 * src/files.h: Remove extern declaration.
1036 * src/files.c: Remove graph_obstack declaration.
1037 (open_files): Remove graph_obstack initialization.
1038 (output_files): Remove graph_obstack saving.
1039
1040 2001-09-24 Marc Autret <autret_m@epita.fr>
1041
1042 * src/files.c (compute_output_file_names): Fix.
1043
1044 2001-09-24 Marc Autret <autret_m@epita.fr>,
1045 Akim Demaille <akim@epita.fr>
1046
1047 * src/reader.c (reader): Remove call to free_symtab ().
1048 * src/main.c (main): Call it here.
1049 Include symtab.h.
1050 * src/conflicts.c (initialize_conflicts): Rename as...
1051 (solve_conflicts): this.
1052 * src/print.c (print_core, print_actions, print_state)
1053 (print_grammar): Dump to a file instead a `output_obstack'.
1054 (print_results): Dump `output_obstack', and then proceed with the
1055 FILE *.
1056 * src/files.c (compute_output_file_names, close_files): New.
1057 (output_files): Adjust.
1058 * src/main.c (main): Adjust.
1059
1060 2001-09-23 Marc Autret <autret_m@epita.fr>
1061
1062 * src/files.c (compute_header_macro): Computes header macro name
1063 from spec_defines_file when given.
1064
1065 2001-09-23 Marc Autret <autret_m@epita.fr>
1066
1067 * src/files.c (output_files): Add default extensions.
1068
1069 2001-09-22 Akim Demaille <akim@epita.fr>
1070
1071 * src/conflicts.c (finalize_conflicts): Rename as...
1072 (free_conflicts): this.
1073
1074 2001-09-22 Akim Demaille <akim@epita.fr>
1075
1076 * src/gram.c (gram_free): Rename back as...
1077 (dummy): this.
1078 (output_token_translations): Free `token_translations'.
1079 * src/symtab.c (free_symtab): Free the tag field.
1080
1081 2001-09-22 Akim Demaille <akim@epita.fr>
1082
1083 Remove `translations' as it is always set to true.
1084
1085 * src/gram.h: Adjust.
1086 * src/reader.c (packsymbols, parse_token_decl): Adjust
1087 * src/print.c (print_grammar): Adjust.
1088 * src/output.c (output_token_translations): Adjust.
1089 * src/lex.c (lex): Adjust.
1090 * src/gram.c: Be sure the set pointers to NULL.
1091 (dummy): Rename as...
1092 (gram_free): this.
1093
1094 2001-09-22 Akim Demaille <akim@epita.fr>
1095
1096 * configure.in: Invoke AM_LIB_DMALLOC.
1097 * src/system.h: Use dmalloc.
1098 * src/LR0.c: Be sure to have pointers initialized to NULL.
1099 (allocate_itemsets): Allocate kernel_items only if needed.
1100
1101 2001-09-22 Akim Demaille <akim@epita.fr>
1102
1103 * configure.in: Bump to 1.29b.
1104 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1105 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1106 need xmalloc.c in calc.y.
1107 From Pascal Bart.
1108
1109 2001-09-21 Akim Demaille <akim@epita.fr>
1110
1111 Version 1.29a.
1112 * Makefile.maint, config/config.guess, config/config.sub,
1113 * config/missing: Update from masters.
1114 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1115 upon package.m4.
1116 * configure.in (ALL_LINGUAS): Add `tr'.
1117
1118 2001-09-21 Akim Demaille <akim@epita.fr>
1119
1120 * tests/Makefile.am (package.m4): Move to...
1121 ($(srcdir)/$(TESTSUITE)): here.
1122
1123 2001-09-20 Akim Demaille <akim@epita.fr>
1124
1125 * src/complain.c: No longer try to be standalone: use system.h.
1126 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1127 * src/complain.h: Likewise.
1128 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1129 Remove the unused variable `n'.
1130 From Albert Chin-A-Young.
1131
1132 2001-09-18 Marc Autret <autret_m@epita.fr>
1133
1134 * doc/bison.1: Update.
1135 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1136 descriptions.
1137 (Option Cross Key): Update.
1138 Add --graph.
1139
1140 2001-09-18 Marc Autret <autret_m@epita.fr>
1141
1142 * tests/regression.at: New test (comment in %union).
1143
1144 2001-09-18 Marc Autret <autret_m@epita.fr>
1145
1146 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1147 do that.
1148 Reported by Keith Browne.
1149
1150 2001-09-18 Marc Autret <autret_m@epita.fr>
1151
1152 * tests/output.at: Add tests for --defines and --graph.
1153
1154 2001-09-18 Marc Autret <autret_m@epita.fr>
1155
1156 * tests/output.at: Removes tests of %{header,src}_extension features.
1157
1158 2001-09-18 Akim Demaille <akim@epita.fr>
1159
1160 * tests/Makefile.am (package.m4): New.
1161 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1162 (_AT_CHECK_CALC_ERROR): Likewise.
1163 Factor the `, ' part of verbose error messages.
1164
1165 2001-09-18 Marc Autret <autret_m@epita.fr>
1166
1167 * src/getargs.c (longopts): Declare --defines and --graph as options
1168 with optional arguments.
1169 * src/files.h: Add extern declarations.
1170 * src/files.c (spec_graph_file, spec_defines_file): New.
1171 (output_files): Update.
1172 Remove CPP-outed code.
1173
1174 2001-09-18 Marc Autret <autret_m@epita.fr>
1175
1176 Turn off %{source,header}_extension feature.
1177
1178 * src/files.c (compute_exts_from_gf): Update.
1179 (compute_exts_from_src): Update.
1180 (output_files): CPP-out useless code.
1181 * src/files.h: Remove {header,source}_extension extern declarations.
1182 * src/reader.c (parse_dquoted_param): CPP-out.
1183 (parse_header_extension_decl): Remove.
1184 (parse_source_extension_decl): Remove.
1185 (read_declarations): Remove cases tok_{hdrext,srcext}.
1186 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1187 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1188
1189 2001-09-10 Akim Demaille <akim@epita.fr>
1190
1191 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1192 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1193 (AT_CHECK_OUTPUT): this.
1194 Merely check ls' exit status, its output is useless.
1195
1196 2001-09-10 Akim Demaille <akim@epita.fr>
1197
1198 * tests/calc.at: Use m4_match.
1199 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1200
1201 2001-09-10 Marc Autret <autret_m@epita.fr>,
1202 Akim Demaille <akim@epita.fr>
1203
1204 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1205 enum color_e.
1206 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1207 to `normal'.
1208 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1209 * src/lex.h: Adjust prototype.
1210 (token_t): Add `tok_undef'.
1211 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1212 (parse_percent_token): Now returns token_t.
1213 Add default statement in switch.
1214 (lex): Separate `c' as an input variable, from the token_t result
1215 part.
1216 (unlexed): Is a token_t.
1217
1218 2001-09-10 Akim Demaille <akim@epita.fr>
1219
1220 * configure.in: Bump to 1.29a.
1221
1222 2001-09-07 Akim Demaille <akim@epita.fr>
1223
1224 Version 1.29.
1225
1226 2001-08-30 Akim Demaille <akim@epita.fr>
1227
1228 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1229 * m4/atconfig.m4: Remove.
1230 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1231 * tests/bison: New.
1232 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1233 m4_if, m4_patsubst, and m4_regexp.
1234 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1235 `input' file instead of echo.
1236
1237 2001-08-29 Akim Demaille <akim@epita.fr>
1238
1239 Bump to 1.28e.
1240
1241 2001-08-29 Akim Demaille <akim@epita.fr>
1242
1243 Version 1.28d.
1244
1245 2001-08-29 Paul Eggert <eggert@twinsun.com>
1246
1247 * src/bison.simple (yyparse): Don't take the address of an
1248 item before the start of an array, as that doesn't conform to
1249 the C Standard.
1250
1251 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1252
1253 * doc/bison.texinfo (Location Tracking Calc): New node.
1254
1255 2001-08-29 Paul Eggert <eggert@twinsun.com>
1256
1257 * src/output.c (output): Do not define const, as this now
1258 causes more problems than it cures.
1259
1260 2001-08-29 Akim Demaille <akim@epita.fr>
1261
1262 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1263 the nodes.
1264 Be sure to tag the `detailmenu'.
1265
1266 2001-08-29 Akim Demaille <akim@epita.fr>
1267
1268 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1269 download in a tmp dir.
1270
1271 2001-08-28 Marc Autret <autret_m@epita.fr>
1272
1273 * config/depcomp: New file.
1274
1275 2001-08-28 Marc Autret <autret_m@epita.fr>
1276
1277 * doc/bison.1 (mandoc): Adjust.
1278 From Juan Manuel Guerrero.
1279
1280 2001-08-28 Marc Autret <autret_m@epita.fr>
1281
1282 * src/print_graph.c (print_state): Fix.
1283
1284 2001-08-27 Marc Autret <autret_m@epita.fr>
1285
1286 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1287 char * members.
1288 Echo modifications to the functions prototypes.
1289 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1290
1291 2001-08-27 Marc Autret <autret_m@epita.fr>
1292
1293 * src/vcg.c: Include `xalloc.h'.
1294 (add_colorentry): New.
1295 (add_classname): New.
1296 (add_infoname): New.
1297 * src/vcg.h: Add new prototypes.
1298
1299 2001-08-27 Akim Demaille <akim@epita.fr>
1300
1301 * Makefile.maint: Sync. again with CVS Autoconf.
1302
1303 2001-08-27 Akim Demaille <akim@epita.fr>
1304
1305 * Makefile.maint: Formatting changes.
1306 (po-update, cvs-update, update): New targets.
1307 (AMTAR): Remove.
1308
1309 2001-08-27 Akim Demaille <akim@epita.fr>
1310
1311 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1312 * Makefile.maint: Sync. with CVS Autoconf.
1313
1314 2001-08-27 Marc Autret <autret_m@epita.fr>
1315
1316 * src/vcg.h (struct infoname_s): New.
1317 (struct colorentry_s): New.
1318 (graph_s): New fields {vertical,horizontal}_order in structure.
1319 Add `infoname' field.
1320 Add `colorentry' field;
1321 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1322 (G_HORIZONTAL_ORDER): New.
1323 (G_INFONAME): New.
1324 (G_COLORENTRY): New.
1325 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1326 Add output of `infoname'.
1327 Add output of `colorentry'.
1328
1329 2001-08-27 Marc Autret <autret_m@epita.fr>
1330
1331 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1332 This one shadowed a global parameter.
1333
1334 2001-08-24 Marc Autret <autret_m@epita.fr>
1335
1336 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1337 instead of `unsigned'.
1338 (print_state): Do not call obstack_object_size () in obstack_grow ()
1339 to avoid macro variables shadowing.
1340
1341 2001-08-23 Marc Autret <autret_m@epita.fr>
1342
1343 * src/lex.c (percent_table): Typo: s/naem/name/.
1344 Add graph option.
1345 Normalize new options declarations.
1346
1347 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1348
1349 * tests/suite.at: Exercise %header_extension and %source_extension.
1350
1351 2001-08-16 Marc Autret <autret_m@epita.fr>
1352
1353 * src/reader.c (parse_dquoted_param): New.
1354 (parse_header_extension_decl): Use it.
1355 (parse_source_extension_decl): Likewise.
1356
1357 2001-08-16 Marc Autret <autret_m@epita.fr>
1358
1359 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1360 (get_xxxx_str): Use assert () instead of complain ().
1361 Remove return invokations in default cases.
1362 (get_decision_str): Modify default behaviour. Remove second argument.
1363 Echo modifications on calls.
1364 (output_graph): Fix.
1365
1366 2001-08-16 Marc Autret <autret_m@epita.fr>
1367
1368 * src/getargs.c (usage): Update with ``-g, --graph''.
1369
1370 2001-08-16 Marc Autret <autret_m@epita.fr>
1371
1372 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1373 (Option Cross Key): Likewise.
1374 * doc/bison.1: Update.
1375
1c8c2190
PB
13762001-09-25 Pascal Bart <pascal.bart@epita.fr>
1377
1378 * src/output.c (output_master_parser): Don't finish action_obstack.
1379 (output_parser): Don't care about the muscle action, here.
1380 (prepare): Copy the action_obstack in the action muscle.
1381 (output): Free action_obstack.
1382
180d45ba
PB
13832001-09-23 Pascal Bart <pascal.bart@epita.fr>
1384
1385 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1386 will contain `%union' declaration.
1387 (parse_union_decl): Delete #line directive output.
1388 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1389 informations about %union.
1390 (parse_union_decl): Copy the union_obstack in the muscle stype.
1391 * src/bison.simple: Add new #line directive.
1392 Add typdef %%stype YYSTYPE.
1393
c51d1a19
PB
13942001-09-23 Pascal Bart <pascal.bart@epita.fr>
1395
1396 * src/bison.simple: Add new `#line' directive.
1397
6f9344da
PB
13982001-09-22 Pascal Bart <pascal.bart@epita.fr>
1399
1400 * src/bison.simple: New `#line' directive.
1401 * src/output.c (output_parser): Support new dynamic muscle input_line.
1402
652def80
MA
14032001-09-22 Marc Autret <autret_m@epita.fr>
1404
1405 * src/output.c (output_master_parser): New.
1406 (output_parser): Be more re-entrant.
1407
25b222fa
MA
14082001-09-21 Marc Autret <autret_m@epita.fr>
1409
1410 * src/reader.c (copy_definition, parse_union_decl): Update and use
1411 `linef' muscle.
1412 (copy_action): Likewise.
1413 Use obstack_1grow ().
1414 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1415
6bc35ae5
MA
14162001-09-21 Marc Autret <autret_m@epita.fr>
1417
1418 * src/options.c (option_table): Adjust.
1419 * src/lex.c (parse_percent_token): Fix.
1420
c0629aa1
PB
14212001-09-20 Pascal Bart <pascal.bart@epita.fr>
1422
1423 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 1424
82b6d266
PB
14252001-09-20 Pascal Bart <pascal.bart@epita.fr>
1426
1427 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1428 is now an option_table_struct*.
1429 (option_strcmp): New function option_strcmp.
1430 (parse_percent_token): Call option_strcmp.
1431 * src/getargs.c (xalloc.h, options.h): Include it.
1432 (getargs): Call create_long_option_table.
1433 (getargs): Free longopts at the end of the function.
1434 (shortopts): Move in options.c.
1435 * src/options.c (create_long_option_table): New function. Convert
1436 information from option_table to option structure.
1437 * src/reader.c (options.h): Include it.
1438
1439 * src/Makefile.am: Adjust.
1440 * src/options.c (option_table): Create from longopts and percent_table.
1441 * src/getargs.c (longopts): Delete.
1442 * src/lex.c (struct percent_table_struct): Delete.
1443 (percent_table): Delete.
1444 (options.h): Include it.
1445 * src/options.c: Create.
1446 * src/options.h: Create.
1447 Declare enum opt_access_e.
1448 Define struct option_table_struct.
1449
75f5aaea
MA
14502001-09-20 Marc Autret <autret_m@epita.fr>
1451
1452 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1453 sections of Bison.
1454
f508cb0a
PB
14552001-09-19 Pascal Bart <pascal.bart@epita.fr>
1456
1457 * src/bison.simple: s/%%filename/%%skeleton.
1458 * src/muscle_tab.c (getargs.h): Include it.
1459 (muscle_init): Insert new muscle skeleton.
1460
13105fc1
PB
14612001-09-18 Pascal Bart <pascal.bart@epita.fr>
1462
1463 * src/output.c (output_parser): Delete unused variable actions_dumped.
1464
b0c4483e
PB
14652001-09-07 Pascal Bart <pascal.bart@epita.fr>
1466
1467 * src/output.c (output): Delete call to reader_output_yylsp.
1468 * src/reader.c (reader): Likewise.
1469 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 1470
11d82f03
MA
14712001-09-02 Marc Autret <autret_m@epita.fr>
1472
1473 * src/reader.c: Include muscle_tab.h.
1474 (parse_union_decl): Update.
1475 (parse_macro_decl): Rename parse_muscle_decl.
1476 Update to use renamed functions and variable.
1477 (read_declarations, copy_action, read_additionnal_code, : Updated
1478 with correct variables and functions names.
1479 (packsymbols, reader): Likewise.
342b8b6e 1480
11d82f03 1481 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 1482
11d82f03
MA
1483 * src/output.c: Include muscle_tab.h
1484 In all functions using macro_insert, change by using muscle_insert ().
1485 (macro_obstack): Rename muscle_obstack.
1486 Echo modifications in the whole file.
1487 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1488 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1489 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1490
1491 * src/muscle_tab.h: Update double inclusion macros.
1492 (macro_entry_s): Rename muscle_entry_s.
1493 Update prototypes.
342b8b6e 1494
11d82f03
MA
1495 * src/muscle_tab.c: Include muscle_tab.h.
1496 Rename macro_tabble to muscle_table.
1497 (mhash1, mhash2, mcmp): Use muscle_entry.
1498 (macro_init): Rename muscle_init. Update.
1499 (macro_insert): Rename muscle_insert. Update.
1500 (macro_find): Rename muscle_find. Update.
1501
1502 * src/main.c: Include muscle_tab.h.
1503 (main): Call muscle_init ().
1504 * src/Makefile.am (bison_SOURCES): Echo modifications.
1505
93a37297
MA
15062001-09-02 Marc Autret <autret_m@epita.fr>
1507
f753cd62 1508 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 1509
f753cd62
MA
1510 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1511
15122001-09-02 Marc Autret <autret_m@epita.fr>
1513
1514 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 1515
682d48cd
PB
15162001-09-01 Pascal Bart <pascal.bart@epita.fr>
1517
342b8b6e 1518 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
1519 filename.
1520
087c8fda
MA
15212001-09-01 Marc Autret <autret_m@epita.fr>
1522
1523 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1524 to an explicit value to activate the feature. We do it here.
1525
dda680cb
PB
15262001-08-31 Pascal Bart <pascal.bart@epita.fr>
1527
1528 * src/output.c (prepare): Delete the `filename' muscule insertion.
1529 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1530 (parse_union_decl): Likewise.
1531 * src/macrotab.c (macro_init): Initialize filename by infile.
1532
9e644e64
MA
15332001-08-31 Marc Autret <autret_m@epita.fr>
1534
1535 * src/bison.simple (YYLSP_NEEDED): New definition.
1536 * src/output.c (prepare): Add macro insertion of `locations_flag'
1537
17da6427
PB
15382001-08-31 Pascal Bart <pascal.bart@epita.fr>
1539
1540 * src/output.c (prepare): Delete insertion of previous muscles,
1541 and insert the `prefix' muscles.
1542 * src/macrotab.c (macro_init): Likewise.
1543 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 1544 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
1545 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1546 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 1547 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
1548 name_prefix.
1549
e8cb70b9
PB
15502001-08-31 Pascal Bart <pascal.bart@epita.fr>
1551
1552 * src/main.c (main): Standardize.
1553 * src/output.c (output_table_data, output_parser): Likewise.
1554 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1555
63c2d5de
MA
15562001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1557
342b8b6e 1558 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
1559 %%epilogue.
1560 * src/output.c (output): Rename %%declarations to %%prologue.
1561 * src/bison.simple: Echo modifications.
342b8b6e 1562
d8cb5183
MA
15632001-08-31 Marc Autret <autret_m@epita.fr>
1564
1565 * src/reader.c (readgram): CleanUp.
1566 (output_token_defines): Likewise.
1567 (packsymbols): Likewise.
1568 (reader): Likewise.
1569 * src/output.c (output): CPP-out useless code.
1570
6c686258
PB
15712001-08-31 Pascal Bart <pascal.bart@epita.fr>
1572
342b8b6e 1573 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
1574 output_trailers and output_headers.
1575 * src/output.h: Remove obsolete functions prototypes of output_headers
1576 and output_trailers.
1577
8f451ef7
PB
15782001-08-30 Pascal Bart <pascal.bart@epita.fr>
1579
1580 * src/main.c: Include macrotab.h.
342b8b6e 1581 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
1582 Adjust functions prototypes.
1583 * src/macrotab.c (macro_insert): Constify key and value.
1584 (macro_find): Constify key.
1585 (macro_insert): Include 'xalloc.h'
1586 (macro_insert): Use XMALLOC.
1587 (macro_find): Constify return value.
1588 * src/output.c (output_table_data): Rename table to table_data.
1589 (output_parser): Constify macro_key, macro_value.
1590
997b6fd0 15912001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
1592
1593 * src/reader.c (parse_skel_decl): New.
342b8b6e 1594 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
1595 * src/lex.h (token_t): New token `tok_skel'.
1596 * src/lex.c (percent_table): Add skeleton option entry.
1597 Standardize.
1598
ff48177d
MA
15992001-08-29 Marc Autret <autret_m@epita.fr>
1600
1601 * src/bison.simple: Add %%user_code directive at the end.
1602 * src/reader.c (read_additionnal_code): New.
1603 (reader): Use it.
1604 * src/output.c (output_program): Remove.
1605 (output): Update.
1606
b33160bf
MA
16072001-08-28 Marc Autret <autret_m@epita.fr>
1608
1609 * src/output.c (output_actions): Clean up.
4e5caae2 1610 (output_gram): CPP-out useless code.
b33160bf
MA
1611 * src/reader.c (reader): Clean up, CPP-out useless code.
1612
d1a2daf7
PB
16132001-08-28 Pascal Bart <pascal.bart@epita.fr>
1614
342b8b6e 1615 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 1616 directive.
d1a2daf7
PB
1617 * src/bison.simple: Add `%%definitions'.
1618
2b763dfe
MA
16192001-08-28 Marc Autret <autret_m@epita.fr>
1620
1621 * config/depcomp: New file.
1622
f1a87ef6
PE
16232001-08-27 Paul Eggert <eggert@twinsun.com>
1624
1625 * src/bison.simple (yyparse): Don't take the address of an
1626 item before the start of an array, as that doesn't conform to
1627 the C Standard.
1628
82e236e2
RA
16292001-08-27 Robert Anisko <robert.anisko@epita.fr>
1630
f1a87ef6 1631 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
1632 obstack. It was done too late here.
1633
1634 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1635 completely wrong.
1636 (reader): Initialize the macro obstack here, since we need it to grow
1637 '%define' directives.
1638
1639 * src/reader.h: Declare the macro obstack as extern.
1640
b0cfa28a
RA
16412001-08-27 Robert Anisko <robert.anisko@epita.fr>
1642
1643 * src/output.c (output_parser): Fix. Store single '%' characters in
1644 the output obstack instead of throwing them away.
1645
6fc74234
AD
16462001-08-27 Akim Demaille <akim@epita.fr>
1647
1648 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1649
9c76d118
RA
16502001-08-25 Robert Anisko <robert.anisko@epita.fr>
1651
1652 * lib/Makefile.am: Adjust.
1653
a8289c62
RA
16542001-08-25 Robert Anisko <robert.anisko@epita.fr>
1655
1656 * src/bison.simple: Update and add '%%' directives.
1657
b6610515
RA
16582001-08-25 Robert Anisko <robert.anisko@epita.fr>
1659
1660 * src/reader.c (reader): Remove calls to 'output_headers' and
1661 'output_trailers'. Remove some C output.
1662 (readgram): Disable a piece of code that was writing a default
1663 definition for 'YYSTYPE'.
1664 (reader_output_yylsp): Remove.
1665 (packsymbols): Output token defintions to a macro.
1666 (copy_definition): Disable C output.
6fc74234 1667
b6610515
RA
1668 * src/reader.c (parse_macro_decl): New function used to parse macro
1669 declarations.
1670 (copy_string2): Put the body of copy_string into this new function.
1671 Add a parameter to let the caller choose whether he wants to copy the
1672 string delimiters or not.
1673 (copy_string): Be a simple call to copy_string2 with the last argument
1674 bound to true.
1675 (read_declarations): Add case for macro definition.
1676 (copy_identifier): New.
6fc74234 1677 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
1678 rather than lex.
1679
26f609ff
RA
16802001-08-25 Robert Anisko <robert.anisko@epita.fr>
1681
1682 * src/output.c (prepare): Add prefixed names.
1683 (output_parser): Output semantic actions.
1684 (output_parser): Fix bug on '%%line' directives.
6fc74234 1685
26f609ff
RA
1686 * src/output.c (output_headers): Remove. The C code printed by this
1687 function should now be in the skeletons.
1688 (output_trailers): Remove.
1689 (output): Disable call to 'reader_output_yylsp'.
1690 (output_rule_data): Do not output tables to the table obstack.
1691
1692 * src/output.c: Remove some C dedicated output.
1693 Improve the use of macro and output obstacks.
1694 (output_defines): Remove.
6fc74234 1695
26f609ff
RA
1696 * src/output.c (output_token_translations): Associate 'translate'
1697 table with a macro. No output to the table obstack.
1698 (output_gram): Same for 'rhs' and 'prhs'.
1699 (output_stos): Same for 'stos'.
1700 (output_rule_data): Same for 'r1' and 'r2'.
1701 (token_actions): Same for 'defact'.
1702 (goto_actions): Same for 'defgoto'.
1703 (output_base): Same for 'pact' and 'pgoto'.
1704 (output_table): Same for 'table'.
1705 (output_check): Same for 'check'.
6fc74234 1706
26f609ff
RA
1707 * src/output.c (output_table_data): New function.
1708 (output_short_table): Remove.
1709 (output_short_or_char_table): Remove.
6fc74234 1710
26f609ff
RA
1711 * src/output.c (output_parser): Replace most of the skeleton copy code
1712 with something new. Skeletons are now processed character by character
1713 rather than line by line, and Bison looks for '%%' macros. This is the
1714 first step in making Bison's output process (a lot) more flexible.
1715 (output_parser): Use the macro table.
1716
6f43b113
RA
17172001-08-25 Robert Anisko <robert.anisko@epita.fr>
1718
1719 * src/main.c (main): Initialize the macro table.
1720
dd3127cf
RA
17212001-08-25 Robert Anisko <robert.anisko@epita.fr>
1722
1723 * src/lex.c (percent_table): Add tok_define.
1724 * src/lex.h: Add tok_define.
1725
aa321494
RA
17262001-08-25 Robert Anisko <robert.anisko@epita.fr>
1727
1728 * src/macrotab.c: New file.
1729 * src/macrotab.h: New file.
1730 * src/Makefile.am: Update.
1731
68bd3b6b
RA
17322001-08-25 Robert Anisko <robert.anisko@epita.fr>
1733
1734 * lib/hash.c: New file.
1735 * lib/hash.h: New file.
1736 * lib/Makefile.am: Update.
1737
45f8dd1e
AD
17382001-08-15 Akim Demaille <akim@epita.fr>
1739
1740 Version 1.28c.
1741
40a64a7a 17422001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
1743
1744 * src/reader.c (readgram): Indent output macro YYSTYPE.
1745 (packsymbols): Likewise.
1746 (output_token_defines): Likewise.
1747 * src/files.c: Standardize.
1748 (compute_header_macro): New.
1749 (defines_obstack_save): New. Use compute_header_macro.
1750 (output_files): Update. Use defines_obstack_save.
1751
f9a8293a
AD
17522001-08-15 Akim Demaille <akim@epita.fr>
1753
1754 * doc/bison.texinfo (Table of Symbols): Document
1755 YYSTACK_USE_ALLOCA.
1756
150ca7a7
AD
17572001-08-15 Akim Demaille <akim@epita.fr>
1758
1759 * missing: Update from CVS Automake.
1760 * config/config.guess, config/config.sub, config/texinfo.tex:
1761 Update from gnu.org.
1762
69b5cec4
AD
17632001-08-15 Akim Demaille <akim@epita.fr>
1764
1765 * Makefile.maint: Sync with CVS Autoconf.
1766
f2b5126e
PB
17672001-08-14 Pascal Bart <pascal.bart@epita.fr>
1768
69b5cec4 1769 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
1770 `fdl.texi'.
1771 * doc/fdl.texi: Add to package.
1772
4ecbf796
MA
17732001-08-14 Marc Autret <autret_m@epita.fr>
1774
1775 Turn on %{source,header}_extension features.
1776
69b5cec4 1777 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
1778 source_extension.
1779 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 1780 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
1781 between options.
1782
95fb5662
MA
17832001-08-14 Marc Autret <autret_m@epita.fr>
1784
1785 * src/files.c (compute_base_names): Add extensions computing when
1786 `--file-prefix' used.
1787 Standardize function calls.
1788
78d09da9
MA
17892001-08-13 Marc Autret <autret_m@epita.fr>
1790
69b5cec4 1791 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
1792 defining it (defined but null disables alloca).
1793
5a009f2c
MA
17942001-08-13 Marc Autret <autret_m@epita.fr>
1795
1796 * src/bison.simple (_yy_memcpy): CPP reformat.
1797
1e41465a
PB
17982001-08-13 Pascal Bart <pascal.bart@epita.fr>
1799
1800 * tests/atconfig.in (CPPFLAGS): Fix.
1801
c67a198d
PB
18022001-08-10 Pascal Bart <pascal.bart@epita.fr>
1803
79282c6c 1804 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
1805 `gpl.texi'.
1806 * doc/gpl.texi: Add to package.
1807
09a6de7e
MA
18082001-08-10 Marc Autret <autret_m@epita.fr>
1809
1810 * src/print_graph.h: Fix.
1811 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1812
b77b9ee0
AD
18132001-08-10 Akim Demaille <akim@epita.fr>
1814
1815 * src/system.h: Provide default declarations for stpcpy, strndup,
1816 and strnlen.
1817
3e259915
MA
18182001-08-10 Robert Anisko <anisko_r@epita.fr>
1819
1820 * doc/bison.texinfo (Locations): Update @$ stuff.
1821
ca96bc2d
MA
18222001-08-09 Robert Anisko <anisko_r@epita.fr>
1823
1824 * src/bison.simple (YYLLOC_DEFAULT): Update.
1825 (yyparse): Adjust.
1826
fdc6758b
MA
18272001-08-08 Marc Autret <autret_m@epita.fr>
1828
b77b9ee0 1829 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1830 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1831 Reported by Fabrice Bauzac.
957d4dbf 1832
600cad3b
MA
18332001-08-08 Marc Autret <autret_m@epita.fr>
1834
1835 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1836 * src/vcg.c (output_node): Fix.
1837 * src/vcg.h: Cleanup.
1838 * src/print_graph.c: Add comments.
b77b9ee0 1839 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1840 the VCG graph output.
b77b9ee0 1841 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1842 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1843 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1844 blue.
1845 Get the current node name and node_obstack by argument.
1846 (node_obstack): New variable.
1847 (print_state): Manage node_obstack.
1848 (print_core): Use node_obstack given by argument.
1849 A node is not only computed here but in print_actions also.
1850 (print_graph): CPP out useless code instead of commenting it.
1851
976e528f
AD
18522001-08-07 Pascal Bart <pascal.bart@epita.fr>
1853
1854 * tests/atconfig.in (CPPFLAGS): Fix.
1855
20e8e5ca
AD
18562001-08-07 Akim Demaille <akim@epita.fr>
1857
1858 * src/print_graph.c (quote): New.
1859 (print_core): Use it.
1860
957d4dbf 18612001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1862
3e3da797
AD
1863 * src/vcg.c (complain.h): Include it.
1864 Unepitaize `return' invocations.
c4b66126 1865 [NDEBUG] (main): Remove.
79282c6c 1866 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1867 * src/files.c (open_files): Initialize graph_obstack.
1868 * src/print_graph.c (print_actions): CPP out useless code.
1869 (print_core): Don't output the last `\n' in labels.
1870 Use `quote'.
1871 * src/files.c (output_files): Output the VCG file.
1872 * src/main.c (main): Invoke print_graph ();
3e3da797 1873
957d4dbf 18742001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1875
1876 Automaton VCG graph output.
1877 Using option ``-g'' or long option ``--graph'', you can generate
1878 a gram_filename.vcg file containing a VCG description of the LALR (1)
1879 automaton of your grammar.
1880
1881 * src/main.c: Call to print_graph() function.
1882 * src/getargs.h: Update.
1883 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1884 (graph_flag): New flag.
1885 (longopts): Update.
1886 (getargs): Add case `g'.
1887 * src/files.c (graph_obstack): New obstack struct.
1888 (open_files): Initialize new obstack.
1889 (output_files): Saves graph_obstack if required.
1890 * src/files.h (graph_obstack): New extern declaration.
1891 * src/Makefile.am: Add new source files.
1892
957d4dbf 18932001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1894
1895 * src/print_graph.c, src/print_graph.h (graph): New.
1896 * src/vcg.h: New file.
1897 * src/vcg.c: New file, VCG graph handling.
1898
7333d403
AD
18992001-08-06 Marc Autret <autret_m@epita.fr>
1900
1901 Add of %source_extension and %header_extension which specify
1902 the source or/and the header output file extension.
1903
1904 * src/files.c (compute_base_names): Remove initialisation of
1905 src_extension and header_extension.
1906 (compute_exts_from_gf): Update.
1907 (compute_exts_from_src): Update.
1908 (output_files): Update.
1909 * src/reader.c (parse_header_extension_decl): New.
1910 (parse_source_extension_decl): New.
1911 (read_declarations): New case statements for the new tokens.
1912 * src/lex.c (percent_table): Add entries for %source_extension
1913 and %header_extension.
1914 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1915
84163231
AD
19162001-08-06 Marc Autret <autret_m@epita.fr>
1917
1918 * configure.in: Bump to 1.28c.
1919 * doc/bison.texinfo: Texinfo thingies.
1920
8303fc42
AD
19212001-08-04 Pascal Bart <pascal.bart@epita.fr>
1922
1923 * tests/atconfig.in (CPPFLAGS): Add.
1924 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1925
70a84437
AD
19262001-08-03 Akim Demaille <akim@epita.fr>
1927
1928 Version 1.28b.
1929
2ce10144
AD
19302001-08-03 Akim Demaille <akim@epita.fr>
1931
1932 * tests/Makefile.am (check-local): Ship testsuite.
1933 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1934 Include `string.h'.
1935
1e3e4bc1
AD
19362001-08-03 Akim Demaille <akim@epita.fr>
1937
1938 * configure.in: Try using -Wformat when compiling.
1939
42b45b7f
AD
19402001-08-03 Akim Demaille <akim@epita.fr>
1941
1942 * configure.in: Bump to 1.28b.
1943
8f13fe33
AD
19442001-08-03 Akim Demaille <akim@epita.fr>
1945
1946 * src/complain.c: Adjust strerror_r portability issues.
1947
b37ba92c
AD
19482001-08-03 Akim Demaille <akim@epita.fr>
1949
1950 Version 1.28a.
1951
b0ce6046
AD
19522001-08-03 Akim Demaille <akim@epita.fr>
1953
1954 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1955 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1956 * src/getargs.c: Include complain.h.
1957 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1958 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1959
d01c415b
AD
19602001-08-03 Akim Demaille <akim@epita.fr>
1961
1962 * src/reader.c (readgram): Display hidden chars in error messages.
1963
459dd1a6
AD
19642001-08-03 Akim Demaille <akim@epita.fr>
1965
1966 Update to gettext 0.10.39.
1967
53b74c0c
AD
19682001-08-03 Akim Demaille <akim@epita.fr>
1969
1970 * lib/strspn.c: New.
1971
234a3be3
AD
19722001-08-01 Marc Autret <autret_m@epita.fr>
1973
1974 * doc/bison.texinfo: Update.
1975 * doc/bison.1 (mandoc): Update.
1976 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1977 * src/files.c: Support output files extensions computing.
1978 (src_extension): New static variable.
1979 (header_extension): New static variable.
1980 (tr): New function.
1981 (get_extension_index): New function, gets the index of an extension
1982 filename in a string.
1983 (compute_exts_from_gf): New function, computes extensions from the
1984 grammar file extension.
1985 (compute_exts_from_src): New functions, computes extensions from the
1986 C source file extension, file given by ``-o'' option.
1987 (compute_base_names): Update.
1988 (output_files): Update.
1989
847bf1f5
AD
19902001-08-01 Robert Anisko <anisko_r@epita.fr>
1991
d995fee7 1992 * doc/bison.texi: Document @$.
847bf1f5
AD
1993 (Locations): New section.
1994
d074a105
AD
19952001-07-18 Akim Demaille <akim@epita.fr>
1996
1997 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1998 * config/prev-version.txt, config/move-if-change: New.
1999 * Makefile.am: Adjust.
2000
3419715d
AD
20012001-07-08 Pascal Bart <pascal.bart@epita.fr>
2002
2003 * src/bison.simple (yyparse): Suppress warning `comparaison
2004 between signed and unsigned'.
2005
62ab6972
AD
20062001-07-05 Pascal Bart <pascal.bart@epita.fr>
2007
2008 * src/getargs.h (raw_flag): Remove.
2009 * src/getargs.c: Die on `-r'/`--raw'.
2010 * src/lex.c (parse_percent_token): Die on `%raw'.
2011 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2012 * tests/calc.at: Suppress test with option `--raw'.
2013
1e24cc5b
AD
20142001-07-14 Akim Demaille <akim@epita.fr>
2015
2016 * config/: New.
2017 * configure.in: Require Autoconf 2.50.
2018 Update to gettext 0.10.38.
2019
32dfccf8
AD
20202001-03-16 Akim Demaille <akim@epita.fr>
2021
2022 * doc/bison.texinfo: ANSIfy the examples.
2023
cd5bd6ac
AD
20242001-03-16 Akim Demaille <akim@epita.fr>
2025
2026 * getargs.c (skeleton): New variable.
2027 (longopts): --skeleton is a new option.
2028 (shortopts, getargs): -S is a new option.
2029 * getargs.h: Declare skeleton.
2030 * output.c (output_parser): Use it.
2031
5141b016
AD
20322001-03-16 Akim Demaille <akim@epita.fr>
2033
2034 * m4/strerror_r.m4: New.
2035 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2036 * lib/error.h, lib/error.c: Update.
2037
447992b9
AD
20382001-03-16 Akim Demaille <akim@epita.fr>
2039
2040 * src/getargs.c (longopts): Clean up.
2041
274d42ce
AD
20422001-02-21 Akim Demaille <akim@epita.fr>
2043
2044 * src/reader.c (gensym): `gensym_count' is your own.
2045 Use a static buf to create the symbol name, as token_buffer is no
2046 longer a buffer.
2047
22c821f3
AD
20482001-02-08 Akim Demaille <akim@epita.fr>
2049
2050 * src/conflicts.c (conflict_report): Be sure not to append to res
2051 between two calls, which could happen if both first sprintf were
2052 skipped, but not the first cp += strlen.
2053
18569462
AD
20542001-02-08 Akim Demaille <akim@epita.fr>
2055
2056 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2057 New, from fileutils 4.0.37.
2058 * configure.in: Require Autoconf 2.49c. I took some time before
2059 making this decision. This is the only way out for portability
2060 issues in Bison, it would mean way too much duplicate effort to
2061 import in Bison features implemented in 2.49c since 2.13.
2062 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2063
0d8f3c8a
AD
20642001-02-02 Akim Demaille <akim@epita.fr>
2065
2066 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 2067 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 2068
f17bcd1f
AD
20692001-01-19 Akim Demaille <akim@epita.fr>
2070
2071 Get rid of the ad hoc handling of token_buffer in the scanner: use
2072 the obstacks.
2073
2074 * src/lex.c (token_obstack): New.
2075 (init_lex): Initialize it. No longer call...
2076 (grow_token_buffer): this. Remove it.
2077 Adjust all the places which used it to use the obstack.
2078
511e79b3
AD
20792001-01-19 Akim Demaille <akim@epita.fr>
2080
2081 * src/lex.h: Rename all the tokens:
2082 s/\bENDFILE\b/tok_eof/g;
2083 s/\bIDENTIFIER\b/tok_identifier/g;
2084 etc.
2085 Let them be enums, not #define, to ease debugging.
2086 Adjust all the code.
2087
0d6508ef
AD
20882001-01-18 Akim Demaille <akim@epita.fr>
2089
2090 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2091 * src/lex.c (maxtoken, grow_token_buffer): Static.
2092
6deb4447
AD
20932001-01-18 Akim Demaille <akim@epita.fr>
2094
2095 Since we now use obstacks, more % directives can be enabled.
2096
2097 * src/lex.c (percent_table): Also accept `%yacc',
2098 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2099 `%debug'.
2100 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2101 instead of returning a token.
2102 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2103 * src/reader.c (read_declarations): Adjust.
2104 * src/files.c (open_files): Don't call `compute_base_names', don't
2105 compute `attrsfile' since they depend upon data which might be
2106 *in* the input file now.
2107 (output_files): Do it here.
2108 * src/output.c (output_headers): Document the fact that this patch
2109 introduces a guaranteed SEGV for semantic parsers.
2110 * doc/bison.texinfo: Document them.
2111 * tests/suite.at: Exercise these %options.
2112
ff4423cc
AD
21132000-12-20 Akim Demaille <akim@epita.fr>
2114
2115 Also handle the output file (--verbose) with obstacks.
2116
2117 * files.c (foutput): Remove.
2118 (output_obstack): New.
2119 Adjust all dependencies.
2120 * src/conflicts.c: Return a string.
2121 * src/system.h (obstack_grow_string): Rename as...
2122 (obstack_sgrow): this. Be ready to work with non literals.
2123 (obstack_fgrow4): New.
2124
956dba3a
AD
21252000-12-20 Akim Demaille <akim@epita.fr>
2126
2127 * src/files.c (open_files): Fix the computation of short_base_name
2128 in the case of `-o foo.tab.c'.
2129
337bab46
AD
21302000-12-20 Akim Demaille <akim@epita.fr>
2131
2132 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2133 (copy_dollar): Now that everything uses obstacks, get rid of the
2134 FILE * parameters.
2135
5d3214b8
AD
21362000-12-20 Akim Demaille <akim@epita.fr>
2137
2138 * src/files.c (open_files): Actually the `.output' file is based
2139 on the short_base_name, not base_name.
2140 * tests/suite.at (Checking output file names): Adjust.
2141
29092a57
AD
21422000-12-20 Akim Demaille <akim@epita.fr>
2143
2144 * src/bison.s1: Remove, we now use directly...
2145 * src/bison.simple: this.
2146 * src/Makefile.am: Use pkgdata instead of data.
2147
ea5607fd
AD
21482000-12-20 Akim Demaille <akim@epita.fr>
2149
2150 * src/files.c (guard_obstack): New.
2151 (open_files): Initialize it.
2152 (output_files): Dump it...
2153 * src/files.h: Export it.
2154 * src/reader.c (copy_guard): Use it.
2155
27110317
AD
21562000-12-19 Akim Demaille <akim@epita.fr>
2157
2158 * src/files.c (outfile, defsfile, actfile): Removed as global
2159 vars.
2160 (open_files): Don't compute them.
2161 (output_files): Adjust.
2162 (base_name, short_base_name): Be global.
2163 Adjust dependencies.
2164
19c50364
AD
21652000-12-19 Akim Demaille <akim@epita.fr>
2166
2167 * src/files.c (strsuffix): New.
2168 (stringappend): Be just like strcat but allocate.
2169 (base_names): Eve out from open_files.
2170 Try to simplify the rather hairy computation of base_name and
2171 short_base_name.
2172 (open_files): Use it.
2173 * tests/suite.at (Checking output file names): New test.
2174
573c1d9f
AD
21752000-12-19 Akim Demaille <akim@epita.fr>
2176
2177 * src/system.h (obstack_grow_literal_string): Rename as...
2178 (obstack_grow_string): this.
2179 * src/output.c (output_parser): Recognize `%% actions' instead of
2180 `$'.
2181 * src/bison.s1: s/$/%% actions/.
2182 * src/bison.hairy: Likewise.
2183
ef7ddedd
AD
21842000-12-19 Akim Demaille <akim@epita.fr>
2185
2186 * src/output.c (output_parser): Compute the `#line' lines when
2187 there are.
2188 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2189 Suggested by Hans Aberg.
2190
ff61dabd
AD
21912000-12-19 Akim Demaille <akim@epita.fr>
2192
2193 Let the handling of the skeleton files be local to the procedures
2194 that use it.
2195
2196 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2197 longer static.
2198 (fparser, open_extra_files): Remove.
2199 (open_files, output_files): Don't take care of fparser.
2200 * src/files.h: Adjust.
2201 * src/output.c (output_parser): Open and close the file to the
2202 skeleton.
2203 * src/reader.c (read_declarations): When %semantic_parser, open
2204 fguard.
2205
55b96341
AD
22062000-12-19 Akim Demaille <akim@epita.fr>
2207
2208 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2209 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2210
358c15b7
AD
22112000-12-19 Akim Demaille <akim@epita.fr>
2212
2213 * src/files.c (open_files): Yipee! We no longer need all the code
2214 looking for `/tmp' since we have no tmp file.
2215
7de3329e
AD
22162000-12-19 Akim Demaille <akim@epita.fr>
2217
2218 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2219 New macros.
2220 * src/files.c (open_files): Less dependency on MSDOS etc.
2221
3abcd459
AD
22222000-12-14 Akim Demaille <akim@epita.fr>
2223
2224 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2225 Provide a default definition.
2226 Use it when executing the default @ action.
2227 * src/reader.c (reader_output_yylsp): No longer include
2228 `timestamp' and `text' in the default YYLTYPE.
2229
2a91a95e
AD
22302000-12-12 Akim Demaille <akim@epita.fr>
2231
2232 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2233 (copy_guard): Quote the file names.
2234 Reported by Laurent Mascherpa.
2235
14d3eb9b
AD
22362000-12-12 Akim Demaille <akim@epita.fr>
2237
2238 * src/output.c (output_headers, output_program, output): Be sure
2239 to escape special characters when outputting filenames.
2240 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2241 (output_headers): Don't depend on them, Use ACTSTR.
2242
d7045ec6
AD
22432000-11-17 Akim Demaille <akim@epita.fr>
2244
2245 * lib/obstack.h: Formatting changes.
2246 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2247 prevents type checking.
2248 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2249 cast the value to (void *): assigning a `foo *' to a `void *'
2250 variable is valid.
2251 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2252 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2253 append characters.
2254
6fd54b73
AD
22552000-11-17 Akim Demaille <akim@epita.fr>
2256
2257 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2258 as...
2259 (suite.m4, regression.m4, calc.m4): these.
2260 * tests/atgeneral.m4: Update from CVS Autoconf.
2261
4c50eae6
AD
22622000-11-17 Akim Demaille <akim@epita.fr>
2263
2264 * tests/regression.m4 (%union and --defines): New test,
2265 demonstrating a current bug in the obstack implementation.
2266
a35f64ea
AD
22672000-11-17 Akim Demaille <akim@epita.fr>
2268
2269 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2270 macros.
2271 Use them to declare the variables which are global or local to
2272 `yyparse'.
2273
7de23534
AD
22742000-11-17 Akim Demaille <akim@epita.fr>
2275
2276 * acconfig.h: Remove, no longer used.
2277
aa7815f5
AD
22782000-11-07 Akim Demaille <akim@epita.fr>
2279
2280 * src: s/Copyright (C)/Copyright/g.
2281
5af1f549
AD
22822000-11-07 Akim Demaille <akim@epita.fr>
2283
2284 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2285 defining.
2286 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2287
553e2b22
AD
22882000-11-07 Akim Demaille <akim@epita.fr>
2289
2290 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2291 Merge in a single CPP if/else.
2292
8a4f41d6
AD
22932000-11-07 Akim Demaille <akim@epita.fr>
2294
2295 * src/output.c (output): Remove useless variables.
2296 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2297 argument `data' for consistency with the prototypes.
2298 Qualify it `const'.
2299 (obstack_copy, obstack_copy0): Rename the second argument as
2300 `address' for consistency. Qualify it `const'.
2301 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2302 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2303 `const' their input argument (`data' or `address').
2304 Adjust the corresponding macros to include `const' in casts.
2305
095a3fb5
AD
23062000-11-03 Akim Demaille <akim@epita.fr>
2307
2308 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2309 s/PFILE1/BISON_HAIRY/.
2310 Adjust dependencies.
2311
d1cdce7c
AD
23122000-11-03 Akim Demaille <akim@epita.fr>
2313
090c5ebf 2314 For some reason, this was not applied.
d1cdce7c
AD
2315
2316 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2317 `unlink': it's no longer used.
2318
9311529b
AD
23192000-11-03 Akim Demaille <akim@epita.fr>
2320
2321 * src/files.c (skeleton_find): New function, eved out of...
2322 (open_files, open_extra_files): here.
2323
d8880f69
AD
23242000-11-03 Akim Demaille <akim@epita.fr>
2325
2326 Don't use `atexit'.
2327
2328 * src/files.c (obstack_save): New function.
2329 (done): Rename as...
2330 (output_files): this.
2331 Use `obstack_save'.
2332 * src/main.c (main): Don't use `atexit' to register `done', since
2333 it no longer has to remove tmp files, just call `output_files'
2334 when there are no errors.
2335
0dbb648e
AD
23362000-11-02 Akim Demaille <akim@epita.fr>
2337
2338 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2339 `unlink': it's no longer used.
2340 * src/files.h: Formatting changes.
2341
896fe5c1
AD
23422000-11-02 Akim Demaille <akim@epita.fr>
2343
2344 Remove the last uses of mktemp and unlink/delete.
2345
2346 * src/files.c (fdefines, ftable): Removed.
2347 (defines_ostack, table_obstack): New.
2348 Adjust dependencies of the former into uses of the latter.
2349 * src/output.c (output_short_or_char_table, output_short_table):
2350 Convert to using obstacks.
2351 * src/reader.c (copy_comment2): Accept one FILE * and two
2352 obstacks.
2353 (output_token_defines, reader_output_yylsp): Use obstacks.
2354 * src/system.h (obstack_fgrow3): New.
2355
dd60faec
AD
23562000-11-01 Akim Demaille <akim@epita.fr>
2357
2358 Change each use of `fattrs' into a use of `attrs_obstack'.
2359
2360 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2361 * src/files.c (fattrs): Remove.
2362 (attrs_obstack): New.
2363 Adjust all dependencies.
2364 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2365
8c7ebe49
AD
23662000-11-01 Akim Demaille <akim@epita.fr>
2367
2368 Introduce obstacks.
2369 Change each use of `faction' into a use of `action_obstack'.
2370
2371 * lib/obstack.h, lib/obstack.c: New files.
2372 * src/files.c (faction): Remove.
2373 (action_obstack): New.
2374 Adjust all dependencies.
2375
77aee789
AD
23762000-10-20 Akim Demaille <akim@epita.fr>
2377
2378 * lib/quote.h (PARAMS): New macro. Use it.
2379
43591cec
AD
23802000-10-16 Akim Demaille <akim@epita.fr>
2381
2382 * src/output.c (output_short_or_char_table): New function.
2383 (output_short_table, output_token_translations): Use it.
2384 (goto_actions): Use output_short_table.
2385
1e9798d5
AD
23862000-10-16 Akim Demaille <akim@epita.fr>
2387
2388 * src/symtab.c (bucket_new): New function.
2389 (getsym): Use it.
2390
2391 * src/output.c (output_short_table): New argument to display the
2392 comment associated with the table.
2393 Adjust dependencies.
2394 (output_gram): Use it.
2395 (output_rule_data): Nicer output layout for YYTNAME.
2396
f282676b
AD
23972000-10-16 Akim Demaille <akim@epita.fr>
2398
2399 * src/lex.c (read_typename): New function.
2400 (lex): Use it.
2401 * src/reader.c (copy_dollar): Likewise.
2402
550a72a3
AD
24032000-10-16 Akim Demaille <akim@epita.fr>
2404
2405 * src/reader.c (copy_comment2): Expect the input stream to be on
2406 the `/' which is suspected to open a comment, instead of being
2407 called after `//' or `/*' was read.
2408 (copy_comment, copy_definition, parse_union_decl, copy_action)
2409 (copy_guard): Adjust.
2410
131e2fef
AD
24112000-10-16 Akim Demaille <akim@epita.fr>
2412
2413 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2414 `read_signed_integer'.
2415
79282c5a
AD
24162000-10-16 Akim Demaille <akim@epita.fr>
2417
2418 * src/reader.c (copy_dollar): New function.
2419 (copy_guard, copy_action): Use it.
2420
ff4a34be
AD
24212000-10-16 Akim Demaille <akim@epita.fr>
2422
2423 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2424 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2425 New files, from Fileutils 4.0.27.
2426 * src/main.c (printable_version): Remove.
2427 * src/lex.c, src/reader.c: Use `quote'.
2428
24292000-10-04 Akim Demaille <akim@epita.fr>
2430
2431 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2432
14ded682
AD
24332000-10-04 Akim Demaille <akim@epita.fr>
2434
2435 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2436
8e03724b
AD
24372000-10-04 Akim Demaille <akim@epita.fr>
2438
2439 When a literal string is used to define two different tokens,
2440 `bison -v' segfaults.
2441 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2442
2443 * tests/regression.m4: New file.
2444 Include the core of the sample provided by Piotr Gackiewicz.
2445 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2446 properly.
2447
a9e64249
AD
24482000-10-04 Akim Demaille <akim@epita.fr>
2449
2450 * src/reader.c (parse_expect_decl): Keep `count' within the size
2451 of `buffer'.
2452 From Neil Booth.
2453
da9abf43
AD
24542000-10-02 Paul Eggert <eggert@twinsun.com>
2455
2456 * bison.s1 (yyparse): Assign the default value
2457 unconditionally, to avoid a GCC warning and make the parser a
2458 tad smaller.
2459
c33638bb
AD
24602000-10-02 Akim Demaille <akim@epita.fr>
2461
2462 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2463 options.
2464
444c570a
AD
24652000-10-02 Akim Demaille <akim@epita.fr>
2466
2467 * src/derives.c, src/print.c, src/reduce.c: To ease the
2468 translation, move some `\n' out of the translated strings.
2469
89cab50d
AD
24702000-10-02 Akim Demaille <akim@epita.fr>
2471
2472 The location tracking mechanism is precious for parse error
2473 messages. Nevertheless, it is enabled only when `@n' is used in
2474 the grammar, which is a different issue (you can use it in error
2475 message, but not in the grammar per se). Therefore, there should
2476 be another means to enable it.
2477
2478 * src/getargs.c (getargs): Support `--locations'.
2479 (usage): Report it.
2480 * src/getargs.h (locationsflag): Export it.
2481 * src/lex.c (percent_table): Support `%locations'.
2482 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2483 with `locationsflag'.
2484 * doc/bison.texinfo: Document `--locations' and `%locations'.
2485 Sort the options.
2486 * tests/calc.m4: Test it.
2487
2488 For regularity of the names, replace each
2489 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2490 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2491 In addition replace each `flag' with `_flag'.
2492
d6c2cba0
AD
24932000-10-02 Akim Demaille <akim@epita.fr>
2494
2495 Also test parse error messages, including with YYERROR_VERBOSE.
2496
2497 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2498 associative).
2499 Use it to check the computations.
2500 Use it to check `nonassoc' is honored.
2501 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2502 `--yyerror-verbose'.
2503 (_AT_CHECK_CALC): Adjust to this option.
2504 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2505
5a35a6cb
AD
25062000-10-02 Akim Demaille <akim@epita.fr>
2507
2508 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2509 the latter demonstrates a flaw in the handling of non debugging
2510 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2511 was used in order to simplify:
2512
2513 #if YYDEBUG
2514 if (yydebug)
2515 {
2516 ...
2517 }
2518 #endif
2519
2520 into
2521
2522 if (yydebug)
2523 {
2524 ...
2525 }
2526
2527 unfortunately this leads to a CPP conflict when
2528 `--name-prefix=foo' is used since it produces `#define yydebug
2529 foodebug'.
2530
2531 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2532 (YYDPRINTF): New macro.
2533 Spread its use.
2534 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2535 the bison options.
2536 Also test `--verbose', `--defines' and `--name-prefix'.
2537
71da9eea
AD
25382000-10-02 Akim Demaille <akim@epita.fr>
2539
2540 Improve the readability of the produced parsers.
2541
2542 * src/bison.s1: Formatting changes.
2543 Improve the comment related to the `$' mark.
2544 (yydefault): Don't fall through to `yyresume': `goto' there.
2545 * src/output.c (output_parser): When the `$' is met, skip the end
2546 of its line.
2547 New variable, `number_of_dollar_signs', to check there's exactly
2548 one `$' in the parser skeleton.
2549
95e36146
AD
25502000-10-02 Akim Demaille <akim@epita.fr>
2551
2552 * lib/xstrdup.c: New file, from the fileutils.
2553 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2554 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2555 instead of strlen + xmalloc + strcpy.
2556 * src/symtab.c (copys): Remove, use xstrdup instead.
2557
d7020c20
AD
25582000-10-02 Akim Demaille <akim@epita.fr>
2559
2560 * src/gram.h (associativity): New enum type which replaces the
2561 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2562 `right_assoc', `left_assoc' and `non_assoc'.
2563 Adjust all dependencies.
2564 * src/reader.c: Formatting changes.
2565 (LTYPESTR): Don't define it, use it as a literal in
2566 `reader_output_yylsp'.
2567 * src/symtab.h (symbol_class): New enum type which replaces the
2568 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2569 `sunknown', `stoken and `snterm'.
2570
1916f98e
AD
25712000-10-02 Akim Demaille <akim@epita.fr>
2572
2573 * src/getargs.c (fixed_outfiles): Rename as...
2574 (yaccflag): for consistency and accuracy.
2575 Adjust dependencies.
2576
d7913476
AD
25772000-10-02 Akim Demaille <akim@epita.fr>
2578
2579 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2580 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2581 difficult and introduced a lot of core dump. It turns out that
2582 Bison used an implementation of `xmalloc' based on `calloc', and
2583 at various places it does depend upon the initialization to 0. I
2584 have not tried to isolate the pertinent places, and all the former
2585 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2586 someone should address this issue.
2587
2588 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2589 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2590 files.
2591 Adjust dependencies.
2592 * src/warshall.h: New file.
2593 Propagate.
2594
340ef489
AD
25952000-10-02 Akim Demaille <akim@epita.fr>
2596
2597 Various anti-`extern in *.c' changes.
2598
2599 * src/system.h: Include `assert.h'.
2600
b2ca4022
AD
26012000-10-02 Akim Demaille <akim@epita.fr>
2602
2603 * src/state.h (nstates, final_state, first_state, first_shift)
2604 (first_reduction): Move their exportation from here...
2605 * src/LR0.h: to here.
2606 Adjust dependencies.
2607 * src/getargs.c (statisticsflag): New variable.
2608 Add support for `--statistics'.
2609 Adjust dependencies.
2610
2611 Remove a lot of now useless `extern' statements in most files.
2612
403b315b
AD
26132000-10-02 Akim Demaille <akim@epita.fr>
2614
2615 * src/LR0.h: New file.
2616 Propagate its use.
2617
07a58c13
AD
26182000-10-02 Akim Demaille <akim@epita.fr>
2619
2620 * src/print.h: New file.
2621 Propagate its use.
2622 * src/print.c: Formatting and ordering changes.
2623 (verbose, terse): Replace with...
2624 (print_results): this new function.
2625 Adjust dependencies.
2626
0619caf0
AD
26272000-10-02 Akim Demaille <akim@epita.fr>
2628
2629 * src/conflicts.c (conflict_report): New function.
2630 (conflict_log, verbose_conflict_log): Replace with...
2631 (print_conflicts): this function.
2632 Adjust dependencies.
2633 * src/conflicts.h: New file.
2634 Propagate its inclusion.
2635
3519ec76
AD
26362000-10-02 Akim Demaille <akim@epita.fr>
2637
2638 * src/nullable.h: New file.
2639 Propagate its inclusion.
2640 * src/nullable.c: Formatting changes.
2641
015acc48
AD
26422000-10-02 Akim Demaille <akim@epita.fr>
2643
2644 * src/reduce.h: New file.
2645 Propagate its inclusion.
2646 * src/reduce.c: Topological sort and other formatting changes.
2647 (bool, TRUE, FALSE): Move their definition to...
2648 * src/system.h: here.
2649
8963a27b
AD
26502000-10-02 Akim Demaille <akim@epita.fr>
2651
2652 * src/files.c: Formatting changes.
2653 (tryopen, tryclose, openfiles): Rename as...
2654 (xfopen, xfclose, open_files): this.
2655 (stringappend): static.
2656 * src/files.h: Complete the list of exported symbols.
2657 Propagate its use.
2658
a70083a3
AD
26592000-10-02 Akim Demaille <akim@epita.fr>
2660
2661 * src/reader.h: New file.
2662 Propagate its use instead of tedious list of `extern' and
2663 prototypes.
2664 * src/reader.c: Formatting changes, topological sort,
2665 s/register//.
2666
abadc117
AD
26672000-10-02 Akim Demaille <akim@epita.fr>
2668
2669 * src/lex.h: Prototype `lex.c' exported functions.
2670 * src/reader.c: Adjust.
2671 * src/lex.c: Formatting changes.
2672 (safegetc): Rename as...
2673 (xgetc): this.
2674
720d742f
AD
26752000-10-02 Akim Demaille <akim@epita.fr>
2676
2677 * src/lalr.h: New file.
2678 Propagate its inclusion instead of prototypes and `extern'.
2679 * src/lalr.c: Formatting changes, topological sorting etc.
2680
f2acea59
AD
26812000-10-02 Akim Demaille <akim@epita.fr>
2682
2683 * src/output.c (token_actions): Introduce a temporary array,
2684 YYDEFACT, that makes it possible for this function to use
2685 output_short_table.
2686
d019d655
AD
26872000-10-02 Akim Demaille <akim@epita.fr>
2688
2689 `user_toknums' is output as a `short[]' in `output.c', while it is
2690 defined as a `int[]' in `reader.c'. For consistency with the
2691 other output tables, `user_toknums' is now defined as a table of
2692 shorts.
2693
2694 * src/reader.c (user_toknums): Be a short table instead of an int
2695 table.
2696 Adjust dependencies.
2697
2698 Factor the short table outputs.
2699
2700 * src/output.c (output_short_table): New function.
2701 * src/output.c (output_gram, output_stos, output_rule_data)
2702 (output_base, output_table, output_check): Use it.
2703
6c89f1c1
AD
27042000-10-02 Akim Demaille <akim@epita.fr>
2705
2706 * src/output.c (output): Topological sort of the functions, in
2707 order to get rid of the `static' prototypes.
2708 No longer use `register'.
2709 * src/output.h: New file.
2710 Propagate its inclusion in files explicitly prototyping functions
2711 from output.c.
2712
d9efd181
AD
27132000-09-21 Akim Demaille <akim@epita.fr>
2714
2715 * src/atgeneral.m4: Update from Autoconf.
2716
c29240e7 27172000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
2718
2719 * src/closure.h: New file.
2720 * src/closure.c: Formatting changes, topological sort over the
2721 functions, use of closure.h.
2722 (initialize_closure, finalize_closure): Rename as...
2723 (new_closure, free_closure): these. Adjust dependencies.
2724 * src/LR0.c: Formatting changes, topological sort, use of
2725 cloture.h.
2726 (initialize_states): Rename as...
2727 (new_states): this.
2728 * src/Makefile.am (noinst_HEADERS): Adjust.
2729
499daa50
AD
27302000-09-20 Akim Demaille <akim@epita.fr>
2731
2732 * src/acconfig.h: Don't protect config.h against multiple
2733 inclusion.
2734 Don't define PARAMS.
2735 * src/system.h: Define PARAMS.
2736 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2737 purpose of config.h. system.h must not try to fix wrong
2738 definitions in config.h.
2739
cc84fd5d
AD
27402000-09-20 Akim Demaille <akim@epita.fr>
2741
2742 * src/derives.h: New file.
2743 * src/main.c, src/derives.h: Use it.
2744 Formatting changes.
2745 * src/Makefile.am (noinst_HEADERS): Adjust.
2746
db5b3a89
AD
27472000-09-20 Akim Demaille <akim@epita.fr>
2748
2749 * tests/atgeneral.m4: Update from Autoconf.
2750 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2751 (AT_CHECK_CALC): New macros.
2752 Use these macros to test bison with options `', `--raw',
2753 `--debug', `--yacc', `--yacc --debug'.
2754
ceed8467
AD
27552000-09-19 Akim Demaille <akim@epita.fr>
2756
2757 * src/output.c: Formatting changes.
2758 * src/machine.h: Remove, leaving its contents in...
2759 * src/system.h: here.
2760 Include stdio.h.
2761 Adjust all dependencies on stdio.h and machine.h.
2762 * src/getargs.h: New file.
2763 Let all `extern' declarations about getargs.c be replaced with
2764 inclusion of `getargs.h'.
2765 * src/Makefile.am (noinst_HEADERS): Adjust.
2766
2767 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2768 scope.
2769 (yyerror): Returns void, not int.
2770 * doc/bison.texinfo: Formatting changes.
2771
05a1d24b
AD
27722000-09-19 Akim Demaille <akim@epita.fr>
2773
2774 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2775 portable.
2776
cbd25751
AD
27772000-09-18 Akim Demaille <akim@epita.fr>
2778
2779 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2780 * src/Makefile.am (INCLUDES): Don't.
2781 Be ready to fetch headers in lib/.
2782
13863333
AD
27832000-09-18 Akim Demaille <akim@epita.fr>
2784
2785 * doc/bison.texinfo: Update the copyright.
2786 ANSIfy and GNUify the examples.
2787 Remove the old menu.
2788
0d533154
AD
27892000-09-18 Akim Demaille <akim@epita.fr>
2790
2791 First set of tests: use the `calc' example from the documentation.
2792
2793 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2794 is defined only when YYDEBUG is.
2795 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2796 * src/files.c (tryopen, tryclose): Formatting changes.
2797 Move to the top and be static.
2798 * src/reader.c (read_signed_integer): Likewise.
2799 * tests/calc.m4: New file.
2800 * Makefile.am, suite.m4: Adjust.
2801 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2802
e79137ac
AD
28032000-09-18 Akim Demaille <akim@epita.fr>
2804
2805 Add support for an Autotest test suite for Bison.
2806
2807 * m4/m4.m4, m4/atconfig.m4: New files.
2808 * m4/Makefile.am (EXTRA_DIST): Adjust.
2809 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2810 files.
2811 * src/getargs.c: Display a more standard --version message.
2812 * src/reader.c (reader): Formatting changes.
2813 No longer depend upon VERSION_STRING.
2814 * configure.in: No longer use `dnl'.
2815 Set up the test suite and the new directory `tests/.
2816 (VERSION_STRING): Remove.
2817
27821bff
AD
28182000-04-14 Akim Demaille <akim@epita.fr>
2819
2820 * src/reader.c (copy_comment2): New function, same as former
2821 `copy_comment', but outputs into two FILE *.
2822 (copy_comment): Use it.
2823 (parse_union_decl): Use it.
2824 (get_type, parse_start_decl): Use the same `invalid' message.
2825 (parse_start_decl, parse_union_decl): Use the same `multiple'
2826 message.
2827 (parse_union_decl, copy_guard, copy_action): Use the same
2828 `unmatched' message.
2829 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2830
cfe5fbc0
AD
28312000-03-31 Akim Demaille <akim@epita.fr>
2832
2833 * src/files.c (tryopen, tryclose): Move to the top.
2834 Be static.
2835
cb7db13e
AD
28362000-03-31 Akim Demaille <akim@epita.fr>
2837
2838 * src/main.c (main): Don't call `done', exit does it.
2839
a0f6b076
AD
28402000-03-31 Akim Demaille <akim@epita.fr>
2841
36281465
AD
2842 * allocate.c: s/return (foo)/return foo/.
2843 * lalr.c: Likewise.
2844 * LR0.c: Likewise.
2845 * output.c: Likewise.
2846 * reader.c: Likewise.
2847 * symtab.c: Likewise.
2848 * vmsgetargs.c: Likewise.
2849
28502000-03-31 Akim Demaille <akim@epita.fr>
2851
2852 Clean up the error reporting functions.
a0f6b076
AD
2853
2854 * src/report.c: New file.
2855 * src/report.h: Likewise.
2856 * src/Makefile.am: Adjust.
2857 * m4/error.m4: New file.
2858 * m4/Makefile.am: Adjust.
2859 * configure.in (jm_PREREQ_ERROR): Call it.
2860 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2861 Remove.
2862 (fatal, fatals): Remove. All callers use complain.c::fatal.
2863 (warn, warni, warns, warnss, warnss): Remove. All callers use
2864 complain.c::complain.
2865 (toomany): Remove, use fatal instead.
2866 * src/files.c (done): No argument, use complain_message_count.
2867 * src/main.c (main): Register `done' to `atexit'.
2868
2869 * src/getargs.c (usage): More `fputs', less `fprintf'.
2870
18539825
AD
28712000-03-28 Akim Demaille <akim@epita.fr>
2872
2873 * lib/: New directory.
2874 * Makefile.am (SUBDIRS): Adjust.
2875 * configure.in: Adjust.
2876 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2877 useless.
2878 * src/alloca.c: Moved to lib/.
2879 * src/getopt.c: Likewise.
2880 * src/getopt1.c: Likewise.
2881 * src/getopt.h: Likewise.
2882 * src/ansi2knr.c: Likewise.
2883 * src/ansi2knr.1: Likewise.
2884 * src/Makefile.am: Adjust.
2885 * lib/Makefile.am: New file.
2886
9f306f2a
AD
28872000-03-28 Akim Demaille <akim@epita.fr>
2888
2889 * src/getargs.c (usage): Refresh the help message.
2890
0ba347b6
AD
28912000-03-17 Akim Demaille <akim@epita.fr>
2892
2893 * src/getopt1.c: Updated from textutils 2.0e
2894 * src/getopt.c: Likewise.
2895 * src/getopt.h: Likewise.
2896
dbe7f271
AD
28972000-03-17 Akim Demaille <akim@epita.fr>
2898
2899 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2900 the file name, not the whole `#line LINE FILE'.
2901
75bbe78d
AD
29022000-03-17 Akim Demaille <akim@epita.fr>
2903
2904 On syntax errors, report the token on which we choked.
2905
aa5fd0ee
AD
2906 * src/bison.s1 (yyparse): In the label yyerrlab, when
2907 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2908
7b306f52
AD
29092000-03-17 Akim Demaille <akim@epita.fr>
2910
aa5fd0ee 2911 * src/reader.c (copy_at): New function.
7b306f52
AD
2912 (copy_guard): Use it.
2913 (copy_action): Use it.
2914
e87b5700
AD
29152000-03-17 Akim Demaille <akim@epita.fr>
2916
2917 Be kind to translators, save some useless translations.
2918
aa5fd0ee 2919 * src/main.c (banner): New function.
e87b5700
AD
2920 (fatal_banner): Use it.
2921 (warn_banner): Use it.
2922
ae3c3164
AD
29232000-03-17 Akim Demaille <akim@epita.fr>
2924
aa5fd0ee
AD
2925 * src/reader.c (copy_definition): Use copy_string and
2926 copy_comment. Removed now unused `match', `ended',
2927 `cplus_comment'.
ae3c3164
AD
2928 (copy_comment, copy_string): Moved, to be visible from
2929 copy_definition.
2930
4dc58e7c
AD
29312000-03-17 Akim Demaille <akim@epita.fr>
2932
aa5fd0ee
AD
2933 * src/reader.c (copy_string): Declare `static inline'. No
2934 problems with inline, since it is checked by configure.
4dc58e7c
AD
2935 (copy_comment): Likewise.
2936
0a6384c4
AD
29372000-03-17 Akim Demaille <akim@epita.fr>
2938
aa5fd0ee 2939 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2940
3cef001a
AD
29412000-03-17 Akim Demaille <akim@epita.fr>
2942
aa5fd0ee 2943 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2944 (copy_action): Use it. Removed now unused `match', `ended',
2945 `cplus_comment'.
2946 (copy_guard): Likewise.
2947
ca36d2ef
AD
29482000-03-17 Akim Demaille <akim@epita.fr>
2949
aa5fd0ee 2950 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2951 (copy_action): Use it.
2952 (copy_guard): Likewise.
2953
6666f98f
AD
29542000-03-17 Akim Demaille <akim@epita.fr>
2955
2956 Change the handling of @s so that they behave exactly like $s.
2957 There is now a pseudo variable @$ (readble and writable), location
2958 of the lhs of the rule (by default ranging from the location of
2959 the first symbol of the rhs, to the location of the last symbol,
2960 or, if the rhs is empty, YYLLOC).
2961
2962 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2963 yyval.
2964 (yyparse): When providing a default semantic action, provide a
2965 default location action.
2966 (after the $): No longer change `*YYLSP', just stack YYLOC the
2967 same way you stack YYVAL.
2968 * src/reader.c (read_declarations): Use warns.
2969 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2970 (copy_action, case '@'): Likewise.
2971 Use a standard error message, to save useless work from
2972 translators.
2973
41aca2e0
AD
29742000-03-17 Akim Demaille <akim@epita.fr>
2975
aa5fd0ee
AD
2976 * src/bison.s1: Formatting and cosmetics changes.
2977 * src/reader.c: Likewise.
41aca2e0
AD
2978 Update the Copyright notice.
2979
dc08c1d5
AD
29802000-03-17 Akim Demaille <akim@epita.fr>
2981
aa5fd0ee
AD
2982 * src/bison.s1 (#line): All set to `#line' only, since the
2983 Makefile now handles them.
dc08c1d5 2984
9ee3c97b
AD
29852000-03-16 Akim Demaille <akim@epita.fr>
2986
2987 * src/output.c (output_rule_data): Output the documentation of
2988 some of the tables.
2989 (Copyright notice): Update.
2990 Formatting changes.
2991
0de741ca
AD
29922000-03-16 Akim Demaille <akim@epita.fr>
2993
2994 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2995 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2996 One `#if YYDEBUG' remains, since it uses variables which are
2997 defined only if `YYDEBUG != 0'.
2998
bb10be54
AD
29992000-03-16 Akim Demaille <akim@epita.fr>
3000
3001 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3002 and related variables so that the similarities are highlighted.
3003
b07b484a
AD
30042000-03-16 Akim Demaille <akim@epita.fr>
3005
3006 * src/bison.s1: Properly indent CPP directives.
3007
361f60b3
AD
30082000-03-16 Akim Demaille <akim@epita.fr>
3009
3010 * src/bison.s1: Properly indent the `alloca' CPP section.
3011
8c44d3ec
AD
30122000-03-16 Akim Demaille <akim@epita.fr>
3013
3014 Do not hard code values of directories in `configure.in'.
3015 Update the `configure' tool chain.
3016
3017 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3018 src/makefile.am.
3019 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3020 (AC_OUTPUT): Add m4/Makefile.
3021 Bump to bison 1.28a, 1.29 has never been released.
3022 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3023 handled via src/Makefile.am.
3024 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3025 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3026 autoheader.
3027 * Makefile.am (SUBDIRS): Add m4.
3028 (ACLOCAL_AM_FLAGS): New variable.
3029 (AUTOMAKE_OPTIONS): Add check-news.
3030 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3031 the proper line number and file name.
3032 (DEFS): Propagate the location of bison library files and of the
3033 locale files.
3034 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3035 builddir.
3036 * acinclude.m4: Remove, replaced by the directory m4.
3037 * m4/Makefile.am (EXTRA_DIST): New variable.
3038 * m4/gettext.m4: New file, from the fileutils.
3039 * m4/lcmessage.m4: Likewise
3040 * m4/progtest.m4: Likewise.
3041 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3042
f95997e7
AD
30432000-03-10 Akim Demaille <akim@epita.fr>
3044
3045 * src/closure.c:
3046 Formatting changes of various comments.
3047 Respect the GNU coding standards at various places.
3048 Don't use `_()' when no translation is needed.
3049
30501999-12-13 Jesse Thilo <jthilo@gnu.org>
3051
3052 * src/files.c:
3053 OS/2 honors TMPDIR environment variable.
3054
30551999-12-13 Jesse Thilo <jthilo@gnu.org>
3056
3057 * doc/bison.texinfo: Tweaked spelling and grammar.
3058 Updated ISBN.
3059 Removed reference to price of printed copy.
3060 Mention BISON_SIMPLE and BISON_HAIRY.
3061
30621999-12-13 Jesse Thilo <jthilo@gnu.org>
3063
3064 * configure.in, NEWS:
3065 Bison 1.29 released.
3066
30671999-10-27 Jesse Thilo <jthilo@gnu.org>
3068
3069 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3070 Added reference card.
3071
30721999-07-26 Jesse Thilo <jthilo@gnu.org>
3073
3074 * po/ru.po: Added Russian translation.
3075
30761999-07-26 Jesse Thilo <jthilo@gnu.org>
3077
3078 * configure.in: Added Russian translation.
3079
30801999-07-06 Jesse Thilo <jthilo@gnu.org>
3081
3082 * configure.in, NEWS, README:
3083 Released version 1.28.
3084
30851999-06-14 Jesse Thilo <jthilo@gnu.org>
3086
3087 * src/system.h:
3088 Squashed redefinition warning on some systems.
3089
3090 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3091 Have configure build version string instead of relying on ANSI string
3092 concatentation.
3093
30941999-06-14 Jesse Thilo <jthilo@gnu.org>
3095
3096 * po/POTFILES.in: Got rid of version.c.
3097
30981999-06-14 Jesse Thilo <jthilo@gnu.org>
3099
3100 * acconfig.h, configure.in:
3101 Have configure build version string instead of relying on ANSI string
3102 concatentation.
3103
31041999-06-08 Jesse Thilo <jthilo@gnu.org>
3105
3106 * doc/bison.1:
3107 Dropped mention of `+' for long-named options.
3108
31091999-05-30 Jesse Thilo <jthilo@gnu.org>
3110
3111 * src/files.c: Added <unistd.h> for unlink().
3112
3113 * src/Makefile.am, src/system.h:
3114 I18n fixes.
3115
31161999-05-30 Jesse Thilo <jthilo@gnu.org>
3117
3118 * README: Added a FAQ list.
3119
3120 * configure.in, acconfig.h:
3121 I18n fixes.
3122
31231999-05-30 Jesse Thilo <jthilo@gnu.org>
3124
3125 * doc/FAQ, doc/Makefile.am:
3126 Added a FAQ list.
3127
31281999-05-19 Jesse Thilo <jthilo@gnu.org>
3129
3130 * src/alloc.h, src/symtab.h, src/version.c:
3131 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3132
31331999-04-18 Jesse Thilo <jthilo@gnu.org>
3134
3135 * src/.cvsignore, src/Makefile.am:
3136 Reorganized: sources in `src', documentation in `doc'.
3137
3138 * src/lex.c (literalchar):
3139 fixed the code for escaping double quotes (thanks
3140 Jonathan Czisny.)
3141
31421999-04-18 Jesse Thilo <jthilo@gnu.org>
3143
3144 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3145 Adjusted paths to reflect directory reorganization.
3146
31471999-04-18 Jesse Thilo <jthilo@gnu.org>
3148
3149 * doc/.cvsignore, doc/Makefile.am:
3150 Reorganized: sources in `src', documentation in `doc'.
3151
31521999-04-18 Jesse Thilo <jthilo@gnu.org>
3153
3154 * configure.in:
3155 Updated AC_INIT file to reflect directory reorganization.
3156
3157 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3158 Reorganized: sources in `src', documentation in `doc'.
3159
31601999-04-13 Jesse Thilo <jthilo@gnu.org>
3161
3162 * src/allocate.c:
3163 Don't declare calloc() and realloc() if not necessary.
3164
31651999-04-13 Jesse Thilo <jthilo@gnu.org>
3166
3167 * configure.in, acconfig.h, acinclude.m4:
3168 Don't declare calloc() and realloc() if not necessary.
3169
31701999-03-23 Jesse Thilo <jthilo@gnu.org>
3171
3172 * po/.cvsignore: Added i18n support.
3173
31741999-03-23 Jesse Thilo <jthilo@gnu.org>
3175
3176 * acconfig.h, configure.in, Makefile.am:
3177 Added i18n support.
3178
31791999-03-22 Jesse Thilo <jthilo@gnu.org>
3180
3181 * src/bison.s1: Fixed #line numbers.
3182
31831999-03-15 Jesse Thilo <jthilo@gnu.org>
3184
3185 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3186 Added PO files from Translation Project.
3187
31881999-03-03 Jesse Thilo <jthilo@gnu.org>
3189
3190 * Makefile.am:
3191 Added support for non-ANSI compilers (ansi2knr).
3192
31931999-02-16 Jesse Thilo <jthilo@gnu.org>
3194
3195 * configure.in: Bumped version number to 1.27.
3196
3197 * Makefile.am:
3198 Added `bison.simple' to list of files removed by `make distclean'.
3199
32001999-02-12 Jesse Thilo <jthilo@gnu.org>
3201
3202 * src/files.c, src/files.h:
3203 Defined locations of parser files in config.h instead of Makefile.
3204
32051999-02-12 Jesse Thilo <jthilo@gnu.org>
3206
3207 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3208 Defined locations of parser files in config.h instead of Makefile.
3209
32101999-02-09 Jesse Thilo <jthilo@gnu.org>
3211
3212 * Makefile.am:
3213 Removed inappropriate use of $< macro.
3214
32151999-02-05 Jesse Thilo <jthilo@gnu.org>
3216
3217 * po/Makefile.in.in, po/POTFILES.in:
3218 Add `po' directory skeleton.
3219
32201999-01-27 Jesse Thilo <jthilo@gnu.org>
3221
3222 * README: Document help-bison list.
3223
3224 * configure.in: Add check for mkstemp().
3225
32261999-01-20 Jesse Thilo <jthilo@gnu.org>
3227
3228 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3229 Hush a few compiler warnings.
3230
3231 * src/files.c:
3232 Add tryclose(), which verifies that fclose was successful.
3233 Hush a couple of compiler warnings.
3234
32351999-01-20 Jesse Thilo <jthilo@gnu.org>
3236
3237 * Makefile.am, OChangeLog:
3238 ChangeLog is now automatically generated. Include the old version as
3239 OChangeLog.
3240
32411999-01-14 Jesse Thilo <jthilo@gnu.org>
3242
3243 * 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:
3244 Update FSF address.
3245
32461999-01-14 Jesse Thilo <jthilo@gnu.org>
3247
3248 * doc/bison.texinfo: Fix formatting glitch.
3249
3250 * doc/bison.texinfo: Update FSF address.
3251
32521999-01-14 Jesse Thilo <jthilo@gnu.org>
3253
3254 * acconfig.h: Update FSF address.
3255
32561999-01-08 Jesse Thilo <jthilo@gnu.org>
3257
3258 * src/system.h:
3259 Don't define PACKAGE here, since config.h defines it.
3260
32611998-12-30 Jesse Thilo <jthilo@gnu.org>
3262
3263 * src/reader.c: Update copyright date.
3264
3265 * src/main.c:
3266 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3267 favor of output directly to stderr (avoids buffer overruns).
3268
3269 * src/reader.c: Some checks for premature EOF.
3270
3271 * 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:
3272 Use prototypes if the compiler understands them.
3273
3274 * src/files.c: Honor TMPDIR on Unix hosts.
3275 Use prototypes if the compiler understands them.
3276
3277 * src/reader.c:
3278 Fix a couple of buffer overrun bugs.
3279 Use prototypes if the compiler understands them.
3280
3281 * src/system.h: Include unistd.h and ctype.h.
3282 Use #ifdef instead of #if for NLS symbols.
3283
32841998-12-30 Jesse Thilo <jthilo@gnu.org>
3285
3286 * doc/bison.texinfo:
3287 Delete comment "consider using @set for edition number, etc..." since
3288 we now are doing so.
3289
32901998-12-30 Jesse Thilo <jthilo@gnu.org>
3291
3292 * configure.in:
3293 Use prototypes if the compiler understands them.
3294
3295 * NEWS: Document 1.26 highlights.
3296
3297 * Makefile.am: Require Automake 1.3 or later.
3298
3299 * acconfig.h:
3300 Use prototypes if the compiler understands them.
3301
33021998-12-29 Jesse Thilo <jthilo@gnu.org>
3303
3304 * src/version.c:
3305 Use VERSION symbol from automake for version number.
3306
33071998-12-29 Jesse Thilo <jthilo@gnu.org>
3308
3309 * acconfig.h, configure.in, version.cin:
3310 Use VERSION symbol from automake for version number.
3311
33121998-11-28 Jesse Thilo <jthilo@gnu.org>
3313
3314 * Makefile.am:
3315 Distribute original version of simple parser (bison.s1), not built
3316 version (bison.simple).
3317
33181998-11-28 Jesse Thilo <jthilo@gnu.org>
3319
3320 * doc/bison.texinfo: Add info dir entry.
3321
3322 * doc/bison.texinfo:
3323 Let automake put version number into documentation.
3324
33251998-11-26 Jesse Thilo <jthilo@gnu.org>
3326
3327 * src/bison.cld, src/build.com, src/vmshlp.mar:
3328 Add non-RCS files from /gd/gnu/bison.
3329
33301998-11-26 Jesse Thilo <jthilo@gnu.org>
3331
3332 * doc/bison.1:
3333 Document the BISON_HAIRY and BISON_SIMPLE variables.
3334
33351998-11-25 Jesse Thilo <jthilo@gnu.org>
3336
3337 * src/version.c: Build version.c automatically.
3338
3339 * src/reader.c:
3340 Fix token numbering (used to start at 258, not 257).
3341
3342 * src/system.h: Include config.h.
3343
3344 * src/getargs.c: Update bug report address.
3345
3346 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3347 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3348
33491998-11-25 Jesse Thilo <jthilo@gnu.org>
3350
3351 * Makefile.am:
3352 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3353
3354 * configure.in, version.cin:
3355 Build version.c automatically.
3356
3357 * AUTHORS: Add AUTHORS file.
3358
3359 * README: Update bug report address.
3360
3361 * bison.simple:
3362 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3363
3364 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3365 Add automake stuff.
3366
33671998-11-25 Jesse Thilo <jthilo@gnu.org>
3368
3369 * doc/bison.texinfo: Clean up some formatting.
3370
33711998-05-05 Richard Stallman <rms@gnu.org>
3372
3373 * doc/bison.texinfo:
3374 Explain better why to make a pure parser.
3375
33761998-01-05 Richard Stallman <rms@gnu.org>
3377
3378 * src/files.c (openfiles):
3379 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3380 find a temporary directory, if possible. Do not unlink files while
3381 they are open.
3382
33831997-08-25 Richard Stallman <rms@gnu.org>
3384
3385 * src/reader.c (stack_offset;):
3386 Change some warni to warns.
3387
3388 * src/lex.c (literalchar): Use warns, not warni.
3389
33901997-06-28 Richard Stallman <rms@gnu.org>
3391
3392 * src/bison.s1: Add a Bison version comment.
3393
3394 * src/main.c (fatal, warn, berror):
3395 Use program_name.
3396
33971997-06-28 Richard Stallman <rms@gnu.org>
3398
3399 * Makefile.in (bison_version): New variable.
3400 (dist): Use that variable.
3401 (bison.s1): Substitute the Bison version into bison.simple.
3402
3403 * bison.simple: Add a Bison version comment.
3404
34051997-06-18 Richard Stallman <rms@gnu.org>
3406
3407 * src/main.c (fatal, warn, berror):
3408 Make error messages standard.
3409 (toomany): Improve error message text.
3410
3411 * 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:
3412 new.h renamed to alloc.h.
3413
34141997-06-18 Richard Stallman <rms@gnu.org>
3415
3416 * Makefile.in: new.h renamed to alloc.h.
3417
34181997-05-24 Richard Stallman <rms@gnu.org>
3419
3420 * src/lex.c (literalchar):
3421 Fix the code for escaping \, " and '.
3422
3423 (lex): Avoid trouble when there are many chars
3424 to discard in a char literal with just several chars in it.
3425
34261997-05-17 Richard Stallman <rms@gnu.org>
3427
3428 * src/bison.s1:
3429 Use malloc, if using alloca is troublesome.
3430 (YYSTACK_USE_ALLOCA): New flag macro.
3431 Define it for some systems and compilers.
3432 (YYSTACK_ALLOC): New macro.
3433 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3434 If it was malloc'd, free it.
3435
34361997-05-17 Richard Stallman <rms@gnu.org>
3437
3438 * bison.simple:
3439 Use malloc, if using alloca is troublesome.
3440 (YYSTACK_USE_ALLOCA): New flag macro.
3441 Define it for some systems and compilers.
3442 (YYSTACK_ALLOC): New macro.
3443 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3444 If it was malloc'd, free it.
3445
34461997-04-23 Richard Stallman <rms@gnu.org>
3447
3448 * src/bison.s1:
3449 (alloca) [__hpux]: Always define as __builtin_alloca.
3450
34511997-04-23 Richard Stallman <rms@gnu.org>
3452
3453 * bison.simple:
3454 (alloca) [__hpux]: Always define as __builtin_alloca.
3455
34561997-04-22 Richard Stallman <rms@gnu.org>
3457
3458 * src/bison.s1:
3459 [__hpux]: Include alloca.h (right for HPUX 10)
3460 instead of declaring alloca (right for HPUX 9).
3461
3462 * src/bison.s1 (__yy_memcpy):
3463 Declare arg `count' as unsigned int.
3464 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3465
34661997-04-22 Richard Stallman <rms@gnu.org>
3467
3468 * bison.simple:
3469 [__hpux]: Include alloca.h (right for HPUX 10)
3470 instead of declaring alloca (right for HPUX 9).
3471
3472 * bison.simple (__yy_memcpy):
3473 Declare arg `count' as unsigned int.
3474 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3475
34761997-01-03 Richard Stallman <rms@gnu.org>
3477
3478 * src/allocate.c: [__STDC__ or _MSC_VER]:
3479 Declare calloc and realloc to return void *.
3480
34811997-01-02 Richard Stallman <rms@gnu.org>
3482
3483 * src/system.h:
3484 [_MSC_VER]: Include stdlib.h and process.h.
3485 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3486
3487 * src/main.c (main): Return FAILURE as a value.
3488 (printable_version): Declare arg as int, not char.
3489
34901997-01-02 Richard Stallman <rms@gnu.org>
3491
3492 * Makefile.in (dist):
3493 Explicitly check for symlinks, and copy them.
3494
34951996-12-19 Richard Stallman <rms@gnu.org>
3496
3497 * src/files.c:
3498 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3499
35001996-12-18 Paul Eggert <eggert@gnu.org>
3501
3502 * src/bison.s1 (yyparse):
3503 If __GNUC__ and YYPARSE_PARAM are both defined,
3504 declare yyparse to have a void * argument.
3505
35061996-12-18 Paul Eggert <eggert@gnu.org>
3507
3508 * bison.simple (yyparse):
3509 If __GNUC__ and YYPARSE_PARAM are both defined,
3510 declare yyparse to have a void * argument.
3511
35121996-12-17 Richard Stallman <rms@gnu.org>
3513
3514 * src/reduce.c (nbits): Add some casts.
3515
35161996-08-12 Richard Stallman <rms@gnu.org>
3517
3518 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3519
35201996-08-12 Richard Stallman <rms@gnu.org>
3521
3522 * bison.simple: Test _MSDOS as well as _MSDOS_.
3523
35241996-07-31 Richard Stallman <rms@gnu.org>
3525
3526 * src/bison.s1:
3527 [__sun && __i386]: Include alloca.h.
3528
35291996-07-31 Richard Stallman <rms@gnu.org>
3530
3531 * bison.simple:
3532 [__sun && __i386]: Include alloca.h.
3533
35341996-07-30 Richard Stallman <rms@gnu.org>
3535
3536 * src/bison.s1: Comment change.
3537
3538 * src/bison.s1: Test _MSDOS_, not MSDOS.
3539
35401996-07-30 Richard Stallman <rms@gnu.org>
3541
3542 * bison.simple: Comment change.
3543
3544 * bison.simple: Test _MSDOS_, not MSDOS.
3545
35461996-06-01 Richard Stallman <rms@gnu.org>
3547
3548 * 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:
3549 Insert `_' macro around many string constants.
3550
3551 * src/main.c:
3552 Insert `_' macro around many string constants.
3553
3554 (main): Call setlocale, bindtextdomain and textdomain.
3555
3556 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3557 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3558 [ENABLE_NLS]: Include libintl.h.
3559 [ENABLE_NLS] (gettext): Define.
3560 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3561 (N_, PACKAGE, LOCALEDIR): New macros.
3562
35631996-06-01 Richard Stallman <rms@gnu.org>
3564
3565 * POTFILES.in: New file.
3566
3567 * Makefile.in (allocate.o):
3568 Define target explicitly.
3569
3570 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3571 (LDFLAGS): Set to @LDFLAGS@.
3572 (configure): Run autoconf only if preceding `cd' succeeds.
3573 (bison.s1): Redirect output to temporary file then move the
3574 temporary to the target, rather than redirecting directly to bison.s1.
3575 (clean): Remove config.status and config.log.
3576 (distclean): Don't remove config.status here.
3577
35781996-05-12 Richard Stallman <rms@gnu.org>
3579
3580 * src/bison.s1:
3581 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3582
35831996-05-12 Richard Stallman <rms@gnu.org>
3584
3585 * bison.simple:
3586 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3587
35881996-05-11 Richard Stallman <rms@gnu.org>
3589
3590 * src/bison.s1 (__yy_memcpy):
3591 Really reorder the args, as was supposedly done on Feb 14 1995.
3592 (yyparse): Calls changed accordingly.
3593
35941996-05-11 Richard Stallman <rms@gnu.org>
3595
3596 * Makefile.in (dist): Don't use $(srcdir).
3597
3598 * bison.simple (__yy_memcpy):
3599 Really reorder the args, as was supposedly done on Feb 14 1995.
3600 (yyparse): Calls changed accordingly.
3601
36021996-01-27 Richard Stallman <rms@gnu.org>
3603
3604 * src/output.c (output_rule_data):
3605 Test YYERROR_VERBOSE in the conditional
3606 around the definition of ttyname.
3607
36081995-12-29 Richard Stallman <rms@gnu.org>
3609
3610 * src/bison.s1:
3611 Fix line numbers in #line commands.
3612
36131995-12-29 Richard Stallman <rms@gnu.org>
3614
3615 * bison.simple:
3616 Fix line numbers in #line commands.
3617
36181995-12-27 Richard Stallman <rms@gnu.org>
3619
3620 * src/bison.s1 (YYPARSE_PARAM_DECL):
3621 In C++, make it always null.
3622 (YYPARSE_PARAM_ARG): New macro.
3623 (yyparse): Use YYPARSE_PARAM_ARG.
3624
36251995-12-27 Richard Stallman <rms@gnu.org>
3626
3627 * bison.simple (YYPARSE_PARAM_DECL):
3628 In C++, make it always null.
3629 (YYPARSE_PARAM_ARG): New macro.
3630 (yyparse): Use YYPARSE_PARAM_ARG.
3631
36321995-11-29 Richard Stallman <rms@gnu.org>
3633
3634 * doc/bison.texinfo:
3635 Describe literal string tokens, %raw, %no_lines, %token_table.
3636
36371995-11-29 Daniel Hagerty <hag@gnu.org>
3638
3639 * doc/bison.texinfo: Fixed update date
3640
36411995-10-16 Richard Stallman <rms@gnu.org>
3642
3643 * src/version.c: Version 1.25.
3644
36451995-10-16 Richard Stallman <rms@gnu.org>
3646
3647 * NEWS: *** empty log message ***
3648
36491995-10-16 Richard Stallman <rms@gnu.org>
3650
3651 * doc/bison.1, doc/bison.rnh:
3652 Add new options.
3653
36541995-10-15 Richard Stallman <rms@gnu.org>
3655
3656 * src/vmsgetargs.c, src/getargs.c:
3657 Added -n, -k, and -raw switches.
3658 (noparserflag, toknumflag, rawtoknumflag): New variables.
3659
3660 * src/symtab.h (SALIAS):
3661 New #define for adding aliases to %token.
3662 (struct bucket): Added `alias' field.
3663
3664 * src/reduce.c (reduce_grammar):
3665 Revise error message.
3666 (print_notices): Remove final `.' from error message.
3667
3668 * src/reader.c (reader_output_yylsp):
3669 New function.
3670 (readgram): Use `#if 0' around code that accepted %command
3671 inside grammar rules: The documentation doesn't allow it,
3672 and it will fail since the %command processors scan for the next %.
3673 (parse_token_decl): Extended the %token
3674 declaration to allow a multi-character symbol as an alias.
3675 (parse_thong_decl): New function.
3676 (read_declarations): Added %thong declarations.
3677 (read_declarations): Handle NOOP to deal with allowing
3678 % declarations as another means to specify the flags.
3679 (readgram): Allow %prec prior to semantics embedded in a rule.
3680 (skip_to_char, read_declarations, copy_definition)
3681 (parse_token_decl, parse_start_decl, parse_type_decl)
3682 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3683 (get_type_name, copy_guard, copy_action, readgram)
3684 (get_type, packsymbols): Revised most error messages.
3685 Changed `fatal' to `warnxxx' to avoid aborting for error.
3686 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3687 (read_declarations): Improve the error message for
3688 an invalid character. Do not abort.
3689 (read_declarations, copy_guard, copy_action): Use
3690 printable_version to avoid unprintable characters in printed output.
3691 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3692 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3693 Allow the type of a non-terminal can be given
3694 more than once, as long as all specifications give the same type.
3695
3696 * src/output.c:
3697 (output_headers, output_trailers, output, output_gram)
3698 (output_rule_data): Implement noparserflag variable.
3699 Implement toknumflag variable.
3700 (output): Call reader_output_yylsp to output LTYPESTR.
3701
3702 * src/main.c (main):
3703 If reader sees an error, don't process the grammar.
3704 (fatals): Updated to not use VARARGS1.
3705 (printable_version, int_to_string, warn, warni, warns, warnss)
3706 (warnsss): New error reporting functions. Avoid abort for error.
3707
3708 * src/lex.h:
3709 Added THONG and NOOP for alias processing.
3710 Added SETOPT for the new code that allows setting options with %flags.
3711
3712 * src/lex.c:
3713 Include getopt.h. Add some extern decls.
3714 (safegetc): New function to deal with EOF gracefully.
3715 (literalchar); new function to deal with reading \ escapes.
3716 (lex): Use literalchar.
3717 (lex): Implemented "..." tokens.
3718 (literalchar, lex, parse_percent_token): Made tokenbuffer
3719 always contain the token. This includes growing the token
3720 buffer while reading an integer.
3721 (parse_percent_token): Replaced if-else statement with percent_table.
3722 (parse_percent_token): Added % declarations as another
3723 way to specify the flags -n, -l, and -r. Also added hooks for
3724 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3725 major changes to files.c.
3726 (lex) Retain in the incoming stream a character following
3727 an incorrect '/'.
3728 (skip_white_space, lex): Revised most error messages
3729 and changed fatal to warn to avoid aborting.
3730 (percent_table): Added %thong declarations.
3731
3732 * src/gram.h: Comment changes.
3733
3734 * src/files.c (openfiles, open_extra_files, done):
3735 Add faction flag
3736 and actfile file. Handle noparserflag. Both for -n switch.
3737
3738 * src/conflicts.c (resolve_sr_conflict):
3739 Remove use of alloca.
3740
37411995-06-01 Jim Meyering <meyering@gnu.org>
3742
3743 * doc/bison.texinfo: *** empty log message ***
3744
37451995-05-06 Richard Stallman <rms@gnu.org>
3746
3747 * src/bison.s1: Comment change.
3748
37491995-05-06 Richard Stallman <rms@gnu.org>
3750
3751 * bison.simple: Comment change.
3752
37531995-05-03 Richard Stallman <rms@gnu.org>
3754
3755 * src/version.c: Version now 1.24.
3756
3757 * src/bison.s1: Change distribution terms.
3758
3759 * src/version.c: Version now 1.23.
3760
37611995-05-03 Richard Stallman <rms@gnu.org>
3762
3763 * doc/bison.texinfo:
3764 Rewrite "Conditions for Using Bison".
3765 Update version to 1.24.
3766
37671995-05-03 Richard Stallman <rms@gnu.org>
3768
3769 * bison.simple: Change distribution terms.
3770
37711995-02-23 Richard Stallman <rms@gnu.org>
3772
3773 * src/files.c: Test __VMS_POSIX as well as VMS.
3774
37751995-02-14 Jim Meyering <meyering@gnu.org>
3776
3777 * src/bison.s1 (__yy_memcpy):
3778 Renamed from __yy_bcopy to avoid
3779 confusion. Reverse FROM and TO arguments to be consistent with
3780 those of memcpy.
3781
37821995-02-14 Jim Meyering <meyering@gnu.org>
3783
3784 * bison.simple (__yy_memcpy):
3785 Renamed from __yy_bcopy to avoid
3786 confusion. Reverse FROM and TO arguments to be consistent with
3787 those of memcpy.
3788
37891994-11-10 David J. MacKenzie <djm@gnu.org>
3790
3791 * NEWS: reformat
3792
3793 * NEWS: New file.
3794
3795 * Makefile.in (DISTFILES): Include NEWS.
3796
3797 * Makefile.in (DISTFILES):
3798 Include install-sh, not install.sh.
3799
3800 * configure.in: Update to Autoconf v2 macro names.
3801
38021994-10-05 David J. MacKenzie <djm@gnu.org>
3803
3804 * Makefile.in: fix typo
3805
3806 * Makefile.in (prefix, exec_prefix):
3807 Let configure set them.
3808
38091994-09-28 David J. MacKenzie <djm@gnu.org>
3810
3811 * Makefile.in: Set datadir to $(prefix)/share.
3812
38131994-09-15 Richard Stallman <rms@gnu.org>
3814
3815 * src/bison.s1:
3816 Update copyright notice and GPL version.
3817
38181994-09-15 Richard Stallman <rms@gnu.org>
3819
3820 * bison.simple:
3821 Update copyright notice and GPL version.
3822
38231994-07-12 Richard Stallman <rms@gnu.org>
3824
3825 * src/reduce.c, src/reader.c:
3826 entered into RCS
3827
38281994-05-05 David J. MacKenzie <djm@gnu.org>
3829
3830 * Makefile.in: entered into RCS
3831
38321994-03-26 Richard Stallman <rms@gnu.org>
3833
3834 * src/bison.s1: entered into RCS
3835
38361994-03-26 Richard Stallman <rms@gnu.org>
3837
3838 * bison.simple: entered into RCS
3839
38401994-03-25 Richard Stallman <rms@gnu.org>
3841
3842 * src/main.c: entered into RCS
3843
38441994-03-24 Richard Stallman <rms@gnu.org>
3845
3846 * src/conflicts.c: entered into RCS
3847
38481994-01-02 Richard Stallman <rms@gnu.org>
3849
3850 * Makefile.in: *** empty log message ***
3851
38521993-11-21 Richard Stallman <rms@gnu.org>
3853
3854 * src/bison.s1: *** empty log message ***
3855
38561993-11-21 Richard Stallman <rms@gnu.org>
3857
3858 * doc/bison.texinfo: entered into RCS
3859
3860 * doc/bison.texinfo: *** empty log message ***
3861
38621993-11-21 Richard Stallman <rms@gnu.org>
3863
3864 * bison.simple: *** empty log message ***
3865
38661993-10-25 David J. MacKenzie <djm@gnu.org>
3867
3868 * doc/bison.texinfo: *** empty log message ***
3869
38701993-10-19 Richard Stallman <rms@gnu.org>
3871
3872 * src/bison.s1: *** empty log message ***
3873
38741993-10-19 Richard Stallman <rms@gnu.org>
3875
3876 * bison.simple: *** empty log message ***
3877
38781993-10-14 Richard Stallman <rms@gnu.org>
3879
3880 * src/bison.s1: *** empty log message ***
3881
38821993-10-14 Richard Stallman <rms@gnu.org>
3883
3884 * bison.simple: *** empty log message ***
3885
38861993-09-14 David J. MacKenzie <djm@gnu.org>
3887
3888 * doc/bison.texinfo: *** empty log message ***
3889
38901993-09-13 Noah Friedman <friedman@gnu.org>
3891
3892 * Makefile.in: *** empty log message ***
3893
38941993-09-10 Richard Stallman <rms@gnu.org>
3895
3896 * src/conflicts.c: *** empty log message ***
3897
3898 * src/system.h: entered into RCS
3899
39001993-09-10 Richard Stallman <rms@gnu.org>
3901
3902 * doc/bison.1: entered into RCS
3903
39041993-09-06 Noah Friedman <friedman@gnu.org>
3905
3906 * src/version.c: entered into RCS
3907
39081993-09-06 Noah Friedman <friedman@gnu.org>
3909
3910 * Makefile.in: *** empty log message ***
3911
39121993-07-30 David J. MacKenzie <djm@gnu.org>
3913
3914 * Makefile.in: *** empty log message ***
3915
39161993-07-24 Richard Stallman <rms@gnu.org>
3917
3918 * src/bison.s1: *** empty log message ***
3919
39201993-07-24 Richard Stallman <rms@gnu.org>
3921
3922 * bison.simple: *** empty log message ***
3923
39241993-07-08 David J. MacKenzie <djm@gnu.org>
3925
3926 * Makefile.in: *** empty log message ***
3927
39281993-07-04 Richard Stallman <rms@gnu.org>
3929
3930 * src/bison.s1: *** empty log message ***
3931
39321993-07-04 Richard Stallman <rms@gnu.org>
3933
3934 * bison.simple: *** empty log message ***
3935
39361993-06-26 David J. MacKenzie <djm@gnu.org>
3937
3938 * src/getargs.c: entered into RCS
3939
39401993-06-26 David J. MacKenzie <djm@gnu.org>
3941
3942 * doc/bison.texinfo: *** empty log message ***
3943
3944 * doc/bison.1: New file.
3945
39461993-06-25 Richard Stallman <rms@gnu.org>
3947
3948 * src/getargs.c: New file.
3949
39501993-06-16 Richard Stallman <rms@gnu.org>
3951
3952 * src/bison.s1: *** empty log message ***
3953
39541993-06-16 Richard Stallman <rms@gnu.org>
3955
3956 * bison.simple: *** empty log message ***
3957
39581993-06-03 Richard Stallman <rms@gnu.org>
3959
3960 * src/bison.s1: New file.
3961
39621993-06-03 Richard Stallman <rms@gnu.org>
3963
3964 * doc/bison.texinfo: *** empty log message ***
3965
39661993-06-03 Richard Stallman <rms@gnu.org>
3967
3968 * bison.simple: New file.
3969
39701993-05-19 Richard Stallman <rms@gnu.org>
3971
3972 * doc/bison.texinfo: New file.
3973
39741993-05-07 Noah Friedman <friedman@gnu.org>
3975
3976 * Makefile.in: *** empty log message ***
3977
39781993-04-28 Noah Friedman <friedman@gnu.org>
3979
3980 * src/reader.c: *** empty log message ***
3981
39821993-04-23 Noah Friedman <friedman@gnu.org>
3983
3984 * src/alloc.h: entered into RCS
3985
39861993-04-20 David J. MacKenzie <djm@gnu.org>
3987
3988 * src/version.c: *** empty log message ***
3989
3990 * src/files.c, src/allocate.c:
3991 entered into RCS
3992
3993 * src/reader.c: *** empty log message ***
3994
3995 * src/lex.c: entered into RCS
3996
3997 * src/conflicts.c: New file.
3998
3999 * src/symtab.c: entered into RCS
4000
4001 * src/alloc.h: New file.
4002
4003 * src/LR0.c: entered into RCS
4004
40051993-04-18 Noah Friedman <friedman@gnu.org>
4006
4007 * src/reader.c: New file.
4008
4009 * src/version.c: *** empty log message ***
4010
40111993-04-18 Noah Friedman <friedman@gnu.org>
4012
4013 * Makefile.in: *** empty log message ***
4014
40151993-04-17 Noah Friedman <friedman@gnu.org>
4016
4017 * Makefile.in: *** empty log message ***
4018
40191993-04-15 Richard Stallman <rms@gnu.org>
4020
4021 * src/main.c, src/files.c:
4022 New file.
4023
40241993-04-15 Noah Friedman <friedman@gnu.org>
4025
4026 * configure.in: entered into RCS
4027
4028 * configure.in: *** empty log message ***
4029
4030 * configure.in: New file.
4031
40321993-04-14 Richard Stallman <rms@gnu.org>
4033
4034 * Makefile.in: New file.
4035
40361993-04-13 Richard Stallman <rms@gnu.org>
4037
4038 * src/version.c: New file.
4039
40401993-03-25 Richard Stallman <rms@gnu.org>
4041
4042 * src/output.c: entered into RCS
4043
40441992-09-25 Richard Stallman <rms@gnu.org>
4045
4046 * configure.bat: entered into RCS
4047
40481992-06-22 Richard Stallman <rms@gnu.org>
4049
4050 * src/vmsgetargs.c: entered into RCS
4051
40521992-06-22 Richard Stallman <rms@gnu.org>
4053
4054 * doc/bison.rnh: entered into RCS
4055
40561992-04-20 David J. MacKenzie <djm@gnu.org>
4057
4058 * README: entered into RCS
4059
40601992-01-22 Richard Stallman <rms@gnu.org>
4061
4062 * src/machine.h: entered into RCS
4063
40641991-12-21 Richard Stallman <rms@gnu.org>
4065
4066 * src/lalr.c, src/closure.c:
4067 entered into RCS
4068
40691991-12-20 Richard Stallman <rms@gnu.org>
4070
4071 * src/state.h: entered into RCS
4072
40731991-12-18 Richard Stallman <rms@gnu.org>
4074
4075 * src/print.c, src/nullable.c, src/derives.c:
4076 entered into RCS
4077
40781991-11-03 David J. MacKenzie <djm@gnu.org>
4079
4080 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4081 entered into RCS
4082
40831988-09-09 Richard Stallman <rms@gnu.org>
4084
4085 * src/bison.hairy: entered into RCS
4086
40871987-12-16 Richard Stallman <rms@gnu.org>
4088
4089 * REFERENCES: entered into RCS