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