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