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