swig/Source
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
..
CParse Fix missing value for first item of enums with trailing comma 2019-07-11 17:15:38 +02:00
DOH Remove use of 'register' in C source 2018-05-04 20:02:13 +01:00
Doxygen Add iterator safety check in DoxygenParser::parse 2019-07-06 11:30:56 -05:00
Include Don't emit functions added by %extend into C structs 2019-08-03 02:37:18 +02:00
Modules Streamline and fix returning objects by value 2019-08-06 02:35:25 +02:00
Preprocessor Fix regression parsing gcc preprocessor linemarkers 2019-02-19 21:32:04 +00:00
Swig Merge branch 'ZackerySpytz-valid-floating-point-literals' 2019-03-02 17:48:49 +00:00
Makefile.am Merge branch 'master' into C 2019-07-24 20:26:50 +02:00
README Revert rev 11187 "Merged with recent changes from trunk." 2012-05-06 01:13:16 +00:00

SWIG Source directory

 Source/DOH          -  A core set of basic datatypes including
                        strings, lists, hashes, and files.  Used
                        extensively by the rest of SWIG.

 Source/Swig         -  Swig core. Type-system, utility functions.

 Source/Preprocessor -  SWIG C Preprocessor

 Source/CParse       -  SWIG C Parser (still messy)

 Source/Modules      -  Language modules.

 Source/Include      -  Include files.

Historic directories which may be in CVS, but have been removed:

 Source/Modules1.1   -  Old SWIG-1.1 modules. Empty.

 Source/LParse       -  Experimental parser.  Officially dead
                        as CParse is more capable.

 Source/SWIG1.1      -  Old SWIG1.1 core. Completely empty now.