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:
William S Fulton 2009-07-02 18:25:04 +00:00
commit 3dbca3bd05
3 changed files with 7 additions and 1 deletions

View file

@ -1054,6 +1054,8 @@ static void strip_comments(char *string) {
case 5:
if (*c == '/')
state = 0;
else
state = 1;
*c = ' ';
break;
case 6: