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

RE: viewcvs not working anymore on windows with current version o f tr unk due to changes in apr.i

From: Marc Haesen <marc.haesen_at_telindus.com>
Date: 2004-02-25 19:54:39 CET

This patch not really solves the problem. The reason is that APR_INT64_T_FMT
is only defined if you pass -DWIN32 on the command line of swig, which is
not the case in the automatically generated project files. But if I change
this, swig gives a syntax error in apr.h for the following declaration:

   typedef unsigned __int64 apr_uint64_t;
 
If I remove this line from apr.h, it is OK. (For swig at least, because with
this line removed apr itself will not build anymore)
The syntax error occurs both in version 1.3.19 and 1.3.21 of swig.

I am also not really sure if swig handles the || operator in the #if
statement correctly.

I saw that you already committed svn_types.i, but a similar problem exists
in apr.i, which is not changed yet.

Regards,
Marc

-----Original Message-----
From: C. Michael Pilato [mailto:cmpilato@collab.net]
Sent: Wednesday, February 25, 2004 04:55 PM
To: Marc Haesen
Cc: 'Ben Reser'; 'dev@subversion.tigris.org'
Subject: Re: viewcvs not working anymore on windows with current version o f
tr unk due to changes in apr.i

Marc, does this patch work for you? If so, I'll commit it up.

Index: subversion/bindings/swig/svn_types.i
===================================================================
--- subversion/bindings/swig/svn_types.i (revision 8824)
+++ subversion/bindings/swig/svn_types.i (working copy)
@@ -172,7 +172,7 @@

 /* We have to use APR_INT64_T_FMT because SWIG won't convert the
    SVN_FILESIZE_T_FMT to the actual value only APR_INT64_T_FMT */
-#if APR_INT64_T_FMT == "lld"
+#if APR_INT64_T_FMT == "lld" || APR_INT64_T_FMT == "I64d"

 %typemap(python,argout,fragment="t_output_helper") svn_filesize_t *
     "$result = t_output_helper($result,

Visit us at InfoSecurity - The Largest Security Fair in the world!
10 and 11 March - Brussels Kart Expo - Booth 1.B.050

Get your free tickets on www.telindus.be

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 25 19:54:15 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.