]> git.saurik.com Git - bison.git/blame - ChangeLog
doc/bison.texinfo: Change @samp{$<@dots{}>} to @samp{$<@dots{}>@var{n}} in Section...
[bison.git] / ChangeLog
CommitLineData
fdc6758b
MA
12001-08-08 Marc Autret <autret_m@epita.fr>
2
3 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
4 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
5 Reported by Fabrice Bauzac.
6
957d4dbf
MA
72001-08-08 Marc Autret <autret_m@epita.fr>
8
9 * ChangeLog: Adjust.
10
600cad3b
MA
112001-08-08 Marc Autret <autret_m@epita.fr>
12
13 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
14 * src/vcg.c (output_node): Fix.
15 * src/vcg.h: Cleanup.
16 * src/print_graph.c: Add comments.
17 (node_output_size): New global variable. Simplify the formatting of
18 the VCG graph output.
19 (print_actions): Unused code is now used. It notifies the final state
20 and no action states in the VCG graph. It also give the reduce actions.
21 The `shift and goto' edges are red and the `go to state' edges are
22 blue.
23 Get the current node name and node_obstack by argument.
24 (node_obstack): New variable.
25 (print_state): Manage node_obstack.
26 (print_core): Use node_obstack given by argument.
27 A node is not only computed here but in print_actions also.
28 (print_graph): CPP out useless code instead of commenting it.
29
976e528f
AD
302001-08-07 Pascal Bart <pascal.bart@epita.fr>
31
32 * tests/atconfig.in (CPPFLAGS): Fix.
33
20e8e5ca
AD
342001-08-07 Akim Demaille <akim@epita.fr>
35
36 * src/print_graph.c (quote): New.
37 (print_core): Use it.
38
957d4dbf 392001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 40
3e3da797
AD
41 * src/vcg.c (complain.h): Include it.
42 Unepitaize `return' invocations.
c4b66126
AD
43 [NDEBUG] (main): Remove.
44 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * memebers.
45 * src/files.c (open_files): Initialize graph_obstack.
46 * src/print_graph.c (print_actions): CPP out useless code.
47 (print_core): Don't output the last `\n' in labels.
48 Use `quote'.
49 * src/files.c (output_files): Output the VCG file.
50 * src/main.c (main): Invoke print_graph ();
3e3da797 51
957d4dbf 522001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
53
54 Automaton VCG graph output.
55 Using option ``-g'' or long option ``--graph'', you can generate
56 a gram_filename.vcg file containing a VCG description of the LALR (1)
57 automaton of your grammar.
58
59 * src/main.c: Call to print_graph() function.
60 * src/getargs.h: Update.
61 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
62 (graph_flag): New flag.
63 (longopts): Update.
64 (getargs): Add case `g'.
65 * src/files.c (graph_obstack): New obstack struct.
66 (open_files): Initialize new obstack.
67 (output_files): Saves graph_obstack if required.
68 * src/files.h (graph_obstack): New extern declaration.
69 * src/Makefile.am: Add new source files.
70
957d4dbf 712001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
72
73 * src/print_graph.c, src/print_graph.h (graph): New.
74 * src/vcg.h: New file.
75 * src/vcg.c: New file, VCG graph handling.
76
7333d403
AD
772001-08-06 Marc Autret <autret_m@epita.fr>
78
79 Add of %source_extension and %header_extension which specify
80 the source or/and the header output file extension.
81
82 * src/files.c (compute_base_names): Remove initialisation of
83 src_extension and header_extension.
84 (compute_exts_from_gf): Update.
85 (compute_exts_from_src): Update.
86 (output_files): Update.
87 * src/reader.c (parse_header_extension_decl): New.
88 (parse_source_extension_decl): New.
89 (read_declarations): New case statements for the new tokens.
90 * src/lex.c (percent_table): Add entries for %source_extension
91 and %header_extension.
92 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
93
84163231
AD
942001-08-06 Marc Autret <autret_m@epita.fr>
95
96 * configure.in: Bump to 1.28c.
97 * doc/bison.texinfo: Texinfo thingies.
98
8303fc42
AD
992001-08-04 Pascal Bart <pascal.bart@epita.fr>
100
101 * tests/atconfig.in (CPPFLAGS): Add.
102 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
103
70a84437
AD
1042001-08-03 Akim Demaille <akim@epita.fr>
105
106 Version 1.28b.
107
2ce10144
AD
1082001-08-03 Akim Demaille <akim@epita.fr>
109
110 * tests/Makefile.am (check-local): Ship testsuite.
111 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
112 Include `string.h'.
113
1e3e4bc1
AD
1142001-08-03 Akim Demaille <akim@epita.fr>
115
116 * configure.in: Try using -Wformat when compiling.
117
42b45b7f
AD
1182001-08-03 Akim Demaille <akim@epita.fr>
119
120 * configure.in: Bump to 1.28b.
121
8f13fe33
AD
1222001-08-03 Akim Demaille <akim@epita.fr>
123
124 * src/complain.c: Adjust strerror_r portability issues.
125
b37ba92c
AD
1262001-08-03 Akim Demaille <akim@epita.fr>
127
128 Version 1.28a.
129
b0ce6046
AD
1302001-08-03 Akim Demaille <akim@epita.fr>
131
132 * src/getargs.c, src/getarg.h (skeleton)): Constify.
133 * src/lex.c (literalchar): Avoid name clashes on `buf'.
134 * src/getargs.c: Include complain.h.
135 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
136 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
137
d01c415b
AD
1382001-08-03 Akim Demaille <akim@epita.fr>
139
140 * src/reader.c (readgram): Display hidden chars in error messages.
141
459dd1a6
AD
1422001-08-03 Akim Demaille <akim@epita.fr>
143
144 Update to gettext 0.10.39.
145
53b74c0c
AD
1462001-08-03 Akim Demaille <akim@epita.fr>
147
148 * lib/strspn.c: New.
149
234a3be3
AD
1502001-08-01 Marc Autret <autret_m@epita.fr>
151
152 * doc/bison.texinfo: Update.
153 * doc/bison.1 (mandoc): Update.
154 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
155 * src/files.c: Support output files extensions computing.
156 (src_extension): New static variable.
157 (header_extension): New static variable.
158 (tr): New function.
159 (get_extension_index): New function, gets the index of an extension
160 filename in a string.
161 (compute_exts_from_gf): New function, computes extensions from the
162 grammar file extension.
163 (compute_exts_from_src): New functions, computes extensions from the
164 C source file extension, file given by ``-o'' option.
165 (compute_base_names): Update.
166 (output_files): Update.
167
847bf1f5
AD
1682001-08-01 Robert Anisko <anisko_r@epita.fr>
169
d995fee7 170 * doc/bison.texi: Document @$.
847bf1f5
AD
171 (Locations): New section.
172
d074a105
AD
1732001-07-18 Akim Demaille <akim@epita.fr>
174
175 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
176 * config/prev-version.txt, config/move-if-change: New.
177 * Makefile.am: Adjust.
178
3419715d
AD
1792001-07-08 Pascal Bart <pascal.bart@epita.fr>
180
181 * src/bison.simple (yyparse): Suppress warning `comparaison
182 between signed and unsigned'.
183
62ab6972
AD
1842001-07-05 Pascal Bart <pascal.bart@epita.fr>
185
186 * src/getargs.h (raw_flag): Remove.
187 * src/getargs.c: Die on `-r'/`--raw'.
188 * src/lex.c (parse_percent_token): Die on `%raw'.
189 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
190 * tests/calc.at: Suppress test with option `--raw'.
191
1e24cc5b
AD
1922001-07-14 Akim Demaille <akim@epita.fr>
193
194 * config/: New.
195 * configure.in: Require Autoconf 2.50.
196 Update to gettext 0.10.38.
197
32dfccf8
AD
1982001-03-16 Akim Demaille <akim@epita.fr>
199
200 * doc/bison.texinfo: ANSIfy the examples.
201
cd5bd6ac
AD
2022001-03-16 Akim Demaille <akim@epita.fr>
203
204 * getargs.c (skeleton): New variable.
205 (longopts): --skeleton is a new option.
206 (shortopts, getargs): -S is a new option.
207 * getargs.h: Declare skeleton.
208 * output.c (output_parser): Use it.
209
5141b016
AD
2102001-03-16 Akim Demaille <akim@epita.fr>
211
212 * m4/strerror_r.m4: New.
213 * m4/error.m4: Run AC_FUNC_STRERROR_R.
214 * lib/error.h, lib/error.c: Update.
215
447992b9
AD
2162001-03-16 Akim Demaille <akim@epita.fr>
217
218 * src/getargs.c (longopts): Clean up.
219
274d42ce
AD
2202001-02-21 Akim Demaille <akim@epita.fr>
221
222 * src/reader.c (gensym): `gensym_count' is your own.
223 Use a static buf to create the symbol name, as token_buffer is no
224 longer a buffer.
225
22c821f3
AD
2262001-02-08 Akim Demaille <akim@epita.fr>
227
228 * src/conflicts.c (conflict_report): Be sure not to append to res
229 between two calls, which could happen if both first sprintf were
230 skipped, but not the first cp += strlen.
231
18569462
AD
2322001-02-08 Akim Demaille <akim@epita.fr>
233
234 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
235 New, from fileutils 4.0.37.
236 * configure.in: Require Autoconf 2.49c. I took some time before
237 making this decision. This is the only way out for portability
238 issues in Bison, it would mean way too much duplicate effort to
239 import in Bison features implemented in 2.49c since 2.13.
240 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
241
0d8f3c8a
AD
2422001-02-02 Akim Demaille <akim@epita.fr>
243
244 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 245 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 246
f17bcd1f
AD
2472001-01-19 Akim Demaille <akim@epita.fr>
248
249 Get rid of the ad hoc handling of token_buffer in the scanner: use
250 the obstacks.
251
252 * src/lex.c (token_obstack): New.
253 (init_lex): Initialize it. No longer call...
254 (grow_token_buffer): this. Remove it.
255 Adjust all the places which used it to use the obstack.
256
511e79b3
AD
2572001-01-19 Akim Demaille <akim@epita.fr>
258
259 * src/lex.h: Rename all the tokens:
260 s/\bENDFILE\b/tok_eof/g;
261 s/\bIDENTIFIER\b/tok_identifier/g;
262 etc.
263 Let them be enums, not #define, to ease debugging.
264 Adjust all the code.
265
0d6508ef
AD
2662001-01-18 Akim Demaille <akim@epita.fr>
267
268 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
269 * src/lex.c (maxtoken, grow_token_buffer): Static.
270
6deb4447
AD
2712001-01-18 Akim Demaille <akim@epita.fr>
272
273 Since we now use obstacks, more % directives can be enabled.
274
275 * src/lex.c (percent_table): Also accept `%yacc',
276 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
277 `%debug'.
278 Handle the actions for `%semantic_parser' and `%pure_parser' here,
279 instead of returning a token.
280 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
281 * src/reader.c (read_declarations): Adjust.
282 * src/files.c (open_files): Don't call `compute_base_names', don't
283 compute `attrsfile' since they depend upon data which might be
284 *in* the input file now.
285 (output_files): Do it here.
286 * src/output.c (output_headers): Document the fact that this patch
287 introduces a guaranteed SEGV for semantic parsers.
288 * doc/bison.texinfo: Document them.
289 * tests/suite.at: Exercise these %options.
290
ff4423cc
AD
2912000-12-20 Akim Demaille <akim@epita.fr>
292
293 Also handle the output file (--verbose) with obstacks.
294
295 * files.c (foutput): Remove.
296 (output_obstack): New.
297 Adjust all dependencies.
298 * src/conflicts.c: Return a string.
299 * src/system.h (obstack_grow_string): Rename as...
300 (obstack_sgrow): this. Be ready to work with non literals.
301 (obstack_fgrow4): New.
302
956dba3a
AD
3032000-12-20 Akim Demaille <akim@epita.fr>
304
305 * src/files.c (open_files): Fix the computation of short_base_name
306 in the case of `-o foo.tab.c'.
307
337bab46
AD
3082000-12-20 Akim Demaille <akim@epita.fr>
309
310 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
311 (copy_dollar): Now that everything uses obstacks, get rid of the
312 FILE * parameters.
313
5d3214b8
AD
3142000-12-20 Akim Demaille <akim@epita.fr>
315
316 * src/files.c (open_files): Actually the `.output' file is based
317 on the short_base_name, not base_name.
318 * tests/suite.at (Checking output file names): Adjust.
319
29092a57
AD
3202000-12-20 Akim Demaille <akim@epita.fr>
321
322 * src/bison.s1: Remove, we now use directly...
323 * src/bison.simple: this.
324 * src/Makefile.am: Use pkgdata instead of data.
325
ea5607fd
AD
3262000-12-20 Akim Demaille <akim@epita.fr>
327
328 * src/files.c (guard_obstack): New.
329 (open_files): Initialize it.
330 (output_files): Dump it...
331 * src/files.h: Export it.
332 * src/reader.c (copy_guard): Use it.
333
27110317
AD
3342000-12-19 Akim Demaille <akim@epita.fr>
335
336 * src/files.c (outfile, defsfile, actfile): Removed as global
337 vars.
338 (open_files): Don't compute them.
339 (output_files): Adjust.
340 (base_name, short_base_name): Be global.
341 Adjust dependencies.
342
19c50364
AD
3432000-12-19 Akim Demaille <akim@epita.fr>
344
345 * src/files.c (strsuffix): New.
346 (stringappend): Be just like strcat but allocate.
347 (base_names): Eve out from open_files.
348 Try to simplify the rather hairy computation of base_name and
349 short_base_name.
350 (open_files): Use it.
351 * tests/suite.at (Checking output file names): New test.
352
573c1d9f
AD
3532000-12-19 Akim Demaille <akim@epita.fr>
354
355 * src/system.h (obstack_grow_literal_string): Rename as...
356 (obstack_grow_string): this.
357 * src/output.c (output_parser): Recognize `%% actions' instead of
358 `$'.
359 * src/bison.s1: s/$/%% actions/.
360 * src/bison.hairy: Likewise.
361
ef7ddedd
AD
3622000-12-19 Akim Demaille <akim@epita.fr>
363
364 * src/output.c (output_parser): Compute the `#line' lines when
365 there are.
366 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
367 Suggested by Hans Aberg.
368
ff61dabd
AD
3692000-12-19 Akim Demaille <akim@epita.fr>
370
371 Let the handling of the skeleton files be local to the procedures
372 that use it.
373
374 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
375 longer static.
376 (fparser, open_extra_files): Remove.
377 (open_files, output_files): Don't take care of fparser.
378 * src/files.h: Adjust.
379 * src/output.c (output_parser): Open and close the file to the
380 skeleton.
381 * src/reader.c (read_declarations): When %semantic_parser, open
382 fguard.
383
55b96341
AD
3842000-12-19 Akim Demaille <akim@epita.fr>
385
386 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
387 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
388
358c15b7
AD
3892000-12-19 Akim Demaille <akim@epita.fr>
390
391 * src/files.c (open_files): Yipee! We no longer need all the code
392 looking for `/tmp' since we have no tmp file.
393
7de3329e
AD
3942000-12-19 Akim Demaille <akim@epita.fr>
395
396 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
397 New macros.
398 * src/files.c (open_files): Less dependency on MSDOS etc.
399
3abcd459
AD
4002000-12-14 Akim Demaille <akim@epita.fr>
401
402 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
403 Provide a default definition.
404 Use it when executing the default @ action.
405 * src/reader.c (reader_output_yylsp): No longer include
406 `timestamp' and `text' in the default YYLTYPE.
407
2a91a95e
AD
4082000-12-12 Akim Demaille <akim@epita.fr>
409
410 * src/reader.c (copy_definition, parse_union_decl, copy_action)
411 (copy_guard): Quote the file names.
412 Reported by Laurent Mascherpa.
413
14d3eb9b
AD
4142000-12-12 Akim Demaille <akim@epita.fr>
415
416 * src/output.c (output_headers, output_program, output): Be sure
417 to escape special characters when outputting filenames.
418 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
419 (output_headers): Don't depend on them, Use ACTSTR.
420
d7045ec6
AD
4212000-11-17 Akim Demaille <akim@epita.fr>
422
423 * lib/obstack.h: Formatting changes.
424 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
425 prevents type checking.
426 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
427 cast the value to (void *): assigning a `foo *' to a `void *'
428 variable is valid.
429 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
430 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
431 append characters.
432
6fd54b73
AD
4332000-11-17 Akim Demaille <akim@epita.fr>
434
435 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
436 as...
437 (suite.m4, regression.m4, calc.m4): these.
438 * tests/atgeneral.m4: Update from CVS Autoconf.
439
4c50eae6
AD
4402000-11-17 Akim Demaille <akim@epita.fr>
441
442 * tests/regression.m4 (%union and --defines): New test,
443 demonstrating a current bug in the obstack implementation.
444
a35f64ea
AD
4452000-11-17 Akim Demaille <akim@epita.fr>
446
447 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
448 macros.
449 Use them to declare the variables which are global or local to
450 `yyparse'.
451
7de23534
AD
4522000-11-17 Akim Demaille <akim@epita.fr>
453
454 * acconfig.h: Remove, no longer used.
455
aa7815f5
AD
4562000-11-07 Akim Demaille <akim@epita.fr>
457
458 * src: s/Copyright (C)/Copyright/g.
459
5af1f549
AD
4602000-11-07 Akim Demaille <akim@epita.fr>
461
462 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
463 defining.
464 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
465
553e2b22
AD
4662000-11-07 Akim Demaille <akim@epita.fr>
467
468 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
469 Merge in a single CPP if/else.
470
8a4f41d6
AD
4712000-11-07 Akim Demaille <akim@epita.fr>
472
473 * src/output.c (output): Remove useless variables.
474 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
475 argument `data' for consistency with the prototypes.
476 Qualify it `const'.
477 (obstack_copy, obstack_copy0): Rename the second argument as
478 `address' for consistency. Qualify it `const'.
479 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
480 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
481 `const' their input argument (`data' or `address').
482 Adjust the corresponding macros to include `const' in casts.
483
095a3fb5
AD
4842000-11-03 Akim Demaille <akim@epita.fr>
485
486 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
487 s/PFILE1/BISON_HAIRY/.
488 Adjust dependencies.
489
d1cdce7c
AD
4902000-11-03 Akim Demaille <akim@epita.fr>
491
090c5ebf 492 For some reason, this was not applied.
d1cdce7c
AD
493
494 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
495 `unlink': it's no longer used.
496
9311529b
AD
4972000-11-03 Akim Demaille <akim@epita.fr>
498
499 * src/files.c (skeleton_find): New function, eved out of...
500 (open_files, open_extra_files): here.
501
d8880f69
AD
5022000-11-03 Akim Demaille <akim@epita.fr>
503
504 Don't use `atexit'.
505
506 * src/files.c (obstack_save): New function.
507 (done): Rename as...
508 (output_files): this.
509 Use `obstack_save'.
510 * src/main.c (main): Don't use `atexit' to register `done', since
511 it no longer has to remove tmp files, just call `output_files'
512 when there are no errors.
513
0dbb648e
AD
5142000-11-02 Akim Demaille <akim@epita.fr>
515
516 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
517 `unlink': it's no longer used.
518 * src/files.h: Formatting changes.
519
896fe5c1
AD
5202000-11-02 Akim Demaille <akim@epita.fr>
521
522 Remove the last uses of mktemp and unlink/delete.
523
524 * src/files.c (fdefines, ftable): Removed.
525 (defines_ostack, table_obstack): New.
526 Adjust dependencies of the former into uses of the latter.
527 * src/output.c (output_short_or_char_table, output_short_table):
528 Convert to using obstacks.
529 * src/reader.c (copy_comment2): Accept one FILE * and two
530 obstacks.
531 (output_token_defines, reader_output_yylsp): Use obstacks.
532 * src/system.h (obstack_fgrow3): New.
533
dd60faec
AD
5342000-11-01 Akim Demaille <akim@epita.fr>
535
536 Change each use of `fattrs' into a use of `attrs_obstack'.
537
538 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
539 * src/files.c (fattrs): Remove.
540 (attrs_obstack): New.
541 Adjust all dependencies.
542 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
543
8c7ebe49
AD
5442000-11-01 Akim Demaille <akim@epita.fr>
545
546 Introduce obstacks.
547 Change each use of `faction' into a use of `action_obstack'.
548
549 * lib/obstack.h, lib/obstack.c: New files.
550 * src/files.c (faction): Remove.
551 (action_obstack): New.
552 Adjust all dependencies.
553
77aee789
AD
5542000-10-20 Akim Demaille <akim@epita.fr>
555
556 * lib/quote.h (PARAMS): New macro. Use it.
557
43591cec
AD
5582000-10-16 Akim Demaille <akim@epita.fr>
559
560 * src/output.c (output_short_or_char_table): New function.
561 (output_short_table, output_token_translations): Use it.
562 (goto_actions): Use output_short_table.
563
1e9798d5
AD
5642000-10-16 Akim Demaille <akim@epita.fr>
565
566 * src/symtab.c (bucket_new): New function.
567 (getsym): Use it.
568
569 * src/output.c (output_short_table): New argument to display the
570 comment associated with the table.
571 Adjust dependencies.
572 (output_gram): Use it.
573 (output_rule_data): Nicer output layout for YYTNAME.
574
f282676b
AD
5752000-10-16 Akim Demaille <akim@epita.fr>
576
577 * src/lex.c (read_typename): New function.
578 (lex): Use it.
579 * src/reader.c (copy_dollar): Likewise.
580
550a72a3
AD
5812000-10-16 Akim Demaille <akim@epita.fr>
582
583 * src/reader.c (copy_comment2): Expect the input stream to be on
584 the `/' which is suspected to open a comment, instead of being
585 called after `//' or `/*' was read.
586 (copy_comment, copy_definition, parse_union_decl, copy_action)
587 (copy_guard): Adjust.
588
131e2fef
AD
5892000-10-16 Akim Demaille <akim@epita.fr>
590
591 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
592 `read_signed_integer'.
593
79282c5a
AD
5942000-10-16 Akim Demaille <akim@epita.fr>
595
596 * src/reader.c (copy_dollar): New function.
597 (copy_guard, copy_action): Use it.
598
ff4a34be
AD
5992000-10-16 Akim Demaille <akim@epita.fr>
600
601 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
602 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
603 New files, from Fileutils 4.0.27.
604 * src/main.c (printable_version): Remove.
605 * src/lex.c, src/reader.c: Use `quote'.
606
6072000-10-04 Akim Demaille <akim@epita.fr>
608
609 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
610
14ded682
AD
6112000-10-04 Akim Demaille <akim@epita.fr>
612
613 * doc/bison.texinfo: Various typos spotted by Neil Booth.
614
8e03724b
AD
6152000-10-04 Akim Demaille <akim@epita.fr>
616
617 When a literal string is used to define two different tokens,
618 `bison -v' segfaults.
619 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
620
621 * tests/regression.m4: New file.
622 Include the core of the sample provided by Piotr Gackiewicz.
623 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
624 properly.
625
a9e64249
AD
6262000-10-04 Akim Demaille <akim@epita.fr>
627
628 * src/reader.c (parse_expect_decl): Keep `count' within the size
629 of `buffer'.
630 From Neil Booth.
631
da9abf43
AD
6322000-10-02 Paul Eggert <eggert@twinsun.com>
633
634 * bison.s1 (yyparse): Assign the default value
635 unconditionally, to avoid a GCC warning and make the parser a
636 tad smaller.
637
c33638bb
AD
6382000-10-02 Akim Demaille <akim@epita.fr>
639
640 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
641 options.
642
444c570a
AD
6432000-10-02 Akim Demaille <akim@epita.fr>
644
645 * src/derives.c, src/print.c, src/reduce.c: To ease the
646 translation, move some `\n' out of the translated strings.
647
89cab50d
AD
6482000-10-02 Akim Demaille <akim@epita.fr>
649
650 The location tracking mechanism is precious for parse error
651 messages. Nevertheless, it is enabled only when `@n' is used in
652 the grammar, which is a different issue (you can use it in error
653 message, but not in the grammar per se). Therefore, there should
654 be another means to enable it.
655
656 * src/getargs.c (getargs): Support `--locations'.
657 (usage): Report it.
658 * src/getargs.h (locationsflag): Export it.
659 * src/lex.c (percent_table): Support `%locations'.
660 * src/reader.c (yylsp_needed): Remove this variable, now replaced
661 with `locationsflag'.
662 * doc/bison.texinfo: Document `--locations' and `%locations'.
663 Sort the options.
664 * tests/calc.m4: Test it.
665
666 For regularity of the names, replace each
667 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
668 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
669 In addition replace each `flag' with `_flag'.
670
d6c2cba0
AD
6712000-10-02 Akim Demaille <akim@epita.fr>
672
673 Also test parse error messages, including with YYERROR_VERBOSE.
674
675 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
676 associative).
677 Use it to check the computations.
678 Use it to check `nonassoc' is honored.
679 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
680 `--yyerror-verbose'.
681 (_AT_CHECK_CALC): Adjust to this option.
682 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
683
5a35a6cb
AD
6842000-10-02 Akim Demaille <akim@epita.fr>
685
686 Test also `--verbose', `--defines' and `--name-prefix'. Testing
687 the latter demonstrates a flaw in the handling of non debugging
688 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
689 was used in order to simplify:
690
691 #if YYDEBUG
692 if (yydebug)
693 {
694 ...
695 }
696 #endif
697
698 into
699
700 if (yydebug)
701 {
702 ...
703 }
704
705 unfortunately this leads to a CPP conflict when
706 `--name-prefix=foo' is used since it produces `#define yydebug
707 foodebug'.
708
709 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
710 (YYDPRINTF): New macro.
711 Spread its use.
712 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
713 the bison options.
714 Also test `--verbose', `--defines' and `--name-prefix'.
715
71da9eea
AD
7162000-10-02 Akim Demaille <akim@epita.fr>
717
718 Improve the readability of the produced parsers.
719
720 * src/bison.s1: Formatting changes.
721 Improve the comment related to the `$' mark.
722 (yydefault): Don't fall through to `yyresume': `goto' there.
723 * src/output.c (output_parser): When the `$' is met, skip the end
724 of its line.
725 New variable, `number_of_dollar_signs', to check there's exactly
726 one `$' in the parser skeleton.
727
95e36146
AD
7282000-10-02 Akim Demaille <akim@epita.fr>
729
730 * lib/xstrdup.c: New file, from the fileutils.
731 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
732 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
733 instead of strlen + xmalloc + strcpy.
734 * src/symtab.c (copys): Remove, use xstrdup instead.
735
d7020c20
AD
7362000-10-02 Akim Demaille <akim@epita.fr>
737
738 * src/gram.h (associativity): New enum type which replaces the
739 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
740 `right_assoc', `left_assoc' and `non_assoc'.
741 Adjust all dependencies.
742 * src/reader.c: Formatting changes.
743 (LTYPESTR): Don't define it, use it as a literal in
744 `reader_output_yylsp'.
745 * src/symtab.h (symbol_class): New enum type which replaces the
746 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
747 `sunknown', `stoken and `snterm'.
748
1916f98e
AD
7492000-10-02 Akim Demaille <akim@epita.fr>
750
751 * src/getargs.c (fixed_outfiles): Rename as...
752 (yaccflag): for consistency and accuracy.
753 Adjust dependencies.
754
d7913476
AD
7552000-10-02 Akim Demaille <akim@epita.fr>
756
757 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
758 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
759 difficult and introduced a lot of core dump. It turns out that
760 Bison used an implementation of `xmalloc' based on `calloc', and
761 at various places it does depend upon the initialization to 0. I
762 have not tried to isolate the pertinent places, and all the former
763 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
764 someone should address this issue.
765
766 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
767 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
768 files.
769 Adjust dependencies.
770 * src/warshall.h: New file.
771 Propagate.
772
340ef489
AD
7732000-10-02 Akim Demaille <akim@epita.fr>
774
775 Various anti-`extern in *.c' changes.
776
777 * src/system.h: Include `assert.h'.
778
b2ca4022
AD
7792000-10-02 Akim Demaille <akim@epita.fr>
780
781 * src/state.h (nstates, final_state, first_state, first_shift)
782 (first_reduction): Move their exportation from here...
783 * src/LR0.h: to here.
784 Adjust dependencies.
785 * src/getargs.c (statisticsflag): New variable.
786 Add support for `--statistics'.
787 Adjust dependencies.
788
789 Remove a lot of now useless `extern' statements in most files.
790
403b315b
AD
7912000-10-02 Akim Demaille <akim@epita.fr>
792
793 * src/LR0.h: New file.
794 Propagate its use.
795
07a58c13
AD
7962000-10-02 Akim Demaille <akim@epita.fr>
797
798 * src/print.h: New file.
799 Propagate its use.
800 * src/print.c: Formatting and ordering changes.
801 (verbose, terse): Replace with...
802 (print_results): this new function.
803 Adjust dependencies.
804
0619caf0
AD
8052000-10-02 Akim Demaille <akim@epita.fr>
806
807 * src/conflicts.c (conflict_report): New function.
808 (conflict_log, verbose_conflict_log): Replace with...
809 (print_conflicts): this function.
810 Adjust dependencies.
811 * src/conflicts.h: New file.
812 Propagate its inclusion.
813
3519ec76
AD
8142000-10-02 Akim Demaille <akim@epita.fr>
815
816 * src/nullable.h: New file.
817 Propagate its inclusion.
818 * src/nullable.c: Formatting changes.
819
015acc48
AD
8202000-10-02 Akim Demaille <akim@epita.fr>
821
822 * src/reduce.h: New file.
823 Propagate its inclusion.
824 * src/reduce.c: Topological sort and other formatting changes.
825 (bool, TRUE, FALSE): Move their definition to...
826 * src/system.h: here.
827
8963a27b
AD
8282000-10-02 Akim Demaille <akim@epita.fr>
829
830 * src/files.c: Formatting changes.
831 (tryopen, tryclose, openfiles): Rename as...
832 (xfopen, xfclose, open_files): this.
833 (stringappend): static.
834 * src/files.h: Complete the list of exported symbols.
835 Propagate its use.
836
a70083a3
AD
8372000-10-02 Akim Demaille <akim@epita.fr>
838
839 * src/reader.h: New file.
840 Propagate its use instead of tedious list of `extern' and
841 prototypes.
842 * src/reader.c: Formatting changes, topological sort,
843 s/register//.
844
abadc117
AD
8452000-10-02 Akim Demaille <akim@epita.fr>
846
847 * src/lex.h: Prototype `lex.c' exported functions.
848 * src/reader.c: Adjust.
849 * src/lex.c: Formatting changes.
850 (safegetc): Rename as...
851 (xgetc): this.
852
720d742f
AD
8532000-10-02 Akim Demaille <akim@epita.fr>
854
855 * src/lalr.h: New file.
856 Propagate its inclusion instead of prototypes and `extern'.
857 * src/lalr.c: Formatting changes, topological sorting etc.
858
f2acea59
AD
8592000-10-02 Akim Demaille <akim@epita.fr>
860
861 * src/output.c (token_actions): Introduce a temporary array,
862 YYDEFACT, that makes it possible for this function to use
863 output_short_table.
864
d019d655
AD
8652000-10-02 Akim Demaille <akim@epita.fr>
866
867 `user_toknums' is output as a `short[]' in `output.c', while it is
868 defined as a `int[]' in `reader.c'. For consistency with the
869 other output tables, `user_toknums' is now defined as a table of
870 shorts.
871
872 * src/reader.c (user_toknums): Be a short table instead of an int
873 table.
874 Adjust dependencies.
875
876 Factor the short table outputs.
877
878 * src/output.c (output_short_table): New function.
879 * src/output.c (output_gram, output_stos, output_rule_data)
880 (output_base, output_table, output_check): Use it.
881
6c89f1c1
AD
8822000-10-02 Akim Demaille <akim@epita.fr>
883
884 * src/output.c (output): Topological sort of the functions, in
885 order to get rid of the `static' prototypes.
886 No longer use `register'.
887 * src/output.h: New file.
888 Propagate its inclusion in files explicitly prototyping functions
889 from output.c.
890
d9efd181
AD
8912000-09-21 Akim Demaille <akim@epita.fr>
892
893 * src/atgeneral.m4: Update from Autoconf.
894
c29240e7 8952000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
896
897 * src/closure.h: New file.
898 * src/closure.c: Formatting changes, topological sort over the
899 functions, use of closure.h.
900 (initialize_closure, finalize_closure): Rename as...
901 (new_closure, free_closure): these. Adjust dependencies.
902 * src/LR0.c: Formatting changes, topological sort, use of
903 cloture.h.
904 (initialize_states): Rename as...
905 (new_states): this.
906 * src/Makefile.am (noinst_HEADERS): Adjust.
907
499daa50
AD
9082000-09-20 Akim Demaille <akim@epita.fr>
909
910 * src/acconfig.h: Don't protect config.h against multiple
911 inclusion.
912 Don't define PARAMS.
913 * src/system.h: Define PARAMS.
914 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
915 purpose of config.h. system.h must not try to fix wrong
916 definitions in config.h.
917
cc84fd5d
AD
9182000-09-20 Akim Demaille <akim@epita.fr>
919
920 * src/derives.h: New file.
921 * src/main.c, src/derives.h: Use it.
922 Formatting changes.
923 * src/Makefile.am (noinst_HEADERS): Adjust.
924
db5b3a89
AD
9252000-09-20 Akim Demaille <akim@epita.fr>
926
927 * tests/atgeneral.m4: Update from Autoconf.
928 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
929 (AT_CHECK_CALC): New macros.
930 Use these macros to test bison with options `', `--raw',
931 `--debug', `--yacc', `--yacc --debug'.
932
ceed8467
AD
9332000-09-19 Akim Demaille <akim@epita.fr>
934
935 * src/output.c: Formatting changes.
936 * src/machine.h: Remove, leaving its contents in...
937 * src/system.h: here.
938 Include stdio.h.
939 Adjust all dependencies on stdio.h and machine.h.
940 * src/getargs.h: New file.
941 Let all `extern' declarations about getargs.c be replaced with
942 inclusion of `getargs.h'.
943 * src/Makefile.am (noinst_HEADERS): Adjust.
944
945 * tests/calc.m4 (yyin): Be initialized in main, not on the global
946 scope.
947 (yyerror): Returns void, not int.
948 * doc/bison.texinfo: Formatting changes.
949
05a1d24b
AD
9502000-09-19 Akim Demaille <akim@epita.fr>
951
952 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
953 portable.
954
cbd25751
AD
9552000-09-18 Akim Demaille <akim@epita.fr>
956
957 * configure.in: Append WARNING_CFLAGS to CFLAGS.
958 * src/Makefile.am (INCLUDES): Don't.
959 Be ready to fetch headers in lib/.
960
13863333
AD
9612000-09-18 Akim Demaille <akim@epita.fr>
962
963 * doc/bison.texinfo: Update the copyright.
964 ANSIfy and GNUify the examples.
965 Remove the old menu.
966
0d533154
AD
9672000-09-18 Akim Demaille <akim@epita.fr>
968
969 First set of tests: use the `calc' example from the documentation.
970
971 * src/bison.s1 (yyparse): Condition the code using `yytname' which
972 is defined only when YYDEBUG is.
973 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
974 * src/files.c (tryopen, tryclose): Formatting changes.
975 Move to the top and be static.
976 * src/reader.c (read_signed_integer): Likewise.
977 * tests/calc.m4: New file.
978 * Makefile.am, suite.m4: Adjust.
979 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
980
e79137ac
AD
9812000-09-18 Akim Demaille <akim@epita.fr>
982
983 Add support for an Autotest test suite for Bison.
984
985 * m4/m4.m4, m4/atconfig.m4: New files.
986 * m4/Makefile.am (EXTRA_DIST): Adjust.
987 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
988 files.
989 * src/getargs.c: Display a more standard --version message.
990 * src/reader.c (reader): Formatting changes.
991 No longer depend upon VERSION_STRING.
992 * configure.in: No longer use `dnl'.
993 Set up the test suite and the new directory `tests/.
994 (VERSION_STRING): Remove.
995
27821bff
AD
9962000-04-14 Akim Demaille <akim@epita.fr>
997
998 * src/reader.c (copy_comment2): New function, same as former
999 `copy_comment', but outputs into two FILE *.
1000 (copy_comment): Use it.
1001 (parse_union_decl): Use it.
1002 (get_type, parse_start_decl): Use the same `invalid' message.
1003 (parse_start_decl, parse_union_decl): Use the same `multiple'
1004 message.
1005 (parse_union_decl, copy_guard, copy_action): Use the same
1006 `unmatched' message.
1007 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1008
cfe5fbc0
AD
10092000-03-31 Akim Demaille <akim@epita.fr>
1010
1011 * src/files.c (tryopen, tryclose): Move to the top.
1012 Be static.
1013
cb7db13e
AD
10142000-03-31 Akim Demaille <akim@epita.fr>
1015
1016 * src/main.c (main): Don't call `done', exit does it.
1017
a0f6b076
AD
10182000-03-31 Akim Demaille <akim@epita.fr>
1019
36281465
AD
1020 * allocate.c: s/return (foo)/return foo/.
1021 * lalr.c: Likewise.
1022 * LR0.c: Likewise.
1023 * output.c: Likewise.
1024 * reader.c: Likewise.
1025 * symtab.c: Likewise.
1026 * vmsgetargs.c: Likewise.
1027
10282000-03-31 Akim Demaille <akim@epita.fr>
1029
1030 Clean up the error reporting functions.
a0f6b076
AD
1031
1032 * src/report.c: New file.
1033 * src/report.h: Likewise.
1034 * src/Makefile.am: Adjust.
1035 * m4/error.m4: New file.
1036 * m4/Makefile.am: Adjust.
1037 * configure.in (jm_PREREQ_ERROR): Call it.
1038 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1039 Remove.
1040 (fatal, fatals): Remove. All callers use complain.c::fatal.
1041 (warn, warni, warns, warnss, warnss): Remove. All callers use
1042 complain.c::complain.
1043 (toomany): Remove, use fatal instead.
1044 * src/files.c (done): No argument, use complain_message_count.
1045 * src/main.c (main): Register `done' to `atexit'.
1046
1047 * src/getargs.c (usage): More `fputs', less `fprintf'.
1048
18539825
AD
10492000-03-28 Akim Demaille <akim@epita.fr>
1050
1051 * lib/: New directory.
1052 * Makefile.am (SUBDIRS): Adjust.
1053 * configure.in: Adjust.
1054 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1055 useless.
1056 * src/alloca.c: Moved to lib/.
1057 * src/getopt.c: Likewise.
1058 * src/getopt1.c: Likewise.
1059 * src/getopt.h: Likewise.
1060 * src/ansi2knr.c: Likewise.
1061 * src/ansi2knr.1: Likewise.
1062 * src/Makefile.am: Adjust.
1063 * lib/Makefile.am: New file.
1064
9f306f2a
AD
10652000-03-28 Akim Demaille <akim@epita.fr>
1066
1067 * src/getargs.c (usage): Refresh the help message.
1068
0ba347b6
AD
10692000-03-17 Akim Demaille <akim@epita.fr>
1070
1071 * src/getopt1.c: Updated from textutils 2.0e
1072 * src/getopt.c: Likewise.
1073 * src/getopt.h: Likewise.
1074
dbe7f271
AD
10752000-03-17 Akim Demaille <akim@epita.fr>
1076
1077 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1078 the file name, not the whole `#line LINE FILE'.
1079
75bbe78d
AD
10802000-03-17 Akim Demaille <akim@epita.fr>
1081
1082 On syntax errors, report the token on which we choked.
1083
aa5fd0ee
AD
1084 * src/bison.s1 (yyparse): In the label yyerrlab, when
1085 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1086
7b306f52
AD
10872000-03-17 Akim Demaille <akim@epita.fr>
1088
aa5fd0ee 1089 * src/reader.c (copy_at): New function.
7b306f52
AD
1090 (copy_guard): Use it.
1091 (copy_action): Use it.
1092
e87b5700
AD
10932000-03-17 Akim Demaille <akim@epita.fr>
1094
1095 Be kind to translators, save some useless translations.
1096
aa5fd0ee 1097 * src/main.c (banner): New function.
e87b5700
AD
1098 (fatal_banner): Use it.
1099 (warn_banner): Use it.
1100
ae3c3164
AD
11012000-03-17 Akim Demaille <akim@epita.fr>
1102
aa5fd0ee
AD
1103 * src/reader.c (copy_definition): Use copy_string and
1104 copy_comment. Removed now unused `match', `ended',
1105 `cplus_comment'.
ae3c3164
AD
1106 (copy_comment, copy_string): Moved, to be visible from
1107 copy_definition.
1108
4dc58e7c
AD
11092000-03-17 Akim Demaille <akim@epita.fr>
1110
aa5fd0ee
AD
1111 * src/reader.c (copy_string): Declare `static inline'. No
1112 problems with inline, since it is checked by configure.
4dc58e7c
AD
1113 (copy_comment): Likewise.
1114
0a6384c4
AD
11152000-03-17 Akim Demaille <akim@epita.fr>
1116
aa5fd0ee 1117 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1118
3cef001a
AD
11192000-03-17 Akim Demaille <akim@epita.fr>
1120
aa5fd0ee 1121 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1122 (copy_action): Use it. Removed now unused `match', `ended',
1123 `cplus_comment'.
1124 (copy_guard): Likewise.
1125
ca36d2ef
AD
11262000-03-17 Akim Demaille <akim@epita.fr>
1127
aa5fd0ee 1128 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1129 (copy_action): Use it.
1130 (copy_guard): Likewise.
1131
6666f98f
AD
11322000-03-17 Akim Demaille <akim@epita.fr>
1133
1134 Change the handling of @s so that they behave exactly like $s.
1135 There is now a pseudo variable @$ (readble and writable), location
1136 of the lhs of the rule (by default ranging from the location of
1137 the first symbol of the rhs, to the location of the last symbol,
1138 or, if the rhs is empty, YYLLOC).
1139
1140 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1141 yyval.
1142 (yyparse): When providing a default semantic action, provide a
1143 default location action.
1144 (after the $): No longer change `*YYLSP', just stack YYLOC the
1145 same way you stack YYVAL.
1146 * src/reader.c (read_declarations): Use warns.
1147 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1148 (copy_action, case '@'): Likewise.
1149 Use a standard error message, to save useless work from
1150 translators.
1151
41aca2e0
AD
11522000-03-17 Akim Demaille <akim@epita.fr>
1153
aa5fd0ee
AD
1154 * src/bison.s1: Formatting and cosmetics changes.
1155 * src/reader.c: Likewise.
41aca2e0
AD
1156 Update the Copyright notice.
1157
dc08c1d5
AD
11582000-03-17 Akim Demaille <akim@epita.fr>
1159
aa5fd0ee
AD
1160 * src/bison.s1 (#line): All set to `#line' only, since the
1161 Makefile now handles them.
dc08c1d5 1162
9ee3c97b
AD
11632000-03-16 Akim Demaille <akim@epita.fr>
1164
1165 * src/output.c (output_rule_data): Output the documentation of
1166 some of the tables.
1167 (Copyright notice): Update.
1168 Formatting changes.
1169
0de741ca
AD
11702000-03-16 Akim Demaille <akim@epita.fr>
1171
1172 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1173 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1174 One `#if YYDEBUG' remains, since it uses variables which are
1175 defined only if `YYDEBUG != 0'.
1176
bb10be54
AD
11772000-03-16 Akim Demaille <akim@epita.fr>
1178
1179 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1180 and related variables so that the similarities are highlighted.
1181
b07b484a
AD
11822000-03-16 Akim Demaille <akim@epita.fr>
1183
1184 * src/bison.s1: Properly indent CPP directives.
1185
361f60b3
AD
11862000-03-16 Akim Demaille <akim@epita.fr>
1187
1188 * src/bison.s1: Properly indent the `alloca' CPP section.
1189
8c44d3ec
AD
11902000-03-16 Akim Demaille <akim@epita.fr>
1191
1192 Do not hard code values of directories in `configure.in'.
1193 Update the `configure' tool chain.
1194
1195 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1196 src/makefile.am.
1197 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1198 (AC_OUTPUT): Add m4/Makefile.
1199 Bump to bison 1.28a, 1.29 has never been released.
1200 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1201 handled via src/Makefile.am.
1202 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1203 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1204 autoheader.
1205 * Makefile.am (SUBDIRS): Add m4.
1206 (ACLOCAL_AM_FLAGS): New variable.
1207 (AUTOMAKE_OPTIONS): Add check-news.
1208 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1209 the proper line number and file name.
1210 (DEFS): Propagate the location of bison library files and of the
1211 locale files.
1212 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1213 builddir.
1214 * acinclude.m4: Remove, replaced by the directory m4.
1215 * m4/Makefile.am (EXTRA_DIST): New variable.
1216 * m4/gettext.m4: New file, from the fileutils.
1217 * m4/lcmessage.m4: Likewise
1218 * m4/progtest.m4: Likewise.
1219 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1220
f95997e7
AD
12212000-03-10 Akim Demaille <akim@epita.fr>
1222
1223 * src/closure.c:
1224 Formatting changes of various comments.
1225 Respect the GNU coding standards at various places.
1226 Don't use `_()' when no translation is needed.
1227
12281999-12-13 Jesse Thilo <jthilo@gnu.org>
1229
1230 * src/files.c:
1231 OS/2 honors TMPDIR environment variable.
1232
12331999-12-13 Jesse Thilo <jthilo@gnu.org>
1234
1235 * doc/bison.texinfo: Tweaked spelling and grammar.
1236 Updated ISBN.
1237 Removed reference to price of printed copy.
1238 Mention BISON_SIMPLE and BISON_HAIRY.
1239
12401999-12-13 Jesse Thilo <jthilo@gnu.org>
1241
1242 * configure.in, NEWS:
1243 Bison 1.29 released.
1244
12451999-10-27 Jesse Thilo <jthilo@gnu.org>
1246
1247 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1248 Added reference card.
1249
12501999-07-26 Jesse Thilo <jthilo@gnu.org>
1251
1252 * po/ru.po: Added Russian translation.
1253
12541999-07-26 Jesse Thilo <jthilo@gnu.org>
1255
1256 * configure.in: Added Russian translation.
1257
12581999-07-06 Jesse Thilo <jthilo@gnu.org>
1259
1260 * configure.in, NEWS, README:
1261 Released version 1.28.
1262
12631999-06-14 Jesse Thilo <jthilo@gnu.org>
1264
1265 * src/system.h:
1266 Squashed redefinition warning on some systems.
1267
1268 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1269 Have configure build version string instead of relying on ANSI string
1270 concatentation.
1271
12721999-06-14 Jesse Thilo <jthilo@gnu.org>
1273
1274 * po/POTFILES.in: Got rid of version.c.
1275
12761999-06-14 Jesse Thilo <jthilo@gnu.org>
1277
1278 * acconfig.h, configure.in:
1279 Have configure build version string instead of relying on ANSI string
1280 concatentation.
1281
12821999-06-08 Jesse Thilo <jthilo@gnu.org>
1283
1284 * doc/bison.1:
1285 Dropped mention of `+' for long-named options.
1286
12871999-05-30 Jesse Thilo <jthilo@gnu.org>
1288
1289 * src/files.c: Added <unistd.h> for unlink().
1290
1291 * src/Makefile.am, src/system.h:
1292 I18n fixes.
1293
12941999-05-30 Jesse Thilo <jthilo@gnu.org>
1295
1296 * README: Added a FAQ list.
1297
1298 * configure.in, acconfig.h:
1299 I18n fixes.
1300
13011999-05-30 Jesse Thilo <jthilo@gnu.org>
1302
1303 * doc/FAQ, doc/Makefile.am:
1304 Added a FAQ list.
1305
13061999-05-19 Jesse Thilo <jthilo@gnu.org>
1307
1308 * src/alloc.h, src/symtab.h, src/version.c:
1309 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1310
13111999-04-18 Jesse Thilo <jthilo@gnu.org>
1312
1313 * src/.cvsignore, src/Makefile.am:
1314 Reorganized: sources in `src', documentation in `doc'.
1315
1316 * src/lex.c (literalchar):
1317 fixed the code for escaping double quotes (thanks
1318 Jonathan Czisny.)
1319
13201999-04-18 Jesse Thilo <jthilo@gnu.org>
1321
1322 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1323 Adjusted paths to reflect directory reorganization.
1324
13251999-04-18 Jesse Thilo <jthilo@gnu.org>
1326
1327 * doc/.cvsignore, doc/Makefile.am:
1328 Reorganized: sources in `src', documentation in `doc'.
1329
13301999-04-18 Jesse Thilo <jthilo@gnu.org>
1331
1332 * configure.in:
1333 Updated AC_INIT file to reflect directory reorganization.
1334
1335 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1336 Reorganized: sources in `src', documentation in `doc'.
1337
13381999-04-13 Jesse Thilo <jthilo@gnu.org>
1339
1340 * src/allocate.c:
1341 Don't declare calloc() and realloc() if not necessary.
1342
13431999-04-13 Jesse Thilo <jthilo@gnu.org>
1344
1345 * configure.in, acconfig.h, acinclude.m4:
1346 Don't declare calloc() and realloc() if not necessary.
1347
13481999-03-23 Jesse Thilo <jthilo@gnu.org>
1349
1350 * po/.cvsignore: Added i18n support.
1351
13521999-03-23 Jesse Thilo <jthilo@gnu.org>
1353
1354 * acconfig.h, configure.in, Makefile.am:
1355 Added i18n support.
1356
13571999-03-22 Jesse Thilo <jthilo@gnu.org>
1358
1359 * src/bison.s1: Fixed #line numbers.
1360
13611999-03-15 Jesse Thilo <jthilo@gnu.org>
1362
1363 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1364 Added PO files from Translation Project.
1365
13661999-03-03 Jesse Thilo <jthilo@gnu.org>
1367
1368 * Makefile.am:
1369 Added support for non-ANSI compilers (ansi2knr).
1370
13711999-02-16 Jesse Thilo <jthilo@gnu.org>
1372
1373 * configure.in: Bumped version number to 1.27.
1374
1375 * Makefile.am:
1376 Added `bison.simple' to list of files removed by `make distclean'.
1377
13781999-02-12 Jesse Thilo <jthilo@gnu.org>
1379
1380 * src/files.c, src/files.h:
1381 Defined locations of parser files in config.h instead of Makefile.
1382
13831999-02-12 Jesse Thilo <jthilo@gnu.org>
1384
1385 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1386 Defined locations of parser files in config.h instead of Makefile.
1387
13881999-02-09 Jesse Thilo <jthilo@gnu.org>
1389
1390 * Makefile.am:
1391 Removed inappropriate use of $< macro.
1392
13931999-02-05 Jesse Thilo <jthilo@gnu.org>
1394
1395 * po/Makefile.in.in, po/POTFILES.in:
1396 Add `po' directory skeleton.
1397
13981999-01-27 Jesse Thilo <jthilo@gnu.org>
1399
1400 * README: Document help-bison list.
1401
1402 * configure.in: Add check for mkstemp().
1403
14041999-01-20 Jesse Thilo <jthilo@gnu.org>
1405
1406 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1407 Hush a few compiler warnings.
1408
1409 * src/files.c:
1410 Add tryclose(), which verifies that fclose was successful.
1411 Hush a couple of compiler warnings.
1412
14131999-01-20 Jesse Thilo <jthilo@gnu.org>
1414
1415 * Makefile.am, OChangeLog:
1416 ChangeLog is now automatically generated. Include the old version as
1417 OChangeLog.
1418
14191999-01-14 Jesse Thilo <jthilo@gnu.org>
1420
1421 * 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:
1422 Update FSF address.
1423
14241999-01-14 Jesse Thilo <jthilo@gnu.org>
1425
1426 * doc/bison.texinfo: Fix formatting glitch.
1427
1428 * doc/bison.texinfo: Update FSF address.
1429
14301999-01-14 Jesse Thilo <jthilo@gnu.org>
1431
1432 * acconfig.h: Update FSF address.
1433
14341999-01-08 Jesse Thilo <jthilo@gnu.org>
1435
1436 * src/system.h:
1437 Don't define PACKAGE here, since config.h defines it.
1438
14391998-12-30 Jesse Thilo <jthilo@gnu.org>
1440
1441 * src/reader.c: Update copyright date.
1442
1443 * src/main.c:
1444 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1445 favor of output directly to stderr (avoids buffer overruns).
1446
1447 * src/reader.c: Some checks for premature EOF.
1448
1449 * 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:
1450 Use prototypes if the compiler understands them.
1451
1452 * src/files.c: Honor TMPDIR on Unix hosts.
1453 Use prototypes if the compiler understands them.
1454
1455 * src/reader.c:
1456 Fix a couple of buffer overrun bugs.
1457 Use prototypes if the compiler understands them.
1458
1459 * src/system.h: Include unistd.h and ctype.h.
1460 Use #ifdef instead of #if for NLS symbols.
1461
14621998-12-30 Jesse Thilo <jthilo@gnu.org>
1463
1464 * doc/bison.texinfo:
1465 Delete comment "consider using @set for edition number, etc..." since
1466 we now are doing so.
1467
14681998-12-30 Jesse Thilo <jthilo@gnu.org>
1469
1470 * configure.in:
1471 Use prototypes if the compiler understands them.
1472
1473 * NEWS: Document 1.26 highlights.
1474
1475 * Makefile.am: Require Automake 1.3 or later.
1476
1477 * acconfig.h:
1478 Use prototypes if the compiler understands them.
1479
14801998-12-29 Jesse Thilo <jthilo@gnu.org>
1481
1482 * src/version.c:
1483 Use VERSION symbol from automake for version number.
1484
14851998-12-29 Jesse Thilo <jthilo@gnu.org>
1486
1487 * acconfig.h, configure.in, version.cin:
1488 Use VERSION symbol from automake for version number.
1489
14901998-11-28 Jesse Thilo <jthilo@gnu.org>
1491
1492 * Makefile.am:
1493 Distribute original version of simple parser (bison.s1), not built
1494 version (bison.simple).
1495
14961998-11-28 Jesse Thilo <jthilo@gnu.org>
1497
1498 * doc/bison.texinfo: Add info dir entry.
1499
1500 * doc/bison.texinfo:
1501 Let automake put version number into documentation.
1502
15031998-11-26 Jesse Thilo <jthilo@gnu.org>
1504
1505 * src/bison.cld, src/build.com, src/vmshlp.mar:
1506 Add non-RCS files from /gd/gnu/bison.
1507
15081998-11-26 Jesse Thilo <jthilo@gnu.org>
1509
1510 * doc/bison.1:
1511 Document the BISON_HAIRY and BISON_SIMPLE variables.
1512
15131998-11-25 Jesse Thilo <jthilo@gnu.org>
1514
1515 * src/version.c: Build version.c automatically.
1516
1517 * src/reader.c:
1518 Fix token numbering (used to start at 258, not 257).
1519
1520 * src/system.h: Include config.h.
1521
1522 * src/getargs.c: Update bug report address.
1523
1524 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1525 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1526
15271998-11-25 Jesse Thilo <jthilo@gnu.org>
1528
1529 * Makefile.am:
1530 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1531
1532 * configure.in, version.cin:
1533 Build version.c automatically.
1534
1535 * AUTHORS: Add AUTHORS file.
1536
1537 * README: Update bug report address.
1538
1539 * bison.simple:
1540 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1541
1542 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1543 Add automake stuff.
1544
15451998-11-25 Jesse Thilo <jthilo@gnu.org>
1546
1547 * doc/bison.texinfo: Clean up some formatting.
1548
15491998-05-05 Richard Stallman <rms@gnu.org>
1550
1551 * doc/bison.texinfo:
1552 Explain better why to make a pure parser.
1553
15541998-01-05 Richard Stallman <rms@gnu.org>
1555
1556 * src/files.c (openfiles):
1557 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1558 find a temporary directory, if possible. Do not unlink files while
1559 they are open.
1560
15611997-08-25 Richard Stallman <rms@gnu.org>
1562
1563 * src/reader.c (stack_offset;):
1564 Change some warni to warns.
1565
1566 * src/lex.c (literalchar): Use warns, not warni.
1567
15681997-06-28 Richard Stallman <rms@gnu.org>
1569
1570 * src/bison.s1: Add a Bison version comment.
1571
1572 * src/main.c (fatal, warn, berror):
1573 Use program_name.
1574
15751997-06-28 Richard Stallman <rms@gnu.org>
1576
1577 * Makefile.in (bison_version): New variable.
1578 (dist): Use that variable.
1579 (bison.s1): Substitute the Bison version into bison.simple.
1580
1581 * bison.simple: Add a Bison version comment.
1582
15831997-06-18 Richard Stallman <rms@gnu.org>
1584
1585 * src/main.c (fatal, warn, berror):
1586 Make error messages standard.
1587 (toomany): Improve error message text.
1588
1589 * 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:
1590 new.h renamed to alloc.h.
1591
15921997-06-18 Richard Stallman <rms@gnu.org>
1593
1594 * Makefile.in: new.h renamed to alloc.h.
1595
15961997-05-24 Richard Stallman <rms@gnu.org>
1597
1598 * src/lex.c (literalchar):
1599 Fix the code for escaping \, " and '.
1600
1601 (lex): Avoid trouble when there are many chars
1602 to discard in a char literal with just several chars in it.
1603
16041997-05-17 Richard Stallman <rms@gnu.org>
1605
1606 * src/bison.s1:
1607 Use malloc, if using alloca is troublesome.
1608 (YYSTACK_USE_ALLOCA): New flag macro.
1609 Define it for some systems and compilers.
1610 (YYSTACK_ALLOC): New macro.
1611 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1612 If it was malloc'd, free it.
1613
16141997-05-17 Richard Stallman <rms@gnu.org>
1615
1616 * bison.simple:
1617 Use malloc, if using alloca is troublesome.
1618 (YYSTACK_USE_ALLOCA): New flag macro.
1619 Define it for some systems and compilers.
1620 (YYSTACK_ALLOC): New macro.
1621 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1622 If it was malloc'd, free it.
1623
16241997-04-23 Richard Stallman <rms@gnu.org>
1625
1626 * src/bison.s1:
1627 (alloca) [__hpux]: Always define as __builtin_alloca.
1628
16291997-04-23 Richard Stallman <rms@gnu.org>
1630
1631 * bison.simple:
1632 (alloca) [__hpux]: Always define as __builtin_alloca.
1633
16341997-04-22 Richard Stallman <rms@gnu.org>
1635
1636 * src/bison.s1:
1637 [__hpux]: Include alloca.h (right for HPUX 10)
1638 instead of declaring alloca (right for HPUX 9).
1639
1640 * src/bison.s1 (__yy_memcpy):
1641 Declare arg `count' as unsigned int.
1642 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1643
16441997-04-22 Richard Stallman <rms@gnu.org>
1645
1646 * bison.simple:
1647 [__hpux]: Include alloca.h (right for HPUX 10)
1648 instead of declaring alloca (right for HPUX 9).
1649
1650 * bison.simple (__yy_memcpy):
1651 Declare arg `count' as unsigned int.
1652 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1653
16541997-01-03 Richard Stallman <rms@gnu.org>
1655
1656 * src/allocate.c: [__STDC__ or _MSC_VER]:
1657 Declare calloc and realloc to return void *.
1658
16591997-01-02 Richard Stallman <rms@gnu.org>
1660
1661 * src/system.h:
1662 [_MSC_VER]: Include stdlib.h and process.h.
1663 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1664
1665 * src/main.c (main): Return FAILURE as a value.
1666 (printable_version): Declare arg as int, not char.
1667
16681997-01-02 Richard Stallman <rms@gnu.org>
1669
1670 * Makefile.in (dist):
1671 Explicitly check for symlinks, and copy them.
1672
16731996-12-19 Richard Stallman <rms@gnu.org>
1674
1675 * src/files.c:
1676 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1677
16781996-12-18 Paul Eggert <eggert@gnu.org>
1679
1680 * src/bison.s1 (yyparse):
1681 If __GNUC__ and YYPARSE_PARAM are both defined,
1682 declare yyparse to have a void * argument.
1683
16841996-12-18 Paul Eggert <eggert@gnu.org>
1685
1686 * bison.simple (yyparse):
1687 If __GNUC__ and YYPARSE_PARAM are both defined,
1688 declare yyparse to have a void * argument.
1689
16901996-12-17 Richard Stallman <rms@gnu.org>
1691
1692 * src/reduce.c (nbits): Add some casts.
1693
16941996-08-12 Richard Stallman <rms@gnu.org>
1695
1696 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1697
16981996-08-12 Richard Stallman <rms@gnu.org>
1699
1700 * bison.simple: Test _MSDOS as well as _MSDOS_.
1701
17021996-07-31 Richard Stallman <rms@gnu.org>
1703
1704 * src/bison.s1:
1705 [__sun && __i386]: Include alloca.h.
1706
17071996-07-31 Richard Stallman <rms@gnu.org>
1708
1709 * bison.simple:
1710 [__sun && __i386]: Include alloca.h.
1711
17121996-07-30 Richard Stallman <rms@gnu.org>
1713
1714 * src/bison.s1: Comment change.
1715
1716 * src/bison.s1: Test _MSDOS_, not MSDOS.
1717
17181996-07-30 Richard Stallman <rms@gnu.org>
1719
1720 * bison.simple: Comment change.
1721
1722 * bison.simple: Test _MSDOS_, not MSDOS.
1723
17241996-06-01 Richard Stallman <rms@gnu.org>
1725
1726 * 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:
1727 Insert `_' macro around many string constants.
1728
1729 * src/main.c:
1730 Insert `_' macro around many string constants.
1731
1732 (main): Call setlocale, bindtextdomain and textdomain.
1733
1734 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1735 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1736 [ENABLE_NLS]: Include libintl.h.
1737 [ENABLE_NLS] (gettext): Define.
1738 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1739 (N_, PACKAGE, LOCALEDIR): New macros.
1740
17411996-06-01 Richard Stallman <rms@gnu.org>
1742
1743 * POTFILES.in: New file.
1744
1745 * Makefile.in (allocate.o):
1746 Define target explicitly.
1747
1748 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1749 (LDFLAGS): Set to @LDFLAGS@.
1750 (configure): Run autoconf only if preceding `cd' succeeds.
1751 (bison.s1): Redirect output to temporary file then move the
1752 temporary to the target, rather than redirecting directly to bison.s1.
1753 (clean): Remove config.status and config.log.
1754 (distclean): Don't remove config.status here.
1755
17561996-05-12 Richard Stallman <rms@gnu.org>
1757
1758 * src/bison.s1:
1759 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1760
17611996-05-12 Richard Stallman <rms@gnu.org>
1762
1763 * bison.simple:
1764 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1765
17661996-05-11 Richard Stallman <rms@gnu.org>
1767
1768 * src/bison.s1 (__yy_memcpy):
1769 Really reorder the args, as was supposedly done on Feb 14 1995.
1770 (yyparse): Calls changed accordingly.
1771
17721996-05-11 Richard Stallman <rms@gnu.org>
1773
1774 * Makefile.in (dist): Don't use $(srcdir).
1775
1776 * bison.simple (__yy_memcpy):
1777 Really reorder the args, as was supposedly done on Feb 14 1995.
1778 (yyparse): Calls changed accordingly.
1779
17801996-01-27 Richard Stallman <rms@gnu.org>
1781
1782 * src/output.c (output_rule_data):
1783 Test YYERROR_VERBOSE in the conditional
1784 around the definition of ttyname.
1785
17861995-12-29 Richard Stallman <rms@gnu.org>
1787
1788 * src/bison.s1:
1789 Fix line numbers in #line commands.
1790
17911995-12-29 Richard Stallman <rms@gnu.org>
1792
1793 * bison.simple:
1794 Fix line numbers in #line commands.
1795
17961995-12-27 Richard Stallman <rms@gnu.org>
1797
1798 * src/bison.s1 (YYPARSE_PARAM_DECL):
1799 In C++, make it always null.
1800 (YYPARSE_PARAM_ARG): New macro.
1801 (yyparse): Use YYPARSE_PARAM_ARG.
1802
18031995-12-27 Richard Stallman <rms@gnu.org>
1804
1805 * bison.simple (YYPARSE_PARAM_DECL):
1806 In C++, make it always null.
1807 (YYPARSE_PARAM_ARG): New macro.
1808 (yyparse): Use YYPARSE_PARAM_ARG.
1809
18101995-11-29 Richard Stallman <rms@gnu.org>
1811
1812 * doc/bison.texinfo:
1813 Describe literal string tokens, %raw, %no_lines, %token_table.
1814
18151995-11-29 Daniel Hagerty <hag@gnu.org>
1816
1817 * doc/bison.texinfo: Fixed update date
1818
18191995-10-16 Richard Stallman <rms@gnu.org>
1820
1821 * src/version.c: Version 1.25.
1822
18231995-10-16 Richard Stallman <rms@gnu.org>
1824
1825 * NEWS: *** empty log message ***
1826
18271995-10-16 Richard Stallman <rms@gnu.org>
1828
1829 * doc/bison.1, doc/bison.rnh:
1830 Add new options.
1831
18321995-10-15 Richard Stallman <rms@gnu.org>
1833
1834 * src/vmsgetargs.c, src/getargs.c:
1835 Added -n, -k, and -raw switches.
1836 (noparserflag, toknumflag, rawtoknumflag): New variables.
1837
1838 * src/symtab.h (SALIAS):
1839 New #define for adding aliases to %token.
1840 (struct bucket): Added `alias' field.
1841
1842 * src/reduce.c (reduce_grammar):
1843 Revise error message.
1844 (print_notices): Remove final `.' from error message.
1845
1846 * src/reader.c (reader_output_yylsp):
1847 New function.
1848 (readgram): Use `#if 0' around code that accepted %command
1849 inside grammar rules: The documentation doesn't allow it,
1850 and it will fail since the %command processors scan for the next %.
1851 (parse_token_decl): Extended the %token
1852 declaration to allow a multi-character symbol as an alias.
1853 (parse_thong_decl): New function.
1854 (read_declarations): Added %thong declarations.
1855 (read_declarations): Handle NOOP to deal with allowing
1856 % declarations as another means to specify the flags.
1857 (readgram): Allow %prec prior to semantics embedded in a rule.
1858 (skip_to_char, read_declarations, copy_definition)
1859 (parse_token_decl, parse_start_decl, parse_type_decl)
1860 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1861 (get_type_name, copy_guard, copy_action, readgram)
1862 (get_type, packsymbols): Revised most error messages.
1863 Changed `fatal' to `warnxxx' to avoid aborting for error.
1864 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1865 (read_declarations): Improve the error message for
1866 an invalid character. Do not abort.
1867 (read_declarations, copy_guard, copy_action): Use
1868 printable_version to avoid unprintable characters in printed output.
1869 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1870 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1871 Allow the type of a non-terminal can be given
1872 more than once, as long as all specifications give the same type.
1873
1874 * src/output.c:
1875 (output_headers, output_trailers, output, output_gram)
1876 (output_rule_data): Implement noparserflag variable.
1877 Implement toknumflag variable.
1878 (output): Call reader_output_yylsp to output LTYPESTR.
1879
1880 * src/main.c (main):
1881 If reader sees an error, don't process the grammar.
1882 (fatals): Updated to not use VARARGS1.
1883 (printable_version, int_to_string, warn, warni, warns, warnss)
1884 (warnsss): New error reporting functions. Avoid abort for error.
1885
1886 * src/lex.h:
1887 Added THONG and NOOP for alias processing.
1888 Added SETOPT for the new code that allows setting options with %flags.
1889
1890 * src/lex.c:
1891 Include getopt.h. Add some extern decls.
1892 (safegetc): New function to deal with EOF gracefully.
1893 (literalchar); new function to deal with reading \ escapes.
1894 (lex): Use literalchar.
1895 (lex): Implemented "..." tokens.
1896 (literalchar, lex, parse_percent_token): Made tokenbuffer
1897 always contain the token. This includes growing the token
1898 buffer while reading an integer.
1899 (parse_percent_token): Replaced if-else statement with percent_table.
1900 (parse_percent_token): Added % declarations as another
1901 way to specify the flags -n, -l, and -r. Also added hooks for
1902 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1903 major changes to files.c.
1904 (lex) Retain in the incoming stream a character following
1905 an incorrect '/'.
1906 (skip_white_space, lex): Revised most error messages
1907 and changed fatal to warn to avoid aborting.
1908 (percent_table): Added %thong declarations.
1909
1910 * src/gram.h: Comment changes.
1911
1912 * src/files.c (openfiles, open_extra_files, done):
1913 Add faction flag
1914 and actfile file. Handle noparserflag. Both for -n switch.
1915
1916 * src/conflicts.c (resolve_sr_conflict):
1917 Remove use of alloca.
1918
19191995-06-01 Jim Meyering <meyering@gnu.org>
1920
1921 * doc/bison.texinfo: *** empty log message ***
1922
19231995-05-06 Richard Stallman <rms@gnu.org>
1924
1925 * src/bison.s1: Comment change.
1926
19271995-05-06 Richard Stallman <rms@gnu.org>
1928
1929 * bison.simple: Comment change.
1930
19311995-05-03 Richard Stallman <rms@gnu.org>
1932
1933 * src/version.c: Version now 1.24.
1934
1935 * src/bison.s1: Change distribution terms.
1936
1937 * src/version.c: Version now 1.23.
1938
19391995-05-03 Richard Stallman <rms@gnu.org>
1940
1941 * doc/bison.texinfo:
1942 Rewrite "Conditions for Using Bison".
1943 Update version to 1.24.
1944
19451995-05-03 Richard Stallman <rms@gnu.org>
1946
1947 * bison.simple: Change distribution terms.
1948
19491995-02-23 Richard Stallman <rms@gnu.org>
1950
1951 * src/files.c: Test __VMS_POSIX as well as VMS.
1952
19531995-02-14 Jim Meyering <meyering@gnu.org>
1954
1955 * src/bison.s1 (__yy_memcpy):
1956 Renamed from __yy_bcopy to avoid
1957 confusion. Reverse FROM and TO arguments to be consistent with
1958 those of memcpy.
1959
19601995-02-14 Jim Meyering <meyering@gnu.org>
1961
1962 * bison.simple (__yy_memcpy):
1963 Renamed from __yy_bcopy to avoid
1964 confusion. Reverse FROM and TO arguments to be consistent with
1965 those of memcpy.
1966
19671994-11-10 David J. MacKenzie <djm@gnu.org>
1968
1969 * NEWS: reformat
1970
1971 * NEWS: New file.
1972
1973 * Makefile.in (DISTFILES): Include NEWS.
1974
1975 * Makefile.in (DISTFILES):
1976 Include install-sh, not install.sh.
1977
1978 * configure.in: Update to Autoconf v2 macro names.
1979
19801994-10-05 David J. MacKenzie <djm@gnu.org>
1981
1982 * Makefile.in: fix typo
1983
1984 * Makefile.in (prefix, exec_prefix):
1985 Let configure set them.
1986
19871994-09-28 David J. MacKenzie <djm@gnu.org>
1988
1989 * Makefile.in: Set datadir to $(prefix)/share.
1990
19911994-09-15 Richard Stallman <rms@gnu.org>
1992
1993 * src/bison.s1:
1994 Update copyright notice and GPL version.
1995
19961994-09-15 Richard Stallman <rms@gnu.org>
1997
1998 * bison.simple:
1999 Update copyright notice and GPL version.
2000
20011994-07-12 Richard Stallman <rms@gnu.org>
2002
2003 * src/reduce.c, src/reader.c:
2004 entered into RCS
2005
20061994-05-05 David J. MacKenzie <djm@gnu.org>
2007
2008 * Makefile.in: entered into RCS
2009
20101994-03-26 Richard Stallman <rms@gnu.org>
2011
2012 * src/bison.s1: entered into RCS
2013
20141994-03-26 Richard Stallman <rms@gnu.org>
2015
2016 * bison.simple: entered into RCS
2017
20181994-03-25 Richard Stallman <rms@gnu.org>
2019
2020 * src/main.c: entered into RCS
2021
20221994-03-24 Richard Stallman <rms@gnu.org>
2023
2024 * src/conflicts.c: entered into RCS
2025
20261994-01-02 Richard Stallman <rms@gnu.org>
2027
2028 * Makefile.in: *** empty log message ***
2029
20301993-11-21 Richard Stallman <rms@gnu.org>
2031
2032 * src/bison.s1: *** empty log message ***
2033
20341993-11-21 Richard Stallman <rms@gnu.org>
2035
2036 * doc/bison.texinfo: entered into RCS
2037
2038 * doc/bison.texinfo: *** empty log message ***
2039
20401993-11-21 Richard Stallman <rms@gnu.org>
2041
2042 * bison.simple: *** empty log message ***
2043
20441993-10-25 David J. MacKenzie <djm@gnu.org>
2045
2046 * doc/bison.texinfo: *** empty log message ***
2047
20481993-10-19 Richard Stallman <rms@gnu.org>
2049
2050 * src/bison.s1: *** empty log message ***
2051
20521993-10-19 Richard Stallman <rms@gnu.org>
2053
2054 * bison.simple: *** empty log message ***
2055
20561993-10-14 Richard Stallman <rms@gnu.org>
2057
2058 * src/bison.s1: *** empty log message ***
2059
20601993-10-14 Richard Stallman <rms@gnu.org>
2061
2062 * bison.simple: *** empty log message ***
2063
20641993-09-14 David J. MacKenzie <djm@gnu.org>
2065
2066 * doc/bison.texinfo: *** empty log message ***
2067
20681993-09-13 Noah Friedman <friedman@gnu.org>
2069
2070 * Makefile.in: *** empty log message ***
2071
20721993-09-10 Richard Stallman <rms@gnu.org>
2073
2074 * src/conflicts.c: *** empty log message ***
2075
2076 * src/system.h: entered into RCS
2077
20781993-09-10 Richard Stallman <rms@gnu.org>
2079
2080 * doc/bison.1: entered into RCS
2081
20821993-09-06 Noah Friedman <friedman@gnu.org>
2083
2084 * src/version.c: entered into RCS
2085
20861993-09-06 Noah Friedman <friedman@gnu.org>
2087
2088 * Makefile.in: *** empty log message ***
2089
20901993-07-30 David J. MacKenzie <djm@gnu.org>
2091
2092 * Makefile.in: *** empty log message ***
2093
20941993-07-24 Richard Stallman <rms@gnu.org>
2095
2096 * src/bison.s1: *** empty log message ***
2097
20981993-07-24 Richard Stallman <rms@gnu.org>
2099
2100 * bison.simple: *** empty log message ***
2101
21021993-07-08 David J. MacKenzie <djm@gnu.org>
2103
2104 * Makefile.in: *** empty log message ***
2105
21061993-07-04 Richard Stallman <rms@gnu.org>
2107
2108 * src/bison.s1: *** empty log message ***
2109
21101993-07-04 Richard Stallman <rms@gnu.org>
2111
2112 * bison.simple: *** empty log message ***
2113
21141993-06-26 David J. MacKenzie <djm@gnu.org>
2115
2116 * src/getargs.c: entered into RCS
2117
21181993-06-26 David J. MacKenzie <djm@gnu.org>
2119
2120 * doc/bison.texinfo: *** empty log message ***
2121
2122 * doc/bison.1: New file.
2123
21241993-06-25 Richard Stallman <rms@gnu.org>
2125
2126 * src/getargs.c: New file.
2127
21281993-06-16 Richard Stallman <rms@gnu.org>
2129
2130 * src/bison.s1: *** empty log message ***
2131
21321993-06-16 Richard Stallman <rms@gnu.org>
2133
2134 * bison.simple: *** empty log message ***
2135
21361993-06-03 Richard Stallman <rms@gnu.org>
2137
2138 * src/bison.s1: New file.
2139
21401993-06-03 Richard Stallman <rms@gnu.org>
2141
2142 * doc/bison.texinfo: *** empty log message ***
2143
21441993-06-03 Richard Stallman <rms@gnu.org>
2145
2146 * bison.simple: New file.
2147
21481993-05-19 Richard Stallman <rms@gnu.org>
2149
2150 * doc/bison.texinfo: New file.
2151
21521993-05-07 Noah Friedman <friedman@gnu.org>
2153
2154 * Makefile.in: *** empty log message ***
2155
21561993-04-28 Noah Friedman <friedman@gnu.org>
2157
2158 * src/reader.c: *** empty log message ***
2159
21601993-04-23 Noah Friedman <friedman@gnu.org>
2161
2162 * src/alloc.h: entered into RCS
2163
21641993-04-20 David J. MacKenzie <djm@gnu.org>
2165
2166 * src/version.c: *** empty log message ***
2167
2168 * src/files.c, src/allocate.c:
2169 entered into RCS
2170
2171 * src/reader.c: *** empty log message ***
2172
2173 * src/lex.c: entered into RCS
2174
2175 * src/conflicts.c: New file.
2176
2177 * src/symtab.c: entered into RCS
2178
2179 * src/alloc.h: New file.
2180
2181 * src/LR0.c: entered into RCS
2182
21831993-04-18 Noah Friedman <friedman@gnu.org>
2184
2185 * src/reader.c: New file.
2186
2187 * src/version.c: *** empty log message ***
2188
21891993-04-18 Noah Friedman <friedman@gnu.org>
2190
2191 * Makefile.in: *** empty log message ***
2192
21931993-04-17 Noah Friedman <friedman@gnu.org>
2194
2195 * Makefile.in: *** empty log message ***
2196
21971993-04-15 Richard Stallman <rms@gnu.org>
2198
2199 * src/main.c, src/files.c:
2200 New file.
2201
22021993-04-15 Noah Friedman <friedman@gnu.org>
2203
2204 * configure.in: entered into RCS
2205
2206 * configure.in: *** empty log message ***
2207
2208 * configure.in: New file.
2209
22101993-04-14 Richard Stallman <rms@gnu.org>
2211
2212 * Makefile.in: New file.
2213
22141993-04-13 Richard Stallman <rms@gnu.org>
2215
2216 * src/version.c: New file.
2217
22181993-03-25 Richard Stallman <rms@gnu.org>
2219
2220 * src/output.c: entered into RCS
2221
22221992-09-25 Richard Stallman <rms@gnu.org>
2223
2224 * configure.bat: entered into RCS
2225
22261992-06-22 Richard Stallman <rms@gnu.org>
2227
2228 * src/vmsgetargs.c: entered into RCS
2229
22301992-06-22 Richard Stallman <rms@gnu.org>
2231
2232 * doc/bison.rnh: entered into RCS
2233
22341992-04-20 David J. MacKenzie <djm@gnu.org>
2235
2236 * README: entered into RCS
2237
22381992-01-22 Richard Stallman <rms@gnu.org>
2239
2240 * src/machine.h: entered into RCS
2241
22421991-12-21 Richard Stallman <rms@gnu.org>
2243
2244 * src/lalr.c, src/closure.c:
2245 entered into RCS
2246
22471991-12-20 Richard Stallman <rms@gnu.org>
2248
2249 * src/state.h: entered into RCS
2250
22511991-12-18 Richard Stallman <rms@gnu.org>
2252
2253 * src/print.c, src/nullable.c, src/derives.c:
2254 entered into RCS
2255
22561991-11-03 David J. MacKenzie <djm@gnu.org>
2257
2258 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2259 entered into RCS
2260
22611988-09-09 Richard Stallman <rms@gnu.org>
2262
2263 * src/bison.hairy: entered into RCS
2264
22651987-12-16 Richard Stallman <rms@gnu.org>
2266
2267 * REFERENCES: entered into RCS