Added new attribute to class nodes

"classtypeobj"

This is the raw, SWIG type-system representation of the class type.  This
should be used in all typemap lookups and operations involving the class name.

Note:  There is inconsistent use of the "classtype" attribute across language modules--
especially in code related to directors.   To avoid breaking the universe, I have
decided to store the correct type encoding as "classtypeobj" instead of replacing
"classtype".   As modules are checked they can elect to use "classtype" or "classtypeobj"
as appropriate.

Note: William, you should use "classtypeobj" to fix the typemap problem (probably).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-12-02 18:56:59 +00:00
commit 65734165ca

View file

@ -1637,7 +1637,7 @@ int Language::classDeclaration(Node *n) {
ClassType = NewStringf("%s %s", kind, classname);
}
Setattr(n,"classtype", SwigType_namestr(ClassType));
Setattr(n,"classtypeobj", Copy(ClassType));
InClass = 1;
CurrentClass = n;