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