| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
This reverts commit a5bc48afeac0b33631b7aeb544e6a23d99b54bf8.
|
|
|
|
|
|
|
| |
Cast a parameter type explicitly rather than implicitly by casting
the function pointer type, as the latter is undefined behaviour.
Caught by ubsan.
|
|
|
|
| |
See #2126
|
|
|
|
| |
See #2126
|
|
|
|
| |
See #2126
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Look up unknown base classes using SWIG_MangledTypeQueryModule().
Revert to using SWIG_TypeCheck() instead of SWIG_TypeCheckStruct()
as the latter doesn't seem to work for this case (at least for PHP
right now).
Add mod_runme.php as a regression test for this.
Adjust the PHP test harness not to set up reflection for the module
unless it's actually needed for a testcase. Currently the approach
to find the module name doesn't work for multi-module testcases.
See #2126
|
|
|
|
| |
Closes #2385
|
|
|
|
| |
Workaround for seemingly bogus warning: ‘<unnamed>[0]’ may be used uninitialized [-Wmaybe-uninitialized]
|
|
|
|
| |
Passes the -std determined in configure.ac to node-gyp
|
| |
|
| |
|
|
|
|
| |
Fix for version 0.12.6, see https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4536
|
| |
|
|
|
|
|
| |
STRING_VALUE does not work with R_NO_REMAP
in older versions (it broke 3.0.2)
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
* fix-cast:
add tests for new casting behavior
skip tests when value is out of range
refactor integers JS testcase to avoid repeating code
Return uint64_t as double if is bigger than uint32_t
Use SWIG_TypeCast in SWIG_V8_ConvertInstancePtr if types don't match (#3)
|
| |\
| | |
| | | |
expand testcase to test for new casting behavior
|
| | |
| | |
| | |
| | | |
more integers are preserved now
|
| | | |
|
| |/ |
|
| |\
| | |
| | | |
dsf
|
| | |\
| | |/
| |/| |
|
| | | |
|
| | |
| | |
| | | |
Use SWIG_TypeCast in SWIG_V8_ConvertInstancePtr if types don't match
|
| | | |
|
|\ \ \
| | | |
| | | | |
Define PY_SSIZE_T_CLEAN only when not defined yet
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Users of swig 4.0.2 and python 3.10 will likely define the
PY_SSIZE_T_CLEAN macro by hand when relevant because their bindings
won't build otherwise.
Unconditionally defining PY_SSIZE_T_CLEAN in swig 4.10 will lead to
macro redefinition warning.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Arrange that destructors of local C++ objects in the wrapper function
get run on SWIG_fail (which calls Rf_error() which calls longjmp()).
We achieve this by putting almost everything in the function in its
own block, and end that right before Rf_error() at which point those
destructors will get called.
|
| | | |
| | | |
| | | |
| | | | |
Test the new "return by value" case too.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Arrange that destructors of local C++ objects in the wrapper function
get run on SWIG_fail (which calls lua_error() which calls longjmp()).
We achieve this by putting almost everything in the function in its
own block, and end that right before lua_error() at which point those
destructors will get called.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The out typemap uses a function name which doesn't match the name of the
function we want it to apply to, so this testcase wasn't actually
triggering an exception so wasn't actually testing anything!
With that fixed, the testcase fails to compile for PHP due to use of
SWIG_exception_fail() (which not all target languages implement), and
with that fixed, the _runme.php needs a try ... catch adding to handle
the raised exception.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 22a4355f340e9a844d5e5d8d0528d767c4808ebb.
Conflicts:
CHANGES.current
RELEASENOTES
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add Swig_obligatory_macros which must be called by each
target language to define SWIG_VERSION correctly
in the generated code, as well as the language specific
macro SWIGXXX where XXX is the target language name.
Drop the #ifdef SWIGXXX that was previously generated -
I can't see the point of this and if users are defining
this macro somehow, then users will need to change this
Closes #1050
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Remove non-conventional whitespace before closing tag with '>'.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
srpm is no longer used since the recent removal of the srcrpm
target in 623b7d97a79baea923f3a64825d3afbd94c1b24d.
dd hasn't been used since 4ce80105c8c923c53bb9c0733c9f1e90d309649f
back in 2006!
|
| | | |
|
| | |
| | |
| | |
| | | |
The minimum version we now support is Python 2.7.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix when using templates with more than one template parameter
and used as an input parameter in a virtual method in a
director class (problem affecting most of the scripting languages).
Fixes #2160
|
| | |
| | |
| | |
| | | |
Fixes director_unwrap_result testcase when returning Element *const *&
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Resolve the return type to correctly determine if the type is a pointer or
reference to a director class.
SwigType_refptr_count_return() recently added as a simpler fix is no
longer needed.
The conventional approach of using the "type" rather than "decl" to
analyse the return type is used instead too.
Issue #1823
|