[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 08:38:03 CET

The problem is that the routine core.svn_time_from_ctring returns None

On windows APR_INT64_T_FMT is defined as "I64d"
So if I change the code:

#if APR_INT64_T_FMT == "lld"

    %apply long long { apr_time_t };

    %typemap(python,argout,fragment="t_output_helper") apr_time_t *
        "$result = t_output_helper($result, PyLong_FromLongLong(*$1));";

#elif APR_INT64_T_FMT = "ld"

    %apply long { apr_time_t };

    %typemap(python,argout,fragment="t_output_helper") apr_time_t *
        "$result = t_output_helper($result, PyLong_FromLong(*$1));";

#endif

to

#if APR_INT64_T_FMT == "lld"

    %apply long long { apr_time_t };

    %typemap(python,argout,fragment="t_output_helper") apr_time_t *
        "$result = t_output_helper($result, PyLong_FromLongLong(*$1));";

#elif APR_INT64_T_FMT == "ld"

    %apply long { apr_time_t };

    %typemap(python,argout,fragment="t_output_helper") apr_time_t *
        "$result = t_output_helper($result, PyLong_FromLong(*$1));";

#elif APR_INT64_T_FMT == "I64d"

%typemap(python,argout,fragment="t_output_helper") apr_time_t *
    "$result = t_output_helper($result, PyLong_FromLongLong(*$1));";

#endif

and recompile the binding, the function returns the time again.
I don't know if the 'apply long' needs to be there for windows. It compiles
without it.

Regards,
Marc

-----Original Message-----
From: Ben Reser [mailto:ben@reser.org]
Sent: Tuesday, February 24, 2004 11:43 PM
To: dev@subversion.tigris.org
Subject: Re: viewcvs not working anymore on windows with current version of
tr unk due to changes in apr.i

On Tue, Feb 24, 2004 at 02:42:26PM +0100, Marc Haesen wrote:
> Due to the changes in apr.i (revision 8712) the function
> core.svn_time_from_ctring of the python bindings is not working anymore on
> windows.

How is it failing?

> The added #if ... #elif ... #endif should be changed.

How?

Some more specifics here would be helpful. I'd love to fix this but
without access to Windows or more information that's difficult.

--
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
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 08:37:39 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.