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