From 59252fcff4e1dff10bc6e073497bb42a8d538394 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Wed, 28 May 2003 21:35:12 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4826 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/CHANGES.current | 13 +++++++++++++ SWIG/Source/Swig/swig.h | 1 + 2 files changed, 14 insertions(+) diff --git a/SWIG/CHANGES.current b/SWIG/CHANGES.current index 49a3eacc4..38e76f3bc 100644 --- a/SWIG/CHANGES.current +++ b/SWIG/CHANGES.current @@ -1,5 +1,18 @@ Version 1.3.20 (In progress) ============================ +05/28/2003: beazley + Fixed subtle type handling bug with references and pointers. + If you had functions like this: + + typedef Foo Bar; + + Foo *func1(); + void func2(Bar &x); + + Then func2() wouldn't accept objects returned by func1() + because of a type error. It should work now. + Reported by Brian Yang. + 05/21/2003: cheetah (William Fulton) Fixes to some of the Visual C++ example project files which would not work with spaces in the paths held in the environment variables used to diff --git a/SWIG/Source/Swig/swig.h b/SWIG/Source/Swig/swig.h index 19bfa01bc..e6fe63608 100644 --- a/SWIG/Source/Swig/swig.h +++ b/SWIG/Source/Swig/swig.h @@ -197,6 +197,7 @@ extern void SwigType_del_pointer(SwigType *t); extern void SwigType_add_array(SwigType *t, String_or_char *size); extern SwigType *SwigType_pop_arrays(SwigType *t); extern void SwigType_add_reference(SwigType *t); +extern void SwigType_del_reference(SwigType *t); extern void SwigType_add_qualifier(SwigType *t, String_or_char *qual); extern void SwigType_add_function(SwigType *t, ParmList *parms); extern void SwigType_add_template(SwigType *t, ParmList *parms);