Fixed function argument bug

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-17 17:57:19 +00:00
commit 34a220f341

View file

@ -73,6 +73,16 @@ class TypePass : public Dispatcher {
while (p) {
SwigType *ty = Getattr(p,"type");
normalize_type(ty);
/* This is a check for a function type */
{
SwigType *qty = SwigType_typedef_resolve_all(ty);
if (SwigType_isfunction(qty)) {
SwigType_add_pointer(ty);
}
Delete(qty);
}
String *value = Getattr(p,"value");
if (value) {
Node *n = Swig_symbol_clookup(value,0);