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;
|
int match = 0;
|
||||||
char *cvalue = Char(value);
|
char *cvalue = Char(value);
|
||||||
char *cmvalue = Char(mvalue);
|
char *cmvalue = Char(mvalue);
|
||||||
#if 1
|
|
||||||
char *sep = strstr(cmvalue,"|");
|
char *sep = strstr(cmvalue,"|");
|
||||||
while (sep && !match) {
|
while (sep && !match) {
|
||||||
match = strncmp(cvalue,cmvalue, sep - cmvalue) == 0;
|
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;
|
cmvalue = sep + 1;
|
||||||
sep = strstr(cmvalue,"|");
|
sep = strstr(cmvalue,"|");
|
||||||
}
|
}
|
||||||
if (!match) {
|
if (!match) {
|
||||||
match = strcmp(cvalue,cmvalue) == 0;
|
match = strcmp(cvalue,cmvalue) == 0;
|
||||||
}
|
#ifdef SWIG_DEBUG
|
||||||
#else
|
Printf(stderr,"match_value: %s %s %d\n",cvalue,cmvalue, match);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue