]> git.saurik.com Git - bison.git/blob - ChangeLog
* src/reader.c (copy_definition, parse_union_decl, copy_action)
[bison.git] / ChangeLog
1 2000-12-12 Akim Demaille <akim@epita.fr>
2
3 * src/reader.c (copy_definition, parse_union_decl, copy_action)
4 (copy_guard): Quote the file names.
5 Reported by Laurent Mascherpa.
6
7 2000-12-12 Akim Demaille <akim@epita.fr>
8
9 * src/output.c (output_headers, output_program, output): Be sure
10 to escape special characters when outputting filenames.
11 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
12 (output_headers): Don't depend on them, Use ACTSTR.
13
14 2000-11-17 Akim Demaille <akim@epita.fr>
15
16 * lib/obstack.h: Formatting changes.
17 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
18 prevents type checking.
19 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
20 cast the value to (void *): assigning a `foo *' to a `void *'
21 variable is valid.
22 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
24 append characters.
25
26 2000-11-17 Akim Demaille <akim@epita.fr>
27
28 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
29 as...
30 (suite.m4, regression.m4, calc.m4): these.
31 * tests/atgeneral.m4: Update from CVS Autoconf.
32
33 2000-11-17 Akim Demaille <akim@epita.fr>
34
35 * tests/regression.m4 (%union and --defines): New test,
36 demonstrating a current bug in the obstack implementation.
37
38 2000-11-17 Akim Demaille <akim@epita.fr>
39
40 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
41 macros.
42 Use them to declare the variables which are global or local to
43 `yyparse'.
44
45 2000-11-17 Akim Demaille <akim@epita.fr>
46
47 * acconfig.h: Remove, no longer used.
48
49 2000-11-07 Akim Demaille <akim@epita.fr>
50
51 * src: s/Copyright (C)/Copyright/g.
52
53 2000-11-07 Akim Demaille <akim@epita.fr>
54
55 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
56 defining.
57 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
58
59 2000-11-07 Akim Demaille <akim@epita.fr>
60
61 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
62 Merge in a single CPP if/else.
63
64 2000-11-07 Akim Demaille <akim@epita.fr>
65
66 * src/output.c (output): Remove useless variables.
67 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
68 argument `data' for consistency with the prototypes.
69 Qualify it `const'.
70 (obstack_copy, obstack_copy0): Rename the second argument as
71 `address' for consistency. Qualify it `const'.
72 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
73 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
74 `const' their input argument (`data' or `address').
75 Adjust the corresponding macros to include `const' in casts.
76
77 2000-11-03 Akim Demaille <akim@epita.fr>
78
79 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
80 s/PFILE1/BISON_HAIRY/.
81 Adjust dependencies.
82
83 2000-11-03 Akim Demaille <akim@epita.fr>
84
85 For some reason, this was not applied.
86
87 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
88 `unlink': it's no longer used.
89
90 2000-11-03 Akim Demaille <akim@epita.fr>
91
92 * src/files.c (skeleton_find): New function, eved out of...
93 (open_files, open_extra_files): here.
94
95 2000-11-03 Akim Demaille <akim@epita.fr>
96
97 Don't use `atexit'.
98
99 * src/files.c (obstack_save): New function.
100 (done): Rename as...
101 (output_files): this.
102 Use `obstack_save'.
103 * src/main.c (main): Don't use `atexit' to register `done', since
104 it no longer has to remove tmp files, just call `output_files'
105 when there are no errors.
106
107 2000-11-02 Akim Demaille <akim@epita.fr>
108
109 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
110 `unlink': it's no longer used.
111 * src/files.h: Formatting changes.
112
113 2000-11-02 Akim Demaille <akim@epita.fr>
114
115 Remove the last uses of mktemp and unlink/delete.
116
117 * src/files.c (fdefines, ftable): Removed.
118 (defines_ostack, table_obstack): New.
119 Adjust dependencies of the former into uses of the latter.
120 * src/output.c (output_short_or_char_table, output_short_table):
121 Convert to using obstacks.
122 * src/reader.c (copy_comment2): Accept one FILE * and two
123 obstacks.
124 (output_token_defines, reader_output_yylsp): Use obstacks.
125 * src/system.h (obstack_fgrow3): New.
126
127 2000-11-01 Akim Demaille <akim@epita.fr>
128
129 Change each use of `fattrs' into a use of `attrs_obstack'.
130
131 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
132 * src/files.c (fattrs): Remove.
133 (attrs_obstack): New.
134 Adjust all dependencies.
135 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
136
137 2000-11-01 Akim Demaille <akim@epita.fr>
138
139 Introduce obstacks.
140 Change each use of `faction' into a use of `action_obstack'.
141
142 * lib/obstack.h, lib/obstack.c: New files.
143 * src/files.c (faction): Remove.
144 (action_obstack): New.
145 Adjust all dependencies.
146
147 2000-10-20 Akim Demaille <akim@epita.fr>
148
149 * lib/quote.h (PARAMS): New macro. Use it.
150
151 2000-10-16 Akim Demaille <akim@epita.fr>
152
153 * src/output.c (output_short_or_char_table): New function.
154 (output_short_table, output_token_translations): Use it.
155 (goto_actions): Use output_short_table.
156
157 2000-10-16 Akim Demaille <akim@epita.fr>
158
159 * src/symtab.c (bucket_new): New function.
160 (getsym): Use it.
161
162 * src/output.c (output_short_table): New argument to display the
163 comment associated with the table.
164 Adjust dependencies.
165 (output_gram): Use it.
166 (output_rule_data): Nicer output layout for YYTNAME.
167
168 2000-10-16 Akim Demaille <akim@epita.fr>
169
170 * src/lex.c (read_typename): New function.
171 (lex): Use it.
172 * src/reader.c (copy_dollar): Likewise.
173
174 2000-10-16 Akim Demaille <akim@epita.fr>
175
176 * src/reader.c (copy_comment2): Expect the input stream to be on
177 the `/' which is suspected to open a comment, instead of being
178 called after `//' or `/*' was read.
179 (copy_comment, copy_definition, parse_union_decl, copy_action)
180 (copy_guard): Adjust.
181
182 2000-10-16 Akim Demaille <akim@epita.fr>
183
184 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
185 `read_signed_integer'.
186
187 2000-10-16 Akim Demaille <akim@epita.fr>
188
189 * src/reader.c (copy_dollar): New function.
190 (copy_guard, copy_action): Use it.
191
192 2000-10-16 Akim Demaille <akim@epita.fr>
193
194 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
195 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
196 New files, from Fileutils 4.0.27.
197 * src/main.c (printable_version): Remove.
198 * src/lex.c, src/reader.c: Use `quote'.
199
200 2000-10-04 Akim Demaille <akim@epita.fr>
201
202 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
203
204 2000-10-04 Akim Demaille <akim@epita.fr>
205
206 * doc/bison.texinfo: Various typos spotted by Neil Booth.
207
208 2000-10-04 Akim Demaille <akim@epita.fr>
209
210 When a literal string is used to define two different tokens,
211 `bison -v' segfaults.
212 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
213
214 * tests/regression.m4: New file.
215 Include the core of the sample provided by Piotr Gackiewicz.
216 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
217 properly.
218
219 2000-10-04 Akim Demaille <akim@epita.fr>
220
221 * src/reader.c (parse_expect_decl): Keep `count' within the size
222 of `buffer'.
223 From Neil Booth.
224
225 2000-10-02 Paul Eggert <eggert@twinsun.com>
226
227 * bison.s1 (yyparse): Assign the default value
228 unconditionally, to avoid a GCC warning and make the parser a
229 tad smaller.
230
231 2000-10-02 Akim Demaille <akim@epita.fr>
232
233 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
234 options.
235
236 2000-10-02 Akim Demaille <akim@epita.fr>
237
238 * src/derives.c, src/print.c, src/reduce.c: To ease the
239 translation, move some `\n' out of the translated strings.
240
241 2000-10-02 Akim Demaille <akim@epita.fr>
242
243 The location tracking mechanism is precious for parse error
244 messages. Nevertheless, it is enabled only when `@n' is used in
245 the grammar, which is a different issue (you can use it in error
246 message, but not in the grammar per se). Therefore, there should
247 be another means to enable it.
248
249 * src/getargs.c (getargs): Support `--locations'.
250 (usage): Report it.
251 * src/getargs.h (locationsflag): Export it.
252 * src/lex.c (percent_table): Support `%locations'.
253 * src/reader.c (yylsp_needed): Remove this variable, now replaced
254 with `locationsflag'.
255 * doc/bison.texinfo: Document `--locations' and `%locations'.
256 Sort the options.
257 * tests/calc.m4: Test it.
258
259 For regularity of the names, replace each
260 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
261 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
262 In addition replace each `flag' with `_flag'.
263
264 2000-10-02 Akim Demaille <akim@epita.fr>
265
266 Also test parse error messages, including with YYERROR_VERBOSE.
267
268 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
269 associative).
270 Use it to check the computations.
271 Use it to check `nonassoc' is honored.
272 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
273 `--yyerror-verbose'.
274 (_AT_CHECK_CALC): Adjust to this option.
275 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
276
277 2000-10-02 Akim Demaille <akim@epita.fr>
278
279 Test also `--verbose', `--defines' and `--name-prefix'. Testing
280 the latter demonstrates a flaw in the handling of non debugging
281 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
282 was used in order to simplify:
283
284 #if YYDEBUG
285 if (yydebug)
286 {
287 ...
288 }
289 #endif
290
291 into
292
293 if (yydebug)
294 {
295 ...
296 }
297
298 unfortunately this leads to a CPP conflict when
299 `--name-prefix=foo' is used since it produces `#define yydebug
300 foodebug'.
301
302 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
303 (YYDPRINTF): New macro.
304 Spread its use.
305 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
306 the bison options.
307 Also test `--verbose', `--defines' and `--name-prefix'.
308
309 2000-10-02 Akim Demaille <akim@epita.fr>
310
311 Improve the readability of the produced parsers.
312
313 * src/bison.s1: Formatting changes.
314 Improve the comment related to the `$' mark.
315 (yydefault): Don't fall through to `yyresume': `goto' there.
316 * src/output.c (output_parser): When the `$' is met, skip the end
317 of its line.
318 New variable, `number_of_dollar_signs', to check there's exactly
319 one `$' in the parser skeleton.
320
321 2000-10-02 Akim Demaille <akim@epita.fr>
322
323 * lib/xstrdup.c: New file, from the fileutils.
324 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
325 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
326 instead of strlen + xmalloc + strcpy.
327 * src/symtab.c (copys): Remove, use xstrdup instead.
328
329 2000-10-02 Akim Demaille <akim@epita.fr>
330
331 * src/gram.h (associativity): New enum type which replaces the
332 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
333 `right_assoc', `left_assoc' and `non_assoc'.
334 Adjust all dependencies.
335 * src/reader.c: Formatting changes.
336 (LTYPESTR): Don't define it, use it as a literal in
337 `reader_output_yylsp'.
338 * src/symtab.h (symbol_class): New enum type which replaces the
339 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
340 `sunknown', `stoken and `snterm'.
341
342 2000-10-02 Akim Demaille <akim@epita.fr>
343
344 * src/getargs.c (fixed_outfiles): Rename as...
345 (yaccflag): for consistency and accuracy.
346 Adjust dependencies.
347
348 2000-10-02 Akim Demaille <akim@epita.fr>
349
350 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
351 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
352 difficult and introduced a lot of core dump. It turns out that
353 Bison used an implementation of `xmalloc' based on `calloc', and
354 at various places it does depend upon the initialization to 0. I
355 have not tried to isolate the pertinent places, and all the former
356 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
357 someone should address this issue.
358
359 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
360 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
361 files.
362 Adjust dependencies.
363 * src/warshall.h: New file.
364 Propagate.
365
366 2000-10-02 Akim Demaille <akim@epita.fr>
367
368 Various anti-`extern in *.c' changes.
369
370 * src/system.h: Include `assert.h'.
371
372 2000-10-02 Akim Demaille <akim@epita.fr>
373
374 * src/state.h (nstates, final_state, first_state, first_shift)
375 (first_reduction): Move their exportation from here...
376 * src/LR0.h: to here.
377 Adjust dependencies.
378 * src/getargs.c (statisticsflag): New variable.
379 Add support for `--statistics'.
380 Adjust dependencies.
381
382 Remove a lot of now useless `extern' statements in most files.
383
384 2000-10-02 Akim Demaille <akim@epita.fr>
385
386 * src/LR0.h: New file.
387 Propagate its use.
388
389 2000-10-02 Akim Demaille <akim@epita.fr>
390
391 * src/print.h: New file.
392 Propagate its use.
393 * src/print.c: Formatting and ordering changes.
394 (verbose, terse): Replace with...
395 (print_results): this new function.
396 Adjust dependencies.
397
398 2000-10-02 Akim Demaille <akim@epita.fr>
399
400 * src/conflicts.c (conflict_report): New function.
401 (conflict_log, verbose_conflict_log): Replace with...
402 (print_conflicts): this function.
403 Adjust dependencies.
404 * src/conflicts.h: New file.
405 Propagate its inclusion.
406
407 2000-10-02 Akim Demaille <akim@epita.fr>
408
409 * src/nullable.h: New file.
410 Propagate its inclusion.
411 * src/nullable.c: Formatting changes.
412
413 2000-10-02 Akim Demaille <akim@epita.fr>
414
415 * src/reduce.h: New file.
416 Propagate its inclusion.
417 * src/reduce.c: Topological sort and other formatting changes.
418 (bool, TRUE, FALSE): Move their definition to...
419 * src/system.h: here.
420
421 2000-10-02 Akim Demaille <akim@epita.fr>
422
423 * src/files.c: Formatting changes.
424 (tryopen, tryclose, openfiles): Rename as...
425 (xfopen, xfclose, open_files): this.
426 (stringappend): static.
427 * src/files.h: Complete the list of exported symbols.
428 Propagate its use.
429
430 2000-10-02 Akim Demaille <akim@epita.fr>
431
432 * src/reader.h: New file.
433 Propagate its use instead of tedious list of `extern' and
434 prototypes.
435 * src/reader.c: Formatting changes, topological sort,
436 s/register//.
437
438 2000-10-02 Akim Demaille <akim@epita.fr>
439
440 * src/lex.h: Prototype `lex.c' exported functions.
441 * src/reader.c: Adjust.
442 * src/lex.c: Formatting changes.
443 (safegetc): Rename as...
444 (xgetc): this.
445
446 2000-10-02 Akim Demaille <akim@epita.fr>
447
448 * src/lalr.h: New file.
449 Propagate its inclusion instead of prototypes and `extern'.
450 * src/lalr.c: Formatting changes, topological sorting etc.
451
452 2000-10-02 Akim Demaille <akim@epita.fr>
453
454 * src/output.c (token_actions): Introduce a temporary array,
455 YYDEFACT, that makes it possible for this function to use
456 output_short_table.
457
458 2000-10-02 Akim Demaille <akim@epita.fr>
459
460 `user_toknums' is output as a `short[]' in `output.c', while it is
461 defined as a `int[]' in `reader.c'. For consistency with the
462 other output tables, `user_toknums' is now defined as a table of
463 shorts.
464
465 * src/reader.c (user_toknums): Be a short table instead of an int
466 table.
467 Adjust dependencies.
468
469 Factor the short table outputs.
470
471 * src/output.c (output_short_table): New function.
472 * src/output.c (output_gram, output_stos, output_rule_data)
473 (output_base, output_table, output_check): Use it.
474
475 2000-10-02 Akim Demaille <akim@epita.fr>
476
477 * src/output.c (output): Topological sort of the functions, in
478 order to get rid of the `static' prototypes.
479 No longer use `register'.
480 * src/output.h: New file.
481 Propagate its inclusion in files explicitly prototyping functions
482 from output.c.
483
484 2000-09-21 Akim Demaille <akim@epita.fr>
485
486 * src/atgeneral.m4: Update from Autoconf.
487
488 2000-09-21 Akim Demaille <akim@epita.fr>
489
490 * src/closure.h: New file.
491 * src/closure.c: Formatting changes, topological sort over the
492 functions, use of closure.h.
493 (initialize_closure, finalize_closure): Rename as...
494 (new_closure, free_closure): these. Adjust dependencies.
495 * src/LR0.c: Formatting changes, topological sort, use of
496 cloture.h.
497 (initialize_states): Rename as...
498 (new_states): this.
499 * src/Makefile.am (noinst_HEADERS): Adjust.
500
501 2000-09-20 Akim Demaille <akim@epita.fr>
502
503 * src/acconfig.h: Don't protect config.h against multiple
504 inclusion.
505 Don't define PARAMS.
506 * src/system.h: Define PARAMS.
507 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
508 purpose of config.h. system.h must not try to fix wrong
509 definitions in config.h.
510
511 2000-09-20 Akim Demaille <akim@epita.fr>
512
513 * src/derives.h: New file.
514 * src/main.c, src/derives.h: Use it.
515 Formatting changes.
516 * src/Makefile.am (noinst_HEADERS): Adjust.
517
518 2000-09-20 Akim Demaille <akim@epita.fr>
519
520 * tests/atgeneral.m4: Update from Autoconf.
521 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
522 (AT_CHECK_CALC): New macros.
523 Use these macros to test bison with options `', `--raw',
524 `--debug', `--yacc', `--yacc --debug'.
525
526 2000-09-19 Akim Demaille <akim@epita.fr>
527
528 * src/output.c: Formatting changes.
529 * src/machine.h: Remove, leaving its contents in...
530 * src/system.h: here.
531 Include stdio.h.
532 Adjust all dependencies on stdio.h and machine.h.
533 * src/getargs.h: New file.
534 Let all `extern' declarations about getargs.c be replaced with
535 inclusion of `getargs.h'.
536 * src/Makefile.am (noinst_HEADERS): Adjust.
537
538 * tests/calc.m4 (yyin): Be initialized in main, not on the global
539 scope.
540 (yyerror): Returns void, not int.
541 * doc/bison.texinfo: Formatting changes.
542
543 2000-09-19 Akim Demaille <akim@epita.fr>
544
545 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
546 portable.
547
548 2000-09-18 Akim Demaille <akim@epita.fr>
549
550 * configure.in: Append WARNING_CFLAGS to CFLAGS.
551 * src/Makefile.am (INCLUDES): Don't.
552 Be ready to fetch headers in lib/.
553
554 2000-09-18 Akim Demaille <akim@epita.fr>
555
556 * doc/bison.texinfo: Update the copyright.
557 ANSIfy and GNUify the examples.
558 Remove the old menu.
559
560 2000-09-18 Akim Demaille <akim@epita.fr>
561
562 First set of tests: use the `calc' example from the documentation.
563
564 * src/bison.s1 (yyparse): Condition the code using `yytname' which
565 is defined only when YYDEBUG is.
566 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
567 * src/files.c (tryopen, tryclose): Formatting changes.
568 Move to the top and be static.
569 * src/reader.c (read_signed_integer): Likewise.
570 * tests/calc.m4: New file.
571 * Makefile.am, suite.m4: Adjust.
572 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
573
574 2000-09-18 Akim Demaille <akim@epita.fr>
575
576 Add support for an Autotest test suite for Bison.
577
578 * m4/m4.m4, m4/atconfig.m4: New files.
579 * m4/Makefile.am (EXTRA_DIST): Adjust.
580 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
581 files.
582 * src/getargs.c: Display a more standard --version message.
583 * src/reader.c (reader): Formatting changes.
584 No longer depend upon VERSION_STRING.
585 * configure.in: No longer use `dnl'.
586 Set up the test suite and the new directory `tests/.
587 (VERSION_STRING): Remove.
588
589 2000-04-14 Akim Demaille <akim@epita.fr>
590
591 * src/reader.c (copy_comment2): New function, same as former
592 `copy_comment', but outputs into two FILE *.
593 (copy_comment): Use it.
594 (parse_union_decl): Use it.
595 (get_type, parse_start_decl): Use the same `invalid' message.
596 (parse_start_decl, parse_union_decl): Use the same `multiple'
597 message.
598 (parse_union_decl, copy_guard, copy_action): Use the same
599 `unmatched' message.
600 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
601
602 2000-03-31 Akim Demaille <akim@epita.fr>
603
604 * src/files.c (tryopen, tryclose): Move to the top.
605 Be static.
606
607 2000-03-31 Akim Demaille <akim@epita.fr>
608
609 * src/main.c (main): Don't call `done', exit does it.
610
611 2000-03-31 Akim Demaille <akim@epita.fr>
612
613 * allocate.c: s/return (foo)/return foo/.
614 * lalr.c: Likewise.
615 * LR0.c: Likewise.
616 * output.c: Likewise.
617 * reader.c: Likewise.
618 * symtab.c: Likewise.
619 * vmsgetargs.c: Likewise.
620
621 2000-03-31 Akim Demaille <akim@epita.fr>
622
623 Clean up the error reporting functions.
624
625 * src/report.c: New file.
626 * src/report.h: Likewise.
627 * src/Makefile.am: Adjust.
628 * m4/error.m4: New file.
629 * m4/Makefile.am: Adjust.
630 * configure.in (jm_PREREQ_ERROR): Call it.
631 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
632 Remove.
633 (fatal, fatals): Remove. All callers use complain.c::fatal.
634 (warn, warni, warns, warnss, warnss): Remove. All callers use
635 complain.c::complain.
636 (toomany): Remove, use fatal instead.
637 * src/files.c (done): No argument, use complain_message_count.
638 * src/main.c (main): Register `done' to `atexit'.
639
640 * src/getargs.c (usage): More `fputs', less `fprintf'.
641
642 2000-03-28 Akim Demaille <akim@epita.fr>
643
644 * lib/: New directory.
645 * Makefile.am (SUBDIRS): Adjust.
646 * configure.in: Adjust.
647 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
648 useless.
649 * src/alloca.c: Moved to lib/.
650 * src/getopt.c: Likewise.
651 * src/getopt1.c: Likewise.
652 * src/getopt.h: Likewise.
653 * src/ansi2knr.c: Likewise.
654 * src/ansi2knr.1: Likewise.
655 * src/Makefile.am: Adjust.
656 * lib/Makefile.am: New file.
657
658 2000-03-28 Akim Demaille <akim@epita.fr>
659
660 * src/getargs.c (usage): Refresh the help message.
661
662 2000-03-17 Akim Demaille <akim@epita.fr>
663
664 * src/getopt1.c: Updated from textutils 2.0e
665 * src/getopt.c: Likewise.
666 * src/getopt.h: Likewise.
667
668 2000-03-17 Akim Demaille <akim@epita.fr>
669
670 * src/Makefile.am (bison.simple): Fix the awk program: quote only
671 the file name, not the whole `#line LINE FILE'.
672
673 2000-03-17 Akim Demaille <akim@epita.fr>
674
675 On syntax errors, report the token on which we choked.
676
677 * src/bison.s1 (yyparse): In the label yyerrlab, when
678 YYERROR_VERBOSE, add yychar in msg.
679
680 2000-03-17 Akim Demaille <akim@epita.fr>
681
682 * src/reader.c (copy_at): New function.
683 (copy_guard): Use it.
684 (copy_action): Use it.
685
686 2000-03-17 Akim Demaille <akim@epita.fr>
687
688 Be kind to translators, save some useless translations.
689
690 * src/main.c (banner): New function.
691 (fatal_banner): Use it.
692 (warn_banner): Use it.
693
694 2000-03-17 Akim Demaille <akim@epita.fr>
695
696 * src/reader.c (copy_definition): Use copy_string and
697 copy_comment. Removed now unused `match', `ended',
698 `cplus_comment'.
699 (copy_comment, copy_string): Moved, to be visible from
700 copy_definition.
701
702 2000-03-17 Akim Demaille <akim@epita.fr>
703
704 * src/reader.c (copy_string): Declare `static inline'. No
705 problems with inline, since it is checked by configure.
706 (copy_comment): Likewise.
707
708 2000-03-17 Akim Demaille <akim@epita.fr>
709
710 * src/reader.c (packsymbols): Formatting changes.
711
712 2000-03-17 Akim Demaille <akim@epita.fr>
713
714 * src/reader.c (copy_comment): New function, factored out from:
715 (copy_action): Use it. Removed now unused `match', `ended',
716 `cplus_comment'.
717 (copy_guard): Likewise.
718
719 2000-03-17 Akim Demaille <akim@epita.fr>
720
721 * src/reader.c (copy_string): New function, factored out from:
722 (copy_action): Use it.
723 (copy_guard): Likewise.
724
725 2000-03-17 Akim Demaille <akim@epita.fr>
726
727 Change the handling of @s so that they behave exactly like $s.
728 There is now a pseudo variable @$ (readble and writable), location
729 of the lhs of the rule (by default ranging from the location of
730 the first symbol of the rhs, to the location of the last symbol,
731 or, if the rhs is empty, YYLLOC).
732
733 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
734 yyval.
735 (yyparse): When providing a default semantic action, provide a
736 default location action.
737 (after the $): No longer change `*YYLSP', just stack YYLOC the
738 same way you stack YYVAL.
739 * src/reader.c (read_declarations): Use warns.
740 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
741 (copy_action, case '@'): Likewise.
742 Use a standard error message, to save useless work from
743 translators.
744
745 2000-03-17 Akim Demaille <akim@epita.fr>
746
747 * src/bison.s1: Formatting and cosmetics changes.
748 * src/reader.c: Likewise.
749 Update the Copyright notice.
750
751 2000-03-17 Akim Demaille <akim@epita.fr>
752
753 * src/bison.s1 (#line): All set to `#line' only, since the
754 Makefile now handles them.
755
756 2000-03-16 Akim Demaille <akim@epita.fr>
757
758 * src/output.c (output_rule_data): Output the documentation of
759 some of the tables.
760 (Copyright notice): Update.
761 Formatting changes.
762
763 2000-03-16 Akim Demaille <akim@epita.fr>
764
765 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
766 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
767 One `#if YYDEBUG' remains, since it uses variables which are
768 defined only if `YYDEBUG != 0'.
769
770 2000-03-16 Akim Demaille <akim@epita.fr>
771
772 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
773 and related variables so that the similarities are highlighted.
774
775 2000-03-16 Akim Demaille <akim@epita.fr>
776
777 * src/bison.s1: Properly indent CPP directives.
778
779 2000-03-16 Akim Demaille <akim@epita.fr>
780
781 * src/bison.s1: Properly indent the `alloca' CPP section.
782
783 2000-03-16 Akim Demaille <akim@epita.fr>
784
785 Do not hard code values of directories in `configure.in'.
786 Update the `configure' tool chain.
787
788 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
789 src/makefile.am.
790 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
791 (AC_OUTPUT): Add m4/Makefile.
792 Bump to bison 1.28a, 1.29 has never been released.
793 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
794 handled via src/Makefile.am.
795 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
796 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
797 autoheader.
798 * Makefile.am (SUBDIRS): Add m4.
799 (ACLOCAL_AM_FLAGS): New variable.
800 (AUTOMAKE_OPTIONS): Add check-news.
801 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
802 the proper line number and file name.
803 (DEFS): Propagate the location of bison library files and of the
804 locale files.
805 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
806 builddir.
807 * acinclude.m4: Remove, replaced by the directory m4.
808 * m4/Makefile.am (EXTRA_DIST): New variable.
809 * m4/gettext.m4: New file, from the fileutils.
810 * m4/lcmessage.m4: Likewise
811 * m4/progtest.m4: Likewise.
812 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
813
814 2000-03-10 Akim Demaille <akim@epita.fr>
815
816 * src/closure.c:
817 Formatting changes of various comments.
818 Respect the GNU coding standards at various places.
819 Don't use `_()' when no translation is needed.
820
821 1999-12-13 Jesse Thilo <jthilo@gnu.org>
822
823 * src/files.c:
824 OS/2 honors TMPDIR environment variable.
825
826 1999-12-13 Jesse Thilo <jthilo@gnu.org>
827
828 * doc/bison.texinfo: Tweaked spelling and grammar.
829 Updated ISBN.
830 Removed reference to price of printed copy.
831 Mention BISON_SIMPLE and BISON_HAIRY.
832
833 1999-12-13 Jesse Thilo <jthilo@gnu.org>
834
835 * configure.in, NEWS:
836 Bison 1.29 released.
837
838 1999-10-27 Jesse Thilo <jthilo@gnu.org>
839
840 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
841 Added reference card.
842
843 1999-07-26 Jesse Thilo <jthilo@gnu.org>
844
845 * po/ru.po: Added Russian translation.
846
847 1999-07-26 Jesse Thilo <jthilo@gnu.org>
848
849 * configure.in: Added Russian translation.
850
851 1999-07-06 Jesse Thilo <jthilo@gnu.org>
852
853 * configure.in, NEWS, README:
854 Released version 1.28.
855
856 1999-06-14 Jesse Thilo <jthilo@gnu.org>
857
858 * src/system.h:
859 Squashed redefinition warning on some systems.
860
861 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
862 Have configure build version string instead of relying on ANSI string
863 concatentation.
864
865 1999-06-14 Jesse Thilo <jthilo@gnu.org>
866
867 * po/POTFILES.in: Got rid of version.c.
868
869 1999-06-14 Jesse Thilo <jthilo@gnu.org>
870
871 * acconfig.h, configure.in:
872 Have configure build version string instead of relying on ANSI string
873 concatentation.
874
875 1999-06-08 Jesse Thilo <jthilo@gnu.org>
876
877 * doc/bison.1:
878 Dropped mention of `+' for long-named options.
879
880 1999-05-30 Jesse Thilo <jthilo@gnu.org>
881
882 * src/files.c: Added <unistd.h> for unlink().
883
884 * src/Makefile.am, src/system.h:
885 I18n fixes.
886
887 1999-05-30 Jesse Thilo <jthilo@gnu.org>
888
889 * README: Added a FAQ list.
890
891 * configure.in, acconfig.h:
892 I18n fixes.
893
894 1999-05-30 Jesse Thilo <jthilo@gnu.org>
895
896 * doc/FAQ, doc/Makefile.am:
897 Added a FAQ list.
898
899 1999-05-19 Jesse Thilo <jthilo@gnu.org>
900
901 * src/alloc.h, src/symtab.h, src/version.c:
902 Protected inclusion of "config.h" with HAVE_CONFIG_H.
903
904 1999-04-18 Jesse Thilo <jthilo@gnu.org>
905
906 * src/.cvsignore, src/Makefile.am:
907 Reorganized: sources in `src', documentation in `doc'.
908
909 * src/lex.c (literalchar):
910 fixed the code for escaping double quotes (thanks
911 Jonathan Czisny.)
912
913 1999-04-18 Jesse Thilo <jthilo@gnu.org>
914
915 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
916 Adjusted paths to reflect directory reorganization.
917
918 1999-04-18 Jesse Thilo <jthilo@gnu.org>
919
920 * doc/.cvsignore, doc/Makefile.am:
921 Reorganized: sources in `src', documentation in `doc'.
922
923 1999-04-18 Jesse Thilo <jthilo@gnu.org>
924
925 * configure.in:
926 Updated AC_INIT file to reflect directory reorganization.
927
928 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
929 Reorganized: sources in `src', documentation in `doc'.
930
931 1999-04-13 Jesse Thilo <jthilo@gnu.org>
932
933 * src/allocate.c:
934 Don't declare calloc() and realloc() if not necessary.
935
936 1999-04-13 Jesse Thilo <jthilo@gnu.org>
937
938 * configure.in, acconfig.h, acinclude.m4:
939 Don't declare calloc() and realloc() if not necessary.
940
941 1999-03-23 Jesse Thilo <jthilo@gnu.org>
942
943 * po/.cvsignore: Added i18n support.
944
945 1999-03-23 Jesse Thilo <jthilo@gnu.org>
946
947 * acconfig.h, configure.in, Makefile.am:
948 Added i18n support.
949
950 1999-03-22 Jesse Thilo <jthilo@gnu.org>
951
952 * src/bison.s1: Fixed #line numbers.
953
954 1999-03-15 Jesse Thilo <jthilo@gnu.org>
955
956 * po/es.po, po/fr.po, po/nl.po, po/de.po:
957 Added PO files from Translation Project.
958
959 1999-03-03 Jesse Thilo <jthilo@gnu.org>
960
961 * Makefile.am:
962 Added support for non-ANSI compilers (ansi2knr).
963
964 1999-02-16 Jesse Thilo <jthilo@gnu.org>
965
966 * configure.in: Bumped version number to 1.27.
967
968 * Makefile.am:
969 Added `bison.simple' to list of files removed by `make distclean'.
970
971 1999-02-12 Jesse Thilo <jthilo@gnu.org>
972
973 * src/files.c, src/files.h:
974 Defined locations of parser files in config.h instead of Makefile.
975
976 1999-02-12 Jesse Thilo <jthilo@gnu.org>
977
978 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
979 Defined locations of parser files in config.h instead of Makefile.
980
981 1999-02-09 Jesse Thilo <jthilo@gnu.org>
982
983 * Makefile.am:
984 Removed inappropriate use of $< macro.
985
986 1999-02-05 Jesse Thilo <jthilo@gnu.org>
987
988 * po/Makefile.in.in, po/POTFILES.in:
989 Add `po' directory skeleton.
990
991 1999-01-27 Jesse Thilo <jthilo@gnu.org>
992
993 * README: Document help-bison list.
994
995 * configure.in: Add check for mkstemp().
996
997 1999-01-20 Jesse Thilo <jthilo@gnu.org>
998
999 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1000 Hush a few compiler warnings.
1001
1002 * src/files.c:
1003 Add tryclose(), which verifies that fclose was successful.
1004 Hush a couple of compiler warnings.
1005
1006 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1007
1008 * Makefile.am, OChangeLog:
1009 ChangeLog is now automatically generated. Include the old version as
1010 OChangeLog.
1011
1012 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1013
1014 * 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:
1015 Update FSF address.
1016
1017 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1018
1019 * doc/bison.texinfo: Fix formatting glitch.
1020
1021 * doc/bison.texinfo: Update FSF address.
1022
1023 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1024
1025 * acconfig.h: Update FSF address.
1026
1027 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1028
1029 * src/system.h:
1030 Don't define PACKAGE here, since config.h defines it.
1031
1032 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1033
1034 * src/reader.c: Update copyright date.
1035
1036 * src/main.c:
1037 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1038 favor of output directly to stderr (avoids buffer overruns).
1039
1040 * src/reader.c: Some checks for premature EOF.
1041
1042 * 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:
1043 Use prototypes if the compiler understands them.
1044
1045 * src/files.c: Honor TMPDIR on Unix hosts.
1046 Use prototypes if the compiler understands them.
1047
1048 * src/reader.c:
1049 Fix a couple of buffer overrun bugs.
1050 Use prototypes if the compiler understands them.
1051
1052 * src/system.h: Include unistd.h and ctype.h.
1053 Use #ifdef instead of #if for NLS symbols.
1054
1055 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1056
1057 * doc/bison.texinfo:
1058 Delete comment "consider using @set for edition number, etc..." since
1059 we now are doing so.
1060
1061 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1062
1063 * configure.in:
1064 Use prototypes if the compiler understands them.
1065
1066 * NEWS: Document 1.26 highlights.
1067
1068 * Makefile.am: Require Automake 1.3 or later.
1069
1070 * acconfig.h:
1071 Use prototypes if the compiler understands them.
1072
1073 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1074
1075 * src/version.c:
1076 Use VERSION symbol from automake for version number.
1077
1078 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1079
1080 * acconfig.h, configure.in, version.cin:
1081 Use VERSION symbol from automake for version number.
1082
1083 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1084
1085 * Makefile.am:
1086 Distribute original version of simple parser (bison.s1), not built
1087 version (bison.simple).
1088
1089 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1090
1091 * doc/bison.texinfo: Add info dir entry.
1092
1093 * doc/bison.texinfo:
1094 Let automake put version number into documentation.
1095
1096 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1097
1098 * src/bison.cld, src/build.com, src/vmshlp.mar:
1099 Add non-RCS files from /gd/gnu/bison.
1100
1101 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1102
1103 * doc/bison.1:
1104 Document the BISON_HAIRY and BISON_SIMPLE variables.
1105
1106 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1107
1108 * src/version.c: Build version.c automatically.
1109
1110 * src/reader.c:
1111 Fix token numbering (used to start at 258, not 257).
1112
1113 * src/system.h: Include config.h.
1114
1115 * src/getargs.c: Update bug report address.
1116
1117 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1118 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1119
1120 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1121
1122 * Makefile.am:
1123 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1124
1125 * configure.in, version.cin:
1126 Build version.c automatically.
1127
1128 * AUTHORS: Add AUTHORS file.
1129
1130 * README: Update bug report address.
1131
1132 * bison.simple:
1133 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1134
1135 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1136 Add automake stuff.
1137
1138 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1139
1140 * doc/bison.texinfo: Clean up some formatting.
1141
1142 1998-05-05 Richard Stallman <rms@gnu.org>
1143
1144 * doc/bison.texinfo:
1145 Explain better why to make a pure parser.
1146
1147 1998-01-05 Richard Stallman <rms@gnu.org>
1148
1149 * src/files.c (openfiles):
1150 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1151 find a temporary directory, if possible. Do not unlink files while
1152 they are open.
1153
1154 1997-08-25 Richard Stallman <rms@gnu.org>
1155
1156 * src/reader.c (stack_offset;):
1157 Change some warni to warns.
1158
1159 * src/lex.c (literalchar): Use warns, not warni.
1160
1161 1997-06-28 Richard Stallman <rms@gnu.org>
1162
1163 * src/bison.s1: Add a Bison version comment.
1164
1165 * src/main.c (fatal, warn, berror):
1166 Use program_name.
1167
1168 1997-06-28 Richard Stallman <rms@gnu.org>
1169
1170 * Makefile.in (bison_version): New variable.
1171 (dist): Use that variable.
1172 (bison.s1): Substitute the Bison version into bison.simple.
1173
1174 * bison.simple: Add a Bison version comment.
1175
1176 1997-06-18 Richard Stallman <rms@gnu.org>
1177
1178 * src/main.c (fatal, warn, berror):
1179 Make error messages standard.
1180 (toomany): Improve error message text.
1181
1182 * 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:
1183 new.h renamed to alloc.h.
1184
1185 1997-06-18 Richard Stallman <rms@gnu.org>
1186
1187 * Makefile.in: new.h renamed to alloc.h.
1188
1189 1997-05-24 Richard Stallman <rms@gnu.org>
1190
1191 * src/lex.c (literalchar):
1192 Fix the code for escaping \, " and '.
1193
1194 (lex): Avoid trouble when there are many chars
1195 to discard in a char literal with just several chars in it.
1196
1197 1997-05-17 Richard Stallman <rms@gnu.org>
1198
1199 * src/bison.s1:
1200 Use malloc, if using alloca is troublesome.
1201 (YYSTACK_USE_ALLOCA): New flag macro.
1202 Define it for some systems and compilers.
1203 (YYSTACK_ALLOC): New macro.
1204 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1205 If it was malloc'd, free it.
1206
1207 1997-05-17 Richard Stallman <rms@gnu.org>
1208
1209 * bison.simple:
1210 Use malloc, if using alloca is troublesome.
1211 (YYSTACK_USE_ALLOCA): New flag macro.
1212 Define it for some systems and compilers.
1213 (YYSTACK_ALLOC): New macro.
1214 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1215 If it was malloc'd, free it.
1216
1217 1997-04-23 Richard Stallman <rms@gnu.org>
1218
1219 * src/bison.s1:
1220 (alloca) [__hpux]: Always define as __builtin_alloca.
1221
1222 1997-04-23 Richard Stallman <rms@gnu.org>
1223
1224 * bison.simple:
1225 (alloca) [__hpux]: Always define as __builtin_alloca.
1226
1227 1997-04-22 Richard Stallman <rms@gnu.org>
1228
1229 * src/bison.s1:
1230 [__hpux]: Include alloca.h (right for HPUX 10)
1231 instead of declaring alloca (right for HPUX 9).
1232
1233 * src/bison.s1 (__yy_memcpy):
1234 Declare arg `count' as unsigned int.
1235 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1236
1237 1997-04-22 Richard Stallman <rms@gnu.org>
1238
1239 * bison.simple:
1240 [__hpux]: Include alloca.h (right for HPUX 10)
1241 instead of declaring alloca (right for HPUX 9).
1242
1243 * bison.simple (__yy_memcpy):
1244 Declare arg `count' as unsigned int.
1245 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1246
1247 1997-01-03 Richard Stallman <rms@gnu.org>
1248
1249 * src/allocate.c: [__STDC__ or _MSC_VER]:
1250 Declare calloc and realloc to return void *.
1251
1252 1997-01-02 Richard Stallman <rms@gnu.org>
1253
1254 * src/system.h:
1255 [_MSC_VER]: Include stdlib.h and process.h.
1256 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1257
1258 * src/main.c (main): Return FAILURE as a value.
1259 (printable_version): Declare arg as int, not char.
1260
1261 1997-01-02 Richard Stallman <rms@gnu.org>
1262
1263 * Makefile.in (dist):
1264 Explicitly check for symlinks, and copy them.
1265
1266 1996-12-19 Richard Stallman <rms@gnu.org>
1267
1268 * src/files.c:
1269 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1270
1271 1996-12-18 Paul Eggert <eggert@gnu.org>
1272
1273 * src/bison.s1 (yyparse):
1274 If __GNUC__ and YYPARSE_PARAM are both defined,
1275 declare yyparse to have a void * argument.
1276
1277 1996-12-18 Paul Eggert <eggert@gnu.org>
1278
1279 * bison.simple (yyparse):
1280 If __GNUC__ and YYPARSE_PARAM are both defined,
1281 declare yyparse to have a void * argument.
1282
1283 1996-12-17 Richard Stallman <rms@gnu.org>
1284
1285 * src/reduce.c (nbits): Add some casts.
1286
1287 1996-08-12 Richard Stallman <rms@gnu.org>
1288
1289 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1290
1291 1996-08-12 Richard Stallman <rms@gnu.org>
1292
1293 * bison.simple: Test _MSDOS as well as _MSDOS_.
1294
1295 1996-07-31 Richard Stallman <rms@gnu.org>
1296
1297 * src/bison.s1:
1298 [__sun && __i386]: Include alloca.h.
1299
1300 1996-07-31 Richard Stallman <rms@gnu.org>
1301
1302 * bison.simple:
1303 [__sun && __i386]: Include alloca.h.
1304
1305 1996-07-30 Richard Stallman <rms@gnu.org>
1306
1307 * src/bison.s1: Comment change.
1308
1309 * src/bison.s1: Test _MSDOS_, not MSDOS.
1310
1311 1996-07-30 Richard Stallman <rms@gnu.org>
1312
1313 * bison.simple: Comment change.
1314
1315 * bison.simple: Test _MSDOS_, not MSDOS.
1316
1317 1996-06-01 Richard Stallman <rms@gnu.org>
1318
1319 * 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:
1320 Insert `_' macro around many string constants.
1321
1322 * src/main.c:
1323 Insert `_' macro around many string constants.
1324
1325 (main): Call setlocale, bindtextdomain and textdomain.
1326
1327 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1328 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1329 [ENABLE_NLS]: Include libintl.h.
1330 [ENABLE_NLS] (gettext): Define.
1331 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1332 (N_, PACKAGE, LOCALEDIR): New macros.
1333
1334 1996-06-01 Richard Stallman <rms@gnu.org>
1335
1336 * POTFILES.in: New file.
1337
1338 * Makefile.in (allocate.o):
1339 Define target explicitly.
1340
1341 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1342 (LDFLAGS): Set to @LDFLAGS@.
1343 (configure): Run autoconf only if preceding `cd' succeeds.
1344 (bison.s1): Redirect output to temporary file then move the
1345 temporary to the target, rather than redirecting directly to bison.s1.
1346 (clean): Remove config.status and config.log.
1347 (distclean): Don't remove config.status here.
1348
1349 1996-05-12 Richard Stallman <rms@gnu.org>
1350
1351 * src/bison.s1:
1352 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1353
1354 1996-05-12 Richard Stallman <rms@gnu.org>
1355
1356 * bison.simple:
1357 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1358
1359 1996-05-11 Richard Stallman <rms@gnu.org>
1360
1361 * src/bison.s1 (__yy_memcpy):
1362 Really reorder the args, as was supposedly done on Feb 14 1995.
1363 (yyparse): Calls changed accordingly.
1364
1365 1996-05-11 Richard Stallman <rms@gnu.org>
1366
1367 * Makefile.in (dist): Don't use $(srcdir).
1368
1369 * bison.simple (__yy_memcpy):
1370 Really reorder the args, as was supposedly done on Feb 14 1995.
1371 (yyparse): Calls changed accordingly.
1372
1373 1996-01-27 Richard Stallman <rms@gnu.org>
1374
1375 * src/output.c (output_rule_data):
1376 Test YYERROR_VERBOSE in the conditional
1377 around the definition of ttyname.
1378
1379 1995-12-29 Richard Stallman <rms@gnu.org>
1380
1381 * src/bison.s1:
1382 Fix line numbers in #line commands.
1383
1384 1995-12-29 Richard Stallman <rms@gnu.org>
1385
1386 * bison.simple:
1387 Fix line numbers in #line commands.
1388
1389 1995-12-27 Richard Stallman <rms@gnu.org>
1390
1391 * src/bison.s1 (YYPARSE_PARAM_DECL):
1392 In C++, make it always null.
1393 (YYPARSE_PARAM_ARG): New macro.
1394 (yyparse): Use YYPARSE_PARAM_ARG.
1395
1396 1995-12-27 Richard Stallman <rms@gnu.org>
1397
1398 * bison.simple (YYPARSE_PARAM_DECL):
1399 In C++, make it always null.
1400 (YYPARSE_PARAM_ARG): New macro.
1401 (yyparse): Use YYPARSE_PARAM_ARG.
1402
1403 1995-11-29 Richard Stallman <rms@gnu.org>
1404
1405 * doc/bison.texinfo:
1406 Describe literal string tokens, %raw, %no_lines, %token_table.
1407
1408 1995-11-29 Daniel Hagerty <hag@gnu.org>
1409
1410 * doc/bison.texinfo: Fixed update date
1411
1412 1995-10-16 Richard Stallman <rms@gnu.org>
1413
1414 * src/version.c: Version 1.25.
1415
1416 1995-10-16 Richard Stallman <rms@gnu.org>
1417
1418 * NEWS: *** empty log message ***
1419
1420 1995-10-16 Richard Stallman <rms@gnu.org>
1421
1422 * doc/bison.1, doc/bison.rnh:
1423 Add new options.
1424
1425 1995-10-15 Richard Stallman <rms@gnu.org>
1426
1427 * src/vmsgetargs.c, src/getargs.c:
1428 Added -n, -k, and -raw switches.
1429 (noparserflag, toknumflag, rawtoknumflag): New variables.
1430
1431 * src/symtab.h (SALIAS):
1432 New #define for adding aliases to %token.
1433 (struct bucket): Added `alias' field.
1434
1435 * src/reduce.c (reduce_grammar):
1436 Revise error message.
1437 (print_notices): Remove final `.' from error message.
1438
1439 * src/reader.c (reader_output_yylsp):
1440 New function.
1441 (readgram): Use `#if 0' around code that accepted %command
1442 inside grammar rules: The documentation doesn't allow it,
1443 and it will fail since the %command processors scan for the next %.
1444 (parse_token_decl): Extended the %token
1445 declaration to allow a multi-character symbol as an alias.
1446 (parse_thong_decl): New function.
1447 (read_declarations): Added %thong declarations.
1448 (read_declarations): Handle NOOP to deal with allowing
1449 % declarations as another means to specify the flags.
1450 (readgram): Allow %prec prior to semantics embedded in a rule.
1451 (skip_to_char, read_declarations, copy_definition)
1452 (parse_token_decl, parse_start_decl, parse_type_decl)
1453 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1454 (get_type_name, copy_guard, copy_action, readgram)
1455 (get_type, packsymbols): Revised most error messages.
1456 Changed `fatal' to `warnxxx' to avoid aborting for error.
1457 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1458 (read_declarations): Improve the error message for
1459 an invalid character. Do not abort.
1460 (read_declarations, copy_guard, copy_action): Use
1461 printable_version to avoid unprintable characters in printed output.
1462 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1463 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1464 Allow the type of a non-terminal can be given
1465 more than once, as long as all specifications give the same type.
1466
1467 * src/output.c:
1468 (output_headers, output_trailers, output, output_gram)
1469 (output_rule_data): Implement noparserflag variable.
1470 Implement toknumflag variable.
1471 (output): Call reader_output_yylsp to output LTYPESTR.
1472
1473 * src/main.c (main):
1474 If reader sees an error, don't process the grammar.
1475 (fatals): Updated to not use VARARGS1.
1476 (printable_version, int_to_string, warn, warni, warns, warnss)
1477 (warnsss): New error reporting functions. Avoid abort for error.
1478
1479 * src/lex.h:
1480 Added THONG and NOOP for alias processing.
1481 Added SETOPT for the new code that allows setting options with %flags.
1482
1483 * src/lex.c:
1484 Include getopt.h. Add some extern decls.
1485 (safegetc): New function to deal with EOF gracefully.
1486 (literalchar); new function to deal with reading \ escapes.
1487 (lex): Use literalchar.
1488 (lex): Implemented "..." tokens.
1489 (literalchar, lex, parse_percent_token): Made tokenbuffer
1490 always contain the token. This includes growing the token
1491 buffer while reading an integer.
1492 (parse_percent_token): Replaced if-else statement with percent_table.
1493 (parse_percent_token): Added % declarations as another
1494 way to specify the flags -n, -l, and -r. Also added hooks for
1495 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1496 major changes to files.c.
1497 (lex) Retain in the incoming stream a character following
1498 an incorrect '/'.
1499 (skip_white_space, lex): Revised most error messages
1500 and changed fatal to warn to avoid aborting.
1501 (percent_table): Added %thong declarations.
1502
1503 * src/gram.h: Comment changes.
1504
1505 * src/files.c (openfiles, open_extra_files, done):
1506 Add faction flag
1507 and actfile file. Handle noparserflag. Both for -n switch.
1508
1509 * src/conflicts.c (resolve_sr_conflict):
1510 Remove use of alloca.
1511
1512 1995-06-01 Jim Meyering <meyering@gnu.org>
1513
1514 * doc/bison.texinfo: *** empty log message ***
1515
1516 1995-05-06 Richard Stallman <rms@gnu.org>
1517
1518 * src/bison.s1: Comment change.
1519
1520 1995-05-06 Richard Stallman <rms@gnu.org>
1521
1522 * bison.simple: Comment change.
1523
1524 1995-05-03 Richard Stallman <rms@gnu.org>
1525
1526 * src/version.c: Version now 1.24.
1527
1528 * src/bison.s1: Change distribution terms.
1529
1530 * src/version.c: Version now 1.23.
1531
1532 1995-05-03 Richard Stallman <rms@gnu.org>
1533
1534 * doc/bison.texinfo:
1535 Rewrite "Conditions for Using Bison".
1536 Update version to 1.24.
1537
1538 1995-05-03 Richard Stallman <rms@gnu.org>
1539
1540 * bison.simple: Change distribution terms.
1541
1542 1995-02-23 Richard Stallman <rms@gnu.org>
1543
1544 * src/files.c: Test __VMS_POSIX as well as VMS.
1545
1546 1995-02-14 Jim Meyering <meyering@gnu.org>
1547
1548 * src/bison.s1 (__yy_memcpy):
1549 Renamed from __yy_bcopy to avoid
1550 confusion. Reverse FROM and TO arguments to be consistent with
1551 those of memcpy.
1552
1553 1995-02-14 Jim Meyering <meyering@gnu.org>
1554
1555 * bison.simple (__yy_memcpy):
1556 Renamed from __yy_bcopy to avoid
1557 confusion. Reverse FROM and TO arguments to be consistent with
1558 those of memcpy.
1559
1560 1994-11-10 David J. MacKenzie <djm@gnu.org>
1561
1562 * NEWS: reformat
1563
1564 * NEWS: New file.
1565
1566 * Makefile.in (DISTFILES): Include NEWS.
1567
1568 * Makefile.in (DISTFILES):
1569 Include install-sh, not install.sh.
1570
1571 * configure.in: Update to Autoconf v2 macro names.
1572
1573 1994-10-05 David J. MacKenzie <djm@gnu.org>
1574
1575 * Makefile.in: fix typo
1576
1577 * Makefile.in (prefix, exec_prefix):
1578 Let configure set them.
1579
1580 1994-09-28 David J. MacKenzie <djm@gnu.org>
1581
1582 * Makefile.in: Set datadir to $(prefix)/share.
1583
1584 1994-09-15 Richard Stallman <rms@gnu.org>
1585
1586 * src/bison.s1:
1587 Update copyright notice and GPL version.
1588
1589 1994-09-15 Richard Stallman <rms@gnu.org>
1590
1591 * bison.simple:
1592 Update copyright notice and GPL version.
1593
1594 1994-07-12 Richard Stallman <rms@gnu.org>
1595
1596 * src/reduce.c, src/reader.c:
1597 entered into RCS
1598
1599 1994-05-05 David J. MacKenzie <djm@gnu.org>
1600
1601 * Makefile.in: entered into RCS
1602
1603 1994-03-26 Richard Stallman <rms@gnu.org>
1604
1605 * src/bison.s1: entered into RCS
1606
1607 1994-03-26 Richard Stallman <rms@gnu.org>
1608
1609 * bison.simple: entered into RCS
1610
1611 1994-03-25 Richard Stallman <rms@gnu.org>
1612
1613 * src/main.c: entered into RCS
1614
1615 1994-03-24 Richard Stallman <rms@gnu.org>
1616
1617 * src/conflicts.c: entered into RCS
1618
1619 1994-01-02 Richard Stallman <rms@gnu.org>
1620
1621 * Makefile.in: *** empty log message ***
1622
1623 1993-11-21 Richard Stallman <rms@gnu.org>
1624
1625 * src/bison.s1: *** empty log message ***
1626
1627 1993-11-21 Richard Stallman <rms@gnu.org>
1628
1629 * doc/bison.texinfo: entered into RCS
1630
1631 * doc/bison.texinfo: *** empty log message ***
1632
1633 1993-11-21 Richard Stallman <rms@gnu.org>
1634
1635 * bison.simple: *** empty log message ***
1636
1637 1993-10-25 David J. MacKenzie <djm@gnu.org>
1638
1639 * doc/bison.texinfo: *** empty log message ***
1640
1641 1993-10-19 Richard Stallman <rms@gnu.org>
1642
1643 * src/bison.s1: *** empty log message ***
1644
1645 1993-10-19 Richard Stallman <rms@gnu.org>
1646
1647 * bison.simple: *** empty log message ***
1648
1649 1993-10-14 Richard Stallman <rms@gnu.org>
1650
1651 * src/bison.s1: *** empty log message ***
1652
1653 1993-10-14 Richard Stallman <rms@gnu.org>
1654
1655 * bison.simple: *** empty log message ***
1656
1657 1993-09-14 David J. MacKenzie <djm@gnu.org>
1658
1659 * doc/bison.texinfo: *** empty log message ***
1660
1661 1993-09-13 Noah Friedman <friedman@gnu.org>
1662
1663 * Makefile.in: *** empty log message ***
1664
1665 1993-09-10 Richard Stallman <rms@gnu.org>
1666
1667 * src/conflicts.c: *** empty log message ***
1668
1669 * src/system.h: entered into RCS
1670
1671 1993-09-10 Richard Stallman <rms@gnu.org>
1672
1673 * doc/bison.1: entered into RCS
1674
1675 1993-09-06 Noah Friedman <friedman@gnu.org>
1676
1677 * src/version.c: entered into RCS
1678
1679 1993-09-06 Noah Friedman <friedman@gnu.org>
1680
1681 * Makefile.in: *** empty log message ***
1682
1683 1993-07-30 David J. MacKenzie <djm@gnu.org>
1684
1685 * Makefile.in: *** empty log message ***
1686
1687 1993-07-24 Richard Stallman <rms@gnu.org>
1688
1689 * src/bison.s1: *** empty log message ***
1690
1691 1993-07-24 Richard Stallman <rms@gnu.org>
1692
1693 * bison.simple: *** empty log message ***
1694
1695 1993-07-08 David J. MacKenzie <djm@gnu.org>
1696
1697 * Makefile.in: *** empty log message ***
1698
1699 1993-07-04 Richard Stallman <rms@gnu.org>
1700
1701 * src/bison.s1: *** empty log message ***
1702
1703 1993-07-04 Richard Stallman <rms@gnu.org>
1704
1705 * bison.simple: *** empty log message ***
1706
1707 1993-06-26 David J. MacKenzie <djm@gnu.org>
1708
1709 * src/getargs.c: entered into RCS
1710
1711 1993-06-26 David J. MacKenzie <djm@gnu.org>
1712
1713 * doc/bison.texinfo: *** empty log message ***
1714
1715 * doc/bison.1: New file.
1716
1717 1993-06-25 Richard Stallman <rms@gnu.org>
1718
1719 * src/getargs.c: New file.
1720
1721 1993-06-16 Richard Stallman <rms@gnu.org>
1722
1723 * src/bison.s1: *** empty log message ***
1724
1725 1993-06-16 Richard Stallman <rms@gnu.org>
1726
1727 * bison.simple: *** empty log message ***
1728
1729 1993-06-03 Richard Stallman <rms@gnu.org>
1730
1731 * src/bison.s1: New file.
1732
1733 1993-06-03 Richard Stallman <rms@gnu.org>
1734
1735 * doc/bison.texinfo: *** empty log message ***
1736
1737 1993-06-03 Richard Stallman <rms@gnu.org>
1738
1739 * bison.simple: New file.
1740
1741 1993-05-19 Richard Stallman <rms@gnu.org>
1742
1743 * doc/bison.texinfo: New file.
1744
1745 1993-05-07 Noah Friedman <friedman@gnu.org>
1746
1747 * Makefile.in: *** empty log message ***
1748
1749 1993-04-28 Noah Friedman <friedman@gnu.org>
1750
1751 * src/reader.c: *** empty log message ***
1752
1753 1993-04-23 Noah Friedman <friedman@gnu.org>
1754
1755 * src/alloc.h: entered into RCS
1756
1757 1993-04-20 David J. MacKenzie <djm@gnu.org>
1758
1759 * src/version.c: *** empty log message ***
1760
1761 * src/files.c, src/allocate.c:
1762 entered into RCS
1763
1764 * src/reader.c: *** empty log message ***
1765
1766 * src/lex.c: entered into RCS
1767
1768 * src/conflicts.c: New file.
1769
1770 * src/symtab.c: entered into RCS
1771
1772 * src/alloc.h: New file.
1773
1774 * src/LR0.c: entered into RCS
1775
1776 1993-04-18 Noah Friedman <friedman@gnu.org>
1777
1778 * src/reader.c: New file.
1779
1780 * src/version.c: *** empty log message ***
1781
1782 1993-04-18 Noah Friedman <friedman@gnu.org>
1783
1784 * Makefile.in: *** empty log message ***
1785
1786 1993-04-17 Noah Friedman <friedman@gnu.org>
1787
1788 * Makefile.in: *** empty log message ***
1789
1790 1993-04-15 Richard Stallman <rms@gnu.org>
1791
1792 * src/main.c, src/files.c:
1793 New file.
1794
1795 1993-04-15 Noah Friedman <friedman@gnu.org>
1796
1797 * configure.in: entered into RCS
1798
1799 * configure.in: *** empty log message ***
1800
1801 * configure.in: New file.
1802
1803 1993-04-14 Richard Stallman <rms@gnu.org>
1804
1805 * Makefile.in: New file.
1806
1807 1993-04-13 Richard Stallman <rms@gnu.org>
1808
1809 * src/version.c: New file.
1810
1811 1993-03-25 Richard Stallman <rms@gnu.org>
1812
1813 * src/output.c: entered into RCS
1814
1815 1992-09-25 Richard Stallman <rms@gnu.org>
1816
1817 * configure.bat: entered into RCS
1818
1819 1992-06-22 Richard Stallman <rms@gnu.org>
1820
1821 * src/vmsgetargs.c: entered into RCS
1822
1823 1992-06-22 Richard Stallman <rms@gnu.org>
1824
1825 * doc/bison.rnh: entered into RCS
1826
1827 1992-04-20 David J. MacKenzie <djm@gnu.org>
1828
1829 * README: entered into RCS
1830
1831 1992-01-22 Richard Stallman <rms@gnu.org>
1832
1833 * src/machine.h: entered into RCS
1834
1835 1991-12-21 Richard Stallman <rms@gnu.org>
1836
1837 * src/lalr.c, src/closure.c:
1838 entered into RCS
1839
1840 1991-12-20 Richard Stallman <rms@gnu.org>
1841
1842 * src/state.h: entered into RCS
1843
1844 1991-12-18 Richard Stallman <rms@gnu.org>
1845
1846 * src/print.c, src/nullable.c, src/derives.c:
1847 entered into RCS
1848
1849 1991-11-03 David J. MacKenzie <djm@gnu.org>
1850
1851 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1852 entered into RCS
1853
1854 1988-09-09 Richard Stallman <rms@gnu.org>
1855
1856 * src/bison.hairy: entered into RCS
1857
1858 1987-12-16 Richard Stallman <rms@gnu.org>
1859
1860 * REFERENCES: entered into RCS