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