]> git.saurik.com Git - bison.git/blame - ChangeLog
* lib/quotearg.h (quotearg_n, quotearg_n_style):
[bison.git] / ChangeLog
CommitLineData
f4e421e6
AD
12001-11-27 Paul Eggert <eggert@twinsun.com>
2
3 * lib/quotearg.h (quotearg_n, quotearg_n_style):
4 First arg is int, not unsigned.
5 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
6 (SIZE_MAX, UINT_MAX): New macros.
7 (quotearg_n_options): Abort if N is negative.
8 Avoid overflow check on hosts where size_t is 64 bits and int
9 is 32 bits, as overflow is impossible there.
10 Fix off-by-one typo that caused unnecessary reallocation.
11
7093d0f5
AD
122001-11-29 Paul Eggert <eggert@twinsun.com>
13
14 Name space cleanup in generated parser.
15
16 * doc/bison.texinfo (Bison Parser): Discuss system headers
17 and their effect on the user name space.
18
19 * src/bison.simple:
20 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
21 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
22 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
23
24 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
25 on user names when possible.
26
27 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
28 Simplify test for whather <alloca.h> exists.
29
30 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
31
32 (<stdio.h>): Include if YYDEBUG.
33
34 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
35 ! defined (yyoverflow) && ! defined (yymemcpy).
36
37 (yymemcpy, yyparse): Rename local variables as needed so that
38 they all begin with 'yy'.
39
40 (yystrlen, yystpcpy): New functions.
41
42 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
43 All uses changed.
44
45 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
46 instead of relying on string.h functions. Use YYSTACK_ALLOC
47 and YYSTACK_FREE instead of malloc and free.
48
fd51e5ff
AD
492001-11-30 Akim Demaille <akim@epita.fr>
50
51 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
52 before their first uses.
53 (YYBISON, YYPURE): Move to the top of the output.
54
7d13ff5f
AD
552001-11-30 Akim Demaille <akim@epita.fr>
56
57 * tests/reduce.at (Useless Nonterminals): Fix.
58
892a3995
AD
592001-11-30 Akim Demaille <akim@epita.fr>
60
61 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
62 if body instead of `;' to pacify GCC's warnings.
63
68f1e3ed
AD
642001-11-30 Akim Demaille <akim@epita.fr>
65
66 Instead of mapping the LHS of unused rules to -1, keep the LHS
67 valid, but flag the rules as invalid.
68
69 * src/gram.h (rule_t): `useful' is a new member.
70 * src/print.c (print_grammar): Adjust.
71 * src/derives.c (set_derives): Likewise.
72 * src/reader.c (packgram, reduce_output): Likewise.
73 * src/reduce.c (reduce_grammar_tables): Likewise.
74 * tests/reduce.at (Underivable Rules, Useless Rules): New.
75
d2d1b42b
AD
762001-11-30 Akim Demaille <akim@epita.fr>
77
78 * src/reduce.c (reduce_output): Formatting changes.
79 * src/print.c (print_results, print_grammar): Likewise.
80 * tests/regression.at (Rule Line Numbers)
81 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
82
760b53a8
AD
832001-11-30 Akim Demaille <akim@epita.fr>
84
85 * src/reduce.c (nonterminals_reduce): Instead of throwing away
86 useless nonterminals, move them at the end of the symbol arrays.
87 (reduce_output): Adjust.
88 * tests/reduce.at (Useless Nonterminals): Adjust.
89
00238958
AD
902001-11-30 Akim Demaille <akim@epita.fr>
91
92 * src/reduce.c: Various comment/formatting changes.
93 (nonterminals_reduce): New, extracted from...
94 (reduce_grammar_tables): here.
95 (reduce_grammar): Call nonterminals_reduce.
96
396452de
PE
972001-11-29 Paul Eggert <eggert@twinsun.com>
98
99 * src/bison.simple (YYSTACK_REALLOC): Remove.
100 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
101 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
102 New macros.
103 (union yyalloc): New type.
104 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
105 an arbitrary restriction on hosts where size_t is wider than int.
106
107 (yyparse): Don't dump core if alloca or malloc fails; instead, report
108 a parser stack overflow. Allocate just one block of memory for all
109 three stacks, instead of allocating three blocks; this typically is
110 faster and reduces fragmentation.
111
112 Do not limit the number of items in the stack to a value that fits
113 in 'int', as this is an arbitrary limit on hosts with 64-bit
114 size_t and 32-bit int.
115
147e184c
MA
1162001-11-29 Marc Autret <autret_m@epita.fr>
117
118 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
119 of defining YYERROR_VERBOSE.
120 [AT_DATA]: $4 is now out of C declarations in the prologue.
121
426cf563
MA
1222001-11-28 Marc Autret <autret_m@epita.fr>
123
124 * src/reader.c (parse_dquoted_param): New.
125 (parse_skel_decl): Use it.
126 * src/lex.h: Add its prototype.
127 * src/lex.c (literalchar): Become not static.
128
c7925b99
MA
1292001-11-28 Marc Autret <autret_m@epita.fr>
130
131 * src/output.h: And put its extern declaration here.
132 * src/output.c (error_verbose): Define here.
133 (prepare): Echo name modification.
134 * src/getargs.h: Clean its extern declaration.
135 * src/getargs.c (error_verbose_flag): Remove.
136 (getargs): Remove case 'e'.
137 * src/options.c (option_table): 'error-verbose' is now seen as simple
138 percent option.
139 Include output.h.
140
141 * src/reader.c (read_declarations): Remove case tok_include.
142 (parse_include_decl): Remove.
143 * src/lex.h (token_t): Remove tok_include.
144 * src/options.c (option_table): 'include' is now a simple command line
145 option.
146
5b5d1929
MA
1472001-11-28 Marc Autret <autret_m@epita.fr>
148
149 * src/bison.simple: Adjust muscle names.
150 * src/muscle_tab.c (muscle_init): Also rename the muscles.
151 * src/output.c (prepare): s/_/-/ for the muscles names.
152 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
153
8850be4b
MA
1542001-11-28 Marc Autret <autret_m@epita.fr>
155
156 * src/bison.simple: Fix debug.
157 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
158
4a38e613
AD
1592001-11-28 Akim Demaille <akim@epita.fr>
160
161 * src/LR0.c (shifts_new): New.
162 (save_shifts, insert_start_shift, augment_automaton): Use it.
163
4b35e1c1
AD
1642001-11-28 Akim Demaille <akim@epita.fr>
165
166 * src/closure.c (closure): `b' and `ruleno' denote the same value:
167 keep ruleno only.
168
d2b04478
AD
1692001-11-28 Akim Demaille <akim@epita.fr>
170
171 * src/closure.c (closure): Instead of looping over word in array
172 then bits in words, loop over bits in array.
173
2c4c30aa
AD
1742001-11-28 Akim Demaille <akim@epita.fr>
175
176 * src/closure.c (closure): No longer optimize the special case
177 where all the bits of `ruleset[r]' are set to 0, to make the code
178 clearer.
179
576890b7
AD
1802001-11-28 Akim Demaille <akim@epita.fr>
181
182 * src/closure.c (closure): `r' and `c' are new variables, used to
183 de-obfuscate accesses to RULESET and CORE.
184
cb487d7d
AD
1852001-11-28 Akim Demaille <akim@epita.fr>
186
187 * src/reduce.c (reduce_print): Use ngettext.
188 (dump_grammar): Improve the trace accuracy.
189
6013d43f
AD
1902001-11-28 Akim Demaille <akim@epita.fr>
191
192 * src/reduce.c (dump_grammar): Don't translate trace messages.
193
cb4956ee
AD
1942001-11-28 Akim Demaille <akim@epita.fr>
195
196 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
197 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
198 as all tags are free'ed afterwards.
199 From Enrico Scholz.
200
648185ab
PE
2012001-11-27 Paul Eggert <eggert@twinsun.com>
202
203 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
204 use alloca when we didn't want to, and vice versa.
205
68254a03
MA
2062001-11-27 Marc Autret <autret_m@epita.fr>
207
9113b58f
AD
208 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
209 initialization.
68254a03
MA
210 * src/output.c (prepare): Remove its update.
211
04d843a2
MA
2122001-11-27 Marc Autret <autret_m@epita.fr>
213
214 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
215 Use %error-verbose.
216
d2079671 2172001-11-27 Marc Autret <autret_m@epita.fr>
eeeb962b
MA
218
219 * src/bison.simple: Remove YYERROR_VERBOSE using.
220 Use %%error_verbose.
221 (yyparse): Likewise.
222 * src/output.c (prepare): Give its final value.
223 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
224 * src/getargs.h: Add its extern declaration.
225 * src/getargs.c (error_verbose_flag): New int.
226 (getargs): Update to catch new case.
227 * src/options.c (option_table): 'error-verbose' is a new option.
228 (shortopts): Update.
229
e0327bc8
AD
2302001-11-27 Akim Demaille <akim@epita.fr>
231
232 * src/system.h: Use intl/libgettext.h.
233 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
234
000f1a3c
AD
2352001-11-27 Akim Demaille <akim@epita.fr>
236
237 * tests/torture.at (Exploding the Stack Size with Malloc):
238 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
239
26cfe0be
AD
2402001-11-27 Akim Demaille <akim@epita.fr>
241
242 * src/files.c: Include error.h.
243 Reported by Hans Aberg.
244
f6bd5427
MA
2452001-11-26 Marc Autret <autret_m@epita.fr>
246
d2079671 247 * src/reader.c (parse_include_decl): New, not yet implemented.
f6bd5427
MA
248 (read_declarations): Add case tok_include.
249 * src/getargs.h (include): Add its extern definition.
250 * src/getargs.c (include): New const char *.
251 (getargs): Add case '-I'.
252 * src/options.c (option_table): Add include as command line and
253 percent option.
254 * src/lex.h (token_t): Add tok_include.
255
2ca209c1
AD
2562001-11-26 Akim Demaille <akim@epita.fr>
257
258 * src/reader.c (readgram): Make sure rules for mid-rule actions
259 have a lineno equal to that of their host rule.
260 Reported by Hans Aberg.
261 * tests/regression.at (Rule Line Numbers): New.
262
0e41b407
AD
2632001-11-26 Akim Demaille <akim@epita.fr>
264
265 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
266 size_ts.
267
2682001-11-26 Akim Demaille <akim@epita.fr>
269
270 * src/complain.c, src/complain.h (error): Remove, provided by
271 lib/error.[ch].
272
e0c40012
AD
2732001-11-26 Akim Demaille <akim@epita.fr>
274
275 * src/reader.c (read_declarations): Don't abort on tok_illegal,
276 issue an error message.
277 * tests/regression.at (Invalid %directive): New.
278 Reported by Hans Aberg.
279
5e147124
AD
2802001-11-26 Akim Demaille <akim@epita.fr>
281
282 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
283 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
284
a034c8b8
AD
2852001-11-26 Akim Demaille <akim@epita.fr>
286
287 * src/conflicts.c (conflicts_print): Don't complain at all when
288 there are no reduce/reduce conflicts, and as many shift/reduce
289 conflicts as expected.
290 * tests/regression.at (%expect right): Adjust.
291
c64a20f3
AD
2922001-11-23 Akim Demaille <akim@epita.fr>
293
294 * lib/alloca.c: Update, from fileutils.
295
5b0d29bb
AD
2962001-11-23 Akim Demaille <akim@epita.fr>
297
298 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
299
722c4bfe
AD
3002001-11-23 Akim Demaille <akim@epita.fr>
301
302 * src/system.h: Include alloca.h.
303 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
304
6255b435
AD
3052001-11-23 Akim Demaille <akim@epita.fr>
306
307 * src/print_graph.c (print_actions): Remove `rule', unused.
308 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
309 pacify GCC's signed < unsigned warnings.
310 * src/closure.c (itemsetsize): Likewise.
311 * src/reader.c (symbol_list_new): Static.
312
b29b2ed5
AD
3132001-11-23 Akim Demaille <akim@epita.fr>
314
315 Attaching lineno to buckets is stupid, since only one copy of each
316 symbol is kept, only the line of the first occurrence is kept too.
317
318 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
319 * src/reader.c (rline_allocated): Remove, unused.
320 (symbol_list): Have a `line' member.
321 (symbol_list_new): New.
322 (readgram): Use it.
323 * src/print.c (print_grammar): Output the rule line numbers.
324 * tests/regression.at (Solved SR Conflicts)
325 (Unresolved SR Conflicts): Adjust.
326 Reported by Hans Aberg.
327
a81b1d4a
MA
3282001-11-22 Marc Autret <autret_m@epita.fr>
329
330 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
331
c1ecb3c1
MA
3322001-11-22 Marc Autret <autret_m@epita.fr>
333
334 * src/muscle_tab.c (muscle_init): Remove initialization of
335 skeleton muscle.
336 * src/output.c (output_master_parser): Do it here.
337
fbe01355
AD
3382001-11-20 Akim Demaille <akim@epita.fr>
339
340 * po/sv.po: New.
341 * configure.in (ALL_LINGUAS): Adjust.
342 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
343 longer contains strings to translate.
344
81e895c0
AD
3452001-11-19 Akim Demaille <akim@epita.fr>
346
347 * src/conflicts.c (conflicts_print): Add a missing \n.
348
6bb1878b
AD
3492001-11-19 Akim Demaille <akim@epita.fr>
350
351 * src/nullable.c (nullable_print): New.
352 (set_nullable): Call it when tracing.
353 Better locality of variables.
354
d9ec2d07
AD
3552001-11-19 Akim Demaille <akim@epita.fr>
356
357 * src/print.c (print_actions): Better locality of variables.
358
720e5c1b
AD
3592001-11-19 Akim Demaille <akim@epita.fr>
360
361 * src/derives.c (print_derives): Fix and enrich.
362 * src/closure.c (print_fderives): Likewise.
363
fb908786
AD
3642001-11-19 Akim Demaille <akim@epita.fr>
365
366 * src/closure.c (itemsetend): Remove, replaced with...
367 (itemsetsize): new.
368
125ecb56
AD
3692001-11-19 Akim Demaille <akim@epita.fr>
370
371 * src/LR0.c (kernel_end): Remove, replaced with...
372 (kernel_size): new.
373
d8cf039f
AD
3742001-11-19 Akim Demaille <akim@epita.fr>
375
376 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
377 to clarify.
378
7bec0760
AD
3792001-11-19 Akim Demaille <akim@epita.fr>
380
381 * src/closure.c (closure): Use arrays instead of pointers to clarify.
382
c87d4863
AD
3832001-11-19 Akim Demaille <akim@epita.fr>
384
385 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
386 trace messages.
387 * src/LR0.c: Likewise.
388 (allocate_itemsets): Use arrays instead of pointers to clarify.
389
9bfe901c
AD
3902001-11-19 Akim Demaille <akim@epita.fr>
391
392 * src/getargs.c (statistics_flag): Replace with...
393 (trace_flag): New.
394 (longopts): Accept --trace instead of --statistics.
395 * src/getargs.h, src/options.c: Adjust.
396 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
397 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
398
97db7bd4
AD
3992001-11-19 Akim Demaille <akim@epita.fr>
400
cc72668c 401 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
97db7bd4
AD
402 pointers to clarify the code.
403 (save_reductions, save_shifts): Factor common parts of alternatives.
404
2c5f66ed
AD
4052001-11-19 Akim Demaille <akim@epita.fr>
406
407 * src/LR0.c (new_state, get_state): Complete TRACE code.
408 * src/closure.c: Include `reader.h' to get `tags', needed by the
409 trace code.
410 Rename the conditional DEBUG as TRACE.
411 Output consistently TRACEs to stderr, not stdout.
412 * src/derives.c: Likewise.
413 * src/reduce.c: (inaccessable_symbols): Using if is better style
414 than goto.
415 Use `#if TRACE' instead of `#if 0' for tracing code.
416
300f275f
AD
4172001-11-19 Akim Demaille <akim@epita.fr>
418
419 * src/system.h (LIST_FREE, shortcpy): New.
420 * src/LR0.c: Use them.
421 * src/output.c (free_itemsets, free_reductions, free_shifts):
422 Remove, replaced by LIST_FREE.
423
f59c437a
AD
4242001-11-19 Akim Demaille <akim@epita.fr>
425
426 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
427 (REDUCTIONS_ALLOC): New.
428 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
429 allocation.
430
6986fd9e
AD
4312001-11-19 Akim Demaille <akim@epita.fr>
432
433 * src/LR0.c (new_state): Complete trace code.
434 * src/nullable.c (set_nullable): Don't translate traces.
435
4bc30f78
AD
4362001-11-19 Akim Demaille <akim@epita.fr>
437
438 * src/print_graph.c (print_core): Better locality of variables.
439 * src/print.c (print_core): Likewise.
440
08a946e0
AD
4412001-11-19 Akim Demaille <akim@epita.fr>
442
443 * src/vcg.c: You do the output, so you are responsible of the
444 handling of VCG syntax, in particular: use quotearg.
445 * src/print_graph.c: Don't.
446 (print_actions): Don't output the actions as part of the nodes,
447 since that's the job of the edges.
448 (print_state): Don't output by hand: fill the node description,
9bfe901c 449 and ask for its output.
08a946e0 450
f0473484
AD
4512001-11-19 Akim Demaille <akim@epita.fr>
452
cc72668c
AD
453 * src/bison.simple (yyparse): When verbosely reporting an error,
454 no longer put additional quotes around token names.
f0473484
AD
455 * tests/calc.at: Adjust.
456
e41dc700
AD
4572001-11-19 Akim Demaille <akim@epita.fr>
458
459 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
460 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
461 * src/output.c: Adjust.
462
652a871c
AD
4632001-11-19 Akim Demaille <akim@epita.fr>
464
465 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
466 (rule_t): this.
467 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
468
b2ed6e58
AD
4692001-11-19 Akim Demaille <akim@epita.fr>
470
471 * src/gram.h (rule_t): New.
472 (rule_table): New.
473 (rrhs, rlhs): Remove, part of state_t.
474 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
475 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
476 * src/reader.c, src/reduce.c: Adjust.
477
edad7067
AD
4782001-11-19 Akim Demaille <akim@epita.fr>
479
480 * src/reader.c (symbols_output): New, extracted from...
481 (packsymbols): Here.
482 (reader): Call it.
483
3feec034
AD
4842001-11-19 Akim Demaille <akim@epita.fr>
485
486 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
487 (maxrhs): this new function.
488
ddcd5fdf
AD
4892001-11-19 Akim Demaille <akim@epita.fr>
490
cc72668c 491 * src/lalr.c (F): New macro to access the variable F.
ddcd5fdf
AD
492 Adjust.
493
bb527fc2
AD
4942001-11-19 Akim Demaille <akim@epita.fr>
495
cc72668c 496 * src/lalr.h (LA): New macro to access the variable LA.
bb527fc2
AD
497 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
498 * src/lalr.c: Adjust.
499
a845a697
AD
5002001-11-19 Akim Demaille <akim@epita.fr>
501
502 * src/lalr.c (initialize_LA): Only initialize LA. Let...
503 (set_state_table): handle the `lookaheads' members.
504
f004bf6a
AD
5052001-11-19 Akim Demaille <akim@epita.fr>
506
cc72668c
AD
507 * src/lalr.h (lookaheads): Removed array, whose contents is now
508 a member of...
f004bf6a
AD
509 (state_t): this structure.
510 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
511 Adjust.
512
de326cc0
AD
5132001-11-19 Akim Demaille <akim@epita.fr>
514
cc72668c
AD
515 * src/lalr.h (consistent): Removed array, whose contents is now
516 a member of...
de326cc0
AD
517 (state_t): this structure.
518 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
519 Adjust.
520
90b4416b
AD
5212001-11-19 Akim Demaille <akim@epita.fr>
522
cc72668c
AD
523 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
524 contents are now members of...
90b4416b
AD
525 (state_t): this structure.
526 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
527 Adjust.
528
9703cc49
AD
5292001-11-19 Akim Demaille <akim@epita.fr>
530
531 * src/lalr.h (state_t): New.
532 (state_table): Be a state_t * instead of a core **.
533 (accessing_symbol): Remove, part of state_t.
534 * src/lalr.c: Adjust.
535 (set_accessing_symbol): Merge into...
536 (set_state_table): this.
537 * src/print_graph.c, src/conflicts.c: Adjust.
538
d803322e
AD
5392001-11-14 Akim Demaille <akim@epita.fr>
540
541 * tests/calc.at, tests/output.at, tests/regression.at,
542 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
543 now the tests are run in private dirs, therefore AC_CLEANUP and
544 family can be simplified to 0-ary.
545 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
546 use abs. path to find config.h.
547 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
548 stderr, there can be way too much random noise.
549 Instead pass -Werror to GCC and rely on the exit status.
550 Reported by Wolfram Wagner.
551
3d76b07d
AD
5522001-11-14 Akim Demaille <akim@epita.fr>
553
554 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
555 defined only if yyoverflow is defined, to avoid `warning: unused
556 variable `yyvs1''.
557 Reported by The Test Suite.
558
09b503c8
AD
5592001-11-14 Akim Demaille <akim@epita.fr>
560
561 * src/print.c: Include reduce.h.
562 Reported by Hans Aberg.
563
5642001-11-14 Akim Demaille <akim@epita.fr>
565
566 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
567 Revert a previous patch: these are really const.
568 * src/conflicts.c (conflict_report): Additional useless pair of
569 braces to pacify GCC's warnings for `if () if () {} else {}'.
570 * src/lex.c (parse_percent_token): Replace equal_offset with
571 arg_offset.
572 arg is const.
573 Be sure to strdup `arg' when used, since there is no reason for
574 token_buffer not to change.
575
0f37a994
AD
5762001-11-14 Akim Demaille <akim@epita.fr>
577
578 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
579 definition.
580 * src/main.c (main): Use them.
581 Suggested by Hans Aberg.
582
d39d93b8
AD
5832001-11-12 Akim Demaille <akim@epita.fr>
584
585 * src/system.h (ngettext): Now that we use ngettext, be sure to
586 provide a default definition when NLS are not used.
587
9edcd895
AD
5882001-11-12 Akim Demaille <akim@epita.fr>
589
590 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
591 Use @kbd to denote user input.
592 (Language and Grammar): ANSIfy the example.
593 Adjust its layout for info/notinfo.
594 (Location Tracking Calc): Output error messages to stderr.
595 Output locations in a more GNUtically correct way.
596 Fix a couple of Englishos.
597 Adjust @group/@end group pairs.
598
7da99ede
AD
5992001-11-12 Akim Demaille <akim@epita.fr>
600
601 %expext was not functioning at all.
602
603 * src/conflicts.c (expected_conflicts): Set to -1.
604 (conflict_report): Use ngettext.
605 (conflicts_print): Check %expect and make its violation an error.
606 * doc/bison.texinfo (Expect Decl): Adjust.
607 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
608 * tests/regression.at (%expect not enough, %expect right)
609 (%expect too much): New.
610
ba9dda1a
AD
6112001-11-12 Akim Demaille <akim@epita.fr>
612
613 * tests/regression.at (Conflicts): Rename as...
614 (Unresolved SR Conflicts): this.
615 (Solved SR Conflicts): New.
616
337c5bd1
AD
6172001-11-12 Akim Demaille <akim@epita.fr>
618
619 * src/reduce.c (print_results): Rename as...
620 (reduce_output): This.
621 Output to OUT, passed as argument, instead of output_obstack.
622 (dump_grammar): Likewise.
623 (reduce_free): New.
624 Also free V1.
625 (reduce_grammar): No longer call reduce_output, since...
626 * src/print.c (print_results): do it.
627 * src/main.c (main): Call reduce_free;
628
c73a41af
AD
6292001-11-12 Akim Demaille <akim@epita.fr>
630
631 * src/conflicts.c (print_reductions): Accept OUT as argument.
632 Output to it, not to output_obstack.
633 * src/print.c (print_actions): Adjust.
634
0df87bb6
AD
6352001-11-12 Akim Demaille <akim@epita.fr>
636
637 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
638 the result instead of using...
639 (src_total, rrc_total, src_count, rrc_count): Remove.
640 (any_conflicts): Remove.
641 (print_conflicts): Split into...
642 (conflicts_print, conflicts_output): New.
643 * src/conflicts.h: Adjust.
644 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
0f37a994 645 * src/print.c (print_grammar): Issue `\n' between two rules.
0df87bb6
AD
646 * tests/regression.at (Conflicts): New.
647 Reported by Tom Lane.
648
e4d3d4de
AD
6492001-11-12 Akim Demaille <akim@epita.fr>
650
651 * tests/regression.at (Invalid input): Remove, duplicate with
652 ``Invalid input: 1''.
653
6d7d248e
AD
6542001-11-12 Akim Demaille <akim@epita.fr>
655
656 * tests/torture.at (AT_DATA_STACK_TORTURE)
657 (Exploding the Stack Size with Alloca)
658 (Exploding the Stack Size with Malloc): New.
659
e9e4c321
AD
6602001-11-12 Akim Demaille <akim@epita.fr>
661
662 * src/bison.simple (YYSTACK_REALLOC): New.
663 (yyparse) [!yyoverflow]: Use it and free the old stack.
0f37a994 664 Reported by Per Allansson.
e9e4c321 665
5f7e0832
AD
6662001-11-12 Pascal Bart <pascal.bart@epita.fr>
667
668 * src/bison.simple: Define type yystype instead of YYSTYPE, and
669 define CPP macro, which substitute YYSTYPE by yystype.
670 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
671 with yyltype/YYLTYPE. This allows inclusion of the generated
672 header within the parser if the compiler, such as GGC, accepts
673 multiple equivalent #defines.
674 From Akim.
675
e3f1699f
AD
6762001-11-05 Akim Demaille <akim@epita.fr>
677
678 * src/reader.c (symbols_output): New, extracted from...
679 (packsymbols): here.
680 (reader): Adjust.
681
65be0866
AD
6822001-11-05 Akim Demaille <akim@epita.fr>
683
684 * src/lex.c (parse_percent_token): s/quotearg/quote/.
685
e4d910bf
AD
6862001-11-05 Akim Demaille <akim@epita.fr>
687
688 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
689 pattern.
690
951366c1
AD
6912001-11-05 Akim Demaille <akim@epita.fr>
692
693 * src/options.h (struct option_table_struct): set_flags is void*.
694 * src/options.c (longopts): Support `--output' and `%output'.
695 (usage): Adjust.
696 * src/lex.h (tok_setopt): Remove, replaced with...
697 (tok_intopt, tok_stropt): these new guys.
698 * src/lex.c (getopt.h): Not needed.
699 (token_buffer, unlexed_token_buffer): Not const.
700 (percent_table): Promote `-' over `_' in directive names.
701 Active `%name-prefix', `file-prefix', and `output'.
702 (parse_percent_token): Accept possible arguments to directives.
703 Promote `-' over `_' in directive names.
704
d8988b2f
AD
7052001-11-04 Akim Demaille <akim@epita.fr>
706
707 * doc/bison.texinfo (Decl Summary): Split the list into
708 `directives for grammars' and `directives for bison'.
709 Sort'em.
710 Add description of `%name-prefix', `file-prefix', and `output'.
711 Promote `-' over `_' in directive names.
712 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
713 Simplify the description of `--name-prefix'.
714 Promote `-' over `_' in directive names.
715 Promote `--output' over `--output-file'.
716 Fix the description of `--defines'.
717 * tests/output.at: Exercise %file-prefix and %output.
718
6468d18e
AD
7192001-11-02 Akim Demaille <akim@epita.fr>
720
721 * doc/refcard.tex: Update.
722
6b7e85b9
AD
7232001-11-02 Akim Demaille <akim@epita.fr>
724
725 * src/symtab.h (SUNDEF): New.
726 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
727 stand for `uninitialized', instead of 0.
728 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
729 * src/lex.c (lex): Adjust.
730
731 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
732 Number it 0.
733 Let yylex return it instead of a plain 0.
734 Reported by Dick Streefland.
735
cd5aafcf
AD
7362001-11-02 Akim Demaille <akim@epita.fr>
737
738 * tests/regression.at (Mixing %token styles): New test.
739
037ca2f1
AD
7402001-11-02 Akim Demaille <akim@epita.fr>
741
742 * src/reader.c (parse_thong_decl): Formatting changes.
743 (token_translations_init): New, extracted from...
744 (packsymbols): Here.
745 Adjust.
746
270a173c
AD
7472001-11-01 Akim Demaille <akim@epita.fr>
748
749 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
750 Check that `9foo.y' produces correct cpp guards.
751 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
752 guards.
753 Reported by Wwp.
754
561f9a30
AD
7552001-11-01 Akim Demaille <akim@epita.fr>
756
757 * tests/regression.at (Invalid input: 2): New.
758 * src/lex.c (unlexed_token_buffer): New.
759 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
760 too.
761 Reported by Wwp.
762
f987e9d2
AD
7632001-11-01 Akim Demaille <akim@epita.fr>
764
765 * tests/calc.at: Catch up with 1.30.
766 * configure.in: Bump to 1.49a.
767 Adjust to newer Autotest.
768
0846f581
PB
7692001-10-19 Pascal Bart <pascal.bart@epita.fr>
770
771 * src/conflicts.c: Move global variables rrc_total and src_total ...
772 (print_conflicts): here.
773 * src/output.c (output): Free global variable user_toknums.
774 * src/lex.c (token_obstack): Become static.
775
3c1a79b3
AD
7762001-10-18 Akim Demaille <akim@epita.fr>
777
778 * tests/atlocal.in (GCC): Add.
779 * tests/calc.at: s/m4_match/m4_bmatch/.
780 s/m4_patsubst/m4_bpatsubst/.
781 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
782 * configure.in: AC_SUBST(GCC).
783
5d52e7d0
MA
7842001-10-14 Marc Autret <autret_m@epita.fr>
785
786 * src/options.c (create_long_option_table): Fix.
787
631aa1d3
AD
7882001-10-10 Akim Demaille <akim@epita.fr>
789
790 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
791
f6ec6d13
AD
7922001-10-04 Akim Demaille <akim@epita.fr>
793
794 * src/reader.c (parse_union_decl): Push the caracters in
795 union_obstack, not attrs_obstack.
796
342b8b6e
AD
7972001-10-04 Akim Demaille <akim@epita.fr>
798
799 Merge in the branch 1.29.
800
801 * src/reader.c (packsymbols): Use a temporary obstack for
802 `%%tokendef', since output_stack is already used elsewhere.
803
804 2001-10-02 Akim Demaille <akim@epita.fr>
805
806 Bump 1.29d.
807
808 2001-10-02 Akim Demaille <akim@epita.fr>
809
810 Version 1.29c.
811
812 2001-10-02 Akim Demaille <akim@epita.fr>
813
814 * tests/regression.at (Invalid CPP headers): New.
815 From Alexander Belopolsky.
816 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
817
818 2001-10-02 Akim Demaille <akim@epita.fr>
819
820 * tests/regression.at (Invalid input): New.
821 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
822 Reported by Shura.
823
824 2001-10-02 Akim Demaille <akim@epita.fr>
825
826 * tests/calc.at: Now that --debug works, the tests must be adjusted.
827
828 2001-10-02 Akim Demaille <akim@epita.fr>
829
830 * src/output.c (output_parser): Assert `skeleton'.
831 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
832 systems.
833 From Shura.
834
835 2001-10-01 Marc Autret <autret_m@epita.fr>
836
837 * src/lex.h: Echo modifications.
838 * src/lex.c (unlex): Parameter is now token_t.
839 From Hans Aberg.
840
841 2001-10-01 Marc Autret <autret_m@epita.fr>
842
843 * src/main.c: Include lex.h.
844 From Hans Aberg.
845
846 2001-09-29 Akim Demaille <akim@epita.fr>
847
848 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
849
850 2001-09-28 Akim Demaille <akim@epita.fr>
851
852 * tests/testsuite.at: Update to newer Autotest.
853 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
854
855 2001-09-27 Akim Demaille <akim@epita.fr>
856
857 Position independent wrapper.
858
859 * tests/bison: Remove.
860 * tests/bison.in: New.
861 * configure.in: Adjust.
862
863 2001-09-27 Paul Eggert <eggert@twinsun.com>
864
865 Port quotearg fixes from tar 1.13.24.
866
867 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
868 tm to be declared.
869 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
870 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
871
872 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
873 * m4/mbrtowc.m4: New file.
874 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
875 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
876
877 2001-09-27 Akim Demaille <akim@epita.fr>
878
879 Bump to 1.29c.
880
881 2001-09-27 Akim Demaille <akim@epita.fr>
882
883 Version 1.29b.
884
885 2001-09-25 Akim Demaille <akim@epita.fr>
886
887 * src/system.h: Include `xalloc.h'.
888 Remove it from the C files.
889 * src/files.c (output_files): Free the obstacks.
890 * src/lex.c (init_lex): Rename as...
891 (lex_init): this.
892 (lex_free): New.
893 * src/main.c (main): Use it.
894
895 2001-09-24 Marc Autret <autret_m@epita.fr>
896
897 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
898 to output informations in fout (FILE*).
899 (open_graph, close_graph): Likewise.
900 (output_graph, output_edge, output_node): Likewise.
901 * src/vcg.h: Update function prototypes.
902 * src/print_graph.c (print_graph): Open output graph file.
903 (print_actions): Adjust.
904 * src/files.h: Remove extern declaration.
905 * src/files.c: Remove graph_obstack declaration.
906 (open_files): Remove graph_obstack initialization.
907 (output_files): Remove graph_obstack saving.
908
909 2001-09-24 Marc Autret <autret_m@epita.fr>
910
911 * src/files.c (compute_output_file_names): Fix.
912
913 2001-09-24 Marc Autret <autret_m@epita.fr>,
914 Akim Demaille <akim@epita.fr>
915
916 * src/reader.c (reader): Remove call to free_symtab ().
917 * src/main.c (main): Call it here.
918 Include symtab.h.
919 * src/conflicts.c (initialize_conflicts): Rename as...
920 (solve_conflicts): this.
921 * src/print.c (print_core, print_actions, print_state)
922 (print_grammar): Dump to a file instead a `output_obstack'.
923 (print_results): Dump `output_obstack', and then proceed with the
924 FILE *.
925 * src/files.c (compute_output_file_names, close_files): New.
926 (output_files): Adjust.
927 * src/main.c (main): Adjust.
928
929 2001-09-23 Marc Autret <autret_m@epita.fr>
930
931 * src/files.c (compute_header_macro): Computes header macro name
932 from spec_defines_file when given.
933
934 2001-09-23 Marc Autret <autret_m@epita.fr>
935
936 * src/files.c (output_files): Add default extensions.
937
938 2001-09-22 Akim Demaille <akim@epita.fr>
939
940 * src/conflicts.c (finalize_conflicts): Rename as...
941 (free_conflicts): this.
942
943 2001-09-22 Akim Demaille <akim@epita.fr>
944
945 * src/gram.c (gram_free): Rename back as...
946 (dummy): this.
947 (output_token_translations): Free `token_translations'.
948 * src/symtab.c (free_symtab): Free the tag field.
949
950 2001-09-22 Akim Demaille <akim@epita.fr>
951
952 Remove `translations' as it is always set to true.
953
954 * src/gram.h: Adjust.
955 * src/reader.c (packsymbols, parse_token_decl): Adjust
956 * src/print.c (print_grammar): Adjust.
957 * src/output.c (output_token_translations): Adjust.
958 * src/lex.c (lex): Adjust.
959 * src/gram.c: Be sure the set pointers to NULL.
960 (dummy): Rename as...
961 (gram_free): this.
962
963 2001-09-22 Akim Demaille <akim@epita.fr>
964
965 * configure.in: Invoke AM_LIB_DMALLOC.
966 * src/system.h: Use dmalloc.
967 * src/LR0.c: Be sure to have pointers initialized to NULL.
968 (allocate_itemsets): Allocate kernel_items only if needed.
969
970 2001-09-22 Akim Demaille <akim@epita.fr>
971
972 * configure.in: Bump to 1.29b.
973 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
974 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
975 need xmalloc.c in calc.y.
976 From Pascal Bart.
977
978 2001-09-21 Akim Demaille <akim@epita.fr>
979
980 Version 1.29a.
981 * Makefile.maint, config/config.guess, config/config.sub,
982 * config/missing: Update from masters.
983 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
984 upon package.m4.
985 * configure.in (ALL_LINGUAS): Add `tr'.
986
987 2001-09-21 Akim Demaille <akim@epita.fr>
988
989 * tests/Makefile.am (package.m4): Move to...
990 ($(srcdir)/$(TESTSUITE)): here.
991
992 2001-09-20 Akim Demaille <akim@epita.fr>
993
994 * src/complain.c: No longer try to be standalone: use system.h.
995 Don't assume __STDC__ is defined to 1. Just test if it is defined.
996 * src/complain.h: Likewise.
997 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
998 Remove the unused variable `n'.
999 From Albert Chin-A-Young.
1000
1001 2001-09-18 Marc Autret <autret_m@epita.fr>
1002
1003 * doc/bison.1: Update.
1004 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1005 descriptions.
1006 (Option Cross Key): Update.
1007 Add --graph.
1008
1009 2001-09-18 Marc Autret <autret_m@epita.fr>
1010
1011 * tests/regression.at: New test (comment in %union).
1012
1013 2001-09-18 Marc Autret <autret_m@epita.fr>
1014
1015 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1016 do that.
1017 Reported by Keith Browne.
1018
1019 2001-09-18 Marc Autret <autret_m@epita.fr>
1020
1021 * tests/output.at: Add tests for --defines and --graph.
1022
1023 2001-09-18 Marc Autret <autret_m@epita.fr>
1024
1025 * tests/output.at: Removes tests of %{header,src}_extension features.
1026
1027 2001-09-18 Akim Demaille <akim@epita.fr>
1028
1029 * tests/Makefile.am (package.m4): New.
1030 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1031 (_AT_CHECK_CALC_ERROR): Likewise.
1032 Factor the `, ' part of verbose error messages.
1033
1034 2001-09-18 Marc Autret <autret_m@epita.fr>
1035
1036 * src/getargs.c (longopts): Declare --defines and --graph as options
1037 with optional arguments.
1038 * src/files.h: Add extern declarations.
1039 * src/files.c (spec_graph_file, spec_defines_file): New.
1040 (output_files): Update.
1041 Remove CPP-outed code.
1042
1043 2001-09-18 Marc Autret <autret_m@epita.fr>
1044
1045 Turn off %{source,header}_extension feature.
1046
1047 * src/files.c (compute_exts_from_gf): Update.
1048 (compute_exts_from_src): Update.
1049 (output_files): CPP-out useless code.
1050 * src/files.h: Remove {header,source}_extension extern declarations.
1051 * src/reader.c (parse_dquoted_param): CPP-out.
1052 (parse_header_extension_decl): Remove.
1053 (parse_source_extension_decl): Remove.
1054 (read_declarations): Remove cases tok_{hdrext,srcext}.
1055 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1056 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1057
1058 2001-09-10 Akim Demaille <akim@epita.fr>
1059
1060 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1061 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1062 (AT_CHECK_OUTPUT): this.
1063 Merely check ls' exit status, its output is useless.
1064
1065 2001-09-10 Akim Demaille <akim@epita.fr>
1066
1067 * tests/calc.at: Use m4_match.
1068 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1069
1070 2001-09-10 Marc Autret <autret_m@epita.fr>,
1071 Akim Demaille <akim@epita.fr>
1072
1073 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1074 enum color_e.
1075 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1076 to `normal'.
1077 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1078 * src/lex.h: Adjust prototype.
1079 (token_t): Add `tok_undef'.
1080 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1081 (parse_percent_token): Now returns token_t.
1082 Add default statement in switch.
1083 (lex): Separate `c' as an input variable, from the token_t result
1084 part.
1085 (unlexed): Is a token_t.
1086
1087 2001-09-10 Akim Demaille <akim@epita.fr>
1088
1089 * configure.in: Bump to 1.29a.
1090
1091 2001-09-07 Akim Demaille <akim@epita.fr>
1092
1093 Version 1.29.
1094
1095 2001-08-30 Akim Demaille <akim@epita.fr>
1096
1097 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1098 * m4/atconfig.m4: Remove.
1099 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1100 * tests/bison: New.
1101 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1102 m4_if, m4_patsubst, and m4_regexp.
1103 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1104 `input' file instead of echo.
1105
1106 2001-08-29 Akim Demaille <akim@epita.fr>
1107
1108 Bump to 1.28e.
1109
1110 2001-08-29 Akim Demaille <akim@epita.fr>
1111
1112 Version 1.28d.
1113
1114 2001-08-29 Paul Eggert <eggert@twinsun.com>
1115
1116 * src/bison.simple (yyparse): Don't take the address of an
1117 item before the start of an array, as that doesn't conform to
1118 the C Standard.
1119
1120 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1121
1122 * doc/bison.texinfo (Location Tracking Calc): New node.
1123
1124 2001-08-29 Paul Eggert <eggert@twinsun.com>
1125
1126 * src/output.c (output): Do not define const, as this now
1127 causes more problems than it cures.
1128
1129 2001-08-29 Akim Demaille <akim@epita.fr>
1130
1131 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1132 the nodes.
1133 Be sure to tag the `detailmenu'.
1134
1135 2001-08-29 Akim Demaille <akim@epita.fr>
1136
1137 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1138 download in a tmp dir.
1139
1140 2001-08-28 Marc Autret <autret_m@epita.fr>
1141
1142 * config/depcomp: New file.
1143
1144 2001-08-28 Marc Autret <autret_m@epita.fr>
1145
1146 * doc/bison.1 (mandoc): Adjust.
1147 From Juan Manuel Guerrero.
1148
1149 2001-08-28 Marc Autret <autret_m@epita.fr>
1150
1151 * src/print_graph.c (print_state): Fix.
1152
1153 2001-08-27 Marc Autret <autret_m@epita.fr>
1154
1155 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1156 char * members.
1157 Echo modifications to the functions prototypes.
1158 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1159
1160 2001-08-27 Marc Autret <autret_m@epita.fr>
1161
1162 * src/vcg.c: Include `xalloc.h'.
1163 (add_colorentry): New.
1164 (add_classname): New.
1165 (add_infoname): New.
1166 * src/vcg.h: Add new prototypes.
1167
1168 2001-08-27 Akim Demaille <akim@epita.fr>
1169
1170 * Makefile.maint: Sync. again with CVS Autoconf.
1171
1172 2001-08-27 Akim Demaille <akim@epita.fr>
1173
1174 * Makefile.maint: Formatting changes.
1175 (po-update, cvs-update, update): New targets.
1176 (AMTAR): Remove.
1177
1178 2001-08-27 Akim Demaille <akim@epita.fr>
1179
1180 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1181 * Makefile.maint: Sync. with CVS Autoconf.
1182
1183 2001-08-27 Marc Autret <autret_m@epita.fr>
1184
1185 * src/vcg.h (struct infoname_s): New.
1186 (struct colorentry_s): New.
1187 (graph_s): New fields {vertical,horizontal}_order in structure.
1188 Add `infoname' field.
1189 Add `colorentry' field;
1190 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1191 (G_HORIZONTAL_ORDER): New.
1192 (G_INFONAME): New.
1193 (G_COLORENTRY): New.
1194 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1195 Add output of `infoname'.
1196 Add output of `colorentry'.
1197
1198 2001-08-27 Marc Autret <autret_m@epita.fr>
1199
1200 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1201 This one shadowed a global parameter.
1202
1203 2001-08-24 Marc Autret <autret_m@epita.fr>
1204
1205 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1206 instead of `unsigned'.
1207 (print_state): Do not call obstack_object_size () in obstack_grow ()
1208 to avoid macro variables shadowing.
1209
1210 2001-08-23 Marc Autret <autret_m@epita.fr>
1211
1212 * src/lex.c (percent_table): Typo: s/naem/name/.
1213 Add graph option.
1214 Normalize new options declarations.
1215
1216 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1217
1218 * tests/suite.at: Exercise %header_extension and %source_extension.
1219
1220 2001-08-16 Marc Autret <autret_m@epita.fr>
1221
1222 * src/reader.c (parse_dquoted_param): New.
1223 (parse_header_extension_decl): Use it.
1224 (parse_source_extension_decl): Likewise.
1225
1226 2001-08-16 Marc Autret <autret_m@epita.fr>
1227
1228 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1229 (get_xxxx_str): Use assert () instead of complain ().
1230 Remove return invokations in default cases.
1231 (get_decision_str): Modify default behaviour. Remove second argument.
1232 Echo modifications on calls.
1233 (output_graph): Fix.
1234
1235 2001-08-16 Marc Autret <autret_m@epita.fr>
1236
1237 * src/getargs.c (usage): Update with ``-g, --graph''.
1238
1239 2001-08-16 Marc Autret <autret_m@epita.fr>
1240
1241 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1242 (Option Cross Key): Likewise.
1243 * doc/bison.1: Update.
1244
1c8c2190
PB
12452001-09-25 Pascal Bart <pascal.bart@epita.fr>
1246
1247 * src/output.c (output_master_parser): Don't finish action_obstack.
1248 (output_parser): Don't care about the muscle action, here.
1249 (prepare): Copy the action_obstack in the action muscle.
1250 (output): Free action_obstack.
1251
180d45ba
PB
12522001-09-23 Pascal Bart <pascal.bart@epita.fr>
1253
1254 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1255 will contain `%union' declaration.
1256 (parse_union_decl): Delete #line directive output.
1257 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1258 informations about %union.
1259 (parse_union_decl): Copy the union_obstack in the muscle stype.
1260 * src/bison.simple: Add new #line directive.
1261 Add typdef %%stype YYSTYPE.
1262
c51d1a19
PB
12632001-09-23 Pascal Bart <pascal.bart@epita.fr>
1264
1265 * src/bison.simple: Add new `#line' directive.
1266
6f9344da
PB
12672001-09-22 Pascal Bart <pascal.bart@epita.fr>
1268
1269 * src/bison.simple: New `#line' directive.
1270 * src/output.c (output_parser): Support new dynamic muscle input_line.
1271
652def80
MA
12722001-09-22 Marc Autret <autret_m@epita.fr>
1273
1274 * src/output.c (output_master_parser): New.
1275 (output_parser): Be more re-entrant.
1276
25b222fa
MA
12772001-09-21 Marc Autret <autret_m@epita.fr>
1278
1279 * src/reader.c (copy_definition, parse_union_decl): Update and use
1280 `linef' muscle.
1281 (copy_action): Likewise.
1282 Use obstack_1grow ().
1283 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1284
6bc35ae5
MA
12852001-09-21 Marc Autret <autret_m@epita.fr>
1286
1287 * src/options.c (option_table): Adjust.
1288 * src/lex.c (parse_percent_token): Fix.
1289
c0629aa1
PB
12902001-09-20 Pascal Bart <pascal.bart@epita.fr>
1291
1292 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 1293
82b6d266
PB
12942001-09-20 Pascal Bart <pascal.bart@epita.fr>
1295
1296 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1297 is now an option_table_struct*.
1298 (option_strcmp): New function option_strcmp.
1299 (parse_percent_token): Call option_strcmp.
1300 * src/getargs.c (xalloc.h, options.h): Include it.
1301 (getargs): Call create_long_option_table.
1302 (getargs): Free longopts at the end of the function.
1303 (shortopts): Move in options.c.
1304 * src/options.c (create_long_option_table): New function. Convert
1305 information from option_table to option structure.
1306 * src/reader.c (options.h): Include it.
1307
1308 * src/Makefile.am: Adjust.
1309 * src/options.c (option_table): Create from longopts and percent_table.
1310 * src/getargs.c (longopts): Delete.
1311 * src/lex.c (struct percent_table_struct): Delete.
1312 (percent_table): Delete.
1313 (options.h): Include it.
1314 * src/options.c: Create.
1315 * src/options.h: Create.
1316 Declare enum opt_access_e.
1317 Define struct option_table_struct.
1318
75f5aaea
MA
13192001-09-20 Marc Autret <autret_m@epita.fr>
1320
1321 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1322 sections of Bison.
1323
f508cb0a
PB
13242001-09-19 Pascal Bart <pascal.bart@epita.fr>
1325
1326 * src/bison.simple: s/%%filename/%%skeleton.
1327 * src/muscle_tab.c (getargs.h): Include it.
1328 (muscle_init): Insert new muscle skeleton.
1329
13105fc1
PB
13302001-09-18 Pascal Bart <pascal.bart@epita.fr>
1331
1332 * src/output.c (output_parser): Delete unused variable actions_dumped.
1333
b0c4483e
PB
13342001-09-07 Pascal Bart <pascal.bart@epita.fr>
1335
1336 * src/output.c (output): Delete call to reader_output_yylsp.
1337 * src/reader.c (reader): Likewise.
1338 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 1339
11d82f03
MA
13402001-09-02 Marc Autret <autret_m@epita.fr>
1341
1342 * src/reader.c: Include muscle_tab.h.
1343 (parse_union_decl): Update.
1344 (parse_macro_decl): Rename parse_muscle_decl.
1345 Update to use renamed functions and variable.
1346 (read_declarations, copy_action, read_additionnal_code, : Updated
1347 with correct variables and functions names.
1348 (packsymbols, reader): Likewise.
342b8b6e 1349
11d82f03 1350 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 1351
11d82f03
MA
1352 * src/output.c: Include muscle_tab.h
1353 In all functions using macro_insert, change by using muscle_insert ().
1354 (macro_obstack): Rename muscle_obstack.
1355 Echo modifications in the whole file.
1356 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1357 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1358 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1359
1360 * src/muscle_tab.h: Update double inclusion macros.
1361 (macro_entry_s): Rename muscle_entry_s.
1362 Update prototypes.
342b8b6e 1363
11d82f03
MA
1364 * src/muscle_tab.c: Include muscle_tab.h.
1365 Rename macro_tabble to muscle_table.
1366 (mhash1, mhash2, mcmp): Use muscle_entry.
1367 (macro_init): Rename muscle_init. Update.
1368 (macro_insert): Rename muscle_insert. Update.
1369 (macro_find): Rename muscle_find. Update.
1370
1371 * src/main.c: Include muscle_tab.h.
1372 (main): Call muscle_init ().
1373 * src/Makefile.am (bison_SOURCES): Echo modifications.
1374
93a37297
MA
13752001-09-02 Marc Autret <autret_m@epita.fr>
1376
f753cd62 1377 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 1378
f753cd62
MA
1379 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1380
13812001-09-02 Marc Autret <autret_m@epita.fr>
1382
1383 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 1384
682d48cd
PB
13852001-09-01 Pascal Bart <pascal.bart@epita.fr>
1386
342b8b6e 1387 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
1388 filename.
1389
087c8fda
MA
13902001-09-01 Marc Autret <autret_m@epita.fr>
1391
1392 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1393 to an explicit value to activate the feature. We do it here.
1394
dda680cb
PB
13952001-08-31 Pascal Bart <pascal.bart@epita.fr>
1396
1397 * src/output.c (prepare): Delete the `filename' muscule insertion.
1398 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1399 (parse_union_decl): Likewise.
1400 * src/macrotab.c (macro_init): Initialize filename by infile.
1401
9e644e64
MA
14022001-08-31 Marc Autret <autret_m@epita.fr>
1403
1404 * src/bison.simple (YYLSP_NEEDED): New definition.
1405 * src/output.c (prepare): Add macro insertion of `locations_flag'
1406
17da6427
PB
14072001-08-31 Pascal Bart <pascal.bart@epita.fr>
1408
1409 * src/output.c (prepare): Delete insertion of previous muscles,
1410 and insert the `prefix' muscles.
1411 * src/macrotab.c (macro_init): Likewise.
1412 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 1413 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
1414 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1415 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 1416 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
1417 name_prefix.
1418
e8cb70b9
PB
14192001-08-31 Pascal Bart <pascal.bart@epita.fr>
1420
1421 * src/main.c (main): Standardize.
1422 * src/output.c (output_table_data, output_parser): Likewise.
1423 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1424
63c2d5de
MA
14252001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1426
342b8b6e 1427 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
1428 %%epilogue.
1429 * src/output.c (output): Rename %%declarations to %%prologue.
1430 * src/bison.simple: Echo modifications.
342b8b6e 1431
d8cb5183
MA
14322001-08-31 Marc Autret <autret_m@epita.fr>
1433
1434 * src/reader.c (readgram): CleanUp.
1435 (output_token_defines): Likewise.
1436 (packsymbols): Likewise.
1437 (reader): Likewise.
1438 * src/output.c (output): CPP-out useless code.
1439
6c686258
PB
14402001-08-31 Pascal Bart <pascal.bart@epita.fr>
1441
342b8b6e 1442 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
1443 output_trailers and output_headers.
1444 * src/output.h: Remove obsolete functions prototypes of output_headers
1445 and output_trailers.
1446
8f451ef7
PB
14472001-08-30 Pascal Bart <pascal.bart@epita.fr>
1448
1449 * src/main.c: Include macrotab.h.
342b8b6e 1450 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
1451 Adjust functions prototypes.
1452 * src/macrotab.c (macro_insert): Constify key and value.
1453 (macro_find): Constify key.
1454 (macro_insert): Include 'xalloc.h'
1455 (macro_insert): Use XMALLOC.
1456 (macro_find): Constify return value.
1457 * src/output.c (output_table_data): Rename table to table_data.
1458 (output_parser): Constify macro_key, macro_value.
1459
997b6fd0 14602001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
1461
1462 * src/reader.c (parse_skel_decl): New.
342b8b6e 1463 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
1464 * src/lex.h (token_t): New token `tok_skel'.
1465 * src/lex.c (percent_table): Add skeleton option entry.
1466 Standardize.
1467
ff48177d
MA
14682001-08-29 Marc Autret <autret_m@epita.fr>
1469
1470 * src/bison.simple: Add %%user_code directive at the end.
1471 * src/reader.c (read_additionnal_code): New.
1472 (reader): Use it.
1473 * src/output.c (output_program): Remove.
1474 (output): Update.
1475
b33160bf
MA
14762001-08-28 Marc Autret <autret_m@epita.fr>
1477
1478 * src/output.c (output_actions): Clean up.
4e5caae2 1479 (output_gram): CPP-out useless code.
b33160bf
MA
1480 * src/reader.c (reader): Clean up, CPP-out useless code.
1481
d1a2daf7
PB
14822001-08-28 Pascal Bart <pascal.bart@epita.fr>
1483
342b8b6e 1484 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 1485 directive.
d1a2daf7
PB
1486 * src/bison.simple: Add `%%definitions'.
1487
2b763dfe
MA
14882001-08-28 Marc Autret <autret_m@epita.fr>
1489
1490 * config/depcomp: New file.
1491
f1a87ef6
PE
14922001-08-27 Paul Eggert <eggert@twinsun.com>
1493
1494 * src/bison.simple (yyparse): Don't take the address of an
1495 item before the start of an array, as that doesn't conform to
1496 the C Standard.
1497
82e236e2
RA
14982001-08-27 Robert Anisko <robert.anisko@epita.fr>
1499
f1a87ef6 1500 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
1501 obstack. It was done too late here.
1502
1503 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1504 completely wrong.
1505 (reader): Initialize the macro obstack here, since we need it to grow
1506 '%define' directives.
1507
1508 * src/reader.h: Declare the macro obstack as extern.
1509
b0cfa28a
RA
15102001-08-27 Robert Anisko <robert.anisko@epita.fr>
1511
1512 * src/output.c (output_parser): Fix. Store single '%' characters in
1513 the output obstack instead of throwing them away.
1514
6fc74234
AD
15152001-08-27 Akim Demaille <akim@epita.fr>
1516
1517 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1518
9c76d118
RA
15192001-08-25 Robert Anisko <robert.anisko@epita.fr>
1520
1521 * lib/Makefile.am: Adjust.
1522
a8289c62
RA
15232001-08-25 Robert Anisko <robert.anisko@epita.fr>
1524
1525 * src/bison.simple: Update and add '%%' directives.
1526
b6610515
RA
15272001-08-25 Robert Anisko <robert.anisko@epita.fr>
1528
1529 * src/reader.c (reader): Remove calls to 'output_headers' and
1530 'output_trailers'. Remove some C output.
1531 (readgram): Disable a piece of code that was writing a default
1532 definition for 'YYSTYPE'.
1533 (reader_output_yylsp): Remove.
1534 (packsymbols): Output token defintions to a macro.
1535 (copy_definition): Disable C output.
6fc74234 1536
b6610515
RA
1537 * src/reader.c (parse_macro_decl): New function used to parse macro
1538 declarations.
1539 (copy_string2): Put the body of copy_string into this new function.
1540 Add a parameter to let the caller choose whether he wants to copy the
1541 string delimiters or not.
1542 (copy_string): Be a simple call to copy_string2 with the last argument
1543 bound to true.
1544 (read_declarations): Add case for macro definition.
1545 (copy_identifier): New.
6fc74234 1546 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
1547 rather than lex.
1548
26f609ff
RA
15492001-08-25 Robert Anisko <robert.anisko@epita.fr>
1550
1551 * src/output.c (prepare): Add prefixed names.
1552 (output_parser): Output semantic actions.
1553 (output_parser): Fix bug on '%%line' directives.
6fc74234 1554
26f609ff
RA
1555 * src/output.c (output_headers): Remove. The C code printed by this
1556 function should now be in the skeletons.
1557 (output_trailers): Remove.
1558 (output): Disable call to 'reader_output_yylsp'.
1559 (output_rule_data): Do not output tables to the table obstack.
1560
1561 * src/output.c: Remove some C dedicated output.
1562 Improve the use of macro and output obstacks.
1563 (output_defines): Remove.
6fc74234 1564
26f609ff
RA
1565 * src/output.c (output_token_translations): Associate 'translate'
1566 table with a macro. No output to the table obstack.
1567 (output_gram): Same for 'rhs' and 'prhs'.
1568 (output_stos): Same for 'stos'.
1569 (output_rule_data): Same for 'r1' and 'r2'.
1570 (token_actions): Same for 'defact'.
1571 (goto_actions): Same for 'defgoto'.
1572 (output_base): Same for 'pact' and 'pgoto'.
1573 (output_table): Same for 'table'.
1574 (output_check): Same for 'check'.
6fc74234 1575
26f609ff
RA
1576 * src/output.c (output_table_data): New function.
1577 (output_short_table): Remove.
1578 (output_short_or_char_table): Remove.
6fc74234 1579
26f609ff
RA
1580 * src/output.c (output_parser): Replace most of the skeleton copy code
1581 with something new. Skeletons are now processed character by character
1582 rather than line by line, and Bison looks for '%%' macros. This is the
1583 first step in making Bison's output process (a lot) more flexible.
1584 (output_parser): Use the macro table.
1585
6f43b113
RA
15862001-08-25 Robert Anisko <robert.anisko@epita.fr>
1587
1588 * src/main.c (main): Initialize the macro table.
1589
dd3127cf
RA
15902001-08-25 Robert Anisko <robert.anisko@epita.fr>
1591
1592 * src/lex.c (percent_table): Add tok_define.
1593 * src/lex.h: Add tok_define.
1594
aa321494
RA
15952001-08-25 Robert Anisko <robert.anisko@epita.fr>
1596
1597 * src/macrotab.c: New file.
1598 * src/macrotab.h: New file.
1599 * src/Makefile.am: Update.
1600
68bd3b6b
RA
16012001-08-25 Robert Anisko <robert.anisko@epita.fr>
1602
1603 * lib/hash.c: New file.
1604 * lib/hash.h: New file.
1605 * lib/Makefile.am: Update.
1606
45f8dd1e
AD
16072001-08-15 Akim Demaille <akim@epita.fr>
1608
1609 Version 1.28c.
1610
40a64a7a 16112001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
1612
1613 * src/reader.c (readgram): Indent output macro YYSTYPE.
1614 (packsymbols): Likewise.
1615 (output_token_defines): Likewise.
1616 * src/files.c: Standardize.
1617 (compute_header_macro): New.
1618 (defines_obstack_save): New. Use compute_header_macro.
1619 (output_files): Update. Use defines_obstack_save.
1620
f9a8293a
AD
16212001-08-15 Akim Demaille <akim@epita.fr>
1622
1623 * doc/bison.texinfo (Table of Symbols): Document
1624 YYSTACK_USE_ALLOCA.
1625
150ca7a7
AD
16262001-08-15 Akim Demaille <akim@epita.fr>
1627
1628 * missing: Update from CVS Automake.
1629 * config/config.guess, config/config.sub, config/texinfo.tex:
1630 Update from gnu.org.
1631
69b5cec4
AD
16322001-08-15 Akim Demaille <akim@epita.fr>
1633
1634 * Makefile.maint: Sync with CVS Autoconf.
1635
f2b5126e
PB
16362001-08-14 Pascal Bart <pascal.bart@epita.fr>
1637
69b5cec4 1638 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
1639 `fdl.texi'.
1640 * doc/fdl.texi: Add to package.
1641
4ecbf796
MA
16422001-08-14 Marc Autret <autret_m@epita.fr>
1643
1644 Turn on %{source,header}_extension features.
1645
69b5cec4 1646 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
1647 source_extension.
1648 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 1649 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
1650 between options.
1651
95fb5662
MA
16522001-08-14 Marc Autret <autret_m@epita.fr>
1653
1654 * src/files.c (compute_base_names): Add extensions computing when
1655 `--file-prefix' used.
1656 Standardize function calls.
1657
78d09da9
MA
16582001-08-13 Marc Autret <autret_m@epita.fr>
1659
69b5cec4 1660 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
1661 defining it (defined but null disables alloca).
1662
5a009f2c
MA
16632001-08-13 Marc Autret <autret_m@epita.fr>
1664
1665 * src/bison.simple (_yy_memcpy): CPP reformat.
1666
1e41465a
PB
16672001-08-13 Pascal Bart <pascal.bart@epita.fr>
1668
1669 * tests/atconfig.in (CPPFLAGS): Fix.
1670
c67a198d
PB
16712001-08-10 Pascal Bart <pascal.bart@epita.fr>
1672
79282c6c 1673 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
1674 `gpl.texi'.
1675 * doc/gpl.texi: Add to package.
1676
09a6de7e
MA
16772001-08-10 Marc Autret <autret_m@epita.fr>
1678
1679 * src/print_graph.h: Fix.
1680 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1681
b77b9ee0
AD
16822001-08-10 Akim Demaille <akim@epita.fr>
1683
1684 * src/system.h: Provide default declarations for stpcpy, strndup,
1685 and strnlen.
1686
3e259915
MA
16872001-08-10 Robert Anisko <anisko_r@epita.fr>
1688
1689 * doc/bison.texinfo (Locations): Update @$ stuff.
1690
ca96bc2d
MA
16912001-08-09 Robert Anisko <anisko_r@epita.fr>
1692
1693 * src/bison.simple (YYLLOC_DEFAULT): Update.
1694 (yyparse): Adjust.
1695
fdc6758b
MA
16962001-08-08 Marc Autret <autret_m@epita.fr>
1697
b77b9ee0 1698 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1699 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1700 Reported by Fabrice Bauzac.
957d4dbf 1701
600cad3b
MA
17022001-08-08 Marc Autret <autret_m@epita.fr>
1703
1704 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1705 * src/vcg.c (output_node): Fix.
1706 * src/vcg.h: Cleanup.
1707 * src/print_graph.c: Add comments.
b77b9ee0 1708 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1709 the VCG graph output.
b77b9ee0 1710 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1711 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1712 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1713 blue.
1714 Get the current node name and node_obstack by argument.
1715 (node_obstack): New variable.
1716 (print_state): Manage node_obstack.
1717 (print_core): Use node_obstack given by argument.
1718 A node is not only computed here but in print_actions also.
1719 (print_graph): CPP out useless code instead of commenting it.
1720
976e528f
AD
17212001-08-07 Pascal Bart <pascal.bart@epita.fr>
1722
1723 * tests/atconfig.in (CPPFLAGS): Fix.
1724
20e8e5ca
AD
17252001-08-07 Akim Demaille <akim@epita.fr>
1726
1727 * src/print_graph.c (quote): New.
1728 (print_core): Use it.
1729
957d4dbf 17302001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1731
3e3da797
AD
1732 * src/vcg.c (complain.h): Include it.
1733 Unepitaize `return' invocations.
c4b66126 1734 [NDEBUG] (main): Remove.
79282c6c 1735 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1736 * src/files.c (open_files): Initialize graph_obstack.
1737 * src/print_graph.c (print_actions): CPP out useless code.
1738 (print_core): Don't output the last `\n' in labels.
1739 Use `quote'.
1740 * src/files.c (output_files): Output the VCG file.
1741 * src/main.c (main): Invoke print_graph ();
3e3da797 1742
957d4dbf 17432001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1744
1745 Automaton VCG graph output.
1746 Using option ``-g'' or long option ``--graph'', you can generate
1747 a gram_filename.vcg file containing a VCG description of the LALR (1)
1748 automaton of your grammar.
1749
1750 * src/main.c: Call to print_graph() function.
1751 * src/getargs.h: Update.
1752 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1753 (graph_flag): New flag.
1754 (longopts): Update.
1755 (getargs): Add case `g'.
1756 * src/files.c (graph_obstack): New obstack struct.
1757 (open_files): Initialize new obstack.
1758 (output_files): Saves graph_obstack if required.
1759 * src/files.h (graph_obstack): New extern declaration.
1760 * src/Makefile.am: Add new source files.
1761
957d4dbf 17622001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1763
1764 * src/print_graph.c, src/print_graph.h (graph): New.
1765 * src/vcg.h: New file.
1766 * src/vcg.c: New file, VCG graph handling.
1767
7333d403
AD
17682001-08-06 Marc Autret <autret_m@epita.fr>
1769
1770 Add of %source_extension and %header_extension which specify
1771 the source or/and the header output file extension.
1772
1773 * src/files.c (compute_base_names): Remove initialisation of
1774 src_extension and header_extension.
1775 (compute_exts_from_gf): Update.
1776 (compute_exts_from_src): Update.
1777 (output_files): Update.
1778 * src/reader.c (parse_header_extension_decl): New.
1779 (parse_source_extension_decl): New.
1780 (read_declarations): New case statements for the new tokens.
1781 * src/lex.c (percent_table): Add entries for %source_extension
1782 and %header_extension.
1783 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1784
84163231
AD
17852001-08-06 Marc Autret <autret_m@epita.fr>
1786
1787 * configure.in: Bump to 1.28c.
1788 * doc/bison.texinfo: Texinfo thingies.
1789
8303fc42
AD
17902001-08-04 Pascal Bart <pascal.bart@epita.fr>
1791
1792 * tests/atconfig.in (CPPFLAGS): Add.
1793 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1794
70a84437
AD
17952001-08-03 Akim Demaille <akim@epita.fr>
1796
1797 Version 1.28b.
1798
2ce10144
AD
17992001-08-03 Akim Demaille <akim@epita.fr>
1800
1801 * tests/Makefile.am (check-local): Ship testsuite.
1802 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1803 Include `string.h'.
1804
1e3e4bc1
AD
18052001-08-03 Akim Demaille <akim@epita.fr>
1806
1807 * configure.in: Try using -Wformat when compiling.
1808
42b45b7f
AD
18092001-08-03 Akim Demaille <akim@epita.fr>
1810
1811 * configure.in: Bump to 1.28b.
1812
8f13fe33
AD
18132001-08-03 Akim Demaille <akim@epita.fr>
1814
1815 * src/complain.c: Adjust strerror_r portability issues.
1816
b37ba92c
AD
18172001-08-03 Akim Demaille <akim@epita.fr>
1818
1819 Version 1.28a.
1820
b0ce6046
AD
18212001-08-03 Akim Demaille <akim@epita.fr>
1822
1823 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1824 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1825 * src/getargs.c: Include complain.h.
1826 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1827 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1828
d01c415b
AD
18292001-08-03 Akim Demaille <akim@epita.fr>
1830
1831 * src/reader.c (readgram): Display hidden chars in error messages.
1832
459dd1a6
AD
18332001-08-03 Akim Demaille <akim@epita.fr>
1834
1835 Update to gettext 0.10.39.
1836
53b74c0c
AD
18372001-08-03 Akim Demaille <akim@epita.fr>
1838
1839 * lib/strspn.c: New.
1840
234a3be3
AD
18412001-08-01 Marc Autret <autret_m@epita.fr>
1842
1843 * doc/bison.texinfo: Update.
1844 * doc/bison.1 (mandoc): Update.
1845 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1846 * src/files.c: Support output files extensions computing.
1847 (src_extension): New static variable.
1848 (header_extension): New static variable.
1849 (tr): New function.
1850 (get_extension_index): New function, gets the index of an extension
1851 filename in a string.
1852 (compute_exts_from_gf): New function, computes extensions from the
1853 grammar file extension.
1854 (compute_exts_from_src): New functions, computes extensions from the
1855 C source file extension, file given by ``-o'' option.
1856 (compute_base_names): Update.
1857 (output_files): Update.
1858
847bf1f5
AD
18592001-08-01 Robert Anisko <anisko_r@epita.fr>
1860
d995fee7 1861 * doc/bison.texi: Document @$.
847bf1f5
AD
1862 (Locations): New section.
1863
d074a105
AD
18642001-07-18 Akim Demaille <akim@epita.fr>
1865
1866 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1867 * config/prev-version.txt, config/move-if-change: New.
1868 * Makefile.am: Adjust.
1869
3419715d
AD
18702001-07-08 Pascal Bart <pascal.bart@epita.fr>
1871
1872 * src/bison.simple (yyparse): Suppress warning `comparaison
1873 between signed and unsigned'.
1874
62ab6972
AD
18752001-07-05 Pascal Bart <pascal.bart@epita.fr>
1876
1877 * src/getargs.h (raw_flag): Remove.
1878 * src/getargs.c: Die on `-r'/`--raw'.
1879 * src/lex.c (parse_percent_token): Die on `%raw'.
1880 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1881 * tests/calc.at: Suppress test with option `--raw'.
1882
1e24cc5b
AD
18832001-07-14 Akim Demaille <akim@epita.fr>
1884
1885 * config/: New.
1886 * configure.in: Require Autoconf 2.50.
1887 Update to gettext 0.10.38.
1888
32dfccf8
AD
18892001-03-16 Akim Demaille <akim@epita.fr>
1890
1891 * doc/bison.texinfo: ANSIfy the examples.
1892
cd5bd6ac
AD
18932001-03-16 Akim Demaille <akim@epita.fr>
1894
1895 * getargs.c (skeleton): New variable.
1896 (longopts): --skeleton is a new option.
1897 (shortopts, getargs): -S is a new option.
1898 * getargs.h: Declare skeleton.
1899 * output.c (output_parser): Use it.
1900
5141b016
AD
19012001-03-16 Akim Demaille <akim@epita.fr>
1902
1903 * m4/strerror_r.m4: New.
1904 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1905 * lib/error.h, lib/error.c: Update.
1906
447992b9
AD
19072001-03-16 Akim Demaille <akim@epita.fr>
1908
1909 * src/getargs.c (longopts): Clean up.
1910
274d42ce
AD
19112001-02-21 Akim Demaille <akim@epita.fr>
1912
1913 * src/reader.c (gensym): `gensym_count' is your own.
1914 Use a static buf to create the symbol name, as token_buffer is no
1915 longer a buffer.
1916
22c821f3
AD
19172001-02-08 Akim Demaille <akim@epita.fr>
1918
1919 * src/conflicts.c (conflict_report): Be sure not to append to res
1920 between two calls, which could happen if both first sprintf were
1921 skipped, but not the first cp += strlen.
1922
18569462
AD
19232001-02-08 Akim Demaille <akim@epita.fr>
1924
1925 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1926 New, from fileutils 4.0.37.
1927 * configure.in: Require Autoconf 2.49c. I took some time before
1928 making this decision. This is the only way out for portability
1929 issues in Bison, it would mean way too much duplicate effort to
1930 import in Bison features implemented in 2.49c since 2.13.
1931 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1932
0d8f3c8a
AD
19332001-02-02 Akim Demaille <akim@epita.fr>
1934
1935 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 1936 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 1937
f17bcd1f
AD
19382001-01-19 Akim Demaille <akim@epita.fr>
1939
1940 Get rid of the ad hoc handling of token_buffer in the scanner: use
1941 the obstacks.
1942
1943 * src/lex.c (token_obstack): New.
1944 (init_lex): Initialize it. No longer call...
1945 (grow_token_buffer): this. Remove it.
1946 Adjust all the places which used it to use the obstack.
1947
511e79b3
AD
19482001-01-19 Akim Demaille <akim@epita.fr>
1949
1950 * src/lex.h: Rename all the tokens:
1951 s/\bENDFILE\b/tok_eof/g;
1952 s/\bIDENTIFIER\b/tok_identifier/g;
1953 etc.
1954 Let them be enums, not #define, to ease debugging.
1955 Adjust all the code.
1956
0d6508ef
AD
19572001-01-18 Akim Demaille <akim@epita.fr>
1958
1959 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1960 * src/lex.c (maxtoken, grow_token_buffer): Static.
1961
6deb4447
AD
19622001-01-18 Akim Demaille <akim@epita.fr>
1963
1964 Since we now use obstacks, more % directives can be enabled.
1965
1966 * src/lex.c (percent_table): Also accept `%yacc',
1967 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1968 `%debug'.
1969 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1970 instead of returning a token.
1971 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1972 * src/reader.c (read_declarations): Adjust.
1973 * src/files.c (open_files): Don't call `compute_base_names', don't
1974 compute `attrsfile' since they depend upon data which might be
1975 *in* the input file now.
1976 (output_files): Do it here.
1977 * src/output.c (output_headers): Document the fact that this patch
1978 introduces a guaranteed SEGV for semantic parsers.
1979 * doc/bison.texinfo: Document them.
1980 * tests/suite.at: Exercise these %options.
1981
ff4423cc
AD
19822000-12-20 Akim Demaille <akim@epita.fr>
1983
1984 Also handle the output file (--verbose) with obstacks.
1985
1986 * files.c (foutput): Remove.
1987 (output_obstack): New.
1988 Adjust all dependencies.
1989 * src/conflicts.c: Return a string.
1990 * src/system.h (obstack_grow_string): Rename as...
1991 (obstack_sgrow): this. Be ready to work with non literals.
1992 (obstack_fgrow4): New.
1993
956dba3a
AD
19942000-12-20 Akim Demaille <akim@epita.fr>
1995
1996 * src/files.c (open_files): Fix the computation of short_base_name
1997 in the case of `-o foo.tab.c'.
1998
337bab46
AD
19992000-12-20 Akim Demaille <akim@epita.fr>
2000
2001 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2002 (copy_dollar): Now that everything uses obstacks, get rid of the
2003 FILE * parameters.
2004
5d3214b8
AD
20052000-12-20 Akim Demaille <akim@epita.fr>
2006
2007 * src/files.c (open_files): Actually the `.output' file is based
2008 on the short_base_name, not base_name.
2009 * tests/suite.at (Checking output file names): Adjust.
2010
29092a57
AD
20112000-12-20 Akim Demaille <akim@epita.fr>
2012
2013 * src/bison.s1: Remove, we now use directly...
2014 * src/bison.simple: this.
2015 * src/Makefile.am: Use pkgdata instead of data.
2016
ea5607fd
AD
20172000-12-20 Akim Demaille <akim@epita.fr>
2018
2019 * src/files.c (guard_obstack): New.
2020 (open_files): Initialize it.
2021 (output_files): Dump it...
2022 * src/files.h: Export it.
2023 * src/reader.c (copy_guard): Use it.
2024
27110317
AD
20252000-12-19 Akim Demaille <akim@epita.fr>
2026
2027 * src/files.c (outfile, defsfile, actfile): Removed as global
2028 vars.
2029 (open_files): Don't compute them.
2030 (output_files): Adjust.
2031 (base_name, short_base_name): Be global.
2032 Adjust dependencies.
2033
19c50364
AD
20342000-12-19 Akim Demaille <akim@epita.fr>
2035
2036 * src/files.c (strsuffix): New.
2037 (stringappend): Be just like strcat but allocate.
2038 (base_names): Eve out from open_files.
2039 Try to simplify the rather hairy computation of base_name and
2040 short_base_name.
2041 (open_files): Use it.
2042 * tests/suite.at (Checking output file names): New test.
2043
573c1d9f
AD
20442000-12-19 Akim Demaille <akim@epita.fr>
2045
2046 * src/system.h (obstack_grow_literal_string): Rename as...
2047 (obstack_grow_string): this.
2048 * src/output.c (output_parser): Recognize `%% actions' instead of
2049 `$'.
2050 * src/bison.s1: s/$/%% actions/.
2051 * src/bison.hairy: Likewise.
2052
ef7ddedd
AD
20532000-12-19 Akim Demaille <akim@epita.fr>
2054
2055 * src/output.c (output_parser): Compute the `#line' lines when
2056 there are.
2057 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2058 Suggested by Hans Aberg.
2059
ff61dabd
AD
20602000-12-19 Akim Demaille <akim@epita.fr>
2061
2062 Let the handling of the skeleton files be local to the procedures
2063 that use it.
2064
2065 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2066 longer static.
2067 (fparser, open_extra_files): Remove.
2068 (open_files, output_files): Don't take care of fparser.
2069 * src/files.h: Adjust.
2070 * src/output.c (output_parser): Open and close the file to the
2071 skeleton.
2072 * src/reader.c (read_declarations): When %semantic_parser, open
2073 fguard.
2074
55b96341
AD
20752000-12-19 Akim Demaille <akim@epita.fr>
2076
2077 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2078 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2079
358c15b7
AD
20802000-12-19 Akim Demaille <akim@epita.fr>
2081
2082 * src/files.c (open_files): Yipee! We no longer need all the code
2083 looking for `/tmp' since we have no tmp file.
2084
7de3329e
AD
20852000-12-19 Akim Demaille <akim@epita.fr>
2086
2087 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2088 New macros.
2089 * src/files.c (open_files): Less dependency on MSDOS etc.
2090
3abcd459
AD
20912000-12-14 Akim Demaille <akim@epita.fr>
2092
2093 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2094 Provide a default definition.
2095 Use it when executing the default @ action.
2096 * src/reader.c (reader_output_yylsp): No longer include
2097 `timestamp' and `text' in the default YYLTYPE.
2098
2a91a95e
AD
20992000-12-12 Akim Demaille <akim@epita.fr>
2100
2101 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2102 (copy_guard): Quote the file names.
2103 Reported by Laurent Mascherpa.
2104
14d3eb9b
AD
21052000-12-12 Akim Demaille <akim@epita.fr>
2106
2107 * src/output.c (output_headers, output_program, output): Be sure
2108 to escape special characters when outputting filenames.
2109 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2110 (output_headers): Don't depend on them, Use ACTSTR.
2111
d7045ec6
AD
21122000-11-17 Akim Demaille <akim@epita.fr>
2113
2114 * lib/obstack.h: Formatting changes.
2115 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2116 prevents type checking.
2117 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2118 cast the value to (void *): assigning a `foo *' to a `void *'
2119 variable is valid.
2120 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2121 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2122 append characters.
2123
6fd54b73
AD
21242000-11-17 Akim Demaille <akim@epita.fr>
2125
2126 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2127 as...
2128 (suite.m4, regression.m4, calc.m4): these.
2129 * tests/atgeneral.m4: Update from CVS Autoconf.
2130
4c50eae6
AD
21312000-11-17 Akim Demaille <akim@epita.fr>
2132
2133 * tests/regression.m4 (%union and --defines): New test,
2134 demonstrating a current bug in the obstack implementation.
2135
a35f64ea
AD
21362000-11-17 Akim Demaille <akim@epita.fr>
2137
2138 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2139 macros.
2140 Use them to declare the variables which are global or local to
2141 `yyparse'.
2142
7de23534
AD
21432000-11-17 Akim Demaille <akim@epita.fr>
2144
2145 * acconfig.h: Remove, no longer used.
2146
aa7815f5
AD
21472000-11-07 Akim Demaille <akim@epita.fr>
2148
2149 * src: s/Copyright (C)/Copyright/g.
2150
5af1f549
AD
21512000-11-07 Akim Demaille <akim@epita.fr>
2152
2153 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2154 defining.
2155 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2156
553e2b22
AD
21572000-11-07 Akim Demaille <akim@epita.fr>
2158
2159 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2160 Merge in a single CPP if/else.
2161
8a4f41d6
AD
21622000-11-07 Akim Demaille <akim@epita.fr>
2163
2164 * src/output.c (output): Remove useless variables.
2165 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2166 argument `data' for consistency with the prototypes.
2167 Qualify it `const'.
2168 (obstack_copy, obstack_copy0): Rename the second argument as
2169 `address' for consistency. Qualify it `const'.
2170 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2171 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2172 `const' their input argument (`data' or `address').
2173 Adjust the corresponding macros to include `const' in casts.
2174
095a3fb5
AD
21752000-11-03 Akim Demaille <akim@epita.fr>
2176
2177 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2178 s/PFILE1/BISON_HAIRY/.
2179 Adjust dependencies.
2180
d1cdce7c
AD
21812000-11-03 Akim Demaille <akim@epita.fr>
2182
090c5ebf 2183 For some reason, this was not applied.
d1cdce7c
AD
2184
2185 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2186 `unlink': it's no longer used.
2187
9311529b
AD
21882000-11-03 Akim Demaille <akim@epita.fr>
2189
2190 * src/files.c (skeleton_find): New function, eved out of...
2191 (open_files, open_extra_files): here.
2192
d8880f69
AD
21932000-11-03 Akim Demaille <akim@epita.fr>
2194
2195 Don't use `atexit'.
2196
2197 * src/files.c (obstack_save): New function.
2198 (done): Rename as...
2199 (output_files): this.
2200 Use `obstack_save'.
2201 * src/main.c (main): Don't use `atexit' to register `done', since
2202 it no longer has to remove tmp files, just call `output_files'
2203 when there are no errors.
2204
0dbb648e
AD
22052000-11-02 Akim Demaille <akim@epita.fr>
2206
2207 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2208 `unlink': it's no longer used.
2209 * src/files.h: Formatting changes.
2210
896fe5c1
AD
22112000-11-02 Akim Demaille <akim@epita.fr>
2212
2213 Remove the last uses of mktemp and unlink/delete.
2214
2215 * src/files.c (fdefines, ftable): Removed.
2216 (defines_ostack, table_obstack): New.
2217 Adjust dependencies of the former into uses of the latter.
2218 * src/output.c (output_short_or_char_table, output_short_table):
2219 Convert to using obstacks.
2220 * src/reader.c (copy_comment2): Accept one FILE * and two
2221 obstacks.
2222 (output_token_defines, reader_output_yylsp): Use obstacks.
2223 * src/system.h (obstack_fgrow3): New.
2224
dd60faec
AD
22252000-11-01 Akim Demaille <akim@epita.fr>
2226
2227 Change each use of `fattrs' into a use of `attrs_obstack'.
2228
2229 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2230 * src/files.c (fattrs): Remove.
2231 (attrs_obstack): New.
2232 Adjust all dependencies.
2233 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2234
8c7ebe49
AD
22352000-11-01 Akim Demaille <akim@epita.fr>
2236
2237 Introduce obstacks.
2238 Change each use of `faction' into a use of `action_obstack'.
2239
2240 * lib/obstack.h, lib/obstack.c: New files.
2241 * src/files.c (faction): Remove.
2242 (action_obstack): New.
2243 Adjust all dependencies.
2244
77aee789
AD
22452000-10-20 Akim Demaille <akim@epita.fr>
2246
2247 * lib/quote.h (PARAMS): New macro. Use it.
2248
43591cec
AD
22492000-10-16 Akim Demaille <akim@epita.fr>
2250
2251 * src/output.c (output_short_or_char_table): New function.
2252 (output_short_table, output_token_translations): Use it.
2253 (goto_actions): Use output_short_table.
2254
1e9798d5
AD
22552000-10-16 Akim Demaille <akim@epita.fr>
2256
2257 * src/symtab.c (bucket_new): New function.
2258 (getsym): Use it.
2259
2260 * src/output.c (output_short_table): New argument to display the
2261 comment associated with the table.
2262 Adjust dependencies.
2263 (output_gram): Use it.
2264 (output_rule_data): Nicer output layout for YYTNAME.
2265
f282676b
AD
22662000-10-16 Akim Demaille <akim@epita.fr>
2267
2268 * src/lex.c (read_typename): New function.
2269 (lex): Use it.
2270 * src/reader.c (copy_dollar): Likewise.
2271
550a72a3
AD
22722000-10-16 Akim Demaille <akim@epita.fr>
2273
2274 * src/reader.c (copy_comment2): Expect the input stream to be on
2275 the `/' which is suspected to open a comment, instead of being
2276 called after `//' or `/*' was read.
2277 (copy_comment, copy_definition, parse_union_decl, copy_action)
2278 (copy_guard): Adjust.
2279
131e2fef
AD
22802000-10-16 Akim Demaille <akim@epita.fr>
2281
2282 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2283 `read_signed_integer'.
2284
79282c5a
AD
22852000-10-16 Akim Demaille <akim@epita.fr>
2286
2287 * src/reader.c (copy_dollar): New function.
2288 (copy_guard, copy_action): Use it.
2289
ff4a34be
AD
22902000-10-16 Akim Demaille <akim@epita.fr>
2291
2292 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2293 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2294 New files, from Fileutils 4.0.27.
2295 * src/main.c (printable_version): Remove.
2296 * src/lex.c, src/reader.c: Use `quote'.
2297
22982000-10-04 Akim Demaille <akim@epita.fr>
2299
2300 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2301
14ded682
AD
23022000-10-04 Akim Demaille <akim@epita.fr>
2303
2304 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2305
8e03724b
AD
23062000-10-04 Akim Demaille <akim@epita.fr>
2307
2308 When a literal string is used to define two different tokens,
2309 `bison -v' segfaults.
2310 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2311
2312 * tests/regression.m4: New file.
2313 Include the core of the sample provided by Piotr Gackiewicz.
2314 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2315 properly.
2316
a9e64249
AD
23172000-10-04 Akim Demaille <akim@epita.fr>
2318
2319 * src/reader.c (parse_expect_decl): Keep `count' within the size
2320 of `buffer'.
2321 From Neil Booth.
2322
da9abf43
AD
23232000-10-02 Paul Eggert <eggert@twinsun.com>
2324
2325 * bison.s1 (yyparse): Assign the default value
2326 unconditionally, to avoid a GCC warning and make the parser a
2327 tad smaller.
2328
c33638bb
AD
23292000-10-02 Akim Demaille <akim@epita.fr>
2330
2331 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2332 options.
2333
444c570a
AD
23342000-10-02 Akim Demaille <akim@epita.fr>
2335
2336 * src/derives.c, src/print.c, src/reduce.c: To ease the
2337 translation, move some `\n' out of the translated strings.
2338
89cab50d
AD
23392000-10-02 Akim Demaille <akim@epita.fr>
2340
2341 The location tracking mechanism is precious for parse error
2342 messages. Nevertheless, it is enabled only when `@n' is used in
2343 the grammar, which is a different issue (you can use it in error
2344 message, but not in the grammar per se). Therefore, there should
2345 be another means to enable it.
2346
2347 * src/getargs.c (getargs): Support `--locations'.
2348 (usage): Report it.
2349 * src/getargs.h (locationsflag): Export it.
2350 * src/lex.c (percent_table): Support `%locations'.
2351 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2352 with `locationsflag'.
2353 * doc/bison.texinfo: Document `--locations' and `%locations'.
2354 Sort the options.
2355 * tests/calc.m4: Test it.
2356
2357 For regularity of the names, replace each
2358 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2359 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2360 In addition replace each `flag' with `_flag'.
2361
d6c2cba0
AD
23622000-10-02 Akim Demaille <akim@epita.fr>
2363
2364 Also test parse error messages, including with YYERROR_VERBOSE.
2365
2366 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2367 associative).
2368 Use it to check the computations.
2369 Use it to check `nonassoc' is honored.
2370 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2371 `--yyerror-verbose'.
2372 (_AT_CHECK_CALC): Adjust to this option.
2373 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2374
5a35a6cb
AD
23752000-10-02 Akim Demaille <akim@epita.fr>
2376
2377 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2378 the latter demonstrates a flaw in the handling of non debugging
2379 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2380 was used in order to simplify:
2381
2382 #if YYDEBUG
2383 if (yydebug)
2384 {
2385 ...
2386 }
2387 #endif
2388
2389 into
2390
2391 if (yydebug)
2392 {
2393 ...
2394 }
2395
2396 unfortunately this leads to a CPP conflict when
2397 `--name-prefix=foo' is used since it produces `#define yydebug
2398 foodebug'.
2399
2400 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2401 (YYDPRINTF): New macro.
2402 Spread its use.
2403 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2404 the bison options.
2405 Also test `--verbose', `--defines' and `--name-prefix'.
2406
71da9eea
AD
24072000-10-02 Akim Demaille <akim@epita.fr>
2408
2409 Improve the readability of the produced parsers.
2410
2411 * src/bison.s1: Formatting changes.
2412 Improve the comment related to the `$' mark.
2413 (yydefault): Don't fall through to `yyresume': `goto' there.
2414 * src/output.c (output_parser): When the `$' is met, skip the end
2415 of its line.
2416 New variable, `number_of_dollar_signs', to check there's exactly
2417 one `$' in the parser skeleton.
2418
95e36146
AD
24192000-10-02 Akim Demaille <akim@epita.fr>
2420
2421 * lib/xstrdup.c: New file, from the fileutils.
2422 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2423 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2424 instead of strlen + xmalloc + strcpy.
2425 * src/symtab.c (copys): Remove, use xstrdup instead.
2426
d7020c20
AD
24272000-10-02 Akim Demaille <akim@epita.fr>
2428
2429 * src/gram.h (associativity): New enum type which replaces the
2430 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2431 `right_assoc', `left_assoc' and `non_assoc'.
2432 Adjust all dependencies.
2433 * src/reader.c: Formatting changes.
2434 (LTYPESTR): Don't define it, use it as a literal in
2435 `reader_output_yylsp'.
2436 * src/symtab.h (symbol_class): New enum type which replaces the
2437 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2438 `sunknown', `stoken and `snterm'.
2439
1916f98e
AD
24402000-10-02 Akim Demaille <akim@epita.fr>
2441
2442 * src/getargs.c (fixed_outfiles): Rename as...
2443 (yaccflag): for consistency and accuracy.
2444 Adjust dependencies.
2445
d7913476
AD
24462000-10-02 Akim Demaille <akim@epita.fr>
2447
2448 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2449 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2450 difficult and introduced a lot of core dump. It turns out that
2451 Bison used an implementation of `xmalloc' based on `calloc', and
2452 at various places it does depend upon the initialization to 0. I
2453 have not tried to isolate the pertinent places, and all the former
2454 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2455 someone should address this issue.
2456
2457 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2458 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2459 files.
2460 Adjust dependencies.
2461 * src/warshall.h: New file.
2462 Propagate.
2463
340ef489
AD
24642000-10-02 Akim Demaille <akim@epita.fr>
2465
2466 Various anti-`extern in *.c' changes.
2467
2468 * src/system.h: Include `assert.h'.
2469
b2ca4022
AD
24702000-10-02 Akim Demaille <akim@epita.fr>
2471
2472 * src/state.h (nstates, final_state, first_state, first_shift)
2473 (first_reduction): Move their exportation from here...
2474 * src/LR0.h: to here.
2475 Adjust dependencies.
2476 * src/getargs.c (statisticsflag): New variable.
2477 Add support for `--statistics'.
2478 Adjust dependencies.
2479
2480 Remove a lot of now useless `extern' statements in most files.
2481
403b315b
AD
24822000-10-02 Akim Demaille <akim@epita.fr>
2483
2484 * src/LR0.h: New file.
2485 Propagate its use.
2486
07a58c13
AD
24872000-10-02 Akim Demaille <akim@epita.fr>
2488
2489 * src/print.h: New file.
2490 Propagate its use.
2491 * src/print.c: Formatting and ordering changes.
2492 (verbose, terse): Replace with...
2493 (print_results): this new function.
2494 Adjust dependencies.
2495
0619caf0
AD
24962000-10-02 Akim Demaille <akim@epita.fr>
2497
2498 * src/conflicts.c (conflict_report): New function.
2499 (conflict_log, verbose_conflict_log): Replace with...
2500 (print_conflicts): this function.
2501 Adjust dependencies.
2502 * src/conflicts.h: New file.
2503 Propagate its inclusion.
2504
3519ec76
AD
25052000-10-02 Akim Demaille <akim@epita.fr>
2506
2507 * src/nullable.h: New file.
2508 Propagate its inclusion.
2509 * src/nullable.c: Formatting changes.
2510
015acc48
AD
25112000-10-02 Akim Demaille <akim@epita.fr>
2512
2513 * src/reduce.h: New file.
2514 Propagate its inclusion.
2515 * src/reduce.c: Topological sort and other formatting changes.
2516 (bool, TRUE, FALSE): Move their definition to...
2517 * src/system.h: here.
2518
8963a27b
AD
25192000-10-02 Akim Demaille <akim@epita.fr>
2520
2521 * src/files.c: Formatting changes.
2522 (tryopen, tryclose, openfiles): Rename as...
2523 (xfopen, xfclose, open_files): this.
2524 (stringappend): static.
2525 * src/files.h: Complete the list of exported symbols.
2526 Propagate its use.
2527
a70083a3
AD
25282000-10-02 Akim Demaille <akim@epita.fr>
2529
2530 * src/reader.h: New file.
2531 Propagate its use instead of tedious list of `extern' and
2532 prototypes.
2533 * src/reader.c: Formatting changes, topological sort,
2534 s/register//.
2535
abadc117
AD
25362000-10-02 Akim Demaille <akim@epita.fr>
2537
2538 * src/lex.h: Prototype `lex.c' exported functions.
2539 * src/reader.c: Adjust.
2540 * src/lex.c: Formatting changes.
2541 (safegetc): Rename as...
2542 (xgetc): this.
2543
720d742f
AD
25442000-10-02 Akim Demaille <akim@epita.fr>
2545
2546 * src/lalr.h: New file.
2547 Propagate its inclusion instead of prototypes and `extern'.
2548 * src/lalr.c: Formatting changes, topological sorting etc.
2549
f2acea59
AD
25502000-10-02 Akim Demaille <akim@epita.fr>
2551
2552 * src/output.c (token_actions): Introduce a temporary array,
2553 YYDEFACT, that makes it possible for this function to use
2554 output_short_table.
2555
d019d655
AD
25562000-10-02 Akim Demaille <akim@epita.fr>
2557
2558 `user_toknums' is output as a `short[]' in `output.c', while it is
2559 defined as a `int[]' in `reader.c'. For consistency with the
2560 other output tables, `user_toknums' is now defined as a table of
2561 shorts.
2562
2563 * src/reader.c (user_toknums): Be a short table instead of an int
2564 table.
2565 Adjust dependencies.
2566
2567 Factor the short table outputs.
2568
2569 * src/output.c (output_short_table): New function.
2570 * src/output.c (output_gram, output_stos, output_rule_data)
2571 (output_base, output_table, output_check): Use it.
2572
6c89f1c1
AD
25732000-10-02 Akim Demaille <akim@epita.fr>
2574
2575 * src/output.c (output): Topological sort of the functions, in
2576 order to get rid of the `static' prototypes.
2577 No longer use `register'.
2578 * src/output.h: New file.
2579 Propagate its inclusion in files explicitly prototyping functions
2580 from output.c.
2581
d9efd181
AD
25822000-09-21 Akim Demaille <akim@epita.fr>
2583
2584 * src/atgeneral.m4: Update from Autoconf.
2585
c29240e7 25862000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
2587
2588 * src/closure.h: New file.
2589 * src/closure.c: Formatting changes, topological sort over the
2590 functions, use of closure.h.
2591 (initialize_closure, finalize_closure): Rename as...
2592 (new_closure, free_closure): these. Adjust dependencies.
2593 * src/LR0.c: Formatting changes, topological sort, use of
2594 cloture.h.
2595 (initialize_states): Rename as...
2596 (new_states): this.
2597 * src/Makefile.am (noinst_HEADERS): Adjust.
2598
499daa50
AD
25992000-09-20 Akim Demaille <akim@epita.fr>
2600
2601 * src/acconfig.h: Don't protect config.h against multiple
2602 inclusion.
2603 Don't define PARAMS.
2604 * src/system.h: Define PARAMS.
2605 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2606 purpose of config.h. system.h must not try to fix wrong
2607 definitions in config.h.
2608
cc84fd5d
AD
26092000-09-20 Akim Demaille <akim@epita.fr>
2610
2611 * src/derives.h: New file.
2612 * src/main.c, src/derives.h: Use it.
2613 Formatting changes.
2614 * src/Makefile.am (noinst_HEADERS): Adjust.
2615
db5b3a89
AD
26162000-09-20 Akim Demaille <akim@epita.fr>
2617
2618 * tests/atgeneral.m4: Update from Autoconf.
2619 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2620 (AT_CHECK_CALC): New macros.
2621 Use these macros to test bison with options `', `--raw',
2622 `--debug', `--yacc', `--yacc --debug'.
2623
ceed8467
AD
26242000-09-19 Akim Demaille <akim@epita.fr>
2625
2626 * src/output.c: Formatting changes.
2627 * src/machine.h: Remove, leaving its contents in...
2628 * src/system.h: here.
2629 Include stdio.h.
2630 Adjust all dependencies on stdio.h and machine.h.
2631 * src/getargs.h: New file.
2632 Let all `extern' declarations about getargs.c be replaced with
2633 inclusion of `getargs.h'.
2634 * src/Makefile.am (noinst_HEADERS): Adjust.
2635
2636 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2637 scope.
2638 (yyerror): Returns void, not int.
2639 * doc/bison.texinfo: Formatting changes.
2640
05a1d24b
AD
26412000-09-19 Akim Demaille <akim@epita.fr>
2642
2643 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2644 portable.
2645
cbd25751
AD
26462000-09-18 Akim Demaille <akim@epita.fr>
2647
2648 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2649 * src/Makefile.am (INCLUDES): Don't.
2650 Be ready to fetch headers in lib/.
2651
13863333
AD
26522000-09-18 Akim Demaille <akim@epita.fr>
2653
2654 * doc/bison.texinfo: Update the copyright.
2655 ANSIfy and GNUify the examples.
2656 Remove the old menu.
2657
0d533154
AD
26582000-09-18 Akim Demaille <akim@epita.fr>
2659
2660 First set of tests: use the `calc' example from the documentation.
2661
2662 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2663 is defined only when YYDEBUG is.
2664 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2665 * src/files.c (tryopen, tryclose): Formatting changes.
2666 Move to the top and be static.
2667 * src/reader.c (read_signed_integer): Likewise.
2668 * tests/calc.m4: New file.
2669 * Makefile.am, suite.m4: Adjust.
2670 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2671
e79137ac
AD
26722000-09-18 Akim Demaille <akim@epita.fr>
2673
2674 Add support for an Autotest test suite for Bison.
2675
2676 * m4/m4.m4, m4/atconfig.m4: New files.
2677 * m4/Makefile.am (EXTRA_DIST): Adjust.
2678 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2679 files.
2680 * src/getargs.c: Display a more standard --version message.
2681 * src/reader.c (reader): Formatting changes.
2682 No longer depend upon VERSION_STRING.
2683 * configure.in: No longer use `dnl'.
2684 Set up the test suite and the new directory `tests/.
2685 (VERSION_STRING): Remove.
2686
27821bff
AD
26872000-04-14 Akim Demaille <akim@epita.fr>
2688
2689 * src/reader.c (copy_comment2): New function, same as former
2690 `copy_comment', but outputs into two FILE *.
2691 (copy_comment): Use it.
2692 (parse_union_decl): Use it.
2693 (get_type, parse_start_decl): Use the same `invalid' message.
2694 (parse_start_decl, parse_union_decl): Use the same `multiple'
2695 message.
2696 (parse_union_decl, copy_guard, copy_action): Use the same
2697 `unmatched' message.
2698 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2699
cfe5fbc0
AD
27002000-03-31 Akim Demaille <akim@epita.fr>
2701
2702 * src/files.c (tryopen, tryclose): Move to the top.
2703 Be static.
2704
cb7db13e
AD
27052000-03-31 Akim Demaille <akim@epita.fr>
2706
2707 * src/main.c (main): Don't call `done', exit does it.
2708
a0f6b076
AD
27092000-03-31 Akim Demaille <akim@epita.fr>
2710
36281465
AD
2711 * allocate.c: s/return (foo)/return foo/.
2712 * lalr.c: Likewise.
2713 * LR0.c: Likewise.
2714 * output.c: Likewise.
2715 * reader.c: Likewise.
2716 * symtab.c: Likewise.
2717 * vmsgetargs.c: Likewise.
2718
27192000-03-31 Akim Demaille <akim@epita.fr>
2720
2721 Clean up the error reporting functions.
a0f6b076
AD
2722
2723 * src/report.c: New file.
2724 * src/report.h: Likewise.
2725 * src/Makefile.am: Adjust.
2726 * m4/error.m4: New file.
2727 * m4/Makefile.am: Adjust.
2728 * configure.in (jm_PREREQ_ERROR): Call it.
2729 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2730 Remove.
2731 (fatal, fatals): Remove. All callers use complain.c::fatal.
2732 (warn, warni, warns, warnss, warnss): Remove. All callers use
2733 complain.c::complain.
2734 (toomany): Remove, use fatal instead.
2735 * src/files.c (done): No argument, use complain_message_count.
2736 * src/main.c (main): Register `done' to `atexit'.
2737
2738 * src/getargs.c (usage): More `fputs', less `fprintf'.
2739
18539825
AD
27402000-03-28 Akim Demaille <akim@epita.fr>
2741
2742 * lib/: New directory.
2743 * Makefile.am (SUBDIRS): Adjust.
2744 * configure.in: Adjust.
2745 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2746 useless.
2747 * src/alloca.c: Moved to lib/.
2748 * src/getopt.c: Likewise.
2749 * src/getopt1.c: Likewise.
2750 * src/getopt.h: Likewise.
2751 * src/ansi2knr.c: Likewise.
2752 * src/ansi2knr.1: Likewise.
2753 * src/Makefile.am: Adjust.
2754 * lib/Makefile.am: New file.
2755
9f306f2a
AD
27562000-03-28 Akim Demaille <akim@epita.fr>
2757
2758 * src/getargs.c (usage): Refresh the help message.
2759
0ba347b6
AD
27602000-03-17 Akim Demaille <akim@epita.fr>
2761
2762 * src/getopt1.c: Updated from textutils 2.0e
2763 * src/getopt.c: Likewise.
2764 * src/getopt.h: Likewise.
2765
dbe7f271
AD
27662000-03-17 Akim Demaille <akim@epita.fr>
2767
2768 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2769 the file name, not the whole `#line LINE FILE'.
2770
75bbe78d
AD
27712000-03-17 Akim Demaille <akim@epita.fr>
2772
2773 On syntax errors, report the token on which we choked.
2774
aa5fd0ee
AD
2775 * src/bison.s1 (yyparse): In the label yyerrlab, when
2776 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2777
7b306f52
AD
27782000-03-17 Akim Demaille <akim@epita.fr>
2779
aa5fd0ee 2780 * src/reader.c (copy_at): New function.
7b306f52
AD
2781 (copy_guard): Use it.
2782 (copy_action): Use it.
2783
e87b5700
AD
27842000-03-17 Akim Demaille <akim@epita.fr>
2785
2786 Be kind to translators, save some useless translations.
2787
aa5fd0ee 2788 * src/main.c (banner): New function.
e87b5700
AD
2789 (fatal_banner): Use it.
2790 (warn_banner): Use it.
2791
ae3c3164
AD
27922000-03-17 Akim Demaille <akim@epita.fr>
2793
aa5fd0ee
AD
2794 * src/reader.c (copy_definition): Use copy_string and
2795 copy_comment. Removed now unused `match', `ended',
2796 `cplus_comment'.
ae3c3164
AD
2797 (copy_comment, copy_string): Moved, to be visible from
2798 copy_definition.
2799
4dc58e7c
AD
28002000-03-17 Akim Demaille <akim@epita.fr>
2801
aa5fd0ee
AD
2802 * src/reader.c (copy_string): Declare `static inline'. No
2803 problems with inline, since it is checked by configure.
4dc58e7c
AD
2804 (copy_comment): Likewise.
2805
0a6384c4
AD
28062000-03-17 Akim Demaille <akim@epita.fr>
2807
aa5fd0ee 2808 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2809
3cef001a
AD
28102000-03-17 Akim Demaille <akim@epita.fr>
2811
aa5fd0ee 2812 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2813 (copy_action): Use it. Removed now unused `match', `ended',
2814 `cplus_comment'.
2815 (copy_guard): Likewise.
2816
ca36d2ef
AD
28172000-03-17 Akim Demaille <akim@epita.fr>
2818
aa5fd0ee 2819 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2820 (copy_action): Use it.
2821 (copy_guard): Likewise.
2822
6666f98f
AD
28232000-03-17 Akim Demaille <akim@epita.fr>
2824
2825 Change the handling of @s so that they behave exactly like $s.
2826 There is now a pseudo variable @$ (readble and writable), location
2827 of the lhs of the rule (by default ranging from the location of
2828 the first symbol of the rhs, to the location of the last symbol,
2829 or, if the rhs is empty, YYLLOC).
2830
2831 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2832 yyval.
2833 (yyparse): When providing a default semantic action, provide a
2834 default location action.
2835 (after the $): No longer change `*YYLSP', just stack YYLOC the
2836 same way you stack YYVAL.
2837 * src/reader.c (read_declarations): Use warns.
2838 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2839 (copy_action, case '@'): Likewise.
2840 Use a standard error message, to save useless work from
2841 translators.
2842
41aca2e0
AD
28432000-03-17 Akim Demaille <akim@epita.fr>
2844
aa5fd0ee
AD
2845 * src/bison.s1: Formatting and cosmetics changes.
2846 * src/reader.c: Likewise.
41aca2e0
AD
2847 Update the Copyright notice.
2848
dc08c1d5
AD
28492000-03-17 Akim Demaille <akim@epita.fr>
2850
aa5fd0ee
AD
2851 * src/bison.s1 (#line): All set to `#line' only, since the
2852 Makefile now handles them.
dc08c1d5 2853
9ee3c97b
AD
28542000-03-16 Akim Demaille <akim@epita.fr>
2855
2856 * src/output.c (output_rule_data): Output the documentation of
2857 some of the tables.
2858 (Copyright notice): Update.
2859 Formatting changes.
2860
0de741ca
AD
28612000-03-16 Akim Demaille <akim@epita.fr>
2862
2863 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2864 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2865 One `#if YYDEBUG' remains, since it uses variables which are
2866 defined only if `YYDEBUG != 0'.
2867
bb10be54
AD
28682000-03-16 Akim Demaille <akim@epita.fr>
2869
2870 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2871 and related variables so that the similarities are highlighted.
2872
b07b484a
AD
28732000-03-16 Akim Demaille <akim@epita.fr>
2874
2875 * src/bison.s1: Properly indent CPP directives.
2876
361f60b3
AD
28772000-03-16 Akim Demaille <akim@epita.fr>
2878
2879 * src/bison.s1: Properly indent the `alloca' CPP section.
2880
8c44d3ec
AD
28812000-03-16 Akim Demaille <akim@epita.fr>
2882
2883 Do not hard code values of directories in `configure.in'.
2884 Update the `configure' tool chain.
2885
2886 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2887 src/makefile.am.
2888 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2889 (AC_OUTPUT): Add m4/Makefile.
2890 Bump to bison 1.28a, 1.29 has never been released.
2891 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2892 handled via src/Makefile.am.
2893 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2894 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2895 autoheader.
2896 * Makefile.am (SUBDIRS): Add m4.
2897 (ACLOCAL_AM_FLAGS): New variable.
2898 (AUTOMAKE_OPTIONS): Add check-news.
2899 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2900 the proper line number and file name.
2901 (DEFS): Propagate the location of bison library files and of the
2902 locale files.
2903 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2904 builddir.
2905 * acinclude.m4: Remove, replaced by the directory m4.
2906 * m4/Makefile.am (EXTRA_DIST): New variable.
2907 * m4/gettext.m4: New file, from the fileutils.
2908 * m4/lcmessage.m4: Likewise
2909 * m4/progtest.m4: Likewise.
2910 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2911
f95997e7
AD
29122000-03-10 Akim Demaille <akim@epita.fr>
2913
2914 * src/closure.c:
2915 Formatting changes of various comments.
2916 Respect the GNU coding standards at various places.
2917 Don't use `_()' when no translation is needed.
2918
29191999-12-13 Jesse Thilo <jthilo@gnu.org>
2920
2921 * src/files.c:
2922 OS/2 honors TMPDIR environment variable.
2923
29241999-12-13 Jesse Thilo <jthilo@gnu.org>
2925
2926 * doc/bison.texinfo: Tweaked spelling and grammar.
2927 Updated ISBN.
2928 Removed reference to price of printed copy.
2929 Mention BISON_SIMPLE and BISON_HAIRY.
2930
29311999-12-13 Jesse Thilo <jthilo@gnu.org>
2932
2933 * configure.in, NEWS:
2934 Bison 1.29 released.
2935
29361999-10-27 Jesse Thilo <jthilo@gnu.org>
2937
2938 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2939 Added reference card.
2940
29411999-07-26 Jesse Thilo <jthilo@gnu.org>
2942
2943 * po/ru.po: Added Russian translation.
2944
29451999-07-26 Jesse Thilo <jthilo@gnu.org>
2946
2947 * configure.in: Added Russian translation.
2948
29491999-07-06 Jesse Thilo <jthilo@gnu.org>
2950
2951 * configure.in, NEWS, README:
2952 Released version 1.28.
2953
29541999-06-14 Jesse Thilo <jthilo@gnu.org>
2955
2956 * src/system.h:
2957 Squashed redefinition warning on some systems.
2958
2959 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2960 Have configure build version string instead of relying on ANSI string
2961 concatentation.
2962
29631999-06-14 Jesse Thilo <jthilo@gnu.org>
2964
2965 * po/POTFILES.in: Got rid of version.c.
2966
29671999-06-14 Jesse Thilo <jthilo@gnu.org>
2968
2969 * acconfig.h, configure.in:
2970 Have configure build version string instead of relying on ANSI string
2971 concatentation.
2972
29731999-06-08 Jesse Thilo <jthilo@gnu.org>
2974
2975 * doc/bison.1:
2976 Dropped mention of `+' for long-named options.
2977
29781999-05-30 Jesse Thilo <jthilo@gnu.org>
2979
2980 * src/files.c: Added <unistd.h> for unlink().
2981
2982 * src/Makefile.am, src/system.h:
2983 I18n fixes.
2984
29851999-05-30 Jesse Thilo <jthilo@gnu.org>
2986
2987 * README: Added a FAQ list.
2988
2989 * configure.in, acconfig.h:
2990 I18n fixes.
2991
29921999-05-30 Jesse Thilo <jthilo@gnu.org>
2993
2994 * doc/FAQ, doc/Makefile.am:
2995 Added a FAQ list.
2996
29971999-05-19 Jesse Thilo <jthilo@gnu.org>
2998
2999 * src/alloc.h, src/symtab.h, src/version.c:
3000 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3001
30021999-04-18 Jesse Thilo <jthilo@gnu.org>
3003
3004 * src/.cvsignore, src/Makefile.am:
3005 Reorganized: sources in `src', documentation in `doc'.
3006
3007 * src/lex.c (literalchar):
3008 fixed the code for escaping double quotes (thanks
3009 Jonathan Czisny.)
3010
30111999-04-18 Jesse Thilo <jthilo@gnu.org>
3012
3013 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3014 Adjusted paths to reflect directory reorganization.
3015
30161999-04-18 Jesse Thilo <jthilo@gnu.org>
3017
3018 * doc/.cvsignore, doc/Makefile.am:
3019 Reorganized: sources in `src', documentation in `doc'.
3020
30211999-04-18 Jesse Thilo <jthilo@gnu.org>
3022
3023 * configure.in:
3024 Updated AC_INIT file to reflect directory reorganization.
3025
3026 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3027 Reorganized: sources in `src', documentation in `doc'.
3028
30291999-04-13 Jesse Thilo <jthilo@gnu.org>
3030
3031 * src/allocate.c:
3032 Don't declare calloc() and realloc() if not necessary.
3033
30341999-04-13 Jesse Thilo <jthilo@gnu.org>
3035
3036 * configure.in, acconfig.h, acinclude.m4:
3037 Don't declare calloc() and realloc() if not necessary.
3038
30391999-03-23 Jesse Thilo <jthilo@gnu.org>
3040
3041 * po/.cvsignore: Added i18n support.
3042
30431999-03-23 Jesse Thilo <jthilo@gnu.org>
3044
3045 * acconfig.h, configure.in, Makefile.am:
3046 Added i18n support.
3047
30481999-03-22 Jesse Thilo <jthilo@gnu.org>
3049
3050 * src/bison.s1: Fixed #line numbers.
3051
30521999-03-15 Jesse Thilo <jthilo@gnu.org>
3053
3054 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3055 Added PO files from Translation Project.
3056
30571999-03-03 Jesse Thilo <jthilo@gnu.org>
3058
3059 * Makefile.am:
3060 Added support for non-ANSI compilers (ansi2knr).
3061
30621999-02-16 Jesse Thilo <jthilo@gnu.org>
3063
3064 * configure.in: Bumped version number to 1.27.
3065
3066 * Makefile.am:
3067 Added `bison.simple' to list of files removed by `make distclean'.
3068
30691999-02-12 Jesse Thilo <jthilo@gnu.org>
3070
3071 * src/files.c, src/files.h:
3072 Defined locations of parser files in config.h instead of Makefile.
3073
30741999-02-12 Jesse Thilo <jthilo@gnu.org>
3075
3076 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3077 Defined locations of parser files in config.h instead of Makefile.
3078
30791999-02-09 Jesse Thilo <jthilo@gnu.org>
3080
3081 * Makefile.am:
3082 Removed inappropriate use of $< macro.
3083
30841999-02-05 Jesse Thilo <jthilo@gnu.org>
3085
3086 * po/Makefile.in.in, po/POTFILES.in:
3087 Add `po' directory skeleton.
3088
30891999-01-27 Jesse Thilo <jthilo@gnu.org>
3090
3091 * README: Document help-bison list.
3092
3093 * configure.in: Add check for mkstemp().
3094
30951999-01-20 Jesse Thilo <jthilo@gnu.org>
3096
3097 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3098 Hush a few compiler warnings.
3099
3100 * src/files.c:
3101 Add tryclose(), which verifies that fclose was successful.
3102 Hush a couple of compiler warnings.
3103
31041999-01-20 Jesse Thilo <jthilo@gnu.org>
3105
3106 * Makefile.am, OChangeLog:
3107 ChangeLog is now automatically generated. Include the old version as
3108 OChangeLog.
3109
31101999-01-14 Jesse Thilo <jthilo@gnu.org>
3111
3112 * 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:
3113 Update FSF address.
3114
31151999-01-14 Jesse Thilo <jthilo@gnu.org>
3116
3117 * doc/bison.texinfo: Fix formatting glitch.
3118
3119 * doc/bison.texinfo: Update FSF address.
3120
31211999-01-14 Jesse Thilo <jthilo@gnu.org>
3122
3123 * acconfig.h: Update FSF address.
3124
31251999-01-08 Jesse Thilo <jthilo@gnu.org>
3126
3127 * src/system.h:
3128 Don't define PACKAGE here, since config.h defines it.
3129
31301998-12-30 Jesse Thilo <jthilo@gnu.org>
3131
3132 * src/reader.c: Update copyright date.
3133
3134 * src/main.c:
3135 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3136 favor of output directly to stderr (avoids buffer overruns).
3137
3138 * src/reader.c: Some checks for premature EOF.
3139
3140 * 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:
3141 Use prototypes if the compiler understands them.
3142
3143 * src/files.c: Honor TMPDIR on Unix hosts.
3144 Use prototypes if the compiler understands them.
3145
3146 * src/reader.c:
3147 Fix a couple of buffer overrun bugs.
3148 Use prototypes if the compiler understands them.
3149
3150 * src/system.h: Include unistd.h and ctype.h.
3151 Use #ifdef instead of #if for NLS symbols.
3152
31531998-12-30 Jesse Thilo <jthilo@gnu.org>
3154
3155 * doc/bison.texinfo:
3156 Delete comment "consider using @set for edition number, etc..." since
3157 we now are doing so.
3158
31591998-12-30 Jesse Thilo <jthilo@gnu.org>
3160
3161 * configure.in:
3162 Use prototypes if the compiler understands them.
3163
3164 * NEWS: Document 1.26 highlights.
3165
3166 * Makefile.am: Require Automake 1.3 or later.
3167
3168 * acconfig.h:
3169 Use prototypes if the compiler understands them.
3170
31711998-12-29 Jesse Thilo <jthilo@gnu.org>
3172
3173 * src/version.c:
3174 Use VERSION symbol from automake for version number.
3175
31761998-12-29 Jesse Thilo <jthilo@gnu.org>
3177
3178 * acconfig.h, configure.in, version.cin:
3179 Use VERSION symbol from automake for version number.
3180
31811998-11-28 Jesse Thilo <jthilo@gnu.org>
3182
3183 * Makefile.am:
3184 Distribute original version of simple parser (bison.s1), not built
3185 version (bison.simple).
3186
31871998-11-28 Jesse Thilo <jthilo@gnu.org>
3188
3189 * doc/bison.texinfo: Add info dir entry.
3190
3191 * doc/bison.texinfo:
3192 Let automake put version number into documentation.
3193
31941998-11-26 Jesse Thilo <jthilo@gnu.org>
3195
3196 * src/bison.cld, src/build.com, src/vmshlp.mar:
3197 Add non-RCS files from /gd/gnu/bison.
3198
31991998-11-26 Jesse Thilo <jthilo@gnu.org>
3200
3201 * doc/bison.1:
3202 Document the BISON_HAIRY and BISON_SIMPLE variables.
3203
32041998-11-25 Jesse Thilo <jthilo@gnu.org>
3205
3206 * src/version.c: Build version.c automatically.
3207
3208 * src/reader.c:
3209 Fix token numbering (used to start at 258, not 257).
3210
3211 * src/system.h: Include config.h.
3212
3213 * src/getargs.c: Update bug report address.
3214
3215 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3216 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3217
32181998-11-25 Jesse Thilo <jthilo@gnu.org>
3219
3220 * Makefile.am:
3221 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3222
3223 * configure.in, version.cin:
3224 Build version.c automatically.
3225
3226 * AUTHORS: Add AUTHORS file.
3227
3228 * README: Update bug report address.
3229
3230 * bison.simple:
3231 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3232
3233 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3234 Add automake stuff.
3235
32361998-11-25 Jesse Thilo <jthilo@gnu.org>
3237
3238 * doc/bison.texinfo: Clean up some formatting.
3239
32401998-05-05 Richard Stallman <rms@gnu.org>
3241
3242 * doc/bison.texinfo:
3243 Explain better why to make a pure parser.
3244
32451998-01-05 Richard Stallman <rms@gnu.org>
3246
3247 * src/files.c (openfiles):
3248 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3249 find a temporary directory, if possible. Do not unlink files while
3250 they are open.
3251
32521997-08-25 Richard Stallman <rms@gnu.org>
3253
3254 * src/reader.c (stack_offset;):
3255 Change some warni to warns.
3256
3257 * src/lex.c (literalchar): Use warns, not warni.
3258
32591997-06-28 Richard Stallman <rms@gnu.org>
3260
3261 * src/bison.s1: Add a Bison version comment.
3262
3263 * src/main.c (fatal, warn, berror):
3264 Use program_name.
3265
32661997-06-28 Richard Stallman <rms@gnu.org>
3267
3268 * Makefile.in (bison_version): New variable.
3269 (dist): Use that variable.
3270 (bison.s1): Substitute the Bison version into bison.simple.
3271
3272 * bison.simple: Add a Bison version comment.
3273
32741997-06-18 Richard Stallman <rms@gnu.org>
3275
3276 * src/main.c (fatal, warn, berror):
3277 Make error messages standard.
3278 (toomany): Improve error message text.
3279
3280 * 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:
3281 new.h renamed to alloc.h.
3282
32831997-06-18 Richard Stallman <rms@gnu.org>
3284
3285 * Makefile.in: new.h renamed to alloc.h.
3286
32871997-05-24 Richard Stallman <rms@gnu.org>
3288
3289 * src/lex.c (literalchar):
3290 Fix the code for escaping \, " and '.
3291
3292 (lex): Avoid trouble when there are many chars
3293 to discard in a char literal with just several chars in it.
3294
32951997-05-17 Richard Stallman <rms@gnu.org>
3296
3297 * src/bison.s1:
3298 Use malloc, if using alloca is troublesome.
3299 (YYSTACK_USE_ALLOCA): New flag macro.
3300 Define it for some systems and compilers.
3301 (YYSTACK_ALLOC): New macro.
3302 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3303 If it was malloc'd, free it.
3304
33051997-05-17 Richard Stallman <rms@gnu.org>
3306
3307 * bison.simple:
3308 Use malloc, if using alloca is troublesome.
3309 (YYSTACK_USE_ALLOCA): New flag macro.
3310 Define it for some systems and compilers.
3311 (YYSTACK_ALLOC): New macro.
3312 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3313 If it was malloc'd, free it.
3314
33151997-04-23 Richard Stallman <rms@gnu.org>
3316
3317 * src/bison.s1:
3318 (alloca) [__hpux]: Always define as __builtin_alloca.
3319
33201997-04-23 Richard Stallman <rms@gnu.org>
3321
3322 * bison.simple:
3323 (alloca) [__hpux]: Always define as __builtin_alloca.
3324
33251997-04-22 Richard Stallman <rms@gnu.org>
3326
3327 * src/bison.s1:
3328 [__hpux]: Include alloca.h (right for HPUX 10)
3329 instead of declaring alloca (right for HPUX 9).
3330
3331 * src/bison.s1 (__yy_memcpy):
3332 Declare arg `count' as unsigned int.
3333 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3334
33351997-04-22 Richard Stallman <rms@gnu.org>
3336
3337 * bison.simple:
3338 [__hpux]: Include alloca.h (right for HPUX 10)
3339 instead of declaring alloca (right for HPUX 9).
3340
3341 * bison.simple (__yy_memcpy):
3342 Declare arg `count' as unsigned int.
3343 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3344
33451997-01-03 Richard Stallman <rms@gnu.org>
3346
3347 * src/allocate.c: [__STDC__ or _MSC_VER]:
3348 Declare calloc and realloc to return void *.
3349
33501997-01-02 Richard Stallman <rms@gnu.org>
3351
3352 * src/system.h:
3353 [_MSC_VER]: Include stdlib.h and process.h.
3354 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3355
3356 * src/main.c (main): Return FAILURE as a value.
3357 (printable_version): Declare arg as int, not char.
3358
33591997-01-02 Richard Stallman <rms@gnu.org>
3360
3361 * Makefile.in (dist):
3362 Explicitly check for symlinks, and copy them.
3363
33641996-12-19 Richard Stallman <rms@gnu.org>
3365
3366 * src/files.c:
3367 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3368
33691996-12-18 Paul Eggert <eggert@gnu.org>
3370
3371 * src/bison.s1 (yyparse):
3372 If __GNUC__ and YYPARSE_PARAM are both defined,
3373 declare yyparse to have a void * argument.
3374
33751996-12-18 Paul Eggert <eggert@gnu.org>
3376
3377 * bison.simple (yyparse):
3378 If __GNUC__ and YYPARSE_PARAM are both defined,
3379 declare yyparse to have a void * argument.
3380
33811996-12-17 Richard Stallman <rms@gnu.org>
3382
3383 * src/reduce.c (nbits): Add some casts.
3384
33851996-08-12 Richard Stallman <rms@gnu.org>
3386
3387 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3388
33891996-08-12 Richard Stallman <rms@gnu.org>
3390
3391 * bison.simple: Test _MSDOS as well as _MSDOS_.
3392
33931996-07-31 Richard Stallman <rms@gnu.org>
3394
3395 * src/bison.s1:
3396 [__sun && __i386]: Include alloca.h.
3397
33981996-07-31 Richard Stallman <rms@gnu.org>
3399
3400 * bison.simple:
3401 [__sun && __i386]: Include alloca.h.
3402
34031996-07-30 Richard Stallman <rms@gnu.org>
3404
3405 * src/bison.s1: Comment change.
3406
3407 * src/bison.s1: Test _MSDOS_, not MSDOS.
3408
34091996-07-30 Richard Stallman <rms@gnu.org>
3410
3411 * bison.simple: Comment change.
3412
3413 * bison.simple: Test _MSDOS_, not MSDOS.
3414
34151996-06-01 Richard Stallman <rms@gnu.org>
3416
3417 * 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:
3418 Insert `_' macro around many string constants.
3419
3420 * src/main.c:
3421 Insert `_' macro around many string constants.
3422
3423 (main): Call setlocale, bindtextdomain and textdomain.
3424
3425 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3426 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3427 [ENABLE_NLS]: Include libintl.h.
3428 [ENABLE_NLS] (gettext): Define.
3429 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3430 (N_, PACKAGE, LOCALEDIR): New macros.
3431
34321996-06-01 Richard Stallman <rms@gnu.org>
3433
3434 * POTFILES.in: New file.
3435
3436 * Makefile.in (allocate.o):
3437 Define target explicitly.
3438
3439 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3440 (LDFLAGS): Set to @LDFLAGS@.
3441 (configure): Run autoconf only if preceding `cd' succeeds.
3442 (bison.s1): Redirect output to temporary file then move the
3443 temporary to the target, rather than redirecting directly to bison.s1.
3444 (clean): Remove config.status and config.log.
3445 (distclean): Don't remove config.status here.
3446
34471996-05-12 Richard Stallman <rms@gnu.org>
3448
3449 * src/bison.s1:
3450 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3451
34521996-05-12 Richard Stallman <rms@gnu.org>
3453
3454 * bison.simple:
3455 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3456
34571996-05-11 Richard Stallman <rms@gnu.org>
3458
3459 * src/bison.s1 (__yy_memcpy):
3460 Really reorder the args, as was supposedly done on Feb 14 1995.
3461 (yyparse): Calls changed accordingly.
3462
34631996-05-11 Richard Stallman <rms@gnu.org>
3464
3465 * Makefile.in (dist): Don't use $(srcdir).
3466
3467 * bison.simple (__yy_memcpy):
3468 Really reorder the args, as was supposedly done on Feb 14 1995.
3469 (yyparse): Calls changed accordingly.
3470
34711996-01-27 Richard Stallman <rms@gnu.org>
3472
3473 * src/output.c (output_rule_data):
3474 Test YYERROR_VERBOSE in the conditional
3475 around the definition of ttyname.
3476
34771995-12-29 Richard Stallman <rms@gnu.org>
3478
3479 * src/bison.s1:
3480 Fix line numbers in #line commands.
3481
34821995-12-29 Richard Stallman <rms@gnu.org>
3483
3484 * bison.simple:
3485 Fix line numbers in #line commands.
3486
34871995-12-27 Richard Stallman <rms@gnu.org>
3488
3489 * src/bison.s1 (YYPARSE_PARAM_DECL):
3490 In C++, make it always null.
3491 (YYPARSE_PARAM_ARG): New macro.
3492 (yyparse): Use YYPARSE_PARAM_ARG.
3493
34941995-12-27 Richard Stallman <rms@gnu.org>
3495
3496 * bison.simple (YYPARSE_PARAM_DECL):
3497 In C++, make it always null.
3498 (YYPARSE_PARAM_ARG): New macro.
3499 (yyparse): Use YYPARSE_PARAM_ARG.
3500
35011995-11-29 Richard Stallman <rms@gnu.org>
3502
3503 * doc/bison.texinfo:
3504 Describe literal string tokens, %raw, %no_lines, %token_table.
3505
35061995-11-29 Daniel Hagerty <hag@gnu.org>
3507
3508 * doc/bison.texinfo: Fixed update date
3509
35101995-10-16 Richard Stallman <rms@gnu.org>
3511
3512 * src/version.c: Version 1.25.
3513
35141995-10-16 Richard Stallman <rms@gnu.org>
3515
3516 * NEWS: *** empty log message ***
3517
35181995-10-16 Richard Stallman <rms@gnu.org>
3519
3520 * doc/bison.1, doc/bison.rnh:
3521 Add new options.
3522
35231995-10-15 Richard Stallman <rms@gnu.org>
3524
3525 * src/vmsgetargs.c, src/getargs.c:
3526 Added -n, -k, and -raw switches.
3527 (noparserflag, toknumflag, rawtoknumflag): New variables.
3528
3529 * src/symtab.h (SALIAS):
3530 New #define for adding aliases to %token.
3531 (struct bucket): Added `alias' field.
3532
3533 * src/reduce.c (reduce_grammar):
3534 Revise error message.
3535 (print_notices): Remove final `.' from error message.
3536
3537 * src/reader.c (reader_output_yylsp):
3538 New function.
3539 (readgram): Use `#if 0' around code that accepted %command
3540 inside grammar rules: The documentation doesn't allow it,
3541 and it will fail since the %command processors scan for the next %.
3542 (parse_token_decl): Extended the %token
3543 declaration to allow a multi-character symbol as an alias.
3544 (parse_thong_decl): New function.
3545 (read_declarations): Added %thong declarations.
3546 (read_declarations): Handle NOOP to deal with allowing
3547 % declarations as another means to specify the flags.
3548 (readgram): Allow %prec prior to semantics embedded in a rule.
3549 (skip_to_char, read_declarations, copy_definition)
3550 (parse_token_decl, parse_start_decl, parse_type_decl)
3551 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3552 (get_type_name, copy_guard, copy_action, readgram)
3553 (get_type, packsymbols): Revised most error messages.
3554 Changed `fatal' to `warnxxx' to avoid aborting for error.
3555 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3556 (read_declarations): Improve the error message for
3557 an invalid character. Do not abort.
3558 (read_declarations, copy_guard, copy_action): Use
3559 printable_version to avoid unprintable characters in printed output.
3560 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3561 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3562 Allow the type of a non-terminal can be given
3563 more than once, as long as all specifications give the same type.
3564
3565 * src/output.c:
3566 (output_headers, output_trailers, output, output_gram)
3567 (output_rule_data): Implement noparserflag variable.
3568 Implement toknumflag variable.
3569 (output): Call reader_output_yylsp to output LTYPESTR.
3570
3571 * src/main.c (main):
3572 If reader sees an error, don't process the grammar.
3573 (fatals): Updated to not use VARARGS1.
3574 (printable_version, int_to_string, warn, warni, warns, warnss)
3575 (warnsss): New error reporting functions. Avoid abort for error.
3576
3577 * src/lex.h:
3578 Added THONG and NOOP for alias processing.
3579 Added SETOPT for the new code that allows setting options with %flags.
3580
3581 * src/lex.c:
3582 Include getopt.h. Add some extern decls.
3583 (safegetc): New function to deal with EOF gracefully.
3584 (literalchar); new function to deal with reading \ escapes.
3585 (lex): Use literalchar.
3586 (lex): Implemented "..." tokens.
3587 (literalchar, lex, parse_percent_token): Made tokenbuffer
3588 always contain the token. This includes growing the token
3589 buffer while reading an integer.
3590 (parse_percent_token): Replaced if-else statement with percent_table.
3591 (parse_percent_token): Added % declarations as another
3592 way to specify the flags -n, -l, and -r. Also added hooks for
3593 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3594 major changes to files.c.
3595 (lex) Retain in the incoming stream a character following
3596 an incorrect '/'.
3597 (skip_white_space, lex): Revised most error messages
3598 and changed fatal to warn to avoid aborting.
3599 (percent_table): Added %thong declarations.
3600
3601 * src/gram.h: Comment changes.
3602
3603 * src/files.c (openfiles, open_extra_files, done):
3604 Add faction flag
3605 and actfile file. Handle noparserflag. Both for -n switch.
3606
3607 * src/conflicts.c (resolve_sr_conflict):
3608 Remove use of alloca.
3609
36101995-06-01 Jim Meyering <meyering@gnu.org>
3611
3612 * doc/bison.texinfo: *** empty log message ***
3613
36141995-05-06 Richard Stallman <rms@gnu.org>
3615
3616 * src/bison.s1: Comment change.
3617
36181995-05-06 Richard Stallman <rms@gnu.org>
3619
3620 * bison.simple: Comment change.
3621
36221995-05-03 Richard Stallman <rms@gnu.org>
3623
3624 * src/version.c: Version now 1.24.
3625
3626 * src/bison.s1: Change distribution terms.
3627
3628 * src/version.c: Version now 1.23.
3629
36301995-05-03 Richard Stallman <rms@gnu.org>
3631
3632 * doc/bison.texinfo:
3633 Rewrite "Conditions for Using Bison".
3634 Update version to 1.24.
3635
36361995-05-03 Richard Stallman <rms@gnu.org>
3637
3638 * bison.simple: Change distribution terms.
3639
36401995-02-23 Richard Stallman <rms@gnu.org>
3641
3642 * src/files.c: Test __VMS_POSIX as well as VMS.
3643
36441995-02-14 Jim Meyering <meyering@gnu.org>
3645
3646 * src/bison.s1 (__yy_memcpy):
3647 Renamed from __yy_bcopy to avoid
3648 confusion. Reverse FROM and TO arguments to be consistent with
3649 those of memcpy.
3650
36511995-02-14 Jim Meyering <meyering@gnu.org>
3652
3653 * bison.simple (__yy_memcpy):
3654 Renamed from __yy_bcopy to avoid
3655 confusion. Reverse FROM and TO arguments to be consistent with
3656 those of memcpy.
3657
36581994-11-10 David J. MacKenzie <djm@gnu.org>
3659
3660 * NEWS: reformat
3661
3662 * NEWS: New file.
3663
3664 * Makefile.in (DISTFILES): Include NEWS.
3665
3666 * Makefile.in (DISTFILES):
3667 Include install-sh, not install.sh.
3668
3669 * configure.in: Update to Autoconf v2 macro names.
3670
36711994-10-05 David J. MacKenzie <djm@gnu.org>
3672
3673 * Makefile.in: fix typo
3674
3675 * Makefile.in (prefix, exec_prefix):
3676 Let configure set them.
3677
36781994-09-28 David J. MacKenzie <djm@gnu.org>
3679
3680 * Makefile.in: Set datadir to $(prefix)/share.
3681
36821994-09-15 Richard Stallman <rms@gnu.org>
3683
3684 * src/bison.s1:
3685 Update copyright notice and GPL version.
3686
36871994-09-15 Richard Stallman <rms@gnu.org>
3688
3689 * bison.simple:
3690 Update copyright notice and GPL version.
3691
36921994-07-12 Richard Stallman <rms@gnu.org>
3693
3694 * src/reduce.c, src/reader.c:
3695 entered into RCS
3696
36971994-05-05 David J. MacKenzie <djm@gnu.org>
3698
3699 * Makefile.in: entered into RCS
3700
37011994-03-26 Richard Stallman <rms@gnu.org>
3702
3703 * src/bison.s1: entered into RCS
3704
37051994-03-26 Richard Stallman <rms@gnu.org>
3706
3707 * bison.simple: entered into RCS
3708
37091994-03-25 Richard Stallman <rms@gnu.org>
3710
3711 * src/main.c: entered into RCS
3712
37131994-03-24 Richard Stallman <rms@gnu.org>
3714
3715 * src/conflicts.c: entered into RCS
3716
37171994-01-02 Richard Stallman <rms@gnu.org>
3718
3719 * Makefile.in: *** empty log message ***
3720
37211993-11-21 Richard Stallman <rms@gnu.org>
3722
3723 * src/bison.s1: *** empty log message ***
3724
37251993-11-21 Richard Stallman <rms@gnu.org>
3726
3727 * doc/bison.texinfo: entered into RCS
3728
3729 * doc/bison.texinfo: *** empty log message ***
3730
37311993-11-21 Richard Stallman <rms@gnu.org>
3732
3733 * bison.simple: *** empty log message ***
3734
37351993-10-25 David J. MacKenzie <djm@gnu.org>
3736
3737 * doc/bison.texinfo: *** empty log message ***
3738
37391993-10-19 Richard Stallman <rms@gnu.org>
3740
3741 * src/bison.s1: *** empty log message ***
3742
37431993-10-19 Richard Stallman <rms@gnu.org>
3744
3745 * bison.simple: *** empty log message ***
3746
37471993-10-14 Richard Stallman <rms@gnu.org>
3748
3749 * src/bison.s1: *** empty log message ***
3750
37511993-10-14 Richard Stallman <rms@gnu.org>
3752
3753 * bison.simple: *** empty log message ***
3754
37551993-09-14 David J. MacKenzie <djm@gnu.org>
3756
3757 * doc/bison.texinfo: *** empty log message ***
3758
37591993-09-13 Noah Friedman <friedman@gnu.org>
3760
3761 * Makefile.in: *** empty log message ***
3762
37631993-09-10 Richard Stallman <rms@gnu.org>
3764
3765 * src/conflicts.c: *** empty log message ***
3766
3767 * src/system.h: entered into RCS
3768
37691993-09-10 Richard Stallman <rms@gnu.org>
3770
3771 * doc/bison.1: entered into RCS
3772
37731993-09-06 Noah Friedman <friedman@gnu.org>
3774
3775 * src/version.c: entered into RCS
3776
37771993-09-06 Noah Friedman <friedman@gnu.org>
3778
3779 * Makefile.in: *** empty log message ***
3780
37811993-07-30 David J. MacKenzie <djm@gnu.org>
3782
3783 * Makefile.in: *** empty log message ***
3784
37851993-07-24 Richard Stallman <rms@gnu.org>
3786
3787 * src/bison.s1: *** empty log message ***
3788
37891993-07-24 Richard Stallman <rms@gnu.org>
3790
3791 * bison.simple: *** empty log message ***
3792
37931993-07-08 David J. MacKenzie <djm@gnu.org>
3794
3795 * Makefile.in: *** empty log message ***
3796
37971993-07-04 Richard Stallman <rms@gnu.org>
3798
3799 * src/bison.s1: *** empty log message ***
3800
38011993-07-04 Richard Stallman <rms@gnu.org>
3802
3803 * bison.simple: *** empty log message ***
3804
38051993-06-26 David J. MacKenzie <djm@gnu.org>
3806
3807 * src/getargs.c: entered into RCS
3808
38091993-06-26 David J. MacKenzie <djm@gnu.org>
3810
3811 * doc/bison.texinfo: *** empty log message ***
3812
3813 * doc/bison.1: New file.
3814
38151993-06-25 Richard Stallman <rms@gnu.org>
3816
3817 * src/getargs.c: New file.
3818
38191993-06-16 Richard Stallman <rms@gnu.org>
3820
3821 * src/bison.s1: *** empty log message ***
3822
38231993-06-16 Richard Stallman <rms@gnu.org>
3824
3825 * bison.simple: *** empty log message ***
3826
38271993-06-03 Richard Stallman <rms@gnu.org>
3828
3829 * src/bison.s1: New file.
3830
38311993-06-03 Richard Stallman <rms@gnu.org>
3832
3833 * doc/bison.texinfo: *** empty log message ***
3834
38351993-06-03 Richard Stallman <rms@gnu.org>
3836
3837 * bison.simple: New file.
3838
38391993-05-19 Richard Stallman <rms@gnu.org>
3840
3841 * doc/bison.texinfo: New file.
3842
38431993-05-07 Noah Friedman <friedman@gnu.org>
3844
3845 * Makefile.in: *** empty log message ***
3846
38471993-04-28 Noah Friedman <friedman@gnu.org>
3848
3849 * src/reader.c: *** empty log message ***
3850
38511993-04-23 Noah Friedman <friedman@gnu.org>
3852
3853 * src/alloc.h: entered into RCS
3854
38551993-04-20 David J. MacKenzie <djm@gnu.org>
3856
3857 * src/version.c: *** empty log message ***
3858
3859 * src/files.c, src/allocate.c:
3860 entered into RCS
3861
3862 * src/reader.c: *** empty log message ***
3863
3864 * src/lex.c: entered into RCS
3865
3866 * src/conflicts.c: New file.
3867
3868 * src/symtab.c: entered into RCS
3869
3870 * src/alloc.h: New file.
3871
3872 * src/LR0.c: entered into RCS
3873
38741993-04-18 Noah Friedman <friedman@gnu.org>
3875
3876 * src/reader.c: New file.
3877
3878 * src/version.c: *** empty log message ***
3879
38801993-04-18 Noah Friedman <friedman@gnu.org>
3881
3882 * Makefile.in: *** empty log message ***
3883
38841993-04-17 Noah Friedman <friedman@gnu.org>
3885
3886 * Makefile.in: *** empty log message ***
3887
38881993-04-15 Richard Stallman <rms@gnu.org>
3889
3890 * src/main.c, src/files.c:
3891 New file.
3892
38931993-04-15 Noah Friedman <friedman@gnu.org>
3894
3895 * configure.in: entered into RCS
3896
3897 * configure.in: *** empty log message ***
3898
3899 * configure.in: New file.
3900
39011993-04-14 Richard Stallman <rms@gnu.org>
3902
3903 * Makefile.in: New file.
3904
39051993-04-13 Richard Stallman <rms@gnu.org>
3906
3907 * src/version.c: New file.
3908
39091993-03-25 Richard Stallman <rms@gnu.org>
3910
3911 * src/output.c: entered into RCS
3912
39131992-09-25 Richard Stallman <rms@gnu.org>
3914
3915 * configure.bat: entered into RCS
3916
39171992-06-22 Richard Stallman <rms@gnu.org>
3918
3919 * src/vmsgetargs.c: entered into RCS
3920
39211992-06-22 Richard Stallman <rms@gnu.org>
3922
3923 * doc/bison.rnh: entered into RCS
3924
39251992-04-20 David J. MacKenzie <djm@gnu.org>
3926
3927 * README: entered into RCS
3928
39291992-01-22 Richard Stallman <rms@gnu.org>
3930
3931 * src/machine.h: entered into RCS
3932
39331991-12-21 Richard Stallman <rms@gnu.org>
3934
3935 * src/lalr.c, src/closure.c:
3936 entered into RCS
3937
39381991-12-20 Richard Stallman <rms@gnu.org>
3939
3940 * src/state.h: entered into RCS
3941
39421991-12-18 Richard Stallman <rms@gnu.org>
3943
3944 * src/print.c, src/nullable.c, src/derives.c:
3945 entered into RCS
3946
39471991-11-03 David J. MacKenzie <djm@gnu.org>
3948
3949 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3950 entered into RCS
3951
39521988-09-09 Richard Stallman <rms@gnu.org>
3953
3954 * src/bison.hairy: entered into RCS
3955
39561987-12-16 Richard Stallman <rms@gnu.org>
3957
3958 * REFERENCES: entered into RCS