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