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