epp: fix line numbering

SVN revision: 57936
This commit is contained in:
Boris Faure 2011-03-21 15:55:06 +00:00
parent 2b3ee3f630
commit 7b2fb4cba2
2 changed files with 16 additions and 3 deletions

View File

@ -4606,7 +4606,22 @@ cpp_get_token(cpp_reader * pfile)
}
else if (CPP_TRADITIONAL(pfile))
{
return CPP_COMMENT;
if (newlines > 0)
{
output_line_command(pfile, 0, same_file);
return CPP_VSPACE;
}
else
{
return CPP_COMMENT;
}
}
else if (newlines > 0)
{
output_line_command(pfile, 0, same_file);
CPP_RESERVE(pfile, 1);
CPP_PUTC_Q(pfile, ' ');
return CPP_VSPACE;
}
else
{

View File

@ -90,8 +90,6 @@ main(int argc, char **argv)
continue;
case CPP_VSPACE:
if (!got_text)
goto next;
break;
default: