diff options
author | Olly Betts <olly@survex.com> | 2021-04-22 14:52:39 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-04-22 15:14:38 +1200 |
commit | a6a52f2f79942435938153b0d425127ba79d84fc (patch) | |
tree | b7dfd32b2023a3f61f3b1434b7ca4e42d85cf782 | |
parent | 50426aae2058c1b2997e104400681f1224ac1336 (diff) | |
download | swig-a6a52f2f79942435938153b0d425127ba79d84fc.tar.gz |
Eliminate remaining use of $needNewFlow
-rw-r--r-- | Lib/php/php.swg | 9 | ||||
-rw-r--r-- | Source/Modules/php.cxx | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/Lib/php/php.swg b/Lib/php/php.swg index 496e1029e..6da09e7a0 100644 --- a/Lib/php/php.swg +++ b/Lib/php/php.swg @@ -93,13 +93,8 @@ %typemap(directorout) SWIGTYPE ($&1_ltype tmp) %{ - if ($needNewFlow) { - tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P($1)->ptr; - SWIG_Z_FETCH_OBJ_P($1)->newobject = 0; - } else { - if (SWIG_ConvertPtr($input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) { - SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor"); - } + if (SWIG_ConvertPtr($input, (void **) &tmp, $1_descriptor, 0) < 0 || tmp == NULL) { + SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor"); } $result = *tmp; %} diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index ede9471f6..39578578b 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -2103,7 +2103,6 @@ public: char temp[24]; sprintf(temp, "%d", idx); Replaceall(tm, "$argnum", temp); - Replaceall(tm, "$needNewFlow", Getattr(n, "feature:new") ? "1" : "0"); /* TODO check this */ if (Getattr(n, "wrap:disown")) { |