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