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