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