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