diff options
author | Olly Betts <olly@survex.com> | 2021-12-13 09:14:13 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-12-13 09:27:58 +1300 |
commit | 48bb7e0e95bd597efe2e9e9a09a39db97498533d (patch) | |
tree | 4a127c5682ae6af5ba78795f7416b43dfe2a066a | |
parent | 7d704023068f527de19275de713b5010e191ba11 (diff) | |
download | swig-48bb7e0e95bd597efe2e9e9a09a39db97498533d.tar.gz |
Simplify PHP backend code
-rw-r--r-- | Source/Modules/php.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 2d346d273..e5c61c2a2 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -99,8 +99,6 @@ static Hash *zend_types = 0; static int shadow = 1; -static String *wrapping_member_constant = NULL; - // These static variables are used to pass some state from Handlers into functionWrapper static enum { standard = 0, @@ -1397,6 +1395,7 @@ public: SwigType_remember(type); + String *wrapping_member_constant = Getattr(n, "memberconstantHandler:sym:name"); if (!wrapping_member_constant) { { tm = Swig_typemap_lookup("consttab", n, name, 0); @@ -1783,17 +1782,6 @@ public: return SWIG_OK; } - /* ------------------------------------------------------------ - * memberconstantHandler() - * ------------------------------------------------------------ */ - - virtual int memberconstantHandler(Node *n) { - wrapping_member_constant = Getattr(n, "sym:name"); - Language::memberconstantHandler(n); - wrapping_member_constant = NULL; - return SWIG_OK; - } - int classDirectorInit(Node *n) { String *declaration = Swig_director_declaration(n); Printf(f_directors_h, "%s\n", declaration); |