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