From f50b903d6481c7e5a9e36207a913d01e4e14739b Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Mon, 13 Aug 2012 16:22:02 +0000 Subject: [PATCH] Add wrapper typemap for "int *const &" Fix proxy type of complex type (SWIGTYPE) references. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13604 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/c/c.swg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/c/c.swg b/Lib/c/c.swg index acd61025f..7d8bfed0f 100644 --- a/Lib/c/c.swg +++ b/Lib/c/c.swg @@ -128,7 +128,7 @@ // objects %typemap(proxy) SWIGTYPE "$&resolved_type*" %typemap(proxy) SWIGTYPE * "$resolved_type*" -%typemap(proxy) SWIGTYPE & "$resolved_type*" +%typemap(proxy) SWIGTYPE & "$*resolved_type*" %typemap(proxy) SWIGTYPE *& "$resolved_type**" %typemap(proxy) SWIGTYPE [ANY] "/*SWIGTYPE [ANY]*/ $1_ltype **" %typemap(proxy) SWIGTYPE * [ANY] "/*SWIGTYPE *[ANY] */ $1_ltype **" @@ -363,7 +363,7 @@ %typemap(couttype) unsigned int*, unsigned int&, unsigned int*, unsigned int[ANY], unsigned int[] "unsigned int *" %typemap(couttype) const unsigned int*, const unsigned int&, const unsigned int[ANY], const unsigned int[] "const unsigned int *" %typemap(couttype) int**, int*&, int*[ANY], int[ANY][ANY] "int **" -%typemap(couttype) const int**, const int*&, const int*[ANY], const int[ANY][ANY] "const int **" +%typemap(couttype) const int**, const int*&, int *const &, const int*[ANY], const int[ANY][ANY] "const int **" %typemap(couttype) unsigned int**, unsigned int*&, unsigned int*[ANY], unsigned int[ANY][ANY] "unsigned int **" %typemap(couttype) const unsigned int**,const unsigned int*&, const unsigned int[ANY][ANY] "const unsigned int **" @@ -550,7 +550,7 @@ // objects %typemap(proxycouttype) SWIGTYPE "$&resolved_type*" %typemap(proxycouttype) SWIGTYPE * "$resolved_type*" -%typemap(proxycouttype) SWIGTYPE & "$resolved_type*" +%typemap(proxycouttype) SWIGTYPE & "$*resolved_type*" %typemap(proxycouttype) SWIGTYPE *& "$resolved_type**" %typemap(proxycouttype) SWIGTYPE [ANY] "/*SWIGTYPE [ANY]*/ $1_ltype **" %typemap(proxycouttype) SWIGTYPE * [ANY] "/*SWIGTYPE *[ANY] */ $1_ltype **"