diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-12 02:05:55 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-12 02:05:55 +0000 |
| commit | cca2c4a38be4fc8358e00ac697c1266227859c66 (patch) | |
| tree | 36a10da26abf425a1cad39e6990be4bef06fc5b4 /Modules | |
| parent | 1a02afd46ebb345ad641b16f83f9d44ffee5e378 (diff) | |
| download | cpython-cca2c4a38be4fc8358e00ac697c1266227859c66.tar.gz | |
Cleanup Py_ssize_t a little (get rid of second #ifdef)
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/_bsddb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 610451a8be..8e9ae3dc40 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -103,7 +103,8 @@ static char *rcs_id = "$Id$"; #if (PY_VERSION_HEX < 0x02050000) -#define Py_ssize_t int +typedef int Py_ssize_t; +typedef inquiry lenfunc; #endif #ifdef WITH_THREAD @@ -5153,11 +5154,7 @@ static PyMethodDef DB_methods[] = { static PyMappingMethods DB_mapping = { -#if (PY_VERSION_HEX < 0x02050000) (inquiry)DB_length, /*mp_length*/ -#else - (lenfunc)DB_length, /*mp_length*/ -#endif (binaryfunc)DB_subscript, /*mp_subscript*/ (objobjargproc)DB_ass_sub, /*mp_ass_subscript*/ }; |
