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