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