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