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
|
|
@ -1,6 +1,10 @@
|
||||||
Version 1.3.40 (in progress)
|
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
|
2009-06-30: olly
|
||||||
[Ruby] Undefine close and connect macros defined by Ruby API
|
[Ruby] Undefine close and connect macros defined by Ruby API
|
||||||
headers as we don't need them and they can clash with C++ methods
|
headers as we don't need them and they can clash with C++ methods
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ struct a
|
||||||
struct {
|
struct {
|
||||||
/*struct*/
|
/*struct*/
|
||||||
struct {
|
struct {
|
||||||
int b;
|
int b; /**< v1/v2 B-tree & local/fractal heap for groups, B-tree for chunked datasets */
|
||||||
} c;
|
} c;
|
||||||
} d;
|
} d;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1054,6 +1054,8 @@ static void strip_comments(char *string) {
|
||||||
case 5:
|
case 5:
|
||||||
if (*c == '/')
|
if (*c == '/')
|
||||||
state = 0;
|
state = 0;
|
||||||
|
else
|
||||||
|
state = 1;
|
||||||
*c = ' ';
|
*c = ' ';
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue