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