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