From 006eda3f84a5088c1f91bbf74eadd5a06f735a0c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 23 Aug 2005 09:20:39 +0000 Subject: [PATCH] Fix incorrect usage of $owner in varout typemaps added in last commit git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7384 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/tcl/tcl8.swg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/tcl/tcl8.swg b/Lib/tcl/tcl8.swg index 6d779b0bb..8a302b2b2 100644 --- a/Lib/tcl/tcl8.swg +++ b/Lib/tcl/tcl8.swg @@ -274,18 +274,18 @@ %typemap(varout) char * "$result = Tcl_NewStringObj((char*) $1,-1);"; %typemap(varout) char [ANY] "$result = Tcl_NewStringObj((char *) $1,-1);"; %typemap(varout) char "$result = Tcl_NewStringObj(&$1,1);"; -%typemap(varout) SWIGTYPE *, SWIGTYPE [] "$result = SWIG_NewPointerObj((void *) $1, $1_descriptor, $owner);"; -%typemap(varout) SWIGTYPE & "$result = SWIG_NewPointerObj((void *) &$1, $1_descriptor, $owner);"; +%typemap(varout) SWIGTYPE *, SWIGTYPE [] "$result = SWIG_NewPointerObj((void *) $1, $1_descriptor, 0);"; +%typemap(varout) SWIGTYPE & "$result = SWIG_NewPointerObj((void *) &$1, $1_descriptor, 0);"; %typemap(varout) SWIGTYPE *INSTANCE, SWIGTYPE INSTANCE[] - "$result = SWIG_NewInstanceObj((void *) $1, $1_descriptor, $owner);"; + "$result = SWIG_NewInstanceObj((void *) $1, $1_descriptor, 0);"; %typemap(varout) SWIGTYPE &INSTANCE - "$result = SWIG_NewInstanceObj((void *) &$1, $1_descriptor, $owner);"; + "$result = SWIG_NewInstanceObj((void *) &$1, $1_descriptor, 0);"; -%typemap(varout) SWIGTYPE INSTANCE "$result = SWIG_NewInstanceObj((void *) &$1, $&1_descriptor, $owner);"; -%typemap(varout) SWIGTYPE "$result = SWIG_NewInstanceObj((void *) &$1, $&1_descriptor, $owner);"; -%typemap(varout) SWIGTYPE (CLASS::*) "$result = SWIG_NewPackedObj((void *) &$1, sizeof($1_type), $1_descriptor, $owner);"; +%typemap(varout) SWIGTYPE INSTANCE "$result = SWIG_NewInstanceObj((void *) &$1, $&1_descriptor, 0);"; +%typemap(varout) SWIGTYPE "$result = SWIG_NewInstanceObj((void *) &$1, $&1_descriptor, 0);"; +%typemap(varout) SWIGTYPE (CLASS::*) "$result = SWIG_NewPackedObj((void *) &$1, sizeof($1_type), $1_descriptor, 0);"; /* -- Variable input --- */