]> git.saurik.com Git - bison.git/blame - ChangeLog
* acconfig.h: Remove, no longer used.
[bison.git] / ChangeLog
CommitLineData
7de23534
AD
12000-11-17 Akim Demaille <akim@epita.fr>
2
3 * acconfig.h: Remove, no longer used.
4
aa7815f5
AD
52000-11-07 Akim Demaille <akim@epita.fr>
6
7 * src: s/Copyright (C)/Copyright/g.
8
5af1f549
AD
92000-11-07 Akim Demaille <akim@epita.fr>
10
11 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
12 defining.
13 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
14
553e2b22
AD
152000-11-07 Akim Demaille <akim@epita.fr>
16
17 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
18 Merge in a single CPP if/else.
19
8a4f41d6
AD
202000-11-07 Akim Demaille <akim@epita.fr>
21
22 * src/output.c (output): Remove useless variables.
23 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
24 argument `data' for consistency with the prototypes.
25 Qualify it `const'.
26 (obstack_copy, obstack_copy0): Rename the second argument as
27 `address' for consistency. Qualify it `const'.
28 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
29 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
30 `const' their input argument (`data' or `address').
31 Adjust the corresponding macros to include `const' in casts.
32
095a3fb5
AD
332000-11-03 Akim Demaille <akim@epita.fr>
34
35 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
36 s/PFILE1/BISON_HAIRY/.
37 Adjust dependencies.
38
d1cdce7c
AD
392000-11-03 Akim Demaille <akim@epita.fr>
40
090c5ebf 41 For some reason, this was not applied.
d1cdce7c
AD
42
43 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
44 `unlink': it's no longer used.
45
9311529b
AD
462000-11-03 Akim Demaille <akim@epita.fr>
47
48 * src/files.c (skeleton_find): New function, eved out of...
49 (open_files, open_extra_files): here.
50
d8880f69
AD
512000-11-03 Akim Demaille <akim@epita.fr>
52
53 Don't use `atexit'.
54
55 * src/files.c (obstack_save): New function.
56 (done): Rename as...
57 (output_files): this.
58 Use `obstack_save'.
59 * src/main.c (main): Don't use `atexit' to register `done', since
60 it no longer has to remove tmp files, just call `output_files'
61 when there are no errors.
62
0dbb648e
AD
632000-11-02 Akim Demaille <akim@epita.fr>
64
65 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
66 `unlink': it's no longer used.
67 * src/files.h: Formatting changes.
68
896fe5c1
AD
692000-11-02 Akim Demaille <akim@epita.fr>
70
71 Remove the last uses of mktemp and unlink/delete.
72
73 * src/files.c (fdefines, ftable): Removed.
74 (defines_ostack, table_obstack): New.
75 Adjust dependencies of the former into uses of the latter.
76 * src/output.c (output_short_or_char_table, output_short_table):
77 Convert to using obstacks.
78 * src/reader.c (copy_comment2): Accept one FILE * and two
79 obstacks.
80 (output_token_defines, reader_output_yylsp): Use obstacks.
81 * src/system.h (obstack_fgrow3): New.
82
dd60faec
AD
832000-11-01 Akim Demaille <akim@epita.fr>
84
85 Change each use of `fattrs' into a use of `attrs_obstack'.
86
87 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
88 * src/files.c (fattrs): Remove.
89 (attrs_obstack): New.
90 Adjust all dependencies.
91 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
92
8c7ebe49
AD
932000-11-01 Akim Demaille <akim@epita.fr>
94
95 Introduce obstacks.
96 Change each use of `faction' into a use of `action_obstack'.
97
98 * lib/obstack.h, lib/obstack.c: New files.
99 * src/files.c (faction): Remove.
100 (action_obstack): New.
101 Adjust all dependencies.
102
77aee789
AD
1032000-10-20 Akim Demaille <akim@epita.fr>
104
105 * lib/quote.h (PARAMS): New macro. Use it.
106
43591cec
AD
1072000-10-16 Akim Demaille <akim@epita.fr>
108
109 * src/output.c (output_short_or_char_table): New function.
110 (output_short_table, output_token_translations): Use it.
111 (goto_actions): Use output_short_table.
112
1e9798d5
AD
1132000-10-16 Akim Demaille <akim@epita.fr>
114
115 * src/symtab.c (bucket_new): New function.
116 (getsym): Use it.
117
118 * src/output.c (output_short_table): New argument to display the
119 comment associated with the table.
120 Adjust dependencies.
121 (output_gram): Use it.
122 (output_rule_data): Nicer output layout for YYTNAME.
123
f282676b
AD
1242000-10-16 Akim Demaille <akim@epita.fr>
125
126 * src/lex.c (read_typename): New function.
127 (lex): Use it.
128 * src/reader.c (copy_dollar): Likewise.
129
550a72a3
AD
1302000-10-16 Akim Demaille <akim@epita.fr>
131
132 * src/reader.c (copy_comment2): Expect the input stream to be on
133 the `/' which is suspected to open a comment, instead of being
134 called after `//' or `/*' was read.
135 (copy_comment, copy_definition, parse_union_decl, copy_action)
136 (copy_guard): Adjust.
137
131e2fef
AD
1382000-10-16 Akim Demaille <akim@epita.fr>
139
140 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
141 `read_signed_integer'.
142
79282c5a
AD
1432000-10-16 Akim Demaille <akim@epita.fr>
144
145 * src/reader.c (copy_dollar): New function.
146 (copy_guard, copy_action): Use it.
147
ff4a34be
AD
1482000-10-16 Akim Demaille <akim@epita.fr>
149
150 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
151 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
152 New files, from Fileutils 4.0.27.
153 * src/main.c (printable_version): Remove.
154 * src/lex.c, src/reader.c: Use `quote'.
155
1562000-10-04 Akim Demaille <akim@epita.fr>
157
158 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
159
14ded682
AD
1602000-10-04 Akim Demaille <akim@epita.fr>
161
162 * doc/bison.texinfo: Various typos spotted by Neil Booth.
163
8e03724b
AD
1642000-10-04 Akim Demaille <akim@epita.fr>
165
166 When a literal string is used to define two different tokens,
167 `bison -v' segfaults.
168 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
169
170 * tests/regression.m4: New file.
171 Include the core of the sample provided by Piotr Gackiewicz.
172 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
173 properly.
174
a9e64249
AD
1752000-10-04 Akim Demaille <akim@epita.fr>
176
177 * src/reader.c (parse_expect_decl): Keep `count' within the size
178 of `buffer'.
179 From Neil Booth.
180
da9abf43
AD
1812000-10-02 Paul Eggert <eggert@twinsun.com>
182
183 * bison.s1 (yyparse): Assign the default value
184 unconditionally, to avoid a GCC warning and make the parser a
185 tad smaller.
186
c33638bb
AD
1872000-10-02 Akim Demaille <akim@epita.fr>
188
189 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
190 options.
191
444c570a
AD
1922000-10-02 Akim Demaille <akim@epita.fr>
193
194 * src/derives.c, src/print.c, src/reduce.c: To ease the
195 translation, move some `\n' out of the translated strings.
196
89cab50d
AD
1972000-10-02 Akim Demaille <akim@epita.fr>
198
199 The location tracking mechanism is precious for parse error
200 messages. Nevertheless, it is enabled only when `@n' is used in
201 the grammar, which is a different issue (you can use it in error
202 message, but not in the grammar per se). Therefore, there should
203 be another means to enable it.
204
205 * src/getargs.c (getargs): Support `--locations'.
206 (usage): Report it.
207 * src/getargs.h (locationsflag): Export it.
208 * src/lex.c (percent_table): Support `%locations'.
209 * src/reader.c (yylsp_needed): Remove this variable, now replaced
210 with `locationsflag'.
211 * doc/bison.texinfo: Document `--locations' and `%locations'.
212 Sort the options.
213 * tests/calc.m4: Test it.
214
215 For regularity of the names, replace each
216 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
217 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
218 In addition replace each `flag' with `_flag'.
219
d6c2cba0
AD
2202000-10-02 Akim Demaille <akim@epita.fr>
221
222 Also test parse error messages, including with YYERROR_VERBOSE.
223
224 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
225 associative).
226 Use it to check the computations.
227 Use it to check `nonassoc' is honored.
228 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
229 `--yyerror-verbose'.
230 (_AT_CHECK_CALC): Adjust to this option.
231 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
232
5a35a6cb
AD
2332000-10-02 Akim Demaille <akim@epita.fr>
234
235 Test also `--verbose', `--defines' and `--name-prefix'. Testing
236 the latter demonstrates a flaw in the handling of non debugging
237 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
238 was used in order to simplify:
239
240 #if YYDEBUG
241 if (yydebug)
242 {
243 ...
244 }
245 #endif
246
247 into
248
249 if (yydebug)
250 {
251 ...
252 }
253
254 unfortunately this leads to a CPP conflict when
255 `--name-prefix=foo' is used since it produces `#define yydebug
256 foodebug'.
257
258 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
259 (YYDPRINTF): New macro.
260 Spread its use.
261 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
262 the bison options.
263 Also test `--verbose', `--defines' and `--name-prefix'.
264
71da9eea
AD
2652000-10-02 Akim Demaille <akim@epita.fr>
266
267 Improve the readability of the produced parsers.
268
269 * src/bison.s1: Formatting changes.
270 Improve the comment related to the `$' mark.
271 (yydefault): Don't fall through to `yyresume': `goto' there.
272 * src/output.c (output_parser): When the `$' is met, skip the end
273 of its line.
274 New variable, `number_of_dollar_signs', to check there's exactly
275 one `$' in the parser skeleton.
276
95e36146
AD
2772000-10-02 Akim Demaille <akim@epita.fr>
278
279 * lib/xstrdup.c: New file, from the fileutils.
280 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
281 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
282 instead of strlen + xmalloc + strcpy.
283 * src/symtab.c (copys): Remove, use xstrdup instead.
284
d7020c20
AD
2852000-10-02 Akim Demaille <akim@epita.fr>
286
287 * src/gram.h (associativity): New enum type which replaces the
288 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
289 `right_assoc', `left_assoc' and `non_assoc'.
290 Adjust all dependencies.
291 * src/reader.c: Formatting changes.
292 (LTYPESTR): Don't define it, use it as a literal in
293 `reader_output_yylsp'.
294 * src/symtab.h (symbol_class): New enum type which replaces the
295 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
296 `sunknown', `stoken and `snterm'.
297
1916f98e
AD
2982000-10-02 Akim Demaille <akim@epita.fr>
299
300 * src/getargs.c (fixed_outfiles): Rename as...
301 (yaccflag): for consistency and accuracy.
302 Adjust dependencies.
303
d7913476
AD
3042000-10-02 Akim Demaille <akim@epita.fr>
305
306 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
307 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
308 difficult and introduced a lot of core dump. It turns out that
309 Bison used an implementation of `xmalloc' based on `calloc', and
310 at various places it does depend upon the initialization to 0. I
311 have not tried to isolate the pertinent places, and all the former
312 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
313 someone should address this issue.
314
315 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
316 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
317 files.
318 Adjust dependencies.
319 * src/warshall.h: New file.
320 Propagate.
321
340ef489
AD
3222000-10-02 Akim Demaille <akim@epita.fr>
323
324 Various anti-`extern in *.c' changes.
325
326 * src/system.h: Include `assert.h'.
327
b2ca4022
AD
3282000-10-02 Akim Demaille <akim@epita.fr>
329
330 * src/state.h (nstates, final_state, first_state, first_shift)
331 (first_reduction): Move their exportation from here...
332 * src/LR0.h: to here.
333 Adjust dependencies.
334 * src/getargs.c (statisticsflag): New variable.
335 Add support for `--statistics'.
336 Adjust dependencies.
337
338 Remove a lot of now useless `extern' statements in most files.
339
403b315b
AD
3402000-10-02 Akim Demaille <akim@epita.fr>
341
342 * src/LR0.h: New file.
343 Propagate its use.
344
07a58c13
AD
3452000-10-02 Akim Demaille <akim@epita.fr>
346
347 * src/print.h: New file.
348 Propagate its use.
349 * src/print.c: Formatting and ordering changes.
350 (verbose, terse): Replace with...
351 (print_results): this new function.
352 Adjust dependencies.
353
0619caf0
AD
3542000-10-02 Akim Demaille <akim@epita.fr>
355
356 * src/conflicts.c (conflict_report): New function.
357 (conflict_log, verbose_conflict_log): Replace with...
358 (print_conflicts): this function.
359 Adjust dependencies.
360 * src/conflicts.h: New file.
361 Propagate its inclusion.
362
3519ec76
AD
3632000-10-02 Akim Demaille <akim@epita.fr>
364
365 * src/nullable.h: New file.
366 Propagate its inclusion.
367 * src/nullable.c: Formatting changes.
368
015acc48
AD
3692000-10-02 Akim Demaille <akim@epita.fr>
370
371 * src/reduce.h: New file.
372 Propagate its inclusion.
373 * src/reduce.c: Topological sort and other formatting changes.
374 (bool, TRUE, FALSE): Move their definition to...
375 * src/system.h: here.
376
8963a27b
AD
3772000-10-02 Akim Demaille <akim@epita.fr>
378
379 * src/files.c: Formatting changes.
380 (tryopen, tryclose, openfiles): Rename as...
381 (xfopen, xfclose, open_files): this.
382 (stringappend): static.
383 * src/files.h: Complete the list of exported symbols.
384 Propagate its use.
385
a70083a3
AD
3862000-10-02 Akim Demaille <akim@epita.fr>
387
388 * src/reader.h: New file.
389 Propagate its use instead of tedious list of `extern' and
390 prototypes.
391 * src/reader.c: Formatting changes, topological sort,
392 s/register//.
393
abadc117
AD
3942000-10-02 Akim Demaille <akim@epita.fr>
395
396 * src/lex.h: Prototype `lex.c' exported functions.
397 * src/reader.c: Adjust.
398 * src/lex.c: Formatting changes.
399 (safegetc): Rename as...
400 (xgetc): this.
401
720d742f
AD
4022000-10-02 Akim Demaille <akim@epita.fr>
403
404 * src/lalr.h: New file.
405 Propagate its inclusion instead of prototypes and `extern'.
406 * src/lalr.c: Formatting changes, topological sorting etc.
407
f2acea59
AD
4082000-10-02 Akim Demaille <akim@epita.fr>
409
410 * src/output.c (token_actions): Introduce a temporary array,
411 YYDEFACT, that makes it possible for this function to use
412 output_short_table.
413
d019d655
AD
4142000-10-02 Akim Demaille <akim@epita.fr>
415
416 `user_toknums' is output as a `short[]' in `output.c', while it is
417 defined as a `int[]' in `reader.c'. For consistency with the
418 other output tables, `user_toknums' is now defined as a table of
419 shorts.
420
421 * src/reader.c (user_toknums): Be a short table instead of an int
422 table.
423 Adjust dependencies.
424
425 Factor the short table outputs.
426
427 * src/output.c (output_short_table): New function.
428 * src/output.c (output_gram, output_stos, output_rule_data)
429 (output_base, output_table, output_check): Use it.
430
6c89f1c1
AD
4312000-10-02 Akim Demaille <akim@epita.fr>
432
433 * src/output.c (output): Topological sort of the functions, in
434 order to get rid of the `static' prototypes.
435 No longer use `register'.
436 * src/output.h: New file.
437 Propagate its inclusion in files explicitly prototyping functions
438 from output.c.
439
d9efd181
AD
4402000-09-21 Akim Demaille <akim@epita.fr>
441
442 * src/atgeneral.m4: Update from Autoconf.
443
c29240e7 4442000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
445
446 * src/closure.h: New file.
447 * src/closure.c: Formatting changes, topological sort over the
448 functions, use of closure.h.
449 (initialize_closure, finalize_closure): Rename as...
450 (new_closure, free_closure): these. Adjust dependencies.
451 * src/LR0.c: Formatting changes, topological sort, use of
452 cloture.h.
453 (initialize_states): Rename as...
454 (new_states): this.
455 * src/Makefile.am (noinst_HEADERS): Adjust.
456
499daa50
AD
4572000-09-20 Akim Demaille <akim@epita.fr>
458
459 * src/acconfig.h: Don't protect config.h against multiple
460 inclusion.
461 Don't define PARAMS.
462 * src/system.h: Define PARAMS.
463 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
464 purpose of config.h. system.h must not try to fix wrong
465 definitions in config.h.
466
cc84fd5d
AD
4672000-09-20 Akim Demaille <akim@epita.fr>
468
469 * src/derives.h: New file.
470 * src/main.c, src/derives.h: Use it.
471 Formatting changes.
472 * src/Makefile.am (noinst_HEADERS): Adjust.
473
db5b3a89
AD
4742000-09-20 Akim Demaille <akim@epita.fr>
475
476 * tests/atgeneral.m4: Update from Autoconf.
477 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
478 (AT_CHECK_CALC): New macros.
479 Use these macros to test bison with options `', `--raw',
480 `--debug', `--yacc', `--yacc --debug'.
481
ceed8467
AD
4822000-09-19 Akim Demaille <akim@epita.fr>
483
484 * src/output.c: Formatting changes.
485 * src/machine.h: Remove, leaving its contents in...
486 * src/system.h: here.
487 Include stdio.h.
488 Adjust all dependencies on stdio.h and machine.h.
489 * src/getargs.h: New file.
490 Let all `extern' declarations about getargs.c be replaced with
491 inclusion of `getargs.h'.
492 * src/Makefile.am (noinst_HEADERS): Adjust.
493
494 * tests/calc.m4 (yyin): Be initialized in main, not on the global
495 scope.
496 (yyerror): Returns void, not int.
497 * doc/bison.texinfo: Formatting changes.
498
05a1d24b
AD
4992000-09-19 Akim Demaille <akim@epita.fr>
500
501 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
502 portable.
503
cbd25751
AD
5042000-09-18 Akim Demaille <akim@epita.fr>
505
506 * configure.in: Append WARNING_CFLAGS to CFLAGS.
507 * src/Makefile.am (INCLUDES): Don't.
508 Be ready to fetch headers in lib/.
509
13863333
AD
5102000-09-18 Akim Demaille <akim@epita.fr>
511
512 * doc/bison.texinfo: Update the copyright.
513 ANSIfy and GNUify the examples.
514 Remove the old menu.
515
0d533154
AD
5162000-09-18 Akim Demaille <akim@epita.fr>
517
518 First set of tests: use the `calc' example from the documentation.
519
520 * src/bison.s1 (yyparse): Condition the code using `yytname' which
521 is defined only when YYDEBUG is.
522 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
523 * src/files.c (tryopen, tryclose): Formatting changes.
524 Move to the top and be static.
525 * src/reader.c (read_signed_integer): Likewise.
526 * tests/calc.m4: New file.
527 * Makefile.am, suite.m4: Adjust.
528 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
529
e79137ac
AD
5302000-09-18 Akim Demaille <akim@epita.fr>
531
532 Add support for an Autotest test suite for Bison.
533
534 * m4/m4.m4, m4/atconfig.m4: New files.
535 * m4/Makefile.am (EXTRA_DIST): Adjust.
536 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
537 files.
538 * src/getargs.c: Display a more standard --version message.
539 * src/reader.c (reader): Formatting changes.
540 No longer depend upon VERSION_STRING.
541 * configure.in: No longer use `dnl'.
542 Set up the test suite and the new directory `tests/.
543 (VERSION_STRING): Remove.
544
27821bff
AD
5452000-04-14 Akim Demaille <akim@epita.fr>
546
547 * src/reader.c (copy_comment2): New function, same as former
548 `copy_comment', but outputs into two FILE *.
549 (copy_comment): Use it.
550 (parse_union_decl): Use it.
551 (get_type, parse_start_decl): Use the same `invalid' message.
552 (parse_start_decl, parse_union_decl): Use the same `multiple'
553 message.
554 (parse_union_decl, copy_guard, copy_action): Use the same
555 `unmatched' message.
556 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
557
cfe5fbc0
AD
5582000-03-31 Akim Demaille <akim@epita.fr>
559
560 * src/files.c (tryopen, tryclose): Move to the top.
561 Be static.
562
cb7db13e
AD
5632000-03-31 Akim Demaille <akim@epita.fr>
564
565 * src/main.c (main): Don't call `done', exit does it.
566
a0f6b076
AD
5672000-03-31 Akim Demaille <akim@epita.fr>
568
36281465
AD
569 * allocate.c: s/return (foo)/return foo/.
570 * lalr.c: Likewise.
571 * LR0.c: Likewise.
572 * output.c: Likewise.
573 * reader.c: Likewise.
574 * symtab.c: Likewise.
575 * vmsgetargs.c: Likewise.
576
5772000-03-31 Akim Demaille <akim@epita.fr>
578
579 Clean up the error reporting functions.
a0f6b076
AD
580
581 * src/report.c: New file.
582 * src/report.h: Likewise.
583 * src/Makefile.am: Adjust.
584 * m4/error.m4: New file.
585 * m4/Makefile.am: Adjust.
586 * configure.in (jm_PREREQ_ERROR): Call it.
587 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
588 Remove.
589 (fatal, fatals): Remove. All callers use complain.c::fatal.
590 (warn, warni, warns, warnss, warnss): Remove. All callers use
591 complain.c::complain.
592 (toomany): Remove, use fatal instead.
593 * src/files.c (done): No argument, use complain_message_count.
594 * src/main.c (main): Register `done' to `atexit'.
595
596 * src/getargs.c (usage): More `fputs', less `fprintf'.
597
18539825
AD
5982000-03-28 Akim Demaille <akim@epita.fr>
599
600 * lib/: New directory.
601 * Makefile.am (SUBDIRS): Adjust.
602 * configure.in: Adjust.
603 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
604 useless.
605 * src/alloca.c: Moved to lib/.
606 * src/getopt.c: Likewise.
607 * src/getopt1.c: Likewise.
608 * src/getopt.h: Likewise.
609 * src/ansi2knr.c: Likewise.
610 * src/ansi2knr.1: Likewise.
611 * src/Makefile.am: Adjust.
612 * lib/Makefile.am: New file.
613
9f306f2a
AD
6142000-03-28 Akim Demaille <akim@epita.fr>
615
616 * src/getargs.c (usage): Refresh the help message.
617
0ba347b6
AD
6182000-03-17 Akim Demaille <akim@epita.fr>
619
620 * src/getopt1.c: Updated from textutils 2.0e
621 * src/getopt.c: Likewise.
622 * src/getopt.h: Likewise.
623
dbe7f271
AD
6242000-03-17 Akim Demaille <akim@epita.fr>
625
626 * src/Makefile.am (bison.simple): Fix the awk program: quote only
627 the file name, not the whole `#line LINE FILE'.
628
75bbe78d
AD
6292000-03-17 Akim Demaille <akim@epita.fr>
630
631 On syntax errors, report the token on which we choked.
632
aa5fd0ee
AD
633 * src/bison.s1 (yyparse): In the label yyerrlab, when
634 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 635
7b306f52
AD
6362000-03-17 Akim Demaille <akim@epita.fr>
637
aa5fd0ee 638 * src/reader.c (copy_at): New function.
7b306f52
AD
639 (copy_guard): Use it.
640 (copy_action): Use it.
641
e87b5700
AD
6422000-03-17 Akim Demaille <akim@epita.fr>
643
644 Be kind to translators, save some useless translations.
645
aa5fd0ee 646 * src/main.c (banner): New function.
e87b5700
AD
647 (fatal_banner): Use it.
648 (warn_banner): Use it.
649
ae3c3164
AD
6502000-03-17 Akim Demaille <akim@epita.fr>
651
aa5fd0ee
AD
652 * src/reader.c (copy_definition): Use copy_string and
653 copy_comment. Removed now unused `match', `ended',
654 `cplus_comment'.
ae3c3164
AD
655 (copy_comment, copy_string): Moved, to be visible from
656 copy_definition.
657
4dc58e7c
AD
6582000-03-17 Akim Demaille <akim@epita.fr>
659
aa5fd0ee
AD
660 * src/reader.c (copy_string): Declare `static inline'. No
661 problems with inline, since it is checked by configure.
4dc58e7c
AD
662 (copy_comment): Likewise.
663
0a6384c4
AD
6642000-03-17 Akim Demaille <akim@epita.fr>
665
aa5fd0ee 666 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 667
3cef001a
AD
6682000-03-17 Akim Demaille <akim@epita.fr>
669
aa5fd0ee 670 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
671 (copy_action): Use it. Removed now unused `match', `ended',
672 `cplus_comment'.
673 (copy_guard): Likewise.
674
ca36d2ef
AD
6752000-03-17 Akim Demaille <akim@epita.fr>
676
aa5fd0ee 677 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
678 (copy_action): Use it.
679 (copy_guard): Likewise.
680
6666f98f
AD
6812000-03-17 Akim Demaille <akim@epita.fr>
682
683 Change the handling of @s so that they behave exactly like $s.
684 There is now a pseudo variable @$ (readble and writable), location
685 of the lhs of the rule (by default ranging from the location of
686 the first symbol of the rhs, to the location of the last symbol,
687 or, if the rhs is empty, YYLLOC).
688
689 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
690 yyval.
691 (yyparse): When providing a default semantic action, provide a
692 default location action.
693 (after the $): No longer change `*YYLSP', just stack YYLOC the
694 same way you stack YYVAL.
695 * src/reader.c (read_declarations): Use warns.
696 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
697 (copy_action, case '@'): Likewise.
698 Use a standard error message, to save useless work from
699 translators.
700
41aca2e0
AD
7012000-03-17 Akim Demaille <akim@epita.fr>
702
aa5fd0ee
AD
703 * src/bison.s1: Formatting and cosmetics changes.
704 * src/reader.c: Likewise.
41aca2e0
AD
705 Update the Copyright notice.
706
dc08c1d5
AD
7072000-03-17 Akim Demaille <akim@epita.fr>
708
aa5fd0ee
AD
709 * src/bison.s1 (#line): All set to `#line' only, since the
710 Makefile now handles them.
dc08c1d5 711
9ee3c97b
AD
7122000-03-16 Akim Demaille <akim@epita.fr>
713
714 * src/output.c (output_rule_data): Output the documentation of
715 some of the tables.
716 (Copyright notice): Update.
717 Formatting changes.
718
0de741ca
AD
7192000-03-16 Akim Demaille <akim@epita.fr>
720
721 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
722 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
723 One `#if YYDEBUG' remains, since it uses variables which are
724 defined only if `YYDEBUG != 0'.
725
bb10be54
AD
7262000-03-16 Akim Demaille <akim@epita.fr>
727
728 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
729 and related variables so that the similarities are highlighted.
730
b07b484a
AD
7312000-03-16 Akim Demaille <akim@epita.fr>
732
733 * src/bison.s1: Properly indent CPP directives.
734
361f60b3
AD
7352000-03-16 Akim Demaille <akim@epita.fr>
736
737 * src/bison.s1: Properly indent the `alloca' CPP section.
738
8c44d3ec
AD
7392000-03-16 Akim Demaille <akim@epita.fr>
740
741 Do not hard code values of directories in `configure.in'.
742 Update the `configure' tool chain.
743
744 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
745 src/makefile.am.
746 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
747 (AC_OUTPUT): Add m4/Makefile.
748 Bump to bison 1.28a, 1.29 has never been released.
749 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
750 handled via src/Makefile.am.
751 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
752 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
753 autoheader.
754 * Makefile.am (SUBDIRS): Add m4.
755 (ACLOCAL_AM_FLAGS): New variable.
756 (AUTOMAKE_OPTIONS): Add check-news.
757 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
758 the proper line number and file name.
759 (DEFS): Propagate the location of bison library files and of the
760 locale files.
761 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
762 builddir.
763 * acinclude.m4: Remove, replaced by the directory m4.
764 * m4/Makefile.am (EXTRA_DIST): New variable.
765 * m4/gettext.m4: New file, from the fileutils.
766 * m4/lcmessage.m4: Likewise
767 * m4/progtest.m4: Likewise.
768 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
769
f95997e7
AD
7702000-03-10 Akim Demaille <akim@epita.fr>
771
772 * src/closure.c:
773 Formatting changes of various comments.
774 Respect the GNU coding standards at various places.
775 Don't use `_()' when no translation is needed.
776
7771999-12-13 Jesse Thilo <jthilo@gnu.org>
778
779 * src/files.c:
780 OS/2 honors TMPDIR environment variable.
781
7821999-12-13 Jesse Thilo <jthilo@gnu.org>
783
784 * doc/bison.texinfo: Tweaked spelling and grammar.
785 Updated ISBN.
786 Removed reference to price of printed copy.
787 Mention BISON_SIMPLE and BISON_HAIRY.
788
7891999-12-13 Jesse Thilo <jthilo@gnu.org>
790
791 * configure.in, NEWS:
792 Bison 1.29 released.
793
7941999-10-27 Jesse Thilo <jthilo@gnu.org>
795
796 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
797 Added reference card.
798
7991999-07-26 Jesse Thilo <jthilo@gnu.org>
800
801 * po/ru.po: Added Russian translation.
802
8031999-07-26 Jesse Thilo <jthilo@gnu.org>
804
805 * configure.in: Added Russian translation.
806
8071999-07-06 Jesse Thilo <jthilo@gnu.org>
808
809 * configure.in, NEWS, README:
810 Released version 1.28.
811
8121999-06-14 Jesse Thilo <jthilo@gnu.org>
813
814 * src/system.h:
815 Squashed redefinition warning on some systems.
816
817 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
818 Have configure build version string instead of relying on ANSI string
819 concatentation.
820
8211999-06-14 Jesse Thilo <jthilo@gnu.org>
822
823 * po/POTFILES.in: Got rid of version.c.
824
8251999-06-14 Jesse Thilo <jthilo@gnu.org>
826
827 * acconfig.h, configure.in:
828 Have configure build version string instead of relying on ANSI string
829 concatentation.
830
8311999-06-08 Jesse Thilo <jthilo@gnu.org>
832
833 * doc/bison.1:
834 Dropped mention of `+' for long-named options.
835
8361999-05-30 Jesse Thilo <jthilo@gnu.org>
837
838 * src/files.c: Added <unistd.h> for unlink().
839
840 * src/Makefile.am, src/system.h:
841 I18n fixes.
842
8431999-05-30 Jesse Thilo <jthilo@gnu.org>
844
845 * README: Added a FAQ list.
846
847 * configure.in, acconfig.h:
848 I18n fixes.
849
8501999-05-30 Jesse Thilo <jthilo@gnu.org>
851
852 * doc/FAQ, doc/Makefile.am:
853 Added a FAQ list.
854
8551999-05-19 Jesse Thilo <jthilo@gnu.org>
856
857 * src/alloc.h, src/symtab.h, src/version.c:
858 Protected inclusion of "config.h" with HAVE_CONFIG_H.
859
8601999-04-18 Jesse Thilo <jthilo@gnu.org>
861
862 * src/.cvsignore, src/Makefile.am:
863 Reorganized: sources in `src', documentation in `doc'.
864
865 * src/lex.c (literalchar):
866 fixed the code for escaping double quotes (thanks
867 Jonathan Czisny.)
868
8691999-04-18 Jesse Thilo <jthilo@gnu.org>
870
871 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
872 Adjusted paths to reflect directory reorganization.
873
8741999-04-18 Jesse Thilo <jthilo@gnu.org>
875
876 * doc/.cvsignore, doc/Makefile.am:
877 Reorganized: sources in `src', documentation in `doc'.
878
8791999-04-18 Jesse Thilo <jthilo@gnu.org>
880
881 * configure.in:
882 Updated AC_INIT file to reflect directory reorganization.
883
884 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
885 Reorganized: sources in `src', documentation in `doc'.
886
8871999-04-13 Jesse Thilo <jthilo@gnu.org>
888
889 * src/allocate.c:
890 Don't declare calloc() and realloc() if not necessary.
891
8921999-04-13 Jesse Thilo <jthilo@gnu.org>
893
894 * configure.in, acconfig.h, acinclude.m4:
895 Don't declare calloc() and realloc() if not necessary.
896
8971999-03-23 Jesse Thilo <jthilo@gnu.org>
898
899 * po/.cvsignore: Added i18n support.
900
9011999-03-23 Jesse Thilo <jthilo@gnu.org>
902
903 * acconfig.h, configure.in, Makefile.am:
904 Added i18n support.
905
9061999-03-22 Jesse Thilo <jthilo@gnu.org>
907
908 * src/bison.s1: Fixed #line numbers.
909
9101999-03-15 Jesse Thilo <jthilo@gnu.org>
911
912 * po/es.po, po/fr.po, po/nl.po, po/de.po:
913 Added PO files from Translation Project.
914
9151999-03-03 Jesse Thilo <jthilo@gnu.org>
916
917 * Makefile.am:
918 Added support for non-ANSI compilers (ansi2knr).
919
9201999-02-16 Jesse Thilo <jthilo@gnu.org>
921
922 * configure.in: Bumped version number to 1.27.
923
924 * Makefile.am:
925 Added `bison.simple' to list of files removed by `make distclean'.
926
9271999-02-12 Jesse Thilo <jthilo@gnu.org>
928
929 * src/files.c, src/files.h:
930 Defined locations of parser files in config.h instead of Makefile.
931
9321999-02-12 Jesse Thilo <jthilo@gnu.org>
933
934 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
935 Defined locations of parser files in config.h instead of Makefile.
936
9371999-02-09 Jesse Thilo <jthilo@gnu.org>
938
939 * Makefile.am:
940 Removed inappropriate use of $< macro.
941
9421999-02-05 Jesse Thilo <jthilo@gnu.org>
943
944 * po/Makefile.in.in, po/POTFILES.in:
945 Add `po' directory skeleton.
946
9471999-01-27 Jesse Thilo <jthilo@gnu.org>
948
949 * README: Document help-bison list.
950
951 * configure.in: Add check for mkstemp().
952
9531999-01-20 Jesse Thilo <jthilo@gnu.org>
954
955 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
956 Hush a few compiler warnings.
957
958 * src/files.c:
959 Add tryclose(), which verifies that fclose was successful.
960 Hush a couple of compiler warnings.
961
9621999-01-20 Jesse Thilo <jthilo@gnu.org>
963
964 * Makefile.am, OChangeLog:
965 ChangeLog is now automatically generated. Include the old version as
966 OChangeLog.
967
9681999-01-14 Jesse Thilo <jthilo@gnu.org>
969
970 * 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:
971 Update FSF address.
972
9731999-01-14 Jesse Thilo <jthilo@gnu.org>
974
975 * doc/bison.texinfo: Fix formatting glitch.
976
977 * doc/bison.texinfo: Update FSF address.
978
9791999-01-14 Jesse Thilo <jthilo@gnu.org>
980
981 * acconfig.h: Update FSF address.
982
9831999-01-08 Jesse Thilo <jthilo@gnu.org>
984
985 * src/system.h:
986 Don't define PACKAGE here, since config.h defines it.
987
9881998-12-30 Jesse Thilo <jthilo@gnu.org>
989
990 * src/reader.c: Update copyright date.
991
992 * src/main.c:
993 Ditch sprintf to statically-sized buffers in fatal/warn functions in
994 favor of output directly to stderr (avoids buffer overruns).
995
996 * src/reader.c: Some checks for premature EOF.
997
998 * 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:
999 Use prototypes if the compiler understands them.
1000
1001 * src/files.c: Honor TMPDIR on Unix hosts.
1002 Use prototypes if the compiler understands them.
1003
1004 * src/reader.c:
1005 Fix a couple of buffer overrun bugs.
1006 Use prototypes if the compiler understands them.
1007
1008 * src/system.h: Include unistd.h and ctype.h.
1009 Use #ifdef instead of #if for NLS symbols.
1010
10111998-12-30 Jesse Thilo <jthilo@gnu.org>
1012
1013 * doc/bison.texinfo:
1014 Delete comment "consider using @set for edition number, etc..." since
1015 we now are doing so.
1016
10171998-12-30 Jesse Thilo <jthilo@gnu.org>
1018
1019 * configure.in:
1020 Use prototypes if the compiler understands them.
1021
1022 * NEWS: Document 1.26 highlights.
1023
1024 * Makefile.am: Require Automake 1.3 or later.
1025
1026 * acconfig.h:
1027 Use prototypes if the compiler understands them.
1028
10291998-12-29 Jesse Thilo <jthilo@gnu.org>
1030
1031 * src/version.c:
1032 Use VERSION symbol from automake for version number.
1033
10341998-12-29 Jesse Thilo <jthilo@gnu.org>
1035
1036 * acconfig.h, configure.in, version.cin:
1037 Use VERSION symbol from automake for version number.
1038
10391998-11-28 Jesse Thilo <jthilo@gnu.org>
1040
1041 * Makefile.am:
1042 Distribute original version of simple parser (bison.s1), not built
1043 version (bison.simple).
1044
10451998-11-28 Jesse Thilo <jthilo@gnu.org>
1046
1047 * doc/bison.texinfo: Add info dir entry.
1048
1049 * doc/bison.texinfo:
1050 Let automake put version number into documentation.
1051
10521998-11-26 Jesse Thilo <jthilo@gnu.org>
1053
1054 * src/bison.cld, src/build.com, src/vmshlp.mar:
1055 Add non-RCS files from /gd/gnu/bison.
1056
10571998-11-26 Jesse Thilo <jthilo@gnu.org>
1058
1059 * doc/bison.1:
1060 Document the BISON_HAIRY and BISON_SIMPLE variables.
1061
10621998-11-25 Jesse Thilo <jthilo@gnu.org>
1063
1064 * src/version.c: Build version.c automatically.
1065
1066 * src/reader.c:
1067 Fix token numbering (used to start at 258, not 257).
1068
1069 * src/system.h: Include config.h.
1070
1071 * src/getargs.c: Update bug report address.
1072
1073 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1074 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1075
10761998-11-25 Jesse Thilo <jthilo@gnu.org>
1077
1078 * Makefile.am:
1079 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1080
1081 * configure.in, version.cin:
1082 Build version.c automatically.
1083
1084 * AUTHORS: Add AUTHORS file.
1085
1086 * README: Update bug report address.
1087
1088 * bison.simple:
1089 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1090
1091 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1092 Add automake stuff.
1093
10941998-11-25 Jesse Thilo <jthilo@gnu.org>
1095
1096 * doc/bison.texinfo: Clean up some formatting.
1097
10981998-05-05 Richard Stallman <rms@gnu.org>
1099
1100 * doc/bison.texinfo:
1101 Explain better why to make a pure parser.
1102
11031998-01-05 Richard Stallman <rms@gnu.org>
1104
1105 * src/files.c (openfiles):
1106 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1107 find a temporary directory, if possible. Do not unlink files while
1108 they are open.
1109
11101997-08-25 Richard Stallman <rms@gnu.org>
1111
1112 * src/reader.c (stack_offset;):
1113 Change some warni to warns.
1114
1115 * src/lex.c (literalchar): Use warns, not warni.
1116
11171997-06-28 Richard Stallman <rms@gnu.org>
1118
1119 * src/bison.s1: Add a Bison version comment.
1120
1121 * src/main.c (fatal, warn, berror):
1122 Use program_name.
1123
11241997-06-28 Richard Stallman <rms@gnu.org>
1125
1126 * Makefile.in (bison_version): New variable.
1127 (dist): Use that variable.
1128 (bison.s1): Substitute the Bison version into bison.simple.
1129
1130 * bison.simple: Add a Bison version comment.
1131
11321997-06-18 Richard Stallman <rms@gnu.org>
1133
1134 * src/main.c (fatal, warn, berror):
1135 Make error messages standard.
1136 (toomany): Improve error message text.
1137
1138 * 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:
1139 new.h renamed to alloc.h.
1140
11411997-06-18 Richard Stallman <rms@gnu.org>
1142
1143 * Makefile.in: new.h renamed to alloc.h.
1144
11451997-05-24 Richard Stallman <rms@gnu.org>
1146
1147 * src/lex.c (literalchar):
1148 Fix the code for escaping \, " and '.
1149
1150 (lex): Avoid trouble when there are many chars
1151 to discard in a char literal with just several chars in it.
1152
11531997-05-17 Richard Stallman <rms@gnu.org>
1154
1155 * src/bison.s1:
1156 Use malloc, if using alloca is troublesome.
1157 (YYSTACK_USE_ALLOCA): New flag macro.
1158 Define it for some systems and compilers.
1159 (YYSTACK_ALLOC): New macro.
1160 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1161 If it was malloc'd, free it.
1162
11631997-05-17 Richard Stallman <rms@gnu.org>
1164
1165 * bison.simple:
1166 Use malloc, if using alloca is troublesome.
1167 (YYSTACK_USE_ALLOCA): New flag macro.
1168 Define it for some systems and compilers.
1169 (YYSTACK_ALLOC): New macro.
1170 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1171 If it was malloc'd, free it.
1172
11731997-04-23 Richard Stallman <rms@gnu.org>
1174
1175 * src/bison.s1:
1176 (alloca) [__hpux]: Always define as __builtin_alloca.
1177
11781997-04-23 Richard Stallman <rms@gnu.org>
1179
1180 * bison.simple:
1181 (alloca) [__hpux]: Always define as __builtin_alloca.
1182
11831997-04-22 Richard Stallman <rms@gnu.org>
1184
1185 * src/bison.s1:
1186 [__hpux]: Include alloca.h (right for HPUX 10)
1187 instead of declaring alloca (right for HPUX 9).
1188
1189 * src/bison.s1 (__yy_memcpy):
1190 Declare arg `count' as unsigned int.
1191 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1192
11931997-04-22 Richard Stallman <rms@gnu.org>
1194
1195 * bison.simple:
1196 [__hpux]: Include alloca.h (right for HPUX 10)
1197 instead of declaring alloca (right for HPUX 9).
1198
1199 * bison.simple (__yy_memcpy):
1200 Declare arg `count' as unsigned int.
1201 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1202
12031997-01-03 Richard Stallman <rms@gnu.org>
1204
1205 * src/allocate.c: [__STDC__ or _MSC_VER]:
1206 Declare calloc and realloc to return void *.
1207
12081997-01-02 Richard Stallman <rms@gnu.org>
1209
1210 * src/system.h:
1211 [_MSC_VER]: Include stdlib.h and process.h.
1212 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1213
1214 * src/main.c (main): Return FAILURE as a value.
1215 (printable_version): Declare arg as int, not char.
1216
12171997-01-02 Richard Stallman <rms@gnu.org>
1218
1219 * Makefile.in (dist):
1220 Explicitly check for symlinks, and copy them.
1221
12221996-12-19 Richard Stallman <rms@gnu.org>
1223
1224 * src/files.c:
1225 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1226
12271996-12-18 Paul Eggert <eggert@gnu.org>
1228
1229 * src/bison.s1 (yyparse):
1230 If __GNUC__ and YYPARSE_PARAM are both defined,
1231 declare yyparse to have a void * argument.
1232
12331996-12-18 Paul Eggert <eggert@gnu.org>
1234
1235 * bison.simple (yyparse):
1236 If __GNUC__ and YYPARSE_PARAM are both defined,
1237 declare yyparse to have a void * argument.
1238
12391996-12-17 Richard Stallman <rms@gnu.org>
1240
1241 * src/reduce.c (nbits): Add some casts.
1242
12431996-08-12 Richard Stallman <rms@gnu.org>
1244
1245 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1246
12471996-08-12 Richard Stallman <rms@gnu.org>
1248
1249 * bison.simple: Test _MSDOS as well as _MSDOS_.
1250
12511996-07-31 Richard Stallman <rms@gnu.org>
1252
1253 * src/bison.s1:
1254 [__sun && __i386]: Include alloca.h.
1255
12561996-07-31 Richard Stallman <rms@gnu.org>
1257
1258 * bison.simple:
1259 [__sun && __i386]: Include alloca.h.
1260
12611996-07-30 Richard Stallman <rms@gnu.org>
1262
1263 * src/bison.s1: Comment change.
1264
1265 * src/bison.s1: Test _MSDOS_, not MSDOS.
1266
12671996-07-30 Richard Stallman <rms@gnu.org>
1268
1269 * bison.simple: Comment change.
1270
1271 * bison.simple: Test _MSDOS_, not MSDOS.
1272
12731996-06-01 Richard Stallman <rms@gnu.org>
1274
1275 * 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:
1276 Insert `_' macro around many string constants.
1277
1278 * src/main.c:
1279 Insert `_' macro around many string constants.
1280
1281 (main): Call setlocale, bindtextdomain and textdomain.
1282
1283 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1284 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1285 [ENABLE_NLS]: Include libintl.h.
1286 [ENABLE_NLS] (gettext): Define.
1287 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1288 (N_, PACKAGE, LOCALEDIR): New macros.
1289
12901996-06-01 Richard Stallman <rms@gnu.org>
1291
1292 * POTFILES.in: New file.
1293
1294 * Makefile.in (allocate.o):
1295 Define target explicitly.
1296
1297 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1298 (LDFLAGS): Set to @LDFLAGS@.
1299 (configure): Run autoconf only if preceding `cd' succeeds.
1300 (bison.s1): Redirect output to temporary file then move the
1301 temporary to the target, rather than redirecting directly to bison.s1.
1302 (clean): Remove config.status and config.log.
1303 (distclean): Don't remove config.status here.
1304
13051996-05-12 Richard Stallman <rms@gnu.org>
1306
1307 * src/bison.s1:
1308 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1309
13101996-05-12 Richard Stallman <rms@gnu.org>
1311
1312 * bison.simple:
1313 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1314
13151996-05-11 Richard Stallman <rms@gnu.org>
1316
1317 * src/bison.s1 (__yy_memcpy):
1318 Really reorder the args, as was supposedly done on Feb 14 1995.
1319 (yyparse): Calls changed accordingly.
1320
13211996-05-11 Richard Stallman <rms@gnu.org>
1322
1323 * Makefile.in (dist): Don't use $(srcdir).
1324
1325 * bison.simple (__yy_memcpy):
1326 Really reorder the args, as was supposedly done on Feb 14 1995.
1327 (yyparse): Calls changed accordingly.
1328
13291996-01-27 Richard Stallman <rms@gnu.org>
1330
1331 * src/output.c (output_rule_data):
1332 Test YYERROR_VERBOSE in the conditional
1333 around the definition of ttyname.
1334
13351995-12-29 Richard Stallman <rms@gnu.org>
1336
1337 * src/bison.s1:
1338 Fix line numbers in #line commands.
1339
13401995-12-29 Richard Stallman <rms@gnu.org>
1341
1342 * bison.simple:
1343 Fix line numbers in #line commands.
1344
13451995-12-27 Richard Stallman <rms@gnu.org>
1346
1347 * src/bison.s1 (YYPARSE_PARAM_DECL):
1348 In C++, make it always null.
1349 (YYPARSE_PARAM_ARG): New macro.
1350 (yyparse): Use YYPARSE_PARAM_ARG.
1351
13521995-12-27 Richard Stallman <rms@gnu.org>
1353
1354 * bison.simple (YYPARSE_PARAM_DECL):
1355 In C++, make it always null.
1356 (YYPARSE_PARAM_ARG): New macro.
1357 (yyparse): Use YYPARSE_PARAM_ARG.
1358
13591995-11-29 Richard Stallman <rms@gnu.org>
1360
1361 * doc/bison.texinfo:
1362 Describe literal string tokens, %raw, %no_lines, %token_table.
1363
13641995-11-29 Daniel Hagerty <hag@gnu.org>
1365
1366 * doc/bison.texinfo: Fixed update date
1367
13681995-10-16 Richard Stallman <rms@gnu.org>
1369
1370 * src/version.c: Version 1.25.
1371
13721995-10-16 Richard Stallman <rms@gnu.org>
1373
1374 * NEWS: *** empty log message ***
1375
13761995-10-16 Richard Stallman <rms@gnu.org>
1377
1378 * doc/bison.1, doc/bison.rnh:
1379 Add new options.
1380
13811995-10-15 Richard Stallman <rms@gnu.org>
1382
1383 * src/vmsgetargs.c, src/getargs.c:
1384 Added -n, -k, and -raw switches.
1385 (noparserflag, toknumflag, rawtoknumflag): New variables.
1386
1387 * src/symtab.h (SALIAS):
1388 New #define for adding aliases to %token.
1389 (struct bucket): Added `alias' field.
1390
1391 * src/reduce.c (reduce_grammar):
1392 Revise error message.
1393 (print_notices): Remove final `.' from error message.
1394
1395 * src/reader.c (reader_output_yylsp):
1396 New function.
1397 (readgram): Use `#if 0' around code that accepted %command
1398 inside grammar rules: The documentation doesn't allow it,
1399 and it will fail since the %command processors scan for the next %.
1400 (parse_token_decl): Extended the %token
1401 declaration to allow a multi-character symbol as an alias.
1402 (parse_thong_decl): New function.
1403 (read_declarations): Added %thong declarations.
1404 (read_declarations): Handle NOOP to deal with allowing
1405 % declarations as another means to specify the flags.
1406 (readgram): Allow %prec prior to semantics embedded in a rule.
1407 (skip_to_char, read_declarations, copy_definition)
1408 (parse_token_decl, parse_start_decl, parse_type_decl)
1409 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1410 (get_type_name, copy_guard, copy_action, readgram)
1411 (get_type, packsymbols): Revised most error messages.
1412 Changed `fatal' to `warnxxx' to avoid aborting for error.
1413 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1414 (read_declarations): Improve the error message for
1415 an invalid character. Do not abort.
1416 (read_declarations, copy_guard, copy_action): Use
1417 printable_version to avoid unprintable characters in printed output.
1418 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1419 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1420 Allow the type of a non-terminal can be given
1421 more than once, as long as all specifications give the same type.
1422
1423 * src/output.c:
1424 (output_headers, output_trailers, output, output_gram)
1425 (output_rule_data): Implement noparserflag variable.
1426 Implement toknumflag variable.
1427 (output): Call reader_output_yylsp to output LTYPESTR.
1428
1429 * src/main.c (main):
1430 If reader sees an error, don't process the grammar.
1431 (fatals): Updated to not use VARARGS1.
1432 (printable_version, int_to_string, warn, warni, warns, warnss)
1433 (warnsss): New error reporting functions. Avoid abort for error.
1434
1435 * src/lex.h:
1436 Added THONG and NOOP for alias processing.
1437 Added SETOPT for the new code that allows setting options with %flags.
1438
1439 * src/lex.c:
1440 Include getopt.h. Add some extern decls.
1441 (safegetc): New function to deal with EOF gracefully.
1442 (literalchar); new function to deal with reading \ escapes.
1443 (lex): Use literalchar.
1444 (lex): Implemented "..." tokens.
1445 (literalchar, lex, parse_percent_token): Made tokenbuffer
1446 always contain the token. This includes growing the token
1447 buffer while reading an integer.
1448 (parse_percent_token): Replaced if-else statement with percent_table.
1449 (parse_percent_token): Added % declarations as another
1450 way to specify the flags -n, -l, and -r. Also added hooks for
1451 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1452 major changes to files.c.
1453 (lex) Retain in the incoming stream a character following
1454 an incorrect '/'.
1455 (skip_white_space, lex): Revised most error messages
1456 and changed fatal to warn to avoid aborting.
1457 (percent_table): Added %thong declarations.
1458
1459 * src/gram.h: Comment changes.
1460
1461 * src/files.c (openfiles, open_extra_files, done):
1462 Add faction flag
1463 and actfile file. Handle noparserflag. Both for -n switch.
1464
1465 * src/conflicts.c (resolve_sr_conflict):
1466 Remove use of alloca.
1467
14681995-06-01 Jim Meyering <meyering@gnu.org>
1469
1470 * doc/bison.texinfo: *** empty log message ***
1471
14721995-05-06 Richard Stallman <rms@gnu.org>
1473
1474 * src/bison.s1: Comment change.
1475
14761995-05-06 Richard Stallman <rms@gnu.org>
1477
1478 * bison.simple: Comment change.
1479
14801995-05-03 Richard Stallman <rms@gnu.org>
1481
1482 * src/version.c: Version now 1.24.
1483
1484 * src/bison.s1: Change distribution terms.
1485
1486 * src/version.c: Version now 1.23.
1487
14881995-05-03 Richard Stallman <rms@gnu.org>
1489
1490 * doc/bison.texinfo:
1491 Rewrite "Conditions for Using Bison".
1492 Update version to 1.24.
1493
14941995-05-03 Richard Stallman <rms@gnu.org>
1495
1496 * bison.simple: Change distribution terms.
1497
14981995-02-23 Richard Stallman <rms@gnu.org>
1499
1500 * src/files.c: Test __VMS_POSIX as well as VMS.
1501
15021995-02-14 Jim Meyering <meyering@gnu.org>
1503
1504 * src/bison.s1 (__yy_memcpy):
1505 Renamed from __yy_bcopy to avoid
1506 confusion. Reverse FROM and TO arguments to be consistent with
1507 those of memcpy.
1508
15091995-02-14 Jim Meyering <meyering@gnu.org>
1510
1511 * bison.simple (__yy_memcpy):
1512 Renamed from __yy_bcopy to avoid
1513 confusion. Reverse FROM and TO arguments to be consistent with
1514 those of memcpy.
1515
15161994-11-10 David J. MacKenzie <djm@gnu.org>
1517
1518 * NEWS: reformat
1519
1520 * NEWS: New file.
1521
1522 * Makefile.in (DISTFILES): Include NEWS.
1523
1524 * Makefile.in (DISTFILES):
1525 Include install-sh, not install.sh.
1526
1527 * configure.in: Update to Autoconf v2 macro names.
1528
15291994-10-05 David J. MacKenzie <djm@gnu.org>
1530
1531 * Makefile.in: fix typo
1532
1533 * Makefile.in (prefix, exec_prefix):
1534 Let configure set them.
1535
15361994-09-28 David J. MacKenzie <djm@gnu.org>
1537
1538 * Makefile.in: Set datadir to $(prefix)/share.
1539
15401994-09-15 Richard Stallman <rms@gnu.org>
1541
1542 * src/bison.s1:
1543 Update copyright notice and GPL version.
1544
15451994-09-15 Richard Stallman <rms@gnu.org>
1546
1547 * bison.simple:
1548 Update copyright notice and GPL version.
1549
15501994-07-12 Richard Stallman <rms@gnu.org>
1551
1552 * src/reduce.c, src/reader.c:
1553 entered into RCS
1554
15551994-05-05 David J. MacKenzie <djm@gnu.org>
1556
1557 * Makefile.in: entered into RCS
1558
15591994-03-26 Richard Stallman <rms@gnu.org>
1560
1561 * src/bison.s1: entered into RCS
1562
15631994-03-26 Richard Stallman <rms@gnu.org>
1564
1565 * bison.simple: entered into RCS
1566
15671994-03-25 Richard Stallman <rms@gnu.org>
1568
1569 * src/main.c: entered into RCS
1570
15711994-03-24 Richard Stallman <rms@gnu.org>
1572
1573 * src/conflicts.c: entered into RCS
1574
15751994-01-02 Richard Stallman <rms@gnu.org>
1576
1577 * Makefile.in: *** empty log message ***
1578
15791993-11-21 Richard Stallman <rms@gnu.org>
1580
1581 * src/bison.s1: *** empty log message ***
1582
15831993-11-21 Richard Stallman <rms@gnu.org>
1584
1585 * doc/bison.texinfo: entered into RCS
1586
1587 * doc/bison.texinfo: *** empty log message ***
1588
15891993-11-21 Richard Stallman <rms@gnu.org>
1590
1591 * bison.simple: *** empty log message ***
1592
15931993-10-25 David J. MacKenzie <djm@gnu.org>
1594
1595 * doc/bison.texinfo: *** empty log message ***
1596
15971993-10-19 Richard Stallman <rms@gnu.org>
1598
1599 * src/bison.s1: *** empty log message ***
1600
16011993-10-19 Richard Stallman <rms@gnu.org>
1602
1603 * bison.simple: *** empty log message ***
1604
16051993-10-14 Richard Stallman <rms@gnu.org>
1606
1607 * src/bison.s1: *** empty log message ***
1608
16091993-10-14 Richard Stallman <rms@gnu.org>
1610
1611 * bison.simple: *** empty log message ***
1612
16131993-09-14 David J. MacKenzie <djm@gnu.org>
1614
1615 * doc/bison.texinfo: *** empty log message ***
1616
16171993-09-13 Noah Friedman <friedman@gnu.org>
1618
1619 * Makefile.in: *** empty log message ***
1620
16211993-09-10 Richard Stallman <rms@gnu.org>
1622
1623 * src/conflicts.c: *** empty log message ***
1624
1625 * src/system.h: entered into RCS
1626
16271993-09-10 Richard Stallman <rms@gnu.org>
1628
1629 * doc/bison.1: entered into RCS
1630
16311993-09-06 Noah Friedman <friedman@gnu.org>
1632
1633 * src/version.c: entered into RCS
1634
16351993-09-06 Noah Friedman <friedman@gnu.org>
1636
1637 * Makefile.in: *** empty log message ***
1638
16391993-07-30 David J. MacKenzie <djm@gnu.org>
1640
1641 * Makefile.in: *** empty log message ***
1642
16431993-07-24 Richard Stallman <rms@gnu.org>
1644
1645 * src/bison.s1: *** empty log message ***
1646
16471993-07-24 Richard Stallman <rms@gnu.org>
1648
1649 * bison.simple: *** empty log message ***
1650
16511993-07-08 David J. MacKenzie <djm@gnu.org>
1652
1653 * Makefile.in: *** empty log message ***
1654
16551993-07-04 Richard Stallman <rms@gnu.org>
1656
1657 * src/bison.s1: *** empty log message ***
1658
16591993-07-04 Richard Stallman <rms@gnu.org>
1660
1661 * bison.simple: *** empty log message ***
1662
16631993-06-26 David J. MacKenzie <djm@gnu.org>
1664
1665 * src/getargs.c: entered into RCS
1666
16671993-06-26 David J. MacKenzie <djm@gnu.org>
1668
1669 * doc/bison.texinfo: *** empty log message ***
1670
1671 * doc/bison.1: New file.
1672
16731993-06-25 Richard Stallman <rms@gnu.org>
1674
1675 * src/getargs.c: New file.
1676
16771993-06-16 Richard Stallman <rms@gnu.org>
1678
1679 * src/bison.s1: *** empty log message ***
1680
16811993-06-16 Richard Stallman <rms@gnu.org>
1682
1683 * bison.simple: *** empty log message ***
1684
16851993-06-03 Richard Stallman <rms@gnu.org>
1686
1687 * src/bison.s1: New file.
1688
16891993-06-03 Richard Stallman <rms@gnu.org>
1690
1691 * doc/bison.texinfo: *** empty log message ***
1692
16931993-06-03 Richard Stallman <rms@gnu.org>
1694
1695 * bison.simple: New file.
1696
16971993-05-19 Richard Stallman <rms@gnu.org>
1698
1699 * doc/bison.texinfo: New file.
1700
17011993-05-07 Noah Friedman <friedman@gnu.org>
1702
1703 * Makefile.in: *** empty log message ***
1704
17051993-04-28 Noah Friedman <friedman@gnu.org>
1706
1707 * src/reader.c: *** empty log message ***
1708
17091993-04-23 Noah Friedman <friedman@gnu.org>
1710
1711 * src/alloc.h: entered into RCS
1712
17131993-04-20 David J. MacKenzie <djm@gnu.org>
1714
1715 * src/version.c: *** empty log message ***
1716
1717 * src/files.c, src/allocate.c:
1718 entered into RCS
1719
1720 * src/reader.c: *** empty log message ***
1721
1722 * src/lex.c: entered into RCS
1723
1724 * src/conflicts.c: New file.
1725
1726 * src/symtab.c: entered into RCS
1727
1728 * src/alloc.h: New file.
1729
1730 * src/LR0.c: entered into RCS
1731
17321993-04-18 Noah Friedman <friedman@gnu.org>
1733
1734 * src/reader.c: New file.
1735
1736 * src/version.c: *** empty log message ***
1737
17381993-04-18 Noah Friedman <friedman@gnu.org>
1739
1740 * Makefile.in: *** empty log message ***
1741
17421993-04-17 Noah Friedman <friedman@gnu.org>
1743
1744 * Makefile.in: *** empty log message ***
1745
17461993-04-15 Richard Stallman <rms@gnu.org>
1747
1748 * src/main.c, src/files.c:
1749 New file.
1750
17511993-04-15 Noah Friedman <friedman@gnu.org>
1752
1753 * configure.in: entered into RCS
1754
1755 * configure.in: *** empty log message ***
1756
1757 * configure.in: New file.
1758
17591993-04-14 Richard Stallman <rms@gnu.org>
1760
1761 * Makefile.in: New file.
1762
17631993-04-13 Richard Stallman <rms@gnu.org>
1764
1765 * src/version.c: New file.
1766
17671993-03-25 Richard Stallman <rms@gnu.org>
1768
1769 * src/output.c: entered into RCS
1770
17711992-09-25 Richard Stallman <rms@gnu.org>
1772
1773 * configure.bat: entered into RCS
1774
17751992-06-22 Richard Stallman <rms@gnu.org>
1776
1777 * src/vmsgetargs.c: entered into RCS
1778
17791992-06-22 Richard Stallman <rms@gnu.org>
1780
1781 * doc/bison.rnh: entered into RCS
1782
17831992-04-20 David J. MacKenzie <djm@gnu.org>
1784
1785 * README: entered into RCS
1786
17871992-01-22 Richard Stallman <rms@gnu.org>
1788
1789 * src/machine.h: entered into RCS
1790
17911991-12-21 Richard Stallman <rms@gnu.org>
1792
1793 * src/lalr.c, src/closure.c:
1794 entered into RCS
1795
17961991-12-20 Richard Stallman <rms@gnu.org>
1797
1798 * src/state.h: entered into RCS
1799
18001991-12-18 Richard Stallman <rms@gnu.org>
1801
1802 * src/print.c, src/nullable.c, src/derives.c:
1803 entered into RCS
1804
18051991-11-03 David J. MacKenzie <djm@gnu.org>
1806
1807 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1808 entered into RCS
1809
18101988-09-09 Richard Stallman <rms@gnu.org>
1811
1812 * src/bison.hairy: entered into RCS
1813
18141987-12-16 Richard Stallman <rms@gnu.org>
1815
1816 * REFERENCES: entered into RCS