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