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