]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
[bison.git] / ChangeLog
CommitLineData
55b96341
AD
12000-12-19 Akim Demaille <akim@epita.fr>
2
3 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
4 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
5
358c15b7
AD
62000-12-19 Akim Demaille <akim@epita.fr>
7
8 * src/files.c (open_files): Yipee! We no longer need all the code
9 looking for `/tmp' since we have no tmp file.
10
7de3329e
AD
112000-12-19 Akim Demaille <akim@epita.fr>
12
13 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
14 New macros.
15 * src/files.c (open_files): Less dependency on MSDOS etc.
16
3abcd459
AD
172000-12-14 Akim Demaille <akim@epita.fr>
18
19 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
20 Provide a default definition.
21 Use it when executing the default @ action.
22 * src/reader.c (reader_output_yylsp): No longer include
23 `timestamp' and `text' in the default YYLTYPE.
24
2a91a95e
AD
252000-12-12 Akim Demaille <akim@epita.fr>
26
27 * src/reader.c (copy_definition, parse_union_decl, copy_action)
28 (copy_guard): Quote the file names.
29 Reported by Laurent Mascherpa.
30
14d3eb9b
AD
312000-12-12 Akim Demaille <akim@epita.fr>
32
33 * src/output.c (output_headers, output_program, output): Be sure
34 to escape special characters when outputting filenames.
35 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
36 (output_headers): Don't depend on them, Use ACTSTR.
37
d7045ec6
AD
382000-11-17 Akim Demaille <akim@epita.fr>
39
40 * lib/obstack.h: Formatting changes.
41 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
42 prevents type checking.
43 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
44 cast the value to (void *): assigning a `foo *' to a `void *'
45 variable is valid.
46 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
47 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
48 append characters.
49
6fd54b73
AD
502000-11-17 Akim Demaille <akim@epita.fr>
51
52 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
53 as...
54 (suite.m4, regression.m4, calc.m4): these.
55 * tests/atgeneral.m4: Update from CVS Autoconf.
56
4c50eae6
AD
572000-11-17 Akim Demaille <akim@epita.fr>
58
59 * tests/regression.m4 (%union and --defines): New test,
60 demonstrating a current bug in the obstack implementation.
61
a35f64ea
AD
622000-11-17 Akim Demaille <akim@epita.fr>
63
64 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
65 macros.
66 Use them to declare the variables which are global or local to
67 `yyparse'.
68
7de23534
AD
692000-11-17 Akim Demaille <akim@epita.fr>
70
71 * acconfig.h: Remove, no longer used.
72
aa7815f5
AD
732000-11-07 Akim Demaille <akim@epita.fr>
74
75 * src: s/Copyright (C)/Copyright/g.
76
5af1f549
AD
772000-11-07 Akim Demaille <akim@epita.fr>
78
79 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
80 defining.
81 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
82
553e2b22
AD
832000-11-07 Akim Demaille <akim@epita.fr>
84
85 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
86 Merge in a single CPP if/else.
87
8a4f41d6
AD
882000-11-07 Akim Demaille <akim@epita.fr>
89
90 * src/output.c (output): Remove useless variables.
91 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
92 argument `data' for consistency with the prototypes.
93 Qualify it `const'.
94 (obstack_copy, obstack_copy0): Rename the second argument as
95 `address' for consistency. Qualify it `const'.
96 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
97 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
98 `const' their input argument (`data' or `address').
99 Adjust the corresponding macros to include `const' in casts.
100
095a3fb5
AD
1012000-11-03 Akim Demaille <akim@epita.fr>
102
103 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
104 s/PFILE1/BISON_HAIRY/.
105 Adjust dependencies.
106
d1cdce7c
AD
1072000-11-03 Akim Demaille <akim@epita.fr>
108
090c5ebf 109 For some reason, this was not applied.
d1cdce7c
AD
110
111 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
112 `unlink': it's no longer used.
113
9311529b
AD
1142000-11-03 Akim Demaille <akim@epita.fr>
115
116 * src/files.c (skeleton_find): New function, eved out of...
117 (open_files, open_extra_files): here.
118
d8880f69
AD
1192000-11-03 Akim Demaille <akim@epita.fr>
120
121 Don't use `atexit'.
122
123 * src/files.c (obstack_save): New function.
124 (done): Rename as...
125 (output_files): this.
126 Use `obstack_save'.
127 * src/main.c (main): Don't use `atexit' to register `done', since
128 it no longer has to remove tmp files, just call `output_files'
129 when there are no errors.
130
0dbb648e
AD
1312000-11-02 Akim Demaille <akim@epita.fr>
132
133 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
134 `unlink': it's no longer used.
135 * src/files.h: Formatting changes.
136
896fe5c1
AD
1372000-11-02 Akim Demaille <akim@epita.fr>
138
139 Remove the last uses of mktemp and unlink/delete.
140
141 * src/files.c (fdefines, ftable): Removed.
142 (defines_ostack, table_obstack): New.
143 Adjust dependencies of the former into uses of the latter.
144 * src/output.c (output_short_or_char_table, output_short_table):
145 Convert to using obstacks.
146 * src/reader.c (copy_comment2): Accept one FILE * and two
147 obstacks.
148 (output_token_defines, reader_output_yylsp): Use obstacks.
149 * src/system.h (obstack_fgrow3): New.
150
dd60faec
AD
1512000-11-01 Akim Demaille <akim@epita.fr>
152
153 Change each use of `fattrs' into a use of `attrs_obstack'.
154
155 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
156 * src/files.c (fattrs): Remove.
157 (attrs_obstack): New.
158 Adjust all dependencies.
159 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
160
8c7ebe49
AD
1612000-11-01 Akim Demaille <akim@epita.fr>
162
163 Introduce obstacks.
164 Change each use of `faction' into a use of `action_obstack'.
165
166 * lib/obstack.h, lib/obstack.c: New files.
167 * src/files.c (faction): Remove.
168 (action_obstack): New.
169 Adjust all dependencies.
170
77aee789
AD
1712000-10-20 Akim Demaille <akim@epita.fr>
172
173 * lib/quote.h (PARAMS): New macro. Use it.
174
43591cec
AD
1752000-10-16 Akim Demaille <akim@epita.fr>
176
177 * src/output.c (output_short_or_char_table): New function.
178 (output_short_table, output_token_translations): Use it.
179 (goto_actions): Use output_short_table.
180
1e9798d5
AD
1812000-10-16 Akim Demaille <akim@epita.fr>
182
183 * src/symtab.c (bucket_new): New function.
184 (getsym): Use it.
185
186 * src/output.c (output_short_table): New argument to display the
187 comment associated with the table.
188 Adjust dependencies.
189 (output_gram): Use it.
190 (output_rule_data): Nicer output layout for YYTNAME.
191
f282676b
AD
1922000-10-16 Akim Demaille <akim@epita.fr>
193
194 * src/lex.c (read_typename): New function.
195 (lex): Use it.
196 * src/reader.c (copy_dollar): Likewise.
197
550a72a3
AD
1982000-10-16 Akim Demaille <akim@epita.fr>
199
200 * src/reader.c (copy_comment2): Expect the input stream to be on
201 the `/' which is suspected to open a comment, instead of being
202 called after `//' or `/*' was read.
203 (copy_comment, copy_definition, parse_union_decl, copy_action)
204 (copy_guard): Adjust.
205
131e2fef
AD
2062000-10-16 Akim Demaille <akim@epita.fr>
207
208 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
209 `read_signed_integer'.
210
79282c5a
AD
2112000-10-16 Akim Demaille <akim@epita.fr>
212
213 * src/reader.c (copy_dollar): New function.
214 (copy_guard, copy_action): Use it.
215
ff4a34be
AD
2162000-10-16 Akim Demaille <akim@epita.fr>
217
218 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
219 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
220 New files, from Fileutils 4.0.27.
221 * src/main.c (printable_version): Remove.
222 * src/lex.c, src/reader.c: Use `quote'.
223
2242000-10-04 Akim Demaille <akim@epita.fr>
225
226 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
227
14ded682
AD
2282000-10-04 Akim Demaille <akim@epita.fr>
229
230 * doc/bison.texinfo: Various typos spotted by Neil Booth.
231
8e03724b
AD
2322000-10-04 Akim Demaille <akim@epita.fr>
233
234 When a literal string is used to define two different tokens,
235 `bison -v' segfaults.
236 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
237
238 * tests/regression.m4: New file.
239 Include the core of the sample provided by Piotr Gackiewicz.
240 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
241 properly.
242
a9e64249
AD
2432000-10-04 Akim Demaille <akim@epita.fr>
244
245 * src/reader.c (parse_expect_decl): Keep `count' within the size
246 of `buffer'.
247 From Neil Booth.
248
da9abf43
AD
2492000-10-02 Paul Eggert <eggert@twinsun.com>
250
251 * bison.s1 (yyparse): Assign the default value
252 unconditionally, to avoid a GCC warning and make the parser a
253 tad smaller.
254
c33638bb
AD
2552000-10-02 Akim Demaille <akim@epita.fr>
256
257 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
258 options.
259
444c570a
AD
2602000-10-02 Akim Demaille <akim@epita.fr>
261
262 * src/derives.c, src/print.c, src/reduce.c: To ease the
263 translation, move some `\n' out of the translated strings.
264
89cab50d
AD
2652000-10-02 Akim Demaille <akim@epita.fr>
266
267 The location tracking mechanism is precious for parse error
268 messages. Nevertheless, it is enabled only when `@n' is used in
269 the grammar, which is a different issue (you can use it in error
270 message, but not in the grammar per se). Therefore, there should
271 be another means to enable it.
272
273 * src/getargs.c (getargs): Support `--locations'.
274 (usage): Report it.
275 * src/getargs.h (locationsflag): Export it.
276 * src/lex.c (percent_table): Support `%locations'.
277 * src/reader.c (yylsp_needed): Remove this variable, now replaced
278 with `locationsflag'.
279 * doc/bison.texinfo: Document `--locations' and `%locations'.
280 Sort the options.
281 * tests/calc.m4: Test it.
282
283 For regularity of the names, replace each
284 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
285 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
286 In addition replace each `flag' with `_flag'.
287
d6c2cba0
AD
2882000-10-02 Akim Demaille <akim@epita.fr>
289
290 Also test parse error messages, including with YYERROR_VERBOSE.
291
292 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
293 associative).
294 Use it to check the computations.
295 Use it to check `nonassoc' is honored.
296 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
297 `--yyerror-verbose'.
298 (_AT_CHECK_CALC): Adjust to this option.
299 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
300
5a35a6cb
AD
3012000-10-02 Akim Demaille <akim@epita.fr>
302
303 Test also `--verbose', `--defines' and `--name-prefix'. Testing
304 the latter demonstrates a flaw in the handling of non debugging
305 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
306 was used in order to simplify:
307
308 #if YYDEBUG
309 if (yydebug)
310 {
311 ...
312 }
313 #endif
314
315 into
316
317 if (yydebug)
318 {
319 ...
320 }
321
322 unfortunately this leads to a CPP conflict when
323 `--name-prefix=foo' is used since it produces `#define yydebug
324 foodebug'.
325
326 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
327 (YYDPRINTF): New macro.
328 Spread its use.
329 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
330 the bison options.
331 Also test `--verbose', `--defines' and `--name-prefix'.
332
71da9eea
AD
3332000-10-02 Akim Demaille <akim@epita.fr>
334
335 Improve the readability of the produced parsers.
336
337 * src/bison.s1: Formatting changes.
338 Improve the comment related to the `$' mark.
339 (yydefault): Don't fall through to `yyresume': `goto' there.
340 * src/output.c (output_parser): When the `$' is met, skip the end
341 of its line.
342 New variable, `number_of_dollar_signs', to check there's exactly
343 one `$' in the parser skeleton.
344
95e36146
AD
3452000-10-02 Akim Demaille <akim@epita.fr>
346
347 * lib/xstrdup.c: New file, from the fileutils.
348 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
349 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
350 instead of strlen + xmalloc + strcpy.
351 * src/symtab.c (copys): Remove, use xstrdup instead.
352
d7020c20
AD
3532000-10-02 Akim Demaille <akim@epita.fr>
354
355 * src/gram.h (associativity): New enum type which replaces the
356 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
357 `right_assoc', `left_assoc' and `non_assoc'.
358 Adjust all dependencies.
359 * src/reader.c: Formatting changes.
360 (LTYPESTR): Don't define it, use it as a literal in
361 `reader_output_yylsp'.
362 * src/symtab.h (symbol_class): New enum type which replaces the
363 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
364 `sunknown', `stoken and `snterm'.
365
1916f98e
AD
3662000-10-02 Akim Demaille <akim@epita.fr>
367
368 * src/getargs.c (fixed_outfiles): Rename as...
369 (yaccflag): for consistency and accuracy.
370 Adjust dependencies.
371
d7913476
AD
3722000-10-02 Akim Demaille <akim@epita.fr>
373
374 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
375 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
376 difficult and introduced a lot of core dump. It turns out that
377 Bison used an implementation of `xmalloc' based on `calloc', and
378 at various places it does depend upon the initialization to 0. I
379 have not tried to isolate the pertinent places, and all the former
380 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
381 someone should address this issue.
382
383 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
384 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
385 files.
386 Adjust dependencies.
387 * src/warshall.h: New file.
388 Propagate.
389
340ef489
AD
3902000-10-02 Akim Demaille <akim@epita.fr>
391
392 Various anti-`extern in *.c' changes.
393
394 * src/system.h: Include `assert.h'.
395
b2ca4022
AD
3962000-10-02 Akim Demaille <akim@epita.fr>
397
398 * src/state.h (nstates, final_state, first_state, first_shift)
399 (first_reduction): Move their exportation from here...
400 * src/LR0.h: to here.
401 Adjust dependencies.
402 * src/getargs.c (statisticsflag): New variable.
403 Add support for `--statistics'.
404 Adjust dependencies.
405
406 Remove a lot of now useless `extern' statements in most files.
407
403b315b
AD
4082000-10-02 Akim Demaille <akim@epita.fr>
409
410 * src/LR0.h: New file.
411 Propagate its use.
412
07a58c13
AD
4132000-10-02 Akim Demaille <akim@epita.fr>
414
415 * src/print.h: New file.
416 Propagate its use.
417 * src/print.c: Formatting and ordering changes.
418 (verbose, terse): Replace with...
419 (print_results): this new function.
420 Adjust dependencies.
421
0619caf0
AD
4222000-10-02 Akim Demaille <akim@epita.fr>
423
424 * src/conflicts.c (conflict_report): New function.
425 (conflict_log, verbose_conflict_log): Replace with...
426 (print_conflicts): this function.
427 Adjust dependencies.
428 * src/conflicts.h: New file.
429 Propagate its inclusion.
430
3519ec76
AD
4312000-10-02 Akim Demaille <akim@epita.fr>
432
433 * src/nullable.h: New file.
434 Propagate its inclusion.
435 * src/nullable.c: Formatting changes.
436
015acc48
AD
4372000-10-02 Akim Demaille <akim@epita.fr>
438
439 * src/reduce.h: New file.
440 Propagate its inclusion.
441 * src/reduce.c: Topological sort and other formatting changes.
442 (bool, TRUE, FALSE): Move their definition to...
443 * src/system.h: here.
444
8963a27b
AD
4452000-10-02 Akim Demaille <akim@epita.fr>
446
447 * src/files.c: Formatting changes.
448 (tryopen, tryclose, openfiles): Rename as...
449 (xfopen, xfclose, open_files): this.
450 (stringappend): static.
451 * src/files.h: Complete the list of exported symbols.
452 Propagate its use.
453
a70083a3
AD
4542000-10-02 Akim Demaille <akim@epita.fr>
455
456 * src/reader.h: New file.
457 Propagate its use instead of tedious list of `extern' and
458 prototypes.
459 * src/reader.c: Formatting changes, topological sort,
460 s/register//.
461
abadc117
AD
4622000-10-02 Akim Demaille <akim@epita.fr>
463
464 * src/lex.h: Prototype `lex.c' exported functions.
465 * src/reader.c: Adjust.
466 * src/lex.c: Formatting changes.
467 (safegetc): Rename as...
468 (xgetc): this.
469
720d742f
AD
4702000-10-02 Akim Demaille <akim@epita.fr>
471
472 * src/lalr.h: New file.
473 Propagate its inclusion instead of prototypes and `extern'.
474 * src/lalr.c: Formatting changes, topological sorting etc.
475
f2acea59
AD
4762000-10-02 Akim Demaille <akim@epita.fr>
477
478 * src/output.c (token_actions): Introduce a temporary array,
479 YYDEFACT, that makes it possible for this function to use
480 output_short_table.
481
d019d655
AD
4822000-10-02 Akim Demaille <akim@epita.fr>
483
484 `user_toknums' is output as a `short[]' in `output.c', while it is
485 defined as a `int[]' in `reader.c'. For consistency with the
486 other output tables, `user_toknums' is now defined as a table of
487 shorts.
488
489 * src/reader.c (user_toknums): Be a short table instead of an int
490 table.
491 Adjust dependencies.
492
493 Factor the short table outputs.
494
495 * src/output.c (output_short_table): New function.
496 * src/output.c (output_gram, output_stos, output_rule_data)
497 (output_base, output_table, output_check): Use it.
498
6c89f1c1
AD
4992000-10-02 Akim Demaille <akim@epita.fr>
500
501 * src/output.c (output): Topological sort of the functions, in
502 order to get rid of the `static' prototypes.
503 No longer use `register'.
504 * src/output.h: New file.
505 Propagate its inclusion in files explicitly prototyping functions
506 from output.c.
507
d9efd181
AD
5082000-09-21 Akim Demaille <akim@epita.fr>
509
510 * src/atgeneral.m4: Update from Autoconf.
511
c29240e7 5122000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
513
514 * src/closure.h: New file.
515 * src/closure.c: Formatting changes, topological sort over the
516 functions, use of closure.h.
517 (initialize_closure, finalize_closure): Rename as...
518 (new_closure, free_closure): these. Adjust dependencies.
519 * src/LR0.c: Formatting changes, topological sort, use of
520 cloture.h.
521 (initialize_states): Rename as...
522 (new_states): this.
523 * src/Makefile.am (noinst_HEADERS): Adjust.
524
499daa50
AD
5252000-09-20 Akim Demaille <akim@epita.fr>
526
527 * src/acconfig.h: Don't protect config.h against multiple
528 inclusion.
529 Don't define PARAMS.
530 * src/system.h: Define PARAMS.
531 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
532 purpose of config.h. system.h must not try to fix wrong
533 definitions in config.h.
534
cc84fd5d
AD
5352000-09-20 Akim Demaille <akim@epita.fr>
536
537 * src/derives.h: New file.
538 * src/main.c, src/derives.h: Use it.
539 Formatting changes.
540 * src/Makefile.am (noinst_HEADERS): Adjust.
541
db5b3a89
AD
5422000-09-20 Akim Demaille <akim@epita.fr>
543
544 * tests/atgeneral.m4: Update from Autoconf.
545 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
546 (AT_CHECK_CALC): New macros.
547 Use these macros to test bison with options `', `--raw',
548 `--debug', `--yacc', `--yacc --debug'.
549
ceed8467
AD
5502000-09-19 Akim Demaille <akim@epita.fr>
551
552 * src/output.c: Formatting changes.
553 * src/machine.h: Remove, leaving its contents in...
554 * src/system.h: here.
555 Include stdio.h.
556 Adjust all dependencies on stdio.h and machine.h.
557 * src/getargs.h: New file.
558 Let all `extern' declarations about getargs.c be replaced with
559 inclusion of `getargs.h'.
560 * src/Makefile.am (noinst_HEADERS): Adjust.
561
562 * tests/calc.m4 (yyin): Be initialized in main, not on the global
563 scope.
564 (yyerror): Returns void, not int.
565 * doc/bison.texinfo: Formatting changes.
566
05a1d24b
AD
5672000-09-19 Akim Demaille <akim@epita.fr>
568
569 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
570 portable.
571
cbd25751
AD
5722000-09-18 Akim Demaille <akim@epita.fr>
573
574 * configure.in: Append WARNING_CFLAGS to CFLAGS.
575 * src/Makefile.am (INCLUDES): Don't.
576 Be ready to fetch headers in lib/.
577
13863333
AD
5782000-09-18 Akim Demaille <akim@epita.fr>
579
580 * doc/bison.texinfo: Update the copyright.
581 ANSIfy and GNUify the examples.
582 Remove the old menu.
583
0d533154
AD
5842000-09-18 Akim Demaille <akim@epita.fr>
585
586 First set of tests: use the `calc' example from the documentation.
587
588 * src/bison.s1 (yyparse): Condition the code using `yytname' which
589 is defined only when YYDEBUG is.
590 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
591 * src/files.c (tryopen, tryclose): Formatting changes.
592 Move to the top and be static.
593 * src/reader.c (read_signed_integer): Likewise.
594 * tests/calc.m4: New file.
595 * Makefile.am, suite.m4: Adjust.
596 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
597
e79137ac
AD
5982000-09-18 Akim Demaille <akim@epita.fr>
599
600 Add support for an Autotest test suite for Bison.
601
602 * m4/m4.m4, m4/atconfig.m4: New files.
603 * m4/Makefile.am (EXTRA_DIST): Adjust.
604 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
605 files.
606 * src/getargs.c: Display a more standard --version message.
607 * src/reader.c (reader): Formatting changes.
608 No longer depend upon VERSION_STRING.
609 * configure.in: No longer use `dnl'.
610 Set up the test suite and the new directory `tests/.
611 (VERSION_STRING): Remove.
612
27821bff
AD
6132000-04-14 Akim Demaille <akim@epita.fr>
614
615 * src/reader.c (copy_comment2): New function, same as former
616 `copy_comment', but outputs into two FILE *.
617 (copy_comment): Use it.
618 (parse_union_decl): Use it.
619 (get_type, parse_start_decl): Use the same `invalid' message.
620 (parse_start_decl, parse_union_decl): Use the same `multiple'
621 message.
622 (parse_union_decl, copy_guard, copy_action): Use the same
623 `unmatched' message.
624 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
625
cfe5fbc0
AD
6262000-03-31 Akim Demaille <akim@epita.fr>
627
628 * src/files.c (tryopen, tryclose): Move to the top.
629 Be static.
630
cb7db13e
AD
6312000-03-31 Akim Demaille <akim@epita.fr>
632
633 * src/main.c (main): Don't call `done', exit does it.
634
a0f6b076
AD
6352000-03-31 Akim Demaille <akim@epita.fr>
636
36281465
AD
637 * allocate.c: s/return (foo)/return foo/.
638 * lalr.c: Likewise.
639 * LR0.c: Likewise.
640 * output.c: Likewise.
641 * reader.c: Likewise.
642 * symtab.c: Likewise.
643 * vmsgetargs.c: Likewise.
644
6452000-03-31 Akim Demaille <akim@epita.fr>
646
647 Clean up the error reporting functions.
a0f6b076
AD
648
649 * src/report.c: New file.
650 * src/report.h: Likewise.
651 * src/Makefile.am: Adjust.
652 * m4/error.m4: New file.
653 * m4/Makefile.am: Adjust.
654 * configure.in (jm_PREREQ_ERROR): Call it.
655 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
656 Remove.
657 (fatal, fatals): Remove. All callers use complain.c::fatal.
658 (warn, warni, warns, warnss, warnss): Remove. All callers use
659 complain.c::complain.
660 (toomany): Remove, use fatal instead.
661 * src/files.c (done): No argument, use complain_message_count.
662 * src/main.c (main): Register `done' to `atexit'.
663
664 * src/getargs.c (usage): More `fputs', less `fprintf'.
665
18539825
AD
6662000-03-28 Akim Demaille <akim@epita.fr>
667
668 * lib/: New directory.
669 * Makefile.am (SUBDIRS): Adjust.
670 * configure.in: Adjust.
671 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
672 useless.
673 * src/alloca.c: Moved to lib/.
674 * src/getopt.c: Likewise.
675 * src/getopt1.c: Likewise.
676 * src/getopt.h: Likewise.
677 * src/ansi2knr.c: Likewise.
678 * src/ansi2knr.1: Likewise.
679 * src/Makefile.am: Adjust.
680 * lib/Makefile.am: New file.
681
9f306f2a
AD
6822000-03-28 Akim Demaille <akim@epita.fr>
683
684 * src/getargs.c (usage): Refresh the help message.
685
0ba347b6
AD
6862000-03-17 Akim Demaille <akim@epita.fr>
687
688 * src/getopt1.c: Updated from textutils 2.0e
689 * src/getopt.c: Likewise.
690 * src/getopt.h: Likewise.
691
dbe7f271
AD
6922000-03-17 Akim Demaille <akim@epita.fr>
693
694 * src/Makefile.am (bison.simple): Fix the awk program: quote only
695 the file name, not the whole `#line LINE FILE'.
696
75bbe78d
AD
6972000-03-17 Akim Demaille <akim@epita.fr>
698
699 On syntax errors, report the token on which we choked.
700
aa5fd0ee
AD
701 * src/bison.s1 (yyparse): In the label yyerrlab, when
702 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 703
7b306f52
AD
7042000-03-17 Akim Demaille <akim@epita.fr>
705
aa5fd0ee 706 * src/reader.c (copy_at): New function.
7b306f52
AD
707 (copy_guard): Use it.
708 (copy_action): Use it.
709
e87b5700
AD
7102000-03-17 Akim Demaille <akim@epita.fr>
711
712 Be kind to translators, save some useless translations.
713
aa5fd0ee 714 * src/main.c (banner): New function.
e87b5700
AD
715 (fatal_banner): Use it.
716 (warn_banner): Use it.
717
ae3c3164
AD
7182000-03-17 Akim Demaille <akim@epita.fr>
719
aa5fd0ee
AD
720 * src/reader.c (copy_definition): Use copy_string and
721 copy_comment. Removed now unused `match', `ended',
722 `cplus_comment'.
ae3c3164
AD
723 (copy_comment, copy_string): Moved, to be visible from
724 copy_definition.
725
4dc58e7c
AD
7262000-03-17 Akim Demaille <akim@epita.fr>
727
aa5fd0ee
AD
728 * src/reader.c (copy_string): Declare `static inline'. No
729 problems with inline, since it is checked by configure.
4dc58e7c
AD
730 (copy_comment): Likewise.
731
0a6384c4
AD
7322000-03-17 Akim Demaille <akim@epita.fr>
733
aa5fd0ee 734 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 735
3cef001a
AD
7362000-03-17 Akim Demaille <akim@epita.fr>
737
aa5fd0ee 738 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
739 (copy_action): Use it. Removed now unused `match', `ended',
740 `cplus_comment'.
741 (copy_guard): Likewise.
742
ca36d2ef
AD
7432000-03-17 Akim Demaille <akim@epita.fr>
744
aa5fd0ee 745 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
746 (copy_action): Use it.
747 (copy_guard): Likewise.
748
6666f98f
AD
7492000-03-17 Akim Demaille <akim@epita.fr>
750
751 Change the handling of @s so that they behave exactly like $s.
752 There is now a pseudo variable @$ (readble and writable), location
753 of the lhs of the rule (by default ranging from the location of
754 the first symbol of the rhs, to the location of the last symbol,
755 or, if the rhs is empty, YYLLOC).
756
757 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
758 yyval.
759 (yyparse): When providing a default semantic action, provide a
760 default location action.
761 (after the $): No longer change `*YYLSP', just stack YYLOC the
762 same way you stack YYVAL.
763 * src/reader.c (read_declarations): Use warns.
764 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
765 (copy_action, case '@'): Likewise.
766 Use a standard error message, to save useless work from
767 translators.
768
41aca2e0
AD
7692000-03-17 Akim Demaille <akim@epita.fr>
770
aa5fd0ee
AD
771 * src/bison.s1: Formatting and cosmetics changes.
772 * src/reader.c: Likewise.
41aca2e0
AD
773 Update the Copyright notice.
774
dc08c1d5
AD
7752000-03-17 Akim Demaille <akim@epita.fr>
776
aa5fd0ee
AD
777 * src/bison.s1 (#line): All set to `#line' only, since the
778 Makefile now handles them.
dc08c1d5 779
9ee3c97b
AD
7802000-03-16 Akim Demaille <akim@epita.fr>
781
782 * src/output.c (output_rule_data): Output the documentation of
783 some of the tables.
784 (Copyright notice): Update.
785 Formatting changes.
786
0de741ca
AD
7872000-03-16 Akim Demaille <akim@epita.fr>
788
789 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
790 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
791 One `#if YYDEBUG' remains, since it uses variables which are
792 defined only if `YYDEBUG != 0'.
793
bb10be54
AD
7942000-03-16 Akim Demaille <akim@epita.fr>
795
796 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
797 and related variables so that the similarities are highlighted.
798
b07b484a
AD
7992000-03-16 Akim Demaille <akim@epita.fr>
800
801 * src/bison.s1: Properly indent CPP directives.
802
361f60b3
AD
8032000-03-16 Akim Demaille <akim@epita.fr>
804
805 * src/bison.s1: Properly indent the `alloca' CPP section.
806
8c44d3ec
AD
8072000-03-16 Akim Demaille <akim@epita.fr>
808
809 Do not hard code values of directories in `configure.in'.
810 Update the `configure' tool chain.
811
812 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
813 src/makefile.am.
814 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
815 (AC_OUTPUT): Add m4/Makefile.
816 Bump to bison 1.28a, 1.29 has never been released.
817 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
818 handled via src/Makefile.am.
819 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
820 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
821 autoheader.
822 * Makefile.am (SUBDIRS): Add m4.
823 (ACLOCAL_AM_FLAGS): New variable.
824 (AUTOMAKE_OPTIONS): Add check-news.
825 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
826 the proper line number and file name.
827 (DEFS): Propagate the location of bison library files and of the
828 locale files.
829 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
830 builddir.
831 * acinclude.m4: Remove, replaced by the directory m4.
832 * m4/Makefile.am (EXTRA_DIST): New variable.
833 * m4/gettext.m4: New file, from the fileutils.
834 * m4/lcmessage.m4: Likewise
835 * m4/progtest.m4: Likewise.
836 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
837
f95997e7
AD
8382000-03-10 Akim Demaille <akim@epita.fr>
839
840 * src/closure.c:
841 Formatting changes of various comments.
842 Respect the GNU coding standards at various places.
843 Don't use `_()' when no translation is needed.
844
8451999-12-13 Jesse Thilo <jthilo@gnu.org>
846
847 * src/files.c:
848 OS/2 honors TMPDIR environment variable.
849
8501999-12-13 Jesse Thilo <jthilo@gnu.org>
851
852 * doc/bison.texinfo: Tweaked spelling and grammar.
853 Updated ISBN.
854 Removed reference to price of printed copy.
855 Mention BISON_SIMPLE and BISON_HAIRY.
856
8571999-12-13 Jesse Thilo <jthilo@gnu.org>
858
859 * configure.in, NEWS:
860 Bison 1.29 released.
861
8621999-10-27 Jesse Thilo <jthilo@gnu.org>
863
864 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
865 Added reference card.
866
8671999-07-26 Jesse Thilo <jthilo@gnu.org>
868
869 * po/ru.po: Added Russian translation.
870
8711999-07-26 Jesse Thilo <jthilo@gnu.org>
872
873 * configure.in: Added Russian translation.
874
8751999-07-06 Jesse Thilo <jthilo@gnu.org>
876
877 * configure.in, NEWS, README:
878 Released version 1.28.
879
8801999-06-14 Jesse Thilo <jthilo@gnu.org>
881
882 * src/system.h:
883 Squashed redefinition warning on some systems.
884
885 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
886 Have configure build version string instead of relying on ANSI string
887 concatentation.
888
8891999-06-14 Jesse Thilo <jthilo@gnu.org>
890
891 * po/POTFILES.in: Got rid of version.c.
892
8931999-06-14 Jesse Thilo <jthilo@gnu.org>
894
895 * acconfig.h, configure.in:
896 Have configure build version string instead of relying on ANSI string
897 concatentation.
898
8991999-06-08 Jesse Thilo <jthilo@gnu.org>
900
901 * doc/bison.1:
902 Dropped mention of `+' for long-named options.
903
9041999-05-30 Jesse Thilo <jthilo@gnu.org>
905
906 * src/files.c: Added <unistd.h> for unlink().
907
908 * src/Makefile.am, src/system.h:
909 I18n fixes.
910
9111999-05-30 Jesse Thilo <jthilo@gnu.org>
912
913 * README: Added a FAQ list.
914
915 * configure.in, acconfig.h:
916 I18n fixes.
917
9181999-05-30 Jesse Thilo <jthilo@gnu.org>
919
920 * doc/FAQ, doc/Makefile.am:
921 Added a FAQ list.
922
9231999-05-19 Jesse Thilo <jthilo@gnu.org>
924
925 * src/alloc.h, src/symtab.h, src/version.c:
926 Protected inclusion of "config.h" with HAVE_CONFIG_H.
927
9281999-04-18 Jesse Thilo <jthilo@gnu.org>
929
930 * src/.cvsignore, src/Makefile.am:
931 Reorganized: sources in `src', documentation in `doc'.
932
933 * src/lex.c (literalchar):
934 fixed the code for escaping double quotes (thanks
935 Jonathan Czisny.)
936
9371999-04-18 Jesse Thilo <jthilo@gnu.org>
938
939 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
940 Adjusted paths to reflect directory reorganization.
941
9421999-04-18 Jesse Thilo <jthilo@gnu.org>
943
944 * doc/.cvsignore, doc/Makefile.am:
945 Reorganized: sources in `src', documentation in `doc'.
946
9471999-04-18 Jesse Thilo <jthilo@gnu.org>
948
949 * configure.in:
950 Updated AC_INIT file to reflect directory reorganization.
951
952 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
953 Reorganized: sources in `src', documentation in `doc'.
954
9551999-04-13 Jesse Thilo <jthilo@gnu.org>
956
957 * src/allocate.c:
958 Don't declare calloc() and realloc() if not necessary.
959
9601999-04-13 Jesse Thilo <jthilo@gnu.org>
961
962 * configure.in, acconfig.h, acinclude.m4:
963 Don't declare calloc() and realloc() if not necessary.
964
9651999-03-23 Jesse Thilo <jthilo@gnu.org>
966
967 * po/.cvsignore: Added i18n support.
968
9691999-03-23 Jesse Thilo <jthilo@gnu.org>
970
971 * acconfig.h, configure.in, Makefile.am:
972 Added i18n support.
973
9741999-03-22 Jesse Thilo <jthilo@gnu.org>
975
976 * src/bison.s1: Fixed #line numbers.
977
9781999-03-15 Jesse Thilo <jthilo@gnu.org>
979
980 * po/es.po, po/fr.po, po/nl.po, po/de.po:
981 Added PO files from Translation Project.
982
9831999-03-03 Jesse Thilo <jthilo@gnu.org>
984
985 * Makefile.am:
986 Added support for non-ANSI compilers (ansi2knr).
987
9881999-02-16 Jesse Thilo <jthilo@gnu.org>
989
990 * configure.in: Bumped version number to 1.27.
991
992 * Makefile.am:
993 Added `bison.simple' to list of files removed by `make distclean'.
994
9951999-02-12 Jesse Thilo <jthilo@gnu.org>
996
997 * src/files.c, src/files.h:
998 Defined locations of parser files in config.h instead of Makefile.
999
10001999-02-12 Jesse Thilo <jthilo@gnu.org>
1001
1002 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1003 Defined locations of parser files in config.h instead of Makefile.
1004
10051999-02-09 Jesse Thilo <jthilo@gnu.org>
1006
1007 * Makefile.am:
1008 Removed inappropriate use of $< macro.
1009
10101999-02-05 Jesse Thilo <jthilo@gnu.org>
1011
1012 * po/Makefile.in.in, po/POTFILES.in:
1013 Add `po' directory skeleton.
1014
10151999-01-27 Jesse Thilo <jthilo@gnu.org>
1016
1017 * README: Document help-bison list.
1018
1019 * configure.in: Add check for mkstemp().
1020
10211999-01-20 Jesse Thilo <jthilo@gnu.org>
1022
1023 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1024 Hush a few compiler warnings.
1025
1026 * src/files.c:
1027 Add tryclose(), which verifies that fclose was successful.
1028 Hush a couple of compiler warnings.
1029
10301999-01-20 Jesse Thilo <jthilo@gnu.org>
1031
1032 * Makefile.am, OChangeLog:
1033 ChangeLog is now automatically generated. Include the old version as
1034 OChangeLog.
1035
10361999-01-14 Jesse Thilo <jthilo@gnu.org>
1037
1038 * 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:
1039 Update FSF address.
1040
10411999-01-14 Jesse Thilo <jthilo@gnu.org>
1042
1043 * doc/bison.texinfo: Fix formatting glitch.
1044
1045 * doc/bison.texinfo: Update FSF address.
1046
10471999-01-14 Jesse Thilo <jthilo@gnu.org>
1048
1049 * acconfig.h: Update FSF address.
1050
10511999-01-08 Jesse Thilo <jthilo@gnu.org>
1052
1053 * src/system.h:
1054 Don't define PACKAGE here, since config.h defines it.
1055
10561998-12-30 Jesse Thilo <jthilo@gnu.org>
1057
1058 * src/reader.c: Update copyright date.
1059
1060 * src/main.c:
1061 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1062 favor of output directly to stderr (avoids buffer overruns).
1063
1064 * src/reader.c: Some checks for premature EOF.
1065
1066 * 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:
1067 Use prototypes if the compiler understands them.
1068
1069 * src/files.c: Honor TMPDIR on Unix hosts.
1070 Use prototypes if the compiler understands them.
1071
1072 * src/reader.c:
1073 Fix a couple of buffer overrun bugs.
1074 Use prototypes if the compiler understands them.
1075
1076 * src/system.h: Include unistd.h and ctype.h.
1077 Use #ifdef instead of #if for NLS symbols.
1078
10791998-12-30 Jesse Thilo <jthilo@gnu.org>
1080
1081 * doc/bison.texinfo:
1082 Delete comment "consider using @set for edition number, etc..." since
1083 we now are doing so.
1084
10851998-12-30 Jesse Thilo <jthilo@gnu.org>
1086
1087 * configure.in:
1088 Use prototypes if the compiler understands them.
1089
1090 * NEWS: Document 1.26 highlights.
1091
1092 * Makefile.am: Require Automake 1.3 or later.
1093
1094 * acconfig.h:
1095 Use prototypes if the compiler understands them.
1096
10971998-12-29 Jesse Thilo <jthilo@gnu.org>
1098
1099 * src/version.c:
1100 Use VERSION symbol from automake for version number.
1101
11021998-12-29 Jesse Thilo <jthilo@gnu.org>
1103
1104 * acconfig.h, configure.in, version.cin:
1105 Use VERSION symbol from automake for version number.
1106
11071998-11-28 Jesse Thilo <jthilo@gnu.org>
1108
1109 * Makefile.am:
1110 Distribute original version of simple parser (bison.s1), not built
1111 version (bison.simple).
1112
11131998-11-28 Jesse Thilo <jthilo@gnu.org>
1114
1115 * doc/bison.texinfo: Add info dir entry.
1116
1117 * doc/bison.texinfo:
1118 Let automake put version number into documentation.
1119
11201998-11-26 Jesse Thilo <jthilo@gnu.org>
1121
1122 * src/bison.cld, src/build.com, src/vmshlp.mar:
1123 Add non-RCS files from /gd/gnu/bison.
1124
11251998-11-26 Jesse Thilo <jthilo@gnu.org>
1126
1127 * doc/bison.1:
1128 Document the BISON_HAIRY and BISON_SIMPLE variables.
1129
11301998-11-25 Jesse Thilo <jthilo@gnu.org>
1131
1132 * src/version.c: Build version.c automatically.
1133
1134 * src/reader.c:
1135 Fix token numbering (used to start at 258, not 257).
1136
1137 * src/system.h: Include config.h.
1138
1139 * src/getargs.c: Update bug report address.
1140
1141 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1142 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1143
11441998-11-25 Jesse Thilo <jthilo@gnu.org>
1145
1146 * Makefile.am:
1147 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1148
1149 * configure.in, version.cin:
1150 Build version.c automatically.
1151
1152 * AUTHORS: Add AUTHORS file.
1153
1154 * README: Update bug report address.
1155
1156 * bison.simple:
1157 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1158
1159 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1160 Add automake stuff.
1161
11621998-11-25 Jesse Thilo <jthilo@gnu.org>
1163
1164 * doc/bison.texinfo: Clean up some formatting.
1165
11661998-05-05 Richard Stallman <rms@gnu.org>
1167
1168 * doc/bison.texinfo:
1169 Explain better why to make a pure parser.
1170
11711998-01-05 Richard Stallman <rms@gnu.org>
1172
1173 * src/files.c (openfiles):
1174 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1175 find a temporary directory, if possible. Do not unlink files while
1176 they are open.
1177
11781997-08-25 Richard Stallman <rms@gnu.org>
1179
1180 * src/reader.c (stack_offset;):
1181 Change some warni to warns.
1182
1183 * src/lex.c (literalchar): Use warns, not warni.
1184
11851997-06-28 Richard Stallman <rms@gnu.org>
1186
1187 * src/bison.s1: Add a Bison version comment.
1188
1189 * src/main.c (fatal, warn, berror):
1190 Use program_name.
1191
11921997-06-28 Richard Stallman <rms@gnu.org>
1193
1194 * Makefile.in (bison_version): New variable.
1195 (dist): Use that variable.
1196 (bison.s1): Substitute the Bison version into bison.simple.
1197
1198 * bison.simple: Add a Bison version comment.
1199
12001997-06-18 Richard Stallman <rms@gnu.org>
1201
1202 * src/main.c (fatal, warn, berror):
1203 Make error messages standard.
1204 (toomany): Improve error message text.
1205
1206 * 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:
1207 new.h renamed to alloc.h.
1208
12091997-06-18 Richard Stallman <rms@gnu.org>
1210
1211 * Makefile.in: new.h renamed to alloc.h.
1212
12131997-05-24 Richard Stallman <rms@gnu.org>
1214
1215 * src/lex.c (literalchar):
1216 Fix the code for escaping \, " and '.
1217
1218 (lex): Avoid trouble when there are many chars
1219 to discard in a char literal with just several chars in it.
1220
12211997-05-17 Richard Stallman <rms@gnu.org>
1222
1223 * src/bison.s1:
1224 Use malloc, if using alloca is troublesome.
1225 (YYSTACK_USE_ALLOCA): New flag macro.
1226 Define it for some systems and compilers.
1227 (YYSTACK_ALLOC): New macro.
1228 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1229 If it was malloc'd, free it.
1230
12311997-05-17 Richard Stallman <rms@gnu.org>
1232
1233 * bison.simple:
1234 Use malloc, if using alloca is troublesome.
1235 (YYSTACK_USE_ALLOCA): New flag macro.
1236 Define it for some systems and compilers.
1237 (YYSTACK_ALLOC): New macro.
1238 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1239 If it was malloc'd, free it.
1240
12411997-04-23 Richard Stallman <rms@gnu.org>
1242
1243 * src/bison.s1:
1244 (alloca) [__hpux]: Always define as __builtin_alloca.
1245
12461997-04-23 Richard Stallman <rms@gnu.org>
1247
1248 * bison.simple:
1249 (alloca) [__hpux]: Always define as __builtin_alloca.
1250
12511997-04-22 Richard Stallman <rms@gnu.org>
1252
1253 * src/bison.s1:
1254 [__hpux]: Include alloca.h (right for HPUX 10)
1255 instead of declaring alloca (right for HPUX 9).
1256
1257 * src/bison.s1 (__yy_memcpy):
1258 Declare arg `count' as unsigned int.
1259 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1260
12611997-04-22 Richard Stallman <rms@gnu.org>
1262
1263 * bison.simple:
1264 [__hpux]: Include alloca.h (right for HPUX 10)
1265 instead of declaring alloca (right for HPUX 9).
1266
1267 * bison.simple (__yy_memcpy):
1268 Declare arg `count' as unsigned int.
1269 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1270
12711997-01-03 Richard Stallman <rms@gnu.org>
1272
1273 * src/allocate.c: [__STDC__ or _MSC_VER]:
1274 Declare calloc and realloc to return void *.
1275
12761997-01-02 Richard Stallman <rms@gnu.org>
1277
1278 * src/system.h:
1279 [_MSC_VER]: Include stdlib.h and process.h.
1280 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1281
1282 * src/main.c (main): Return FAILURE as a value.
1283 (printable_version): Declare arg as int, not char.
1284
12851997-01-02 Richard Stallman <rms@gnu.org>
1286
1287 * Makefile.in (dist):
1288 Explicitly check for symlinks, and copy them.
1289
12901996-12-19 Richard Stallman <rms@gnu.org>
1291
1292 * src/files.c:
1293 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1294
12951996-12-18 Paul Eggert <eggert@gnu.org>
1296
1297 * src/bison.s1 (yyparse):
1298 If __GNUC__ and YYPARSE_PARAM are both defined,
1299 declare yyparse to have a void * argument.
1300
13011996-12-18 Paul Eggert <eggert@gnu.org>
1302
1303 * bison.simple (yyparse):
1304 If __GNUC__ and YYPARSE_PARAM are both defined,
1305 declare yyparse to have a void * argument.
1306
13071996-12-17 Richard Stallman <rms@gnu.org>
1308
1309 * src/reduce.c (nbits): Add some casts.
1310
13111996-08-12 Richard Stallman <rms@gnu.org>
1312
1313 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1314
13151996-08-12 Richard Stallman <rms@gnu.org>
1316
1317 * bison.simple: Test _MSDOS as well as _MSDOS_.
1318
13191996-07-31 Richard Stallman <rms@gnu.org>
1320
1321 * src/bison.s1:
1322 [__sun && __i386]: Include alloca.h.
1323
13241996-07-31 Richard Stallman <rms@gnu.org>
1325
1326 * bison.simple:
1327 [__sun && __i386]: Include alloca.h.
1328
13291996-07-30 Richard Stallman <rms@gnu.org>
1330
1331 * src/bison.s1: Comment change.
1332
1333 * src/bison.s1: Test _MSDOS_, not MSDOS.
1334
13351996-07-30 Richard Stallman <rms@gnu.org>
1336
1337 * bison.simple: Comment change.
1338
1339 * bison.simple: Test _MSDOS_, not MSDOS.
1340
13411996-06-01 Richard Stallman <rms@gnu.org>
1342
1343 * 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:
1344 Insert `_' macro around many string constants.
1345
1346 * src/main.c:
1347 Insert `_' macro around many string constants.
1348
1349 (main): Call setlocale, bindtextdomain and textdomain.
1350
1351 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1352 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1353 [ENABLE_NLS]: Include libintl.h.
1354 [ENABLE_NLS] (gettext): Define.
1355 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1356 (N_, PACKAGE, LOCALEDIR): New macros.
1357
13581996-06-01 Richard Stallman <rms@gnu.org>
1359
1360 * POTFILES.in: New file.
1361
1362 * Makefile.in (allocate.o):
1363 Define target explicitly.
1364
1365 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1366 (LDFLAGS): Set to @LDFLAGS@.
1367 (configure): Run autoconf only if preceding `cd' succeeds.
1368 (bison.s1): Redirect output to temporary file then move the
1369 temporary to the target, rather than redirecting directly to bison.s1.
1370 (clean): Remove config.status and config.log.
1371 (distclean): Don't remove config.status here.
1372
13731996-05-12 Richard Stallman <rms@gnu.org>
1374
1375 * src/bison.s1:
1376 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1377
13781996-05-12 Richard Stallman <rms@gnu.org>
1379
1380 * bison.simple:
1381 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1382
13831996-05-11 Richard Stallman <rms@gnu.org>
1384
1385 * src/bison.s1 (__yy_memcpy):
1386 Really reorder the args, as was supposedly done on Feb 14 1995.
1387 (yyparse): Calls changed accordingly.
1388
13891996-05-11 Richard Stallman <rms@gnu.org>
1390
1391 * Makefile.in (dist): Don't use $(srcdir).
1392
1393 * bison.simple (__yy_memcpy):
1394 Really reorder the args, as was supposedly done on Feb 14 1995.
1395 (yyparse): Calls changed accordingly.
1396
13971996-01-27 Richard Stallman <rms@gnu.org>
1398
1399 * src/output.c (output_rule_data):
1400 Test YYERROR_VERBOSE in the conditional
1401 around the definition of ttyname.
1402
14031995-12-29 Richard Stallman <rms@gnu.org>
1404
1405 * src/bison.s1:
1406 Fix line numbers in #line commands.
1407
14081995-12-29 Richard Stallman <rms@gnu.org>
1409
1410 * bison.simple:
1411 Fix line numbers in #line commands.
1412
14131995-12-27 Richard Stallman <rms@gnu.org>
1414
1415 * src/bison.s1 (YYPARSE_PARAM_DECL):
1416 In C++, make it always null.
1417 (YYPARSE_PARAM_ARG): New macro.
1418 (yyparse): Use YYPARSE_PARAM_ARG.
1419
14201995-12-27 Richard Stallman <rms@gnu.org>
1421
1422 * bison.simple (YYPARSE_PARAM_DECL):
1423 In C++, make it always null.
1424 (YYPARSE_PARAM_ARG): New macro.
1425 (yyparse): Use YYPARSE_PARAM_ARG.
1426
14271995-11-29 Richard Stallman <rms@gnu.org>
1428
1429 * doc/bison.texinfo:
1430 Describe literal string tokens, %raw, %no_lines, %token_table.
1431
14321995-11-29 Daniel Hagerty <hag@gnu.org>
1433
1434 * doc/bison.texinfo: Fixed update date
1435
14361995-10-16 Richard Stallman <rms@gnu.org>
1437
1438 * src/version.c: Version 1.25.
1439
14401995-10-16 Richard Stallman <rms@gnu.org>
1441
1442 * NEWS: *** empty log message ***
1443
14441995-10-16 Richard Stallman <rms@gnu.org>
1445
1446 * doc/bison.1, doc/bison.rnh:
1447 Add new options.
1448
14491995-10-15 Richard Stallman <rms@gnu.org>
1450
1451 * src/vmsgetargs.c, src/getargs.c:
1452 Added -n, -k, and -raw switches.
1453 (noparserflag, toknumflag, rawtoknumflag): New variables.
1454
1455 * src/symtab.h (SALIAS):
1456 New #define for adding aliases to %token.
1457 (struct bucket): Added `alias' field.
1458
1459 * src/reduce.c (reduce_grammar):
1460 Revise error message.
1461 (print_notices): Remove final `.' from error message.
1462
1463 * src/reader.c (reader_output_yylsp):
1464 New function.
1465 (readgram): Use `#if 0' around code that accepted %command
1466 inside grammar rules: The documentation doesn't allow it,
1467 and it will fail since the %command processors scan for the next %.
1468 (parse_token_decl): Extended the %token
1469 declaration to allow a multi-character symbol as an alias.
1470 (parse_thong_decl): New function.
1471 (read_declarations): Added %thong declarations.
1472 (read_declarations): Handle NOOP to deal with allowing
1473 % declarations as another means to specify the flags.
1474 (readgram): Allow %prec prior to semantics embedded in a rule.
1475 (skip_to_char, read_declarations, copy_definition)
1476 (parse_token_decl, parse_start_decl, parse_type_decl)
1477 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1478 (get_type_name, copy_guard, copy_action, readgram)
1479 (get_type, packsymbols): Revised most error messages.
1480 Changed `fatal' to `warnxxx' to avoid aborting for error.
1481 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1482 (read_declarations): Improve the error message for
1483 an invalid character. Do not abort.
1484 (read_declarations, copy_guard, copy_action): Use
1485 printable_version to avoid unprintable characters in printed output.
1486 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1487 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1488 Allow the type of a non-terminal can be given
1489 more than once, as long as all specifications give the same type.
1490
1491 * src/output.c:
1492 (output_headers, output_trailers, output, output_gram)
1493 (output_rule_data): Implement noparserflag variable.
1494 Implement toknumflag variable.
1495 (output): Call reader_output_yylsp to output LTYPESTR.
1496
1497 * src/main.c (main):
1498 If reader sees an error, don't process the grammar.
1499 (fatals): Updated to not use VARARGS1.
1500 (printable_version, int_to_string, warn, warni, warns, warnss)
1501 (warnsss): New error reporting functions. Avoid abort for error.
1502
1503 * src/lex.h:
1504 Added THONG and NOOP for alias processing.
1505 Added SETOPT for the new code that allows setting options with %flags.
1506
1507 * src/lex.c:
1508 Include getopt.h. Add some extern decls.
1509 (safegetc): New function to deal with EOF gracefully.
1510 (literalchar); new function to deal with reading \ escapes.
1511 (lex): Use literalchar.
1512 (lex): Implemented "..." tokens.
1513 (literalchar, lex, parse_percent_token): Made tokenbuffer
1514 always contain the token. This includes growing the token
1515 buffer while reading an integer.
1516 (parse_percent_token): Replaced if-else statement with percent_table.
1517 (parse_percent_token): Added % declarations as another
1518 way to specify the flags -n, -l, and -r. Also added hooks for
1519 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1520 major changes to files.c.
1521 (lex) Retain in the incoming stream a character following
1522 an incorrect '/'.
1523 (skip_white_space, lex): Revised most error messages
1524 and changed fatal to warn to avoid aborting.
1525 (percent_table): Added %thong declarations.
1526
1527 * src/gram.h: Comment changes.
1528
1529 * src/files.c (openfiles, open_extra_files, done):
1530 Add faction flag
1531 and actfile file. Handle noparserflag. Both for -n switch.
1532
1533 * src/conflicts.c (resolve_sr_conflict):
1534 Remove use of alloca.
1535
15361995-06-01 Jim Meyering <meyering@gnu.org>
1537
1538 * doc/bison.texinfo: *** empty log message ***
1539
15401995-05-06 Richard Stallman <rms@gnu.org>
1541
1542 * src/bison.s1: Comment change.
1543
15441995-05-06 Richard Stallman <rms@gnu.org>
1545
1546 * bison.simple: Comment change.
1547
15481995-05-03 Richard Stallman <rms@gnu.org>
1549
1550 * src/version.c: Version now 1.24.
1551
1552 * src/bison.s1: Change distribution terms.
1553
1554 * src/version.c: Version now 1.23.
1555
15561995-05-03 Richard Stallman <rms@gnu.org>
1557
1558 * doc/bison.texinfo:
1559 Rewrite "Conditions for Using Bison".
1560 Update version to 1.24.
1561
15621995-05-03 Richard Stallman <rms@gnu.org>
1563
1564 * bison.simple: Change distribution terms.
1565
15661995-02-23 Richard Stallman <rms@gnu.org>
1567
1568 * src/files.c: Test __VMS_POSIX as well as VMS.
1569
15701995-02-14 Jim Meyering <meyering@gnu.org>
1571
1572 * src/bison.s1 (__yy_memcpy):
1573 Renamed from __yy_bcopy to avoid
1574 confusion. Reverse FROM and TO arguments to be consistent with
1575 those of memcpy.
1576
15771995-02-14 Jim Meyering <meyering@gnu.org>
1578
1579 * bison.simple (__yy_memcpy):
1580 Renamed from __yy_bcopy to avoid
1581 confusion. Reverse FROM and TO arguments to be consistent with
1582 those of memcpy.
1583
15841994-11-10 David J. MacKenzie <djm@gnu.org>
1585
1586 * NEWS: reformat
1587
1588 * NEWS: New file.
1589
1590 * Makefile.in (DISTFILES): Include NEWS.
1591
1592 * Makefile.in (DISTFILES):
1593 Include install-sh, not install.sh.
1594
1595 * configure.in: Update to Autoconf v2 macro names.
1596
15971994-10-05 David J. MacKenzie <djm@gnu.org>
1598
1599 * Makefile.in: fix typo
1600
1601 * Makefile.in (prefix, exec_prefix):
1602 Let configure set them.
1603
16041994-09-28 David J. MacKenzie <djm@gnu.org>
1605
1606 * Makefile.in: Set datadir to $(prefix)/share.
1607
16081994-09-15 Richard Stallman <rms@gnu.org>
1609
1610 * src/bison.s1:
1611 Update copyright notice and GPL version.
1612
16131994-09-15 Richard Stallman <rms@gnu.org>
1614
1615 * bison.simple:
1616 Update copyright notice and GPL version.
1617
16181994-07-12 Richard Stallman <rms@gnu.org>
1619
1620 * src/reduce.c, src/reader.c:
1621 entered into RCS
1622
16231994-05-05 David J. MacKenzie <djm@gnu.org>
1624
1625 * Makefile.in: entered into RCS
1626
16271994-03-26 Richard Stallman <rms@gnu.org>
1628
1629 * src/bison.s1: entered into RCS
1630
16311994-03-26 Richard Stallman <rms@gnu.org>
1632
1633 * bison.simple: entered into RCS
1634
16351994-03-25 Richard Stallman <rms@gnu.org>
1636
1637 * src/main.c: entered into RCS
1638
16391994-03-24 Richard Stallman <rms@gnu.org>
1640
1641 * src/conflicts.c: entered into RCS
1642
16431994-01-02 Richard Stallman <rms@gnu.org>
1644
1645 * Makefile.in: *** empty log message ***
1646
16471993-11-21 Richard Stallman <rms@gnu.org>
1648
1649 * src/bison.s1: *** empty log message ***
1650
16511993-11-21 Richard Stallman <rms@gnu.org>
1652
1653 * doc/bison.texinfo: entered into RCS
1654
1655 * doc/bison.texinfo: *** empty log message ***
1656
16571993-11-21 Richard Stallman <rms@gnu.org>
1658
1659 * bison.simple: *** empty log message ***
1660
16611993-10-25 David J. MacKenzie <djm@gnu.org>
1662
1663 * doc/bison.texinfo: *** empty log message ***
1664
16651993-10-19 Richard Stallman <rms@gnu.org>
1666
1667 * src/bison.s1: *** empty log message ***
1668
16691993-10-19 Richard Stallman <rms@gnu.org>
1670
1671 * bison.simple: *** empty log message ***
1672
16731993-10-14 Richard Stallman <rms@gnu.org>
1674
1675 * src/bison.s1: *** empty log message ***
1676
16771993-10-14 Richard Stallman <rms@gnu.org>
1678
1679 * bison.simple: *** empty log message ***
1680
16811993-09-14 David J. MacKenzie <djm@gnu.org>
1682
1683 * doc/bison.texinfo: *** empty log message ***
1684
16851993-09-13 Noah Friedman <friedman@gnu.org>
1686
1687 * Makefile.in: *** empty log message ***
1688
16891993-09-10 Richard Stallman <rms@gnu.org>
1690
1691 * src/conflicts.c: *** empty log message ***
1692
1693 * src/system.h: entered into RCS
1694
16951993-09-10 Richard Stallman <rms@gnu.org>
1696
1697 * doc/bison.1: entered into RCS
1698
16991993-09-06 Noah Friedman <friedman@gnu.org>
1700
1701 * src/version.c: entered into RCS
1702
17031993-09-06 Noah Friedman <friedman@gnu.org>
1704
1705 * Makefile.in: *** empty log message ***
1706
17071993-07-30 David J. MacKenzie <djm@gnu.org>
1708
1709 * Makefile.in: *** empty log message ***
1710
17111993-07-24 Richard Stallman <rms@gnu.org>
1712
1713 * src/bison.s1: *** empty log message ***
1714
17151993-07-24 Richard Stallman <rms@gnu.org>
1716
1717 * bison.simple: *** empty log message ***
1718
17191993-07-08 David J. MacKenzie <djm@gnu.org>
1720
1721 * Makefile.in: *** empty log message ***
1722
17231993-07-04 Richard Stallman <rms@gnu.org>
1724
1725 * src/bison.s1: *** empty log message ***
1726
17271993-07-04 Richard Stallman <rms@gnu.org>
1728
1729 * bison.simple: *** empty log message ***
1730
17311993-06-26 David J. MacKenzie <djm@gnu.org>
1732
1733 * src/getargs.c: entered into RCS
1734
17351993-06-26 David J. MacKenzie <djm@gnu.org>
1736
1737 * doc/bison.texinfo: *** empty log message ***
1738
1739 * doc/bison.1: New file.
1740
17411993-06-25 Richard Stallman <rms@gnu.org>
1742
1743 * src/getargs.c: New file.
1744
17451993-06-16 Richard Stallman <rms@gnu.org>
1746
1747 * src/bison.s1: *** empty log message ***
1748
17491993-06-16 Richard Stallman <rms@gnu.org>
1750
1751 * bison.simple: *** empty log message ***
1752
17531993-06-03 Richard Stallman <rms@gnu.org>
1754
1755 * src/bison.s1: New file.
1756
17571993-06-03 Richard Stallman <rms@gnu.org>
1758
1759 * doc/bison.texinfo: *** empty log message ***
1760
17611993-06-03 Richard Stallman <rms@gnu.org>
1762
1763 * bison.simple: New file.
1764
17651993-05-19 Richard Stallman <rms@gnu.org>
1766
1767 * doc/bison.texinfo: New file.
1768
17691993-05-07 Noah Friedman <friedman@gnu.org>
1770
1771 * Makefile.in: *** empty log message ***
1772
17731993-04-28 Noah Friedman <friedman@gnu.org>
1774
1775 * src/reader.c: *** empty log message ***
1776
17771993-04-23 Noah Friedman <friedman@gnu.org>
1778
1779 * src/alloc.h: entered into RCS
1780
17811993-04-20 David J. MacKenzie <djm@gnu.org>
1782
1783 * src/version.c: *** empty log message ***
1784
1785 * src/files.c, src/allocate.c:
1786 entered into RCS
1787
1788 * src/reader.c: *** empty log message ***
1789
1790 * src/lex.c: entered into RCS
1791
1792 * src/conflicts.c: New file.
1793
1794 * src/symtab.c: entered into RCS
1795
1796 * src/alloc.h: New file.
1797
1798 * src/LR0.c: entered into RCS
1799
18001993-04-18 Noah Friedman <friedman@gnu.org>
1801
1802 * src/reader.c: New file.
1803
1804 * src/version.c: *** empty log message ***
1805
18061993-04-18 Noah Friedman <friedman@gnu.org>
1807
1808 * Makefile.in: *** empty log message ***
1809
18101993-04-17 Noah Friedman <friedman@gnu.org>
1811
1812 * Makefile.in: *** empty log message ***
1813
18141993-04-15 Richard Stallman <rms@gnu.org>
1815
1816 * src/main.c, src/files.c:
1817 New file.
1818
18191993-04-15 Noah Friedman <friedman@gnu.org>
1820
1821 * configure.in: entered into RCS
1822
1823 * configure.in: *** empty log message ***
1824
1825 * configure.in: New file.
1826
18271993-04-14 Richard Stallman <rms@gnu.org>
1828
1829 * Makefile.in: New file.
1830
18311993-04-13 Richard Stallman <rms@gnu.org>
1832
1833 * src/version.c: New file.
1834
18351993-03-25 Richard Stallman <rms@gnu.org>
1836
1837 * src/output.c: entered into RCS
1838
18391992-09-25 Richard Stallman <rms@gnu.org>
1840
1841 * configure.bat: entered into RCS
1842
18431992-06-22 Richard Stallman <rms@gnu.org>
1844
1845 * src/vmsgetargs.c: entered into RCS
1846
18471992-06-22 Richard Stallman <rms@gnu.org>
1848
1849 * doc/bison.rnh: entered into RCS
1850
18511992-04-20 David J. MacKenzie <djm@gnu.org>
1852
1853 * README: entered into RCS
1854
18551992-01-22 Richard Stallman <rms@gnu.org>
1856
1857 * src/machine.h: entered into RCS
1858
18591991-12-21 Richard Stallman <rms@gnu.org>
1860
1861 * src/lalr.c, src/closure.c:
1862 entered into RCS
1863
18641991-12-20 Richard Stallman <rms@gnu.org>
1865
1866 * src/state.h: entered into RCS
1867
18681991-12-18 Richard Stallman <rms@gnu.org>
1869
1870 * src/print.c, src/nullable.c, src/derives.c:
1871 entered into RCS
1872
18731991-11-03 David J. MacKenzie <djm@gnu.org>
1874
1875 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1876 entered into RCS
1877
18781988-09-09 Richard Stallman <rms@gnu.org>
1879
1880 * src/bison.hairy: entered into RCS
1881
18821987-12-16 Richard Stallman <rms@gnu.org>
1883
1884 * REFERENCES: entered into RCS