Akim Demaille
4bda3f10ca
* src/output.c (output_rule_data): Don't output NULL, it might
...
not be defined yet.
2002-02-13 18:35:03 +00:00
Akim Demaille
616429b508
Fix the previous test.
2002-02-07 17:22:50 +00:00
Akim Demaille
29ae55f112
Bison dumps core when trying to complain about broken input files.
...
Reported by Cris van Pelt.
* src/lex.c (parse_percent_token): Be sure to set token_buffer.
* tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
into...
(Invalid inputs): Strengthen: exercise parse_percent_token.
2002-01-24 17:09:34 +00:00
Akim Demaille
bec30531f7
* src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
2002-01-21 15:50:39 +00:00
Marc Autret
5e5d541531
* tests/output.at: New test.
...
* src/files.c (compute_base_names): Don't map extensions when
the YACC flag is set, use defaults.
Reported by Evgeny Stambulchik.
2002-01-20 15:46:19 +00:00
Akim Demaille
d9e9746c06
More thanks.
2002-01-11 13:37:39 +00:00
Akim Demaille
1fa140687e
* src/output.c (output_table_data): Change the prototype to use
...
`int' for array ranges: some invocations do pass an int, not a
short.
Reported by Wayne Green.
2001-12-22 15:16:41 +00:00
Akim Demaille
776209d6c7
Reductions in web2c.y are improperly reported.
...
Reported by Mike Castle.
* src/conflicts.c (print_reductions): Fix.
* tests/regression.at (Web2c): New.
2001-12-22 14:42:36 +00:00
Akim Demaille
dee049eb91
Typo.
2001-12-18 09:59:24 +00:00
Akim Demaille
275fc3ad0f
Some host fail on `assert (!"foo")', which expands to
...
((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
Reported by Nelson Beebee.
* src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
`#define it_succeeded 0' and `assert (it_succeeded)'.
2001-12-18 09:33:44 +00:00
Akim Demaille
51576fb3c6
* src/reader.c (copy_action): When --yacc, don't append a `;'
...
to the user action: let it fail if lacking.
Suggested by Aharon Robbins and Tom Tromey.
2001-12-15 11:09:05 +00:00
Akim Demaille
07708e1946
* tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
...
its argument.
Reported by Peter Hámorský.
2001-12-05 10:59:35 +00:00
Akim Demaille
cb4956ee99
* tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
...
* src/reduce.c (reduce_grammar_tables): Do not free useless tags,
as all tags are free'ed afterwards.
From Enrico Scholz.
2001-11-28 11:43:24 +00:00
Marc Autret
a220f55509
Revert doc patch.
2001-11-26 19:13:40 +00:00
Marc Autret
b83f0407c6
* doc/bison.texinfo (Mystery Conflicts): Hint '-v' use.
...
From Golubev I. N.
2001-11-25 13:02:55 +00:00
Akim Demaille
d803322e27
* tests/calc.at, tests/output.at, tests/regression.at,
...
* tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
now the tests are run in private dirs, therefore AC_CLEANUP and
family can be simplified to 0-ary.
* tests/atlocal.in: Now that we run `elsewhere' than in tests/,
use abs. path to find config.h.
* tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
stderr, there can be way too much random noise.
Instead pass -Werror to GCC and rely on the exit status.
Reported by Wolfram Wagner.
2001-11-14 15:20:47 +00:00
Akim Demaille
0df87bb609
* src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
...
the result instead of using...
(src_total, rrc_total, src_count, rrc_count): Remove.
(any_conflicts): Remove.
(print_conflicts): Split into...
(conflicts_print, conflicts_output): New.
* src/conflicts.h: Adjust.
* src/main.c (main): Invoke both conflicts_output and conflicts_print.
* src/print.c (print_grammar): Issue `n' between to rule outputs.
* tests/regression.at (Conflicts): New.
Reported by Tom Lane.
2001-11-12 09:31:40 +00:00
Akim Demaille
e9e4c32114
* src/bison.simple (YYSTACK_REALLOC): New.
...
(yyparse) [!yyoverflow]: Use it and free the old stack.
Reported by FIXME: Who.
2001-11-12 09:24:50 +00:00
Akim Demaille
037ca2f14c
* src/reader.c (parse_thong_decl): Formatting changes.
...
(token_translations_init): New, extracted from...
(packsymbols): Here.
Adjust.
2001-11-02 14:04:54 +00:00
Akim Demaille
561f9a30af
* tests/regression.at (Invalid input: 2): New.
...
* src/lex.c (unlexed_token_buffer): New.
(lex, unlex): Adjust: when unlexing, be sure to save token_buffer
too.
Reported by Wwp.
2001-11-01 18:05:22 +00:00
Akim Demaille
631aa1d3dc
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
2001-10-10 14:58:26 +00:00
Akim Demaille
342b8b6e21
Merge in branch-1_29.
2001-10-04 14:55:21 +00:00
Marc Autret
08a161353c
Update.
2001-08-08 23:16:44 +00:00
Marc Autret
fdc6758b79
doc/bison.texinfo: Change @samp{$<@dots{}>} to @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
2001-08-08 21:55:36 +00:00
Akim Demaille
8303fc422a
* tests/atconfig.in (CPPFLAGS): Add.
...
* tests/calc.at (AT_CHECK): Use CPPFLAGS.
2001-08-04 14:00:09 +00:00
Akim Demaille
53b74c0c4c
* lib/strspn.c: New.
2001-08-03 08:09:03 +00:00
Akim Demaille
847bf1f538
* doc/autoconf.texi: Document @$.
...
(Locations): New section.
2001-08-01 17:49:14 +00:00
Akim Demaille
ef7ddeddaa
* src/output.c (output_parser): Compute the `#line' lines when
...
there are.
* src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
Suggested by Hans Aberg.
2000-12-19 13:40:42 +00:00
Akim Demaille
2a91a95e9e
* src/reader.c (copy_definition, parse_union_decl, copy_action)
...
(copy_guard): Quote the file names.
Reported by Laurent Mascherpa.
2000-12-12 17:12:43 +00:00
Akim Demaille
ff4a34be27
* lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
...
* m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
New files, from Fileutils 4.0.27.
* src/main.c (printable_version): Remove.
* src/lex.c, src/reader.c: Use `quote'.
* lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2000-10-16 17:28:41 +00:00
Akim Demaille
8e03724b11
When a literal string is used to define two different tokens,
...
`bison -v' segfaults.
Reported by Piotr Gackiewicz, and fixed by Neil Booth.
* tests/regression.m4: New file.
Include the core of the sample provided by Piotr Gackiewicz.
* src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
properly.
2000-10-04 11:52:53 +00:00
Akim Demaille
a9e64249c8
* src/reader.c (parse_expect_decl): Keep `count' within the size
...
of `buffer'.
From Neil Booth.
2000-10-04 11:31:14 +00:00