Fix syntax error when a nested struct contains a comment containing a * followed eventually by a /
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
06346ca98b
commit
3dbca3bd05
3 changed files with 7 additions and 1 deletions
|
|
@ -1054,6 +1054,8 @@ static void strip_comments(char *string) {
|
|||
case 5:
|
||||
if (*c == '/')
|
||||
state = 0;
|
||||
else
|
||||
state = 1;
|
||||
*c = ' ';
|
||||
break;
|
||||
case 6:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue