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:
parent
333564fb11
commit
2768452a27
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue