Re: [patch] Building the Ruby bindings on windows with SWIG > 1.3.24
From: Joe Swatosh <joe.swatosh_at_gmail.com>
 
Date: 2007-04-12 07:07:58 CEST 
On 4/11/07, Joe Swatosh <joe.swatosh@gmail.com> wrote:
 With your patch as it stands, SWIG generated the following two
 /*@SWIG:%ruby_aux_method@*/
 SWIGINTERN int
 After I added the
 
--
Joe
Index: subversion/bindings/swig/include/svn_global.swg
===================================================================
--- subversion/bindings/swig/include/svn_global.swg     (revision 24543)
+++ subversion/bindings/swig/include/svn_global.swg     (working copy)
@@ -146,6 +146,27 @@
#ifdef SWIGRUBY
+%clear long long;
+
+%typemap (in) long long
+{
+  $1 = ($1_ltype)NUM2LL($input);
+}
+
+%typemap (in) unsigned long long
+{
+  $1 = ($1_ltype)NUM2ULL($input);
+}
+
+%typemap (out) long long
+{
+  $result = LL2NUM((apr_int64_t)($1));
+}
+
+%typemap(argout) long long *OUTPUT {
+  %append_output(LL2NUM(*$1));
+}
+
/* Ruby has strict capitalization conventions -
    tell SWIG to not warn as it renames things to follow these. */
#pragma SWIG nowarn=801
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 12 07:08:20 2007
 | 
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.