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