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