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