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