swig/Lib
William S Fulton 973590ff91 R rtypecheck typemaps
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.
2022-11-05 08:40:26 +00:00
..
csharp Cleanup SWIG_VERSION definition 2022-10-13 19:47:43 +01:00
d Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
go Cleanup SWIG_VERSION definition 2022-10-13 19:47:43 +01:00
guile Cleanup SWIG_VERSION definition 2022-10-13 19:47:43 +01:00
java Fix for Java 7 - std::set and std::unordered_set 2022-10-15 14:57:30 +01:00
javascript Merge branch 'fix-cast' 2022-10-14 19:19:13 +01:00
lua [Lua] Fix type resolution between SWIG-wrapped modules 2022-10-20 10:14:59 +13:00
mzscheme Cleanup SWIG_VERSION definition 2022-10-13 19:47:43 +01:00
ocaml Cleanup SWIG_VERSION definition 2022-10-13 19:47:43 +01:00
octave Correct new Raise functions to be static 2022-10-14 22:51:26 +01:00
perl5 Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
php [php] Fix handling of multi-module cases 2022-10-18 10:28:17 +13:00
python Use more portable PyUnicode_AsUTF8* methods. 2022-11-01 07:54:58 +13:00
r R rtypecheck typemaps 2022-11-05 08:40:26 +00:00
ruby Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
scilab std::string throws typemaps 2022-09-19 09:09:29 +01:00
std Fixes for deprecated std::basic_string::reserve() 2022-07-31 01:02:08 +01:00
tcl Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
typemaps Cleanup SWIG_VERSION definition 2022-10-13 19:47:43 +01:00
xml
allkw.swg Improve #include guard macros 2022-07-19 09:35:46 +12:00
attribute.i Fix %arg in Lib/attribute.i 2013-05-25 00:37:57 +01:00
carrays.i Fix missing include in SWIG typemap 2019-01-06 08:31:11 -05:00
cdata.i Merge pull request #1398 from swig-fortran/missing-includes 2022-02-01 14:05:17 +13:00
cmalloc.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
constraints.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cpointer.i Fix function prototypes of generated pointer functions 2022-02-03 17:25:44 +13:00
cstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cwstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
director_common.swg Create director_common.swg for language-indep code 2015-03-12 19:51:11 +13:00
exception.i [php] Fix two incorrect PHP 8 conditionals 2021-12-08 13:10:38 +13:00
intrusive_ptr.i Fix bug with macro invocation with empty first arg 2017-10-08 09:02:28 +13:00
inttypes.i Remove duplicate declarations of strtoimax and strtoumax in inttypes.i 2014-04-08 23:47:22 +01:00
linkruntime.c fix macro issue reported by Vladimir Menshakov 2006-04-10 19:00:44 +00:00
math.i Conditionalise math.i for PHP 2021-03-17 09:43:15 +13:00
pointer.i Use https for swig.org links 2022-10-06 13:16:39 +13:00
runtime.swg
shared_ptr.i Fix bug with macro invocation with empty first arg 2017-10-08 09:02:28 +13:00
std_except.i [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
stdint.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
stl.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swig.swg Provide SWIGTYPE MOVE typemaps in swigmove.i 2022-09-16 08:36:25 +01:00
swigarch.i Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
swigerrors.swg Add Python support for std::unique_ptr inputs 2022-07-17 15:20:20 +01:00
swigfragments.swg Merge pull request #1398 from swig-fortran/missing-includes 2022-02-01 14:05:17 +13:00
swiginit.swg Lib/javascript/v8: use context-aware initialization. 2021-03-02 15:31:28 +01:00
swiglabels.swg Revert "Modify fix for << in array size" 2022-07-27 13:45:08 +12:00
swigrun.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swigrun.swg Runtime tables deterministic ordering (4) 2022-09-29 19:40:47 +01:00
swigwarnings.swg Add support for the <=> operator (C++20) 2022-07-27 09:12:40 +12:00
wchar.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
windows.i Add missing VOID definition to windows.i 2019-01-07 18:46:14 +00:00