Store the Node for the current class rather than just its name (which

makes little difference now, but paves the way for future changes...)
[Patch recommit]


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-05-14 18:54:40 +00:00
commit 262207f6ed

View file

@ -72,7 +72,7 @@ static String *pragma_code;
static String *pragma_phpinfo;
/* Variables for using PHP classes */
static String *class_name = 0;
static Node *current_class = 0;
static Hash *shadow_get_vars;
static Hash *shadow_set_vars;
@ -1394,7 +1394,7 @@ public:
virtual int classHandler(Node *n) {
constructors=0;
//SwigType *t = Getattr(n, "classtype");
class_name = Getattr(n, "sym:name");
current_class = n;
// String *use_class_name=SwigType_manglestr(SwigType_ltype(t));
if(shadow) {
@ -1764,7 +1764,7 @@ public:
}
}
String *class_iname = Swig_name_member(class_name,iname);
String *class_iname = Swig_name_member(Getattr(current_class, "sym:name"), iname);
create_command( iname, Swig_name_wrapper(class_iname) );
Wrapper *f = NewWrapper();