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