]> git.saurik.com Git - bison.git/blame - ChangeLog
For some reasons, this has not been applied.
[bison.git] / ChangeLog
CommitLineData
d1cdce7c
AD
12000-11-03 Akim Demaille <akim@epita.fr>
2
3 For some reasons, this has not been applied.
4
5 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
6 `unlink': it's no longer used.
7
9311529b
AD
82000-11-03 Akim Demaille <akim@epita.fr>
9
10 * src/files.c (skeleton_find): New function, eved out of...
11 (open_files, open_extra_files): here.
12
d8880f69
AD
132000-11-03 Akim Demaille <akim@epita.fr>
14
15 Don't use `atexit'.
16
17 * src/files.c (obstack_save): New function.
18 (done): Rename as...
19 (output_files): this.
20 Use `obstack_save'.
21 * src/main.c (main): Don't use `atexit' to register `done', since
22 it no longer has to remove tmp files, just call `output_files'
23 when there are no errors.
24
0dbb648e
AD
252000-11-02 Akim Demaille <akim@epita.fr>
26
27 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
28 `unlink': it's no longer used.
29 * src/files.h: Formatting changes.
30
896fe5c1
AD
312000-11-02 Akim Demaille <akim@epita.fr>
32
33 Remove the last uses of mktemp and unlink/delete.
34
35 * src/files.c (fdefines, ftable): Removed.
36 (defines_ostack, table_obstack): New.
37 Adjust dependencies of the former into uses of the latter.
38 * src/output.c (output_short_or_char_table, output_short_table):
39 Convert to using obstacks.
40 * src/reader.c (copy_comment2): Accept one FILE * and two
41 obstacks.
42 (output_token_defines, reader_output_yylsp): Use obstacks.
43 * src/system.h (obstack_fgrow3): New.
44
dd60faec
AD
452000-11-01 Akim Demaille <akim@epita.fr>
46
47 Change each use of `fattrs' into a use of `attrs_obstack'.
48
49 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
50 * src/files.c (fattrs): Remove.
51 (attrs_obstack): New.
52 Adjust all dependencies.
53 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
54
8c7ebe49
AD
552000-11-01 Akim Demaille <akim@epita.fr>
56
57 Introduce obstacks.
58 Change each use of `faction' into a use of `action_obstack'.
59
60 * lib/obstack.h, lib/obstack.c: New files.
61 * src/files.c (faction): Remove.
62 (action_obstack): New.
63 Adjust all dependencies.
64
77aee789
AD
652000-10-20 Akim Demaille <akim@epita.fr>
66
67 * lib/quote.h (PARAMS): New macro. Use it.
68
43591cec
AD
692000-10-16 Akim Demaille <akim@epita.fr>
70
71 * src/output.c (output_short_or_char_table): New function.
72 (output_short_table, output_token_translations): Use it.
73 (goto_actions): Use output_short_table.
74
1e9798d5
AD
752000-10-16 Akim Demaille <akim@epita.fr>
76
77 * src/symtab.c (bucket_new): New function.
78 (getsym): Use it.
79
80 * src/output.c (output_short_table): New argument to display the
81 comment associated with the table.
82 Adjust dependencies.
83 (output_gram): Use it.
84 (output_rule_data): Nicer output layout for YYTNAME.
85
f282676b
AD
862000-10-16 Akim Demaille <akim@epita.fr>
87
88 * src/lex.c (read_typename): New function.
89 (lex): Use it.
90 * src/reader.c (copy_dollar): Likewise.
91
550a72a3
AD
922000-10-16 Akim Demaille <akim@epita.fr>
93
94 * src/reader.c (copy_comment2): Expect the input stream to be on
95 the `/' which is suspected to open a comment, instead of being
96 called after `//' or `/*' was read.
97 (copy_comment, copy_definition, parse_union_decl, copy_action)
98 (copy_guard): Adjust.
99
131e2fef
AD
1002000-10-16 Akim Demaille <akim@epita.fr>
101
102 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
103 `read_signed_integer'.
104
79282c5a
AD
1052000-10-16 Akim Demaille <akim@epita.fr>
106
107 * src/reader.c (copy_dollar): New function.
108 (copy_guard, copy_action): Use it.
109
ff4a34be
AD
1102000-10-16 Akim Demaille <akim@epita.fr>
111
112 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
113 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
114 New files, from Fileutils 4.0.27.
115 * src/main.c (printable_version): Remove.
116 * src/lex.c, src/reader.c: Use `quote'.
117
1182000-10-04 Akim Demaille <akim@epita.fr>
119
120 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
121
14ded682
AD
1222000-10-04 Akim Demaille <akim@epita.fr>
123
124 * doc/bison.texinfo: Various typos spotted by Neil Booth.
125
8e03724b
AD
1262000-10-04 Akim Demaille <akim@epita.fr>
127
128 When a literal string is used to define two different tokens,
129 `bison -v' segfaults.
130 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
131
132 * tests/regression.m4: New file.
133 Include the core of the sample provided by Piotr Gackiewicz.
134 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
135 properly.
136
a9e64249
AD
1372000-10-04 Akim Demaille <akim@epita.fr>
138
139 * src/reader.c (parse_expect_decl): Keep `count' within the size
140 of `buffer'.
141 From Neil Booth.
142
da9abf43
AD
1432000-10-02 Paul Eggert <eggert@twinsun.com>
144
145 * bison.s1 (yyparse): Assign the default value
146 unconditionally, to avoid a GCC warning and make the parser a
147 tad smaller.
148
c33638bb
AD
1492000-10-02 Akim Demaille <akim@epita.fr>
150
151 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
152 options.
153
444c570a
AD
1542000-10-02 Akim Demaille <akim@epita.fr>
155
156 * src/derives.c, src/print.c, src/reduce.c: To ease the
157 translation, move some `\n' out of the translated strings.
158
89cab50d
AD
1592000-10-02 Akim Demaille <akim@epita.fr>
160
161 The location tracking mechanism is precious for parse error
162 messages. Nevertheless, it is enabled only when `@n' is used in
163 the grammar, which is a different issue (you can use it in error
164 message, but not in the grammar per se). Therefore, there should
165 be another means to enable it.
166
167 * src/getargs.c (getargs): Support `--locations'.
168 (usage): Report it.
169 * src/getargs.h (locationsflag): Export it.
170 * src/lex.c (percent_table): Support `%locations'.
171 * src/reader.c (yylsp_needed): Remove this variable, now replaced
172 with `locationsflag'.
173 * doc/bison.texinfo: Document `--locations' and `%locations'.
174 Sort the options.
175 * tests/calc.m4: Test it.
176
177 For regularity of the names, replace each
178 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
179 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
180 In addition replace each `flag' with `_flag'.
181
d6c2cba0
AD
1822000-10-02 Akim Demaille <akim@epita.fr>
183
184 Also test parse error messages, including with YYERROR_VERBOSE.
185
186 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
187 associative).
188 Use it to check the computations.
189 Use it to check `nonassoc' is honored.
190 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
191 `--yyerror-verbose'.
192 (_AT_CHECK_CALC): Adjust to this option.
193 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
194
5a35a6cb
AD
1952000-10-02 Akim Demaille <akim@epita.fr>
196
197 Test also `--verbose', `--defines' and `--name-prefix'. Testing
198 the latter demonstrates a flaw in the handling of non debugging
199 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
200 was used in order to simplify:
201
202 #if YYDEBUG
203 if (yydebug)
204 {
205 ...
206 }
207 #endif
208
209 into
210
211 if (yydebug)
212 {
213 ...
214 }
215
216 unfortunately this leads to a CPP conflict when
217 `--name-prefix=foo' is used since it produces `#define yydebug
218 foodebug'.
219
220 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
221 (YYDPRINTF): New macro.
222 Spread its use.
223 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
224 the bison options.
225 Also test `--verbose', `--defines' and `--name-prefix'.
226
71da9eea
AD
2272000-10-02 Akim Demaille <akim@epita.fr>
228
229 Improve the readability of the produced parsers.
230
231 * src/bison.s1: Formatting changes.
232 Improve the comment related to the `$' mark.
233 (yydefault): Don't fall through to `yyresume': `goto' there.
234 * src/output.c (output_parser): When the `$' is met, skip the end
235 of its line.
236 New variable, `number_of_dollar_signs', to check there's exactly
237 one `$' in the parser skeleton.
238
95e36146
AD
2392000-10-02 Akim Demaille <akim@epita.fr>
240
241 * lib/xstrdup.c: New file, from the fileutils.
242 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
243 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
244 instead of strlen + xmalloc + strcpy.
245 * src/symtab.c (copys): Remove, use xstrdup instead.
246
d7020c20
AD
2472000-10-02 Akim Demaille <akim@epita.fr>
248
249 * src/gram.h (associativity): New enum type which replaces the
250 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
251 `right_assoc', `left_assoc' and `non_assoc'.
252 Adjust all dependencies.
253 * src/reader.c: Formatting changes.
254 (LTYPESTR): Don't define it, use it as a literal in
255 `reader_output_yylsp'.
256 * src/symtab.h (symbol_class): New enum type which replaces the
257 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
258 `sunknown', `stoken and `snterm'.
259
1916f98e
AD
2602000-10-02 Akim Demaille <akim@epita.fr>
261
262 * src/getargs.c (fixed_outfiles): Rename as...
263 (yaccflag): for consistency and accuracy.
264 Adjust dependencies.
265
d7913476
AD
2662000-10-02 Akim Demaille <akim@epita.fr>
267
268 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
269 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
270 difficult and introduced a lot of core dump. It turns out that
271 Bison used an implementation of `xmalloc' based on `calloc', and
272 at various places it does depend upon the initialization to 0. I
273 have not tried to isolate the pertinent places, and all the former
274 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
275 someone should address this issue.
276
277 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
278 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
279 files.
280 Adjust dependencies.
281 * src/warshall.h: New file.
282 Propagate.
283
340ef489
AD
2842000-10-02 Akim Demaille <akim@epita.fr>
285
286 Various anti-`extern in *.c' changes.
287
288 * src/system.h: Include `assert.h'.
289
b2ca4022
AD
2902000-10-02 Akim Demaille <akim@epita.fr>
291
292 * src/state.h (nstates, final_state, first_state, first_shift)
293 (first_reduction): Move their exportation from here...
294 * src/LR0.h: to here.
295 Adjust dependencies.
296 * src/getargs.c (statisticsflag): New variable.
297 Add support for `--statistics'.
298 Adjust dependencies.
299
300 Remove a lot of now useless `extern' statements in most files.
301
403b315b
AD
3022000-10-02 Akim Demaille <akim@epita.fr>
303
304 * src/LR0.h: New file.
305 Propagate its use.
306
07a58c13
AD
3072000-10-02 Akim Demaille <akim@epita.fr>
308
309 * src/print.h: New file.
310 Propagate its use.
311 * src/print.c: Formatting and ordering changes.
312 (verbose, terse): Replace with...
313 (print_results): this new function.
314 Adjust dependencies.
315
0619caf0
AD
3162000-10-02 Akim Demaille <akim@epita.fr>
317
318 * src/conflicts.c (conflict_report): New function.
319 (conflict_log, verbose_conflict_log): Replace with...
320 (print_conflicts): this function.
321 Adjust dependencies.
322 * src/conflicts.h: New file.
323 Propagate its inclusion.
324
3519ec76
AD
3252000-10-02 Akim Demaille <akim@epita.fr>
326
327 * src/nullable.h: New file.
328 Propagate its inclusion.
329 * src/nullable.c: Formatting changes.
330
015acc48
AD
3312000-10-02 Akim Demaille <akim@epita.fr>
332
333 * src/reduce.h: New file.
334 Propagate its inclusion.
335 * src/reduce.c: Topological sort and other formatting changes.
336 (bool, TRUE, FALSE): Move their definition to...
337 * src/system.h: here.
338
8963a27b
AD
3392000-10-02 Akim Demaille <akim@epita.fr>
340
341 * src/files.c: Formatting changes.
342 (tryopen, tryclose, openfiles): Rename as...
343 (xfopen, xfclose, open_files): this.
344 (stringappend): static.
345 * src/files.h: Complete the list of exported symbols.
346 Propagate its use.
347
a70083a3
AD
3482000-10-02 Akim Demaille <akim@epita.fr>
349
350 * src/reader.h: New file.
351 Propagate its use instead of tedious list of `extern' and
352 prototypes.
353 * src/reader.c: Formatting changes, topological sort,
354 s/register//.
355
abadc117
AD
3562000-10-02 Akim Demaille <akim@epita.fr>
357
358 * src/lex.h: Prototype `lex.c' exported functions.
359 * src/reader.c: Adjust.
360 * src/lex.c: Formatting changes.
361 (safegetc): Rename as...
362 (xgetc): this.
363
720d742f
AD
3642000-10-02 Akim Demaille <akim@epita.fr>
365
366 * src/lalr.h: New file.
367 Propagate its inclusion instead of prototypes and `extern'.
368 * src/lalr.c: Formatting changes, topological sorting etc.
369
f2acea59
AD
3702000-10-02 Akim Demaille <akim@epita.fr>
371
372 * src/output.c (token_actions): Introduce a temporary array,
373 YYDEFACT, that makes it possible for this function to use
374 output_short_table.
375
d019d655
AD
3762000-10-02 Akim Demaille <akim@epita.fr>
377
378 `user_toknums' is output as a `short[]' in `output.c', while it is
379 defined as a `int[]' in `reader.c'. For consistency with the
380 other output tables, `user_toknums' is now defined as a table of
381 shorts.
382
383 * src/reader.c (user_toknums): Be a short table instead of an int
384 table.
385 Adjust dependencies.
386
387 Factor the short table outputs.
388
389 * src/output.c (output_short_table): New function.
390 * src/output.c (output_gram, output_stos, output_rule_data)
391 (output_base, output_table, output_check): Use it.
392
6c89f1c1
AD
3932000-10-02 Akim Demaille <akim@epita.fr>
394
395 * src/output.c (output): Topological sort of the functions, in
396 order to get rid of the `static' prototypes.
397 No longer use `register'.
398 * src/output.h: New file.
399 Propagate its inclusion in files explicitly prototyping functions
400 from output.c.
401
d9efd181
AD
4022000-09-21 Akim Demaille <akim@epita.fr>
403
404 * src/atgeneral.m4: Update from Autoconf.
405
c29240e7 4062000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
407
408 * src/closure.h: New file.
409 * src/closure.c: Formatting changes, topological sort over the
410 functions, use of closure.h.
411 (initialize_closure, finalize_closure): Rename as...
412 (new_closure, free_closure): these. Adjust dependencies.
413 * src/LR0.c: Formatting changes, topological sort, use of
414 cloture.h.
415 (initialize_states): Rename as...
416 (new_states): this.
417 * src/Makefile.am (noinst_HEADERS): Adjust.
418
499daa50
AD
4192000-09-20 Akim Demaille <akim@epita.fr>
420
421 * src/acconfig.h: Don't protect config.h against multiple
422 inclusion.
423 Don't define PARAMS.
424 * src/system.h: Define PARAMS.
425 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
426 purpose of config.h. system.h must not try to fix wrong
427 definitions in config.h.
428
cc84fd5d
AD
4292000-09-20 Akim Demaille <akim@epita.fr>
430
431 * src/derives.h: New file.
432 * src/main.c, src/derives.h: Use it.
433 Formatting changes.
434 * src/Makefile.am (noinst_HEADERS): Adjust.
435
db5b3a89
AD
4362000-09-20 Akim Demaille <akim@epita.fr>
437
438 * tests/atgeneral.m4: Update from Autoconf.
439 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
440 (AT_CHECK_CALC): New macros.
441 Use these macros to test bison with options `', `--raw',
442 `--debug', `--yacc', `--yacc --debug'.
443
ceed8467
AD
4442000-09-19 Akim Demaille <akim@epita.fr>
445
446 * src/output.c: Formatting changes.
447 * src/machine.h: Remove, leaving its contents in...
448 * src/system.h: here.
449 Include stdio.h.
450 Adjust all dependencies on stdio.h and machine.h.
451 * src/getargs.h: New file.
452 Let all `extern' declarations about getargs.c be replaced with
453 inclusion of `getargs.h'.
454 * src/Makefile.am (noinst_HEADERS): Adjust.
455
456 * tests/calc.m4 (yyin): Be initialized in main, not on the global
457 scope.
458 (yyerror): Returns void, not int.
459 * doc/bison.texinfo: Formatting changes.
460
05a1d24b
AD
4612000-09-19 Akim Demaille <akim@epita.fr>
462
463 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
464 portable.
465
cbd25751
AD
4662000-09-18 Akim Demaille <akim@epita.fr>
467
468 * configure.in: Append WARNING_CFLAGS to CFLAGS.
469 * src/Makefile.am (INCLUDES): Don't.
470 Be ready to fetch headers in lib/.
471
13863333
AD
4722000-09-18 Akim Demaille <akim@epita.fr>
473
474 * doc/bison.texinfo: Update the copyright.
475 ANSIfy and GNUify the examples.
476 Remove the old menu.
477
0d533154
AD
4782000-09-18 Akim Demaille <akim@epita.fr>
479
480 First set of tests: use the `calc' example from the documentation.
481
482 * src/bison.s1 (yyparse): Condition the code using `yytname' which
483 is defined only when YYDEBUG is.
484 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
485 * src/files.c (tryopen, tryclose): Formatting changes.
486 Move to the top and be static.
487 * src/reader.c (read_signed_integer): Likewise.
488 * tests/calc.m4: New file.
489 * Makefile.am, suite.m4: Adjust.
490 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
491
e79137ac
AD
4922000-09-18 Akim Demaille <akim@epita.fr>
493
494 Add support for an Autotest test suite for Bison.
495
496 * m4/m4.m4, m4/atconfig.m4: New files.
497 * m4/Makefile.am (EXTRA_DIST): Adjust.
498 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
499 files.
500 * src/getargs.c: Display a more standard --version message.
501 * src/reader.c (reader): Formatting changes.
502 No longer depend upon VERSION_STRING.
503 * configure.in: No longer use `dnl'.
504 Set up the test suite and the new directory `tests/.
505 (VERSION_STRING): Remove.
506
27821bff
AD
5072000-04-14 Akim Demaille <akim@epita.fr>
508
509 * src/reader.c (copy_comment2): New function, same as former
510 `copy_comment', but outputs into two FILE *.
511 (copy_comment): Use it.
512 (parse_union_decl): Use it.
513 (get_type, parse_start_decl): Use the same `invalid' message.
514 (parse_start_decl, parse_union_decl): Use the same `multiple'
515 message.
516 (parse_union_decl, copy_guard, copy_action): Use the same
517 `unmatched' message.
518 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
519
cfe5fbc0
AD
5202000-03-31 Akim Demaille <akim@epita.fr>
521
522 * src/files.c (tryopen, tryclose): Move to the top.
523 Be static.
524
cb7db13e
AD
5252000-03-31 Akim Demaille <akim@epita.fr>
526
527 * src/main.c (main): Don't call `done', exit does it.
528
a0f6b076
AD
5292000-03-31 Akim Demaille <akim@epita.fr>
530
36281465
AD
531 * allocate.c: s/return (foo)/return foo/.
532 * lalr.c: Likewise.
533 * LR0.c: Likewise.
534 * output.c: Likewise.
535 * reader.c: Likewise.
536 * symtab.c: Likewise.
537 * vmsgetargs.c: Likewise.
538
5392000-03-31 Akim Demaille <akim@epita.fr>
540
541 Clean up the error reporting functions.
a0f6b076
AD
542
543 * src/report.c: New file.
544 * src/report.h: Likewise.
545 * src/Makefile.am: Adjust.
546 * m4/error.m4: New file.
547 * m4/Makefile.am: Adjust.
548 * configure.in (jm_PREREQ_ERROR): Call it.
549 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
550 Remove.
551 (fatal, fatals): Remove. All callers use complain.c::fatal.
552 (warn, warni, warns, warnss, warnss): Remove. All callers use
553 complain.c::complain.
554 (toomany): Remove, use fatal instead.
555 * src/files.c (done): No argument, use complain_message_count.
556 * src/main.c (main): Register `done' to `atexit'.
557
558 * src/getargs.c (usage): More `fputs', less `fprintf'.
559
18539825
AD
5602000-03-28 Akim Demaille <akim@epita.fr>
561
562 * lib/: New directory.
563 * Makefile.am (SUBDIRS): Adjust.
564 * configure.in: Adjust.
565 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
566 useless.
567 * src/alloca.c: Moved to lib/.
568 * src/getopt.c: Likewise.
569 * src/getopt1.c: Likewise.
570 * src/getopt.h: Likewise.
571 * src/ansi2knr.c: Likewise.
572 * src/ansi2knr.1: Likewise.
573 * src/Makefile.am: Adjust.
574 * lib/Makefile.am: New file.
575
9f306f2a
AD
5762000-03-28 Akim Demaille <akim@epita.fr>
577
578 * src/getargs.c (usage): Refresh the help message.
579
0ba347b6
AD
5802000-03-17 Akim Demaille <akim@epita.fr>
581
582 * src/getopt1.c: Updated from textutils 2.0e
583 * src/getopt.c: Likewise.
584 * src/getopt.h: Likewise.
585
dbe7f271
AD
5862000-03-17 Akim Demaille <akim@epita.fr>
587
588 * src/Makefile.am (bison.simple): Fix the awk program: quote only
589 the file name, not the whole `#line LINE FILE'.
590
75bbe78d
AD
5912000-03-17 Akim Demaille <akim@epita.fr>
592
593 On syntax errors, report the token on which we choked.
594
aa5fd0ee
AD
595 * src/bison.s1 (yyparse): In the label yyerrlab, when
596 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 597
7b306f52
AD
5982000-03-17 Akim Demaille <akim@epita.fr>
599
aa5fd0ee 600 * src/reader.c (copy_at): New function.
7b306f52
AD
601 (copy_guard): Use it.
602 (copy_action): Use it.
603
e87b5700
AD
6042000-03-17 Akim Demaille <akim@epita.fr>
605
606 Be kind to translators, save some useless translations.
607
aa5fd0ee 608 * src/main.c (banner): New function.
e87b5700
AD
609 (fatal_banner): Use it.
610 (warn_banner): Use it.
611
ae3c3164
AD
6122000-03-17 Akim Demaille <akim@epita.fr>
613
aa5fd0ee
AD
614 * src/reader.c (copy_definition): Use copy_string and
615 copy_comment. Removed now unused `match', `ended',
616 `cplus_comment'.
ae3c3164
AD
617 (copy_comment, copy_string): Moved, to be visible from
618 copy_definition.
619
4dc58e7c
AD
6202000-03-17 Akim Demaille <akim@epita.fr>
621
aa5fd0ee
AD
622 * src/reader.c (copy_string): Declare `static inline'. No
623 problems with inline, since it is checked by configure.
4dc58e7c
AD
624 (copy_comment): Likewise.
625
0a6384c4
AD
6262000-03-17 Akim Demaille <akim@epita.fr>
627
aa5fd0ee 628 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 629
3cef001a
AD
6302000-03-17 Akim Demaille <akim@epita.fr>
631
aa5fd0ee 632 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
633 (copy_action): Use it. Removed now unused `match', `ended',
634 `cplus_comment'.
635 (copy_guard): Likewise.
636
ca36d2ef
AD
6372000-03-17 Akim Demaille <akim@epita.fr>
638
aa5fd0ee 639 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
640 (copy_action): Use it.
641 (copy_guard): Likewise.
642
6666f98f
AD
6432000-03-17 Akim Demaille <akim@epita.fr>
644
645 Change the handling of @s so that they behave exactly like $s.
646 There is now a pseudo variable @$ (readble and writable), location
647 of the lhs of the rule (by default ranging from the location of
648 the first symbol of the rhs, to the location of the last symbol,
649 or, if the rhs is empty, YYLLOC).
650
651 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
652 yyval.
653 (yyparse): When providing a default semantic action, provide a
654 default location action.
655 (after the $): No longer change `*YYLSP', just stack YYLOC the
656 same way you stack YYVAL.
657 * src/reader.c (read_declarations): Use warns.
658 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
659 (copy_action, case '@'): Likewise.
660 Use a standard error message, to save useless work from
661 translators.
662
41aca2e0
AD
6632000-03-17 Akim Demaille <akim@epita.fr>
664
aa5fd0ee
AD
665 * src/bison.s1: Formatting and cosmetics changes.
666 * src/reader.c: Likewise.
41aca2e0
AD
667 Update the Copyright notice.
668
dc08c1d5
AD
6692000-03-17 Akim Demaille <akim@epita.fr>
670
aa5fd0ee
AD
671 * src/bison.s1 (#line): All set to `#line' only, since the
672 Makefile now handles them.
dc08c1d5 673
9ee3c97b
AD
6742000-03-16 Akim Demaille <akim@epita.fr>
675
676 * src/output.c (output_rule_data): Output the documentation of
677 some of the tables.
678 (Copyright notice): Update.
679 Formatting changes.
680
0de741ca
AD
6812000-03-16 Akim Demaille <akim@epita.fr>
682
683 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
684 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
685 One `#if YYDEBUG' remains, since it uses variables which are
686 defined only if `YYDEBUG != 0'.
687
bb10be54
AD
6882000-03-16 Akim Demaille <akim@epita.fr>
689
690 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
691 and related variables so that the similarities are highlighted.
692
b07b484a
AD
6932000-03-16 Akim Demaille <akim@epita.fr>
694
695 * src/bison.s1: Properly indent CPP directives.
696
361f60b3
AD
6972000-03-16 Akim Demaille <akim@epita.fr>
698
699 * src/bison.s1: Properly indent the `alloca' CPP section.
700
8c44d3ec
AD
7012000-03-16 Akim Demaille <akim@epita.fr>
702
703 Do not hard code values of directories in `configure.in'.
704 Update the `configure' tool chain.
705
706 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
707 src/makefile.am.
708 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
709 (AC_OUTPUT): Add m4/Makefile.
710 Bump to bison 1.28a, 1.29 has never been released.
711 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
712 handled via src/Makefile.am.
713 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
714 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
715 autoheader.
716 * Makefile.am (SUBDIRS): Add m4.
717 (ACLOCAL_AM_FLAGS): New variable.
718 (AUTOMAKE_OPTIONS): Add check-news.
719 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
720 the proper line number and file name.
721 (DEFS): Propagate the location of bison library files and of the
722 locale files.
723 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
724 builddir.
725 * acinclude.m4: Remove, replaced by the directory m4.
726 * m4/Makefile.am (EXTRA_DIST): New variable.
727 * m4/gettext.m4: New file, from the fileutils.
728 * m4/lcmessage.m4: Likewise
729 * m4/progtest.m4: Likewise.
730 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
731
f95997e7
AD
7322000-03-10 Akim Demaille <akim@epita.fr>
733
734 * src/closure.c:
735 Formatting changes of various comments.
736 Respect the GNU coding standards at various places.
737 Don't use `_()' when no translation is needed.
738
7391999-12-13 Jesse Thilo <jthilo@gnu.org>
740
741 * src/files.c:
742 OS/2 honors TMPDIR environment variable.
743
7441999-12-13 Jesse Thilo <jthilo@gnu.org>
745
746 * doc/bison.texinfo: Tweaked spelling and grammar.
747 Updated ISBN.
748 Removed reference to price of printed copy.
749 Mention BISON_SIMPLE and BISON_HAIRY.
750
7511999-12-13 Jesse Thilo <jthilo@gnu.org>
752
753 * configure.in, NEWS:
754 Bison 1.29 released.
755
7561999-10-27 Jesse Thilo <jthilo@gnu.org>
757
758 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
759 Added reference card.
760
7611999-07-26 Jesse Thilo <jthilo@gnu.org>
762
763 * po/ru.po: Added Russian translation.
764
7651999-07-26 Jesse Thilo <jthilo@gnu.org>
766
767 * configure.in: Added Russian translation.
768
7691999-07-06 Jesse Thilo <jthilo@gnu.org>
770
771 * configure.in, NEWS, README:
772 Released version 1.28.
773
7741999-06-14 Jesse Thilo <jthilo@gnu.org>
775
776 * src/system.h:
777 Squashed redefinition warning on some systems.
778
779 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
780 Have configure build version string instead of relying on ANSI string
781 concatentation.
782
7831999-06-14 Jesse Thilo <jthilo@gnu.org>
784
785 * po/POTFILES.in: Got rid of version.c.
786
7871999-06-14 Jesse Thilo <jthilo@gnu.org>
788
789 * acconfig.h, configure.in:
790 Have configure build version string instead of relying on ANSI string
791 concatentation.
792
7931999-06-08 Jesse Thilo <jthilo@gnu.org>
794
795 * doc/bison.1:
796 Dropped mention of `+' for long-named options.
797
7981999-05-30 Jesse Thilo <jthilo@gnu.org>
799
800 * src/files.c: Added <unistd.h> for unlink().
801
802 * src/Makefile.am, src/system.h:
803 I18n fixes.
804
8051999-05-30 Jesse Thilo <jthilo@gnu.org>
806
807 * README: Added a FAQ list.
808
809 * configure.in, acconfig.h:
810 I18n fixes.
811
8121999-05-30 Jesse Thilo <jthilo@gnu.org>
813
814 * doc/FAQ, doc/Makefile.am:
815 Added a FAQ list.
816
8171999-05-19 Jesse Thilo <jthilo@gnu.org>
818
819 * src/alloc.h, src/symtab.h, src/version.c:
820 Protected inclusion of "config.h" with HAVE_CONFIG_H.
821
8221999-04-18 Jesse Thilo <jthilo@gnu.org>
823
824 * src/.cvsignore, src/Makefile.am:
825 Reorganized: sources in `src', documentation in `doc'.
826
827 * src/lex.c (literalchar):
828 fixed the code for escaping double quotes (thanks
829 Jonathan Czisny.)
830
8311999-04-18 Jesse Thilo <jthilo@gnu.org>
832
833 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
834 Adjusted paths to reflect directory reorganization.
835
8361999-04-18 Jesse Thilo <jthilo@gnu.org>
837
838 * doc/.cvsignore, doc/Makefile.am:
839 Reorganized: sources in `src', documentation in `doc'.
840
8411999-04-18 Jesse Thilo <jthilo@gnu.org>
842
843 * configure.in:
844 Updated AC_INIT file to reflect directory reorganization.
845
846 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
847 Reorganized: sources in `src', documentation in `doc'.
848
8491999-04-13 Jesse Thilo <jthilo@gnu.org>
850
851 * src/allocate.c:
852 Don't declare calloc() and realloc() if not necessary.
853
8541999-04-13 Jesse Thilo <jthilo@gnu.org>
855
856 * configure.in, acconfig.h, acinclude.m4:
857 Don't declare calloc() and realloc() if not necessary.
858
8591999-03-23 Jesse Thilo <jthilo@gnu.org>
860
861 * po/.cvsignore: Added i18n support.
862
8631999-03-23 Jesse Thilo <jthilo@gnu.org>
864
865 * acconfig.h, configure.in, Makefile.am:
866 Added i18n support.
867
8681999-03-22 Jesse Thilo <jthilo@gnu.org>
869
870 * src/bison.s1: Fixed #line numbers.
871
8721999-03-15 Jesse Thilo <jthilo@gnu.org>
873
874 * po/es.po, po/fr.po, po/nl.po, po/de.po:
875 Added PO files from Translation Project.
876
8771999-03-03 Jesse Thilo <jthilo@gnu.org>
878
879 * Makefile.am:
880 Added support for non-ANSI compilers (ansi2knr).
881
8821999-02-16 Jesse Thilo <jthilo@gnu.org>
883
884 * configure.in: Bumped version number to 1.27.
885
886 * Makefile.am:
887 Added `bison.simple' to list of files removed by `make distclean'.
888
8891999-02-12 Jesse Thilo <jthilo@gnu.org>
890
891 * src/files.c, src/files.h:
892 Defined locations of parser files in config.h instead of Makefile.
893
8941999-02-12 Jesse Thilo <jthilo@gnu.org>
895
896 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
897 Defined locations of parser files in config.h instead of Makefile.
898
8991999-02-09 Jesse Thilo <jthilo@gnu.org>
900
901 * Makefile.am:
902 Removed inappropriate use of $< macro.
903
9041999-02-05 Jesse Thilo <jthilo@gnu.org>
905
906 * po/Makefile.in.in, po/POTFILES.in:
907 Add `po' directory skeleton.
908
9091999-01-27 Jesse Thilo <jthilo@gnu.org>
910
911 * README: Document help-bison list.
912
913 * configure.in: Add check for mkstemp().
914
9151999-01-20 Jesse Thilo <jthilo@gnu.org>
916
917 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
918 Hush a few compiler warnings.
919
920 * src/files.c:
921 Add tryclose(), which verifies that fclose was successful.
922 Hush a couple of compiler warnings.
923
9241999-01-20 Jesse Thilo <jthilo@gnu.org>
925
926 * Makefile.am, OChangeLog:
927 ChangeLog is now automatically generated. Include the old version as
928 OChangeLog.
929
9301999-01-14 Jesse Thilo <jthilo@gnu.org>
931
932 * 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:
933 Update FSF address.
934
9351999-01-14 Jesse Thilo <jthilo@gnu.org>
936
937 * doc/bison.texinfo: Fix formatting glitch.
938
939 * doc/bison.texinfo: Update FSF address.
940
9411999-01-14 Jesse Thilo <jthilo@gnu.org>
942
943 * acconfig.h: Update FSF address.
944
9451999-01-08 Jesse Thilo <jthilo@gnu.org>
946
947 * src/system.h:
948 Don't define PACKAGE here, since config.h defines it.
949
9501998-12-30 Jesse Thilo <jthilo@gnu.org>
951
952 * src/reader.c: Update copyright date.
953
954 * src/main.c:
955 Ditch sprintf to statically-sized buffers in fatal/warn functions in
956 favor of output directly to stderr (avoids buffer overruns).
957
958 * src/reader.c: Some checks for premature EOF.
959
960 * 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:
961 Use prototypes if the compiler understands them.
962
963 * src/files.c: Honor TMPDIR on Unix hosts.
964 Use prototypes if the compiler understands them.
965
966 * src/reader.c:
967 Fix a couple of buffer overrun bugs.
968 Use prototypes if the compiler understands them.
969
970 * src/system.h: Include unistd.h and ctype.h.
971 Use #ifdef instead of #if for NLS symbols.
972
9731998-12-30 Jesse Thilo <jthilo@gnu.org>
974
975 * doc/bison.texinfo:
976 Delete comment "consider using @set for edition number, etc..." since
977 we now are doing so.
978
9791998-12-30 Jesse Thilo <jthilo@gnu.org>
980
981 * configure.in:
982 Use prototypes if the compiler understands them.
983
984 * NEWS: Document 1.26 highlights.
985
986 * Makefile.am: Require Automake 1.3 or later.
987
988 * acconfig.h:
989 Use prototypes if the compiler understands them.
990
9911998-12-29 Jesse Thilo <jthilo@gnu.org>
992
993 * src/version.c:
994 Use VERSION symbol from automake for version number.
995
9961998-12-29 Jesse Thilo <jthilo@gnu.org>
997
998 * acconfig.h, configure.in, version.cin:
999 Use VERSION symbol from automake for version number.
1000
10011998-11-28 Jesse Thilo <jthilo@gnu.org>
1002
1003 * Makefile.am:
1004 Distribute original version of simple parser (bison.s1), not built
1005 version (bison.simple).
1006
10071998-11-28 Jesse Thilo <jthilo@gnu.org>
1008
1009 * doc/bison.texinfo: Add info dir entry.
1010
1011 * doc/bison.texinfo:
1012 Let automake put version number into documentation.
1013
10141998-11-26 Jesse Thilo <jthilo@gnu.org>
1015
1016 * src/bison.cld, src/build.com, src/vmshlp.mar:
1017 Add non-RCS files from /gd/gnu/bison.
1018
10191998-11-26 Jesse Thilo <jthilo@gnu.org>
1020
1021 * doc/bison.1:
1022 Document the BISON_HAIRY and BISON_SIMPLE variables.
1023
10241998-11-25 Jesse Thilo <jthilo@gnu.org>
1025
1026 * src/version.c: Build version.c automatically.
1027
1028 * src/reader.c:
1029 Fix token numbering (used to start at 258, not 257).
1030
1031 * src/system.h: Include config.h.
1032
1033 * src/getargs.c: Update bug report address.
1034
1035 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1036 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1037
10381998-11-25 Jesse Thilo <jthilo@gnu.org>
1039
1040 * Makefile.am:
1041 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1042
1043 * configure.in, version.cin:
1044 Build version.c automatically.
1045
1046 * AUTHORS: Add AUTHORS file.
1047
1048 * README: Update bug report address.
1049
1050 * bison.simple:
1051 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1052
1053 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1054 Add automake stuff.
1055
10561998-11-25 Jesse Thilo <jthilo@gnu.org>
1057
1058 * doc/bison.texinfo: Clean up some formatting.
1059
10601998-05-05 Richard Stallman <rms@gnu.org>
1061
1062 * doc/bison.texinfo:
1063 Explain better why to make a pure parser.
1064
10651998-01-05 Richard Stallman <rms@gnu.org>
1066
1067 * src/files.c (openfiles):
1068 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1069 find a temporary directory, if possible. Do not unlink files while
1070 they are open.
1071
10721997-08-25 Richard Stallman <rms@gnu.org>
1073
1074 * src/reader.c (stack_offset;):
1075 Change some warni to warns.
1076
1077 * src/lex.c (literalchar): Use warns, not warni.
1078
10791997-06-28 Richard Stallman <rms@gnu.org>
1080
1081 * src/bison.s1: Add a Bison version comment.
1082
1083 * src/main.c (fatal, warn, berror):
1084 Use program_name.
1085
10861997-06-28 Richard Stallman <rms@gnu.org>
1087
1088 * Makefile.in (bison_version): New variable.
1089 (dist): Use that variable.
1090 (bison.s1): Substitute the Bison version into bison.simple.
1091
1092 * bison.simple: Add a Bison version comment.
1093
10941997-06-18 Richard Stallman <rms@gnu.org>
1095
1096 * src/main.c (fatal, warn, berror):
1097 Make error messages standard.
1098 (toomany): Improve error message text.
1099
1100 * 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:
1101 new.h renamed to alloc.h.
1102
11031997-06-18 Richard Stallman <rms@gnu.org>
1104
1105 * Makefile.in: new.h renamed to alloc.h.
1106
11071997-05-24 Richard Stallman <rms@gnu.org>
1108
1109 * src/lex.c (literalchar):
1110 Fix the code for escaping \, " and '.
1111
1112 (lex): Avoid trouble when there are many chars
1113 to discard in a char literal with just several chars in it.
1114
11151997-05-17 Richard Stallman <rms@gnu.org>
1116
1117 * src/bison.s1:
1118 Use malloc, if using alloca is troublesome.
1119 (YYSTACK_USE_ALLOCA): New flag macro.
1120 Define it for some systems and compilers.
1121 (YYSTACK_ALLOC): New macro.
1122 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1123 If it was malloc'd, free it.
1124
11251997-05-17 Richard Stallman <rms@gnu.org>
1126
1127 * bison.simple:
1128 Use malloc, if using alloca is troublesome.
1129 (YYSTACK_USE_ALLOCA): New flag macro.
1130 Define it for some systems and compilers.
1131 (YYSTACK_ALLOC): New macro.
1132 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1133 If it was malloc'd, free it.
1134
11351997-04-23 Richard Stallman <rms@gnu.org>
1136
1137 * src/bison.s1:
1138 (alloca) [__hpux]: Always define as __builtin_alloca.
1139
11401997-04-23 Richard Stallman <rms@gnu.org>
1141
1142 * bison.simple:
1143 (alloca) [__hpux]: Always define as __builtin_alloca.
1144
11451997-04-22 Richard Stallman <rms@gnu.org>
1146
1147 * src/bison.s1:
1148 [__hpux]: Include alloca.h (right for HPUX 10)
1149 instead of declaring alloca (right for HPUX 9).
1150
1151 * src/bison.s1 (__yy_memcpy):
1152 Declare arg `count' as unsigned int.
1153 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1154
11551997-04-22 Richard Stallman <rms@gnu.org>
1156
1157 * bison.simple:
1158 [__hpux]: Include alloca.h (right for HPUX 10)
1159 instead of declaring alloca (right for HPUX 9).
1160
1161 * bison.simple (__yy_memcpy):
1162 Declare arg `count' as unsigned int.
1163 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1164
11651997-01-03 Richard Stallman <rms@gnu.org>
1166
1167 * src/allocate.c: [__STDC__ or _MSC_VER]:
1168 Declare calloc and realloc to return void *.
1169
11701997-01-02 Richard Stallman <rms@gnu.org>
1171
1172 * src/system.h:
1173 [_MSC_VER]: Include stdlib.h and process.h.
1174 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1175
1176 * src/main.c (main): Return FAILURE as a value.
1177 (printable_version): Declare arg as int, not char.
1178
11791997-01-02 Richard Stallman <rms@gnu.org>
1180
1181 * Makefile.in (dist):
1182 Explicitly check for symlinks, and copy them.
1183
11841996-12-19 Richard Stallman <rms@gnu.org>
1185
1186 * src/files.c:
1187 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1188
11891996-12-18 Paul Eggert <eggert@gnu.org>
1190
1191 * src/bison.s1 (yyparse):
1192 If __GNUC__ and YYPARSE_PARAM are both defined,
1193 declare yyparse to have a void * argument.
1194
11951996-12-18 Paul Eggert <eggert@gnu.org>
1196
1197 * bison.simple (yyparse):
1198 If __GNUC__ and YYPARSE_PARAM are both defined,
1199 declare yyparse to have a void * argument.
1200
12011996-12-17 Richard Stallman <rms@gnu.org>
1202
1203 * src/reduce.c (nbits): Add some casts.
1204
12051996-08-12 Richard Stallman <rms@gnu.org>
1206
1207 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1208
12091996-08-12 Richard Stallman <rms@gnu.org>
1210
1211 * bison.simple: Test _MSDOS as well as _MSDOS_.
1212
12131996-07-31 Richard Stallman <rms@gnu.org>
1214
1215 * src/bison.s1:
1216 [__sun && __i386]: Include alloca.h.
1217
12181996-07-31 Richard Stallman <rms@gnu.org>
1219
1220 * bison.simple:
1221 [__sun && __i386]: Include alloca.h.
1222
12231996-07-30 Richard Stallman <rms@gnu.org>
1224
1225 * src/bison.s1: Comment change.
1226
1227 * src/bison.s1: Test _MSDOS_, not MSDOS.
1228
12291996-07-30 Richard Stallman <rms@gnu.org>
1230
1231 * bison.simple: Comment change.
1232
1233 * bison.simple: Test _MSDOS_, not MSDOS.
1234
12351996-06-01 Richard Stallman <rms@gnu.org>
1236
1237 * 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:
1238 Insert `_' macro around many string constants.
1239
1240 * src/main.c:
1241 Insert `_' macro around many string constants.
1242
1243 (main): Call setlocale, bindtextdomain and textdomain.
1244
1245 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1246 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1247 [ENABLE_NLS]: Include libintl.h.
1248 [ENABLE_NLS] (gettext): Define.
1249 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1250 (N_, PACKAGE, LOCALEDIR): New macros.
1251
12521996-06-01 Richard Stallman <rms@gnu.org>
1253
1254 * POTFILES.in: New file.
1255
1256 * Makefile.in (allocate.o):
1257 Define target explicitly.
1258
1259 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1260 (LDFLAGS): Set to @LDFLAGS@.
1261 (configure): Run autoconf only if preceding `cd' succeeds.
1262 (bison.s1): Redirect output to temporary file then move the
1263 temporary to the target, rather than redirecting directly to bison.s1.
1264 (clean): Remove config.status and config.log.
1265 (distclean): Don't remove config.status here.
1266
12671996-05-12 Richard Stallman <rms@gnu.org>
1268
1269 * src/bison.s1:
1270 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1271
12721996-05-12 Richard Stallman <rms@gnu.org>
1273
1274 * bison.simple:
1275 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1276
12771996-05-11 Richard Stallman <rms@gnu.org>
1278
1279 * src/bison.s1 (__yy_memcpy):
1280 Really reorder the args, as was supposedly done on Feb 14 1995.
1281 (yyparse): Calls changed accordingly.
1282
12831996-05-11 Richard Stallman <rms@gnu.org>
1284
1285 * Makefile.in (dist): Don't use $(srcdir).
1286
1287 * bison.simple (__yy_memcpy):
1288 Really reorder the args, as was supposedly done on Feb 14 1995.
1289 (yyparse): Calls changed accordingly.
1290
12911996-01-27 Richard Stallman <rms@gnu.org>
1292
1293 * src/output.c (output_rule_data):
1294 Test YYERROR_VERBOSE in the conditional
1295 around the definition of ttyname.
1296
12971995-12-29 Richard Stallman <rms@gnu.org>
1298
1299 * src/bison.s1:
1300 Fix line numbers in #line commands.
1301
13021995-12-29 Richard Stallman <rms@gnu.org>
1303
1304 * bison.simple:
1305 Fix line numbers in #line commands.
1306
13071995-12-27 Richard Stallman <rms@gnu.org>
1308
1309 * src/bison.s1 (YYPARSE_PARAM_DECL):
1310 In C++, make it always null.
1311 (YYPARSE_PARAM_ARG): New macro.
1312 (yyparse): Use YYPARSE_PARAM_ARG.
1313
13141995-12-27 Richard Stallman <rms@gnu.org>
1315
1316 * bison.simple (YYPARSE_PARAM_DECL):
1317 In C++, make it always null.
1318 (YYPARSE_PARAM_ARG): New macro.
1319 (yyparse): Use YYPARSE_PARAM_ARG.
1320
13211995-11-29 Richard Stallman <rms@gnu.org>
1322
1323 * doc/bison.texinfo:
1324 Describe literal string tokens, %raw, %no_lines, %token_table.
1325
13261995-11-29 Daniel Hagerty <hag@gnu.org>
1327
1328 * doc/bison.texinfo: Fixed update date
1329
13301995-10-16 Richard Stallman <rms@gnu.org>
1331
1332 * src/version.c: Version 1.25.
1333
13341995-10-16 Richard Stallman <rms@gnu.org>
1335
1336 * NEWS: *** empty log message ***
1337
13381995-10-16 Richard Stallman <rms@gnu.org>
1339
1340 * doc/bison.1, doc/bison.rnh:
1341 Add new options.
1342
13431995-10-15 Richard Stallman <rms@gnu.org>
1344
1345 * src/vmsgetargs.c, src/getargs.c:
1346 Added -n, -k, and -raw switches.
1347 (noparserflag, toknumflag, rawtoknumflag): New variables.
1348
1349 * src/symtab.h (SALIAS):
1350 New #define for adding aliases to %token.
1351 (struct bucket): Added `alias' field.
1352
1353 * src/reduce.c (reduce_grammar):
1354 Revise error message.
1355 (print_notices): Remove final `.' from error message.
1356
1357 * src/reader.c (reader_output_yylsp):
1358 New function.
1359 (readgram): Use `#if 0' around code that accepted %command
1360 inside grammar rules: The documentation doesn't allow it,
1361 and it will fail since the %command processors scan for the next %.
1362 (parse_token_decl): Extended the %token
1363 declaration to allow a multi-character symbol as an alias.
1364 (parse_thong_decl): New function.
1365 (read_declarations): Added %thong declarations.
1366 (read_declarations): Handle NOOP to deal with allowing
1367 % declarations as another means to specify the flags.
1368 (readgram): Allow %prec prior to semantics embedded in a rule.
1369 (skip_to_char, read_declarations, copy_definition)
1370 (parse_token_decl, parse_start_decl, parse_type_decl)
1371 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1372 (get_type_name, copy_guard, copy_action, readgram)
1373 (get_type, packsymbols): Revised most error messages.
1374 Changed `fatal' to `warnxxx' to avoid aborting for error.
1375 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1376 (read_declarations): Improve the error message for
1377 an invalid character. Do not abort.
1378 (read_declarations, copy_guard, copy_action): Use
1379 printable_version to avoid unprintable characters in printed output.
1380 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1381 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1382 Allow the type of a non-terminal can be given
1383 more than once, as long as all specifications give the same type.
1384
1385 * src/output.c:
1386 (output_headers, output_trailers, output, output_gram)
1387 (output_rule_data): Implement noparserflag variable.
1388 Implement toknumflag variable.
1389 (output): Call reader_output_yylsp to output LTYPESTR.
1390
1391 * src/main.c (main):
1392 If reader sees an error, don't process the grammar.
1393 (fatals): Updated to not use VARARGS1.
1394 (printable_version, int_to_string, warn, warni, warns, warnss)
1395 (warnsss): New error reporting functions. Avoid abort for error.
1396
1397 * src/lex.h:
1398 Added THONG and NOOP for alias processing.
1399 Added SETOPT for the new code that allows setting options with %flags.
1400
1401 * src/lex.c:
1402 Include getopt.h. Add some extern decls.
1403 (safegetc): New function to deal with EOF gracefully.
1404 (literalchar); new function to deal with reading \ escapes.
1405 (lex): Use literalchar.
1406 (lex): Implemented "..." tokens.
1407 (literalchar, lex, parse_percent_token): Made tokenbuffer
1408 always contain the token. This includes growing the token
1409 buffer while reading an integer.
1410 (parse_percent_token): Replaced if-else statement with percent_table.
1411 (parse_percent_token): Added % declarations as another
1412 way to specify the flags -n, -l, and -r. Also added hooks for
1413 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1414 major changes to files.c.
1415 (lex) Retain in the incoming stream a character following
1416 an incorrect '/'.
1417 (skip_white_space, lex): Revised most error messages
1418 and changed fatal to warn to avoid aborting.
1419 (percent_table): Added %thong declarations.
1420
1421 * src/gram.h: Comment changes.
1422
1423 * src/files.c (openfiles, open_extra_files, done):
1424 Add faction flag
1425 and actfile file. Handle noparserflag. Both for -n switch.
1426
1427 * src/conflicts.c (resolve_sr_conflict):
1428 Remove use of alloca.
1429
14301995-06-01 Jim Meyering <meyering@gnu.org>
1431
1432 * doc/bison.texinfo: *** empty log message ***
1433
14341995-05-06 Richard Stallman <rms@gnu.org>
1435
1436 * src/bison.s1: Comment change.
1437
14381995-05-06 Richard Stallman <rms@gnu.org>
1439
1440 * bison.simple: Comment change.
1441
14421995-05-03 Richard Stallman <rms@gnu.org>
1443
1444 * src/version.c: Version now 1.24.
1445
1446 * src/bison.s1: Change distribution terms.
1447
1448 * src/version.c: Version now 1.23.
1449
14501995-05-03 Richard Stallman <rms@gnu.org>
1451
1452 * doc/bison.texinfo:
1453 Rewrite "Conditions for Using Bison".
1454 Update version to 1.24.
1455
14561995-05-03 Richard Stallman <rms@gnu.org>
1457
1458 * bison.simple: Change distribution terms.
1459
14601995-02-23 Richard Stallman <rms@gnu.org>
1461
1462 * src/files.c: Test __VMS_POSIX as well as VMS.
1463
14641995-02-14 Jim Meyering <meyering@gnu.org>
1465
1466 * src/bison.s1 (__yy_memcpy):
1467 Renamed from __yy_bcopy to avoid
1468 confusion. Reverse FROM and TO arguments to be consistent with
1469 those of memcpy.
1470
14711995-02-14 Jim Meyering <meyering@gnu.org>
1472
1473 * bison.simple (__yy_memcpy):
1474 Renamed from __yy_bcopy to avoid
1475 confusion. Reverse FROM and TO arguments to be consistent with
1476 those of memcpy.
1477
14781994-11-10 David J. MacKenzie <djm@gnu.org>
1479
1480 * NEWS: reformat
1481
1482 * NEWS: New file.
1483
1484 * Makefile.in (DISTFILES): Include NEWS.
1485
1486 * Makefile.in (DISTFILES):
1487 Include install-sh, not install.sh.
1488
1489 * configure.in: Update to Autoconf v2 macro names.
1490
14911994-10-05 David J. MacKenzie <djm@gnu.org>
1492
1493 * Makefile.in: fix typo
1494
1495 * Makefile.in (prefix, exec_prefix):
1496 Let configure set them.
1497
14981994-09-28 David J. MacKenzie <djm@gnu.org>
1499
1500 * Makefile.in: Set datadir to $(prefix)/share.
1501
15021994-09-15 Richard Stallman <rms@gnu.org>
1503
1504 * src/bison.s1:
1505 Update copyright notice and GPL version.
1506
15071994-09-15 Richard Stallman <rms@gnu.org>
1508
1509 * bison.simple:
1510 Update copyright notice and GPL version.
1511
15121994-07-12 Richard Stallman <rms@gnu.org>
1513
1514 * src/reduce.c, src/reader.c:
1515 entered into RCS
1516
15171994-05-05 David J. MacKenzie <djm@gnu.org>
1518
1519 * Makefile.in: entered into RCS
1520
15211994-03-26 Richard Stallman <rms@gnu.org>
1522
1523 * src/bison.s1: entered into RCS
1524
15251994-03-26 Richard Stallman <rms@gnu.org>
1526
1527 * bison.simple: entered into RCS
1528
15291994-03-25 Richard Stallman <rms@gnu.org>
1530
1531 * src/main.c: entered into RCS
1532
15331994-03-24 Richard Stallman <rms@gnu.org>
1534
1535 * src/conflicts.c: entered into RCS
1536
15371994-01-02 Richard Stallman <rms@gnu.org>
1538
1539 * Makefile.in: *** empty log message ***
1540
15411993-11-21 Richard Stallman <rms@gnu.org>
1542
1543 * src/bison.s1: *** empty log message ***
1544
15451993-11-21 Richard Stallman <rms@gnu.org>
1546
1547 * doc/bison.texinfo: entered into RCS
1548
1549 * doc/bison.texinfo: *** empty log message ***
1550
15511993-11-21 Richard Stallman <rms@gnu.org>
1552
1553 * bison.simple: *** empty log message ***
1554
15551993-10-25 David J. MacKenzie <djm@gnu.org>
1556
1557 * doc/bison.texinfo: *** empty log message ***
1558
15591993-10-19 Richard Stallman <rms@gnu.org>
1560
1561 * src/bison.s1: *** empty log message ***
1562
15631993-10-19 Richard Stallman <rms@gnu.org>
1564
1565 * bison.simple: *** empty log message ***
1566
15671993-10-14 Richard Stallman <rms@gnu.org>
1568
1569 * src/bison.s1: *** empty log message ***
1570
15711993-10-14 Richard Stallman <rms@gnu.org>
1572
1573 * bison.simple: *** empty log message ***
1574
15751993-09-14 David J. MacKenzie <djm@gnu.org>
1576
1577 * doc/bison.texinfo: *** empty log message ***
1578
15791993-09-13 Noah Friedman <friedman@gnu.org>
1580
1581 * Makefile.in: *** empty log message ***
1582
15831993-09-10 Richard Stallman <rms@gnu.org>
1584
1585 * src/conflicts.c: *** empty log message ***
1586
1587 * src/system.h: entered into RCS
1588
15891993-09-10 Richard Stallman <rms@gnu.org>
1590
1591 * doc/bison.1: entered into RCS
1592
15931993-09-06 Noah Friedman <friedman@gnu.org>
1594
1595 * src/version.c: entered into RCS
1596
15971993-09-06 Noah Friedman <friedman@gnu.org>
1598
1599 * Makefile.in: *** empty log message ***
1600
16011993-07-30 David J. MacKenzie <djm@gnu.org>
1602
1603 * Makefile.in: *** empty log message ***
1604
16051993-07-24 Richard Stallman <rms@gnu.org>
1606
1607 * src/bison.s1: *** empty log message ***
1608
16091993-07-24 Richard Stallman <rms@gnu.org>
1610
1611 * bison.simple: *** empty log message ***
1612
16131993-07-08 David J. MacKenzie <djm@gnu.org>
1614
1615 * Makefile.in: *** empty log message ***
1616
16171993-07-04 Richard Stallman <rms@gnu.org>
1618
1619 * src/bison.s1: *** empty log message ***
1620
16211993-07-04 Richard Stallman <rms@gnu.org>
1622
1623 * bison.simple: *** empty log message ***
1624
16251993-06-26 David J. MacKenzie <djm@gnu.org>
1626
1627 * src/getargs.c: entered into RCS
1628
16291993-06-26 David J. MacKenzie <djm@gnu.org>
1630
1631 * doc/bison.texinfo: *** empty log message ***
1632
1633 * doc/bison.1: New file.
1634
16351993-06-25 Richard Stallman <rms@gnu.org>
1636
1637 * src/getargs.c: New file.
1638
16391993-06-16 Richard Stallman <rms@gnu.org>
1640
1641 * src/bison.s1: *** empty log message ***
1642
16431993-06-16 Richard Stallman <rms@gnu.org>
1644
1645 * bison.simple: *** empty log message ***
1646
16471993-06-03 Richard Stallman <rms@gnu.org>
1648
1649 * src/bison.s1: New file.
1650
16511993-06-03 Richard Stallman <rms@gnu.org>
1652
1653 * doc/bison.texinfo: *** empty log message ***
1654
16551993-06-03 Richard Stallman <rms@gnu.org>
1656
1657 * bison.simple: New file.
1658
16591993-05-19 Richard Stallman <rms@gnu.org>
1660
1661 * doc/bison.texinfo: New file.
1662
16631993-05-07 Noah Friedman <friedman@gnu.org>
1664
1665 * Makefile.in: *** empty log message ***
1666
16671993-04-28 Noah Friedman <friedman@gnu.org>
1668
1669 * src/reader.c: *** empty log message ***
1670
16711993-04-23 Noah Friedman <friedman@gnu.org>
1672
1673 * src/alloc.h: entered into RCS
1674
16751993-04-20 David J. MacKenzie <djm@gnu.org>
1676
1677 * src/version.c: *** empty log message ***
1678
1679 * src/files.c, src/allocate.c:
1680 entered into RCS
1681
1682 * src/reader.c: *** empty log message ***
1683
1684 * src/lex.c: entered into RCS
1685
1686 * src/conflicts.c: New file.
1687
1688 * src/symtab.c: entered into RCS
1689
1690 * src/alloc.h: New file.
1691
1692 * src/LR0.c: entered into RCS
1693
16941993-04-18 Noah Friedman <friedman@gnu.org>
1695
1696 * src/reader.c: New file.
1697
1698 * src/version.c: *** empty log message ***
1699
17001993-04-18 Noah Friedman <friedman@gnu.org>
1701
1702 * Makefile.in: *** empty log message ***
1703
17041993-04-17 Noah Friedman <friedman@gnu.org>
1705
1706 * Makefile.in: *** empty log message ***
1707
17081993-04-15 Richard Stallman <rms@gnu.org>
1709
1710 * src/main.c, src/files.c:
1711 New file.
1712
17131993-04-15 Noah Friedman <friedman@gnu.org>
1714
1715 * configure.in: entered into RCS
1716
1717 * configure.in: *** empty log message ***
1718
1719 * configure.in: New file.
1720
17211993-04-14 Richard Stallman <rms@gnu.org>
1722
1723 * Makefile.in: New file.
1724
17251993-04-13 Richard Stallman <rms@gnu.org>
1726
1727 * src/version.c: New file.
1728
17291993-03-25 Richard Stallman <rms@gnu.org>
1730
1731 * src/output.c: entered into RCS
1732
17331992-09-25 Richard Stallman <rms@gnu.org>
1734
1735 * configure.bat: entered into RCS
1736
17371992-06-22 Richard Stallman <rms@gnu.org>
1738
1739 * src/vmsgetargs.c: entered into RCS
1740
17411992-06-22 Richard Stallman <rms@gnu.org>
1742
1743 * doc/bison.rnh: entered into RCS
1744
17451992-04-20 David J. MacKenzie <djm@gnu.org>
1746
1747 * README: entered into RCS
1748
17491992-01-22 Richard Stallman <rms@gnu.org>
1750
1751 * src/machine.h: entered into RCS
1752
17531991-12-21 Richard Stallman <rms@gnu.org>
1754
1755 * src/lalr.c, src/closure.c:
1756 entered into RCS
1757
17581991-12-20 Richard Stallman <rms@gnu.org>
1759
1760 * src/state.h: entered into RCS
1761
17621991-12-18 Richard Stallman <rms@gnu.org>
1763
1764 * src/print.c, src/nullable.c, src/derives.c:
1765 entered into RCS
1766
17671991-11-03 David J. MacKenzie <djm@gnu.org>
1768
1769 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1770 entered into RCS
1771
17721988-09-09 Richard Stallman <rms@gnu.org>
1773
1774 * src/bison.hairy: entered into RCS
1775
17761987-12-16 Richard Stallman <rms@gnu.org>
1777
1778 * REFERENCES: entered into RCS