From 7904892b452cd74ed22378112d066484cbcf6b8e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 10 Mar 2003 22:41:28 +0000 Subject: [PATCH] long long typemap rewrite for compilers that don't understand long long git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4505 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/ruby/typemaps.i | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/ruby/typemaps.i b/Lib/ruby/typemaps.i index c3bd05757..38df2bf9c 100644 --- a/Lib/ruby/typemaps.i +++ b/Lib/ruby/typemaps.i @@ -66,9 +66,9 @@ or you can use the %apply directive : */ %define INPUT_TYPEMAP(type, converter) -%typemap(in) type *INPUT(type temp), type &INPUT(type temp) +%typemap(in) type *INPUT($*1_ltype temp), type &INPUT($*1_ltype temp) { - temp = (type) converter($input); + temp = ($*1_ltype) converter($input); $1 = &temp; } %typemap(typecheck) type *INPUT = type; @@ -138,7 +138,7 @@ output values. %include "fragments.i" %define OUTPUT_TYPEMAP(type, converter, convtype) -%typemap(in,numinputs=0) type *OUTPUT(type temp), type &OUTPUT(type temp) "$1 = &temp;"; +%typemap(in,numinputs=0) type *OUTPUT($*1_ltype temp), type &OUTPUT($*1_ltype temp) "$1 = &temp;"; %typemap(argout, fragment="output_helper") type *OUTPUT, type &OUTPUT { VALUE o = converter(convtype (*$1)); $result = output_helper($result, o);