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