]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/output.c (output_short_or_char_table): New function.
[bison.git] / ChangeLog
CommitLineData
43591cec
AD
12000-10-16 Akim Demaille <akim@epita.fr>
2
3 * src/output.c (output_short_or_char_table): New function.
4 (output_short_table, output_token_translations): Use it.
5 (goto_actions): Use output_short_table.
6
1e9798d5
AD
72000-10-16 Akim Demaille <akim@epita.fr>
8
9 * src/symtab.c (bucket_new): New function.
10 (getsym): Use it.
11
12 * src/output.c (output_short_table): New argument to display the
13 comment associated with the table.
14 Adjust dependencies.
15 (output_gram): Use it.
16 (output_rule_data): Nicer output layout for YYTNAME.
17
43591cec 18
f282676b
AD
192000-10-16 Akim Demaille <akim@epita.fr>
20
21 * src/lex.c (read_typename): New function.
22 (lex): Use it.
23 * src/reader.c (copy_dollar): Likewise.
24
43591cec 25
550a72a3
AD
262000-10-16 Akim Demaille <akim@epita.fr>
27
28 * src/reader.c (copy_comment2): Expect the input stream to be on
29 the `/' which is suspected to open a comment, instead of being
30 called after `//' or `/*' was read.
31 (copy_comment, copy_definition, parse_union_decl, copy_action)
32 (copy_guard): Adjust.
33
43591cec 34
131e2fef
AD
352000-10-16 Akim Demaille <akim@epita.fr>
36
37 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
38 `read_signed_integer'.
39
43591cec 40
79282c5a
AD
412000-10-16 Akim Demaille <akim@epita.fr>
42
43 * src/reader.c (copy_dollar): New function.
44 (copy_guard, copy_action): Use it.
45
43591cec 46
ff4a34be
AD
472000-10-16 Akim Demaille <akim@epita.fr>
48
49 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
50 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
51 New files, from Fileutils 4.0.27.
52 * src/main.c (printable_version): Remove.
53 * src/lex.c, src/reader.c: Use `quote'.
54
552000-10-04 Akim Demaille <akim@epita.fr>
56
57 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
58
14ded682
AD
592000-10-04 Akim Demaille <akim@epita.fr>
60
61 * doc/bison.texinfo: Various typos spotted by Neil Booth.
62
8e03724b
AD
632000-10-04 Akim Demaille <akim@epita.fr>
64
65 When a literal string is used to define two different tokens,
66 `bison -v' segfaults.
67 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
68
69 * tests/regression.m4: New file.
70 Include the core of the sample provided by Piotr Gackiewicz.
71 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
72 properly.
73
a9e64249
AD
742000-10-04 Akim Demaille <akim@epita.fr>
75
76 * src/reader.c (parse_expect_decl): Keep `count' within the size
77 of `buffer'.
78 From Neil Booth.
79
da9abf43
AD
802000-10-02 Paul Eggert <eggert@twinsun.com>
81
82 * bison.s1 (yyparse): Assign the default value
83 unconditionally, to avoid a GCC warning and make the parser a
84 tad smaller.
85
c33638bb
AD
862000-10-02 Akim Demaille <akim@epita.fr>
87
88 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
89 options.
90
444c570a
AD
912000-10-02 Akim Demaille <akim@epita.fr>
92
93 * src/derives.c, src/print.c, src/reduce.c: To ease the
94 translation, move some `\n' out of the translated strings.
95
89cab50d
AD
962000-10-02 Akim Demaille <akim@epita.fr>
97
98 The location tracking mechanism is precious for parse error
99 messages. Nevertheless, it is enabled only when `@n' is used in
100 the grammar, which is a different issue (you can use it in error
101 message, but not in the grammar per se). Therefore, there should
102 be another means to enable it.
103
104 * src/getargs.c (getargs): Support `--locations'.
105 (usage): Report it.
106 * src/getargs.h (locationsflag): Export it.
107 * src/lex.c (percent_table): Support `%locations'.
108 * src/reader.c (yylsp_needed): Remove this variable, now replaced
109 with `locationsflag'.
110 * doc/bison.texinfo: Document `--locations' and `%locations'.
111 Sort the options.
112 * tests/calc.m4: Test it.
113
114 For regularity of the names, replace each
115 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
116 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
117 In addition replace each `flag' with `_flag'.
118
d6c2cba0
AD
1192000-10-02 Akim Demaille <akim@epita.fr>
120
121 Also test parse error messages, including with YYERROR_VERBOSE.
122
123 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
124 associative).
125 Use it to check the computations.
126 Use it to check `nonassoc' is honored.
127 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
128 `--yyerror-verbose'.
129 (_AT_CHECK_CALC): Adjust to this option.
130 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
131
5a35a6cb
AD
1322000-10-02 Akim Demaille <akim@epita.fr>
133
134 Test also `--verbose', `--defines' and `--name-prefix'. Testing
135 the latter demonstrates a flaw in the handling of non debugging
136 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
137 was used in order to simplify:
138
139 #if YYDEBUG
140 if (yydebug)
141 {
142 ...
143 }
144 #endif
145
146 into
147
148 if (yydebug)
149 {
150 ...
151 }
152
153 unfortunately this leads to a CPP conflict when
154 `--name-prefix=foo' is used since it produces `#define yydebug
155 foodebug'.
156
157 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
158 (YYDPRINTF): New macro.
159 Spread its use.
160 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
161 the bison options.
162 Also test `--verbose', `--defines' and `--name-prefix'.
163
71da9eea
AD
1642000-10-02 Akim Demaille <akim@epita.fr>
165
166 Improve the readability of the produced parsers.
167
168 * src/bison.s1: Formatting changes.
169 Improve the comment related to the `$' mark.
170 (yydefault): Don't fall through to `yyresume': `goto' there.
171 * src/output.c (output_parser): When the `$' is met, skip the end
172 of its line.
173 New variable, `number_of_dollar_signs', to check there's exactly
174 one `$' in the parser skeleton.
175
95e36146
AD
1762000-10-02 Akim Demaille <akim@epita.fr>
177
178 * lib/xstrdup.c: New file, from the fileutils.
179 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
180 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
181 instead of strlen + xmalloc + strcpy.
182 * src/symtab.c (copys): Remove, use xstrdup instead.
183
d7020c20
AD
1842000-10-02 Akim Demaille <akim@epita.fr>
185
186 * src/gram.h (associativity): New enum type which replaces the
187 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
188 `right_assoc', `left_assoc' and `non_assoc'.
189 Adjust all dependencies.
190 * src/reader.c: Formatting changes.
191 (LTYPESTR): Don't define it, use it as a literal in
192 `reader_output_yylsp'.
193 * src/symtab.h (symbol_class): New enum type which replaces the
194 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
195 `sunknown', `stoken and `snterm'.
196
1916f98e
AD
1972000-10-02 Akim Demaille <akim@epita.fr>
198
199 * src/getargs.c (fixed_outfiles): Rename as...
200 (yaccflag): for consistency and accuracy.
201 Adjust dependencies.
202
d7913476
AD
2032000-10-02 Akim Demaille <akim@epita.fr>
204
205 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
206 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
207 difficult and introduced a lot of core dump. It turns out that
208 Bison used an implementation of `xmalloc' based on `calloc', and
209 at various places it does depend upon the initialization to 0. I
210 have not tried to isolate the pertinent places, and all the former
211 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
212 someone should address this issue.
213
214 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
215 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
216 files.
217 Adjust dependencies.
218 * src/warshall.h: New file.
219 Propagate.
220
340ef489
AD
2212000-10-02 Akim Demaille <akim@epita.fr>
222
223 Various anti-`extern in *.c' changes.
224
225 * src/system.h: Include `assert.h'.
226
b2ca4022
AD
2272000-10-02 Akim Demaille <akim@epita.fr>
228
229 * src/state.h (nstates, final_state, first_state, first_shift)
230 (first_reduction): Move their exportation from here...
231 * src/LR0.h: to here.
232 Adjust dependencies.
233 * src/getargs.c (statisticsflag): New variable.
234 Add support for `--statistics'.
235 Adjust dependencies.
236
237 Remove a lot of now useless `extern' statements in most files.
238
403b315b
AD
2392000-10-02 Akim Demaille <akim@epita.fr>
240
241 * src/LR0.h: New file.
242 Propagate its use.
243
07a58c13
AD
2442000-10-02 Akim Demaille <akim@epita.fr>
245
246 * src/print.h: New file.
247 Propagate its use.
248 * src/print.c: Formatting and ordering changes.
249 (verbose, terse): Replace with...
250 (print_results): this new function.
251 Adjust dependencies.
252
0619caf0
AD
2532000-10-02 Akim Demaille <akim@epita.fr>
254
255 * src/conflicts.c (conflict_report): New function.
256 (conflict_log, verbose_conflict_log): Replace with...
257 (print_conflicts): this function.
258 Adjust dependencies.
259 * src/conflicts.h: New file.
260 Propagate its inclusion.
261
3519ec76
AD
2622000-10-02 Akim Demaille <akim@epita.fr>
263
264 * src/nullable.h: New file.
265 Propagate its inclusion.
266 * src/nullable.c: Formatting changes.
267
015acc48
AD
2682000-10-02 Akim Demaille <akim@epita.fr>
269
270 * src/reduce.h: New file.
271 Propagate its inclusion.
272 * src/reduce.c: Topological sort and other formatting changes.
273 (bool, TRUE, FALSE): Move their definition to...
274 * src/system.h: here.
275
8963a27b
AD
2762000-10-02 Akim Demaille <akim@epita.fr>
277
278 * src/files.c: Formatting changes.
279 (tryopen, tryclose, openfiles): Rename as...
280 (xfopen, xfclose, open_files): this.
281 (stringappend): static.
282 * src/files.h: Complete the list of exported symbols.
283 Propagate its use.
284
a70083a3
AD
2852000-10-02 Akim Demaille <akim@epita.fr>
286
287 * src/reader.h: New file.
288 Propagate its use instead of tedious list of `extern' and
289 prototypes.
290 * src/reader.c: Formatting changes, topological sort,
291 s/register//.
292
abadc117
AD
2932000-10-02 Akim Demaille <akim@epita.fr>
294
295 * src/lex.h: Prototype `lex.c' exported functions.
296 * src/reader.c: Adjust.
297 * src/lex.c: Formatting changes.
298 (safegetc): Rename as...
299 (xgetc): this.
300
720d742f
AD
3012000-10-02 Akim Demaille <akim@epita.fr>
302
303 * src/lalr.h: New file.
304 Propagate its inclusion instead of prototypes and `extern'.
305 * src/lalr.c: Formatting changes, topological sorting etc.
306
f2acea59
AD
3072000-10-02 Akim Demaille <akim@epita.fr>
308
309 * src/output.c (token_actions): Introduce a temporary array,
310 YYDEFACT, that makes it possible for this function to use
311 output_short_table.
312
d019d655
AD
3132000-10-02 Akim Demaille <akim@epita.fr>
314
315 `user_toknums' is output as a `short[]' in `output.c', while it is
316 defined as a `int[]' in `reader.c'. For consistency with the
317 other output tables, `user_toknums' is now defined as a table of
318 shorts.
319
320 * src/reader.c (user_toknums): Be a short table instead of an int
321 table.
322 Adjust dependencies.
323
324 Factor the short table outputs.
325
326 * src/output.c (output_short_table): New function.
327 * src/output.c (output_gram, output_stos, output_rule_data)
328 (output_base, output_table, output_check): Use it.
329
6c89f1c1
AD
3302000-10-02 Akim Demaille <akim@epita.fr>
331
332 * src/output.c (output): Topological sort of the functions, in
333 order to get rid of the `static' prototypes.
334 No longer use `register'.
335 * src/output.h: New file.
336 Propagate its inclusion in files explicitly prototyping functions
337 from output.c.
338
d9efd181
AD
3392000-09-21 Akim Demaille <akim@epita.fr>
340
341 * src/atgeneral.m4: Update from Autoconf.
342
c29240e7 3432000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
344
345 * src/closure.h: New file.
346 * src/closure.c: Formatting changes, topological sort over the
347 functions, use of closure.h.
348 (initialize_closure, finalize_closure): Rename as...
349 (new_closure, free_closure): these. Adjust dependencies.
350 * src/LR0.c: Formatting changes, topological sort, use of
351 cloture.h.
352 (initialize_states): Rename as...
353 (new_states): this.
354 * src/Makefile.am (noinst_HEADERS): Adjust.
355
499daa50
AD
3562000-09-20 Akim Demaille <akim@epita.fr>
357
358 * src/acconfig.h: Don't protect config.h against multiple
359 inclusion.
360 Don't define PARAMS.
361 * src/system.h: Define PARAMS.
362 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
363 purpose of config.h. system.h must not try to fix wrong
364 definitions in config.h.
365
cc84fd5d
AD
3662000-09-20 Akim Demaille <akim@epita.fr>
367
368 * src/derives.h: New file.
369 * src/main.c, src/derives.h: Use it.
370 Formatting changes.
371 * src/Makefile.am (noinst_HEADERS): Adjust.
372
db5b3a89
AD
3732000-09-20 Akim Demaille <akim@epita.fr>
374
375 * tests/atgeneral.m4: Update from Autoconf.
376 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
377 (AT_CHECK_CALC): New macros.
378 Use these macros to test bison with options `', `--raw',
379 `--debug', `--yacc', `--yacc --debug'.
380
ceed8467
AD
3812000-09-19 Akim Demaille <akim@epita.fr>
382
383 * src/output.c: Formatting changes.
384 * src/machine.h: Remove, leaving its contents in...
385 * src/system.h: here.
386 Include stdio.h.
387 Adjust all dependencies on stdio.h and machine.h.
388 * src/getargs.h: New file.
389 Let all `extern' declarations about getargs.c be replaced with
390 inclusion of `getargs.h'.
391 * src/Makefile.am (noinst_HEADERS): Adjust.
392
393 * tests/calc.m4 (yyin): Be initialized in main, not on the global
394 scope.
395 (yyerror): Returns void, not int.
396 * doc/bison.texinfo: Formatting changes.
397
05a1d24b
AD
3982000-09-19 Akim Demaille <akim@epita.fr>
399
400 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
401 portable.
402
cbd25751
AD
4032000-09-18 Akim Demaille <akim@epita.fr>
404
405 * configure.in: Append WARNING_CFLAGS to CFLAGS.
406 * src/Makefile.am (INCLUDES): Don't.
407 Be ready to fetch headers in lib/.
408
13863333
AD
4092000-09-18 Akim Demaille <akim@epita.fr>
410
411 * doc/bison.texinfo: Update the copyright.
412 ANSIfy and GNUify the examples.
413 Remove the old menu.
414
0d533154
AD
4152000-09-18 Akim Demaille <akim@epita.fr>
416
417 First set of tests: use the `calc' example from the documentation.
418
419 * src/bison.s1 (yyparse): Condition the code using `yytname' which
420 is defined only when YYDEBUG is.
421 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
422 * src/files.c (tryopen, tryclose): Formatting changes.
423 Move to the top and be static.
424 * src/reader.c (read_signed_integer): Likewise.
425 * tests/calc.m4: New file.
426 * Makefile.am, suite.m4: Adjust.
427 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
428
e79137ac
AD
4292000-09-18 Akim Demaille <akim@epita.fr>
430
431 Add support for an Autotest test suite for Bison.
432
433 * m4/m4.m4, m4/atconfig.m4: New files.
434 * m4/Makefile.am (EXTRA_DIST): Adjust.
435 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
436 files.
437 * src/getargs.c: Display a more standard --version message.
438 * src/reader.c (reader): Formatting changes.
439 No longer depend upon VERSION_STRING.
440 * configure.in: No longer use `dnl'.
441 Set up the test suite and the new directory `tests/.
442 (VERSION_STRING): Remove.
443
27821bff
AD
4442000-04-14 Akim Demaille <akim@epita.fr>
445
446 * src/reader.c (copy_comment2): New function, same as former
447 `copy_comment', but outputs into two FILE *.
448 (copy_comment): Use it.
449 (parse_union_decl): Use it.
450 (get_type, parse_start_decl): Use the same `invalid' message.
451 (parse_start_decl, parse_union_decl): Use the same `multiple'
452 message.
453 (parse_union_decl, copy_guard, copy_action): Use the same
454 `unmatched' message.
455 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
456
cfe5fbc0
AD
4572000-03-31 Akim Demaille <akim@epita.fr>
458
459 * src/files.c (tryopen, tryclose): Move to the top.
460 Be static.
461
cb7db13e
AD
4622000-03-31 Akim Demaille <akim@epita.fr>
463
464 * src/main.c (main): Don't call `done', exit does it.
465
a0f6b076
AD
4662000-03-31 Akim Demaille <akim@epita.fr>
467
36281465
AD
468 * allocate.c: s/return (foo)/return foo/.
469 * lalr.c: Likewise.
470 * LR0.c: Likewise.
471 * output.c: Likewise.
472 * reader.c: Likewise.
473 * symtab.c: Likewise.
474 * vmsgetargs.c: Likewise.
475
4762000-03-31 Akim Demaille <akim@epita.fr>
477
478 Clean up the error reporting functions.
a0f6b076
AD
479
480 * src/report.c: New file.
481 * src/report.h: Likewise.
482 * src/Makefile.am: Adjust.
483 * m4/error.m4: New file.
484 * m4/Makefile.am: Adjust.
485 * configure.in (jm_PREREQ_ERROR): Call it.
486 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
487 Remove.
488 (fatal, fatals): Remove. All callers use complain.c::fatal.
489 (warn, warni, warns, warnss, warnss): Remove. All callers use
490 complain.c::complain.
491 (toomany): Remove, use fatal instead.
492 * src/files.c (done): No argument, use complain_message_count.
493 * src/main.c (main): Register `done' to `atexit'.
494
495 * src/getargs.c (usage): More `fputs', less `fprintf'.
496
18539825
AD
4972000-03-28 Akim Demaille <akim@epita.fr>
498
499 * lib/: New directory.
500 * Makefile.am (SUBDIRS): Adjust.
501 * configure.in: Adjust.
502 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
503 useless.
504 * src/alloca.c: Moved to lib/.
505 * src/getopt.c: Likewise.
506 * src/getopt1.c: Likewise.
507 * src/getopt.h: Likewise.
508 * src/ansi2knr.c: Likewise.
509 * src/ansi2knr.1: Likewise.
510 * src/Makefile.am: Adjust.
511 * lib/Makefile.am: New file.
512
9f306f2a
AD
5132000-03-28 Akim Demaille <akim@epita.fr>
514
515 * src/getargs.c (usage): Refresh the help message.
516
0ba347b6
AD
5172000-03-17 Akim Demaille <akim@epita.fr>
518
519 * src/getopt1.c: Updated from textutils 2.0e
520 * src/getopt.c: Likewise.
521 * src/getopt.h: Likewise.
522
dbe7f271
AD
5232000-03-17 Akim Demaille <akim@epita.fr>
524
525 * src/Makefile.am (bison.simple): Fix the awk program: quote only
526 the file name, not the whole `#line LINE FILE'.
527
75bbe78d
AD
5282000-03-17 Akim Demaille <akim@epita.fr>
529
530 On syntax errors, report the token on which we choked.
531
aa5fd0ee
AD
532 * src/bison.s1 (yyparse): In the label yyerrlab, when
533 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 534
7b306f52
AD
5352000-03-17 Akim Demaille <akim@epita.fr>
536
aa5fd0ee 537 * src/reader.c (copy_at): New function.
7b306f52
AD
538 (copy_guard): Use it.
539 (copy_action): Use it.
540
e87b5700
AD
5412000-03-17 Akim Demaille <akim@epita.fr>
542
543 Be kind to translators, save some useless translations.
544
aa5fd0ee 545 * src/main.c (banner): New function.
e87b5700
AD
546 (fatal_banner): Use it.
547 (warn_banner): Use it.
548
ae3c3164
AD
5492000-03-17 Akim Demaille <akim@epita.fr>
550
aa5fd0ee
AD
551 * src/reader.c (copy_definition): Use copy_string and
552 copy_comment. Removed now unused `match', `ended',
553 `cplus_comment'.
ae3c3164
AD
554 (copy_comment, copy_string): Moved, to be visible from
555 copy_definition.
556
4dc58e7c
AD
5572000-03-17 Akim Demaille <akim@epita.fr>
558
aa5fd0ee
AD
559 * src/reader.c (copy_string): Declare `static inline'. No
560 problems with inline, since it is checked by configure.
4dc58e7c
AD
561 (copy_comment): Likewise.
562
0a6384c4
AD
5632000-03-17 Akim Demaille <akim@epita.fr>
564
aa5fd0ee 565 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 566
3cef001a
AD
5672000-03-17 Akim Demaille <akim@epita.fr>
568
aa5fd0ee 569 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
570 (copy_action): Use it. Removed now unused `match', `ended',
571 `cplus_comment'.
572 (copy_guard): Likewise.
573
ca36d2ef
AD
5742000-03-17 Akim Demaille <akim@epita.fr>
575
aa5fd0ee 576 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
577 (copy_action): Use it.
578 (copy_guard): Likewise.
579
6666f98f
AD
5802000-03-17 Akim Demaille <akim@epita.fr>
581
582 Change the handling of @s so that they behave exactly like $s.
583 There is now a pseudo variable @$ (readble and writable), location
584 of the lhs of the rule (by default ranging from the location of
585 the first symbol of the rhs, to the location of the last symbol,
586 or, if the rhs is empty, YYLLOC).
587
588 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
589 yyval.
590 (yyparse): When providing a default semantic action, provide a
591 default location action.
592 (after the $): No longer change `*YYLSP', just stack YYLOC the
593 same way you stack YYVAL.
594 * src/reader.c (read_declarations): Use warns.
595 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
596 (copy_action, case '@'): Likewise.
597 Use a standard error message, to save useless work from
598 translators.
599
41aca2e0
AD
6002000-03-17 Akim Demaille <akim@epita.fr>
601
aa5fd0ee
AD
602 * src/bison.s1: Formatting and cosmetics changes.
603 * src/reader.c: Likewise.
41aca2e0
AD
604 Update the Copyright notice.
605
dc08c1d5
AD
6062000-03-17 Akim Demaille <akim@epita.fr>
607
aa5fd0ee
AD
608 * src/bison.s1 (#line): All set to `#line' only, since the
609 Makefile now handles them.
dc08c1d5 610
9ee3c97b
AD
6112000-03-16 Akim Demaille <akim@epita.fr>
612
613 * src/output.c (output_rule_data): Output the documentation of
614 some of the tables.
615 (Copyright notice): Update.
616 Formatting changes.
617
0de741ca
AD
6182000-03-16 Akim Demaille <akim@epita.fr>
619
620 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
621 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
622 One `#if YYDEBUG' remains, since it uses variables which are
623 defined only if `YYDEBUG != 0'.
624
bb10be54
AD
6252000-03-16 Akim Demaille <akim@epita.fr>
626
627 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
628 and related variables so that the similarities are highlighted.
629
b07b484a
AD
6302000-03-16 Akim Demaille <akim@epita.fr>
631
632 * src/bison.s1: Properly indent CPP directives.
633
361f60b3
AD
6342000-03-16 Akim Demaille <akim@epita.fr>
635
636 * src/bison.s1: Properly indent the `alloca' CPP section.
637
8c44d3ec
AD
6382000-03-16 Akim Demaille <akim@epita.fr>
639
640 Do not hard code values of directories in `configure.in'.
641 Update the `configure' tool chain.
642
643 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
644 src/makefile.am.
645 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
646 (AC_OUTPUT): Add m4/Makefile.
647 Bump to bison 1.28a, 1.29 has never been released.
648 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
649 handled via src/Makefile.am.
650 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
651 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
652 autoheader.
653 * Makefile.am (SUBDIRS): Add m4.
654 (ACLOCAL_AM_FLAGS): New variable.
655 (AUTOMAKE_OPTIONS): Add check-news.
656 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
657 the proper line number and file name.
658 (DEFS): Propagate the location of bison library files and of the
659 locale files.
660 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
661 builddir.
662 * acinclude.m4: Remove, replaced by the directory m4.
663 * m4/Makefile.am (EXTRA_DIST): New variable.
664 * m4/gettext.m4: New file, from the fileutils.
665 * m4/lcmessage.m4: Likewise
666 * m4/progtest.m4: Likewise.
667 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
668
f95997e7
AD
6692000-03-10 Akim Demaille <akim@epita.fr>
670
671 * src/closure.c:
672 Formatting changes of various comments.
673 Respect the GNU coding standards at various places.
674 Don't use `_()' when no translation is needed.
675
6761999-12-13 Jesse Thilo <jthilo@gnu.org>
677
678 * src/files.c:
679 OS/2 honors TMPDIR environment variable.
680
6811999-12-13 Jesse Thilo <jthilo@gnu.org>
682
683 * doc/bison.texinfo: Tweaked spelling and grammar.
684 Updated ISBN.
685 Removed reference to price of printed copy.
686 Mention BISON_SIMPLE and BISON_HAIRY.
687
6881999-12-13 Jesse Thilo <jthilo@gnu.org>
689
690 * configure.in, NEWS:
691 Bison 1.29 released.
692
6931999-10-27 Jesse Thilo <jthilo@gnu.org>
694
695 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
696 Added reference card.
697
6981999-07-26 Jesse Thilo <jthilo@gnu.org>
699
700 * po/ru.po: Added Russian translation.
701
7021999-07-26 Jesse Thilo <jthilo@gnu.org>
703
704 * configure.in: Added Russian translation.
705
7061999-07-06 Jesse Thilo <jthilo@gnu.org>
707
708 * configure.in, NEWS, README:
709 Released version 1.28.
710
7111999-06-14 Jesse Thilo <jthilo@gnu.org>
712
713 * src/system.h:
714 Squashed redefinition warning on some systems.
715
716 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
717 Have configure build version string instead of relying on ANSI string
718 concatentation.
719
7201999-06-14 Jesse Thilo <jthilo@gnu.org>
721
722 * po/POTFILES.in: Got rid of version.c.
723
7241999-06-14 Jesse Thilo <jthilo@gnu.org>
725
726 * acconfig.h, configure.in:
727 Have configure build version string instead of relying on ANSI string
728 concatentation.
729
7301999-06-08 Jesse Thilo <jthilo@gnu.org>
731
732 * doc/bison.1:
733 Dropped mention of `+' for long-named options.
734
7351999-05-30 Jesse Thilo <jthilo@gnu.org>
736
737 * src/files.c: Added <unistd.h> for unlink().
738
739 * src/Makefile.am, src/system.h:
740 I18n fixes.
741
7421999-05-30 Jesse Thilo <jthilo@gnu.org>
743
744 * README: Added a FAQ list.
745
746 * configure.in, acconfig.h:
747 I18n fixes.
748
7491999-05-30 Jesse Thilo <jthilo@gnu.org>
750
751 * doc/FAQ, doc/Makefile.am:
752 Added a FAQ list.
753
7541999-05-19 Jesse Thilo <jthilo@gnu.org>
755
756 * src/alloc.h, src/symtab.h, src/version.c:
757 Protected inclusion of "config.h" with HAVE_CONFIG_H.
758
7591999-04-18 Jesse Thilo <jthilo@gnu.org>
760
761 * src/.cvsignore, src/Makefile.am:
762 Reorganized: sources in `src', documentation in `doc'.
763
764 * src/lex.c (literalchar):
765 fixed the code for escaping double quotes (thanks
766 Jonathan Czisny.)
767
7681999-04-18 Jesse Thilo <jthilo@gnu.org>
769
770 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
771 Adjusted paths to reflect directory reorganization.
772
7731999-04-18 Jesse Thilo <jthilo@gnu.org>
774
775 * doc/.cvsignore, doc/Makefile.am:
776 Reorganized: sources in `src', documentation in `doc'.
777
7781999-04-18 Jesse Thilo <jthilo@gnu.org>
779
780 * configure.in:
781 Updated AC_INIT file to reflect directory reorganization.
782
783 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
784 Reorganized: sources in `src', documentation in `doc'.
785
7861999-04-13 Jesse Thilo <jthilo@gnu.org>
787
788 * src/allocate.c:
789 Don't declare calloc() and realloc() if not necessary.
790
7911999-04-13 Jesse Thilo <jthilo@gnu.org>
792
793 * configure.in, acconfig.h, acinclude.m4:
794 Don't declare calloc() and realloc() if not necessary.
795
7961999-03-23 Jesse Thilo <jthilo@gnu.org>
797
798 * po/.cvsignore: Added i18n support.
799
8001999-03-23 Jesse Thilo <jthilo@gnu.org>
801
802 * acconfig.h, configure.in, Makefile.am:
803 Added i18n support.
804
8051999-03-22 Jesse Thilo <jthilo@gnu.org>
806
807 * src/bison.s1: Fixed #line numbers.
808
8091999-03-15 Jesse Thilo <jthilo@gnu.org>
810
811 * po/es.po, po/fr.po, po/nl.po, po/de.po:
812 Added PO files from Translation Project.
813
8141999-03-03 Jesse Thilo <jthilo@gnu.org>
815
816 * Makefile.am:
817 Added support for non-ANSI compilers (ansi2knr).
818
8191999-02-16 Jesse Thilo <jthilo@gnu.org>
820
821 * configure.in: Bumped version number to 1.27.
822
823 * Makefile.am:
824 Added `bison.simple' to list of files removed by `make distclean'.
825
8261999-02-12 Jesse Thilo <jthilo@gnu.org>
827
828 * src/files.c, src/files.h:
829 Defined locations of parser files in config.h instead of Makefile.
830
8311999-02-12 Jesse Thilo <jthilo@gnu.org>
832
833 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
834 Defined locations of parser files in config.h instead of Makefile.
835
8361999-02-09 Jesse Thilo <jthilo@gnu.org>
837
838 * Makefile.am:
839 Removed inappropriate use of $< macro.
840
8411999-02-05 Jesse Thilo <jthilo@gnu.org>
842
843 * po/Makefile.in.in, po/POTFILES.in:
844 Add `po' directory skeleton.
845
8461999-01-27 Jesse Thilo <jthilo@gnu.org>
847
848 * README: Document help-bison list.
849
850 * configure.in: Add check for mkstemp().
851
8521999-01-20 Jesse Thilo <jthilo@gnu.org>
853
854 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
855 Hush a few compiler warnings.
856
857 * src/files.c:
858 Add tryclose(), which verifies that fclose was successful.
859 Hush a couple of compiler warnings.
860
8611999-01-20 Jesse Thilo <jthilo@gnu.org>
862
863 * Makefile.am, OChangeLog:
864 ChangeLog is now automatically generated. Include the old version as
865 OChangeLog.
866
8671999-01-14 Jesse Thilo <jthilo@gnu.org>
868
869 * 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:
870 Update FSF address.
871
8721999-01-14 Jesse Thilo <jthilo@gnu.org>
873
874 * doc/bison.texinfo: Fix formatting glitch.
875
876 * doc/bison.texinfo: Update FSF address.
877
8781999-01-14 Jesse Thilo <jthilo@gnu.org>
879
880 * acconfig.h: Update FSF address.
881
8821999-01-08 Jesse Thilo <jthilo@gnu.org>
883
884 * src/system.h:
885 Don't define PACKAGE here, since config.h defines it.
886
8871998-12-30 Jesse Thilo <jthilo@gnu.org>
888
889 * src/reader.c: Update copyright date.
890
891 * src/main.c:
892 Ditch sprintf to statically-sized buffers in fatal/warn functions in
893 favor of output directly to stderr (avoids buffer overruns).
894
895 * src/reader.c: Some checks for premature EOF.
896
897 * 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:
898 Use prototypes if the compiler understands them.
899
900 * src/files.c: Honor TMPDIR on Unix hosts.
901 Use prototypes if the compiler understands them.
902
903 * src/reader.c:
904 Fix a couple of buffer overrun bugs.
905 Use prototypes if the compiler understands them.
906
907 * src/system.h: Include unistd.h and ctype.h.
908 Use #ifdef instead of #if for NLS symbols.
909
9101998-12-30 Jesse Thilo <jthilo@gnu.org>
911
912 * doc/bison.texinfo:
913 Delete comment "consider using @set for edition number, etc..." since
914 we now are doing so.
915
9161998-12-30 Jesse Thilo <jthilo@gnu.org>
917
918 * configure.in:
919 Use prototypes if the compiler understands them.
920
921 * NEWS: Document 1.26 highlights.
922
923 * Makefile.am: Require Automake 1.3 or later.
924
925 * acconfig.h:
926 Use prototypes if the compiler understands them.
927
9281998-12-29 Jesse Thilo <jthilo@gnu.org>
929
930 * src/version.c:
931 Use VERSION symbol from automake for version number.
932
9331998-12-29 Jesse Thilo <jthilo@gnu.org>
934
935 * acconfig.h, configure.in, version.cin:
936 Use VERSION symbol from automake for version number.
937
9381998-11-28 Jesse Thilo <jthilo@gnu.org>
939
940 * Makefile.am:
941 Distribute original version of simple parser (bison.s1), not built
942 version (bison.simple).
943
9441998-11-28 Jesse Thilo <jthilo@gnu.org>
945
946 * doc/bison.texinfo: Add info dir entry.
947
948 * doc/bison.texinfo:
949 Let automake put version number into documentation.
950
9511998-11-26 Jesse Thilo <jthilo@gnu.org>
952
953 * src/bison.cld, src/build.com, src/vmshlp.mar:
954 Add non-RCS files from /gd/gnu/bison.
955
9561998-11-26 Jesse Thilo <jthilo@gnu.org>
957
958 * doc/bison.1:
959 Document the BISON_HAIRY and BISON_SIMPLE variables.
960
9611998-11-25 Jesse Thilo <jthilo@gnu.org>
962
963 * src/version.c: Build version.c automatically.
964
965 * src/reader.c:
966 Fix token numbering (used to start at 258, not 257).
967
968 * src/system.h: Include config.h.
969
970 * src/getargs.c: Update bug report address.
971
972 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
973 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
974
9751998-11-25 Jesse Thilo <jthilo@gnu.org>
976
977 * Makefile.am:
978 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
979
980 * configure.in, version.cin:
981 Build version.c automatically.
982
983 * AUTHORS: Add AUTHORS file.
984
985 * README: Update bug report address.
986
987 * bison.simple:
988 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
989
990 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
991 Add automake stuff.
992
9931998-11-25 Jesse Thilo <jthilo@gnu.org>
994
995 * doc/bison.texinfo: Clean up some formatting.
996
9971998-05-05 Richard Stallman <rms@gnu.org>
998
999 * doc/bison.texinfo:
1000 Explain better why to make a pure parser.
1001
10021998-01-05 Richard Stallman <rms@gnu.org>
1003
1004 * src/files.c (openfiles):
1005 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1006 find a temporary directory, if possible. Do not unlink files while
1007 they are open.
1008
10091997-08-25 Richard Stallman <rms@gnu.org>
1010
1011 * src/reader.c (stack_offset;):
1012 Change some warni to warns.
1013
1014 * src/lex.c (literalchar): Use warns, not warni.
1015
10161997-06-28 Richard Stallman <rms@gnu.org>
1017
1018 * src/bison.s1: Add a Bison version comment.
1019
1020 * src/main.c (fatal, warn, berror):
1021 Use program_name.
1022
10231997-06-28 Richard Stallman <rms@gnu.org>
1024
1025 * Makefile.in (bison_version): New variable.
1026 (dist): Use that variable.
1027 (bison.s1): Substitute the Bison version into bison.simple.
1028
1029 * bison.simple: Add a Bison version comment.
1030
10311997-06-18 Richard Stallman <rms@gnu.org>
1032
1033 * src/main.c (fatal, warn, berror):
1034 Make error messages standard.
1035 (toomany): Improve error message text.
1036
1037 * 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:
1038 new.h renamed to alloc.h.
1039
10401997-06-18 Richard Stallman <rms@gnu.org>
1041
1042 * Makefile.in: new.h renamed to alloc.h.
1043
10441997-05-24 Richard Stallman <rms@gnu.org>
1045
1046 * src/lex.c (literalchar):
1047 Fix the code for escaping \, " and '.
1048
1049 (lex): Avoid trouble when there are many chars
1050 to discard in a char literal with just several chars in it.
1051
10521997-05-17 Richard Stallman <rms@gnu.org>
1053
1054 * src/bison.s1:
1055 Use malloc, if using alloca is troublesome.
1056 (YYSTACK_USE_ALLOCA): New flag macro.
1057 Define it for some systems and compilers.
1058 (YYSTACK_ALLOC): New macro.
1059 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1060 If it was malloc'd, free it.
1061
10621997-05-17 Richard Stallman <rms@gnu.org>
1063
1064 * bison.simple:
1065 Use malloc, if using alloca is troublesome.
1066 (YYSTACK_USE_ALLOCA): New flag macro.
1067 Define it for some systems and compilers.
1068 (YYSTACK_ALLOC): New macro.
1069 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1070 If it was malloc'd, free it.
1071
10721997-04-23 Richard Stallman <rms@gnu.org>
1073
1074 * src/bison.s1:
1075 (alloca) [__hpux]: Always define as __builtin_alloca.
1076
10771997-04-23 Richard Stallman <rms@gnu.org>
1078
1079 * bison.simple:
1080 (alloca) [__hpux]: Always define as __builtin_alloca.
1081
10821997-04-22 Richard Stallman <rms@gnu.org>
1083
1084 * src/bison.s1:
1085 [__hpux]: Include alloca.h (right for HPUX 10)
1086 instead of declaring alloca (right for HPUX 9).
1087
1088 * src/bison.s1 (__yy_memcpy):
1089 Declare arg `count' as unsigned int.
1090 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1091
10921997-04-22 Richard Stallman <rms@gnu.org>
1093
1094 * bison.simple:
1095 [__hpux]: Include alloca.h (right for HPUX 10)
1096 instead of declaring alloca (right for HPUX 9).
1097
1098 * bison.simple (__yy_memcpy):
1099 Declare arg `count' as unsigned int.
1100 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1101
11021997-01-03 Richard Stallman <rms@gnu.org>
1103
1104 * src/allocate.c: [__STDC__ or _MSC_VER]:
1105 Declare calloc and realloc to return void *.
1106
11071997-01-02 Richard Stallman <rms@gnu.org>
1108
1109 * src/system.h:
1110 [_MSC_VER]: Include stdlib.h and process.h.
1111 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1112
1113 * src/main.c (main): Return FAILURE as a value.
1114 (printable_version): Declare arg as int, not char.
1115
11161997-01-02 Richard Stallman <rms@gnu.org>
1117
1118 * Makefile.in (dist):
1119 Explicitly check for symlinks, and copy them.
1120
11211996-12-19 Richard Stallman <rms@gnu.org>
1122
1123 * src/files.c:
1124 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1125
11261996-12-18 Paul Eggert <eggert@gnu.org>
1127
1128 * src/bison.s1 (yyparse):
1129 If __GNUC__ and YYPARSE_PARAM are both defined,
1130 declare yyparse to have a void * argument.
1131
11321996-12-18 Paul Eggert <eggert@gnu.org>
1133
1134 * bison.simple (yyparse):
1135 If __GNUC__ and YYPARSE_PARAM are both defined,
1136 declare yyparse to have a void * argument.
1137
11381996-12-17 Richard Stallman <rms@gnu.org>
1139
1140 * src/reduce.c (nbits): Add some casts.
1141
11421996-08-12 Richard Stallman <rms@gnu.org>
1143
1144 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1145
11461996-08-12 Richard Stallman <rms@gnu.org>
1147
1148 * bison.simple: Test _MSDOS as well as _MSDOS_.
1149
11501996-07-31 Richard Stallman <rms@gnu.org>
1151
1152 * src/bison.s1:
1153 [__sun && __i386]: Include alloca.h.
1154
11551996-07-31 Richard Stallman <rms@gnu.org>
1156
1157 * bison.simple:
1158 [__sun && __i386]: Include alloca.h.
1159
11601996-07-30 Richard Stallman <rms@gnu.org>
1161
1162 * src/bison.s1: Comment change.
1163
1164 * src/bison.s1: Test _MSDOS_, not MSDOS.
1165
11661996-07-30 Richard Stallman <rms@gnu.org>
1167
1168 * bison.simple: Comment change.
1169
1170 * bison.simple: Test _MSDOS_, not MSDOS.
1171
11721996-06-01 Richard Stallman <rms@gnu.org>
1173
1174 * 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:
1175 Insert `_' macro around many string constants.
1176
1177 * src/main.c:
1178 Insert `_' macro around many string constants.
1179
1180 (main): Call setlocale, bindtextdomain and textdomain.
1181
1182 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1183 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1184 [ENABLE_NLS]: Include libintl.h.
1185 [ENABLE_NLS] (gettext): Define.
1186 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1187 (N_, PACKAGE, LOCALEDIR): New macros.
1188
11891996-06-01 Richard Stallman <rms@gnu.org>
1190
1191 * POTFILES.in: New file.
1192
1193 * Makefile.in (allocate.o):
1194 Define target explicitly.
1195
1196 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1197 (LDFLAGS): Set to @LDFLAGS@.
1198 (configure): Run autoconf only if preceding `cd' succeeds.
1199 (bison.s1): Redirect output to temporary file then move the
1200 temporary to the target, rather than redirecting directly to bison.s1.
1201 (clean): Remove config.status and config.log.
1202 (distclean): Don't remove config.status here.
1203
12041996-05-12 Richard Stallman <rms@gnu.org>
1205
1206 * src/bison.s1:
1207 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1208
12091996-05-12 Richard Stallman <rms@gnu.org>
1210
1211 * bison.simple:
1212 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1213
12141996-05-11 Richard Stallman <rms@gnu.org>
1215
1216 * src/bison.s1 (__yy_memcpy):
1217 Really reorder the args, as was supposedly done on Feb 14 1995.
1218 (yyparse): Calls changed accordingly.
1219
12201996-05-11 Richard Stallman <rms@gnu.org>
1221
1222 * Makefile.in (dist): Don't use $(srcdir).
1223
1224 * bison.simple (__yy_memcpy):
1225 Really reorder the args, as was supposedly done on Feb 14 1995.
1226 (yyparse): Calls changed accordingly.
1227
12281996-01-27 Richard Stallman <rms@gnu.org>
1229
1230 * src/output.c (output_rule_data):
1231 Test YYERROR_VERBOSE in the conditional
1232 around the definition of ttyname.
1233
12341995-12-29 Richard Stallman <rms@gnu.org>
1235
1236 * src/bison.s1:
1237 Fix line numbers in #line commands.
1238
12391995-12-29 Richard Stallman <rms@gnu.org>
1240
1241 * bison.simple:
1242 Fix line numbers in #line commands.
1243
12441995-12-27 Richard Stallman <rms@gnu.org>
1245
1246 * src/bison.s1 (YYPARSE_PARAM_DECL):
1247 In C++, make it always null.
1248 (YYPARSE_PARAM_ARG): New macro.
1249 (yyparse): Use YYPARSE_PARAM_ARG.
1250
12511995-12-27 Richard Stallman <rms@gnu.org>
1252
1253 * bison.simple (YYPARSE_PARAM_DECL):
1254 In C++, make it always null.
1255 (YYPARSE_PARAM_ARG): New macro.
1256 (yyparse): Use YYPARSE_PARAM_ARG.
1257
12581995-11-29 Richard Stallman <rms@gnu.org>
1259
1260 * doc/bison.texinfo:
1261 Describe literal string tokens, %raw, %no_lines, %token_table.
1262
12631995-11-29 Daniel Hagerty <hag@gnu.org>
1264
1265 * doc/bison.texinfo: Fixed update date
1266
12671995-10-16 Richard Stallman <rms@gnu.org>
1268
1269 * src/version.c: Version 1.25.
1270
12711995-10-16 Richard Stallman <rms@gnu.org>
1272
1273 * NEWS: *** empty log message ***
1274
12751995-10-16 Richard Stallman <rms@gnu.org>
1276
1277 * doc/bison.1, doc/bison.rnh:
1278 Add new options.
1279
12801995-10-15 Richard Stallman <rms@gnu.org>
1281
1282 * src/vmsgetargs.c, src/getargs.c:
1283 Added -n, -k, and -raw switches.
1284 (noparserflag, toknumflag, rawtoknumflag): New variables.
1285
1286 * src/symtab.h (SALIAS):
1287 New #define for adding aliases to %token.
1288 (struct bucket): Added `alias' field.
1289
1290 * src/reduce.c (reduce_grammar):
1291 Revise error message.
1292 (print_notices): Remove final `.' from error message.
1293
1294 * src/reader.c (reader_output_yylsp):
1295 New function.
1296 (readgram): Use `#if 0' around code that accepted %command
1297 inside grammar rules: The documentation doesn't allow it,
1298 and it will fail since the %command processors scan for the next %.
1299 (parse_token_decl): Extended the %token
1300 declaration to allow a multi-character symbol as an alias.
1301 (parse_thong_decl): New function.
1302 (read_declarations): Added %thong declarations.
1303 (read_declarations): Handle NOOP to deal with allowing
1304 % declarations as another means to specify the flags.
1305 (readgram): Allow %prec prior to semantics embedded in a rule.
1306 (skip_to_char, read_declarations, copy_definition)
1307 (parse_token_decl, parse_start_decl, parse_type_decl)
1308 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1309 (get_type_name, copy_guard, copy_action, readgram)
1310 (get_type, packsymbols): Revised most error messages.
1311 Changed `fatal' to `warnxxx' to avoid aborting for error.
1312 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1313 (read_declarations): Improve the error message for
1314 an invalid character. Do not abort.
1315 (read_declarations, copy_guard, copy_action): Use
1316 printable_version to avoid unprintable characters in printed output.
1317 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1318 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1319 Allow the type of a non-terminal can be given
1320 more than once, as long as all specifications give the same type.
1321
1322 * src/output.c:
1323 (output_headers, output_trailers, output, output_gram)
1324 (output_rule_data): Implement noparserflag variable.
1325 Implement toknumflag variable.
1326 (output): Call reader_output_yylsp to output LTYPESTR.
1327
1328 * src/main.c (main):
1329 If reader sees an error, don't process the grammar.
1330 (fatals): Updated to not use VARARGS1.
1331 (printable_version, int_to_string, warn, warni, warns, warnss)
1332 (warnsss): New error reporting functions. Avoid abort for error.
1333
1334 * src/lex.h:
1335 Added THONG and NOOP for alias processing.
1336 Added SETOPT for the new code that allows setting options with %flags.
1337
1338 * src/lex.c:
1339 Include getopt.h. Add some extern decls.
1340 (safegetc): New function to deal with EOF gracefully.
1341 (literalchar); new function to deal with reading \ escapes.
1342 (lex): Use literalchar.
1343 (lex): Implemented "..." tokens.
1344 (literalchar, lex, parse_percent_token): Made tokenbuffer
1345 always contain the token. This includes growing the token
1346 buffer while reading an integer.
1347 (parse_percent_token): Replaced if-else statement with percent_table.
1348 (parse_percent_token): Added % declarations as another
1349 way to specify the flags -n, -l, and -r. Also added hooks for
1350 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1351 major changes to files.c.
1352 (lex) Retain in the incoming stream a character following
1353 an incorrect '/'.
1354 (skip_white_space, lex): Revised most error messages
1355 and changed fatal to warn to avoid aborting.
1356 (percent_table): Added %thong declarations.
1357
1358 * src/gram.h: Comment changes.
1359
1360 * src/files.c (openfiles, open_extra_files, done):
1361 Add faction flag
1362 and actfile file. Handle noparserflag. Both for -n switch.
1363
1364 * src/conflicts.c (resolve_sr_conflict):
1365 Remove use of alloca.
1366
13671995-06-01 Jim Meyering <meyering@gnu.org>
1368
1369 * doc/bison.texinfo: *** empty log message ***
1370
13711995-05-06 Richard Stallman <rms@gnu.org>
1372
1373 * src/bison.s1: Comment change.
1374
13751995-05-06 Richard Stallman <rms@gnu.org>
1376
1377 * bison.simple: Comment change.
1378
13791995-05-03 Richard Stallman <rms@gnu.org>
1380
1381 * src/version.c: Version now 1.24.
1382
1383 * src/bison.s1: Change distribution terms.
1384
1385 * src/version.c: Version now 1.23.
1386
13871995-05-03 Richard Stallman <rms@gnu.org>
1388
1389 * doc/bison.texinfo:
1390 Rewrite "Conditions for Using Bison".
1391 Update version to 1.24.
1392
13931995-05-03 Richard Stallman <rms@gnu.org>
1394
1395 * bison.simple: Change distribution terms.
1396
13971995-02-23 Richard Stallman <rms@gnu.org>
1398
1399 * src/files.c: Test __VMS_POSIX as well as VMS.
1400
14011995-02-14 Jim Meyering <meyering@gnu.org>
1402
1403 * src/bison.s1 (__yy_memcpy):
1404 Renamed from __yy_bcopy to avoid
1405 confusion. Reverse FROM and TO arguments to be consistent with
1406 those of memcpy.
1407
14081995-02-14 Jim Meyering <meyering@gnu.org>
1409
1410 * bison.simple (__yy_memcpy):
1411 Renamed from __yy_bcopy to avoid
1412 confusion. Reverse FROM and TO arguments to be consistent with
1413 those of memcpy.
1414
14151994-11-10 David J. MacKenzie <djm@gnu.org>
1416
1417 * NEWS: reformat
1418
1419 * NEWS: New file.
1420
1421 * Makefile.in (DISTFILES): Include NEWS.
1422
1423 * Makefile.in (DISTFILES):
1424 Include install-sh, not install.sh.
1425
1426 * configure.in: Update to Autoconf v2 macro names.
1427
14281994-10-05 David J. MacKenzie <djm@gnu.org>
1429
1430 * Makefile.in: fix typo
1431
1432 * Makefile.in (prefix, exec_prefix):
1433 Let configure set them.
1434
14351994-09-28 David J. MacKenzie <djm@gnu.org>
1436
1437 * Makefile.in: Set datadir to $(prefix)/share.
1438
14391994-09-15 Richard Stallman <rms@gnu.org>
1440
1441 * src/bison.s1:
1442 Update copyright notice and GPL version.
1443
14441994-09-15 Richard Stallman <rms@gnu.org>
1445
1446 * bison.simple:
1447 Update copyright notice and GPL version.
1448
14491994-07-12 Richard Stallman <rms@gnu.org>
1450
1451 * src/reduce.c, src/reader.c:
1452 entered into RCS
1453
14541994-05-05 David J. MacKenzie <djm@gnu.org>
1455
1456 * Makefile.in: entered into RCS
1457
14581994-03-26 Richard Stallman <rms@gnu.org>
1459
1460 * src/bison.s1: entered into RCS
1461
14621994-03-26 Richard Stallman <rms@gnu.org>
1463
1464 * bison.simple: entered into RCS
1465
14661994-03-25 Richard Stallman <rms@gnu.org>
1467
1468 * src/main.c: entered into RCS
1469
14701994-03-24 Richard Stallman <rms@gnu.org>
1471
1472 * src/conflicts.c: entered into RCS
1473
14741994-01-02 Richard Stallman <rms@gnu.org>
1475
1476 * Makefile.in: *** empty log message ***
1477
14781993-11-21 Richard Stallman <rms@gnu.org>
1479
1480 * src/bison.s1: *** empty log message ***
1481
14821993-11-21 Richard Stallman <rms@gnu.org>
1483
1484 * doc/bison.texinfo: entered into RCS
1485
1486 * doc/bison.texinfo: *** empty log message ***
1487
14881993-11-21 Richard Stallman <rms@gnu.org>
1489
1490 * bison.simple: *** empty log message ***
1491
14921993-10-25 David J. MacKenzie <djm@gnu.org>
1493
1494 * doc/bison.texinfo: *** empty log message ***
1495
14961993-10-19 Richard Stallman <rms@gnu.org>
1497
1498 * src/bison.s1: *** empty log message ***
1499
15001993-10-19 Richard Stallman <rms@gnu.org>
1501
1502 * bison.simple: *** empty log message ***
1503
15041993-10-14 Richard Stallman <rms@gnu.org>
1505
1506 * src/bison.s1: *** empty log message ***
1507
15081993-10-14 Richard Stallman <rms@gnu.org>
1509
1510 * bison.simple: *** empty log message ***
1511
15121993-09-14 David J. MacKenzie <djm@gnu.org>
1513
1514 * doc/bison.texinfo: *** empty log message ***
1515
15161993-09-13 Noah Friedman <friedman@gnu.org>
1517
1518 * Makefile.in: *** empty log message ***
1519
15201993-09-10 Richard Stallman <rms@gnu.org>
1521
1522 * src/conflicts.c: *** empty log message ***
1523
1524 * src/system.h: entered into RCS
1525
15261993-09-10 Richard Stallman <rms@gnu.org>
1527
1528 * doc/bison.1: entered into RCS
1529
15301993-09-06 Noah Friedman <friedman@gnu.org>
1531
1532 * src/version.c: entered into RCS
1533
15341993-09-06 Noah Friedman <friedman@gnu.org>
1535
1536 * Makefile.in: *** empty log message ***
1537
15381993-07-30 David J. MacKenzie <djm@gnu.org>
1539
1540 * Makefile.in: *** empty log message ***
1541
15421993-07-24 Richard Stallman <rms@gnu.org>
1543
1544 * src/bison.s1: *** empty log message ***
1545
15461993-07-24 Richard Stallman <rms@gnu.org>
1547
1548 * bison.simple: *** empty log message ***
1549
15501993-07-08 David J. MacKenzie <djm@gnu.org>
1551
1552 * Makefile.in: *** empty log message ***
1553
15541993-07-04 Richard Stallman <rms@gnu.org>
1555
1556 * src/bison.s1: *** empty log message ***
1557
15581993-07-04 Richard Stallman <rms@gnu.org>
1559
1560 * bison.simple: *** empty log message ***
1561
15621993-06-26 David J. MacKenzie <djm@gnu.org>
1563
1564 * src/getargs.c: entered into RCS
1565
15661993-06-26 David J. MacKenzie <djm@gnu.org>
1567
1568 * doc/bison.texinfo: *** empty log message ***
1569
1570 * doc/bison.1: New file.
1571
15721993-06-25 Richard Stallman <rms@gnu.org>
1573
1574 * src/getargs.c: New file.
1575
15761993-06-16 Richard Stallman <rms@gnu.org>
1577
1578 * src/bison.s1: *** empty log message ***
1579
15801993-06-16 Richard Stallman <rms@gnu.org>
1581
1582 * bison.simple: *** empty log message ***
1583
15841993-06-03 Richard Stallman <rms@gnu.org>
1585
1586 * src/bison.s1: New file.
1587
15881993-06-03 Richard Stallman <rms@gnu.org>
1589
1590 * doc/bison.texinfo: *** empty log message ***
1591
15921993-06-03 Richard Stallman <rms@gnu.org>
1593
1594 * bison.simple: New file.
1595
15961993-05-19 Richard Stallman <rms@gnu.org>
1597
1598 * doc/bison.texinfo: New file.
1599
16001993-05-07 Noah Friedman <friedman@gnu.org>
1601
1602 * Makefile.in: *** empty log message ***
1603
16041993-04-28 Noah Friedman <friedman@gnu.org>
1605
1606 * src/reader.c: *** empty log message ***
1607
16081993-04-23 Noah Friedman <friedman@gnu.org>
1609
1610 * src/alloc.h: entered into RCS
1611
16121993-04-20 David J. MacKenzie <djm@gnu.org>
1613
1614 * src/version.c: *** empty log message ***
1615
1616 * src/files.c, src/allocate.c:
1617 entered into RCS
1618
1619 * src/reader.c: *** empty log message ***
1620
1621 * src/lex.c: entered into RCS
1622
1623 * src/conflicts.c: New file.
1624
1625 * src/symtab.c: entered into RCS
1626
1627 * src/alloc.h: New file.
1628
1629 * src/LR0.c: entered into RCS
1630
16311993-04-18 Noah Friedman <friedman@gnu.org>
1632
1633 * src/reader.c: New file.
1634
1635 * src/version.c: *** empty log message ***
1636
16371993-04-18 Noah Friedman <friedman@gnu.org>
1638
1639 * Makefile.in: *** empty log message ***
1640
16411993-04-17 Noah Friedman <friedman@gnu.org>
1642
1643 * Makefile.in: *** empty log message ***
1644
16451993-04-15 Richard Stallman <rms@gnu.org>
1646
1647 * src/main.c, src/files.c:
1648 New file.
1649
16501993-04-15 Noah Friedman <friedman@gnu.org>
1651
1652 * configure.in: entered into RCS
1653
1654 * configure.in: *** empty log message ***
1655
1656 * configure.in: New file.
1657
16581993-04-14 Richard Stallman <rms@gnu.org>
1659
1660 * Makefile.in: New file.
1661
16621993-04-13 Richard Stallman <rms@gnu.org>
1663
1664 * src/version.c: New file.
1665
16661993-03-25 Richard Stallman <rms@gnu.org>
1667
1668 * src/output.c: entered into RCS
1669
16701992-09-25 Richard Stallman <rms@gnu.org>
1671
1672 * configure.bat: entered into RCS
1673
16741992-06-22 Richard Stallman <rms@gnu.org>
1675
1676 * src/vmsgetargs.c: entered into RCS
1677
16781992-06-22 Richard Stallman <rms@gnu.org>
1679
1680 * doc/bison.rnh: entered into RCS
1681
16821992-04-20 David J. MacKenzie <djm@gnu.org>
1683
1684 * README: entered into RCS
1685
16861992-01-22 Richard Stallman <rms@gnu.org>
1687
1688 * src/machine.h: entered into RCS
1689
16901991-12-21 Richard Stallman <rms@gnu.org>
1691
1692 * src/lalr.c, src/closure.c:
1693 entered into RCS
1694
16951991-12-20 Richard Stallman <rms@gnu.org>
1696
1697 * src/state.h: entered into RCS
1698
16991991-12-18 Richard Stallman <rms@gnu.org>
1700
1701 * src/print.c, src/nullable.c, src/derives.c:
1702 entered into RCS
1703
17041991-11-03 David J. MacKenzie <djm@gnu.org>
1705
1706 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1707 entered into RCS
1708
17091988-09-09 Richard Stallman <rms@gnu.org>
1710
1711 * src/bison.hairy: entered into RCS
1712
17131987-12-16 Richard Stallman <rms@gnu.org>
1714
1715 * REFERENCES: entered into RCS