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