Enhancement to Swig_require(), Swig_save(), Swig_restore()

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-06 21:10:49 +00:00
commit d060c1b248
9 changed files with 135 additions and 171 deletions

View file

@ -214,7 +214,8 @@ DohGetattr(DOH *obj, const DOH *name) {
DohBase *b = (DohBase *) obj;
DohObjInfo *objinfo = b->type;
if (objinfo->doh_hash && objinfo->doh_hash->doh_getattr) {
return (objinfo->doh_hash->doh_getattr)(b,(DOH *) name);
DOH *r = (objinfo->doh_hash->doh_getattr)(b,(DOH *) name);
return (r == DohNone) ? 0 : r;
}
return 0;
}