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

@ -1,6 +1,10 @@
Version 1.3.40 (in progress)
============================
2009-07-02: wsfulton
Fix syntax error when a nested struct contains a comment containing a * followed eventually by a /.
Regression from 1.3.37, reported by Solomon Gibbs.
2009-06-30: olly
[Ruby] Undefine close and connect macros defined by Ruby API
headers as we don't need them and they can clash with C++ methods

View file

@ -27,7 +27,7 @@ struct a
struct {
/*struct*/
struct {
int b;
int b; /**< v1/v2 B-tree & local/fractal heap for groups, B-tree for chunked datasets */
} c;
} d;
};

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: