]> git.saurik.com Git - bison.git/blob - ChangeLog
* src/vcg.h (graph_s): color, textcolor, bordercolor are now
[bison.git] / ChangeLog
1 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
2
3 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
4 enum color_e.
5 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
6 to `normal'.
7 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
8 * src/lex.h: Adjust prototype.
9 (token_t): Add `tok_undef'.
10 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
11 (parse_percent_token): Now returns token_t.
12 Add default statement in switch.
13 (lex): Separate `c' as an input variable, from the token_t result
14 part.
15 (unlexed): Is a token_t.
16
17 2001-09-10 Akim Demaille <akim@epita.fr>
18
19 * configure.in: Bump to 1.29a.
20
21 2001-09-07 Akim Demaille <akim@epita.fr>
22
23 Version 1.29.
24
25 2001-08-30 Akim Demaille <akim@epita.fr>
26
27 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
28 * m4/atconfig.m4: Remove.
29 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
30 * tests/bison: New.
31 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
32 m4_if, m4_patsubst, and m4_regexp.
33 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
34 `input' file instead of echo.
35
36 2001-08-29 Akim Demaille <akim@epita.fr>
37
38 Bump to 1.28e.
39
40 2001-08-29 Akim Demaille <akim@epita.fr>
41
42 Version 1.28d.
43
44 2001-08-29 Paul Eggert <eggert@twinsun.com>
45
46 * src/bison.simple (yyparse): Don't take the address of an
47 item before the start of an array, as that doesn't conform to
48 the C Standard.
49
50 2001-08-29 Robert Anisko <anisko_r@epita.fr>
51
52 * doc/bison.texinfo (Location Tracking Calc): New node.
53
54 2001-08-29 Paul Eggert <eggert@twinsun.com>
55
56 * src/output.c (output): Do not define const, as this now
57 causes more problems than it cures.
58
59 2001-08-29 Akim Demaille <akim@epita.fr>
60
61 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
62 the nodes.
63 Be sure to tag the `detailmenu'.
64
65 2001-08-29 Akim Demaille <akim@epita.fr>
66
67 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
68 download in a tmp dir.
69
70 2001-08-28 Marc Autret <autret_m@epita.fr>
71
72 * config/depcomp: New file.
73
74 2001-08-28 Marc Autret <autret_m@epita.fr>
75
76 * doc/bison.1 (mandoc): Adjust.
77 From Juan Manuel Guerrero.
78
79 2001-08-28 Marc Autret <autret_m@epita.fr>
80
81 * src/print_graph.c (print_state): Fix.
82
83 2001-08-27 Marc Autret <autret_m@epita.fr>
84
85 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
86 char * members.
87 Echo modifications to the functions prototypes.
88 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
89
90 2001-08-27 Marc Autret <autret_m@epita.fr>
91
92 * src/vcg.c: Include `xalloc.h'.
93 (add_colorentry): New.
94 (add_classname): New.
95 (add_infoname): New.
96 * src/vcg.h: Add new prototypes.
97
98 2001-08-27 Akim Demaille <akim@epita.fr>
99
100 * Makefile.maint: Sync. again with CVS Autoconf.
101
102 2001-08-27 Akim Demaille <akim@epita.fr>
103
104 * Makefile.maint: Formatting changes.
105 (po-update, cvs-update, update): New targets.
106 (AMTAR): Remove.
107
108 2001-08-27 Akim Demaille <akim@epita.fr>
109
110 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
111 * Makefile.maint: Sync. with CVS Autoconf.
112
113 2001-08-27 Marc Autret <autret_m@epita.fr>
114
115 * src/vcg.h (struct infoname_s): New.
116 (struct colorentry_s): New.
117 (graph_s): New fields {vertical,horizontal}_order in structure.
118 Add `infoname' field.
119 Add `colorentry' field;
120 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
121 (G_HORIZONTAL_ORDER): New.
122 (G_INFONAME): New.
123 (G_COLORENTRY): New.
124 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
125 Add output of `infoname'.
126 Add output of `colorentry'.
127
128 2001-08-27 Marc Autret <autret_m@epita.fr>
129
130 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
131 This one shadowed a global parameter.
132
133 2001-08-24 Marc Autret <autret_m@epita.fr>
134
135 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
136 instead of `unsigned'.
137 (print_state): Do not call obstack_object_size () in obstack_grow ()
138 to avoid macro variables shadowing.
139
140 2001-08-23 Marc Autret <autret_m@epita.fr>
141
142 * src/lex.c (percent_table): Typo: s/naem/name/.
143 Add graph option.
144 Normalize new options declarations.
145
146 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
147
148 * tests/suite.at: Exercise %header_extension and %source_extension.
149
150 2001-08-16 Marc Autret <autret_m@epita.fr>
151
152 * src/reader.c (parse_dquoted_param): New.
153 (parse_header_extension_decl): Use it.
154 (parse_source_extension_decl): Likewise.
155
156 2001-08-16 Marc Autret <autret_m@epita.fr>
157
158 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
159 (get_xxxx_str): Use assert () instead of complain ().
160 Remove return invokations in default cases.
161 (get_decision_str): Modify default behaviour. Remove second argument.
162 Echo modifications on calls.
163 (output_graph): Fix.
164
165 2001-08-16 Marc Autret <autret_m@epita.fr>
166
167 * src/getargs.c (usage): Update with ``-g, --graph''.
168
169 2001-08-16 Marc Autret <autret_m@epita.fr>
170
171 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
172 (Option Cross Key): Likewise.
173 * doc/bison.1: Update.
174
175 2001-08-15 Akim Demaille <akim@epita.fr>
176
177 Version 1.28c.
178
179 2001-08-15 Marc Autret <autret_m@epita.fr>
180
181 * src/reader.c (readgram): Indent output macro YYSTYPE.
182 (packsymbols): Likewise.
183 (output_token_defines): Likewise.
184 * src/files.c: Standardize.
185 (compute_header_macro): New.
186 (defines_obstack_save): New. Use compute_header_macro.
187 (output_files): Update. Use defines_obstack_save.
188
189 2001-08-15 Akim Demaille <akim@epita.fr>
190
191 * doc/bison.texinfo (Table of Symbols): Document
192 YYSTACK_USE_ALLOCA.
193
194 2001-08-15 Akim Demaille <akim@epita.fr>
195
196 * missing: Update from CVS Automake.
197 * config/config.guess, config/config.sub, config/texinfo.tex:
198 Update from gnu.org.
199
200 2001-08-15 Akim Demaille <akim@epita.fr>
201
202 * Makefile.maint: Sync with CVS Autoconf.
203
204 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
205
206 * doc/bison.texinfo: Include GNU Free Documentation License from
207 `fdl.texi'.
208 * doc/fdl.texi: Add to package.
209
210 2001-08-14 Marc Autret <autret_m@epita.fr>
211
212 Turn on %{source,header}_extension features.
213
214 * src/lex.c (percent_table): Un-CPP out header_extension and
215 source_extension.
216 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
217 (compute_exts_from_src): Remove conditions. It restores priorities
218 between options.
219
220 2001-08-14 Marc Autret <autret_m@epita.fr>
221
222 * src/files.c (compute_base_names): Add extensions computing when
223 `--file-prefix' used.
224 Standardize function calls.
225
226 2001-08-13 Marc Autret <autret_m@epita.fr>
227
228 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
229 defining it (defined but null disables alloca).
230
231 2001-08-13 Marc Autret <autret_m@epita.fr>
232
233 * src/bison.simple (_yy_memcpy): CPP reformat.
234
235 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
236
237 * tests/atconfig.in (CPPFLAGS): Fix.
238
239 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
240
241 * doc/bison.texinfo: Include GNU General Public License from
242 `gpl.texi'.
243 * doc/gpl.texi: Add to package.
244
245 2001-08-10 Marc Autret <autret_m@epita.fr>
246
247 * src/print_graph.h: Fix.
248 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
249
250 2001-08-10 Akim Demaille <akim@epita.fr>
251
252 * src/system.h: Provide default declarations for stpcpy, strndup,
253 and strnlen.
254
255 2001-08-10 Robert Anisko <anisko_r@epita.fr>
256
257 * doc/bison.texinfo (Locations): Update @$ stuff.
258
259 2001-08-09 Robert Anisko <anisko_r@epita.fr>
260
261 * src/bison.simple (YYLLOC_DEFAULT): Update.
262 (yyparse): Adjust.
263
264 2001-08-08 Marc Autret <autret_m@epita.fr>
265
266 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
267 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
268 Reported by Fabrice Bauzac.
269
270 2001-08-08 Marc Autret <autret_m@epita.fr>
271
272 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
273 * src/vcg.c (output_node): Fix.
274 * src/vcg.h: Cleanup.
275 * src/print_graph.c: Add comments.
276 (node_output_size): New global variable. Simplify the formatting of
277 the VCG graph output.
278 (print_actions): Unused code is now used. It notifies the final state
279 and no action states in the VCG graph. It also give the reduce actions.
280 The `shift and goto' edges are red and the `go to state' edges are
281 blue.
282 Get the current node name and node_obstack by argument.
283 (node_obstack): New variable.
284 (print_state): Manage node_obstack.
285 (print_core): Use node_obstack given by argument.
286 A node is not only computed here but in print_actions also.
287 (print_graph): CPP out useless code instead of commenting it.
288
289 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
290
291 * tests/atconfig.in (CPPFLAGS): Fix.
292
293 2001-08-07 Akim Demaille <akim@epita.fr>
294
295 * src/print_graph.c (quote): New.
296 (print_core): Use it.
297
298 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
299
300 * src/vcg.c (complain.h): Include it.
301 Unepitaize `return' invocations.
302 [NDEBUG] (main): Remove.
303 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
304 * src/files.c (open_files): Initialize graph_obstack.
305 * src/print_graph.c (print_actions): CPP out useless code.
306 (print_core): Don't output the last `\n' in labels.
307 Use `quote'.
308 * src/files.c (output_files): Output the VCG file.
309 * src/main.c (main): Invoke print_graph ();
310
311 2001-08-06 Marc Autret <autret_m@epita.fr>
312
313 Automaton VCG graph output.
314 Using option ``-g'' or long option ``--graph'', you can generate
315 a gram_filename.vcg file containing a VCG description of the LALR (1)
316 automaton of your grammar.
317
318 * src/main.c: Call to print_graph() function.
319 * src/getargs.h: Update.
320 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
321 (graph_flag): New flag.
322 (longopts): Update.
323 (getargs): Add case `g'.
324 * src/files.c (graph_obstack): New obstack struct.
325 (open_files): Initialize new obstack.
326 (output_files): Saves graph_obstack if required.
327 * src/files.h (graph_obstack): New extern declaration.
328 * src/Makefile.am: Add new source files.
329
330 2001-08-06 Marc Autret <autret_m@epita.fr>
331
332 * src/print_graph.c, src/print_graph.h (graph): New.
333 * src/vcg.h: New file.
334 * src/vcg.c: New file, VCG graph handling.
335
336 2001-08-06 Marc Autret <autret_m@epita.fr>
337
338 Add of %source_extension and %header_extension which specify
339 the source or/and the header output file extension.
340
341 * src/files.c (compute_base_names): Remove initialisation of
342 src_extension and header_extension.
343 (compute_exts_from_gf): Update.
344 (compute_exts_from_src): Update.
345 (output_files): Update.
346 * src/reader.c (parse_header_extension_decl): New.
347 (parse_source_extension_decl): New.
348 (read_declarations): New case statements for the new tokens.
349 * src/lex.c (percent_table): Add entries for %source_extension
350 and %header_extension.
351 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
352
353 2001-08-06 Marc Autret <autret_m@epita.fr>
354
355 * configure.in: Bump to 1.28c.
356 * doc/bison.texinfo: Texinfo thingies.
357
358 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
359
360 * tests/atconfig.in (CPPFLAGS): Add.
361 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
362
363 2001-08-03 Akim Demaille <akim@epita.fr>
364
365 Version 1.28b.
366
367 2001-08-03 Akim Demaille <akim@epita.fr>
368
369 * tests/Makefile.am (check-local): Ship testsuite.
370 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
371 Include `string.h'.
372
373 2001-08-03 Akim Demaille <akim@epita.fr>
374
375 * configure.in: Try using -Wformat when compiling.
376
377 2001-08-03 Akim Demaille <akim@epita.fr>
378
379 * configure.in: Bump to 1.28b.
380
381 2001-08-03 Akim Demaille <akim@epita.fr>
382
383 * src/complain.c: Adjust strerror_r portability issues.
384
385 2001-08-03 Akim Demaille <akim@epita.fr>
386
387 Version 1.28a.
388
389 2001-08-03 Akim Demaille <akim@epita.fr>
390
391 * src/getargs.c, src/getarg.h (skeleton)): Constify.
392 * src/lex.c (literalchar): Avoid name clashes on `buf'.
393 * src/getargs.c: Include complain.h.
394 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
395 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
396
397 2001-08-03 Akim Demaille <akim@epita.fr>
398
399 * src/reader.c (readgram): Display hidden chars in error messages.
400
401 2001-08-03 Akim Demaille <akim@epita.fr>
402
403 Update to gettext 0.10.39.
404
405 2001-08-03 Akim Demaille <akim@epita.fr>
406
407 * lib/strspn.c: New.
408
409 2001-08-01 Marc Autret <autret_m@epita.fr>
410
411 * doc/bison.texinfo: Update.
412 * doc/bison.1 (mandoc): Update.
413 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
414 * src/files.c: Support output files extensions computing.
415 (src_extension): New static variable.
416 (header_extension): New static variable.
417 (tr): New function.
418 (get_extension_index): New function, gets the index of an extension
419 filename in a string.
420 (compute_exts_from_gf): New function, computes extensions from the
421 grammar file extension.
422 (compute_exts_from_src): New functions, computes extensions from the
423 C source file extension, file given by ``-o'' option.
424 (compute_base_names): Update.
425 (output_files): Update.
426
427 2001-08-01 Robert Anisko <anisko_r@epita.fr>
428
429 * doc/bison.texi: Document @$.
430 (Locations): New section.
431
432 2001-07-18 Akim Demaille <akim@epita.fr>
433
434 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
435 * config/prev-version.txt, config/move-if-change: New.
436 * Makefile.am: Adjust.
437
438 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
439
440 * src/bison.simple (yyparse): Suppress warning `comparaison
441 between signed and unsigned'.
442
443 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
444
445 * src/getargs.h (raw_flag): Remove.
446 * src/getargs.c: Die on `-r'/`--raw'.
447 * src/lex.c (parse_percent_token): Die on `%raw'.
448 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
449 * tests/calc.at: Suppress test with option `--raw'.
450
451 2001-07-14 Akim Demaille <akim@epita.fr>
452
453 * config/: New.
454 * configure.in: Require Autoconf 2.50.
455 Update to gettext 0.10.38.
456
457 2001-03-16 Akim Demaille <akim@epita.fr>
458
459 * doc/bison.texinfo: ANSIfy the examples.
460
461 2001-03-16 Akim Demaille <akim@epita.fr>
462
463 * getargs.c (skeleton): New variable.
464 (longopts): --skeleton is a new option.
465 (shortopts, getargs): -S is a new option.
466 * getargs.h: Declare skeleton.
467 * output.c (output_parser): Use it.
468
469 2001-03-16 Akim Demaille <akim@epita.fr>
470
471 * m4/strerror_r.m4: New.
472 * m4/error.m4: Run AC_FUNC_STRERROR_R.
473 * lib/error.h, lib/error.c: Update.
474
475 2001-03-16 Akim Demaille <akim@epita.fr>
476
477 * src/getargs.c (longopts): Clean up.
478
479 2001-02-21 Akim Demaille <akim@epita.fr>
480
481 * src/reader.c (gensym): `gensym_count' is your own.
482 Use a static buf to create the symbol name, as token_buffer is no
483 longer a buffer.
484
485 2001-02-08 Akim Demaille <akim@epita.fr>
486
487 * src/conflicts.c (conflict_report): Be sure not to append to res
488 between two calls, which could happen if both first sprintf were
489 skipped, but not the first cp += strlen.
490
491 2001-02-08 Akim Demaille <akim@epita.fr>
492
493 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
494 New, from fileutils 4.0.37.
495 * configure.in: Require Autoconf 2.49c. I took some time before
496 making this decision. This is the only way out for portability
497 issues in Bison, it would mean way too much duplicate effort to
498 import in Bison features implemented in 2.49c since 2.13.
499 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
500
501 2001-02-02 Akim Demaille <akim@epita.fr>
502
503 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
504 * lib/xalloc.h, lib/xmalloc.c: Update.
505
506 2001-01-19 Akim Demaille <akim@epita.fr>
507
508 Get rid of the ad hoc handling of token_buffer in the scanner: use
509 the obstacks.
510
511 * src/lex.c (token_obstack): New.
512 (init_lex): Initialize it. No longer call...
513 (grow_token_buffer): this. Remove it.
514 Adjust all the places which used it to use the obstack.
515
516 2001-01-19 Akim Demaille <akim@epita.fr>
517
518 * src/lex.h: Rename all the tokens:
519 s/\bENDFILE\b/tok_eof/g;
520 s/\bIDENTIFIER\b/tok_identifier/g;
521 etc.
522 Let them be enums, not #define, to ease debugging.
523 Adjust all the code.
524
525 2001-01-18 Akim Demaille <akim@epita.fr>
526
527 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
528 * src/lex.c (maxtoken, grow_token_buffer): Static.
529
530 2001-01-18 Akim Demaille <akim@epita.fr>
531
532 Since we now use obstacks, more % directives can be enabled.
533
534 * src/lex.c (percent_table): Also accept `%yacc',
535 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
536 `%debug'.
537 Handle the actions for `%semantic_parser' and `%pure_parser' here,
538 instead of returning a token.
539 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
540 * src/reader.c (read_declarations): Adjust.
541 * src/files.c (open_files): Don't call `compute_base_names', don't
542 compute `attrsfile' since they depend upon data which might be
543 *in* the input file now.
544 (output_files): Do it here.
545 * src/output.c (output_headers): Document the fact that this patch
546 introduces a guaranteed SEGV for semantic parsers.
547 * doc/bison.texinfo: Document them.
548 * tests/suite.at: Exercise these %options.
549
550 2000-12-20 Akim Demaille <akim@epita.fr>
551
552 Also handle the output file (--verbose) with obstacks.
553
554 * files.c (foutput): Remove.
555 (output_obstack): New.
556 Adjust all dependencies.
557 * src/conflicts.c: Return a string.
558 * src/system.h (obstack_grow_string): Rename as...
559 (obstack_sgrow): this. Be ready to work with non literals.
560 (obstack_fgrow4): New.
561
562 2000-12-20 Akim Demaille <akim@epita.fr>
563
564 * src/files.c (open_files): Fix the computation of short_base_name
565 in the case of `-o foo.tab.c'.
566
567 2000-12-20 Akim Demaille <akim@epita.fr>
568
569 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
570 (copy_dollar): Now that everything uses obstacks, get rid of the
571 FILE * parameters.
572
573 2000-12-20 Akim Demaille <akim@epita.fr>
574
575 * src/files.c (open_files): Actually the `.output' file is based
576 on the short_base_name, not base_name.
577 * tests/suite.at (Checking output file names): Adjust.
578
579 2000-12-20 Akim Demaille <akim@epita.fr>
580
581 * src/bison.s1: Remove, we now use directly...
582 * src/bison.simple: this.
583 * src/Makefile.am: Use pkgdata instead of data.
584
585 2000-12-20 Akim Demaille <akim@epita.fr>
586
587 * src/files.c (guard_obstack): New.
588 (open_files): Initialize it.
589 (output_files): Dump it...
590 * src/files.h: Export it.
591 * src/reader.c (copy_guard): Use it.
592
593 2000-12-19 Akim Demaille <akim@epita.fr>
594
595 * src/files.c (outfile, defsfile, actfile): Removed as global
596 vars.
597 (open_files): Don't compute them.
598 (output_files): Adjust.
599 (base_name, short_base_name): Be global.
600 Adjust dependencies.
601
602 2000-12-19 Akim Demaille <akim@epita.fr>
603
604 * src/files.c (strsuffix): New.
605 (stringappend): Be just like strcat but allocate.
606 (base_names): Eve out from open_files.
607 Try to simplify the rather hairy computation of base_name and
608 short_base_name.
609 (open_files): Use it.
610 * tests/suite.at (Checking output file names): New test.
611
612 2000-12-19 Akim Demaille <akim@epita.fr>
613
614 * src/system.h (obstack_grow_literal_string): Rename as...
615 (obstack_grow_string): this.
616 * src/output.c (output_parser): Recognize `%% actions' instead of
617 `$'.
618 * src/bison.s1: s/$/%% actions/.
619 * src/bison.hairy: Likewise.
620
621 2000-12-19 Akim Demaille <akim@epita.fr>
622
623 * src/output.c (output_parser): Compute the `#line' lines when
624 there are.
625 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
626 Suggested by Hans Aberg.
627
628 2000-12-19 Akim Demaille <akim@epita.fr>
629
630 Let the handling of the skeleton files be local to the procedures
631 that use it.
632
633 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
634 longer static.
635 (fparser, open_extra_files): Remove.
636 (open_files, output_files): Don't take care of fparser.
637 * src/files.h: Adjust.
638 * src/output.c (output_parser): Open and close the file to the
639 skeleton.
640 * src/reader.c (read_declarations): When %semantic_parser, open
641 fguard.
642
643 2000-12-19 Akim Demaille <akim@epita.fr>
644
645 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
646 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
647
648 2000-12-19 Akim Demaille <akim@epita.fr>
649
650 * src/files.c (open_files): Yipee! We no longer need all the code
651 looking for `/tmp' since we have no tmp file.
652
653 2000-12-19 Akim Demaille <akim@epita.fr>
654
655 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
656 New macros.
657 * src/files.c (open_files): Less dependency on MSDOS etc.
658
659 2000-12-14 Akim Demaille <akim@epita.fr>
660
661 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
662 Provide a default definition.
663 Use it when executing the default @ action.
664 * src/reader.c (reader_output_yylsp): No longer include
665 `timestamp' and `text' in the default YYLTYPE.
666
667 2000-12-12 Akim Demaille <akim@epita.fr>
668
669 * src/reader.c (copy_definition, parse_union_decl, copy_action)
670 (copy_guard): Quote the file names.
671 Reported by Laurent Mascherpa.
672
673 2000-12-12 Akim Demaille <akim@epita.fr>
674
675 * src/output.c (output_headers, output_program, output): Be sure
676 to escape special characters when outputting filenames.
677 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
678 (output_headers): Don't depend on them, Use ACTSTR.
679
680 2000-11-17 Akim Demaille <akim@epita.fr>
681
682 * lib/obstack.h: Formatting changes.
683 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
684 prevents type checking.
685 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
686 cast the value to (void *): assigning a `foo *' to a `void *'
687 variable is valid.
688 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
689 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
690 append characters.
691
692 2000-11-17 Akim Demaille <akim@epita.fr>
693
694 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
695 as...
696 (suite.m4, regression.m4, calc.m4): these.
697 * tests/atgeneral.m4: Update from CVS Autoconf.
698
699 2000-11-17 Akim Demaille <akim@epita.fr>
700
701 * tests/regression.m4 (%union and --defines): New test,
702 demonstrating a current bug in the obstack implementation.
703
704 2000-11-17 Akim Demaille <akim@epita.fr>
705
706 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
707 macros.
708 Use them to declare the variables which are global or local to
709 `yyparse'.
710
711 2000-11-17 Akim Demaille <akim@epita.fr>
712
713 * acconfig.h: Remove, no longer used.
714
715 2000-11-07 Akim Demaille <akim@epita.fr>
716
717 * src: s/Copyright (C)/Copyright/g.
718
719 2000-11-07 Akim Demaille <akim@epita.fr>
720
721 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
722 defining.
723 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
724
725 2000-11-07 Akim Demaille <akim@epita.fr>
726
727 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
728 Merge in a single CPP if/else.
729
730 2000-11-07 Akim Demaille <akim@epita.fr>
731
732 * src/output.c (output): Remove useless variables.
733 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
734 argument `data' for consistency with the prototypes.
735 Qualify it `const'.
736 (obstack_copy, obstack_copy0): Rename the second argument as
737 `address' for consistency. Qualify it `const'.
738 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
739 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
740 `const' their input argument (`data' or `address').
741 Adjust the corresponding macros to include `const' in casts.
742
743 2000-11-03 Akim Demaille <akim@epita.fr>
744
745 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
746 s/PFILE1/BISON_HAIRY/.
747 Adjust dependencies.
748
749 2000-11-03 Akim Demaille <akim@epita.fr>
750
751 For some reason, this was not applied.
752
753 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
754 `unlink': it's no longer used.
755
756 2000-11-03 Akim Demaille <akim@epita.fr>
757
758 * src/files.c (skeleton_find): New function, eved out of...
759 (open_files, open_extra_files): here.
760
761 2000-11-03 Akim Demaille <akim@epita.fr>
762
763 Don't use `atexit'.
764
765 * src/files.c (obstack_save): New function.
766 (done): Rename as...
767 (output_files): this.
768 Use `obstack_save'.
769 * src/main.c (main): Don't use `atexit' to register `done', since
770 it no longer has to remove tmp files, just call `output_files'
771 when there are no errors.
772
773 2000-11-02 Akim Demaille <akim@epita.fr>
774
775 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
776 `unlink': it's no longer used.
777 * src/files.h: Formatting changes.
778
779 2000-11-02 Akim Demaille <akim@epita.fr>
780
781 Remove the last uses of mktemp and unlink/delete.
782
783 * src/files.c (fdefines, ftable): Removed.
784 (defines_ostack, table_obstack): New.
785 Adjust dependencies of the former into uses of the latter.
786 * src/output.c (output_short_or_char_table, output_short_table):
787 Convert to using obstacks.
788 * src/reader.c (copy_comment2): Accept one FILE * and two
789 obstacks.
790 (output_token_defines, reader_output_yylsp): Use obstacks.
791 * src/system.h (obstack_fgrow3): New.
792
793 2000-11-01 Akim Demaille <akim@epita.fr>
794
795 Change each use of `fattrs' into a use of `attrs_obstack'.
796
797 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
798 * src/files.c (fattrs): Remove.
799 (attrs_obstack): New.
800 Adjust all dependencies.
801 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
802
803 2000-11-01 Akim Demaille <akim@epita.fr>
804
805 Introduce obstacks.
806 Change each use of `faction' into a use of `action_obstack'.
807
808 * lib/obstack.h, lib/obstack.c: New files.
809 * src/files.c (faction): Remove.
810 (action_obstack): New.
811 Adjust all dependencies.
812
813 2000-10-20 Akim Demaille <akim@epita.fr>
814
815 * lib/quote.h (PARAMS): New macro. Use it.
816
817 2000-10-16 Akim Demaille <akim@epita.fr>
818
819 * src/output.c (output_short_or_char_table): New function.
820 (output_short_table, output_token_translations): Use it.
821 (goto_actions): Use output_short_table.
822
823 2000-10-16 Akim Demaille <akim@epita.fr>
824
825 * src/symtab.c (bucket_new): New function.
826 (getsym): Use it.
827
828 * src/output.c (output_short_table): New argument to display the
829 comment associated with the table.
830 Adjust dependencies.
831 (output_gram): Use it.
832 (output_rule_data): Nicer output layout for YYTNAME.
833
834 2000-10-16 Akim Demaille <akim@epita.fr>
835
836 * src/lex.c (read_typename): New function.
837 (lex): Use it.
838 * src/reader.c (copy_dollar): Likewise.
839
840 2000-10-16 Akim Demaille <akim@epita.fr>
841
842 * src/reader.c (copy_comment2): Expect the input stream to be on
843 the `/' which is suspected to open a comment, instead of being
844 called after `//' or `/*' was read.
845 (copy_comment, copy_definition, parse_union_decl, copy_action)
846 (copy_guard): Adjust.
847
848 2000-10-16 Akim Demaille <akim@epita.fr>
849
850 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
851 `read_signed_integer'.
852
853 2000-10-16 Akim Demaille <akim@epita.fr>
854
855 * src/reader.c (copy_dollar): New function.
856 (copy_guard, copy_action): Use it.
857
858 2000-10-16 Akim Demaille <akim@epita.fr>
859
860 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
861 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
862 New files, from Fileutils 4.0.27.
863 * src/main.c (printable_version): Remove.
864 * src/lex.c, src/reader.c: Use `quote'.
865
866 2000-10-04 Akim Demaille <akim@epita.fr>
867
868 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
869
870 2000-10-04 Akim Demaille <akim@epita.fr>
871
872 * doc/bison.texinfo: Various typos spotted by Neil Booth.
873
874 2000-10-04 Akim Demaille <akim@epita.fr>
875
876 When a literal string is used to define two different tokens,
877 `bison -v' segfaults.
878 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
879
880 * tests/regression.m4: New file.
881 Include the core of the sample provided by Piotr Gackiewicz.
882 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
883 properly.
884
885 2000-10-04 Akim Demaille <akim@epita.fr>
886
887 * src/reader.c (parse_expect_decl): Keep `count' within the size
888 of `buffer'.
889 From Neil Booth.
890
891 2000-10-02 Paul Eggert <eggert@twinsun.com>
892
893 * bison.s1 (yyparse): Assign the default value
894 unconditionally, to avoid a GCC warning and make the parser a
895 tad smaller.
896
897 2000-10-02 Akim Demaille <akim@epita.fr>
898
899 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
900 options.
901
902 2000-10-02 Akim Demaille <akim@epita.fr>
903
904 * src/derives.c, src/print.c, src/reduce.c: To ease the
905 translation, move some `\n' out of the translated strings.
906
907 2000-10-02 Akim Demaille <akim@epita.fr>
908
909 The location tracking mechanism is precious for parse error
910 messages. Nevertheless, it is enabled only when `@n' is used in
911 the grammar, which is a different issue (you can use it in error
912 message, but not in the grammar per se). Therefore, there should
913 be another means to enable it.
914
915 * src/getargs.c (getargs): Support `--locations'.
916 (usage): Report it.
917 * src/getargs.h (locationsflag): Export it.
918 * src/lex.c (percent_table): Support `%locations'.
919 * src/reader.c (yylsp_needed): Remove this variable, now replaced
920 with `locationsflag'.
921 * doc/bison.texinfo: Document `--locations' and `%locations'.
922 Sort the options.
923 * tests/calc.m4: Test it.
924
925 For regularity of the names, replace each
926 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
927 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
928 In addition replace each `flag' with `_flag'.
929
930 2000-10-02 Akim Demaille <akim@epita.fr>
931
932 Also test parse error messages, including with YYERROR_VERBOSE.
933
934 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
935 associative).
936 Use it to check the computations.
937 Use it to check `nonassoc' is honored.
938 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
939 `--yyerror-verbose'.
940 (_AT_CHECK_CALC): Adjust to this option.
941 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
942
943 2000-10-02 Akim Demaille <akim@epita.fr>
944
945 Test also `--verbose', `--defines' and `--name-prefix'. Testing
946 the latter demonstrates a flaw in the handling of non debugging
947 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
948 was used in order to simplify:
949
950 #if YYDEBUG
951 if (yydebug)
952 {
953 ...
954 }
955 #endif
956
957 into
958
959 if (yydebug)
960 {
961 ...
962 }
963
964 unfortunately this leads to a CPP conflict when
965 `--name-prefix=foo' is used since it produces `#define yydebug
966 foodebug'.
967
968 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
969 (YYDPRINTF): New macro.
970 Spread its use.
971 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
972 the bison options.
973 Also test `--verbose', `--defines' and `--name-prefix'.
974
975 2000-10-02 Akim Demaille <akim@epita.fr>
976
977 Improve the readability of the produced parsers.
978
979 * src/bison.s1: Formatting changes.
980 Improve the comment related to the `$' mark.
981 (yydefault): Don't fall through to `yyresume': `goto' there.
982 * src/output.c (output_parser): When the `$' is met, skip the end
983 of its line.
984 New variable, `number_of_dollar_signs', to check there's exactly
985 one `$' in the parser skeleton.
986
987 2000-10-02 Akim Demaille <akim@epita.fr>
988
989 * lib/xstrdup.c: New file, from the fileutils.
990 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
991 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
992 instead of strlen + xmalloc + strcpy.
993 * src/symtab.c (copys): Remove, use xstrdup instead.
994
995 2000-10-02 Akim Demaille <akim@epita.fr>
996
997 * src/gram.h (associativity): New enum type which replaces the
998 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
999 `right_assoc', `left_assoc' and `non_assoc'.
1000 Adjust all dependencies.
1001 * src/reader.c: Formatting changes.
1002 (LTYPESTR): Don't define it, use it as a literal in
1003 `reader_output_yylsp'.
1004 * src/symtab.h (symbol_class): New enum type which replaces the
1005 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1006 `sunknown', `stoken and `snterm'.
1007
1008 2000-10-02 Akim Demaille <akim@epita.fr>
1009
1010 * src/getargs.c (fixed_outfiles): Rename as...
1011 (yaccflag): for consistency and accuracy.
1012 Adjust dependencies.
1013
1014 2000-10-02 Akim Demaille <akim@epita.fr>
1015
1016 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1017 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1018 difficult and introduced a lot of core dump. It turns out that
1019 Bison used an implementation of `xmalloc' based on `calloc', and
1020 at various places it does depend upon the initialization to 0. I
1021 have not tried to isolate the pertinent places, and all the former
1022 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1023 someone should address this issue.
1024
1025 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1026 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1027 files.
1028 Adjust dependencies.
1029 * src/warshall.h: New file.
1030 Propagate.
1031
1032 2000-10-02 Akim Demaille <akim@epita.fr>
1033
1034 Various anti-`extern in *.c' changes.
1035
1036 * src/system.h: Include `assert.h'.
1037
1038 2000-10-02 Akim Demaille <akim@epita.fr>
1039
1040 * src/state.h (nstates, final_state, first_state, first_shift)
1041 (first_reduction): Move their exportation from here...
1042 * src/LR0.h: to here.
1043 Adjust dependencies.
1044 * src/getargs.c (statisticsflag): New variable.
1045 Add support for `--statistics'.
1046 Adjust dependencies.
1047
1048 Remove a lot of now useless `extern' statements in most files.
1049
1050 2000-10-02 Akim Demaille <akim@epita.fr>
1051
1052 * src/LR0.h: New file.
1053 Propagate its use.
1054
1055 2000-10-02 Akim Demaille <akim@epita.fr>
1056
1057 * src/print.h: New file.
1058 Propagate its use.
1059 * src/print.c: Formatting and ordering changes.
1060 (verbose, terse): Replace with...
1061 (print_results): this new function.
1062 Adjust dependencies.
1063
1064 2000-10-02 Akim Demaille <akim@epita.fr>
1065
1066 * src/conflicts.c (conflict_report): New function.
1067 (conflict_log, verbose_conflict_log): Replace with...
1068 (print_conflicts): this function.
1069 Adjust dependencies.
1070 * src/conflicts.h: New file.
1071 Propagate its inclusion.
1072
1073 2000-10-02 Akim Demaille <akim@epita.fr>
1074
1075 * src/nullable.h: New file.
1076 Propagate its inclusion.
1077 * src/nullable.c: Formatting changes.
1078
1079 2000-10-02 Akim Demaille <akim@epita.fr>
1080
1081 * src/reduce.h: New file.
1082 Propagate its inclusion.
1083 * src/reduce.c: Topological sort and other formatting changes.
1084 (bool, TRUE, FALSE): Move their definition to...
1085 * src/system.h: here.
1086
1087 2000-10-02 Akim Demaille <akim@epita.fr>
1088
1089 * src/files.c: Formatting changes.
1090 (tryopen, tryclose, openfiles): Rename as...
1091 (xfopen, xfclose, open_files): this.
1092 (stringappend): static.
1093 * src/files.h: Complete the list of exported symbols.
1094 Propagate its use.
1095
1096 2000-10-02 Akim Demaille <akim@epita.fr>
1097
1098 * src/reader.h: New file.
1099 Propagate its use instead of tedious list of `extern' and
1100 prototypes.
1101 * src/reader.c: Formatting changes, topological sort,
1102 s/register//.
1103
1104 2000-10-02 Akim Demaille <akim@epita.fr>
1105
1106 * src/lex.h: Prototype `lex.c' exported functions.
1107 * src/reader.c: Adjust.
1108 * src/lex.c: Formatting changes.
1109 (safegetc): Rename as...
1110 (xgetc): this.
1111
1112 2000-10-02 Akim Demaille <akim@epita.fr>
1113
1114 * src/lalr.h: New file.
1115 Propagate its inclusion instead of prototypes and `extern'.
1116 * src/lalr.c: Formatting changes, topological sorting etc.
1117
1118 2000-10-02 Akim Demaille <akim@epita.fr>
1119
1120 * src/output.c (token_actions): Introduce a temporary array,
1121 YYDEFACT, that makes it possible for this function to use
1122 output_short_table.
1123
1124 2000-10-02 Akim Demaille <akim@epita.fr>
1125
1126 `user_toknums' is output as a `short[]' in `output.c', while it is
1127 defined as a `int[]' in `reader.c'. For consistency with the
1128 other output tables, `user_toknums' is now defined as a table of
1129 shorts.
1130
1131 * src/reader.c (user_toknums): Be a short table instead of an int
1132 table.
1133 Adjust dependencies.
1134
1135 Factor the short table outputs.
1136
1137 * src/output.c (output_short_table): New function.
1138 * src/output.c (output_gram, output_stos, output_rule_data)
1139 (output_base, output_table, output_check): Use it.
1140
1141 2000-10-02 Akim Demaille <akim@epita.fr>
1142
1143 * src/output.c (output): Topological sort of the functions, in
1144 order to get rid of the `static' prototypes.
1145 No longer use `register'.
1146 * src/output.h: New file.
1147 Propagate its inclusion in files explicitly prototyping functions
1148 from output.c.
1149
1150 2000-09-21 Akim Demaille <akim@epita.fr>
1151
1152 * src/atgeneral.m4: Update from Autoconf.
1153
1154 2000-09-21 Akim Demaille <akim@epita.fr>
1155
1156 * src/closure.h: New file.
1157 * src/closure.c: Formatting changes, topological sort over the
1158 functions, use of closure.h.
1159 (initialize_closure, finalize_closure): Rename as...
1160 (new_closure, free_closure): these. Adjust dependencies.
1161 * src/LR0.c: Formatting changes, topological sort, use of
1162 cloture.h.
1163 (initialize_states): Rename as...
1164 (new_states): this.
1165 * src/Makefile.am (noinst_HEADERS): Adjust.
1166
1167 2000-09-20 Akim Demaille <akim@epita.fr>
1168
1169 * src/acconfig.h: Don't protect config.h against multiple
1170 inclusion.
1171 Don't define PARAMS.
1172 * src/system.h: Define PARAMS.
1173 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1174 purpose of config.h. system.h must not try to fix wrong
1175 definitions in config.h.
1176
1177 2000-09-20 Akim Demaille <akim@epita.fr>
1178
1179 * src/derives.h: New file.
1180 * src/main.c, src/derives.h: Use it.
1181 Formatting changes.
1182 * src/Makefile.am (noinst_HEADERS): Adjust.
1183
1184 2000-09-20 Akim Demaille <akim@epita.fr>
1185
1186 * tests/atgeneral.m4: Update from Autoconf.
1187 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1188 (AT_CHECK_CALC): New macros.
1189 Use these macros to test bison with options `', `--raw',
1190 `--debug', `--yacc', `--yacc --debug'.
1191
1192 2000-09-19 Akim Demaille <akim@epita.fr>
1193
1194 * src/output.c: Formatting changes.
1195 * src/machine.h: Remove, leaving its contents in...
1196 * src/system.h: here.
1197 Include stdio.h.
1198 Adjust all dependencies on stdio.h and machine.h.
1199 * src/getargs.h: New file.
1200 Let all `extern' declarations about getargs.c be replaced with
1201 inclusion of `getargs.h'.
1202 * src/Makefile.am (noinst_HEADERS): Adjust.
1203
1204 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1205 scope.
1206 (yyerror): Returns void, not int.
1207 * doc/bison.texinfo: Formatting changes.
1208
1209 2000-09-19 Akim Demaille <akim@epita.fr>
1210
1211 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1212 portable.
1213
1214 2000-09-18 Akim Demaille <akim@epita.fr>
1215
1216 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1217 * src/Makefile.am (INCLUDES): Don't.
1218 Be ready to fetch headers in lib/.
1219
1220 2000-09-18 Akim Demaille <akim@epita.fr>
1221
1222 * doc/bison.texinfo: Update the copyright.
1223 ANSIfy and GNUify the examples.
1224 Remove the old menu.
1225
1226 2000-09-18 Akim Demaille <akim@epita.fr>
1227
1228 First set of tests: use the `calc' example from the documentation.
1229
1230 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1231 is defined only when YYDEBUG is.
1232 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1233 * src/files.c (tryopen, tryclose): Formatting changes.
1234 Move to the top and be static.
1235 * src/reader.c (read_signed_integer): Likewise.
1236 * tests/calc.m4: New file.
1237 * Makefile.am, suite.m4: Adjust.
1238 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1239
1240 2000-09-18 Akim Demaille <akim@epita.fr>
1241
1242 Add support for an Autotest test suite for Bison.
1243
1244 * m4/m4.m4, m4/atconfig.m4: New files.
1245 * m4/Makefile.am (EXTRA_DIST): Adjust.
1246 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1247 files.
1248 * src/getargs.c: Display a more standard --version message.
1249 * src/reader.c (reader): Formatting changes.
1250 No longer depend upon VERSION_STRING.
1251 * configure.in: No longer use `dnl'.
1252 Set up the test suite and the new directory `tests/.
1253 (VERSION_STRING): Remove.
1254
1255 2000-04-14 Akim Demaille <akim@epita.fr>
1256
1257 * src/reader.c (copy_comment2): New function, same as former
1258 `copy_comment', but outputs into two FILE *.
1259 (copy_comment): Use it.
1260 (parse_union_decl): Use it.
1261 (get_type, parse_start_decl): Use the same `invalid' message.
1262 (parse_start_decl, parse_union_decl): Use the same `multiple'
1263 message.
1264 (parse_union_decl, copy_guard, copy_action): Use the same
1265 `unmatched' message.
1266 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1267
1268 2000-03-31 Akim Demaille <akim@epita.fr>
1269
1270 * src/files.c (tryopen, tryclose): Move to the top.
1271 Be static.
1272
1273 2000-03-31 Akim Demaille <akim@epita.fr>
1274
1275 * src/main.c (main): Don't call `done', exit does it.
1276
1277 2000-03-31 Akim Demaille <akim@epita.fr>
1278
1279 * allocate.c: s/return (foo)/return foo/.
1280 * lalr.c: Likewise.
1281 * LR0.c: Likewise.
1282 * output.c: Likewise.
1283 * reader.c: Likewise.
1284 * symtab.c: Likewise.
1285 * vmsgetargs.c: Likewise.
1286
1287 2000-03-31 Akim Demaille <akim@epita.fr>
1288
1289 Clean up the error reporting functions.
1290
1291 * src/report.c: New file.
1292 * src/report.h: Likewise.
1293 * src/Makefile.am: Adjust.
1294 * m4/error.m4: New file.
1295 * m4/Makefile.am: Adjust.
1296 * configure.in (jm_PREREQ_ERROR): Call it.
1297 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1298 Remove.
1299 (fatal, fatals): Remove. All callers use complain.c::fatal.
1300 (warn, warni, warns, warnss, warnss): Remove. All callers use
1301 complain.c::complain.
1302 (toomany): Remove, use fatal instead.
1303 * src/files.c (done): No argument, use complain_message_count.
1304 * src/main.c (main): Register `done' to `atexit'.
1305
1306 * src/getargs.c (usage): More `fputs', less `fprintf'.
1307
1308 2000-03-28 Akim Demaille <akim@epita.fr>
1309
1310 * lib/: New directory.
1311 * Makefile.am (SUBDIRS): Adjust.
1312 * configure.in: Adjust.
1313 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1314 useless.
1315 * src/alloca.c: Moved to lib/.
1316 * src/getopt.c: Likewise.
1317 * src/getopt1.c: Likewise.
1318 * src/getopt.h: Likewise.
1319 * src/ansi2knr.c: Likewise.
1320 * src/ansi2knr.1: Likewise.
1321 * src/Makefile.am: Adjust.
1322 * lib/Makefile.am: New file.
1323
1324 2000-03-28 Akim Demaille <akim@epita.fr>
1325
1326 * src/getargs.c (usage): Refresh the help message.
1327
1328 2000-03-17 Akim Demaille <akim@epita.fr>
1329
1330 * src/getopt1.c: Updated from textutils 2.0e
1331 * src/getopt.c: Likewise.
1332 * src/getopt.h: Likewise.
1333
1334 2000-03-17 Akim Demaille <akim@epita.fr>
1335
1336 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1337 the file name, not the whole `#line LINE FILE'.
1338
1339 2000-03-17 Akim Demaille <akim@epita.fr>
1340
1341 On syntax errors, report the token on which we choked.
1342
1343 * src/bison.s1 (yyparse): In the label yyerrlab, when
1344 YYERROR_VERBOSE, add yychar in msg.
1345
1346 2000-03-17 Akim Demaille <akim@epita.fr>
1347
1348 * src/reader.c (copy_at): New function.
1349 (copy_guard): Use it.
1350 (copy_action): Use it.
1351
1352 2000-03-17 Akim Demaille <akim@epita.fr>
1353
1354 Be kind to translators, save some useless translations.
1355
1356 * src/main.c (banner): New function.
1357 (fatal_banner): Use it.
1358 (warn_banner): Use it.
1359
1360 2000-03-17 Akim Demaille <akim@epita.fr>
1361
1362 * src/reader.c (copy_definition): Use copy_string and
1363 copy_comment. Removed now unused `match', `ended',
1364 `cplus_comment'.
1365 (copy_comment, copy_string): Moved, to be visible from
1366 copy_definition.
1367
1368 2000-03-17 Akim Demaille <akim@epita.fr>
1369
1370 * src/reader.c (copy_string): Declare `static inline'. No
1371 problems with inline, since it is checked by configure.
1372 (copy_comment): Likewise.
1373
1374 2000-03-17 Akim Demaille <akim@epita.fr>
1375
1376 * src/reader.c (packsymbols): Formatting changes.
1377
1378 2000-03-17 Akim Demaille <akim@epita.fr>
1379
1380 * src/reader.c (copy_comment): New function, factored out from:
1381 (copy_action): Use it. Removed now unused `match', `ended',
1382 `cplus_comment'.
1383 (copy_guard): Likewise.
1384
1385 2000-03-17 Akim Demaille <akim@epita.fr>
1386
1387 * src/reader.c (copy_string): New function, factored out from:
1388 (copy_action): Use it.
1389 (copy_guard): Likewise.
1390
1391 2000-03-17 Akim Demaille <akim@epita.fr>
1392
1393 Change the handling of @s so that they behave exactly like $s.
1394 There is now a pseudo variable @$ (readble and writable), location
1395 of the lhs of the rule (by default ranging from the location of
1396 the first symbol of the rhs, to the location of the last symbol,
1397 or, if the rhs is empty, YYLLOC).
1398
1399 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1400 yyval.
1401 (yyparse): When providing a default semantic action, provide a
1402 default location action.
1403 (after the $): No longer change `*YYLSP', just stack YYLOC the
1404 same way you stack YYVAL.
1405 * src/reader.c (read_declarations): Use warns.
1406 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1407 (copy_action, case '@'): Likewise.
1408 Use a standard error message, to save useless work from
1409 translators.
1410
1411 2000-03-17 Akim Demaille <akim@epita.fr>
1412
1413 * src/bison.s1: Formatting and cosmetics changes.
1414 * src/reader.c: Likewise.
1415 Update the Copyright notice.
1416
1417 2000-03-17 Akim Demaille <akim@epita.fr>
1418
1419 * src/bison.s1 (#line): All set to `#line' only, since the
1420 Makefile now handles them.
1421
1422 2000-03-16 Akim Demaille <akim@epita.fr>
1423
1424 * src/output.c (output_rule_data): Output the documentation of
1425 some of the tables.
1426 (Copyright notice): Update.
1427 Formatting changes.
1428
1429 2000-03-16 Akim Demaille <akim@epita.fr>
1430
1431 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1432 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1433 One `#if YYDEBUG' remains, since it uses variables which are
1434 defined only if `YYDEBUG != 0'.
1435
1436 2000-03-16 Akim Demaille <akim@epita.fr>
1437
1438 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1439 and related variables so that the similarities are highlighted.
1440
1441 2000-03-16 Akim Demaille <akim@epita.fr>
1442
1443 * src/bison.s1: Properly indent CPP directives.
1444
1445 2000-03-16 Akim Demaille <akim@epita.fr>
1446
1447 * src/bison.s1: Properly indent the `alloca' CPP section.
1448
1449 2000-03-16 Akim Demaille <akim@epita.fr>
1450
1451 Do not hard code values of directories in `configure.in'.
1452 Update the `configure' tool chain.
1453
1454 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1455 src/makefile.am.
1456 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1457 (AC_OUTPUT): Add m4/Makefile.
1458 Bump to bison 1.28a, 1.29 has never been released.
1459 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1460 handled via src/Makefile.am.
1461 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1462 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1463 autoheader.
1464 * Makefile.am (SUBDIRS): Add m4.
1465 (ACLOCAL_AM_FLAGS): New variable.
1466 (AUTOMAKE_OPTIONS): Add check-news.
1467 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1468 the proper line number and file name.
1469 (DEFS): Propagate the location of bison library files and of the
1470 locale files.
1471 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1472 builddir.
1473 * acinclude.m4: Remove, replaced by the directory m4.
1474 * m4/Makefile.am (EXTRA_DIST): New variable.
1475 * m4/gettext.m4: New file, from the fileutils.
1476 * m4/lcmessage.m4: Likewise
1477 * m4/progtest.m4: Likewise.
1478 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1479
1480 2000-03-10 Akim Demaille <akim@epita.fr>
1481
1482 * src/closure.c:
1483 Formatting changes of various comments.
1484 Respect the GNU coding standards at various places.
1485 Don't use `_()' when no translation is needed.
1486
1487 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1488
1489 * src/files.c:
1490 OS/2 honors TMPDIR environment variable.
1491
1492 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1493
1494 * doc/bison.texinfo: Tweaked spelling and grammar.
1495 Updated ISBN.
1496 Removed reference to price of printed copy.
1497 Mention BISON_SIMPLE and BISON_HAIRY.
1498
1499 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1500
1501 * configure.in, NEWS:
1502 Bison 1.29 released.
1503
1504 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1505
1506 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1507 Added reference card.
1508
1509 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1510
1511 * po/ru.po: Added Russian translation.
1512
1513 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1514
1515 * configure.in: Added Russian translation.
1516
1517 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1518
1519 * configure.in, NEWS, README:
1520 Released version 1.28.
1521
1522 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1523
1524 * src/system.h:
1525 Squashed redefinition warning on some systems.
1526
1527 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1528 Have configure build version string instead of relying on ANSI string
1529 concatentation.
1530
1531 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1532
1533 * po/POTFILES.in: Got rid of version.c.
1534
1535 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1536
1537 * acconfig.h, configure.in:
1538 Have configure build version string instead of relying on ANSI string
1539 concatentation.
1540
1541 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1542
1543 * doc/bison.1:
1544 Dropped mention of `+' for long-named options.
1545
1546 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1547
1548 * src/files.c: Added <unistd.h> for unlink().
1549
1550 * src/Makefile.am, src/system.h:
1551 I18n fixes.
1552
1553 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1554
1555 * README: Added a FAQ list.
1556
1557 * configure.in, acconfig.h:
1558 I18n fixes.
1559
1560 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1561
1562 * doc/FAQ, doc/Makefile.am:
1563 Added a FAQ list.
1564
1565 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1566
1567 * src/alloc.h, src/symtab.h, src/version.c:
1568 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1569
1570 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1571
1572 * src/.cvsignore, src/Makefile.am:
1573 Reorganized: sources in `src', documentation in `doc'.
1574
1575 * src/lex.c (literalchar):
1576 fixed the code for escaping double quotes (thanks
1577 Jonathan Czisny.)
1578
1579 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1580
1581 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1582 Adjusted paths to reflect directory reorganization.
1583
1584 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1585
1586 * doc/.cvsignore, doc/Makefile.am:
1587 Reorganized: sources in `src', documentation in `doc'.
1588
1589 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1590
1591 * configure.in:
1592 Updated AC_INIT file to reflect directory reorganization.
1593
1594 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1595 Reorganized: sources in `src', documentation in `doc'.
1596
1597 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1598
1599 * src/allocate.c:
1600 Don't declare calloc() and realloc() if not necessary.
1601
1602 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1603
1604 * configure.in, acconfig.h, acinclude.m4:
1605 Don't declare calloc() and realloc() if not necessary.
1606
1607 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1608
1609 * po/.cvsignore: Added i18n support.
1610
1611 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1612
1613 * acconfig.h, configure.in, Makefile.am:
1614 Added i18n support.
1615
1616 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1617
1618 * src/bison.s1: Fixed #line numbers.
1619
1620 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1621
1622 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1623 Added PO files from Translation Project.
1624
1625 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1626
1627 * Makefile.am:
1628 Added support for non-ANSI compilers (ansi2knr).
1629
1630 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1631
1632 * configure.in: Bumped version number to 1.27.
1633
1634 * Makefile.am:
1635 Added `bison.simple' to list of files removed by `make distclean'.
1636
1637 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1638
1639 * src/files.c, src/files.h:
1640 Defined locations of parser files in config.h instead of Makefile.
1641
1642 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1643
1644 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1645 Defined locations of parser files in config.h instead of Makefile.
1646
1647 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1648
1649 * Makefile.am:
1650 Removed inappropriate use of $< macro.
1651
1652 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1653
1654 * po/Makefile.in.in, po/POTFILES.in:
1655 Add `po' directory skeleton.
1656
1657 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1658
1659 * README: Document help-bison list.
1660
1661 * configure.in: Add check for mkstemp().
1662
1663 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1664
1665 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1666 Hush a few compiler warnings.
1667
1668 * src/files.c:
1669 Add tryclose(), which verifies that fclose was successful.
1670 Hush a couple of compiler warnings.
1671
1672 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1673
1674 * Makefile.am, OChangeLog:
1675 ChangeLog is now automatically generated. Include the old version as
1676 OChangeLog.
1677
1678 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1679
1680 * 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:
1681 Update FSF address.
1682
1683 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1684
1685 * doc/bison.texinfo: Fix formatting glitch.
1686
1687 * doc/bison.texinfo: Update FSF address.
1688
1689 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1690
1691 * acconfig.h: Update FSF address.
1692
1693 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1694
1695 * src/system.h:
1696 Don't define PACKAGE here, since config.h defines it.
1697
1698 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1699
1700 * src/reader.c: Update copyright date.
1701
1702 * src/main.c:
1703 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1704 favor of output directly to stderr (avoids buffer overruns).
1705
1706 * src/reader.c: Some checks for premature EOF.
1707
1708 * 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:
1709 Use prototypes if the compiler understands them.
1710
1711 * src/files.c: Honor TMPDIR on Unix hosts.
1712 Use prototypes if the compiler understands them.
1713
1714 * src/reader.c:
1715 Fix a couple of buffer overrun bugs.
1716 Use prototypes if the compiler understands them.
1717
1718 * src/system.h: Include unistd.h and ctype.h.
1719 Use #ifdef instead of #if for NLS symbols.
1720
1721 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1722
1723 * doc/bison.texinfo:
1724 Delete comment "consider using @set for edition number, etc..." since
1725 we now are doing so.
1726
1727 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1728
1729 * configure.in:
1730 Use prototypes if the compiler understands them.
1731
1732 * NEWS: Document 1.26 highlights.
1733
1734 * Makefile.am: Require Automake 1.3 or later.
1735
1736 * acconfig.h:
1737 Use prototypes if the compiler understands them.
1738
1739 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1740
1741 * src/version.c:
1742 Use VERSION symbol from automake for version number.
1743
1744 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1745
1746 * acconfig.h, configure.in, version.cin:
1747 Use VERSION symbol from automake for version number.
1748
1749 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1750
1751 * Makefile.am:
1752 Distribute original version of simple parser (bison.s1), not built
1753 version (bison.simple).
1754
1755 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1756
1757 * doc/bison.texinfo: Add info dir entry.
1758
1759 * doc/bison.texinfo:
1760 Let automake put version number into documentation.
1761
1762 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1763
1764 * src/bison.cld, src/build.com, src/vmshlp.mar:
1765 Add non-RCS files from /gd/gnu/bison.
1766
1767 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1768
1769 * doc/bison.1:
1770 Document the BISON_HAIRY and BISON_SIMPLE variables.
1771
1772 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1773
1774 * src/version.c: Build version.c automatically.
1775
1776 * src/reader.c:
1777 Fix token numbering (used to start at 258, not 257).
1778
1779 * src/system.h: Include config.h.
1780
1781 * src/getargs.c: Update bug report address.
1782
1783 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1784 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1785
1786 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1787
1788 * Makefile.am:
1789 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1790
1791 * configure.in, version.cin:
1792 Build version.c automatically.
1793
1794 * AUTHORS: Add AUTHORS file.
1795
1796 * README: Update bug report address.
1797
1798 * bison.simple:
1799 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1800
1801 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1802 Add automake stuff.
1803
1804 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1805
1806 * doc/bison.texinfo: Clean up some formatting.
1807
1808 1998-05-05 Richard Stallman <rms@gnu.org>
1809
1810 * doc/bison.texinfo:
1811 Explain better why to make a pure parser.
1812
1813 1998-01-05 Richard Stallman <rms@gnu.org>
1814
1815 * src/files.c (openfiles):
1816 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1817 find a temporary directory, if possible. Do not unlink files while
1818 they are open.
1819
1820 1997-08-25 Richard Stallman <rms@gnu.org>
1821
1822 * src/reader.c (stack_offset;):
1823 Change some warni to warns.
1824
1825 * src/lex.c (literalchar): Use warns, not warni.
1826
1827 1997-06-28 Richard Stallman <rms@gnu.org>
1828
1829 * src/bison.s1: Add a Bison version comment.
1830
1831 * src/main.c (fatal, warn, berror):
1832 Use program_name.
1833
1834 1997-06-28 Richard Stallman <rms@gnu.org>
1835
1836 * Makefile.in (bison_version): New variable.
1837 (dist): Use that variable.
1838 (bison.s1): Substitute the Bison version into bison.simple.
1839
1840 * bison.simple: Add a Bison version comment.
1841
1842 1997-06-18 Richard Stallman <rms@gnu.org>
1843
1844 * src/main.c (fatal, warn, berror):
1845 Make error messages standard.
1846 (toomany): Improve error message text.
1847
1848 * 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:
1849 new.h renamed to alloc.h.
1850
1851 1997-06-18 Richard Stallman <rms@gnu.org>
1852
1853 * Makefile.in: new.h renamed to alloc.h.
1854
1855 1997-05-24 Richard Stallman <rms@gnu.org>
1856
1857 * src/lex.c (literalchar):
1858 Fix the code for escaping \, " and '.
1859
1860 (lex): Avoid trouble when there are many chars
1861 to discard in a char literal with just several chars in it.
1862
1863 1997-05-17 Richard Stallman <rms@gnu.org>
1864
1865 * src/bison.s1:
1866 Use malloc, if using alloca is troublesome.
1867 (YYSTACK_USE_ALLOCA): New flag macro.
1868 Define it for some systems and compilers.
1869 (YYSTACK_ALLOC): New macro.
1870 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1871 If it was malloc'd, free it.
1872
1873 1997-05-17 Richard Stallman <rms@gnu.org>
1874
1875 * bison.simple:
1876 Use malloc, if using alloca is troublesome.
1877 (YYSTACK_USE_ALLOCA): New flag macro.
1878 Define it for some systems and compilers.
1879 (YYSTACK_ALLOC): New macro.
1880 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1881 If it was malloc'd, free it.
1882
1883 1997-04-23 Richard Stallman <rms@gnu.org>
1884
1885 * src/bison.s1:
1886 (alloca) [__hpux]: Always define as __builtin_alloca.
1887
1888 1997-04-23 Richard Stallman <rms@gnu.org>
1889
1890 * bison.simple:
1891 (alloca) [__hpux]: Always define as __builtin_alloca.
1892
1893 1997-04-22 Richard Stallman <rms@gnu.org>
1894
1895 * src/bison.s1:
1896 [__hpux]: Include alloca.h (right for HPUX 10)
1897 instead of declaring alloca (right for HPUX 9).
1898
1899 * src/bison.s1 (__yy_memcpy):
1900 Declare arg `count' as unsigned int.
1901 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1902
1903 1997-04-22 Richard Stallman <rms@gnu.org>
1904
1905 * bison.simple:
1906 [__hpux]: Include alloca.h (right for HPUX 10)
1907 instead of declaring alloca (right for HPUX 9).
1908
1909 * bison.simple (__yy_memcpy):
1910 Declare arg `count' as unsigned int.
1911 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1912
1913 1997-01-03 Richard Stallman <rms@gnu.org>
1914
1915 * src/allocate.c: [__STDC__ or _MSC_VER]:
1916 Declare calloc and realloc to return void *.
1917
1918 1997-01-02 Richard Stallman <rms@gnu.org>
1919
1920 * src/system.h:
1921 [_MSC_VER]: Include stdlib.h and process.h.
1922 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1923
1924 * src/main.c (main): Return FAILURE as a value.
1925 (printable_version): Declare arg as int, not char.
1926
1927 1997-01-02 Richard Stallman <rms@gnu.org>
1928
1929 * Makefile.in (dist):
1930 Explicitly check for symlinks, and copy them.
1931
1932 1996-12-19 Richard Stallman <rms@gnu.org>
1933
1934 * src/files.c:
1935 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1936
1937 1996-12-18 Paul Eggert <eggert@gnu.org>
1938
1939 * src/bison.s1 (yyparse):
1940 If __GNUC__ and YYPARSE_PARAM are both defined,
1941 declare yyparse to have a void * argument.
1942
1943 1996-12-18 Paul Eggert <eggert@gnu.org>
1944
1945 * bison.simple (yyparse):
1946 If __GNUC__ and YYPARSE_PARAM are both defined,
1947 declare yyparse to have a void * argument.
1948
1949 1996-12-17 Richard Stallman <rms@gnu.org>
1950
1951 * src/reduce.c (nbits): Add some casts.
1952
1953 1996-08-12 Richard Stallman <rms@gnu.org>
1954
1955 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1956
1957 1996-08-12 Richard Stallman <rms@gnu.org>
1958
1959 * bison.simple: Test _MSDOS as well as _MSDOS_.
1960
1961 1996-07-31 Richard Stallman <rms@gnu.org>
1962
1963 * src/bison.s1:
1964 [__sun && __i386]: Include alloca.h.
1965
1966 1996-07-31 Richard Stallman <rms@gnu.org>
1967
1968 * bison.simple:
1969 [__sun && __i386]: Include alloca.h.
1970
1971 1996-07-30 Richard Stallman <rms@gnu.org>
1972
1973 * src/bison.s1: Comment change.
1974
1975 * src/bison.s1: Test _MSDOS_, not MSDOS.
1976
1977 1996-07-30 Richard Stallman <rms@gnu.org>
1978
1979 * bison.simple: Comment change.
1980
1981 * bison.simple: Test _MSDOS_, not MSDOS.
1982
1983 1996-06-01 Richard Stallman <rms@gnu.org>
1984
1985 * 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:
1986 Insert `_' macro around many string constants.
1987
1988 * src/main.c:
1989 Insert `_' macro around many string constants.
1990
1991 (main): Call setlocale, bindtextdomain and textdomain.
1992
1993 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1994 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1995 [ENABLE_NLS]: Include libintl.h.
1996 [ENABLE_NLS] (gettext): Define.
1997 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1998 (N_, PACKAGE, LOCALEDIR): New macros.
1999
2000 1996-06-01 Richard Stallman <rms@gnu.org>
2001
2002 * POTFILES.in: New file.
2003
2004 * Makefile.in (allocate.o):
2005 Define target explicitly.
2006
2007 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2008 (LDFLAGS): Set to @LDFLAGS@.
2009 (configure): Run autoconf only if preceding `cd' succeeds.
2010 (bison.s1): Redirect output to temporary file then move the
2011 temporary to the target, rather than redirecting directly to bison.s1.
2012 (clean): Remove config.status and config.log.
2013 (distclean): Don't remove config.status here.
2014
2015 1996-05-12 Richard Stallman <rms@gnu.org>
2016
2017 * src/bison.s1:
2018 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2019
2020 1996-05-12 Richard Stallman <rms@gnu.org>
2021
2022 * bison.simple:
2023 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2024
2025 1996-05-11 Richard Stallman <rms@gnu.org>
2026
2027 * src/bison.s1 (__yy_memcpy):
2028 Really reorder the args, as was supposedly done on Feb 14 1995.
2029 (yyparse): Calls changed accordingly.
2030
2031 1996-05-11 Richard Stallman <rms@gnu.org>
2032
2033 * Makefile.in (dist): Don't use $(srcdir).
2034
2035 * bison.simple (__yy_memcpy):
2036 Really reorder the args, as was supposedly done on Feb 14 1995.
2037 (yyparse): Calls changed accordingly.
2038
2039 1996-01-27 Richard Stallman <rms@gnu.org>
2040
2041 * src/output.c (output_rule_data):
2042 Test YYERROR_VERBOSE in the conditional
2043 around the definition of ttyname.
2044
2045 1995-12-29 Richard Stallman <rms@gnu.org>
2046
2047 * src/bison.s1:
2048 Fix line numbers in #line commands.
2049
2050 1995-12-29 Richard Stallman <rms@gnu.org>
2051
2052 * bison.simple:
2053 Fix line numbers in #line commands.
2054
2055 1995-12-27 Richard Stallman <rms@gnu.org>
2056
2057 * src/bison.s1 (YYPARSE_PARAM_DECL):
2058 In C++, make it always null.
2059 (YYPARSE_PARAM_ARG): New macro.
2060 (yyparse): Use YYPARSE_PARAM_ARG.
2061
2062 1995-12-27 Richard Stallman <rms@gnu.org>
2063
2064 * bison.simple (YYPARSE_PARAM_DECL):
2065 In C++, make it always null.
2066 (YYPARSE_PARAM_ARG): New macro.
2067 (yyparse): Use YYPARSE_PARAM_ARG.
2068
2069 1995-11-29 Richard Stallman <rms@gnu.org>
2070
2071 * doc/bison.texinfo:
2072 Describe literal string tokens, %raw, %no_lines, %token_table.
2073
2074 1995-11-29 Daniel Hagerty <hag@gnu.org>
2075
2076 * doc/bison.texinfo: Fixed update date
2077
2078 1995-10-16 Richard Stallman <rms@gnu.org>
2079
2080 * src/version.c: Version 1.25.
2081
2082 1995-10-16 Richard Stallman <rms@gnu.org>
2083
2084 * NEWS: *** empty log message ***
2085
2086 1995-10-16 Richard Stallman <rms@gnu.org>
2087
2088 * doc/bison.1, doc/bison.rnh:
2089 Add new options.
2090
2091 1995-10-15 Richard Stallman <rms@gnu.org>
2092
2093 * src/vmsgetargs.c, src/getargs.c:
2094 Added -n, -k, and -raw switches.
2095 (noparserflag, toknumflag, rawtoknumflag): New variables.
2096
2097 * src/symtab.h (SALIAS):
2098 New #define for adding aliases to %token.
2099 (struct bucket): Added `alias' field.
2100
2101 * src/reduce.c (reduce_grammar):
2102 Revise error message.
2103 (print_notices): Remove final `.' from error message.
2104
2105 * src/reader.c (reader_output_yylsp):
2106 New function.
2107 (readgram): Use `#if 0' around code that accepted %command
2108 inside grammar rules: The documentation doesn't allow it,
2109 and it will fail since the %command processors scan for the next %.
2110 (parse_token_decl): Extended the %token
2111 declaration to allow a multi-character symbol as an alias.
2112 (parse_thong_decl): New function.
2113 (read_declarations): Added %thong declarations.
2114 (read_declarations): Handle NOOP to deal with allowing
2115 % declarations as another means to specify the flags.
2116 (readgram): Allow %prec prior to semantics embedded in a rule.
2117 (skip_to_char, read_declarations, copy_definition)
2118 (parse_token_decl, parse_start_decl, parse_type_decl)
2119 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2120 (get_type_name, copy_guard, copy_action, readgram)
2121 (get_type, packsymbols): Revised most error messages.
2122 Changed `fatal' to `warnxxx' to avoid aborting for error.
2123 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2124 (read_declarations): Improve the error message for
2125 an invalid character. Do not abort.
2126 (read_declarations, copy_guard, copy_action): Use
2127 printable_version to avoid unprintable characters in printed output.
2128 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2129 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2130 Allow the type of a non-terminal can be given
2131 more than once, as long as all specifications give the same type.
2132
2133 * src/output.c:
2134 (output_headers, output_trailers, output, output_gram)
2135 (output_rule_data): Implement noparserflag variable.
2136 Implement toknumflag variable.
2137 (output): Call reader_output_yylsp to output LTYPESTR.
2138
2139 * src/main.c (main):
2140 If reader sees an error, don't process the grammar.
2141 (fatals): Updated to not use VARARGS1.
2142 (printable_version, int_to_string, warn, warni, warns, warnss)
2143 (warnsss): New error reporting functions. Avoid abort for error.
2144
2145 * src/lex.h:
2146 Added THONG and NOOP for alias processing.
2147 Added SETOPT for the new code that allows setting options with %flags.
2148
2149 * src/lex.c:
2150 Include getopt.h. Add some extern decls.
2151 (safegetc): New function to deal with EOF gracefully.
2152 (literalchar); new function to deal with reading \ escapes.
2153 (lex): Use literalchar.
2154 (lex): Implemented "..." tokens.
2155 (literalchar, lex, parse_percent_token): Made tokenbuffer
2156 always contain the token. This includes growing the token
2157 buffer while reading an integer.
2158 (parse_percent_token): Replaced if-else statement with percent_table.
2159 (parse_percent_token): Added % declarations as another
2160 way to specify the flags -n, -l, and -r. Also added hooks for
2161 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2162 major changes to files.c.
2163 (lex) Retain in the incoming stream a character following
2164 an incorrect '/'.
2165 (skip_white_space, lex): Revised most error messages
2166 and changed fatal to warn to avoid aborting.
2167 (percent_table): Added %thong declarations.
2168
2169 * src/gram.h: Comment changes.
2170
2171 * src/files.c (openfiles, open_extra_files, done):
2172 Add faction flag
2173 and actfile file. Handle noparserflag. Both for -n switch.
2174
2175 * src/conflicts.c (resolve_sr_conflict):
2176 Remove use of alloca.
2177
2178 1995-06-01 Jim Meyering <meyering@gnu.org>
2179
2180 * doc/bison.texinfo: *** empty log message ***
2181
2182 1995-05-06 Richard Stallman <rms@gnu.org>
2183
2184 * src/bison.s1: Comment change.
2185
2186 1995-05-06 Richard Stallman <rms@gnu.org>
2187
2188 * bison.simple: Comment change.
2189
2190 1995-05-03 Richard Stallman <rms@gnu.org>
2191
2192 * src/version.c: Version now 1.24.
2193
2194 * src/bison.s1: Change distribution terms.
2195
2196 * src/version.c: Version now 1.23.
2197
2198 1995-05-03 Richard Stallman <rms@gnu.org>
2199
2200 * doc/bison.texinfo:
2201 Rewrite "Conditions for Using Bison".
2202 Update version to 1.24.
2203
2204 1995-05-03 Richard Stallman <rms@gnu.org>
2205
2206 * bison.simple: Change distribution terms.
2207
2208 1995-02-23 Richard Stallman <rms@gnu.org>
2209
2210 * src/files.c: Test __VMS_POSIX as well as VMS.
2211
2212 1995-02-14 Jim Meyering <meyering@gnu.org>
2213
2214 * src/bison.s1 (__yy_memcpy):
2215 Renamed from __yy_bcopy to avoid
2216 confusion. Reverse FROM and TO arguments to be consistent with
2217 those of memcpy.
2218
2219 1995-02-14 Jim Meyering <meyering@gnu.org>
2220
2221 * bison.simple (__yy_memcpy):
2222 Renamed from __yy_bcopy to avoid
2223 confusion. Reverse FROM and TO arguments to be consistent with
2224 those of memcpy.
2225
2226 1994-11-10 David J. MacKenzie <djm@gnu.org>
2227
2228 * NEWS: reformat
2229
2230 * NEWS: New file.
2231
2232 * Makefile.in (DISTFILES): Include NEWS.
2233
2234 * Makefile.in (DISTFILES):
2235 Include install-sh, not install.sh.
2236
2237 * configure.in: Update to Autoconf v2 macro names.
2238
2239 1994-10-05 David J. MacKenzie <djm@gnu.org>
2240
2241 * Makefile.in: fix typo
2242
2243 * Makefile.in (prefix, exec_prefix):
2244 Let configure set them.
2245
2246 1994-09-28 David J. MacKenzie <djm@gnu.org>
2247
2248 * Makefile.in: Set datadir to $(prefix)/share.
2249
2250 1994-09-15 Richard Stallman <rms@gnu.org>
2251
2252 * src/bison.s1:
2253 Update copyright notice and GPL version.
2254
2255 1994-09-15 Richard Stallman <rms@gnu.org>
2256
2257 * bison.simple:
2258 Update copyright notice and GPL version.
2259
2260 1994-07-12 Richard Stallman <rms@gnu.org>
2261
2262 * src/reduce.c, src/reader.c:
2263 entered into RCS
2264
2265 1994-05-05 David J. MacKenzie <djm@gnu.org>
2266
2267 * Makefile.in: entered into RCS
2268
2269 1994-03-26 Richard Stallman <rms@gnu.org>
2270
2271 * src/bison.s1: entered into RCS
2272
2273 1994-03-26 Richard Stallman <rms@gnu.org>
2274
2275 * bison.simple: entered into RCS
2276
2277 1994-03-25 Richard Stallman <rms@gnu.org>
2278
2279 * src/main.c: entered into RCS
2280
2281 1994-03-24 Richard Stallman <rms@gnu.org>
2282
2283 * src/conflicts.c: entered into RCS
2284
2285 1994-01-02 Richard Stallman <rms@gnu.org>
2286
2287 * Makefile.in: *** empty log message ***
2288
2289 1993-11-21 Richard Stallman <rms@gnu.org>
2290
2291 * src/bison.s1: *** empty log message ***
2292
2293 1993-11-21 Richard Stallman <rms@gnu.org>
2294
2295 * doc/bison.texinfo: entered into RCS
2296
2297 * doc/bison.texinfo: *** empty log message ***
2298
2299 1993-11-21 Richard Stallman <rms@gnu.org>
2300
2301 * bison.simple: *** empty log message ***
2302
2303 1993-10-25 David J. MacKenzie <djm@gnu.org>
2304
2305 * doc/bison.texinfo: *** empty log message ***
2306
2307 1993-10-19 Richard Stallman <rms@gnu.org>
2308
2309 * src/bison.s1: *** empty log message ***
2310
2311 1993-10-19 Richard Stallman <rms@gnu.org>
2312
2313 * bison.simple: *** empty log message ***
2314
2315 1993-10-14 Richard Stallman <rms@gnu.org>
2316
2317 * src/bison.s1: *** empty log message ***
2318
2319 1993-10-14 Richard Stallman <rms@gnu.org>
2320
2321 * bison.simple: *** empty log message ***
2322
2323 1993-09-14 David J. MacKenzie <djm@gnu.org>
2324
2325 * doc/bison.texinfo: *** empty log message ***
2326
2327 1993-09-13 Noah Friedman <friedman@gnu.org>
2328
2329 * Makefile.in: *** empty log message ***
2330
2331 1993-09-10 Richard Stallman <rms@gnu.org>
2332
2333 * src/conflicts.c: *** empty log message ***
2334
2335 * src/system.h: entered into RCS
2336
2337 1993-09-10 Richard Stallman <rms@gnu.org>
2338
2339 * doc/bison.1: entered into RCS
2340
2341 1993-09-06 Noah Friedman <friedman@gnu.org>
2342
2343 * src/version.c: entered into RCS
2344
2345 1993-09-06 Noah Friedman <friedman@gnu.org>
2346
2347 * Makefile.in: *** empty log message ***
2348
2349 1993-07-30 David J. MacKenzie <djm@gnu.org>
2350
2351 * Makefile.in: *** empty log message ***
2352
2353 1993-07-24 Richard Stallman <rms@gnu.org>
2354
2355 * src/bison.s1: *** empty log message ***
2356
2357 1993-07-24 Richard Stallman <rms@gnu.org>
2358
2359 * bison.simple: *** empty log message ***
2360
2361 1993-07-08 David J. MacKenzie <djm@gnu.org>
2362
2363 * Makefile.in: *** empty log message ***
2364
2365 1993-07-04 Richard Stallman <rms@gnu.org>
2366
2367 * src/bison.s1: *** empty log message ***
2368
2369 1993-07-04 Richard Stallman <rms@gnu.org>
2370
2371 * bison.simple: *** empty log message ***
2372
2373 1993-06-26 David J. MacKenzie <djm@gnu.org>
2374
2375 * src/getargs.c: entered into RCS
2376
2377 1993-06-26 David J. MacKenzie <djm@gnu.org>
2378
2379 * doc/bison.texinfo: *** empty log message ***
2380
2381 * doc/bison.1: New file.
2382
2383 1993-06-25 Richard Stallman <rms@gnu.org>
2384
2385 * src/getargs.c: New file.
2386
2387 1993-06-16 Richard Stallman <rms@gnu.org>
2388
2389 * src/bison.s1: *** empty log message ***
2390
2391 1993-06-16 Richard Stallman <rms@gnu.org>
2392
2393 * bison.simple: *** empty log message ***
2394
2395 1993-06-03 Richard Stallman <rms@gnu.org>
2396
2397 * src/bison.s1: New file.
2398
2399 1993-06-03 Richard Stallman <rms@gnu.org>
2400
2401 * doc/bison.texinfo: *** empty log message ***
2402
2403 1993-06-03 Richard Stallman <rms@gnu.org>
2404
2405 * bison.simple: New file.
2406
2407 1993-05-19 Richard Stallman <rms@gnu.org>
2408
2409 * doc/bison.texinfo: New file.
2410
2411 1993-05-07 Noah Friedman <friedman@gnu.org>
2412
2413 * Makefile.in: *** empty log message ***
2414
2415 1993-04-28 Noah Friedman <friedman@gnu.org>
2416
2417 * src/reader.c: *** empty log message ***
2418
2419 1993-04-23 Noah Friedman <friedman@gnu.org>
2420
2421 * src/alloc.h: entered into RCS
2422
2423 1993-04-20 David J. MacKenzie <djm@gnu.org>
2424
2425 * src/version.c: *** empty log message ***
2426
2427 * src/files.c, src/allocate.c:
2428 entered into RCS
2429
2430 * src/reader.c: *** empty log message ***
2431
2432 * src/lex.c: entered into RCS
2433
2434 * src/conflicts.c: New file.
2435
2436 * src/symtab.c: entered into RCS
2437
2438 * src/alloc.h: New file.
2439
2440 * src/LR0.c: entered into RCS
2441
2442 1993-04-18 Noah Friedman <friedman@gnu.org>
2443
2444 * src/reader.c: New file.
2445
2446 * src/version.c: *** empty log message ***
2447
2448 1993-04-18 Noah Friedman <friedman@gnu.org>
2449
2450 * Makefile.in: *** empty log message ***
2451
2452 1993-04-17 Noah Friedman <friedman@gnu.org>
2453
2454 * Makefile.in: *** empty log message ***
2455
2456 1993-04-15 Richard Stallman <rms@gnu.org>
2457
2458 * src/main.c, src/files.c:
2459 New file.
2460
2461 1993-04-15 Noah Friedman <friedman@gnu.org>
2462
2463 * configure.in: entered into RCS
2464
2465 * configure.in: *** empty log message ***
2466
2467 * configure.in: New file.
2468
2469 1993-04-14 Richard Stallman <rms@gnu.org>
2470
2471 * Makefile.in: New file.
2472
2473 1993-04-13 Richard Stallman <rms@gnu.org>
2474
2475 * src/version.c: New file.
2476
2477 1993-03-25 Richard Stallman <rms@gnu.org>
2478
2479 * src/output.c: entered into RCS
2480
2481 1992-09-25 Richard Stallman <rms@gnu.org>
2482
2483 * configure.bat: entered into RCS
2484
2485 1992-06-22 Richard Stallman <rms@gnu.org>
2486
2487 * src/vmsgetargs.c: entered into RCS
2488
2489 1992-06-22 Richard Stallman <rms@gnu.org>
2490
2491 * doc/bison.rnh: entered into RCS
2492
2493 1992-04-20 David J. MacKenzie <djm@gnu.org>
2494
2495 * README: entered into RCS
2496
2497 1992-01-22 Richard Stallman <rms@gnu.org>
2498
2499 * src/machine.h: entered into RCS
2500
2501 1991-12-21 Richard Stallman <rms@gnu.org>
2502
2503 * src/lalr.c, src/closure.c:
2504 entered into RCS
2505
2506 1991-12-20 Richard Stallman <rms@gnu.org>
2507
2508 * src/state.h: entered into RCS
2509
2510 1991-12-18 Richard Stallman <rms@gnu.org>
2511
2512 * src/print.c, src/nullable.c, src/derives.c:
2513 entered into RCS
2514
2515 1991-11-03 David J. MacKenzie <djm@gnu.org>
2516
2517 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2518 entered into RCS
2519
2520 1988-09-09 Richard Stallman <rms@gnu.org>
2521
2522 * src/bison.hairy: entered into RCS
2523
2524 1987-12-16 Richard Stallman <rms@gnu.org>
2525
2526 * REFERENCES: entered into RCS