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