summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add ccache-swig hash fix to RELEASENOTESv4.1.1release-4.1William S Fulton2022-11-301-0/+1
|
* Fix push/pop mismatchBernhard Rosenkränzer2022-11-292-0/+6
| | | | | | | | | Without this, perlhead.swg does `#pragma GCC diagnostic pop` if `__GNUC__ >= 10` - without any prior `#pragma GCC diagnostic push`. There's also a mismatch between the conditions that trigger `#pragma GCC diagnostic ignored` (where the `push` should be) and the attempt to `#pragma GCC diagnostic pop`.
* Add SWIG-4.1.1 RELEASENOTES summaryWilliam S Fulton2022-11-281-0/+5
|
* 4.1.1 releaseWilliam S Fulton2022-11-283-3/+3
|
* Fix UBSAN errors in ccache-swigWilliam S Fulton2022-11-283-9/+15
| | | | | | | | | | | | | | ccache.c:738:18: runtime error: null pointer passed as argument 1, which is declared to never be null Fixes stderr redirect in testname CCACHE_CPP2, when the CCACHE_CPP2 environment variable is defined. mdfour.c:91:20: runtime error: left shift of 139 by 24 places cannot be represented in type 'int' Looks like this brings some stability to the md4 hash calculation. Closes #2449 Conflicts: CHANGES.current
* [PHP] Update docs for removal of -noproxy in SWIG 4.1.0Olly Betts2022-11-263-29/+10
| | | | | | | Closes #2419 Conflicts: CHANGES.current
* Fix syntax error parsing unnamed template parameters with a default.William S Fulton2022-11-263-1/+45
| | | | | | | Closes #961 Conflicts: Examples/test-suite/cpp17_enable_if_t.i
* Follow-on fix for previous changeOlly Betts2022-11-261-2/+2
| | | | | | | These cases don't trigger ubsan warnings and seem to work locally for me, but CI was failing on a number of builds. See #2447
* Fix undefined behaviour in parserOlly Betts2022-11-263-5/+11
| | | | | | | | | | Fix undefined behaviour in swig's parser when handling default parameter expressions containing method calls. Fixes #2447 Conflicts: CHANGES.current
* Workaround for incomplete or/and keyword support in VC++William S Fulton2022-11-061-0/+5
|
* rename cpp14_enable_if_t to cpp17_enable_if_tWilliam S Fulton2022-11-053-6/+6
| | | | | std::enable_if_t is in C++14, but std::is_integral_v is in C++17
* Add changes entry for -swiglib CMake fixWilliam S Fulton2022-11-051-0/+3
|
* Correct ordering in CHANGES.current fileWilliam S Fulton2022-11-051-21/+21
|
* CMake: Fix -swiglib on win32Julien Schueller2022-11-051-6/+9
| | | | | | - swig library files must be installed relatively to the exe into PREFIX/bin/Lib - unset SWIG_LIB_WIN_UNIX else swiglib returns a list of 2 paths which break cmake detection (and consistent to the provided windows binaries)
* build: harden nuget.yml permissionsAlex2022-11-051-0/+3
| | | Signed-off-by: Alex <aleksandrosansan@gmail.com>
* Fix infinite loop handling non-type template parametersWilliam S Fulton2022-11-056-3/+69
| | | | | | | | | Fixes infinite loop due to () brackets in a non-type template parameter containing an expression Fixes #2418 Non-trivial expressions are still not qualified properly though.
* R rtypecheck typemapsWilliam S Fulton2022-11-054-16/+96
| | | | | | | | | | | | | | | | | | | | | | | | Further switch to use rtypecheck typemaps instead of hard coded logic. The full switch to typemaps is deferred until swig-4.2 as it can't be fully backwards compatible. For now a warning is provided to help the transition. It provides the full typemap that should be placed into a user's interface file, for example: %typemap("rtype") int32_t * "integer" void testmethod(int32_t * i); void testmethod(); If there is no rtypecheck typemap for int32_t *, the warning shown is: example.i:7: Warning 750: Optional rtypecheck code is deprecated. Add the following typemap to fix as the next version of SWIG will not work without it: %typemap("rtypecheck") int32_t * %{ (is.integer($arg) || is.numeric($arg)) %} The warning is shown for any code that previously used "numeric", "integer" or "character" for the rtype typemap. Copying the rtypecheck typemap as shown into the user interface file will provide the appropriate fix and the warning will disappear. This is important to do as swig-4.2 will not be able to provide this helpful warning.
* Overloading fixes for R and rtypecheck typemapWilliam S Fulton2022-11-054-13/+26
| | | | | | | | - Fix for special variable $argtype expansion in rtypecheck typemap. - Remove unnecessary () brackets when using rtypecheck typemap for single parameter functions. - Add rtypecheck typemaps for shared_ptr so that NULL can be used in overloaded functions taking shared_ptr.
* Improve R wrapper error message calling overloaded methodsWilliam S Fulton2022-11-053-6/+18
| | | | | | | | | | | when incorrect types passed are passed to the overloaded methods. Old unhelpful error message: Error in f(...) : could not find function "f" Example of new improved error message: Error in use_count(k) : cannot find overloaded function for use_count with argtypes (NULL)
* Fix memory leak in R shared_ptr wrappersWilliam S Fulton2022-11-054-22/+36
| | | | | | | | | Fix leak when a cast up a class inheritance chain is required. Adds implementation of SWIG_ConvertPtrAndOwn for R. Closes #2386
* li_boost_shared_ptr testcase for RWilliam S Fulton2022-11-051-72/+115
| | | | Synchronise test with Python version of testcase
* cpp11_attribute_specifiers testcase warning suppressionWilliam S Fulton2022-11-051-0/+1
|
* Document that -php7 is for PHP 7 *or later*Olly Betts2022-11-051-1/+1
| | | | | | This was already in the manual, but not in -help output. Fixes #2420
* Bump version to 4.1.1 and migrate CHANGES to CHANGES.currentWilliam S Fulton2022-11-056-1279/+1281
|
* R shared_ptr testingv4.1.0William S Fulton2022-10-241-24/+23
| | | | | Enable more tests. Use preferred member variable access.
* enable tests working after master mergeAndLLA2022-10-241-14/+16
|
* Modify some CHANGES entries that weren't written by meZackery Spytz2022-10-252-5/+5
| | | | [skip ci]
* Add SWIG-4.1.0 release dateWilliam S Fulton2022-10-244-4/+4
|
* Merge branch 'rfix-cleaned-up'William S Fulton2022-10-246-35/+703
|\ | | | | | | | | | | | | | | | | | | | | | | | | * rfix-cleaned-up: Whitespace cleanup in R testcase R shared_ptr fixes align implementation of smartname to r class name enable test for pointerreftest fixed by 752b7e8 switched implementation reference from java to python fixes from code review enable li_boost_shared_ptr in r-test-suite typo in comment fix naming of RClass when template of a shared_ptr
| * Whitespace cleanup in R testcaseWilliam S Fulton2022-10-241-70/+70
| |
| * R shared_ptr fixesWilliam S Fulton2022-10-244-73/+57
| | | | | | | | | | | | | | | | Fix problems in shared_ptr wrappers where the class names were not consistent when using the shared_ptr template or the actual underlying type. Move $R_class substitution to typemaps. Issue #2386
| * align implementation of smartname to r class nameAndLLA2022-10-241-16/+11
| |
| * enable test for pointerreftest fixed by 752b7e8AndLLA2022-10-241-2/+2
| |
| * switched implementation reference from java to pythonAndLLA2022-10-241-103/+103
| |
| * fixes from code reviewAndLLA2022-10-242-4/+2
| |
| * enable li_boost_shared_ptr in r-test-suiteAndLLA2022-10-244-2/+681
| |
| * typo in commentAndLLA2022-10-241-1/+1
| |
| * fix naming of RClass when template of a shared_ptrAndLLA2022-10-241-3/+15
| |
* | Visual C++ warning fixesWilliam S Fulton2022-10-241-2/+2
|/
* Merge branch 'MSB8027'William S Fulton2022-10-242-0/+2
|\ | | | | | | | | | | * MSB8027: CMake: Avoid including parser.c twice Fix -Wunused-variable warning
| * CMake: Avoid including parser.c twiceJulien Schueller2022-10-241-0/+1
| | | | | | | | Closes #2409
| * Fix -Wunused-variable warningJulien Schueller2022-10-241-0/+1
| |
* | R - fix $typemap() for R specific typemapsWilliam S Fulton2022-10-242-1/+16
| | | | | | | | | | | | Add support for special variable replacement in the $typemap() special variable macro for R specific typemaps (rtype, rtypecheck, scoercein, scoereout).
* | Polymorphism in R wrappers fixed for C++ structsWilliam S Fulton2022-10-2410-8/+68
|/
* Revert "[js] Add mod_runme.js"Olly Betts2022-10-201-6/+0
| | | | | | | | | | | This reverts commit ea514c39615f616ced604ecbef4b8f42aee8148e. The new runme.js isn't used for node because it fails to run multicpptest testcases, but was failing for jsc in CI. The first problem is the new file is missing `new` where the two objects are created, but fixing that reveals that this testcase is currently broken for Javascript so just revert for now.
* [python] Avoid undefined behaviourOlly Betts2022-10-201-5/+9
| | | | | | | Cast a parameter type explicitly rather than implicitly by casting the function pointer type, as the latter is undefined behaviour. Caught by ubsan.
* [Lua] Fix type resolution between SWIG-wrapped modulesOlly Betts2022-10-203-1/+17
| | | | See #2126
* [Ocaml] Add mod_runme.mlOlly Betts2022-10-191-0/+7
| | | | See #2126
* [js] Add mod_runme.jsOlly Betts2022-10-191-0/+6
| | | | See #2126
* CHANGES: Add blank line before 4.0.0Olly Betts2022-10-191-0/+1
|