[Lxml-checkins] r54568 - in lxml/trunk: . src/lxml

scoder at codespeak.net scoder at codespeak.net
Thu May 8 17:45:10 CEST 2008


Author: scoder
Date: Thu May  8 17:45:10 2008
New Revision: 54568

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/src/lxml/etree_defs.h
Log:
 r4194 at delle:  sbehnel | 2008-05-08 15:18:11 +0200
 removed unused #define section: already provided by Cython


Modified: lxml/trunk/src/lxml/etree_defs.h
==============================================================================
--- lxml/trunk/src/lxml/etree_defs.h	(original)
+++ lxml/trunk/src/lxml/etree_defs.h	Thu May  8 17:45:10 2008
@@ -5,17 +5,6 @@
 #define va_int(ap)     va_arg(ap, int)
 #define va_charptr(ap) va_arg(ap, char *)
 
-/* Py_ssize_t support was added in Python 2.5 */
-#if PY_VERSION_HEX < 0x02050000
-#  ifndef PY_SSIZE_T_MAX /* patched Pyrex? */
-     typedef int Py_ssize_t;
-#    define PY_SSIZE_T_MAX INT_MAX
-#    define PY_SSIZE_T_MIN INT_MIN
-#    define PyInt_FromSsize_t(z) PyInt_FromLong(z)
-#    define PyInt_AsSsize_t(o)   PyInt_AsLong(o)
-#  endif
-#endif
-
 /* Threading can crash under Python <= 2.4.1 */
 #if PY_VERSION_HEX < 0x02040200
 #  ifndef WITHOUT_THREADING


More information about the lxml-checkins mailing list