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