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