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