Numerous bug fixes. Improvements to C++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ce983e3203
commit
cc46b7bb77
17 changed files with 255 additions and 103 deletions
|
|
@ -171,23 +171,16 @@ Swig_proto_cmp(const String_or_char *pat, DOH *node) {
|
|||
SwigType *ty;
|
||||
SwigType *ct;
|
||||
ParmList *p;
|
||||
List *tl;
|
||||
int r;
|
||||
|
||||
ty = Gettype(node);
|
||||
p = Getparms(node);
|
||||
if (!ty || !p) return -1;
|
||||
ct = Copy(ty);
|
||||
tl = NewList();
|
||||
while (p) {
|
||||
Append(tl,Gettype(p));
|
||||
p = Getnext(p);
|
||||
}
|
||||
SwigType_add_function(ct,tl);
|
||||
SwigType_add_function(ct,p);
|
||||
SwigType_strip_qualifiers(ct);
|
||||
r = Cmp(pat,ct);
|
||||
Delete(ct);
|
||||
Delete(tl);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue