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