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