summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove C++11 from li_std_vector_vector testcaseWilliam S Fulton2022-10-181-6/+24
|
* [php] Fix handling of multi-module casesOlly Betts2022-10-186-23/+56
| | | | | | | | | | | | | | | | 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
* R - Add support for std::vector<std::vector<std::string>>William S Fulton2022-10-176-5/+128
| | | | Closes #2385
* Testcase warning fixv4.1.0-beta1William S Fulton2022-10-151-1/+1
| | | | Workaround for seemingly bogus warning: ‘<unnamed>[0]’ may be used uninitialized [-Wmaybe-uninitialized]
* Fix Javascript node test-suite to use desired c++ standardWilliam S Fulton2022-10-152-2/+3
| | | | Passes the -std determined in configure.ac to node-gyp
* Fix for Java 7 - std::set and std::unordered_setWilliam S Fulton2022-10-152-0/+8
|
* Bump doc version to SWIG-4.1William S Fulton2022-10-152-4/+4
|
* Allow wkhtmltopdf to access current directoryWilliam S Fulton2022-10-151-2/+2
| | | | Fix for version 0.12.6, see https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4536
* Correct new Raise functions to be staticWilliam S Fulton2022-10-142-2/+2
|
* Remove STRING_VALUE to keep supporting older versions of RWilliam S Fulton2022-10-141-1/+1
| | | | | STRING_VALUE does not work with R_NO_REMAP in older versions (it broke 3.0.2)
* C89 fixesWilliam S Fulton2022-10-142-2/+2
|
* Add v8 numeric change to changes fileWilliam S Fulton2022-10-141-0/+6
|
* Merge branch 'fix-cast'William S Fulton2022-10-142-15/+21
|\ | | | | | | | | | | | | | | | | * 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)
| * Merge pull request #2 from mildsunrise/fix-castSergio Garcia Murillo2022-10-111-13/+19
| |\ | | | | | | expand testcase to test for new casting behavior
| | * add tests for new casting behaviorAlba Mendez2022-10-101-0/+2
| | | | | | | | | | | | more integers are preserved now
| | * skip tests when value is out of rangeAlba Mendez2022-10-101-6/+12
| | |
| | * refactor integers JS testcase to avoid repeating codeAlba Mendez2022-10-101-14/+12
| |/
| * Merge pull request #1 from medooze/masterSergio Garcia Murillo2021-11-291-2/+2
| |\ | | | | | | dsf
| | * Merge branch 'fix-cast' into masterSergio Garcia Murillo2021-11-29537-29139/+6390
| | |\ | | |/ | |/|
| | * Return uint64_t as double if is bigger than uint32_tSergio Garcia Murillo2021-11-291-2/+2
| | |
| | * Use SWIG_TypeCast in SWIG_V8_ConvertInstancePtr if types don't match (#3)Sergio Garcia Murillo2021-03-051-1/+5
| | | | | | | | | Use SWIG_TypeCast in SWIG_V8_ConvertInstancePtr if types don't match
* | | html fixesWilliam S Fulton2022-10-143-2/+3
| | |
* | | Merge pull request #2401 from hramrach/masterWilliam S Fulton2022-10-142-2/+2
|\ \ \ | | | | | | | | Define PY_SSIZE_T_CLEAN only when not defined yet
| * | | Define PY_SSIZE_T_CLEAN only when not defined yetMichal Suchanek2022-10-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | [R] Run destructors of local C++ objects on SWIG_failOlly Betts2022-10-143-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | [php] Update exception_memory_leak_runme.phpOlly Betts2022-10-141-1/+9
| | | | | | | | | | | | | | | | Test the new "return by value" case too.
* | | | [lua] Run destructors of local C++ objects on SWIG_failOlly Betts2022-10-144-4/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Fix issues with exception_memory_leak testcaseOlly Betts2022-10-142-4/+13
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Add missing SWIGTYPE *const& typemapsWilliam S Fulton2022-10-133-2/+24
| | |
* | | Revert "[xml] Move to "Experimental" target language status"William S Fulton2022-10-134-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 22a4355f340e9a844d5e5d8d0528d767c4808ebb. Conflicts: CHANGES.current RELEASENOTES
* | | Cleanup SWIG_VERSION definitionWilliam S Fulton2022-10-1331-76/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Additional SWIG_VERSION testingOlly Betts2022-10-131-0/+12
| | |
* | | Quick fix SWIG_VERSION not being defined correctly in wrappersWilliam S Fulton2022-10-132-1/+10
| | |
* | | Update 4.1.0 release notes summaryWilliam S Fulton2022-10-101-3/+15
| | |
* | | XML whitespace changesWilliam S Fulton2022-10-101-13/+13
| | | | | | | | | | | | Remove non-conventional whitespace before closing tag with '>'.
* | | Makefile.in: Remove unused variables dd and srpmOlly Betts2022-10-111-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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!
* | | Fix php example comment typoOlly Betts2022-10-111-1/+1
| | |
* | | [python] Remove doc caveat for Python < 2.1Olly Betts2022-10-111-3/+1
| | | | | | | | | | | | The minimum version we now support is Python 2.7.
* | | Fix doc typosOlly Betts2022-10-112-2/+3
| | |
* | | Fix compile error when using directorsWilliam S Fulton2022-10-105-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | OCaml director return fixWilliam S Fulton2022-10-101-11/+4
| | | | | | | | | | | | Fixes director_unwrap_result testcase when returning Element *const *&
* | | Improve director unwrap detection for the return typeWilliam S Fulton2022-10-1010-90/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge branch 'director-unwrap-result'William S Fulton2022-10-079-6/+369
|\ \ \ | | | | | | | | | | | | | | | | * director-unwrap-result: Unwrap director classes only when returning a pointer or reference to an object
| * \ \ Merge branch 'master' into director-unwrap-resultOlly Betts2022-03-011099-34325/+14811
| |\ \ \
| * | | | Unwrap director classes only when returning a pointer or reference to an objectThomas Reitmayr2020-06-209-6/+369
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This involves properly counting the number of references and pointers in the return type of a function and only generate unwrapping code if this number is 1. For template instances some post-processing code is added to fix the 'decl' and 'type' attributes of functions if changed in an unfavorable way during template expansion. This commit fixes swig#1811.
* | | | | Document CFFI removalWilliam S Fulton2022-10-061-0/+6
| | | | |
* | | | | Completely remove CFFIWilliam S Fulton2022-10-065-2156/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No meaningful progress to update CFFI to experimental status has been made since CFFI was disabled in SWIG-4.0.0 as the first stage to removal. This commit is the final stage to remove it. See issue #1966 for an attempt at updating CFFI to experimental status. Anyone wishing for SWIG to support CFFI again might want to utilise this work.
* | | | | Makefile re-orderWilliam S Fulton2022-10-062-749/+748
| | | | | | | | | | | | | | | | | | | | All target languages are in now in alphabetical order
* | | | | Re-order language detection in configure.acWilliam S Fulton2022-10-061-1371/+1379
| | | | | | | | | | | | | | | | | | | | Check in alphabetical order to make looking at configure output a tad easier
* | | | | Remove some final testingWilliam S Fulton2022-10-062-9/+24
| | | | | | | | | | | | | | | | | | | | Given Visual C++ does not work with these tests (tested with VS2022 17.3 and earlier)