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

RE: Python SWIG for Win32

From: Dale Hirt <dale_at_sbcltd.com>
Date: 2003-02-21 22:33:00 CET

Should we do the same for the following line in apr.i:

%apply long long { apr_time_t };

to:

%apply LONG_LONG { apr_time_t };

or can we leave it the same and only send in a patch to the swig group?

-----Original Message-----
From: Axel Kollmorgen [mailto:axel@kollmorgen.net]
Sent: Friday, February 21, 2003 1:00 PM
To: Dale Hirt; Subversion Development Mailing List (E-mail)
Subject: Re: Python SWIG for Win32

On Friday, February 21, 2003 7:41 PM [GMT+1=CET],
Axel Kollmorgen <axel@kollmorgen.net> wrote:

> On Thursday, February 13, 2003 11:12 PM [GMT+1=CET],
> Dale Hirt <dale@sbcltd.com> wrote:
>
>> swigging d:\work\svn_work\subversion\bindings\swig/svn_repos.i to
>> build\svn_repos.c svn_repos.c build\svn_repos.c(1677) :
>> error C2632: 'long' followed by 'long' is illegal
>> [...]
>
> i googled for "'long' followed by 'long' is illegal" and found this
>
(http://www.modpython.org/pipermail/mod_python/2003-January/002796.html)
>>
>
> Microsoft C compiler doesn't support "long long", this has been fixed
> in the latest CVS code. [Replace long long with LONG_LONG], and it
> will work OK.
>
>
> note: LONG_LONG is defined in <python>\include\pyconfig.h.
>
> so you should get this to work by replacing all "long long"s in
> <swig>\Lib\python\python.swg by LONG_LONG. i didn't have time to try
> yet (i build it earlier by just replacing all "long long" in
> python.swg by just "long") and would welcome feedback.

tried and working ;)

-- 
ax
People talk peace. But men give their lifes work to war. It wont stop
til there is as much brains and scientific study put to aid peace as
there is to promote war. - Will Rogers
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 21 22:33:43 2003

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.