]> git.saurik.com Git - bison.git/blame - ChangeLog
(union yyalloc): Change member names to be the same as the stack names.
[bison.git] / ChangeLog
CommitLineData
c2bea5f9
PE
12001-12-04 Paul Eggert <eggert@twinsun.com>
2
3 * src/bison.simple (YYPOINTER): New macro.
4 (YYSTACK_RELOCATE): Use it to avoid a GCC warning.
5 (yystpcpy): Use prototype if __STDC__ is defined, not just
6 if __cplusplus is defined.
7
2c8a9dfa
AD
82001-11-30 Akim Demaille <akim@epita.fr>
9
10 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
11 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
12 Gettext doesn't compile cleanly, and dies with -Werror.
13 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
14 Include WARNING_CFLAGS here.
15 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
16 before being defined.
17
f4e421e6
AD
182001-11-27 Paul Eggert <eggert@twinsun.com>
19
20 * lib/quotearg.h (quotearg_n, quotearg_n_style):
21 First arg is int, not unsigned.
22 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
23 (SIZE_MAX, UINT_MAX): New macros.
24 (quotearg_n_options): Abort if N is negative.
25 Avoid overflow check on hosts where size_t is 64 bits and int
26 is 32 bits, as overflow is impossible there.
27 Fix off-by-one typo that caused unnecessary reallocation.
28
7093d0f5
AD
292001-11-29 Paul Eggert <eggert@twinsun.com>
30
31 Name space cleanup in generated parser.
32
33 * doc/bison.texinfo (Bison Parser): Discuss system headers
34 and their effect on the user name space.
35
36 * src/bison.simple:
37 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
38 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
39 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
40
41 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
42 on user names when possible.
43
44 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
45 Simplify test for whather <alloca.h> exists.
46
47 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
48
49 (<stdio.h>): Include if YYDEBUG.
50
51 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
52 ! defined (yyoverflow) && ! defined (yymemcpy).
53
54 (yymemcpy, yyparse): Rename local variables as needed so that
55 they all begin with 'yy'.
56
57 (yystrlen, yystpcpy): New functions.
58
59 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
60 All uses changed.
61
62 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
63 instead of relying on string.h functions. Use YYSTACK_ALLOC
64 and YYSTACK_FREE instead of malloc and free.
65
fd51e5ff
AD
662001-11-30 Akim Demaille <akim@epita.fr>
67
68 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
69 before their first uses.
70 (YYBISON, YYPURE): Move to the top of the output.
71
7d13ff5f
AD
722001-11-30 Akim Demaille <akim@epita.fr>
73
74 * tests/reduce.at (Useless Nonterminals): Fix.
75
892a3995
AD
762001-11-30 Akim Demaille <akim@epita.fr>
77
78 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
79 if body instead of `;' to pacify GCC's warnings.
80
68f1e3ed
AD
812001-11-30 Akim Demaille <akim@epita.fr>
82
83 Instead of mapping the LHS of unused rules to -1, keep the LHS
84 valid, but flag the rules as invalid.
85
86 * src/gram.h (rule_t): `useful' is a new member.
87 * src/print.c (print_grammar): Adjust.
88 * src/derives.c (set_derives): Likewise.
89 * src/reader.c (packgram, reduce_output): Likewise.
90 * src/reduce.c (reduce_grammar_tables): Likewise.
91 * tests/reduce.at (Underivable Rules, Useless Rules): New.
92
d2d1b42b
AD
932001-11-30 Akim Demaille <akim@epita.fr>
94
95 * src/reduce.c (reduce_output): Formatting changes.
96 * src/print.c (print_results, print_grammar): Likewise.
97 * tests/regression.at (Rule Line Numbers)
98 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
99
760b53a8
AD
1002001-11-30 Akim Demaille <akim@epita.fr>
101
102 * src/reduce.c (nonterminals_reduce): Instead of throwing away
103 useless nonterminals, move them at the end of the symbol arrays.
104 (reduce_output): Adjust.
105 * tests/reduce.at (Useless Nonterminals): Adjust.
106
00238958
AD
1072001-11-30 Akim Demaille <akim@epita.fr>
108
109 * src/reduce.c: Various comment/formatting changes.
110 (nonterminals_reduce): New, extracted from...
111 (reduce_grammar_tables): here.
112 (reduce_grammar): Call nonterminals_reduce.
113
396452de
PE
1142001-11-29 Paul Eggert <eggert@twinsun.com>
115
116 * src/bison.simple (YYSTACK_REALLOC): Remove.
117 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
118 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
119 New macros.
120 (union yyalloc): New type.
121 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
122 an arbitrary restriction on hosts where size_t is wider than int.
123
124 (yyparse): Don't dump core if alloca or malloc fails; instead, report
125 a parser stack overflow. Allocate just one block of memory for all
126 three stacks, instead of allocating three blocks; this typically is
127 faster and reduces fragmentation.
128
129 Do not limit the number of items in the stack to a value that fits
130 in 'int', as this is an arbitrary limit on hosts with 64-bit
131 size_t and 32-bit int.
132
147e184c
MA
1332001-11-29 Marc Autret <autret_m@epita.fr>
134
135 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
136 of defining YYERROR_VERBOSE.
137 [AT_DATA]: $4 is now out of C declarations in the prologue.
138
426cf563
MA
1392001-11-28 Marc Autret <autret_m@epita.fr>
140
141 * src/reader.c (parse_dquoted_param): New.
142 (parse_skel_decl): Use it.
143 * src/lex.h: Add its prototype.
144 * src/lex.c (literalchar): Become not static.
145
c7925b99
MA
1462001-11-28 Marc Autret <autret_m@epita.fr>
147
148 * src/output.h: And put its extern declaration here.
149 * src/output.c (error_verbose): Define here.
150 (prepare): Echo name modification.
151 * src/getargs.h: Clean its extern declaration.
152 * src/getargs.c (error_verbose_flag): Remove.
153 (getargs): Remove case 'e'.
154 * src/options.c (option_table): 'error-verbose' is now seen as simple
155 percent option.
156 Include output.h.
157
158 * src/reader.c (read_declarations): Remove case tok_include.
159 (parse_include_decl): Remove.
160 * src/lex.h (token_t): Remove tok_include.
161 * src/options.c (option_table): 'include' is now a simple command line
162 option.
163
5b5d1929
MA
1642001-11-28 Marc Autret <autret_m@epita.fr>
165
166 * src/bison.simple: Adjust muscle names.
167 * src/muscle_tab.c (muscle_init): Also rename the muscles.
168 * src/output.c (prepare): s/_/-/ for the muscles names.
169 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
170
8850be4b
MA
1712001-11-28 Marc Autret <autret_m@epita.fr>
172
173 * src/bison.simple: Fix debug.
174 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
175
4a38e613
AD
1762001-11-28 Akim Demaille <akim@epita.fr>
177
178 * src/LR0.c (shifts_new): New.
179 (save_shifts, insert_start_shift, augment_automaton): Use it.
180
4b35e1c1
AD
1812001-11-28 Akim Demaille <akim@epita.fr>
182
183 * src/closure.c (closure): `b' and `ruleno' denote the same value:
184 keep ruleno only.
185
d2b04478
AD
1862001-11-28 Akim Demaille <akim@epita.fr>
187
188 * src/closure.c (closure): Instead of looping over word in array
189 then bits in words, loop over bits in array.
190
2c4c30aa
AD
1912001-11-28 Akim Demaille <akim@epita.fr>
192
193 * src/closure.c (closure): No longer optimize the special case
194 where all the bits of `ruleset[r]' are set to 0, to make the code
195 clearer.
196
576890b7
AD
1972001-11-28 Akim Demaille <akim@epita.fr>
198
199 * src/closure.c (closure): `r' and `c' are new variables, used to
200 de-obfuscate accesses to RULESET and CORE.
201
cb487d7d
AD
2022001-11-28 Akim Demaille <akim@epita.fr>
203
204 * src/reduce.c (reduce_print): Use ngettext.
205 (dump_grammar): Improve the trace accuracy.
206
6013d43f
AD
2072001-11-28 Akim Demaille <akim@epita.fr>
208
209 * src/reduce.c (dump_grammar): Don't translate trace messages.
210
cb4956ee
AD
2112001-11-28 Akim Demaille <akim@epita.fr>
212
213 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
214 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
215 as all tags are free'ed afterwards.
216 From Enrico Scholz.
217
648185ab
PE
2182001-11-27 Paul Eggert <eggert@twinsun.com>
219
220 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
221 use alloca when we didn't want to, and vice versa.
222
68254a03
MA
2232001-11-27 Marc Autret <autret_m@epita.fr>
224
9113b58f
AD
225 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
226 initialization.
68254a03
MA
227 * src/output.c (prepare): Remove its update.
228
04d843a2
MA
2292001-11-27 Marc Autret <autret_m@epita.fr>
230
231 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
232 Use %error-verbose.
233
d2079671 2342001-11-27 Marc Autret <autret_m@epita.fr>
eeeb962b
MA
235
236 * src/bison.simple: Remove YYERROR_VERBOSE using.
237 Use %%error_verbose.
238 (yyparse): Likewise.
239 * src/output.c (prepare): Give its final value.
240 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
241 * src/getargs.h: Add its extern declaration.
242 * src/getargs.c (error_verbose_flag): New int.
243 (getargs): Update to catch new case.
244 * src/options.c (option_table): 'error-verbose' is a new option.
245 (shortopts): Update.
246
e0327bc8
AD
2472001-11-27 Akim Demaille <akim@epita.fr>
248
249 * src/system.h: Use intl/libgettext.h.
250 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
251
000f1a3c
AD
2522001-11-27 Akim Demaille <akim@epita.fr>
253
254 * tests/torture.at (Exploding the Stack Size with Malloc):
255 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
256
26cfe0be
AD
2572001-11-27 Akim Demaille <akim@epita.fr>
258
259 * src/files.c: Include error.h.
260 Reported by Hans Aberg.
261
f6bd5427
MA
2622001-11-26 Marc Autret <autret_m@epita.fr>
263
d2079671 264 * src/reader.c (parse_include_decl): New, not yet implemented.
f6bd5427
MA
265 (read_declarations): Add case tok_include.
266 * src/getargs.h (include): Add its extern definition.
267 * src/getargs.c (include): New const char *.
268 (getargs): Add case '-I'.
269 * src/options.c (option_table): Add include as command line and
270 percent option.
271 * src/lex.h (token_t): Add tok_include.
272
2ca209c1
AD
2732001-11-26 Akim Demaille <akim@epita.fr>
274
275 * src/reader.c (readgram): Make sure rules for mid-rule actions
276 have a lineno equal to that of their host rule.
277 Reported by Hans Aberg.
278 * tests/regression.at (Rule Line Numbers): New.
279
0e41b407
AD
2802001-11-26 Akim Demaille <akim@epita.fr>
281
282 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
283 size_ts.
284
2852001-11-26 Akim Demaille <akim@epita.fr>
286
287 * src/complain.c, src/complain.h (error): Remove, provided by
288 lib/error.[ch].
289
e0c40012
AD
2902001-11-26 Akim Demaille <akim@epita.fr>
291
292 * src/reader.c (read_declarations): Don't abort on tok_illegal,
293 issue an error message.
294 * tests/regression.at (Invalid %directive): New.
295 Reported by Hans Aberg.
296
5e147124
AD
2972001-11-26 Akim Demaille <akim@epita.fr>
298
299 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
300 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
301
a034c8b8
AD
3022001-11-26 Akim Demaille <akim@epita.fr>
303
304 * src/conflicts.c (conflicts_print): Don't complain at all when
305 there are no reduce/reduce conflicts, and as many shift/reduce
306 conflicts as expected.
307 * tests/regression.at (%expect right): Adjust.
308
c64a20f3
AD
3092001-11-23 Akim Demaille <akim@epita.fr>
310
311 * lib/alloca.c: Update, from fileutils.
312
5b0d29bb
AD
3132001-11-23 Akim Demaille <akim@epita.fr>
314
315 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
316
722c4bfe
AD
3172001-11-23 Akim Demaille <akim@epita.fr>
318
319 * src/system.h: Include alloca.h.
320 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
321
6255b435
AD
3222001-11-23 Akim Demaille <akim@epita.fr>
323
324 * src/print_graph.c (print_actions): Remove `rule', unused.
325 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
326 pacify GCC's signed < unsigned warnings.
327 * src/closure.c (itemsetsize): Likewise.
328 * src/reader.c (symbol_list_new): Static.
329
b29b2ed5
AD
3302001-11-23 Akim Demaille <akim@epita.fr>
331
332 Attaching lineno to buckets is stupid, since only one copy of each
333 symbol is kept, only the line of the first occurrence is kept too.
334
335 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
336 * src/reader.c (rline_allocated): Remove, unused.
337 (symbol_list): Have a `line' member.
338 (symbol_list_new): New.
339 (readgram): Use it.
340 * src/print.c (print_grammar): Output the rule line numbers.
341 * tests/regression.at (Solved SR Conflicts)
342 (Unresolved SR Conflicts): Adjust.
343 Reported by Hans Aberg.
344
a81b1d4a
MA
3452001-11-22 Marc Autret <autret_m@epita.fr>
346
347 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
348
c1ecb3c1
MA
3492001-11-22 Marc Autret <autret_m@epita.fr>
350
351 * src/muscle_tab.c (muscle_init): Remove initialization of
352 skeleton muscle.
353 * src/output.c (output_master_parser): Do it here.
354
fbe01355
AD
3552001-11-20 Akim Demaille <akim@epita.fr>
356
357 * po/sv.po: New.
358 * configure.in (ALL_LINGUAS): Adjust.
359 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
360 longer contains strings to translate.
361
81e895c0
AD
3622001-11-19 Akim Demaille <akim@epita.fr>
363
364 * src/conflicts.c (conflicts_print): Add a missing \n.
365
6bb1878b
AD
3662001-11-19 Akim Demaille <akim@epita.fr>
367
368 * src/nullable.c (nullable_print): New.
369 (set_nullable): Call it when tracing.
370 Better locality of variables.
371
d9ec2d07
AD
3722001-11-19 Akim Demaille <akim@epita.fr>
373
374 * src/print.c (print_actions): Better locality of variables.
375
720e5c1b
AD
3762001-11-19 Akim Demaille <akim@epita.fr>
377
378 * src/derives.c (print_derives): Fix and enrich.
379 * src/closure.c (print_fderives): Likewise.
380
fb908786
AD
3812001-11-19 Akim Demaille <akim@epita.fr>
382
383 * src/closure.c (itemsetend): Remove, replaced with...
384 (itemsetsize): new.
385
125ecb56
AD
3862001-11-19 Akim Demaille <akim@epita.fr>
387
388 * src/LR0.c (kernel_end): Remove, replaced with...
389 (kernel_size): new.
390
d8cf039f
AD
3912001-11-19 Akim Demaille <akim@epita.fr>
392
393 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
394 to clarify.
395
7bec0760
AD
3962001-11-19 Akim Demaille <akim@epita.fr>
397
398 * src/closure.c (closure): Use arrays instead of pointers to clarify.
399
c87d4863
AD
4002001-11-19 Akim Demaille <akim@epita.fr>
401
402 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
403 trace messages.
404 * src/LR0.c: Likewise.
405 (allocate_itemsets): Use arrays instead of pointers to clarify.
406
9bfe901c
AD
4072001-11-19 Akim Demaille <akim@epita.fr>
408
409 * src/getargs.c (statistics_flag): Replace with...
410 (trace_flag): New.
411 (longopts): Accept --trace instead of --statistics.
412 * src/getargs.h, src/options.c: Adjust.
413 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
414 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
415
97db7bd4
AD
4162001-11-19 Akim Demaille <akim@epita.fr>
417
cc72668c 418 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
97db7bd4
AD
419 pointers to clarify the code.
420 (save_reductions, save_shifts): Factor common parts of alternatives.
421
2c5f66ed
AD
4222001-11-19 Akim Demaille <akim@epita.fr>
423
424 * src/LR0.c (new_state, get_state): Complete TRACE code.
425 * src/closure.c: Include `reader.h' to get `tags', needed by the
426 trace code.
427 Rename the conditional DEBUG as TRACE.
428 Output consistently TRACEs to stderr, not stdout.
429 * src/derives.c: Likewise.
430 * src/reduce.c: (inaccessable_symbols): Using if is better style
431 than goto.
432 Use `#if TRACE' instead of `#if 0' for tracing code.
433
300f275f
AD
4342001-11-19 Akim Demaille <akim@epita.fr>
435
436 * src/system.h (LIST_FREE, shortcpy): New.
437 * src/LR0.c: Use them.
438 * src/output.c (free_itemsets, free_reductions, free_shifts):
439 Remove, replaced by LIST_FREE.
440
f59c437a
AD
4412001-11-19 Akim Demaille <akim@epita.fr>
442
443 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
444 (REDUCTIONS_ALLOC): New.
445 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
446 allocation.
447
6986fd9e
AD
4482001-11-19 Akim Demaille <akim@epita.fr>
449
450 * src/LR0.c (new_state): Complete trace code.
451 * src/nullable.c (set_nullable): Don't translate traces.
452
4bc30f78
AD
4532001-11-19 Akim Demaille <akim@epita.fr>
454
455 * src/print_graph.c (print_core): Better locality of variables.
456 * src/print.c (print_core): Likewise.
457
08a946e0
AD
4582001-11-19 Akim Demaille <akim@epita.fr>
459
460 * src/vcg.c: You do the output, so you are responsible of the
461 handling of VCG syntax, in particular: use quotearg.
462 * src/print_graph.c: Don't.
463 (print_actions): Don't output the actions as part of the nodes,
464 since that's the job of the edges.
465 (print_state): Don't output by hand: fill the node description,
9bfe901c 466 and ask for its output.
08a946e0 467
f0473484
AD
4682001-11-19 Akim Demaille <akim@epita.fr>
469
cc72668c
AD
470 * src/bison.simple (yyparse): When verbosely reporting an error,
471 no longer put additional quotes around token names.
f0473484
AD
472 * tests/calc.at: Adjust.
473
e41dc700
AD
4742001-11-19 Akim Demaille <akim@epita.fr>
475
476 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
477 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
478 * src/output.c: Adjust.
479
652a871c
AD
4802001-11-19 Akim Demaille <akim@epita.fr>
481
482 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
483 (rule_t): this.
484 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
485
b2ed6e58
AD
4862001-11-19 Akim Demaille <akim@epita.fr>
487
488 * src/gram.h (rule_t): New.
489 (rule_table): New.
490 (rrhs, rlhs): Remove, part of state_t.
491 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
492 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
493 * src/reader.c, src/reduce.c: Adjust.
494
edad7067
AD
4952001-11-19 Akim Demaille <akim@epita.fr>
496
497 * src/reader.c (symbols_output): New, extracted from...
498 (packsymbols): Here.
499 (reader): Call it.
500
3feec034
AD
5012001-11-19 Akim Demaille <akim@epita.fr>
502
503 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
504 (maxrhs): this new function.
505
ddcd5fdf
AD
5062001-11-19 Akim Demaille <akim@epita.fr>
507
cc72668c 508 * src/lalr.c (F): New macro to access the variable F.
ddcd5fdf
AD
509 Adjust.
510
bb527fc2
AD
5112001-11-19 Akim Demaille <akim@epita.fr>
512
cc72668c 513 * src/lalr.h (LA): New macro to access the variable LA.
bb527fc2
AD
514 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
515 * src/lalr.c: Adjust.
516
a845a697
AD
5172001-11-19 Akim Demaille <akim@epita.fr>
518
519 * src/lalr.c (initialize_LA): Only initialize LA. Let...
520 (set_state_table): handle the `lookaheads' members.
521
f004bf6a
AD
5222001-11-19 Akim Demaille <akim@epita.fr>
523
cc72668c
AD
524 * src/lalr.h (lookaheads): Removed array, whose contents is now
525 a member of...
f004bf6a
AD
526 (state_t): this structure.
527 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
528 Adjust.
529
de326cc0
AD
5302001-11-19 Akim Demaille <akim@epita.fr>
531
cc72668c
AD
532 * src/lalr.h (consistent): Removed array, whose contents is now
533 a member of...
de326cc0
AD
534 (state_t): this structure.
535 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
536 Adjust.
537
90b4416b
AD
5382001-11-19 Akim Demaille <akim@epita.fr>
539
cc72668c
AD
540 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
541 contents are now members of...
90b4416b
AD
542 (state_t): this structure.
543 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
544 Adjust.
545
9703cc49
AD
5462001-11-19 Akim Demaille <akim@epita.fr>
547
548 * src/lalr.h (state_t): New.
549 (state_table): Be a state_t * instead of a core **.
550 (accessing_symbol): Remove, part of state_t.
551 * src/lalr.c: Adjust.
552 (set_accessing_symbol): Merge into...
553 (set_state_table): this.
554 * src/print_graph.c, src/conflicts.c: Adjust.
555
d803322e
AD
5562001-11-14 Akim Demaille <akim@epita.fr>
557
558 * tests/calc.at, tests/output.at, tests/regression.at,
559 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
560 now the tests are run in private dirs, therefore AC_CLEANUP and
561 family can be simplified to 0-ary.
562 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
563 use abs. path to find config.h.
564 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
565 stderr, there can be way too much random noise.
566 Instead pass -Werror to GCC and rely on the exit status.
567 Reported by Wolfram Wagner.
568
3d76b07d
AD
5692001-11-14 Akim Demaille <akim@epita.fr>
570
571 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
572 defined only if yyoverflow is defined, to avoid `warning: unused
573 variable `yyvs1''.
574 Reported by The Test Suite.
575
09b503c8
AD
5762001-11-14 Akim Demaille <akim@epita.fr>
577
578 * src/print.c: Include reduce.h.
579 Reported by Hans Aberg.
580
5812001-11-14 Akim Demaille <akim@epita.fr>
582
583 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
584 Revert a previous patch: these are really const.
585 * src/conflicts.c (conflict_report): Additional useless pair of
586 braces to pacify GCC's warnings for `if () if () {} else {}'.
587 * src/lex.c (parse_percent_token): Replace equal_offset with
588 arg_offset.
589 arg is const.
590 Be sure to strdup `arg' when used, since there is no reason for
591 token_buffer not to change.
592
0f37a994
AD
5932001-11-14 Akim Demaille <akim@epita.fr>
594
595 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
596 definition.
597 * src/main.c (main): Use them.
598 Suggested by Hans Aberg.
599
d39d93b8
AD
6002001-11-12 Akim Demaille <akim@epita.fr>
601
602 * src/system.h (ngettext): Now that we use ngettext, be sure to
603 provide a default definition when NLS are not used.
604
9edcd895
AD
6052001-11-12 Akim Demaille <akim@epita.fr>
606
607 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
608 Use @kbd to denote user input.
609 (Language and Grammar): ANSIfy the example.
610 Adjust its layout for info/notinfo.
611 (Location Tracking Calc): Output error messages to stderr.
612 Output locations in a more GNUtically correct way.
613 Fix a couple of Englishos.
614 Adjust @group/@end group pairs.
615
7da99ede
AD
6162001-11-12 Akim Demaille <akim@epita.fr>
617
618 %expext was not functioning at all.
619
620 * src/conflicts.c (expected_conflicts): Set to -1.
621 (conflict_report): Use ngettext.
622 (conflicts_print): Check %expect and make its violation an error.
623 * doc/bison.texinfo (Expect Decl): Adjust.
624 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
625 * tests/regression.at (%expect not enough, %expect right)
626 (%expect too much): New.
627
ba9dda1a
AD
6282001-11-12 Akim Demaille <akim@epita.fr>
629
630 * tests/regression.at (Conflicts): Rename as...
631 (Unresolved SR Conflicts): this.
632 (Solved SR Conflicts): New.
633
337c5bd1
AD
6342001-11-12 Akim Demaille <akim@epita.fr>
635
636 * src/reduce.c (print_results): Rename as...
637 (reduce_output): This.
638 Output to OUT, passed as argument, instead of output_obstack.
639 (dump_grammar): Likewise.
640 (reduce_free): New.
641 Also free V1.
642 (reduce_grammar): No longer call reduce_output, since...
643 * src/print.c (print_results): do it.
644 * src/main.c (main): Call reduce_free;
645
c73a41af
AD
6462001-11-12 Akim Demaille <akim@epita.fr>
647
648 * src/conflicts.c (print_reductions): Accept OUT as argument.
649 Output to it, not to output_obstack.
650 * src/print.c (print_actions): Adjust.
651
0df87bb6
AD
6522001-11-12 Akim Demaille <akim@epita.fr>
653
654 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
655 the result instead of using...
656 (src_total, rrc_total, src_count, rrc_count): Remove.
657 (any_conflicts): Remove.
658 (print_conflicts): Split into...
659 (conflicts_print, conflicts_output): New.
660 * src/conflicts.h: Adjust.
661 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
0f37a994 662 * src/print.c (print_grammar): Issue `\n' between two rules.
0df87bb6
AD
663 * tests/regression.at (Conflicts): New.
664 Reported by Tom Lane.
665
e4d3d4de
AD
6662001-11-12 Akim Demaille <akim@epita.fr>
667
668 * tests/regression.at (Invalid input): Remove, duplicate with
669 ``Invalid input: 1''.
670
6d7d248e
AD
6712001-11-12 Akim Demaille <akim@epita.fr>
672
673 * tests/torture.at (AT_DATA_STACK_TORTURE)
674 (Exploding the Stack Size with Alloca)
675 (Exploding the Stack Size with Malloc): New.
676
e9e4c321
AD
6772001-11-12 Akim Demaille <akim@epita.fr>
678
679 * src/bison.simple (YYSTACK_REALLOC): New.
680 (yyparse) [!yyoverflow]: Use it and free the old stack.
0f37a994 681 Reported by Per Allansson.
e9e4c321 682
5f7e0832
AD
6832001-11-12 Pascal Bart <pascal.bart@epita.fr>
684
685 * src/bison.simple: Define type yystype instead of YYSTYPE, and
686 define CPP macro, which substitute YYSTYPE by yystype.
687 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
688 with yyltype/YYLTYPE. This allows inclusion of the generated
689 header within the parser if the compiler, such as GGC, accepts
690 multiple equivalent #defines.
691 From Akim.
692
e3f1699f
AD
6932001-11-05 Akim Demaille <akim@epita.fr>
694
695 * src/reader.c (symbols_output): New, extracted from...
696 (packsymbols): here.
697 (reader): Adjust.
698
65be0866
AD
6992001-11-05 Akim Demaille <akim@epita.fr>
700
701 * src/lex.c (parse_percent_token): s/quotearg/quote/.
702
e4d910bf
AD
7032001-11-05 Akim Demaille <akim@epita.fr>
704
705 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
706 pattern.
707
951366c1
AD
7082001-11-05 Akim Demaille <akim@epita.fr>
709
710 * src/options.h (struct option_table_struct): set_flags is void*.
711 * src/options.c (longopts): Support `--output' and `%output'.
712 (usage): Adjust.
713 * src/lex.h (tok_setopt): Remove, replaced with...
714 (tok_intopt, tok_stropt): these new guys.
715 * src/lex.c (getopt.h): Not needed.
716 (token_buffer, unlexed_token_buffer): Not const.
717 (percent_table): Promote `-' over `_' in directive names.
718 Active `%name-prefix', `file-prefix', and `output'.
719 (parse_percent_token): Accept possible arguments to directives.
720 Promote `-' over `_' in directive names.
721
d8988b2f
AD
7222001-11-04 Akim Demaille <akim@epita.fr>
723
724 * doc/bison.texinfo (Decl Summary): Split the list into
725 `directives for grammars' and `directives for bison'.
726 Sort'em.
727 Add description of `%name-prefix', `file-prefix', and `output'.
728 Promote `-' over `_' in directive names.
729 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
730 Simplify the description of `--name-prefix'.
731 Promote `-' over `_' in directive names.
732 Promote `--output' over `--output-file'.
733 Fix the description of `--defines'.
734 * tests/output.at: Exercise %file-prefix and %output.
735
6468d18e
AD
7362001-11-02 Akim Demaille <akim@epita.fr>
737
738 * doc/refcard.tex: Update.
739
6b7e85b9
AD
7402001-11-02 Akim Demaille <akim@epita.fr>
741
742 * src/symtab.h (SUNDEF): New.
743 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
744 stand for `uninitialized', instead of 0.
745 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
746 * src/lex.c (lex): Adjust.
747
748 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
749 Number it 0.
750 Let yylex return it instead of a plain 0.
751 Reported by Dick Streefland.
752
cd5aafcf
AD
7532001-11-02 Akim Demaille <akim@epita.fr>
754
755 * tests/regression.at (Mixing %token styles): New test.
756
037ca2f1
AD
7572001-11-02 Akim Demaille <akim@epita.fr>
758
759 * src/reader.c (parse_thong_decl): Formatting changes.
760 (token_translations_init): New, extracted from...
761 (packsymbols): Here.
762 Adjust.
763
270a173c
AD
7642001-11-01 Akim Demaille <akim@epita.fr>
765
766 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
767 Check that `9foo.y' produces correct cpp guards.
768 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
769 guards.
770 Reported by Wwp.
771
561f9a30
AD
7722001-11-01 Akim Demaille <akim@epita.fr>
773
774 * tests/regression.at (Invalid input: 2): New.
775 * src/lex.c (unlexed_token_buffer): New.
776 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
777 too.
778 Reported by Wwp.
779
f987e9d2
AD
7802001-11-01 Akim Demaille <akim@epita.fr>
781
782 * tests/calc.at: Catch up with 1.30.
783 * configure.in: Bump to 1.49a.
784 Adjust to newer Autotest.
785
0846f581
PB
7862001-10-19 Pascal Bart <pascal.bart@epita.fr>
787
788 * src/conflicts.c: Move global variables rrc_total and src_total ...
789 (print_conflicts): here.
790 * src/output.c (output): Free global variable user_toknums.
791 * src/lex.c (token_obstack): Become static.
792
3c1a79b3
AD
7932001-10-18 Akim Demaille <akim@epita.fr>
794
795 * tests/atlocal.in (GCC): Add.
796 * tests/calc.at: s/m4_match/m4_bmatch/.
797 s/m4_patsubst/m4_bpatsubst/.
798 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
799 * configure.in: AC_SUBST(GCC).
800
5d52e7d0
MA
8012001-10-14 Marc Autret <autret_m@epita.fr>
802
803 * src/options.c (create_long_option_table): Fix.
804
631aa1d3
AD
8052001-10-10 Akim Demaille <akim@epita.fr>
806
807 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
808
f6ec6d13
AD
8092001-10-04 Akim Demaille <akim@epita.fr>
810
811 * src/reader.c (parse_union_decl): Push the caracters in
812 union_obstack, not attrs_obstack.
813
342b8b6e
AD
8142001-10-04 Akim Demaille <akim@epita.fr>
815
816 Merge in the branch 1.29.
817
818 * src/reader.c (packsymbols): Use a temporary obstack for
819 `%%tokendef', since output_stack is already used elsewhere.
820
821 2001-10-02 Akim Demaille <akim@epita.fr>
822
823 Bump 1.29d.
824
825 2001-10-02 Akim Demaille <akim@epita.fr>
826
827 Version 1.29c.
828
829 2001-10-02 Akim Demaille <akim@epita.fr>
830
831 * tests/regression.at (Invalid CPP headers): New.
832 From Alexander Belopolsky.
833 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
834
835 2001-10-02 Akim Demaille <akim@epita.fr>
836
837 * tests/regression.at (Invalid input): New.
838 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
839 Reported by Shura.
840
841 2001-10-02 Akim Demaille <akim@epita.fr>
842
843 * tests/calc.at: Now that --debug works, the tests must be adjusted.
844
845 2001-10-02 Akim Demaille <akim@epita.fr>
846
847 * src/output.c (output_parser): Assert `skeleton'.
848 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
849 systems.
850 From Shura.
851
852 2001-10-01 Marc Autret <autret_m@epita.fr>
853
854 * src/lex.h: Echo modifications.
855 * src/lex.c (unlex): Parameter is now token_t.
856 From Hans Aberg.
857
858 2001-10-01 Marc Autret <autret_m@epita.fr>
859
860 * src/main.c: Include lex.h.
861 From Hans Aberg.
862
863 2001-09-29 Akim Demaille <akim@epita.fr>
864
865 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
866
867 2001-09-28 Akim Demaille <akim@epita.fr>
868
869 * tests/testsuite.at: Update to newer Autotest.
870 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
871
872 2001-09-27 Akim Demaille <akim@epita.fr>
873
874 Position independent wrapper.
875
876 * tests/bison: Remove.
877 * tests/bison.in: New.
878 * configure.in: Adjust.
879
880 2001-09-27 Paul Eggert <eggert@twinsun.com>
881
882 Port quotearg fixes from tar 1.13.24.
883
884 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
885 tm to be declared.
886 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
887 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
888
889 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
890 * m4/mbrtowc.m4: New file.
891 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
892 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
893
894 2001-09-27 Akim Demaille <akim@epita.fr>
895
896 Bump to 1.29c.
897
898 2001-09-27 Akim Demaille <akim@epita.fr>
899
900 Version 1.29b.
901
902 2001-09-25 Akim Demaille <akim@epita.fr>
903
904 * src/system.h: Include `xalloc.h'.
905 Remove it from the C files.
906 * src/files.c (output_files): Free the obstacks.
907 * src/lex.c (init_lex): Rename as...
908 (lex_init): this.
909 (lex_free): New.
910 * src/main.c (main): Use it.
911
912 2001-09-24 Marc Autret <autret_m@epita.fr>
913
914 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
915 to output informations in fout (FILE*).
916 (open_graph, close_graph): Likewise.
917 (output_graph, output_edge, output_node): Likewise.
918 * src/vcg.h: Update function prototypes.
919 * src/print_graph.c (print_graph): Open output graph file.
920 (print_actions): Adjust.
921 * src/files.h: Remove extern declaration.
922 * src/files.c: Remove graph_obstack declaration.
923 (open_files): Remove graph_obstack initialization.
924 (output_files): Remove graph_obstack saving.
925
926 2001-09-24 Marc Autret <autret_m@epita.fr>
927
928 * src/files.c (compute_output_file_names): Fix.
929
930 2001-09-24 Marc Autret <autret_m@epita.fr>,
931 Akim Demaille <akim@epita.fr>
932
933 * src/reader.c (reader): Remove call to free_symtab ().
934 * src/main.c (main): Call it here.
935 Include symtab.h.
936 * src/conflicts.c (initialize_conflicts): Rename as...
937 (solve_conflicts): this.
938 * src/print.c (print_core, print_actions, print_state)
939 (print_grammar): Dump to a file instead a `output_obstack'.
940 (print_results): Dump `output_obstack', and then proceed with the
941 FILE *.
942 * src/files.c (compute_output_file_names, close_files): New.
943 (output_files): Adjust.
944 * src/main.c (main): Adjust.
945
946 2001-09-23 Marc Autret <autret_m@epita.fr>
947
948 * src/files.c (compute_header_macro): Computes header macro name
949 from spec_defines_file when given.
950
951 2001-09-23 Marc Autret <autret_m@epita.fr>
952
953 * src/files.c (output_files): Add default extensions.
954
955 2001-09-22 Akim Demaille <akim@epita.fr>
956
957 * src/conflicts.c (finalize_conflicts): Rename as...
958 (free_conflicts): this.
959
960 2001-09-22 Akim Demaille <akim@epita.fr>
961
962 * src/gram.c (gram_free): Rename back as...
963 (dummy): this.
964 (output_token_translations): Free `token_translations'.
965 * src/symtab.c (free_symtab): Free the tag field.
966
967 2001-09-22 Akim Demaille <akim@epita.fr>
968
969 Remove `translations' as it is always set to true.
970
971 * src/gram.h: Adjust.
972 * src/reader.c (packsymbols, parse_token_decl): Adjust
973 * src/print.c (print_grammar): Adjust.
974 * src/output.c (output_token_translations): Adjust.
975 * src/lex.c (lex): Adjust.
976 * src/gram.c: Be sure the set pointers to NULL.
977 (dummy): Rename as...
978 (gram_free): this.
979
980 2001-09-22 Akim Demaille <akim@epita.fr>
981
982 * configure.in: Invoke AM_LIB_DMALLOC.
983 * src/system.h: Use dmalloc.
984 * src/LR0.c: Be sure to have pointers initialized to NULL.
985 (allocate_itemsets): Allocate kernel_items only if needed.
986
987 2001-09-22 Akim Demaille <akim@epita.fr>
988
989 * configure.in: Bump to 1.29b.
990 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
991 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
992 need xmalloc.c in calc.y.
993 From Pascal Bart.
994
995 2001-09-21 Akim Demaille <akim@epita.fr>
996
997 Version 1.29a.
998 * Makefile.maint, config/config.guess, config/config.sub,
999 * config/missing: Update from masters.
1000 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1001 upon package.m4.
1002 * configure.in (ALL_LINGUAS): Add `tr'.
1003
1004 2001-09-21 Akim Demaille <akim@epita.fr>
1005
1006 * tests/Makefile.am (package.m4): Move to...
1007 ($(srcdir)/$(TESTSUITE)): here.
1008
1009 2001-09-20 Akim Demaille <akim@epita.fr>
1010
1011 * src/complain.c: No longer try to be standalone: use system.h.
1012 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1013 * src/complain.h: Likewise.
1014 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1015 Remove the unused variable `n'.
1016 From Albert Chin-A-Young.
1017
1018 2001-09-18 Marc Autret <autret_m@epita.fr>
1019
1020 * doc/bison.1: Update.
1021 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1022 descriptions.
1023 (Option Cross Key): Update.
1024 Add --graph.
1025
1026 2001-09-18 Marc Autret <autret_m@epita.fr>
1027
1028 * tests/regression.at: New test (comment in %union).
1029
1030 2001-09-18 Marc Autret <autret_m@epita.fr>
1031
1032 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1033 do that.
1034 Reported by Keith Browne.
1035
1036 2001-09-18 Marc Autret <autret_m@epita.fr>
1037
1038 * tests/output.at: Add tests for --defines and --graph.
1039
1040 2001-09-18 Marc Autret <autret_m@epita.fr>
1041
1042 * tests/output.at: Removes tests of %{header,src}_extension features.
1043
1044 2001-09-18 Akim Demaille <akim@epita.fr>
1045
1046 * tests/Makefile.am (package.m4): New.
1047 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1048 (_AT_CHECK_CALC_ERROR): Likewise.
1049 Factor the `, ' part of verbose error messages.
1050
1051 2001-09-18 Marc Autret <autret_m@epita.fr>
1052
1053 * src/getargs.c (longopts): Declare --defines and --graph as options
1054 with optional arguments.
1055 * src/files.h: Add extern declarations.
1056 * src/files.c (spec_graph_file, spec_defines_file): New.
1057 (output_files): Update.
1058 Remove CPP-outed code.
1059
1060 2001-09-18 Marc Autret <autret_m@epita.fr>
1061
1062 Turn off %{source,header}_extension feature.
1063
1064 * src/files.c (compute_exts_from_gf): Update.
1065 (compute_exts_from_src): Update.
1066 (output_files): CPP-out useless code.
1067 * src/files.h: Remove {header,source}_extension extern declarations.
1068 * src/reader.c (parse_dquoted_param): CPP-out.
1069 (parse_header_extension_decl): Remove.
1070 (parse_source_extension_decl): Remove.
1071 (read_declarations): Remove cases tok_{hdrext,srcext}.
1072 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1073 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1074
1075 2001-09-10 Akim Demaille <akim@epita.fr>
1076
1077 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1078 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1079 (AT_CHECK_OUTPUT): this.
1080 Merely check ls' exit status, its output is useless.
1081
1082 2001-09-10 Akim Demaille <akim@epita.fr>
1083
1084 * tests/calc.at: Use m4_match.
1085 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1086
1087 2001-09-10 Marc Autret <autret_m@epita.fr>,
1088 Akim Demaille <akim@epita.fr>
1089
1090 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1091 enum color_e.
1092 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1093 to `normal'.
1094 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1095 * src/lex.h: Adjust prototype.
1096 (token_t): Add `tok_undef'.
1097 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1098 (parse_percent_token): Now returns token_t.
1099 Add default statement in switch.
1100 (lex): Separate `c' as an input variable, from the token_t result
1101 part.
1102 (unlexed): Is a token_t.
1103
1104 2001-09-10 Akim Demaille <akim@epita.fr>
1105
1106 * configure.in: Bump to 1.29a.
1107
1108 2001-09-07 Akim Demaille <akim@epita.fr>
1109
1110 Version 1.29.
1111
1112 2001-08-30 Akim Demaille <akim@epita.fr>
1113
1114 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1115 * m4/atconfig.m4: Remove.
1116 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1117 * tests/bison: New.
1118 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1119 m4_if, m4_patsubst, and m4_regexp.
1120 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1121 `input' file instead of echo.
1122
1123 2001-08-29 Akim Demaille <akim@epita.fr>
1124
1125 Bump to 1.28e.
1126
1127 2001-08-29 Akim Demaille <akim@epita.fr>
1128
1129 Version 1.28d.
1130
1131 2001-08-29 Paul Eggert <eggert@twinsun.com>
1132
1133 * src/bison.simple (yyparse): Don't take the address of an
1134 item before the start of an array, as that doesn't conform to
1135 the C Standard.
1136
1137 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1138
1139 * doc/bison.texinfo (Location Tracking Calc): New node.
1140
1141 2001-08-29 Paul Eggert <eggert@twinsun.com>
1142
1143 * src/output.c (output): Do not define const, as this now
1144 causes more problems than it cures.
1145
1146 2001-08-29 Akim Demaille <akim@epita.fr>
1147
1148 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1149 the nodes.
1150 Be sure to tag the `detailmenu'.
1151
1152 2001-08-29 Akim Demaille <akim@epita.fr>
1153
1154 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1155 download in a tmp dir.
1156
1157 2001-08-28 Marc Autret <autret_m@epita.fr>
1158
1159 * config/depcomp: New file.
1160
1161 2001-08-28 Marc Autret <autret_m@epita.fr>
1162
1163 * doc/bison.1 (mandoc): Adjust.
1164 From Juan Manuel Guerrero.
1165
1166 2001-08-28 Marc Autret <autret_m@epita.fr>
1167
1168 * src/print_graph.c (print_state): Fix.
1169
1170 2001-08-27 Marc Autret <autret_m@epita.fr>
1171
1172 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1173 char * members.
1174 Echo modifications to the functions prototypes.
1175 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1176
1177 2001-08-27 Marc Autret <autret_m@epita.fr>
1178
1179 * src/vcg.c: Include `xalloc.h'.
1180 (add_colorentry): New.
1181 (add_classname): New.
1182 (add_infoname): New.
1183 * src/vcg.h: Add new prototypes.
1184
1185 2001-08-27 Akim Demaille <akim@epita.fr>
1186
1187 * Makefile.maint: Sync. again with CVS Autoconf.
1188
1189 2001-08-27 Akim Demaille <akim@epita.fr>
1190
1191 * Makefile.maint: Formatting changes.
1192 (po-update, cvs-update, update): New targets.
1193 (AMTAR): Remove.
1194
1195 2001-08-27 Akim Demaille <akim@epita.fr>
1196
1197 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1198 * Makefile.maint: Sync. with CVS Autoconf.
1199
1200 2001-08-27 Marc Autret <autret_m@epita.fr>
1201
1202 * src/vcg.h (struct infoname_s): New.
1203 (struct colorentry_s): New.
1204 (graph_s): New fields {vertical,horizontal}_order in structure.
1205 Add `infoname' field.
1206 Add `colorentry' field;
1207 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1208 (G_HORIZONTAL_ORDER): New.
1209 (G_INFONAME): New.
1210 (G_COLORENTRY): New.
1211 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1212 Add output of `infoname'.
1213 Add output of `colorentry'.
1214
1215 2001-08-27 Marc Autret <autret_m@epita.fr>
1216
1217 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1218 This one shadowed a global parameter.
1219
1220 2001-08-24 Marc Autret <autret_m@epita.fr>
1221
1222 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1223 instead of `unsigned'.
1224 (print_state): Do not call obstack_object_size () in obstack_grow ()
1225 to avoid macro variables shadowing.
1226
1227 2001-08-23 Marc Autret <autret_m@epita.fr>
1228
1229 * src/lex.c (percent_table): Typo: s/naem/name/.
1230 Add graph option.
1231 Normalize new options declarations.
1232
1233 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1234
1235 * tests/suite.at: Exercise %header_extension and %source_extension.
1236
1237 2001-08-16 Marc Autret <autret_m@epita.fr>
1238
1239 * src/reader.c (parse_dquoted_param): New.
1240 (parse_header_extension_decl): Use it.
1241 (parse_source_extension_decl): Likewise.
1242
1243 2001-08-16 Marc Autret <autret_m@epita.fr>
1244
1245 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1246 (get_xxxx_str): Use assert () instead of complain ().
1247 Remove return invokations in default cases.
1248 (get_decision_str): Modify default behaviour. Remove second argument.
1249 Echo modifications on calls.
1250 (output_graph): Fix.
1251
1252 2001-08-16 Marc Autret <autret_m@epita.fr>
1253
1254 * src/getargs.c (usage): Update with ``-g, --graph''.
1255
1256 2001-08-16 Marc Autret <autret_m@epita.fr>
1257
1258 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1259 (Option Cross Key): Likewise.
1260 * doc/bison.1: Update.
1261
1c8c2190
PB
12622001-09-25 Pascal Bart <pascal.bart@epita.fr>
1263
1264 * src/output.c (output_master_parser): Don't finish action_obstack.
1265 (output_parser): Don't care about the muscle action, here.
1266 (prepare): Copy the action_obstack in the action muscle.
1267 (output): Free action_obstack.
1268
180d45ba
PB
12692001-09-23 Pascal Bart <pascal.bart@epita.fr>
1270
1271 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1272 will contain `%union' declaration.
1273 (parse_union_decl): Delete #line directive output.
1274 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1275 informations about %union.
1276 (parse_union_decl): Copy the union_obstack in the muscle stype.
1277 * src/bison.simple: Add new #line directive.
1278 Add typdef %%stype YYSTYPE.
1279
c51d1a19
PB
12802001-09-23 Pascal Bart <pascal.bart@epita.fr>
1281
1282 * src/bison.simple: Add new `#line' directive.
1283
6f9344da
PB
12842001-09-22 Pascal Bart <pascal.bart@epita.fr>
1285
1286 * src/bison.simple: New `#line' directive.
1287 * src/output.c (output_parser): Support new dynamic muscle input_line.
1288
652def80
MA
12892001-09-22 Marc Autret <autret_m@epita.fr>
1290
1291 * src/output.c (output_master_parser): New.
1292 (output_parser): Be more re-entrant.
1293
25b222fa
MA
12942001-09-21 Marc Autret <autret_m@epita.fr>
1295
1296 * src/reader.c (copy_definition, parse_union_decl): Update and use
1297 `linef' muscle.
1298 (copy_action): Likewise.
1299 Use obstack_1grow ().
1300 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1301
6bc35ae5
MA
13022001-09-21 Marc Autret <autret_m@epita.fr>
1303
1304 * src/options.c (option_table): Adjust.
1305 * src/lex.c (parse_percent_token): Fix.
1306
c0629aa1
PB
13072001-09-20 Pascal Bart <pascal.bart@epita.fr>
1308
1309 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 1310
82b6d266
PB
13112001-09-20 Pascal Bart <pascal.bart@epita.fr>
1312
1313 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1314 is now an option_table_struct*.
1315 (option_strcmp): New function option_strcmp.
1316 (parse_percent_token): Call option_strcmp.
1317 * src/getargs.c (xalloc.h, options.h): Include it.
1318 (getargs): Call create_long_option_table.
1319 (getargs): Free longopts at the end of the function.
1320 (shortopts): Move in options.c.
1321 * src/options.c (create_long_option_table): New function. Convert
1322 information from option_table to option structure.
1323 * src/reader.c (options.h): Include it.
1324
1325 * src/Makefile.am: Adjust.
1326 * src/options.c (option_table): Create from longopts and percent_table.
1327 * src/getargs.c (longopts): Delete.
1328 * src/lex.c (struct percent_table_struct): Delete.
1329 (percent_table): Delete.
1330 (options.h): Include it.
1331 * src/options.c: Create.
1332 * src/options.h: Create.
1333 Declare enum opt_access_e.
1334 Define struct option_table_struct.
1335
75f5aaea
MA
13362001-09-20 Marc Autret <autret_m@epita.fr>
1337
1338 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1339 sections of Bison.
1340
f508cb0a
PB
13412001-09-19 Pascal Bart <pascal.bart@epita.fr>
1342
1343 * src/bison.simple: s/%%filename/%%skeleton.
1344 * src/muscle_tab.c (getargs.h): Include it.
1345 (muscle_init): Insert new muscle skeleton.
1346
13105fc1
PB
13472001-09-18 Pascal Bart <pascal.bart@epita.fr>
1348
1349 * src/output.c (output_parser): Delete unused variable actions_dumped.
1350
b0c4483e
PB
13512001-09-07 Pascal Bart <pascal.bart@epita.fr>
1352
1353 * src/output.c (output): Delete call to reader_output_yylsp.
1354 * src/reader.c (reader): Likewise.
1355 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 1356
11d82f03
MA
13572001-09-02 Marc Autret <autret_m@epita.fr>
1358
1359 * src/reader.c: Include muscle_tab.h.
1360 (parse_union_decl): Update.
1361 (parse_macro_decl): Rename parse_muscle_decl.
1362 Update to use renamed functions and variable.
1363 (read_declarations, copy_action, read_additionnal_code, : Updated
1364 with correct variables and functions names.
1365 (packsymbols, reader): Likewise.
342b8b6e 1366
11d82f03 1367 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 1368
11d82f03
MA
1369 * src/output.c: Include muscle_tab.h
1370 In all functions using macro_insert, change by using muscle_insert ().
1371 (macro_obstack): Rename muscle_obstack.
1372 Echo modifications in the whole file.
1373 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1374 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1375 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1376
1377 * src/muscle_tab.h: Update double inclusion macros.
1378 (macro_entry_s): Rename muscle_entry_s.
1379 Update prototypes.
342b8b6e 1380
11d82f03
MA
1381 * src/muscle_tab.c: Include muscle_tab.h.
1382 Rename macro_tabble to muscle_table.
1383 (mhash1, mhash2, mcmp): Use muscle_entry.
1384 (macro_init): Rename muscle_init. Update.
1385 (macro_insert): Rename muscle_insert. Update.
1386 (macro_find): Rename muscle_find. Update.
1387
1388 * src/main.c: Include muscle_tab.h.
1389 (main): Call muscle_init ().
1390 * src/Makefile.am (bison_SOURCES): Echo modifications.
1391
93a37297
MA
13922001-09-02 Marc Autret <autret_m@epita.fr>
1393
f753cd62 1394 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 1395
f753cd62
MA
1396 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1397
13982001-09-02 Marc Autret <autret_m@epita.fr>
1399
1400 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 1401
682d48cd
PB
14022001-09-01 Pascal Bart <pascal.bart@epita.fr>
1403
342b8b6e 1404 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
1405 filename.
1406
087c8fda
MA
14072001-09-01 Marc Autret <autret_m@epita.fr>
1408
1409 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1410 to an explicit value to activate the feature. We do it here.
1411
dda680cb
PB
14122001-08-31 Pascal Bart <pascal.bart@epita.fr>
1413
1414 * src/output.c (prepare): Delete the `filename' muscule insertion.
1415 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1416 (parse_union_decl): Likewise.
1417 * src/macrotab.c (macro_init): Initialize filename by infile.
1418
9e644e64
MA
14192001-08-31 Marc Autret <autret_m@epita.fr>
1420
1421 * src/bison.simple (YYLSP_NEEDED): New definition.
1422 * src/output.c (prepare): Add macro insertion of `locations_flag'
1423
17da6427
PB
14242001-08-31 Pascal Bart <pascal.bart@epita.fr>
1425
1426 * src/output.c (prepare): Delete insertion of previous muscles,
1427 and insert the `prefix' muscles.
1428 * src/macrotab.c (macro_init): Likewise.
1429 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 1430 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
1431 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1432 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 1433 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
1434 name_prefix.
1435
e8cb70b9
PB
14362001-08-31 Pascal Bart <pascal.bart@epita.fr>
1437
1438 * src/main.c (main): Standardize.
1439 * src/output.c (output_table_data, output_parser): Likewise.
1440 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1441
63c2d5de
MA
14422001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1443
342b8b6e 1444 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
1445 %%epilogue.
1446 * src/output.c (output): Rename %%declarations to %%prologue.
1447 * src/bison.simple: Echo modifications.
342b8b6e 1448
d8cb5183
MA
14492001-08-31 Marc Autret <autret_m@epita.fr>
1450
1451 * src/reader.c (readgram): CleanUp.
1452 (output_token_defines): Likewise.
1453 (packsymbols): Likewise.
1454 (reader): Likewise.
1455 * src/output.c (output): CPP-out useless code.
1456
6c686258
PB
14572001-08-31 Pascal Bart <pascal.bart@epita.fr>
1458
342b8b6e 1459 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
1460 output_trailers and output_headers.
1461 * src/output.h: Remove obsolete functions prototypes of output_headers
1462 and output_trailers.
1463
8f451ef7
PB
14642001-08-30 Pascal Bart <pascal.bart@epita.fr>
1465
1466 * src/main.c: Include macrotab.h.
342b8b6e 1467 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
1468 Adjust functions prototypes.
1469 * src/macrotab.c (macro_insert): Constify key and value.
1470 (macro_find): Constify key.
1471 (macro_insert): Include 'xalloc.h'
1472 (macro_insert): Use XMALLOC.
1473 (macro_find): Constify return value.
1474 * src/output.c (output_table_data): Rename table to table_data.
1475 (output_parser): Constify macro_key, macro_value.
1476
997b6fd0 14772001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
1478
1479 * src/reader.c (parse_skel_decl): New.
342b8b6e 1480 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
1481 * src/lex.h (token_t): New token `tok_skel'.
1482 * src/lex.c (percent_table): Add skeleton option entry.
1483 Standardize.
1484
ff48177d
MA
14852001-08-29 Marc Autret <autret_m@epita.fr>
1486
1487 * src/bison.simple: Add %%user_code directive at the end.
1488 * src/reader.c (read_additionnal_code): New.
1489 (reader): Use it.
1490 * src/output.c (output_program): Remove.
1491 (output): Update.
1492
b33160bf
MA
14932001-08-28 Marc Autret <autret_m@epita.fr>
1494
1495 * src/output.c (output_actions): Clean up.
4e5caae2 1496 (output_gram): CPP-out useless code.
b33160bf
MA
1497 * src/reader.c (reader): Clean up, CPP-out useless code.
1498
d1a2daf7
PB
14992001-08-28 Pascal Bart <pascal.bart@epita.fr>
1500
342b8b6e 1501 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 1502 directive.
d1a2daf7
PB
1503 * src/bison.simple: Add `%%definitions'.
1504
2b763dfe
MA
15052001-08-28 Marc Autret <autret_m@epita.fr>
1506
1507 * config/depcomp: New file.
1508
f1a87ef6
PE
15092001-08-27 Paul Eggert <eggert@twinsun.com>
1510
1511 * src/bison.simple (yyparse): Don't take the address of an
1512 item before the start of an array, as that doesn't conform to
1513 the C Standard.
1514
82e236e2
RA
15152001-08-27 Robert Anisko <robert.anisko@epita.fr>
1516
f1a87ef6 1517 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
1518 obstack. It was done too late here.
1519
1520 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1521 completely wrong.
1522 (reader): Initialize the macro obstack here, since we need it to grow
1523 '%define' directives.
1524
1525 * src/reader.h: Declare the macro obstack as extern.
1526
b0cfa28a
RA
15272001-08-27 Robert Anisko <robert.anisko@epita.fr>
1528
1529 * src/output.c (output_parser): Fix. Store single '%' characters in
1530 the output obstack instead of throwing them away.
1531
6fc74234
AD
15322001-08-27 Akim Demaille <akim@epita.fr>
1533
1534 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1535
9c76d118
RA
15362001-08-25 Robert Anisko <robert.anisko@epita.fr>
1537
1538 * lib/Makefile.am: Adjust.
1539
a8289c62
RA
15402001-08-25 Robert Anisko <robert.anisko@epita.fr>
1541
1542 * src/bison.simple: Update and add '%%' directives.
1543
b6610515
RA
15442001-08-25 Robert Anisko <robert.anisko@epita.fr>
1545
1546 * src/reader.c (reader): Remove calls to 'output_headers' and
1547 'output_trailers'. Remove some C output.
1548 (readgram): Disable a piece of code that was writing a default
1549 definition for 'YYSTYPE'.
1550 (reader_output_yylsp): Remove.
1551 (packsymbols): Output token defintions to a macro.
1552 (copy_definition): Disable C output.
6fc74234 1553
b6610515
RA
1554 * src/reader.c (parse_macro_decl): New function used to parse macro
1555 declarations.
1556 (copy_string2): Put the body of copy_string into this new function.
1557 Add a parameter to let the caller choose whether he wants to copy the
1558 string delimiters or not.
1559 (copy_string): Be a simple call to copy_string2 with the last argument
1560 bound to true.
1561 (read_declarations): Add case for macro definition.
1562 (copy_identifier): New.
6fc74234 1563 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
1564 rather than lex.
1565
26f609ff
RA
15662001-08-25 Robert Anisko <robert.anisko@epita.fr>
1567
1568 * src/output.c (prepare): Add prefixed names.
1569 (output_parser): Output semantic actions.
1570 (output_parser): Fix bug on '%%line' directives.
6fc74234 1571
26f609ff
RA
1572 * src/output.c (output_headers): Remove. The C code printed by this
1573 function should now be in the skeletons.
1574 (output_trailers): Remove.
1575 (output): Disable call to 'reader_output_yylsp'.
1576 (output_rule_data): Do not output tables to the table obstack.
1577
1578 * src/output.c: Remove some C dedicated output.
1579 Improve the use of macro and output obstacks.
1580 (output_defines): Remove.
6fc74234 1581
26f609ff
RA
1582 * src/output.c (output_token_translations): Associate 'translate'
1583 table with a macro. No output to the table obstack.
1584 (output_gram): Same for 'rhs' and 'prhs'.
1585 (output_stos): Same for 'stos'.
1586 (output_rule_data): Same for 'r1' and 'r2'.
1587 (token_actions): Same for 'defact'.
1588 (goto_actions): Same for 'defgoto'.
1589 (output_base): Same for 'pact' and 'pgoto'.
1590 (output_table): Same for 'table'.
1591 (output_check): Same for 'check'.
6fc74234 1592
26f609ff
RA
1593 * src/output.c (output_table_data): New function.
1594 (output_short_table): Remove.
1595 (output_short_or_char_table): Remove.
6fc74234 1596
26f609ff
RA
1597 * src/output.c (output_parser): Replace most of the skeleton copy code
1598 with something new. Skeletons are now processed character by character
1599 rather than line by line, and Bison looks for '%%' macros. This is the
1600 first step in making Bison's output process (a lot) more flexible.
1601 (output_parser): Use the macro table.
1602
6f43b113
RA
16032001-08-25 Robert Anisko <robert.anisko@epita.fr>
1604
1605 * src/main.c (main): Initialize the macro table.
1606
dd3127cf
RA
16072001-08-25 Robert Anisko <robert.anisko@epita.fr>
1608
1609 * src/lex.c (percent_table): Add tok_define.
1610 * src/lex.h: Add tok_define.
1611
aa321494
RA
16122001-08-25 Robert Anisko <robert.anisko@epita.fr>
1613
1614 * src/macrotab.c: New file.
1615 * src/macrotab.h: New file.
1616 * src/Makefile.am: Update.
1617
68bd3b6b
RA
16182001-08-25 Robert Anisko <robert.anisko@epita.fr>
1619
1620 * lib/hash.c: New file.
1621 * lib/hash.h: New file.
1622 * lib/Makefile.am: Update.
1623
45f8dd1e
AD
16242001-08-15 Akim Demaille <akim@epita.fr>
1625
1626 Version 1.28c.
1627
40a64a7a 16282001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
1629
1630 * src/reader.c (readgram): Indent output macro YYSTYPE.
1631 (packsymbols): Likewise.
1632 (output_token_defines): Likewise.
1633 * src/files.c: Standardize.
1634 (compute_header_macro): New.
1635 (defines_obstack_save): New. Use compute_header_macro.
1636 (output_files): Update. Use defines_obstack_save.
1637
f9a8293a
AD
16382001-08-15 Akim Demaille <akim@epita.fr>
1639
1640 * doc/bison.texinfo (Table of Symbols): Document
1641 YYSTACK_USE_ALLOCA.
1642
150ca7a7
AD
16432001-08-15 Akim Demaille <akim@epita.fr>
1644
1645 * missing: Update from CVS Automake.
1646 * config/config.guess, config/config.sub, config/texinfo.tex:
1647 Update from gnu.org.
1648
69b5cec4
AD
16492001-08-15 Akim Demaille <akim@epita.fr>
1650
1651 * Makefile.maint: Sync with CVS Autoconf.
1652
f2b5126e
PB
16532001-08-14 Pascal Bart <pascal.bart@epita.fr>
1654
69b5cec4 1655 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
1656 `fdl.texi'.
1657 * doc/fdl.texi: Add to package.
1658
4ecbf796
MA
16592001-08-14 Marc Autret <autret_m@epita.fr>
1660
1661 Turn on %{source,header}_extension features.
1662
69b5cec4 1663 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
1664 source_extension.
1665 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 1666 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
1667 between options.
1668
95fb5662
MA
16692001-08-14 Marc Autret <autret_m@epita.fr>
1670
1671 * src/files.c (compute_base_names): Add extensions computing when
1672 `--file-prefix' used.
1673 Standardize function calls.
1674
78d09da9
MA
16752001-08-13 Marc Autret <autret_m@epita.fr>
1676
69b5cec4 1677 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
1678 defining it (defined but null disables alloca).
1679
5a009f2c
MA
16802001-08-13 Marc Autret <autret_m@epita.fr>
1681
1682 * src/bison.simple (_yy_memcpy): CPP reformat.
1683
1e41465a
PB
16842001-08-13 Pascal Bart <pascal.bart@epita.fr>
1685
1686 * tests/atconfig.in (CPPFLAGS): Fix.
1687
c67a198d
PB
16882001-08-10 Pascal Bart <pascal.bart@epita.fr>
1689
79282c6c 1690 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
1691 `gpl.texi'.
1692 * doc/gpl.texi: Add to package.
1693
09a6de7e
MA
16942001-08-10 Marc Autret <autret_m@epita.fr>
1695
1696 * src/print_graph.h: Fix.
1697 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1698
b77b9ee0
AD
16992001-08-10 Akim Demaille <akim@epita.fr>
1700
1701 * src/system.h: Provide default declarations for stpcpy, strndup,
1702 and strnlen.
1703
3e259915
MA
17042001-08-10 Robert Anisko <anisko_r@epita.fr>
1705
1706 * doc/bison.texinfo (Locations): Update @$ stuff.
1707
ca96bc2d
MA
17082001-08-09 Robert Anisko <anisko_r@epita.fr>
1709
1710 * src/bison.simple (YYLLOC_DEFAULT): Update.
1711 (yyparse): Adjust.
1712
fdc6758b
MA
17132001-08-08 Marc Autret <autret_m@epita.fr>
1714
b77b9ee0 1715 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1716 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1717 Reported by Fabrice Bauzac.
957d4dbf 1718
600cad3b
MA
17192001-08-08 Marc Autret <autret_m@epita.fr>
1720
1721 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1722 * src/vcg.c (output_node): Fix.
1723 * src/vcg.h: Cleanup.
1724 * src/print_graph.c: Add comments.
b77b9ee0 1725 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1726 the VCG graph output.
b77b9ee0 1727 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1728 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1729 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1730 blue.
1731 Get the current node name and node_obstack by argument.
1732 (node_obstack): New variable.
1733 (print_state): Manage node_obstack.
1734 (print_core): Use node_obstack given by argument.
1735 A node is not only computed here but in print_actions also.
1736 (print_graph): CPP out useless code instead of commenting it.
1737
976e528f
AD
17382001-08-07 Pascal Bart <pascal.bart@epita.fr>
1739
1740 * tests/atconfig.in (CPPFLAGS): Fix.
1741
20e8e5ca
AD
17422001-08-07 Akim Demaille <akim@epita.fr>
1743
1744 * src/print_graph.c (quote): New.
1745 (print_core): Use it.
1746
957d4dbf 17472001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1748
3e3da797
AD
1749 * src/vcg.c (complain.h): Include it.
1750 Unepitaize `return' invocations.
c4b66126 1751 [NDEBUG] (main): Remove.
79282c6c 1752 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1753 * src/files.c (open_files): Initialize graph_obstack.
1754 * src/print_graph.c (print_actions): CPP out useless code.
1755 (print_core): Don't output the last `\n' in labels.
1756 Use `quote'.
1757 * src/files.c (output_files): Output the VCG file.
1758 * src/main.c (main): Invoke print_graph ();
3e3da797 1759
957d4dbf 17602001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1761
1762 Automaton VCG graph output.
1763 Using option ``-g'' or long option ``--graph'', you can generate
1764 a gram_filename.vcg file containing a VCG description of the LALR (1)
1765 automaton of your grammar.
1766
1767 * src/main.c: Call to print_graph() function.
1768 * src/getargs.h: Update.
1769 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1770 (graph_flag): New flag.
1771 (longopts): Update.
1772 (getargs): Add case `g'.
1773 * src/files.c (graph_obstack): New obstack struct.
1774 (open_files): Initialize new obstack.
1775 (output_files): Saves graph_obstack if required.
1776 * src/files.h (graph_obstack): New extern declaration.
1777 * src/Makefile.am: Add new source files.
1778
957d4dbf 17792001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1780
1781 * src/print_graph.c, src/print_graph.h (graph): New.
1782 * src/vcg.h: New file.
1783 * src/vcg.c: New file, VCG graph handling.
1784
7333d403
AD
17852001-08-06 Marc Autret <autret_m@epita.fr>
1786
1787 Add of %source_extension and %header_extension which specify
1788 the source or/and the header output file extension.
1789
1790 * src/files.c (compute_base_names): Remove initialisation of
1791 src_extension and header_extension.
1792 (compute_exts_from_gf): Update.
1793 (compute_exts_from_src): Update.
1794 (output_files): Update.
1795 * src/reader.c (parse_header_extension_decl): New.
1796 (parse_source_extension_decl): New.
1797 (read_declarations): New case statements for the new tokens.
1798 * src/lex.c (percent_table): Add entries for %source_extension
1799 and %header_extension.
1800 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1801
84163231
AD
18022001-08-06 Marc Autret <autret_m@epita.fr>
1803
1804 * configure.in: Bump to 1.28c.
1805 * doc/bison.texinfo: Texinfo thingies.
1806
8303fc42
AD
18072001-08-04 Pascal Bart <pascal.bart@epita.fr>
1808
1809 * tests/atconfig.in (CPPFLAGS): Add.
1810 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1811
70a84437
AD
18122001-08-03 Akim Demaille <akim@epita.fr>
1813
1814 Version 1.28b.
1815
2ce10144
AD
18162001-08-03 Akim Demaille <akim@epita.fr>
1817
1818 * tests/Makefile.am (check-local): Ship testsuite.
1819 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1820 Include `string.h'.
1821
1e3e4bc1
AD
18222001-08-03 Akim Demaille <akim@epita.fr>
1823
1824 * configure.in: Try using -Wformat when compiling.
1825
42b45b7f
AD
18262001-08-03 Akim Demaille <akim@epita.fr>
1827
1828 * configure.in: Bump to 1.28b.
1829
8f13fe33
AD
18302001-08-03 Akim Demaille <akim@epita.fr>
1831
1832 * src/complain.c: Adjust strerror_r portability issues.
1833
b37ba92c
AD
18342001-08-03 Akim Demaille <akim@epita.fr>
1835
1836 Version 1.28a.
1837
b0ce6046
AD
18382001-08-03 Akim Demaille <akim@epita.fr>
1839
1840 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1841 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1842 * src/getargs.c: Include complain.h.
1843 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1844 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1845
d01c415b
AD
18462001-08-03 Akim Demaille <akim@epita.fr>
1847
1848 * src/reader.c (readgram): Display hidden chars in error messages.
1849
459dd1a6
AD
18502001-08-03 Akim Demaille <akim@epita.fr>
1851
1852 Update to gettext 0.10.39.
1853
53b74c0c
AD
18542001-08-03 Akim Demaille <akim@epita.fr>
1855
1856 * lib/strspn.c: New.
1857
234a3be3
AD
18582001-08-01 Marc Autret <autret_m@epita.fr>
1859
1860 * doc/bison.texinfo: Update.
1861 * doc/bison.1 (mandoc): Update.
1862 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1863 * src/files.c: Support output files extensions computing.
1864 (src_extension): New static variable.
1865 (header_extension): New static variable.
1866 (tr): New function.
1867 (get_extension_index): New function, gets the index of an extension
1868 filename in a string.
1869 (compute_exts_from_gf): New function, computes extensions from the
1870 grammar file extension.
1871 (compute_exts_from_src): New functions, computes extensions from the
1872 C source file extension, file given by ``-o'' option.
1873 (compute_base_names): Update.
1874 (output_files): Update.
1875
847bf1f5
AD
18762001-08-01 Robert Anisko <anisko_r@epita.fr>
1877
d995fee7 1878 * doc/bison.texi: Document @$.
847bf1f5
AD
1879 (Locations): New section.
1880
d074a105
AD
18812001-07-18 Akim Demaille <akim@epita.fr>
1882
1883 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1884 * config/prev-version.txt, config/move-if-change: New.
1885 * Makefile.am: Adjust.
1886
3419715d
AD
18872001-07-08 Pascal Bart <pascal.bart@epita.fr>
1888
1889 * src/bison.simple (yyparse): Suppress warning `comparaison
1890 between signed and unsigned'.
1891
62ab6972
AD
18922001-07-05 Pascal Bart <pascal.bart@epita.fr>
1893
1894 * src/getargs.h (raw_flag): Remove.
1895 * src/getargs.c: Die on `-r'/`--raw'.
1896 * src/lex.c (parse_percent_token): Die on `%raw'.
1897 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1898 * tests/calc.at: Suppress test with option `--raw'.
1899
1e24cc5b
AD
19002001-07-14 Akim Demaille <akim@epita.fr>
1901
1902 * config/: New.
1903 * configure.in: Require Autoconf 2.50.
1904 Update to gettext 0.10.38.
1905
32dfccf8
AD
19062001-03-16 Akim Demaille <akim@epita.fr>
1907
1908 * doc/bison.texinfo: ANSIfy the examples.
1909
cd5bd6ac
AD
19102001-03-16 Akim Demaille <akim@epita.fr>
1911
1912 * getargs.c (skeleton): New variable.
1913 (longopts): --skeleton is a new option.
1914 (shortopts, getargs): -S is a new option.
1915 * getargs.h: Declare skeleton.
1916 * output.c (output_parser): Use it.
1917
5141b016
AD
19182001-03-16 Akim Demaille <akim@epita.fr>
1919
1920 * m4/strerror_r.m4: New.
1921 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1922 * lib/error.h, lib/error.c: Update.
1923
447992b9
AD
19242001-03-16 Akim Demaille <akim@epita.fr>
1925
1926 * src/getargs.c (longopts): Clean up.
1927
274d42ce
AD
19282001-02-21 Akim Demaille <akim@epita.fr>
1929
1930 * src/reader.c (gensym): `gensym_count' is your own.
1931 Use a static buf to create the symbol name, as token_buffer is no
1932 longer a buffer.
1933
22c821f3
AD
19342001-02-08 Akim Demaille <akim@epita.fr>
1935
1936 * src/conflicts.c (conflict_report): Be sure not to append to res
1937 between two calls, which could happen if both first sprintf were
1938 skipped, but not the first cp += strlen.
1939
18569462
AD
19402001-02-08 Akim Demaille <akim@epita.fr>
1941
1942 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1943 New, from fileutils 4.0.37.
1944 * configure.in: Require Autoconf 2.49c. I took some time before
1945 making this decision. This is the only way out for portability
1946 issues in Bison, it would mean way too much duplicate effort to
1947 import in Bison features implemented in 2.49c since 2.13.
1948 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1949
0d8f3c8a
AD
19502001-02-02 Akim Demaille <akim@epita.fr>
1951
1952 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 1953 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 1954
f17bcd1f
AD
19552001-01-19 Akim Demaille <akim@epita.fr>
1956
1957 Get rid of the ad hoc handling of token_buffer in the scanner: use
1958 the obstacks.
1959
1960 * src/lex.c (token_obstack): New.
1961 (init_lex): Initialize it. No longer call...
1962 (grow_token_buffer): this. Remove it.
1963 Adjust all the places which used it to use the obstack.
1964
511e79b3
AD
19652001-01-19 Akim Demaille <akim@epita.fr>
1966
1967 * src/lex.h: Rename all the tokens:
1968 s/\bENDFILE\b/tok_eof/g;
1969 s/\bIDENTIFIER\b/tok_identifier/g;
1970 etc.
1971 Let them be enums, not #define, to ease debugging.
1972 Adjust all the code.
1973
0d6508ef
AD
19742001-01-18 Akim Demaille <akim@epita.fr>
1975
1976 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1977 * src/lex.c (maxtoken, grow_token_buffer): Static.
1978
6deb4447
AD
19792001-01-18 Akim Demaille <akim@epita.fr>
1980
1981 Since we now use obstacks, more % directives can be enabled.
1982
1983 * src/lex.c (percent_table): Also accept `%yacc',
1984 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1985 `%debug'.
1986 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1987 instead of returning a token.
1988 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1989 * src/reader.c (read_declarations): Adjust.
1990 * src/files.c (open_files): Don't call `compute_base_names', don't
1991 compute `attrsfile' since they depend upon data which might be
1992 *in* the input file now.
1993 (output_files): Do it here.
1994 * src/output.c (output_headers): Document the fact that this patch
1995 introduces a guaranteed SEGV for semantic parsers.
1996 * doc/bison.texinfo: Document them.
1997 * tests/suite.at: Exercise these %options.
1998
ff4423cc
AD
19992000-12-20 Akim Demaille <akim@epita.fr>
2000
2001 Also handle the output file (--verbose) with obstacks.
2002
2003 * files.c (foutput): Remove.
2004 (output_obstack): New.
2005 Adjust all dependencies.
2006 * src/conflicts.c: Return a string.
2007 * src/system.h (obstack_grow_string): Rename as...
2008 (obstack_sgrow): this. Be ready to work with non literals.
2009 (obstack_fgrow4): New.
2010
956dba3a
AD
20112000-12-20 Akim Demaille <akim@epita.fr>
2012
2013 * src/files.c (open_files): Fix the computation of short_base_name
2014 in the case of `-o foo.tab.c'.
2015
337bab46
AD
20162000-12-20 Akim Demaille <akim@epita.fr>
2017
2018 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2019 (copy_dollar): Now that everything uses obstacks, get rid of the
2020 FILE * parameters.
2021
5d3214b8
AD
20222000-12-20 Akim Demaille <akim@epita.fr>
2023
2024 * src/files.c (open_files): Actually the `.output' file is based
2025 on the short_base_name, not base_name.
2026 * tests/suite.at (Checking output file names): Adjust.
2027
29092a57
AD
20282000-12-20 Akim Demaille <akim@epita.fr>
2029
2030 * src/bison.s1: Remove, we now use directly...
2031 * src/bison.simple: this.
2032 * src/Makefile.am: Use pkgdata instead of data.
2033
ea5607fd
AD
20342000-12-20 Akim Demaille <akim@epita.fr>
2035
2036 * src/files.c (guard_obstack): New.
2037 (open_files): Initialize it.
2038 (output_files): Dump it...
2039 * src/files.h: Export it.
2040 * src/reader.c (copy_guard): Use it.
2041
27110317
AD
20422000-12-19 Akim Demaille <akim@epita.fr>
2043
2044 * src/files.c (outfile, defsfile, actfile): Removed as global
2045 vars.
2046 (open_files): Don't compute them.
2047 (output_files): Adjust.
2048 (base_name, short_base_name): Be global.
2049 Adjust dependencies.
2050
19c50364
AD
20512000-12-19 Akim Demaille <akim@epita.fr>
2052
2053 * src/files.c (strsuffix): New.
2054 (stringappend): Be just like strcat but allocate.
2055 (base_names): Eve out from open_files.
2056 Try to simplify the rather hairy computation of base_name and
2057 short_base_name.
2058 (open_files): Use it.
2059 * tests/suite.at (Checking output file names): New test.
2060
573c1d9f
AD
20612000-12-19 Akim Demaille <akim@epita.fr>
2062
2063 * src/system.h (obstack_grow_literal_string): Rename as...
2064 (obstack_grow_string): this.
2065 * src/output.c (output_parser): Recognize `%% actions' instead of
2066 `$'.
2067 * src/bison.s1: s/$/%% actions/.
2068 * src/bison.hairy: Likewise.
2069
ef7ddedd
AD
20702000-12-19 Akim Demaille <akim@epita.fr>
2071
2072 * src/output.c (output_parser): Compute the `#line' lines when
2073 there are.
2074 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2075 Suggested by Hans Aberg.
2076
ff61dabd
AD
20772000-12-19 Akim Demaille <akim@epita.fr>
2078
2079 Let the handling of the skeleton files be local to the procedures
2080 that use it.
2081
2082 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2083 longer static.
2084 (fparser, open_extra_files): Remove.
2085 (open_files, output_files): Don't take care of fparser.
2086 * src/files.h: Adjust.
2087 * src/output.c (output_parser): Open and close the file to the
2088 skeleton.
2089 * src/reader.c (read_declarations): When %semantic_parser, open
2090 fguard.
2091
55b96341
AD
20922000-12-19 Akim Demaille <akim@epita.fr>
2093
2094 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2095 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2096
358c15b7
AD
20972000-12-19 Akim Demaille <akim@epita.fr>
2098
2099 * src/files.c (open_files): Yipee! We no longer need all the code
2100 looking for `/tmp' since we have no tmp file.
2101
7de3329e
AD
21022000-12-19 Akim Demaille <akim@epita.fr>
2103
2104 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2105 New macros.
2106 * src/files.c (open_files): Less dependency on MSDOS etc.
2107
3abcd459
AD
21082000-12-14 Akim Demaille <akim@epita.fr>
2109
2110 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2111 Provide a default definition.
2112 Use it when executing the default @ action.
2113 * src/reader.c (reader_output_yylsp): No longer include
2114 `timestamp' and `text' in the default YYLTYPE.
2115
2a91a95e
AD
21162000-12-12 Akim Demaille <akim@epita.fr>
2117
2118 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2119 (copy_guard): Quote the file names.
2120 Reported by Laurent Mascherpa.
2121
14d3eb9b
AD
21222000-12-12 Akim Demaille <akim@epita.fr>
2123
2124 * src/output.c (output_headers, output_program, output): Be sure
2125 to escape special characters when outputting filenames.
2126 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2127 (output_headers): Don't depend on them, Use ACTSTR.
2128
d7045ec6
AD
21292000-11-17 Akim Demaille <akim@epita.fr>
2130
2131 * lib/obstack.h: Formatting changes.
2132 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2133 prevents type checking.
2134 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2135 cast the value to (void *): assigning a `foo *' to a `void *'
2136 variable is valid.
2137 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2138 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2139 append characters.
2140
6fd54b73
AD
21412000-11-17 Akim Demaille <akim@epita.fr>
2142
2143 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2144 as...
2145 (suite.m4, regression.m4, calc.m4): these.
2146 * tests/atgeneral.m4: Update from CVS Autoconf.
2147
4c50eae6
AD
21482000-11-17 Akim Demaille <akim@epita.fr>
2149
2150 * tests/regression.m4 (%union and --defines): New test,
2151 demonstrating a current bug in the obstack implementation.
2152
a35f64ea
AD
21532000-11-17 Akim Demaille <akim@epita.fr>
2154
2155 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2156 macros.
2157 Use them to declare the variables which are global or local to
2158 `yyparse'.
2159
7de23534
AD
21602000-11-17 Akim Demaille <akim@epita.fr>
2161
2162 * acconfig.h: Remove, no longer used.
2163
aa7815f5
AD
21642000-11-07 Akim Demaille <akim@epita.fr>
2165
2166 * src: s/Copyright (C)/Copyright/g.
2167
5af1f549
AD
21682000-11-07 Akim Demaille <akim@epita.fr>
2169
2170 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2171 defining.
2172 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2173
553e2b22
AD
21742000-11-07 Akim Demaille <akim@epita.fr>
2175
2176 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2177 Merge in a single CPP if/else.
2178
8a4f41d6
AD
21792000-11-07 Akim Demaille <akim@epita.fr>
2180
2181 * src/output.c (output): Remove useless variables.
2182 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2183 argument `data' for consistency with the prototypes.
2184 Qualify it `const'.
2185 (obstack_copy, obstack_copy0): Rename the second argument as
2186 `address' for consistency. Qualify it `const'.
2187 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2188 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2189 `const' their input argument (`data' or `address').
2190 Adjust the corresponding macros to include `const' in casts.
2191
095a3fb5
AD
21922000-11-03 Akim Demaille <akim@epita.fr>
2193
2194 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2195 s/PFILE1/BISON_HAIRY/.
2196 Adjust dependencies.
2197
d1cdce7c
AD
21982000-11-03 Akim Demaille <akim@epita.fr>
2199
090c5ebf 2200 For some reason, this was not applied.
d1cdce7c
AD
2201
2202 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2203 `unlink': it's no longer used.
2204
9311529b
AD
22052000-11-03 Akim Demaille <akim@epita.fr>
2206
2207 * src/files.c (skeleton_find): New function, eved out of...
2208 (open_files, open_extra_files): here.
2209
d8880f69
AD
22102000-11-03 Akim Demaille <akim@epita.fr>
2211
2212 Don't use `atexit'.
2213
2214 * src/files.c (obstack_save): New function.
2215 (done): Rename as...
2216 (output_files): this.
2217 Use `obstack_save'.
2218 * src/main.c (main): Don't use `atexit' to register `done', since
2219 it no longer has to remove tmp files, just call `output_files'
2220 when there are no errors.
2221
0dbb648e
AD
22222000-11-02 Akim Demaille <akim@epita.fr>
2223
2224 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2225 `unlink': it's no longer used.
2226 * src/files.h: Formatting changes.
2227
896fe5c1
AD
22282000-11-02 Akim Demaille <akim@epita.fr>
2229
2230 Remove the last uses of mktemp and unlink/delete.
2231
2232 * src/files.c (fdefines, ftable): Removed.
2233 (defines_ostack, table_obstack): New.
2234 Adjust dependencies of the former into uses of the latter.
2235 * src/output.c (output_short_or_char_table, output_short_table):
2236 Convert to using obstacks.
2237 * src/reader.c (copy_comment2): Accept one FILE * and two
2238 obstacks.
2239 (output_token_defines, reader_output_yylsp): Use obstacks.
2240 * src/system.h (obstack_fgrow3): New.
2241
dd60faec
AD
22422000-11-01 Akim Demaille <akim@epita.fr>
2243
2244 Change each use of `fattrs' into a use of `attrs_obstack'.
2245
2246 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2247 * src/files.c (fattrs): Remove.
2248 (attrs_obstack): New.
2249 Adjust all dependencies.
2250 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2251
8c7ebe49
AD
22522000-11-01 Akim Demaille <akim@epita.fr>
2253
2254 Introduce obstacks.
2255 Change each use of `faction' into a use of `action_obstack'.
2256
2257 * lib/obstack.h, lib/obstack.c: New files.
2258 * src/files.c (faction): Remove.
2259 (action_obstack): New.
2260 Adjust all dependencies.
2261
77aee789
AD
22622000-10-20 Akim Demaille <akim@epita.fr>
2263
2264 * lib/quote.h (PARAMS): New macro. Use it.
2265
43591cec
AD
22662000-10-16 Akim Demaille <akim@epita.fr>
2267
2268 * src/output.c (output_short_or_char_table): New function.
2269 (output_short_table, output_token_translations): Use it.
2270 (goto_actions): Use output_short_table.
2271
1e9798d5
AD
22722000-10-16 Akim Demaille <akim@epita.fr>
2273
2274 * src/symtab.c (bucket_new): New function.
2275 (getsym): Use it.
2276
2277 * src/output.c (output_short_table): New argument to display the
2278 comment associated with the table.
2279 Adjust dependencies.
2280 (output_gram): Use it.
2281 (output_rule_data): Nicer output layout for YYTNAME.
2282
f282676b
AD
22832000-10-16 Akim Demaille <akim@epita.fr>
2284
2285 * src/lex.c (read_typename): New function.
2286 (lex): Use it.
2287 * src/reader.c (copy_dollar): Likewise.
2288
550a72a3
AD
22892000-10-16 Akim Demaille <akim@epita.fr>
2290
2291 * src/reader.c (copy_comment2): Expect the input stream to be on
2292 the `/' which is suspected to open a comment, instead of being
2293 called after `//' or `/*' was read.
2294 (copy_comment, copy_definition, parse_union_decl, copy_action)
2295 (copy_guard): Adjust.
2296
131e2fef
AD
22972000-10-16 Akim Demaille <akim@epita.fr>
2298
2299 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2300 `read_signed_integer'.
2301
79282c5a
AD
23022000-10-16 Akim Demaille <akim@epita.fr>
2303
2304 * src/reader.c (copy_dollar): New function.
2305 (copy_guard, copy_action): Use it.
2306
ff4a34be
AD
23072000-10-16 Akim Demaille <akim@epita.fr>
2308
2309 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2310 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2311 New files, from Fileutils 4.0.27.
2312 * src/main.c (printable_version): Remove.
2313 * src/lex.c, src/reader.c: Use `quote'.
2314
23152000-10-04 Akim Demaille <akim@epita.fr>
2316
2317 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2318
14ded682
AD
23192000-10-04 Akim Demaille <akim@epita.fr>
2320
2321 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2322
8e03724b
AD
23232000-10-04 Akim Demaille <akim@epita.fr>
2324
2325 When a literal string is used to define two different tokens,
2326 `bison -v' segfaults.
2327 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2328
2329 * tests/regression.m4: New file.
2330 Include the core of the sample provided by Piotr Gackiewicz.
2331 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2332 properly.
2333
a9e64249
AD
23342000-10-04 Akim Demaille <akim@epita.fr>
2335
2336 * src/reader.c (parse_expect_decl): Keep `count' within the size
2337 of `buffer'.
2338 From Neil Booth.
2339
da9abf43
AD
23402000-10-02 Paul Eggert <eggert@twinsun.com>
2341
2342 * bison.s1 (yyparse): Assign the default value
2343 unconditionally, to avoid a GCC warning and make the parser a
2344 tad smaller.
2345
c33638bb
AD
23462000-10-02 Akim Demaille <akim@epita.fr>
2347
2348 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2349 options.
2350
444c570a
AD
23512000-10-02 Akim Demaille <akim@epita.fr>
2352
2353 * src/derives.c, src/print.c, src/reduce.c: To ease the
2354 translation, move some `\n' out of the translated strings.
2355
89cab50d
AD
23562000-10-02 Akim Demaille <akim@epita.fr>
2357
2358 The location tracking mechanism is precious for parse error
2359 messages. Nevertheless, it is enabled only when `@n' is used in
2360 the grammar, which is a different issue (you can use it in error
2361 message, but not in the grammar per se). Therefore, there should
2362 be another means to enable it.
2363
2364 * src/getargs.c (getargs): Support `--locations'.
2365 (usage): Report it.
2366 * src/getargs.h (locationsflag): Export it.
2367 * src/lex.c (percent_table): Support `%locations'.
2368 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2369 with `locationsflag'.
2370 * doc/bison.texinfo: Document `--locations' and `%locations'.
2371 Sort the options.
2372 * tests/calc.m4: Test it.
2373
2374 For regularity of the names, replace each
2375 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2376 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2377 In addition replace each `flag' with `_flag'.
2378
d6c2cba0
AD
23792000-10-02 Akim Demaille <akim@epita.fr>
2380
2381 Also test parse error messages, including with YYERROR_VERBOSE.
2382
2383 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2384 associative).
2385 Use it to check the computations.
2386 Use it to check `nonassoc' is honored.
2387 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2388 `--yyerror-verbose'.
2389 (_AT_CHECK_CALC): Adjust to this option.
2390 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2391
5a35a6cb
AD
23922000-10-02 Akim Demaille <akim@epita.fr>
2393
2394 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2395 the latter demonstrates a flaw in the handling of non debugging
2396 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2397 was used in order to simplify:
2398
2399 #if YYDEBUG
2400 if (yydebug)
2401 {
2402 ...
2403 }
2404 #endif
2405
2406 into
2407
2408 if (yydebug)
2409 {
2410 ...
2411 }
2412
2413 unfortunately this leads to a CPP conflict when
2414 `--name-prefix=foo' is used since it produces `#define yydebug
2415 foodebug'.
2416
2417 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2418 (YYDPRINTF): New macro.
2419 Spread its use.
2420 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2421 the bison options.
2422 Also test `--verbose', `--defines' and `--name-prefix'.
2423
71da9eea
AD
24242000-10-02 Akim Demaille <akim@epita.fr>
2425
2426 Improve the readability of the produced parsers.
2427
2428 * src/bison.s1: Formatting changes.
2429 Improve the comment related to the `$' mark.
2430 (yydefault): Don't fall through to `yyresume': `goto' there.
2431 * src/output.c (output_parser): When the `$' is met, skip the end
2432 of its line.
2433 New variable, `number_of_dollar_signs', to check there's exactly
2434 one `$' in the parser skeleton.
2435
95e36146
AD
24362000-10-02 Akim Demaille <akim@epita.fr>
2437
2438 * lib/xstrdup.c: New file, from the fileutils.
2439 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2440 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2441 instead of strlen + xmalloc + strcpy.
2442 * src/symtab.c (copys): Remove, use xstrdup instead.
2443
d7020c20
AD
24442000-10-02 Akim Demaille <akim@epita.fr>
2445
2446 * src/gram.h (associativity): New enum type which replaces the
2447 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2448 `right_assoc', `left_assoc' and `non_assoc'.
2449 Adjust all dependencies.
2450 * src/reader.c: Formatting changes.
2451 (LTYPESTR): Don't define it, use it as a literal in
2452 `reader_output_yylsp'.
2453 * src/symtab.h (symbol_class): New enum type which replaces the
2454 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2455 `sunknown', `stoken and `snterm'.
2456
1916f98e
AD
24572000-10-02 Akim Demaille <akim@epita.fr>
2458
2459 * src/getargs.c (fixed_outfiles): Rename as...
2460 (yaccflag): for consistency and accuracy.
2461 Adjust dependencies.
2462
d7913476
AD
24632000-10-02 Akim Demaille <akim@epita.fr>
2464
2465 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2466 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2467 difficult and introduced a lot of core dump. It turns out that
2468 Bison used an implementation of `xmalloc' based on `calloc', and
2469 at various places it does depend upon the initialization to 0. I
2470 have not tried to isolate the pertinent places, and all the former
2471 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2472 someone should address this issue.
2473
2474 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2475 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2476 files.
2477 Adjust dependencies.
2478 * src/warshall.h: New file.
2479 Propagate.
2480
340ef489
AD
24812000-10-02 Akim Demaille <akim@epita.fr>
2482
2483 Various anti-`extern in *.c' changes.
2484
2485 * src/system.h: Include `assert.h'.
2486
b2ca4022
AD
24872000-10-02 Akim Demaille <akim@epita.fr>
2488
2489 * src/state.h (nstates, final_state, first_state, first_shift)
2490 (first_reduction): Move their exportation from here...
2491 * src/LR0.h: to here.
2492 Adjust dependencies.
2493 * src/getargs.c (statisticsflag): New variable.
2494 Add support for `--statistics'.
2495 Adjust dependencies.
2496
2497 Remove a lot of now useless `extern' statements in most files.
2498
403b315b
AD
24992000-10-02 Akim Demaille <akim@epita.fr>
2500
2501 * src/LR0.h: New file.
2502 Propagate its use.
2503
07a58c13
AD
25042000-10-02 Akim Demaille <akim@epita.fr>
2505
2506 * src/print.h: New file.
2507 Propagate its use.
2508 * src/print.c: Formatting and ordering changes.
2509 (verbose, terse): Replace with...
2510 (print_results): this new function.
2511 Adjust dependencies.
2512
0619caf0
AD
25132000-10-02 Akim Demaille <akim@epita.fr>
2514
2515 * src/conflicts.c (conflict_report): New function.
2516 (conflict_log, verbose_conflict_log): Replace with...
2517 (print_conflicts): this function.
2518 Adjust dependencies.
2519 * src/conflicts.h: New file.
2520 Propagate its inclusion.
2521
3519ec76
AD
25222000-10-02 Akim Demaille <akim@epita.fr>
2523
2524 * src/nullable.h: New file.
2525 Propagate its inclusion.
2526 * src/nullable.c: Formatting changes.
2527
015acc48
AD
25282000-10-02 Akim Demaille <akim@epita.fr>
2529
2530 * src/reduce.h: New file.
2531 Propagate its inclusion.
2532 * src/reduce.c: Topological sort and other formatting changes.
2533 (bool, TRUE, FALSE): Move their definition to...
2534 * src/system.h: here.
2535
8963a27b
AD
25362000-10-02 Akim Demaille <akim@epita.fr>
2537
2538 * src/files.c: Formatting changes.
2539 (tryopen, tryclose, openfiles): Rename as...
2540 (xfopen, xfclose, open_files): this.
2541 (stringappend): static.
2542 * src/files.h: Complete the list of exported symbols.
2543 Propagate its use.
2544
a70083a3
AD
25452000-10-02 Akim Demaille <akim@epita.fr>
2546
2547 * src/reader.h: New file.
2548 Propagate its use instead of tedious list of `extern' and
2549 prototypes.
2550 * src/reader.c: Formatting changes, topological sort,
2551 s/register//.
2552
abadc117
AD
25532000-10-02 Akim Demaille <akim@epita.fr>
2554
2555 * src/lex.h: Prototype `lex.c' exported functions.
2556 * src/reader.c: Adjust.
2557 * src/lex.c: Formatting changes.
2558 (safegetc): Rename as...
2559 (xgetc): this.
2560
720d742f
AD
25612000-10-02 Akim Demaille <akim@epita.fr>
2562
2563 * src/lalr.h: New file.
2564 Propagate its inclusion instead of prototypes and `extern'.
2565 * src/lalr.c: Formatting changes, topological sorting etc.
2566
f2acea59
AD
25672000-10-02 Akim Demaille <akim@epita.fr>
2568
2569 * src/output.c (token_actions): Introduce a temporary array,
2570 YYDEFACT, that makes it possible for this function to use
2571 output_short_table.
2572
d019d655
AD
25732000-10-02 Akim Demaille <akim@epita.fr>
2574
2575 `user_toknums' is output as a `short[]' in `output.c', while it is
2576 defined as a `int[]' in `reader.c'. For consistency with the
2577 other output tables, `user_toknums' is now defined as a table of
2578 shorts.
2579
2580 * src/reader.c (user_toknums): Be a short table instead of an int
2581 table.
2582 Adjust dependencies.
2583
2584 Factor the short table outputs.
2585
2586 * src/output.c (output_short_table): New function.
2587 * src/output.c (output_gram, output_stos, output_rule_data)
2588 (output_base, output_table, output_check): Use it.
2589
6c89f1c1
AD
25902000-10-02 Akim Demaille <akim@epita.fr>
2591
2592 * src/output.c (output): Topological sort of the functions, in
2593 order to get rid of the `static' prototypes.
2594 No longer use `register'.
2595 * src/output.h: New file.
2596 Propagate its inclusion in files explicitly prototyping functions
2597 from output.c.
2598
d9efd181
AD
25992000-09-21 Akim Demaille <akim@epita.fr>
2600
2601 * src/atgeneral.m4: Update from Autoconf.
2602
c29240e7 26032000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
2604
2605 * src/closure.h: New file.
2606 * src/closure.c: Formatting changes, topological sort over the
2607 functions, use of closure.h.
2608 (initialize_closure, finalize_closure): Rename as...
2609 (new_closure, free_closure): these. Adjust dependencies.
2610 * src/LR0.c: Formatting changes, topological sort, use of
2611 cloture.h.
2612 (initialize_states): Rename as...
2613 (new_states): this.
2614 * src/Makefile.am (noinst_HEADERS): Adjust.
2615
499daa50
AD
26162000-09-20 Akim Demaille <akim@epita.fr>
2617
2618 * src/acconfig.h: Don't protect config.h against multiple
2619 inclusion.
2620 Don't define PARAMS.
2621 * src/system.h: Define PARAMS.
2622 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2623 purpose of config.h. system.h must not try to fix wrong
2624 definitions in config.h.
2625
cc84fd5d
AD
26262000-09-20 Akim Demaille <akim@epita.fr>
2627
2628 * src/derives.h: New file.
2629 * src/main.c, src/derives.h: Use it.
2630 Formatting changes.
2631 * src/Makefile.am (noinst_HEADERS): Adjust.
2632
db5b3a89
AD
26332000-09-20 Akim Demaille <akim@epita.fr>
2634
2635 * tests/atgeneral.m4: Update from Autoconf.
2636 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2637 (AT_CHECK_CALC): New macros.
2638 Use these macros to test bison with options `', `--raw',
2639 `--debug', `--yacc', `--yacc --debug'.
2640
ceed8467
AD
26412000-09-19 Akim Demaille <akim@epita.fr>
2642
2643 * src/output.c: Formatting changes.
2644 * src/machine.h: Remove, leaving its contents in...
2645 * src/system.h: here.
2646 Include stdio.h.
2647 Adjust all dependencies on stdio.h and machine.h.
2648 * src/getargs.h: New file.
2649 Let all `extern' declarations about getargs.c be replaced with
2650 inclusion of `getargs.h'.
2651 * src/Makefile.am (noinst_HEADERS): Adjust.
2652
2653 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2654 scope.
2655 (yyerror): Returns void, not int.
2656 * doc/bison.texinfo: Formatting changes.
2657
05a1d24b
AD
26582000-09-19 Akim Demaille <akim@epita.fr>
2659
2660 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2661 portable.
2662
cbd25751
AD
26632000-09-18 Akim Demaille <akim@epita.fr>
2664
2665 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2666 * src/Makefile.am (INCLUDES): Don't.
2667 Be ready to fetch headers in lib/.
2668
13863333
AD
26692000-09-18 Akim Demaille <akim@epita.fr>
2670
2671 * doc/bison.texinfo: Update the copyright.
2672 ANSIfy and GNUify the examples.
2673 Remove the old menu.
2674
0d533154
AD
26752000-09-18 Akim Demaille <akim@epita.fr>
2676
2677 First set of tests: use the `calc' example from the documentation.
2678
2679 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2680 is defined only when YYDEBUG is.
2681 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2682 * src/files.c (tryopen, tryclose): Formatting changes.
2683 Move to the top and be static.
2684 * src/reader.c (read_signed_integer): Likewise.
2685 * tests/calc.m4: New file.
2686 * Makefile.am, suite.m4: Adjust.
2687 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2688
e79137ac
AD
26892000-09-18 Akim Demaille <akim@epita.fr>
2690
2691 Add support for an Autotest test suite for Bison.
2692
2693 * m4/m4.m4, m4/atconfig.m4: New files.
2694 * m4/Makefile.am (EXTRA_DIST): Adjust.
2695 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2696 files.
2697 * src/getargs.c: Display a more standard --version message.
2698 * src/reader.c (reader): Formatting changes.
2699 No longer depend upon VERSION_STRING.
2700 * configure.in: No longer use `dnl'.
2701 Set up the test suite and the new directory `tests/.
2702 (VERSION_STRING): Remove.
2703
27821bff
AD
27042000-04-14 Akim Demaille <akim@epita.fr>
2705
2706 * src/reader.c (copy_comment2): New function, same as former
2707 `copy_comment', but outputs into two FILE *.
2708 (copy_comment): Use it.
2709 (parse_union_decl): Use it.
2710 (get_type, parse_start_decl): Use the same `invalid' message.
2711 (parse_start_decl, parse_union_decl): Use the same `multiple'
2712 message.
2713 (parse_union_decl, copy_guard, copy_action): Use the same
2714 `unmatched' message.
2715 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2716
cfe5fbc0
AD
27172000-03-31 Akim Demaille <akim@epita.fr>
2718
2719 * src/files.c (tryopen, tryclose): Move to the top.
2720 Be static.
2721
cb7db13e
AD
27222000-03-31 Akim Demaille <akim@epita.fr>
2723
2724 * src/main.c (main): Don't call `done', exit does it.
2725
a0f6b076
AD
27262000-03-31 Akim Demaille <akim@epita.fr>
2727
36281465
AD
2728 * allocate.c: s/return (foo)/return foo/.
2729 * lalr.c: Likewise.
2730 * LR0.c: Likewise.
2731 * output.c: Likewise.
2732 * reader.c: Likewise.
2733 * symtab.c: Likewise.
2734 * vmsgetargs.c: Likewise.
2735
27362000-03-31 Akim Demaille <akim@epita.fr>
2737
2738 Clean up the error reporting functions.
a0f6b076
AD
2739
2740 * src/report.c: New file.
2741 * src/report.h: Likewise.
2742 * src/Makefile.am: Adjust.
2743 * m4/error.m4: New file.
2744 * m4/Makefile.am: Adjust.
2745 * configure.in (jm_PREREQ_ERROR): Call it.
2746 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2747 Remove.
2748 (fatal, fatals): Remove. All callers use complain.c::fatal.
2749 (warn, warni, warns, warnss, warnss): Remove. All callers use
2750 complain.c::complain.
2751 (toomany): Remove, use fatal instead.
2752 * src/files.c (done): No argument, use complain_message_count.
2753 * src/main.c (main): Register `done' to `atexit'.
2754
2755 * src/getargs.c (usage): More `fputs', less `fprintf'.
2756
18539825
AD
27572000-03-28 Akim Demaille <akim@epita.fr>
2758
2759 * lib/: New directory.
2760 * Makefile.am (SUBDIRS): Adjust.
2761 * configure.in: Adjust.
2762 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2763 useless.
2764 * src/alloca.c: Moved to lib/.
2765 * src/getopt.c: Likewise.
2766 * src/getopt1.c: Likewise.
2767 * src/getopt.h: Likewise.
2768 * src/ansi2knr.c: Likewise.
2769 * src/ansi2knr.1: Likewise.
2770 * src/Makefile.am: Adjust.
2771 * lib/Makefile.am: New file.
2772
9f306f2a
AD
27732000-03-28 Akim Demaille <akim@epita.fr>
2774
2775 * src/getargs.c (usage): Refresh the help message.
2776
0ba347b6
AD
27772000-03-17 Akim Demaille <akim@epita.fr>
2778
2779 * src/getopt1.c: Updated from textutils 2.0e
2780 * src/getopt.c: Likewise.
2781 * src/getopt.h: Likewise.
2782
dbe7f271
AD
27832000-03-17 Akim Demaille <akim@epita.fr>
2784
2785 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2786 the file name, not the whole `#line LINE FILE'.
2787
75bbe78d
AD
27882000-03-17 Akim Demaille <akim@epita.fr>
2789
2790 On syntax errors, report the token on which we choked.
2791
aa5fd0ee
AD
2792 * src/bison.s1 (yyparse): In the label yyerrlab, when
2793 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2794
7b306f52
AD
27952000-03-17 Akim Demaille <akim@epita.fr>
2796
aa5fd0ee 2797 * src/reader.c (copy_at): New function.
7b306f52
AD
2798 (copy_guard): Use it.
2799 (copy_action): Use it.
2800
e87b5700
AD
28012000-03-17 Akim Demaille <akim@epita.fr>
2802
2803 Be kind to translators, save some useless translations.
2804
aa5fd0ee 2805 * src/main.c (banner): New function.
e87b5700
AD
2806 (fatal_banner): Use it.
2807 (warn_banner): Use it.
2808
ae3c3164
AD
28092000-03-17 Akim Demaille <akim@epita.fr>
2810
aa5fd0ee
AD
2811 * src/reader.c (copy_definition): Use copy_string and
2812 copy_comment. Removed now unused `match', `ended',
2813 `cplus_comment'.
ae3c3164
AD
2814 (copy_comment, copy_string): Moved, to be visible from
2815 copy_definition.
2816
4dc58e7c
AD
28172000-03-17 Akim Demaille <akim@epita.fr>
2818
aa5fd0ee
AD
2819 * src/reader.c (copy_string): Declare `static inline'. No
2820 problems with inline, since it is checked by configure.
4dc58e7c
AD
2821 (copy_comment): Likewise.
2822
0a6384c4
AD
28232000-03-17 Akim Demaille <akim@epita.fr>
2824
aa5fd0ee 2825 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2826
3cef001a
AD
28272000-03-17 Akim Demaille <akim@epita.fr>
2828
aa5fd0ee 2829 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2830 (copy_action): Use it. Removed now unused `match', `ended',
2831 `cplus_comment'.
2832 (copy_guard): Likewise.
2833
ca36d2ef
AD
28342000-03-17 Akim Demaille <akim@epita.fr>
2835
aa5fd0ee 2836 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2837 (copy_action): Use it.
2838 (copy_guard): Likewise.
2839
6666f98f
AD
28402000-03-17 Akim Demaille <akim@epita.fr>
2841
2842 Change the handling of @s so that they behave exactly like $s.
2843 There is now a pseudo variable @$ (readble and writable), location
2844 of the lhs of the rule (by default ranging from the location of
2845 the first symbol of the rhs, to the location of the last symbol,
2846 or, if the rhs is empty, YYLLOC).
2847
2848 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2849 yyval.
2850 (yyparse): When providing a default semantic action, provide a
2851 default location action.
2852 (after the $): No longer change `*YYLSP', just stack YYLOC the
2853 same way you stack YYVAL.
2854 * src/reader.c (read_declarations): Use warns.
2855 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2856 (copy_action, case '@'): Likewise.
2857 Use a standard error message, to save useless work from
2858 translators.
2859
41aca2e0
AD
28602000-03-17 Akim Demaille <akim@epita.fr>
2861
aa5fd0ee
AD
2862 * src/bison.s1: Formatting and cosmetics changes.
2863 * src/reader.c: Likewise.
41aca2e0
AD
2864 Update the Copyright notice.
2865
dc08c1d5
AD
28662000-03-17 Akim Demaille <akim@epita.fr>
2867
aa5fd0ee
AD
2868 * src/bison.s1 (#line): All set to `#line' only, since the
2869 Makefile now handles them.
dc08c1d5 2870
9ee3c97b
AD
28712000-03-16 Akim Demaille <akim@epita.fr>
2872
2873 * src/output.c (output_rule_data): Output the documentation of
2874 some of the tables.
2875 (Copyright notice): Update.
2876 Formatting changes.
2877
0de741ca
AD
28782000-03-16 Akim Demaille <akim@epita.fr>
2879
2880 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2881 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2882 One `#if YYDEBUG' remains, since it uses variables which are
2883 defined only if `YYDEBUG != 0'.
2884
bb10be54
AD
28852000-03-16 Akim Demaille <akim@epita.fr>
2886
2887 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2888 and related variables so that the similarities are highlighted.
2889
b07b484a
AD
28902000-03-16 Akim Demaille <akim@epita.fr>
2891
2892 * src/bison.s1: Properly indent CPP directives.
2893
361f60b3
AD
28942000-03-16 Akim Demaille <akim@epita.fr>
2895
2896 * src/bison.s1: Properly indent the `alloca' CPP section.
2897
8c44d3ec
AD
28982000-03-16 Akim Demaille <akim@epita.fr>
2899
2900 Do not hard code values of directories in `configure.in'.
2901 Update the `configure' tool chain.
2902
2903 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2904 src/makefile.am.
2905 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2906 (AC_OUTPUT): Add m4/Makefile.
2907 Bump to bison 1.28a, 1.29 has never been released.
2908 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2909 handled via src/Makefile.am.
2910 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2911 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2912 autoheader.
2913 * Makefile.am (SUBDIRS): Add m4.
2914 (ACLOCAL_AM_FLAGS): New variable.
2915 (AUTOMAKE_OPTIONS): Add check-news.
2916 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2917 the proper line number and file name.
2918 (DEFS): Propagate the location of bison library files and of the
2919 locale files.
2920 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2921 builddir.
2922 * acinclude.m4: Remove, replaced by the directory m4.
2923 * m4/Makefile.am (EXTRA_DIST): New variable.
2924 * m4/gettext.m4: New file, from the fileutils.
2925 * m4/lcmessage.m4: Likewise
2926 * m4/progtest.m4: Likewise.
2927 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2928
f95997e7
AD
29292000-03-10 Akim Demaille <akim@epita.fr>
2930
2931 * src/closure.c:
2932 Formatting changes of various comments.
2933 Respect the GNU coding standards at various places.
2934 Don't use `_()' when no translation is needed.
2935
29361999-12-13 Jesse Thilo <jthilo@gnu.org>
2937
2938 * src/files.c:
2939 OS/2 honors TMPDIR environment variable.
2940
29411999-12-13 Jesse Thilo <jthilo@gnu.org>
2942
2943 * doc/bison.texinfo: Tweaked spelling and grammar.
2944 Updated ISBN.
2945 Removed reference to price of printed copy.
2946 Mention BISON_SIMPLE and BISON_HAIRY.
2947
29481999-12-13 Jesse Thilo <jthilo@gnu.org>
2949
2950 * configure.in, NEWS:
2951 Bison 1.29 released.
2952
29531999-10-27 Jesse Thilo <jthilo@gnu.org>
2954
2955 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2956 Added reference card.
2957
29581999-07-26 Jesse Thilo <jthilo@gnu.org>
2959
2960 * po/ru.po: Added Russian translation.
2961
29621999-07-26 Jesse Thilo <jthilo@gnu.org>
2963
2964 * configure.in: Added Russian translation.
2965
29661999-07-06 Jesse Thilo <jthilo@gnu.org>
2967
2968 * configure.in, NEWS, README:
2969 Released version 1.28.
2970
29711999-06-14 Jesse Thilo <jthilo@gnu.org>
2972
2973 * src/system.h:
2974 Squashed redefinition warning on some systems.
2975
2976 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2977 Have configure build version string instead of relying on ANSI string
2978 concatentation.
2979
29801999-06-14 Jesse Thilo <jthilo@gnu.org>
2981
2982 * po/POTFILES.in: Got rid of version.c.
2983
29841999-06-14 Jesse Thilo <jthilo@gnu.org>
2985
2986 * acconfig.h, configure.in:
2987 Have configure build version string instead of relying on ANSI string
2988 concatentation.
2989
29901999-06-08 Jesse Thilo <jthilo@gnu.org>
2991
2992 * doc/bison.1:
2993 Dropped mention of `+' for long-named options.
2994
29951999-05-30 Jesse Thilo <jthilo@gnu.org>
2996
2997 * src/files.c: Added <unistd.h> for unlink().
2998
2999 * src/Makefile.am, src/system.h:
3000 I18n fixes.
3001
30021999-05-30 Jesse Thilo <jthilo@gnu.org>
3003
3004 * README: Added a FAQ list.
3005
3006 * configure.in, acconfig.h:
3007 I18n fixes.
3008
30091999-05-30 Jesse Thilo <jthilo@gnu.org>
3010
3011 * doc/FAQ, doc/Makefile.am:
3012 Added a FAQ list.
3013
30141999-05-19 Jesse Thilo <jthilo@gnu.org>
3015
3016 * src/alloc.h, src/symtab.h, src/version.c:
3017 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3018
30191999-04-18 Jesse Thilo <jthilo@gnu.org>
3020
3021 * src/.cvsignore, src/Makefile.am:
3022 Reorganized: sources in `src', documentation in `doc'.
3023
3024 * src/lex.c (literalchar):
3025 fixed the code for escaping double quotes (thanks
3026 Jonathan Czisny.)
3027
30281999-04-18 Jesse Thilo <jthilo@gnu.org>
3029
3030 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3031 Adjusted paths to reflect directory reorganization.
3032
30331999-04-18 Jesse Thilo <jthilo@gnu.org>
3034
3035 * doc/.cvsignore, doc/Makefile.am:
3036 Reorganized: sources in `src', documentation in `doc'.
3037
30381999-04-18 Jesse Thilo <jthilo@gnu.org>
3039
3040 * configure.in:
3041 Updated AC_INIT file to reflect directory reorganization.
3042
3043 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3044 Reorganized: sources in `src', documentation in `doc'.
3045
30461999-04-13 Jesse Thilo <jthilo@gnu.org>
3047
3048 * src/allocate.c:
3049 Don't declare calloc() and realloc() if not necessary.
3050
30511999-04-13 Jesse Thilo <jthilo@gnu.org>
3052
3053 * configure.in, acconfig.h, acinclude.m4:
3054 Don't declare calloc() and realloc() if not necessary.
3055
30561999-03-23 Jesse Thilo <jthilo@gnu.org>
3057
3058 * po/.cvsignore: Added i18n support.
3059
30601999-03-23 Jesse Thilo <jthilo@gnu.org>
3061
3062 * acconfig.h, configure.in, Makefile.am:
3063 Added i18n support.
3064
30651999-03-22 Jesse Thilo <jthilo@gnu.org>
3066
3067 * src/bison.s1: Fixed #line numbers.
3068
30691999-03-15 Jesse Thilo <jthilo@gnu.org>
3070
3071 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3072 Added PO files from Translation Project.
3073
30741999-03-03 Jesse Thilo <jthilo@gnu.org>
3075
3076 * Makefile.am:
3077 Added support for non-ANSI compilers (ansi2knr).
3078
30791999-02-16 Jesse Thilo <jthilo@gnu.org>
3080
3081 * configure.in: Bumped version number to 1.27.
3082
3083 * Makefile.am:
3084 Added `bison.simple' to list of files removed by `make distclean'.
3085
30861999-02-12 Jesse Thilo <jthilo@gnu.org>
3087
3088 * src/files.c, src/files.h:
3089 Defined locations of parser files in config.h instead of Makefile.
3090
30911999-02-12 Jesse Thilo <jthilo@gnu.org>
3092
3093 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3094 Defined locations of parser files in config.h instead of Makefile.
3095
30961999-02-09 Jesse Thilo <jthilo@gnu.org>
3097
3098 * Makefile.am:
3099 Removed inappropriate use of $< macro.
3100
31011999-02-05 Jesse Thilo <jthilo@gnu.org>
3102
3103 * po/Makefile.in.in, po/POTFILES.in:
3104 Add `po' directory skeleton.
3105
31061999-01-27 Jesse Thilo <jthilo@gnu.org>
3107
3108 * README: Document help-bison list.
3109
3110 * configure.in: Add check for mkstemp().
3111
31121999-01-20 Jesse Thilo <jthilo@gnu.org>
3113
3114 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3115 Hush a few compiler warnings.
3116
3117 * src/files.c:
3118 Add tryclose(), which verifies that fclose was successful.
3119 Hush a couple of compiler warnings.
3120
31211999-01-20 Jesse Thilo <jthilo@gnu.org>
3122
3123 * Makefile.am, OChangeLog:
3124 ChangeLog is now automatically generated. Include the old version as
3125 OChangeLog.
3126
31271999-01-14 Jesse Thilo <jthilo@gnu.org>
3128
3129 * 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:
3130 Update FSF address.
3131
31321999-01-14 Jesse Thilo <jthilo@gnu.org>
3133
3134 * doc/bison.texinfo: Fix formatting glitch.
3135
3136 * doc/bison.texinfo: Update FSF address.
3137
31381999-01-14 Jesse Thilo <jthilo@gnu.org>
3139
3140 * acconfig.h: Update FSF address.
3141
31421999-01-08 Jesse Thilo <jthilo@gnu.org>
3143
3144 * src/system.h:
3145 Don't define PACKAGE here, since config.h defines it.
3146
31471998-12-30 Jesse Thilo <jthilo@gnu.org>
3148
3149 * src/reader.c: Update copyright date.
3150
3151 * src/main.c:
3152 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3153 favor of output directly to stderr (avoids buffer overruns).
3154
3155 * src/reader.c: Some checks for premature EOF.
3156
3157 * 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:
3158 Use prototypes if the compiler understands them.
3159
3160 * src/files.c: Honor TMPDIR on Unix hosts.
3161 Use prototypes if the compiler understands them.
3162
3163 * src/reader.c:
3164 Fix a couple of buffer overrun bugs.
3165 Use prototypes if the compiler understands them.
3166
3167 * src/system.h: Include unistd.h and ctype.h.
3168 Use #ifdef instead of #if for NLS symbols.
3169
31701998-12-30 Jesse Thilo <jthilo@gnu.org>
3171
3172 * doc/bison.texinfo:
3173 Delete comment "consider using @set for edition number, etc..." since
3174 we now are doing so.
3175
31761998-12-30 Jesse Thilo <jthilo@gnu.org>
3177
3178 * configure.in:
3179 Use prototypes if the compiler understands them.
3180
3181 * NEWS: Document 1.26 highlights.
3182
3183 * Makefile.am: Require Automake 1.3 or later.
3184
3185 * acconfig.h:
3186 Use prototypes if the compiler understands them.
3187
31881998-12-29 Jesse Thilo <jthilo@gnu.org>
3189
3190 * src/version.c:
3191 Use VERSION symbol from automake for version number.
3192
31931998-12-29 Jesse Thilo <jthilo@gnu.org>
3194
3195 * acconfig.h, configure.in, version.cin:
3196 Use VERSION symbol from automake for version number.
3197
31981998-11-28 Jesse Thilo <jthilo@gnu.org>
3199
3200 * Makefile.am:
3201 Distribute original version of simple parser (bison.s1), not built
3202 version (bison.simple).
3203
32041998-11-28 Jesse Thilo <jthilo@gnu.org>
3205
3206 * doc/bison.texinfo: Add info dir entry.
3207
3208 * doc/bison.texinfo:
3209 Let automake put version number into documentation.
3210
32111998-11-26 Jesse Thilo <jthilo@gnu.org>
3212
3213 * src/bison.cld, src/build.com, src/vmshlp.mar:
3214 Add non-RCS files from /gd/gnu/bison.
3215
32161998-11-26 Jesse Thilo <jthilo@gnu.org>
3217
3218 * doc/bison.1:
3219 Document the BISON_HAIRY and BISON_SIMPLE variables.
3220
32211998-11-25 Jesse Thilo <jthilo@gnu.org>
3222
3223 * src/version.c: Build version.c automatically.
3224
3225 * src/reader.c:
3226 Fix token numbering (used to start at 258, not 257).
3227
3228 * src/system.h: Include config.h.
3229
3230 * src/getargs.c: Update bug report address.
3231
3232 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3233 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3234
32351998-11-25 Jesse Thilo <jthilo@gnu.org>
3236
3237 * Makefile.am:
3238 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3239
3240 * configure.in, version.cin:
3241 Build version.c automatically.
3242
3243 * AUTHORS: Add AUTHORS file.
3244
3245 * README: Update bug report address.
3246
3247 * bison.simple:
3248 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3249
3250 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3251 Add automake stuff.
3252
32531998-11-25 Jesse Thilo <jthilo@gnu.org>
3254
3255 * doc/bison.texinfo: Clean up some formatting.
3256
32571998-05-05 Richard Stallman <rms@gnu.org>
3258
3259 * doc/bison.texinfo:
3260 Explain better why to make a pure parser.
3261
32621998-01-05 Richard Stallman <rms@gnu.org>
3263
3264 * src/files.c (openfiles):
3265 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3266 find a temporary directory, if possible. Do not unlink files while
3267 they are open.
3268
32691997-08-25 Richard Stallman <rms@gnu.org>
3270
3271 * src/reader.c (stack_offset;):
3272 Change some warni to warns.
3273
3274 * src/lex.c (literalchar): Use warns, not warni.
3275
32761997-06-28 Richard Stallman <rms@gnu.org>
3277
3278 * src/bison.s1: Add a Bison version comment.
3279
3280 * src/main.c (fatal, warn, berror):
3281 Use program_name.
3282
32831997-06-28 Richard Stallman <rms@gnu.org>
3284
3285 * Makefile.in (bison_version): New variable.
3286 (dist): Use that variable.
3287 (bison.s1): Substitute the Bison version into bison.simple.
3288
3289 * bison.simple: Add a Bison version comment.
3290
32911997-06-18 Richard Stallman <rms@gnu.org>
3292
3293 * src/main.c (fatal, warn, berror):
3294 Make error messages standard.
3295 (toomany): Improve error message text.
3296
3297 * 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:
3298 new.h renamed to alloc.h.
3299
33001997-06-18 Richard Stallman <rms@gnu.org>
3301
3302 * Makefile.in: new.h renamed to alloc.h.
3303
33041997-05-24 Richard Stallman <rms@gnu.org>
3305
3306 * src/lex.c (literalchar):
3307 Fix the code for escaping \, " and '.
3308
3309 (lex): Avoid trouble when there are many chars
3310 to discard in a char literal with just several chars in it.
3311
33121997-05-17 Richard Stallman <rms@gnu.org>
3313
3314 * src/bison.s1:
3315 Use malloc, if using alloca is troublesome.
3316 (YYSTACK_USE_ALLOCA): New flag macro.
3317 Define it for some systems and compilers.
3318 (YYSTACK_ALLOC): New macro.
3319 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3320 If it was malloc'd, free it.
3321
33221997-05-17 Richard Stallman <rms@gnu.org>
3323
3324 * bison.simple:
3325 Use malloc, if using alloca is troublesome.
3326 (YYSTACK_USE_ALLOCA): New flag macro.
3327 Define it for some systems and compilers.
3328 (YYSTACK_ALLOC): New macro.
3329 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3330 If it was malloc'd, free it.
3331
33321997-04-23 Richard Stallman <rms@gnu.org>
3333
3334 * src/bison.s1:
3335 (alloca) [__hpux]: Always define as __builtin_alloca.
3336
33371997-04-23 Richard Stallman <rms@gnu.org>
3338
3339 * bison.simple:
3340 (alloca) [__hpux]: Always define as __builtin_alloca.
3341
33421997-04-22 Richard Stallman <rms@gnu.org>
3343
3344 * src/bison.s1:
3345 [__hpux]: Include alloca.h (right for HPUX 10)
3346 instead of declaring alloca (right for HPUX 9).
3347
3348 * src/bison.s1 (__yy_memcpy):
3349 Declare arg `count' as unsigned int.
3350 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3351
33521997-04-22 Richard Stallman <rms@gnu.org>
3353
3354 * bison.simple:
3355 [__hpux]: Include alloca.h (right for HPUX 10)
3356 instead of declaring alloca (right for HPUX 9).
3357
3358 * bison.simple (__yy_memcpy):
3359 Declare arg `count' as unsigned int.
3360 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3361
33621997-01-03 Richard Stallman <rms@gnu.org>
3363
3364 * src/allocate.c: [__STDC__ or _MSC_VER]:
3365 Declare calloc and realloc to return void *.
3366
33671997-01-02 Richard Stallman <rms@gnu.org>
3368
3369 * src/system.h:
3370 [_MSC_VER]: Include stdlib.h and process.h.
3371 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3372
3373 * src/main.c (main): Return FAILURE as a value.
3374 (printable_version): Declare arg as int, not char.
3375
33761997-01-02 Richard Stallman <rms@gnu.org>
3377
3378 * Makefile.in (dist):
3379 Explicitly check for symlinks, and copy them.
3380
33811996-12-19 Richard Stallman <rms@gnu.org>
3382
3383 * src/files.c:
3384 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3385
33861996-12-18 Paul Eggert <eggert@gnu.org>
3387
3388 * src/bison.s1 (yyparse):
3389 If __GNUC__ and YYPARSE_PARAM are both defined,
3390 declare yyparse to have a void * argument.
3391
33921996-12-18 Paul Eggert <eggert@gnu.org>
3393
3394 * bison.simple (yyparse):
3395 If __GNUC__ and YYPARSE_PARAM are both defined,
3396 declare yyparse to have a void * argument.
3397
33981996-12-17 Richard Stallman <rms@gnu.org>
3399
3400 * src/reduce.c (nbits): Add some casts.
3401
34021996-08-12 Richard Stallman <rms@gnu.org>
3403
3404 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3405
34061996-08-12 Richard Stallman <rms@gnu.org>
3407
3408 * bison.simple: Test _MSDOS as well as _MSDOS_.
3409
34101996-07-31 Richard Stallman <rms@gnu.org>
3411
3412 * src/bison.s1:
3413 [__sun && __i386]: Include alloca.h.
3414
34151996-07-31 Richard Stallman <rms@gnu.org>
3416
3417 * bison.simple:
3418 [__sun && __i386]: Include alloca.h.
3419
34201996-07-30 Richard Stallman <rms@gnu.org>
3421
3422 * src/bison.s1: Comment change.
3423
3424 * src/bison.s1: Test _MSDOS_, not MSDOS.
3425
34261996-07-30 Richard Stallman <rms@gnu.org>
3427
3428 * bison.simple: Comment change.
3429
3430 * bison.simple: Test _MSDOS_, not MSDOS.
3431
34321996-06-01 Richard Stallman <rms@gnu.org>
3433
3434 * 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:
3435 Insert `_' macro around many string constants.
3436
3437 * src/main.c:
3438 Insert `_' macro around many string constants.
3439
3440 (main): Call setlocale, bindtextdomain and textdomain.
3441
3442 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3443 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3444 [ENABLE_NLS]: Include libintl.h.
3445 [ENABLE_NLS] (gettext): Define.
3446 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3447 (N_, PACKAGE, LOCALEDIR): New macros.
3448
34491996-06-01 Richard Stallman <rms@gnu.org>
3450
3451 * POTFILES.in: New file.
3452
3453 * Makefile.in (allocate.o):
3454 Define target explicitly.
3455
3456 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3457 (LDFLAGS): Set to @LDFLAGS@.
3458 (configure): Run autoconf only if preceding `cd' succeeds.
3459 (bison.s1): Redirect output to temporary file then move the
3460 temporary to the target, rather than redirecting directly to bison.s1.
3461 (clean): Remove config.status and config.log.
3462 (distclean): Don't remove config.status here.
3463
34641996-05-12 Richard Stallman <rms@gnu.org>
3465
3466 * src/bison.s1:
3467 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3468
34691996-05-12 Richard Stallman <rms@gnu.org>
3470
3471 * bison.simple:
3472 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3473
34741996-05-11 Richard Stallman <rms@gnu.org>
3475
3476 * src/bison.s1 (__yy_memcpy):
3477 Really reorder the args, as was supposedly done on Feb 14 1995.
3478 (yyparse): Calls changed accordingly.
3479
34801996-05-11 Richard Stallman <rms@gnu.org>
3481
3482 * Makefile.in (dist): Don't use $(srcdir).
3483
3484 * bison.simple (__yy_memcpy):
3485 Really reorder the args, as was supposedly done on Feb 14 1995.
3486 (yyparse): Calls changed accordingly.
3487
34881996-01-27 Richard Stallman <rms@gnu.org>
3489
3490 * src/output.c (output_rule_data):
3491 Test YYERROR_VERBOSE in the conditional
3492 around the definition of ttyname.
3493
34941995-12-29 Richard Stallman <rms@gnu.org>
3495
3496 * src/bison.s1:
3497 Fix line numbers in #line commands.
3498
34991995-12-29 Richard Stallman <rms@gnu.org>
3500
3501 * bison.simple:
3502 Fix line numbers in #line commands.
3503
35041995-12-27 Richard Stallman <rms@gnu.org>
3505
3506 * src/bison.s1 (YYPARSE_PARAM_DECL):
3507 In C++, make it always null.
3508 (YYPARSE_PARAM_ARG): New macro.
3509 (yyparse): Use YYPARSE_PARAM_ARG.
3510
35111995-12-27 Richard Stallman <rms@gnu.org>
3512
3513 * bison.simple (YYPARSE_PARAM_DECL):
3514 In C++, make it always null.
3515 (YYPARSE_PARAM_ARG): New macro.
3516 (yyparse): Use YYPARSE_PARAM_ARG.
3517
35181995-11-29 Richard Stallman <rms@gnu.org>
3519
3520 * doc/bison.texinfo:
3521 Describe literal string tokens, %raw, %no_lines, %token_table.
3522
35231995-11-29 Daniel Hagerty <hag@gnu.org>
3524
3525 * doc/bison.texinfo: Fixed update date
3526
35271995-10-16 Richard Stallman <rms@gnu.org>
3528
3529 * src/version.c: Version 1.25.
3530
35311995-10-16 Richard Stallman <rms@gnu.org>
3532
3533 * NEWS: *** empty log message ***
3534
35351995-10-16 Richard Stallman <rms@gnu.org>
3536
3537 * doc/bison.1, doc/bison.rnh:
3538 Add new options.
3539
35401995-10-15 Richard Stallman <rms@gnu.org>
3541
3542 * src/vmsgetargs.c, src/getargs.c:
3543 Added -n, -k, and -raw switches.
3544 (noparserflag, toknumflag, rawtoknumflag): New variables.
3545
3546 * src/symtab.h (SALIAS):
3547 New #define for adding aliases to %token.
3548 (struct bucket): Added `alias' field.
3549
3550 * src/reduce.c (reduce_grammar):
3551 Revise error message.
3552 (print_notices): Remove final `.' from error message.
3553
3554 * src/reader.c (reader_output_yylsp):
3555 New function.
3556 (readgram): Use `#if 0' around code that accepted %command
3557 inside grammar rules: The documentation doesn't allow it,
3558 and it will fail since the %command processors scan for the next %.
3559 (parse_token_decl): Extended the %token
3560 declaration to allow a multi-character symbol as an alias.
3561 (parse_thong_decl): New function.
3562 (read_declarations): Added %thong declarations.
3563 (read_declarations): Handle NOOP to deal with allowing
3564 % declarations as another means to specify the flags.
3565 (readgram): Allow %prec prior to semantics embedded in a rule.
3566 (skip_to_char, read_declarations, copy_definition)
3567 (parse_token_decl, parse_start_decl, parse_type_decl)
3568 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3569 (get_type_name, copy_guard, copy_action, readgram)
3570 (get_type, packsymbols): Revised most error messages.
3571 Changed `fatal' to `warnxxx' to avoid aborting for error.
3572 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3573 (read_declarations): Improve the error message for
3574 an invalid character. Do not abort.
3575 (read_declarations, copy_guard, copy_action): Use
3576 printable_version to avoid unprintable characters in printed output.
3577 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3578 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3579 Allow the type of a non-terminal can be given
3580 more than once, as long as all specifications give the same type.
3581
3582 * src/output.c:
3583 (output_headers, output_trailers, output, output_gram)
3584 (output_rule_data): Implement noparserflag variable.
3585 Implement toknumflag variable.
3586 (output): Call reader_output_yylsp to output LTYPESTR.
3587
3588 * src/main.c (main):
3589 If reader sees an error, don't process the grammar.
3590 (fatals): Updated to not use VARARGS1.
3591 (printable_version, int_to_string, warn, warni, warns, warnss)
3592 (warnsss): New error reporting functions. Avoid abort for error.
3593
3594 * src/lex.h:
3595 Added THONG and NOOP for alias processing.
3596 Added SETOPT for the new code that allows setting options with %flags.
3597
3598 * src/lex.c:
3599 Include getopt.h. Add some extern decls.
3600 (safegetc): New function to deal with EOF gracefully.
3601 (literalchar); new function to deal with reading \ escapes.
3602 (lex): Use literalchar.
3603 (lex): Implemented "..." tokens.
3604 (literalchar, lex, parse_percent_token): Made tokenbuffer
3605 always contain the token. This includes growing the token
3606 buffer while reading an integer.
3607 (parse_percent_token): Replaced if-else statement with percent_table.
3608 (parse_percent_token): Added % declarations as another
3609 way to specify the flags -n, -l, and -r. Also added hooks for
3610 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3611 major changes to files.c.
3612 (lex) Retain in the incoming stream a character following
3613 an incorrect '/'.
3614 (skip_white_space, lex): Revised most error messages
3615 and changed fatal to warn to avoid aborting.
3616 (percent_table): Added %thong declarations.
3617
3618 * src/gram.h: Comment changes.
3619
3620 * src/files.c (openfiles, open_extra_files, done):
3621 Add faction flag
3622 and actfile file. Handle noparserflag. Both for -n switch.
3623
3624 * src/conflicts.c (resolve_sr_conflict):
3625 Remove use of alloca.
3626
36271995-06-01 Jim Meyering <meyering@gnu.org>
3628
3629 * doc/bison.texinfo: *** empty log message ***
3630
36311995-05-06 Richard Stallman <rms@gnu.org>
3632
3633 * src/bison.s1: Comment change.
3634
36351995-05-06 Richard Stallman <rms@gnu.org>
3636
3637 * bison.simple: Comment change.
3638
36391995-05-03 Richard Stallman <rms@gnu.org>
3640
3641 * src/version.c: Version now 1.24.
3642
3643 * src/bison.s1: Change distribution terms.
3644
3645 * src/version.c: Version now 1.23.
3646
36471995-05-03 Richard Stallman <rms@gnu.org>
3648
3649 * doc/bison.texinfo:
3650 Rewrite "Conditions for Using Bison".
3651 Update version to 1.24.
3652
36531995-05-03 Richard Stallman <rms@gnu.org>
3654
3655 * bison.simple: Change distribution terms.
3656
36571995-02-23 Richard Stallman <rms@gnu.org>
3658
3659 * src/files.c: Test __VMS_POSIX as well as VMS.
3660
36611995-02-14 Jim Meyering <meyering@gnu.org>
3662
3663 * src/bison.s1 (__yy_memcpy):
3664 Renamed from __yy_bcopy to avoid
3665 confusion. Reverse FROM and TO arguments to be consistent with
3666 those of memcpy.
3667
36681995-02-14 Jim Meyering <meyering@gnu.org>
3669
3670 * bison.simple (__yy_memcpy):
3671 Renamed from __yy_bcopy to avoid
3672 confusion. Reverse FROM and TO arguments to be consistent with
3673 those of memcpy.
3674
36751994-11-10 David J. MacKenzie <djm@gnu.org>
3676
3677 * NEWS: reformat
3678
3679 * NEWS: New file.
3680
3681 * Makefile.in (DISTFILES): Include NEWS.
3682
3683 * Makefile.in (DISTFILES):
3684 Include install-sh, not install.sh.
3685
3686 * configure.in: Update to Autoconf v2 macro names.
3687
36881994-10-05 David J. MacKenzie <djm@gnu.org>
3689
3690 * Makefile.in: fix typo
3691
3692 * Makefile.in (prefix, exec_prefix):
3693 Let configure set them.
3694
36951994-09-28 David J. MacKenzie <djm@gnu.org>
3696
3697 * Makefile.in: Set datadir to $(prefix)/share.
3698
36991994-09-15 Richard Stallman <rms@gnu.org>
3700
3701 * src/bison.s1:
3702 Update copyright notice and GPL version.
3703
37041994-09-15 Richard Stallman <rms@gnu.org>
3705
3706 * bison.simple:
3707 Update copyright notice and GPL version.
3708
37091994-07-12 Richard Stallman <rms@gnu.org>
3710
3711 * src/reduce.c, src/reader.c:
3712 entered into RCS
3713
37141994-05-05 David J. MacKenzie <djm@gnu.org>
3715
3716 * Makefile.in: entered into RCS
3717
37181994-03-26 Richard Stallman <rms@gnu.org>
3719
3720 * src/bison.s1: entered into RCS
3721
37221994-03-26 Richard Stallman <rms@gnu.org>
3723
3724 * bison.simple: entered into RCS
3725
37261994-03-25 Richard Stallman <rms@gnu.org>
3727
3728 * src/main.c: entered into RCS
3729
37301994-03-24 Richard Stallman <rms@gnu.org>
3731
3732 * src/conflicts.c: entered into RCS
3733
37341994-01-02 Richard Stallman <rms@gnu.org>
3735
3736 * Makefile.in: *** empty log message ***
3737
37381993-11-21 Richard Stallman <rms@gnu.org>
3739
3740 * src/bison.s1: *** empty log message ***
3741
37421993-11-21 Richard Stallman <rms@gnu.org>
3743
3744 * doc/bison.texinfo: entered into RCS
3745
3746 * doc/bison.texinfo: *** empty log message ***
3747
37481993-11-21 Richard Stallman <rms@gnu.org>
3749
3750 * bison.simple: *** empty log message ***
3751
37521993-10-25 David J. MacKenzie <djm@gnu.org>
3753
3754 * doc/bison.texinfo: *** empty log message ***
3755
37561993-10-19 Richard Stallman <rms@gnu.org>
3757
3758 * src/bison.s1: *** empty log message ***
3759
37601993-10-19 Richard Stallman <rms@gnu.org>
3761
3762 * bison.simple: *** empty log message ***
3763
37641993-10-14 Richard Stallman <rms@gnu.org>
3765
3766 * src/bison.s1: *** empty log message ***
3767
37681993-10-14 Richard Stallman <rms@gnu.org>
3769
3770 * bison.simple: *** empty log message ***
3771
37721993-09-14 David J. MacKenzie <djm@gnu.org>
3773
3774 * doc/bison.texinfo: *** empty log message ***
3775
37761993-09-13 Noah Friedman <friedman@gnu.org>
3777
3778 * Makefile.in: *** empty log message ***
3779
37801993-09-10 Richard Stallman <rms@gnu.org>
3781
3782 * src/conflicts.c: *** empty log message ***
3783
3784 * src/system.h: entered into RCS
3785
37861993-09-10 Richard Stallman <rms@gnu.org>
3787
3788 * doc/bison.1: entered into RCS
3789
37901993-09-06 Noah Friedman <friedman@gnu.org>
3791
3792 * src/version.c: entered into RCS
3793
37941993-09-06 Noah Friedman <friedman@gnu.org>
3795
3796 * Makefile.in: *** empty log message ***
3797
37981993-07-30 David J. MacKenzie <djm@gnu.org>
3799
3800 * Makefile.in: *** empty log message ***
3801
38021993-07-24 Richard Stallman <rms@gnu.org>
3803
3804 * src/bison.s1: *** empty log message ***
3805
38061993-07-24 Richard Stallman <rms@gnu.org>
3807
3808 * bison.simple: *** empty log message ***
3809
38101993-07-08 David J. MacKenzie <djm@gnu.org>
3811
3812 * Makefile.in: *** empty log message ***
3813
38141993-07-04 Richard Stallman <rms@gnu.org>
3815
3816 * src/bison.s1: *** empty log message ***
3817
38181993-07-04 Richard Stallman <rms@gnu.org>
3819
3820 * bison.simple: *** empty log message ***
3821
38221993-06-26 David J. MacKenzie <djm@gnu.org>
3823
3824 * src/getargs.c: entered into RCS
3825
38261993-06-26 David J. MacKenzie <djm@gnu.org>
3827
3828 * doc/bison.texinfo: *** empty log message ***
3829
3830 * doc/bison.1: New file.
3831
38321993-06-25 Richard Stallman <rms@gnu.org>
3833
3834 * src/getargs.c: New file.
3835
38361993-06-16 Richard Stallman <rms@gnu.org>
3837
3838 * src/bison.s1: *** empty log message ***
3839
38401993-06-16 Richard Stallman <rms@gnu.org>
3841
3842 * bison.simple: *** empty log message ***
3843
38441993-06-03 Richard Stallman <rms@gnu.org>
3845
3846 * src/bison.s1: New file.
3847
38481993-06-03 Richard Stallman <rms@gnu.org>
3849
3850 * doc/bison.texinfo: *** empty log message ***
3851
38521993-06-03 Richard Stallman <rms@gnu.org>
3853
3854 * bison.simple: New file.
3855
38561993-05-19 Richard Stallman <rms@gnu.org>
3857
3858 * doc/bison.texinfo: New file.
3859
38601993-05-07 Noah Friedman <friedman@gnu.org>
3861
3862 * Makefile.in: *** empty log message ***
3863
38641993-04-28 Noah Friedman <friedman@gnu.org>
3865
3866 * src/reader.c: *** empty log message ***
3867
38681993-04-23 Noah Friedman <friedman@gnu.org>
3869
3870 * src/alloc.h: entered into RCS
3871
38721993-04-20 David J. MacKenzie <djm@gnu.org>
3873
3874 * src/version.c: *** empty log message ***
3875
3876 * src/files.c, src/allocate.c:
3877 entered into RCS
3878
3879 * src/reader.c: *** empty log message ***
3880
3881 * src/lex.c: entered into RCS
3882
3883 * src/conflicts.c: New file.
3884
3885 * src/symtab.c: entered into RCS
3886
3887 * src/alloc.h: New file.
3888
3889 * src/LR0.c: entered into RCS
3890
38911993-04-18 Noah Friedman <friedman@gnu.org>
3892
3893 * src/reader.c: New file.
3894
3895 * src/version.c: *** empty log message ***
3896
38971993-04-18 Noah Friedman <friedman@gnu.org>
3898
3899 * Makefile.in: *** empty log message ***
3900
39011993-04-17 Noah Friedman <friedman@gnu.org>
3902
3903 * Makefile.in: *** empty log message ***
3904
39051993-04-15 Richard Stallman <rms@gnu.org>
3906
3907 * src/main.c, src/files.c:
3908 New file.
3909
39101993-04-15 Noah Friedman <friedman@gnu.org>
3911
3912 * configure.in: entered into RCS
3913
3914 * configure.in: *** empty log message ***
3915
3916 * configure.in: New file.
3917
39181993-04-14 Richard Stallman <rms@gnu.org>
3919
3920 * Makefile.in: New file.
3921
39221993-04-13 Richard Stallman <rms@gnu.org>
3923
3924 * src/version.c: New file.
3925
39261993-03-25 Richard Stallman <rms@gnu.org>
3927
3928 * src/output.c: entered into RCS
3929
39301992-09-25 Richard Stallman <rms@gnu.org>
3931
3932 * configure.bat: entered into RCS
3933
39341992-06-22 Richard Stallman <rms@gnu.org>
3935
3936 * src/vmsgetargs.c: entered into RCS
3937
39381992-06-22 Richard Stallman <rms@gnu.org>
3939
3940 * doc/bison.rnh: entered into RCS
3941
39421992-04-20 David J. MacKenzie <djm@gnu.org>
3943
3944 * README: entered into RCS
3945
39461992-01-22 Richard Stallman <rms@gnu.org>
3947
3948 * src/machine.h: entered into RCS
3949
39501991-12-21 Richard Stallman <rms@gnu.org>
3951
3952 * src/lalr.c, src/closure.c:
3953 entered into RCS
3954
39551991-12-20 Richard Stallman <rms@gnu.org>
3956
3957 * src/state.h: entered into RCS
3958
39591991-12-18 Richard Stallman <rms@gnu.org>
3960
3961 * src/print.c, src/nullable.c, src/derives.c:
3962 entered into RCS
3963
39641991-11-03 David J. MacKenzie <djm@gnu.org>
3965
3966 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3967 entered into RCS
3968
39691988-09-09 Richard Stallman <rms@gnu.org>
3970
3971 * src/bison.hairy: entered into RCS
3972
39731987-12-16 Richard Stallman <rms@gnu.org>
3974
3975 * REFERENCES: entered into RCS