Set "wrapperType = staticmemberfn;" when processing a static member function.

This should make no difference currently (testsuite output is unchanged) but
it's required for generating PHP5 OO wrappers.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-05-15 02:28:52 +00:00
commit a2cb7bb598

View file

@ -81,7 +81,7 @@ static Hash *shadow_set_vars;
static int native_constructor=0;
static Hash *zend_types = 0;
static int shadow = 1;
static int shadow = 1;
// These static variables are used to pass some state from Handlers into functionWrapper
static enum {
@ -1805,7 +1805,9 @@ public:
char *name = GetChar(n, "name");
char *iname = GetChar(n, "sym:name");
wrapperType = staticmemberfn;
Language::staticmemberfunctionHandler(n);
wrapperType = standard;
if(shadow) {
String *symname = Getattr(n, "sym:name");