From efecfe0ee2e40f945574b650442b6628e021d78e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 9 Jan 2006 17:41:32 +0000 Subject: [PATCH] replace as needed git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8319 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/ruby.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index ddeecad5b..ca6ccfa47 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -739,13 +739,14 @@ public: * parameters, and dump the resulting code to the wrapper file. * --------------------------------------------------------------------- */ - Parm *applyInputTypemap(Parm *p, String *ln, String *source, Wrapper *f) { + Parm *applyInputTypemap(Parm *p, String *ln, String *source, Wrapper *f, String *symname) { String *tm; SwigType *pt = Getattr(p,"type"); if ((tm = Getattr(p,"tmap:in"))) { Replaceall(tm,"$target",ln); Replaceall(tm,"$source",source); Replaceall(tm,"$input",source); + Replaceall(tm,"$symname", symname); if (Getattr(p,"wrap:disown") || (Getattr(p,"tmap:in:disown"))) { Replaceall(tm,"$disown","SWIG_POINTER_DISOWN"); @@ -837,7 +838,7 @@ public: } /* Look for an input typemap */ - p = applyInputTypemap(p, ln, source, f); + p = applyInputTypemap(p, ln, source, f, Getattr(n,"name")); if (i >= numreq) { Printf(f->code,"}\n"); }