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