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
This commit is contained in:
parent
f6a17a171c
commit
006eda3f84
1 changed files with 7 additions and 7 deletions
|
|
@ -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 --- */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue