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