swig/Lib/c
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
..
c.swg Streamline and fix returning objects by value 2019-08-06 02:35:25 +02:00
cexcept.swg Drop longjmp-based exception handling approach 2016-09-15 01:27:40 +02:00
cheader.swg No real changes, just rename "proxy_header" to "cheader" 2016-04-21 15:18:22 +02:00
clabels.swg Remove unused SWIGPROTECT 2016-04-13 18:10:35 +02:00
std_alloc.i Use std/std_vector.i instead of a poor copy in c/std_vector.i 2016-09-15 01:27:41 +02:00
std_common.i Use std/std_vector.i instead of a poor copy in c/std_vector.i 2016-09-15 01:27:41 +02:00
std_container.i Use std/std_vector.i instead of a poor copy in c/std_vector.i 2016-09-15 01:27:41 +02:00
std_except.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00
std_map.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00
std_pair.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00
std_string.i Streamline and fix returning objects by value 2019-08-06 02:35:25 +02:00
std_vector.i Ignore std::vector<T>::get_allocator() 2016-09-15 01:27:41 +02:00
stl.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00
typemaps.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00