swig/Lib
Vadim Zeitlin fd3e763656 Streamline and fix returning objects by value
Remove the code related to "_result_ref" which was confusing and plain
wrong, as it generated something that compiled but crashed during
run-time due to the use of a pointer to an already destroyed stack
object.

Instead, correct the "out" typemap to create a new copy of the object,
which mostly works fine on its own, except that it depends on using
SwigValueWrapper if necessary, so add the call to cplus_value_type()
does this. This also required removing the code resolving typedefs in
the "type" attribute because it confused the base class logic and still
needs an explicit cast to the actual return type due to the use of (and
probable bug in) get_wrapper_func_return_type().

These changes mean that "cppouttype" typemap is not used any longer, so
remove it too.

A couple more tests pass now.
2019-08-06 02:35:25 +02:00
..
allegrocl Add STL container copy constructors where missing 2019-02-14 18:53:05 +00:00
c Streamline and fix returning objects by value 2019-08-06 02:35:25 +02:00
cffi Fix wrapping of references/pointers and qualifiers to member pointers 2017-03-16 21:04:38 +00:00
chicken Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition. 2019-04-19 11:33:02 +01:00
clisp Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
csharp fix undesirable wstring encoding at return value marshalling for C# 2019-07-22 19:11:21 +01:00
d Improve backwards compatibility in D std::vector wrappers 2019-04-19 00:22:53 +01:00
go Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
guile Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
java Fix std::vector<> Java typemaps for primitive types 2019-07-11 13:10:23 +02:00
javascript Fix node.js deprecated warnings >= v10.12.0 2019-03-13 23:09:57 +09:00
lua Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
modula3 Fix wrapping of references/pointers and qualifiers to member pointers 2017-03-16 21:04:38 +00:00
mzscheme Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
ocaml [OCaml] Move INPUT, OUTPUT, and INOUT typemaps to typemaps.i 2019-02-18 23:02:20 -07:00
octave Fix format-security error with octave 5.1 2019-03-10 11:47:27 -06:00
perl5 Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
php Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
pike Fix wrapping of references/pointers and qualifiers to member pointers 2017-03-16 21:04:38 +00:00
python Use PyObject_GC_UnTrack in lieu of the old variant 2019-07-17 11:15:17 +02:00
r Fix R return by C++11 const ref enum classes 2019-03-18 17:49:24 +00:00
ruby Remove the UnknownExceptionHandler director error handling class 2019-06-27 07:40:49 +01:00
scilab Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
std Merge branch 'master' into C 2019-07-24 20:26:50 +02:00
tcl Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
typemaps Fix typecheck typemaps for non-pointers and NULL 2018-12-29 11:45:46 +00:00
uffi Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
xml delete the perl5 typemaps, ignored here 2006-01-05 19:34:51 +00:00
allkw.swg Disable Chicken target language 2019-02-05 18:42:12 +00:00
attribute.i Fix %arg in Lib/attribute.i 2013-05-25 00:37:57 +01:00
carrays.i Initialise all newly created arrays in arrays.i library. 2015-07-30 20:41:15 +01:00
cdata.i Merge branch 'master' into C 2019-07-24 20:26:50 +02:00
cmalloc.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
constraints.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
cpointer.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
cstring.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
cwstring.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
director_common.swg Create director_common.swg for language-indep code 2015-03-12 19:51:11 +13:00
exception.i [OCaml] Some exception improvements 2019-02-07 16:25:10 -07: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 Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
pointer.i Update link to point to 3.0 docs 2015-01-08 11:16:48 +13:00
runtime.swg fix VC++ warning 2005-09-29 13:17:05 +00:00
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 Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
stl.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
swig.swg Add unignore for rvalue ref-qualifiers 2017-08-30 18:17:04 +01:00
swigarch.i Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
swigerrors.swg Remove trailing spaces in the generated code. 2013-09-13 10:02:39 +02:00
swigfragments.swg Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition. 2019-04-19 11:33:02 +01:00
swiginit.swg Fix compiler warnings when SWIGRUNTIME_DEBUG is defined 2019-01-19 17:14:46 -07:00
swiglabels.swg swiglabels.swg: added check if __GNUC__ is defined 2016-02-13 13:49:07 +01:00
swigrun.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
swigrun.swg Fix typecheck typemaps for non-pointers and NULL 2018-12-29 11:45:46 +00:00
swigwarnings.swg Rework std::initializer_list handling to warn about usage in any method, not just constructors. A typemap is used to issue the warning and can be overridden with user defined behaviour. 2013-02-04 20:03:22 +00:00
wchar.i Revert rev 11918 "merge revisions 11872:11876 from trunk to gsoc2008-maciekd branch - license changes" 2012-05-06 00:49:56 +00:00
windows.i Add missing VOID definition to windows.i 2019-01-07 18:46:14 +00:00