Fixed sneaky whitespace problem in preprocessor.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-11 21:29:37 +00:00
commit b0f9608615

View file

@ -825,10 +825,11 @@ Preprocessor_parse(DOH *s)
break; break;
case 40: /* Start of a C preprocessor directive */ case 40: /* Start of a C preprocessor directive */
if (c == ' ') state = 40; /* Strip off any leading white-space */ if (c == '\n') {
else if (c == '\n') {
Putc('\n',chunk); Putc('\n',chunk);
state = 0; state = 0;
} else if (isspace(c)) {
state = 40;
} else { } else {
/* Got the start of a preprocessor directive */ /* Got the start of a preprocessor directive */
Ungetc(c,s); Ungetc(c,s);