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