Fixed broken inheritance in shadow classes.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-09-20 20:20:18 +00:00
commit ff2943a35d

View file

@ -1453,12 +1453,15 @@ PYTHON::cpp_inherit(char **baseclass,int) {
/* Now tell the Python module that we're inheriting from a base class */ /* Now tell the Python module that we're inheriting from a base class */
while (baseclass[i]) { while (baseclass[i]) {
bc = GetChar(hash,baseclass[i]); String *bs = NewString(baseclass[i]);
SwigType_add_pointer(bs);
bc = GetChar(hash,bs);
if (bc) { if (bc) {
if (first_base) Putc(',',base_class); if (first_base) Putc(',',base_class);
Printv(base_class,bc,0); Printv(base_class,bc,0);
first_base = 1; first_base = 1;
} }
Delete(bs);
i++; i++;
} }
if (!first_base) { if (!first_base) {