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