Skip to content

Commit

Permalink
ENH: Enhancement of whitespace handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgobbi committed Mar 10, 2012
1 parent 2a0b634 commit 8309e45
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Wrapping/vtkParsePreprocess.c
Expand Up @@ -198,8 +198,6 @@ static void preproc_skip_whitespace(const char **cpp)

for (;;)
{
while (preproc_chartype(*cp, CPRE_WHITE)) { cp++; }

if (cp[0] == '\\')
{
if (cp[1] == '\n')
Expand All @@ -226,6 +224,14 @@ static void preproc_skip_whitespace(const char **cpp)
break;
}
}
else if (preproc_chartype(*cp, CPRE_WHITE))
{
do
{
cp++;
}
while (preproc_chartype(*cp, CPRE_WHITE));
}
else
{
break;
Expand Down

0 comments on commit 8309e45

Please sign in to comment.