]> git.saurik.com Git - bison.git/blame - ChangeLog
Revert to 1.28c
[bison.git] / ChangeLog
CommitLineData
45f8dd1e
AD
12001-08-15 Akim Demaille <akim@epita.fr>
2
3 Version 1.28c.
4
bbb5bcc6 52001-08-15 Marc Autret <prog@epita.fr>
0b8afb77
AD
6
7 * src/reader.c (readgram): Indent output macro YYSTYPE.
8 (packsymbols): Likewise.
9 (output_token_defines): Likewise.
10 * src/files.c: Standardize.
11 (compute_header_macro): New.
12 (defines_obstack_save): New. Use compute_header_macro.
13 (output_files): Update. Use defines_obstack_save.
14
f9a8293a
AD
152001-08-15 Akim Demaille <akim@epita.fr>
16
17 * doc/bison.texinfo (Table of Symbols): Document
18 YYSTACK_USE_ALLOCA.
19
150ca7a7
AD
202001-08-15 Akim Demaille <akim@epita.fr>
21
22 * missing: Update from CVS Automake.
23 * config/config.guess, config/config.sub, config/texinfo.tex:
24 Update from gnu.org.
25
69b5cec4
AD
262001-08-15 Akim Demaille <akim@epita.fr>
27
28 * Makefile.maint: Sync with CVS Autoconf.
29
f2b5126e
PB
302001-08-14 Pascal Bart <pascal.bart@epita.fr>
31
69b5cec4 32 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
33 `fdl.texi'.
34 * doc/fdl.texi: Add to package.
35
4ecbf796
MA
362001-08-14 Marc Autret <autret_m@epita.fr>
37
38 Turn on %{source,header}_extension features.
39
69b5cec4 40 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
41 source_extension.
42 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 43 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
44 between options.
45
95fb5662
MA
462001-08-14 Marc Autret <autret_m@epita.fr>
47
48 * src/files.c (compute_base_names): Add extensions computing when
49 `--file-prefix' used.
50 Standardize function calls.
51
78d09da9
MA
522001-08-13 Marc Autret <autret_m@epita.fr>
53
69b5cec4 54 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
55 defining it (defined but null disables alloca).
56
5a009f2c
MA
572001-08-13 Marc Autret <autret_m@epita.fr>
58
59 * src/bison.simple (_yy_memcpy): CPP reformat.
60
1e41465a
PB
612001-08-13 Pascal Bart <pascal.bart@epita.fr>
62
63 * tests/atconfig.in (CPPFLAGS): Fix.
64
c67a198d
PB
652001-08-10 Pascal Bart <pascal.bart@epita.fr>
66
79282c6c 67 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
68 `gpl.texi'.
69 * doc/gpl.texi: Add to package.
70
09a6de7e
MA
712001-08-10 Marc Autret <autret_m@epita.fr>
72
73 * src/print_graph.h: Fix.
74 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
75
b77b9ee0
AD
762001-08-10 Akim Demaille <akim@epita.fr>
77
78 * src/system.h: Provide default declarations for stpcpy, strndup,
79 and strnlen.
80
3e259915
MA
812001-08-10 Robert Anisko <anisko_r@epita.fr>
82
83 * doc/bison.texinfo (Locations): Update @$ stuff.
84
ca96bc2d
MA
852001-08-09 Robert Anisko <anisko_r@epita.fr>
86
87 * src/bison.simple (YYLLOC_DEFAULT): Update.
88 (yyparse): Adjust.
89
fdc6758b
MA
902001-08-08 Marc Autret <autret_m@epita.fr>
91
b77b9ee0 92 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
93 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
94 Reported by Fabrice Bauzac.
957d4dbf 95
600cad3b
MA
962001-08-08 Marc Autret <autret_m@epita.fr>
97
98 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
99 * src/vcg.c (output_node): Fix.
100 * src/vcg.h: Cleanup.
101 * src/print_graph.c: Add comments.
b77b9ee0 102 (node_output_size): New global variable. Simplify the formatting of
600cad3b 103 the VCG graph output.
b77b9ee0 104 (print_actions): Unused code is now used. It notifies the final state
600cad3b 105 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 106 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
107 blue.
108 Get the current node name and node_obstack by argument.
109 (node_obstack): New variable.
110 (print_state): Manage node_obstack.
111 (print_core): Use node_obstack given by argument.
112 A node is not only computed here but in print_actions also.
113 (print_graph): CPP out useless code instead of commenting it.
114
976e528f
AD
1152001-08-07 Pascal Bart <pascal.bart@epita.fr>
116
117 * tests/atconfig.in (CPPFLAGS): Fix.
118
20e8e5ca
AD
1192001-08-07 Akim Demaille <akim@epita.fr>
120
121 * src/print_graph.c (quote): New.
122 (print_core): Use it.
123
957d4dbf 1242001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 125
3e3da797
AD
126 * src/vcg.c (complain.h): Include it.
127 Unepitaize `return' invocations.
c4b66126 128 [NDEBUG] (main): Remove.
79282c6c 129 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
130 * src/files.c (open_files): Initialize graph_obstack.
131 * src/print_graph.c (print_actions): CPP out useless code.
132 (print_core): Don't output the last `\n' in labels.
133 Use `quote'.
134 * src/files.c (output_files): Output the VCG file.
135 * src/main.c (main): Invoke print_graph ();
3e3da797 136
957d4dbf 1372001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
138
139 Automaton VCG graph output.
140 Using option ``-g'' or long option ``--graph'', you can generate
141 a gram_filename.vcg file containing a VCG description of the LALR (1)
142 automaton of your grammar.
143
144 * src/main.c: Call to print_graph() function.
145 * src/getargs.h: Update.
146 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
147 (graph_flag): New flag.
148 (longopts): Update.
149 (getargs): Add case `g'.
150 * src/files.c (graph_obstack): New obstack struct.
151 (open_files): Initialize new obstack.
152 (output_files): Saves graph_obstack if required.
153 * src/files.h (graph_obstack): New extern declaration.
154 * src/Makefile.am: Add new source files.
155
957d4dbf 1562001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
157
158 * src/print_graph.c, src/print_graph.h (graph): New.
159 * src/vcg.h: New file.
160 * src/vcg.c: New file, VCG graph handling.
161
7333d403
AD
1622001-08-06 Marc Autret <autret_m@epita.fr>
163
164 Add of %source_extension and %header_extension which specify
165 the source or/and the header output file extension.
166
167 * src/files.c (compute_base_names): Remove initialisation of
168 src_extension and header_extension.
169 (compute_exts_from_gf): Update.
170 (compute_exts_from_src): Update.
171 (output_files): Update.
172 * src/reader.c (parse_header_extension_decl): New.
173 (parse_source_extension_decl): New.
174 (read_declarations): New case statements for the new tokens.
175 * src/lex.c (percent_table): Add entries for %source_extension
176 and %header_extension.
177 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
178
84163231
AD
1792001-08-06 Marc Autret <autret_m@epita.fr>
180
181 * configure.in: Bump to 1.28c.
182 * doc/bison.texinfo: Texinfo thingies.
183
8303fc42
AD
1842001-08-04 Pascal Bart <pascal.bart@epita.fr>
185
186 * tests/atconfig.in (CPPFLAGS): Add.
187 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
188
70a84437
AD
1892001-08-03 Akim Demaille <akim@epita.fr>
190
191 Version 1.28b.
192
2ce10144
AD
1932001-08-03 Akim Demaille <akim@epita.fr>
194
195 * tests/Makefile.am (check-local): Ship testsuite.
196 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
197 Include `string.h'.
198
1e3e4bc1
AD
1992001-08-03 Akim Demaille <akim@epita.fr>
200
201 * configure.in: Try using -Wformat when compiling.
202
42b45b7f
AD
2032001-08-03 Akim Demaille <akim@epita.fr>
204
205 * configure.in: Bump to 1.28b.
206
8f13fe33
AD
2072001-08-03 Akim Demaille <akim@epita.fr>
208
209 * src/complain.c: Adjust strerror_r portability issues.
210
b37ba92c
AD
2112001-08-03 Akim Demaille <akim@epita.fr>
212
213 Version 1.28a.
214
b0ce6046
AD
2152001-08-03 Akim Demaille <akim@epita.fr>
216
217 * src/getargs.c, src/getarg.h (skeleton)): Constify.
218 * src/lex.c (literalchar): Avoid name clashes on `buf'.
219 * src/getargs.c: Include complain.h.
220 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
221 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
222
d01c415b
AD
2232001-08-03 Akim Demaille <akim@epita.fr>
224
225 * src/reader.c (readgram): Display hidden chars in error messages.
226
459dd1a6
AD
2272001-08-03 Akim Demaille <akim@epita.fr>
228
229 Update to gettext 0.10.39.
230
53b74c0c
AD
2312001-08-03 Akim Demaille <akim@epita.fr>
232
233 * lib/strspn.c: New.
234
234a3be3
AD
2352001-08-01 Marc Autret <autret_m@epita.fr>
236
237 * doc/bison.texinfo: Update.
238 * doc/bison.1 (mandoc): Update.
239 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
240 * src/files.c: Support output files extensions computing.
241 (src_extension): New static variable.
242 (header_extension): New static variable.
243 (tr): New function.
244 (get_extension_index): New function, gets the index of an extension
245 filename in a string.
246 (compute_exts_from_gf): New function, computes extensions from the
247 grammar file extension.
248 (compute_exts_from_src): New functions, computes extensions from the
249 C source file extension, file given by ``-o'' option.
250 (compute_base_names): Update.
251 (output_files): Update.
252
847bf1f5
AD
2532001-08-01 Robert Anisko <anisko_r@epita.fr>
254
d995fee7 255 * doc/bison.texi: Document @$.
847bf1f5
AD
256 (Locations): New section.
257
d074a105
AD
2582001-07-18 Akim Demaille <akim@epita.fr>
259
260 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
261 * config/prev-version.txt, config/move-if-change: New.
262 * Makefile.am: Adjust.
263
3419715d
AD
2642001-07-08 Pascal Bart <pascal.bart@epita.fr>
265
266 * src/bison.simple (yyparse): Suppress warning `comparaison
267 between signed and unsigned'.
268
62ab6972
AD
2692001-07-05 Pascal Bart <pascal.bart@epita.fr>
270
271 * src/getargs.h (raw_flag): Remove.
272 * src/getargs.c: Die on `-r'/`--raw'.
273 * src/lex.c (parse_percent_token): Die on `%raw'.
274 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
275 * tests/calc.at: Suppress test with option `--raw'.
276
1e24cc5b
AD
2772001-07-14 Akim Demaille <akim@epita.fr>
278
279 * config/: New.
280 * configure.in: Require Autoconf 2.50.
281 Update to gettext 0.10.38.
282
32dfccf8
AD
2832001-03-16 Akim Demaille <akim@epita.fr>
284
285 * doc/bison.texinfo: ANSIfy the examples.
286
cd5bd6ac
AD
2872001-03-16 Akim Demaille <akim@epita.fr>
288
289 * getargs.c (skeleton): New variable.
290 (longopts): --skeleton is a new option.
291 (shortopts, getargs): -S is a new option.
292 * getargs.h: Declare skeleton.
293 * output.c (output_parser): Use it.
294
5141b016
AD
2952001-03-16 Akim Demaille <akim@epita.fr>
296
297 * m4/strerror_r.m4: New.
298 * m4/error.m4: Run AC_FUNC_STRERROR_R.
299 * lib/error.h, lib/error.c: Update.
300
447992b9
AD
3012001-03-16 Akim Demaille <akim@epita.fr>
302
303 * src/getargs.c (longopts): Clean up.
304
274d42ce
AD
3052001-02-21 Akim Demaille <akim@epita.fr>
306
307 * src/reader.c (gensym): `gensym_count' is your own.
308 Use a static buf to create the symbol name, as token_buffer is no
309 longer a buffer.
310
22c821f3
AD
3112001-02-08 Akim Demaille <akim@epita.fr>
312
313 * src/conflicts.c (conflict_report): Be sure not to append to res
314 between two calls, which could happen if both first sprintf were
315 skipped, but not the first cp += strlen.
316
18569462
AD
3172001-02-08 Akim Demaille <akim@epita.fr>
318
319 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
320 New, from fileutils 4.0.37.
321 * configure.in: Require Autoconf 2.49c. I took some time before
322 making this decision. This is the only way out for portability
323 issues in Bison, it would mean way too much duplicate effort to
324 import in Bison features implemented in 2.49c since 2.13.
325 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
326
0d8f3c8a
AD
3272001-02-02 Akim Demaille <akim@epita.fr>
328
329 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 330 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 331
f17bcd1f
AD
3322001-01-19 Akim Demaille <akim@epita.fr>
333
334 Get rid of the ad hoc handling of token_buffer in the scanner: use
335 the obstacks.
336
337 * src/lex.c (token_obstack): New.
338 (init_lex): Initialize it. No longer call...
339 (grow_token_buffer): this. Remove it.
340 Adjust all the places which used it to use the obstack.
341
511e79b3
AD
3422001-01-19 Akim Demaille <akim@epita.fr>
343
344 * src/lex.h: Rename all the tokens:
345 s/\bENDFILE\b/tok_eof/g;
346 s/\bIDENTIFIER\b/tok_identifier/g;
347 etc.
348 Let them be enums, not #define, to ease debugging.
349 Adjust all the code.
350
0d6508ef
AD
3512001-01-18 Akim Demaille <akim@epita.fr>
352
353 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
354 * src/lex.c (maxtoken, grow_token_buffer): Static.
355
6deb4447
AD
3562001-01-18 Akim Demaille <akim@epita.fr>
357
358 Since we now use obstacks, more % directives can be enabled.
359
360 * src/lex.c (percent_table): Also accept `%yacc',
361 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
362 `%debug'.
363 Handle the actions for `%semantic_parser' and `%pure_parser' here,
364 instead of returning a token.
365 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
366 * src/reader.c (read_declarations): Adjust.
367 * src/files.c (open_files): Don't call `compute_base_names', don't
368 compute `attrsfile' since they depend upon data which might be
369 *in* the input file now.
370 (output_files): Do it here.
371 * src/output.c (output_headers): Document the fact that this patch
372 introduces a guaranteed SEGV for semantic parsers.
373 * doc/bison.texinfo: Document them.
374 * tests/suite.at: Exercise these %options.
375
ff4423cc
AD
3762000-12-20 Akim Demaille <akim@epita.fr>
377
378 Also handle the output file (--verbose) with obstacks.
379
380 * files.c (foutput): Remove.
381 (output_obstack): New.
382 Adjust all dependencies.
383 * src/conflicts.c: Return a string.
384 * src/system.h (obstack_grow_string): Rename as...
385 (obstack_sgrow): this. Be ready to work with non literals.
386 (obstack_fgrow4): New.
387
956dba3a
AD
3882000-12-20 Akim Demaille <akim@epita.fr>
389
390 * src/files.c (open_files): Fix the computation of short_base_name
391 in the case of `-o foo.tab.c'.
392
337bab46
AD
3932000-12-20 Akim Demaille <akim@epita.fr>
394
395 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
396 (copy_dollar): Now that everything uses obstacks, get rid of the
397 FILE * parameters.
398
5d3214b8
AD
3992000-12-20 Akim Demaille <akim@epita.fr>
400
401 * src/files.c (open_files): Actually the `.output' file is based
402 on the short_base_name, not base_name.
403 * tests/suite.at (Checking output file names): Adjust.
404
29092a57
AD
4052000-12-20 Akim Demaille <akim@epita.fr>
406
407 * src/bison.s1: Remove, we now use directly...
408 * src/bison.simple: this.
409 * src/Makefile.am: Use pkgdata instead of data.
410
ea5607fd
AD
4112000-12-20 Akim Demaille <akim@epita.fr>
412
413 * src/files.c (guard_obstack): New.
414 (open_files): Initialize it.
415 (output_files): Dump it...
416 * src/files.h: Export it.
417 * src/reader.c (copy_guard): Use it.
418
27110317
AD
4192000-12-19 Akim Demaille <akim@epita.fr>
420
421 * src/files.c (outfile, defsfile, actfile): Removed as global
422 vars.
423 (open_files): Don't compute them.
424 (output_files): Adjust.
425 (base_name, short_base_name): Be global.
426 Adjust dependencies.
427
19c50364
AD
4282000-12-19 Akim Demaille <akim@epita.fr>
429
430 * src/files.c (strsuffix): New.
431 (stringappend): Be just like strcat but allocate.
432 (base_names): Eve out from open_files.
433 Try to simplify the rather hairy computation of base_name and
434 short_base_name.
435 (open_files): Use it.
436 * tests/suite.at (Checking output file names): New test.
437
573c1d9f
AD
4382000-12-19 Akim Demaille <akim@epita.fr>
439
440 * src/system.h (obstack_grow_literal_string): Rename as...
441 (obstack_grow_string): this.
442 * src/output.c (output_parser): Recognize `%% actions' instead of
443 `$'.
444 * src/bison.s1: s/$/%% actions/.
445 * src/bison.hairy: Likewise.
446
ef7ddedd
AD
4472000-12-19 Akim Demaille <akim@epita.fr>
448
449 * src/output.c (output_parser): Compute the `#line' lines when
450 there are.
451 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
452 Suggested by Hans Aberg.
453
ff61dabd
AD
4542000-12-19 Akim Demaille <akim@epita.fr>
455
456 Let the handling of the skeleton files be local to the procedures
457 that use it.
458
459 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
460 longer static.
461 (fparser, open_extra_files): Remove.
462 (open_files, output_files): Don't take care of fparser.
463 * src/files.h: Adjust.
464 * src/output.c (output_parser): Open and close the file to the
465 skeleton.
466 * src/reader.c (read_declarations): When %semantic_parser, open
467 fguard.
468
55b96341
AD
4692000-12-19 Akim Demaille <akim@epita.fr>
470
471 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
472 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
473
358c15b7
AD
4742000-12-19 Akim Demaille <akim@epita.fr>
475
476 * src/files.c (open_files): Yipee! We no longer need all the code
477 looking for `/tmp' since we have no tmp file.
478
7de3329e
AD
4792000-12-19 Akim Demaille <akim@epita.fr>
480
481 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
482 New macros.
483 * src/files.c (open_files): Less dependency on MSDOS etc.
484
3abcd459
AD
4852000-12-14 Akim Demaille <akim@epita.fr>
486
487 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
488 Provide a default definition.
489 Use it when executing the default @ action.
490 * src/reader.c (reader_output_yylsp): No longer include
491 `timestamp' and `text' in the default YYLTYPE.
492
2a91a95e
AD
4932000-12-12 Akim Demaille <akim@epita.fr>
494
495 * src/reader.c (copy_definition, parse_union_decl, copy_action)
496 (copy_guard): Quote the file names.
497 Reported by Laurent Mascherpa.
498
14d3eb9b
AD
4992000-12-12 Akim Demaille <akim@epita.fr>
500
501 * src/output.c (output_headers, output_program, output): Be sure
502 to escape special characters when outputting filenames.
503 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
504 (output_headers): Don't depend on them, Use ACTSTR.
505
d7045ec6
AD
5062000-11-17 Akim Demaille <akim@epita.fr>
507
508 * lib/obstack.h: Formatting changes.
509 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
510 prevents type checking.
511 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
512 cast the value to (void *): assigning a `foo *' to a `void *'
513 variable is valid.
514 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
515 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
516 append characters.
517
6fd54b73
AD
5182000-11-17 Akim Demaille <akim@epita.fr>
519
520 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
521 as...
522 (suite.m4, regression.m4, calc.m4): these.
523 * tests/atgeneral.m4: Update from CVS Autoconf.
524
4c50eae6
AD
5252000-11-17 Akim Demaille <akim@epita.fr>
526
527 * tests/regression.m4 (%union and --defines): New test,
528 demonstrating a current bug in the obstack implementation.
529
a35f64ea
AD
5302000-11-17 Akim Demaille <akim@epita.fr>
531
532 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
533 macros.
534 Use them to declare the variables which are global or local to
535 `yyparse'.
536
7de23534
AD
5372000-11-17 Akim Demaille <akim@epita.fr>
538
539 * acconfig.h: Remove, no longer used.
540
aa7815f5
AD
5412000-11-07 Akim Demaille <akim@epita.fr>
542
543 * src: s/Copyright (C)/Copyright/g.
544
5af1f549
AD
5452000-11-07 Akim Demaille <akim@epita.fr>
546
547 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
548 defining.
549 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
550
553e2b22
AD
5512000-11-07 Akim Demaille <akim@epita.fr>
552
553 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
554 Merge in a single CPP if/else.
555
8a4f41d6
AD
5562000-11-07 Akim Demaille <akim@epita.fr>
557
558 * src/output.c (output): Remove useless variables.
559 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
560 argument `data' for consistency with the prototypes.
561 Qualify it `const'.
562 (obstack_copy, obstack_copy0): Rename the second argument as
563 `address' for consistency. Qualify it `const'.
564 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
565 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
566 `const' their input argument (`data' or `address').
567 Adjust the corresponding macros to include `const' in casts.
568
095a3fb5
AD
5692000-11-03 Akim Demaille <akim@epita.fr>
570
571 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
572 s/PFILE1/BISON_HAIRY/.
573 Adjust dependencies.
574
d1cdce7c
AD
5752000-11-03 Akim Demaille <akim@epita.fr>
576
090c5ebf 577 For some reason, this was not applied.
d1cdce7c
AD
578
579 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
580 `unlink': it's no longer used.
581
9311529b
AD
5822000-11-03 Akim Demaille <akim@epita.fr>
583
584 * src/files.c (skeleton_find): New function, eved out of...
585 (open_files, open_extra_files): here.
586
d8880f69
AD
5872000-11-03 Akim Demaille <akim@epita.fr>
588
589 Don't use `atexit'.
590
591 * src/files.c (obstack_save): New function.
592 (done): Rename as...
593 (output_files): this.
594 Use `obstack_save'.
595 * src/main.c (main): Don't use `atexit' to register `done', since
596 it no longer has to remove tmp files, just call `output_files'
597 when there are no errors.
598
0dbb648e
AD
5992000-11-02 Akim Demaille <akim@epita.fr>
600
601 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
602 `unlink': it's no longer used.
603 * src/files.h: Formatting changes.
604
896fe5c1
AD
6052000-11-02 Akim Demaille <akim@epita.fr>
606
607 Remove the last uses of mktemp and unlink/delete.
608
609 * src/files.c (fdefines, ftable): Removed.
610 (defines_ostack, table_obstack): New.
611 Adjust dependencies of the former into uses of the latter.
612 * src/output.c (output_short_or_char_table, output_short_table):
613 Convert to using obstacks.
614 * src/reader.c (copy_comment2): Accept one FILE * and two
615 obstacks.
616 (output_token_defines, reader_output_yylsp): Use obstacks.
617 * src/system.h (obstack_fgrow3): New.
618
dd60faec
AD
6192000-11-01 Akim Demaille <akim@epita.fr>
620
621 Change each use of `fattrs' into a use of `attrs_obstack'.
622
623 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
624 * src/files.c (fattrs): Remove.
625 (attrs_obstack): New.
626 Adjust all dependencies.
627 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
628
8c7ebe49
AD
6292000-11-01 Akim Demaille <akim@epita.fr>
630
631 Introduce obstacks.
632 Change each use of `faction' into a use of `action_obstack'.
633
634 * lib/obstack.h, lib/obstack.c: New files.
635 * src/files.c (faction): Remove.
636 (action_obstack): New.
637 Adjust all dependencies.
638
77aee789
AD
6392000-10-20 Akim Demaille <akim@epita.fr>
640
641 * lib/quote.h (PARAMS): New macro. Use it.
642
43591cec
AD
6432000-10-16 Akim Demaille <akim@epita.fr>
644
645 * src/output.c (output_short_or_char_table): New function.
646 (output_short_table, output_token_translations): Use it.
647 (goto_actions): Use output_short_table.
648
1e9798d5
AD
6492000-10-16 Akim Demaille <akim@epita.fr>
650
651 * src/symtab.c (bucket_new): New function.
652 (getsym): Use it.
653
654 * src/output.c (output_short_table): New argument to display the
655 comment associated with the table.
656 Adjust dependencies.
657 (output_gram): Use it.
658 (output_rule_data): Nicer output layout for YYTNAME.
659
f282676b
AD
6602000-10-16 Akim Demaille <akim@epita.fr>
661
662 * src/lex.c (read_typename): New function.
663 (lex): Use it.
664 * src/reader.c (copy_dollar): Likewise.
665
550a72a3
AD
6662000-10-16 Akim Demaille <akim@epita.fr>
667
668 * src/reader.c (copy_comment2): Expect the input stream to be on
669 the `/' which is suspected to open a comment, instead of being
670 called after `//' or `/*' was read.
671 (copy_comment, copy_definition, parse_union_decl, copy_action)
672 (copy_guard): Adjust.
673
131e2fef
AD
6742000-10-16 Akim Demaille <akim@epita.fr>
675
676 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
677 `read_signed_integer'.
678
79282c5a
AD
6792000-10-16 Akim Demaille <akim@epita.fr>
680
681 * src/reader.c (copy_dollar): New function.
682 (copy_guard, copy_action): Use it.
683
ff4a34be
AD
6842000-10-16 Akim Demaille <akim@epita.fr>
685
686 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
687 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
688 New files, from Fileutils 4.0.27.
689 * src/main.c (printable_version): Remove.
690 * src/lex.c, src/reader.c: Use `quote'.
691
6922000-10-04 Akim Demaille <akim@epita.fr>
693
694 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
695
14ded682
AD
6962000-10-04 Akim Demaille <akim@epita.fr>
697
698 * doc/bison.texinfo: Various typos spotted by Neil Booth.
699
8e03724b
AD
7002000-10-04 Akim Demaille <akim@epita.fr>
701
702 When a literal string is used to define two different tokens,
703 `bison -v' segfaults.
704 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
705
706 * tests/regression.m4: New file.
707 Include the core of the sample provided by Piotr Gackiewicz.
708 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
709 properly.
710
a9e64249
AD
7112000-10-04 Akim Demaille <akim@epita.fr>
712
713 * src/reader.c (parse_expect_decl): Keep `count' within the size
714 of `buffer'.
715 From Neil Booth.
716
da9abf43
AD
7172000-10-02 Paul Eggert <eggert@twinsun.com>
718
719 * bison.s1 (yyparse): Assign the default value
720 unconditionally, to avoid a GCC warning and make the parser a
721 tad smaller.
722
c33638bb
AD
7232000-10-02 Akim Demaille <akim@epita.fr>
724
725 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
726 options.
727
444c570a
AD
7282000-10-02 Akim Demaille <akim@epita.fr>
729
730 * src/derives.c, src/print.c, src/reduce.c: To ease the
731 translation, move some `\n' out of the translated strings.
732
89cab50d
AD
7332000-10-02 Akim Demaille <akim@epita.fr>
734
735 The location tracking mechanism is precious for parse error
736 messages. Nevertheless, it is enabled only when `@n' is used in
737 the grammar, which is a different issue (you can use it in error
738 message, but not in the grammar per se). Therefore, there should
739 be another means to enable it.
740
741 * src/getargs.c (getargs): Support `--locations'.
742 (usage): Report it.
743 * src/getargs.h (locationsflag): Export it.
744 * src/lex.c (percent_table): Support `%locations'.
745 * src/reader.c (yylsp_needed): Remove this variable, now replaced
746 with `locationsflag'.
747 * doc/bison.texinfo: Document `--locations' and `%locations'.
748 Sort the options.
749 * tests/calc.m4: Test it.
750
751 For regularity of the names, replace each
752 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
753 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
754 In addition replace each `flag' with `_flag'.
755
d6c2cba0
AD
7562000-10-02 Akim Demaille <akim@epita.fr>
757
758 Also test parse error messages, including with YYERROR_VERBOSE.
759
760 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
761 associative).
762 Use it to check the computations.
763 Use it to check `nonassoc' is honored.
764 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
765 `--yyerror-verbose'.
766 (_AT_CHECK_CALC): Adjust to this option.
767 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
768
5a35a6cb
AD
7692000-10-02 Akim Demaille <akim@epita.fr>
770
771 Test also `--verbose', `--defines' and `--name-prefix'. Testing
772 the latter demonstrates a flaw in the handling of non debugging
773 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
774 was used in order to simplify:
775
776 #if YYDEBUG
777 if (yydebug)
778 {
779 ...
780 }
781 #endif
782
783 into
784
785 if (yydebug)
786 {
787 ...
788 }
789
790 unfortunately this leads to a CPP conflict when
791 `--name-prefix=foo' is used since it produces `#define yydebug
792 foodebug'.
793
794 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
795 (YYDPRINTF): New macro.
796 Spread its use.
797 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
798 the bison options.
799 Also test `--verbose', `--defines' and `--name-prefix'.
800
71da9eea
AD
8012000-10-02 Akim Demaille <akim@epita.fr>
802
803 Improve the readability of the produced parsers.
804
805 * src/bison.s1: Formatting changes.
806 Improve the comment related to the `$' mark.
807 (yydefault): Don't fall through to `yyresume': `goto' there.
808 * src/output.c (output_parser): When the `$' is met, skip the end
809 of its line.
810 New variable, `number_of_dollar_signs', to check there's exactly
811 one `$' in the parser skeleton.
812
95e36146
AD
8132000-10-02 Akim Demaille <akim@epita.fr>
814
815 * lib/xstrdup.c: New file, from the fileutils.
816 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
817 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
818 instead of strlen + xmalloc + strcpy.
819 * src/symtab.c (copys): Remove, use xstrdup instead.
820
d7020c20
AD
8212000-10-02 Akim Demaille <akim@epita.fr>
822
823 * src/gram.h (associativity): New enum type which replaces the
824 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
825 `right_assoc', `left_assoc' and `non_assoc'.
826 Adjust all dependencies.
827 * src/reader.c: Formatting changes.
828 (LTYPESTR): Don't define it, use it as a literal in
829 `reader_output_yylsp'.
830 * src/symtab.h (symbol_class): New enum type which replaces the
831 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
832 `sunknown', `stoken and `snterm'.
833
1916f98e
AD
8342000-10-02 Akim Demaille <akim@epita.fr>
835
836 * src/getargs.c (fixed_outfiles): Rename as...
837 (yaccflag): for consistency and accuracy.
838 Adjust dependencies.
839
d7913476
AD
8402000-10-02 Akim Demaille <akim@epita.fr>
841
842 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
843 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
844 difficult and introduced a lot of core dump. It turns out that
845 Bison used an implementation of `xmalloc' based on `calloc', and
846 at various places it does depend upon the initialization to 0. I
847 have not tried to isolate the pertinent places, and all the former
848 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
849 someone should address this issue.
850
851 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
852 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
853 files.
854 Adjust dependencies.
855 * src/warshall.h: New file.
856 Propagate.
857
340ef489
AD
8582000-10-02 Akim Demaille <akim@epita.fr>
859
860 Various anti-`extern in *.c' changes.
861
862 * src/system.h: Include `assert.h'.
863
b2ca4022
AD
8642000-10-02 Akim Demaille <akim@epita.fr>
865
866 * src/state.h (nstates, final_state, first_state, first_shift)
867 (first_reduction): Move their exportation from here...
868 * src/LR0.h: to here.
869 Adjust dependencies.
870 * src/getargs.c (statisticsflag): New variable.
871 Add support for `--statistics'.
872 Adjust dependencies.
873
874 Remove a lot of now useless `extern' statements in most files.
875
403b315b
AD
8762000-10-02 Akim Demaille <akim@epita.fr>
877
878 * src/LR0.h: New file.
879 Propagate its use.
880
07a58c13
AD
8812000-10-02 Akim Demaille <akim@epita.fr>
882
883 * src/print.h: New file.
884 Propagate its use.
885 * src/print.c: Formatting and ordering changes.
886 (verbose, terse): Replace with...
887 (print_results): this new function.
888 Adjust dependencies.
889
0619caf0
AD
8902000-10-02 Akim Demaille <akim@epita.fr>
891
892 * src/conflicts.c (conflict_report): New function.
893 (conflict_log, verbose_conflict_log): Replace with...
894 (print_conflicts): this function.
895 Adjust dependencies.
896 * src/conflicts.h: New file.
897 Propagate its inclusion.
898
3519ec76
AD
8992000-10-02 Akim Demaille <akim@epita.fr>
900
901 * src/nullable.h: New file.
902 Propagate its inclusion.
903 * src/nullable.c: Formatting changes.
904
015acc48
AD
9052000-10-02 Akim Demaille <akim@epita.fr>
906
907 * src/reduce.h: New file.
908 Propagate its inclusion.
909 * src/reduce.c: Topological sort and other formatting changes.
910 (bool, TRUE, FALSE): Move their definition to...
911 * src/system.h: here.
912
8963a27b
AD
9132000-10-02 Akim Demaille <akim@epita.fr>
914
915 * src/files.c: Formatting changes.
916 (tryopen, tryclose, openfiles): Rename as...
917 (xfopen, xfclose, open_files): this.
918 (stringappend): static.
919 * src/files.h: Complete the list of exported symbols.
920 Propagate its use.
921
a70083a3
AD
9222000-10-02 Akim Demaille <akim@epita.fr>
923
924 * src/reader.h: New file.
925 Propagate its use instead of tedious list of `extern' and
926 prototypes.
927 * src/reader.c: Formatting changes, topological sort,
928 s/register//.
929
abadc117
AD
9302000-10-02 Akim Demaille <akim@epita.fr>
931
932 * src/lex.h: Prototype `lex.c' exported functions.
933 * src/reader.c: Adjust.
934 * src/lex.c: Formatting changes.
935 (safegetc): Rename as...
936 (xgetc): this.
937
720d742f
AD
9382000-10-02 Akim Demaille <akim@epita.fr>
939
940 * src/lalr.h: New file.
941 Propagate its inclusion instead of prototypes and `extern'.
942 * src/lalr.c: Formatting changes, topological sorting etc.
943
f2acea59
AD
9442000-10-02 Akim Demaille <akim@epita.fr>
945
946 * src/output.c (token_actions): Introduce a temporary array,
947 YYDEFACT, that makes it possible for this function to use
948 output_short_table.
949
d019d655
AD
9502000-10-02 Akim Demaille <akim@epita.fr>
951
952 `user_toknums' is output as a `short[]' in `output.c', while it is
953 defined as a `int[]' in `reader.c'. For consistency with the
954 other output tables, `user_toknums' is now defined as a table of
955 shorts.
956
957 * src/reader.c (user_toknums): Be a short table instead of an int
958 table.
959 Adjust dependencies.
960
961 Factor the short table outputs.
962
963 * src/output.c (output_short_table): New function.
964 * src/output.c (output_gram, output_stos, output_rule_data)
965 (output_base, output_table, output_check): Use it.
966
6c89f1c1
AD
9672000-10-02 Akim Demaille <akim@epita.fr>
968
969 * src/output.c (output): Topological sort of the functions, in
970 order to get rid of the `static' prototypes.
971 No longer use `register'.
972 * src/output.h: New file.
973 Propagate its inclusion in files explicitly prototyping functions
974 from output.c.
975
d9efd181
AD
9762000-09-21 Akim Demaille <akim@epita.fr>
977
978 * src/atgeneral.m4: Update from Autoconf.
979
c29240e7 9802000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
981
982 * src/closure.h: New file.
983 * src/closure.c: Formatting changes, topological sort over the
984 functions, use of closure.h.
985 (initialize_closure, finalize_closure): Rename as...
986 (new_closure, free_closure): these. Adjust dependencies.
987 * src/LR0.c: Formatting changes, topological sort, use of
988 cloture.h.
989 (initialize_states): Rename as...
990 (new_states): this.
991 * src/Makefile.am (noinst_HEADERS): Adjust.
992
499daa50
AD
9932000-09-20 Akim Demaille <akim@epita.fr>
994
995 * src/acconfig.h: Don't protect config.h against multiple
996 inclusion.
997 Don't define PARAMS.
998 * src/system.h: Define PARAMS.
999 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1000 purpose of config.h. system.h must not try to fix wrong
1001 definitions in config.h.
1002
cc84fd5d
AD
10032000-09-20 Akim Demaille <akim@epita.fr>
1004
1005 * src/derives.h: New file.
1006 * src/main.c, src/derives.h: Use it.
1007 Formatting changes.
1008 * src/Makefile.am (noinst_HEADERS): Adjust.
1009
db5b3a89
AD
10102000-09-20 Akim Demaille <akim@epita.fr>
1011
1012 * tests/atgeneral.m4: Update from Autoconf.
1013 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1014 (AT_CHECK_CALC): New macros.
1015 Use these macros to test bison with options `', `--raw',
1016 `--debug', `--yacc', `--yacc --debug'.
1017
ceed8467
AD
10182000-09-19 Akim Demaille <akim@epita.fr>
1019
1020 * src/output.c: Formatting changes.
1021 * src/machine.h: Remove, leaving its contents in...
1022 * src/system.h: here.
1023 Include stdio.h.
1024 Adjust all dependencies on stdio.h and machine.h.
1025 * src/getargs.h: New file.
1026 Let all `extern' declarations about getargs.c be replaced with
1027 inclusion of `getargs.h'.
1028 * src/Makefile.am (noinst_HEADERS): Adjust.
1029
1030 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1031 scope.
1032 (yyerror): Returns void, not int.
1033 * doc/bison.texinfo: Formatting changes.
1034
05a1d24b
AD
10352000-09-19 Akim Demaille <akim@epita.fr>
1036
1037 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1038 portable.
1039
cbd25751
AD
10402000-09-18 Akim Demaille <akim@epita.fr>
1041
1042 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1043 * src/Makefile.am (INCLUDES): Don't.
1044 Be ready to fetch headers in lib/.
1045
13863333
AD
10462000-09-18 Akim Demaille <akim@epita.fr>
1047
1048 * doc/bison.texinfo: Update the copyright.
1049 ANSIfy and GNUify the examples.
1050 Remove the old menu.
1051
0d533154
AD
10522000-09-18 Akim Demaille <akim@epita.fr>
1053
1054 First set of tests: use the `calc' example from the documentation.
1055
1056 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1057 is defined only when YYDEBUG is.
1058 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1059 * src/files.c (tryopen, tryclose): Formatting changes.
1060 Move to the top and be static.
1061 * src/reader.c (read_signed_integer): Likewise.
1062 * tests/calc.m4: New file.
1063 * Makefile.am, suite.m4: Adjust.
1064 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1065
e79137ac
AD
10662000-09-18 Akim Demaille <akim@epita.fr>
1067
1068 Add support for an Autotest test suite for Bison.
1069
1070 * m4/m4.m4, m4/atconfig.m4: New files.
1071 * m4/Makefile.am (EXTRA_DIST): Adjust.
1072 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1073 files.
1074 * src/getargs.c: Display a more standard --version message.
1075 * src/reader.c (reader): Formatting changes.
1076 No longer depend upon VERSION_STRING.
1077 * configure.in: No longer use `dnl'.
1078 Set up the test suite and the new directory `tests/.
1079 (VERSION_STRING): Remove.
1080
27821bff
AD
10812000-04-14 Akim Demaille <akim@epita.fr>
1082
1083 * src/reader.c (copy_comment2): New function, same as former
1084 `copy_comment', but outputs into two FILE *.
1085 (copy_comment): Use it.
1086 (parse_union_decl): Use it.
1087 (get_type, parse_start_decl): Use the same `invalid' message.
1088 (parse_start_decl, parse_union_decl): Use the same `multiple'
1089 message.
1090 (parse_union_decl, copy_guard, copy_action): Use the same
1091 `unmatched' message.
1092 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1093
cfe5fbc0
AD
10942000-03-31 Akim Demaille <akim@epita.fr>
1095
1096 * src/files.c (tryopen, tryclose): Move to the top.
1097 Be static.
1098
cb7db13e
AD
10992000-03-31 Akim Demaille <akim@epita.fr>
1100
1101 * src/main.c (main): Don't call `done', exit does it.
1102
a0f6b076
AD
11032000-03-31 Akim Demaille <akim@epita.fr>
1104
36281465
AD
1105 * allocate.c: s/return (foo)/return foo/.
1106 * lalr.c: Likewise.
1107 * LR0.c: Likewise.
1108 * output.c: Likewise.
1109 * reader.c: Likewise.
1110 * symtab.c: Likewise.
1111 * vmsgetargs.c: Likewise.
1112
11132000-03-31 Akim Demaille <akim@epita.fr>
1114
1115 Clean up the error reporting functions.
a0f6b076
AD
1116
1117 * src/report.c: New file.
1118 * src/report.h: Likewise.
1119 * src/Makefile.am: Adjust.
1120 * m4/error.m4: New file.
1121 * m4/Makefile.am: Adjust.
1122 * configure.in (jm_PREREQ_ERROR): Call it.
1123 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1124 Remove.
1125 (fatal, fatals): Remove. All callers use complain.c::fatal.
1126 (warn, warni, warns, warnss, warnss): Remove. All callers use
1127 complain.c::complain.
1128 (toomany): Remove, use fatal instead.
1129 * src/files.c (done): No argument, use complain_message_count.
1130 * src/main.c (main): Register `done' to `atexit'.
1131
1132 * src/getargs.c (usage): More `fputs', less `fprintf'.
1133
18539825
AD
11342000-03-28 Akim Demaille <akim@epita.fr>
1135
1136 * lib/: New directory.
1137 * Makefile.am (SUBDIRS): Adjust.
1138 * configure.in: Adjust.
1139 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1140 useless.
1141 * src/alloca.c: Moved to lib/.
1142 * src/getopt.c: Likewise.
1143 * src/getopt1.c: Likewise.
1144 * src/getopt.h: Likewise.
1145 * src/ansi2knr.c: Likewise.
1146 * src/ansi2knr.1: Likewise.
1147 * src/Makefile.am: Adjust.
1148 * lib/Makefile.am: New file.
1149
9f306f2a
AD
11502000-03-28 Akim Demaille <akim@epita.fr>
1151
1152 * src/getargs.c (usage): Refresh the help message.
1153
0ba347b6
AD
11542000-03-17 Akim Demaille <akim@epita.fr>
1155
1156 * src/getopt1.c: Updated from textutils 2.0e
1157 * src/getopt.c: Likewise.
1158 * src/getopt.h: Likewise.
1159
dbe7f271
AD
11602000-03-17 Akim Demaille <akim@epita.fr>
1161
1162 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1163 the file name, not the whole `#line LINE FILE'.
1164
75bbe78d
AD
11652000-03-17 Akim Demaille <akim@epita.fr>
1166
1167 On syntax errors, report the token on which we choked.
1168
aa5fd0ee
AD
1169 * src/bison.s1 (yyparse): In the label yyerrlab, when
1170 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1171
7b306f52
AD
11722000-03-17 Akim Demaille <akim@epita.fr>
1173
aa5fd0ee 1174 * src/reader.c (copy_at): New function.
7b306f52
AD
1175 (copy_guard): Use it.
1176 (copy_action): Use it.
1177
e87b5700
AD
11782000-03-17 Akim Demaille <akim@epita.fr>
1179
1180 Be kind to translators, save some useless translations.
1181
aa5fd0ee 1182 * src/main.c (banner): New function.
e87b5700
AD
1183 (fatal_banner): Use it.
1184 (warn_banner): Use it.
1185
ae3c3164
AD
11862000-03-17 Akim Demaille <akim@epita.fr>
1187
aa5fd0ee
AD
1188 * src/reader.c (copy_definition): Use copy_string and
1189 copy_comment. Removed now unused `match', `ended',
1190 `cplus_comment'.
ae3c3164
AD
1191 (copy_comment, copy_string): Moved, to be visible from
1192 copy_definition.
1193
4dc58e7c
AD
11942000-03-17 Akim Demaille <akim@epita.fr>
1195
aa5fd0ee
AD
1196 * src/reader.c (copy_string): Declare `static inline'. No
1197 problems with inline, since it is checked by configure.
4dc58e7c
AD
1198 (copy_comment): Likewise.
1199
0a6384c4
AD
12002000-03-17 Akim Demaille <akim@epita.fr>
1201
aa5fd0ee 1202 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1203
3cef001a
AD
12042000-03-17 Akim Demaille <akim@epita.fr>
1205
aa5fd0ee 1206 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1207 (copy_action): Use it. Removed now unused `match', `ended',
1208 `cplus_comment'.
1209 (copy_guard): Likewise.
1210
ca36d2ef
AD
12112000-03-17 Akim Demaille <akim@epita.fr>
1212
aa5fd0ee 1213 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1214 (copy_action): Use it.
1215 (copy_guard): Likewise.
1216
6666f98f
AD
12172000-03-17 Akim Demaille <akim@epita.fr>
1218
1219 Change the handling of @s so that they behave exactly like $s.
1220 There is now a pseudo variable @$ (readble and writable), location
1221 of the lhs of the rule (by default ranging from the location of
1222 the first symbol of the rhs, to the location of the last symbol,
1223 or, if the rhs is empty, YYLLOC).
1224
1225 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1226 yyval.
1227 (yyparse): When providing a default semantic action, provide a
1228 default location action.
1229 (after the $): No longer change `*YYLSP', just stack YYLOC the
1230 same way you stack YYVAL.
1231 * src/reader.c (read_declarations): Use warns.
1232 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1233 (copy_action, case '@'): Likewise.
1234 Use a standard error message, to save useless work from
1235 translators.
1236
41aca2e0
AD
12372000-03-17 Akim Demaille <akim@epita.fr>
1238
aa5fd0ee
AD
1239 * src/bison.s1: Formatting and cosmetics changes.
1240 * src/reader.c: Likewise.
41aca2e0
AD
1241 Update the Copyright notice.
1242
dc08c1d5
AD
12432000-03-17 Akim Demaille <akim@epita.fr>
1244
aa5fd0ee
AD
1245 * src/bison.s1 (#line): All set to `#line' only, since the
1246 Makefile now handles them.
dc08c1d5 1247
9ee3c97b
AD
12482000-03-16 Akim Demaille <akim@epita.fr>
1249
1250 * src/output.c (output_rule_data): Output the documentation of
1251 some of the tables.
1252 (Copyright notice): Update.
1253 Formatting changes.
1254
0de741ca
AD
12552000-03-16 Akim Demaille <akim@epita.fr>
1256
1257 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1258 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1259 One `#if YYDEBUG' remains, since it uses variables which are
1260 defined only if `YYDEBUG != 0'.
1261
bb10be54
AD
12622000-03-16 Akim Demaille <akim@epita.fr>
1263
1264 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1265 and related variables so that the similarities are highlighted.
1266
b07b484a
AD
12672000-03-16 Akim Demaille <akim@epita.fr>
1268
1269 * src/bison.s1: Properly indent CPP directives.
1270
361f60b3
AD
12712000-03-16 Akim Demaille <akim@epita.fr>
1272
1273 * src/bison.s1: Properly indent the `alloca' CPP section.
1274
8c44d3ec
AD
12752000-03-16 Akim Demaille <akim@epita.fr>
1276
1277 Do not hard code values of directories in `configure.in'.
1278 Update the `configure' tool chain.
1279
1280 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1281 src/makefile.am.
1282 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1283 (AC_OUTPUT): Add m4/Makefile.
1284 Bump to bison 1.28a, 1.29 has never been released.
1285 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1286 handled via src/Makefile.am.
1287 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1288 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1289 autoheader.
1290 * Makefile.am (SUBDIRS): Add m4.
1291 (ACLOCAL_AM_FLAGS): New variable.
1292 (AUTOMAKE_OPTIONS): Add check-news.
1293 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1294 the proper line number and file name.
1295 (DEFS): Propagate the location of bison library files and of the
1296 locale files.
1297 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1298 builddir.
1299 * acinclude.m4: Remove, replaced by the directory m4.
1300 * m4/Makefile.am (EXTRA_DIST): New variable.
1301 * m4/gettext.m4: New file, from the fileutils.
1302 * m4/lcmessage.m4: Likewise
1303 * m4/progtest.m4: Likewise.
1304 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1305
f95997e7
AD
13062000-03-10 Akim Demaille <akim@epita.fr>
1307
1308 * src/closure.c:
1309 Formatting changes of various comments.
1310 Respect the GNU coding standards at various places.
1311 Don't use `_()' when no translation is needed.
1312
13131999-12-13 Jesse Thilo <jthilo@gnu.org>
1314
1315 * src/files.c:
1316 OS/2 honors TMPDIR environment variable.
1317
13181999-12-13 Jesse Thilo <jthilo@gnu.org>
1319
1320 * doc/bison.texinfo: Tweaked spelling and grammar.
1321 Updated ISBN.
1322 Removed reference to price of printed copy.
1323 Mention BISON_SIMPLE and BISON_HAIRY.
1324
13251999-12-13 Jesse Thilo <jthilo@gnu.org>
1326
1327 * configure.in, NEWS:
1328 Bison 1.29 released.
1329
13301999-10-27 Jesse Thilo <jthilo@gnu.org>
1331
1332 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1333 Added reference card.
1334
13351999-07-26 Jesse Thilo <jthilo@gnu.org>
1336
1337 * po/ru.po: Added Russian translation.
1338
13391999-07-26 Jesse Thilo <jthilo@gnu.org>
1340
1341 * configure.in: Added Russian translation.
1342
13431999-07-06 Jesse Thilo <jthilo@gnu.org>
1344
1345 * configure.in, NEWS, README:
1346 Released version 1.28.
1347
13481999-06-14 Jesse Thilo <jthilo@gnu.org>
1349
1350 * src/system.h:
1351 Squashed redefinition warning on some systems.
1352
1353 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1354 Have configure build version string instead of relying on ANSI string
1355 concatentation.
1356
13571999-06-14 Jesse Thilo <jthilo@gnu.org>
1358
1359 * po/POTFILES.in: Got rid of version.c.
1360
13611999-06-14 Jesse Thilo <jthilo@gnu.org>
1362
1363 * acconfig.h, configure.in:
1364 Have configure build version string instead of relying on ANSI string
1365 concatentation.
1366
13671999-06-08 Jesse Thilo <jthilo@gnu.org>
1368
1369 * doc/bison.1:
1370 Dropped mention of `+' for long-named options.
1371
13721999-05-30 Jesse Thilo <jthilo@gnu.org>
1373
1374 * src/files.c: Added <unistd.h> for unlink().
1375
1376 * src/Makefile.am, src/system.h:
1377 I18n fixes.
1378
13791999-05-30 Jesse Thilo <jthilo@gnu.org>
1380
1381 * README: Added a FAQ list.
1382
1383 * configure.in, acconfig.h:
1384 I18n fixes.
1385
13861999-05-30 Jesse Thilo <jthilo@gnu.org>
1387
1388 * doc/FAQ, doc/Makefile.am:
1389 Added a FAQ list.
1390
13911999-05-19 Jesse Thilo <jthilo@gnu.org>
1392
1393 * src/alloc.h, src/symtab.h, src/version.c:
1394 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1395
13961999-04-18 Jesse Thilo <jthilo@gnu.org>
1397
1398 * src/.cvsignore, src/Makefile.am:
1399 Reorganized: sources in `src', documentation in `doc'.
1400
1401 * src/lex.c (literalchar):
1402 fixed the code for escaping double quotes (thanks
1403 Jonathan Czisny.)
1404
14051999-04-18 Jesse Thilo <jthilo@gnu.org>
1406
1407 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1408 Adjusted paths to reflect directory reorganization.
1409
14101999-04-18 Jesse Thilo <jthilo@gnu.org>
1411
1412 * doc/.cvsignore, doc/Makefile.am:
1413 Reorganized: sources in `src', documentation in `doc'.
1414
14151999-04-18 Jesse Thilo <jthilo@gnu.org>
1416
1417 * configure.in:
1418 Updated AC_INIT file to reflect directory reorganization.
1419
1420 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1421 Reorganized: sources in `src', documentation in `doc'.
1422
14231999-04-13 Jesse Thilo <jthilo@gnu.org>
1424
1425 * src/allocate.c:
1426 Don't declare calloc() and realloc() if not necessary.
1427
14281999-04-13 Jesse Thilo <jthilo@gnu.org>
1429
1430 * configure.in, acconfig.h, acinclude.m4:
1431 Don't declare calloc() and realloc() if not necessary.
1432
14331999-03-23 Jesse Thilo <jthilo@gnu.org>
1434
1435 * po/.cvsignore: Added i18n support.
1436
14371999-03-23 Jesse Thilo <jthilo@gnu.org>
1438
1439 * acconfig.h, configure.in, Makefile.am:
1440 Added i18n support.
1441
14421999-03-22 Jesse Thilo <jthilo@gnu.org>
1443
1444 * src/bison.s1: Fixed #line numbers.
1445
14461999-03-15 Jesse Thilo <jthilo@gnu.org>
1447
1448 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1449 Added PO files from Translation Project.
1450
14511999-03-03 Jesse Thilo <jthilo@gnu.org>
1452
1453 * Makefile.am:
1454 Added support for non-ANSI compilers (ansi2knr).
1455
14561999-02-16 Jesse Thilo <jthilo@gnu.org>
1457
1458 * configure.in: Bumped version number to 1.27.
1459
1460 * Makefile.am:
1461 Added `bison.simple' to list of files removed by `make distclean'.
1462
14631999-02-12 Jesse Thilo <jthilo@gnu.org>
1464
1465 * src/files.c, src/files.h:
1466 Defined locations of parser files in config.h instead of Makefile.
1467
14681999-02-12 Jesse Thilo <jthilo@gnu.org>
1469
1470 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1471 Defined locations of parser files in config.h instead of Makefile.
1472
14731999-02-09 Jesse Thilo <jthilo@gnu.org>
1474
1475 * Makefile.am:
1476 Removed inappropriate use of $< macro.
1477
14781999-02-05 Jesse Thilo <jthilo@gnu.org>
1479
1480 * po/Makefile.in.in, po/POTFILES.in:
1481 Add `po' directory skeleton.
1482
14831999-01-27 Jesse Thilo <jthilo@gnu.org>
1484
1485 * README: Document help-bison list.
1486
1487 * configure.in: Add check for mkstemp().
1488
14891999-01-20 Jesse Thilo <jthilo@gnu.org>
1490
1491 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1492 Hush a few compiler warnings.
1493
1494 * src/files.c:
1495 Add tryclose(), which verifies that fclose was successful.
1496 Hush a couple of compiler warnings.
1497
14981999-01-20 Jesse Thilo <jthilo@gnu.org>
1499
1500 * Makefile.am, OChangeLog:
1501 ChangeLog is now automatically generated. Include the old version as
1502 OChangeLog.
1503
15041999-01-14 Jesse Thilo <jthilo@gnu.org>
1505
1506 * 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:
1507 Update FSF address.
1508
15091999-01-14 Jesse Thilo <jthilo@gnu.org>
1510
1511 * doc/bison.texinfo: Fix formatting glitch.
1512
1513 * doc/bison.texinfo: Update FSF address.
1514
15151999-01-14 Jesse Thilo <jthilo@gnu.org>
1516
1517 * acconfig.h: Update FSF address.
1518
15191999-01-08 Jesse Thilo <jthilo@gnu.org>
1520
1521 * src/system.h:
1522 Don't define PACKAGE here, since config.h defines it.
1523
15241998-12-30 Jesse Thilo <jthilo@gnu.org>
1525
1526 * src/reader.c: Update copyright date.
1527
1528 * src/main.c:
1529 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1530 favor of output directly to stderr (avoids buffer overruns).
1531
1532 * src/reader.c: Some checks for premature EOF.
1533
1534 * 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:
1535 Use prototypes if the compiler understands them.
1536
1537 * src/files.c: Honor TMPDIR on Unix hosts.
1538 Use prototypes if the compiler understands them.
1539
1540 * src/reader.c:
1541 Fix a couple of buffer overrun bugs.
1542 Use prototypes if the compiler understands them.
1543
1544 * src/system.h: Include unistd.h and ctype.h.
1545 Use #ifdef instead of #if for NLS symbols.
1546
15471998-12-30 Jesse Thilo <jthilo@gnu.org>
1548
1549 * doc/bison.texinfo:
1550 Delete comment "consider using @set for edition number, etc..." since
1551 we now are doing so.
1552
15531998-12-30 Jesse Thilo <jthilo@gnu.org>
1554
1555 * configure.in:
1556 Use prototypes if the compiler understands them.
1557
1558 * NEWS: Document 1.26 highlights.
1559
1560 * Makefile.am: Require Automake 1.3 or later.
1561
1562 * acconfig.h:
1563 Use prototypes if the compiler understands them.
1564
15651998-12-29 Jesse Thilo <jthilo@gnu.org>
1566
1567 * src/version.c:
1568 Use VERSION symbol from automake for version number.
1569
15701998-12-29 Jesse Thilo <jthilo@gnu.org>
1571
1572 * acconfig.h, configure.in, version.cin:
1573 Use VERSION symbol from automake for version number.
1574
15751998-11-28 Jesse Thilo <jthilo@gnu.org>
1576
1577 * Makefile.am:
1578 Distribute original version of simple parser (bison.s1), not built
1579 version (bison.simple).
1580
15811998-11-28 Jesse Thilo <jthilo@gnu.org>
1582
1583 * doc/bison.texinfo: Add info dir entry.
1584
1585 * doc/bison.texinfo:
1586 Let automake put version number into documentation.
1587
15881998-11-26 Jesse Thilo <jthilo@gnu.org>
1589
1590 * src/bison.cld, src/build.com, src/vmshlp.mar:
1591 Add non-RCS files from /gd/gnu/bison.
1592
15931998-11-26 Jesse Thilo <jthilo@gnu.org>
1594
1595 * doc/bison.1:
1596 Document the BISON_HAIRY and BISON_SIMPLE variables.
1597
15981998-11-25 Jesse Thilo <jthilo@gnu.org>
1599
1600 * src/version.c: Build version.c automatically.
1601
1602 * src/reader.c:
1603 Fix token numbering (used to start at 258, not 257).
1604
1605 * src/system.h: Include config.h.
1606
1607 * src/getargs.c: Update bug report address.
1608
1609 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1610 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1611
16121998-11-25 Jesse Thilo <jthilo@gnu.org>
1613
1614 * Makefile.am:
1615 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1616
1617 * configure.in, version.cin:
1618 Build version.c automatically.
1619
1620 * AUTHORS: Add AUTHORS file.
1621
1622 * README: Update bug report address.
1623
1624 * bison.simple:
1625 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1626
1627 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1628 Add automake stuff.
1629
16301998-11-25 Jesse Thilo <jthilo@gnu.org>
1631
1632 * doc/bison.texinfo: Clean up some formatting.
1633
16341998-05-05 Richard Stallman <rms@gnu.org>
1635
1636 * doc/bison.texinfo:
1637 Explain better why to make a pure parser.
1638
16391998-01-05 Richard Stallman <rms@gnu.org>
1640
1641 * src/files.c (openfiles):
1642 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1643 find a temporary directory, if possible. Do not unlink files while
1644 they are open.
1645
16461997-08-25 Richard Stallman <rms@gnu.org>
1647
1648 * src/reader.c (stack_offset;):
1649 Change some warni to warns.
1650
1651 * src/lex.c (literalchar): Use warns, not warni.
1652
16531997-06-28 Richard Stallman <rms@gnu.org>
1654
1655 * src/bison.s1: Add a Bison version comment.
1656
1657 * src/main.c (fatal, warn, berror):
1658 Use program_name.
1659
16601997-06-28 Richard Stallman <rms@gnu.org>
1661
1662 * Makefile.in (bison_version): New variable.
1663 (dist): Use that variable.
1664 (bison.s1): Substitute the Bison version into bison.simple.
1665
1666 * bison.simple: Add a Bison version comment.
1667
16681997-06-18 Richard Stallman <rms@gnu.org>
1669
1670 * src/main.c (fatal, warn, berror):
1671 Make error messages standard.
1672 (toomany): Improve error message text.
1673
1674 * 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:
1675 new.h renamed to alloc.h.
1676
16771997-06-18 Richard Stallman <rms@gnu.org>
1678
1679 * Makefile.in: new.h renamed to alloc.h.
1680
16811997-05-24 Richard Stallman <rms@gnu.org>
1682
1683 * src/lex.c (literalchar):
1684 Fix the code for escaping \, " and '.
1685
1686 (lex): Avoid trouble when there are many chars
1687 to discard in a char literal with just several chars in it.
1688
16891997-05-17 Richard Stallman <rms@gnu.org>
1690
1691 * src/bison.s1:
1692 Use malloc, if using alloca is troublesome.
1693 (YYSTACK_USE_ALLOCA): New flag macro.
1694 Define it for some systems and compilers.
1695 (YYSTACK_ALLOC): New macro.
1696 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1697 If it was malloc'd, free it.
1698
16991997-05-17 Richard Stallman <rms@gnu.org>
1700
1701 * bison.simple:
1702 Use malloc, if using alloca is troublesome.
1703 (YYSTACK_USE_ALLOCA): New flag macro.
1704 Define it for some systems and compilers.
1705 (YYSTACK_ALLOC): New macro.
1706 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1707 If it was malloc'd, free it.
1708
17091997-04-23 Richard Stallman <rms@gnu.org>
1710
1711 * src/bison.s1:
1712 (alloca) [__hpux]: Always define as __builtin_alloca.
1713
17141997-04-23 Richard Stallman <rms@gnu.org>
1715
1716 * bison.simple:
1717 (alloca) [__hpux]: Always define as __builtin_alloca.
1718
17191997-04-22 Richard Stallman <rms@gnu.org>
1720
1721 * src/bison.s1:
1722 [__hpux]: Include alloca.h (right for HPUX 10)
1723 instead of declaring alloca (right for HPUX 9).
1724
1725 * src/bison.s1 (__yy_memcpy):
1726 Declare arg `count' as unsigned int.
1727 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1728
17291997-04-22 Richard Stallman <rms@gnu.org>
1730
1731 * bison.simple:
1732 [__hpux]: Include alloca.h (right for HPUX 10)
1733 instead of declaring alloca (right for HPUX 9).
1734
1735 * bison.simple (__yy_memcpy):
1736 Declare arg `count' as unsigned int.
1737 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1738
17391997-01-03 Richard Stallman <rms@gnu.org>
1740
1741 * src/allocate.c: [__STDC__ or _MSC_VER]:
1742 Declare calloc and realloc to return void *.
1743
17441997-01-02 Richard Stallman <rms@gnu.org>
1745
1746 * src/system.h:
1747 [_MSC_VER]: Include stdlib.h and process.h.
1748 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1749
1750 * src/main.c (main): Return FAILURE as a value.
1751 (printable_version): Declare arg as int, not char.
1752
17531997-01-02 Richard Stallman <rms@gnu.org>
1754
1755 * Makefile.in (dist):
1756 Explicitly check for symlinks, and copy them.
1757
17581996-12-19 Richard Stallman <rms@gnu.org>
1759
1760 * src/files.c:
1761 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1762
17631996-12-18 Paul Eggert <eggert@gnu.org>
1764
1765 * src/bison.s1 (yyparse):
1766 If __GNUC__ and YYPARSE_PARAM are both defined,
1767 declare yyparse to have a void * argument.
1768
17691996-12-18 Paul Eggert <eggert@gnu.org>
1770
1771 * bison.simple (yyparse):
1772 If __GNUC__ and YYPARSE_PARAM are both defined,
1773 declare yyparse to have a void * argument.
1774
17751996-12-17 Richard Stallman <rms@gnu.org>
1776
1777 * src/reduce.c (nbits): Add some casts.
1778
17791996-08-12 Richard Stallman <rms@gnu.org>
1780
1781 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1782
17831996-08-12 Richard Stallman <rms@gnu.org>
1784
1785 * bison.simple: Test _MSDOS as well as _MSDOS_.
1786
17871996-07-31 Richard Stallman <rms@gnu.org>
1788
1789 * src/bison.s1:
1790 [__sun && __i386]: Include alloca.h.
1791
17921996-07-31 Richard Stallman <rms@gnu.org>
1793
1794 * bison.simple:
1795 [__sun && __i386]: Include alloca.h.
1796
17971996-07-30 Richard Stallman <rms@gnu.org>
1798
1799 * src/bison.s1: Comment change.
1800
1801 * src/bison.s1: Test _MSDOS_, not MSDOS.
1802
18031996-07-30 Richard Stallman <rms@gnu.org>
1804
1805 * bison.simple: Comment change.
1806
1807 * bison.simple: Test _MSDOS_, not MSDOS.
1808
18091996-06-01 Richard Stallman <rms@gnu.org>
1810
1811 * 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:
1812 Insert `_' macro around many string constants.
1813
1814 * src/main.c:
1815 Insert `_' macro around many string constants.
1816
1817 (main): Call setlocale, bindtextdomain and textdomain.
1818
1819 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1820 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1821 [ENABLE_NLS]: Include libintl.h.
1822 [ENABLE_NLS] (gettext): Define.
1823 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1824 (N_, PACKAGE, LOCALEDIR): New macros.
1825
18261996-06-01 Richard Stallman <rms@gnu.org>
1827
1828 * POTFILES.in: New file.
1829
1830 * Makefile.in (allocate.o):
1831 Define target explicitly.
1832
1833 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1834 (LDFLAGS): Set to @LDFLAGS@.
1835 (configure): Run autoconf only if preceding `cd' succeeds.
1836 (bison.s1): Redirect output to temporary file then move the
1837 temporary to the target, rather than redirecting directly to bison.s1.
1838 (clean): Remove config.status and config.log.
1839 (distclean): Don't remove config.status here.
1840
18411996-05-12 Richard Stallman <rms@gnu.org>
1842
1843 * src/bison.s1:
1844 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1845
18461996-05-12 Richard Stallman <rms@gnu.org>
1847
1848 * bison.simple:
1849 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1850
18511996-05-11 Richard Stallman <rms@gnu.org>
1852
1853 * src/bison.s1 (__yy_memcpy):
1854 Really reorder the args, as was supposedly done on Feb 14 1995.
1855 (yyparse): Calls changed accordingly.
1856
18571996-05-11 Richard Stallman <rms@gnu.org>
1858
1859 * Makefile.in (dist): Don't use $(srcdir).
1860
1861 * bison.simple (__yy_memcpy):
1862 Really reorder the args, as was supposedly done on Feb 14 1995.
1863 (yyparse): Calls changed accordingly.
1864
18651996-01-27 Richard Stallman <rms@gnu.org>
1866
1867 * src/output.c (output_rule_data):
1868 Test YYERROR_VERBOSE in the conditional
1869 around the definition of ttyname.
1870
18711995-12-29 Richard Stallman <rms@gnu.org>
1872
1873 * src/bison.s1:
1874 Fix line numbers in #line commands.
1875
18761995-12-29 Richard Stallman <rms@gnu.org>
1877
1878 * bison.simple:
1879 Fix line numbers in #line commands.
1880
18811995-12-27 Richard Stallman <rms@gnu.org>
1882
1883 * src/bison.s1 (YYPARSE_PARAM_DECL):
1884 In C++, make it always null.
1885 (YYPARSE_PARAM_ARG): New macro.
1886 (yyparse): Use YYPARSE_PARAM_ARG.
1887
18881995-12-27 Richard Stallman <rms@gnu.org>
1889
1890 * bison.simple (YYPARSE_PARAM_DECL):
1891 In C++, make it always null.
1892 (YYPARSE_PARAM_ARG): New macro.
1893 (yyparse): Use YYPARSE_PARAM_ARG.
1894
18951995-11-29 Richard Stallman <rms@gnu.org>
1896
1897 * doc/bison.texinfo:
1898 Describe literal string tokens, %raw, %no_lines, %token_table.
1899
19001995-11-29 Daniel Hagerty <hag@gnu.org>
1901
1902 * doc/bison.texinfo: Fixed update date
1903
19041995-10-16 Richard Stallman <rms@gnu.org>
1905
1906 * src/version.c: Version 1.25.
1907
19081995-10-16 Richard Stallman <rms@gnu.org>
1909
1910 * NEWS: *** empty log message ***
1911
19121995-10-16 Richard Stallman <rms@gnu.org>
1913
1914 * doc/bison.1, doc/bison.rnh:
1915 Add new options.
1916
19171995-10-15 Richard Stallman <rms@gnu.org>
1918
1919 * src/vmsgetargs.c, src/getargs.c:
1920 Added -n, -k, and -raw switches.
1921 (noparserflag, toknumflag, rawtoknumflag): New variables.
1922
1923 * src/symtab.h (SALIAS):
1924 New #define for adding aliases to %token.
1925 (struct bucket): Added `alias' field.
1926
1927 * src/reduce.c (reduce_grammar):
1928 Revise error message.
1929 (print_notices): Remove final `.' from error message.
1930
1931 * src/reader.c (reader_output_yylsp):
1932 New function.
1933 (readgram): Use `#if 0' around code that accepted %command
1934 inside grammar rules: The documentation doesn't allow it,
1935 and it will fail since the %command processors scan for the next %.
1936 (parse_token_decl): Extended the %token
1937 declaration to allow a multi-character symbol as an alias.
1938 (parse_thong_decl): New function.
1939 (read_declarations): Added %thong declarations.
1940 (read_declarations): Handle NOOP to deal with allowing
1941 % declarations as another means to specify the flags.
1942 (readgram): Allow %prec prior to semantics embedded in a rule.
1943 (skip_to_char, read_declarations, copy_definition)
1944 (parse_token_decl, parse_start_decl, parse_type_decl)
1945 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1946 (get_type_name, copy_guard, copy_action, readgram)
1947 (get_type, packsymbols): Revised most error messages.
1948 Changed `fatal' to `warnxxx' to avoid aborting for error.
1949 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1950 (read_declarations): Improve the error message for
1951 an invalid character. Do not abort.
1952 (read_declarations, copy_guard, copy_action): Use
1953 printable_version to avoid unprintable characters in printed output.
1954 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1955 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1956 Allow the type of a non-terminal can be given
1957 more than once, as long as all specifications give the same type.
1958
1959 * src/output.c:
1960 (output_headers, output_trailers, output, output_gram)
1961 (output_rule_data): Implement noparserflag variable.
1962 Implement toknumflag variable.
1963 (output): Call reader_output_yylsp to output LTYPESTR.
1964
1965 * src/main.c (main):
1966 If reader sees an error, don't process the grammar.
1967 (fatals): Updated to not use VARARGS1.
1968 (printable_version, int_to_string, warn, warni, warns, warnss)
1969 (warnsss): New error reporting functions. Avoid abort for error.
1970
1971 * src/lex.h:
1972 Added THONG and NOOP for alias processing.
1973 Added SETOPT for the new code that allows setting options with %flags.
1974
1975 * src/lex.c:
1976 Include getopt.h. Add some extern decls.
1977 (safegetc): New function to deal with EOF gracefully.
1978 (literalchar); new function to deal with reading \ escapes.
1979 (lex): Use literalchar.
1980 (lex): Implemented "..." tokens.
1981 (literalchar, lex, parse_percent_token): Made tokenbuffer
1982 always contain the token. This includes growing the token
1983 buffer while reading an integer.
1984 (parse_percent_token): Replaced if-else statement with percent_table.
1985 (parse_percent_token): Added % declarations as another
1986 way to specify the flags -n, -l, and -r. Also added hooks for
1987 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1988 major changes to files.c.
1989 (lex) Retain in the incoming stream a character following
1990 an incorrect '/'.
1991 (skip_white_space, lex): Revised most error messages
1992 and changed fatal to warn to avoid aborting.
1993 (percent_table): Added %thong declarations.
1994
1995 * src/gram.h: Comment changes.
1996
1997 * src/files.c (openfiles, open_extra_files, done):
1998 Add faction flag
1999 and actfile file. Handle noparserflag. Both for -n switch.
2000
2001 * src/conflicts.c (resolve_sr_conflict):
2002 Remove use of alloca.
2003
20041995-06-01 Jim Meyering <meyering@gnu.org>
2005
2006 * doc/bison.texinfo: *** empty log message ***
2007
20081995-05-06 Richard Stallman <rms@gnu.org>
2009
2010 * src/bison.s1: Comment change.
2011
20121995-05-06 Richard Stallman <rms@gnu.org>
2013
2014 * bison.simple: Comment change.
2015
20161995-05-03 Richard Stallman <rms@gnu.org>
2017
2018 * src/version.c: Version now 1.24.
2019
2020 * src/bison.s1: Change distribution terms.
2021
2022 * src/version.c: Version now 1.23.
2023
20241995-05-03 Richard Stallman <rms@gnu.org>
2025
2026 * doc/bison.texinfo:
2027 Rewrite "Conditions for Using Bison".
2028 Update version to 1.24.
2029
20301995-05-03 Richard Stallman <rms@gnu.org>
2031
2032 * bison.simple: Change distribution terms.
2033
20341995-02-23 Richard Stallman <rms@gnu.org>
2035
2036 * src/files.c: Test __VMS_POSIX as well as VMS.
2037
20381995-02-14 Jim Meyering <meyering@gnu.org>
2039
2040 * src/bison.s1 (__yy_memcpy):
2041 Renamed from __yy_bcopy to avoid
2042 confusion. Reverse FROM and TO arguments to be consistent with
2043 those of memcpy.
2044
20451995-02-14 Jim Meyering <meyering@gnu.org>
2046
2047 * bison.simple (__yy_memcpy):
2048 Renamed from __yy_bcopy to avoid
2049 confusion. Reverse FROM and TO arguments to be consistent with
2050 those of memcpy.
2051
20521994-11-10 David J. MacKenzie <djm@gnu.org>
2053
2054 * NEWS: reformat
2055
2056 * NEWS: New file.
2057
2058 * Makefile.in (DISTFILES): Include NEWS.
2059
2060 * Makefile.in (DISTFILES):
2061 Include install-sh, not install.sh.
2062
2063 * configure.in: Update to Autoconf v2 macro names.
2064
20651994-10-05 David J. MacKenzie <djm@gnu.org>
2066
2067 * Makefile.in: fix typo
2068
2069 * Makefile.in (prefix, exec_prefix):
2070 Let configure set them.
2071
20721994-09-28 David J. MacKenzie <djm@gnu.org>
2073
2074 * Makefile.in: Set datadir to $(prefix)/share.
2075
20761994-09-15 Richard Stallman <rms@gnu.org>
2077
2078 * src/bison.s1:
2079 Update copyright notice and GPL version.
2080
20811994-09-15 Richard Stallman <rms@gnu.org>
2082
2083 * bison.simple:
2084 Update copyright notice and GPL version.
2085
20861994-07-12 Richard Stallman <rms@gnu.org>
2087
2088 * src/reduce.c, src/reader.c:
2089 entered into RCS
2090
20911994-05-05 David J. MacKenzie <djm@gnu.org>
2092
2093 * Makefile.in: entered into RCS
2094
20951994-03-26 Richard Stallman <rms@gnu.org>
2096
2097 * src/bison.s1: entered into RCS
2098
20991994-03-26 Richard Stallman <rms@gnu.org>
2100
2101 * bison.simple: entered into RCS
2102
21031994-03-25 Richard Stallman <rms@gnu.org>
2104
2105 * src/main.c: entered into RCS
2106
21071994-03-24 Richard Stallman <rms@gnu.org>
2108
2109 * src/conflicts.c: entered into RCS
2110
21111994-01-02 Richard Stallman <rms@gnu.org>
2112
2113 * Makefile.in: *** empty log message ***
2114
21151993-11-21 Richard Stallman <rms@gnu.org>
2116
2117 * src/bison.s1: *** empty log message ***
2118
21191993-11-21 Richard Stallman <rms@gnu.org>
2120
2121 * doc/bison.texinfo: entered into RCS
2122
2123 * doc/bison.texinfo: *** empty log message ***
2124
21251993-11-21 Richard Stallman <rms@gnu.org>
2126
2127 * bison.simple: *** empty log message ***
2128
21291993-10-25 David J. MacKenzie <djm@gnu.org>
2130
2131 * doc/bison.texinfo: *** empty log message ***
2132
21331993-10-19 Richard Stallman <rms@gnu.org>
2134
2135 * src/bison.s1: *** empty log message ***
2136
21371993-10-19 Richard Stallman <rms@gnu.org>
2138
2139 * bison.simple: *** empty log message ***
2140
21411993-10-14 Richard Stallman <rms@gnu.org>
2142
2143 * src/bison.s1: *** empty log message ***
2144
21451993-10-14 Richard Stallman <rms@gnu.org>
2146
2147 * bison.simple: *** empty log message ***
2148
21491993-09-14 David J. MacKenzie <djm@gnu.org>
2150
2151 * doc/bison.texinfo: *** empty log message ***
2152
21531993-09-13 Noah Friedman <friedman@gnu.org>
2154
2155 * Makefile.in: *** empty log message ***
2156
21571993-09-10 Richard Stallman <rms@gnu.org>
2158
2159 * src/conflicts.c: *** empty log message ***
2160
2161 * src/system.h: entered into RCS
2162
21631993-09-10 Richard Stallman <rms@gnu.org>
2164
2165 * doc/bison.1: entered into RCS
2166
21671993-09-06 Noah Friedman <friedman@gnu.org>
2168
2169 * src/version.c: entered into RCS
2170
21711993-09-06 Noah Friedman <friedman@gnu.org>
2172
2173 * Makefile.in: *** empty log message ***
2174
21751993-07-30 David J. MacKenzie <djm@gnu.org>
2176
2177 * Makefile.in: *** empty log message ***
2178
21791993-07-24 Richard Stallman <rms@gnu.org>
2180
2181 * src/bison.s1: *** empty log message ***
2182
21831993-07-24 Richard Stallman <rms@gnu.org>
2184
2185 * bison.simple: *** empty log message ***
2186
21871993-07-08 David J. MacKenzie <djm@gnu.org>
2188
2189 * Makefile.in: *** empty log message ***
2190
21911993-07-04 Richard Stallman <rms@gnu.org>
2192
2193 * src/bison.s1: *** empty log message ***
2194
21951993-07-04 Richard Stallman <rms@gnu.org>
2196
2197 * bison.simple: *** empty log message ***
2198
21991993-06-26 David J. MacKenzie <djm@gnu.org>
2200
2201 * src/getargs.c: entered into RCS
2202
22031993-06-26 David J. MacKenzie <djm@gnu.org>
2204
2205 * doc/bison.texinfo: *** empty log message ***
2206
2207 * doc/bison.1: New file.
2208
22091993-06-25 Richard Stallman <rms@gnu.org>
2210
2211 * src/getargs.c: New file.
2212
22131993-06-16 Richard Stallman <rms@gnu.org>
2214
2215 * src/bison.s1: *** empty log message ***
2216
22171993-06-16 Richard Stallman <rms@gnu.org>
2218
2219 * bison.simple: *** empty log message ***
2220
22211993-06-03 Richard Stallman <rms@gnu.org>
2222
2223 * src/bison.s1: New file.
2224
22251993-06-03 Richard Stallman <rms@gnu.org>
2226
2227 * doc/bison.texinfo: *** empty log message ***
2228
22291993-06-03 Richard Stallman <rms@gnu.org>
2230
2231 * bison.simple: New file.
2232
22331993-05-19 Richard Stallman <rms@gnu.org>
2234
2235 * doc/bison.texinfo: New file.
2236
22371993-05-07 Noah Friedman <friedman@gnu.org>
2238
2239 * Makefile.in: *** empty log message ***
2240
22411993-04-28 Noah Friedman <friedman@gnu.org>
2242
2243 * src/reader.c: *** empty log message ***
2244
22451993-04-23 Noah Friedman <friedman@gnu.org>
2246
2247 * src/alloc.h: entered into RCS
2248
22491993-04-20 David J. MacKenzie <djm@gnu.org>
2250
2251 * src/version.c: *** empty log message ***
2252
2253 * src/files.c, src/allocate.c:
2254 entered into RCS
2255
2256 * src/reader.c: *** empty log message ***
2257
2258 * src/lex.c: entered into RCS
2259
2260 * src/conflicts.c: New file.
2261
2262 * src/symtab.c: entered into RCS
2263
2264 * src/alloc.h: New file.
2265
2266 * src/LR0.c: entered into RCS
2267
22681993-04-18 Noah Friedman <friedman@gnu.org>
2269
2270 * src/reader.c: New file.
2271
2272 * src/version.c: *** empty log message ***
2273
22741993-04-18 Noah Friedman <friedman@gnu.org>
2275
2276 * Makefile.in: *** empty log message ***
2277
22781993-04-17 Noah Friedman <friedman@gnu.org>
2279
2280 * Makefile.in: *** empty log message ***
2281
22821993-04-15 Richard Stallman <rms@gnu.org>
2283
2284 * src/main.c, src/files.c:
2285 New file.
2286
22871993-04-15 Noah Friedman <friedman@gnu.org>
2288
2289 * configure.in: entered into RCS
2290
2291 * configure.in: *** empty log message ***
2292
2293 * configure.in: New file.
2294
22951993-04-14 Richard Stallman <rms@gnu.org>
2296
2297 * Makefile.in: New file.
2298
22991993-04-13 Richard Stallman <rms@gnu.org>
2300
2301 * src/version.c: New file.
2302
23031993-03-25 Richard Stallman <rms@gnu.org>
2304
2305 * src/output.c: entered into RCS
2306
23071992-09-25 Richard Stallman <rms@gnu.org>
2308
2309 * configure.bat: entered into RCS
2310
23111992-06-22 Richard Stallman <rms@gnu.org>
2312
2313 * src/vmsgetargs.c: entered into RCS
2314
23151992-06-22 Richard Stallman <rms@gnu.org>
2316
2317 * doc/bison.rnh: entered into RCS
2318
23191992-04-20 David J. MacKenzie <djm@gnu.org>
2320
2321 * README: entered into RCS
2322
23231992-01-22 Richard Stallman <rms@gnu.org>
2324
2325 * src/machine.h: entered into RCS
2326
23271991-12-21 Richard Stallman <rms@gnu.org>
2328
2329 * src/lalr.c, src/closure.c:
2330 entered into RCS
2331
23321991-12-20 Richard Stallman <rms@gnu.org>
2333
2334 * src/state.h: entered into RCS
2335
23361991-12-18 Richard Stallman <rms@gnu.org>
2337
2338 * src/print.c, src/nullable.c, src/derives.c:
2339 entered into RCS
2340
23411991-11-03 David J. MacKenzie <djm@gnu.org>
2342
2343 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2344 entered into RCS
2345
23461988-09-09 Richard Stallman <rms@gnu.org>
2347
2348 * src/bison.hairy: entered into RCS
2349
23501987-12-16 Richard Stallman <rms@gnu.org>
2351
2352 * REFERENCES: entered into RCS