summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-12 02:05:55 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-12 02:05:55 (GMT)
commit09a29fae8f79fd2f15a2ac3f72f50463d576ae52 (patch)
treee8fd4bef7700c6d5f32a687cb72f8cccab4f2300 /Modules
parent4a9ff1626a17dd7cb1bf58c017d22678a6532dcf (diff)
downloadcpython-09a29fae8f79fd2f15a2ac3f72f50463d576ae52.zip
cpython-09a29fae8f79fd2f15a2ac3f72f50463d576ae52.tar.gz
cpython-09a29fae8f79fd2f15a2ac3f72f50463d576ae52.tar.bz2
Cleanup Py_ssize_t a little (get rid of second #ifdef)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_bsddb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 610451a..8e9ae3d 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*/
};