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