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

Re: [PATCH] Building python swig bindings on Win32

From: Ben Reser <ben_at_reser.org>
Date: 2004-03-17 08:17:48 CET

On Tue, Mar 16, 2004 at 05:01:27PM +0100, Patrick Mayweg wrote:
> 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 * {

Ignore my previous email. Yeah SWIG won't handle this for us. This
patch is fine. If you don't commit it before me I'll get to it here in
a bit.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 17 08:18:11 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.