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