]> git.saurik.com Git - bison.git/blame - ChangeLog
Adjust
[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.
957d4dbf 6
600cad3b
MA
72001-08-08 Marc Autret <autret_m@epita.fr>
8
9 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
10 * src/vcg.c (output_node): Fix.
11 * src/vcg.h: Cleanup.
12 * src/print_graph.c: Add comments.
13 (node_output_size): New global variable. Simplify the formatting of
14 the VCG graph output.
15 (print_actions): Unused code is now used. It notifies the final state
16 and no action states in the VCG graph. It also give the reduce actions.
17 The `shift and goto' edges are red and the `go to state' edges are
18 blue.
19 Get the current node name and node_obstack by argument.
20 (node_obstack): New variable.
21 (print_state): Manage node_obstack.
22 (print_core): Use node_obstack given by argument.
23 A node is not only computed here but in print_actions also.
24 (print_graph): CPP out useless code instead of commenting it.
25
976e528f
AD
262001-08-07 Pascal Bart <pascal.bart@epita.fr>
27
28 * tests/atconfig.in (CPPFLAGS): Fix.
29
20e8e5ca
AD
302001-08-07 Akim Demaille <akim@epita.fr>
31
32 * src/print_graph.c (quote): New.
33 (print_core): Use it.
34
957d4dbf 352001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 36
3e3da797
AD
37 * src/vcg.c (complain.h): Include it.
38 Unepitaize `return' invocations.
c4b66126
AD
39 [NDEBUG] (main): Remove.
40 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * memebers.
41 * src/files.c (open_files): Initialize graph_obstack.
42 * src/print_graph.c (print_actions): CPP out useless code.
43 (print_core): Don't output the last `\n' in labels.
44 Use `quote'.
45 * src/files.c (output_files): Output the VCG file.
46 * src/main.c (main): Invoke print_graph ();
3e3da797 47
957d4dbf 482001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
49
50 Automaton VCG graph output.
51 Using option ``-g'' or long option ``--graph'', you can generate
52 a gram_filename.vcg file containing a VCG description of the LALR (1)
53 automaton of your grammar.
54
55 * src/main.c: Call to print_graph() function.
56 * src/getargs.h: Update.
57 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
58 (graph_flag): New flag.
59 (longopts): Update.
60 (getargs): Add case `g'.
61 * src/files.c (graph_obstack): New obstack struct.
62 (open_files): Initialize new obstack.
63 (output_files): Saves graph_obstack if required.
64 * src/files.h (graph_obstack): New extern declaration.
65 * src/Makefile.am: Add new source files.
66
957d4dbf 672001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
68
69 * src/print_graph.c, src/print_graph.h (graph): New.
70 * src/vcg.h: New file.
71 * src/vcg.c: New file, VCG graph handling.
72
7333d403
AD
732001-08-06 Marc Autret <autret_m@epita.fr>
74
75 Add of %source_extension and %header_extension which specify
76 the source or/and the header output file extension.
77
78 * src/files.c (compute_base_names): Remove initialisation of
79 src_extension and header_extension.
80 (compute_exts_from_gf): Update.
81 (compute_exts_from_src): Update.
82 (output_files): Update.
83 * src/reader.c (parse_header_extension_decl): New.
84 (parse_source_extension_decl): New.
85 (read_declarations): New case statements for the new tokens.
86 * src/lex.c (percent_table): Add entries for %source_extension
87 and %header_extension.
88 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
89
84163231
AD
902001-08-06 Marc Autret <autret_m@epita.fr>
91
92 * configure.in: Bump to 1.28c.
93 * doc/bison.texinfo: Texinfo thingies.
94
8303fc42
AD
952001-08-04 Pascal Bart <pascal.bart@epita.fr>
96
97 * tests/atconfig.in (CPPFLAGS): Add.
98 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
99
70a84437
AD
1002001-08-03 Akim Demaille <akim@epita.fr>
101
102 Version 1.28b.
103
2ce10144
AD
1042001-08-03 Akim Demaille <akim@epita.fr>
105
106 * tests/Makefile.am (check-local): Ship testsuite.
107 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
108 Include `string.h'.
109
1e3e4bc1
AD
1102001-08-03 Akim Demaille <akim@epita.fr>
111
112 * configure.in: Try using -Wformat when compiling.
113
42b45b7f
AD
1142001-08-03 Akim Demaille <akim@epita.fr>
115
116 * configure.in: Bump to 1.28b.
117
8f13fe33
AD
1182001-08-03 Akim Demaille <akim@epita.fr>
119
120 * src/complain.c: Adjust strerror_r portability issues.
121
b37ba92c
AD
1222001-08-03 Akim Demaille <akim@epita.fr>
123
124 Version 1.28a.
125
b0ce6046
AD
1262001-08-03 Akim Demaille <akim@epita.fr>
127
128 * src/getargs.c, src/getarg.h (skeleton)): Constify.
129 * src/lex.c (literalchar): Avoid name clashes on `buf'.
130 * src/getargs.c: Include complain.h.
131 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
132 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
133
d01c415b
AD
1342001-08-03 Akim Demaille <akim@epita.fr>
135
136 * src/reader.c (readgram): Display hidden chars in error messages.
137
459dd1a6
AD
1382001-08-03 Akim Demaille <akim@epita.fr>
139
140 Update to gettext 0.10.39.
141
53b74c0c
AD
1422001-08-03 Akim Demaille <akim@epita.fr>
143
144 * lib/strspn.c: New.
145
234a3be3
AD
1462001-08-01 Marc Autret <autret_m@epita.fr>
147
148 * doc/bison.texinfo: Update.
149 * doc/bison.1 (mandoc): Update.
150 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
151 * src/files.c: Support output files extensions computing.
152 (src_extension): New static variable.
153 (header_extension): New static variable.
154 (tr): New function.
155 (get_extension_index): New function, gets the index of an extension
156 filename in a string.
157 (compute_exts_from_gf): New function, computes extensions from the
158 grammar file extension.
159 (compute_exts_from_src): New functions, computes extensions from the
160 C source file extension, file given by ``-o'' option.
161 (compute_base_names): Update.
162 (output_files): Update.
163
847bf1f5
AD
1642001-08-01 Robert Anisko <anisko_r@epita.fr>
165
d995fee7 166 * doc/bison.texi: Document @$.
847bf1f5
AD
167 (Locations): New section.
168
d074a105
AD
1692001-07-18 Akim Demaille <akim@epita.fr>
170
171 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
172 * config/prev-version.txt, config/move-if-change: New.
173 * Makefile.am: Adjust.
174
3419715d
AD
1752001-07-08 Pascal Bart <pascal.bart@epita.fr>
176
177 * src/bison.simple (yyparse): Suppress warning `comparaison
178 between signed and unsigned'.
179
62ab6972
AD
1802001-07-05 Pascal Bart <pascal.bart@epita.fr>
181
182 * src/getargs.h (raw_flag): Remove.
183 * src/getargs.c: Die on `-r'/`--raw'.
184 * src/lex.c (parse_percent_token): Die on `%raw'.
185 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
186 * tests/calc.at: Suppress test with option `--raw'.
187
1e24cc5b
AD
1882001-07-14 Akim Demaille <akim@epita.fr>
189
190 * config/: New.
191 * configure.in: Require Autoconf 2.50.
192 Update to gettext 0.10.38.
193
32dfccf8
AD
1942001-03-16 Akim Demaille <akim@epita.fr>
195
196 * doc/bison.texinfo: ANSIfy the examples.
197
cd5bd6ac
AD
1982001-03-16 Akim Demaille <akim@epita.fr>
199
200 * getargs.c (skeleton): New variable.
201 (longopts): --skeleton is a new option.
202 (shortopts, getargs): -S is a new option.
203 * getargs.h: Declare skeleton.
204 * output.c (output_parser): Use it.
205
5141b016
AD
2062001-03-16 Akim Demaille <akim@epita.fr>
207
208 * m4/strerror_r.m4: New.
209 * m4/error.m4: Run AC_FUNC_STRERROR_R.
210 * lib/error.h, lib/error.c: Update.
211
447992b9
AD
2122001-03-16 Akim Demaille <akim@epita.fr>
213
214 * src/getargs.c (longopts): Clean up.
215
274d42ce
AD
2162001-02-21 Akim Demaille <akim@epita.fr>
217
218 * src/reader.c (gensym): `gensym_count' is your own.
219 Use a static buf to create the symbol name, as token_buffer is no
220 longer a buffer.
221
22c821f3
AD
2222001-02-08 Akim Demaille <akim@epita.fr>
223
224 * src/conflicts.c (conflict_report): Be sure not to append to res
225 between two calls, which could happen if both first sprintf were
226 skipped, but not the first cp += strlen.
227
18569462
AD
2282001-02-08 Akim Demaille <akim@epita.fr>
229
230 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
231 New, from fileutils 4.0.37.
232 * configure.in: Require Autoconf 2.49c. I took some time before
233 making this decision. This is the only way out for portability
234 issues in Bison, it would mean way too much duplicate effort to
235 import in Bison features implemented in 2.49c since 2.13.
236 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
237
0d8f3c8a
AD
2382001-02-02 Akim Demaille <akim@epita.fr>
239
240 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 241 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 242
f17bcd1f
AD
2432001-01-19 Akim Demaille <akim@epita.fr>
244
245 Get rid of the ad hoc handling of token_buffer in the scanner: use
246 the obstacks.
247
248 * src/lex.c (token_obstack): New.
249 (init_lex): Initialize it. No longer call...
250 (grow_token_buffer): this. Remove it.
251 Adjust all the places which used it to use the obstack.
252
511e79b3
AD
2532001-01-19 Akim Demaille <akim@epita.fr>
254
255 * src/lex.h: Rename all the tokens:
256 s/\bENDFILE\b/tok_eof/g;
257 s/\bIDENTIFIER\b/tok_identifier/g;
258 etc.
259 Let them be enums, not #define, to ease debugging.
260 Adjust all the code.
261
0d6508ef
AD
2622001-01-18 Akim Demaille <akim@epita.fr>
263
264 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
265 * src/lex.c (maxtoken, grow_token_buffer): Static.
266
6deb4447
AD
2672001-01-18 Akim Demaille <akim@epita.fr>
268
269 Since we now use obstacks, more % directives can be enabled.
270
271 * src/lex.c (percent_table): Also accept `%yacc',
272 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
273 `%debug'.
274 Handle the actions for `%semantic_parser' and `%pure_parser' here,
275 instead of returning a token.
276 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
277 * src/reader.c (read_declarations): Adjust.
278 * src/files.c (open_files): Don't call `compute_base_names', don't
279 compute `attrsfile' since they depend upon data which might be
280 *in* the input file now.
281 (output_files): Do it here.
282 * src/output.c (output_headers): Document the fact that this patch
283 introduces a guaranteed SEGV for semantic parsers.
284 * doc/bison.texinfo: Document them.
285 * tests/suite.at: Exercise these %options.
286
ff4423cc
AD
2872000-12-20 Akim Demaille <akim@epita.fr>
288
289 Also handle the output file (--verbose) with obstacks.
290
291 * files.c (foutput): Remove.
292 (output_obstack): New.
293 Adjust all dependencies.
294 * src/conflicts.c: Return a string.
295 * src/system.h (obstack_grow_string): Rename as...
296 (obstack_sgrow): this. Be ready to work with non literals.
297 (obstack_fgrow4): New.
298
956dba3a
AD
2992000-12-20 Akim Demaille <akim@epita.fr>
300
301 * src/files.c (open_files): Fix the computation of short_base_name
302 in the case of `-o foo.tab.c'.
303
337bab46
AD
3042000-12-20 Akim Demaille <akim@epita.fr>
305
306 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
307 (copy_dollar): Now that everything uses obstacks, get rid of the
308 FILE * parameters.
309
5d3214b8
AD
3102000-12-20 Akim Demaille <akim@epita.fr>
311
312 * src/files.c (open_files): Actually the `.output' file is based
313 on the short_base_name, not base_name.
314 * tests/suite.at (Checking output file names): Adjust.
315
29092a57
AD
3162000-12-20 Akim Demaille <akim@epita.fr>
317
318 * src/bison.s1: Remove, we now use directly...
319 * src/bison.simple: this.
320 * src/Makefile.am: Use pkgdata instead of data.
321
ea5607fd
AD
3222000-12-20 Akim Demaille <akim@epita.fr>
323
324 * src/files.c (guard_obstack): New.
325 (open_files): Initialize it.
326 (output_files): Dump it...
327 * src/files.h: Export it.
328 * src/reader.c (copy_guard): Use it.
329
27110317
AD
3302000-12-19 Akim Demaille <akim@epita.fr>
331
332 * src/files.c (outfile, defsfile, actfile): Removed as global
333 vars.
334 (open_files): Don't compute them.
335 (output_files): Adjust.
336 (base_name, short_base_name): Be global.
337 Adjust dependencies.
338
19c50364
AD
3392000-12-19 Akim Demaille <akim@epita.fr>
340
341 * src/files.c (strsuffix): New.
342 (stringappend): Be just like strcat but allocate.
343 (base_names): Eve out from open_files.
344 Try to simplify the rather hairy computation of base_name and
345 short_base_name.
346 (open_files): Use it.
347 * tests/suite.at (Checking output file names): New test.
348
573c1d9f
AD
3492000-12-19 Akim Demaille <akim@epita.fr>
350
351 * src/system.h (obstack_grow_literal_string): Rename as...
352 (obstack_grow_string): this.
353 * src/output.c (output_parser): Recognize `%% actions' instead of
354 `$'.
355 * src/bison.s1: s/$/%% actions/.
356 * src/bison.hairy: Likewise.
357
ef7ddedd
AD
3582000-12-19 Akim Demaille <akim@epita.fr>
359
360 * src/output.c (output_parser): Compute the `#line' lines when
361 there are.
362 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
363 Suggested by Hans Aberg.
364
ff61dabd
AD
3652000-12-19 Akim Demaille <akim@epita.fr>
366
367 Let the handling of the skeleton files be local to the procedures
368 that use it.
369
370 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
371 longer static.
372 (fparser, open_extra_files): Remove.
373 (open_files, output_files): Don't take care of fparser.
374 * src/files.h: Adjust.
375 * src/output.c (output_parser): Open and close the file to the
376 skeleton.
377 * src/reader.c (read_declarations): When %semantic_parser, open
378 fguard.
379
55b96341
AD
3802000-12-19 Akim Demaille <akim@epita.fr>
381
382 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
383 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
384
358c15b7
AD
3852000-12-19 Akim Demaille <akim@epita.fr>
386
387 * src/files.c (open_files): Yipee! We no longer need all the code
388 looking for `/tmp' since we have no tmp file.
389
7de3329e
AD
3902000-12-19 Akim Demaille <akim@epita.fr>
391
392 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
393 New macros.
394 * src/files.c (open_files): Less dependency on MSDOS etc.
395
3abcd459
AD
3962000-12-14 Akim Demaille <akim@epita.fr>
397
398 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
399 Provide a default definition.
400 Use it when executing the default @ action.
401 * src/reader.c (reader_output_yylsp): No longer include
402 `timestamp' and `text' in the default YYLTYPE.
403
2a91a95e
AD
4042000-12-12 Akim Demaille <akim@epita.fr>
405
406 * src/reader.c (copy_definition, parse_union_decl, copy_action)
407 (copy_guard): Quote the file names.
408 Reported by Laurent Mascherpa.
409
14d3eb9b
AD
4102000-12-12 Akim Demaille <akim@epita.fr>
411
412 * src/output.c (output_headers, output_program, output): Be sure
413 to escape special characters when outputting filenames.
414 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
415 (output_headers): Don't depend on them, Use ACTSTR.
416
d7045ec6
AD
4172000-11-17 Akim Demaille <akim@epita.fr>
418
419 * lib/obstack.h: Formatting changes.
420 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
421 prevents type checking.
422 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
423 cast the value to (void *): assigning a `foo *' to a `void *'
424 variable is valid.
425 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
426 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
427 append characters.
428
6fd54b73
AD
4292000-11-17 Akim Demaille <akim@epita.fr>
430
431 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
432 as...
433 (suite.m4, regression.m4, calc.m4): these.
434 * tests/atgeneral.m4: Update from CVS Autoconf.
435
4c50eae6
AD
4362000-11-17 Akim Demaille <akim@epita.fr>
437
438 * tests/regression.m4 (%union and --defines): New test,
439 demonstrating a current bug in the obstack implementation.
440
a35f64ea
AD
4412000-11-17 Akim Demaille <akim@epita.fr>
442
443 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
444 macros.
445 Use them to declare the variables which are global or local to
446 `yyparse'.
447
7de23534
AD
4482000-11-17 Akim Demaille <akim@epita.fr>
449
450 * acconfig.h: Remove, no longer used.
451
aa7815f5
AD
4522000-11-07 Akim Demaille <akim@epita.fr>
453
454 * src: s/Copyright (C)/Copyright/g.
455
5af1f549
AD
4562000-11-07 Akim Demaille <akim@epita.fr>
457
458 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
459 defining.
460 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
461
553e2b22
AD
4622000-11-07 Akim Demaille <akim@epita.fr>
463
464 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
465 Merge in a single CPP if/else.
466
8a4f41d6
AD
4672000-11-07 Akim Demaille <akim@epita.fr>
468
469 * src/output.c (output): Remove useless variables.
470 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
471 argument `data' for consistency with the prototypes.
472 Qualify it `const'.
473 (obstack_copy, obstack_copy0): Rename the second argument as
474 `address' for consistency. Qualify it `const'.
475 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
476 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
477 `const' their input argument (`data' or `address').
478 Adjust the corresponding macros to include `const' in casts.
479
095a3fb5
AD
4802000-11-03 Akim Demaille <akim@epita.fr>
481
482 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
483 s/PFILE1/BISON_HAIRY/.
484 Adjust dependencies.
485
d1cdce7c
AD
4862000-11-03 Akim Demaille <akim@epita.fr>
487
090c5ebf 488 For some reason, this was not applied.
d1cdce7c
AD
489
490 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
491 `unlink': it's no longer used.
492
9311529b
AD
4932000-11-03 Akim Demaille <akim@epita.fr>
494
495 * src/files.c (skeleton_find): New function, eved out of...
496 (open_files, open_extra_files): here.
497
d8880f69
AD
4982000-11-03 Akim Demaille <akim@epita.fr>
499
500 Don't use `atexit'.
501
502 * src/files.c (obstack_save): New function.
503 (done): Rename as...
504 (output_files): this.
505 Use `obstack_save'.
506 * src/main.c (main): Don't use `atexit' to register `done', since
507 it no longer has to remove tmp files, just call `output_files'
508 when there are no errors.
509
0dbb648e
AD
5102000-11-02 Akim Demaille <akim@epita.fr>
511
512 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
513 `unlink': it's no longer used.
514 * src/files.h: Formatting changes.
515
896fe5c1
AD
5162000-11-02 Akim Demaille <akim@epita.fr>
517
518 Remove the last uses of mktemp and unlink/delete.
519
520 * src/files.c (fdefines, ftable): Removed.
521 (defines_ostack, table_obstack): New.
522 Adjust dependencies of the former into uses of the latter.
523 * src/output.c (output_short_or_char_table, output_short_table):
524 Convert to using obstacks.
525 * src/reader.c (copy_comment2): Accept one FILE * and two
526 obstacks.
527 (output_token_defines, reader_output_yylsp): Use obstacks.
528 * src/system.h (obstack_fgrow3): New.
529
dd60faec
AD
5302000-11-01 Akim Demaille <akim@epita.fr>
531
532 Change each use of `fattrs' into a use of `attrs_obstack'.
533
534 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
535 * src/files.c (fattrs): Remove.
536 (attrs_obstack): New.
537 Adjust all dependencies.
538 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
539
8c7ebe49
AD
5402000-11-01 Akim Demaille <akim@epita.fr>
541
542 Introduce obstacks.
543 Change each use of `faction' into a use of `action_obstack'.
544
545 * lib/obstack.h, lib/obstack.c: New files.
546 * src/files.c (faction): Remove.
547 (action_obstack): New.
548 Adjust all dependencies.
549
77aee789
AD
5502000-10-20 Akim Demaille <akim@epita.fr>
551
552 * lib/quote.h (PARAMS): New macro. Use it.
553
43591cec
AD
5542000-10-16 Akim Demaille <akim@epita.fr>
555
556 * src/output.c (output_short_or_char_table): New function.
557 (output_short_table, output_token_translations): Use it.
558 (goto_actions): Use output_short_table.
559
1e9798d5
AD
5602000-10-16 Akim Demaille <akim@epita.fr>
561
562 * src/symtab.c (bucket_new): New function.
563 (getsym): Use it.
564
565 * src/output.c (output_short_table): New argument to display the
566 comment associated with the table.
567 Adjust dependencies.
568 (output_gram): Use it.
569 (output_rule_data): Nicer output layout for YYTNAME.
570
f282676b
AD
5712000-10-16 Akim Demaille <akim@epita.fr>
572
573 * src/lex.c (read_typename): New function.
574 (lex): Use it.
575 * src/reader.c (copy_dollar): Likewise.
576
550a72a3
AD
5772000-10-16 Akim Demaille <akim@epita.fr>
578
579 * src/reader.c (copy_comment2): Expect the input stream to be on
580 the `/' which is suspected to open a comment, instead of being
581 called after `//' or `/*' was read.
582 (copy_comment, copy_definition, parse_union_decl, copy_action)
583 (copy_guard): Adjust.
584
131e2fef
AD
5852000-10-16 Akim Demaille <akim@epita.fr>
586
587 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
588 `read_signed_integer'.
589
79282c5a
AD
5902000-10-16 Akim Demaille <akim@epita.fr>
591
592 * src/reader.c (copy_dollar): New function.
593 (copy_guard, copy_action): Use it.
594
ff4a34be
AD
5952000-10-16 Akim Demaille <akim@epita.fr>
596
597 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
598 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
599 New files, from Fileutils 4.0.27.
600 * src/main.c (printable_version): Remove.
601 * src/lex.c, src/reader.c: Use `quote'.
602
6032000-10-04 Akim Demaille <akim@epita.fr>
604
605 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
606
14ded682
AD
6072000-10-04 Akim Demaille <akim@epita.fr>
608
609 * doc/bison.texinfo: Various typos spotted by Neil Booth.
610
8e03724b
AD
6112000-10-04 Akim Demaille <akim@epita.fr>
612
613 When a literal string is used to define two different tokens,
614 `bison -v' segfaults.
615 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
616
617 * tests/regression.m4: New file.
618 Include the core of the sample provided by Piotr Gackiewicz.
619 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
620 properly.
621
a9e64249
AD
6222000-10-04 Akim Demaille <akim@epita.fr>
623
624 * src/reader.c (parse_expect_decl): Keep `count' within the size
625 of `buffer'.
626 From Neil Booth.
627
da9abf43
AD
6282000-10-02 Paul Eggert <eggert@twinsun.com>
629
630 * bison.s1 (yyparse): Assign the default value
631 unconditionally, to avoid a GCC warning and make the parser a
632 tad smaller.
633
c33638bb
AD
6342000-10-02 Akim Demaille <akim@epita.fr>
635
636 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
637 options.
638
444c570a
AD
6392000-10-02 Akim Demaille <akim@epita.fr>
640
641 * src/derives.c, src/print.c, src/reduce.c: To ease the
642 translation, move some `\n' out of the translated strings.
643
89cab50d
AD
6442000-10-02 Akim Demaille <akim@epita.fr>
645
646 The location tracking mechanism is precious for parse error
647 messages. Nevertheless, it is enabled only when `@n' is used in
648 the grammar, which is a different issue (you can use it in error
649 message, but not in the grammar per se). Therefore, there should
650 be another means to enable it.
651
652 * src/getargs.c (getargs): Support `--locations'.
653 (usage): Report it.
654 * src/getargs.h (locationsflag): Export it.
655 * src/lex.c (percent_table): Support `%locations'.
656 * src/reader.c (yylsp_needed): Remove this variable, now replaced
657 with `locationsflag'.
658 * doc/bison.texinfo: Document `--locations' and `%locations'.
659 Sort the options.
660 * tests/calc.m4: Test it.
661
662 For regularity of the names, replace each
663 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
664 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
665 In addition replace each `flag' with `_flag'.
666
d6c2cba0
AD
6672000-10-02 Akim Demaille <akim@epita.fr>
668
669 Also test parse error messages, including with YYERROR_VERBOSE.
670
671 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
672 associative).
673 Use it to check the computations.
674 Use it to check `nonassoc' is honored.
675 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
676 `--yyerror-verbose'.
677 (_AT_CHECK_CALC): Adjust to this option.
678 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
679
5a35a6cb
AD
6802000-10-02 Akim Demaille <akim@epita.fr>
681
682 Test also `--verbose', `--defines' and `--name-prefix'. Testing
683 the latter demonstrates a flaw in the handling of non debugging
684 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
685 was used in order to simplify:
686
687 #if YYDEBUG
688 if (yydebug)
689 {
690 ...
691 }
692 #endif
693
694 into
695
696 if (yydebug)
697 {
698 ...
699 }
700
701 unfortunately this leads to a CPP conflict when
702 `--name-prefix=foo' is used since it produces `#define yydebug
703 foodebug'.
704
705 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
706 (YYDPRINTF): New macro.
707 Spread its use.
708 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
709 the bison options.
710 Also test `--verbose', `--defines' and `--name-prefix'.
711
71da9eea
AD
7122000-10-02 Akim Demaille <akim@epita.fr>
713
714 Improve the readability of the produced parsers.
715
716 * src/bison.s1: Formatting changes.
717 Improve the comment related to the `$' mark.
718 (yydefault): Don't fall through to `yyresume': `goto' there.
719 * src/output.c (output_parser): When the `$' is met, skip the end
720 of its line.
721 New variable, `number_of_dollar_signs', to check there's exactly
722 one `$' in the parser skeleton.
723
95e36146
AD
7242000-10-02 Akim Demaille <akim@epita.fr>
725
726 * lib/xstrdup.c: New file, from the fileutils.
727 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
728 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
729 instead of strlen + xmalloc + strcpy.
730 * src/symtab.c (copys): Remove, use xstrdup instead.
731
d7020c20
AD
7322000-10-02 Akim Demaille <akim@epita.fr>
733
734 * src/gram.h (associativity): New enum type which replaces the
735 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
736 `right_assoc', `left_assoc' and `non_assoc'.
737 Adjust all dependencies.
738 * src/reader.c: Formatting changes.
739 (LTYPESTR): Don't define it, use it as a literal in
740 `reader_output_yylsp'.
741 * src/symtab.h (symbol_class): New enum type which replaces the
742 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
743 `sunknown', `stoken and `snterm'.
744
1916f98e
AD
7452000-10-02 Akim Demaille <akim@epita.fr>
746
747 * src/getargs.c (fixed_outfiles): Rename as...
748 (yaccflag): for consistency and accuracy.
749 Adjust dependencies.
750
d7913476
AD
7512000-10-02 Akim Demaille <akim@epita.fr>
752
753 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
754 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
755 difficult and introduced a lot of core dump. It turns out that
756 Bison used an implementation of `xmalloc' based on `calloc', and
757 at various places it does depend upon the initialization to 0. I
758 have not tried to isolate the pertinent places, and all the former
759 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
760 someone should address this issue.
761
762 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
763 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
764 files.
765 Adjust dependencies.
766 * src/warshall.h: New file.
767 Propagate.
768
340ef489
AD
7692000-10-02 Akim Demaille <akim@epita.fr>
770
771 Various anti-`extern in *.c' changes.
772
773 * src/system.h: Include `assert.h'.
774
b2ca4022
AD
7752000-10-02 Akim Demaille <akim@epita.fr>
776
777 * src/state.h (nstates, final_state, first_state, first_shift)
778 (first_reduction): Move their exportation from here...
779 * src/LR0.h: to here.
780 Adjust dependencies.
781 * src/getargs.c (statisticsflag): New variable.
782 Add support for `--statistics'.
783 Adjust dependencies.
784
785 Remove a lot of now useless `extern' statements in most files.
786
403b315b
AD
7872000-10-02 Akim Demaille <akim@epita.fr>
788
789 * src/LR0.h: New file.
790 Propagate its use.
791
07a58c13
AD
7922000-10-02 Akim Demaille <akim@epita.fr>
793
794 * src/print.h: New file.
795 Propagate its use.
796 * src/print.c: Formatting and ordering changes.
797 (verbose, terse): Replace with...
798 (print_results): this new function.
799 Adjust dependencies.
800
0619caf0
AD
8012000-10-02 Akim Demaille <akim@epita.fr>
802
803 * src/conflicts.c (conflict_report): New function.
804 (conflict_log, verbose_conflict_log): Replace with...
805 (print_conflicts): this function.
806 Adjust dependencies.
807 * src/conflicts.h: New file.
808 Propagate its inclusion.
809
3519ec76
AD
8102000-10-02 Akim Demaille <akim@epita.fr>
811
812 * src/nullable.h: New file.
813 Propagate its inclusion.
814 * src/nullable.c: Formatting changes.
815
015acc48
AD
8162000-10-02 Akim Demaille <akim@epita.fr>
817
818 * src/reduce.h: New file.
819 Propagate its inclusion.
820 * src/reduce.c: Topological sort and other formatting changes.
821 (bool, TRUE, FALSE): Move their definition to...
822 * src/system.h: here.
823
8963a27b
AD
8242000-10-02 Akim Demaille <akim@epita.fr>
825
826 * src/files.c: Formatting changes.
827 (tryopen, tryclose, openfiles): Rename as...
828 (xfopen, xfclose, open_files): this.
829 (stringappend): static.
830 * src/files.h: Complete the list of exported symbols.
831 Propagate its use.
832
a70083a3
AD
8332000-10-02 Akim Demaille <akim@epita.fr>
834
835 * src/reader.h: New file.
836 Propagate its use instead of tedious list of `extern' and
837 prototypes.
838 * src/reader.c: Formatting changes, topological sort,
839 s/register//.
840
abadc117
AD
8412000-10-02 Akim Demaille <akim@epita.fr>
842
843 * src/lex.h: Prototype `lex.c' exported functions.
844 * src/reader.c: Adjust.
845 * src/lex.c: Formatting changes.
846 (safegetc): Rename as...
847 (xgetc): this.
848
720d742f
AD
8492000-10-02 Akim Demaille <akim@epita.fr>
850
851 * src/lalr.h: New file.
852 Propagate its inclusion instead of prototypes and `extern'.
853 * src/lalr.c: Formatting changes, topological sorting etc.
854
f2acea59
AD
8552000-10-02 Akim Demaille <akim@epita.fr>
856
857 * src/output.c (token_actions): Introduce a temporary array,
858 YYDEFACT, that makes it possible for this function to use
859 output_short_table.
860
d019d655
AD
8612000-10-02 Akim Demaille <akim@epita.fr>
862
863 `user_toknums' is output as a `short[]' in `output.c', while it is
864 defined as a `int[]' in `reader.c'. For consistency with the
865 other output tables, `user_toknums' is now defined as a table of
866 shorts.
867
868 * src/reader.c (user_toknums): Be a short table instead of an int
869 table.
870 Adjust dependencies.
871
872 Factor the short table outputs.
873
874 * src/output.c (output_short_table): New function.
875 * src/output.c (output_gram, output_stos, output_rule_data)
876 (output_base, output_table, output_check): Use it.
877
6c89f1c1
AD
8782000-10-02 Akim Demaille <akim@epita.fr>
879
880 * src/output.c (output): Topological sort of the functions, in
881 order to get rid of the `static' prototypes.
882 No longer use `register'.
883 * src/output.h: New file.
884 Propagate its inclusion in files explicitly prototyping functions
885 from output.c.
886
d9efd181
AD
8872000-09-21 Akim Demaille <akim@epita.fr>
888
889 * src/atgeneral.m4: Update from Autoconf.
890
c29240e7 8912000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
892
893 * src/closure.h: New file.
894 * src/closure.c: Formatting changes, topological sort over the
895 functions, use of closure.h.
896 (initialize_closure, finalize_closure): Rename as...
897 (new_closure, free_closure): these. Adjust dependencies.
898 * src/LR0.c: Formatting changes, topological sort, use of
899 cloture.h.
900 (initialize_states): Rename as...
901 (new_states): this.
902 * src/Makefile.am (noinst_HEADERS): Adjust.
903
499daa50
AD
9042000-09-20 Akim Demaille <akim@epita.fr>
905
906 * src/acconfig.h: Don't protect config.h against multiple
907 inclusion.
908 Don't define PARAMS.
909 * src/system.h: Define PARAMS.
910 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
911 purpose of config.h. system.h must not try to fix wrong
912 definitions in config.h.
913
cc84fd5d
AD
9142000-09-20 Akim Demaille <akim@epita.fr>
915
916 * src/derives.h: New file.
917 * src/main.c, src/derives.h: Use it.
918 Formatting changes.
919 * src/Makefile.am (noinst_HEADERS): Adjust.
920
db5b3a89
AD
9212000-09-20 Akim Demaille <akim@epita.fr>
922
923 * tests/atgeneral.m4: Update from Autoconf.
924 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
925 (AT_CHECK_CALC): New macros.
926 Use these macros to test bison with options `', `--raw',
927 `--debug', `--yacc', `--yacc --debug'.
928
ceed8467
AD
9292000-09-19 Akim Demaille <akim@epita.fr>
930
931 * src/output.c: Formatting changes.
932 * src/machine.h: Remove, leaving its contents in...
933 * src/system.h: here.
934 Include stdio.h.
935 Adjust all dependencies on stdio.h and machine.h.
936 * src/getargs.h: New file.
937 Let all `extern' declarations about getargs.c be replaced with
938 inclusion of `getargs.h'.
939 * src/Makefile.am (noinst_HEADERS): Adjust.
940
941 * tests/calc.m4 (yyin): Be initialized in main, not on the global
942 scope.
943 (yyerror): Returns void, not int.
944 * doc/bison.texinfo: Formatting changes.
945
05a1d24b
AD
9462000-09-19 Akim Demaille <akim@epita.fr>
947
948 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
949 portable.
950
cbd25751
AD
9512000-09-18 Akim Demaille <akim@epita.fr>
952
953 * configure.in: Append WARNING_CFLAGS to CFLAGS.
954 * src/Makefile.am (INCLUDES): Don't.
955 Be ready to fetch headers in lib/.
956
13863333
AD
9572000-09-18 Akim Demaille <akim@epita.fr>
958
959 * doc/bison.texinfo: Update the copyright.
960 ANSIfy and GNUify the examples.
961 Remove the old menu.
962
0d533154
AD
9632000-09-18 Akim Demaille <akim@epita.fr>
964
965 First set of tests: use the `calc' example from the documentation.
966
967 * src/bison.s1 (yyparse): Condition the code using `yytname' which
968 is defined only when YYDEBUG is.
969 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
970 * src/files.c (tryopen, tryclose): Formatting changes.
971 Move to the top and be static.
972 * src/reader.c (read_signed_integer): Likewise.
973 * tests/calc.m4: New file.
974 * Makefile.am, suite.m4: Adjust.
975 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
976
e79137ac
AD
9772000-09-18 Akim Demaille <akim@epita.fr>
978
979 Add support for an Autotest test suite for Bison.
980
981 * m4/m4.m4, m4/atconfig.m4: New files.
982 * m4/Makefile.am (EXTRA_DIST): Adjust.
983 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
984 files.
985 * src/getargs.c: Display a more standard --version message.
986 * src/reader.c (reader): Formatting changes.
987 No longer depend upon VERSION_STRING.
988 * configure.in: No longer use `dnl'.
989 Set up the test suite and the new directory `tests/.
990 (VERSION_STRING): Remove.
991
27821bff
AD
9922000-04-14 Akim Demaille <akim@epita.fr>
993
994 * src/reader.c (copy_comment2): New function, same as former
995 `copy_comment', but outputs into two FILE *.
996 (copy_comment): Use it.
997 (parse_union_decl): Use it.
998 (get_type, parse_start_decl): Use the same `invalid' message.
999 (parse_start_decl, parse_union_decl): Use the same `multiple'
1000 message.
1001 (parse_union_decl, copy_guard, copy_action): Use the same
1002 `unmatched' message.
1003 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1004
cfe5fbc0
AD
10052000-03-31 Akim Demaille <akim@epita.fr>
1006
1007 * src/files.c (tryopen, tryclose): Move to the top.
1008 Be static.
1009
cb7db13e
AD
10102000-03-31 Akim Demaille <akim@epita.fr>
1011
1012 * src/main.c (main): Don't call `done', exit does it.
1013
a0f6b076
AD
10142000-03-31 Akim Demaille <akim@epita.fr>
1015
36281465
AD
1016 * allocate.c: s/return (foo)/return foo/.
1017 * lalr.c: Likewise.
1018 * LR0.c: Likewise.
1019 * output.c: Likewise.
1020 * reader.c: Likewise.
1021 * symtab.c: Likewise.
1022 * vmsgetargs.c: Likewise.
1023
10242000-03-31 Akim Demaille <akim@epita.fr>
1025
1026 Clean up the error reporting functions.
a0f6b076
AD
1027
1028 * src/report.c: New file.
1029 * src/report.h: Likewise.
1030 * src/Makefile.am: Adjust.
1031 * m4/error.m4: New file.
1032 * m4/Makefile.am: Adjust.
1033 * configure.in (jm_PREREQ_ERROR): Call it.
1034 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1035 Remove.
1036 (fatal, fatals): Remove. All callers use complain.c::fatal.
1037 (warn, warni, warns, warnss, warnss): Remove. All callers use
1038 complain.c::complain.
1039 (toomany): Remove, use fatal instead.
1040 * src/files.c (done): No argument, use complain_message_count.
1041 * src/main.c (main): Register `done' to `atexit'.
1042
1043 * src/getargs.c (usage): More `fputs', less `fprintf'.
1044
18539825
AD
10452000-03-28 Akim Demaille <akim@epita.fr>
1046
1047 * lib/: New directory.
1048 * Makefile.am (SUBDIRS): Adjust.
1049 * configure.in: Adjust.
1050 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1051 useless.
1052 * src/alloca.c: Moved to lib/.
1053 * src/getopt.c: Likewise.
1054 * src/getopt1.c: Likewise.
1055 * src/getopt.h: Likewise.
1056 * src/ansi2knr.c: Likewise.
1057 * src/ansi2knr.1: Likewise.
1058 * src/Makefile.am: Adjust.
1059 * lib/Makefile.am: New file.
1060
9f306f2a
AD
10612000-03-28 Akim Demaille <akim@epita.fr>
1062
1063 * src/getargs.c (usage): Refresh the help message.
1064
0ba347b6
AD
10652000-03-17 Akim Demaille <akim@epita.fr>
1066
1067 * src/getopt1.c: Updated from textutils 2.0e
1068 * src/getopt.c: Likewise.
1069 * src/getopt.h: Likewise.
1070
dbe7f271
AD
10712000-03-17 Akim Demaille <akim@epita.fr>
1072
1073 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1074 the file name, not the whole `#line LINE FILE'.
1075
75bbe78d
AD
10762000-03-17 Akim Demaille <akim@epita.fr>
1077
1078 On syntax errors, report the token on which we choked.
1079
aa5fd0ee
AD
1080 * src/bison.s1 (yyparse): In the label yyerrlab, when
1081 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1082
7b306f52
AD
10832000-03-17 Akim Demaille <akim@epita.fr>
1084
aa5fd0ee 1085 * src/reader.c (copy_at): New function.
7b306f52
AD
1086 (copy_guard): Use it.
1087 (copy_action): Use it.
1088
e87b5700
AD
10892000-03-17 Akim Demaille <akim@epita.fr>
1090
1091 Be kind to translators, save some useless translations.
1092
aa5fd0ee 1093 * src/main.c (banner): New function.
e87b5700
AD
1094 (fatal_banner): Use it.
1095 (warn_banner): Use it.
1096
ae3c3164
AD
10972000-03-17 Akim Demaille <akim@epita.fr>
1098
aa5fd0ee
AD
1099 * src/reader.c (copy_definition): Use copy_string and
1100 copy_comment. Removed now unused `match', `ended',
1101 `cplus_comment'.
ae3c3164
AD
1102 (copy_comment, copy_string): Moved, to be visible from
1103 copy_definition.
1104
4dc58e7c
AD
11052000-03-17 Akim Demaille <akim@epita.fr>
1106
aa5fd0ee
AD
1107 * src/reader.c (copy_string): Declare `static inline'. No
1108 problems with inline, since it is checked by configure.
4dc58e7c
AD
1109 (copy_comment): Likewise.
1110
0a6384c4
AD
11112000-03-17 Akim Demaille <akim@epita.fr>
1112
aa5fd0ee 1113 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1114
3cef001a
AD
11152000-03-17 Akim Demaille <akim@epita.fr>
1116
aa5fd0ee 1117 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1118 (copy_action): Use it. Removed now unused `match', `ended',
1119 `cplus_comment'.
1120 (copy_guard): Likewise.
1121
ca36d2ef
AD
11222000-03-17 Akim Demaille <akim@epita.fr>
1123
aa5fd0ee 1124 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1125 (copy_action): Use it.
1126 (copy_guard): Likewise.
1127
6666f98f
AD
11282000-03-17 Akim Demaille <akim@epita.fr>
1129
1130 Change the handling of @s so that they behave exactly like $s.
1131 There is now a pseudo variable @$ (readble and writable), location
1132 of the lhs of the rule (by default ranging from the location of
1133 the first symbol of the rhs, to the location of the last symbol,
1134 or, if the rhs is empty, YYLLOC).
1135
1136 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1137 yyval.
1138 (yyparse): When providing a default semantic action, provide a
1139 default location action.
1140 (after the $): No longer change `*YYLSP', just stack YYLOC the
1141 same way you stack YYVAL.
1142 * src/reader.c (read_declarations): Use warns.
1143 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1144 (copy_action, case '@'): Likewise.
1145 Use a standard error message, to save useless work from
1146 translators.
1147
41aca2e0
AD
11482000-03-17 Akim Demaille <akim@epita.fr>
1149
aa5fd0ee
AD
1150 * src/bison.s1: Formatting and cosmetics changes.
1151 * src/reader.c: Likewise.
41aca2e0
AD
1152 Update the Copyright notice.
1153
dc08c1d5
AD
11542000-03-17 Akim Demaille <akim@epita.fr>
1155
aa5fd0ee
AD
1156 * src/bison.s1 (#line): All set to `#line' only, since the
1157 Makefile now handles them.
dc08c1d5 1158
9ee3c97b
AD
11592000-03-16 Akim Demaille <akim@epita.fr>
1160
1161 * src/output.c (output_rule_data): Output the documentation of
1162 some of the tables.
1163 (Copyright notice): Update.
1164 Formatting changes.
1165
0de741ca
AD
11662000-03-16 Akim Demaille <akim@epita.fr>
1167
1168 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1169 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1170 One `#if YYDEBUG' remains, since it uses variables which are
1171 defined only if `YYDEBUG != 0'.
1172
bb10be54
AD
11732000-03-16 Akim Demaille <akim@epita.fr>
1174
1175 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1176 and related variables so that the similarities are highlighted.
1177
b07b484a
AD
11782000-03-16 Akim Demaille <akim@epita.fr>
1179
1180 * src/bison.s1: Properly indent CPP directives.
1181
361f60b3
AD
11822000-03-16 Akim Demaille <akim@epita.fr>
1183
1184 * src/bison.s1: Properly indent the `alloca' CPP section.
1185
8c44d3ec
AD
11862000-03-16 Akim Demaille <akim@epita.fr>
1187
1188 Do not hard code values of directories in `configure.in'.
1189 Update the `configure' tool chain.
1190
1191 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1192 src/makefile.am.
1193 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1194 (AC_OUTPUT): Add m4/Makefile.
1195 Bump to bison 1.28a, 1.29 has never been released.
1196 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1197 handled via src/Makefile.am.
1198 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1199 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1200 autoheader.
1201 * Makefile.am (SUBDIRS): Add m4.
1202 (ACLOCAL_AM_FLAGS): New variable.
1203 (AUTOMAKE_OPTIONS): Add check-news.
1204 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1205 the proper line number and file name.
1206 (DEFS): Propagate the location of bison library files and of the
1207 locale files.
1208 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1209 builddir.
1210 * acinclude.m4: Remove, replaced by the directory m4.
1211 * m4/Makefile.am (EXTRA_DIST): New variable.
1212 * m4/gettext.m4: New file, from the fileutils.
1213 * m4/lcmessage.m4: Likewise
1214 * m4/progtest.m4: Likewise.
1215 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1216
f95997e7
AD
12172000-03-10 Akim Demaille <akim@epita.fr>
1218
1219 * src/closure.c:
1220 Formatting changes of various comments.
1221 Respect the GNU coding standards at various places.
1222 Don't use `_()' when no translation is needed.
1223
12241999-12-13 Jesse Thilo <jthilo@gnu.org>
1225
1226 * src/files.c:
1227 OS/2 honors TMPDIR environment variable.
1228
12291999-12-13 Jesse Thilo <jthilo@gnu.org>
1230
1231 * doc/bison.texinfo: Tweaked spelling and grammar.
1232 Updated ISBN.
1233 Removed reference to price of printed copy.
1234 Mention BISON_SIMPLE and BISON_HAIRY.
1235
12361999-12-13 Jesse Thilo <jthilo@gnu.org>
1237
1238 * configure.in, NEWS:
1239 Bison 1.29 released.
1240
12411999-10-27 Jesse Thilo <jthilo@gnu.org>
1242
1243 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1244 Added reference card.
1245
12461999-07-26 Jesse Thilo <jthilo@gnu.org>
1247
1248 * po/ru.po: Added Russian translation.
1249
12501999-07-26 Jesse Thilo <jthilo@gnu.org>
1251
1252 * configure.in: Added Russian translation.
1253
12541999-07-06 Jesse Thilo <jthilo@gnu.org>
1255
1256 * configure.in, NEWS, README:
1257 Released version 1.28.
1258
12591999-06-14 Jesse Thilo <jthilo@gnu.org>
1260
1261 * src/system.h:
1262 Squashed redefinition warning on some systems.
1263
1264 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1265 Have configure build version string instead of relying on ANSI string
1266 concatentation.
1267
12681999-06-14 Jesse Thilo <jthilo@gnu.org>
1269
1270 * po/POTFILES.in: Got rid of version.c.
1271
12721999-06-14 Jesse Thilo <jthilo@gnu.org>
1273
1274 * acconfig.h, configure.in:
1275 Have configure build version string instead of relying on ANSI string
1276 concatentation.
1277
12781999-06-08 Jesse Thilo <jthilo@gnu.org>
1279
1280 * doc/bison.1:
1281 Dropped mention of `+' for long-named options.
1282
12831999-05-30 Jesse Thilo <jthilo@gnu.org>
1284
1285 * src/files.c: Added <unistd.h> for unlink().
1286
1287 * src/Makefile.am, src/system.h:
1288 I18n fixes.
1289
12901999-05-30 Jesse Thilo <jthilo@gnu.org>
1291
1292 * README: Added a FAQ list.
1293
1294 * configure.in, acconfig.h:
1295 I18n fixes.
1296
12971999-05-30 Jesse Thilo <jthilo@gnu.org>
1298
1299 * doc/FAQ, doc/Makefile.am:
1300 Added a FAQ list.
1301
13021999-05-19 Jesse Thilo <jthilo@gnu.org>
1303
1304 * src/alloc.h, src/symtab.h, src/version.c:
1305 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1306
13071999-04-18 Jesse Thilo <jthilo@gnu.org>
1308
1309 * src/.cvsignore, src/Makefile.am:
1310 Reorganized: sources in `src', documentation in `doc'.
1311
1312 * src/lex.c (literalchar):
1313 fixed the code for escaping double quotes (thanks
1314 Jonathan Czisny.)
1315
13161999-04-18 Jesse Thilo <jthilo@gnu.org>
1317
1318 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1319 Adjusted paths to reflect directory reorganization.
1320
13211999-04-18 Jesse Thilo <jthilo@gnu.org>
1322
1323 * doc/.cvsignore, doc/Makefile.am:
1324 Reorganized: sources in `src', documentation in `doc'.
1325
13261999-04-18 Jesse Thilo <jthilo@gnu.org>
1327
1328 * configure.in:
1329 Updated AC_INIT file to reflect directory reorganization.
1330
1331 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1332 Reorganized: sources in `src', documentation in `doc'.
1333
13341999-04-13 Jesse Thilo <jthilo@gnu.org>
1335
1336 * src/allocate.c:
1337 Don't declare calloc() and realloc() if not necessary.
1338
13391999-04-13 Jesse Thilo <jthilo@gnu.org>
1340
1341 * configure.in, acconfig.h, acinclude.m4:
1342 Don't declare calloc() and realloc() if not necessary.
1343
13441999-03-23 Jesse Thilo <jthilo@gnu.org>
1345
1346 * po/.cvsignore: Added i18n support.
1347
13481999-03-23 Jesse Thilo <jthilo@gnu.org>
1349
1350 * acconfig.h, configure.in, Makefile.am:
1351 Added i18n support.
1352
13531999-03-22 Jesse Thilo <jthilo@gnu.org>
1354
1355 * src/bison.s1: Fixed #line numbers.
1356
13571999-03-15 Jesse Thilo <jthilo@gnu.org>
1358
1359 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1360 Added PO files from Translation Project.
1361
13621999-03-03 Jesse Thilo <jthilo@gnu.org>
1363
1364 * Makefile.am:
1365 Added support for non-ANSI compilers (ansi2knr).
1366
13671999-02-16 Jesse Thilo <jthilo@gnu.org>
1368
1369 * configure.in: Bumped version number to 1.27.
1370
1371 * Makefile.am:
1372 Added `bison.simple' to list of files removed by `make distclean'.
1373
13741999-02-12 Jesse Thilo <jthilo@gnu.org>
1375
1376 * src/files.c, src/files.h:
1377 Defined locations of parser files in config.h instead of Makefile.
1378
13791999-02-12 Jesse Thilo <jthilo@gnu.org>
1380
1381 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1382 Defined locations of parser files in config.h instead of Makefile.
1383
13841999-02-09 Jesse Thilo <jthilo@gnu.org>
1385
1386 * Makefile.am:
1387 Removed inappropriate use of $< macro.
1388
13891999-02-05 Jesse Thilo <jthilo@gnu.org>
1390
1391 * po/Makefile.in.in, po/POTFILES.in:
1392 Add `po' directory skeleton.
1393
13941999-01-27 Jesse Thilo <jthilo@gnu.org>
1395
1396 * README: Document help-bison list.
1397
1398 * configure.in: Add check for mkstemp().
1399
14001999-01-20 Jesse Thilo <jthilo@gnu.org>
1401
1402 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1403 Hush a few compiler warnings.
1404
1405 * src/files.c:
1406 Add tryclose(), which verifies that fclose was successful.
1407 Hush a couple of compiler warnings.
1408
14091999-01-20 Jesse Thilo <jthilo@gnu.org>
1410
1411 * Makefile.am, OChangeLog:
1412 ChangeLog is now automatically generated. Include the old version as
1413 OChangeLog.
1414
14151999-01-14 Jesse Thilo <jthilo@gnu.org>
1416
1417 * 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:
1418 Update FSF address.
1419
14201999-01-14 Jesse Thilo <jthilo@gnu.org>
1421
1422 * doc/bison.texinfo: Fix formatting glitch.
1423
1424 * doc/bison.texinfo: Update FSF address.
1425
14261999-01-14 Jesse Thilo <jthilo@gnu.org>
1427
1428 * acconfig.h: Update FSF address.
1429
14301999-01-08 Jesse Thilo <jthilo@gnu.org>
1431
1432 * src/system.h:
1433 Don't define PACKAGE here, since config.h defines it.
1434
14351998-12-30 Jesse Thilo <jthilo@gnu.org>
1436
1437 * src/reader.c: Update copyright date.
1438
1439 * src/main.c:
1440 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1441 favor of output directly to stderr (avoids buffer overruns).
1442
1443 * src/reader.c: Some checks for premature EOF.
1444
1445 * 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:
1446 Use prototypes if the compiler understands them.
1447
1448 * src/files.c: Honor TMPDIR on Unix hosts.
1449 Use prototypes if the compiler understands them.
1450
1451 * src/reader.c:
1452 Fix a couple of buffer overrun bugs.
1453 Use prototypes if the compiler understands them.
1454
1455 * src/system.h: Include unistd.h and ctype.h.
1456 Use #ifdef instead of #if for NLS symbols.
1457
14581998-12-30 Jesse Thilo <jthilo@gnu.org>
1459
1460 * doc/bison.texinfo:
1461 Delete comment "consider using @set for edition number, etc..." since
1462 we now are doing so.
1463
14641998-12-30 Jesse Thilo <jthilo@gnu.org>
1465
1466 * configure.in:
1467 Use prototypes if the compiler understands them.
1468
1469 * NEWS: Document 1.26 highlights.
1470
1471 * Makefile.am: Require Automake 1.3 or later.
1472
1473 * acconfig.h:
1474 Use prototypes if the compiler understands them.
1475
14761998-12-29 Jesse Thilo <jthilo@gnu.org>
1477
1478 * src/version.c:
1479 Use VERSION symbol from automake for version number.
1480
14811998-12-29 Jesse Thilo <jthilo@gnu.org>
1482
1483 * acconfig.h, configure.in, version.cin:
1484 Use VERSION symbol from automake for version number.
1485
14861998-11-28 Jesse Thilo <jthilo@gnu.org>
1487
1488 * Makefile.am:
1489 Distribute original version of simple parser (bison.s1), not built
1490 version (bison.simple).
1491
14921998-11-28 Jesse Thilo <jthilo@gnu.org>
1493
1494 * doc/bison.texinfo: Add info dir entry.
1495
1496 * doc/bison.texinfo:
1497 Let automake put version number into documentation.
1498
14991998-11-26 Jesse Thilo <jthilo@gnu.org>
1500
1501 * src/bison.cld, src/build.com, src/vmshlp.mar:
1502 Add non-RCS files from /gd/gnu/bison.
1503
15041998-11-26 Jesse Thilo <jthilo@gnu.org>
1505
1506 * doc/bison.1:
1507 Document the BISON_HAIRY and BISON_SIMPLE variables.
1508
15091998-11-25 Jesse Thilo <jthilo@gnu.org>
1510
1511 * src/version.c: Build version.c automatically.
1512
1513 * src/reader.c:
1514 Fix token numbering (used to start at 258, not 257).
1515
1516 * src/system.h: Include config.h.
1517
1518 * src/getargs.c: Update bug report address.
1519
1520 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1521 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1522
15231998-11-25 Jesse Thilo <jthilo@gnu.org>
1524
1525 * Makefile.am:
1526 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1527
1528 * configure.in, version.cin:
1529 Build version.c automatically.
1530
1531 * AUTHORS: Add AUTHORS file.
1532
1533 * README: Update bug report address.
1534
1535 * bison.simple:
1536 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1537
1538 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1539 Add automake stuff.
1540
15411998-11-25 Jesse Thilo <jthilo@gnu.org>
1542
1543 * doc/bison.texinfo: Clean up some formatting.
1544
15451998-05-05 Richard Stallman <rms@gnu.org>
1546
1547 * doc/bison.texinfo:
1548 Explain better why to make a pure parser.
1549
15501998-01-05 Richard Stallman <rms@gnu.org>
1551
1552 * src/files.c (openfiles):
1553 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1554 find a temporary directory, if possible. Do not unlink files while
1555 they are open.
1556
15571997-08-25 Richard Stallman <rms@gnu.org>
1558
1559 * src/reader.c (stack_offset;):
1560 Change some warni to warns.
1561
1562 * src/lex.c (literalchar): Use warns, not warni.
1563
15641997-06-28 Richard Stallman <rms@gnu.org>
1565
1566 * src/bison.s1: Add a Bison version comment.
1567
1568 * src/main.c (fatal, warn, berror):
1569 Use program_name.
1570
15711997-06-28 Richard Stallman <rms@gnu.org>
1572
1573 * Makefile.in (bison_version): New variable.
1574 (dist): Use that variable.
1575 (bison.s1): Substitute the Bison version into bison.simple.
1576
1577 * bison.simple: Add a Bison version comment.
1578
15791997-06-18 Richard Stallman <rms@gnu.org>
1580
1581 * src/main.c (fatal, warn, berror):
1582 Make error messages standard.
1583 (toomany): Improve error message text.
1584
1585 * 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:
1586 new.h renamed to alloc.h.
1587
15881997-06-18 Richard Stallman <rms@gnu.org>
1589
1590 * Makefile.in: new.h renamed to alloc.h.
1591
15921997-05-24 Richard Stallman <rms@gnu.org>
1593
1594 * src/lex.c (literalchar):
1595 Fix the code for escaping \, " and '.
1596
1597 (lex): Avoid trouble when there are many chars
1598 to discard in a char literal with just several chars in it.
1599
16001997-05-17 Richard Stallman <rms@gnu.org>
1601
1602 * src/bison.s1:
1603 Use malloc, if using alloca is troublesome.
1604 (YYSTACK_USE_ALLOCA): New flag macro.
1605 Define it for some systems and compilers.
1606 (YYSTACK_ALLOC): New macro.
1607 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1608 If it was malloc'd, free it.
1609
16101997-05-17 Richard Stallman <rms@gnu.org>
1611
1612 * bison.simple:
1613 Use malloc, if using alloca is troublesome.
1614 (YYSTACK_USE_ALLOCA): New flag macro.
1615 Define it for some systems and compilers.
1616 (YYSTACK_ALLOC): New macro.
1617 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1618 If it was malloc'd, free it.
1619
16201997-04-23 Richard Stallman <rms@gnu.org>
1621
1622 * src/bison.s1:
1623 (alloca) [__hpux]: Always define as __builtin_alloca.
1624
16251997-04-23 Richard Stallman <rms@gnu.org>
1626
1627 * bison.simple:
1628 (alloca) [__hpux]: Always define as __builtin_alloca.
1629
16301997-04-22 Richard Stallman <rms@gnu.org>
1631
1632 * src/bison.s1:
1633 [__hpux]: Include alloca.h (right for HPUX 10)
1634 instead of declaring alloca (right for HPUX 9).
1635
1636 * src/bison.s1 (__yy_memcpy):
1637 Declare arg `count' as unsigned int.
1638 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1639
16401997-04-22 Richard Stallman <rms@gnu.org>
1641
1642 * bison.simple:
1643 [__hpux]: Include alloca.h (right for HPUX 10)
1644 instead of declaring alloca (right for HPUX 9).
1645
1646 * bison.simple (__yy_memcpy):
1647 Declare arg `count' as unsigned int.
1648 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1649
16501997-01-03 Richard Stallman <rms@gnu.org>
1651
1652 * src/allocate.c: [__STDC__ or _MSC_VER]:
1653 Declare calloc and realloc to return void *.
1654
16551997-01-02 Richard Stallman <rms@gnu.org>
1656
1657 * src/system.h:
1658 [_MSC_VER]: Include stdlib.h and process.h.
1659 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1660
1661 * src/main.c (main): Return FAILURE as a value.
1662 (printable_version): Declare arg as int, not char.
1663
16641997-01-02 Richard Stallman <rms@gnu.org>
1665
1666 * Makefile.in (dist):
1667 Explicitly check for symlinks, and copy them.
1668
16691996-12-19 Richard Stallman <rms@gnu.org>
1670
1671 * src/files.c:
1672 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1673
16741996-12-18 Paul Eggert <eggert@gnu.org>
1675
1676 * src/bison.s1 (yyparse):
1677 If __GNUC__ and YYPARSE_PARAM are both defined,
1678 declare yyparse to have a void * argument.
1679
16801996-12-18 Paul Eggert <eggert@gnu.org>
1681
1682 * bison.simple (yyparse):
1683 If __GNUC__ and YYPARSE_PARAM are both defined,
1684 declare yyparse to have a void * argument.
1685
16861996-12-17 Richard Stallman <rms@gnu.org>
1687
1688 * src/reduce.c (nbits): Add some casts.
1689
16901996-08-12 Richard Stallman <rms@gnu.org>
1691
1692 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1693
16941996-08-12 Richard Stallman <rms@gnu.org>
1695
1696 * bison.simple: Test _MSDOS as well as _MSDOS_.
1697
16981996-07-31 Richard Stallman <rms@gnu.org>
1699
1700 * src/bison.s1:
1701 [__sun && __i386]: Include alloca.h.
1702
17031996-07-31 Richard Stallman <rms@gnu.org>
1704
1705 * bison.simple:
1706 [__sun && __i386]: Include alloca.h.
1707
17081996-07-30 Richard Stallman <rms@gnu.org>
1709
1710 * src/bison.s1: Comment change.
1711
1712 * src/bison.s1: Test _MSDOS_, not MSDOS.
1713
17141996-07-30 Richard Stallman <rms@gnu.org>
1715
1716 * bison.simple: Comment change.
1717
1718 * bison.simple: Test _MSDOS_, not MSDOS.
1719
17201996-06-01 Richard Stallman <rms@gnu.org>
1721
1722 * 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:
1723 Insert `_' macro around many string constants.
1724
1725 * src/main.c:
1726 Insert `_' macro around many string constants.
1727
1728 (main): Call setlocale, bindtextdomain and textdomain.
1729
1730 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1731 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1732 [ENABLE_NLS]: Include libintl.h.
1733 [ENABLE_NLS] (gettext): Define.
1734 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1735 (N_, PACKAGE, LOCALEDIR): New macros.
1736
17371996-06-01 Richard Stallman <rms@gnu.org>
1738
1739 * POTFILES.in: New file.
1740
1741 * Makefile.in (allocate.o):
1742 Define target explicitly.
1743
1744 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1745 (LDFLAGS): Set to @LDFLAGS@.
1746 (configure): Run autoconf only if preceding `cd' succeeds.
1747 (bison.s1): Redirect output to temporary file then move the
1748 temporary to the target, rather than redirecting directly to bison.s1.
1749 (clean): Remove config.status and config.log.
1750 (distclean): Don't remove config.status here.
1751
17521996-05-12 Richard Stallman <rms@gnu.org>
1753
1754 * src/bison.s1:
1755 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1756
17571996-05-12 Richard Stallman <rms@gnu.org>
1758
1759 * bison.simple:
1760 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1761
17621996-05-11 Richard Stallman <rms@gnu.org>
1763
1764 * src/bison.s1 (__yy_memcpy):
1765 Really reorder the args, as was supposedly done on Feb 14 1995.
1766 (yyparse): Calls changed accordingly.
1767
17681996-05-11 Richard Stallman <rms@gnu.org>
1769
1770 * Makefile.in (dist): Don't use $(srcdir).
1771
1772 * bison.simple (__yy_memcpy):
1773 Really reorder the args, as was supposedly done on Feb 14 1995.
1774 (yyparse): Calls changed accordingly.
1775
17761996-01-27 Richard Stallman <rms@gnu.org>
1777
1778 * src/output.c (output_rule_data):
1779 Test YYERROR_VERBOSE in the conditional
1780 around the definition of ttyname.
1781
17821995-12-29 Richard Stallman <rms@gnu.org>
1783
1784 * src/bison.s1:
1785 Fix line numbers in #line commands.
1786
17871995-12-29 Richard Stallman <rms@gnu.org>
1788
1789 * bison.simple:
1790 Fix line numbers in #line commands.
1791
17921995-12-27 Richard Stallman <rms@gnu.org>
1793
1794 * src/bison.s1 (YYPARSE_PARAM_DECL):
1795 In C++, make it always null.
1796 (YYPARSE_PARAM_ARG): New macro.
1797 (yyparse): Use YYPARSE_PARAM_ARG.
1798
17991995-12-27 Richard Stallman <rms@gnu.org>
1800
1801 * bison.simple (YYPARSE_PARAM_DECL):
1802 In C++, make it always null.
1803 (YYPARSE_PARAM_ARG): New macro.
1804 (yyparse): Use YYPARSE_PARAM_ARG.
1805
18061995-11-29 Richard Stallman <rms@gnu.org>
1807
1808 * doc/bison.texinfo:
1809 Describe literal string tokens, %raw, %no_lines, %token_table.
1810
18111995-11-29 Daniel Hagerty <hag@gnu.org>
1812
1813 * doc/bison.texinfo: Fixed update date
1814
18151995-10-16 Richard Stallman <rms@gnu.org>
1816
1817 * src/version.c: Version 1.25.
1818
18191995-10-16 Richard Stallman <rms@gnu.org>
1820
1821 * NEWS: *** empty log message ***
1822
18231995-10-16 Richard Stallman <rms@gnu.org>
1824
1825 * doc/bison.1, doc/bison.rnh:
1826 Add new options.
1827
18281995-10-15 Richard Stallman <rms@gnu.org>
1829
1830 * src/vmsgetargs.c, src/getargs.c:
1831 Added -n, -k, and -raw switches.
1832 (noparserflag, toknumflag, rawtoknumflag): New variables.
1833
1834 * src/symtab.h (SALIAS):
1835 New #define for adding aliases to %token.
1836 (struct bucket): Added `alias' field.
1837
1838 * src/reduce.c (reduce_grammar):
1839 Revise error message.
1840 (print_notices): Remove final `.' from error message.
1841
1842 * src/reader.c (reader_output_yylsp):
1843 New function.
1844 (readgram): Use `#if 0' around code that accepted %command
1845 inside grammar rules: The documentation doesn't allow it,
1846 and it will fail since the %command processors scan for the next %.
1847 (parse_token_decl): Extended the %token
1848 declaration to allow a multi-character symbol as an alias.
1849 (parse_thong_decl): New function.
1850 (read_declarations): Added %thong declarations.
1851 (read_declarations): Handle NOOP to deal with allowing
1852 % declarations as another means to specify the flags.
1853 (readgram): Allow %prec prior to semantics embedded in a rule.
1854 (skip_to_char, read_declarations, copy_definition)
1855 (parse_token_decl, parse_start_decl, parse_type_decl)
1856 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1857 (get_type_name, copy_guard, copy_action, readgram)
1858 (get_type, packsymbols): Revised most error messages.
1859 Changed `fatal' to `warnxxx' to avoid aborting for error.
1860 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1861 (read_declarations): Improve the error message for
1862 an invalid character. Do not abort.
1863 (read_declarations, copy_guard, copy_action): Use
1864 printable_version to avoid unprintable characters in printed output.
1865 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1866 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1867 Allow the type of a non-terminal can be given
1868 more than once, as long as all specifications give the same type.
1869
1870 * src/output.c:
1871 (output_headers, output_trailers, output, output_gram)
1872 (output_rule_data): Implement noparserflag variable.
1873 Implement toknumflag variable.
1874 (output): Call reader_output_yylsp to output LTYPESTR.
1875
1876 * src/main.c (main):
1877 If reader sees an error, don't process the grammar.
1878 (fatals): Updated to not use VARARGS1.
1879 (printable_version, int_to_string, warn, warni, warns, warnss)
1880 (warnsss): New error reporting functions. Avoid abort for error.
1881
1882 * src/lex.h:
1883 Added THONG and NOOP for alias processing.
1884 Added SETOPT for the new code that allows setting options with %flags.
1885
1886 * src/lex.c:
1887 Include getopt.h. Add some extern decls.
1888 (safegetc): New function to deal with EOF gracefully.
1889 (literalchar); new function to deal with reading \ escapes.
1890 (lex): Use literalchar.
1891 (lex): Implemented "..." tokens.
1892 (literalchar, lex, parse_percent_token): Made tokenbuffer
1893 always contain the token. This includes growing the token
1894 buffer while reading an integer.
1895 (parse_percent_token): Replaced if-else statement with percent_table.
1896 (parse_percent_token): Added % declarations as another
1897 way to specify the flags -n, -l, and -r. Also added hooks for
1898 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1899 major changes to files.c.
1900 (lex) Retain in the incoming stream a character following
1901 an incorrect '/'.
1902 (skip_white_space, lex): Revised most error messages
1903 and changed fatal to warn to avoid aborting.
1904 (percent_table): Added %thong declarations.
1905
1906 * src/gram.h: Comment changes.
1907
1908 * src/files.c (openfiles, open_extra_files, done):
1909 Add faction flag
1910 and actfile file. Handle noparserflag. Both for -n switch.
1911
1912 * src/conflicts.c (resolve_sr_conflict):
1913 Remove use of alloca.
1914
19151995-06-01 Jim Meyering <meyering@gnu.org>
1916
1917 * doc/bison.texinfo: *** empty log message ***
1918
19191995-05-06 Richard Stallman <rms@gnu.org>
1920
1921 * src/bison.s1: Comment change.
1922
19231995-05-06 Richard Stallman <rms@gnu.org>
1924
1925 * bison.simple: Comment change.
1926
19271995-05-03 Richard Stallman <rms@gnu.org>
1928
1929 * src/version.c: Version now 1.24.
1930
1931 * src/bison.s1: Change distribution terms.
1932
1933 * src/version.c: Version now 1.23.
1934
19351995-05-03 Richard Stallman <rms@gnu.org>
1936
1937 * doc/bison.texinfo:
1938 Rewrite "Conditions for Using Bison".
1939 Update version to 1.24.
1940
19411995-05-03 Richard Stallman <rms@gnu.org>
1942
1943 * bison.simple: Change distribution terms.
1944
19451995-02-23 Richard Stallman <rms@gnu.org>
1946
1947 * src/files.c: Test __VMS_POSIX as well as VMS.
1948
19491995-02-14 Jim Meyering <meyering@gnu.org>
1950
1951 * src/bison.s1 (__yy_memcpy):
1952 Renamed from __yy_bcopy to avoid
1953 confusion. Reverse FROM and TO arguments to be consistent with
1954 those of memcpy.
1955
19561995-02-14 Jim Meyering <meyering@gnu.org>
1957
1958 * bison.simple (__yy_memcpy):
1959 Renamed from __yy_bcopy to avoid
1960 confusion. Reverse FROM and TO arguments to be consistent with
1961 those of memcpy.
1962
19631994-11-10 David J. MacKenzie <djm@gnu.org>
1964
1965 * NEWS: reformat
1966
1967 * NEWS: New file.
1968
1969 * Makefile.in (DISTFILES): Include NEWS.
1970
1971 * Makefile.in (DISTFILES):
1972 Include install-sh, not install.sh.
1973
1974 * configure.in: Update to Autoconf v2 macro names.
1975
19761994-10-05 David J. MacKenzie <djm@gnu.org>
1977
1978 * Makefile.in: fix typo
1979
1980 * Makefile.in (prefix, exec_prefix):
1981 Let configure set them.
1982
19831994-09-28 David J. MacKenzie <djm@gnu.org>
1984
1985 * Makefile.in: Set datadir to $(prefix)/share.
1986
19871994-09-15 Richard Stallman <rms@gnu.org>
1988
1989 * src/bison.s1:
1990 Update copyright notice and GPL version.
1991
19921994-09-15 Richard Stallman <rms@gnu.org>
1993
1994 * bison.simple:
1995 Update copyright notice and GPL version.
1996
19971994-07-12 Richard Stallman <rms@gnu.org>
1998
1999 * src/reduce.c, src/reader.c:
2000 entered into RCS
2001
20021994-05-05 David J. MacKenzie <djm@gnu.org>
2003
2004 * Makefile.in: entered into RCS
2005
20061994-03-26 Richard Stallman <rms@gnu.org>
2007
2008 * src/bison.s1: entered into RCS
2009
20101994-03-26 Richard Stallman <rms@gnu.org>
2011
2012 * bison.simple: entered into RCS
2013
20141994-03-25 Richard Stallman <rms@gnu.org>
2015
2016 * src/main.c: entered into RCS
2017
20181994-03-24 Richard Stallman <rms@gnu.org>
2019
2020 * src/conflicts.c: entered into RCS
2021
20221994-01-02 Richard Stallman <rms@gnu.org>
2023
2024 * Makefile.in: *** empty log message ***
2025
20261993-11-21 Richard Stallman <rms@gnu.org>
2027
2028 * src/bison.s1: *** empty log message ***
2029
20301993-11-21 Richard Stallman <rms@gnu.org>
2031
2032 * doc/bison.texinfo: entered into RCS
2033
2034 * doc/bison.texinfo: *** empty log message ***
2035
20361993-11-21 Richard Stallman <rms@gnu.org>
2037
2038 * bison.simple: *** empty log message ***
2039
20401993-10-25 David J. MacKenzie <djm@gnu.org>
2041
2042 * doc/bison.texinfo: *** empty log message ***
2043
20441993-10-19 Richard Stallman <rms@gnu.org>
2045
2046 * src/bison.s1: *** empty log message ***
2047
20481993-10-19 Richard Stallman <rms@gnu.org>
2049
2050 * bison.simple: *** empty log message ***
2051
20521993-10-14 Richard Stallman <rms@gnu.org>
2053
2054 * src/bison.s1: *** empty log message ***
2055
20561993-10-14 Richard Stallman <rms@gnu.org>
2057
2058 * bison.simple: *** empty log message ***
2059
20601993-09-14 David J. MacKenzie <djm@gnu.org>
2061
2062 * doc/bison.texinfo: *** empty log message ***
2063
20641993-09-13 Noah Friedman <friedman@gnu.org>
2065
2066 * Makefile.in: *** empty log message ***
2067
20681993-09-10 Richard Stallman <rms@gnu.org>
2069
2070 * src/conflicts.c: *** empty log message ***
2071
2072 * src/system.h: entered into RCS
2073
20741993-09-10 Richard Stallman <rms@gnu.org>
2075
2076 * doc/bison.1: entered into RCS
2077
20781993-09-06 Noah Friedman <friedman@gnu.org>
2079
2080 * src/version.c: entered into RCS
2081
20821993-09-06 Noah Friedman <friedman@gnu.org>
2083
2084 * Makefile.in: *** empty log message ***
2085
20861993-07-30 David J. MacKenzie <djm@gnu.org>
2087
2088 * Makefile.in: *** empty log message ***
2089
20901993-07-24 Richard Stallman <rms@gnu.org>
2091
2092 * src/bison.s1: *** empty log message ***
2093
20941993-07-24 Richard Stallman <rms@gnu.org>
2095
2096 * bison.simple: *** empty log message ***
2097
20981993-07-08 David J. MacKenzie <djm@gnu.org>
2099
2100 * Makefile.in: *** empty log message ***
2101
21021993-07-04 Richard Stallman <rms@gnu.org>
2103
2104 * src/bison.s1: *** empty log message ***
2105
21061993-07-04 Richard Stallman <rms@gnu.org>
2107
2108 * bison.simple: *** empty log message ***
2109
21101993-06-26 David J. MacKenzie <djm@gnu.org>
2111
2112 * src/getargs.c: entered into RCS
2113
21141993-06-26 David J. MacKenzie <djm@gnu.org>
2115
2116 * doc/bison.texinfo: *** empty log message ***
2117
2118 * doc/bison.1: New file.
2119
21201993-06-25 Richard Stallman <rms@gnu.org>
2121
2122 * src/getargs.c: New file.
2123
21241993-06-16 Richard Stallman <rms@gnu.org>
2125
2126 * src/bison.s1: *** empty log message ***
2127
21281993-06-16 Richard Stallman <rms@gnu.org>
2129
2130 * bison.simple: *** empty log message ***
2131
21321993-06-03 Richard Stallman <rms@gnu.org>
2133
2134 * src/bison.s1: New file.
2135
21361993-06-03 Richard Stallman <rms@gnu.org>
2137
2138 * doc/bison.texinfo: *** empty log message ***
2139
21401993-06-03 Richard Stallman <rms@gnu.org>
2141
2142 * bison.simple: New file.
2143
21441993-05-19 Richard Stallman <rms@gnu.org>
2145
2146 * doc/bison.texinfo: New file.
2147
21481993-05-07 Noah Friedman <friedman@gnu.org>
2149
2150 * Makefile.in: *** empty log message ***
2151
21521993-04-28 Noah Friedman <friedman@gnu.org>
2153
2154 * src/reader.c: *** empty log message ***
2155
21561993-04-23 Noah Friedman <friedman@gnu.org>
2157
2158 * src/alloc.h: entered into RCS
2159
21601993-04-20 David J. MacKenzie <djm@gnu.org>
2161
2162 * src/version.c: *** empty log message ***
2163
2164 * src/files.c, src/allocate.c:
2165 entered into RCS
2166
2167 * src/reader.c: *** empty log message ***
2168
2169 * src/lex.c: entered into RCS
2170
2171 * src/conflicts.c: New file.
2172
2173 * src/symtab.c: entered into RCS
2174
2175 * src/alloc.h: New file.
2176
2177 * src/LR0.c: entered into RCS
2178
21791993-04-18 Noah Friedman <friedman@gnu.org>
2180
2181 * src/reader.c: New file.
2182
2183 * src/version.c: *** empty log message ***
2184
21851993-04-18 Noah Friedman <friedman@gnu.org>
2186
2187 * Makefile.in: *** empty log message ***
2188
21891993-04-17 Noah Friedman <friedman@gnu.org>
2190
2191 * Makefile.in: *** empty log message ***
2192
21931993-04-15 Richard Stallman <rms@gnu.org>
2194
2195 * src/main.c, src/files.c:
2196 New file.
2197
21981993-04-15 Noah Friedman <friedman@gnu.org>
2199
2200 * configure.in: entered into RCS
2201
2202 * configure.in: *** empty log message ***
2203
2204 * configure.in: New file.
2205
22061993-04-14 Richard Stallman <rms@gnu.org>
2207
2208 * Makefile.in: New file.
2209
22101993-04-13 Richard Stallman <rms@gnu.org>
2211
2212 * src/version.c: New file.
2213
22141993-03-25 Richard Stallman <rms@gnu.org>
2215
2216 * src/output.c: entered into RCS
2217
22181992-09-25 Richard Stallman <rms@gnu.org>
2219
2220 * configure.bat: entered into RCS
2221
22221992-06-22 Richard Stallman <rms@gnu.org>
2223
2224 * src/vmsgetargs.c: entered into RCS
2225
22261992-06-22 Richard Stallman <rms@gnu.org>
2227
2228 * doc/bison.rnh: entered into RCS
2229
22301992-04-20 David J. MacKenzie <djm@gnu.org>
2231
2232 * README: entered into RCS
2233
22341992-01-22 Richard Stallman <rms@gnu.org>
2235
2236 * src/machine.h: entered into RCS
2237
22381991-12-21 Richard Stallman <rms@gnu.org>
2239
2240 * src/lalr.c, src/closure.c:
2241 entered into RCS
2242
22431991-12-20 Richard Stallman <rms@gnu.org>
2244
2245 * src/state.h: entered into RCS
2246
22471991-12-18 Richard Stallman <rms@gnu.org>
2248
2249 * src/print.c, src/nullable.c, src/derives.c:
2250 entered into RCS
2251
22521991-11-03 David J. MacKenzie <djm@gnu.org>
2253
2254 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2255 entered into RCS
2256
22571988-09-09 Richard Stallman <rms@gnu.org>
2258
2259 * src/bison.hairy: entered into RCS
2260
22611987-12-16 Richard Stallman <rms@gnu.org>
2262
2263 * REFERENCES: entered into RCS