cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e1d78b0dec
commit
66730ef7e2
1 changed files with 6 additions and 4 deletions
|
|
@ -1099,19 +1099,21 @@ int Swig_name_match_value(String *mvalue, String *value)
|
|||
int match = 0;
|
||||
char *cvalue = Char(value);
|
||||
char *cmvalue = Char(mvalue);
|
||||
#if 1
|
||||
char *sep = strstr(cmvalue,"|");
|
||||
while (sep && !match) {
|
||||
match = strncmp(cvalue,cmvalue, sep - cmvalue) == 0;
|
||||
#ifdef SWIG_DEBUG
|
||||
Printf(stderr,"match_value: %s %s %d\n",cvalue,cmvalue, match);
|
||||
#endif
|
||||
cmvalue = sep + 1;
|
||||
sep = strstr(cmvalue,"|");
|
||||
}
|
||||
if (!match) {
|
||||
match = strcmp(cvalue,cmvalue) == 0;
|
||||
}
|
||||
#else
|
||||
|
||||
#ifdef SWIG_DEBUG
|
||||
Printf(stderr,"match_value: %s %s %d\n",cvalue,cmvalue, match);
|
||||
#endif
|
||||
}
|
||||
return match;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue