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