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

Re: svn commit: r39844 - trunk/subversion/bindings/swig/include

From: Roman Donchenko <DXDragon_at_yandex.ru>
Date: Sat, 10 Oct 2009 19:48:39 +0400

Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA_at_gmail.com> писал в своём
письме Sat, 10 Oct 2009 18:22:55 +0400:

> 2009-10-07 22:25:27 Roman Donchenko napisał(a):
>> Author: rdonch
>> Date: Wed Oct 7 13:25:27 2009
>> New Revision: 39844
>>
>> Log:
>> * subversion/bindings/swig/include/svn_containers.swg:
>> For now, remove one of the checks introduced by r39838, as is
>> requires
>> Py_ssize_t, which is apparently not provided by the combination of
>> old SWIG
>> and Python 2.4 which is used by the win32-xp VS2005 buildbot.
>
> The code can be conditional on PY_MAJOR_VERSION and PY_MINOR_VERSION:
>
> #if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION
> >=5)
> /* Code for Python >=2.5. */
> #else
> /* Code for Python 2.4. */
> #endif
>

Yeah, that's basically what libsvn_swig_py and the newer SWIGs are doing.
I've decided not to copy it to the interface definition files, though,
since I'll soon refactor this typemap so it won't need to refer to
Py_ssize_t directly.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2405889
Received on 2009-10-10 17:49:32 CEST

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.