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