]> git.saurik.com Git - bison.git/blame - ChangeLog
More cvsignore.
[bison.git] / ChangeLog
CommitLineData
0b8afb77
AD
12001-08-15 Marc Autret <prog@epita.fr>
2
3 * src/reader.c (readgram): Indent output macro YYSTYPE.
4 (packsymbols): Likewise.
5 (output_token_defines): Likewise.
6 * src/files.c: Standardize.
7 (compute_header_macro): New.
8 (defines_obstack_save): New. Use compute_header_macro.
9 (output_files): Update. Use defines_obstack_save.
10
f9a8293a
AD
112001-08-15 Akim Demaille <akim@epita.fr>
12
13 * doc/bison.texinfo (Table of Symbols): Document
14 YYSTACK_USE_ALLOCA.
15
150ca7a7
AD
162001-08-15 Akim Demaille <akim@epita.fr>
17
18 * missing: Update from CVS Automake.
19 * config/config.guess, config/config.sub, config/texinfo.tex:
20 Update from gnu.org.
21
69b5cec4
AD
222001-08-15 Akim Demaille <akim@epita.fr>
23
24 * Makefile.maint: Sync with CVS Autoconf.
25
f2b5126e
PB
262001-08-14 Pascal Bart <pascal.bart@epita.fr>
27
69b5cec4 28 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
29 `fdl.texi'.
30 * doc/fdl.texi: Add to package.
31
4ecbf796
MA
322001-08-14 Marc Autret <autret_m@epita.fr>
33
34 Turn on %{source,header}_extension features.
35
69b5cec4 36 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
37 source_extension.
38 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 39 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
40 between options.
41
95fb5662
MA
422001-08-14 Marc Autret <autret_m@epita.fr>
43
44 * src/files.c (compute_base_names): Add extensions computing when
45 `--file-prefix' used.
46 Standardize function calls.
47
78d09da9
MA
482001-08-13 Marc Autret <autret_m@epita.fr>
49
69b5cec4 50 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
51 defining it (defined but null disables alloca).
52
5a009f2c
MA
532001-08-13 Marc Autret <autret_m@epita.fr>
54
55 * src/bison.simple (_yy_memcpy): CPP reformat.
56
1e41465a
PB
572001-08-13 Pascal Bart <pascal.bart@epita.fr>
58
59 * tests/atconfig.in (CPPFLAGS): Fix.
60
c67a198d
PB
612001-08-10 Pascal Bart <pascal.bart@epita.fr>
62
79282c6c 63 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
64 `gpl.texi'.
65 * doc/gpl.texi: Add to package.
66
09a6de7e
MA
672001-08-10 Marc Autret <autret_m@epita.fr>
68
69 * src/print_graph.h: Fix.
70 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
71
b77b9ee0
AD
722001-08-10 Akim Demaille <akim@epita.fr>
73
74 * src/system.h: Provide default declarations for stpcpy, strndup,
75 and strnlen.
76
3e259915
MA
772001-08-10 Robert Anisko <anisko_r@epita.fr>
78
79 * doc/bison.texinfo (Locations): Update @$ stuff.
80
ca96bc2d
MA
812001-08-09 Robert Anisko <anisko_r@epita.fr>
82
83 * src/bison.simple (YYLLOC_DEFAULT): Update.
84 (yyparse): Adjust.
85
fdc6758b
MA
862001-08-08 Marc Autret <autret_m@epita.fr>
87
b77b9ee0 88 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
89 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
90 Reported by Fabrice Bauzac.
957d4dbf 91
600cad3b
MA
922001-08-08 Marc Autret <autret_m@epita.fr>
93
94 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
95 * src/vcg.c (output_node): Fix.
96 * src/vcg.h: Cleanup.
97 * src/print_graph.c: Add comments.
b77b9ee0 98 (node_output_size): New global variable. Simplify the formatting of
600cad3b 99 the VCG graph output.
b77b9ee0 100 (print_actions): Unused code is now used. It notifies the final state
600cad3b 101 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 102 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
103 blue.
104 Get the current node name and node_obstack by argument.
105 (node_obstack): New variable.
106 (print_state): Manage node_obstack.
107 (print_core): Use node_obstack given by argument.
108 A node is not only computed here but in print_actions also.
109 (print_graph): CPP out useless code instead of commenting it.
110
976e528f
AD
1112001-08-07 Pascal Bart <pascal.bart@epita.fr>
112
113 * tests/atconfig.in (CPPFLAGS): Fix.
114
20e8e5ca
AD
1152001-08-07 Akim Demaille <akim@epita.fr>
116
117 * src/print_graph.c (quote): New.
118 (print_core): Use it.
119
957d4dbf 1202001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 121
3e3da797
AD
122 * src/vcg.c (complain.h): Include it.
123 Unepitaize `return' invocations.
c4b66126 124 [NDEBUG] (main): Remove.
79282c6c 125 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
126 * src/files.c (open_files): Initialize graph_obstack.
127 * src/print_graph.c (print_actions): CPP out useless code.
128 (print_core): Don't output the last `\n' in labels.
129 Use `quote'.
130 * src/files.c (output_files): Output the VCG file.
131 * src/main.c (main): Invoke print_graph ();
3e3da797 132
957d4dbf 1332001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
134
135 Automaton VCG graph output.
136 Using option ``-g'' or long option ``--graph'', you can generate
137 a gram_filename.vcg file containing a VCG description of the LALR (1)
138 automaton of your grammar.
139
140 * src/main.c: Call to print_graph() function.
141 * src/getargs.h: Update.
142 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
143 (graph_flag): New flag.
144 (longopts): Update.
145 (getargs): Add case `g'.
146 * src/files.c (graph_obstack): New obstack struct.
147 (open_files): Initialize new obstack.
148 (output_files): Saves graph_obstack if required.
149 * src/files.h (graph_obstack): New extern declaration.
150 * src/Makefile.am: Add new source files.
151
957d4dbf 1522001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
153
154 * src/print_graph.c, src/print_graph.h (graph): New.
155 * src/vcg.h: New file.
156 * src/vcg.c: New file, VCG graph handling.
157
7333d403
AD
1582001-08-06 Marc Autret <autret_m@epita.fr>
159
160 Add of %source_extension and %header_extension which specify
161 the source or/and the header output file extension.
162
163 * src/files.c (compute_base_names): Remove initialisation of
164 src_extension and header_extension.
165 (compute_exts_from_gf): Update.
166 (compute_exts_from_src): Update.
167 (output_files): Update.
168 * src/reader.c (parse_header_extension_decl): New.
169 (parse_source_extension_decl): New.
170 (read_declarations): New case statements for the new tokens.
171 * src/lex.c (percent_table): Add entries for %source_extension
172 and %header_extension.
173 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
174
84163231
AD
1752001-08-06 Marc Autret <autret_m@epita.fr>
176
177 * configure.in: Bump to 1.28c.
178 * doc/bison.texinfo: Texinfo thingies.
179
8303fc42
AD
1802001-08-04 Pascal Bart <pascal.bart@epita.fr>
181
182 * tests/atconfig.in (CPPFLAGS): Add.
183 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
184
70a84437
AD
1852001-08-03 Akim Demaille <akim@epita.fr>
186
187 Version 1.28b.
188
2ce10144
AD
1892001-08-03 Akim Demaille <akim@epita.fr>
190
191 * tests/Makefile.am (check-local): Ship testsuite.
192 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
193 Include `string.h'.
194
1e3e4bc1
AD
1952001-08-03 Akim Demaille <akim@epita.fr>
196
197 * configure.in: Try using -Wformat when compiling.
198
42b45b7f
AD
1992001-08-03 Akim Demaille <akim@epita.fr>
200
201 * configure.in: Bump to 1.28b.
202
8f13fe33
AD
2032001-08-03 Akim Demaille <akim@epita.fr>
204
205 * src/complain.c: Adjust strerror_r portability issues.
206
b37ba92c
AD
2072001-08-03 Akim Demaille <akim@epita.fr>
208
209 Version 1.28a.
210
b0ce6046
AD
2112001-08-03 Akim Demaille <akim@epita.fr>
212
213 * src/getargs.c, src/getarg.h (skeleton)): Constify.
214 * src/lex.c (literalchar): Avoid name clashes on `buf'.
215 * src/getargs.c: Include complain.h.
216 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
217 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
218
d01c415b
AD
2192001-08-03 Akim Demaille <akim@epita.fr>
220
221 * src/reader.c (readgram): Display hidden chars in error messages.
222
459dd1a6
AD
2232001-08-03 Akim Demaille <akim@epita.fr>
224
225 Update to gettext 0.10.39.
226
53b74c0c
AD
2272001-08-03 Akim Demaille <akim@epita.fr>
228
229 * lib/strspn.c: New.
230
234a3be3
AD
2312001-08-01 Marc Autret <autret_m@epita.fr>
232
233 * doc/bison.texinfo: Update.
234 * doc/bison.1 (mandoc): Update.
235 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
236 * src/files.c: Support output files extensions computing.
237 (src_extension): New static variable.
238 (header_extension): New static variable.
239 (tr): New function.
240 (get_extension_index): New function, gets the index of an extension
241 filename in a string.
242 (compute_exts_from_gf): New function, computes extensions from the
243 grammar file extension.
244 (compute_exts_from_src): New functions, computes extensions from the
245 C source file extension, file given by ``-o'' option.
246 (compute_base_names): Update.
247 (output_files): Update.
248
847bf1f5
AD
2492001-08-01 Robert Anisko <anisko_r@epita.fr>
250
d995fee7 251 * doc/bison.texi: Document @$.
847bf1f5
AD
252 (Locations): New section.
253
d074a105
AD
2542001-07-18 Akim Demaille <akim@epita.fr>
255
256 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
257 * config/prev-version.txt, config/move-if-change: New.
258 * Makefile.am: Adjust.
259
3419715d
AD
2602001-07-08 Pascal Bart <pascal.bart@epita.fr>
261
262 * src/bison.simple (yyparse): Suppress warning `comparaison
263 between signed and unsigned'.
264
62ab6972
AD
2652001-07-05 Pascal Bart <pascal.bart@epita.fr>
266
267 * src/getargs.h (raw_flag): Remove.
268 * src/getargs.c: Die on `-r'/`--raw'.
269 * src/lex.c (parse_percent_token): Die on `%raw'.
270 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
271 * tests/calc.at: Suppress test with option `--raw'.
272
1e24cc5b
AD
2732001-07-14 Akim Demaille <akim@epita.fr>
274
275 * config/: New.
276 * configure.in: Require Autoconf 2.50.
277 Update to gettext 0.10.38.
278
32dfccf8
AD
2792001-03-16 Akim Demaille <akim@epita.fr>
280
281 * doc/bison.texinfo: ANSIfy the examples.
282
cd5bd6ac
AD
2832001-03-16 Akim Demaille <akim@epita.fr>
284
285 * getargs.c (skeleton): New variable.
286 (longopts): --skeleton is a new option.
287 (shortopts, getargs): -S is a new option.
288 * getargs.h: Declare skeleton.
289 * output.c (output_parser): Use it.
290
5141b016
AD
2912001-03-16 Akim Demaille <akim@epita.fr>
292
293 * m4/strerror_r.m4: New.
294 * m4/error.m4: Run AC_FUNC_STRERROR_R.
295 * lib/error.h, lib/error.c: Update.
296
447992b9
AD
2972001-03-16 Akim Demaille <akim@epita.fr>
298
299 * src/getargs.c (longopts): Clean up.
300
274d42ce
AD
3012001-02-21 Akim Demaille <akim@epita.fr>
302
303 * src/reader.c (gensym): `gensym_count' is your own.
304 Use a static buf to create the symbol name, as token_buffer is no
305 longer a buffer.
306
22c821f3
AD
3072001-02-08 Akim Demaille <akim@epita.fr>
308
309 * src/conflicts.c (conflict_report): Be sure not to append to res
310 between two calls, which could happen if both first sprintf were
311 skipped, but not the first cp += strlen.
312
18569462
AD
3132001-02-08 Akim Demaille <akim@epita.fr>
314
315 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
316 New, from fileutils 4.0.37.
317 * configure.in: Require Autoconf 2.49c. I took some time before
318 making this decision. This is the only way out for portability
319 issues in Bison, it would mean way too much duplicate effort to
320 import in Bison features implemented in 2.49c since 2.13.
321 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
322
0d8f3c8a
AD
3232001-02-02 Akim Demaille <akim@epita.fr>
324
325 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 326 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 327
f17bcd1f
AD
3282001-01-19 Akim Demaille <akim@epita.fr>
329
330 Get rid of the ad hoc handling of token_buffer in the scanner: use
331 the obstacks.
332
333 * src/lex.c (token_obstack): New.
334 (init_lex): Initialize it. No longer call...
335 (grow_token_buffer): this. Remove it.
336 Adjust all the places which used it to use the obstack.
337
511e79b3
AD
3382001-01-19 Akim Demaille <akim@epita.fr>
339
340 * src/lex.h: Rename all the tokens:
341 s/\bENDFILE\b/tok_eof/g;
342 s/\bIDENTIFIER\b/tok_identifier/g;
343 etc.
344 Let them be enums, not #define, to ease debugging.
345 Adjust all the code.
346
0d6508ef
AD
3472001-01-18 Akim Demaille <akim@epita.fr>
348
349 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
350 * src/lex.c (maxtoken, grow_token_buffer): Static.
351
6deb4447
AD
3522001-01-18 Akim Demaille <akim@epita.fr>
353
354 Since we now use obstacks, more % directives can be enabled.
355
356 * src/lex.c (percent_table): Also accept `%yacc',
357 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
358 `%debug'.
359 Handle the actions for `%semantic_parser' and `%pure_parser' here,
360 instead of returning a token.
361 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
362 * src/reader.c (read_declarations): Adjust.
363 * src/files.c (open_files): Don't call `compute_base_names', don't
364 compute `attrsfile' since they depend upon data which might be
365 *in* the input file now.
366 (output_files): Do it here.
367 * src/output.c (output_headers): Document the fact that this patch
368 introduces a guaranteed SEGV for semantic parsers.
369 * doc/bison.texinfo: Document them.
370 * tests/suite.at: Exercise these %options.
371
ff4423cc
AD
3722000-12-20 Akim Demaille <akim@epita.fr>
373
374 Also handle the output file (--verbose) with obstacks.
375
376 * files.c (foutput): Remove.
377 (output_obstack): New.
378 Adjust all dependencies.
379 * src/conflicts.c: Return a string.
380 * src/system.h (obstack_grow_string): Rename as...
381 (obstack_sgrow): this. Be ready to work with non literals.
382 (obstack_fgrow4): New.
383
956dba3a
AD
3842000-12-20 Akim Demaille <akim@epita.fr>
385
386 * src/files.c (open_files): Fix the computation of short_base_name
387 in the case of `-o foo.tab.c'.
388
337bab46
AD
3892000-12-20 Akim Demaille <akim@epita.fr>
390
391 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
392 (copy_dollar): Now that everything uses obstacks, get rid of the
393 FILE * parameters.
394
5d3214b8
AD
3952000-12-20 Akim Demaille <akim@epita.fr>
396
397 * src/files.c (open_files): Actually the `.output' file is based
398 on the short_base_name, not base_name.
399 * tests/suite.at (Checking output file names): Adjust.
400
29092a57
AD
4012000-12-20 Akim Demaille <akim@epita.fr>
402
403 * src/bison.s1: Remove, we now use directly...
404 * src/bison.simple: this.
405 * src/Makefile.am: Use pkgdata instead of data.
406
ea5607fd
AD
4072000-12-20 Akim Demaille <akim@epita.fr>
408
409 * src/files.c (guard_obstack): New.
410 (open_files): Initialize it.
411 (output_files): Dump it...
412 * src/files.h: Export it.
413 * src/reader.c (copy_guard): Use it.
414
27110317
AD
4152000-12-19 Akim Demaille <akim@epita.fr>
416
417 * src/files.c (outfile, defsfile, actfile): Removed as global
418 vars.
419 (open_files): Don't compute them.
420 (output_files): Adjust.
421 (base_name, short_base_name): Be global.
422 Adjust dependencies.
423
19c50364
AD
4242000-12-19 Akim Demaille <akim@epita.fr>
425
426 * src/files.c (strsuffix): New.
427 (stringappend): Be just like strcat but allocate.
428 (base_names): Eve out from open_files.
429 Try to simplify the rather hairy computation of base_name and
430 short_base_name.
431 (open_files): Use it.
432 * tests/suite.at (Checking output file names): New test.
433
573c1d9f
AD
4342000-12-19 Akim Demaille <akim@epita.fr>
435
436 * src/system.h (obstack_grow_literal_string): Rename as...
437 (obstack_grow_string): this.
438 * src/output.c (output_parser): Recognize `%% actions' instead of
439 `$'.
440 * src/bison.s1: s/$/%% actions/.
441 * src/bison.hairy: Likewise.
442
ef7ddedd
AD
4432000-12-19 Akim Demaille <akim@epita.fr>
444
445 * src/output.c (output_parser): Compute the `#line' lines when
446 there are.
447 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
448 Suggested by Hans Aberg.
449
ff61dabd
AD
4502000-12-19 Akim Demaille <akim@epita.fr>
451
452 Let the handling of the skeleton files be local to the procedures
453 that use it.
454
455 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
456 longer static.
457 (fparser, open_extra_files): Remove.
458 (open_files, output_files): Don't take care of fparser.
459 * src/files.h: Adjust.
460 * src/output.c (output_parser): Open and close the file to the
461 skeleton.
462 * src/reader.c (read_declarations): When %semantic_parser, open
463 fguard.
464
55b96341
AD
4652000-12-19 Akim Demaille <akim@epita.fr>
466
467 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
468 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
469
358c15b7
AD
4702000-12-19 Akim Demaille <akim@epita.fr>
471
472 * src/files.c (open_files): Yipee! We no longer need all the code
473 looking for `/tmp' since we have no tmp file.
474
7de3329e
AD
4752000-12-19 Akim Demaille <akim@epita.fr>
476
477 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
478 New macros.
479 * src/files.c (open_files): Less dependency on MSDOS etc.
480
3abcd459
AD
4812000-12-14 Akim Demaille <akim@epita.fr>
482
483 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
484 Provide a default definition.
485 Use it when executing the default @ action.
486 * src/reader.c (reader_output_yylsp): No longer include
487 `timestamp' and `text' in the default YYLTYPE.
488
2a91a95e
AD
4892000-12-12 Akim Demaille <akim@epita.fr>
490
491 * src/reader.c (copy_definition, parse_union_decl, copy_action)
492 (copy_guard): Quote the file names.
493 Reported by Laurent Mascherpa.
494
14d3eb9b
AD
4952000-12-12 Akim Demaille <akim@epita.fr>
496
497 * src/output.c (output_headers, output_program, output): Be sure
498 to escape special characters when outputting filenames.
499 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
500 (output_headers): Don't depend on them, Use ACTSTR.
501
d7045ec6
AD
5022000-11-17 Akim Demaille <akim@epita.fr>
503
504 * lib/obstack.h: Formatting changes.
505 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
506 prevents type checking.
507 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
508 cast the value to (void *): assigning a `foo *' to a `void *'
509 variable is valid.
510 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
511 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
512 append characters.
513
6fd54b73
AD
5142000-11-17 Akim Demaille <akim@epita.fr>
515
516 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
517 as...
518 (suite.m4, regression.m4, calc.m4): these.
519 * tests/atgeneral.m4: Update from CVS Autoconf.
520
4c50eae6
AD
5212000-11-17 Akim Demaille <akim@epita.fr>
522
523 * tests/regression.m4 (%union and --defines): New test,
524 demonstrating a current bug in the obstack implementation.
525
a35f64ea
AD
5262000-11-17 Akim Demaille <akim@epita.fr>
527
528 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
529 macros.
530 Use them to declare the variables which are global or local to
531 `yyparse'.
532
7de23534
AD
5332000-11-17 Akim Demaille <akim@epita.fr>
534
535 * acconfig.h: Remove, no longer used.
536
aa7815f5
AD
5372000-11-07 Akim Demaille <akim@epita.fr>
538
539 * src: s/Copyright (C)/Copyright/g.
540
5af1f549
AD
5412000-11-07 Akim Demaille <akim@epita.fr>
542
543 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
544 defining.
545 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
546
553e2b22
AD
5472000-11-07 Akim Demaille <akim@epita.fr>
548
549 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
550 Merge in a single CPP if/else.
551
8a4f41d6
AD
5522000-11-07 Akim Demaille <akim@epita.fr>
553
554 * src/output.c (output): Remove useless variables.
555 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
556 argument `data' for consistency with the prototypes.
557 Qualify it `const'.
558 (obstack_copy, obstack_copy0): Rename the second argument as
559 `address' for consistency. Qualify it `const'.
560 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
561 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
562 `const' their input argument (`data' or `address').
563 Adjust the corresponding macros to include `const' in casts.
564
095a3fb5
AD
5652000-11-03 Akim Demaille <akim@epita.fr>
566
567 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
568 s/PFILE1/BISON_HAIRY/.
569 Adjust dependencies.
570
d1cdce7c
AD
5712000-11-03 Akim Demaille <akim@epita.fr>
572
090c5ebf 573 For some reason, this was not applied.
d1cdce7c
AD
574
575 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
576 `unlink': it's no longer used.
577
9311529b
AD
5782000-11-03 Akim Demaille <akim@epita.fr>
579
580 * src/files.c (skeleton_find): New function, eved out of...
581 (open_files, open_extra_files): here.
582
d8880f69
AD
5832000-11-03 Akim Demaille <akim@epita.fr>
584
585 Don't use `atexit'.
586
587 * src/files.c (obstack_save): New function.
588 (done): Rename as...
589 (output_files): this.
590 Use `obstack_save'.
591 * src/main.c (main): Don't use `atexit' to register `done', since
592 it no longer has to remove tmp files, just call `output_files'
593 when there are no errors.
594
0dbb648e
AD
5952000-11-02 Akim Demaille <akim@epita.fr>
596
597 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
598 `unlink': it's no longer used.
599 * src/files.h: Formatting changes.
600
896fe5c1
AD
6012000-11-02 Akim Demaille <akim@epita.fr>
602
603 Remove the last uses of mktemp and unlink/delete.
604
605 * src/files.c (fdefines, ftable): Removed.
606 (defines_ostack, table_obstack): New.
607 Adjust dependencies of the former into uses of the latter.
608 * src/output.c (output_short_or_char_table, output_short_table):
609 Convert to using obstacks.
610 * src/reader.c (copy_comment2): Accept one FILE * and two
611 obstacks.
612 (output_token_defines, reader_output_yylsp): Use obstacks.
613 * src/system.h (obstack_fgrow3): New.
614
dd60faec
AD
6152000-11-01 Akim Demaille <akim@epita.fr>
616
617 Change each use of `fattrs' into a use of `attrs_obstack'.
618
619 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
620 * src/files.c (fattrs): Remove.
621 (attrs_obstack): New.
622 Adjust all dependencies.
623 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
624
8c7ebe49
AD
6252000-11-01 Akim Demaille <akim@epita.fr>
626
627 Introduce obstacks.
628 Change each use of `faction' into a use of `action_obstack'.
629
630 * lib/obstack.h, lib/obstack.c: New files.
631 * src/files.c (faction): Remove.
632 (action_obstack): New.
633 Adjust all dependencies.
634
77aee789
AD
6352000-10-20 Akim Demaille <akim@epita.fr>
636
637 * lib/quote.h (PARAMS): New macro. Use it.
638
43591cec
AD
6392000-10-16 Akim Demaille <akim@epita.fr>
640
641 * src/output.c (output_short_or_char_table): New function.
642 (output_short_table, output_token_translations): Use it.
643 (goto_actions): Use output_short_table.
644
1e9798d5
AD
6452000-10-16 Akim Demaille <akim@epita.fr>
646
647 * src/symtab.c (bucket_new): New function.
648 (getsym): Use it.
649
650 * src/output.c (output_short_table): New argument to display the
651 comment associated with the table.
652 Adjust dependencies.
653 (output_gram): Use it.
654 (output_rule_data): Nicer output layout for YYTNAME.
655
f282676b
AD
6562000-10-16 Akim Demaille <akim@epita.fr>
657
658 * src/lex.c (read_typename): New function.
659 (lex): Use it.
660 * src/reader.c (copy_dollar): Likewise.
661
550a72a3
AD
6622000-10-16 Akim Demaille <akim@epita.fr>
663
664 * src/reader.c (copy_comment2): Expect the input stream to be on
665 the `/' which is suspected to open a comment, instead of being
666 called after `//' or `/*' was read.
667 (copy_comment, copy_definition, parse_union_decl, copy_action)
668 (copy_guard): Adjust.
669
131e2fef
AD
6702000-10-16 Akim Demaille <akim@epita.fr>
671
672 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
673 `read_signed_integer'.
674
79282c5a
AD
6752000-10-16 Akim Demaille <akim@epita.fr>
676
677 * src/reader.c (copy_dollar): New function.
678 (copy_guard, copy_action): Use it.
679
ff4a34be
AD
6802000-10-16 Akim Demaille <akim@epita.fr>
681
682 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
683 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
684 New files, from Fileutils 4.0.27.
685 * src/main.c (printable_version): Remove.
686 * src/lex.c, src/reader.c: Use `quote'.
687
6882000-10-04 Akim Demaille <akim@epita.fr>
689
690 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
691
14ded682
AD
6922000-10-04 Akim Demaille <akim@epita.fr>
693
694 * doc/bison.texinfo: Various typos spotted by Neil Booth.
695
8e03724b
AD
6962000-10-04 Akim Demaille <akim@epita.fr>
697
698 When a literal string is used to define two different tokens,
699 `bison -v' segfaults.
700 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
701
702 * tests/regression.m4: New file.
703 Include the core of the sample provided by Piotr Gackiewicz.
704 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
705 properly.
706
a9e64249
AD
7072000-10-04 Akim Demaille <akim@epita.fr>
708
709 * src/reader.c (parse_expect_decl): Keep `count' within the size
710 of `buffer'.
711 From Neil Booth.
712
da9abf43
AD
7132000-10-02 Paul Eggert <eggert@twinsun.com>
714
715 * bison.s1 (yyparse): Assign the default value
716 unconditionally, to avoid a GCC warning and make the parser a
717 tad smaller.
718
c33638bb
AD
7192000-10-02 Akim Demaille <akim@epita.fr>
720
721 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
722 options.
723
444c570a
AD
7242000-10-02 Akim Demaille <akim@epita.fr>
725
726 * src/derives.c, src/print.c, src/reduce.c: To ease the
727 translation, move some `\n' out of the translated strings.
728
89cab50d
AD
7292000-10-02 Akim Demaille <akim@epita.fr>
730
731 The location tracking mechanism is precious for parse error
732 messages. Nevertheless, it is enabled only when `@n' is used in
733 the grammar, which is a different issue (you can use it in error
734 message, but not in the grammar per se). Therefore, there should
735 be another means to enable it.
736
737 * src/getargs.c (getargs): Support `--locations'.
738 (usage): Report it.
739 * src/getargs.h (locationsflag): Export it.
740 * src/lex.c (percent_table): Support `%locations'.
741 * src/reader.c (yylsp_needed): Remove this variable, now replaced
742 with `locationsflag'.
743 * doc/bison.texinfo: Document `--locations' and `%locations'.
744 Sort the options.
745 * tests/calc.m4: Test it.
746
747 For regularity of the names, replace each
748 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
749 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
750 In addition replace each `flag' with `_flag'.
751
d6c2cba0
AD
7522000-10-02 Akim Demaille <akim@epita.fr>
753
754 Also test parse error messages, including with YYERROR_VERBOSE.
755
756 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
757 associative).
758 Use it to check the computations.
759 Use it to check `nonassoc' is honored.
760 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
761 `--yyerror-verbose'.
762 (_AT_CHECK_CALC): Adjust to this option.
763 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
764
5a35a6cb
AD
7652000-10-02 Akim Demaille <akim@epita.fr>
766
767 Test also `--verbose', `--defines' and `--name-prefix'. Testing
768 the latter demonstrates a flaw in the handling of non debugging
769 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
770 was used in order to simplify:
771
772 #if YYDEBUG
773 if (yydebug)
774 {
775 ...
776 }
777 #endif
778
779 into
780
781 if (yydebug)
782 {
783 ...
784 }
785
786 unfortunately this leads to a CPP conflict when
787 `--name-prefix=foo' is used since it produces `#define yydebug
788 foodebug'.
789
790 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
791 (YYDPRINTF): New macro.
792 Spread its use.
793 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
794 the bison options.
795 Also test `--verbose', `--defines' and `--name-prefix'.
796
71da9eea
AD
7972000-10-02 Akim Demaille <akim@epita.fr>
798
799 Improve the readability of the produced parsers.
800
801 * src/bison.s1: Formatting changes.
802 Improve the comment related to the `$' mark.
803 (yydefault): Don't fall through to `yyresume': `goto' there.
804 * src/output.c (output_parser): When the `$' is met, skip the end
805 of its line.
806 New variable, `number_of_dollar_signs', to check there's exactly
807 one `$' in the parser skeleton.
808
95e36146
AD
8092000-10-02 Akim Demaille <akim@epita.fr>
810
811 * lib/xstrdup.c: New file, from the fileutils.
812 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
813 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
814 instead of strlen + xmalloc + strcpy.
815 * src/symtab.c (copys): Remove, use xstrdup instead.
816
d7020c20
AD
8172000-10-02 Akim Demaille <akim@epita.fr>
818
819 * src/gram.h (associativity): New enum type which replaces the
820 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
821 `right_assoc', `left_assoc' and `non_assoc'.
822 Adjust all dependencies.
823 * src/reader.c: Formatting changes.
824 (LTYPESTR): Don't define it, use it as a literal in
825 `reader_output_yylsp'.
826 * src/symtab.h (symbol_class): New enum type which replaces the
827 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
828 `sunknown', `stoken and `snterm'.
829
1916f98e
AD
8302000-10-02 Akim Demaille <akim@epita.fr>
831
832 * src/getargs.c (fixed_outfiles): Rename as...
833 (yaccflag): for consistency and accuracy.
834 Adjust dependencies.
835
d7913476
AD
8362000-10-02 Akim Demaille <akim@epita.fr>
837
838 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
839 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
840 difficult and introduced a lot of core dump. It turns out that
841 Bison used an implementation of `xmalloc' based on `calloc', and
842 at various places it does depend upon the initialization to 0. I
843 have not tried to isolate the pertinent places, and all the former
844 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
845 someone should address this issue.
846
847 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
848 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
849 files.
850 Adjust dependencies.
851 * src/warshall.h: New file.
852 Propagate.
853
340ef489
AD
8542000-10-02 Akim Demaille <akim@epita.fr>
855
856 Various anti-`extern in *.c' changes.
857
858 * src/system.h: Include `assert.h'.
859
b2ca4022
AD
8602000-10-02 Akim Demaille <akim@epita.fr>
861
862 * src/state.h (nstates, final_state, first_state, first_shift)
863 (first_reduction): Move their exportation from here...
864 * src/LR0.h: to here.
865 Adjust dependencies.
866 * src/getargs.c (statisticsflag): New variable.
867 Add support for `--statistics'.
868 Adjust dependencies.
869
870 Remove a lot of now useless `extern' statements in most files.
871
403b315b
AD
8722000-10-02 Akim Demaille <akim@epita.fr>
873
874 * src/LR0.h: New file.
875 Propagate its use.
876
07a58c13
AD
8772000-10-02 Akim Demaille <akim@epita.fr>
878
879 * src/print.h: New file.
880 Propagate its use.
881 * src/print.c: Formatting and ordering changes.
882 (verbose, terse): Replace with...
883 (print_results): this new function.
884 Adjust dependencies.
885
0619caf0
AD
8862000-10-02 Akim Demaille <akim@epita.fr>
887
888 * src/conflicts.c (conflict_report): New function.
889 (conflict_log, verbose_conflict_log): Replace with...
890 (print_conflicts): this function.
891 Adjust dependencies.
892 * src/conflicts.h: New file.
893 Propagate its inclusion.
894
3519ec76
AD
8952000-10-02 Akim Demaille <akim@epita.fr>
896
897 * src/nullable.h: New file.
898 Propagate its inclusion.
899 * src/nullable.c: Formatting changes.
900
015acc48
AD
9012000-10-02 Akim Demaille <akim@epita.fr>
902
903 * src/reduce.h: New file.
904 Propagate its inclusion.
905 * src/reduce.c: Topological sort and other formatting changes.
906 (bool, TRUE, FALSE): Move their definition to...
907 * src/system.h: here.
908
8963a27b
AD
9092000-10-02 Akim Demaille <akim@epita.fr>
910
911 * src/files.c: Formatting changes.
912 (tryopen, tryclose, openfiles): Rename as...
913 (xfopen, xfclose, open_files): this.
914 (stringappend): static.
915 * src/files.h: Complete the list of exported symbols.
916 Propagate its use.
917
a70083a3
AD
9182000-10-02 Akim Demaille <akim@epita.fr>
919
920 * src/reader.h: New file.
921 Propagate its use instead of tedious list of `extern' and
922 prototypes.
923 * src/reader.c: Formatting changes, topological sort,
924 s/register//.
925
abadc117
AD
9262000-10-02 Akim Demaille <akim@epita.fr>
927
928 * src/lex.h: Prototype `lex.c' exported functions.
929 * src/reader.c: Adjust.
930 * src/lex.c: Formatting changes.
931 (safegetc): Rename as...
932 (xgetc): this.
933
720d742f
AD
9342000-10-02 Akim Demaille <akim@epita.fr>
935
936 * src/lalr.h: New file.
937 Propagate its inclusion instead of prototypes and `extern'.
938 * src/lalr.c: Formatting changes, topological sorting etc.
939
f2acea59
AD
9402000-10-02 Akim Demaille <akim@epita.fr>
941
942 * src/output.c (token_actions): Introduce a temporary array,
943 YYDEFACT, that makes it possible for this function to use
944 output_short_table.
945
d019d655
AD
9462000-10-02 Akim Demaille <akim@epita.fr>
947
948 `user_toknums' is output as a `short[]' in `output.c', while it is
949 defined as a `int[]' in `reader.c'. For consistency with the
950 other output tables, `user_toknums' is now defined as a table of
951 shorts.
952
953 * src/reader.c (user_toknums): Be a short table instead of an int
954 table.
955 Adjust dependencies.
956
957 Factor the short table outputs.
958
959 * src/output.c (output_short_table): New function.
960 * src/output.c (output_gram, output_stos, output_rule_data)
961 (output_base, output_table, output_check): Use it.
962
6c89f1c1
AD
9632000-10-02 Akim Demaille <akim@epita.fr>
964
965 * src/output.c (output): Topological sort of the functions, in
966 order to get rid of the `static' prototypes.
967 No longer use `register'.
968 * src/output.h: New file.
969 Propagate its inclusion in files explicitly prototyping functions
970 from output.c.
971
d9efd181
AD
9722000-09-21 Akim Demaille <akim@epita.fr>
973
974 * src/atgeneral.m4: Update from Autoconf.
975
c29240e7 9762000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
977
978 * src/closure.h: New file.
979 * src/closure.c: Formatting changes, topological sort over the
980 functions, use of closure.h.
981 (initialize_closure, finalize_closure): Rename as...
982 (new_closure, free_closure): these. Adjust dependencies.
983 * src/LR0.c: Formatting changes, topological sort, use of
984 cloture.h.
985 (initialize_states): Rename as...
986 (new_states): this.
987 * src/Makefile.am (noinst_HEADERS): Adjust.
988
499daa50
AD
9892000-09-20 Akim Demaille <akim@epita.fr>
990
991 * src/acconfig.h: Don't protect config.h against multiple
992 inclusion.
993 Don't define PARAMS.
994 * src/system.h: Define PARAMS.
995 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
996 purpose of config.h. system.h must not try to fix wrong
997 definitions in config.h.
998
cc84fd5d
AD
9992000-09-20 Akim Demaille <akim@epita.fr>
1000
1001 * src/derives.h: New file.
1002 * src/main.c, src/derives.h: Use it.
1003 Formatting changes.
1004 * src/Makefile.am (noinst_HEADERS): Adjust.
1005
db5b3a89
AD
10062000-09-20 Akim Demaille <akim@epita.fr>
1007
1008 * tests/atgeneral.m4: Update from Autoconf.
1009 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1010 (AT_CHECK_CALC): New macros.
1011 Use these macros to test bison with options `', `--raw',
1012 `--debug', `--yacc', `--yacc --debug'.
1013
ceed8467
AD
10142000-09-19 Akim Demaille <akim@epita.fr>
1015
1016 * src/output.c: Formatting changes.
1017 * src/machine.h: Remove, leaving its contents in...
1018 * src/system.h: here.
1019 Include stdio.h.
1020 Adjust all dependencies on stdio.h and machine.h.
1021 * src/getargs.h: New file.
1022 Let all `extern' declarations about getargs.c be replaced with
1023 inclusion of `getargs.h'.
1024 * src/Makefile.am (noinst_HEADERS): Adjust.
1025
1026 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1027 scope.
1028 (yyerror): Returns void, not int.
1029 * doc/bison.texinfo: Formatting changes.
1030
05a1d24b
AD
10312000-09-19 Akim Demaille <akim@epita.fr>
1032
1033 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1034 portable.
1035
cbd25751
AD
10362000-09-18 Akim Demaille <akim@epita.fr>
1037
1038 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1039 * src/Makefile.am (INCLUDES): Don't.
1040 Be ready to fetch headers in lib/.
1041
13863333
AD
10422000-09-18 Akim Demaille <akim@epita.fr>
1043
1044 * doc/bison.texinfo: Update the copyright.
1045 ANSIfy and GNUify the examples.
1046 Remove the old menu.
1047
0d533154
AD
10482000-09-18 Akim Demaille <akim@epita.fr>
1049
1050 First set of tests: use the `calc' example from the documentation.
1051
1052 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1053 is defined only when YYDEBUG is.
1054 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1055 * src/files.c (tryopen, tryclose): Formatting changes.
1056 Move to the top and be static.
1057 * src/reader.c (read_signed_integer): Likewise.
1058 * tests/calc.m4: New file.
1059 * Makefile.am, suite.m4: Adjust.
1060 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1061
e79137ac
AD
10622000-09-18 Akim Demaille <akim@epita.fr>
1063
1064 Add support for an Autotest test suite for Bison.
1065
1066 * m4/m4.m4, m4/atconfig.m4: New files.
1067 * m4/Makefile.am (EXTRA_DIST): Adjust.
1068 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1069 files.
1070 * src/getargs.c: Display a more standard --version message.
1071 * src/reader.c (reader): Formatting changes.
1072 No longer depend upon VERSION_STRING.
1073 * configure.in: No longer use `dnl'.
1074 Set up the test suite and the new directory `tests/.
1075 (VERSION_STRING): Remove.
1076
27821bff
AD
10772000-04-14 Akim Demaille <akim@epita.fr>
1078
1079 * src/reader.c (copy_comment2): New function, same as former
1080 `copy_comment', but outputs into two FILE *.
1081 (copy_comment): Use it.
1082 (parse_union_decl): Use it.
1083 (get_type, parse_start_decl): Use the same `invalid' message.
1084 (parse_start_decl, parse_union_decl): Use the same `multiple'
1085 message.
1086 (parse_union_decl, copy_guard, copy_action): Use the same
1087 `unmatched' message.
1088 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1089
cfe5fbc0
AD
10902000-03-31 Akim Demaille <akim@epita.fr>
1091
1092 * src/files.c (tryopen, tryclose): Move to the top.
1093 Be static.
1094
cb7db13e
AD
10952000-03-31 Akim Demaille <akim@epita.fr>
1096
1097 * src/main.c (main): Don't call `done', exit does it.
1098
a0f6b076
AD
10992000-03-31 Akim Demaille <akim@epita.fr>
1100
36281465
AD
1101 * allocate.c: s/return (foo)/return foo/.
1102 * lalr.c: Likewise.
1103 * LR0.c: Likewise.
1104 * output.c: Likewise.
1105 * reader.c: Likewise.
1106 * symtab.c: Likewise.
1107 * vmsgetargs.c: Likewise.
1108
11092000-03-31 Akim Demaille <akim@epita.fr>
1110
1111 Clean up the error reporting functions.
a0f6b076
AD
1112
1113 * src/report.c: New file.
1114 * src/report.h: Likewise.
1115 * src/Makefile.am: Adjust.
1116 * m4/error.m4: New file.
1117 * m4/Makefile.am: Adjust.
1118 * configure.in (jm_PREREQ_ERROR): Call it.
1119 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1120 Remove.
1121 (fatal, fatals): Remove. All callers use complain.c::fatal.
1122 (warn, warni, warns, warnss, warnss): Remove. All callers use
1123 complain.c::complain.
1124 (toomany): Remove, use fatal instead.
1125 * src/files.c (done): No argument, use complain_message_count.
1126 * src/main.c (main): Register `done' to `atexit'.
1127
1128 * src/getargs.c (usage): More `fputs', less `fprintf'.
1129
18539825
AD
11302000-03-28 Akim Demaille <akim@epita.fr>
1131
1132 * lib/: New directory.
1133 * Makefile.am (SUBDIRS): Adjust.
1134 * configure.in: Adjust.
1135 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1136 useless.
1137 * src/alloca.c: Moved to lib/.
1138 * src/getopt.c: Likewise.
1139 * src/getopt1.c: Likewise.
1140 * src/getopt.h: Likewise.
1141 * src/ansi2knr.c: Likewise.
1142 * src/ansi2knr.1: Likewise.
1143 * src/Makefile.am: Adjust.
1144 * lib/Makefile.am: New file.
1145
9f306f2a
AD
11462000-03-28 Akim Demaille <akim@epita.fr>
1147
1148 * src/getargs.c (usage): Refresh the help message.
1149
0ba347b6
AD
11502000-03-17 Akim Demaille <akim@epita.fr>
1151
1152 * src/getopt1.c: Updated from textutils 2.0e
1153 * src/getopt.c: Likewise.
1154 * src/getopt.h: Likewise.
1155
dbe7f271
AD
11562000-03-17 Akim Demaille <akim@epita.fr>
1157
1158 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1159 the file name, not the whole `#line LINE FILE'.
1160
75bbe78d
AD
11612000-03-17 Akim Demaille <akim@epita.fr>
1162
1163 On syntax errors, report the token on which we choked.
1164
aa5fd0ee
AD
1165 * src/bison.s1 (yyparse): In the label yyerrlab, when
1166 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1167
7b306f52
AD
11682000-03-17 Akim Demaille <akim@epita.fr>
1169
aa5fd0ee 1170 * src/reader.c (copy_at): New function.
7b306f52
AD
1171 (copy_guard): Use it.
1172 (copy_action): Use it.
1173
e87b5700
AD
11742000-03-17 Akim Demaille <akim@epita.fr>
1175
1176 Be kind to translators, save some useless translations.
1177
aa5fd0ee 1178 * src/main.c (banner): New function.
e87b5700
AD
1179 (fatal_banner): Use it.
1180 (warn_banner): Use it.
1181
ae3c3164
AD
11822000-03-17 Akim Demaille <akim@epita.fr>
1183
aa5fd0ee
AD
1184 * src/reader.c (copy_definition): Use copy_string and
1185 copy_comment. Removed now unused `match', `ended',
1186 `cplus_comment'.
ae3c3164
AD
1187 (copy_comment, copy_string): Moved, to be visible from
1188 copy_definition.
1189
4dc58e7c
AD
11902000-03-17 Akim Demaille <akim@epita.fr>
1191
aa5fd0ee
AD
1192 * src/reader.c (copy_string): Declare `static inline'. No
1193 problems with inline, since it is checked by configure.
4dc58e7c
AD
1194 (copy_comment): Likewise.
1195
0a6384c4
AD
11962000-03-17 Akim Demaille <akim@epita.fr>
1197
aa5fd0ee 1198 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1199
3cef001a
AD
12002000-03-17 Akim Demaille <akim@epita.fr>
1201
aa5fd0ee 1202 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1203 (copy_action): Use it. Removed now unused `match', `ended',
1204 `cplus_comment'.
1205 (copy_guard): Likewise.
1206
ca36d2ef
AD
12072000-03-17 Akim Demaille <akim@epita.fr>
1208
aa5fd0ee 1209 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1210 (copy_action): Use it.
1211 (copy_guard): Likewise.
1212
6666f98f
AD
12132000-03-17 Akim Demaille <akim@epita.fr>
1214
1215 Change the handling of @s so that they behave exactly like $s.
1216 There is now a pseudo variable @$ (readble and writable), location
1217 of the lhs of the rule (by default ranging from the location of
1218 the first symbol of the rhs, to the location of the last symbol,
1219 or, if the rhs is empty, YYLLOC).
1220
1221 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1222 yyval.
1223 (yyparse): When providing a default semantic action, provide a
1224 default location action.
1225 (after the $): No longer change `*YYLSP', just stack YYLOC the
1226 same way you stack YYVAL.
1227 * src/reader.c (read_declarations): Use warns.
1228 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1229 (copy_action, case '@'): Likewise.
1230 Use a standard error message, to save useless work from
1231 translators.
1232
41aca2e0
AD
12332000-03-17 Akim Demaille <akim@epita.fr>
1234
aa5fd0ee
AD
1235 * src/bison.s1: Formatting and cosmetics changes.
1236 * src/reader.c: Likewise.
41aca2e0
AD
1237 Update the Copyright notice.
1238
dc08c1d5
AD
12392000-03-17 Akim Demaille <akim@epita.fr>
1240
aa5fd0ee
AD
1241 * src/bison.s1 (#line): All set to `#line' only, since the
1242 Makefile now handles them.
dc08c1d5 1243
9ee3c97b
AD
12442000-03-16 Akim Demaille <akim@epita.fr>
1245
1246 * src/output.c (output_rule_data): Output the documentation of
1247 some of the tables.
1248 (Copyright notice): Update.
1249 Formatting changes.
1250
0de741ca
AD
12512000-03-16 Akim Demaille <akim@epita.fr>
1252
1253 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1254 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1255 One `#if YYDEBUG' remains, since it uses variables which are
1256 defined only if `YYDEBUG != 0'.
1257
bb10be54
AD
12582000-03-16 Akim Demaille <akim@epita.fr>
1259
1260 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1261 and related variables so that the similarities are highlighted.
1262
b07b484a
AD
12632000-03-16 Akim Demaille <akim@epita.fr>
1264
1265 * src/bison.s1: Properly indent CPP directives.
1266
361f60b3
AD
12672000-03-16 Akim Demaille <akim@epita.fr>
1268
1269 * src/bison.s1: Properly indent the `alloca' CPP section.
1270
8c44d3ec
AD
12712000-03-16 Akim Demaille <akim@epita.fr>
1272
1273 Do not hard code values of directories in `configure.in'.
1274 Update the `configure' tool chain.
1275
1276 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1277 src/makefile.am.
1278 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1279 (AC_OUTPUT): Add m4/Makefile.
1280 Bump to bison 1.28a, 1.29 has never been released.
1281 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1282 handled via src/Makefile.am.
1283 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1284 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1285 autoheader.
1286 * Makefile.am (SUBDIRS): Add m4.
1287 (ACLOCAL_AM_FLAGS): New variable.
1288 (AUTOMAKE_OPTIONS): Add check-news.
1289 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1290 the proper line number and file name.
1291 (DEFS): Propagate the location of bison library files and of the
1292 locale files.
1293 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1294 builddir.
1295 * acinclude.m4: Remove, replaced by the directory m4.
1296 * m4/Makefile.am (EXTRA_DIST): New variable.
1297 * m4/gettext.m4: New file, from the fileutils.
1298 * m4/lcmessage.m4: Likewise
1299 * m4/progtest.m4: Likewise.
1300 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1301
f95997e7
AD
13022000-03-10 Akim Demaille <akim@epita.fr>
1303
1304 * src/closure.c:
1305 Formatting changes of various comments.
1306 Respect the GNU coding standards at various places.
1307 Don't use `_()' when no translation is needed.
1308
13091999-12-13 Jesse Thilo <jthilo@gnu.org>
1310
1311 * src/files.c:
1312 OS/2 honors TMPDIR environment variable.
1313
13141999-12-13 Jesse Thilo <jthilo@gnu.org>
1315
1316 * doc/bison.texinfo: Tweaked spelling and grammar.
1317 Updated ISBN.
1318 Removed reference to price of printed copy.
1319 Mention BISON_SIMPLE and BISON_HAIRY.
1320
13211999-12-13 Jesse Thilo <jthilo@gnu.org>
1322
1323 * configure.in, NEWS:
1324 Bison 1.29 released.
1325
13261999-10-27 Jesse Thilo <jthilo@gnu.org>
1327
1328 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1329 Added reference card.
1330
13311999-07-26 Jesse Thilo <jthilo@gnu.org>
1332
1333 * po/ru.po: Added Russian translation.
1334
13351999-07-26 Jesse Thilo <jthilo@gnu.org>
1336
1337 * configure.in: Added Russian translation.
1338
13391999-07-06 Jesse Thilo <jthilo@gnu.org>
1340
1341 * configure.in, NEWS, README:
1342 Released version 1.28.
1343
13441999-06-14 Jesse Thilo <jthilo@gnu.org>
1345
1346 * src/system.h:
1347 Squashed redefinition warning on some systems.
1348
1349 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1350 Have configure build version string instead of relying on ANSI string
1351 concatentation.
1352
13531999-06-14 Jesse Thilo <jthilo@gnu.org>
1354
1355 * po/POTFILES.in: Got rid of version.c.
1356
13571999-06-14 Jesse Thilo <jthilo@gnu.org>
1358
1359 * acconfig.h, configure.in:
1360 Have configure build version string instead of relying on ANSI string
1361 concatentation.
1362
13631999-06-08 Jesse Thilo <jthilo@gnu.org>
1364
1365 * doc/bison.1:
1366 Dropped mention of `+' for long-named options.
1367
13681999-05-30 Jesse Thilo <jthilo@gnu.org>
1369
1370 * src/files.c: Added <unistd.h> for unlink().
1371
1372 * src/Makefile.am, src/system.h:
1373 I18n fixes.
1374
13751999-05-30 Jesse Thilo <jthilo@gnu.org>
1376
1377 * README: Added a FAQ list.
1378
1379 * configure.in, acconfig.h:
1380 I18n fixes.
1381
13821999-05-30 Jesse Thilo <jthilo@gnu.org>
1383
1384 * doc/FAQ, doc/Makefile.am:
1385 Added a FAQ list.
1386
13871999-05-19 Jesse Thilo <jthilo@gnu.org>
1388
1389 * src/alloc.h, src/symtab.h, src/version.c:
1390 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1391
13921999-04-18 Jesse Thilo <jthilo@gnu.org>
1393
1394 * src/.cvsignore, src/Makefile.am:
1395 Reorganized: sources in `src', documentation in `doc'.
1396
1397 * src/lex.c (literalchar):
1398 fixed the code for escaping double quotes (thanks
1399 Jonathan Czisny.)
1400
14011999-04-18 Jesse Thilo <jthilo@gnu.org>
1402
1403 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1404 Adjusted paths to reflect directory reorganization.
1405
14061999-04-18 Jesse Thilo <jthilo@gnu.org>
1407
1408 * doc/.cvsignore, doc/Makefile.am:
1409 Reorganized: sources in `src', documentation in `doc'.
1410
14111999-04-18 Jesse Thilo <jthilo@gnu.org>
1412
1413 * configure.in:
1414 Updated AC_INIT file to reflect directory reorganization.
1415
1416 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1417 Reorganized: sources in `src', documentation in `doc'.
1418
14191999-04-13 Jesse Thilo <jthilo@gnu.org>
1420
1421 * src/allocate.c:
1422 Don't declare calloc() and realloc() if not necessary.
1423
14241999-04-13 Jesse Thilo <jthilo@gnu.org>
1425
1426 * configure.in, acconfig.h, acinclude.m4:
1427 Don't declare calloc() and realloc() if not necessary.
1428
14291999-03-23 Jesse Thilo <jthilo@gnu.org>
1430
1431 * po/.cvsignore: Added i18n support.
1432
14331999-03-23 Jesse Thilo <jthilo@gnu.org>
1434
1435 * acconfig.h, configure.in, Makefile.am:
1436 Added i18n support.
1437
14381999-03-22 Jesse Thilo <jthilo@gnu.org>
1439
1440 * src/bison.s1: Fixed #line numbers.
1441
14421999-03-15 Jesse Thilo <jthilo@gnu.org>
1443
1444 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1445 Added PO files from Translation Project.
1446
14471999-03-03 Jesse Thilo <jthilo@gnu.org>
1448
1449 * Makefile.am:
1450 Added support for non-ANSI compilers (ansi2knr).
1451
14521999-02-16 Jesse Thilo <jthilo@gnu.org>
1453
1454 * configure.in: Bumped version number to 1.27.
1455
1456 * Makefile.am:
1457 Added `bison.simple' to list of files removed by `make distclean'.
1458
14591999-02-12 Jesse Thilo <jthilo@gnu.org>
1460
1461 * src/files.c, src/files.h:
1462 Defined locations of parser files in config.h instead of Makefile.
1463
14641999-02-12 Jesse Thilo <jthilo@gnu.org>
1465
1466 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1467 Defined locations of parser files in config.h instead of Makefile.
1468
14691999-02-09 Jesse Thilo <jthilo@gnu.org>
1470
1471 * Makefile.am:
1472 Removed inappropriate use of $< macro.
1473
14741999-02-05 Jesse Thilo <jthilo@gnu.org>
1475
1476 * po/Makefile.in.in, po/POTFILES.in:
1477 Add `po' directory skeleton.
1478
14791999-01-27 Jesse Thilo <jthilo@gnu.org>
1480
1481 * README: Document help-bison list.
1482
1483 * configure.in: Add check for mkstemp().
1484
14851999-01-20 Jesse Thilo <jthilo@gnu.org>
1486
1487 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1488 Hush a few compiler warnings.
1489
1490 * src/files.c:
1491 Add tryclose(), which verifies that fclose was successful.
1492 Hush a couple of compiler warnings.
1493
14941999-01-20 Jesse Thilo <jthilo@gnu.org>
1495
1496 * Makefile.am, OChangeLog:
1497 ChangeLog is now automatically generated. Include the old version as
1498 OChangeLog.
1499
15001999-01-14 Jesse Thilo <jthilo@gnu.org>
1501
1502 * 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:
1503 Update FSF address.
1504
15051999-01-14 Jesse Thilo <jthilo@gnu.org>
1506
1507 * doc/bison.texinfo: Fix formatting glitch.
1508
1509 * doc/bison.texinfo: Update FSF address.
1510
15111999-01-14 Jesse Thilo <jthilo@gnu.org>
1512
1513 * acconfig.h: Update FSF address.
1514
15151999-01-08 Jesse Thilo <jthilo@gnu.org>
1516
1517 * src/system.h:
1518 Don't define PACKAGE here, since config.h defines it.
1519
15201998-12-30 Jesse Thilo <jthilo@gnu.org>
1521
1522 * src/reader.c: Update copyright date.
1523
1524 * src/main.c:
1525 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1526 favor of output directly to stderr (avoids buffer overruns).
1527
1528 * src/reader.c: Some checks for premature EOF.
1529
1530 * 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:
1531 Use prototypes if the compiler understands them.
1532
1533 * src/files.c: Honor TMPDIR on Unix hosts.
1534 Use prototypes if the compiler understands them.
1535
1536 * src/reader.c:
1537 Fix a couple of buffer overrun bugs.
1538 Use prototypes if the compiler understands them.
1539
1540 * src/system.h: Include unistd.h and ctype.h.
1541 Use #ifdef instead of #if for NLS symbols.
1542
15431998-12-30 Jesse Thilo <jthilo@gnu.org>
1544
1545 * doc/bison.texinfo:
1546 Delete comment "consider using @set for edition number, etc..." since
1547 we now are doing so.
1548
15491998-12-30 Jesse Thilo <jthilo@gnu.org>
1550
1551 * configure.in:
1552 Use prototypes if the compiler understands them.
1553
1554 * NEWS: Document 1.26 highlights.
1555
1556 * Makefile.am: Require Automake 1.3 or later.
1557
1558 * acconfig.h:
1559 Use prototypes if the compiler understands them.
1560
15611998-12-29 Jesse Thilo <jthilo@gnu.org>
1562
1563 * src/version.c:
1564 Use VERSION symbol from automake for version number.
1565
15661998-12-29 Jesse Thilo <jthilo@gnu.org>
1567
1568 * acconfig.h, configure.in, version.cin:
1569 Use VERSION symbol from automake for version number.
1570
15711998-11-28 Jesse Thilo <jthilo@gnu.org>
1572
1573 * Makefile.am:
1574 Distribute original version of simple parser (bison.s1), not built
1575 version (bison.simple).
1576
15771998-11-28 Jesse Thilo <jthilo@gnu.org>
1578
1579 * doc/bison.texinfo: Add info dir entry.
1580
1581 * doc/bison.texinfo:
1582 Let automake put version number into documentation.
1583
15841998-11-26 Jesse Thilo <jthilo@gnu.org>
1585
1586 * src/bison.cld, src/build.com, src/vmshlp.mar:
1587 Add non-RCS files from /gd/gnu/bison.
1588
15891998-11-26 Jesse Thilo <jthilo@gnu.org>
1590
1591 * doc/bison.1:
1592 Document the BISON_HAIRY and BISON_SIMPLE variables.
1593
15941998-11-25 Jesse Thilo <jthilo@gnu.org>
1595
1596 * src/version.c: Build version.c automatically.
1597
1598 * src/reader.c:
1599 Fix token numbering (used to start at 258, not 257).
1600
1601 * src/system.h: Include config.h.
1602
1603 * src/getargs.c: Update bug report address.
1604
1605 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1606 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1607
16081998-11-25 Jesse Thilo <jthilo@gnu.org>
1609
1610 * Makefile.am:
1611 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1612
1613 * configure.in, version.cin:
1614 Build version.c automatically.
1615
1616 * AUTHORS: Add AUTHORS file.
1617
1618 * README: Update bug report address.
1619
1620 * bison.simple:
1621 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1622
1623 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1624 Add automake stuff.
1625
16261998-11-25 Jesse Thilo <jthilo@gnu.org>
1627
1628 * doc/bison.texinfo: Clean up some formatting.
1629
16301998-05-05 Richard Stallman <rms@gnu.org>
1631
1632 * doc/bison.texinfo:
1633 Explain better why to make a pure parser.
1634
16351998-01-05 Richard Stallman <rms@gnu.org>
1636
1637 * src/files.c (openfiles):
1638 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1639 find a temporary directory, if possible. Do not unlink files while
1640 they are open.
1641
16421997-08-25 Richard Stallman <rms@gnu.org>
1643
1644 * src/reader.c (stack_offset;):
1645 Change some warni to warns.
1646
1647 * src/lex.c (literalchar): Use warns, not warni.
1648
16491997-06-28 Richard Stallman <rms@gnu.org>
1650
1651 * src/bison.s1: Add a Bison version comment.
1652
1653 * src/main.c (fatal, warn, berror):
1654 Use program_name.
1655
16561997-06-28 Richard Stallman <rms@gnu.org>
1657
1658 * Makefile.in (bison_version): New variable.
1659 (dist): Use that variable.
1660 (bison.s1): Substitute the Bison version into bison.simple.
1661
1662 * bison.simple: Add a Bison version comment.
1663
16641997-06-18 Richard Stallman <rms@gnu.org>
1665
1666 * src/main.c (fatal, warn, berror):
1667 Make error messages standard.
1668 (toomany): Improve error message text.
1669
1670 * 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:
1671 new.h renamed to alloc.h.
1672
16731997-06-18 Richard Stallman <rms@gnu.org>
1674
1675 * Makefile.in: new.h renamed to alloc.h.
1676
16771997-05-24 Richard Stallman <rms@gnu.org>
1678
1679 * src/lex.c (literalchar):
1680 Fix the code for escaping \, " and '.
1681
1682 (lex): Avoid trouble when there are many chars
1683 to discard in a char literal with just several chars in it.
1684
16851997-05-17 Richard Stallman <rms@gnu.org>
1686
1687 * src/bison.s1:
1688 Use malloc, if using alloca is troublesome.
1689 (YYSTACK_USE_ALLOCA): New flag macro.
1690 Define it for some systems and compilers.
1691 (YYSTACK_ALLOC): New macro.
1692 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1693 If it was malloc'd, free it.
1694
16951997-05-17 Richard Stallman <rms@gnu.org>
1696
1697 * bison.simple:
1698 Use malloc, if using alloca is troublesome.
1699 (YYSTACK_USE_ALLOCA): New flag macro.
1700 Define it for some systems and compilers.
1701 (YYSTACK_ALLOC): New macro.
1702 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1703 If it was malloc'd, free it.
1704
17051997-04-23 Richard Stallman <rms@gnu.org>
1706
1707 * src/bison.s1:
1708 (alloca) [__hpux]: Always define as __builtin_alloca.
1709
17101997-04-23 Richard Stallman <rms@gnu.org>
1711
1712 * bison.simple:
1713 (alloca) [__hpux]: Always define as __builtin_alloca.
1714
17151997-04-22 Richard Stallman <rms@gnu.org>
1716
1717 * src/bison.s1:
1718 [__hpux]: Include alloca.h (right for HPUX 10)
1719 instead of declaring alloca (right for HPUX 9).
1720
1721 * src/bison.s1 (__yy_memcpy):
1722 Declare arg `count' as unsigned int.
1723 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1724
17251997-04-22 Richard Stallman <rms@gnu.org>
1726
1727 * bison.simple:
1728 [__hpux]: Include alloca.h (right for HPUX 10)
1729 instead of declaring alloca (right for HPUX 9).
1730
1731 * bison.simple (__yy_memcpy):
1732 Declare arg `count' as unsigned int.
1733 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1734
17351997-01-03 Richard Stallman <rms@gnu.org>
1736
1737 * src/allocate.c: [__STDC__ or _MSC_VER]:
1738 Declare calloc and realloc to return void *.
1739
17401997-01-02 Richard Stallman <rms@gnu.org>
1741
1742 * src/system.h:
1743 [_MSC_VER]: Include stdlib.h and process.h.
1744 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1745
1746 * src/main.c (main): Return FAILURE as a value.
1747 (printable_version): Declare arg as int, not char.
1748
17491997-01-02 Richard Stallman <rms@gnu.org>
1750
1751 * Makefile.in (dist):
1752 Explicitly check for symlinks, and copy them.
1753
17541996-12-19 Richard Stallman <rms@gnu.org>
1755
1756 * src/files.c:
1757 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1758
17591996-12-18 Paul Eggert <eggert@gnu.org>
1760
1761 * src/bison.s1 (yyparse):
1762 If __GNUC__ and YYPARSE_PARAM are both defined,
1763 declare yyparse to have a void * argument.
1764
17651996-12-18 Paul Eggert <eggert@gnu.org>
1766
1767 * bison.simple (yyparse):
1768 If __GNUC__ and YYPARSE_PARAM are both defined,
1769 declare yyparse to have a void * argument.
1770
17711996-12-17 Richard Stallman <rms@gnu.org>
1772
1773 * src/reduce.c (nbits): Add some casts.
1774
17751996-08-12 Richard Stallman <rms@gnu.org>
1776
1777 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1778
17791996-08-12 Richard Stallman <rms@gnu.org>
1780
1781 * bison.simple: Test _MSDOS as well as _MSDOS_.
1782
17831996-07-31 Richard Stallman <rms@gnu.org>
1784
1785 * src/bison.s1:
1786 [__sun && __i386]: Include alloca.h.
1787
17881996-07-31 Richard Stallman <rms@gnu.org>
1789
1790 * bison.simple:
1791 [__sun && __i386]: Include alloca.h.
1792
17931996-07-30 Richard Stallman <rms@gnu.org>
1794
1795 * src/bison.s1: Comment change.
1796
1797 * src/bison.s1: Test _MSDOS_, not MSDOS.
1798
17991996-07-30 Richard Stallman <rms@gnu.org>
1800
1801 * bison.simple: Comment change.
1802
1803 * bison.simple: Test _MSDOS_, not MSDOS.
1804
18051996-06-01 Richard Stallman <rms@gnu.org>
1806
1807 * 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:
1808 Insert `_' macro around many string constants.
1809
1810 * src/main.c:
1811 Insert `_' macro around many string constants.
1812
1813 (main): Call setlocale, bindtextdomain and textdomain.
1814
1815 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1816 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1817 [ENABLE_NLS]: Include libintl.h.
1818 [ENABLE_NLS] (gettext): Define.
1819 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1820 (N_, PACKAGE, LOCALEDIR): New macros.
1821
18221996-06-01 Richard Stallman <rms@gnu.org>
1823
1824 * POTFILES.in: New file.
1825
1826 * Makefile.in (allocate.o):
1827 Define target explicitly.
1828
1829 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1830 (LDFLAGS): Set to @LDFLAGS@.
1831 (configure): Run autoconf only if preceding `cd' succeeds.
1832 (bison.s1): Redirect output to temporary file then move the
1833 temporary to the target, rather than redirecting directly to bison.s1.
1834 (clean): Remove config.status and config.log.
1835 (distclean): Don't remove config.status here.
1836
18371996-05-12 Richard Stallman <rms@gnu.org>
1838
1839 * src/bison.s1:
1840 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1841
18421996-05-12 Richard Stallman <rms@gnu.org>
1843
1844 * bison.simple:
1845 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1846
18471996-05-11 Richard Stallman <rms@gnu.org>
1848
1849 * src/bison.s1 (__yy_memcpy):
1850 Really reorder the args, as was supposedly done on Feb 14 1995.
1851 (yyparse): Calls changed accordingly.
1852
18531996-05-11 Richard Stallman <rms@gnu.org>
1854
1855 * Makefile.in (dist): Don't use $(srcdir).
1856
1857 * bison.simple (__yy_memcpy):
1858 Really reorder the args, as was supposedly done on Feb 14 1995.
1859 (yyparse): Calls changed accordingly.
1860
18611996-01-27 Richard Stallman <rms@gnu.org>
1862
1863 * src/output.c (output_rule_data):
1864 Test YYERROR_VERBOSE in the conditional
1865 around the definition of ttyname.
1866
18671995-12-29 Richard Stallman <rms@gnu.org>
1868
1869 * src/bison.s1:
1870 Fix line numbers in #line commands.
1871
18721995-12-29 Richard Stallman <rms@gnu.org>
1873
1874 * bison.simple:
1875 Fix line numbers in #line commands.
1876
18771995-12-27 Richard Stallman <rms@gnu.org>
1878
1879 * src/bison.s1 (YYPARSE_PARAM_DECL):
1880 In C++, make it always null.
1881 (YYPARSE_PARAM_ARG): New macro.
1882 (yyparse): Use YYPARSE_PARAM_ARG.
1883
18841995-12-27 Richard Stallman <rms@gnu.org>
1885
1886 * bison.simple (YYPARSE_PARAM_DECL):
1887 In C++, make it always null.
1888 (YYPARSE_PARAM_ARG): New macro.
1889 (yyparse): Use YYPARSE_PARAM_ARG.
1890
18911995-11-29 Richard Stallman <rms@gnu.org>
1892
1893 * doc/bison.texinfo:
1894 Describe literal string tokens, %raw, %no_lines, %token_table.
1895
18961995-11-29 Daniel Hagerty <hag@gnu.org>
1897
1898 * doc/bison.texinfo: Fixed update date
1899
19001995-10-16 Richard Stallman <rms@gnu.org>
1901
1902 * src/version.c: Version 1.25.
1903
19041995-10-16 Richard Stallman <rms@gnu.org>
1905
1906 * NEWS: *** empty log message ***
1907
19081995-10-16 Richard Stallman <rms@gnu.org>
1909
1910 * doc/bison.1, doc/bison.rnh:
1911 Add new options.
1912
19131995-10-15 Richard Stallman <rms@gnu.org>
1914
1915 * src/vmsgetargs.c, src/getargs.c:
1916 Added -n, -k, and -raw switches.
1917 (noparserflag, toknumflag, rawtoknumflag): New variables.
1918
1919 * src/symtab.h (SALIAS):
1920 New #define for adding aliases to %token.
1921 (struct bucket): Added `alias' field.
1922
1923 * src/reduce.c (reduce_grammar):
1924 Revise error message.
1925 (print_notices): Remove final `.' from error message.
1926
1927 * src/reader.c (reader_output_yylsp):
1928 New function.
1929 (readgram): Use `#if 0' around code that accepted %command
1930 inside grammar rules: The documentation doesn't allow it,
1931 and it will fail since the %command processors scan for the next %.
1932 (parse_token_decl): Extended the %token
1933 declaration to allow a multi-character symbol as an alias.
1934 (parse_thong_decl): New function.
1935 (read_declarations): Added %thong declarations.
1936 (read_declarations): Handle NOOP to deal with allowing
1937 % declarations as another means to specify the flags.
1938 (readgram): Allow %prec prior to semantics embedded in a rule.
1939 (skip_to_char, read_declarations, copy_definition)
1940 (parse_token_decl, parse_start_decl, parse_type_decl)
1941 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1942 (get_type_name, copy_guard, copy_action, readgram)
1943 (get_type, packsymbols): Revised most error messages.
1944 Changed `fatal' to `warnxxx' to avoid aborting for error.
1945 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1946 (read_declarations): Improve the error message for
1947 an invalid character. Do not abort.
1948 (read_declarations, copy_guard, copy_action): Use
1949 printable_version to avoid unprintable characters in printed output.
1950 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1951 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1952 Allow the type of a non-terminal can be given
1953 more than once, as long as all specifications give the same type.
1954
1955 * src/output.c:
1956 (output_headers, output_trailers, output, output_gram)
1957 (output_rule_data): Implement noparserflag variable.
1958 Implement toknumflag variable.
1959 (output): Call reader_output_yylsp to output LTYPESTR.
1960
1961 * src/main.c (main):
1962 If reader sees an error, don't process the grammar.
1963 (fatals): Updated to not use VARARGS1.
1964 (printable_version, int_to_string, warn, warni, warns, warnss)
1965 (warnsss): New error reporting functions. Avoid abort for error.
1966
1967 * src/lex.h:
1968 Added THONG and NOOP for alias processing.
1969 Added SETOPT for the new code that allows setting options with %flags.
1970
1971 * src/lex.c:
1972 Include getopt.h. Add some extern decls.
1973 (safegetc): New function to deal with EOF gracefully.
1974 (literalchar); new function to deal with reading \ escapes.
1975 (lex): Use literalchar.
1976 (lex): Implemented "..." tokens.
1977 (literalchar, lex, parse_percent_token): Made tokenbuffer
1978 always contain the token. This includes growing the token
1979 buffer while reading an integer.
1980 (parse_percent_token): Replaced if-else statement with percent_table.
1981 (parse_percent_token): Added % declarations as another
1982 way to specify the flags -n, -l, and -r. Also added hooks for
1983 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1984 major changes to files.c.
1985 (lex) Retain in the incoming stream a character following
1986 an incorrect '/'.
1987 (skip_white_space, lex): Revised most error messages
1988 and changed fatal to warn to avoid aborting.
1989 (percent_table): Added %thong declarations.
1990
1991 * src/gram.h: Comment changes.
1992
1993 * src/files.c (openfiles, open_extra_files, done):
1994 Add faction flag
1995 and actfile file. Handle noparserflag. Both for -n switch.
1996
1997 * src/conflicts.c (resolve_sr_conflict):
1998 Remove use of alloca.
1999
20001995-06-01 Jim Meyering <meyering@gnu.org>
2001
2002 * doc/bison.texinfo: *** empty log message ***
2003
20041995-05-06 Richard Stallman <rms@gnu.org>
2005
2006 * src/bison.s1: Comment change.
2007
20081995-05-06 Richard Stallman <rms@gnu.org>
2009
2010 * bison.simple: Comment change.
2011
20121995-05-03 Richard Stallman <rms@gnu.org>
2013
2014 * src/version.c: Version now 1.24.
2015
2016 * src/bison.s1: Change distribution terms.
2017
2018 * src/version.c: Version now 1.23.
2019
20201995-05-03 Richard Stallman <rms@gnu.org>
2021
2022 * doc/bison.texinfo:
2023 Rewrite "Conditions for Using Bison".
2024 Update version to 1.24.
2025
20261995-05-03 Richard Stallman <rms@gnu.org>
2027
2028 * bison.simple: Change distribution terms.
2029
20301995-02-23 Richard Stallman <rms@gnu.org>
2031
2032 * src/files.c: Test __VMS_POSIX as well as VMS.
2033
20341995-02-14 Jim Meyering <meyering@gnu.org>
2035
2036 * src/bison.s1 (__yy_memcpy):
2037 Renamed from __yy_bcopy to avoid
2038 confusion. Reverse FROM and TO arguments to be consistent with
2039 those of memcpy.
2040
20411995-02-14 Jim Meyering <meyering@gnu.org>
2042
2043 * bison.simple (__yy_memcpy):
2044 Renamed from __yy_bcopy to avoid
2045 confusion. Reverse FROM and TO arguments to be consistent with
2046 those of memcpy.
2047
20481994-11-10 David J. MacKenzie <djm@gnu.org>
2049
2050 * NEWS: reformat
2051
2052 * NEWS: New file.
2053
2054 * Makefile.in (DISTFILES): Include NEWS.
2055
2056 * Makefile.in (DISTFILES):
2057 Include install-sh, not install.sh.
2058
2059 * configure.in: Update to Autoconf v2 macro names.
2060
20611994-10-05 David J. MacKenzie <djm@gnu.org>
2062
2063 * Makefile.in: fix typo
2064
2065 * Makefile.in (prefix, exec_prefix):
2066 Let configure set them.
2067
20681994-09-28 David J. MacKenzie <djm@gnu.org>
2069
2070 * Makefile.in: Set datadir to $(prefix)/share.
2071
20721994-09-15 Richard Stallman <rms@gnu.org>
2073
2074 * src/bison.s1:
2075 Update copyright notice and GPL version.
2076
20771994-09-15 Richard Stallman <rms@gnu.org>
2078
2079 * bison.simple:
2080 Update copyright notice and GPL version.
2081
20821994-07-12 Richard Stallman <rms@gnu.org>
2083
2084 * src/reduce.c, src/reader.c:
2085 entered into RCS
2086
20871994-05-05 David J. MacKenzie <djm@gnu.org>
2088
2089 * Makefile.in: entered into RCS
2090
20911994-03-26 Richard Stallman <rms@gnu.org>
2092
2093 * src/bison.s1: entered into RCS
2094
20951994-03-26 Richard Stallman <rms@gnu.org>
2096
2097 * bison.simple: entered into RCS
2098
20991994-03-25 Richard Stallman <rms@gnu.org>
2100
2101 * src/main.c: entered into RCS
2102
21031994-03-24 Richard Stallman <rms@gnu.org>
2104
2105 * src/conflicts.c: entered into RCS
2106
21071994-01-02 Richard Stallman <rms@gnu.org>
2108
2109 * Makefile.in: *** empty log message ***
2110
21111993-11-21 Richard Stallman <rms@gnu.org>
2112
2113 * src/bison.s1: *** empty log message ***
2114
21151993-11-21 Richard Stallman <rms@gnu.org>
2116
2117 * doc/bison.texinfo: entered into RCS
2118
2119 * doc/bison.texinfo: *** empty log message ***
2120
21211993-11-21 Richard Stallman <rms@gnu.org>
2122
2123 * bison.simple: *** empty log message ***
2124
21251993-10-25 David J. MacKenzie <djm@gnu.org>
2126
2127 * doc/bison.texinfo: *** empty log message ***
2128
21291993-10-19 Richard Stallman <rms@gnu.org>
2130
2131 * src/bison.s1: *** empty log message ***
2132
21331993-10-19 Richard Stallman <rms@gnu.org>
2134
2135 * bison.simple: *** empty log message ***
2136
21371993-10-14 Richard Stallman <rms@gnu.org>
2138
2139 * src/bison.s1: *** empty log message ***
2140
21411993-10-14 Richard Stallman <rms@gnu.org>
2142
2143 * bison.simple: *** empty log message ***
2144
21451993-09-14 David J. MacKenzie <djm@gnu.org>
2146
2147 * doc/bison.texinfo: *** empty log message ***
2148
21491993-09-13 Noah Friedman <friedman@gnu.org>
2150
2151 * Makefile.in: *** empty log message ***
2152
21531993-09-10 Richard Stallman <rms@gnu.org>
2154
2155 * src/conflicts.c: *** empty log message ***
2156
2157 * src/system.h: entered into RCS
2158
21591993-09-10 Richard Stallman <rms@gnu.org>
2160
2161 * doc/bison.1: entered into RCS
2162
21631993-09-06 Noah Friedman <friedman@gnu.org>
2164
2165 * src/version.c: entered into RCS
2166
21671993-09-06 Noah Friedman <friedman@gnu.org>
2168
2169 * Makefile.in: *** empty log message ***
2170
21711993-07-30 David J. MacKenzie <djm@gnu.org>
2172
2173 * Makefile.in: *** empty log message ***
2174
21751993-07-24 Richard Stallman <rms@gnu.org>
2176
2177 * src/bison.s1: *** empty log message ***
2178
21791993-07-24 Richard Stallman <rms@gnu.org>
2180
2181 * bison.simple: *** empty log message ***
2182
21831993-07-08 David J. MacKenzie <djm@gnu.org>
2184
2185 * Makefile.in: *** empty log message ***
2186
21871993-07-04 Richard Stallman <rms@gnu.org>
2188
2189 * src/bison.s1: *** empty log message ***
2190
21911993-07-04 Richard Stallman <rms@gnu.org>
2192
2193 * bison.simple: *** empty log message ***
2194
21951993-06-26 David J. MacKenzie <djm@gnu.org>
2196
2197 * src/getargs.c: entered into RCS
2198
21991993-06-26 David J. MacKenzie <djm@gnu.org>
2200
2201 * doc/bison.texinfo: *** empty log message ***
2202
2203 * doc/bison.1: New file.
2204
22051993-06-25 Richard Stallman <rms@gnu.org>
2206
2207 * src/getargs.c: New file.
2208
22091993-06-16 Richard Stallman <rms@gnu.org>
2210
2211 * src/bison.s1: *** empty log message ***
2212
22131993-06-16 Richard Stallman <rms@gnu.org>
2214
2215 * bison.simple: *** empty log message ***
2216
22171993-06-03 Richard Stallman <rms@gnu.org>
2218
2219 * src/bison.s1: New file.
2220
22211993-06-03 Richard Stallman <rms@gnu.org>
2222
2223 * doc/bison.texinfo: *** empty log message ***
2224
22251993-06-03 Richard Stallman <rms@gnu.org>
2226
2227 * bison.simple: New file.
2228
22291993-05-19 Richard Stallman <rms@gnu.org>
2230
2231 * doc/bison.texinfo: New file.
2232
22331993-05-07 Noah Friedman <friedman@gnu.org>
2234
2235 * Makefile.in: *** empty log message ***
2236
22371993-04-28 Noah Friedman <friedman@gnu.org>
2238
2239 * src/reader.c: *** empty log message ***
2240
22411993-04-23 Noah Friedman <friedman@gnu.org>
2242
2243 * src/alloc.h: entered into RCS
2244
22451993-04-20 David J. MacKenzie <djm@gnu.org>
2246
2247 * src/version.c: *** empty log message ***
2248
2249 * src/files.c, src/allocate.c:
2250 entered into RCS
2251
2252 * src/reader.c: *** empty log message ***
2253
2254 * src/lex.c: entered into RCS
2255
2256 * src/conflicts.c: New file.
2257
2258 * src/symtab.c: entered into RCS
2259
2260 * src/alloc.h: New file.
2261
2262 * src/LR0.c: entered into RCS
2263
22641993-04-18 Noah Friedman <friedman@gnu.org>
2265
2266 * src/reader.c: New file.
2267
2268 * src/version.c: *** empty log message ***
2269
22701993-04-18 Noah Friedman <friedman@gnu.org>
2271
2272 * Makefile.in: *** empty log message ***
2273
22741993-04-17 Noah Friedman <friedman@gnu.org>
2275
2276 * Makefile.in: *** empty log message ***
2277
22781993-04-15 Richard Stallman <rms@gnu.org>
2279
2280 * src/main.c, src/files.c:
2281 New file.
2282
22831993-04-15 Noah Friedman <friedman@gnu.org>
2284
2285 * configure.in: entered into RCS
2286
2287 * configure.in: *** empty log message ***
2288
2289 * configure.in: New file.
2290
22911993-04-14 Richard Stallman <rms@gnu.org>
2292
2293 * Makefile.in: New file.
2294
22951993-04-13 Richard Stallman <rms@gnu.org>
2296
2297 * src/version.c: New file.
2298
22991993-03-25 Richard Stallman <rms@gnu.org>
2300
2301 * src/output.c: entered into RCS
2302
23031992-09-25 Richard Stallman <rms@gnu.org>
2304
2305 * configure.bat: entered into RCS
2306
23071992-06-22 Richard Stallman <rms@gnu.org>
2308
2309 * src/vmsgetargs.c: entered into RCS
2310
23111992-06-22 Richard Stallman <rms@gnu.org>
2312
2313 * doc/bison.rnh: entered into RCS
2314
23151992-04-20 David J. MacKenzie <djm@gnu.org>
2316
2317 * README: entered into RCS
2318
23191992-01-22 Richard Stallman <rms@gnu.org>
2320
2321 * src/machine.h: entered into RCS
2322
23231991-12-21 Richard Stallman <rms@gnu.org>
2324
2325 * src/lalr.c, src/closure.c:
2326 entered into RCS
2327
23281991-12-20 Richard Stallman <rms@gnu.org>
2329
2330 * src/state.h: entered into RCS
2331
23321991-12-18 Richard Stallman <rms@gnu.org>
2333
2334 * src/print.c, src/nullable.c, src/derives.c:
2335 entered into RCS
2336
23371991-11-03 David J. MacKenzie <djm@gnu.org>
2338
2339 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2340 entered into RCS
2341
23421988-09-09 Richard Stallman <rms@gnu.org>
2343
2344 * src/bison.hairy: entered into RCS
2345
23461987-12-16 Richard Stallman <rms@gnu.org>
2347
2348 * REFERENCES: entered into RCS