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