]> git.saurik.com Git - bison.git/blame - ChangeLog
* tests/atconfig.in (CPPFLAGS): Fix.
[bison.git] / ChangeLog
CommitLineData
1e41465a
PB
12001-08-13 Pascal Bart <pascal.bart@epita.fr>
2
3 * tests/atconfig.in (CPPFLAGS): Fix.
4
c67a198d
PB
52001-08-10 Pascal Bart <pascal.bart@epita.fr>
6
79282c6c 7 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
8 `gpl.texi'.
9 * doc/gpl.texi: Add to package.
10
09a6de7e
MA
112001-08-10 Marc Autret <autret_m@epita.fr>
12
13 * src/print_graph.h: Fix.
14 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
15
b77b9ee0
AD
162001-08-10 Akim Demaille <akim@epita.fr>
17
18 * src/system.h: Provide default declarations for stpcpy, strndup,
19 and strnlen.
20
3e259915
MA
212001-08-10 Robert Anisko <anisko_r@epita.fr>
22
23 * doc/bison.texinfo (Locations): Update @$ stuff.
24
ca96bc2d
MA
252001-08-09 Robert Anisko <anisko_r@epita.fr>
26
27 * src/bison.simple (YYLLOC_DEFAULT): Update.
28 (yyparse): Adjust.
29
fdc6758b
MA
302001-08-08 Marc Autret <autret_m@epita.fr>
31
b77b9ee0 32 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
33 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
34 Reported by Fabrice Bauzac.
957d4dbf 35
600cad3b
MA
362001-08-08 Marc Autret <autret_m@epita.fr>
37
38 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
39 * src/vcg.c (output_node): Fix.
40 * src/vcg.h: Cleanup.
41 * src/print_graph.c: Add comments.
b77b9ee0 42 (node_output_size): New global variable. Simplify the formatting of
600cad3b 43 the VCG graph output.
b77b9ee0 44 (print_actions): Unused code is now used. It notifies the final state
600cad3b 45 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 46 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
47 blue.
48 Get the current node name and node_obstack by argument.
49 (node_obstack): New variable.
50 (print_state): Manage node_obstack.
51 (print_core): Use node_obstack given by argument.
52 A node is not only computed here but in print_actions also.
53 (print_graph): CPP out useless code instead of commenting it.
54
976e528f
AD
552001-08-07 Pascal Bart <pascal.bart@epita.fr>
56
57 * tests/atconfig.in (CPPFLAGS): Fix.
58
20e8e5ca
AD
592001-08-07 Akim Demaille <akim@epita.fr>
60
61 * src/print_graph.c (quote): New.
62 (print_core): Use it.
63
957d4dbf 642001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 65
3e3da797
AD
66 * src/vcg.c (complain.h): Include it.
67 Unepitaize `return' invocations.
c4b66126 68 [NDEBUG] (main): Remove.
79282c6c 69 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
70 * src/files.c (open_files): Initialize graph_obstack.
71 * src/print_graph.c (print_actions): CPP out useless code.
72 (print_core): Don't output the last `\n' in labels.
73 Use `quote'.
74 * src/files.c (output_files): Output the VCG file.
75 * src/main.c (main): Invoke print_graph ();
3e3da797 76
957d4dbf 772001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
78
79 Automaton VCG graph output.
80 Using option ``-g'' or long option ``--graph'', you can generate
81 a gram_filename.vcg file containing a VCG description of the LALR (1)
82 automaton of your grammar.
83
84 * src/main.c: Call to print_graph() function.
85 * src/getargs.h: Update.
86 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
87 (graph_flag): New flag.
88 (longopts): Update.
89 (getargs): Add case `g'.
90 * src/files.c (graph_obstack): New obstack struct.
91 (open_files): Initialize new obstack.
92 (output_files): Saves graph_obstack if required.
93 * src/files.h (graph_obstack): New extern declaration.
94 * src/Makefile.am: Add new source files.
95
957d4dbf 962001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
97
98 * src/print_graph.c, src/print_graph.h (graph): New.
99 * src/vcg.h: New file.
100 * src/vcg.c: New file, VCG graph handling.
101
7333d403
AD
1022001-08-06 Marc Autret <autret_m@epita.fr>
103
104 Add of %source_extension and %header_extension which specify
105 the source or/and the header output file extension.
106
107 * src/files.c (compute_base_names): Remove initialisation of
108 src_extension and header_extension.
109 (compute_exts_from_gf): Update.
110 (compute_exts_from_src): Update.
111 (output_files): Update.
112 * src/reader.c (parse_header_extension_decl): New.
113 (parse_source_extension_decl): New.
114 (read_declarations): New case statements for the new tokens.
115 * src/lex.c (percent_table): Add entries for %source_extension
116 and %header_extension.
117 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
118
84163231
AD
1192001-08-06 Marc Autret <autret_m@epita.fr>
120
121 * configure.in: Bump to 1.28c.
122 * doc/bison.texinfo: Texinfo thingies.
123
8303fc42
AD
1242001-08-04 Pascal Bart <pascal.bart@epita.fr>
125
126 * tests/atconfig.in (CPPFLAGS): Add.
127 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
128
70a84437
AD
1292001-08-03 Akim Demaille <akim@epita.fr>
130
131 Version 1.28b.
132
2ce10144
AD
1332001-08-03 Akim Demaille <akim@epita.fr>
134
135 * tests/Makefile.am (check-local): Ship testsuite.
136 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
137 Include `string.h'.
138
1e3e4bc1
AD
1392001-08-03 Akim Demaille <akim@epita.fr>
140
141 * configure.in: Try using -Wformat when compiling.
142
42b45b7f
AD
1432001-08-03 Akim Demaille <akim@epita.fr>
144
145 * configure.in: Bump to 1.28b.
146
8f13fe33
AD
1472001-08-03 Akim Demaille <akim@epita.fr>
148
149 * src/complain.c: Adjust strerror_r portability issues.
150
b37ba92c
AD
1512001-08-03 Akim Demaille <akim@epita.fr>
152
153 Version 1.28a.
154
b0ce6046
AD
1552001-08-03 Akim Demaille <akim@epita.fr>
156
157 * src/getargs.c, src/getarg.h (skeleton)): Constify.
158 * src/lex.c (literalchar): Avoid name clashes on `buf'.
159 * src/getargs.c: Include complain.h.
160 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
161 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
162
d01c415b
AD
1632001-08-03 Akim Demaille <akim@epita.fr>
164
165 * src/reader.c (readgram): Display hidden chars in error messages.
166
459dd1a6
AD
1672001-08-03 Akim Demaille <akim@epita.fr>
168
169 Update to gettext 0.10.39.
170
53b74c0c
AD
1712001-08-03 Akim Demaille <akim@epita.fr>
172
173 * lib/strspn.c: New.
174
234a3be3
AD
1752001-08-01 Marc Autret <autret_m@epita.fr>
176
177 * doc/bison.texinfo: Update.
178 * doc/bison.1 (mandoc): Update.
179 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
180 * src/files.c: Support output files extensions computing.
181 (src_extension): New static variable.
182 (header_extension): New static variable.
183 (tr): New function.
184 (get_extension_index): New function, gets the index of an extension
185 filename in a string.
186 (compute_exts_from_gf): New function, computes extensions from the
187 grammar file extension.
188 (compute_exts_from_src): New functions, computes extensions from the
189 C source file extension, file given by ``-o'' option.
190 (compute_base_names): Update.
191 (output_files): Update.
192
847bf1f5
AD
1932001-08-01 Robert Anisko <anisko_r@epita.fr>
194
d995fee7 195 * doc/bison.texi: Document @$.
847bf1f5
AD
196 (Locations): New section.
197
d074a105
AD
1982001-07-18 Akim Demaille <akim@epita.fr>
199
200 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
201 * config/prev-version.txt, config/move-if-change: New.
202 * Makefile.am: Adjust.
203
3419715d
AD
2042001-07-08 Pascal Bart <pascal.bart@epita.fr>
205
206 * src/bison.simple (yyparse): Suppress warning `comparaison
207 between signed and unsigned'.
208
62ab6972
AD
2092001-07-05 Pascal Bart <pascal.bart@epita.fr>
210
211 * src/getargs.h (raw_flag): Remove.
212 * src/getargs.c: Die on `-r'/`--raw'.
213 * src/lex.c (parse_percent_token): Die on `%raw'.
214 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
215 * tests/calc.at: Suppress test with option `--raw'.
216
1e24cc5b
AD
2172001-07-14 Akim Demaille <akim@epita.fr>
218
219 * config/: New.
220 * configure.in: Require Autoconf 2.50.
221 Update to gettext 0.10.38.
222
32dfccf8
AD
2232001-03-16 Akim Demaille <akim@epita.fr>
224
225 * doc/bison.texinfo: ANSIfy the examples.
226
cd5bd6ac
AD
2272001-03-16 Akim Demaille <akim@epita.fr>
228
229 * getargs.c (skeleton): New variable.
230 (longopts): --skeleton is a new option.
231 (shortopts, getargs): -S is a new option.
232 * getargs.h: Declare skeleton.
233 * output.c (output_parser): Use it.
234
5141b016
AD
2352001-03-16 Akim Demaille <akim@epita.fr>
236
237 * m4/strerror_r.m4: New.
238 * m4/error.m4: Run AC_FUNC_STRERROR_R.
239 * lib/error.h, lib/error.c: Update.
240
447992b9
AD
2412001-03-16 Akim Demaille <akim@epita.fr>
242
243 * src/getargs.c (longopts): Clean up.
244
274d42ce
AD
2452001-02-21 Akim Demaille <akim@epita.fr>
246
247 * src/reader.c (gensym): `gensym_count' is your own.
248 Use a static buf to create the symbol name, as token_buffer is no
249 longer a buffer.
250
22c821f3
AD
2512001-02-08 Akim Demaille <akim@epita.fr>
252
253 * src/conflicts.c (conflict_report): Be sure not to append to res
254 between two calls, which could happen if both first sprintf were
255 skipped, but not the first cp += strlen.
256
18569462
AD
2572001-02-08 Akim Demaille <akim@epita.fr>
258
259 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
260 New, from fileutils 4.0.37.
261 * configure.in: Require Autoconf 2.49c. I took some time before
262 making this decision. This is the only way out for portability
263 issues in Bison, it would mean way too much duplicate effort to
264 import in Bison features implemented in 2.49c since 2.13.
265 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
266
0d8f3c8a
AD
2672001-02-02 Akim Demaille <akim@epita.fr>
268
269 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 270 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 271
f17bcd1f
AD
2722001-01-19 Akim Demaille <akim@epita.fr>
273
274 Get rid of the ad hoc handling of token_buffer in the scanner: use
275 the obstacks.
276
277 * src/lex.c (token_obstack): New.
278 (init_lex): Initialize it. No longer call...
279 (grow_token_buffer): this. Remove it.
280 Adjust all the places which used it to use the obstack.
281
511e79b3
AD
2822001-01-19 Akim Demaille <akim@epita.fr>
283
284 * src/lex.h: Rename all the tokens:
285 s/\bENDFILE\b/tok_eof/g;
286 s/\bIDENTIFIER\b/tok_identifier/g;
287 etc.
288 Let them be enums, not #define, to ease debugging.
289 Adjust all the code.
290
0d6508ef
AD
2912001-01-18 Akim Demaille <akim@epita.fr>
292
293 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
294 * src/lex.c (maxtoken, grow_token_buffer): Static.
295
6deb4447
AD
2962001-01-18 Akim Demaille <akim@epita.fr>
297
298 Since we now use obstacks, more % directives can be enabled.
299
300 * src/lex.c (percent_table): Also accept `%yacc',
301 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
302 `%debug'.
303 Handle the actions for `%semantic_parser' and `%pure_parser' here,
304 instead of returning a token.
305 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
306 * src/reader.c (read_declarations): Adjust.
307 * src/files.c (open_files): Don't call `compute_base_names', don't
308 compute `attrsfile' since they depend upon data which might be
309 *in* the input file now.
310 (output_files): Do it here.
311 * src/output.c (output_headers): Document the fact that this patch
312 introduces a guaranteed SEGV for semantic parsers.
313 * doc/bison.texinfo: Document them.
314 * tests/suite.at: Exercise these %options.
315
ff4423cc
AD
3162000-12-20 Akim Demaille <akim@epita.fr>
317
318 Also handle the output file (--verbose) with obstacks.
319
320 * files.c (foutput): Remove.
321 (output_obstack): New.
322 Adjust all dependencies.
323 * src/conflicts.c: Return a string.
324 * src/system.h (obstack_grow_string): Rename as...
325 (obstack_sgrow): this. Be ready to work with non literals.
326 (obstack_fgrow4): New.
327
956dba3a
AD
3282000-12-20 Akim Demaille <akim@epita.fr>
329
330 * src/files.c (open_files): Fix the computation of short_base_name
331 in the case of `-o foo.tab.c'.
332
337bab46
AD
3332000-12-20 Akim Demaille <akim@epita.fr>
334
335 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
336 (copy_dollar): Now that everything uses obstacks, get rid of the
337 FILE * parameters.
338
5d3214b8
AD
3392000-12-20 Akim Demaille <akim@epita.fr>
340
341 * src/files.c (open_files): Actually the `.output' file is based
342 on the short_base_name, not base_name.
343 * tests/suite.at (Checking output file names): Adjust.
344
29092a57
AD
3452000-12-20 Akim Demaille <akim@epita.fr>
346
347 * src/bison.s1: Remove, we now use directly...
348 * src/bison.simple: this.
349 * src/Makefile.am: Use pkgdata instead of data.
350
ea5607fd
AD
3512000-12-20 Akim Demaille <akim@epita.fr>
352
353 * src/files.c (guard_obstack): New.
354 (open_files): Initialize it.
355 (output_files): Dump it...
356 * src/files.h: Export it.
357 * src/reader.c (copy_guard): Use it.
358
27110317
AD
3592000-12-19 Akim Demaille <akim@epita.fr>
360
361 * src/files.c (outfile, defsfile, actfile): Removed as global
362 vars.
363 (open_files): Don't compute them.
364 (output_files): Adjust.
365 (base_name, short_base_name): Be global.
366 Adjust dependencies.
367
19c50364
AD
3682000-12-19 Akim Demaille <akim@epita.fr>
369
370 * src/files.c (strsuffix): New.
371 (stringappend): Be just like strcat but allocate.
372 (base_names): Eve out from open_files.
373 Try to simplify the rather hairy computation of base_name and
374 short_base_name.
375 (open_files): Use it.
376 * tests/suite.at (Checking output file names): New test.
377
573c1d9f
AD
3782000-12-19 Akim Demaille <akim@epita.fr>
379
380 * src/system.h (obstack_grow_literal_string): Rename as...
381 (obstack_grow_string): this.
382 * src/output.c (output_parser): Recognize `%% actions' instead of
383 `$'.
384 * src/bison.s1: s/$/%% actions/.
385 * src/bison.hairy: Likewise.
386
ef7ddedd
AD
3872000-12-19 Akim Demaille <akim@epita.fr>
388
389 * src/output.c (output_parser): Compute the `#line' lines when
390 there are.
391 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
392 Suggested by Hans Aberg.
393
ff61dabd
AD
3942000-12-19 Akim Demaille <akim@epita.fr>
395
396 Let the handling of the skeleton files be local to the procedures
397 that use it.
398
399 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
400 longer static.
401 (fparser, open_extra_files): Remove.
402 (open_files, output_files): Don't take care of fparser.
403 * src/files.h: Adjust.
404 * src/output.c (output_parser): Open and close the file to the
405 skeleton.
406 * src/reader.c (read_declarations): When %semantic_parser, open
407 fguard.
408
55b96341
AD
4092000-12-19 Akim Demaille <akim@epita.fr>
410
411 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
412 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
413
358c15b7
AD
4142000-12-19 Akim Demaille <akim@epita.fr>
415
416 * src/files.c (open_files): Yipee! We no longer need all the code
417 looking for `/tmp' since we have no tmp file.
418
7de3329e
AD
4192000-12-19 Akim Demaille <akim@epita.fr>
420
421 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
422 New macros.
423 * src/files.c (open_files): Less dependency on MSDOS etc.
424
3abcd459
AD
4252000-12-14 Akim Demaille <akim@epita.fr>
426
427 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
428 Provide a default definition.
429 Use it when executing the default @ action.
430 * src/reader.c (reader_output_yylsp): No longer include
431 `timestamp' and `text' in the default YYLTYPE.
432
2a91a95e
AD
4332000-12-12 Akim Demaille <akim@epita.fr>
434
435 * src/reader.c (copy_definition, parse_union_decl, copy_action)
436 (copy_guard): Quote the file names.
437 Reported by Laurent Mascherpa.
438
14d3eb9b
AD
4392000-12-12 Akim Demaille <akim@epita.fr>
440
441 * src/output.c (output_headers, output_program, output): Be sure
442 to escape special characters when outputting filenames.
443 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
444 (output_headers): Don't depend on them, Use ACTSTR.
445
d7045ec6
AD
4462000-11-17 Akim Demaille <akim@epita.fr>
447
448 * lib/obstack.h: Formatting changes.
449 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
450 prevents type checking.
451 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
452 cast the value to (void *): assigning a `foo *' to a `void *'
453 variable is valid.
454 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
455 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
456 append characters.
457
6fd54b73
AD
4582000-11-17 Akim Demaille <akim@epita.fr>
459
460 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
461 as...
462 (suite.m4, regression.m4, calc.m4): these.
463 * tests/atgeneral.m4: Update from CVS Autoconf.
464
4c50eae6
AD
4652000-11-17 Akim Demaille <akim@epita.fr>
466
467 * tests/regression.m4 (%union and --defines): New test,
468 demonstrating a current bug in the obstack implementation.
469
a35f64ea
AD
4702000-11-17 Akim Demaille <akim@epita.fr>
471
472 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
473 macros.
474 Use them to declare the variables which are global or local to
475 `yyparse'.
476
7de23534
AD
4772000-11-17 Akim Demaille <akim@epita.fr>
478
479 * acconfig.h: Remove, no longer used.
480
aa7815f5
AD
4812000-11-07 Akim Demaille <akim@epita.fr>
482
483 * src: s/Copyright (C)/Copyright/g.
484
5af1f549
AD
4852000-11-07 Akim Demaille <akim@epita.fr>
486
487 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
488 defining.
489 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
490
553e2b22
AD
4912000-11-07 Akim Demaille <akim@epita.fr>
492
493 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
494 Merge in a single CPP if/else.
495
8a4f41d6
AD
4962000-11-07 Akim Demaille <akim@epita.fr>
497
498 * src/output.c (output): Remove useless variables.
499 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
500 argument `data' for consistency with the prototypes.
501 Qualify it `const'.
502 (obstack_copy, obstack_copy0): Rename the second argument as
503 `address' for consistency. Qualify it `const'.
504 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
505 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
506 `const' their input argument (`data' or `address').
507 Adjust the corresponding macros to include `const' in casts.
508
095a3fb5
AD
5092000-11-03 Akim Demaille <akim@epita.fr>
510
511 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
512 s/PFILE1/BISON_HAIRY/.
513 Adjust dependencies.
514
d1cdce7c
AD
5152000-11-03 Akim Demaille <akim@epita.fr>
516
090c5ebf 517 For some reason, this was not applied.
d1cdce7c
AD
518
519 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
520 `unlink': it's no longer used.
521
9311529b
AD
5222000-11-03 Akim Demaille <akim@epita.fr>
523
524 * src/files.c (skeleton_find): New function, eved out of...
525 (open_files, open_extra_files): here.
526
d8880f69
AD
5272000-11-03 Akim Demaille <akim@epita.fr>
528
529 Don't use `atexit'.
530
531 * src/files.c (obstack_save): New function.
532 (done): Rename as...
533 (output_files): this.
534 Use `obstack_save'.
535 * src/main.c (main): Don't use `atexit' to register `done', since
536 it no longer has to remove tmp files, just call `output_files'
537 when there are no errors.
538
0dbb648e
AD
5392000-11-02 Akim Demaille <akim@epita.fr>
540
541 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
542 `unlink': it's no longer used.
543 * src/files.h: Formatting changes.
544
896fe5c1
AD
5452000-11-02 Akim Demaille <akim@epita.fr>
546
547 Remove the last uses of mktemp and unlink/delete.
548
549 * src/files.c (fdefines, ftable): Removed.
550 (defines_ostack, table_obstack): New.
551 Adjust dependencies of the former into uses of the latter.
552 * src/output.c (output_short_or_char_table, output_short_table):
553 Convert to using obstacks.
554 * src/reader.c (copy_comment2): Accept one FILE * and two
555 obstacks.
556 (output_token_defines, reader_output_yylsp): Use obstacks.
557 * src/system.h (obstack_fgrow3): New.
558
dd60faec
AD
5592000-11-01 Akim Demaille <akim@epita.fr>
560
561 Change each use of `fattrs' into a use of `attrs_obstack'.
562
563 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
564 * src/files.c (fattrs): Remove.
565 (attrs_obstack): New.
566 Adjust all dependencies.
567 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
568
8c7ebe49
AD
5692000-11-01 Akim Demaille <akim@epita.fr>
570
571 Introduce obstacks.
572 Change each use of `faction' into a use of `action_obstack'.
573
574 * lib/obstack.h, lib/obstack.c: New files.
575 * src/files.c (faction): Remove.
576 (action_obstack): New.
577 Adjust all dependencies.
578
77aee789
AD
5792000-10-20 Akim Demaille <akim@epita.fr>
580
581 * lib/quote.h (PARAMS): New macro. Use it.
582
43591cec
AD
5832000-10-16 Akim Demaille <akim@epita.fr>
584
585 * src/output.c (output_short_or_char_table): New function.
586 (output_short_table, output_token_translations): Use it.
587 (goto_actions): Use output_short_table.
588
1e9798d5
AD
5892000-10-16 Akim Demaille <akim@epita.fr>
590
591 * src/symtab.c (bucket_new): New function.
592 (getsym): Use it.
593
594 * src/output.c (output_short_table): New argument to display the
595 comment associated with the table.
596 Adjust dependencies.
597 (output_gram): Use it.
598 (output_rule_data): Nicer output layout for YYTNAME.
599
f282676b
AD
6002000-10-16 Akim Demaille <akim@epita.fr>
601
602 * src/lex.c (read_typename): New function.
603 (lex): Use it.
604 * src/reader.c (copy_dollar): Likewise.
605
550a72a3
AD
6062000-10-16 Akim Demaille <akim@epita.fr>
607
608 * src/reader.c (copy_comment2): Expect the input stream to be on
609 the `/' which is suspected to open a comment, instead of being
610 called after `//' or `/*' was read.
611 (copy_comment, copy_definition, parse_union_decl, copy_action)
612 (copy_guard): Adjust.
613
131e2fef
AD
6142000-10-16 Akim Demaille <akim@epita.fr>
615
616 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
617 `read_signed_integer'.
618
79282c5a
AD
6192000-10-16 Akim Demaille <akim@epita.fr>
620
621 * src/reader.c (copy_dollar): New function.
622 (copy_guard, copy_action): Use it.
623
ff4a34be
AD
6242000-10-16 Akim Demaille <akim@epita.fr>
625
626 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
627 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
628 New files, from Fileutils 4.0.27.
629 * src/main.c (printable_version): Remove.
630 * src/lex.c, src/reader.c: Use `quote'.
631
6322000-10-04 Akim Demaille <akim@epita.fr>
633
634 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
635
14ded682
AD
6362000-10-04 Akim Demaille <akim@epita.fr>
637
638 * doc/bison.texinfo: Various typos spotted by Neil Booth.
639
8e03724b
AD
6402000-10-04 Akim Demaille <akim@epita.fr>
641
642 When a literal string is used to define two different tokens,
643 `bison -v' segfaults.
644 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
645
646 * tests/regression.m4: New file.
647 Include the core of the sample provided by Piotr Gackiewicz.
648 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
649 properly.
650
a9e64249
AD
6512000-10-04 Akim Demaille <akim@epita.fr>
652
653 * src/reader.c (parse_expect_decl): Keep `count' within the size
654 of `buffer'.
655 From Neil Booth.
656
da9abf43
AD
6572000-10-02 Paul Eggert <eggert@twinsun.com>
658
659 * bison.s1 (yyparse): Assign the default value
660 unconditionally, to avoid a GCC warning and make the parser a
661 tad smaller.
662
c33638bb
AD
6632000-10-02 Akim Demaille <akim@epita.fr>
664
665 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
666 options.
667
444c570a
AD
6682000-10-02 Akim Demaille <akim@epita.fr>
669
670 * src/derives.c, src/print.c, src/reduce.c: To ease the
671 translation, move some `\n' out of the translated strings.
672
89cab50d
AD
6732000-10-02 Akim Demaille <akim@epita.fr>
674
675 The location tracking mechanism is precious for parse error
676 messages. Nevertheless, it is enabled only when `@n' is used in
677 the grammar, which is a different issue (you can use it in error
678 message, but not in the grammar per se). Therefore, there should
679 be another means to enable it.
680
681 * src/getargs.c (getargs): Support `--locations'.
682 (usage): Report it.
683 * src/getargs.h (locationsflag): Export it.
684 * src/lex.c (percent_table): Support `%locations'.
685 * src/reader.c (yylsp_needed): Remove this variable, now replaced
686 with `locationsflag'.
687 * doc/bison.texinfo: Document `--locations' and `%locations'.
688 Sort the options.
689 * tests/calc.m4: Test it.
690
691 For regularity of the names, replace each
692 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
693 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
694 In addition replace each `flag' with `_flag'.
695
d6c2cba0
AD
6962000-10-02 Akim Demaille <akim@epita.fr>
697
698 Also test parse error messages, including with YYERROR_VERBOSE.
699
700 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
701 associative).
702 Use it to check the computations.
703 Use it to check `nonassoc' is honored.
704 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
705 `--yyerror-verbose'.
706 (_AT_CHECK_CALC): Adjust to this option.
707 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
708
5a35a6cb
AD
7092000-10-02 Akim Demaille <akim@epita.fr>
710
711 Test also `--verbose', `--defines' and `--name-prefix'. Testing
712 the latter demonstrates a flaw in the handling of non debugging
713 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
714 was used in order to simplify:
715
716 #if YYDEBUG
717 if (yydebug)
718 {
719 ...
720 }
721 #endif
722
723 into
724
725 if (yydebug)
726 {
727 ...
728 }
729
730 unfortunately this leads to a CPP conflict when
731 `--name-prefix=foo' is used since it produces `#define yydebug
732 foodebug'.
733
734 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
735 (YYDPRINTF): New macro.
736 Spread its use.
737 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
738 the bison options.
739 Also test `--verbose', `--defines' and `--name-prefix'.
740
71da9eea
AD
7412000-10-02 Akim Demaille <akim@epita.fr>
742
743 Improve the readability of the produced parsers.
744
745 * src/bison.s1: Formatting changes.
746 Improve the comment related to the `$' mark.
747 (yydefault): Don't fall through to `yyresume': `goto' there.
748 * src/output.c (output_parser): When the `$' is met, skip the end
749 of its line.
750 New variable, `number_of_dollar_signs', to check there's exactly
751 one `$' in the parser skeleton.
752
95e36146
AD
7532000-10-02 Akim Demaille <akim@epita.fr>
754
755 * lib/xstrdup.c: New file, from the fileutils.
756 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
757 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
758 instead of strlen + xmalloc + strcpy.
759 * src/symtab.c (copys): Remove, use xstrdup instead.
760
d7020c20
AD
7612000-10-02 Akim Demaille <akim@epita.fr>
762
763 * src/gram.h (associativity): New enum type which replaces the
764 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
765 `right_assoc', `left_assoc' and `non_assoc'.
766 Adjust all dependencies.
767 * src/reader.c: Formatting changes.
768 (LTYPESTR): Don't define it, use it as a literal in
769 `reader_output_yylsp'.
770 * src/symtab.h (symbol_class): New enum type which replaces the
771 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
772 `sunknown', `stoken and `snterm'.
773
1916f98e
AD
7742000-10-02 Akim Demaille <akim@epita.fr>
775
776 * src/getargs.c (fixed_outfiles): Rename as...
777 (yaccflag): for consistency and accuracy.
778 Adjust dependencies.
779
d7913476
AD
7802000-10-02 Akim Demaille <akim@epita.fr>
781
782 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
783 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
784 difficult and introduced a lot of core dump. It turns out that
785 Bison used an implementation of `xmalloc' based on `calloc', and
786 at various places it does depend upon the initialization to 0. I
787 have not tried to isolate the pertinent places, and all the former
788 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
789 someone should address this issue.
790
791 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
792 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
793 files.
794 Adjust dependencies.
795 * src/warshall.h: New file.
796 Propagate.
797
340ef489
AD
7982000-10-02 Akim Demaille <akim@epita.fr>
799
800 Various anti-`extern in *.c' changes.
801
802 * src/system.h: Include `assert.h'.
803
b2ca4022
AD
8042000-10-02 Akim Demaille <akim@epita.fr>
805
806 * src/state.h (nstates, final_state, first_state, first_shift)
807 (first_reduction): Move their exportation from here...
808 * src/LR0.h: to here.
809 Adjust dependencies.
810 * src/getargs.c (statisticsflag): New variable.
811 Add support for `--statistics'.
812 Adjust dependencies.
813
814 Remove a lot of now useless `extern' statements in most files.
815
403b315b
AD
8162000-10-02 Akim Demaille <akim@epita.fr>
817
818 * src/LR0.h: New file.
819 Propagate its use.
820
07a58c13
AD
8212000-10-02 Akim Demaille <akim@epita.fr>
822
823 * src/print.h: New file.
824 Propagate its use.
825 * src/print.c: Formatting and ordering changes.
826 (verbose, terse): Replace with...
827 (print_results): this new function.
828 Adjust dependencies.
829
0619caf0
AD
8302000-10-02 Akim Demaille <akim@epita.fr>
831
832 * src/conflicts.c (conflict_report): New function.
833 (conflict_log, verbose_conflict_log): Replace with...
834 (print_conflicts): this function.
835 Adjust dependencies.
836 * src/conflicts.h: New file.
837 Propagate its inclusion.
838
3519ec76
AD
8392000-10-02 Akim Demaille <akim@epita.fr>
840
841 * src/nullable.h: New file.
842 Propagate its inclusion.
843 * src/nullable.c: Formatting changes.
844
015acc48
AD
8452000-10-02 Akim Demaille <akim@epita.fr>
846
847 * src/reduce.h: New file.
848 Propagate its inclusion.
849 * src/reduce.c: Topological sort and other formatting changes.
850 (bool, TRUE, FALSE): Move their definition to...
851 * src/system.h: here.
852
8963a27b
AD
8532000-10-02 Akim Demaille <akim@epita.fr>
854
855 * src/files.c: Formatting changes.
856 (tryopen, tryclose, openfiles): Rename as...
857 (xfopen, xfclose, open_files): this.
858 (stringappend): static.
859 * src/files.h: Complete the list of exported symbols.
860 Propagate its use.
861
a70083a3
AD
8622000-10-02 Akim Demaille <akim@epita.fr>
863
864 * src/reader.h: New file.
865 Propagate its use instead of tedious list of `extern' and
866 prototypes.
867 * src/reader.c: Formatting changes, topological sort,
868 s/register//.
869
abadc117
AD
8702000-10-02 Akim Demaille <akim@epita.fr>
871
872 * src/lex.h: Prototype `lex.c' exported functions.
873 * src/reader.c: Adjust.
874 * src/lex.c: Formatting changes.
875 (safegetc): Rename as...
876 (xgetc): this.
877
720d742f
AD
8782000-10-02 Akim Demaille <akim@epita.fr>
879
880 * src/lalr.h: New file.
881 Propagate its inclusion instead of prototypes and `extern'.
882 * src/lalr.c: Formatting changes, topological sorting etc.
883
f2acea59
AD
8842000-10-02 Akim Demaille <akim@epita.fr>
885
886 * src/output.c (token_actions): Introduce a temporary array,
887 YYDEFACT, that makes it possible for this function to use
888 output_short_table.
889
d019d655
AD
8902000-10-02 Akim Demaille <akim@epita.fr>
891
892 `user_toknums' is output as a `short[]' in `output.c', while it is
893 defined as a `int[]' in `reader.c'. For consistency with the
894 other output tables, `user_toknums' is now defined as a table of
895 shorts.
896
897 * src/reader.c (user_toknums): Be a short table instead of an int
898 table.
899 Adjust dependencies.
900
901 Factor the short table outputs.
902
903 * src/output.c (output_short_table): New function.
904 * src/output.c (output_gram, output_stos, output_rule_data)
905 (output_base, output_table, output_check): Use it.
906
6c89f1c1
AD
9072000-10-02 Akim Demaille <akim@epita.fr>
908
909 * src/output.c (output): Topological sort of the functions, in
910 order to get rid of the `static' prototypes.
911 No longer use `register'.
912 * src/output.h: New file.
913 Propagate its inclusion in files explicitly prototyping functions
914 from output.c.
915
d9efd181
AD
9162000-09-21 Akim Demaille <akim@epita.fr>
917
918 * src/atgeneral.m4: Update from Autoconf.
919
c29240e7 9202000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
921
922 * src/closure.h: New file.
923 * src/closure.c: Formatting changes, topological sort over the
924 functions, use of closure.h.
925 (initialize_closure, finalize_closure): Rename as...
926 (new_closure, free_closure): these. Adjust dependencies.
927 * src/LR0.c: Formatting changes, topological sort, use of
928 cloture.h.
929 (initialize_states): Rename as...
930 (new_states): this.
931 * src/Makefile.am (noinst_HEADERS): Adjust.
932
499daa50
AD
9332000-09-20 Akim Demaille <akim@epita.fr>
934
935 * src/acconfig.h: Don't protect config.h against multiple
936 inclusion.
937 Don't define PARAMS.
938 * src/system.h: Define PARAMS.
939 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
940 purpose of config.h. system.h must not try to fix wrong
941 definitions in config.h.
942
cc84fd5d
AD
9432000-09-20 Akim Demaille <akim@epita.fr>
944
945 * src/derives.h: New file.
946 * src/main.c, src/derives.h: Use it.
947 Formatting changes.
948 * src/Makefile.am (noinst_HEADERS): Adjust.
949
db5b3a89
AD
9502000-09-20 Akim Demaille <akim@epita.fr>
951
952 * tests/atgeneral.m4: Update from Autoconf.
953 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
954 (AT_CHECK_CALC): New macros.
955 Use these macros to test bison with options `', `--raw',
956 `--debug', `--yacc', `--yacc --debug'.
957
ceed8467
AD
9582000-09-19 Akim Demaille <akim@epita.fr>
959
960 * src/output.c: Formatting changes.
961 * src/machine.h: Remove, leaving its contents in...
962 * src/system.h: here.
963 Include stdio.h.
964 Adjust all dependencies on stdio.h and machine.h.
965 * src/getargs.h: New file.
966 Let all `extern' declarations about getargs.c be replaced with
967 inclusion of `getargs.h'.
968 * src/Makefile.am (noinst_HEADERS): Adjust.
969
970 * tests/calc.m4 (yyin): Be initialized in main, not on the global
971 scope.
972 (yyerror): Returns void, not int.
973 * doc/bison.texinfo: Formatting changes.
974
05a1d24b
AD
9752000-09-19 Akim Demaille <akim@epita.fr>
976
977 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
978 portable.
979
cbd25751
AD
9802000-09-18 Akim Demaille <akim@epita.fr>
981
982 * configure.in: Append WARNING_CFLAGS to CFLAGS.
983 * src/Makefile.am (INCLUDES): Don't.
984 Be ready to fetch headers in lib/.
985
13863333
AD
9862000-09-18 Akim Demaille <akim@epita.fr>
987
988 * doc/bison.texinfo: Update the copyright.
989 ANSIfy and GNUify the examples.
990 Remove the old menu.
991
0d533154
AD
9922000-09-18 Akim Demaille <akim@epita.fr>
993
994 First set of tests: use the `calc' example from the documentation.
995
996 * src/bison.s1 (yyparse): Condition the code using `yytname' which
997 is defined only when YYDEBUG is.
998 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
999 * src/files.c (tryopen, tryclose): Formatting changes.
1000 Move to the top and be static.
1001 * src/reader.c (read_signed_integer): Likewise.
1002 * tests/calc.m4: New file.
1003 * Makefile.am, suite.m4: Adjust.
1004 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1005
e79137ac
AD
10062000-09-18 Akim Demaille <akim@epita.fr>
1007
1008 Add support for an Autotest test suite for Bison.
1009
1010 * m4/m4.m4, m4/atconfig.m4: New files.
1011 * m4/Makefile.am (EXTRA_DIST): Adjust.
1012 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1013 files.
1014 * src/getargs.c: Display a more standard --version message.
1015 * src/reader.c (reader): Formatting changes.
1016 No longer depend upon VERSION_STRING.
1017 * configure.in: No longer use `dnl'.
1018 Set up the test suite and the new directory `tests/.
1019 (VERSION_STRING): Remove.
1020
27821bff
AD
10212000-04-14 Akim Demaille <akim@epita.fr>
1022
1023 * src/reader.c (copy_comment2): New function, same as former
1024 `copy_comment', but outputs into two FILE *.
1025 (copy_comment): Use it.
1026 (parse_union_decl): Use it.
1027 (get_type, parse_start_decl): Use the same `invalid' message.
1028 (parse_start_decl, parse_union_decl): Use the same `multiple'
1029 message.
1030 (parse_union_decl, copy_guard, copy_action): Use the same
1031 `unmatched' message.
1032 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1033
cfe5fbc0
AD
10342000-03-31 Akim Demaille <akim@epita.fr>
1035
1036 * src/files.c (tryopen, tryclose): Move to the top.
1037 Be static.
1038
cb7db13e
AD
10392000-03-31 Akim Demaille <akim@epita.fr>
1040
1041 * src/main.c (main): Don't call `done', exit does it.
1042
a0f6b076
AD
10432000-03-31 Akim Demaille <akim@epita.fr>
1044
36281465
AD
1045 * allocate.c: s/return (foo)/return foo/.
1046 * lalr.c: Likewise.
1047 * LR0.c: Likewise.
1048 * output.c: Likewise.
1049 * reader.c: Likewise.
1050 * symtab.c: Likewise.
1051 * vmsgetargs.c: Likewise.
1052
10532000-03-31 Akim Demaille <akim@epita.fr>
1054
1055 Clean up the error reporting functions.
a0f6b076
AD
1056
1057 * src/report.c: New file.
1058 * src/report.h: Likewise.
1059 * src/Makefile.am: Adjust.
1060 * m4/error.m4: New file.
1061 * m4/Makefile.am: Adjust.
1062 * configure.in (jm_PREREQ_ERROR): Call it.
1063 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1064 Remove.
1065 (fatal, fatals): Remove. All callers use complain.c::fatal.
1066 (warn, warni, warns, warnss, warnss): Remove. All callers use
1067 complain.c::complain.
1068 (toomany): Remove, use fatal instead.
1069 * src/files.c (done): No argument, use complain_message_count.
1070 * src/main.c (main): Register `done' to `atexit'.
1071
1072 * src/getargs.c (usage): More `fputs', less `fprintf'.
1073
18539825
AD
10742000-03-28 Akim Demaille <akim@epita.fr>
1075
1076 * lib/: New directory.
1077 * Makefile.am (SUBDIRS): Adjust.
1078 * configure.in: Adjust.
1079 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1080 useless.
1081 * src/alloca.c: Moved to lib/.
1082 * src/getopt.c: Likewise.
1083 * src/getopt1.c: Likewise.
1084 * src/getopt.h: Likewise.
1085 * src/ansi2knr.c: Likewise.
1086 * src/ansi2knr.1: Likewise.
1087 * src/Makefile.am: Adjust.
1088 * lib/Makefile.am: New file.
1089
9f306f2a
AD
10902000-03-28 Akim Demaille <akim@epita.fr>
1091
1092 * src/getargs.c (usage): Refresh the help message.
1093
0ba347b6
AD
10942000-03-17 Akim Demaille <akim@epita.fr>
1095
1096 * src/getopt1.c: Updated from textutils 2.0e
1097 * src/getopt.c: Likewise.
1098 * src/getopt.h: Likewise.
1099
dbe7f271
AD
11002000-03-17 Akim Demaille <akim@epita.fr>
1101
1102 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1103 the file name, not the whole `#line LINE FILE'.
1104
75bbe78d
AD
11052000-03-17 Akim Demaille <akim@epita.fr>
1106
1107 On syntax errors, report the token on which we choked.
1108
aa5fd0ee
AD
1109 * src/bison.s1 (yyparse): In the label yyerrlab, when
1110 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1111
7b306f52
AD
11122000-03-17 Akim Demaille <akim@epita.fr>
1113
aa5fd0ee 1114 * src/reader.c (copy_at): New function.
7b306f52
AD
1115 (copy_guard): Use it.
1116 (copy_action): Use it.
1117
e87b5700
AD
11182000-03-17 Akim Demaille <akim@epita.fr>
1119
1120 Be kind to translators, save some useless translations.
1121
aa5fd0ee 1122 * src/main.c (banner): New function.
e87b5700
AD
1123 (fatal_banner): Use it.
1124 (warn_banner): Use it.
1125
ae3c3164
AD
11262000-03-17 Akim Demaille <akim@epita.fr>
1127
aa5fd0ee
AD
1128 * src/reader.c (copy_definition): Use copy_string and
1129 copy_comment. Removed now unused `match', `ended',
1130 `cplus_comment'.
ae3c3164
AD
1131 (copy_comment, copy_string): Moved, to be visible from
1132 copy_definition.
1133
4dc58e7c
AD
11342000-03-17 Akim Demaille <akim@epita.fr>
1135
aa5fd0ee
AD
1136 * src/reader.c (copy_string): Declare `static inline'. No
1137 problems with inline, since it is checked by configure.
4dc58e7c
AD
1138 (copy_comment): Likewise.
1139
0a6384c4
AD
11402000-03-17 Akim Demaille <akim@epita.fr>
1141
aa5fd0ee 1142 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1143
3cef001a
AD
11442000-03-17 Akim Demaille <akim@epita.fr>
1145
aa5fd0ee 1146 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1147 (copy_action): Use it. Removed now unused `match', `ended',
1148 `cplus_comment'.
1149 (copy_guard): Likewise.
1150
ca36d2ef
AD
11512000-03-17 Akim Demaille <akim@epita.fr>
1152
aa5fd0ee 1153 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1154 (copy_action): Use it.
1155 (copy_guard): Likewise.
1156
6666f98f
AD
11572000-03-17 Akim Demaille <akim@epita.fr>
1158
1159 Change the handling of @s so that they behave exactly like $s.
1160 There is now a pseudo variable @$ (readble and writable), location
1161 of the lhs of the rule (by default ranging from the location of
1162 the first symbol of the rhs, to the location of the last symbol,
1163 or, if the rhs is empty, YYLLOC).
1164
1165 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1166 yyval.
1167 (yyparse): When providing a default semantic action, provide a
1168 default location action.
1169 (after the $): No longer change `*YYLSP', just stack YYLOC the
1170 same way you stack YYVAL.
1171 * src/reader.c (read_declarations): Use warns.
1172 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1173 (copy_action, case '@'): Likewise.
1174 Use a standard error message, to save useless work from
1175 translators.
1176
41aca2e0
AD
11772000-03-17 Akim Demaille <akim@epita.fr>
1178
aa5fd0ee
AD
1179 * src/bison.s1: Formatting and cosmetics changes.
1180 * src/reader.c: Likewise.
41aca2e0
AD
1181 Update the Copyright notice.
1182
dc08c1d5
AD
11832000-03-17 Akim Demaille <akim@epita.fr>
1184
aa5fd0ee
AD
1185 * src/bison.s1 (#line): All set to `#line' only, since the
1186 Makefile now handles them.
dc08c1d5 1187
9ee3c97b
AD
11882000-03-16 Akim Demaille <akim@epita.fr>
1189
1190 * src/output.c (output_rule_data): Output the documentation of
1191 some of the tables.
1192 (Copyright notice): Update.
1193 Formatting changes.
1194
0de741ca
AD
11952000-03-16 Akim Demaille <akim@epita.fr>
1196
1197 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1198 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1199 One `#if YYDEBUG' remains, since it uses variables which are
1200 defined only if `YYDEBUG != 0'.
1201
bb10be54
AD
12022000-03-16 Akim Demaille <akim@epita.fr>
1203
1204 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1205 and related variables so that the similarities are highlighted.
1206
b07b484a
AD
12072000-03-16 Akim Demaille <akim@epita.fr>
1208
1209 * src/bison.s1: Properly indent CPP directives.
1210
361f60b3
AD
12112000-03-16 Akim Demaille <akim@epita.fr>
1212
1213 * src/bison.s1: Properly indent the `alloca' CPP section.
1214
8c44d3ec
AD
12152000-03-16 Akim Demaille <akim@epita.fr>
1216
1217 Do not hard code values of directories in `configure.in'.
1218 Update the `configure' tool chain.
1219
1220 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1221 src/makefile.am.
1222 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1223 (AC_OUTPUT): Add m4/Makefile.
1224 Bump to bison 1.28a, 1.29 has never been released.
1225 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1226 handled via src/Makefile.am.
1227 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1228 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1229 autoheader.
1230 * Makefile.am (SUBDIRS): Add m4.
1231 (ACLOCAL_AM_FLAGS): New variable.
1232 (AUTOMAKE_OPTIONS): Add check-news.
1233 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1234 the proper line number and file name.
1235 (DEFS): Propagate the location of bison library files and of the
1236 locale files.
1237 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1238 builddir.
1239 * acinclude.m4: Remove, replaced by the directory m4.
1240 * m4/Makefile.am (EXTRA_DIST): New variable.
1241 * m4/gettext.m4: New file, from the fileutils.
1242 * m4/lcmessage.m4: Likewise
1243 * m4/progtest.m4: Likewise.
1244 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1245
f95997e7
AD
12462000-03-10 Akim Demaille <akim@epita.fr>
1247
1248 * src/closure.c:
1249 Formatting changes of various comments.
1250 Respect the GNU coding standards at various places.
1251 Don't use `_()' when no translation is needed.
1252
12531999-12-13 Jesse Thilo <jthilo@gnu.org>
1254
1255 * src/files.c:
1256 OS/2 honors TMPDIR environment variable.
1257
12581999-12-13 Jesse Thilo <jthilo@gnu.org>
1259
1260 * doc/bison.texinfo: Tweaked spelling and grammar.
1261 Updated ISBN.
1262 Removed reference to price of printed copy.
1263 Mention BISON_SIMPLE and BISON_HAIRY.
1264
12651999-12-13 Jesse Thilo <jthilo@gnu.org>
1266
1267 * configure.in, NEWS:
1268 Bison 1.29 released.
1269
12701999-10-27 Jesse Thilo <jthilo@gnu.org>
1271
1272 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1273 Added reference card.
1274
12751999-07-26 Jesse Thilo <jthilo@gnu.org>
1276
1277 * po/ru.po: Added Russian translation.
1278
12791999-07-26 Jesse Thilo <jthilo@gnu.org>
1280
1281 * configure.in: Added Russian translation.
1282
12831999-07-06 Jesse Thilo <jthilo@gnu.org>
1284
1285 * configure.in, NEWS, README:
1286 Released version 1.28.
1287
12881999-06-14 Jesse Thilo <jthilo@gnu.org>
1289
1290 * src/system.h:
1291 Squashed redefinition warning on some systems.
1292
1293 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1294 Have configure build version string instead of relying on ANSI string
1295 concatentation.
1296
12971999-06-14 Jesse Thilo <jthilo@gnu.org>
1298
1299 * po/POTFILES.in: Got rid of version.c.
1300
13011999-06-14 Jesse Thilo <jthilo@gnu.org>
1302
1303 * acconfig.h, configure.in:
1304 Have configure build version string instead of relying on ANSI string
1305 concatentation.
1306
13071999-06-08 Jesse Thilo <jthilo@gnu.org>
1308
1309 * doc/bison.1:
1310 Dropped mention of `+' for long-named options.
1311
13121999-05-30 Jesse Thilo <jthilo@gnu.org>
1313
1314 * src/files.c: Added <unistd.h> for unlink().
1315
1316 * src/Makefile.am, src/system.h:
1317 I18n fixes.
1318
13191999-05-30 Jesse Thilo <jthilo@gnu.org>
1320
1321 * README: Added a FAQ list.
1322
1323 * configure.in, acconfig.h:
1324 I18n fixes.
1325
13261999-05-30 Jesse Thilo <jthilo@gnu.org>
1327
1328 * doc/FAQ, doc/Makefile.am:
1329 Added a FAQ list.
1330
13311999-05-19 Jesse Thilo <jthilo@gnu.org>
1332
1333 * src/alloc.h, src/symtab.h, src/version.c:
1334 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1335
13361999-04-18 Jesse Thilo <jthilo@gnu.org>
1337
1338 * src/.cvsignore, src/Makefile.am:
1339 Reorganized: sources in `src', documentation in `doc'.
1340
1341 * src/lex.c (literalchar):
1342 fixed the code for escaping double quotes (thanks
1343 Jonathan Czisny.)
1344
13451999-04-18 Jesse Thilo <jthilo@gnu.org>
1346
1347 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1348 Adjusted paths to reflect directory reorganization.
1349
13501999-04-18 Jesse Thilo <jthilo@gnu.org>
1351
1352 * doc/.cvsignore, doc/Makefile.am:
1353 Reorganized: sources in `src', documentation in `doc'.
1354
13551999-04-18 Jesse Thilo <jthilo@gnu.org>
1356
1357 * configure.in:
1358 Updated AC_INIT file to reflect directory reorganization.
1359
1360 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1361 Reorganized: sources in `src', documentation in `doc'.
1362
13631999-04-13 Jesse Thilo <jthilo@gnu.org>
1364
1365 * src/allocate.c:
1366 Don't declare calloc() and realloc() if not necessary.
1367
13681999-04-13 Jesse Thilo <jthilo@gnu.org>
1369
1370 * configure.in, acconfig.h, acinclude.m4:
1371 Don't declare calloc() and realloc() if not necessary.
1372
13731999-03-23 Jesse Thilo <jthilo@gnu.org>
1374
1375 * po/.cvsignore: Added i18n support.
1376
13771999-03-23 Jesse Thilo <jthilo@gnu.org>
1378
1379 * acconfig.h, configure.in, Makefile.am:
1380 Added i18n support.
1381
13821999-03-22 Jesse Thilo <jthilo@gnu.org>
1383
1384 * src/bison.s1: Fixed #line numbers.
1385
13861999-03-15 Jesse Thilo <jthilo@gnu.org>
1387
1388 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1389 Added PO files from Translation Project.
1390
13911999-03-03 Jesse Thilo <jthilo@gnu.org>
1392
1393 * Makefile.am:
1394 Added support for non-ANSI compilers (ansi2knr).
1395
13961999-02-16 Jesse Thilo <jthilo@gnu.org>
1397
1398 * configure.in: Bumped version number to 1.27.
1399
1400 * Makefile.am:
1401 Added `bison.simple' to list of files removed by `make distclean'.
1402
14031999-02-12 Jesse Thilo <jthilo@gnu.org>
1404
1405 * src/files.c, src/files.h:
1406 Defined locations of parser files in config.h instead of Makefile.
1407
14081999-02-12 Jesse Thilo <jthilo@gnu.org>
1409
1410 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1411 Defined locations of parser files in config.h instead of Makefile.
1412
14131999-02-09 Jesse Thilo <jthilo@gnu.org>
1414
1415 * Makefile.am:
1416 Removed inappropriate use of $< macro.
1417
14181999-02-05 Jesse Thilo <jthilo@gnu.org>
1419
1420 * po/Makefile.in.in, po/POTFILES.in:
1421 Add `po' directory skeleton.
1422
14231999-01-27 Jesse Thilo <jthilo@gnu.org>
1424
1425 * README: Document help-bison list.
1426
1427 * configure.in: Add check for mkstemp().
1428
14291999-01-20 Jesse Thilo <jthilo@gnu.org>
1430
1431 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1432 Hush a few compiler warnings.
1433
1434 * src/files.c:
1435 Add tryclose(), which verifies that fclose was successful.
1436 Hush a couple of compiler warnings.
1437
14381999-01-20 Jesse Thilo <jthilo@gnu.org>
1439
1440 * Makefile.am, OChangeLog:
1441 ChangeLog is now automatically generated. Include the old version as
1442 OChangeLog.
1443
14441999-01-14 Jesse Thilo <jthilo@gnu.org>
1445
1446 * 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:
1447 Update FSF address.
1448
14491999-01-14 Jesse Thilo <jthilo@gnu.org>
1450
1451 * doc/bison.texinfo: Fix formatting glitch.
1452
1453 * doc/bison.texinfo: Update FSF address.
1454
14551999-01-14 Jesse Thilo <jthilo@gnu.org>
1456
1457 * acconfig.h: Update FSF address.
1458
14591999-01-08 Jesse Thilo <jthilo@gnu.org>
1460
1461 * src/system.h:
1462 Don't define PACKAGE here, since config.h defines it.
1463
14641998-12-30 Jesse Thilo <jthilo@gnu.org>
1465
1466 * src/reader.c: Update copyright date.
1467
1468 * src/main.c:
1469 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1470 favor of output directly to stderr (avoids buffer overruns).
1471
1472 * src/reader.c: Some checks for premature EOF.
1473
1474 * 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:
1475 Use prototypes if the compiler understands them.
1476
1477 * src/files.c: Honor TMPDIR on Unix hosts.
1478 Use prototypes if the compiler understands them.
1479
1480 * src/reader.c:
1481 Fix a couple of buffer overrun bugs.
1482 Use prototypes if the compiler understands them.
1483
1484 * src/system.h: Include unistd.h and ctype.h.
1485 Use #ifdef instead of #if for NLS symbols.
1486
14871998-12-30 Jesse Thilo <jthilo@gnu.org>
1488
1489 * doc/bison.texinfo:
1490 Delete comment "consider using @set for edition number, etc..." since
1491 we now are doing so.
1492
14931998-12-30 Jesse Thilo <jthilo@gnu.org>
1494
1495 * configure.in:
1496 Use prototypes if the compiler understands them.
1497
1498 * NEWS: Document 1.26 highlights.
1499
1500 * Makefile.am: Require Automake 1.3 or later.
1501
1502 * acconfig.h:
1503 Use prototypes if the compiler understands them.
1504
15051998-12-29 Jesse Thilo <jthilo@gnu.org>
1506
1507 * src/version.c:
1508 Use VERSION symbol from automake for version number.
1509
15101998-12-29 Jesse Thilo <jthilo@gnu.org>
1511
1512 * acconfig.h, configure.in, version.cin:
1513 Use VERSION symbol from automake for version number.
1514
15151998-11-28 Jesse Thilo <jthilo@gnu.org>
1516
1517 * Makefile.am:
1518 Distribute original version of simple parser (bison.s1), not built
1519 version (bison.simple).
1520
15211998-11-28 Jesse Thilo <jthilo@gnu.org>
1522
1523 * doc/bison.texinfo: Add info dir entry.
1524
1525 * doc/bison.texinfo:
1526 Let automake put version number into documentation.
1527
15281998-11-26 Jesse Thilo <jthilo@gnu.org>
1529
1530 * src/bison.cld, src/build.com, src/vmshlp.mar:
1531 Add non-RCS files from /gd/gnu/bison.
1532
15331998-11-26 Jesse Thilo <jthilo@gnu.org>
1534
1535 * doc/bison.1:
1536 Document the BISON_HAIRY and BISON_SIMPLE variables.
1537
15381998-11-25 Jesse Thilo <jthilo@gnu.org>
1539
1540 * src/version.c: Build version.c automatically.
1541
1542 * src/reader.c:
1543 Fix token numbering (used to start at 258, not 257).
1544
1545 * src/system.h: Include config.h.
1546
1547 * src/getargs.c: Update bug report address.
1548
1549 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1550 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1551
15521998-11-25 Jesse Thilo <jthilo@gnu.org>
1553
1554 * Makefile.am:
1555 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1556
1557 * configure.in, version.cin:
1558 Build version.c automatically.
1559
1560 * AUTHORS: Add AUTHORS file.
1561
1562 * README: Update bug report address.
1563
1564 * bison.simple:
1565 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1566
1567 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1568 Add automake stuff.
1569
15701998-11-25 Jesse Thilo <jthilo@gnu.org>
1571
1572 * doc/bison.texinfo: Clean up some formatting.
1573
15741998-05-05 Richard Stallman <rms@gnu.org>
1575
1576 * doc/bison.texinfo:
1577 Explain better why to make a pure parser.
1578
15791998-01-05 Richard Stallman <rms@gnu.org>
1580
1581 * src/files.c (openfiles):
1582 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1583 find a temporary directory, if possible. Do not unlink files while
1584 they are open.
1585
15861997-08-25 Richard Stallman <rms@gnu.org>
1587
1588 * src/reader.c (stack_offset;):
1589 Change some warni to warns.
1590
1591 * src/lex.c (literalchar): Use warns, not warni.
1592
15931997-06-28 Richard Stallman <rms@gnu.org>
1594
1595 * src/bison.s1: Add a Bison version comment.
1596
1597 * src/main.c (fatal, warn, berror):
1598 Use program_name.
1599
16001997-06-28 Richard Stallman <rms@gnu.org>
1601
1602 * Makefile.in (bison_version): New variable.
1603 (dist): Use that variable.
1604 (bison.s1): Substitute the Bison version into bison.simple.
1605
1606 * bison.simple: Add a Bison version comment.
1607
16081997-06-18 Richard Stallman <rms@gnu.org>
1609
1610 * src/main.c (fatal, warn, berror):
1611 Make error messages standard.
1612 (toomany): Improve error message text.
1613
1614 * 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:
1615 new.h renamed to alloc.h.
1616
16171997-06-18 Richard Stallman <rms@gnu.org>
1618
1619 * Makefile.in: new.h renamed to alloc.h.
1620
16211997-05-24 Richard Stallman <rms@gnu.org>
1622
1623 * src/lex.c (literalchar):
1624 Fix the code for escaping \, " and '.
1625
1626 (lex): Avoid trouble when there are many chars
1627 to discard in a char literal with just several chars in it.
1628
16291997-05-17 Richard Stallman <rms@gnu.org>
1630
1631 * src/bison.s1:
1632 Use malloc, if using alloca is troublesome.
1633 (YYSTACK_USE_ALLOCA): New flag macro.
1634 Define it for some systems and compilers.
1635 (YYSTACK_ALLOC): New macro.
1636 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1637 If it was malloc'd, free it.
1638
16391997-05-17 Richard Stallman <rms@gnu.org>
1640
1641 * bison.simple:
1642 Use malloc, if using alloca is troublesome.
1643 (YYSTACK_USE_ALLOCA): New flag macro.
1644 Define it for some systems and compilers.
1645 (YYSTACK_ALLOC): New macro.
1646 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1647 If it was malloc'd, free it.
1648
16491997-04-23 Richard Stallman <rms@gnu.org>
1650
1651 * src/bison.s1:
1652 (alloca) [__hpux]: Always define as __builtin_alloca.
1653
16541997-04-23 Richard Stallman <rms@gnu.org>
1655
1656 * bison.simple:
1657 (alloca) [__hpux]: Always define as __builtin_alloca.
1658
16591997-04-22 Richard Stallman <rms@gnu.org>
1660
1661 * src/bison.s1:
1662 [__hpux]: Include alloca.h (right for HPUX 10)
1663 instead of declaring alloca (right for HPUX 9).
1664
1665 * src/bison.s1 (__yy_memcpy):
1666 Declare arg `count' as unsigned int.
1667 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1668
16691997-04-22 Richard Stallman <rms@gnu.org>
1670
1671 * bison.simple:
1672 [__hpux]: Include alloca.h (right for HPUX 10)
1673 instead of declaring alloca (right for HPUX 9).
1674
1675 * bison.simple (__yy_memcpy):
1676 Declare arg `count' as unsigned int.
1677 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1678
16791997-01-03 Richard Stallman <rms@gnu.org>
1680
1681 * src/allocate.c: [__STDC__ or _MSC_VER]:
1682 Declare calloc and realloc to return void *.
1683
16841997-01-02 Richard Stallman <rms@gnu.org>
1685
1686 * src/system.h:
1687 [_MSC_VER]: Include stdlib.h and process.h.
1688 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1689
1690 * src/main.c (main): Return FAILURE as a value.
1691 (printable_version): Declare arg as int, not char.
1692
16931997-01-02 Richard Stallman <rms@gnu.org>
1694
1695 * Makefile.in (dist):
1696 Explicitly check for symlinks, and copy them.
1697
16981996-12-19 Richard Stallman <rms@gnu.org>
1699
1700 * src/files.c:
1701 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1702
17031996-12-18 Paul Eggert <eggert@gnu.org>
1704
1705 * src/bison.s1 (yyparse):
1706 If __GNUC__ and YYPARSE_PARAM are both defined,
1707 declare yyparse to have a void * argument.
1708
17091996-12-18 Paul Eggert <eggert@gnu.org>
1710
1711 * bison.simple (yyparse):
1712 If __GNUC__ and YYPARSE_PARAM are both defined,
1713 declare yyparse to have a void * argument.
1714
17151996-12-17 Richard Stallman <rms@gnu.org>
1716
1717 * src/reduce.c (nbits): Add some casts.
1718
17191996-08-12 Richard Stallman <rms@gnu.org>
1720
1721 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1722
17231996-08-12 Richard Stallman <rms@gnu.org>
1724
1725 * bison.simple: Test _MSDOS as well as _MSDOS_.
1726
17271996-07-31 Richard Stallman <rms@gnu.org>
1728
1729 * src/bison.s1:
1730 [__sun && __i386]: Include alloca.h.
1731
17321996-07-31 Richard Stallman <rms@gnu.org>
1733
1734 * bison.simple:
1735 [__sun && __i386]: Include alloca.h.
1736
17371996-07-30 Richard Stallman <rms@gnu.org>
1738
1739 * src/bison.s1: Comment change.
1740
1741 * src/bison.s1: Test _MSDOS_, not MSDOS.
1742
17431996-07-30 Richard Stallman <rms@gnu.org>
1744
1745 * bison.simple: Comment change.
1746
1747 * bison.simple: Test _MSDOS_, not MSDOS.
1748
17491996-06-01 Richard Stallman <rms@gnu.org>
1750
1751 * 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:
1752 Insert `_' macro around many string constants.
1753
1754 * src/main.c:
1755 Insert `_' macro around many string constants.
1756
1757 (main): Call setlocale, bindtextdomain and textdomain.
1758
1759 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1760 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1761 [ENABLE_NLS]: Include libintl.h.
1762 [ENABLE_NLS] (gettext): Define.
1763 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1764 (N_, PACKAGE, LOCALEDIR): New macros.
1765
17661996-06-01 Richard Stallman <rms@gnu.org>
1767
1768 * POTFILES.in: New file.
1769
1770 * Makefile.in (allocate.o):
1771 Define target explicitly.
1772
1773 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1774 (LDFLAGS): Set to @LDFLAGS@.
1775 (configure): Run autoconf only if preceding `cd' succeeds.
1776 (bison.s1): Redirect output to temporary file then move the
1777 temporary to the target, rather than redirecting directly to bison.s1.
1778 (clean): Remove config.status and config.log.
1779 (distclean): Don't remove config.status here.
1780
17811996-05-12 Richard Stallman <rms@gnu.org>
1782
1783 * src/bison.s1:
1784 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1785
17861996-05-12 Richard Stallman <rms@gnu.org>
1787
1788 * bison.simple:
1789 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1790
17911996-05-11 Richard Stallman <rms@gnu.org>
1792
1793 * src/bison.s1 (__yy_memcpy):
1794 Really reorder the args, as was supposedly done on Feb 14 1995.
1795 (yyparse): Calls changed accordingly.
1796
17971996-05-11 Richard Stallman <rms@gnu.org>
1798
1799 * Makefile.in (dist): Don't use $(srcdir).
1800
1801 * bison.simple (__yy_memcpy):
1802 Really reorder the args, as was supposedly done on Feb 14 1995.
1803 (yyparse): Calls changed accordingly.
1804
18051996-01-27 Richard Stallman <rms@gnu.org>
1806
1807 * src/output.c (output_rule_data):
1808 Test YYERROR_VERBOSE in the conditional
1809 around the definition of ttyname.
1810
18111995-12-29 Richard Stallman <rms@gnu.org>
1812
1813 * src/bison.s1:
1814 Fix line numbers in #line commands.
1815
18161995-12-29 Richard Stallman <rms@gnu.org>
1817
1818 * bison.simple:
1819 Fix line numbers in #line commands.
1820
18211995-12-27 Richard Stallman <rms@gnu.org>
1822
1823 * src/bison.s1 (YYPARSE_PARAM_DECL):
1824 In C++, make it always null.
1825 (YYPARSE_PARAM_ARG): New macro.
1826 (yyparse): Use YYPARSE_PARAM_ARG.
1827
18281995-12-27 Richard Stallman <rms@gnu.org>
1829
1830 * bison.simple (YYPARSE_PARAM_DECL):
1831 In C++, make it always null.
1832 (YYPARSE_PARAM_ARG): New macro.
1833 (yyparse): Use YYPARSE_PARAM_ARG.
1834
18351995-11-29 Richard Stallman <rms@gnu.org>
1836
1837 * doc/bison.texinfo:
1838 Describe literal string tokens, %raw, %no_lines, %token_table.
1839
18401995-11-29 Daniel Hagerty <hag@gnu.org>
1841
1842 * doc/bison.texinfo: Fixed update date
1843
18441995-10-16 Richard Stallman <rms@gnu.org>
1845
1846 * src/version.c: Version 1.25.
1847
18481995-10-16 Richard Stallman <rms@gnu.org>
1849
1850 * NEWS: *** empty log message ***
1851
18521995-10-16 Richard Stallman <rms@gnu.org>
1853
1854 * doc/bison.1, doc/bison.rnh:
1855 Add new options.
1856
18571995-10-15 Richard Stallman <rms@gnu.org>
1858
1859 * src/vmsgetargs.c, src/getargs.c:
1860 Added -n, -k, and -raw switches.
1861 (noparserflag, toknumflag, rawtoknumflag): New variables.
1862
1863 * src/symtab.h (SALIAS):
1864 New #define for adding aliases to %token.
1865 (struct bucket): Added `alias' field.
1866
1867 * src/reduce.c (reduce_grammar):
1868 Revise error message.
1869 (print_notices): Remove final `.' from error message.
1870
1871 * src/reader.c (reader_output_yylsp):
1872 New function.
1873 (readgram): Use `#if 0' around code that accepted %command
1874 inside grammar rules: The documentation doesn't allow it,
1875 and it will fail since the %command processors scan for the next %.
1876 (parse_token_decl): Extended the %token
1877 declaration to allow a multi-character symbol as an alias.
1878 (parse_thong_decl): New function.
1879 (read_declarations): Added %thong declarations.
1880 (read_declarations): Handle NOOP to deal with allowing
1881 % declarations as another means to specify the flags.
1882 (readgram): Allow %prec prior to semantics embedded in a rule.
1883 (skip_to_char, read_declarations, copy_definition)
1884 (parse_token_decl, parse_start_decl, parse_type_decl)
1885 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1886 (get_type_name, copy_guard, copy_action, readgram)
1887 (get_type, packsymbols): Revised most error messages.
1888 Changed `fatal' to `warnxxx' to avoid aborting for error.
1889 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1890 (read_declarations): Improve the error message for
1891 an invalid character. Do not abort.
1892 (read_declarations, copy_guard, copy_action): Use
1893 printable_version to avoid unprintable characters in printed output.
1894 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1895 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1896 Allow the type of a non-terminal can be given
1897 more than once, as long as all specifications give the same type.
1898
1899 * src/output.c:
1900 (output_headers, output_trailers, output, output_gram)
1901 (output_rule_data): Implement noparserflag variable.
1902 Implement toknumflag variable.
1903 (output): Call reader_output_yylsp to output LTYPESTR.
1904
1905 * src/main.c (main):
1906 If reader sees an error, don't process the grammar.
1907 (fatals): Updated to not use VARARGS1.
1908 (printable_version, int_to_string, warn, warni, warns, warnss)
1909 (warnsss): New error reporting functions. Avoid abort for error.
1910
1911 * src/lex.h:
1912 Added THONG and NOOP for alias processing.
1913 Added SETOPT for the new code that allows setting options with %flags.
1914
1915 * src/lex.c:
1916 Include getopt.h. Add some extern decls.
1917 (safegetc): New function to deal with EOF gracefully.
1918 (literalchar); new function to deal with reading \ escapes.
1919 (lex): Use literalchar.
1920 (lex): Implemented "..." tokens.
1921 (literalchar, lex, parse_percent_token): Made tokenbuffer
1922 always contain the token. This includes growing the token
1923 buffer while reading an integer.
1924 (parse_percent_token): Replaced if-else statement with percent_table.
1925 (parse_percent_token): Added % declarations as another
1926 way to specify the flags -n, -l, and -r. Also added hooks for
1927 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1928 major changes to files.c.
1929 (lex) Retain in the incoming stream a character following
1930 an incorrect '/'.
1931 (skip_white_space, lex): Revised most error messages
1932 and changed fatal to warn to avoid aborting.
1933 (percent_table): Added %thong declarations.
1934
1935 * src/gram.h: Comment changes.
1936
1937 * src/files.c (openfiles, open_extra_files, done):
1938 Add faction flag
1939 and actfile file. Handle noparserflag. Both for -n switch.
1940
1941 * src/conflicts.c (resolve_sr_conflict):
1942 Remove use of alloca.
1943
19441995-06-01 Jim Meyering <meyering@gnu.org>
1945
1946 * doc/bison.texinfo: *** empty log message ***
1947
19481995-05-06 Richard Stallman <rms@gnu.org>
1949
1950 * src/bison.s1: Comment change.
1951
19521995-05-06 Richard Stallman <rms@gnu.org>
1953
1954 * bison.simple: Comment change.
1955
19561995-05-03 Richard Stallman <rms@gnu.org>
1957
1958 * src/version.c: Version now 1.24.
1959
1960 * src/bison.s1: Change distribution terms.
1961
1962 * src/version.c: Version now 1.23.
1963
19641995-05-03 Richard Stallman <rms@gnu.org>
1965
1966 * doc/bison.texinfo:
1967 Rewrite "Conditions for Using Bison".
1968 Update version to 1.24.
1969
19701995-05-03 Richard Stallman <rms@gnu.org>
1971
1972 * bison.simple: Change distribution terms.
1973
19741995-02-23 Richard Stallman <rms@gnu.org>
1975
1976 * src/files.c: Test __VMS_POSIX as well as VMS.
1977
19781995-02-14 Jim Meyering <meyering@gnu.org>
1979
1980 * src/bison.s1 (__yy_memcpy):
1981 Renamed from __yy_bcopy to avoid
1982 confusion. Reverse FROM and TO arguments to be consistent with
1983 those of memcpy.
1984
19851995-02-14 Jim Meyering <meyering@gnu.org>
1986
1987 * bison.simple (__yy_memcpy):
1988 Renamed from __yy_bcopy to avoid
1989 confusion. Reverse FROM and TO arguments to be consistent with
1990 those of memcpy.
1991
19921994-11-10 David J. MacKenzie <djm@gnu.org>
1993
1994 * NEWS: reformat
1995
1996 * NEWS: New file.
1997
1998 * Makefile.in (DISTFILES): Include NEWS.
1999
2000 * Makefile.in (DISTFILES):
2001 Include install-sh, not install.sh.
2002
2003 * configure.in: Update to Autoconf v2 macro names.
2004
20051994-10-05 David J. MacKenzie <djm@gnu.org>
2006
2007 * Makefile.in: fix typo
2008
2009 * Makefile.in (prefix, exec_prefix):
2010 Let configure set them.
2011
20121994-09-28 David J. MacKenzie <djm@gnu.org>
2013
2014 * Makefile.in: Set datadir to $(prefix)/share.
2015
20161994-09-15 Richard Stallman <rms@gnu.org>
2017
2018 * src/bison.s1:
2019 Update copyright notice and GPL version.
2020
20211994-09-15 Richard Stallman <rms@gnu.org>
2022
2023 * bison.simple:
2024 Update copyright notice and GPL version.
2025
20261994-07-12 Richard Stallman <rms@gnu.org>
2027
2028 * src/reduce.c, src/reader.c:
2029 entered into RCS
2030
20311994-05-05 David J. MacKenzie <djm@gnu.org>
2032
2033 * Makefile.in: entered into RCS
2034
20351994-03-26 Richard Stallman <rms@gnu.org>
2036
2037 * src/bison.s1: entered into RCS
2038
20391994-03-26 Richard Stallman <rms@gnu.org>
2040
2041 * bison.simple: entered into RCS
2042
20431994-03-25 Richard Stallman <rms@gnu.org>
2044
2045 * src/main.c: entered into RCS
2046
20471994-03-24 Richard Stallman <rms@gnu.org>
2048
2049 * src/conflicts.c: entered into RCS
2050
20511994-01-02 Richard Stallman <rms@gnu.org>
2052
2053 * Makefile.in: *** empty log message ***
2054
20551993-11-21 Richard Stallman <rms@gnu.org>
2056
2057 * src/bison.s1: *** empty log message ***
2058
20591993-11-21 Richard Stallman <rms@gnu.org>
2060
2061 * doc/bison.texinfo: entered into RCS
2062
2063 * doc/bison.texinfo: *** empty log message ***
2064
20651993-11-21 Richard Stallman <rms@gnu.org>
2066
2067 * bison.simple: *** empty log message ***
2068
20691993-10-25 David J. MacKenzie <djm@gnu.org>
2070
2071 * doc/bison.texinfo: *** empty log message ***
2072
20731993-10-19 Richard Stallman <rms@gnu.org>
2074
2075 * src/bison.s1: *** empty log message ***
2076
20771993-10-19 Richard Stallman <rms@gnu.org>
2078
2079 * bison.simple: *** empty log message ***
2080
20811993-10-14 Richard Stallman <rms@gnu.org>
2082
2083 * src/bison.s1: *** empty log message ***
2084
20851993-10-14 Richard Stallman <rms@gnu.org>
2086
2087 * bison.simple: *** empty log message ***
2088
20891993-09-14 David J. MacKenzie <djm@gnu.org>
2090
2091 * doc/bison.texinfo: *** empty log message ***
2092
20931993-09-13 Noah Friedman <friedman@gnu.org>
2094
2095 * Makefile.in: *** empty log message ***
2096
20971993-09-10 Richard Stallman <rms@gnu.org>
2098
2099 * src/conflicts.c: *** empty log message ***
2100
2101 * src/system.h: entered into RCS
2102
21031993-09-10 Richard Stallman <rms@gnu.org>
2104
2105 * doc/bison.1: entered into RCS
2106
21071993-09-06 Noah Friedman <friedman@gnu.org>
2108
2109 * src/version.c: entered into RCS
2110
21111993-09-06 Noah Friedman <friedman@gnu.org>
2112
2113 * Makefile.in: *** empty log message ***
2114
21151993-07-30 David J. MacKenzie <djm@gnu.org>
2116
2117 * Makefile.in: *** empty log message ***
2118
21191993-07-24 Richard Stallman <rms@gnu.org>
2120
2121 * src/bison.s1: *** empty log message ***
2122
21231993-07-24 Richard Stallman <rms@gnu.org>
2124
2125 * bison.simple: *** empty log message ***
2126
21271993-07-08 David J. MacKenzie <djm@gnu.org>
2128
2129 * Makefile.in: *** empty log message ***
2130
21311993-07-04 Richard Stallman <rms@gnu.org>
2132
2133 * src/bison.s1: *** empty log message ***
2134
21351993-07-04 Richard Stallman <rms@gnu.org>
2136
2137 * bison.simple: *** empty log message ***
2138
21391993-06-26 David J. MacKenzie <djm@gnu.org>
2140
2141 * src/getargs.c: entered into RCS
2142
21431993-06-26 David J. MacKenzie <djm@gnu.org>
2144
2145 * doc/bison.texinfo: *** empty log message ***
2146
2147 * doc/bison.1: New file.
2148
21491993-06-25 Richard Stallman <rms@gnu.org>
2150
2151 * src/getargs.c: New file.
2152
21531993-06-16 Richard Stallman <rms@gnu.org>
2154
2155 * src/bison.s1: *** empty log message ***
2156
21571993-06-16 Richard Stallman <rms@gnu.org>
2158
2159 * bison.simple: *** empty log message ***
2160
21611993-06-03 Richard Stallman <rms@gnu.org>
2162
2163 * src/bison.s1: New file.
2164
21651993-06-03 Richard Stallman <rms@gnu.org>
2166
2167 * doc/bison.texinfo: *** empty log message ***
2168
21691993-06-03 Richard Stallman <rms@gnu.org>
2170
2171 * bison.simple: New file.
2172
21731993-05-19 Richard Stallman <rms@gnu.org>
2174
2175 * doc/bison.texinfo: New file.
2176
21771993-05-07 Noah Friedman <friedman@gnu.org>
2178
2179 * Makefile.in: *** empty log message ***
2180
21811993-04-28 Noah Friedman <friedman@gnu.org>
2182
2183 * src/reader.c: *** empty log message ***
2184
21851993-04-23 Noah Friedman <friedman@gnu.org>
2186
2187 * src/alloc.h: entered into RCS
2188
21891993-04-20 David J. MacKenzie <djm@gnu.org>
2190
2191 * src/version.c: *** empty log message ***
2192
2193 * src/files.c, src/allocate.c:
2194 entered into RCS
2195
2196 * src/reader.c: *** empty log message ***
2197
2198 * src/lex.c: entered into RCS
2199
2200 * src/conflicts.c: New file.
2201
2202 * src/symtab.c: entered into RCS
2203
2204 * src/alloc.h: New file.
2205
2206 * src/LR0.c: entered into RCS
2207
22081993-04-18 Noah Friedman <friedman@gnu.org>
2209
2210 * src/reader.c: New file.
2211
2212 * src/version.c: *** empty log message ***
2213
22141993-04-18 Noah Friedman <friedman@gnu.org>
2215
2216 * Makefile.in: *** empty log message ***
2217
22181993-04-17 Noah Friedman <friedman@gnu.org>
2219
2220 * Makefile.in: *** empty log message ***
2221
22221993-04-15 Richard Stallman <rms@gnu.org>
2223
2224 * src/main.c, src/files.c:
2225 New file.
2226
22271993-04-15 Noah Friedman <friedman@gnu.org>
2228
2229 * configure.in: entered into RCS
2230
2231 * configure.in: *** empty log message ***
2232
2233 * configure.in: New file.
2234
22351993-04-14 Richard Stallman <rms@gnu.org>
2236
2237 * Makefile.in: New file.
2238
22391993-04-13 Richard Stallman <rms@gnu.org>
2240
2241 * src/version.c: New file.
2242
22431993-03-25 Richard Stallman <rms@gnu.org>
2244
2245 * src/output.c: entered into RCS
2246
22471992-09-25 Richard Stallman <rms@gnu.org>
2248
2249 * configure.bat: entered into RCS
2250
22511992-06-22 Richard Stallman <rms@gnu.org>
2252
2253 * src/vmsgetargs.c: entered into RCS
2254
22551992-06-22 Richard Stallman <rms@gnu.org>
2256
2257 * doc/bison.rnh: entered into RCS
2258
22591992-04-20 David J. MacKenzie <djm@gnu.org>
2260
2261 * README: entered into RCS
2262
22631992-01-22 Richard Stallman <rms@gnu.org>
2264
2265 * src/machine.h: entered into RCS
2266
22671991-12-21 Richard Stallman <rms@gnu.org>
2268
2269 * src/lalr.c, src/closure.c:
2270 entered into RCS
2271
22721991-12-20 Richard Stallman <rms@gnu.org>
2273
2274 * src/state.h: entered into RCS
2275
22761991-12-18 Richard Stallman <rms@gnu.org>
2277
2278 * src/print.c, src/nullable.c, src/derives.c:
2279 entered into RCS
2280
22811991-11-03 David J. MacKenzie <djm@gnu.org>
2282
2283 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2284 entered into RCS
2285
22861988-09-09 Richard Stallman <rms@gnu.org>
2287
2288 * src/bison.hairy: entered into RCS
2289
22901987-12-16 Richard Stallman <rms@gnu.org>
2291
2292 * REFERENCES: entered into RCS