Commit 09a29fae authored by Neal Norwitz's avatar Neal Norwitz

Cleanup Py_ssize_t a little (get rid of second #ifdef)

parent 4a9ff162
...@@ -103,7 +103,8 @@ static char *rcs_id = "$Id$"; ...@@ -103,7 +103,8 @@ static char *rcs_id = "$Id$";
#if (PY_VERSION_HEX < 0x02050000) #if (PY_VERSION_HEX < 0x02050000)
#define Py_ssize_t int typedef int Py_ssize_t;
typedef inquiry lenfunc;
#endif #endif
#ifdef WITH_THREAD #ifdef WITH_THREAD
...@@ -5153,11 +5154,7 @@ static PyMethodDef DB_methods[] = { ...@@ -5153,11 +5154,7 @@ static PyMethodDef DB_methods[] = {
static PyMappingMethods DB_mapping = { static PyMappingMethods DB_mapping = {
#if (PY_VERSION_HEX < 0x02050000)
(inquiry)DB_length, /*mp_length*/ (inquiry)DB_length, /*mp_length*/
#else
(lenfunc)DB_length, /*mp_length*/
#endif
(binaryfunc)DB_subscript, /*mp_subscript*/ (binaryfunc)DB_subscript, /*mp_subscript*/
(objobjargproc)DB_ass_sub, /*mp_ass_subscript*/ (objobjargproc)DB_ass_sub, /*mp_ass_subscript*/
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment