[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Building python swig bindings on Win32

From: Patrick Mayweg <mayweg_at_qint.de>
Date: 2004-03-16 17:01:27 CET

Hi,
the python swig bindings cannot be compiled on trunk,branches/1.0.x and
the 1.0.1 tarball. The reason is the use of the non standarized type
"long long" in the file "subversion/bindings/swig/svn_types.i". It
should be replaced by apr_int64_t. The other swig based bindings may
also have the same problem.

[[
 * subversion/bindings/swig/svn_types.i
    Exchange the non standard type "long long" with the apr type
apr_int64_t.
]]

Index: subversion/bindings/swig/svn_types.i
===================================================================
--- subversion/bindings/swig/svn_types.i (revision 9065)
+++ subversion/bindings/swig/svn_types.i (working copy)
@@ -183,7 +183,7 @@
 
 %typemap(python,argout,fragment="t_output_helper") svn_filesize_t *
     "$result = t_output_helper($result,
- PyLong_FromLongLong((long long) (*$1)));";
+ PyLong_FromLongLong((apr_int64_t) (*$1)));";
 
 /* XXX: apply long long *OUTPUT doesn't track $1 correctly */
 %typemap(perl5,argout) svn_filesize_t * {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 16 16:57:24 2004

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.