]> git.saurik.com Git - bison.git/blame - ChangeLog
Don't use `atexit'.
[bison.git] / ChangeLog
CommitLineData
d8880f69
AD
12000-11-03 Akim Demaille <akim@epita.fr>
2
3 Don't use `atexit'.
4
5 * src/files.c (obstack_save): New function.
6 (done): Rename as...
7 (output_files): this.
8 Use `obstack_save'.
9 * src/main.c (main): Don't use `atexit' to register `done', since
10 it no longer has to remove tmp files, just call `output_files'
11 when there are no errors.
12
0dbb648e
AD
132000-11-02 Akim Demaille <akim@epita.fr>
14
15 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
16 `unlink': it's no longer used.
17 * src/files.h: Formatting changes.
18
896fe5c1
AD
192000-11-02 Akim Demaille <akim@epita.fr>
20
21 Remove the last uses of mktemp and unlink/delete.
22
23 * src/files.c (fdefines, ftable): Removed.
24 (defines_ostack, table_obstack): New.
25 Adjust dependencies of the former into uses of the latter.
26 * src/output.c (output_short_or_char_table, output_short_table):
27 Convert to using obstacks.
28 * src/reader.c (copy_comment2): Accept one FILE * and two
29 obstacks.
30 (output_token_defines, reader_output_yylsp): Use obstacks.
31 * src/system.h (obstack_fgrow3): New.
32
dd60faec
AD
332000-11-01 Akim Demaille <akim@epita.fr>
34
35 Change each use of `fattrs' into a use of `attrs_obstack'.
36
37 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
38 * src/files.c (fattrs): Remove.
39 (attrs_obstack): New.
40 Adjust all dependencies.
41 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
42
8c7ebe49
AD
432000-11-01 Akim Demaille <akim@epita.fr>
44
45 Introduce obstacks.
46 Change each use of `faction' into a use of `action_obstack'.
47
48 * lib/obstack.h, lib/obstack.c: New files.
49 * src/files.c (faction): Remove.
50 (action_obstack): New.
51 Adjust all dependencies.
52
77aee789
AD
532000-10-20 Akim Demaille <akim@epita.fr>
54
55 * lib/quote.h (PARAMS): New macro. Use it.
56
43591cec
AD
572000-10-16 Akim Demaille <akim@epita.fr>
58
59 * src/output.c (output_short_or_char_table): New function.
60 (output_short_table, output_token_translations): Use it.
61 (goto_actions): Use output_short_table.
62
1e9798d5
AD
632000-10-16 Akim Demaille <akim@epita.fr>
64
65 * src/symtab.c (bucket_new): New function.
66 (getsym): Use it.
67
68 * src/output.c (output_short_table): New argument to display the
69 comment associated with the table.
70 Adjust dependencies.
71 (output_gram): Use it.
72 (output_rule_data): Nicer output layout for YYTNAME.
73
f282676b
AD
742000-10-16 Akim Demaille <akim@epita.fr>
75
76 * src/lex.c (read_typename): New function.
77 (lex): Use it.
78 * src/reader.c (copy_dollar): Likewise.
79
550a72a3
AD
802000-10-16 Akim Demaille <akim@epita.fr>
81
82 * src/reader.c (copy_comment2): Expect the input stream to be on
83 the `/' which is suspected to open a comment, instead of being
84 called after `//' or `/*' was read.
85 (copy_comment, copy_definition, parse_union_decl, copy_action)
86 (copy_guard): Adjust.
87
131e2fef
AD
882000-10-16 Akim Demaille <akim@epita.fr>
89
90 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
91 `read_signed_integer'.
92
79282c5a
AD
932000-10-16 Akim Demaille <akim@epita.fr>
94
95 * src/reader.c (copy_dollar): New function.
96 (copy_guard, copy_action): Use it.
97
ff4a34be
AD
982000-10-16 Akim Demaille <akim@epita.fr>
99
100 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
101 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
102 New files, from Fileutils 4.0.27.
103 * src/main.c (printable_version): Remove.
104 * src/lex.c, src/reader.c: Use `quote'.
105
1062000-10-04 Akim Demaille <akim@epita.fr>
107
108 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
109
14ded682
AD
1102000-10-04 Akim Demaille <akim@epita.fr>
111
112 * doc/bison.texinfo: Various typos spotted by Neil Booth.
113
8e03724b
AD
1142000-10-04 Akim Demaille <akim@epita.fr>
115
116 When a literal string is used to define two different tokens,
117 `bison -v' segfaults.
118 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
119
120 * tests/regression.m4: New file.
121 Include the core of the sample provided by Piotr Gackiewicz.
122 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
123 properly.
124
a9e64249
AD
1252000-10-04 Akim Demaille <akim@epita.fr>
126
127 * src/reader.c (parse_expect_decl): Keep `count' within the size
128 of `buffer'.
129 From Neil Booth.
130
da9abf43
AD
1312000-10-02 Paul Eggert <eggert@twinsun.com>
132
133 * bison.s1 (yyparse): Assign the default value
134 unconditionally, to avoid a GCC warning and make the parser a
135 tad smaller.
136
c33638bb
AD
1372000-10-02 Akim Demaille <akim@epita.fr>
138
139 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
140 options.
141
444c570a
AD
1422000-10-02 Akim Demaille <akim@epita.fr>
143
144 * src/derives.c, src/print.c, src/reduce.c: To ease the
145 translation, move some `\n' out of the translated strings.
146
89cab50d
AD
1472000-10-02 Akim Demaille <akim@epita.fr>
148
149 The location tracking mechanism is precious for parse error
150 messages. Nevertheless, it is enabled only when `@n' is used in
151 the grammar, which is a different issue (you can use it in error
152 message, but not in the grammar per se). Therefore, there should
153 be another means to enable it.
154
155 * src/getargs.c (getargs): Support `--locations'.
156 (usage): Report it.
157 * src/getargs.h (locationsflag): Export it.
158 * src/lex.c (percent_table): Support `%locations'.
159 * src/reader.c (yylsp_needed): Remove this variable, now replaced
160 with `locationsflag'.
161 * doc/bison.texinfo: Document `--locations' and `%locations'.
162 Sort the options.
163 * tests/calc.m4: Test it.
164
165 For regularity of the names, replace each
166 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
167 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
168 In addition replace each `flag' with `_flag'.
169
d6c2cba0
AD
1702000-10-02 Akim Demaille <akim@epita.fr>
171
172 Also test parse error messages, including with YYERROR_VERBOSE.
173
174 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
175 associative).
176 Use it to check the computations.
177 Use it to check `nonassoc' is honored.
178 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
179 `--yyerror-verbose'.
180 (_AT_CHECK_CALC): Adjust to this option.
181 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
182
5a35a6cb
AD
1832000-10-02 Akim Demaille <akim@epita.fr>
184
185 Test also `--verbose', `--defines' and `--name-prefix'. Testing
186 the latter demonstrates a flaw in the handling of non debugging
187 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
188 was used in order to simplify:
189
190 #if YYDEBUG
191 if (yydebug)
192 {
193 ...
194 }
195 #endif
196
197 into
198
199 if (yydebug)
200 {
201 ...
202 }
203
204 unfortunately this leads to a CPP conflict when
205 `--name-prefix=foo' is used since it produces `#define yydebug
206 foodebug'.
207
208 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
209 (YYDPRINTF): New macro.
210 Spread its use.
211 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
212 the bison options.
213 Also test `--verbose', `--defines' and `--name-prefix'.
214
71da9eea
AD
2152000-10-02 Akim Demaille <akim@epita.fr>
216
217 Improve the readability of the produced parsers.
218
219 * src/bison.s1: Formatting changes.
220 Improve the comment related to the `$' mark.
221 (yydefault): Don't fall through to `yyresume': `goto' there.
222 * src/output.c (output_parser): When the `$' is met, skip the end
223 of its line.
224 New variable, `number_of_dollar_signs', to check there's exactly
225 one `$' in the parser skeleton.
226
95e36146
AD
2272000-10-02 Akim Demaille <akim@epita.fr>
228
229 * lib/xstrdup.c: New file, from the fileutils.
230 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
231 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
232 instead of strlen + xmalloc + strcpy.
233 * src/symtab.c (copys): Remove, use xstrdup instead.
234
d7020c20
AD
2352000-10-02 Akim Demaille <akim@epita.fr>
236
237 * src/gram.h (associativity): New enum type which replaces the
238 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
239 `right_assoc', `left_assoc' and `non_assoc'.
240 Adjust all dependencies.
241 * src/reader.c: Formatting changes.
242 (LTYPESTR): Don't define it, use it as a literal in
243 `reader_output_yylsp'.
244 * src/symtab.h (symbol_class): New enum type which replaces the
245 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
246 `sunknown', `stoken and `snterm'.
247
1916f98e
AD
2482000-10-02 Akim Demaille <akim@epita.fr>
249
250 * src/getargs.c (fixed_outfiles): Rename as...
251 (yaccflag): for consistency and accuracy.
252 Adjust dependencies.
253
d7913476
AD
2542000-10-02 Akim Demaille <akim@epita.fr>
255
256 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
257 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
258 difficult and introduced a lot of core dump. It turns out that
259 Bison used an implementation of `xmalloc' based on `calloc', and
260 at various places it does depend upon the initialization to 0. I
261 have not tried to isolate the pertinent places, and all the former
262 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
263 someone should address this issue.
264
265 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
266 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
267 files.
268 Adjust dependencies.
269 * src/warshall.h: New file.
270 Propagate.
271
340ef489
AD
2722000-10-02 Akim Demaille <akim@epita.fr>
273
274 Various anti-`extern in *.c' changes.
275
276 * src/system.h: Include `assert.h'.
277
b2ca4022
AD
2782000-10-02 Akim Demaille <akim@epita.fr>
279
280 * src/state.h (nstates, final_state, first_state, first_shift)
281 (first_reduction): Move their exportation from here...
282 * src/LR0.h: to here.
283 Adjust dependencies.
284 * src/getargs.c (statisticsflag): New variable.
285 Add support for `--statistics'.
286 Adjust dependencies.
287
288 Remove a lot of now useless `extern' statements in most files.
289
403b315b
AD
2902000-10-02 Akim Demaille <akim@epita.fr>
291
292 * src/LR0.h: New file.
293 Propagate its use.
294
07a58c13
AD
2952000-10-02 Akim Demaille <akim@epita.fr>
296
297 * src/print.h: New file.
298 Propagate its use.
299 * src/print.c: Formatting and ordering changes.
300 (verbose, terse): Replace with...
301 (print_results): this new function.
302 Adjust dependencies.
303
0619caf0
AD
3042000-10-02 Akim Demaille <akim@epita.fr>
305
306 * src/conflicts.c (conflict_report): New function.
307 (conflict_log, verbose_conflict_log): Replace with...
308 (print_conflicts): this function.
309 Adjust dependencies.
310 * src/conflicts.h: New file.
311 Propagate its inclusion.
312
3519ec76
AD
3132000-10-02 Akim Demaille <akim@epita.fr>
314
315 * src/nullable.h: New file.
316 Propagate its inclusion.
317 * src/nullable.c: Formatting changes.
318
015acc48
AD
3192000-10-02 Akim Demaille <akim@epita.fr>
320
321 * src/reduce.h: New file.
322 Propagate its inclusion.
323 * src/reduce.c: Topological sort and other formatting changes.
324 (bool, TRUE, FALSE): Move their definition to...
325 * src/system.h: here.
326
8963a27b
AD
3272000-10-02 Akim Demaille <akim@epita.fr>
328
329 * src/files.c: Formatting changes.
330 (tryopen, tryclose, openfiles): Rename as...
331 (xfopen, xfclose, open_files): this.
332 (stringappend): static.
333 * src/files.h: Complete the list of exported symbols.
334 Propagate its use.
335
a70083a3
AD
3362000-10-02 Akim Demaille <akim@epita.fr>
337
338 * src/reader.h: New file.
339 Propagate its use instead of tedious list of `extern' and
340 prototypes.
341 * src/reader.c: Formatting changes, topological sort,
342 s/register//.
343
abadc117
AD
3442000-10-02 Akim Demaille <akim@epita.fr>
345
346 * src/lex.h: Prototype `lex.c' exported functions.
347 * src/reader.c: Adjust.
348 * src/lex.c: Formatting changes.
349 (safegetc): Rename as...
350 (xgetc): this.
351
720d742f
AD
3522000-10-02 Akim Demaille <akim@epita.fr>
353
354 * src/lalr.h: New file.
355 Propagate its inclusion instead of prototypes and `extern'.
356 * src/lalr.c: Formatting changes, topological sorting etc.
357
f2acea59
AD
3582000-10-02 Akim Demaille <akim@epita.fr>
359
360 * src/output.c (token_actions): Introduce a temporary array,
361 YYDEFACT, that makes it possible for this function to use
362 output_short_table.
363
d019d655
AD
3642000-10-02 Akim Demaille <akim@epita.fr>
365
366 `user_toknums' is output as a `short[]' in `output.c', while it is
367 defined as a `int[]' in `reader.c'. For consistency with the
368 other output tables, `user_toknums' is now defined as a table of
369 shorts.
370
371 * src/reader.c (user_toknums): Be a short table instead of an int
372 table.
373 Adjust dependencies.
374
375 Factor the short table outputs.
376
377 * src/output.c (output_short_table): New function.
378 * src/output.c (output_gram, output_stos, output_rule_data)
379 (output_base, output_table, output_check): Use it.
380
6c89f1c1
AD
3812000-10-02 Akim Demaille <akim@epita.fr>
382
383 * src/output.c (output): Topological sort of the functions, in
384 order to get rid of the `static' prototypes.
385 No longer use `register'.
386 * src/output.h: New file.
387 Propagate its inclusion in files explicitly prototyping functions
388 from output.c.
389
d9efd181
AD
3902000-09-21 Akim Demaille <akim@epita.fr>
391
392 * src/atgeneral.m4: Update from Autoconf.
393
c29240e7 3942000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
395
396 * src/closure.h: New file.
397 * src/closure.c: Formatting changes, topological sort over the
398 functions, use of closure.h.
399 (initialize_closure, finalize_closure): Rename as...
400 (new_closure, free_closure): these. Adjust dependencies.
401 * src/LR0.c: Formatting changes, topological sort, use of
402 cloture.h.
403 (initialize_states): Rename as...
404 (new_states): this.
405 * src/Makefile.am (noinst_HEADERS): Adjust.
406
499daa50
AD
4072000-09-20 Akim Demaille <akim@epita.fr>
408
409 * src/acconfig.h: Don't protect config.h against multiple
410 inclusion.
411 Don't define PARAMS.
412 * src/system.h: Define PARAMS.
413 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
414 purpose of config.h. system.h must not try to fix wrong
415 definitions in config.h.
416
cc84fd5d
AD
4172000-09-20 Akim Demaille <akim@epita.fr>
418
419 * src/derives.h: New file.
420 * src/main.c, src/derives.h: Use it.
421 Formatting changes.
422 * src/Makefile.am (noinst_HEADERS): Adjust.
423
db5b3a89
AD
4242000-09-20 Akim Demaille <akim@epita.fr>
425
426 * tests/atgeneral.m4: Update from Autoconf.
427 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
428 (AT_CHECK_CALC): New macros.
429 Use these macros to test bison with options `', `--raw',
430 `--debug', `--yacc', `--yacc --debug'.
431
ceed8467
AD
4322000-09-19 Akim Demaille <akim@epita.fr>
433
434 * src/output.c: Formatting changes.
435 * src/machine.h: Remove, leaving its contents in...
436 * src/system.h: here.
437 Include stdio.h.
438 Adjust all dependencies on stdio.h and machine.h.
439 * src/getargs.h: New file.
440 Let all `extern' declarations about getargs.c be replaced with
441 inclusion of `getargs.h'.
442 * src/Makefile.am (noinst_HEADERS): Adjust.
443
444 * tests/calc.m4 (yyin): Be initialized in main, not on the global
445 scope.
446 (yyerror): Returns void, not int.
447 * doc/bison.texinfo: Formatting changes.
448
05a1d24b
AD
4492000-09-19 Akim Demaille <akim@epita.fr>
450
451 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
452 portable.
453
cbd25751
AD
4542000-09-18 Akim Demaille <akim@epita.fr>
455
456 * configure.in: Append WARNING_CFLAGS to CFLAGS.
457 * src/Makefile.am (INCLUDES): Don't.
458 Be ready to fetch headers in lib/.
459
13863333
AD
4602000-09-18 Akim Demaille <akim@epita.fr>
461
462 * doc/bison.texinfo: Update the copyright.
463 ANSIfy and GNUify the examples.
464 Remove the old menu.
465
0d533154
AD
4662000-09-18 Akim Demaille <akim@epita.fr>
467
468 First set of tests: use the `calc' example from the documentation.
469
470 * src/bison.s1 (yyparse): Condition the code using `yytname' which
471 is defined only when YYDEBUG is.
472 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
473 * src/files.c (tryopen, tryclose): Formatting changes.
474 Move to the top and be static.
475 * src/reader.c (read_signed_integer): Likewise.
476 * tests/calc.m4: New file.
477 * Makefile.am, suite.m4: Adjust.
478 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
479
e79137ac
AD
4802000-09-18 Akim Demaille <akim@epita.fr>
481
482 Add support for an Autotest test suite for Bison.
483
484 * m4/m4.m4, m4/atconfig.m4: New files.
485 * m4/Makefile.am (EXTRA_DIST): Adjust.
486 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
487 files.
488 * src/getargs.c: Display a more standard --version message.
489 * src/reader.c (reader): Formatting changes.
490 No longer depend upon VERSION_STRING.
491 * configure.in: No longer use `dnl'.
492 Set up the test suite and the new directory `tests/.
493 (VERSION_STRING): Remove.
494
27821bff
AD
4952000-04-14 Akim Demaille <akim@epita.fr>
496
497 * src/reader.c (copy_comment2): New function, same as former
498 `copy_comment', but outputs into two FILE *.
499 (copy_comment): Use it.
500 (parse_union_decl): Use it.
501 (get_type, parse_start_decl): Use the same `invalid' message.
502 (parse_start_decl, parse_union_decl): Use the same `multiple'
503 message.
504 (parse_union_decl, copy_guard, copy_action): Use the same
505 `unmatched' message.
506 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
507
cfe5fbc0
AD
5082000-03-31 Akim Demaille <akim@epita.fr>
509
510 * src/files.c (tryopen, tryclose): Move to the top.
511 Be static.
512
cb7db13e
AD
5132000-03-31 Akim Demaille <akim@epita.fr>
514
515 * src/main.c (main): Don't call `done', exit does it.
516
a0f6b076
AD
5172000-03-31 Akim Demaille <akim@epita.fr>
518
36281465
AD
519 * allocate.c: s/return (foo)/return foo/.
520 * lalr.c: Likewise.
521 * LR0.c: Likewise.
522 * output.c: Likewise.
523 * reader.c: Likewise.
524 * symtab.c: Likewise.
525 * vmsgetargs.c: Likewise.
526
5272000-03-31 Akim Demaille <akim@epita.fr>
528
529 Clean up the error reporting functions.
a0f6b076
AD
530
531 * src/report.c: New file.
532 * src/report.h: Likewise.
533 * src/Makefile.am: Adjust.
534 * m4/error.m4: New file.
535 * m4/Makefile.am: Adjust.
536 * configure.in (jm_PREREQ_ERROR): Call it.
537 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
538 Remove.
539 (fatal, fatals): Remove. All callers use complain.c::fatal.
540 (warn, warni, warns, warnss, warnss): Remove. All callers use
541 complain.c::complain.
542 (toomany): Remove, use fatal instead.
543 * src/files.c (done): No argument, use complain_message_count.
544 * src/main.c (main): Register `done' to `atexit'.
545
546 * src/getargs.c (usage): More `fputs', less `fprintf'.
547
18539825
AD
5482000-03-28 Akim Demaille <akim@epita.fr>
549
550 * lib/: New directory.
551 * Makefile.am (SUBDIRS): Adjust.
552 * configure.in: Adjust.
553 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
554 useless.
555 * src/alloca.c: Moved to lib/.
556 * src/getopt.c: Likewise.
557 * src/getopt1.c: Likewise.
558 * src/getopt.h: Likewise.
559 * src/ansi2knr.c: Likewise.
560 * src/ansi2knr.1: Likewise.
561 * src/Makefile.am: Adjust.
562 * lib/Makefile.am: New file.
563
9f306f2a
AD
5642000-03-28 Akim Demaille <akim@epita.fr>
565
566 * src/getargs.c (usage): Refresh the help message.
567
0ba347b6
AD
5682000-03-17 Akim Demaille <akim@epita.fr>
569
570 * src/getopt1.c: Updated from textutils 2.0e
571 * src/getopt.c: Likewise.
572 * src/getopt.h: Likewise.
573
dbe7f271
AD
5742000-03-17 Akim Demaille <akim@epita.fr>
575
576 * src/Makefile.am (bison.simple): Fix the awk program: quote only
577 the file name, not the whole `#line LINE FILE'.
578
75bbe78d
AD
5792000-03-17 Akim Demaille <akim@epita.fr>
580
581 On syntax errors, report the token on which we choked.
582
aa5fd0ee
AD
583 * src/bison.s1 (yyparse): In the label yyerrlab, when
584 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 585
7b306f52
AD
5862000-03-17 Akim Demaille <akim@epita.fr>
587
aa5fd0ee 588 * src/reader.c (copy_at): New function.
7b306f52
AD
589 (copy_guard): Use it.
590 (copy_action): Use it.
591
e87b5700
AD
5922000-03-17 Akim Demaille <akim@epita.fr>
593
594 Be kind to translators, save some useless translations.
595
aa5fd0ee 596 * src/main.c (banner): New function.
e87b5700
AD
597 (fatal_banner): Use it.
598 (warn_banner): Use it.
599
ae3c3164
AD
6002000-03-17 Akim Demaille <akim@epita.fr>
601
aa5fd0ee
AD
602 * src/reader.c (copy_definition): Use copy_string and
603 copy_comment. Removed now unused `match', `ended',
604 `cplus_comment'.
ae3c3164
AD
605 (copy_comment, copy_string): Moved, to be visible from
606 copy_definition.
607
4dc58e7c
AD
6082000-03-17 Akim Demaille <akim@epita.fr>
609
aa5fd0ee
AD
610 * src/reader.c (copy_string): Declare `static inline'. No
611 problems with inline, since it is checked by configure.
4dc58e7c
AD
612 (copy_comment): Likewise.
613
0a6384c4
AD
6142000-03-17 Akim Demaille <akim@epita.fr>
615
aa5fd0ee 616 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 617
3cef001a
AD
6182000-03-17 Akim Demaille <akim@epita.fr>
619
aa5fd0ee 620 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
621 (copy_action): Use it. Removed now unused `match', `ended',
622 `cplus_comment'.
623 (copy_guard): Likewise.
624
ca36d2ef
AD
6252000-03-17 Akim Demaille <akim@epita.fr>
626
aa5fd0ee 627 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
628 (copy_action): Use it.
629 (copy_guard): Likewise.
630
6666f98f
AD
6312000-03-17 Akim Demaille <akim@epita.fr>
632
633 Change the handling of @s so that they behave exactly like $s.
634 There is now a pseudo variable @$ (readble and writable), location
635 of the lhs of the rule (by default ranging from the location of
636 the first symbol of the rhs, to the location of the last symbol,
637 or, if the rhs is empty, YYLLOC).
638
639 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
640 yyval.
641 (yyparse): When providing a default semantic action, provide a
642 default location action.
643 (after the $): No longer change `*YYLSP', just stack YYLOC the
644 same way you stack YYVAL.
645 * src/reader.c (read_declarations): Use warns.
646 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
647 (copy_action, case '@'): Likewise.
648 Use a standard error message, to save useless work from
649 translators.
650
41aca2e0
AD
6512000-03-17 Akim Demaille <akim@epita.fr>
652
aa5fd0ee
AD
653 * src/bison.s1: Formatting and cosmetics changes.
654 * src/reader.c: Likewise.
41aca2e0
AD
655 Update the Copyright notice.
656
dc08c1d5
AD
6572000-03-17 Akim Demaille <akim@epita.fr>
658
aa5fd0ee
AD
659 * src/bison.s1 (#line): All set to `#line' only, since the
660 Makefile now handles them.
dc08c1d5 661
9ee3c97b
AD
6622000-03-16 Akim Demaille <akim@epita.fr>
663
664 * src/output.c (output_rule_data): Output the documentation of
665 some of the tables.
666 (Copyright notice): Update.
667 Formatting changes.
668
0de741ca
AD
6692000-03-16 Akim Demaille <akim@epita.fr>
670
671 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
672 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
673 One `#if YYDEBUG' remains, since it uses variables which are
674 defined only if `YYDEBUG != 0'.
675
bb10be54
AD
6762000-03-16 Akim Demaille <akim@epita.fr>
677
678 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
679 and related variables so that the similarities are highlighted.
680
b07b484a
AD
6812000-03-16 Akim Demaille <akim@epita.fr>
682
683 * src/bison.s1: Properly indent CPP directives.
684
361f60b3
AD
6852000-03-16 Akim Demaille <akim@epita.fr>
686
687 * src/bison.s1: Properly indent the `alloca' CPP section.
688
8c44d3ec
AD
6892000-03-16 Akim Demaille <akim@epita.fr>
690
691 Do not hard code values of directories in `configure.in'.
692 Update the `configure' tool chain.
693
694 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
695 src/makefile.am.
696 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
697 (AC_OUTPUT): Add m4/Makefile.
698 Bump to bison 1.28a, 1.29 has never been released.
699 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
700 handled via src/Makefile.am.
701 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
702 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
703 autoheader.
704 * Makefile.am (SUBDIRS): Add m4.
705 (ACLOCAL_AM_FLAGS): New variable.
706 (AUTOMAKE_OPTIONS): Add check-news.
707 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
708 the proper line number and file name.
709 (DEFS): Propagate the location of bison library files and of the
710 locale files.
711 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
712 builddir.
713 * acinclude.m4: Remove, replaced by the directory m4.
714 * m4/Makefile.am (EXTRA_DIST): New variable.
715 * m4/gettext.m4: New file, from the fileutils.
716 * m4/lcmessage.m4: Likewise
717 * m4/progtest.m4: Likewise.
718 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
719
f95997e7
AD
7202000-03-10 Akim Demaille <akim@epita.fr>
721
722 * src/closure.c:
723 Formatting changes of various comments.
724 Respect the GNU coding standards at various places.
725 Don't use `_()' when no translation is needed.
726
7271999-12-13 Jesse Thilo <jthilo@gnu.org>
728
729 * src/files.c:
730 OS/2 honors TMPDIR environment variable.
731
7321999-12-13 Jesse Thilo <jthilo@gnu.org>
733
734 * doc/bison.texinfo: Tweaked spelling and grammar.
735 Updated ISBN.
736 Removed reference to price of printed copy.
737 Mention BISON_SIMPLE and BISON_HAIRY.
738
7391999-12-13 Jesse Thilo <jthilo@gnu.org>
740
741 * configure.in, NEWS:
742 Bison 1.29 released.
743
7441999-10-27 Jesse Thilo <jthilo@gnu.org>
745
746 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
747 Added reference card.
748
7491999-07-26 Jesse Thilo <jthilo@gnu.org>
750
751 * po/ru.po: Added Russian translation.
752
7531999-07-26 Jesse Thilo <jthilo@gnu.org>
754
755 * configure.in: Added Russian translation.
756
7571999-07-06 Jesse Thilo <jthilo@gnu.org>
758
759 * configure.in, NEWS, README:
760 Released version 1.28.
761
7621999-06-14 Jesse Thilo <jthilo@gnu.org>
763
764 * src/system.h:
765 Squashed redefinition warning on some systems.
766
767 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
768 Have configure build version string instead of relying on ANSI string
769 concatentation.
770
7711999-06-14 Jesse Thilo <jthilo@gnu.org>
772
773 * po/POTFILES.in: Got rid of version.c.
774
7751999-06-14 Jesse Thilo <jthilo@gnu.org>
776
777 * acconfig.h, configure.in:
778 Have configure build version string instead of relying on ANSI string
779 concatentation.
780
7811999-06-08 Jesse Thilo <jthilo@gnu.org>
782
783 * doc/bison.1:
784 Dropped mention of `+' for long-named options.
785
7861999-05-30 Jesse Thilo <jthilo@gnu.org>
787
788 * src/files.c: Added <unistd.h> for unlink().
789
790 * src/Makefile.am, src/system.h:
791 I18n fixes.
792
7931999-05-30 Jesse Thilo <jthilo@gnu.org>
794
795 * README: Added a FAQ list.
796
797 * configure.in, acconfig.h:
798 I18n fixes.
799
8001999-05-30 Jesse Thilo <jthilo@gnu.org>
801
802 * doc/FAQ, doc/Makefile.am:
803 Added a FAQ list.
804
8051999-05-19 Jesse Thilo <jthilo@gnu.org>
806
807 * src/alloc.h, src/symtab.h, src/version.c:
808 Protected inclusion of "config.h" with HAVE_CONFIG_H.
809
8101999-04-18 Jesse Thilo <jthilo@gnu.org>
811
812 * src/.cvsignore, src/Makefile.am:
813 Reorganized: sources in `src', documentation in `doc'.
814
815 * src/lex.c (literalchar):
816 fixed the code for escaping double quotes (thanks
817 Jonathan Czisny.)
818
8191999-04-18 Jesse Thilo <jthilo@gnu.org>
820
821 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
822 Adjusted paths to reflect directory reorganization.
823
8241999-04-18 Jesse Thilo <jthilo@gnu.org>
825
826 * doc/.cvsignore, doc/Makefile.am:
827 Reorganized: sources in `src', documentation in `doc'.
828
8291999-04-18 Jesse Thilo <jthilo@gnu.org>
830
831 * configure.in:
832 Updated AC_INIT file to reflect directory reorganization.
833
834 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
835 Reorganized: sources in `src', documentation in `doc'.
836
8371999-04-13 Jesse Thilo <jthilo@gnu.org>
838
839 * src/allocate.c:
840 Don't declare calloc() and realloc() if not necessary.
841
8421999-04-13 Jesse Thilo <jthilo@gnu.org>
843
844 * configure.in, acconfig.h, acinclude.m4:
845 Don't declare calloc() and realloc() if not necessary.
846
8471999-03-23 Jesse Thilo <jthilo@gnu.org>
848
849 * po/.cvsignore: Added i18n support.
850
8511999-03-23 Jesse Thilo <jthilo@gnu.org>
852
853 * acconfig.h, configure.in, Makefile.am:
854 Added i18n support.
855
8561999-03-22 Jesse Thilo <jthilo@gnu.org>
857
858 * src/bison.s1: Fixed #line numbers.
859
8601999-03-15 Jesse Thilo <jthilo@gnu.org>
861
862 * po/es.po, po/fr.po, po/nl.po, po/de.po:
863 Added PO files from Translation Project.
864
8651999-03-03 Jesse Thilo <jthilo@gnu.org>
866
867 * Makefile.am:
868 Added support for non-ANSI compilers (ansi2knr).
869
8701999-02-16 Jesse Thilo <jthilo@gnu.org>
871
872 * configure.in: Bumped version number to 1.27.
873
874 * Makefile.am:
875 Added `bison.simple' to list of files removed by `make distclean'.
876
8771999-02-12 Jesse Thilo <jthilo@gnu.org>
878
879 * src/files.c, src/files.h:
880 Defined locations of parser files in config.h instead of Makefile.
881
8821999-02-12 Jesse Thilo <jthilo@gnu.org>
883
884 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
885 Defined locations of parser files in config.h instead of Makefile.
886
8871999-02-09 Jesse Thilo <jthilo@gnu.org>
888
889 * Makefile.am:
890 Removed inappropriate use of $< macro.
891
8921999-02-05 Jesse Thilo <jthilo@gnu.org>
893
894 * po/Makefile.in.in, po/POTFILES.in:
895 Add `po' directory skeleton.
896
8971999-01-27 Jesse Thilo <jthilo@gnu.org>
898
899 * README: Document help-bison list.
900
901 * configure.in: Add check for mkstemp().
902
9031999-01-20 Jesse Thilo <jthilo@gnu.org>
904
905 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
906 Hush a few compiler warnings.
907
908 * src/files.c:
909 Add tryclose(), which verifies that fclose was successful.
910 Hush a couple of compiler warnings.
911
9121999-01-20 Jesse Thilo <jthilo@gnu.org>
913
914 * Makefile.am, OChangeLog:
915 ChangeLog is now automatically generated. Include the old version as
916 OChangeLog.
917
9181999-01-14 Jesse Thilo <jthilo@gnu.org>
919
920 * 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:
921 Update FSF address.
922
9231999-01-14 Jesse Thilo <jthilo@gnu.org>
924
925 * doc/bison.texinfo: Fix formatting glitch.
926
927 * doc/bison.texinfo: Update FSF address.
928
9291999-01-14 Jesse Thilo <jthilo@gnu.org>
930
931 * acconfig.h: Update FSF address.
932
9331999-01-08 Jesse Thilo <jthilo@gnu.org>
934
935 * src/system.h:
936 Don't define PACKAGE here, since config.h defines it.
937
9381998-12-30 Jesse Thilo <jthilo@gnu.org>
939
940 * src/reader.c: Update copyright date.
941
942 * src/main.c:
943 Ditch sprintf to statically-sized buffers in fatal/warn functions in
944 favor of output directly to stderr (avoids buffer overruns).
945
946 * src/reader.c: Some checks for premature EOF.
947
948 * 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:
949 Use prototypes if the compiler understands them.
950
951 * src/files.c: Honor TMPDIR on Unix hosts.
952 Use prototypes if the compiler understands them.
953
954 * src/reader.c:
955 Fix a couple of buffer overrun bugs.
956 Use prototypes if the compiler understands them.
957
958 * src/system.h: Include unistd.h and ctype.h.
959 Use #ifdef instead of #if for NLS symbols.
960
9611998-12-30 Jesse Thilo <jthilo@gnu.org>
962
963 * doc/bison.texinfo:
964 Delete comment "consider using @set for edition number, etc..." since
965 we now are doing so.
966
9671998-12-30 Jesse Thilo <jthilo@gnu.org>
968
969 * configure.in:
970 Use prototypes if the compiler understands them.
971
972 * NEWS: Document 1.26 highlights.
973
974 * Makefile.am: Require Automake 1.3 or later.
975
976 * acconfig.h:
977 Use prototypes if the compiler understands them.
978
9791998-12-29 Jesse Thilo <jthilo@gnu.org>
980
981 * src/version.c:
982 Use VERSION symbol from automake for version number.
983
9841998-12-29 Jesse Thilo <jthilo@gnu.org>
985
986 * acconfig.h, configure.in, version.cin:
987 Use VERSION symbol from automake for version number.
988
9891998-11-28 Jesse Thilo <jthilo@gnu.org>
990
991 * Makefile.am:
992 Distribute original version of simple parser (bison.s1), not built
993 version (bison.simple).
994
9951998-11-28 Jesse Thilo <jthilo@gnu.org>
996
997 * doc/bison.texinfo: Add info dir entry.
998
999 * doc/bison.texinfo:
1000 Let automake put version number into documentation.
1001
10021998-11-26 Jesse Thilo <jthilo@gnu.org>
1003
1004 * src/bison.cld, src/build.com, src/vmshlp.mar:
1005 Add non-RCS files from /gd/gnu/bison.
1006
10071998-11-26 Jesse Thilo <jthilo@gnu.org>
1008
1009 * doc/bison.1:
1010 Document the BISON_HAIRY and BISON_SIMPLE variables.
1011
10121998-11-25 Jesse Thilo <jthilo@gnu.org>
1013
1014 * src/version.c: Build version.c automatically.
1015
1016 * src/reader.c:
1017 Fix token numbering (used to start at 258, not 257).
1018
1019 * src/system.h: Include config.h.
1020
1021 * src/getargs.c: Update bug report address.
1022
1023 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1024 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1025
10261998-11-25 Jesse Thilo <jthilo@gnu.org>
1027
1028 * Makefile.am:
1029 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1030
1031 * configure.in, version.cin:
1032 Build version.c automatically.
1033
1034 * AUTHORS: Add AUTHORS file.
1035
1036 * README: Update bug report address.
1037
1038 * bison.simple:
1039 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1040
1041 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1042 Add automake stuff.
1043
10441998-11-25 Jesse Thilo <jthilo@gnu.org>
1045
1046 * doc/bison.texinfo: Clean up some formatting.
1047
10481998-05-05 Richard Stallman <rms@gnu.org>
1049
1050 * doc/bison.texinfo:
1051 Explain better why to make a pure parser.
1052
10531998-01-05 Richard Stallman <rms@gnu.org>
1054
1055 * src/files.c (openfiles):
1056 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1057 find a temporary directory, if possible. Do not unlink files while
1058 they are open.
1059
10601997-08-25 Richard Stallman <rms@gnu.org>
1061
1062 * src/reader.c (stack_offset;):
1063 Change some warni to warns.
1064
1065 * src/lex.c (literalchar): Use warns, not warni.
1066
10671997-06-28 Richard Stallman <rms@gnu.org>
1068
1069 * src/bison.s1: Add a Bison version comment.
1070
1071 * src/main.c (fatal, warn, berror):
1072 Use program_name.
1073
10741997-06-28 Richard Stallman <rms@gnu.org>
1075
1076 * Makefile.in (bison_version): New variable.
1077 (dist): Use that variable.
1078 (bison.s1): Substitute the Bison version into bison.simple.
1079
1080 * bison.simple: Add a Bison version comment.
1081
10821997-06-18 Richard Stallman <rms@gnu.org>
1083
1084 * src/main.c (fatal, warn, berror):
1085 Make error messages standard.
1086 (toomany): Improve error message text.
1087
1088 * 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:
1089 new.h renamed to alloc.h.
1090
10911997-06-18 Richard Stallman <rms@gnu.org>
1092
1093 * Makefile.in: new.h renamed to alloc.h.
1094
10951997-05-24 Richard Stallman <rms@gnu.org>
1096
1097 * src/lex.c (literalchar):
1098 Fix the code for escaping \, " and '.
1099
1100 (lex): Avoid trouble when there are many chars
1101 to discard in a char literal with just several chars in it.
1102
11031997-05-17 Richard Stallman <rms@gnu.org>
1104
1105 * src/bison.s1:
1106 Use malloc, if using alloca is troublesome.
1107 (YYSTACK_USE_ALLOCA): New flag macro.
1108 Define it for some systems and compilers.
1109 (YYSTACK_ALLOC): New macro.
1110 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1111 If it was malloc'd, free it.
1112
11131997-05-17 Richard Stallman <rms@gnu.org>
1114
1115 * bison.simple:
1116 Use malloc, if using alloca is troublesome.
1117 (YYSTACK_USE_ALLOCA): New flag macro.
1118 Define it for some systems and compilers.
1119 (YYSTACK_ALLOC): New macro.
1120 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1121 If it was malloc'd, free it.
1122
11231997-04-23 Richard Stallman <rms@gnu.org>
1124
1125 * src/bison.s1:
1126 (alloca) [__hpux]: Always define as __builtin_alloca.
1127
11281997-04-23 Richard Stallman <rms@gnu.org>
1129
1130 * bison.simple:
1131 (alloca) [__hpux]: Always define as __builtin_alloca.
1132
11331997-04-22 Richard Stallman <rms@gnu.org>
1134
1135 * src/bison.s1:
1136 [__hpux]: Include alloca.h (right for HPUX 10)
1137 instead of declaring alloca (right for HPUX 9).
1138
1139 * src/bison.s1 (__yy_memcpy):
1140 Declare arg `count' as unsigned int.
1141 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1142
11431997-04-22 Richard Stallman <rms@gnu.org>
1144
1145 * bison.simple:
1146 [__hpux]: Include alloca.h (right for HPUX 10)
1147 instead of declaring alloca (right for HPUX 9).
1148
1149 * bison.simple (__yy_memcpy):
1150 Declare arg `count' as unsigned int.
1151 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1152
11531997-01-03 Richard Stallman <rms@gnu.org>
1154
1155 * src/allocate.c: [__STDC__ or _MSC_VER]:
1156 Declare calloc and realloc to return void *.
1157
11581997-01-02 Richard Stallman <rms@gnu.org>
1159
1160 * src/system.h:
1161 [_MSC_VER]: Include stdlib.h and process.h.
1162 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1163
1164 * src/main.c (main): Return FAILURE as a value.
1165 (printable_version): Declare arg as int, not char.
1166
11671997-01-02 Richard Stallman <rms@gnu.org>
1168
1169 * Makefile.in (dist):
1170 Explicitly check for symlinks, and copy them.
1171
11721996-12-19 Richard Stallman <rms@gnu.org>
1173
1174 * src/files.c:
1175 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1176
11771996-12-18 Paul Eggert <eggert@gnu.org>
1178
1179 * src/bison.s1 (yyparse):
1180 If __GNUC__ and YYPARSE_PARAM are both defined,
1181 declare yyparse to have a void * argument.
1182
11831996-12-18 Paul Eggert <eggert@gnu.org>
1184
1185 * bison.simple (yyparse):
1186 If __GNUC__ and YYPARSE_PARAM are both defined,
1187 declare yyparse to have a void * argument.
1188
11891996-12-17 Richard Stallman <rms@gnu.org>
1190
1191 * src/reduce.c (nbits): Add some casts.
1192
11931996-08-12 Richard Stallman <rms@gnu.org>
1194
1195 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1196
11971996-08-12 Richard Stallman <rms@gnu.org>
1198
1199 * bison.simple: Test _MSDOS as well as _MSDOS_.
1200
12011996-07-31 Richard Stallman <rms@gnu.org>
1202
1203 * src/bison.s1:
1204 [__sun && __i386]: Include alloca.h.
1205
12061996-07-31 Richard Stallman <rms@gnu.org>
1207
1208 * bison.simple:
1209 [__sun && __i386]: Include alloca.h.
1210
12111996-07-30 Richard Stallman <rms@gnu.org>
1212
1213 * src/bison.s1: Comment change.
1214
1215 * src/bison.s1: Test _MSDOS_, not MSDOS.
1216
12171996-07-30 Richard Stallman <rms@gnu.org>
1218
1219 * bison.simple: Comment change.
1220
1221 * bison.simple: Test _MSDOS_, not MSDOS.
1222
12231996-06-01 Richard Stallman <rms@gnu.org>
1224
1225 * 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:
1226 Insert `_' macro around many string constants.
1227
1228 * src/main.c:
1229 Insert `_' macro around many string constants.
1230
1231 (main): Call setlocale, bindtextdomain and textdomain.
1232
1233 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1234 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1235 [ENABLE_NLS]: Include libintl.h.
1236 [ENABLE_NLS] (gettext): Define.
1237 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1238 (N_, PACKAGE, LOCALEDIR): New macros.
1239
12401996-06-01 Richard Stallman <rms@gnu.org>
1241
1242 * POTFILES.in: New file.
1243
1244 * Makefile.in (allocate.o):
1245 Define target explicitly.
1246
1247 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1248 (LDFLAGS): Set to @LDFLAGS@.
1249 (configure): Run autoconf only if preceding `cd' succeeds.
1250 (bison.s1): Redirect output to temporary file then move the
1251 temporary to the target, rather than redirecting directly to bison.s1.
1252 (clean): Remove config.status and config.log.
1253 (distclean): Don't remove config.status here.
1254
12551996-05-12 Richard Stallman <rms@gnu.org>
1256
1257 * src/bison.s1:
1258 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1259
12601996-05-12 Richard Stallman <rms@gnu.org>
1261
1262 * bison.simple:
1263 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1264
12651996-05-11 Richard Stallman <rms@gnu.org>
1266
1267 * src/bison.s1 (__yy_memcpy):
1268 Really reorder the args, as was supposedly done on Feb 14 1995.
1269 (yyparse): Calls changed accordingly.
1270
12711996-05-11 Richard Stallman <rms@gnu.org>
1272
1273 * Makefile.in (dist): Don't use $(srcdir).
1274
1275 * bison.simple (__yy_memcpy):
1276 Really reorder the args, as was supposedly done on Feb 14 1995.
1277 (yyparse): Calls changed accordingly.
1278
12791996-01-27 Richard Stallman <rms@gnu.org>
1280
1281 * src/output.c (output_rule_data):
1282 Test YYERROR_VERBOSE in the conditional
1283 around the definition of ttyname.
1284
12851995-12-29 Richard Stallman <rms@gnu.org>
1286
1287 * src/bison.s1:
1288 Fix line numbers in #line commands.
1289
12901995-12-29 Richard Stallman <rms@gnu.org>
1291
1292 * bison.simple:
1293 Fix line numbers in #line commands.
1294
12951995-12-27 Richard Stallman <rms@gnu.org>
1296
1297 * src/bison.s1 (YYPARSE_PARAM_DECL):
1298 In C++, make it always null.
1299 (YYPARSE_PARAM_ARG): New macro.
1300 (yyparse): Use YYPARSE_PARAM_ARG.
1301
13021995-12-27 Richard Stallman <rms@gnu.org>
1303
1304 * bison.simple (YYPARSE_PARAM_DECL):
1305 In C++, make it always null.
1306 (YYPARSE_PARAM_ARG): New macro.
1307 (yyparse): Use YYPARSE_PARAM_ARG.
1308
13091995-11-29 Richard Stallman <rms@gnu.org>
1310
1311 * doc/bison.texinfo:
1312 Describe literal string tokens, %raw, %no_lines, %token_table.
1313
13141995-11-29 Daniel Hagerty <hag@gnu.org>
1315
1316 * doc/bison.texinfo: Fixed update date
1317
13181995-10-16 Richard Stallman <rms@gnu.org>
1319
1320 * src/version.c: Version 1.25.
1321
13221995-10-16 Richard Stallman <rms@gnu.org>
1323
1324 * NEWS: *** empty log message ***
1325
13261995-10-16 Richard Stallman <rms@gnu.org>
1327
1328 * doc/bison.1, doc/bison.rnh:
1329 Add new options.
1330
13311995-10-15 Richard Stallman <rms@gnu.org>
1332
1333 * src/vmsgetargs.c, src/getargs.c:
1334 Added -n, -k, and -raw switches.
1335 (noparserflag, toknumflag, rawtoknumflag): New variables.
1336
1337 * src/symtab.h (SALIAS):
1338 New #define for adding aliases to %token.
1339 (struct bucket): Added `alias' field.
1340
1341 * src/reduce.c (reduce_grammar):
1342 Revise error message.
1343 (print_notices): Remove final `.' from error message.
1344
1345 * src/reader.c (reader_output_yylsp):
1346 New function.
1347 (readgram): Use `#if 0' around code that accepted %command
1348 inside grammar rules: The documentation doesn't allow it,
1349 and it will fail since the %command processors scan for the next %.
1350 (parse_token_decl): Extended the %token
1351 declaration to allow a multi-character symbol as an alias.
1352 (parse_thong_decl): New function.
1353 (read_declarations): Added %thong declarations.
1354 (read_declarations): Handle NOOP to deal with allowing
1355 % declarations as another means to specify the flags.
1356 (readgram): Allow %prec prior to semantics embedded in a rule.
1357 (skip_to_char, read_declarations, copy_definition)
1358 (parse_token_decl, parse_start_decl, parse_type_decl)
1359 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1360 (get_type_name, copy_guard, copy_action, readgram)
1361 (get_type, packsymbols): Revised most error messages.
1362 Changed `fatal' to `warnxxx' to avoid aborting for error.
1363 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1364 (read_declarations): Improve the error message for
1365 an invalid character. Do not abort.
1366 (read_declarations, copy_guard, copy_action): Use
1367 printable_version to avoid unprintable characters in printed output.
1368 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1369 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1370 Allow the type of a non-terminal can be given
1371 more than once, as long as all specifications give the same type.
1372
1373 * src/output.c:
1374 (output_headers, output_trailers, output, output_gram)
1375 (output_rule_data): Implement noparserflag variable.
1376 Implement toknumflag variable.
1377 (output): Call reader_output_yylsp to output LTYPESTR.
1378
1379 * src/main.c (main):
1380 If reader sees an error, don't process the grammar.
1381 (fatals): Updated to not use VARARGS1.
1382 (printable_version, int_to_string, warn, warni, warns, warnss)
1383 (warnsss): New error reporting functions. Avoid abort for error.
1384
1385 * src/lex.h:
1386 Added THONG and NOOP for alias processing.
1387 Added SETOPT for the new code that allows setting options with %flags.
1388
1389 * src/lex.c:
1390 Include getopt.h. Add some extern decls.
1391 (safegetc): New function to deal with EOF gracefully.
1392 (literalchar); new function to deal with reading \ escapes.
1393 (lex): Use literalchar.
1394 (lex): Implemented "..." tokens.
1395 (literalchar, lex, parse_percent_token): Made tokenbuffer
1396 always contain the token. This includes growing the token
1397 buffer while reading an integer.
1398 (parse_percent_token): Replaced if-else statement with percent_table.
1399 (parse_percent_token): Added % declarations as another
1400 way to specify the flags -n, -l, and -r. Also added hooks for
1401 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1402 major changes to files.c.
1403 (lex) Retain in the incoming stream a character following
1404 an incorrect '/'.
1405 (skip_white_space, lex): Revised most error messages
1406 and changed fatal to warn to avoid aborting.
1407 (percent_table): Added %thong declarations.
1408
1409 * src/gram.h: Comment changes.
1410
1411 * src/files.c (openfiles, open_extra_files, done):
1412 Add faction flag
1413 and actfile file. Handle noparserflag. Both for -n switch.
1414
1415 * src/conflicts.c (resolve_sr_conflict):
1416 Remove use of alloca.
1417
14181995-06-01 Jim Meyering <meyering@gnu.org>
1419
1420 * doc/bison.texinfo: *** empty log message ***
1421
14221995-05-06 Richard Stallman <rms@gnu.org>
1423
1424 * src/bison.s1: Comment change.
1425
14261995-05-06 Richard Stallman <rms@gnu.org>
1427
1428 * bison.simple: Comment change.
1429
14301995-05-03 Richard Stallman <rms@gnu.org>
1431
1432 * src/version.c: Version now 1.24.
1433
1434 * src/bison.s1: Change distribution terms.
1435
1436 * src/version.c: Version now 1.23.
1437
14381995-05-03 Richard Stallman <rms@gnu.org>
1439
1440 * doc/bison.texinfo:
1441 Rewrite "Conditions for Using Bison".
1442 Update version to 1.24.
1443
14441995-05-03 Richard Stallman <rms@gnu.org>
1445
1446 * bison.simple: Change distribution terms.
1447
14481995-02-23 Richard Stallman <rms@gnu.org>
1449
1450 * src/files.c: Test __VMS_POSIX as well as VMS.
1451
14521995-02-14 Jim Meyering <meyering@gnu.org>
1453
1454 * src/bison.s1 (__yy_memcpy):
1455 Renamed from __yy_bcopy to avoid
1456 confusion. Reverse FROM and TO arguments to be consistent with
1457 those of memcpy.
1458
14591995-02-14 Jim Meyering <meyering@gnu.org>
1460
1461 * bison.simple (__yy_memcpy):
1462 Renamed from __yy_bcopy to avoid
1463 confusion. Reverse FROM and TO arguments to be consistent with
1464 those of memcpy.
1465
14661994-11-10 David J. MacKenzie <djm@gnu.org>
1467
1468 * NEWS: reformat
1469
1470 * NEWS: New file.
1471
1472 * Makefile.in (DISTFILES): Include NEWS.
1473
1474 * Makefile.in (DISTFILES):
1475 Include install-sh, not install.sh.
1476
1477 * configure.in: Update to Autoconf v2 macro names.
1478
14791994-10-05 David J. MacKenzie <djm@gnu.org>
1480
1481 * Makefile.in: fix typo
1482
1483 * Makefile.in (prefix, exec_prefix):
1484 Let configure set them.
1485
14861994-09-28 David J. MacKenzie <djm@gnu.org>
1487
1488 * Makefile.in: Set datadir to $(prefix)/share.
1489
14901994-09-15 Richard Stallman <rms@gnu.org>
1491
1492 * src/bison.s1:
1493 Update copyright notice and GPL version.
1494
14951994-09-15 Richard Stallman <rms@gnu.org>
1496
1497 * bison.simple:
1498 Update copyright notice and GPL version.
1499
15001994-07-12 Richard Stallman <rms@gnu.org>
1501
1502 * src/reduce.c, src/reader.c:
1503 entered into RCS
1504
15051994-05-05 David J. MacKenzie <djm@gnu.org>
1506
1507 * Makefile.in: entered into RCS
1508
15091994-03-26 Richard Stallman <rms@gnu.org>
1510
1511 * src/bison.s1: entered into RCS
1512
15131994-03-26 Richard Stallman <rms@gnu.org>
1514
1515 * bison.simple: entered into RCS
1516
15171994-03-25 Richard Stallman <rms@gnu.org>
1518
1519 * src/main.c: entered into RCS
1520
15211994-03-24 Richard Stallman <rms@gnu.org>
1522
1523 * src/conflicts.c: entered into RCS
1524
15251994-01-02 Richard Stallman <rms@gnu.org>
1526
1527 * Makefile.in: *** empty log message ***
1528
15291993-11-21 Richard Stallman <rms@gnu.org>
1530
1531 * src/bison.s1: *** empty log message ***
1532
15331993-11-21 Richard Stallman <rms@gnu.org>
1534
1535 * doc/bison.texinfo: entered into RCS
1536
1537 * doc/bison.texinfo: *** empty log message ***
1538
15391993-11-21 Richard Stallman <rms@gnu.org>
1540
1541 * bison.simple: *** empty log message ***
1542
15431993-10-25 David J. MacKenzie <djm@gnu.org>
1544
1545 * doc/bison.texinfo: *** empty log message ***
1546
15471993-10-19 Richard Stallman <rms@gnu.org>
1548
1549 * src/bison.s1: *** empty log message ***
1550
15511993-10-19 Richard Stallman <rms@gnu.org>
1552
1553 * bison.simple: *** empty log message ***
1554
15551993-10-14 Richard Stallman <rms@gnu.org>
1556
1557 * src/bison.s1: *** empty log message ***
1558
15591993-10-14 Richard Stallman <rms@gnu.org>
1560
1561 * bison.simple: *** empty log message ***
1562
15631993-09-14 David J. MacKenzie <djm@gnu.org>
1564
1565 * doc/bison.texinfo: *** empty log message ***
1566
15671993-09-13 Noah Friedman <friedman@gnu.org>
1568
1569 * Makefile.in: *** empty log message ***
1570
15711993-09-10 Richard Stallman <rms@gnu.org>
1572
1573 * src/conflicts.c: *** empty log message ***
1574
1575 * src/system.h: entered into RCS
1576
15771993-09-10 Richard Stallman <rms@gnu.org>
1578
1579 * doc/bison.1: entered into RCS
1580
15811993-09-06 Noah Friedman <friedman@gnu.org>
1582
1583 * src/version.c: entered into RCS
1584
15851993-09-06 Noah Friedman <friedman@gnu.org>
1586
1587 * Makefile.in: *** empty log message ***
1588
15891993-07-30 David J. MacKenzie <djm@gnu.org>
1590
1591 * Makefile.in: *** empty log message ***
1592
15931993-07-24 Richard Stallman <rms@gnu.org>
1594
1595 * src/bison.s1: *** empty log message ***
1596
15971993-07-24 Richard Stallman <rms@gnu.org>
1598
1599 * bison.simple: *** empty log message ***
1600
16011993-07-08 David J. MacKenzie <djm@gnu.org>
1602
1603 * Makefile.in: *** empty log message ***
1604
16051993-07-04 Richard Stallman <rms@gnu.org>
1606
1607 * src/bison.s1: *** empty log message ***
1608
16091993-07-04 Richard Stallman <rms@gnu.org>
1610
1611 * bison.simple: *** empty log message ***
1612
16131993-06-26 David J. MacKenzie <djm@gnu.org>
1614
1615 * src/getargs.c: entered into RCS
1616
16171993-06-26 David J. MacKenzie <djm@gnu.org>
1618
1619 * doc/bison.texinfo: *** empty log message ***
1620
1621 * doc/bison.1: New file.
1622
16231993-06-25 Richard Stallman <rms@gnu.org>
1624
1625 * src/getargs.c: New file.
1626
16271993-06-16 Richard Stallman <rms@gnu.org>
1628
1629 * src/bison.s1: *** empty log message ***
1630
16311993-06-16 Richard Stallman <rms@gnu.org>
1632
1633 * bison.simple: *** empty log message ***
1634
16351993-06-03 Richard Stallman <rms@gnu.org>
1636
1637 * src/bison.s1: New file.
1638
16391993-06-03 Richard Stallman <rms@gnu.org>
1640
1641 * doc/bison.texinfo: *** empty log message ***
1642
16431993-06-03 Richard Stallman <rms@gnu.org>
1644
1645 * bison.simple: New file.
1646
16471993-05-19 Richard Stallman <rms@gnu.org>
1648
1649 * doc/bison.texinfo: New file.
1650
16511993-05-07 Noah Friedman <friedman@gnu.org>
1652
1653 * Makefile.in: *** empty log message ***
1654
16551993-04-28 Noah Friedman <friedman@gnu.org>
1656
1657 * src/reader.c: *** empty log message ***
1658
16591993-04-23 Noah Friedman <friedman@gnu.org>
1660
1661 * src/alloc.h: entered into RCS
1662
16631993-04-20 David J. MacKenzie <djm@gnu.org>
1664
1665 * src/version.c: *** empty log message ***
1666
1667 * src/files.c, src/allocate.c:
1668 entered into RCS
1669
1670 * src/reader.c: *** empty log message ***
1671
1672 * src/lex.c: entered into RCS
1673
1674 * src/conflicts.c: New file.
1675
1676 * src/symtab.c: entered into RCS
1677
1678 * src/alloc.h: New file.
1679
1680 * src/LR0.c: entered into RCS
1681
16821993-04-18 Noah Friedman <friedman@gnu.org>
1683
1684 * src/reader.c: New file.
1685
1686 * src/version.c: *** empty log message ***
1687
16881993-04-18 Noah Friedman <friedman@gnu.org>
1689
1690 * Makefile.in: *** empty log message ***
1691
16921993-04-17 Noah Friedman <friedman@gnu.org>
1693
1694 * Makefile.in: *** empty log message ***
1695
16961993-04-15 Richard Stallman <rms@gnu.org>
1697
1698 * src/main.c, src/files.c:
1699 New file.
1700
17011993-04-15 Noah Friedman <friedman@gnu.org>
1702
1703 * configure.in: entered into RCS
1704
1705 * configure.in: *** empty log message ***
1706
1707 * configure.in: New file.
1708
17091993-04-14 Richard Stallman <rms@gnu.org>
1710
1711 * Makefile.in: New file.
1712
17131993-04-13 Richard Stallman <rms@gnu.org>
1714
1715 * src/version.c: New file.
1716
17171993-03-25 Richard Stallman <rms@gnu.org>
1718
1719 * src/output.c: entered into RCS
1720
17211992-09-25 Richard Stallman <rms@gnu.org>
1722
1723 * configure.bat: entered into RCS
1724
17251992-06-22 Richard Stallman <rms@gnu.org>
1726
1727 * src/vmsgetargs.c: entered into RCS
1728
17291992-06-22 Richard Stallman <rms@gnu.org>
1730
1731 * doc/bison.rnh: entered into RCS
1732
17331992-04-20 David J. MacKenzie <djm@gnu.org>
1734
1735 * README: entered into RCS
1736
17371992-01-22 Richard Stallman <rms@gnu.org>
1738
1739 * src/machine.h: entered into RCS
1740
17411991-12-21 Richard Stallman <rms@gnu.org>
1742
1743 * src/lalr.c, src/closure.c:
1744 entered into RCS
1745
17461991-12-20 Richard Stallman <rms@gnu.org>
1747
1748 * src/state.h: entered into RCS
1749
17501991-12-18 Richard Stallman <rms@gnu.org>
1751
1752 * src/print.c, src/nullable.c, src/derives.c:
1753 entered into RCS
1754
17551991-11-03 David J. MacKenzie <djm@gnu.org>
1756
1757 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1758 entered into RCS
1759
17601988-09-09 Richard Stallman <rms@gnu.org>
1761
1762 * src/bison.hairy: entered into RCS
1763
17641987-12-16 Richard Stallman <rms@gnu.org>
1765
1766 * REFERENCES: entered into RCS