]> git.saurik.com Git - bison.git/blame - ChangeLog
More cvsignore.
[bison.git] / ChangeLog
CommitLineData
976e528f
AD
12001-08-07 Pascal Bart <pascal.bart@epita.fr>
2
3 * tests/atconfig.in (CPPFLAGS): Fix.
4
20e8e5ca
AD
52001-08-07 Akim Demaille <akim@epita.fr>
6
7 * src/print_graph.c (quote): New.
8 (print_core): Use it.
9
3e3da797
AD
102001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_@epita.fr>
11
3e3da797
AD
12 * src/vcg.c (complain.h): Include it.
13 Unepitaize `return' invocations.
c4b66126
AD
14 [NDEBUG] (main): Remove.
15 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * memebers.
16 * src/files.c (open_files): Initialize graph_obstack.
17 * src/print_graph.c (print_actions): CPP out useless code.
18 (print_core): Don't output the last `\n' in labels.
19 Use `quote'.
20 * src/files.c (output_files): Output the VCG file.
21 * src/main.c (main): Invoke print_graph ();
3e3da797 22
22c2cbc0
AD
232001-08-06 Marc Autret <autret_@epita.fr>
24
25 Automaton VCG graph output.
26 Using option ``-g'' or long option ``--graph'', you can generate
27 a gram_filename.vcg file containing a VCG description of the LALR (1)
28 automaton of your grammar.
29
30 * src/main.c: Call to print_graph() function.
31 * src/getargs.h: Update.
32 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
33 (graph_flag): New flag.
34 (longopts): Update.
35 (getargs): Add case `g'.
36 * src/files.c (graph_obstack): New obstack struct.
37 (open_files): Initialize new obstack.
38 (output_files): Saves graph_obstack if required.
39 * src/files.h (graph_obstack): New extern declaration.
40 * src/Makefile.am: Add new source files.
41
ce4d5ce0
AD
422001-08-06 Marc Autret <autret_@epita.fr>
43
44 * src/print_graph.c, src/print_graph.h (graph): New.
45 * src/vcg.h: New file.
46 * src/vcg.c: New file, VCG graph handling.
47
7333d403
AD
482001-08-06 Marc Autret <autret_m@epita.fr>
49
50 Add of %source_extension and %header_extension which specify
51 the source or/and the header output file extension.
52
53 * src/files.c (compute_base_names): Remove initialisation of
54 src_extension and header_extension.
55 (compute_exts_from_gf): Update.
56 (compute_exts_from_src): Update.
57 (output_files): Update.
58 * src/reader.c (parse_header_extension_decl): New.
59 (parse_source_extension_decl): New.
60 (read_declarations): New case statements for the new tokens.
61 * src/lex.c (percent_table): Add entries for %source_extension
62 and %header_extension.
63 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
64
84163231
AD
652001-08-06 Marc Autret <autret_m@epita.fr>
66
67 * configure.in: Bump to 1.28c.
68 * doc/bison.texinfo: Texinfo thingies.
69
8303fc42
AD
702001-08-04 Pascal Bart <pascal.bart@epita.fr>
71
72 * tests/atconfig.in (CPPFLAGS): Add.
73 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
74
70a84437
AD
752001-08-03 Akim Demaille <akim@epita.fr>
76
77 Version 1.28b.
78
2ce10144
AD
792001-08-03 Akim Demaille <akim@epita.fr>
80
81 * tests/Makefile.am (check-local): Ship testsuite.
82 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
83 Include `string.h'.
84
1e3e4bc1
AD
852001-08-03 Akim Demaille <akim@epita.fr>
86
87 * configure.in: Try using -Wformat when compiling.
88
42b45b7f
AD
892001-08-03 Akim Demaille <akim@epita.fr>
90
91 * configure.in: Bump to 1.28b.
92
8f13fe33
AD
932001-08-03 Akim Demaille <akim@epita.fr>
94
95 * src/complain.c: Adjust strerror_r portability issues.
96
b37ba92c
AD
972001-08-03 Akim Demaille <akim@epita.fr>
98
99 Version 1.28a.
100
b0ce6046
AD
1012001-08-03 Akim Demaille <akim@epita.fr>
102
103 * src/getargs.c, src/getarg.h (skeleton)): Constify.
104 * src/lex.c (literalchar): Avoid name clashes on `buf'.
105 * src/getargs.c: Include complain.h.
106 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
107 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
108
d01c415b
AD
1092001-08-03 Akim Demaille <akim@epita.fr>
110
111 * src/reader.c (readgram): Display hidden chars in error messages.
112
459dd1a6
AD
1132001-08-03 Akim Demaille <akim@epita.fr>
114
115 Update to gettext 0.10.39.
116
53b74c0c
AD
1172001-08-03 Akim Demaille <akim@epita.fr>
118
119 * lib/strspn.c: New.
120
234a3be3
AD
1212001-08-01 Marc Autret <autret_m@epita.fr>
122
123 * doc/bison.texinfo: Update.
124 * doc/bison.1 (mandoc): Update.
125 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
126 * src/files.c: Support output files extensions computing.
127 (src_extension): New static variable.
128 (header_extension): New static variable.
129 (tr): New function.
130 (get_extension_index): New function, gets the index of an extension
131 filename in a string.
132 (compute_exts_from_gf): New function, computes extensions from the
133 grammar file extension.
134 (compute_exts_from_src): New functions, computes extensions from the
135 C source file extension, file given by ``-o'' option.
136 (compute_base_names): Update.
137 (output_files): Update.
138
847bf1f5
AD
1392001-08-01 Robert Anisko <anisko_r@epita.fr>
140
d995fee7 141 * doc/bison.texi: Document @$.
847bf1f5
AD
142 (Locations): New section.
143
d074a105
AD
1442001-07-18 Akim Demaille <akim@epita.fr>
145
146 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
147 * config/prev-version.txt, config/move-if-change: New.
148 * Makefile.am: Adjust.
149
3419715d
AD
1502001-07-08 Pascal Bart <pascal.bart@epita.fr>
151
152 * src/bison.simple (yyparse): Suppress warning `comparaison
153 between signed and unsigned'.
154
62ab6972
AD
1552001-07-05 Pascal Bart <pascal.bart@epita.fr>
156
157 * src/getargs.h (raw_flag): Remove.
158 * src/getargs.c: Die on `-r'/`--raw'.
159 * src/lex.c (parse_percent_token): Die on `%raw'.
160 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
161 * tests/calc.at: Suppress test with option `--raw'.
162
1e24cc5b
AD
1632001-07-14 Akim Demaille <akim@epita.fr>
164
165 * config/: New.
166 * configure.in: Require Autoconf 2.50.
167 Update to gettext 0.10.38.
168
32dfccf8
AD
1692001-03-16 Akim Demaille <akim@epita.fr>
170
171 * doc/bison.texinfo: ANSIfy the examples.
172
cd5bd6ac
AD
1732001-03-16 Akim Demaille <akim@epita.fr>
174
175 * getargs.c (skeleton): New variable.
176 (longopts): --skeleton is a new option.
177 (shortopts, getargs): -S is a new option.
178 * getargs.h: Declare skeleton.
179 * output.c (output_parser): Use it.
180
5141b016
AD
1812001-03-16 Akim Demaille <akim@epita.fr>
182
183 * m4/strerror_r.m4: New.
184 * m4/error.m4: Run AC_FUNC_STRERROR_R.
185 * lib/error.h, lib/error.c: Update.
186
447992b9
AD
1872001-03-16 Akim Demaille <akim@epita.fr>
188
189 * src/getargs.c (longopts): Clean up.
190
274d42ce
AD
1912001-02-21 Akim Demaille <akim@epita.fr>
192
193 * src/reader.c (gensym): `gensym_count' is your own.
194 Use a static buf to create the symbol name, as token_buffer is no
195 longer a buffer.
196
22c821f3
AD
1972001-02-08 Akim Demaille <akim@epita.fr>
198
199 * src/conflicts.c (conflict_report): Be sure not to append to res
200 between two calls, which could happen if both first sprintf were
201 skipped, but not the first cp += strlen.
202
18569462
AD
2032001-02-08 Akim Demaille <akim@epita.fr>
204
205 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
206 New, from fileutils 4.0.37.
207 * configure.in: Require Autoconf 2.49c. I took some time before
208 making this decision. This is the only way out for portability
209 issues in Bison, it would mean way too much duplicate effort to
210 import in Bison features implemented in 2.49c since 2.13.
211 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
212
0d8f3c8a
AD
2132001-02-02 Akim Demaille <akim@epita.fr>
214
215 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 216 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 217
f17bcd1f
AD
2182001-01-19 Akim Demaille <akim@epita.fr>
219
220 Get rid of the ad hoc handling of token_buffer in the scanner: use
221 the obstacks.
222
223 * src/lex.c (token_obstack): New.
224 (init_lex): Initialize it. No longer call...
225 (grow_token_buffer): this. Remove it.
226 Adjust all the places which used it to use the obstack.
227
511e79b3
AD
2282001-01-19 Akim Demaille <akim@epita.fr>
229
230 * src/lex.h: Rename all the tokens:
231 s/\bENDFILE\b/tok_eof/g;
232 s/\bIDENTIFIER\b/tok_identifier/g;
233 etc.
234 Let them be enums, not #define, to ease debugging.
235 Adjust all the code.
236
0d6508ef
AD
2372001-01-18 Akim Demaille <akim@epita.fr>
238
239 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
240 * src/lex.c (maxtoken, grow_token_buffer): Static.
241
6deb4447
AD
2422001-01-18 Akim Demaille <akim@epita.fr>
243
244 Since we now use obstacks, more % directives can be enabled.
245
246 * src/lex.c (percent_table): Also accept `%yacc',
247 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
248 `%debug'.
249 Handle the actions for `%semantic_parser' and `%pure_parser' here,
250 instead of returning a token.
251 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
252 * src/reader.c (read_declarations): Adjust.
253 * src/files.c (open_files): Don't call `compute_base_names', don't
254 compute `attrsfile' since they depend upon data which might be
255 *in* the input file now.
256 (output_files): Do it here.
257 * src/output.c (output_headers): Document the fact that this patch
258 introduces a guaranteed SEGV for semantic parsers.
259 * doc/bison.texinfo: Document them.
260 * tests/suite.at: Exercise these %options.
261
ff4423cc
AD
2622000-12-20 Akim Demaille <akim@epita.fr>
263
264 Also handle the output file (--verbose) with obstacks.
265
266 * files.c (foutput): Remove.
267 (output_obstack): New.
268 Adjust all dependencies.
269 * src/conflicts.c: Return a string.
270 * src/system.h (obstack_grow_string): Rename as...
271 (obstack_sgrow): this. Be ready to work with non literals.
272 (obstack_fgrow4): New.
273
956dba3a
AD
2742000-12-20 Akim Demaille <akim@epita.fr>
275
276 * src/files.c (open_files): Fix the computation of short_base_name
277 in the case of `-o foo.tab.c'.
278
337bab46
AD
2792000-12-20 Akim Demaille <akim@epita.fr>
280
281 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
282 (copy_dollar): Now that everything uses obstacks, get rid of the
283 FILE * parameters.
284
5d3214b8
AD
2852000-12-20 Akim Demaille <akim@epita.fr>
286
287 * src/files.c (open_files): Actually the `.output' file is based
288 on the short_base_name, not base_name.
289 * tests/suite.at (Checking output file names): Adjust.
290
29092a57
AD
2912000-12-20 Akim Demaille <akim@epita.fr>
292
293 * src/bison.s1: Remove, we now use directly...
294 * src/bison.simple: this.
295 * src/Makefile.am: Use pkgdata instead of data.
296
ea5607fd
AD
2972000-12-20 Akim Demaille <akim@epita.fr>
298
299 * src/files.c (guard_obstack): New.
300 (open_files): Initialize it.
301 (output_files): Dump it...
302 * src/files.h: Export it.
303 * src/reader.c (copy_guard): Use it.
304
27110317
AD
3052000-12-19 Akim Demaille <akim@epita.fr>
306
307 * src/files.c (outfile, defsfile, actfile): Removed as global
308 vars.
309 (open_files): Don't compute them.
310 (output_files): Adjust.
311 (base_name, short_base_name): Be global.
312 Adjust dependencies.
313
19c50364
AD
3142000-12-19 Akim Demaille <akim@epita.fr>
315
316 * src/files.c (strsuffix): New.
317 (stringappend): Be just like strcat but allocate.
318 (base_names): Eve out from open_files.
319 Try to simplify the rather hairy computation of base_name and
320 short_base_name.
321 (open_files): Use it.
322 * tests/suite.at (Checking output file names): New test.
323
573c1d9f
AD
3242000-12-19 Akim Demaille <akim@epita.fr>
325
326 * src/system.h (obstack_grow_literal_string): Rename as...
327 (obstack_grow_string): this.
328 * src/output.c (output_parser): Recognize `%% actions' instead of
329 `$'.
330 * src/bison.s1: s/$/%% actions/.
331 * src/bison.hairy: Likewise.
332
ef7ddedd
AD
3332000-12-19 Akim Demaille <akim@epita.fr>
334
335 * src/output.c (output_parser): Compute the `#line' lines when
336 there are.
337 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
338 Suggested by Hans Aberg.
339
ff61dabd
AD
3402000-12-19 Akim Demaille <akim@epita.fr>
341
342 Let the handling of the skeleton files be local to the procedures
343 that use it.
344
345 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
346 longer static.
347 (fparser, open_extra_files): Remove.
348 (open_files, output_files): Don't take care of fparser.
349 * src/files.h: Adjust.
350 * src/output.c (output_parser): Open and close the file to the
351 skeleton.
352 * src/reader.c (read_declarations): When %semantic_parser, open
353 fguard.
354
55b96341
AD
3552000-12-19 Akim Demaille <akim@epita.fr>
356
357 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
358 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
359
358c15b7
AD
3602000-12-19 Akim Demaille <akim@epita.fr>
361
362 * src/files.c (open_files): Yipee! We no longer need all the code
363 looking for `/tmp' since we have no tmp file.
364
7de3329e
AD
3652000-12-19 Akim Demaille <akim@epita.fr>
366
367 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
368 New macros.
369 * src/files.c (open_files): Less dependency on MSDOS etc.
370
3abcd459
AD
3712000-12-14 Akim Demaille <akim@epita.fr>
372
373 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
374 Provide a default definition.
375 Use it when executing the default @ action.
376 * src/reader.c (reader_output_yylsp): No longer include
377 `timestamp' and `text' in the default YYLTYPE.
378
2a91a95e
AD
3792000-12-12 Akim Demaille <akim@epita.fr>
380
381 * src/reader.c (copy_definition, parse_union_decl, copy_action)
382 (copy_guard): Quote the file names.
383 Reported by Laurent Mascherpa.
384
14d3eb9b
AD
3852000-12-12 Akim Demaille <akim@epita.fr>
386
387 * src/output.c (output_headers, output_program, output): Be sure
388 to escape special characters when outputting filenames.
389 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
390 (output_headers): Don't depend on them, Use ACTSTR.
391
d7045ec6
AD
3922000-11-17 Akim Demaille <akim@epita.fr>
393
394 * lib/obstack.h: Formatting changes.
395 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
396 prevents type checking.
397 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
398 cast the value to (void *): assigning a `foo *' to a `void *'
399 variable is valid.
400 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
401 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
402 append characters.
403
6fd54b73
AD
4042000-11-17 Akim Demaille <akim@epita.fr>
405
406 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
407 as...
408 (suite.m4, regression.m4, calc.m4): these.
409 * tests/atgeneral.m4: Update from CVS Autoconf.
410
4c50eae6
AD
4112000-11-17 Akim Demaille <akim@epita.fr>
412
413 * tests/regression.m4 (%union and --defines): New test,
414 demonstrating a current bug in the obstack implementation.
415
a35f64ea
AD
4162000-11-17 Akim Demaille <akim@epita.fr>
417
418 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
419 macros.
420 Use them to declare the variables which are global or local to
421 `yyparse'.
422
7de23534
AD
4232000-11-17 Akim Demaille <akim@epita.fr>
424
425 * acconfig.h: Remove, no longer used.
426
aa7815f5
AD
4272000-11-07 Akim Demaille <akim@epita.fr>
428
429 * src: s/Copyright (C)/Copyright/g.
430
5af1f549
AD
4312000-11-07 Akim Demaille <akim@epita.fr>
432
433 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
434 defining.
435 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
436
553e2b22
AD
4372000-11-07 Akim Demaille <akim@epita.fr>
438
439 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
440 Merge in a single CPP if/else.
441
8a4f41d6
AD
4422000-11-07 Akim Demaille <akim@epita.fr>
443
444 * src/output.c (output): Remove useless variables.
445 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
446 argument `data' for consistency with the prototypes.
447 Qualify it `const'.
448 (obstack_copy, obstack_copy0): Rename the second argument as
449 `address' for consistency. Qualify it `const'.
450 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
451 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
452 `const' their input argument (`data' or `address').
453 Adjust the corresponding macros to include `const' in casts.
454
095a3fb5
AD
4552000-11-03 Akim Demaille <akim@epita.fr>
456
457 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
458 s/PFILE1/BISON_HAIRY/.
459 Adjust dependencies.
460
d1cdce7c
AD
4612000-11-03 Akim Demaille <akim@epita.fr>
462
090c5ebf 463 For some reason, this was not applied.
d1cdce7c
AD
464
465 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
466 `unlink': it's no longer used.
467
9311529b
AD
4682000-11-03 Akim Demaille <akim@epita.fr>
469
470 * src/files.c (skeleton_find): New function, eved out of...
471 (open_files, open_extra_files): here.
472
d8880f69
AD
4732000-11-03 Akim Demaille <akim@epita.fr>
474
475 Don't use `atexit'.
476
477 * src/files.c (obstack_save): New function.
478 (done): Rename as...
479 (output_files): this.
480 Use `obstack_save'.
481 * src/main.c (main): Don't use `atexit' to register `done', since
482 it no longer has to remove tmp files, just call `output_files'
483 when there are no errors.
484
0dbb648e
AD
4852000-11-02 Akim Demaille <akim@epita.fr>
486
487 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
488 `unlink': it's no longer used.
489 * src/files.h: Formatting changes.
490
896fe5c1
AD
4912000-11-02 Akim Demaille <akim@epita.fr>
492
493 Remove the last uses of mktemp and unlink/delete.
494
495 * src/files.c (fdefines, ftable): Removed.
496 (defines_ostack, table_obstack): New.
497 Adjust dependencies of the former into uses of the latter.
498 * src/output.c (output_short_or_char_table, output_short_table):
499 Convert to using obstacks.
500 * src/reader.c (copy_comment2): Accept one FILE * and two
501 obstacks.
502 (output_token_defines, reader_output_yylsp): Use obstacks.
503 * src/system.h (obstack_fgrow3): New.
504
dd60faec
AD
5052000-11-01 Akim Demaille <akim@epita.fr>
506
507 Change each use of `fattrs' into a use of `attrs_obstack'.
508
509 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
510 * src/files.c (fattrs): Remove.
511 (attrs_obstack): New.
512 Adjust all dependencies.
513 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
514
8c7ebe49
AD
5152000-11-01 Akim Demaille <akim@epita.fr>
516
517 Introduce obstacks.
518 Change each use of `faction' into a use of `action_obstack'.
519
520 * lib/obstack.h, lib/obstack.c: New files.
521 * src/files.c (faction): Remove.
522 (action_obstack): New.
523 Adjust all dependencies.
524
77aee789
AD
5252000-10-20 Akim Demaille <akim@epita.fr>
526
527 * lib/quote.h (PARAMS): New macro. Use it.
528
43591cec
AD
5292000-10-16 Akim Demaille <akim@epita.fr>
530
531 * src/output.c (output_short_or_char_table): New function.
532 (output_short_table, output_token_translations): Use it.
533 (goto_actions): Use output_short_table.
534
1e9798d5
AD
5352000-10-16 Akim Demaille <akim@epita.fr>
536
537 * src/symtab.c (bucket_new): New function.
538 (getsym): Use it.
539
540 * src/output.c (output_short_table): New argument to display the
541 comment associated with the table.
542 Adjust dependencies.
543 (output_gram): Use it.
544 (output_rule_data): Nicer output layout for YYTNAME.
545
f282676b
AD
5462000-10-16 Akim Demaille <akim@epita.fr>
547
548 * src/lex.c (read_typename): New function.
549 (lex): Use it.
550 * src/reader.c (copy_dollar): Likewise.
551
550a72a3
AD
5522000-10-16 Akim Demaille <akim@epita.fr>
553
554 * src/reader.c (copy_comment2): Expect the input stream to be on
555 the `/' which is suspected to open a comment, instead of being
556 called after `//' or `/*' was read.
557 (copy_comment, copy_definition, parse_union_decl, copy_action)
558 (copy_guard): Adjust.
559
131e2fef
AD
5602000-10-16 Akim Demaille <akim@epita.fr>
561
562 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
563 `read_signed_integer'.
564
79282c5a
AD
5652000-10-16 Akim Demaille <akim@epita.fr>
566
567 * src/reader.c (copy_dollar): New function.
568 (copy_guard, copy_action): Use it.
569
ff4a34be
AD
5702000-10-16 Akim Demaille <akim@epita.fr>
571
572 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
573 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
574 New files, from Fileutils 4.0.27.
575 * src/main.c (printable_version): Remove.
576 * src/lex.c, src/reader.c: Use `quote'.
577
5782000-10-04 Akim Demaille <akim@epita.fr>
579
580 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
581
14ded682
AD
5822000-10-04 Akim Demaille <akim@epita.fr>
583
584 * doc/bison.texinfo: Various typos spotted by Neil Booth.
585
8e03724b
AD
5862000-10-04 Akim Demaille <akim@epita.fr>
587
588 When a literal string is used to define two different tokens,
589 `bison -v' segfaults.
590 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
591
592 * tests/regression.m4: New file.
593 Include the core of the sample provided by Piotr Gackiewicz.
594 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
595 properly.
596
a9e64249
AD
5972000-10-04 Akim Demaille <akim@epita.fr>
598
599 * src/reader.c (parse_expect_decl): Keep `count' within the size
600 of `buffer'.
601 From Neil Booth.
602
da9abf43
AD
6032000-10-02 Paul Eggert <eggert@twinsun.com>
604
605 * bison.s1 (yyparse): Assign the default value
606 unconditionally, to avoid a GCC warning and make the parser a
607 tad smaller.
608
c33638bb
AD
6092000-10-02 Akim Demaille <akim@epita.fr>
610
611 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
612 options.
613
444c570a
AD
6142000-10-02 Akim Demaille <akim@epita.fr>
615
616 * src/derives.c, src/print.c, src/reduce.c: To ease the
617 translation, move some `\n' out of the translated strings.
618
89cab50d
AD
6192000-10-02 Akim Demaille <akim@epita.fr>
620
621 The location tracking mechanism is precious for parse error
622 messages. Nevertheless, it is enabled only when `@n' is used in
623 the grammar, which is a different issue (you can use it in error
624 message, but not in the grammar per se). Therefore, there should
625 be another means to enable it.
626
627 * src/getargs.c (getargs): Support `--locations'.
628 (usage): Report it.
629 * src/getargs.h (locationsflag): Export it.
630 * src/lex.c (percent_table): Support `%locations'.
631 * src/reader.c (yylsp_needed): Remove this variable, now replaced
632 with `locationsflag'.
633 * doc/bison.texinfo: Document `--locations' and `%locations'.
634 Sort the options.
635 * tests/calc.m4: Test it.
636
637 For regularity of the names, replace each
638 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
639 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
640 In addition replace each `flag' with `_flag'.
641
d6c2cba0
AD
6422000-10-02 Akim Demaille <akim@epita.fr>
643
644 Also test parse error messages, including with YYERROR_VERBOSE.
645
646 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
647 associative).
648 Use it to check the computations.
649 Use it to check `nonassoc' is honored.
650 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
651 `--yyerror-verbose'.
652 (_AT_CHECK_CALC): Adjust to this option.
653 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
654
5a35a6cb
AD
6552000-10-02 Akim Demaille <akim@epita.fr>
656
657 Test also `--verbose', `--defines' and `--name-prefix'. Testing
658 the latter demonstrates a flaw in the handling of non debugging
659 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
660 was used in order to simplify:
661
662 #if YYDEBUG
663 if (yydebug)
664 {
665 ...
666 }
667 #endif
668
669 into
670
671 if (yydebug)
672 {
673 ...
674 }
675
676 unfortunately this leads to a CPP conflict when
677 `--name-prefix=foo' is used since it produces `#define yydebug
678 foodebug'.
679
680 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
681 (YYDPRINTF): New macro.
682 Spread its use.
683 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
684 the bison options.
685 Also test `--verbose', `--defines' and `--name-prefix'.
686
71da9eea
AD
6872000-10-02 Akim Demaille <akim@epita.fr>
688
689 Improve the readability of the produced parsers.
690
691 * src/bison.s1: Formatting changes.
692 Improve the comment related to the `$' mark.
693 (yydefault): Don't fall through to `yyresume': `goto' there.
694 * src/output.c (output_parser): When the `$' is met, skip the end
695 of its line.
696 New variable, `number_of_dollar_signs', to check there's exactly
697 one `$' in the parser skeleton.
698
95e36146
AD
6992000-10-02 Akim Demaille <akim@epita.fr>
700
701 * lib/xstrdup.c: New file, from the fileutils.
702 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
703 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
704 instead of strlen + xmalloc + strcpy.
705 * src/symtab.c (copys): Remove, use xstrdup instead.
706
d7020c20
AD
7072000-10-02 Akim Demaille <akim@epita.fr>
708
709 * src/gram.h (associativity): New enum type which replaces the
710 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
711 `right_assoc', `left_assoc' and `non_assoc'.
712 Adjust all dependencies.
713 * src/reader.c: Formatting changes.
714 (LTYPESTR): Don't define it, use it as a literal in
715 `reader_output_yylsp'.
716 * src/symtab.h (symbol_class): New enum type which replaces the
717 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
718 `sunknown', `stoken and `snterm'.
719
1916f98e
AD
7202000-10-02 Akim Demaille <akim@epita.fr>
721
722 * src/getargs.c (fixed_outfiles): Rename as...
723 (yaccflag): for consistency and accuracy.
724 Adjust dependencies.
725
d7913476
AD
7262000-10-02 Akim Demaille <akim@epita.fr>
727
728 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
729 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
730 difficult and introduced a lot of core dump. It turns out that
731 Bison used an implementation of `xmalloc' based on `calloc', and
732 at various places it does depend upon the initialization to 0. I
733 have not tried to isolate the pertinent places, and all the former
734 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
735 someone should address this issue.
736
737 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
738 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
739 files.
740 Adjust dependencies.
741 * src/warshall.h: New file.
742 Propagate.
743
340ef489
AD
7442000-10-02 Akim Demaille <akim@epita.fr>
745
746 Various anti-`extern in *.c' changes.
747
748 * src/system.h: Include `assert.h'.
749
b2ca4022
AD
7502000-10-02 Akim Demaille <akim@epita.fr>
751
752 * src/state.h (nstates, final_state, first_state, first_shift)
753 (first_reduction): Move their exportation from here...
754 * src/LR0.h: to here.
755 Adjust dependencies.
756 * src/getargs.c (statisticsflag): New variable.
757 Add support for `--statistics'.
758 Adjust dependencies.
759
760 Remove a lot of now useless `extern' statements in most files.
761
403b315b
AD
7622000-10-02 Akim Demaille <akim@epita.fr>
763
764 * src/LR0.h: New file.
765 Propagate its use.
766
07a58c13
AD
7672000-10-02 Akim Demaille <akim@epita.fr>
768
769 * src/print.h: New file.
770 Propagate its use.
771 * src/print.c: Formatting and ordering changes.
772 (verbose, terse): Replace with...
773 (print_results): this new function.
774 Adjust dependencies.
775
0619caf0
AD
7762000-10-02 Akim Demaille <akim@epita.fr>
777
778 * src/conflicts.c (conflict_report): New function.
779 (conflict_log, verbose_conflict_log): Replace with...
780 (print_conflicts): this function.
781 Adjust dependencies.
782 * src/conflicts.h: New file.
783 Propagate its inclusion.
784
3519ec76
AD
7852000-10-02 Akim Demaille <akim@epita.fr>
786
787 * src/nullable.h: New file.
788 Propagate its inclusion.
789 * src/nullable.c: Formatting changes.
790
015acc48
AD
7912000-10-02 Akim Demaille <akim@epita.fr>
792
793 * src/reduce.h: New file.
794 Propagate its inclusion.
795 * src/reduce.c: Topological sort and other formatting changes.
796 (bool, TRUE, FALSE): Move their definition to...
797 * src/system.h: here.
798
8963a27b
AD
7992000-10-02 Akim Demaille <akim@epita.fr>
800
801 * src/files.c: Formatting changes.
802 (tryopen, tryclose, openfiles): Rename as...
803 (xfopen, xfclose, open_files): this.
804 (stringappend): static.
805 * src/files.h: Complete the list of exported symbols.
806 Propagate its use.
807
a70083a3
AD
8082000-10-02 Akim Demaille <akim@epita.fr>
809
810 * src/reader.h: New file.
811 Propagate its use instead of tedious list of `extern' and
812 prototypes.
813 * src/reader.c: Formatting changes, topological sort,
814 s/register//.
815
abadc117
AD
8162000-10-02 Akim Demaille <akim@epita.fr>
817
818 * src/lex.h: Prototype `lex.c' exported functions.
819 * src/reader.c: Adjust.
820 * src/lex.c: Formatting changes.
821 (safegetc): Rename as...
822 (xgetc): this.
823
720d742f
AD
8242000-10-02 Akim Demaille <akim@epita.fr>
825
826 * src/lalr.h: New file.
827 Propagate its inclusion instead of prototypes and `extern'.
828 * src/lalr.c: Formatting changes, topological sorting etc.
829
f2acea59
AD
8302000-10-02 Akim Demaille <akim@epita.fr>
831
832 * src/output.c (token_actions): Introduce a temporary array,
833 YYDEFACT, that makes it possible for this function to use
834 output_short_table.
835
d019d655
AD
8362000-10-02 Akim Demaille <akim@epita.fr>
837
838 `user_toknums' is output as a `short[]' in `output.c', while it is
839 defined as a `int[]' in `reader.c'. For consistency with the
840 other output tables, `user_toknums' is now defined as a table of
841 shorts.
842
843 * src/reader.c (user_toknums): Be a short table instead of an int
844 table.
845 Adjust dependencies.
846
847 Factor the short table outputs.
848
849 * src/output.c (output_short_table): New function.
850 * src/output.c (output_gram, output_stos, output_rule_data)
851 (output_base, output_table, output_check): Use it.
852
6c89f1c1
AD
8532000-10-02 Akim Demaille <akim@epita.fr>
854
855 * src/output.c (output): Topological sort of the functions, in
856 order to get rid of the `static' prototypes.
857 No longer use `register'.
858 * src/output.h: New file.
859 Propagate its inclusion in files explicitly prototyping functions
860 from output.c.
861
d9efd181
AD
8622000-09-21 Akim Demaille <akim@epita.fr>
863
864 * src/atgeneral.m4: Update from Autoconf.
865
c29240e7 8662000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
867
868 * src/closure.h: New file.
869 * src/closure.c: Formatting changes, topological sort over the
870 functions, use of closure.h.
871 (initialize_closure, finalize_closure): Rename as...
872 (new_closure, free_closure): these. Adjust dependencies.
873 * src/LR0.c: Formatting changes, topological sort, use of
874 cloture.h.
875 (initialize_states): Rename as...
876 (new_states): this.
877 * src/Makefile.am (noinst_HEADERS): Adjust.
878
499daa50
AD
8792000-09-20 Akim Demaille <akim@epita.fr>
880
881 * src/acconfig.h: Don't protect config.h against multiple
882 inclusion.
883 Don't define PARAMS.
884 * src/system.h: Define PARAMS.
885 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
886 purpose of config.h. system.h must not try to fix wrong
887 definitions in config.h.
888
cc84fd5d
AD
8892000-09-20 Akim Demaille <akim@epita.fr>
890
891 * src/derives.h: New file.
892 * src/main.c, src/derives.h: Use it.
893 Formatting changes.
894 * src/Makefile.am (noinst_HEADERS): Adjust.
895
db5b3a89
AD
8962000-09-20 Akim Demaille <akim@epita.fr>
897
898 * tests/atgeneral.m4: Update from Autoconf.
899 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
900 (AT_CHECK_CALC): New macros.
901 Use these macros to test bison with options `', `--raw',
902 `--debug', `--yacc', `--yacc --debug'.
903
ceed8467
AD
9042000-09-19 Akim Demaille <akim@epita.fr>
905
906 * src/output.c: Formatting changes.
907 * src/machine.h: Remove, leaving its contents in...
908 * src/system.h: here.
909 Include stdio.h.
910 Adjust all dependencies on stdio.h and machine.h.
911 * src/getargs.h: New file.
912 Let all `extern' declarations about getargs.c be replaced with
913 inclusion of `getargs.h'.
914 * src/Makefile.am (noinst_HEADERS): Adjust.
915
916 * tests/calc.m4 (yyin): Be initialized in main, not on the global
917 scope.
918 (yyerror): Returns void, not int.
919 * doc/bison.texinfo: Formatting changes.
920
05a1d24b
AD
9212000-09-19 Akim Demaille <akim@epita.fr>
922
923 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
924 portable.
925
cbd25751
AD
9262000-09-18 Akim Demaille <akim@epita.fr>
927
928 * configure.in: Append WARNING_CFLAGS to CFLAGS.
929 * src/Makefile.am (INCLUDES): Don't.
930 Be ready to fetch headers in lib/.
931
13863333
AD
9322000-09-18 Akim Demaille <akim@epita.fr>
933
934 * doc/bison.texinfo: Update the copyright.
935 ANSIfy and GNUify the examples.
936 Remove the old menu.
937
0d533154
AD
9382000-09-18 Akim Demaille <akim@epita.fr>
939
940 First set of tests: use the `calc' example from the documentation.
941
942 * src/bison.s1 (yyparse): Condition the code using `yytname' which
943 is defined only when YYDEBUG is.
944 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
945 * src/files.c (tryopen, tryclose): Formatting changes.
946 Move to the top and be static.
947 * src/reader.c (read_signed_integer): Likewise.
948 * tests/calc.m4: New file.
949 * Makefile.am, suite.m4: Adjust.
950 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
951
e79137ac
AD
9522000-09-18 Akim Demaille <akim@epita.fr>
953
954 Add support for an Autotest test suite for Bison.
955
956 * m4/m4.m4, m4/atconfig.m4: New files.
957 * m4/Makefile.am (EXTRA_DIST): Adjust.
958 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
959 files.
960 * src/getargs.c: Display a more standard --version message.
961 * src/reader.c (reader): Formatting changes.
962 No longer depend upon VERSION_STRING.
963 * configure.in: No longer use `dnl'.
964 Set up the test suite and the new directory `tests/.
965 (VERSION_STRING): Remove.
966
27821bff
AD
9672000-04-14 Akim Demaille <akim@epita.fr>
968
969 * src/reader.c (copy_comment2): New function, same as former
970 `copy_comment', but outputs into two FILE *.
971 (copy_comment): Use it.
972 (parse_union_decl): Use it.
973 (get_type, parse_start_decl): Use the same `invalid' message.
974 (parse_start_decl, parse_union_decl): Use the same `multiple'
975 message.
976 (parse_union_decl, copy_guard, copy_action): Use the same
977 `unmatched' message.
978 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
979
cfe5fbc0
AD
9802000-03-31 Akim Demaille <akim@epita.fr>
981
982 * src/files.c (tryopen, tryclose): Move to the top.
983 Be static.
984
cb7db13e
AD
9852000-03-31 Akim Demaille <akim@epita.fr>
986
987 * src/main.c (main): Don't call `done', exit does it.
988
a0f6b076
AD
9892000-03-31 Akim Demaille <akim@epita.fr>
990
36281465
AD
991 * allocate.c: s/return (foo)/return foo/.
992 * lalr.c: Likewise.
993 * LR0.c: Likewise.
994 * output.c: Likewise.
995 * reader.c: Likewise.
996 * symtab.c: Likewise.
997 * vmsgetargs.c: Likewise.
998
9992000-03-31 Akim Demaille <akim@epita.fr>
1000
1001 Clean up the error reporting functions.
a0f6b076
AD
1002
1003 * src/report.c: New file.
1004 * src/report.h: Likewise.
1005 * src/Makefile.am: Adjust.
1006 * m4/error.m4: New file.
1007 * m4/Makefile.am: Adjust.
1008 * configure.in (jm_PREREQ_ERROR): Call it.
1009 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1010 Remove.
1011 (fatal, fatals): Remove. All callers use complain.c::fatal.
1012 (warn, warni, warns, warnss, warnss): Remove. All callers use
1013 complain.c::complain.
1014 (toomany): Remove, use fatal instead.
1015 * src/files.c (done): No argument, use complain_message_count.
1016 * src/main.c (main): Register `done' to `atexit'.
1017
1018 * src/getargs.c (usage): More `fputs', less `fprintf'.
1019
18539825
AD
10202000-03-28 Akim Demaille <akim@epita.fr>
1021
1022 * lib/: New directory.
1023 * Makefile.am (SUBDIRS): Adjust.
1024 * configure.in: Adjust.
1025 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1026 useless.
1027 * src/alloca.c: Moved to lib/.
1028 * src/getopt.c: Likewise.
1029 * src/getopt1.c: Likewise.
1030 * src/getopt.h: Likewise.
1031 * src/ansi2knr.c: Likewise.
1032 * src/ansi2knr.1: Likewise.
1033 * src/Makefile.am: Adjust.
1034 * lib/Makefile.am: New file.
1035
9f306f2a
AD
10362000-03-28 Akim Demaille <akim@epita.fr>
1037
1038 * src/getargs.c (usage): Refresh the help message.
1039
0ba347b6
AD
10402000-03-17 Akim Demaille <akim@epita.fr>
1041
1042 * src/getopt1.c: Updated from textutils 2.0e
1043 * src/getopt.c: Likewise.
1044 * src/getopt.h: Likewise.
1045
dbe7f271
AD
10462000-03-17 Akim Demaille <akim@epita.fr>
1047
1048 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1049 the file name, not the whole `#line LINE FILE'.
1050
75bbe78d
AD
10512000-03-17 Akim Demaille <akim@epita.fr>
1052
1053 On syntax errors, report the token on which we choked.
1054
aa5fd0ee
AD
1055 * src/bison.s1 (yyparse): In the label yyerrlab, when
1056 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1057
7b306f52
AD
10582000-03-17 Akim Demaille <akim@epita.fr>
1059
aa5fd0ee 1060 * src/reader.c (copy_at): New function.
7b306f52
AD
1061 (copy_guard): Use it.
1062 (copy_action): Use it.
1063
e87b5700
AD
10642000-03-17 Akim Demaille <akim@epita.fr>
1065
1066 Be kind to translators, save some useless translations.
1067
aa5fd0ee 1068 * src/main.c (banner): New function.
e87b5700
AD
1069 (fatal_banner): Use it.
1070 (warn_banner): Use it.
1071
ae3c3164
AD
10722000-03-17 Akim Demaille <akim@epita.fr>
1073
aa5fd0ee
AD
1074 * src/reader.c (copy_definition): Use copy_string and
1075 copy_comment. Removed now unused `match', `ended',
1076 `cplus_comment'.
ae3c3164
AD
1077 (copy_comment, copy_string): Moved, to be visible from
1078 copy_definition.
1079
4dc58e7c
AD
10802000-03-17 Akim Demaille <akim@epita.fr>
1081
aa5fd0ee
AD
1082 * src/reader.c (copy_string): Declare `static inline'. No
1083 problems with inline, since it is checked by configure.
4dc58e7c
AD
1084 (copy_comment): Likewise.
1085
0a6384c4
AD
10862000-03-17 Akim Demaille <akim@epita.fr>
1087
aa5fd0ee 1088 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1089
3cef001a
AD
10902000-03-17 Akim Demaille <akim@epita.fr>
1091
aa5fd0ee 1092 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1093 (copy_action): Use it. Removed now unused `match', `ended',
1094 `cplus_comment'.
1095 (copy_guard): Likewise.
1096
ca36d2ef
AD
10972000-03-17 Akim Demaille <akim@epita.fr>
1098
aa5fd0ee 1099 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1100 (copy_action): Use it.
1101 (copy_guard): Likewise.
1102
6666f98f
AD
11032000-03-17 Akim Demaille <akim@epita.fr>
1104
1105 Change the handling of @s so that they behave exactly like $s.
1106 There is now a pseudo variable @$ (readble and writable), location
1107 of the lhs of the rule (by default ranging from the location of
1108 the first symbol of the rhs, to the location of the last symbol,
1109 or, if the rhs is empty, YYLLOC).
1110
1111 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1112 yyval.
1113 (yyparse): When providing a default semantic action, provide a
1114 default location action.
1115 (after the $): No longer change `*YYLSP', just stack YYLOC the
1116 same way you stack YYVAL.
1117 * src/reader.c (read_declarations): Use warns.
1118 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1119 (copy_action, case '@'): Likewise.
1120 Use a standard error message, to save useless work from
1121 translators.
1122
41aca2e0
AD
11232000-03-17 Akim Demaille <akim@epita.fr>
1124
aa5fd0ee
AD
1125 * src/bison.s1: Formatting and cosmetics changes.
1126 * src/reader.c: Likewise.
41aca2e0
AD
1127 Update the Copyright notice.
1128
dc08c1d5
AD
11292000-03-17 Akim Demaille <akim@epita.fr>
1130
aa5fd0ee
AD
1131 * src/bison.s1 (#line): All set to `#line' only, since the
1132 Makefile now handles them.
dc08c1d5 1133
9ee3c97b
AD
11342000-03-16 Akim Demaille <akim@epita.fr>
1135
1136 * src/output.c (output_rule_data): Output the documentation of
1137 some of the tables.
1138 (Copyright notice): Update.
1139 Formatting changes.
1140
0de741ca
AD
11412000-03-16 Akim Demaille <akim@epita.fr>
1142
1143 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1144 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1145 One `#if YYDEBUG' remains, since it uses variables which are
1146 defined only if `YYDEBUG != 0'.
1147
bb10be54
AD
11482000-03-16 Akim Demaille <akim@epita.fr>
1149
1150 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1151 and related variables so that the similarities are highlighted.
1152
b07b484a
AD
11532000-03-16 Akim Demaille <akim@epita.fr>
1154
1155 * src/bison.s1: Properly indent CPP directives.
1156
361f60b3
AD
11572000-03-16 Akim Demaille <akim@epita.fr>
1158
1159 * src/bison.s1: Properly indent the `alloca' CPP section.
1160
8c44d3ec
AD
11612000-03-16 Akim Demaille <akim@epita.fr>
1162
1163 Do not hard code values of directories in `configure.in'.
1164 Update the `configure' tool chain.
1165
1166 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1167 src/makefile.am.
1168 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1169 (AC_OUTPUT): Add m4/Makefile.
1170 Bump to bison 1.28a, 1.29 has never been released.
1171 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1172 handled via src/Makefile.am.
1173 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1174 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1175 autoheader.
1176 * Makefile.am (SUBDIRS): Add m4.
1177 (ACLOCAL_AM_FLAGS): New variable.
1178 (AUTOMAKE_OPTIONS): Add check-news.
1179 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1180 the proper line number and file name.
1181 (DEFS): Propagate the location of bison library files and of the
1182 locale files.
1183 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1184 builddir.
1185 * acinclude.m4: Remove, replaced by the directory m4.
1186 * m4/Makefile.am (EXTRA_DIST): New variable.
1187 * m4/gettext.m4: New file, from the fileutils.
1188 * m4/lcmessage.m4: Likewise
1189 * m4/progtest.m4: Likewise.
1190 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1191
f95997e7
AD
11922000-03-10 Akim Demaille <akim@epita.fr>
1193
1194 * src/closure.c:
1195 Formatting changes of various comments.
1196 Respect the GNU coding standards at various places.
1197 Don't use `_()' when no translation is needed.
1198
11991999-12-13 Jesse Thilo <jthilo@gnu.org>
1200
1201 * src/files.c:
1202 OS/2 honors TMPDIR environment variable.
1203
12041999-12-13 Jesse Thilo <jthilo@gnu.org>
1205
1206 * doc/bison.texinfo: Tweaked spelling and grammar.
1207 Updated ISBN.
1208 Removed reference to price of printed copy.
1209 Mention BISON_SIMPLE and BISON_HAIRY.
1210
12111999-12-13 Jesse Thilo <jthilo@gnu.org>
1212
1213 * configure.in, NEWS:
1214 Bison 1.29 released.
1215
12161999-10-27 Jesse Thilo <jthilo@gnu.org>
1217
1218 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1219 Added reference card.
1220
12211999-07-26 Jesse Thilo <jthilo@gnu.org>
1222
1223 * po/ru.po: Added Russian translation.
1224
12251999-07-26 Jesse Thilo <jthilo@gnu.org>
1226
1227 * configure.in: Added Russian translation.
1228
12291999-07-06 Jesse Thilo <jthilo@gnu.org>
1230
1231 * configure.in, NEWS, README:
1232 Released version 1.28.
1233
12341999-06-14 Jesse Thilo <jthilo@gnu.org>
1235
1236 * src/system.h:
1237 Squashed redefinition warning on some systems.
1238
1239 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1240 Have configure build version string instead of relying on ANSI string
1241 concatentation.
1242
12431999-06-14 Jesse Thilo <jthilo@gnu.org>
1244
1245 * po/POTFILES.in: Got rid of version.c.
1246
12471999-06-14 Jesse Thilo <jthilo@gnu.org>
1248
1249 * acconfig.h, configure.in:
1250 Have configure build version string instead of relying on ANSI string
1251 concatentation.
1252
12531999-06-08 Jesse Thilo <jthilo@gnu.org>
1254
1255 * doc/bison.1:
1256 Dropped mention of `+' for long-named options.
1257
12581999-05-30 Jesse Thilo <jthilo@gnu.org>
1259
1260 * src/files.c: Added <unistd.h> for unlink().
1261
1262 * src/Makefile.am, src/system.h:
1263 I18n fixes.
1264
12651999-05-30 Jesse Thilo <jthilo@gnu.org>
1266
1267 * README: Added a FAQ list.
1268
1269 * configure.in, acconfig.h:
1270 I18n fixes.
1271
12721999-05-30 Jesse Thilo <jthilo@gnu.org>
1273
1274 * doc/FAQ, doc/Makefile.am:
1275 Added a FAQ list.
1276
12771999-05-19 Jesse Thilo <jthilo@gnu.org>
1278
1279 * src/alloc.h, src/symtab.h, src/version.c:
1280 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1281
12821999-04-18 Jesse Thilo <jthilo@gnu.org>
1283
1284 * src/.cvsignore, src/Makefile.am:
1285 Reorganized: sources in `src', documentation in `doc'.
1286
1287 * src/lex.c (literalchar):
1288 fixed the code for escaping double quotes (thanks
1289 Jonathan Czisny.)
1290
12911999-04-18 Jesse Thilo <jthilo@gnu.org>
1292
1293 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1294 Adjusted paths to reflect directory reorganization.
1295
12961999-04-18 Jesse Thilo <jthilo@gnu.org>
1297
1298 * doc/.cvsignore, doc/Makefile.am:
1299 Reorganized: sources in `src', documentation in `doc'.
1300
13011999-04-18 Jesse Thilo <jthilo@gnu.org>
1302
1303 * configure.in:
1304 Updated AC_INIT file to reflect directory reorganization.
1305
1306 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1307 Reorganized: sources in `src', documentation in `doc'.
1308
13091999-04-13 Jesse Thilo <jthilo@gnu.org>
1310
1311 * src/allocate.c:
1312 Don't declare calloc() and realloc() if not necessary.
1313
13141999-04-13 Jesse Thilo <jthilo@gnu.org>
1315
1316 * configure.in, acconfig.h, acinclude.m4:
1317 Don't declare calloc() and realloc() if not necessary.
1318
13191999-03-23 Jesse Thilo <jthilo@gnu.org>
1320
1321 * po/.cvsignore: Added i18n support.
1322
13231999-03-23 Jesse Thilo <jthilo@gnu.org>
1324
1325 * acconfig.h, configure.in, Makefile.am:
1326 Added i18n support.
1327
13281999-03-22 Jesse Thilo <jthilo@gnu.org>
1329
1330 * src/bison.s1: Fixed #line numbers.
1331
13321999-03-15 Jesse Thilo <jthilo@gnu.org>
1333
1334 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1335 Added PO files from Translation Project.
1336
13371999-03-03 Jesse Thilo <jthilo@gnu.org>
1338
1339 * Makefile.am:
1340 Added support for non-ANSI compilers (ansi2knr).
1341
13421999-02-16 Jesse Thilo <jthilo@gnu.org>
1343
1344 * configure.in: Bumped version number to 1.27.
1345
1346 * Makefile.am:
1347 Added `bison.simple' to list of files removed by `make distclean'.
1348
13491999-02-12 Jesse Thilo <jthilo@gnu.org>
1350
1351 * src/files.c, src/files.h:
1352 Defined locations of parser files in config.h instead of Makefile.
1353
13541999-02-12 Jesse Thilo <jthilo@gnu.org>
1355
1356 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1357 Defined locations of parser files in config.h instead of Makefile.
1358
13591999-02-09 Jesse Thilo <jthilo@gnu.org>
1360
1361 * Makefile.am:
1362 Removed inappropriate use of $< macro.
1363
13641999-02-05 Jesse Thilo <jthilo@gnu.org>
1365
1366 * po/Makefile.in.in, po/POTFILES.in:
1367 Add `po' directory skeleton.
1368
13691999-01-27 Jesse Thilo <jthilo@gnu.org>
1370
1371 * README: Document help-bison list.
1372
1373 * configure.in: Add check for mkstemp().
1374
13751999-01-20 Jesse Thilo <jthilo@gnu.org>
1376
1377 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1378 Hush a few compiler warnings.
1379
1380 * src/files.c:
1381 Add tryclose(), which verifies that fclose was successful.
1382 Hush a couple of compiler warnings.
1383
13841999-01-20 Jesse Thilo <jthilo@gnu.org>
1385
1386 * Makefile.am, OChangeLog:
1387 ChangeLog is now automatically generated. Include the old version as
1388 OChangeLog.
1389
13901999-01-14 Jesse Thilo <jthilo@gnu.org>
1391
1392 * 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:
1393 Update FSF address.
1394
13951999-01-14 Jesse Thilo <jthilo@gnu.org>
1396
1397 * doc/bison.texinfo: Fix formatting glitch.
1398
1399 * doc/bison.texinfo: Update FSF address.
1400
14011999-01-14 Jesse Thilo <jthilo@gnu.org>
1402
1403 * acconfig.h: Update FSF address.
1404
14051999-01-08 Jesse Thilo <jthilo@gnu.org>
1406
1407 * src/system.h:
1408 Don't define PACKAGE here, since config.h defines it.
1409
14101998-12-30 Jesse Thilo <jthilo@gnu.org>
1411
1412 * src/reader.c: Update copyright date.
1413
1414 * src/main.c:
1415 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1416 favor of output directly to stderr (avoids buffer overruns).
1417
1418 * src/reader.c: Some checks for premature EOF.
1419
1420 * 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:
1421 Use prototypes if the compiler understands them.
1422
1423 * src/files.c: Honor TMPDIR on Unix hosts.
1424 Use prototypes if the compiler understands them.
1425
1426 * src/reader.c:
1427 Fix a couple of buffer overrun bugs.
1428 Use prototypes if the compiler understands them.
1429
1430 * src/system.h: Include unistd.h and ctype.h.
1431 Use #ifdef instead of #if for NLS symbols.
1432
14331998-12-30 Jesse Thilo <jthilo@gnu.org>
1434
1435 * doc/bison.texinfo:
1436 Delete comment "consider using @set for edition number, etc..." since
1437 we now are doing so.
1438
14391998-12-30 Jesse Thilo <jthilo@gnu.org>
1440
1441 * configure.in:
1442 Use prototypes if the compiler understands them.
1443
1444 * NEWS: Document 1.26 highlights.
1445
1446 * Makefile.am: Require Automake 1.3 or later.
1447
1448 * acconfig.h:
1449 Use prototypes if the compiler understands them.
1450
14511998-12-29 Jesse Thilo <jthilo@gnu.org>
1452
1453 * src/version.c:
1454 Use VERSION symbol from automake for version number.
1455
14561998-12-29 Jesse Thilo <jthilo@gnu.org>
1457
1458 * acconfig.h, configure.in, version.cin:
1459 Use VERSION symbol from automake for version number.
1460
14611998-11-28 Jesse Thilo <jthilo@gnu.org>
1462
1463 * Makefile.am:
1464 Distribute original version of simple parser (bison.s1), not built
1465 version (bison.simple).
1466
14671998-11-28 Jesse Thilo <jthilo@gnu.org>
1468
1469 * doc/bison.texinfo: Add info dir entry.
1470
1471 * doc/bison.texinfo:
1472 Let automake put version number into documentation.
1473
14741998-11-26 Jesse Thilo <jthilo@gnu.org>
1475
1476 * src/bison.cld, src/build.com, src/vmshlp.mar:
1477 Add non-RCS files from /gd/gnu/bison.
1478
14791998-11-26 Jesse Thilo <jthilo@gnu.org>
1480
1481 * doc/bison.1:
1482 Document the BISON_HAIRY and BISON_SIMPLE variables.
1483
14841998-11-25 Jesse Thilo <jthilo@gnu.org>
1485
1486 * src/version.c: Build version.c automatically.
1487
1488 * src/reader.c:
1489 Fix token numbering (used to start at 258, not 257).
1490
1491 * src/system.h: Include config.h.
1492
1493 * src/getargs.c: Update bug report address.
1494
1495 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1496 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1497
14981998-11-25 Jesse Thilo <jthilo@gnu.org>
1499
1500 * Makefile.am:
1501 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1502
1503 * configure.in, version.cin:
1504 Build version.c automatically.
1505
1506 * AUTHORS: Add AUTHORS file.
1507
1508 * README: Update bug report address.
1509
1510 * bison.simple:
1511 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1512
1513 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1514 Add automake stuff.
1515
15161998-11-25 Jesse Thilo <jthilo@gnu.org>
1517
1518 * doc/bison.texinfo: Clean up some formatting.
1519
15201998-05-05 Richard Stallman <rms@gnu.org>
1521
1522 * doc/bison.texinfo:
1523 Explain better why to make a pure parser.
1524
15251998-01-05 Richard Stallman <rms@gnu.org>
1526
1527 * src/files.c (openfiles):
1528 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1529 find a temporary directory, if possible. Do not unlink files while
1530 they are open.
1531
15321997-08-25 Richard Stallman <rms@gnu.org>
1533
1534 * src/reader.c (stack_offset;):
1535 Change some warni to warns.
1536
1537 * src/lex.c (literalchar): Use warns, not warni.
1538
15391997-06-28 Richard Stallman <rms@gnu.org>
1540
1541 * src/bison.s1: Add a Bison version comment.
1542
1543 * src/main.c (fatal, warn, berror):
1544 Use program_name.
1545
15461997-06-28 Richard Stallman <rms@gnu.org>
1547
1548 * Makefile.in (bison_version): New variable.
1549 (dist): Use that variable.
1550 (bison.s1): Substitute the Bison version into bison.simple.
1551
1552 * bison.simple: Add a Bison version comment.
1553
15541997-06-18 Richard Stallman <rms@gnu.org>
1555
1556 * src/main.c (fatal, warn, berror):
1557 Make error messages standard.
1558 (toomany): Improve error message text.
1559
1560 * 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:
1561 new.h renamed to alloc.h.
1562
15631997-06-18 Richard Stallman <rms@gnu.org>
1564
1565 * Makefile.in: new.h renamed to alloc.h.
1566
15671997-05-24 Richard Stallman <rms@gnu.org>
1568
1569 * src/lex.c (literalchar):
1570 Fix the code for escaping \, " and '.
1571
1572 (lex): Avoid trouble when there are many chars
1573 to discard in a char literal with just several chars in it.
1574
15751997-05-17 Richard Stallman <rms@gnu.org>
1576
1577 * src/bison.s1:
1578 Use malloc, if using alloca is troublesome.
1579 (YYSTACK_USE_ALLOCA): New flag macro.
1580 Define it for some systems and compilers.
1581 (YYSTACK_ALLOC): New macro.
1582 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1583 If it was malloc'd, free it.
1584
15851997-05-17 Richard Stallman <rms@gnu.org>
1586
1587 * bison.simple:
1588 Use malloc, if using alloca is troublesome.
1589 (YYSTACK_USE_ALLOCA): New flag macro.
1590 Define it for some systems and compilers.
1591 (YYSTACK_ALLOC): New macro.
1592 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1593 If it was malloc'd, free it.
1594
15951997-04-23 Richard Stallman <rms@gnu.org>
1596
1597 * src/bison.s1:
1598 (alloca) [__hpux]: Always define as __builtin_alloca.
1599
16001997-04-23 Richard Stallman <rms@gnu.org>
1601
1602 * bison.simple:
1603 (alloca) [__hpux]: Always define as __builtin_alloca.
1604
16051997-04-22 Richard Stallman <rms@gnu.org>
1606
1607 * src/bison.s1:
1608 [__hpux]: Include alloca.h (right for HPUX 10)
1609 instead of declaring alloca (right for HPUX 9).
1610
1611 * src/bison.s1 (__yy_memcpy):
1612 Declare arg `count' as unsigned int.
1613 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1614
16151997-04-22 Richard Stallman <rms@gnu.org>
1616
1617 * bison.simple:
1618 [__hpux]: Include alloca.h (right for HPUX 10)
1619 instead of declaring alloca (right for HPUX 9).
1620
1621 * bison.simple (__yy_memcpy):
1622 Declare arg `count' as unsigned int.
1623 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1624
16251997-01-03 Richard Stallman <rms@gnu.org>
1626
1627 * src/allocate.c: [__STDC__ or _MSC_VER]:
1628 Declare calloc and realloc to return void *.
1629
16301997-01-02 Richard Stallman <rms@gnu.org>
1631
1632 * src/system.h:
1633 [_MSC_VER]: Include stdlib.h and process.h.
1634 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1635
1636 * src/main.c (main): Return FAILURE as a value.
1637 (printable_version): Declare arg as int, not char.
1638
16391997-01-02 Richard Stallman <rms@gnu.org>
1640
1641 * Makefile.in (dist):
1642 Explicitly check for symlinks, and copy them.
1643
16441996-12-19 Richard Stallman <rms@gnu.org>
1645
1646 * src/files.c:
1647 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1648
16491996-12-18 Paul Eggert <eggert@gnu.org>
1650
1651 * src/bison.s1 (yyparse):
1652 If __GNUC__ and YYPARSE_PARAM are both defined,
1653 declare yyparse to have a void * argument.
1654
16551996-12-18 Paul Eggert <eggert@gnu.org>
1656
1657 * bison.simple (yyparse):
1658 If __GNUC__ and YYPARSE_PARAM are both defined,
1659 declare yyparse to have a void * argument.
1660
16611996-12-17 Richard Stallman <rms@gnu.org>
1662
1663 * src/reduce.c (nbits): Add some casts.
1664
16651996-08-12 Richard Stallman <rms@gnu.org>
1666
1667 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1668
16691996-08-12 Richard Stallman <rms@gnu.org>
1670
1671 * bison.simple: Test _MSDOS as well as _MSDOS_.
1672
16731996-07-31 Richard Stallman <rms@gnu.org>
1674
1675 * src/bison.s1:
1676 [__sun && __i386]: Include alloca.h.
1677
16781996-07-31 Richard Stallman <rms@gnu.org>
1679
1680 * bison.simple:
1681 [__sun && __i386]: Include alloca.h.
1682
16831996-07-30 Richard Stallman <rms@gnu.org>
1684
1685 * src/bison.s1: Comment change.
1686
1687 * src/bison.s1: Test _MSDOS_, not MSDOS.
1688
16891996-07-30 Richard Stallman <rms@gnu.org>
1690
1691 * bison.simple: Comment change.
1692
1693 * bison.simple: Test _MSDOS_, not MSDOS.
1694
16951996-06-01 Richard Stallman <rms@gnu.org>
1696
1697 * 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:
1698 Insert `_' macro around many string constants.
1699
1700 * src/main.c:
1701 Insert `_' macro around many string constants.
1702
1703 (main): Call setlocale, bindtextdomain and textdomain.
1704
1705 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1706 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1707 [ENABLE_NLS]: Include libintl.h.
1708 [ENABLE_NLS] (gettext): Define.
1709 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1710 (N_, PACKAGE, LOCALEDIR): New macros.
1711
17121996-06-01 Richard Stallman <rms@gnu.org>
1713
1714 * POTFILES.in: New file.
1715
1716 * Makefile.in (allocate.o):
1717 Define target explicitly.
1718
1719 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1720 (LDFLAGS): Set to @LDFLAGS@.
1721 (configure): Run autoconf only if preceding `cd' succeeds.
1722 (bison.s1): Redirect output to temporary file then move the
1723 temporary to the target, rather than redirecting directly to bison.s1.
1724 (clean): Remove config.status and config.log.
1725 (distclean): Don't remove config.status here.
1726
17271996-05-12 Richard Stallman <rms@gnu.org>
1728
1729 * src/bison.s1:
1730 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1731
17321996-05-12 Richard Stallman <rms@gnu.org>
1733
1734 * bison.simple:
1735 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1736
17371996-05-11 Richard Stallman <rms@gnu.org>
1738
1739 * src/bison.s1 (__yy_memcpy):
1740 Really reorder the args, as was supposedly done on Feb 14 1995.
1741 (yyparse): Calls changed accordingly.
1742
17431996-05-11 Richard Stallman <rms@gnu.org>
1744
1745 * Makefile.in (dist): Don't use $(srcdir).
1746
1747 * bison.simple (__yy_memcpy):
1748 Really reorder the args, as was supposedly done on Feb 14 1995.
1749 (yyparse): Calls changed accordingly.
1750
17511996-01-27 Richard Stallman <rms@gnu.org>
1752
1753 * src/output.c (output_rule_data):
1754 Test YYERROR_VERBOSE in the conditional
1755 around the definition of ttyname.
1756
17571995-12-29 Richard Stallman <rms@gnu.org>
1758
1759 * src/bison.s1:
1760 Fix line numbers in #line commands.
1761
17621995-12-29 Richard Stallman <rms@gnu.org>
1763
1764 * bison.simple:
1765 Fix line numbers in #line commands.
1766
17671995-12-27 Richard Stallman <rms@gnu.org>
1768
1769 * src/bison.s1 (YYPARSE_PARAM_DECL):
1770 In C++, make it always null.
1771 (YYPARSE_PARAM_ARG): New macro.
1772 (yyparse): Use YYPARSE_PARAM_ARG.
1773
17741995-12-27 Richard Stallman <rms@gnu.org>
1775
1776 * bison.simple (YYPARSE_PARAM_DECL):
1777 In C++, make it always null.
1778 (YYPARSE_PARAM_ARG): New macro.
1779 (yyparse): Use YYPARSE_PARAM_ARG.
1780
17811995-11-29 Richard Stallman <rms@gnu.org>
1782
1783 * doc/bison.texinfo:
1784 Describe literal string tokens, %raw, %no_lines, %token_table.
1785
17861995-11-29 Daniel Hagerty <hag@gnu.org>
1787
1788 * doc/bison.texinfo: Fixed update date
1789
17901995-10-16 Richard Stallman <rms@gnu.org>
1791
1792 * src/version.c: Version 1.25.
1793
17941995-10-16 Richard Stallman <rms@gnu.org>
1795
1796 * NEWS: *** empty log message ***
1797
17981995-10-16 Richard Stallman <rms@gnu.org>
1799
1800 * doc/bison.1, doc/bison.rnh:
1801 Add new options.
1802
18031995-10-15 Richard Stallman <rms@gnu.org>
1804
1805 * src/vmsgetargs.c, src/getargs.c:
1806 Added -n, -k, and -raw switches.
1807 (noparserflag, toknumflag, rawtoknumflag): New variables.
1808
1809 * src/symtab.h (SALIAS):
1810 New #define for adding aliases to %token.
1811 (struct bucket): Added `alias' field.
1812
1813 * src/reduce.c (reduce_grammar):
1814 Revise error message.
1815 (print_notices): Remove final `.' from error message.
1816
1817 * src/reader.c (reader_output_yylsp):
1818 New function.
1819 (readgram): Use `#if 0' around code that accepted %command
1820 inside grammar rules: The documentation doesn't allow it,
1821 and it will fail since the %command processors scan for the next %.
1822 (parse_token_decl): Extended the %token
1823 declaration to allow a multi-character symbol as an alias.
1824 (parse_thong_decl): New function.
1825 (read_declarations): Added %thong declarations.
1826 (read_declarations): Handle NOOP to deal with allowing
1827 % declarations as another means to specify the flags.
1828 (readgram): Allow %prec prior to semantics embedded in a rule.
1829 (skip_to_char, read_declarations, copy_definition)
1830 (parse_token_decl, parse_start_decl, parse_type_decl)
1831 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1832 (get_type_name, copy_guard, copy_action, readgram)
1833 (get_type, packsymbols): Revised most error messages.
1834 Changed `fatal' to `warnxxx' to avoid aborting for error.
1835 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1836 (read_declarations): Improve the error message for
1837 an invalid character. Do not abort.
1838 (read_declarations, copy_guard, copy_action): Use
1839 printable_version to avoid unprintable characters in printed output.
1840 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1841 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1842 Allow the type of a non-terminal can be given
1843 more than once, as long as all specifications give the same type.
1844
1845 * src/output.c:
1846 (output_headers, output_trailers, output, output_gram)
1847 (output_rule_data): Implement noparserflag variable.
1848 Implement toknumflag variable.
1849 (output): Call reader_output_yylsp to output LTYPESTR.
1850
1851 * src/main.c (main):
1852 If reader sees an error, don't process the grammar.
1853 (fatals): Updated to not use VARARGS1.
1854 (printable_version, int_to_string, warn, warni, warns, warnss)
1855 (warnsss): New error reporting functions. Avoid abort for error.
1856
1857 * src/lex.h:
1858 Added THONG and NOOP for alias processing.
1859 Added SETOPT for the new code that allows setting options with %flags.
1860
1861 * src/lex.c:
1862 Include getopt.h. Add some extern decls.
1863 (safegetc): New function to deal with EOF gracefully.
1864 (literalchar); new function to deal with reading \ escapes.
1865 (lex): Use literalchar.
1866 (lex): Implemented "..." tokens.
1867 (literalchar, lex, parse_percent_token): Made tokenbuffer
1868 always contain the token. This includes growing the token
1869 buffer while reading an integer.
1870 (parse_percent_token): Replaced if-else statement with percent_table.
1871 (parse_percent_token): Added % declarations as another
1872 way to specify the flags -n, -l, and -r. Also added hooks for
1873 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1874 major changes to files.c.
1875 (lex) Retain in the incoming stream a character following
1876 an incorrect '/'.
1877 (skip_white_space, lex): Revised most error messages
1878 and changed fatal to warn to avoid aborting.
1879 (percent_table): Added %thong declarations.
1880
1881 * src/gram.h: Comment changes.
1882
1883 * src/files.c (openfiles, open_extra_files, done):
1884 Add faction flag
1885 and actfile file. Handle noparserflag. Both for -n switch.
1886
1887 * src/conflicts.c (resolve_sr_conflict):
1888 Remove use of alloca.
1889
18901995-06-01 Jim Meyering <meyering@gnu.org>
1891
1892 * doc/bison.texinfo: *** empty log message ***
1893
18941995-05-06 Richard Stallman <rms@gnu.org>
1895
1896 * src/bison.s1: Comment change.
1897
18981995-05-06 Richard Stallman <rms@gnu.org>
1899
1900 * bison.simple: Comment change.
1901
19021995-05-03 Richard Stallman <rms@gnu.org>
1903
1904 * src/version.c: Version now 1.24.
1905
1906 * src/bison.s1: Change distribution terms.
1907
1908 * src/version.c: Version now 1.23.
1909
19101995-05-03 Richard Stallman <rms@gnu.org>
1911
1912 * doc/bison.texinfo:
1913 Rewrite "Conditions for Using Bison".
1914 Update version to 1.24.
1915
19161995-05-03 Richard Stallman <rms@gnu.org>
1917
1918 * bison.simple: Change distribution terms.
1919
19201995-02-23 Richard Stallman <rms@gnu.org>
1921
1922 * src/files.c: Test __VMS_POSIX as well as VMS.
1923
19241995-02-14 Jim Meyering <meyering@gnu.org>
1925
1926 * src/bison.s1 (__yy_memcpy):
1927 Renamed from __yy_bcopy to avoid
1928 confusion. Reverse FROM and TO arguments to be consistent with
1929 those of memcpy.
1930
19311995-02-14 Jim Meyering <meyering@gnu.org>
1932
1933 * bison.simple (__yy_memcpy):
1934 Renamed from __yy_bcopy to avoid
1935 confusion. Reverse FROM and TO arguments to be consistent with
1936 those of memcpy.
1937
19381994-11-10 David J. MacKenzie <djm@gnu.org>
1939
1940 * NEWS: reformat
1941
1942 * NEWS: New file.
1943
1944 * Makefile.in (DISTFILES): Include NEWS.
1945
1946 * Makefile.in (DISTFILES):
1947 Include install-sh, not install.sh.
1948
1949 * configure.in: Update to Autoconf v2 macro names.
1950
19511994-10-05 David J. MacKenzie <djm@gnu.org>
1952
1953 * Makefile.in: fix typo
1954
1955 * Makefile.in (prefix, exec_prefix):
1956 Let configure set them.
1957
19581994-09-28 David J. MacKenzie <djm@gnu.org>
1959
1960 * Makefile.in: Set datadir to $(prefix)/share.
1961
19621994-09-15 Richard Stallman <rms@gnu.org>
1963
1964 * src/bison.s1:
1965 Update copyright notice and GPL version.
1966
19671994-09-15 Richard Stallman <rms@gnu.org>
1968
1969 * bison.simple:
1970 Update copyright notice and GPL version.
1971
19721994-07-12 Richard Stallman <rms@gnu.org>
1973
1974 * src/reduce.c, src/reader.c:
1975 entered into RCS
1976
19771994-05-05 David J. MacKenzie <djm@gnu.org>
1978
1979 * Makefile.in: entered into RCS
1980
19811994-03-26 Richard Stallman <rms@gnu.org>
1982
1983 * src/bison.s1: entered into RCS
1984
19851994-03-26 Richard Stallman <rms@gnu.org>
1986
1987 * bison.simple: entered into RCS
1988
19891994-03-25 Richard Stallman <rms@gnu.org>
1990
1991 * src/main.c: entered into RCS
1992
19931994-03-24 Richard Stallman <rms@gnu.org>
1994
1995 * src/conflicts.c: entered into RCS
1996
19971994-01-02 Richard Stallman <rms@gnu.org>
1998
1999 * Makefile.in: *** empty log message ***
2000
20011993-11-21 Richard Stallman <rms@gnu.org>
2002
2003 * src/bison.s1: *** empty log message ***
2004
20051993-11-21 Richard Stallman <rms@gnu.org>
2006
2007 * doc/bison.texinfo: entered into RCS
2008
2009 * doc/bison.texinfo: *** empty log message ***
2010
20111993-11-21 Richard Stallman <rms@gnu.org>
2012
2013 * bison.simple: *** empty log message ***
2014
20151993-10-25 David J. MacKenzie <djm@gnu.org>
2016
2017 * doc/bison.texinfo: *** empty log message ***
2018
20191993-10-19 Richard Stallman <rms@gnu.org>
2020
2021 * src/bison.s1: *** empty log message ***
2022
20231993-10-19 Richard Stallman <rms@gnu.org>
2024
2025 * bison.simple: *** empty log message ***
2026
20271993-10-14 Richard Stallman <rms@gnu.org>
2028
2029 * src/bison.s1: *** empty log message ***
2030
20311993-10-14 Richard Stallman <rms@gnu.org>
2032
2033 * bison.simple: *** empty log message ***
2034
20351993-09-14 David J. MacKenzie <djm@gnu.org>
2036
2037 * doc/bison.texinfo: *** empty log message ***
2038
20391993-09-13 Noah Friedman <friedman@gnu.org>
2040
2041 * Makefile.in: *** empty log message ***
2042
20431993-09-10 Richard Stallman <rms@gnu.org>
2044
2045 * src/conflicts.c: *** empty log message ***
2046
2047 * src/system.h: entered into RCS
2048
20491993-09-10 Richard Stallman <rms@gnu.org>
2050
2051 * doc/bison.1: entered into RCS
2052
20531993-09-06 Noah Friedman <friedman@gnu.org>
2054
2055 * src/version.c: entered into RCS
2056
20571993-09-06 Noah Friedman <friedman@gnu.org>
2058
2059 * Makefile.in: *** empty log message ***
2060
20611993-07-30 David J. MacKenzie <djm@gnu.org>
2062
2063 * Makefile.in: *** empty log message ***
2064
20651993-07-24 Richard Stallman <rms@gnu.org>
2066
2067 * src/bison.s1: *** empty log message ***
2068
20691993-07-24 Richard Stallman <rms@gnu.org>
2070
2071 * bison.simple: *** empty log message ***
2072
20731993-07-08 David J. MacKenzie <djm@gnu.org>
2074
2075 * Makefile.in: *** empty log message ***
2076
20771993-07-04 Richard Stallman <rms@gnu.org>
2078
2079 * src/bison.s1: *** empty log message ***
2080
20811993-07-04 Richard Stallman <rms@gnu.org>
2082
2083 * bison.simple: *** empty log message ***
2084
20851993-06-26 David J. MacKenzie <djm@gnu.org>
2086
2087 * src/getargs.c: entered into RCS
2088
20891993-06-26 David J. MacKenzie <djm@gnu.org>
2090
2091 * doc/bison.texinfo: *** empty log message ***
2092
2093 * doc/bison.1: New file.
2094
20951993-06-25 Richard Stallman <rms@gnu.org>
2096
2097 * src/getargs.c: New file.
2098
20991993-06-16 Richard Stallman <rms@gnu.org>
2100
2101 * src/bison.s1: *** empty log message ***
2102
21031993-06-16 Richard Stallman <rms@gnu.org>
2104
2105 * bison.simple: *** empty log message ***
2106
21071993-06-03 Richard Stallman <rms@gnu.org>
2108
2109 * src/bison.s1: New file.
2110
21111993-06-03 Richard Stallman <rms@gnu.org>
2112
2113 * doc/bison.texinfo: *** empty log message ***
2114
21151993-06-03 Richard Stallman <rms@gnu.org>
2116
2117 * bison.simple: New file.
2118
21191993-05-19 Richard Stallman <rms@gnu.org>
2120
2121 * doc/bison.texinfo: New file.
2122
21231993-05-07 Noah Friedman <friedman@gnu.org>
2124
2125 * Makefile.in: *** empty log message ***
2126
21271993-04-28 Noah Friedman <friedman@gnu.org>
2128
2129 * src/reader.c: *** empty log message ***
2130
21311993-04-23 Noah Friedman <friedman@gnu.org>
2132
2133 * src/alloc.h: entered into RCS
2134
21351993-04-20 David J. MacKenzie <djm@gnu.org>
2136
2137 * src/version.c: *** empty log message ***
2138
2139 * src/files.c, src/allocate.c:
2140 entered into RCS
2141
2142 * src/reader.c: *** empty log message ***
2143
2144 * src/lex.c: entered into RCS
2145
2146 * src/conflicts.c: New file.
2147
2148 * src/symtab.c: entered into RCS
2149
2150 * src/alloc.h: New file.
2151
2152 * src/LR0.c: entered into RCS
2153
21541993-04-18 Noah Friedman <friedman@gnu.org>
2155
2156 * src/reader.c: New file.
2157
2158 * src/version.c: *** empty log message ***
2159
21601993-04-18 Noah Friedman <friedman@gnu.org>
2161
2162 * Makefile.in: *** empty log message ***
2163
21641993-04-17 Noah Friedman <friedman@gnu.org>
2165
2166 * Makefile.in: *** empty log message ***
2167
21681993-04-15 Richard Stallman <rms@gnu.org>
2169
2170 * src/main.c, src/files.c:
2171 New file.
2172
21731993-04-15 Noah Friedman <friedman@gnu.org>
2174
2175 * configure.in: entered into RCS
2176
2177 * configure.in: *** empty log message ***
2178
2179 * configure.in: New file.
2180
21811993-04-14 Richard Stallman <rms@gnu.org>
2182
2183 * Makefile.in: New file.
2184
21851993-04-13 Richard Stallman <rms@gnu.org>
2186
2187 * src/version.c: New file.
2188
21891993-03-25 Richard Stallman <rms@gnu.org>
2190
2191 * src/output.c: entered into RCS
2192
21931992-09-25 Richard Stallman <rms@gnu.org>
2194
2195 * configure.bat: entered into RCS
2196
21971992-06-22 Richard Stallman <rms@gnu.org>
2198
2199 * src/vmsgetargs.c: entered into RCS
2200
22011992-06-22 Richard Stallman <rms@gnu.org>
2202
2203 * doc/bison.rnh: entered into RCS
2204
22051992-04-20 David J. MacKenzie <djm@gnu.org>
2206
2207 * README: entered into RCS
2208
22091992-01-22 Richard Stallman <rms@gnu.org>
2210
2211 * src/machine.h: entered into RCS
2212
22131991-12-21 Richard Stallman <rms@gnu.org>
2214
2215 * src/lalr.c, src/closure.c:
2216 entered into RCS
2217
22181991-12-20 Richard Stallman <rms@gnu.org>
2219
2220 * src/state.h: entered into RCS
2221
22221991-12-18 Richard Stallman <rms@gnu.org>
2223
2224 * src/print.c, src/nullable.c, src/derives.c:
2225 entered into RCS
2226
22271991-11-03 David J. MacKenzie <djm@gnu.org>
2228
2229 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2230 entered into RCS
2231
22321988-09-09 Richard Stallman <rms@gnu.org>
2233
2234 * src/bison.hairy: entered into RCS
2235
22361987-12-16 Richard Stallman <rms@gnu.org>
2237
2238 * REFERENCES: entered into RCS