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