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