]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/lex.c (percent_table): Add tok_define.
[bison.git] / ChangeLog
CommitLineData
dd3127cf
RA
12001-08-25 Robert Anisko <robert.anisko@epita.fr>
2
3 * src/lex.c (percent_table): Add tok_define.
4 * src/lex.h: Add tok_define.
5
aa321494
RA
62001-08-25 Robert Anisko <robert.anisko@epita.fr>
7
8 * src/macrotab.c: New file.
9 * src/macrotab.h: New file.
10 * src/Makefile.am: Update.
11
68bd3b6b
RA
122001-08-25 Robert Anisko <robert.anisko@epita.fr>
13
14 * lib/hash.c: New file.
15 * lib/hash.h: New file.
16 * lib/Makefile.am: Update.
17
45f8dd1e
AD
182001-08-15 Akim Demaille <akim@epita.fr>
19
20 Version 1.28c.
21
bbb5bcc6 222001-08-15 Marc Autret <prog@epita.fr>
0b8afb77
AD
23
24 * src/reader.c (readgram): Indent output macro YYSTYPE.
25 (packsymbols): Likewise.
26 (output_token_defines): Likewise.
27 * src/files.c: Standardize.
28 (compute_header_macro): New.
29 (defines_obstack_save): New. Use compute_header_macro.
30 (output_files): Update. Use defines_obstack_save.
31
f9a8293a
AD
322001-08-15 Akim Demaille <akim@epita.fr>
33
34 * doc/bison.texinfo (Table of Symbols): Document
35 YYSTACK_USE_ALLOCA.
36
150ca7a7
AD
372001-08-15 Akim Demaille <akim@epita.fr>
38
39 * missing: Update from CVS Automake.
40 * config/config.guess, config/config.sub, config/texinfo.tex:
41 Update from gnu.org.
42
69b5cec4
AD
432001-08-15 Akim Demaille <akim@epita.fr>
44
45 * Makefile.maint: Sync with CVS Autoconf.
46
f2b5126e
PB
472001-08-14 Pascal Bart <pascal.bart@epita.fr>
48
69b5cec4 49 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
50 `fdl.texi'.
51 * doc/fdl.texi: Add to package.
52
4ecbf796
MA
532001-08-14 Marc Autret <autret_m@epita.fr>
54
55 Turn on %{source,header}_extension features.
56
69b5cec4 57 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
58 source_extension.
59 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 60 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
61 between options.
62
95fb5662
MA
632001-08-14 Marc Autret <autret_m@epita.fr>
64
65 * src/files.c (compute_base_names): Add extensions computing when
66 `--file-prefix' used.
67 Standardize function calls.
68
78d09da9
MA
692001-08-13 Marc Autret <autret_m@epita.fr>
70
69b5cec4 71 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
72 defining it (defined but null disables alloca).
73
5a009f2c
MA
742001-08-13 Marc Autret <autret_m@epita.fr>
75
76 * src/bison.simple (_yy_memcpy): CPP reformat.
77
1e41465a
PB
782001-08-13 Pascal Bart <pascal.bart@epita.fr>
79
80 * tests/atconfig.in (CPPFLAGS): Fix.
81
c67a198d
PB
822001-08-10 Pascal Bart <pascal.bart@epita.fr>
83
79282c6c 84 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
85 `gpl.texi'.
86 * doc/gpl.texi: Add to package.
87
09a6de7e
MA
882001-08-10 Marc Autret <autret_m@epita.fr>
89
90 * src/print_graph.h: Fix.
91 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
92
b77b9ee0
AD
932001-08-10 Akim Demaille <akim@epita.fr>
94
95 * src/system.h: Provide default declarations for stpcpy, strndup,
96 and strnlen.
97
3e259915
MA
982001-08-10 Robert Anisko <anisko_r@epita.fr>
99
100 * doc/bison.texinfo (Locations): Update @$ stuff.
101
ca96bc2d
MA
1022001-08-09 Robert Anisko <anisko_r@epita.fr>
103
104 * src/bison.simple (YYLLOC_DEFAULT): Update.
105 (yyparse): Adjust.
106
fdc6758b
MA
1072001-08-08 Marc Autret <autret_m@epita.fr>
108
b77b9ee0 109 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
110 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
111 Reported by Fabrice Bauzac.
957d4dbf 112
600cad3b
MA
1132001-08-08 Marc Autret <autret_m@epita.fr>
114
115 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
116 * src/vcg.c (output_node): Fix.
117 * src/vcg.h: Cleanup.
118 * src/print_graph.c: Add comments.
b77b9ee0 119 (node_output_size): New global variable. Simplify the formatting of
600cad3b 120 the VCG graph output.
b77b9ee0 121 (print_actions): Unused code is now used. It notifies the final state
600cad3b 122 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 123 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
124 blue.
125 Get the current node name and node_obstack by argument.
126 (node_obstack): New variable.
127 (print_state): Manage node_obstack.
128 (print_core): Use node_obstack given by argument.
129 A node is not only computed here but in print_actions also.
130 (print_graph): CPP out useless code instead of commenting it.
131
976e528f
AD
1322001-08-07 Pascal Bart <pascal.bart@epita.fr>
133
134 * tests/atconfig.in (CPPFLAGS): Fix.
135
20e8e5ca
AD
1362001-08-07 Akim Demaille <akim@epita.fr>
137
138 * src/print_graph.c (quote): New.
139 (print_core): Use it.
140
957d4dbf 1412001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 142
3e3da797
AD
143 * src/vcg.c (complain.h): Include it.
144 Unepitaize `return' invocations.
c4b66126 145 [NDEBUG] (main): Remove.
79282c6c 146 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
147 * src/files.c (open_files): Initialize graph_obstack.
148 * src/print_graph.c (print_actions): CPP out useless code.
149 (print_core): Don't output the last `\n' in labels.
150 Use `quote'.
151 * src/files.c (output_files): Output the VCG file.
152 * src/main.c (main): Invoke print_graph ();
3e3da797 153
957d4dbf 1542001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
155
156 Automaton VCG graph output.
157 Using option ``-g'' or long option ``--graph'', you can generate
158 a gram_filename.vcg file containing a VCG description of the LALR (1)
159 automaton of your grammar.
160
161 * src/main.c: Call to print_graph() function.
162 * src/getargs.h: Update.
163 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
164 (graph_flag): New flag.
165 (longopts): Update.
166 (getargs): Add case `g'.
167 * src/files.c (graph_obstack): New obstack struct.
168 (open_files): Initialize new obstack.
169 (output_files): Saves graph_obstack if required.
170 * src/files.h (graph_obstack): New extern declaration.
171 * src/Makefile.am: Add new source files.
172
957d4dbf 1732001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
174
175 * src/print_graph.c, src/print_graph.h (graph): New.
176 * src/vcg.h: New file.
177 * src/vcg.c: New file, VCG graph handling.
178
7333d403
AD
1792001-08-06 Marc Autret <autret_m@epita.fr>
180
181 Add of %source_extension and %header_extension which specify
182 the source or/and the header output file extension.
183
184 * src/files.c (compute_base_names): Remove initialisation of
185 src_extension and header_extension.
186 (compute_exts_from_gf): Update.
187 (compute_exts_from_src): Update.
188 (output_files): Update.
189 * src/reader.c (parse_header_extension_decl): New.
190 (parse_source_extension_decl): New.
191 (read_declarations): New case statements for the new tokens.
192 * src/lex.c (percent_table): Add entries for %source_extension
193 and %header_extension.
194 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
195
84163231
AD
1962001-08-06 Marc Autret <autret_m@epita.fr>
197
198 * configure.in: Bump to 1.28c.
199 * doc/bison.texinfo: Texinfo thingies.
200
8303fc42
AD
2012001-08-04 Pascal Bart <pascal.bart@epita.fr>
202
203 * tests/atconfig.in (CPPFLAGS): Add.
204 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
205
70a84437
AD
2062001-08-03 Akim Demaille <akim@epita.fr>
207
208 Version 1.28b.
209
2ce10144
AD
2102001-08-03 Akim Demaille <akim@epita.fr>
211
212 * tests/Makefile.am (check-local): Ship testsuite.
213 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
214 Include `string.h'.
215
1e3e4bc1
AD
2162001-08-03 Akim Demaille <akim@epita.fr>
217
218 * configure.in: Try using -Wformat when compiling.
219
42b45b7f
AD
2202001-08-03 Akim Demaille <akim@epita.fr>
221
222 * configure.in: Bump to 1.28b.
223
8f13fe33
AD
2242001-08-03 Akim Demaille <akim@epita.fr>
225
226 * src/complain.c: Adjust strerror_r portability issues.
227
b37ba92c
AD
2282001-08-03 Akim Demaille <akim@epita.fr>
229
230 Version 1.28a.
231
b0ce6046
AD
2322001-08-03 Akim Demaille <akim@epita.fr>
233
234 * src/getargs.c, src/getarg.h (skeleton)): Constify.
235 * src/lex.c (literalchar): Avoid name clashes on `buf'.
236 * src/getargs.c: Include complain.h.
237 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
238 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
239
d01c415b
AD
2402001-08-03 Akim Demaille <akim@epita.fr>
241
242 * src/reader.c (readgram): Display hidden chars in error messages.
243
459dd1a6
AD
2442001-08-03 Akim Demaille <akim@epita.fr>
245
246 Update to gettext 0.10.39.
247
53b74c0c
AD
2482001-08-03 Akim Demaille <akim@epita.fr>
249
250 * lib/strspn.c: New.
251
234a3be3
AD
2522001-08-01 Marc Autret <autret_m@epita.fr>
253
254 * doc/bison.texinfo: Update.
255 * doc/bison.1 (mandoc): Update.
256 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
257 * src/files.c: Support output files extensions computing.
258 (src_extension): New static variable.
259 (header_extension): New static variable.
260 (tr): New function.
261 (get_extension_index): New function, gets the index of an extension
262 filename in a string.
263 (compute_exts_from_gf): New function, computes extensions from the
264 grammar file extension.
265 (compute_exts_from_src): New functions, computes extensions from the
266 C source file extension, file given by ``-o'' option.
267 (compute_base_names): Update.
268 (output_files): Update.
269
847bf1f5
AD
2702001-08-01 Robert Anisko <anisko_r@epita.fr>
271
d995fee7 272 * doc/bison.texi: Document @$.
847bf1f5
AD
273 (Locations): New section.
274
d074a105
AD
2752001-07-18 Akim Demaille <akim@epita.fr>
276
277 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
278 * config/prev-version.txt, config/move-if-change: New.
279 * Makefile.am: Adjust.
280
3419715d
AD
2812001-07-08 Pascal Bart <pascal.bart@epita.fr>
282
283 * src/bison.simple (yyparse): Suppress warning `comparaison
284 between signed and unsigned'.
285
62ab6972
AD
2862001-07-05 Pascal Bart <pascal.bart@epita.fr>
287
288 * src/getargs.h (raw_flag): Remove.
289 * src/getargs.c: Die on `-r'/`--raw'.
290 * src/lex.c (parse_percent_token): Die on `%raw'.
291 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
292 * tests/calc.at: Suppress test with option `--raw'.
293
1e24cc5b
AD
2942001-07-14 Akim Demaille <akim@epita.fr>
295
296 * config/: New.
297 * configure.in: Require Autoconf 2.50.
298 Update to gettext 0.10.38.
299
32dfccf8
AD
3002001-03-16 Akim Demaille <akim@epita.fr>
301
302 * doc/bison.texinfo: ANSIfy the examples.
303
cd5bd6ac
AD
3042001-03-16 Akim Demaille <akim@epita.fr>
305
306 * getargs.c (skeleton): New variable.
307 (longopts): --skeleton is a new option.
308 (shortopts, getargs): -S is a new option.
309 * getargs.h: Declare skeleton.
310 * output.c (output_parser): Use it.
311
5141b016
AD
3122001-03-16 Akim Demaille <akim@epita.fr>
313
314 * m4/strerror_r.m4: New.
315 * m4/error.m4: Run AC_FUNC_STRERROR_R.
316 * lib/error.h, lib/error.c: Update.
317
447992b9
AD
3182001-03-16 Akim Demaille <akim@epita.fr>
319
320 * src/getargs.c (longopts): Clean up.
321
274d42ce
AD
3222001-02-21 Akim Demaille <akim@epita.fr>
323
324 * src/reader.c (gensym): `gensym_count' is your own.
325 Use a static buf to create the symbol name, as token_buffer is no
326 longer a buffer.
327
22c821f3
AD
3282001-02-08 Akim Demaille <akim@epita.fr>
329
330 * src/conflicts.c (conflict_report): Be sure not to append to res
331 between two calls, which could happen if both first sprintf were
332 skipped, but not the first cp += strlen.
333
18569462
AD
3342001-02-08 Akim Demaille <akim@epita.fr>
335
336 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
337 New, from fileutils 4.0.37.
338 * configure.in: Require Autoconf 2.49c. I took some time before
339 making this decision. This is the only way out for portability
340 issues in Bison, it would mean way too much duplicate effort to
341 import in Bison features implemented in 2.49c since 2.13.
342 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
343
0d8f3c8a
AD
3442001-02-02 Akim Demaille <akim@epita.fr>
345
346 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 347 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 348
f17bcd1f
AD
3492001-01-19 Akim Demaille <akim@epita.fr>
350
351 Get rid of the ad hoc handling of token_buffer in the scanner: use
352 the obstacks.
353
354 * src/lex.c (token_obstack): New.
355 (init_lex): Initialize it. No longer call...
356 (grow_token_buffer): this. Remove it.
357 Adjust all the places which used it to use the obstack.
358
511e79b3
AD
3592001-01-19 Akim Demaille <akim@epita.fr>
360
361 * src/lex.h: Rename all the tokens:
362 s/\bENDFILE\b/tok_eof/g;
363 s/\bIDENTIFIER\b/tok_identifier/g;
364 etc.
365 Let them be enums, not #define, to ease debugging.
366 Adjust all the code.
367
0d6508ef
AD
3682001-01-18 Akim Demaille <akim@epita.fr>
369
370 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
371 * src/lex.c (maxtoken, grow_token_buffer): Static.
372
6deb4447
AD
3732001-01-18 Akim Demaille <akim@epita.fr>
374
375 Since we now use obstacks, more % directives can be enabled.
376
377 * src/lex.c (percent_table): Also accept `%yacc',
378 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
379 `%debug'.
380 Handle the actions for `%semantic_parser' and `%pure_parser' here,
381 instead of returning a token.
382 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
383 * src/reader.c (read_declarations): Adjust.
384 * src/files.c (open_files): Don't call `compute_base_names', don't
385 compute `attrsfile' since they depend upon data which might be
386 *in* the input file now.
387 (output_files): Do it here.
388 * src/output.c (output_headers): Document the fact that this patch
389 introduces a guaranteed SEGV for semantic parsers.
390 * doc/bison.texinfo: Document them.
391 * tests/suite.at: Exercise these %options.
392
ff4423cc
AD
3932000-12-20 Akim Demaille <akim@epita.fr>
394
395 Also handle the output file (--verbose) with obstacks.
396
397 * files.c (foutput): Remove.
398 (output_obstack): New.
399 Adjust all dependencies.
400 * src/conflicts.c: Return a string.
401 * src/system.h (obstack_grow_string): Rename as...
402 (obstack_sgrow): this. Be ready to work with non literals.
403 (obstack_fgrow4): New.
404
956dba3a
AD
4052000-12-20 Akim Demaille <akim@epita.fr>
406
407 * src/files.c (open_files): Fix the computation of short_base_name
408 in the case of `-o foo.tab.c'.
409
337bab46
AD
4102000-12-20 Akim Demaille <akim@epita.fr>
411
412 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
413 (copy_dollar): Now that everything uses obstacks, get rid of the
414 FILE * parameters.
415
5d3214b8
AD
4162000-12-20 Akim Demaille <akim@epita.fr>
417
418 * src/files.c (open_files): Actually the `.output' file is based
419 on the short_base_name, not base_name.
420 * tests/suite.at (Checking output file names): Adjust.
421
29092a57
AD
4222000-12-20 Akim Demaille <akim@epita.fr>
423
424 * src/bison.s1: Remove, we now use directly...
425 * src/bison.simple: this.
426 * src/Makefile.am: Use pkgdata instead of data.
427
ea5607fd
AD
4282000-12-20 Akim Demaille <akim@epita.fr>
429
430 * src/files.c (guard_obstack): New.
431 (open_files): Initialize it.
432 (output_files): Dump it...
433 * src/files.h: Export it.
434 * src/reader.c (copy_guard): Use it.
435
27110317
AD
4362000-12-19 Akim Demaille <akim@epita.fr>
437
438 * src/files.c (outfile, defsfile, actfile): Removed as global
439 vars.
440 (open_files): Don't compute them.
441 (output_files): Adjust.
442 (base_name, short_base_name): Be global.
443 Adjust dependencies.
444
19c50364
AD
4452000-12-19 Akim Demaille <akim@epita.fr>
446
447 * src/files.c (strsuffix): New.
448 (stringappend): Be just like strcat but allocate.
449 (base_names): Eve out from open_files.
450 Try to simplify the rather hairy computation of base_name and
451 short_base_name.
452 (open_files): Use it.
453 * tests/suite.at (Checking output file names): New test.
454
573c1d9f
AD
4552000-12-19 Akim Demaille <akim@epita.fr>
456
457 * src/system.h (obstack_grow_literal_string): Rename as...
458 (obstack_grow_string): this.
459 * src/output.c (output_parser): Recognize `%% actions' instead of
460 `$'.
461 * src/bison.s1: s/$/%% actions/.
462 * src/bison.hairy: Likewise.
463
ef7ddedd
AD
4642000-12-19 Akim Demaille <akim@epita.fr>
465
466 * src/output.c (output_parser): Compute the `#line' lines when
467 there are.
468 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
469 Suggested by Hans Aberg.
470
ff61dabd
AD
4712000-12-19 Akim Demaille <akim@epita.fr>
472
473 Let the handling of the skeleton files be local to the procedures
474 that use it.
475
476 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
477 longer static.
478 (fparser, open_extra_files): Remove.
479 (open_files, output_files): Don't take care of fparser.
480 * src/files.h: Adjust.
481 * src/output.c (output_parser): Open and close the file to the
482 skeleton.
483 * src/reader.c (read_declarations): When %semantic_parser, open
484 fguard.
485
55b96341
AD
4862000-12-19 Akim Demaille <akim@epita.fr>
487
488 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
489 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
490
358c15b7
AD
4912000-12-19 Akim Demaille <akim@epita.fr>
492
493 * src/files.c (open_files): Yipee! We no longer need all the code
494 looking for `/tmp' since we have no tmp file.
495
7de3329e
AD
4962000-12-19 Akim Demaille <akim@epita.fr>
497
498 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
499 New macros.
500 * src/files.c (open_files): Less dependency on MSDOS etc.
501
3abcd459
AD
5022000-12-14 Akim Demaille <akim@epita.fr>
503
504 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
505 Provide a default definition.
506 Use it when executing the default @ action.
507 * src/reader.c (reader_output_yylsp): No longer include
508 `timestamp' and `text' in the default YYLTYPE.
509
2a91a95e
AD
5102000-12-12 Akim Demaille <akim@epita.fr>
511
512 * src/reader.c (copy_definition, parse_union_decl, copy_action)
513 (copy_guard): Quote the file names.
514 Reported by Laurent Mascherpa.
515
14d3eb9b
AD
5162000-12-12 Akim Demaille <akim@epita.fr>
517
518 * src/output.c (output_headers, output_program, output): Be sure
519 to escape special characters when outputting filenames.
520 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
521 (output_headers): Don't depend on them, Use ACTSTR.
522
d7045ec6
AD
5232000-11-17 Akim Demaille <akim@epita.fr>
524
525 * lib/obstack.h: Formatting changes.
526 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
527 prevents type checking.
528 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
529 cast the value to (void *): assigning a `foo *' to a `void *'
530 variable is valid.
531 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
532 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
533 append characters.
534
6fd54b73
AD
5352000-11-17 Akim Demaille <akim@epita.fr>
536
537 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
538 as...
539 (suite.m4, regression.m4, calc.m4): these.
540 * tests/atgeneral.m4: Update from CVS Autoconf.
541
4c50eae6
AD
5422000-11-17 Akim Demaille <akim@epita.fr>
543
544 * tests/regression.m4 (%union and --defines): New test,
545 demonstrating a current bug in the obstack implementation.
546
a35f64ea
AD
5472000-11-17 Akim Demaille <akim@epita.fr>
548
549 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
550 macros.
551 Use them to declare the variables which are global or local to
552 `yyparse'.
553
7de23534
AD
5542000-11-17 Akim Demaille <akim@epita.fr>
555
556 * acconfig.h: Remove, no longer used.
557
aa7815f5
AD
5582000-11-07 Akim Demaille <akim@epita.fr>
559
560 * src: s/Copyright (C)/Copyright/g.
561
5af1f549
AD
5622000-11-07 Akim Demaille <akim@epita.fr>
563
564 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
565 defining.
566 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
567
553e2b22
AD
5682000-11-07 Akim Demaille <akim@epita.fr>
569
570 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
571 Merge in a single CPP if/else.
572
8a4f41d6
AD
5732000-11-07 Akim Demaille <akim@epita.fr>
574
575 * src/output.c (output): Remove useless variables.
576 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
577 argument `data' for consistency with the prototypes.
578 Qualify it `const'.
579 (obstack_copy, obstack_copy0): Rename the second argument as
580 `address' for consistency. Qualify it `const'.
581 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
582 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
583 `const' their input argument (`data' or `address').
584 Adjust the corresponding macros to include `const' in casts.
585
095a3fb5
AD
5862000-11-03 Akim Demaille <akim@epita.fr>
587
588 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
589 s/PFILE1/BISON_HAIRY/.
590 Adjust dependencies.
591
d1cdce7c
AD
5922000-11-03 Akim Demaille <akim@epita.fr>
593
090c5ebf 594 For some reason, this was not applied.
d1cdce7c
AD
595
596 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
597 `unlink': it's no longer used.
598
9311529b
AD
5992000-11-03 Akim Demaille <akim@epita.fr>
600
601 * src/files.c (skeleton_find): New function, eved out of...
602 (open_files, open_extra_files): here.
603
d8880f69
AD
6042000-11-03 Akim Demaille <akim@epita.fr>
605
606 Don't use `atexit'.
607
608 * src/files.c (obstack_save): New function.
609 (done): Rename as...
610 (output_files): this.
611 Use `obstack_save'.
612 * src/main.c (main): Don't use `atexit' to register `done', since
613 it no longer has to remove tmp files, just call `output_files'
614 when there are no errors.
615
0dbb648e
AD
6162000-11-02 Akim Demaille <akim@epita.fr>
617
618 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
619 `unlink': it's no longer used.
620 * src/files.h: Formatting changes.
621
896fe5c1
AD
6222000-11-02 Akim Demaille <akim@epita.fr>
623
624 Remove the last uses of mktemp and unlink/delete.
625
626 * src/files.c (fdefines, ftable): Removed.
627 (defines_ostack, table_obstack): New.
628 Adjust dependencies of the former into uses of the latter.
629 * src/output.c (output_short_or_char_table, output_short_table):
630 Convert to using obstacks.
631 * src/reader.c (copy_comment2): Accept one FILE * and two
632 obstacks.
633 (output_token_defines, reader_output_yylsp): Use obstacks.
634 * src/system.h (obstack_fgrow3): New.
635
dd60faec
AD
6362000-11-01 Akim Demaille <akim@epita.fr>
637
638 Change each use of `fattrs' into a use of `attrs_obstack'.
639
640 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
641 * src/files.c (fattrs): Remove.
642 (attrs_obstack): New.
643 Adjust all dependencies.
644 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
645
8c7ebe49
AD
6462000-11-01 Akim Demaille <akim@epita.fr>
647
648 Introduce obstacks.
649 Change each use of `faction' into a use of `action_obstack'.
650
651 * lib/obstack.h, lib/obstack.c: New files.
652 * src/files.c (faction): Remove.
653 (action_obstack): New.
654 Adjust all dependencies.
655
77aee789
AD
6562000-10-20 Akim Demaille <akim@epita.fr>
657
658 * lib/quote.h (PARAMS): New macro. Use it.
659
43591cec
AD
6602000-10-16 Akim Demaille <akim@epita.fr>
661
662 * src/output.c (output_short_or_char_table): New function.
663 (output_short_table, output_token_translations): Use it.
664 (goto_actions): Use output_short_table.
665
1e9798d5
AD
6662000-10-16 Akim Demaille <akim@epita.fr>
667
668 * src/symtab.c (bucket_new): New function.
669 (getsym): Use it.
670
671 * src/output.c (output_short_table): New argument to display the
672 comment associated with the table.
673 Adjust dependencies.
674 (output_gram): Use it.
675 (output_rule_data): Nicer output layout for YYTNAME.
676
f282676b
AD
6772000-10-16 Akim Demaille <akim@epita.fr>
678
679 * src/lex.c (read_typename): New function.
680 (lex): Use it.
681 * src/reader.c (copy_dollar): Likewise.
682
550a72a3
AD
6832000-10-16 Akim Demaille <akim@epita.fr>
684
685 * src/reader.c (copy_comment2): Expect the input stream to be on
686 the `/' which is suspected to open a comment, instead of being
687 called after `//' or `/*' was read.
688 (copy_comment, copy_definition, parse_union_decl, copy_action)
689 (copy_guard): Adjust.
690
131e2fef
AD
6912000-10-16 Akim Demaille <akim@epita.fr>
692
693 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
694 `read_signed_integer'.
695
79282c5a
AD
6962000-10-16 Akim Demaille <akim@epita.fr>
697
698 * src/reader.c (copy_dollar): New function.
699 (copy_guard, copy_action): Use it.
700
ff4a34be
AD
7012000-10-16 Akim Demaille <akim@epita.fr>
702
703 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
704 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
705 New files, from Fileutils 4.0.27.
706 * src/main.c (printable_version): Remove.
707 * src/lex.c, src/reader.c: Use `quote'.
708
7092000-10-04 Akim Demaille <akim@epita.fr>
710
711 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
712
14ded682
AD
7132000-10-04 Akim Demaille <akim@epita.fr>
714
715 * doc/bison.texinfo: Various typos spotted by Neil Booth.
716
8e03724b
AD
7172000-10-04 Akim Demaille <akim@epita.fr>
718
719 When a literal string is used to define two different tokens,
720 `bison -v' segfaults.
721 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
722
723 * tests/regression.m4: New file.
724 Include the core of the sample provided by Piotr Gackiewicz.
725 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
726 properly.
727
a9e64249
AD
7282000-10-04 Akim Demaille <akim@epita.fr>
729
730 * src/reader.c (parse_expect_decl): Keep `count' within the size
731 of `buffer'.
732 From Neil Booth.
733
da9abf43
AD
7342000-10-02 Paul Eggert <eggert@twinsun.com>
735
736 * bison.s1 (yyparse): Assign the default value
737 unconditionally, to avoid a GCC warning and make the parser a
738 tad smaller.
739
c33638bb
AD
7402000-10-02 Akim Demaille <akim@epita.fr>
741
742 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
743 options.
744
444c570a
AD
7452000-10-02 Akim Demaille <akim@epita.fr>
746
747 * src/derives.c, src/print.c, src/reduce.c: To ease the
748 translation, move some `\n' out of the translated strings.
749
89cab50d
AD
7502000-10-02 Akim Demaille <akim@epita.fr>
751
752 The location tracking mechanism is precious for parse error
753 messages. Nevertheless, it is enabled only when `@n' is used in
754 the grammar, which is a different issue (you can use it in error
755 message, but not in the grammar per se). Therefore, there should
756 be another means to enable it.
757
758 * src/getargs.c (getargs): Support `--locations'.
759 (usage): Report it.
760 * src/getargs.h (locationsflag): Export it.
761 * src/lex.c (percent_table): Support `%locations'.
762 * src/reader.c (yylsp_needed): Remove this variable, now replaced
763 with `locationsflag'.
764 * doc/bison.texinfo: Document `--locations' and `%locations'.
765 Sort the options.
766 * tests/calc.m4: Test it.
767
768 For regularity of the names, replace each
769 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
770 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
771 In addition replace each `flag' with `_flag'.
772
d6c2cba0
AD
7732000-10-02 Akim Demaille <akim@epita.fr>
774
775 Also test parse error messages, including with YYERROR_VERBOSE.
776
777 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
778 associative).
779 Use it to check the computations.
780 Use it to check `nonassoc' is honored.
781 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
782 `--yyerror-verbose'.
783 (_AT_CHECK_CALC): Adjust to this option.
784 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
785
5a35a6cb
AD
7862000-10-02 Akim Demaille <akim@epita.fr>
787
788 Test also `--verbose', `--defines' and `--name-prefix'. Testing
789 the latter demonstrates a flaw in the handling of non debugging
790 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
791 was used in order to simplify:
792
793 #if YYDEBUG
794 if (yydebug)
795 {
796 ...
797 }
798 #endif
799
800 into
801
802 if (yydebug)
803 {
804 ...
805 }
806
807 unfortunately this leads to a CPP conflict when
808 `--name-prefix=foo' is used since it produces `#define yydebug
809 foodebug'.
810
811 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
812 (YYDPRINTF): New macro.
813 Spread its use.
814 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
815 the bison options.
816 Also test `--verbose', `--defines' and `--name-prefix'.
817
71da9eea
AD
8182000-10-02 Akim Demaille <akim@epita.fr>
819
820 Improve the readability of the produced parsers.
821
822 * src/bison.s1: Formatting changes.
823 Improve the comment related to the `$' mark.
824 (yydefault): Don't fall through to `yyresume': `goto' there.
825 * src/output.c (output_parser): When the `$' is met, skip the end
826 of its line.
827 New variable, `number_of_dollar_signs', to check there's exactly
828 one `$' in the parser skeleton.
829
95e36146
AD
8302000-10-02 Akim Demaille <akim@epita.fr>
831
832 * lib/xstrdup.c: New file, from the fileutils.
833 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
834 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
835 instead of strlen + xmalloc + strcpy.
836 * src/symtab.c (copys): Remove, use xstrdup instead.
837
d7020c20
AD
8382000-10-02 Akim Demaille <akim@epita.fr>
839
840 * src/gram.h (associativity): New enum type which replaces the
841 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
842 `right_assoc', `left_assoc' and `non_assoc'.
843 Adjust all dependencies.
844 * src/reader.c: Formatting changes.
845 (LTYPESTR): Don't define it, use it as a literal in
846 `reader_output_yylsp'.
847 * src/symtab.h (symbol_class): New enum type which replaces the
848 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
849 `sunknown', `stoken and `snterm'.
850
1916f98e
AD
8512000-10-02 Akim Demaille <akim@epita.fr>
852
853 * src/getargs.c (fixed_outfiles): Rename as...
854 (yaccflag): for consistency and accuracy.
855 Adjust dependencies.
856
d7913476
AD
8572000-10-02 Akim Demaille <akim@epita.fr>
858
859 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
860 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
861 difficult and introduced a lot of core dump. It turns out that
862 Bison used an implementation of `xmalloc' based on `calloc', and
863 at various places it does depend upon the initialization to 0. I
864 have not tried to isolate the pertinent places, and all the former
865 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
866 someone should address this issue.
867
868 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
869 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
870 files.
871 Adjust dependencies.
872 * src/warshall.h: New file.
873 Propagate.
874
340ef489
AD
8752000-10-02 Akim Demaille <akim@epita.fr>
876
877 Various anti-`extern in *.c' changes.
878
879 * src/system.h: Include `assert.h'.
880
b2ca4022
AD
8812000-10-02 Akim Demaille <akim@epita.fr>
882
883 * src/state.h (nstates, final_state, first_state, first_shift)
884 (first_reduction): Move their exportation from here...
885 * src/LR0.h: to here.
886 Adjust dependencies.
887 * src/getargs.c (statisticsflag): New variable.
888 Add support for `--statistics'.
889 Adjust dependencies.
890
891 Remove a lot of now useless `extern' statements in most files.
892
403b315b
AD
8932000-10-02 Akim Demaille <akim@epita.fr>
894
895 * src/LR0.h: New file.
896 Propagate its use.
897
07a58c13
AD
8982000-10-02 Akim Demaille <akim@epita.fr>
899
900 * src/print.h: New file.
901 Propagate its use.
902 * src/print.c: Formatting and ordering changes.
903 (verbose, terse): Replace with...
904 (print_results): this new function.
905 Adjust dependencies.
906
0619caf0
AD
9072000-10-02 Akim Demaille <akim@epita.fr>
908
909 * src/conflicts.c (conflict_report): New function.
910 (conflict_log, verbose_conflict_log): Replace with...
911 (print_conflicts): this function.
912 Adjust dependencies.
913 * src/conflicts.h: New file.
914 Propagate its inclusion.
915
3519ec76
AD
9162000-10-02 Akim Demaille <akim@epita.fr>
917
918 * src/nullable.h: New file.
919 Propagate its inclusion.
920 * src/nullable.c: Formatting changes.
921
015acc48
AD
9222000-10-02 Akim Demaille <akim@epita.fr>
923
924 * src/reduce.h: New file.
925 Propagate its inclusion.
926 * src/reduce.c: Topological sort and other formatting changes.
927 (bool, TRUE, FALSE): Move their definition to...
928 * src/system.h: here.
929
8963a27b
AD
9302000-10-02 Akim Demaille <akim@epita.fr>
931
932 * src/files.c: Formatting changes.
933 (tryopen, tryclose, openfiles): Rename as...
934 (xfopen, xfclose, open_files): this.
935 (stringappend): static.
936 * src/files.h: Complete the list of exported symbols.
937 Propagate its use.
938
a70083a3
AD
9392000-10-02 Akim Demaille <akim@epita.fr>
940
941 * src/reader.h: New file.
942 Propagate its use instead of tedious list of `extern' and
943 prototypes.
944 * src/reader.c: Formatting changes, topological sort,
945 s/register//.
946
abadc117
AD
9472000-10-02 Akim Demaille <akim@epita.fr>
948
949 * src/lex.h: Prototype `lex.c' exported functions.
950 * src/reader.c: Adjust.
951 * src/lex.c: Formatting changes.
952 (safegetc): Rename as...
953 (xgetc): this.
954
720d742f
AD
9552000-10-02 Akim Demaille <akim@epita.fr>
956
957 * src/lalr.h: New file.
958 Propagate its inclusion instead of prototypes and `extern'.
959 * src/lalr.c: Formatting changes, topological sorting etc.
960
f2acea59
AD
9612000-10-02 Akim Demaille <akim@epita.fr>
962
963 * src/output.c (token_actions): Introduce a temporary array,
964 YYDEFACT, that makes it possible for this function to use
965 output_short_table.
966
d019d655
AD
9672000-10-02 Akim Demaille <akim@epita.fr>
968
969 `user_toknums' is output as a `short[]' in `output.c', while it is
970 defined as a `int[]' in `reader.c'. For consistency with the
971 other output tables, `user_toknums' is now defined as a table of
972 shorts.
973
974 * src/reader.c (user_toknums): Be a short table instead of an int
975 table.
976 Adjust dependencies.
977
978 Factor the short table outputs.
979
980 * src/output.c (output_short_table): New function.
981 * src/output.c (output_gram, output_stos, output_rule_data)
982 (output_base, output_table, output_check): Use it.
983
6c89f1c1
AD
9842000-10-02 Akim Demaille <akim@epita.fr>
985
986 * src/output.c (output): Topological sort of the functions, in
987 order to get rid of the `static' prototypes.
988 No longer use `register'.
989 * src/output.h: New file.
990 Propagate its inclusion in files explicitly prototyping functions
991 from output.c.
992
d9efd181
AD
9932000-09-21 Akim Demaille <akim@epita.fr>
994
995 * src/atgeneral.m4: Update from Autoconf.
996
c29240e7 9972000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
998
999 * src/closure.h: New file.
1000 * src/closure.c: Formatting changes, topological sort over the
1001 functions, use of closure.h.
1002 (initialize_closure, finalize_closure): Rename as...
1003 (new_closure, free_closure): these. Adjust dependencies.
1004 * src/LR0.c: Formatting changes, topological sort, use of
1005 cloture.h.
1006 (initialize_states): Rename as...
1007 (new_states): this.
1008 * src/Makefile.am (noinst_HEADERS): Adjust.
1009
499daa50
AD
10102000-09-20 Akim Demaille <akim@epita.fr>
1011
1012 * src/acconfig.h: Don't protect config.h against multiple
1013 inclusion.
1014 Don't define PARAMS.
1015 * src/system.h: Define PARAMS.
1016 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1017 purpose of config.h. system.h must not try to fix wrong
1018 definitions in config.h.
1019
cc84fd5d
AD
10202000-09-20 Akim Demaille <akim@epita.fr>
1021
1022 * src/derives.h: New file.
1023 * src/main.c, src/derives.h: Use it.
1024 Formatting changes.
1025 * src/Makefile.am (noinst_HEADERS): Adjust.
1026
db5b3a89
AD
10272000-09-20 Akim Demaille <akim@epita.fr>
1028
1029 * tests/atgeneral.m4: Update from Autoconf.
1030 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1031 (AT_CHECK_CALC): New macros.
1032 Use these macros to test bison with options `', `--raw',
1033 `--debug', `--yacc', `--yacc --debug'.
1034
ceed8467
AD
10352000-09-19 Akim Demaille <akim@epita.fr>
1036
1037 * src/output.c: Formatting changes.
1038 * src/machine.h: Remove, leaving its contents in...
1039 * src/system.h: here.
1040 Include stdio.h.
1041 Adjust all dependencies on stdio.h and machine.h.
1042 * src/getargs.h: New file.
1043 Let all `extern' declarations about getargs.c be replaced with
1044 inclusion of `getargs.h'.
1045 * src/Makefile.am (noinst_HEADERS): Adjust.
1046
1047 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1048 scope.
1049 (yyerror): Returns void, not int.
1050 * doc/bison.texinfo: Formatting changes.
1051
05a1d24b
AD
10522000-09-19 Akim Demaille <akim@epita.fr>
1053
1054 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1055 portable.
1056
cbd25751
AD
10572000-09-18 Akim Demaille <akim@epita.fr>
1058
1059 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1060 * src/Makefile.am (INCLUDES): Don't.
1061 Be ready to fetch headers in lib/.
1062
13863333
AD
10632000-09-18 Akim Demaille <akim@epita.fr>
1064
1065 * doc/bison.texinfo: Update the copyright.
1066 ANSIfy and GNUify the examples.
1067 Remove the old menu.
1068
0d533154
AD
10692000-09-18 Akim Demaille <akim@epita.fr>
1070
1071 First set of tests: use the `calc' example from the documentation.
1072
1073 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1074 is defined only when YYDEBUG is.
1075 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1076 * src/files.c (tryopen, tryclose): Formatting changes.
1077 Move to the top and be static.
1078 * src/reader.c (read_signed_integer): Likewise.
1079 * tests/calc.m4: New file.
1080 * Makefile.am, suite.m4: Adjust.
1081 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1082
e79137ac
AD
10832000-09-18 Akim Demaille <akim@epita.fr>
1084
1085 Add support for an Autotest test suite for Bison.
1086
1087 * m4/m4.m4, m4/atconfig.m4: New files.
1088 * m4/Makefile.am (EXTRA_DIST): Adjust.
1089 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1090 files.
1091 * src/getargs.c: Display a more standard --version message.
1092 * src/reader.c (reader): Formatting changes.
1093 No longer depend upon VERSION_STRING.
1094 * configure.in: No longer use `dnl'.
1095 Set up the test suite and the new directory `tests/.
1096 (VERSION_STRING): Remove.
1097
27821bff
AD
10982000-04-14 Akim Demaille <akim@epita.fr>
1099
1100 * src/reader.c (copy_comment2): New function, same as former
1101 `copy_comment', but outputs into two FILE *.
1102 (copy_comment): Use it.
1103 (parse_union_decl): Use it.
1104 (get_type, parse_start_decl): Use the same `invalid' message.
1105 (parse_start_decl, parse_union_decl): Use the same `multiple'
1106 message.
1107 (parse_union_decl, copy_guard, copy_action): Use the same
1108 `unmatched' message.
1109 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1110
cfe5fbc0
AD
11112000-03-31 Akim Demaille <akim@epita.fr>
1112
1113 * src/files.c (tryopen, tryclose): Move to the top.
1114 Be static.
1115
cb7db13e
AD
11162000-03-31 Akim Demaille <akim@epita.fr>
1117
1118 * src/main.c (main): Don't call `done', exit does it.
1119
a0f6b076
AD
11202000-03-31 Akim Demaille <akim@epita.fr>
1121
36281465
AD
1122 * allocate.c: s/return (foo)/return foo/.
1123 * lalr.c: Likewise.
1124 * LR0.c: Likewise.
1125 * output.c: Likewise.
1126 * reader.c: Likewise.
1127 * symtab.c: Likewise.
1128 * vmsgetargs.c: Likewise.
1129
11302000-03-31 Akim Demaille <akim@epita.fr>
1131
1132 Clean up the error reporting functions.
a0f6b076
AD
1133
1134 * src/report.c: New file.
1135 * src/report.h: Likewise.
1136 * src/Makefile.am: Adjust.
1137 * m4/error.m4: New file.
1138 * m4/Makefile.am: Adjust.
1139 * configure.in (jm_PREREQ_ERROR): Call it.
1140 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1141 Remove.
1142 (fatal, fatals): Remove. All callers use complain.c::fatal.
1143 (warn, warni, warns, warnss, warnss): Remove. All callers use
1144 complain.c::complain.
1145 (toomany): Remove, use fatal instead.
1146 * src/files.c (done): No argument, use complain_message_count.
1147 * src/main.c (main): Register `done' to `atexit'.
1148
1149 * src/getargs.c (usage): More `fputs', less `fprintf'.
1150
18539825
AD
11512000-03-28 Akim Demaille <akim@epita.fr>
1152
1153 * lib/: New directory.
1154 * Makefile.am (SUBDIRS): Adjust.
1155 * configure.in: Adjust.
1156 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1157 useless.
1158 * src/alloca.c: Moved to lib/.
1159 * src/getopt.c: Likewise.
1160 * src/getopt1.c: Likewise.
1161 * src/getopt.h: Likewise.
1162 * src/ansi2knr.c: Likewise.
1163 * src/ansi2knr.1: Likewise.
1164 * src/Makefile.am: Adjust.
1165 * lib/Makefile.am: New file.
1166
9f306f2a
AD
11672000-03-28 Akim Demaille <akim@epita.fr>
1168
1169 * src/getargs.c (usage): Refresh the help message.
1170
0ba347b6
AD
11712000-03-17 Akim Demaille <akim@epita.fr>
1172
1173 * src/getopt1.c: Updated from textutils 2.0e
1174 * src/getopt.c: Likewise.
1175 * src/getopt.h: Likewise.
1176
dbe7f271
AD
11772000-03-17 Akim Demaille <akim@epita.fr>
1178
1179 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1180 the file name, not the whole `#line LINE FILE'.
1181
75bbe78d
AD
11822000-03-17 Akim Demaille <akim@epita.fr>
1183
1184 On syntax errors, report the token on which we choked.
1185
aa5fd0ee
AD
1186 * src/bison.s1 (yyparse): In the label yyerrlab, when
1187 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1188
7b306f52
AD
11892000-03-17 Akim Demaille <akim@epita.fr>
1190
aa5fd0ee 1191 * src/reader.c (copy_at): New function.
7b306f52
AD
1192 (copy_guard): Use it.
1193 (copy_action): Use it.
1194
e87b5700
AD
11952000-03-17 Akim Demaille <akim@epita.fr>
1196
1197 Be kind to translators, save some useless translations.
1198
aa5fd0ee 1199 * src/main.c (banner): New function.
e87b5700
AD
1200 (fatal_banner): Use it.
1201 (warn_banner): Use it.
1202
ae3c3164
AD
12032000-03-17 Akim Demaille <akim@epita.fr>
1204
aa5fd0ee
AD
1205 * src/reader.c (copy_definition): Use copy_string and
1206 copy_comment. Removed now unused `match', `ended',
1207 `cplus_comment'.
ae3c3164
AD
1208 (copy_comment, copy_string): Moved, to be visible from
1209 copy_definition.
1210
4dc58e7c
AD
12112000-03-17 Akim Demaille <akim@epita.fr>
1212
aa5fd0ee
AD
1213 * src/reader.c (copy_string): Declare `static inline'. No
1214 problems with inline, since it is checked by configure.
4dc58e7c
AD
1215 (copy_comment): Likewise.
1216
0a6384c4
AD
12172000-03-17 Akim Demaille <akim@epita.fr>
1218
aa5fd0ee 1219 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1220
3cef001a
AD
12212000-03-17 Akim Demaille <akim@epita.fr>
1222
aa5fd0ee 1223 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1224 (copy_action): Use it. Removed now unused `match', `ended',
1225 `cplus_comment'.
1226 (copy_guard): Likewise.
1227
ca36d2ef
AD
12282000-03-17 Akim Demaille <akim@epita.fr>
1229
aa5fd0ee 1230 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1231 (copy_action): Use it.
1232 (copy_guard): Likewise.
1233
6666f98f
AD
12342000-03-17 Akim Demaille <akim@epita.fr>
1235
1236 Change the handling of @s so that they behave exactly like $s.
1237 There is now a pseudo variable @$ (readble and writable), location
1238 of the lhs of the rule (by default ranging from the location of
1239 the first symbol of the rhs, to the location of the last symbol,
1240 or, if the rhs is empty, YYLLOC).
1241
1242 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1243 yyval.
1244 (yyparse): When providing a default semantic action, provide a
1245 default location action.
1246 (after the $): No longer change `*YYLSP', just stack YYLOC the
1247 same way you stack YYVAL.
1248 * src/reader.c (read_declarations): Use warns.
1249 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1250 (copy_action, case '@'): Likewise.
1251 Use a standard error message, to save useless work from
1252 translators.
1253
41aca2e0
AD
12542000-03-17 Akim Demaille <akim@epita.fr>
1255
aa5fd0ee
AD
1256 * src/bison.s1: Formatting and cosmetics changes.
1257 * src/reader.c: Likewise.
41aca2e0
AD
1258 Update the Copyright notice.
1259
dc08c1d5
AD
12602000-03-17 Akim Demaille <akim@epita.fr>
1261
aa5fd0ee
AD
1262 * src/bison.s1 (#line): All set to `#line' only, since the
1263 Makefile now handles them.
dc08c1d5 1264
9ee3c97b
AD
12652000-03-16 Akim Demaille <akim@epita.fr>
1266
1267 * src/output.c (output_rule_data): Output the documentation of
1268 some of the tables.
1269 (Copyright notice): Update.
1270 Formatting changes.
1271
0de741ca
AD
12722000-03-16 Akim Demaille <akim@epita.fr>
1273
1274 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1275 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1276 One `#if YYDEBUG' remains, since it uses variables which are
1277 defined only if `YYDEBUG != 0'.
1278
bb10be54
AD
12792000-03-16 Akim Demaille <akim@epita.fr>
1280
1281 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1282 and related variables so that the similarities are highlighted.
1283
b07b484a
AD
12842000-03-16 Akim Demaille <akim@epita.fr>
1285
1286 * src/bison.s1: Properly indent CPP directives.
1287
361f60b3
AD
12882000-03-16 Akim Demaille <akim@epita.fr>
1289
1290 * src/bison.s1: Properly indent the `alloca' CPP section.
1291
8c44d3ec
AD
12922000-03-16 Akim Demaille <akim@epita.fr>
1293
1294 Do not hard code values of directories in `configure.in'.
1295 Update the `configure' tool chain.
1296
1297 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1298 src/makefile.am.
1299 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1300 (AC_OUTPUT): Add m4/Makefile.
1301 Bump to bison 1.28a, 1.29 has never been released.
1302 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1303 handled via src/Makefile.am.
1304 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1305 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1306 autoheader.
1307 * Makefile.am (SUBDIRS): Add m4.
1308 (ACLOCAL_AM_FLAGS): New variable.
1309 (AUTOMAKE_OPTIONS): Add check-news.
1310 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1311 the proper line number and file name.
1312 (DEFS): Propagate the location of bison library files and of the
1313 locale files.
1314 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1315 builddir.
1316 * acinclude.m4: Remove, replaced by the directory m4.
1317 * m4/Makefile.am (EXTRA_DIST): New variable.
1318 * m4/gettext.m4: New file, from the fileutils.
1319 * m4/lcmessage.m4: Likewise
1320 * m4/progtest.m4: Likewise.
1321 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1322
f95997e7
AD
13232000-03-10 Akim Demaille <akim@epita.fr>
1324
1325 * src/closure.c:
1326 Formatting changes of various comments.
1327 Respect the GNU coding standards at various places.
1328 Don't use `_()' when no translation is needed.
1329
13301999-12-13 Jesse Thilo <jthilo@gnu.org>
1331
1332 * src/files.c:
1333 OS/2 honors TMPDIR environment variable.
1334
13351999-12-13 Jesse Thilo <jthilo@gnu.org>
1336
1337 * doc/bison.texinfo: Tweaked spelling and grammar.
1338 Updated ISBN.
1339 Removed reference to price of printed copy.
1340 Mention BISON_SIMPLE and BISON_HAIRY.
1341
13421999-12-13 Jesse Thilo <jthilo@gnu.org>
1343
1344 * configure.in, NEWS:
1345 Bison 1.29 released.
1346
13471999-10-27 Jesse Thilo <jthilo@gnu.org>
1348
1349 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1350 Added reference card.
1351
13521999-07-26 Jesse Thilo <jthilo@gnu.org>
1353
1354 * po/ru.po: Added Russian translation.
1355
13561999-07-26 Jesse Thilo <jthilo@gnu.org>
1357
1358 * configure.in: Added Russian translation.
1359
13601999-07-06 Jesse Thilo <jthilo@gnu.org>
1361
1362 * configure.in, NEWS, README:
1363 Released version 1.28.
1364
13651999-06-14 Jesse Thilo <jthilo@gnu.org>
1366
1367 * src/system.h:
1368 Squashed redefinition warning on some systems.
1369
1370 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1371 Have configure build version string instead of relying on ANSI string
1372 concatentation.
1373
13741999-06-14 Jesse Thilo <jthilo@gnu.org>
1375
1376 * po/POTFILES.in: Got rid of version.c.
1377
13781999-06-14 Jesse Thilo <jthilo@gnu.org>
1379
1380 * acconfig.h, configure.in:
1381 Have configure build version string instead of relying on ANSI string
1382 concatentation.
1383
13841999-06-08 Jesse Thilo <jthilo@gnu.org>
1385
1386 * doc/bison.1:
1387 Dropped mention of `+' for long-named options.
1388
13891999-05-30 Jesse Thilo <jthilo@gnu.org>
1390
1391 * src/files.c: Added <unistd.h> for unlink().
1392
1393 * src/Makefile.am, src/system.h:
1394 I18n fixes.
1395
13961999-05-30 Jesse Thilo <jthilo@gnu.org>
1397
1398 * README: Added a FAQ list.
1399
1400 * configure.in, acconfig.h:
1401 I18n fixes.
1402
14031999-05-30 Jesse Thilo <jthilo@gnu.org>
1404
1405 * doc/FAQ, doc/Makefile.am:
1406 Added a FAQ list.
1407
14081999-05-19 Jesse Thilo <jthilo@gnu.org>
1409
1410 * src/alloc.h, src/symtab.h, src/version.c:
1411 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1412
14131999-04-18 Jesse Thilo <jthilo@gnu.org>
1414
1415 * src/.cvsignore, src/Makefile.am:
1416 Reorganized: sources in `src', documentation in `doc'.
1417
1418 * src/lex.c (literalchar):
1419 fixed the code for escaping double quotes (thanks
1420 Jonathan Czisny.)
1421
14221999-04-18 Jesse Thilo <jthilo@gnu.org>
1423
1424 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1425 Adjusted paths to reflect directory reorganization.
1426
14271999-04-18 Jesse Thilo <jthilo@gnu.org>
1428
1429 * doc/.cvsignore, doc/Makefile.am:
1430 Reorganized: sources in `src', documentation in `doc'.
1431
14321999-04-18 Jesse Thilo <jthilo@gnu.org>
1433
1434 * configure.in:
1435 Updated AC_INIT file to reflect directory reorganization.
1436
1437 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1438 Reorganized: sources in `src', documentation in `doc'.
1439
14401999-04-13 Jesse Thilo <jthilo@gnu.org>
1441
1442 * src/allocate.c:
1443 Don't declare calloc() and realloc() if not necessary.
1444
14451999-04-13 Jesse Thilo <jthilo@gnu.org>
1446
1447 * configure.in, acconfig.h, acinclude.m4:
1448 Don't declare calloc() and realloc() if not necessary.
1449
14501999-03-23 Jesse Thilo <jthilo@gnu.org>
1451
1452 * po/.cvsignore: Added i18n support.
1453
14541999-03-23 Jesse Thilo <jthilo@gnu.org>
1455
1456 * acconfig.h, configure.in, Makefile.am:
1457 Added i18n support.
1458
14591999-03-22 Jesse Thilo <jthilo@gnu.org>
1460
1461 * src/bison.s1: Fixed #line numbers.
1462
14631999-03-15 Jesse Thilo <jthilo@gnu.org>
1464
1465 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1466 Added PO files from Translation Project.
1467
14681999-03-03 Jesse Thilo <jthilo@gnu.org>
1469
1470 * Makefile.am:
1471 Added support for non-ANSI compilers (ansi2knr).
1472
14731999-02-16 Jesse Thilo <jthilo@gnu.org>
1474
1475 * configure.in: Bumped version number to 1.27.
1476
1477 * Makefile.am:
1478 Added `bison.simple' to list of files removed by `make distclean'.
1479
14801999-02-12 Jesse Thilo <jthilo@gnu.org>
1481
1482 * src/files.c, src/files.h:
1483 Defined locations of parser files in config.h instead of Makefile.
1484
14851999-02-12 Jesse Thilo <jthilo@gnu.org>
1486
1487 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1488 Defined locations of parser files in config.h instead of Makefile.
1489
14901999-02-09 Jesse Thilo <jthilo@gnu.org>
1491
1492 * Makefile.am:
1493 Removed inappropriate use of $< macro.
1494
14951999-02-05 Jesse Thilo <jthilo@gnu.org>
1496
1497 * po/Makefile.in.in, po/POTFILES.in:
1498 Add `po' directory skeleton.
1499
15001999-01-27 Jesse Thilo <jthilo@gnu.org>
1501
1502 * README: Document help-bison list.
1503
1504 * configure.in: Add check for mkstemp().
1505
15061999-01-20 Jesse Thilo <jthilo@gnu.org>
1507
1508 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1509 Hush a few compiler warnings.
1510
1511 * src/files.c:
1512 Add tryclose(), which verifies that fclose was successful.
1513 Hush a couple of compiler warnings.
1514
15151999-01-20 Jesse Thilo <jthilo@gnu.org>
1516
1517 * Makefile.am, OChangeLog:
1518 ChangeLog is now automatically generated. Include the old version as
1519 OChangeLog.
1520
15211999-01-14 Jesse Thilo <jthilo@gnu.org>
1522
1523 * 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:
1524 Update FSF address.
1525
15261999-01-14 Jesse Thilo <jthilo@gnu.org>
1527
1528 * doc/bison.texinfo: Fix formatting glitch.
1529
1530 * doc/bison.texinfo: Update FSF address.
1531
15321999-01-14 Jesse Thilo <jthilo@gnu.org>
1533
1534 * acconfig.h: Update FSF address.
1535
15361999-01-08 Jesse Thilo <jthilo@gnu.org>
1537
1538 * src/system.h:
1539 Don't define PACKAGE here, since config.h defines it.
1540
15411998-12-30 Jesse Thilo <jthilo@gnu.org>
1542
1543 * src/reader.c: Update copyright date.
1544
1545 * src/main.c:
1546 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1547 favor of output directly to stderr (avoids buffer overruns).
1548
1549 * src/reader.c: Some checks for premature EOF.
1550
1551 * 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:
1552 Use prototypes if the compiler understands them.
1553
1554 * src/files.c: Honor TMPDIR on Unix hosts.
1555 Use prototypes if the compiler understands them.
1556
1557 * src/reader.c:
1558 Fix a couple of buffer overrun bugs.
1559 Use prototypes if the compiler understands them.
1560
1561 * src/system.h: Include unistd.h and ctype.h.
1562 Use #ifdef instead of #if for NLS symbols.
1563
15641998-12-30 Jesse Thilo <jthilo@gnu.org>
1565
1566 * doc/bison.texinfo:
1567 Delete comment "consider using @set for edition number, etc..." since
1568 we now are doing so.
1569
15701998-12-30 Jesse Thilo <jthilo@gnu.org>
1571
1572 * configure.in:
1573 Use prototypes if the compiler understands them.
1574
1575 * NEWS: Document 1.26 highlights.
1576
1577 * Makefile.am: Require Automake 1.3 or later.
1578
1579 * acconfig.h:
1580 Use prototypes if the compiler understands them.
1581
15821998-12-29 Jesse Thilo <jthilo@gnu.org>
1583
1584 * src/version.c:
1585 Use VERSION symbol from automake for version number.
1586
15871998-12-29 Jesse Thilo <jthilo@gnu.org>
1588
1589 * acconfig.h, configure.in, version.cin:
1590 Use VERSION symbol from automake for version number.
1591
15921998-11-28 Jesse Thilo <jthilo@gnu.org>
1593
1594 * Makefile.am:
1595 Distribute original version of simple parser (bison.s1), not built
1596 version (bison.simple).
1597
15981998-11-28 Jesse Thilo <jthilo@gnu.org>
1599
1600 * doc/bison.texinfo: Add info dir entry.
1601
1602 * doc/bison.texinfo:
1603 Let automake put version number into documentation.
1604
16051998-11-26 Jesse Thilo <jthilo@gnu.org>
1606
1607 * src/bison.cld, src/build.com, src/vmshlp.mar:
1608 Add non-RCS files from /gd/gnu/bison.
1609
16101998-11-26 Jesse Thilo <jthilo@gnu.org>
1611
1612 * doc/bison.1:
1613 Document the BISON_HAIRY and BISON_SIMPLE variables.
1614
16151998-11-25 Jesse Thilo <jthilo@gnu.org>
1616
1617 * src/version.c: Build version.c automatically.
1618
1619 * src/reader.c:
1620 Fix token numbering (used to start at 258, not 257).
1621
1622 * src/system.h: Include config.h.
1623
1624 * src/getargs.c: Update bug report address.
1625
1626 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1627 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1628
16291998-11-25 Jesse Thilo <jthilo@gnu.org>
1630
1631 * Makefile.am:
1632 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1633
1634 * configure.in, version.cin:
1635 Build version.c automatically.
1636
1637 * AUTHORS: Add AUTHORS file.
1638
1639 * README: Update bug report address.
1640
1641 * bison.simple:
1642 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1643
1644 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1645 Add automake stuff.
1646
16471998-11-25 Jesse Thilo <jthilo@gnu.org>
1648
1649 * doc/bison.texinfo: Clean up some formatting.
1650
16511998-05-05 Richard Stallman <rms@gnu.org>
1652
1653 * doc/bison.texinfo:
1654 Explain better why to make a pure parser.
1655
16561998-01-05 Richard Stallman <rms@gnu.org>
1657
1658 * src/files.c (openfiles):
1659 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1660 find a temporary directory, if possible. Do not unlink files while
1661 they are open.
1662
16631997-08-25 Richard Stallman <rms@gnu.org>
1664
1665 * src/reader.c (stack_offset;):
1666 Change some warni to warns.
1667
1668 * src/lex.c (literalchar): Use warns, not warni.
1669
16701997-06-28 Richard Stallman <rms@gnu.org>
1671
1672 * src/bison.s1: Add a Bison version comment.
1673
1674 * src/main.c (fatal, warn, berror):
1675 Use program_name.
1676
16771997-06-28 Richard Stallman <rms@gnu.org>
1678
1679 * Makefile.in (bison_version): New variable.
1680 (dist): Use that variable.
1681 (bison.s1): Substitute the Bison version into bison.simple.
1682
1683 * bison.simple: Add a Bison version comment.
1684
16851997-06-18 Richard Stallman <rms@gnu.org>
1686
1687 * src/main.c (fatal, warn, berror):
1688 Make error messages standard.
1689 (toomany): Improve error message text.
1690
1691 * 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:
1692 new.h renamed to alloc.h.
1693
16941997-06-18 Richard Stallman <rms@gnu.org>
1695
1696 * Makefile.in: new.h renamed to alloc.h.
1697
16981997-05-24 Richard Stallman <rms@gnu.org>
1699
1700 * src/lex.c (literalchar):
1701 Fix the code for escaping \, " and '.
1702
1703 (lex): Avoid trouble when there are many chars
1704 to discard in a char literal with just several chars in it.
1705
17061997-05-17 Richard Stallman <rms@gnu.org>
1707
1708 * src/bison.s1:
1709 Use malloc, if using alloca is troublesome.
1710 (YYSTACK_USE_ALLOCA): New flag macro.
1711 Define it for some systems and compilers.
1712 (YYSTACK_ALLOC): New macro.
1713 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1714 If it was malloc'd, free it.
1715
17161997-05-17 Richard Stallman <rms@gnu.org>
1717
1718 * bison.simple:
1719 Use malloc, if using alloca is troublesome.
1720 (YYSTACK_USE_ALLOCA): New flag macro.
1721 Define it for some systems and compilers.
1722 (YYSTACK_ALLOC): New macro.
1723 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1724 If it was malloc'd, free it.
1725
17261997-04-23 Richard Stallman <rms@gnu.org>
1727
1728 * src/bison.s1:
1729 (alloca) [__hpux]: Always define as __builtin_alloca.
1730
17311997-04-23 Richard Stallman <rms@gnu.org>
1732
1733 * bison.simple:
1734 (alloca) [__hpux]: Always define as __builtin_alloca.
1735
17361997-04-22 Richard Stallman <rms@gnu.org>
1737
1738 * src/bison.s1:
1739 [__hpux]: Include alloca.h (right for HPUX 10)
1740 instead of declaring alloca (right for HPUX 9).
1741
1742 * src/bison.s1 (__yy_memcpy):
1743 Declare arg `count' as unsigned int.
1744 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1745
17461997-04-22 Richard Stallman <rms@gnu.org>
1747
1748 * bison.simple:
1749 [__hpux]: Include alloca.h (right for HPUX 10)
1750 instead of declaring alloca (right for HPUX 9).
1751
1752 * bison.simple (__yy_memcpy):
1753 Declare arg `count' as unsigned int.
1754 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1755
17561997-01-03 Richard Stallman <rms@gnu.org>
1757
1758 * src/allocate.c: [__STDC__ or _MSC_VER]:
1759 Declare calloc and realloc to return void *.
1760
17611997-01-02 Richard Stallman <rms@gnu.org>
1762
1763 * src/system.h:
1764 [_MSC_VER]: Include stdlib.h and process.h.
1765 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1766
1767 * src/main.c (main): Return FAILURE as a value.
1768 (printable_version): Declare arg as int, not char.
1769
17701997-01-02 Richard Stallman <rms@gnu.org>
1771
1772 * Makefile.in (dist):
1773 Explicitly check for symlinks, and copy them.
1774
17751996-12-19 Richard Stallman <rms@gnu.org>
1776
1777 * src/files.c:
1778 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1779
17801996-12-18 Paul Eggert <eggert@gnu.org>
1781
1782 * src/bison.s1 (yyparse):
1783 If __GNUC__ and YYPARSE_PARAM are both defined,
1784 declare yyparse to have a void * argument.
1785
17861996-12-18 Paul Eggert <eggert@gnu.org>
1787
1788 * bison.simple (yyparse):
1789 If __GNUC__ and YYPARSE_PARAM are both defined,
1790 declare yyparse to have a void * argument.
1791
17921996-12-17 Richard Stallman <rms@gnu.org>
1793
1794 * src/reduce.c (nbits): Add some casts.
1795
17961996-08-12 Richard Stallman <rms@gnu.org>
1797
1798 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1799
18001996-08-12 Richard Stallman <rms@gnu.org>
1801
1802 * bison.simple: Test _MSDOS as well as _MSDOS_.
1803
18041996-07-31 Richard Stallman <rms@gnu.org>
1805
1806 * src/bison.s1:
1807 [__sun && __i386]: Include alloca.h.
1808
18091996-07-31 Richard Stallman <rms@gnu.org>
1810
1811 * bison.simple:
1812 [__sun && __i386]: Include alloca.h.
1813
18141996-07-30 Richard Stallman <rms@gnu.org>
1815
1816 * src/bison.s1: Comment change.
1817
1818 * src/bison.s1: Test _MSDOS_, not MSDOS.
1819
18201996-07-30 Richard Stallman <rms@gnu.org>
1821
1822 * bison.simple: Comment change.
1823
1824 * bison.simple: Test _MSDOS_, not MSDOS.
1825
18261996-06-01 Richard Stallman <rms@gnu.org>
1827
1828 * 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:
1829 Insert `_' macro around many string constants.
1830
1831 * src/main.c:
1832 Insert `_' macro around many string constants.
1833
1834 (main): Call setlocale, bindtextdomain and textdomain.
1835
1836 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1837 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1838 [ENABLE_NLS]: Include libintl.h.
1839 [ENABLE_NLS] (gettext): Define.
1840 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1841 (N_, PACKAGE, LOCALEDIR): New macros.
1842
18431996-06-01 Richard Stallman <rms@gnu.org>
1844
1845 * POTFILES.in: New file.
1846
1847 * Makefile.in (allocate.o):
1848 Define target explicitly.
1849
1850 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1851 (LDFLAGS): Set to @LDFLAGS@.
1852 (configure): Run autoconf only if preceding `cd' succeeds.
1853 (bison.s1): Redirect output to temporary file then move the
1854 temporary to the target, rather than redirecting directly to bison.s1.
1855 (clean): Remove config.status and config.log.
1856 (distclean): Don't remove config.status here.
1857
18581996-05-12 Richard Stallman <rms@gnu.org>
1859
1860 * src/bison.s1:
1861 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1862
18631996-05-12 Richard Stallman <rms@gnu.org>
1864
1865 * bison.simple:
1866 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1867
18681996-05-11 Richard Stallman <rms@gnu.org>
1869
1870 * src/bison.s1 (__yy_memcpy):
1871 Really reorder the args, as was supposedly done on Feb 14 1995.
1872 (yyparse): Calls changed accordingly.
1873
18741996-05-11 Richard Stallman <rms@gnu.org>
1875
1876 * Makefile.in (dist): Don't use $(srcdir).
1877
1878 * bison.simple (__yy_memcpy):
1879 Really reorder the args, as was supposedly done on Feb 14 1995.
1880 (yyparse): Calls changed accordingly.
1881
18821996-01-27 Richard Stallman <rms@gnu.org>
1883
1884 * src/output.c (output_rule_data):
1885 Test YYERROR_VERBOSE in the conditional
1886 around the definition of ttyname.
1887
18881995-12-29 Richard Stallman <rms@gnu.org>
1889
1890 * src/bison.s1:
1891 Fix line numbers in #line commands.
1892
18931995-12-29 Richard Stallman <rms@gnu.org>
1894
1895 * bison.simple:
1896 Fix line numbers in #line commands.
1897
18981995-12-27 Richard Stallman <rms@gnu.org>
1899
1900 * src/bison.s1 (YYPARSE_PARAM_DECL):
1901 In C++, make it always null.
1902 (YYPARSE_PARAM_ARG): New macro.
1903 (yyparse): Use YYPARSE_PARAM_ARG.
1904
19051995-12-27 Richard Stallman <rms@gnu.org>
1906
1907 * bison.simple (YYPARSE_PARAM_DECL):
1908 In C++, make it always null.
1909 (YYPARSE_PARAM_ARG): New macro.
1910 (yyparse): Use YYPARSE_PARAM_ARG.
1911
19121995-11-29 Richard Stallman <rms@gnu.org>
1913
1914 * doc/bison.texinfo:
1915 Describe literal string tokens, %raw, %no_lines, %token_table.
1916
19171995-11-29 Daniel Hagerty <hag@gnu.org>
1918
1919 * doc/bison.texinfo: Fixed update date
1920
19211995-10-16 Richard Stallman <rms@gnu.org>
1922
1923 * src/version.c: Version 1.25.
1924
19251995-10-16 Richard Stallman <rms@gnu.org>
1926
1927 * NEWS: *** empty log message ***
1928
19291995-10-16 Richard Stallman <rms@gnu.org>
1930
1931 * doc/bison.1, doc/bison.rnh:
1932 Add new options.
1933
19341995-10-15 Richard Stallman <rms@gnu.org>
1935
1936 * src/vmsgetargs.c, src/getargs.c:
1937 Added -n, -k, and -raw switches.
1938 (noparserflag, toknumflag, rawtoknumflag): New variables.
1939
1940 * src/symtab.h (SALIAS):
1941 New #define for adding aliases to %token.
1942 (struct bucket): Added `alias' field.
1943
1944 * src/reduce.c (reduce_grammar):
1945 Revise error message.
1946 (print_notices): Remove final `.' from error message.
1947
1948 * src/reader.c (reader_output_yylsp):
1949 New function.
1950 (readgram): Use `#if 0' around code that accepted %command
1951 inside grammar rules: The documentation doesn't allow it,
1952 and it will fail since the %command processors scan for the next %.
1953 (parse_token_decl): Extended the %token
1954 declaration to allow a multi-character symbol as an alias.
1955 (parse_thong_decl): New function.
1956 (read_declarations): Added %thong declarations.
1957 (read_declarations): Handle NOOP to deal with allowing
1958 % declarations as another means to specify the flags.
1959 (readgram): Allow %prec prior to semantics embedded in a rule.
1960 (skip_to_char, read_declarations, copy_definition)
1961 (parse_token_decl, parse_start_decl, parse_type_decl)
1962 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1963 (get_type_name, copy_guard, copy_action, readgram)
1964 (get_type, packsymbols): Revised most error messages.
1965 Changed `fatal' to `warnxxx' to avoid aborting for error.
1966 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1967 (read_declarations): Improve the error message for
1968 an invalid character. Do not abort.
1969 (read_declarations, copy_guard, copy_action): Use
1970 printable_version to avoid unprintable characters in printed output.
1971 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1972 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1973 Allow the type of a non-terminal can be given
1974 more than once, as long as all specifications give the same type.
1975
1976 * src/output.c:
1977 (output_headers, output_trailers, output, output_gram)
1978 (output_rule_data): Implement noparserflag variable.
1979 Implement toknumflag variable.
1980 (output): Call reader_output_yylsp to output LTYPESTR.
1981
1982 * src/main.c (main):
1983 If reader sees an error, don't process the grammar.
1984 (fatals): Updated to not use VARARGS1.
1985 (printable_version, int_to_string, warn, warni, warns, warnss)
1986 (warnsss): New error reporting functions. Avoid abort for error.
1987
1988 * src/lex.h:
1989 Added THONG and NOOP for alias processing.
1990 Added SETOPT for the new code that allows setting options with %flags.
1991
1992 * src/lex.c:
1993 Include getopt.h. Add some extern decls.
1994 (safegetc): New function to deal with EOF gracefully.
1995 (literalchar); new function to deal with reading \ escapes.
1996 (lex): Use literalchar.
1997 (lex): Implemented "..." tokens.
1998 (literalchar, lex, parse_percent_token): Made tokenbuffer
1999 always contain the token. This includes growing the token
2000 buffer while reading an integer.
2001 (parse_percent_token): Replaced if-else statement with percent_table.
2002 (parse_percent_token): Added % declarations as another
2003 way to specify the flags -n, -l, and -r. Also added hooks for
2004 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2005 major changes to files.c.
2006 (lex) Retain in the incoming stream a character following
2007 an incorrect '/'.
2008 (skip_white_space, lex): Revised most error messages
2009 and changed fatal to warn to avoid aborting.
2010 (percent_table): Added %thong declarations.
2011
2012 * src/gram.h: Comment changes.
2013
2014 * src/files.c (openfiles, open_extra_files, done):
2015 Add faction flag
2016 and actfile file. Handle noparserflag. Both for -n switch.
2017
2018 * src/conflicts.c (resolve_sr_conflict):
2019 Remove use of alloca.
2020
20211995-06-01 Jim Meyering <meyering@gnu.org>
2022
2023 * doc/bison.texinfo: *** empty log message ***
2024
20251995-05-06 Richard Stallman <rms@gnu.org>
2026
2027 * src/bison.s1: Comment change.
2028
20291995-05-06 Richard Stallman <rms@gnu.org>
2030
2031 * bison.simple: Comment change.
2032
20331995-05-03 Richard Stallman <rms@gnu.org>
2034
2035 * src/version.c: Version now 1.24.
2036
2037 * src/bison.s1: Change distribution terms.
2038
2039 * src/version.c: Version now 1.23.
2040
20411995-05-03 Richard Stallman <rms@gnu.org>
2042
2043 * doc/bison.texinfo:
2044 Rewrite "Conditions for Using Bison".
2045 Update version to 1.24.
2046
20471995-05-03 Richard Stallman <rms@gnu.org>
2048
2049 * bison.simple: Change distribution terms.
2050
20511995-02-23 Richard Stallman <rms@gnu.org>
2052
2053 * src/files.c: Test __VMS_POSIX as well as VMS.
2054
20551995-02-14 Jim Meyering <meyering@gnu.org>
2056
2057 * src/bison.s1 (__yy_memcpy):
2058 Renamed from __yy_bcopy to avoid
2059 confusion. Reverse FROM and TO arguments to be consistent with
2060 those of memcpy.
2061
20621995-02-14 Jim Meyering <meyering@gnu.org>
2063
2064 * bison.simple (__yy_memcpy):
2065 Renamed from __yy_bcopy to avoid
2066 confusion. Reverse FROM and TO arguments to be consistent with
2067 those of memcpy.
2068
20691994-11-10 David J. MacKenzie <djm@gnu.org>
2070
2071 * NEWS: reformat
2072
2073 * NEWS: New file.
2074
2075 * Makefile.in (DISTFILES): Include NEWS.
2076
2077 * Makefile.in (DISTFILES):
2078 Include install-sh, not install.sh.
2079
2080 * configure.in: Update to Autoconf v2 macro names.
2081
20821994-10-05 David J. MacKenzie <djm@gnu.org>
2083
2084 * Makefile.in: fix typo
2085
2086 * Makefile.in (prefix, exec_prefix):
2087 Let configure set them.
2088
20891994-09-28 David J. MacKenzie <djm@gnu.org>
2090
2091 * Makefile.in: Set datadir to $(prefix)/share.
2092
20931994-09-15 Richard Stallman <rms@gnu.org>
2094
2095 * src/bison.s1:
2096 Update copyright notice and GPL version.
2097
20981994-09-15 Richard Stallman <rms@gnu.org>
2099
2100 * bison.simple:
2101 Update copyright notice and GPL version.
2102
21031994-07-12 Richard Stallman <rms@gnu.org>
2104
2105 * src/reduce.c, src/reader.c:
2106 entered into RCS
2107
21081994-05-05 David J. MacKenzie <djm@gnu.org>
2109
2110 * Makefile.in: entered into RCS
2111
21121994-03-26 Richard Stallman <rms@gnu.org>
2113
2114 * src/bison.s1: entered into RCS
2115
21161994-03-26 Richard Stallman <rms@gnu.org>
2117
2118 * bison.simple: entered into RCS
2119
21201994-03-25 Richard Stallman <rms@gnu.org>
2121
2122 * src/main.c: entered into RCS
2123
21241994-03-24 Richard Stallman <rms@gnu.org>
2125
2126 * src/conflicts.c: entered into RCS
2127
21281994-01-02 Richard Stallman <rms@gnu.org>
2129
2130 * Makefile.in: *** empty log message ***
2131
21321993-11-21 Richard Stallman <rms@gnu.org>
2133
2134 * src/bison.s1: *** empty log message ***
2135
21361993-11-21 Richard Stallman <rms@gnu.org>
2137
2138 * doc/bison.texinfo: entered into RCS
2139
2140 * doc/bison.texinfo: *** empty log message ***
2141
21421993-11-21 Richard Stallman <rms@gnu.org>
2143
2144 * bison.simple: *** empty log message ***
2145
21461993-10-25 David J. MacKenzie <djm@gnu.org>
2147
2148 * doc/bison.texinfo: *** empty log message ***
2149
21501993-10-19 Richard Stallman <rms@gnu.org>
2151
2152 * src/bison.s1: *** empty log message ***
2153
21541993-10-19 Richard Stallman <rms@gnu.org>
2155
2156 * bison.simple: *** empty log message ***
2157
21581993-10-14 Richard Stallman <rms@gnu.org>
2159
2160 * src/bison.s1: *** empty log message ***
2161
21621993-10-14 Richard Stallman <rms@gnu.org>
2163
2164 * bison.simple: *** empty log message ***
2165
21661993-09-14 David J. MacKenzie <djm@gnu.org>
2167
2168 * doc/bison.texinfo: *** empty log message ***
2169
21701993-09-13 Noah Friedman <friedman@gnu.org>
2171
2172 * Makefile.in: *** empty log message ***
2173
21741993-09-10 Richard Stallman <rms@gnu.org>
2175
2176 * src/conflicts.c: *** empty log message ***
2177
2178 * src/system.h: entered into RCS
2179
21801993-09-10 Richard Stallman <rms@gnu.org>
2181
2182 * doc/bison.1: entered into RCS
2183
21841993-09-06 Noah Friedman <friedman@gnu.org>
2185
2186 * src/version.c: entered into RCS
2187
21881993-09-06 Noah Friedman <friedman@gnu.org>
2189
2190 * Makefile.in: *** empty log message ***
2191
21921993-07-30 David J. MacKenzie <djm@gnu.org>
2193
2194 * Makefile.in: *** empty log message ***
2195
21961993-07-24 Richard Stallman <rms@gnu.org>
2197
2198 * src/bison.s1: *** empty log message ***
2199
22001993-07-24 Richard Stallman <rms@gnu.org>
2201
2202 * bison.simple: *** empty log message ***
2203
22041993-07-08 David J. MacKenzie <djm@gnu.org>
2205
2206 * Makefile.in: *** empty log message ***
2207
22081993-07-04 Richard Stallman <rms@gnu.org>
2209
2210 * src/bison.s1: *** empty log message ***
2211
22121993-07-04 Richard Stallman <rms@gnu.org>
2213
2214 * bison.simple: *** empty log message ***
2215
22161993-06-26 David J. MacKenzie <djm@gnu.org>
2217
2218 * src/getargs.c: entered into RCS
2219
22201993-06-26 David J. MacKenzie <djm@gnu.org>
2221
2222 * doc/bison.texinfo: *** empty log message ***
2223
2224 * doc/bison.1: New file.
2225
22261993-06-25 Richard Stallman <rms@gnu.org>
2227
2228 * src/getargs.c: New file.
2229
22301993-06-16 Richard Stallman <rms@gnu.org>
2231
2232 * src/bison.s1: *** empty log message ***
2233
22341993-06-16 Richard Stallman <rms@gnu.org>
2235
2236 * bison.simple: *** empty log message ***
2237
22381993-06-03 Richard Stallman <rms@gnu.org>
2239
2240 * src/bison.s1: New file.
2241
22421993-06-03 Richard Stallman <rms@gnu.org>
2243
2244 * doc/bison.texinfo: *** empty log message ***
2245
22461993-06-03 Richard Stallman <rms@gnu.org>
2247
2248 * bison.simple: New file.
2249
22501993-05-19 Richard Stallman <rms@gnu.org>
2251
2252 * doc/bison.texinfo: New file.
2253
22541993-05-07 Noah Friedman <friedman@gnu.org>
2255
2256 * Makefile.in: *** empty log message ***
2257
22581993-04-28 Noah Friedman <friedman@gnu.org>
2259
2260 * src/reader.c: *** empty log message ***
2261
22621993-04-23 Noah Friedman <friedman@gnu.org>
2263
2264 * src/alloc.h: entered into RCS
2265
22661993-04-20 David J. MacKenzie <djm@gnu.org>
2267
2268 * src/version.c: *** empty log message ***
2269
2270 * src/files.c, src/allocate.c:
2271 entered into RCS
2272
2273 * src/reader.c: *** empty log message ***
2274
2275 * src/lex.c: entered into RCS
2276
2277 * src/conflicts.c: New file.
2278
2279 * src/symtab.c: entered into RCS
2280
2281 * src/alloc.h: New file.
2282
2283 * src/LR0.c: entered into RCS
2284
22851993-04-18 Noah Friedman <friedman@gnu.org>
2286
2287 * src/reader.c: New file.
2288
2289 * src/version.c: *** empty log message ***
2290
22911993-04-18 Noah Friedman <friedman@gnu.org>
2292
2293 * Makefile.in: *** empty log message ***
2294
22951993-04-17 Noah Friedman <friedman@gnu.org>
2296
2297 * Makefile.in: *** empty log message ***
2298
22991993-04-15 Richard Stallman <rms@gnu.org>
2300
2301 * src/main.c, src/files.c:
2302 New file.
2303
23041993-04-15 Noah Friedman <friedman@gnu.org>
2305
2306 * configure.in: entered into RCS
2307
2308 * configure.in: *** empty log message ***
2309
2310 * configure.in: New file.
2311
23121993-04-14 Richard Stallman <rms@gnu.org>
2313
2314 * Makefile.in: New file.
2315
23161993-04-13 Richard Stallman <rms@gnu.org>
2317
2318 * src/version.c: New file.
2319
23201993-03-25 Richard Stallman <rms@gnu.org>
2321
2322 * src/output.c: entered into RCS
2323
23241992-09-25 Richard Stallman <rms@gnu.org>
2325
2326 * configure.bat: entered into RCS
2327
23281992-06-22 Richard Stallman <rms@gnu.org>
2329
2330 * src/vmsgetargs.c: entered into RCS
2331
23321992-06-22 Richard Stallman <rms@gnu.org>
2333
2334 * doc/bison.rnh: entered into RCS
2335
23361992-04-20 David J. MacKenzie <djm@gnu.org>
2337
2338 * README: entered into RCS
2339
23401992-01-22 Richard Stallman <rms@gnu.org>
2341
2342 * src/machine.h: entered into RCS
2343
23441991-12-21 Richard Stallman <rms@gnu.org>
2345
2346 * src/lalr.c, src/closure.c:
2347 entered into RCS
2348
23491991-12-20 Richard Stallman <rms@gnu.org>
2350
2351 * src/state.h: entered into RCS
2352
23531991-12-18 Richard Stallman <rms@gnu.org>
2354
2355 * src/print.c, src/nullable.c, src/derives.c:
2356 entered into RCS
2357
23581991-11-03 David J. MacKenzie <djm@gnu.org>
2359
2360 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2361 entered into RCS
2362
23631988-09-09 Richard Stallman <rms@gnu.org>
2364
2365 * src/bison.hairy: entered into RCS
2366
23671987-12-16 Richard Stallman <rms@gnu.org>
2368
2369 * REFERENCES: entered into RCS