From 65734165ca7fcff2bbc792a20c352caba2fdb76e Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 2 Dec 2003 18:56:59 +0000 Subject: [PATCH] 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 --- SWIG/Source/Modules/lang.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Source/Modules/lang.cxx b/SWIG/Source/Modules/lang.cxx index 6f41f1243..723370440 100644 --- a/SWIG/Source/Modules/lang.cxx +++ b/SWIG/Source/Modules/lang.cxx @@ -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;