Fixed sneaky whitespace problem in preprocessor.

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

View file

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