Eliminate SWIG_SetZval()

$needNewFlow is now only used for a different hack in a directorout
typemap.
This commit is contained in:
Olly Betts 2021-04-21 17:43:12 +12:00
commit 33feca7527
3 changed files with 16 additions and 32 deletions

View file

@ -1402,7 +1402,6 @@ public:
Replaceall(tm, "$input", Swig_cresult_name());
Replaceall(tm, "$result", php_constructor ? "ZEND_THIS" : "return_value");
Replaceall(tm, "$owner", newobject ? "1" : "0");
Replaceall(tm, "$needNewFlow", php_constructor && is_class(d) ? "2" : "0");
Printf(f->code, "%s\n", tm);
} else {
Swig_warning(WARN_TYPEMAP_OUT_UNDEF, input_file, line_number, "Unable to use return type %s in function %s.\n", SwigType_str(d, 0), name);