summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-03-31 04:53:40 +1300
committerOlly Betts <olly@survex.com>2021-03-31 04:53:40 +1300
commit904f5a65d87ee549635b7bc973e471ef98f2bd35 (patch)
treee975872a500db9b0112e1fe805d7ed7450b9aab9 /Source
parentc863ca8b1ff2f51e6d2ede5eaefc1aed23fedec7 (diff)
parentc9d64f0bed8831bd9d013beb59f1415de32bb756 (diff)
downloadswig-904f5a65d87ee549635b7bc973e471ef98f2bd35.tar.gz
Merge branch 'master' into gsoc2017-php7-classes-via-c-api
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/php.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx
index 6b0e4b504..4cb1e2c1f 100644
--- a/Source/Modules/php.cxx
+++ b/Source/Modules/php.cxx
@@ -30,7 +30,6 @@ PHP Options (available with -php7)\n\
*/
#define SWIG_PTR "_cPtr"
-static int constructors = 0;
static String *NOTCLASS = NewString("Not a class");
static Node *classnode = 0;
static String *module = 0;
@@ -46,7 +45,6 @@ static File *f_h = 0;
static File *f_phpcode = 0;
static File *f_directors = 0;
static File *f_directors_h = 0;
-static String *phpfilename = 0;
static String *s_header;
static String *s_wrappers;
@@ -360,7 +358,6 @@ public:
/* PHP module file */
filen = NewStringEmpty();
Printv(filen, SWIG_output_directory(), module, ".php", NIL);
- phpfilename = NewString(filen);
f_phpcode = NewFile(filen, "w", SWIG_output_files());
if (!f_phpcode) {
@@ -2357,7 +2354,6 @@ public:
* ------------------------------------------------------------ */
virtual int classHandler(Node *n) {
- constructors = 0;
current_class = n;
String *symname = Getattr(n, "sym:name");
String *baseClassExtend = NULL;
@@ -2535,7 +2531,6 @@ public:
* ------------------------------------------------------------ */
virtual int constructorHandler(Node *n) {
- constructors++;
if (Swig_directorclass(n)) {
String *name = GetChar(Swig_methodclass(n), "name");
String *ctype = GetChar(Swig_methodclass(n), "classtype");