fix epp case for:

#define AA(x) x
#define BB(a,b) \
   AA(a+b)
BB(1,1)



SVN revision: 60173
This commit is contained in:
Carsten Haitzler 2011-06-10 05:50:45 +00:00
parent 989da2f5c1
commit 93e020f7ea
1 changed files with 14 additions and 8 deletions

View File

@ -4800,17 +4800,23 @@ cpp_get_token(cpp_reader * pfile)
if (CPP_BUFFER(pfile)->has_escapes)
{
c = GETC();
if (c == '-')
// fix macro expansions starting with - losing the -
if (c == '-')
{
#if 1 // fix macro expansions starting with - losing the -
CPP_PUTS(pfile, "-", 1);
return CPP_OTHER;
#else
if (pfile->output_escapes)
CPP_PUTS(pfile, "@-", 2);
parse_name(pfile, GETC());
return CPP_NAME;
#endif
}
// fix macro expansions starting with - losing the +
else if (c == '+')
{
CPP_PUTS(pfile, "+", 1);
return CPP_OTHER;
}
// fix macro expansions starting with - losing the .
else if (c == '.')
{
CPP_PUTS(pfile, ".", 1);
return CPP_OTHER;
}
else if (is_space[c])
{