From a8d990ca14bb3d44505e1ba2893a61942005247c Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 26 Oct 2005 09:40:29 +0000 Subject: [PATCH] replace by SWIG_POINTER_OWN instead of '1' git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7737 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 2 +- SWIG/Source/Modules/ruby.cxx | 2 +- SWIG/Source/Modules/tcl8.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 686f0dc7c..bba23163b 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -1455,7 +1455,7 @@ public: Replaceall(tm,"$target", "resultobj"); Replaceall(tm,"$result", "resultobj"); if (GetFlag(n,"feature:new")) { - Replaceall(tm,"$owner","1"); + Replaceall(tm,"$owner","SWIG_POINTER_OWN"); } else { Replaceall(tm,"$owner","0"); } diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index 5f9ed7fb7..ac3014089 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -1260,7 +1260,7 @@ public: Replaceall(tm,"$target","vresult"); if (GetFlag(n, "feature:new")) - Replaceall(tm,"$owner", "1"); + Replaceall(tm,"$owner", "SWIG_POINTER_OWN"); else Replaceall(tm,"$owner", "0"); diff --git a/SWIG/Source/Modules/tcl8.cxx b/SWIG/Source/Modules/tcl8.cxx index 3cf983817..2b78b7b4c 100644 --- a/SWIG/Source/Modules/tcl8.cxx +++ b/SWIG/Source/Modules/tcl8.cxx @@ -455,7 +455,7 @@ public: Replaceall(tm,"$target", "resultobj"); Replaceall(tm,"$result", "resultobj"); if(GetFlag(n,"feature:new")) { - Replaceall(tm,"$owner","1"); + Replaceall(tm,"$owner","SWIG_POINTER_OWN"); } else { Replaceall(tm,"$owner","0"); }