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