1 2001-11-29 Paul Eggert <eggert@twinsun.com>
3 Name space cleanup in generated parser.
5 * doc/bison.texinfo (Bison Parser): Discuss system headers
6 and their effect on the user name space.
9 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
10 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
11 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
13 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
14 on user names when possible.
16 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
17 Simplify test for whather <alloca.h> exists.
19 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
21 (<stdio.h>): Include if YYDEBUG.
23 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
24 ! defined (yyoverflow) && ! defined (yymemcpy).
26 (yymemcpy, yyparse): Rename local variables as needed so that
27 they all begin with 'yy'.
29 (yystrlen, yystpcpy): New functions.
31 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
34 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
35 instead of relying on string.h functions. Use YYSTACK_ALLOC
36 and YYSTACK_FREE instead of malloc and free.
38 2001-11-30 Akim Demaille <akim@epita.fr>
40 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
41 before their first uses.
42 (YYBISON, YYPURE): Move to the top of the output.
44 2001-11-30 Akim Demaille <akim@epita.fr>
46 * tests/reduce.at (Useless Nonterminals): Fix.
48 2001-11-30 Akim Demaille <akim@epita.fr>
50 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
51 if body instead of `;' to pacify GCC's warnings.
53 2001-11-30 Akim Demaille <akim@epita.fr>
55 Instead of mapping the LHS of unused rules to -1, keep the LHS
56 valid, but flag the rules as invalid.
58 * src/gram.h (rule_t): `useful' is a new member.
59 * src/print.c (print_grammar): Adjust.
60 * src/derives.c (set_derives): Likewise.
61 * src/reader.c (packgram, reduce_output): Likewise.
62 * src/reduce.c (reduce_grammar_tables): Likewise.
63 * tests/reduce.at (Underivable Rules, Useless Rules): New.
65 2001-11-30 Akim Demaille <akim@epita.fr>
67 * src/reduce.c (reduce_output): Formatting changes.
68 * src/print.c (print_results, print_grammar): Likewise.
69 * tests/regression.at (Rule Line Numbers)
70 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
72 2001-11-30 Akim Demaille <akim@epita.fr>
74 * src/reduce.c (nonterminals_reduce): Instead of throwing away
75 useless nonterminals, move them at the end of the symbol arrays.
76 (reduce_output): Adjust.
77 * tests/reduce.at (Useless Nonterminals): Adjust.
79 2001-11-30 Akim Demaille <akim@epita.fr>
81 * src/reduce.c: Various comment/formatting changes.
82 (nonterminals_reduce): New, extracted from...
83 (reduce_grammar_tables): here.
84 (reduce_grammar): Call nonterminals_reduce.
86 2001-11-29 Paul Eggert <eggert@twinsun.com>
88 * src/bison.simple (YYSTACK_REALLOC): Remove.
89 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
90 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
92 (union yyalloc): New type.
93 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
94 an arbitrary restriction on hosts where size_t is wider than int.
96 (yyparse): Don't dump core if alloca or malloc fails; instead, report
97 a parser stack overflow. Allocate just one block of memory for all
98 three stacks, instead of allocating three blocks; this typically is
99 faster and reduces fragmentation.
101 Do not limit the number of items in the stack to a value that fits
102 in 'int', as this is an arbitrary limit on hosts with 64-bit
103 size_t and 32-bit int.
105 2001-11-29 Marc Autret <autret_m@epita.fr>
107 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
108 of defining YYERROR_VERBOSE.
109 [AT_DATA]: $4 is now out of C declarations in the prologue.
111 2001-11-28 Marc Autret <autret_m@epita.fr>
113 * src/reader.c (parse_dquoted_param): New.
114 (parse_skel_decl): Use it.
115 * src/lex.h: Add its prototype.
116 * src/lex.c (literalchar): Become not static.
118 2001-11-28 Marc Autret <autret_m@epita.fr>
120 * src/output.h: And put its extern declaration here.
121 * src/output.c (error_verbose): Define here.
122 (prepare): Echo name modification.
123 * src/getargs.h: Clean its extern declaration.
124 * src/getargs.c (error_verbose_flag): Remove.
125 (getargs): Remove case 'e'.
126 * src/options.c (option_table): 'error-verbose' is now seen as simple
130 * src/reader.c (read_declarations): Remove case tok_include.
131 (parse_include_decl): Remove.
132 * src/lex.h (token_t): Remove tok_include.
133 * src/options.c (option_table): 'include' is now a simple command line
136 2001-11-28 Marc Autret <autret_m@epita.fr>
138 * src/bison.simple: Adjust muscle names.
139 * src/muscle_tab.c (muscle_init): Also rename the muscles.
140 * src/output.c (prepare): s/_/-/ for the muscles names.
141 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
143 2001-11-28 Marc Autret <autret_m@epita.fr>
145 * src/bison.simple: Fix debug.
146 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
148 2001-11-28 Akim Demaille <akim@epita.fr>
150 * src/LR0.c (shifts_new): New.
151 (save_shifts, insert_start_shift, augment_automaton): Use it.
153 2001-11-28 Akim Demaille <akim@epita.fr>
155 * src/closure.c (closure): `b' and `ruleno' denote the same value:
158 2001-11-28 Akim Demaille <akim@epita.fr>
160 * src/closure.c (closure): Instead of looping over word in array
161 then bits in words, loop over bits in array.
163 2001-11-28 Akim Demaille <akim@epita.fr>
165 * src/closure.c (closure): No longer optimize the special case
166 where all the bits of `ruleset[r]' are set to 0, to make the code
169 2001-11-28 Akim Demaille <akim@epita.fr>
171 * src/closure.c (closure): `r' and `c' are new variables, used to
172 de-obfuscate accesses to RULESET and CORE.
174 2001-11-28 Akim Demaille <akim@epita.fr>
176 * src/reduce.c (reduce_print): Use ngettext.
177 (dump_grammar): Improve the trace accuracy.
179 2001-11-28 Akim Demaille <akim@epita.fr>
181 * src/reduce.c (dump_grammar): Don't translate trace messages.
183 2001-11-28 Akim Demaille <akim@epita.fr>
185 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
186 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
187 as all tags are free'ed afterwards.
190 2001-11-27 Paul Eggert <eggert@twinsun.com>
192 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
193 use alloca when we didn't want to, and vice versa.
195 2001-11-27 Marc Autret <autret_m@epita.fr>
197 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
199 * src/output.c (prepare): Remove its update.
201 2001-11-27 Marc Autret <autret_m@epita.fr>
203 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
206 2001-11-27 Marc Autret <autret_m@epita.fr>
208 * src/bison.simple: Remove YYERROR_VERBOSE using.
211 * src/output.c (prepare): Give its final value.
212 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
213 * src/getargs.h: Add its extern declaration.
214 * src/getargs.c (error_verbose_flag): New int.
215 (getargs): Update to catch new case.
216 * src/options.c (option_table): 'error-verbose' is a new option.
219 2001-11-27 Akim Demaille <akim@epita.fr>
221 * src/system.h: Use intl/libgettext.h.
222 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
224 2001-11-27 Akim Demaille <akim@epita.fr>
226 * tests/torture.at (Exploding the Stack Size with Malloc):
227 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
229 2001-11-27 Akim Demaille <akim@epita.fr>
231 * src/files.c: Include error.h.
232 Reported by Hans Aberg.
234 2001-11-26 Marc Autret <autret_m@epita.fr>
236 * src/reader.c (parse_include_decl): New, not yet implemented.
237 (read_declarations): Add case tok_include.
238 * src/getargs.h (include): Add its extern definition.
239 * src/getargs.c (include): New const char *.
240 (getargs): Add case '-I'.
241 * src/options.c (option_table): Add include as command line and
243 * src/lex.h (token_t): Add tok_include.
245 2001-11-26 Akim Demaille <akim@epita.fr>
247 * src/reader.c (readgram): Make sure rules for mid-rule actions
248 have a lineno equal to that of their host rule.
249 Reported by Hans Aberg.
250 * tests/regression.at (Rule Line Numbers): New.
252 2001-11-26 Akim Demaille <akim@epita.fr>
254 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
257 2001-11-26 Akim Demaille <akim@epita.fr>
259 * src/complain.c, src/complain.h (error): Remove, provided by
262 2001-11-26 Akim Demaille <akim@epita.fr>
264 * src/reader.c (read_declarations): Don't abort on tok_illegal,
265 issue an error message.
266 * tests/regression.at (Invalid %directive): New.
267 Reported by Hans Aberg.
269 2001-11-26 Akim Demaille <akim@epita.fr>
271 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
272 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
274 2001-11-26 Akim Demaille <akim@epita.fr>
276 * src/conflicts.c (conflicts_print): Don't complain at all when
277 there are no reduce/reduce conflicts, and as many shift/reduce
278 conflicts as expected.
279 * tests/regression.at (%expect right): Adjust.
281 2001-11-23 Akim Demaille <akim@epita.fr>
283 * lib/alloca.c: Update, from fileutils.
285 2001-11-23 Akim Demaille <akim@epita.fr>
287 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
289 2001-11-23 Akim Demaille <akim@epita.fr>
291 * src/system.h: Include alloca.h.
292 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
294 2001-11-23 Akim Demaille <akim@epita.fr>
296 * src/print_graph.c (print_actions): Remove `rule', unused.
297 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
298 pacify GCC's signed < unsigned warnings.
299 * src/closure.c (itemsetsize): Likewise.
300 * src/reader.c (symbol_list_new): Static.
302 2001-11-23 Akim Demaille <akim@epita.fr>
304 Attaching lineno to buckets is stupid, since only one copy of each
305 symbol is kept, only the line of the first occurrence is kept too.
307 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
308 * src/reader.c (rline_allocated): Remove, unused.
309 (symbol_list): Have a `line' member.
310 (symbol_list_new): New.
312 * src/print.c (print_grammar): Output the rule line numbers.
313 * tests/regression.at (Solved SR Conflicts)
314 (Unresolved SR Conflicts): Adjust.
315 Reported by Hans Aberg.
317 2001-11-22 Marc Autret <autret_m@epita.fr>
319 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
321 2001-11-22 Marc Autret <autret_m@epita.fr>
323 * src/muscle_tab.c (muscle_init): Remove initialization of
325 * src/output.c (output_master_parser): Do it here.
327 2001-11-20 Akim Demaille <akim@epita.fr>
330 * configure.in (ALL_LINGUAS): Adjust.
331 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
332 longer contains strings to translate.
334 2001-11-19 Akim Demaille <akim@epita.fr>
336 * src/conflicts.c (conflicts_print): Add a missing \n.
338 2001-11-19 Akim Demaille <akim@epita.fr>
340 * src/nullable.c (nullable_print): New.
341 (set_nullable): Call it when tracing.
342 Better locality of variables.
344 2001-11-19 Akim Demaille <akim@epita.fr>
346 * src/print.c (print_actions): Better locality of variables.
348 2001-11-19 Akim Demaille <akim@epita.fr>
350 * src/derives.c (print_derives): Fix and enrich.
351 * src/closure.c (print_fderives): Likewise.
353 2001-11-19 Akim Demaille <akim@epita.fr>
355 * src/closure.c (itemsetend): Remove, replaced with...
358 2001-11-19 Akim Demaille <akim@epita.fr>
360 * src/LR0.c (kernel_end): Remove, replaced with...
363 2001-11-19 Akim Demaille <akim@epita.fr>
365 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
368 2001-11-19 Akim Demaille <akim@epita.fr>
370 * src/closure.c (closure): Use arrays instead of pointers to clarify.
372 2001-11-19 Akim Demaille <akim@epita.fr>
374 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
376 * src/LR0.c: Likewise.
377 (allocate_itemsets): Use arrays instead of pointers to clarify.
379 2001-11-19 Akim Demaille <akim@epita.fr>
381 * src/getargs.c (statistics_flag): Replace with...
383 (longopts): Accept --trace instead of --statistics.
384 * src/getargs.h, src/options.c: Adjust.
385 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
386 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
388 2001-11-19 Akim Demaille <akim@epita.fr>
390 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
391 pointers to clarify the code.
392 (save_reductions, save_shifts): Factor common parts of alternatives.
394 2001-11-19 Akim Demaille <akim@epita.fr>
396 * src/LR0.c (new_state, get_state): Complete TRACE code.
397 * src/closure.c: Include `reader.h' to get `tags', needed by the
399 Rename the conditional DEBUG as TRACE.
400 Output consistently TRACEs to stderr, not stdout.
401 * src/derives.c: Likewise.
402 * src/reduce.c: (inaccessable_symbols): Using if is better style
404 Use `#if TRACE' instead of `#if 0' for tracing code.
406 2001-11-19 Akim Demaille <akim@epita.fr>
408 * src/system.h (LIST_FREE, shortcpy): New.
409 * src/LR0.c: Use them.
410 * src/output.c (free_itemsets, free_reductions, free_shifts):
411 Remove, replaced by LIST_FREE.
413 2001-11-19 Akim Demaille <akim@epita.fr>
415 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
416 (REDUCTIONS_ALLOC): New.
417 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
420 2001-11-19 Akim Demaille <akim@epita.fr>
422 * src/LR0.c (new_state): Complete trace code.
423 * src/nullable.c (set_nullable): Don't translate traces.
425 2001-11-19 Akim Demaille <akim@epita.fr>
427 * src/print_graph.c (print_core): Better locality of variables.
428 * src/print.c (print_core): Likewise.
430 2001-11-19 Akim Demaille <akim@epita.fr>
432 * src/vcg.c: You do the output, so you are responsible of the
433 handling of VCG syntax, in particular: use quotearg.
434 * src/print_graph.c: Don't.
435 (print_actions): Don't output the actions as part of the nodes,
436 since that's the job of the edges.
437 (print_state): Don't output by hand: fill the node description,
438 and ask for its output.
440 2001-11-19 Akim Demaille <akim@epita.fr>
442 * src/bison.simple (yyparse): When verbosely reporting an error,
443 no longer put additional quotes around token names.
444 * tests/calc.at: Adjust.
446 2001-11-19 Akim Demaille <akim@epita.fr>
448 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
449 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
450 * src/output.c: Adjust.
452 2001-11-19 Akim Demaille <akim@epita.fr>
454 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
456 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
458 2001-11-19 Akim Demaille <akim@epita.fr>
460 * src/gram.h (rule_t): New.
462 (rrhs, rlhs): Remove, part of state_t.
463 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
464 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
465 * src/reader.c, src/reduce.c: Adjust.
467 2001-11-19 Akim Demaille <akim@epita.fr>
469 * src/reader.c (symbols_output): New, extracted from...
473 2001-11-19 Akim Demaille <akim@epita.fr>
475 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
476 (maxrhs): this new function.
478 2001-11-19 Akim Demaille <akim@epita.fr>
480 * src/lalr.c (F): New macro to access the variable F.
483 2001-11-19 Akim Demaille <akim@epita.fr>
485 * src/lalr.h (LA): New macro to access the variable LA.
486 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
487 * src/lalr.c: Adjust.
489 2001-11-19 Akim Demaille <akim@epita.fr>
491 * src/lalr.c (initialize_LA): Only initialize LA. Let...
492 (set_state_table): handle the `lookaheads' members.
494 2001-11-19 Akim Demaille <akim@epita.fr>
496 * src/lalr.h (lookaheads): Removed array, whose contents is now
498 (state_t): this structure.
499 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
502 2001-11-19 Akim Demaille <akim@epita.fr>
504 * src/lalr.h (consistent): Removed array, whose contents is now
506 (state_t): this structure.
507 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
510 2001-11-19 Akim Demaille <akim@epita.fr>
512 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
513 contents are now members of...
514 (state_t): this structure.
515 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
518 2001-11-19 Akim Demaille <akim@epita.fr>
520 * src/lalr.h (state_t): New.
521 (state_table): Be a state_t * instead of a core **.
522 (accessing_symbol): Remove, part of state_t.
523 * src/lalr.c: Adjust.
524 (set_accessing_symbol): Merge into...
525 (set_state_table): this.
526 * src/print_graph.c, src/conflicts.c: Adjust.
528 2001-11-14 Akim Demaille <akim@epita.fr>
530 * tests/calc.at, tests/output.at, tests/regression.at,
531 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
532 now the tests are run in private dirs, therefore AC_CLEANUP and
533 family can be simplified to 0-ary.
534 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
535 use abs. path to find config.h.
536 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
537 stderr, there can be way too much random noise.
538 Instead pass -Werror to GCC and rely on the exit status.
539 Reported by Wolfram Wagner.
541 2001-11-14 Akim Demaille <akim@epita.fr>
543 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
544 defined only if yyoverflow is defined, to avoid `warning: unused
546 Reported by The Test Suite.
548 2001-11-14 Akim Demaille <akim@epita.fr>
550 * src/print.c: Include reduce.h.
551 Reported by Hans Aberg.
553 2001-11-14 Akim Demaille <akim@epita.fr>
555 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
556 Revert a previous patch: these are really const.
557 * src/conflicts.c (conflict_report): Additional useless pair of
558 braces to pacify GCC's warnings for `if () if () {} else {}'.
559 * src/lex.c (parse_percent_token): Replace equal_offset with
562 Be sure to strdup `arg' when used, since there is no reason for
563 token_buffer not to change.
565 2001-11-14 Akim Demaille <akim@epita.fr>
567 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
569 * src/main.c (main): Use them.
570 Suggested by Hans Aberg.
572 2001-11-12 Akim Demaille <akim@epita.fr>
574 * src/system.h (ngettext): Now that we use ngettext, be sure to
575 provide a default definition when NLS are not used.
577 2001-11-12 Akim Demaille <akim@epita.fr>
579 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
580 Use @kbd to denote user input.
581 (Language and Grammar): ANSIfy the example.
582 Adjust its layout for info/notinfo.
583 (Location Tracking Calc): Output error messages to stderr.
584 Output locations in a more GNUtically correct way.
585 Fix a couple of Englishos.
586 Adjust @group/@end group pairs.
588 2001-11-12 Akim Demaille <akim@epita.fr>
590 %expext was not functioning at all.
592 * src/conflicts.c (expected_conflicts): Set to -1.
593 (conflict_report): Use ngettext.
594 (conflicts_print): Check %expect and make its violation an error.
595 * doc/bison.texinfo (Expect Decl): Adjust.
596 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
597 * tests/regression.at (%expect not enough, %expect right)
598 (%expect too much): New.
600 2001-11-12 Akim Demaille <akim@epita.fr>
602 * tests/regression.at (Conflicts): Rename as...
603 (Unresolved SR Conflicts): this.
604 (Solved SR Conflicts): New.
606 2001-11-12 Akim Demaille <akim@epita.fr>
608 * src/reduce.c (print_results): Rename as...
609 (reduce_output): This.
610 Output to OUT, passed as argument, instead of output_obstack.
611 (dump_grammar): Likewise.
614 (reduce_grammar): No longer call reduce_output, since...
615 * src/print.c (print_results): do it.
616 * src/main.c (main): Call reduce_free;
618 2001-11-12 Akim Demaille <akim@epita.fr>
620 * src/conflicts.c (print_reductions): Accept OUT as argument.
621 Output to it, not to output_obstack.
622 * src/print.c (print_actions): Adjust.
624 2001-11-12 Akim Demaille <akim@epita.fr>
626 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
627 the result instead of using...
628 (src_total, rrc_total, src_count, rrc_count): Remove.
629 (any_conflicts): Remove.
630 (print_conflicts): Split into...
631 (conflicts_print, conflicts_output): New.
632 * src/conflicts.h: Adjust.
633 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
634 * src/print.c (print_grammar): Issue `\n' between two rules.
635 * tests/regression.at (Conflicts): New.
636 Reported by Tom Lane.
638 2001-11-12 Akim Demaille <akim@epita.fr>
640 * tests/regression.at (Invalid input): Remove, duplicate with
641 ``Invalid input: 1''.
643 2001-11-12 Akim Demaille <akim@epita.fr>
645 * tests/torture.at (AT_DATA_STACK_TORTURE)
646 (Exploding the Stack Size with Alloca)
647 (Exploding the Stack Size with Malloc): New.
649 2001-11-12 Akim Demaille <akim@epita.fr>
651 * src/bison.simple (YYSTACK_REALLOC): New.
652 (yyparse) [!yyoverflow]: Use it and free the old stack.
653 Reported by Per Allansson.
655 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
657 * src/bison.simple: Define type yystype instead of YYSTYPE, and
658 define CPP macro, which substitute YYSTYPE by yystype.
659 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
660 with yyltype/YYLTYPE. This allows inclusion of the generated
661 header within the parser if the compiler, such as GGC, accepts
662 multiple equivalent #defines.
665 2001-11-05 Akim Demaille <akim@epita.fr>
667 * src/reader.c (symbols_output): New, extracted from...
671 2001-11-05 Akim Demaille <akim@epita.fr>
673 * src/lex.c (parse_percent_token): s/quotearg/quote/.
675 2001-11-05 Akim Demaille <akim@epita.fr>
677 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
680 2001-11-05 Akim Demaille <akim@epita.fr>
682 * src/options.h (struct option_table_struct): set_flags is void*.
683 * src/options.c (longopts): Support `--output' and `%output'.
685 * src/lex.h (tok_setopt): Remove, replaced with...
686 (tok_intopt, tok_stropt): these new guys.
687 * src/lex.c (getopt.h): Not needed.
688 (token_buffer, unlexed_token_buffer): Not const.
689 (percent_table): Promote `-' over `_' in directive names.
690 Active `%name-prefix', `file-prefix', and `output'.
691 (parse_percent_token): Accept possible arguments to directives.
692 Promote `-' over `_' in directive names.
694 2001-11-04 Akim Demaille <akim@epita.fr>
696 * doc/bison.texinfo (Decl Summary): Split the list into
697 `directives for grammars' and `directives for bison'.
699 Add description of `%name-prefix', `file-prefix', and `output'.
700 Promote `-' over `_' in directive names.
701 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
702 Simplify the description of `--name-prefix'.
703 Promote `-' over `_' in directive names.
704 Promote `--output' over `--output-file'.
705 Fix the description of `--defines'.
706 * tests/output.at: Exercise %file-prefix and %output.
708 2001-11-02 Akim Demaille <akim@epita.fr>
710 * doc/refcard.tex: Update.
712 2001-11-02 Akim Demaille <akim@epita.fr>
714 * src/symtab.h (SUNDEF): New.
715 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
716 stand for `uninitialized', instead of 0.
717 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
718 * src/lex.c (lex): Adjust.
720 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
722 Let yylex return it instead of a plain 0.
723 Reported by Dick Streefland.
725 2001-11-02 Akim Demaille <akim@epita.fr>
727 * tests/regression.at (Mixing %token styles): New test.
729 2001-11-02 Akim Demaille <akim@epita.fr>
731 * src/reader.c (parse_thong_decl): Formatting changes.
732 (token_translations_init): New, extracted from...
736 2001-11-01 Akim Demaille <akim@epita.fr>
738 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
739 Check that `9foo.y' produces correct cpp guards.
740 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
744 2001-11-01 Akim Demaille <akim@epita.fr>
746 * tests/regression.at (Invalid input: 2): New.
747 * src/lex.c (unlexed_token_buffer): New.
748 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
752 2001-11-01 Akim Demaille <akim@epita.fr>
754 * tests/calc.at: Catch up with 1.30.
755 * configure.in: Bump to 1.49a.
756 Adjust to newer Autotest.
758 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
760 * src/conflicts.c: Move global variables rrc_total and src_total ...
761 (print_conflicts): here.
762 * src/output.c (output): Free global variable user_toknums.
763 * src/lex.c (token_obstack): Become static.
765 2001-10-18 Akim Demaille <akim@epita.fr>
767 * tests/atlocal.in (GCC): Add.
768 * tests/calc.at: s/m4_match/m4_bmatch/.
769 s/m4_patsubst/m4_bpatsubst/.
770 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
771 * configure.in: AC_SUBST(GCC).
773 2001-10-14 Marc Autret <autret_m@epita.fr>
775 * src/options.c (create_long_option_table): Fix.
777 2001-10-10 Akim Demaille <akim@epita.fr>
779 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
781 2001-10-04 Akim Demaille <akim@epita.fr>
783 * src/reader.c (parse_union_decl): Push the caracters in
784 union_obstack, not attrs_obstack.
786 2001-10-04 Akim Demaille <akim@epita.fr>
788 Merge in the branch 1.29.
790 * src/reader.c (packsymbols): Use a temporary obstack for
791 `%%tokendef', since output_stack is already used elsewhere.
793 2001-10-02 Akim Demaille <akim@epita.fr>
797 2001-10-02 Akim Demaille <akim@epita.fr>
801 2001-10-02 Akim Demaille <akim@epita.fr>
803 * tests/regression.at (Invalid CPP headers): New.
804 From Alexander Belopolsky.
805 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
807 2001-10-02 Akim Demaille <akim@epita.fr>
809 * tests/regression.at (Invalid input): New.
810 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
813 2001-10-02 Akim Demaille <akim@epita.fr>
815 * tests/calc.at: Now that --debug works, the tests must be adjusted.
817 2001-10-02 Akim Demaille <akim@epita.fr>
819 * src/output.c (output_parser): Assert `skeleton'.
820 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
824 2001-10-01 Marc Autret <autret_m@epita.fr>
826 * src/lex.h: Echo modifications.
827 * src/lex.c (unlex): Parameter is now token_t.
830 2001-10-01 Marc Autret <autret_m@epita.fr>
832 * src/main.c: Include lex.h.
835 2001-09-29 Akim Demaille <akim@epita.fr>
837 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
839 2001-09-28 Akim Demaille <akim@epita.fr>
841 * tests/testsuite.at: Update to newer Autotest.
842 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
844 2001-09-27 Akim Demaille <akim@epita.fr>
846 Position independent wrapper.
848 * tests/bison: Remove.
849 * tests/bison.in: New.
850 * configure.in: Adjust.
852 2001-09-27 Paul Eggert <eggert@twinsun.com>
854 Port quotearg fixes from tar 1.13.24.
856 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
858 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
859 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
861 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
862 * m4/mbrtowc.m4: New file.
863 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
864 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
866 2001-09-27 Akim Demaille <akim@epita.fr>
870 2001-09-27 Akim Demaille <akim@epita.fr>
874 2001-09-25 Akim Demaille <akim@epita.fr>
876 * src/system.h: Include `xalloc.h'.
877 Remove it from the C files.
878 * src/files.c (output_files): Free the obstacks.
879 * src/lex.c (init_lex): Rename as...
882 * src/main.c (main): Use it.
884 2001-09-24 Marc Autret <autret_m@epita.fr>
886 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
887 to output informations in fout (FILE*).
888 (open_graph, close_graph): Likewise.
889 (output_graph, output_edge, output_node): Likewise.
890 * src/vcg.h: Update function prototypes.
891 * src/print_graph.c (print_graph): Open output graph file.
892 (print_actions): Adjust.
893 * src/files.h: Remove extern declaration.
894 * src/files.c: Remove graph_obstack declaration.
895 (open_files): Remove graph_obstack initialization.
896 (output_files): Remove graph_obstack saving.
898 2001-09-24 Marc Autret <autret_m@epita.fr>
900 * src/files.c (compute_output_file_names): Fix.
902 2001-09-24 Marc Autret <autret_m@epita.fr>,
903 Akim Demaille <akim@epita.fr>
905 * src/reader.c (reader): Remove call to free_symtab ().
906 * src/main.c (main): Call it here.
908 * src/conflicts.c (initialize_conflicts): Rename as...
909 (solve_conflicts): this.
910 * src/print.c (print_core, print_actions, print_state)
911 (print_grammar): Dump to a file instead a `output_obstack'.
912 (print_results): Dump `output_obstack', and then proceed with the
914 * src/files.c (compute_output_file_names, close_files): New.
915 (output_files): Adjust.
916 * src/main.c (main): Adjust.
918 2001-09-23 Marc Autret <autret_m@epita.fr>
920 * src/files.c (compute_header_macro): Computes header macro name
921 from spec_defines_file when given.
923 2001-09-23 Marc Autret <autret_m@epita.fr>
925 * src/files.c (output_files): Add default extensions.
927 2001-09-22 Akim Demaille <akim@epita.fr>
929 * src/conflicts.c (finalize_conflicts): Rename as...
930 (free_conflicts): this.
932 2001-09-22 Akim Demaille <akim@epita.fr>
934 * src/gram.c (gram_free): Rename back as...
936 (output_token_translations): Free `token_translations'.
937 * src/symtab.c (free_symtab): Free the tag field.
939 2001-09-22 Akim Demaille <akim@epita.fr>
941 Remove `translations' as it is always set to true.
943 * src/gram.h: Adjust.
944 * src/reader.c (packsymbols, parse_token_decl): Adjust
945 * src/print.c (print_grammar): Adjust.
946 * src/output.c (output_token_translations): Adjust.
947 * src/lex.c (lex): Adjust.
948 * src/gram.c: Be sure the set pointers to NULL.
949 (dummy): Rename as...
952 2001-09-22 Akim Demaille <akim@epita.fr>
954 * configure.in: Invoke AM_LIB_DMALLOC.
955 * src/system.h: Use dmalloc.
956 * src/LR0.c: Be sure to have pointers initialized to NULL.
957 (allocate_itemsets): Allocate kernel_items only if needed.
959 2001-09-22 Akim Demaille <akim@epita.fr>
961 * configure.in: Bump to 1.29b.
962 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
963 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
964 need xmalloc.c in calc.y.
967 2001-09-21 Akim Demaille <akim@epita.fr>
970 * Makefile.maint, config/config.guess, config/config.sub,
971 * config/missing: Update from masters.
972 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
974 * configure.in (ALL_LINGUAS): Add `tr'.
976 2001-09-21 Akim Demaille <akim@epita.fr>
978 * tests/Makefile.am (package.m4): Move to...
979 ($(srcdir)/$(TESTSUITE)): here.
981 2001-09-20 Akim Demaille <akim@epita.fr>
983 * src/complain.c: No longer try to be standalone: use system.h.
984 Don't assume __STDC__ is defined to 1. Just test if it is defined.
985 * src/complain.h: Likewise.
986 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
987 Remove the unused variable `n'.
988 From Albert Chin-A-Young.
990 2001-09-18 Marc Autret <autret_m@epita.fr>
992 * doc/bison.1: Update.
993 * doc/bison.texinfo (Bison Options): Update --defines and --graph
995 (Option Cross Key): Update.
998 2001-09-18 Marc Autret <autret_m@epita.fr>
1000 * tests/regression.at: New test (comment in %union).
1002 2001-09-18 Marc Autret <autret_m@epita.fr>
1004 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1006 Reported by Keith Browne.
1008 2001-09-18 Marc Autret <autret_m@epita.fr>
1010 * tests/output.at: Add tests for --defines and --graph.
1012 2001-09-18 Marc Autret <autret_m@epita.fr>
1014 * tests/output.at: Removes tests of %{header,src}_extension features.
1016 2001-09-18 Akim Demaille <akim@epita.fr>
1018 * tests/Makefile.am (package.m4): New.
1019 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1020 (_AT_CHECK_CALC_ERROR): Likewise.
1021 Factor the `, ' part of verbose error messages.
1023 2001-09-18 Marc Autret <autret_m@epita.fr>
1025 * src/getargs.c (longopts): Declare --defines and --graph as options
1026 with optional arguments.
1027 * src/files.h: Add extern declarations.
1028 * src/files.c (spec_graph_file, spec_defines_file): New.
1029 (output_files): Update.
1030 Remove CPP-outed code.
1032 2001-09-18 Marc Autret <autret_m@epita.fr>
1034 Turn off %{source,header}_extension feature.
1036 * src/files.c (compute_exts_from_gf): Update.
1037 (compute_exts_from_src): Update.
1038 (output_files): CPP-out useless code.
1039 * src/files.h: Remove {header,source}_extension extern declarations.
1040 * src/reader.c (parse_dquoted_param): CPP-out.
1041 (parse_header_extension_decl): Remove.
1042 (parse_source_extension_decl): Remove.
1043 (read_declarations): Remove cases tok_{hdrext,srcext}.
1044 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1045 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1047 2001-09-10 Akim Demaille <akim@epita.fr>
1049 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1050 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1051 (AT_CHECK_OUTPUT): this.
1052 Merely check ls' exit status, its output is useless.
1054 2001-09-10 Akim Demaille <akim@epita.fr>
1056 * tests/calc.at: Use m4_match.
1057 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1059 2001-09-10 Marc Autret <autret_m@epita.fr>,
1060 Akim Demaille <akim@epita.fr>
1062 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1064 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1066 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1067 * src/lex.h: Adjust prototype.
1068 (token_t): Add `tok_undef'.
1069 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1070 (parse_percent_token): Now returns token_t.
1071 Add default statement in switch.
1072 (lex): Separate `c' as an input variable, from the token_t result
1074 (unlexed): Is a token_t.
1076 2001-09-10 Akim Demaille <akim@epita.fr>
1078 * configure.in: Bump to 1.29a.
1080 2001-09-07 Akim Demaille <akim@epita.fr>
1084 2001-08-30 Akim Demaille <akim@epita.fr>
1086 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1087 * m4/atconfig.m4: Remove.
1088 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1090 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1091 m4_if, m4_patsubst, and m4_regexp.
1092 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1093 `input' file instead of echo.
1095 2001-08-29 Akim Demaille <akim@epita.fr>
1099 2001-08-29 Akim Demaille <akim@epita.fr>
1103 2001-08-29 Paul Eggert <eggert@twinsun.com>
1105 * src/bison.simple (yyparse): Don't take the address of an
1106 item before the start of an array, as that doesn't conform to
1109 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1111 * doc/bison.texinfo (Location Tracking Calc): New node.
1113 2001-08-29 Paul Eggert <eggert@twinsun.com>
1115 * src/output.c (output): Do not define const, as this now
1116 causes more problems than it cures.
1118 2001-08-29 Akim Demaille <akim@epita.fr>
1120 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1122 Be sure to tag the `detailmenu'.
1124 2001-08-29 Akim Demaille <akim@epita.fr>
1126 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1127 download in a tmp dir.
1129 2001-08-28 Marc Autret <autret_m@epita.fr>
1131 * config/depcomp: New file.
1133 2001-08-28 Marc Autret <autret_m@epita.fr>
1135 * doc/bison.1 (mandoc): Adjust.
1136 From Juan Manuel Guerrero.
1138 2001-08-28 Marc Autret <autret_m@epita.fr>
1140 * src/print_graph.c (print_state): Fix.
1142 2001-08-27 Marc Autret <autret_m@epita.fr>
1144 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1146 Echo modifications to the functions prototypes.
1147 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1149 2001-08-27 Marc Autret <autret_m@epita.fr>
1151 * src/vcg.c: Include `xalloc.h'.
1152 (add_colorentry): New.
1153 (add_classname): New.
1154 (add_infoname): New.
1155 * src/vcg.h: Add new prototypes.
1157 2001-08-27 Akim Demaille <akim@epita.fr>
1159 * Makefile.maint: Sync. again with CVS Autoconf.
1161 2001-08-27 Akim Demaille <akim@epita.fr>
1163 * Makefile.maint: Formatting changes.
1164 (po-update, cvs-update, update): New targets.
1167 2001-08-27 Akim Demaille <akim@epita.fr>
1169 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1170 * Makefile.maint: Sync. with CVS Autoconf.
1172 2001-08-27 Marc Autret <autret_m@epita.fr>
1174 * src/vcg.h (struct infoname_s): New.
1175 (struct colorentry_s): New.
1176 (graph_s): New fields {vertical,horizontal}_order in structure.
1177 Add `infoname' field.
1178 Add `colorentry' field;
1179 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1180 (G_HORIZONTAL_ORDER): New.
1182 (G_COLORENTRY): New.
1183 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1184 Add output of `infoname'.
1185 Add output of `colorentry'.
1187 2001-08-27 Marc Autret <autret_m@epita.fr>
1189 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1190 This one shadowed a global parameter.
1192 2001-08-24 Marc Autret <autret_m@epita.fr>
1194 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1195 instead of `unsigned'.
1196 (print_state): Do not call obstack_object_size () in obstack_grow ()
1197 to avoid macro variables shadowing.
1199 2001-08-23 Marc Autret <autret_m@epita.fr>
1201 * src/lex.c (percent_table): Typo: s/naem/name/.
1203 Normalize new options declarations.
1205 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1207 * tests/suite.at: Exercise %header_extension and %source_extension.
1209 2001-08-16 Marc Autret <autret_m@epita.fr>
1211 * src/reader.c (parse_dquoted_param): New.
1212 (parse_header_extension_decl): Use it.
1213 (parse_source_extension_decl): Likewise.
1215 2001-08-16 Marc Autret <autret_m@epita.fr>
1217 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1218 (get_xxxx_str): Use assert () instead of complain ().
1219 Remove return invokations in default cases.
1220 (get_decision_str): Modify default behaviour. Remove second argument.
1221 Echo modifications on calls.
1222 (output_graph): Fix.
1224 2001-08-16 Marc Autret <autret_m@epita.fr>
1226 * src/getargs.c (usage): Update with ``-g, --graph''.
1228 2001-08-16 Marc Autret <autret_m@epita.fr>
1230 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1231 (Option Cross Key): Likewise.
1232 * doc/bison.1: Update.
1234 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1236 * src/output.c (output_master_parser): Don't finish action_obstack.
1237 (output_parser): Don't care about the muscle action, here.
1238 (prepare): Copy the action_obstack in the action muscle.
1239 (output): Free action_obstack.
1241 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1243 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1244 will contain `%union' declaration.
1245 (parse_union_decl): Delete #line directive output.
1246 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1247 informations about %union.
1248 (parse_union_decl): Copy the union_obstack in the muscle stype.
1249 * src/bison.simple: Add new #line directive.
1250 Add typdef %%stype YYSTYPE.
1252 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1254 * src/bison.simple: Add new `#line' directive.
1256 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1258 * src/bison.simple: New `#line' directive.
1259 * src/output.c (output_parser): Support new dynamic muscle input_line.
1261 2001-09-22 Marc Autret <autret_m@epita.fr>
1263 * src/output.c (output_master_parser): New.
1264 (output_parser): Be more re-entrant.
1266 2001-09-21 Marc Autret <autret_m@epita.fr>
1268 * src/reader.c (copy_definition, parse_union_decl): Update and use
1270 (copy_action): Likewise.
1271 Use obstack_1grow ().
1272 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1274 2001-09-21 Marc Autret <autret_m@epita.fr>
1276 * src/options.c (option_table): Adjust.
1277 * src/lex.c (parse_percent_token): Fix.
1279 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1281 * src/options.c (symtab.h): Include it, need by lex.h.
1283 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1285 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1286 is now an option_table_struct*.
1287 (option_strcmp): New function option_strcmp.
1288 (parse_percent_token): Call option_strcmp.
1289 * src/getargs.c (xalloc.h, options.h): Include it.
1290 (getargs): Call create_long_option_table.
1291 (getargs): Free longopts at the end of the function.
1292 (shortopts): Move in options.c.
1293 * src/options.c (create_long_option_table): New function. Convert
1294 information from option_table to option structure.
1295 * src/reader.c (options.h): Include it.
1297 * src/Makefile.am: Adjust.
1298 * src/options.c (option_table): Create from longopts and percent_table.
1299 * src/getargs.c (longopts): Delete.
1300 * src/lex.c (struct percent_table_struct): Delete.
1301 (percent_table): Delete.
1302 (options.h): Include it.
1303 * src/options.c: Create.
1304 * src/options.h: Create.
1305 Declare enum opt_access_e.
1306 Define struct option_table_struct.
1308 2001-09-20 Marc Autret <autret_m@epita.fr>
1310 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1313 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1315 * src/bison.simple: s/%%filename/%%skeleton.
1316 * src/muscle_tab.c (getargs.h): Include it.
1317 (muscle_init): Insert new muscle skeleton.
1319 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1321 * src/output.c (output_parser): Delete unused variable actions_dumped.
1323 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1325 * src/output.c (output): Delete call to reader_output_yylsp.
1326 * src/reader.c (reader): Likewise.
1327 * src/reader.h: Delete declaration of reader_output_yylsp.
1329 2001-09-02 Marc Autret <autret_m@epita.fr>
1331 * src/reader.c: Include muscle_tab.h.
1332 (parse_union_decl): Update.
1333 (parse_macro_decl): Rename parse_muscle_decl.
1334 Update to use renamed functions and variable.
1335 (read_declarations, copy_action, read_additionnal_code, : Updated
1336 with correct variables and functions names.
1337 (packsymbols, reader): Likewise.
1339 * src/reader.h (muscle_obstack): Extern declaration update.
1341 * src/output.c: Include muscle_tab.h
1342 In all functions using macro_insert, change by using muscle_insert ().
1343 (macro_obstack): Rename muscle_obstack.
1344 Echo modifications in the whole file.
1345 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1346 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1347 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1349 * src/muscle_tab.h: Update double inclusion macros.
1350 (macro_entry_s): Rename muscle_entry_s.
1353 * src/muscle_tab.c: Include muscle_tab.h.
1354 Rename macro_tabble to muscle_table.
1355 (mhash1, mhash2, mcmp): Use muscle_entry.
1356 (macro_init): Rename muscle_init. Update.
1357 (macro_insert): Rename muscle_insert. Update.
1358 (macro_find): Rename muscle_find. Update.
1360 * src/main.c: Include muscle_tab.h.
1361 (main): Call muscle_init ().
1362 * src/Makefile.am (bison_SOURCES): Echo modifications.
1364 2001-09-02 Marc Autret <autret_m@epita.fr>
1366 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1368 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1370 2001-09-02 Marc Autret <autret_m@epita.fr>
1372 * src/macrotab.c, src/macrotab.h: Remove.
1374 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1376 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1379 2001-09-01 Marc Autret <autret_m@epita.fr>
1381 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1382 to an explicit value to activate the feature. We do it here.
1384 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1386 * src/output.c (prepare): Delete the `filename' muscule insertion.
1387 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1388 (parse_union_decl): Likewise.
1389 * src/macrotab.c (macro_init): Initialize filename by infile.
1391 2001-08-31 Marc Autret <autret_m@epita.fr>
1393 * src/bison.simple (YYLSP_NEEDED): New definition.
1394 * src/output.c (prepare): Add macro insertion of `locations_flag'
1396 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1398 * src/output.c (prepare): Delete insertion of previous muscles,
1399 and insert the `prefix' muscles.
1400 * src/macrotab.c (macro_init): Likewise.
1401 (macro_init): Initialization prefix directive by `yy'.
1402 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1403 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1404 yylval, yydebug, yyerror, yynerrs and yyparse.
1405 New directive `#define' to substitute yydebug, ... with option
1408 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1410 * src/main.c (main): Standardize.
1411 * src/output.c (output_table_data, output_parser): Likewise.
1412 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1414 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1416 * src/reader.c (read_additionnal_code): Rename %%user_code to
1418 * src/output.c (output): Rename %%declarations to %%prologue.
1419 * src/bison.simple: Echo modifications.
1421 2001-08-31 Marc Autret <autret_m@epita.fr>
1423 * src/reader.c (readgram): CleanUp.
1424 (output_token_defines): Likewise.
1425 (packsymbols): Likewise.
1427 * src/output.c (output): CPP-out useless code.
1429 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1431 * src/reader.c (reader): Delete obsolete call to function
1432 output_trailers and output_headers.
1433 * src/output.h: Remove obsolete functions prototypes of output_headers
1434 and output_trailers.
1436 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1438 * src/main.c: Include macrotab.h.
1439 * src/macrotab.h (macro_entry_s): Constify fields.
1440 Adjust functions prototypes.
1441 * src/macrotab.c (macro_insert): Constify key and value.
1442 (macro_find): Constify key.
1443 (macro_insert): Include 'xalloc.h'
1444 (macro_insert): Use XMALLOC.
1445 (macro_find): Constify return value.
1446 * src/output.c (output_table_data): Rename table to table_data.
1447 (output_parser): Constify macro_key, macro_value.
1449 2001-08-30 Marc Autret <autret_m@epita.fr>
1451 * src/reader.c (parse_skel_decl): New.
1452 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1453 * src/lex.h (token_t): New token `tok_skel'.
1454 * src/lex.c (percent_table): Add skeleton option entry.
1457 2001-08-29 Marc Autret <autret_m@epita.fr>
1459 * src/bison.simple: Add %%user_code directive at the end.
1460 * src/reader.c (read_additionnal_code): New.
1462 * src/output.c (output_program): Remove.
1465 2001-08-28 Marc Autret <autret_m@epita.fr>
1467 * src/output.c (output_actions): Clean up.
1468 (output_gram): CPP-out useless code.
1469 * src/reader.c (reader): Clean up, CPP-out useless code.
1471 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1473 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1475 * src/bison.simple: Add `%%definitions'.
1477 2001-08-28 Marc Autret <autret_m@epita.fr>
1479 * config/depcomp: New file.
1481 2001-08-27 Paul Eggert <eggert@twinsun.com>
1483 * src/bison.simple (yyparse): Don't take the address of an
1484 item before the start of an array, as that doesn't conform to
1487 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1489 * src/output.c (output): Remove the initialization of the macro
1490 obstack. It was done too late here.
1492 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1494 (reader): Initialize the macro obstack here, since we need it to grow
1495 '%define' directives.
1497 * src/reader.h: Declare the macro obstack as extern.
1499 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1501 * src/output.c (output_parser): Fix. Store single '%' characters in
1502 the output obstack instead of throwing them away.
1504 2001-08-27 Akim Demaille <akim@epita.fr>
1506 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1508 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1510 * lib/Makefile.am: Adjust.
1512 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1514 * src/bison.simple: Update and add '%%' directives.
1516 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1518 * src/reader.c (reader): Remove calls to 'output_headers' and
1519 'output_trailers'. Remove some C output.
1520 (readgram): Disable a piece of code that was writing a default
1521 definition for 'YYSTYPE'.
1522 (reader_output_yylsp): Remove.
1523 (packsymbols): Output token defintions to a macro.
1524 (copy_definition): Disable C output.
1526 * src/reader.c (parse_macro_decl): New function used to parse macro
1528 (copy_string2): Put the body of copy_string into this new function.
1529 Add a parameter to let the caller choose whether he wants to copy the
1530 string delimiters or not.
1531 (copy_string): Be a simple call to copy_string2 with the last argument
1533 (read_declarations): Add case for macro definition.
1534 (copy_identifier): New.
1535 (parse_macro_decl): Read macro identifiers using copy_identifier
1538 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1540 * src/output.c (prepare): Add prefixed names.
1541 (output_parser): Output semantic actions.
1542 (output_parser): Fix bug on '%%line' directives.
1544 * src/output.c (output_headers): Remove. The C code printed by this
1545 function should now be in the skeletons.
1546 (output_trailers): Remove.
1547 (output): Disable call to 'reader_output_yylsp'.
1548 (output_rule_data): Do not output tables to the table obstack.
1550 * src/output.c: Remove some C dedicated output.
1551 Improve the use of macro and output obstacks.
1552 (output_defines): Remove.
1554 * src/output.c (output_token_translations): Associate 'translate'
1555 table with a macro. No output to the table obstack.
1556 (output_gram): Same for 'rhs' and 'prhs'.
1557 (output_stos): Same for 'stos'.
1558 (output_rule_data): Same for 'r1' and 'r2'.
1559 (token_actions): Same for 'defact'.
1560 (goto_actions): Same for 'defgoto'.
1561 (output_base): Same for 'pact' and 'pgoto'.
1562 (output_table): Same for 'table'.
1563 (output_check): Same for 'check'.
1565 * src/output.c (output_table_data): New function.
1566 (output_short_table): Remove.
1567 (output_short_or_char_table): Remove.
1569 * src/output.c (output_parser): Replace most of the skeleton copy code
1570 with something new. Skeletons are now processed character by character
1571 rather than line by line, and Bison looks for '%%' macros. This is the
1572 first step in making Bison's output process (a lot) more flexible.
1573 (output_parser): Use the macro table.
1575 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1577 * src/main.c (main): Initialize the macro table.
1579 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1581 * src/lex.c (percent_table): Add tok_define.
1582 * src/lex.h: Add tok_define.
1584 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1586 * src/macrotab.c: New file.
1587 * src/macrotab.h: New file.
1588 * src/Makefile.am: Update.
1590 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1592 * lib/hash.c: New file.
1593 * lib/hash.h: New file.
1594 * lib/Makefile.am: Update.
1596 2001-08-15 Akim Demaille <akim@epita.fr>
1600 2001-08-15 Marc Autret <autret_m@epita.fr>
1602 * src/reader.c (readgram): Indent output macro YYSTYPE.
1603 (packsymbols): Likewise.
1604 (output_token_defines): Likewise.
1605 * src/files.c: Standardize.
1606 (compute_header_macro): New.
1607 (defines_obstack_save): New. Use compute_header_macro.
1608 (output_files): Update. Use defines_obstack_save.
1610 2001-08-15 Akim Demaille <akim@epita.fr>
1612 * doc/bison.texinfo (Table of Symbols): Document
1615 2001-08-15 Akim Demaille <akim@epita.fr>
1617 * missing: Update from CVS Automake.
1618 * config/config.guess, config/config.sub, config/texinfo.tex:
1619 Update from gnu.org.
1621 2001-08-15 Akim Demaille <akim@epita.fr>
1623 * Makefile.maint: Sync with CVS Autoconf.
1625 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1627 * doc/bison.texinfo: Include GNU Free Documentation License from
1629 * doc/fdl.texi: Add to package.
1631 2001-08-14 Marc Autret <autret_m@epita.fr>
1633 Turn on %{source,header}_extension features.
1635 * src/lex.c (percent_table): Un-CPP out header_extension and
1637 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1638 (compute_exts_from_src): Remove conditions. It restores priorities
1641 2001-08-14 Marc Autret <autret_m@epita.fr>
1643 * src/files.c (compute_base_names): Add extensions computing when
1644 `--file-prefix' used.
1645 Standardize function calls.
1647 2001-08-13 Marc Autret <autret_m@epita.fr>
1649 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1650 defining it (defined but null disables alloca).
1652 2001-08-13 Marc Autret <autret_m@epita.fr>
1654 * src/bison.simple (_yy_memcpy): CPP reformat.
1656 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1658 * tests/atconfig.in (CPPFLAGS): Fix.
1660 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1662 * doc/bison.texinfo: Include GNU General Public License from
1664 * doc/gpl.texi: Add to package.
1666 2001-08-10 Marc Autret <autret_m@epita.fr>
1668 * src/print_graph.h: Fix.
1669 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1671 2001-08-10 Akim Demaille <akim@epita.fr>
1673 * src/system.h: Provide default declarations for stpcpy, strndup,
1676 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1678 * doc/bison.texinfo (Locations): Update @$ stuff.
1680 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1682 * src/bison.simple (YYLLOC_DEFAULT): Update.
1685 2001-08-08 Marc Autret <autret_m@epita.fr>
1687 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1688 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1689 Reported by Fabrice Bauzac.
1691 2001-08-08 Marc Autret <autret_m@epita.fr>
1693 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1694 * src/vcg.c (output_node): Fix.
1695 * src/vcg.h: Cleanup.
1696 * src/print_graph.c: Add comments.
1697 (node_output_size): New global variable. Simplify the formatting of
1698 the VCG graph output.
1699 (print_actions): Unused code is now used. It notifies the final state
1700 and no action states in the VCG graph. It also give the reduce actions.
1701 The `shift and goto' edges are red and the `go to state' edges are
1703 Get the current node name and node_obstack by argument.
1704 (node_obstack): New variable.
1705 (print_state): Manage node_obstack.
1706 (print_core): Use node_obstack given by argument.
1707 A node is not only computed here but in print_actions also.
1708 (print_graph): CPP out useless code instead of commenting it.
1710 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1712 * tests/atconfig.in (CPPFLAGS): Fix.
1714 2001-08-07 Akim Demaille <akim@epita.fr>
1716 * src/print_graph.c (quote): New.
1717 (print_core): Use it.
1719 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1721 * src/vcg.c (complain.h): Include it.
1722 Unepitaize `return' invocations.
1723 [NDEBUG] (main): Remove.
1724 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1725 * src/files.c (open_files): Initialize graph_obstack.
1726 * src/print_graph.c (print_actions): CPP out useless code.
1727 (print_core): Don't output the last `\n' in labels.
1729 * src/files.c (output_files): Output the VCG file.
1730 * src/main.c (main): Invoke print_graph ();
1732 2001-08-06 Marc Autret <autret_m@epita.fr>
1734 Automaton VCG graph output.
1735 Using option ``-g'' or long option ``--graph'', you can generate
1736 a gram_filename.vcg file containing a VCG description of the LALR (1)
1737 automaton of your grammar.
1739 * src/main.c: Call to print_graph() function.
1740 * src/getargs.h: Update.
1741 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1742 (graph_flag): New flag.
1744 (getargs): Add case `g'.
1745 * src/files.c (graph_obstack): New obstack struct.
1746 (open_files): Initialize new obstack.
1747 (output_files): Saves graph_obstack if required.
1748 * src/files.h (graph_obstack): New extern declaration.
1749 * src/Makefile.am: Add new source files.
1751 2001-08-06 Marc Autret <autret_m@epita.fr>
1753 * src/print_graph.c, src/print_graph.h (graph): New.
1754 * src/vcg.h: New file.
1755 * src/vcg.c: New file, VCG graph handling.
1757 2001-08-06 Marc Autret <autret_m@epita.fr>
1759 Add of %source_extension and %header_extension which specify
1760 the source or/and the header output file extension.
1762 * src/files.c (compute_base_names): Remove initialisation of
1763 src_extension and header_extension.
1764 (compute_exts_from_gf): Update.
1765 (compute_exts_from_src): Update.
1766 (output_files): Update.
1767 * src/reader.c (parse_header_extension_decl): New.
1768 (parse_source_extension_decl): New.
1769 (read_declarations): New case statements for the new tokens.
1770 * src/lex.c (percent_table): Add entries for %source_extension
1771 and %header_extension.
1772 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1774 2001-08-06 Marc Autret <autret_m@epita.fr>
1776 * configure.in: Bump to 1.28c.
1777 * doc/bison.texinfo: Texinfo thingies.
1779 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1781 * tests/atconfig.in (CPPFLAGS): Add.
1782 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1784 2001-08-03 Akim Demaille <akim@epita.fr>
1788 2001-08-03 Akim Demaille <akim@epita.fr>
1790 * tests/Makefile.am (check-local): Ship testsuite.
1791 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1794 2001-08-03 Akim Demaille <akim@epita.fr>
1796 * configure.in: Try using -Wformat when compiling.
1798 2001-08-03 Akim Demaille <akim@epita.fr>
1800 * configure.in: Bump to 1.28b.
1802 2001-08-03 Akim Demaille <akim@epita.fr>
1804 * src/complain.c: Adjust strerror_r portability issues.
1806 2001-08-03 Akim Demaille <akim@epita.fr>
1810 2001-08-03 Akim Demaille <akim@epita.fr>
1812 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1813 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1814 * src/getargs.c: Include complain.h.
1815 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1816 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1818 2001-08-03 Akim Demaille <akim@epita.fr>
1820 * src/reader.c (readgram): Display hidden chars in error messages.
1822 2001-08-03 Akim Demaille <akim@epita.fr>
1824 Update to gettext 0.10.39.
1826 2001-08-03 Akim Demaille <akim@epita.fr>
1828 * lib/strspn.c: New.
1830 2001-08-01 Marc Autret <autret_m@epita.fr>
1832 * doc/bison.texinfo: Update.
1833 * doc/bison.1 (mandoc): Update.
1834 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1835 * src/files.c: Support output files extensions computing.
1836 (src_extension): New static variable.
1837 (header_extension): New static variable.
1839 (get_extension_index): New function, gets the index of an extension
1840 filename in a string.
1841 (compute_exts_from_gf): New function, computes extensions from the
1842 grammar file extension.
1843 (compute_exts_from_src): New functions, computes extensions from the
1844 C source file extension, file given by ``-o'' option.
1845 (compute_base_names): Update.
1846 (output_files): Update.
1848 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1850 * doc/bison.texi: Document @$.
1851 (Locations): New section.
1853 2001-07-18 Akim Demaille <akim@epita.fr>
1855 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1856 * config/prev-version.txt, config/move-if-change: New.
1857 * Makefile.am: Adjust.
1859 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1861 * src/bison.simple (yyparse): Suppress warning `comparaison
1862 between signed and unsigned'.
1864 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1866 * src/getargs.h (raw_flag): Remove.
1867 * src/getargs.c: Die on `-r'/`--raw'.
1868 * src/lex.c (parse_percent_token): Die on `%raw'.
1869 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1870 * tests/calc.at: Suppress test with option `--raw'.
1872 2001-07-14 Akim Demaille <akim@epita.fr>
1875 * configure.in: Require Autoconf 2.50.
1876 Update to gettext 0.10.38.
1878 2001-03-16 Akim Demaille <akim@epita.fr>
1880 * doc/bison.texinfo: ANSIfy the examples.
1882 2001-03-16 Akim Demaille <akim@epita.fr>
1884 * getargs.c (skeleton): New variable.
1885 (longopts): --skeleton is a new option.
1886 (shortopts, getargs): -S is a new option.
1887 * getargs.h: Declare skeleton.
1888 * output.c (output_parser): Use it.
1890 2001-03-16 Akim Demaille <akim@epita.fr>
1892 * m4/strerror_r.m4: New.
1893 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1894 * lib/error.h, lib/error.c: Update.
1896 2001-03-16 Akim Demaille <akim@epita.fr>
1898 * src/getargs.c (longopts): Clean up.
1900 2001-02-21 Akim Demaille <akim@epita.fr>
1902 * src/reader.c (gensym): `gensym_count' is your own.
1903 Use a static buf to create the symbol name, as token_buffer is no
1906 2001-02-08 Akim Demaille <akim@epita.fr>
1908 * src/conflicts.c (conflict_report): Be sure not to append to res
1909 between two calls, which could happen if both first sprintf were
1910 skipped, but not the first cp += strlen.
1912 2001-02-08 Akim Demaille <akim@epita.fr>
1914 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1915 New, from fileutils 4.0.37.
1916 * configure.in: Require Autoconf 2.49c. I took some time before
1917 making this decision. This is the only way out for portability
1918 issues in Bison, it would mean way too much duplicate effort to
1919 import in Bison features implemented in 2.49c since 2.13.
1920 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1922 2001-02-02 Akim Demaille <akim@epita.fr>
1924 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1925 * lib/xalloc.h, lib/xmalloc.c: Update.
1927 2001-01-19 Akim Demaille <akim@epita.fr>
1929 Get rid of the ad hoc handling of token_buffer in the scanner: use
1932 * src/lex.c (token_obstack): New.
1933 (init_lex): Initialize it. No longer call...
1934 (grow_token_buffer): this. Remove it.
1935 Adjust all the places which used it to use the obstack.
1937 2001-01-19 Akim Demaille <akim@epita.fr>
1939 * src/lex.h: Rename all the tokens:
1940 s/\bENDFILE\b/tok_eof/g;
1941 s/\bIDENTIFIER\b/tok_identifier/g;
1943 Let them be enums, not #define, to ease debugging.
1944 Adjust all the code.
1946 2001-01-18 Akim Demaille <akim@epita.fr>
1948 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1949 * src/lex.c (maxtoken, grow_token_buffer): Static.
1951 2001-01-18 Akim Demaille <akim@epita.fr>
1953 Since we now use obstacks, more % directives can be enabled.
1955 * src/lex.c (percent_table): Also accept `%yacc',
1956 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1958 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1959 instead of returning a token.
1960 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1961 * src/reader.c (read_declarations): Adjust.
1962 * src/files.c (open_files): Don't call `compute_base_names', don't
1963 compute `attrsfile' since they depend upon data which might be
1964 *in* the input file now.
1965 (output_files): Do it here.
1966 * src/output.c (output_headers): Document the fact that this patch
1967 introduces a guaranteed SEGV for semantic parsers.
1968 * doc/bison.texinfo: Document them.
1969 * tests/suite.at: Exercise these %options.
1971 2000-12-20 Akim Demaille <akim@epita.fr>
1973 Also handle the output file (--verbose) with obstacks.
1975 * files.c (foutput): Remove.
1976 (output_obstack): New.
1977 Adjust all dependencies.
1978 * src/conflicts.c: Return a string.
1979 * src/system.h (obstack_grow_string): Rename as...
1980 (obstack_sgrow): this. Be ready to work with non literals.
1981 (obstack_fgrow4): New.
1983 2000-12-20 Akim Demaille <akim@epita.fr>
1985 * src/files.c (open_files): Fix the computation of short_base_name
1986 in the case of `-o foo.tab.c'.
1988 2000-12-20 Akim Demaille <akim@epita.fr>
1990 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1991 (copy_dollar): Now that everything uses obstacks, get rid of the
1994 2000-12-20 Akim Demaille <akim@epita.fr>
1996 * src/files.c (open_files): Actually the `.output' file is based
1997 on the short_base_name, not base_name.
1998 * tests/suite.at (Checking output file names): Adjust.
2000 2000-12-20 Akim Demaille <akim@epita.fr>
2002 * src/bison.s1: Remove, we now use directly...
2003 * src/bison.simple: this.
2004 * src/Makefile.am: Use pkgdata instead of data.
2006 2000-12-20 Akim Demaille <akim@epita.fr>
2008 * src/files.c (guard_obstack): New.
2009 (open_files): Initialize it.
2010 (output_files): Dump it...
2011 * src/files.h: Export it.
2012 * src/reader.c (copy_guard): Use it.
2014 2000-12-19 Akim Demaille <akim@epita.fr>
2016 * src/files.c (outfile, defsfile, actfile): Removed as global
2018 (open_files): Don't compute them.
2019 (output_files): Adjust.
2020 (base_name, short_base_name): Be global.
2021 Adjust dependencies.
2023 2000-12-19 Akim Demaille <akim@epita.fr>
2025 * src/files.c (strsuffix): New.
2026 (stringappend): Be just like strcat but allocate.
2027 (base_names): Eve out from open_files.
2028 Try to simplify the rather hairy computation of base_name and
2030 (open_files): Use it.
2031 * tests/suite.at (Checking output file names): New test.
2033 2000-12-19 Akim Demaille <akim@epita.fr>
2035 * src/system.h (obstack_grow_literal_string): Rename as...
2036 (obstack_grow_string): this.
2037 * src/output.c (output_parser): Recognize `%% actions' instead of
2039 * src/bison.s1: s/$/%% actions/.
2040 * src/bison.hairy: Likewise.
2042 2000-12-19 Akim Demaille <akim@epita.fr>
2044 * src/output.c (output_parser): Compute the `#line' lines when
2046 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2047 Suggested by Hans Aberg.
2049 2000-12-19 Akim Demaille <akim@epita.fr>
2051 Let the handling of the skeleton files be local to the procedures
2054 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2056 (fparser, open_extra_files): Remove.
2057 (open_files, output_files): Don't take care of fparser.
2058 * src/files.h: Adjust.
2059 * src/output.c (output_parser): Open and close the file to the
2061 * src/reader.c (read_declarations): When %semantic_parser, open
2064 2000-12-19 Akim Demaille <akim@epita.fr>
2066 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2067 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2069 2000-12-19 Akim Demaille <akim@epita.fr>
2071 * src/files.c (open_files): Yipee! We no longer need all the code
2072 looking for `/tmp' since we have no tmp file.
2074 2000-12-19 Akim Demaille <akim@epita.fr>
2076 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2078 * src/files.c (open_files): Less dependency on MSDOS etc.
2080 2000-12-14 Akim Demaille <akim@epita.fr>
2082 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2083 Provide a default definition.
2084 Use it when executing the default @ action.
2085 * src/reader.c (reader_output_yylsp): No longer include
2086 `timestamp' and `text' in the default YYLTYPE.
2088 2000-12-12 Akim Demaille <akim@epita.fr>
2090 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2091 (copy_guard): Quote the file names.
2092 Reported by Laurent Mascherpa.
2094 2000-12-12 Akim Demaille <akim@epita.fr>
2096 * src/output.c (output_headers, output_program, output): Be sure
2097 to escape special characters when outputting filenames.
2098 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2099 (output_headers): Don't depend on them, Use ACTSTR.
2101 2000-11-17 Akim Demaille <akim@epita.fr>
2103 * lib/obstack.h: Formatting changes.
2104 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2105 prevents type checking.
2106 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2107 cast the value to (void *): assigning a `foo *' to a `void *'
2109 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2110 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2113 2000-11-17 Akim Demaille <akim@epita.fr>
2115 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2117 (suite.m4, regression.m4, calc.m4): these.
2118 * tests/atgeneral.m4: Update from CVS Autoconf.
2120 2000-11-17 Akim Demaille <akim@epita.fr>
2122 * tests/regression.m4 (%union and --defines): New test,
2123 demonstrating a current bug in the obstack implementation.
2125 2000-11-17 Akim Demaille <akim@epita.fr>
2127 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2129 Use them to declare the variables which are global or local to
2132 2000-11-17 Akim Demaille <akim@epita.fr>
2134 * acconfig.h: Remove, no longer used.
2136 2000-11-07 Akim Demaille <akim@epita.fr>
2138 * src: s/Copyright (C)/Copyright/g.
2140 2000-11-07 Akim Demaille <akim@epita.fr>
2142 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2144 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2146 2000-11-07 Akim Demaille <akim@epita.fr>
2148 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2149 Merge in a single CPP if/else.
2151 2000-11-07 Akim Demaille <akim@epita.fr>
2153 * src/output.c (output): Remove useless variables.
2154 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2155 argument `data' for consistency with the prototypes.
2157 (obstack_copy, obstack_copy0): Rename the second argument as
2158 `address' for consistency. Qualify it `const'.
2159 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2160 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2161 `const' their input argument (`data' or `address').
2162 Adjust the corresponding macros to include `const' in casts.
2164 2000-11-03 Akim Demaille <akim@epita.fr>
2166 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2167 s/PFILE1/BISON_HAIRY/.
2168 Adjust dependencies.
2170 2000-11-03 Akim Demaille <akim@epita.fr>
2172 For some reason, this was not applied.
2174 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2175 `unlink': it's no longer used.
2177 2000-11-03 Akim Demaille <akim@epita.fr>
2179 * src/files.c (skeleton_find): New function, eved out of...
2180 (open_files, open_extra_files): here.
2182 2000-11-03 Akim Demaille <akim@epita.fr>
2186 * src/files.c (obstack_save): New function.
2187 (done): Rename as...
2188 (output_files): this.
2190 * src/main.c (main): Don't use `atexit' to register `done', since
2191 it no longer has to remove tmp files, just call `output_files'
2192 when there are no errors.
2194 2000-11-02 Akim Demaille <akim@epita.fr>
2196 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2197 `unlink': it's no longer used.
2198 * src/files.h: Formatting changes.
2200 2000-11-02 Akim Demaille <akim@epita.fr>
2202 Remove the last uses of mktemp and unlink/delete.
2204 * src/files.c (fdefines, ftable): Removed.
2205 (defines_ostack, table_obstack): New.
2206 Adjust dependencies of the former into uses of the latter.
2207 * src/output.c (output_short_or_char_table, output_short_table):
2208 Convert to using obstacks.
2209 * src/reader.c (copy_comment2): Accept one FILE * and two
2211 (output_token_defines, reader_output_yylsp): Use obstacks.
2212 * src/system.h (obstack_fgrow3): New.
2214 2000-11-01 Akim Demaille <akim@epita.fr>
2216 Change each use of `fattrs' into a use of `attrs_obstack'.
2218 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2219 * src/files.c (fattrs): Remove.
2220 (attrs_obstack): New.
2221 Adjust all dependencies.
2222 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2224 2000-11-01 Akim Demaille <akim@epita.fr>
2227 Change each use of `faction' into a use of `action_obstack'.
2229 * lib/obstack.h, lib/obstack.c: New files.
2230 * src/files.c (faction): Remove.
2231 (action_obstack): New.
2232 Adjust all dependencies.
2234 2000-10-20 Akim Demaille <akim@epita.fr>
2236 * lib/quote.h (PARAMS): New macro. Use it.
2238 2000-10-16 Akim Demaille <akim@epita.fr>
2240 * src/output.c (output_short_or_char_table): New function.
2241 (output_short_table, output_token_translations): Use it.
2242 (goto_actions): Use output_short_table.
2244 2000-10-16 Akim Demaille <akim@epita.fr>
2246 * src/symtab.c (bucket_new): New function.
2249 * src/output.c (output_short_table): New argument to display the
2250 comment associated with the table.
2251 Adjust dependencies.
2252 (output_gram): Use it.
2253 (output_rule_data): Nicer output layout for YYTNAME.
2255 2000-10-16 Akim Demaille <akim@epita.fr>
2257 * src/lex.c (read_typename): New function.
2259 * src/reader.c (copy_dollar): Likewise.
2261 2000-10-16 Akim Demaille <akim@epita.fr>
2263 * src/reader.c (copy_comment2): Expect the input stream to be on
2264 the `/' which is suspected to open a comment, instead of being
2265 called after `//' or `/*' was read.
2266 (copy_comment, copy_definition, parse_union_decl, copy_action)
2267 (copy_guard): Adjust.
2269 2000-10-16 Akim Demaille <akim@epita.fr>
2271 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2272 `read_signed_integer'.
2274 2000-10-16 Akim Demaille <akim@epita.fr>
2276 * src/reader.c (copy_dollar): New function.
2277 (copy_guard, copy_action): Use it.
2279 2000-10-16 Akim Demaille <akim@epita.fr>
2281 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2282 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2283 New files, from Fileutils 4.0.27.
2284 * src/main.c (printable_version): Remove.
2285 * src/lex.c, src/reader.c: Use `quote'.
2287 2000-10-04 Akim Demaille <akim@epita.fr>
2289 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2291 2000-10-04 Akim Demaille <akim@epita.fr>
2293 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2295 2000-10-04 Akim Demaille <akim@epita.fr>
2297 When a literal string is used to define two different tokens,
2298 `bison -v' segfaults.
2299 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2301 * tests/regression.m4: New file.
2302 Include the core of the sample provided by Piotr Gackiewicz.
2303 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2306 2000-10-04 Akim Demaille <akim@epita.fr>
2308 * src/reader.c (parse_expect_decl): Keep `count' within the size
2312 2000-10-02 Paul Eggert <eggert@twinsun.com>
2314 * bison.s1 (yyparse): Assign the default value
2315 unconditionally, to avoid a GCC warning and make the parser a
2318 2000-10-02 Akim Demaille <akim@epita.fr>
2320 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2323 2000-10-02 Akim Demaille <akim@epita.fr>
2325 * src/derives.c, src/print.c, src/reduce.c: To ease the
2326 translation, move some `\n' out of the translated strings.
2328 2000-10-02 Akim Demaille <akim@epita.fr>
2330 The location tracking mechanism is precious for parse error
2331 messages. Nevertheless, it is enabled only when `@n' is used in
2332 the grammar, which is a different issue (you can use it in error
2333 message, but not in the grammar per se). Therefore, there should
2334 be another means to enable it.
2336 * src/getargs.c (getargs): Support `--locations'.
2338 * src/getargs.h (locationsflag): Export it.
2339 * src/lex.c (percent_table): Support `%locations'.
2340 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2341 with `locationsflag'.
2342 * doc/bison.texinfo: Document `--locations' and `%locations'.
2344 * tests/calc.m4: Test it.
2346 For regularity of the names, replace each
2347 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2348 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2349 In addition replace each `flag' with `_flag'.
2351 2000-10-02 Akim Demaille <akim@epita.fr>
2353 Also test parse error messages, including with YYERROR_VERBOSE.
2355 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2357 Use it to check the computations.
2358 Use it to check `nonassoc' is honored.
2359 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2360 `--yyerror-verbose'.
2361 (_AT_CHECK_CALC): Adjust to this option.
2362 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2364 2000-10-02 Akim Demaille <akim@epita.fr>
2366 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2367 the latter demonstrates a flaw in the handling of non debugging
2368 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2369 was used in order to simplify:
2385 unfortunately this leads to a CPP conflict when
2386 `--name-prefix=foo' is used since it produces `#define yydebug
2389 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2390 (YYDPRINTF): New macro.
2392 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2394 Also test `--verbose', `--defines' and `--name-prefix'.
2396 2000-10-02 Akim Demaille <akim@epita.fr>
2398 Improve the readability of the produced parsers.
2400 * src/bison.s1: Formatting changes.
2401 Improve the comment related to the `$' mark.
2402 (yydefault): Don't fall through to `yyresume': `goto' there.
2403 * src/output.c (output_parser): When the `$' is met, skip the end
2405 New variable, `number_of_dollar_signs', to check there's exactly
2406 one `$' in the parser skeleton.
2408 2000-10-02 Akim Demaille <akim@epita.fr>
2410 * lib/xstrdup.c: New file, from the fileutils.
2411 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2412 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2413 instead of strlen + xmalloc + strcpy.
2414 * src/symtab.c (copys): Remove, use xstrdup instead.
2416 2000-10-02 Akim Demaille <akim@epita.fr>
2418 * src/gram.h (associativity): New enum type which replaces the
2419 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2420 `right_assoc', `left_assoc' and `non_assoc'.
2421 Adjust all dependencies.
2422 * src/reader.c: Formatting changes.
2423 (LTYPESTR): Don't define it, use it as a literal in
2424 `reader_output_yylsp'.
2425 * src/symtab.h (symbol_class): New enum type which replaces the
2426 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2427 `sunknown', `stoken and `snterm'.
2429 2000-10-02 Akim Demaille <akim@epita.fr>
2431 * src/getargs.c (fixed_outfiles): Rename as...
2432 (yaccflag): for consistency and accuracy.
2433 Adjust dependencies.
2435 2000-10-02 Akim Demaille <akim@epita.fr>
2437 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2438 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2439 difficult and introduced a lot of core dump. It turns out that
2440 Bison used an implementation of `xmalloc' based on `calloc', and
2441 at various places it does depend upon the initialization to 0. I
2442 have not tried to isolate the pertinent places, and all the former
2443 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2444 someone should address this issue.
2446 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2447 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2449 Adjust dependencies.
2450 * src/warshall.h: New file.
2453 2000-10-02 Akim Demaille <akim@epita.fr>
2455 Various anti-`extern in *.c' changes.
2457 * src/system.h: Include `assert.h'.
2459 2000-10-02 Akim Demaille <akim@epita.fr>
2461 * src/state.h (nstates, final_state, first_state, first_shift)
2462 (first_reduction): Move their exportation from here...
2463 * src/LR0.h: to here.
2464 Adjust dependencies.
2465 * src/getargs.c (statisticsflag): New variable.
2466 Add support for `--statistics'.
2467 Adjust dependencies.
2469 Remove a lot of now useless `extern' statements in most files.
2471 2000-10-02 Akim Demaille <akim@epita.fr>
2473 * src/LR0.h: New file.
2476 2000-10-02 Akim Demaille <akim@epita.fr>
2478 * src/print.h: New file.
2480 * src/print.c: Formatting and ordering changes.
2481 (verbose, terse): Replace with...
2482 (print_results): this new function.
2483 Adjust dependencies.
2485 2000-10-02 Akim Demaille <akim@epita.fr>
2487 * src/conflicts.c (conflict_report): New function.
2488 (conflict_log, verbose_conflict_log): Replace with...
2489 (print_conflicts): this function.
2490 Adjust dependencies.
2491 * src/conflicts.h: New file.
2492 Propagate its inclusion.
2494 2000-10-02 Akim Demaille <akim@epita.fr>
2496 * src/nullable.h: New file.
2497 Propagate its inclusion.
2498 * src/nullable.c: Formatting changes.
2500 2000-10-02 Akim Demaille <akim@epita.fr>
2502 * src/reduce.h: New file.
2503 Propagate its inclusion.
2504 * src/reduce.c: Topological sort and other formatting changes.
2505 (bool, TRUE, FALSE): Move their definition to...
2506 * src/system.h: here.
2508 2000-10-02 Akim Demaille <akim@epita.fr>
2510 * src/files.c: Formatting changes.
2511 (tryopen, tryclose, openfiles): Rename as...
2512 (xfopen, xfclose, open_files): this.
2513 (stringappend): static.
2514 * src/files.h: Complete the list of exported symbols.
2517 2000-10-02 Akim Demaille <akim@epita.fr>
2519 * src/reader.h: New file.
2520 Propagate its use instead of tedious list of `extern' and
2522 * src/reader.c: Formatting changes, topological sort,
2525 2000-10-02 Akim Demaille <akim@epita.fr>
2527 * src/lex.h: Prototype `lex.c' exported functions.
2528 * src/reader.c: Adjust.
2529 * src/lex.c: Formatting changes.
2530 (safegetc): Rename as...
2533 2000-10-02 Akim Demaille <akim@epita.fr>
2535 * src/lalr.h: New file.
2536 Propagate its inclusion instead of prototypes and `extern'.
2537 * src/lalr.c: Formatting changes, topological sorting etc.
2539 2000-10-02 Akim Demaille <akim@epita.fr>
2541 * src/output.c (token_actions): Introduce a temporary array,
2542 YYDEFACT, that makes it possible for this function to use
2545 2000-10-02 Akim Demaille <akim@epita.fr>
2547 `user_toknums' is output as a `short[]' in `output.c', while it is
2548 defined as a `int[]' in `reader.c'. For consistency with the
2549 other output tables, `user_toknums' is now defined as a table of
2552 * src/reader.c (user_toknums): Be a short table instead of an int
2554 Adjust dependencies.
2556 Factor the short table outputs.
2558 * src/output.c (output_short_table): New function.
2559 * src/output.c (output_gram, output_stos, output_rule_data)
2560 (output_base, output_table, output_check): Use it.
2562 2000-10-02 Akim Demaille <akim@epita.fr>
2564 * src/output.c (output): Topological sort of the functions, in
2565 order to get rid of the `static' prototypes.
2566 No longer use `register'.
2567 * src/output.h: New file.
2568 Propagate its inclusion in files explicitly prototyping functions
2571 2000-09-21 Akim Demaille <akim@epita.fr>
2573 * src/atgeneral.m4: Update from Autoconf.
2575 2000-09-21 Akim Demaille <akim@epita.fr>
2577 * src/closure.h: New file.
2578 * src/closure.c: Formatting changes, topological sort over the
2579 functions, use of closure.h.
2580 (initialize_closure, finalize_closure): Rename as...
2581 (new_closure, free_closure): these. Adjust dependencies.
2582 * src/LR0.c: Formatting changes, topological sort, use of
2584 (initialize_states): Rename as...
2586 * src/Makefile.am (noinst_HEADERS): Adjust.
2588 2000-09-20 Akim Demaille <akim@epita.fr>
2590 * src/acconfig.h: Don't protect config.h against multiple
2592 Don't define PARAMS.
2593 * src/system.h: Define PARAMS.
2594 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2595 purpose of config.h. system.h must not try to fix wrong
2596 definitions in config.h.
2598 2000-09-20 Akim Demaille <akim@epita.fr>
2600 * src/derives.h: New file.
2601 * src/main.c, src/derives.h: Use it.
2603 * src/Makefile.am (noinst_HEADERS): Adjust.
2605 2000-09-20 Akim Demaille <akim@epita.fr>
2607 * tests/atgeneral.m4: Update from Autoconf.
2608 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2609 (AT_CHECK_CALC): New macros.
2610 Use these macros to test bison with options `', `--raw',
2611 `--debug', `--yacc', `--yacc --debug'.
2613 2000-09-19 Akim Demaille <akim@epita.fr>
2615 * src/output.c: Formatting changes.
2616 * src/machine.h: Remove, leaving its contents in...
2617 * src/system.h: here.
2619 Adjust all dependencies on stdio.h and machine.h.
2620 * src/getargs.h: New file.
2621 Let all `extern' declarations about getargs.c be replaced with
2622 inclusion of `getargs.h'.
2623 * src/Makefile.am (noinst_HEADERS): Adjust.
2625 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2627 (yyerror): Returns void, not int.
2628 * doc/bison.texinfo: Formatting changes.
2630 2000-09-19 Akim Demaille <akim@epita.fr>
2632 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2635 2000-09-18 Akim Demaille <akim@epita.fr>
2637 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2638 * src/Makefile.am (INCLUDES): Don't.
2639 Be ready to fetch headers in lib/.
2641 2000-09-18 Akim Demaille <akim@epita.fr>
2643 * doc/bison.texinfo: Update the copyright.
2644 ANSIfy and GNUify the examples.
2645 Remove the old menu.
2647 2000-09-18 Akim Demaille <akim@epita.fr>
2649 First set of tests: use the `calc' example from the documentation.
2651 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2652 is defined only when YYDEBUG is.
2653 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2654 * src/files.c (tryopen, tryclose): Formatting changes.
2655 Move to the top and be static.
2656 * src/reader.c (read_signed_integer): Likewise.
2657 * tests/calc.m4: New file.
2658 * Makefile.am, suite.m4: Adjust.
2659 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2661 2000-09-18 Akim Demaille <akim@epita.fr>
2663 Add support for an Autotest test suite for Bison.
2665 * m4/m4.m4, m4/atconfig.m4: New files.
2666 * m4/Makefile.am (EXTRA_DIST): Adjust.
2667 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2669 * src/getargs.c: Display a more standard --version message.
2670 * src/reader.c (reader): Formatting changes.
2671 No longer depend upon VERSION_STRING.
2672 * configure.in: No longer use `dnl'.
2673 Set up the test suite and the new directory `tests/.
2674 (VERSION_STRING): Remove.
2676 2000-04-14 Akim Demaille <akim@epita.fr>
2678 * src/reader.c (copy_comment2): New function, same as former
2679 `copy_comment', but outputs into two FILE *.
2680 (copy_comment): Use it.
2681 (parse_union_decl): Use it.
2682 (get_type, parse_start_decl): Use the same `invalid' message.
2683 (parse_start_decl, parse_union_decl): Use the same `multiple'
2685 (parse_union_decl, copy_guard, copy_action): Use the same
2686 `unmatched' message.
2687 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2689 2000-03-31 Akim Demaille <akim@epita.fr>
2691 * src/files.c (tryopen, tryclose): Move to the top.
2694 2000-03-31 Akim Demaille <akim@epita.fr>
2696 * src/main.c (main): Don't call `done', exit does it.
2698 2000-03-31 Akim Demaille <akim@epita.fr>
2700 * allocate.c: s/return (foo)/return foo/.
2703 * output.c: Likewise.
2704 * reader.c: Likewise.
2705 * symtab.c: Likewise.
2706 * vmsgetargs.c: Likewise.
2708 2000-03-31 Akim Demaille <akim@epita.fr>
2710 Clean up the error reporting functions.
2712 * src/report.c: New file.
2713 * src/report.h: Likewise.
2714 * src/Makefile.am: Adjust.
2715 * m4/error.m4: New file.
2716 * m4/Makefile.am: Adjust.
2717 * configure.in (jm_PREREQ_ERROR): Call it.
2718 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2720 (fatal, fatals): Remove. All callers use complain.c::fatal.
2721 (warn, warni, warns, warnss, warnss): Remove. All callers use
2722 complain.c::complain.
2723 (toomany): Remove, use fatal instead.
2724 * src/files.c (done): No argument, use complain_message_count.
2725 * src/main.c (main): Register `done' to `atexit'.
2727 * src/getargs.c (usage): More `fputs', less `fprintf'.
2729 2000-03-28 Akim Demaille <akim@epita.fr>
2731 * lib/: New directory.
2732 * Makefile.am (SUBDIRS): Adjust.
2733 * configure.in: Adjust.
2734 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2736 * src/alloca.c: Moved to lib/.
2737 * src/getopt.c: Likewise.
2738 * src/getopt1.c: Likewise.
2739 * src/getopt.h: Likewise.
2740 * src/ansi2knr.c: Likewise.
2741 * src/ansi2knr.1: Likewise.
2742 * src/Makefile.am: Adjust.
2743 * lib/Makefile.am: New file.
2745 2000-03-28 Akim Demaille <akim@epita.fr>
2747 * src/getargs.c (usage): Refresh the help message.
2749 2000-03-17 Akim Demaille <akim@epita.fr>
2751 * src/getopt1.c: Updated from textutils 2.0e
2752 * src/getopt.c: Likewise.
2753 * src/getopt.h: Likewise.
2755 2000-03-17 Akim Demaille <akim@epita.fr>
2757 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2758 the file name, not the whole `#line LINE FILE'.
2760 2000-03-17 Akim Demaille <akim@epita.fr>
2762 On syntax errors, report the token on which we choked.
2764 * src/bison.s1 (yyparse): In the label yyerrlab, when
2765 YYERROR_VERBOSE, add yychar in msg.
2767 2000-03-17 Akim Demaille <akim@epita.fr>
2769 * src/reader.c (copy_at): New function.
2770 (copy_guard): Use it.
2771 (copy_action): Use it.
2773 2000-03-17 Akim Demaille <akim@epita.fr>
2775 Be kind to translators, save some useless translations.
2777 * src/main.c (banner): New function.
2778 (fatal_banner): Use it.
2779 (warn_banner): Use it.
2781 2000-03-17 Akim Demaille <akim@epita.fr>
2783 * src/reader.c (copy_definition): Use copy_string and
2784 copy_comment. Removed now unused `match', `ended',
2786 (copy_comment, copy_string): Moved, to be visible from
2789 2000-03-17 Akim Demaille <akim@epita.fr>
2791 * src/reader.c (copy_string): Declare `static inline'. No
2792 problems with inline, since it is checked by configure.
2793 (copy_comment): Likewise.
2795 2000-03-17 Akim Demaille <akim@epita.fr>
2797 * src/reader.c (packsymbols): Formatting changes.
2799 2000-03-17 Akim Demaille <akim@epita.fr>
2801 * src/reader.c (copy_comment): New function, factored out from:
2802 (copy_action): Use it. Removed now unused `match', `ended',
2804 (copy_guard): Likewise.
2806 2000-03-17 Akim Demaille <akim@epita.fr>
2808 * src/reader.c (copy_string): New function, factored out from:
2809 (copy_action): Use it.
2810 (copy_guard): Likewise.
2812 2000-03-17 Akim Demaille <akim@epita.fr>
2814 Change the handling of @s so that they behave exactly like $s.
2815 There is now a pseudo variable @$ (readble and writable), location
2816 of the lhs of the rule (by default ranging from the location of
2817 the first symbol of the rhs, to the location of the last symbol,
2818 or, if the rhs is empty, YYLLOC).
2820 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2822 (yyparse): When providing a default semantic action, provide a
2823 default location action.
2824 (after the $): No longer change `*YYLSP', just stack YYLOC the
2825 same way you stack YYVAL.
2826 * src/reader.c (read_declarations): Use warns.
2827 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2828 (copy_action, case '@'): Likewise.
2829 Use a standard error message, to save useless work from
2832 2000-03-17 Akim Demaille <akim@epita.fr>
2834 * src/bison.s1: Formatting and cosmetics changes.
2835 * src/reader.c: Likewise.
2836 Update the Copyright notice.
2838 2000-03-17 Akim Demaille <akim@epita.fr>
2840 * src/bison.s1 (#line): All set to `#line' only, since the
2841 Makefile now handles them.
2843 2000-03-16 Akim Demaille <akim@epita.fr>
2845 * src/output.c (output_rule_data): Output the documentation of
2847 (Copyright notice): Update.
2850 2000-03-16 Akim Demaille <akim@epita.fr>
2852 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2853 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2854 One `#if YYDEBUG' remains, since it uses variables which are
2855 defined only if `YYDEBUG != 0'.
2857 2000-03-16 Akim Demaille <akim@epita.fr>
2859 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2860 and related variables so that the similarities are highlighted.
2862 2000-03-16 Akim Demaille <akim@epita.fr>
2864 * src/bison.s1: Properly indent CPP directives.
2866 2000-03-16 Akim Demaille <akim@epita.fr>
2868 * src/bison.s1: Properly indent the `alloca' CPP section.
2870 2000-03-16 Akim Demaille <akim@epita.fr>
2872 Do not hard code values of directories in `configure.in'.
2873 Update the `configure' tool chain.
2875 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2877 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2878 (AC_OUTPUT): Add m4/Makefile.
2879 Bump to bison 1.28a, 1.29 has never been released.
2880 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2881 handled via src/Makefile.am.
2882 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2883 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2885 * Makefile.am (SUBDIRS): Add m4.
2886 (ACLOCAL_AM_FLAGS): New variable.
2887 (AUTOMAKE_OPTIONS): Add check-news.
2888 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2889 the proper line number and file name.
2890 (DEFS): Propagate the location of bison library files and of the
2892 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2894 * acinclude.m4: Remove, replaced by the directory m4.
2895 * m4/Makefile.am (EXTRA_DIST): New variable.
2896 * m4/gettext.m4: New file, from the fileutils.
2897 * m4/lcmessage.m4: Likewise
2898 * m4/progtest.m4: Likewise.
2899 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2901 2000-03-10 Akim Demaille <akim@epita.fr>
2904 Formatting changes of various comments.
2905 Respect the GNU coding standards at various places.
2906 Don't use `_()' when no translation is needed.
2908 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2911 OS/2 honors TMPDIR environment variable.
2913 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2915 * doc/bison.texinfo: Tweaked spelling and grammar.
2917 Removed reference to price of printed copy.
2918 Mention BISON_SIMPLE and BISON_HAIRY.
2920 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2922 * configure.in, NEWS:
2923 Bison 1.29 released.
2925 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2927 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2928 Added reference card.
2930 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2932 * po/ru.po: Added Russian translation.
2934 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2936 * configure.in: Added Russian translation.
2938 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2940 * configure.in, NEWS, README:
2941 Released version 1.28.
2943 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2946 Squashed redefinition warning on some systems.
2948 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2949 Have configure build version string instead of relying on ANSI string
2952 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2954 * po/POTFILES.in: Got rid of version.c.
2956 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2958 * acconfig.h, configure.in:
2959 Have configure build version string instead of relying on ANSI string
2962 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2965 Dropped mention of `+' for long-named options.
2967 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2969 * src/files.c: Added <unistd.h> for unlink().
2971 * src/Makefile.am, src/system.h:
2974 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2976 * README: Added a FAQ list.
2978 * configure.in, acconfig.h:
2981 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2983 * doc/FAQ, doc/Makefile.am:
2986 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2988 * src/alloc.h, src/symtab.h, src/version.c:
2989 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2991 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2993 * src/.cvsignore, src/Makefile.am:
2994 Reorganized: sources in `src', documentation in `doc'.
2996 * src/lex.c (literalchar):
2997 fixed the code for escaping double quotes (thanks
3000 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3002 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3003 Adjusted paths to reflect directory reorganization.
3005 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3007 * doc/.cvsignore, doc/Makefile.am:
3008 Reorganized: sources in `src', documentation in `doc'.
3010 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3013 Updated AC_INIT file to reflect directory reorganization.
3015 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3016 Reorganized: sources in `src', documentation in `doc'.
3018 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3021 Don't declare calloc() and realloc() if not necessary.
3023 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3025 * configure.in, acconfig.h, acinclude.m4:
3026 Don't declare calloc() and realloc() if not necessary.
3028 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3030 * po/.cvsignore: Added i18n support.
3032 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3034 * acconfig.h, configure.in, Makefile.am:
3037 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3039 * src/bison.s1: Fixed #line numbers.
3041 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3043 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3044 Added PO files from Translation Project.
3046 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3049 Added support for non-ANSI compilers (ansi2knr).
3051 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3053 * configure.in: Bumped version number to 1.27.
3056 Added `bison.simple' to list of files removed by `make distclean'.
3058 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3060 * src/files.c, src/files.h:
3061 Defined locations of parser files in config.h instead of Makefile.
3063 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3065 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3066 Defined locations of parser files in config.h instead of Makefile.
3068 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3071 Removed inappropriate use of $< macro.
3073 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3075 * po/Makefile.in.in, po/POTFILES.in:
3076 Add `po' directory skeleton.
3078 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3080 * README: Document help-bison list.
3082 * configure.in: Add check for mkstemp().
3084 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3086 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3087 Hush a few compiler warnings.
3090 Add tryclose(), which verifies that fclose was successful.
3091 Hush a couple of compiler warnings.
3093 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3095 * Makefile.am, OChangeLog:
3096 ChangeLog is now automatically generated. Include the old version as
3099 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3101 * 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:
3104 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3106 * doc/bison.texinfo: Fix formatting glitch.
3108 * doc/bison.texinfo: Update FSF address.
3110 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3112 * acconfig.h: Update FSF address.
3114 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3117 Don't define PACKAGE here, since config.h defines it.
3119 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3121 * src/reader.c: Update copyright date.
3124 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3125 favor of output directly to stderr (avoids buffer overruns).
3127 * src/reader.c: Some checks for premature EOF.
3129 * 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:
3130 Use prototypes if the compiler understands them.
3132 * src/files.c: Honor TMPDIR on Unix hosts.
3133 Use prototypes if the compiler understands them.
3136 Fix a couple of buffer overrun bugs.
3137 Use prototypes if the compiler understands them.
3139 * src/system.h: Include unistd.h and ctype.h.
3140 Use #ifdef instead of #if for NLS symbols.
3142 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3144 * doc/bison.texinfo:
3145 Delete comment "consider using @set for edition number, etc..." since
3146 we now are doing so.
3148 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3151 Use prototypes if the compiler understands them.
3153 * NEWS: Document 1.26 highlights.
3155 * Makefile.am: Require Automake 1.3 or later.
3158 Use prototypes if the compiler understands them.
3160 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3163 Use VERSION symbol from automake for version number.
3165 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3167 * acconfig.h, configure.in, version.cin:
3168 Use VERSION symbol from automake for version number.
3170 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3173 Distribute original version of simple parser (bison.s1), not built
3174 version (bison.simple).
3176 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3178 * doc/bison.texinfo: Add info dir entry.
3180 * doc/bison.texinfo:
3181 Let automake put version number into documentation.
3183 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3185 * src/bison.cld, src/build.com, src/vmshlp.mar:
3186 Add non-RCS files from /gd/gnu/bison.
3188 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3191 Document the BISON_HAIRY and BISON_SIMPLE variables.
3193 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3195 * src/version.c: Build version.c automatically.
3198 Fix token numbering (used to start at 258, not 257).
3200 * src/system.h: Include config.h.
3202 * src/getargs.c: Update bug report address.
3204 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3205 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3207 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3210 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3212 * configure.in, version.cin:
3213 Build version.c automatically.
3215 * AUTHORS: Add AUTHORS file.
3217 * README: Update bug report address.
3220 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3222 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3225 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3227 * doc/bison.texinfo: Clean up some formatting.
3229 1998-05-05 Richard Stallman <rms@gnu.org>
3231 * doc/bison.texinfo:
3232 Explain better why to make a pure parser.
3234 1998-01-05 Richard Stallman <rms@gnu.org>
3236 * src/files.c (openfiles):
3237 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3238 find a temporary directory, if possible. Do not unlink files while
3241 1997-08-25 Richard Stallman <rms@gnu.org>
3243 * src/reader.c (stack_offset;):
3244 Change some warni to warns.
3246 * src/lex.c (literalchar): Use warns, not warni.
3248 1997-06-28 Richard Stallman <rms@gnu.org>
3250 * src/bison.s1: Add a Bison version comment.
3252 * src/main.c (fatal, warn, berror):
3255 1997-06-28 Richard Stallman <rms@gnu.org>
3257 * Makefile.in (bison_version): New variable.
3258 (dist): Use that variable.
3259 (bison.s1): Substitute the Bison version into bison.simple.
3261 * bison.simple: Add a Bison version comment.
3263 1997-06-18 Richard Stallman <rms@gnu.org>
3265 * src/main.c (fatal, warn, berror):
3266 Make error messages standard.
3267 (toomany): Improve error message text.
3269 * 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:
3270 new.h renamed to alloc.h.
3272 1997-06-18 Richard Stallman <rms@gnu.org>
3274 * Makefile.in: new.h renamed to alloc.h.
3276 1997-05-24 Richard Stallman <rms@gnu.org>
3278 * src/lex.c (literalchar):
3279 Fix the code for escaping \, " and '.
3281 (lex): Avoid trouble when there are many chars
3282 to discard in a char literal with just several chars in it.
3284 1997-05-17 Richard Stallman <rms@gnu.org>
3287 Use malloc, if using alloca is troublesome.
3288 (YYSTACK_USE_ALLOCA): New flag macro.
3289 Define it for some systems and compilers.
3290 (YYSTACK_ALLOC): New macro.
3291 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3292 If it was malloc'd, free it.
3294 1997-05-17 Richard Stallman <rms@gnu.org>
3297 Use malloc, if using alloca is troublesome.
3298 (YYSTACK_USE_ALLOCA): New flag macro.
3299 Define it for some systems and compilers.
3300 (YYSTACK_ALLOC): New macro.
3301 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3302 If it was malloc'd, free it.
3304 1997-04-23 Richard Stallman <rms@gnu.org>
3307 (alloca) [__hpux]: Always define as __builtin_alloca.
3309 1997-04-23 Richard Stallman <rms@gnu.org>
3312 (alloca) [__hpux]: Always define as __builtin_alloca.
3314 1997-04-22 Richard Stallman <rms@gnu.org>
3317 [__hpux]: Include alloca.h (right for HPUX 10)
3318 instead of declaring alloca (right for HPUX 9).
3320 * src/bison.s1 (__yy_memcpy):
3321 Declare arg `count' as unsigned int.
3322 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3324 1997-04-22 Richard Stallman <rms@gnu.org>
3327 [__hpux]: Include alloca.h (right for HPUX 10)
3328 instead of declaring alloca (right for HPUX 9).
3330 * bison.simple (__yy_memcpy):
3331 Declare arg `count' as unsigned int.
3332 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3334 1997-01-03 Richard Stallman <rms@gnu.org>
3336 * src/allocate.c: [__STDC__ or _MSC_VER]:
3337 Declare calloc and realloc to return void *.
3339 1997-01-02 Richard Stallman <rms@gnu.org>
3342 [_MSC_VER]: Include stdlib.h and process.h.
3343 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3345 * src/main.c (main): Return FAILURE as a value.
3346 (printable_version): Declare arg as int, not char.
3348 1997-01-02 Richard Stallman <rms@gnu.org>
3350 * Makefile.in (dist):
3351 Explicitly check for symlinks, and copy them.
3353 1996-12-19 Richard Stallman <rms@gnu.org>
3356 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3358 1996-12-18 Paul Eggert <eggert@gnu.org>
3360 * src/bison.s1 (yyparse):
3361 If __GNUC__ and YYPARSE_PARAM are both defined,
3362 declare yyparse to have a void * argument.
3364 1996-12-18 Paul Eggert <eggert@gnu.org>
3366 * bison.simple (yyparse):
3367 If __GNUC__ and YYPARSE_PARAM are both defined,
3368 declare yyparse to have a void * argument.
3370 1996-12-17 Richard Stallman <rms@gnu.org>
3372 * src/reduce.c (nbits): Add some casts.
3374 1996-08-12 Richard Stallman <rms@gnu.org>
3376 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3378 1996-08-12 Richard Stallman <rms@gnu.org>
3380 * bison.simple: Test _MSDOS as well as _MSDOS_.
3382 1996-07-31 Richard Stallman <rms@gnu.org>
3385 [__sun && __i386]: Include alloca.h.
3387 1996-07-31 Richard Stallman <rms@gnu.org>
3390 [__sun && __i386]: Include alloca.h.
3392 1996-07-30 Richard Stallman <rms@gnu.org>
3394 * src/bison.s1: Comment change.
3396 * src/bison.s1: Test _MSDOS_, not MSDOS.
3398 1996-07-30 Richard Stallman <rms@gnu.org>
3400 * bison.simple: Comment change.
3402 * bison.simple: Test _MSDOS_, not MSDOS.
3404 1996-06-01 Richard Stallman <rms@gnu.org>
3406 * 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:
3407 Insert `_' macro around many string constants.
3410 Insert `_' macro around many string constants.
3412 (main): Call setlocale, bindtextdomain and textdomain.
3414 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3415 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3416 [ENABLE_NLS]: Include libintl.h.
3417 [ENABLE_NLS] (gettext): Define.
3418 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3419 (N_, PACKAGE, LOCALEDIR): New macros.
3421 1996-06-01 Richard Stallman <rms@gnu.org>
3423 * POTFILES.in: New file.
3425 * Makefile.in (allocate.o):
3426 Define target explicitly.
3428 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3429 (LDFLAGS): Set to @LDFLAGS@.
3430 (configure): Run autoconf only if preceding `cd' succeeds.
3431 (bison.s1): Redirect output to temporary file then move the
3432 temporary to the target, rather than redirecting directly to bison.s1.
3433 (clean): Remove config.status and config.log.
3434 (distclean): Don't remove config.status here.
3436 1996-05-12 Richard Stallman <rms@gnu.org>
3439 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3441 1996-05-12 Richard Stallman <rms@gnu.org>
3444 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3446 1996-05-11 Richard Stallman <rms@gnu.org>
3448 * src/bison.s1 (__yy_memcpy):
3449 Really reorder the args, as was supposedly done on Feb 14 1995.
3450 (yyparse): Calls changed accordingly.
3452 1996-05-11 Richard Stallman <rms@gnu.org>
3454 * Makefile.in (dist): Don't use $(srcdir).
3456 * bison.simple (__yy_memcpy):
3457 Really reorder the args, as was supposedly done on Feb 14 1995.
3458 (yyparse): Calls changed accordingly.
3460 1996-01-27 Richard Stallman <rms@gnu.org>
3462 * src/output.c (output_rule_data):
3463 Test YYERROR_VERBOSE in the conditional
3464 around the definition of ttyname.
3466 1995-12-29 Richard Stallman <rms@gnu.org>
3469 Fix line numbers in #line commands.
3471 1995-12-29 Richard Stallman <rms@gnu.org>
3474 Fix line numbers in #line commands.
3476 1995-12-27 Richard Stallman <rms@gnu.org>
3478 * src/bison.s1 (YYPARSE_PARAM_DECL):
3479 In C++, make it always null.
3480 (YYPARSE_PARAM_ARG): New macro.
3481 (yyparse): Use YYPARSE_PARAM_ARG.
3483 1995-12-27 Richard Stallman <rms@gnu.org>
3485 * bison.simple (YYPARSE_PARAM_DECL):
3486 In C++, make it always null.
3487 (YYPARSE_PARAM_ARG): New macro.
3488 (yyparse): Use YYPARSE_PARAM_ARG.
3490 1995-11-29 Richard Stallman <rms@gnu.org>
3492 * doc/bison.texinfo:
3493 Describe literal string tokens, %raw, %no_lines, %token_table.
3495 1995-11-29 Daniel Hagerty <hag@gnu.org>
3497 * doc/bison.texinfo: Fixed update date
3499 1995-10-16 Richard Stallman <rms@gnu.org>
3501 * src/version.c: Version 1.25.
3503 1995-10-16 Richard Stallman <rms@gnu.org>
3505 * NEWS: *** empty log message ***
3507 1995-10-16 Richard Stallman <rms@gnu.org>
3509 * doc/bison.1, doc/bison.rnh:
3512 1995-10-15 Richard Stallman <rms@gnu.org>
3514 * src/vmsgetargs.c, src/getargs.c:
3515 Added -n, -k, and -raw switches.
3516 (noparserflag, toknumflag, rawtoknumflag): New variables.
3518 * src/symtab.h (SALIAS):
3519 New #define for adding aliases to %token.
3520 (struct bucket): Added `alias' field.
3522 * src/reduce.c (reduce_grammar):
3523 Revise error message.
3524 (print_notices): Remove final `.' from error message.
3526 * src/reader.c (reader_output_yylsp):
3528 (readgram): Use `#if 0' around code that accepted %command
3529 inside grammar rules: The documentation doesn't allow it,
3530 and it will fail since the %command processors scan for the next %.
3531 (parse_token_decl): Extended the %token
3532 declaration to allow a multi-character symbol as an alias.
3533 (parse_thong_decl): New function.
3534 (read_declarations): Added %thong declarations.
3535 (read_declarations): Handle NOOP to deal with allowing
3536 % declarations as another means to specify the flags.
3537 (readgram): Allow %prec prior to semantics embedded in a rule.
3538 (skip_to_char, read_declarations, copy_definition)
3539 (parse_token_decl, parse_start_decl, parse_type_decl)
3540 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3541 (get_type_name, copy_guard, copy_action, readgram)
3542 (get_type, packsymbols): Revised most error messages.
3543 Changed `fatal' to `warnxxx' to avoid aborting for error.
3544 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3545 (read_declarations): Improve the error message for
3546 an invalid character. Do not abort.
3547 (read_declarations, copy_guard, copy_action): Use
3548 printable_version to avoid unprintable characters in printed output.
3549 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3550 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3551 Allow the type of a non-terminal can be given
3552 more than once, as long as all specifications give the same type.
3555 (output_headers, output_trailers, output, output_gram)
3556 (output_rule_data): Implement noparserflag variable.
3557 Implement toknumflag variable.
3558 (output): Call reader_output_yylsp to output LTYPESTR.
3560 * src/main.c (main):
3561 If reader sees an error, don't process the grammar.
3562 (fatals): Updated to not use VARARGS1.
3563 (printable_version, int_to_string, warn, warni, warns, warnss)
3564 (warnsss): New error reporting functions. Avoid abort for error.
3567 Added THONG and NOOP for alias processing.
3568 Added SETOPT for the new code that allows setting options with %flags.
3571 Include getopt.h. Add some extern decls.
3572 (safegetc): New function to deal with EOF gracefully.
3573 (literalchar); new function to deal with reading \ escapes.
3574 (lex): Use literalchar.
3575 (lex): Implemented "..." tokens.
3576 (literalchar, lex, parse_percent_token): Made tokenbuffer
3577 always contain the token. This includes growing the token
3578 buffer while reading an integer.
3579 (parse_percent_token): Replaced if-else statement with percent_table.
3580 (parse_percent_token): Added % declarations as another
3581 way to specify the flags -n, -l, and -r. Also added hooks for
3582 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3583 major changes to files.c.
3584 (lex) Retain in the incoming stream a character following
3586 (skip_white_space, lex): Revised most error messages
3587 and changed fatal to warn to avoid aborting.
3588 (percent_table): Added %thong declarations.
3590 * src/gram.h: Comment changes.
3592 * src/files.c (openfiles, open_extra_files, done):
3594 and actfile file. Handle noparserflag. Both for -n switch.
3596 * src/conflicts.c (resolve_sr_conflict):
3597 Remove use of alloca.
3599 1995-06-01 Jim Meyering <meyering@gnu.org>
3601 * doc/bison.texinfo: *** empty log message ***
3603 1995-05-06 Richard Stallman <rms@gnu.org>
3605 * src/bison.s1: Comment change.
3607 1995-05-06 Richard Stallman <rms@gnu.org>
3609 * bison.simple: Comment change.
3611 1995-05-03 Richard Stallman <rms@gnu.org>
3613 * src/version.c: Version now 1.24.
3615 * src/bison.s1: Change distribution terms.
3617 * src/version.c: Version now 1.23.
3619 1995-05-03 Richard Stallman <rms@gnu.org>
3621 * doc/bison.texinfo:
3622 Rewrite "Conditions for Using Bison".
3623 Update version to 1.24.
3625 1995-05-03 Richard Stallman <rms@gnu.org>
3627 * bison.simple: Change distribution terms.
3629 1995-02-23 Richard Stallman <rms@gnu.org>
3631 * src/files.c: Test __VMS_POSIX as well as VMS.
3633 1995-02-14 Jim Meyering <meyering@gnu.org>
3635 * src/bison.s1 (__yy_memcpy):
3636 Renamed from __yy_bcopy to avoid
3637 confusion. Reverse FROM and TO arguments to be consistent with
3640 1995-02-14 Jim Meyering <meyering@gnu.org>
3642 * bison.simple (__yy_memcpy):
3643 Renamed from __yy_bcopy to avoid
3644 confusion. Reverse FROM and TO arguments to be consistent with
3647 1994-11-10 David J. MacKenzie <djm@gnu.org>
3653 * Makefile.in (DISTFILES): Include NEWS.
3655 * Makefile.in (DISTFILES):
3656 Include install-sh, not install.sh.
3658 * configure.in: Update to Autoconf v2 macro names.
3660 1994-10-05 David J. MacKenzie <djm@gnu.org>
3662 * Makefile.in: fix typo
3664 * Makefile.in (prefix, exec_prefix):
3665 Let configure set them.
3667 1994-09-28 David J. MacKenzie <djm@gnu.org>
3669 * Makefile.in: Set datadir to $(prefix)/share.
3671 1994-09-15 Richard Stallman <rms@gnu.org>
3674 Update copyright notice and GPL version.
3676 1994-09-15 Richard Stallman <rms@gnu.org>
3679 Update copyright notice and GPL version.
3681 1994-07-12 Richard Stallman <rms@gnu.org>
3683 * src/reduce.c, src/reader.c:
3686 1994-05-05 David J. MacKenzie <djm@gnu.org>
3688 * Makefile.in: entered into RCS
3690 1994-03-26 Richard Stallman <rms@gnu.org>
3692 * src/bison.s1: entered into RCS
3694 1994-03-26 Richard Stallman <rms@gnu.org>
3696 * bison.simple: entered into RCS
3698 1994-03-25 Richard Stallman <rms@gnu.org>
3700 * src/main.c: entered into RCS
3702 1994-03-24 Richard Stallman <rms@gnu.org>
3704 * src/conflicts.c: entered into RCS
3706 1994-01-02 Richard Stallman <rms@gnu.org>
3708 * Makefile.in: *** empty log message ***
3710 1993-11-21 Richard Stallman <rms@gnu.org>
3712 * src/bison.s1: *** empty log message ***
3714 1993-11-21 Richard Stallman <rms@gnu.org>
3716 * doc/bison.texinfo: entered into RCS
3718 * doc/bison.texinfo: *** empty log message ***
3720 1993-11-21 Richard Stallman <rms@gnu.org>
3722 * bison.simple: *** empty log message ***
3724 1993-10-25 David J. MacKenzie <djm@gnu.org>
3726 * doc/bison.texinfo: *** empty log message ***
3728 1993-10-19 Richard Stallman <rms@gnu.org>
3730 * src/bison.s1: *** empty log message ***
3732 1993-10-19 Richard Stallman <rms@gnu.org>
3734 * bison.simple: *** empty log message ***
3736 1993-10-14 Richard Stallman <rms@gnu.org>
3738 * src/bison.s1: *** empty log message ***
3740 1993-10-14 Richard Stallman <rms@gnu.org>
3742 * bison.simple: *** empty log message ***
3744 1993-09-14 David J. MacKenzie <djm@gnu.org>
3746 * doc/bison.texinfo: *** empty log message ***
3748 1993-09-13 Noah Friedman <friedman@gnu.org>
3750 * Makefile.in: *** empty log message ***
3752 1993-09-10 Richard Stallman <rms@gnu.org>
3754 * src/conflicts.c: *** empty log message ***
3756 * src/system.h: entered into RCS
3758 1993-09-10 Richard Stallman <rms@gnu.org>
3760 * doc/bison.1: entered into RCS
3762 1993-09-06 Noah Friedman <friedman@gnu.org>
3764 * src/version.c: entered into RCS
3766 1993-09-06 Noah Friedman <friedman@gnu.org>
3768 * Makefile.in: *** empty log message ***
3770 1993-07-30 David J. MacKenzie <djm@gnu.org>
3772 * Makefile.in: *** empty log message ***
3774 1993-07-24 Richard Stallman <rms@gnu.org>
3776 * src/bison.s1: *** empty log message ***
3778 1993-07-24 Richard Stallman <rms@gnu.org>
3780 * bison.simple: *** empty log message ***
3782 1993-07-08 David J. MacKenzie <djm@gnu.org>
3784 * Makefile.in: *** empty log message ***
3786 1993-07-04 Richard Stallman <rms@gnu.org>
3788 * src/bison.s1: *** empty log message ***
3790 1993-07-04 Richard Stallman <rms@gnu.org>
3792 * bison.simple: *** empty log message ***
3794 1993-06-26 David J. MacKenzie <djm@gnu.org>
3796 * src/getargs.c: entered into RCS
3798 1993-06-26 David J. MacKenzie <djm@gnu.org>
3800 * doc/bison.texinfo: *** empty log message ***
3802 * doc/bison.1: New file.
3804 1993-06-25 Richard Stallman <rms@gnu.org>
3806 * src/getargs.c: New file.
3808 1993-06-16 Richard Stallman <rms@gnu.org>
3810 * src/bison.s1: *** empty log message ***
3812 1993-06-16 Richard Stallman <rms@gnu.org>
3814 * bison.simple: *** empty log message ***
3816 1993-06-03 Richard Stallman <rms@gnu.org>
3818 * src/bison.s1: New file.
3820 1993-06-03 Richard Stallman <rms@gnu.org>
3822 * doc/bison.texinfo: *** empty log message ***
3824 1993-06-03 Richard Stallman <rms@gnu.org>
3826 * bison.simple: New file.
3828 1993-05-19 Richard Stallman <rms@gnu.org>
3830 * doc/bison.texinfo: New file.
3832 1993-05-07 Noah Friedman <friedman@gnu.org>
3834 * Makefile.in: *** empty log message ***
3836 1993-04-28 Noah Friedman <friedman@gnu.org>
3838 * src/reader.c: *** empty log message ***
3840 1993-04-23 Noah Friedman <friedman@gnu.org>
3842 * src/alloc.h: entered into RCS
3844 1993-04-20 David J. MacKenzie <djm@gnu.org>
3846 * src/version.c: *** empty log message ***
3848 * src/files.c, src/allocate.c:
3851 * src/reader.c: *** empty log message ***
3853 * src/lex.c: entered into RCS
3855 * src/conflicts.c: New file.
3857 * src/symtab.c: entered into RCS
3859 * src/alloc.h: New file.
3861 * src/LR0.c: entered into RCS
3863 1993-04-18 Noah Friedman <friedman@gnu.org>
3865 * src/reader.c: New file.
3867 * src/version.c: *** empty log message ***
3869 1993-04-18 Noah Friedman <friedman@gnu.org>
3871 * Makefile.in: *** empty log message ***
3873 1993-04-17 Noah Friedman <friedman@gnu.org>
3875 * Makefile.in: *** empty log message ***
3877 1993-04-15 Richard Stallman <rms@gnu.org>
3879 * src/main.c, src/files.c:
3882 1993-04-15 Noah Friedman <friedman@gnu.org>
3884 * configure.in: entered into RCS
3886 * configure.in: *** empty log message ***
3888 * configure.in: New file.
3890 1993-04-14 Richard Stallman <rms@gnu.org>
3892 * Makefile.in: New file.
3894 1993-04-13 Richard Stallman <rms@gnu.org>
3896 * src/version.c: New file.
3898 1993-03-25 Richard Stallman <rms@gnu.org>
3900 * src/output.c: entered into RCS
3902 1992-09-25 Richard Stallman <rms@gnu.org>
3904 * configure.bat: entered into RCS
3906 1992-06-22 Richard Stallman <rms@gnu.org>
3908 * src/vmsgetargs.c: entered into RCS
3910 1992-06-22 Richard Stallman <rms@gnu.org>
3912 * doc/bison.rnh: entered into RCS
3914 1992-04-20 David J. MacKenzie <djm@gnu.org>
3916 * README: entered into RCS
3918 1992-01-22 Richard Stallman <rms@gnu.org>
3920 * src/machine.h: entered into RCS
3922 1991-12-21 Richard Stallman <rms@gnu.org>
3924 * src/lalr.c, src/closure.c:
3927 1991-12-20 Richard Stallman <rms@gnu.org>
3929 * src/state.h: entered into RCS
3931 1991-12-18 Richard Stallman <rms@gnu.org>
3933 * src/print.c, src/nullable.c, src/derives.c:
3936 1991-11-03 David J. MacKenzie <djm@gnu.org>
3938 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3941 1988-09-09 Richard Stallman <rms@gnu.org>
3943 * src/bison.hairy: entered into RCS
3945 1987-12-16 Richard Stallman <rms@gnu.org>
3947 * REFERENCES: entered into RCS