Test also `--verbose', `--defines' and `--name-prefix'. Testing
authorAkim Demaille <akim@epita.fr>
Mon, 2 Oct 2000 09:04:40 +0000 (09:04 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 2 Oct 2000 09:04:40 +0000 (09:04 +0000)
commit5a35a6cb7199aa58dc0b0cc6386872f5da18e1fe
tree8db4483f663bc98cf7b623d6a99ec35e1061906f
parent71da9eeacc05af817ae0eb2d905d74e774aa842d
Test also `--verbose', `--defines' and `--name-prefix'.  Testing
the latter demonstrates a flaw in the handling of non debugging
parsers introduced by myself on 2000-03-16: `#define yydebug 0'
was used in order to simplify:
#if YYDEBUG
if (yydebug)
{
...
}
#endif
into
if (yydebug)
{
...
}
unfortunately this leads to a CPP conflict when
`--name-prefix=foo' is used since it produces `#define yydebug
foodebug'.
* src/bison.s1 [!YYDEBUG]: Do not define yydebug.
(YYDPRINTF): New macro.
Spread its use.
* tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
the bison options.
Also test `--verbose', `--defines' and `--name-prefix'.
ChangeLog
src/bison.s1
src/bison.simple
tests/calc.m4