fix smart_pointer + extend

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-06 06:58:41 +00:00
commit bffe7fd9c7
6 changed files with 72 additions and 11 deletions

View file

@ -267,8 +267,8 @@ class Allocate : public Dispatcher {
c = nextSibling(c);
continue;
}
if (Strcmp(nodeType(c),"extend") == 0) {
Append(methods,c);
if (!isconst && (Strcmp(nodeType(c),"extend") == 0)) {
methods = smart_pointer_methods(c, methods, isconst);
} else if (Strcmp(nodeType(c),"cdecl") == 0) {
if (!Getattr(c,"feature:ignore")) {
String *storage = Getattr(c,"storage");