[Python-checkins] r46375 - sandbox/trunk/hotbuffer/Modules/_hotbuf.c

bob.ippolito python-checkins at python.org
Fri May 26 20:10:56 CEST 2006


Author: bob.ippolito
Date: Fri May 26 20:10:56 2006
New Revision: 46375

Modified:
   sandbox/trunk/hotbuffer/Modules/_hotbuf.c
Log:
Python 2.4 compatibility

Modified: sandbox/trunk/hotbuffer/Modules/_hotbuf.c
==============================================================================
--- sandbox/trunk/hotbuffer/Modules/_hotbuf.c	(original)
+++ sandbox/trunk/hotbuffer/Modules/_hotbuf.c	Fri May 26 20:10:56 2006
@@ -13,6 +13,13 @@
 typedef int Py_ssize_t;
 #define PY_SSIZE_T_MAX INT_MAX
 #define PY_SSIZE_T_MIN INT_MIN
+#define PyInt_FromSsize_t PyInt_FromLong
+#define PyInt_AsSsize_t PyInt_AsLong
+#define lenfunc inquiry
+#define readbufferproc getreadbufferproc
+#define writebufferproc getwritebufferproc
+#define charbufferproc getcharbufferproc
+#define segcountproc getsegcountproc
 #endif
 
 static PyTypeObject PyHotbuf_Type;


More information about the Python-checkins mailing list