avoid Strcmp

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-11-28 02:41:59 +00:00
commit accfbb04e0
2 changed files with 17 additions and 17 deletions

View file

@ -25,11 +25,11 @@ void Swig_cparse_replace_descriptor(String *s) {
char tmp[512];
String *arg = 0;
SwigType *t;
char *c = 0;
while (Strstr(s,"$descriptor(")) {
while ((c = strstr(Char(s),"$descriptor("))) {
char *d = tmp;
int level = 0;
char *c = Strstr(s,"$descriptor(");
while (*c) {
if (*c == '(') level++;
if (*c == ')') {