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