summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-07-13 19:39:15 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-07-13 19:39:15 (GMT)
commitfa521f1b2a0bfef3248f69e95b00ef78255b556c (patch)
treecc2086a7643b82d812170f68213b07356bcb8635
parentf67c2383da573ecc1a774b61d382ca445d73d37c (diff)
downloadcpython-fa521f1b2a0bfef3248f69e95b00ef78255b556c.zip
cpython-fa521f1b2a0bfef3248f69e95b00ef78255b556c.tar.gz
cpython-fa521f1b2a0bfef3248f69e95b00ef78255b556c.tar.bz2
fix PyXXX_Length macros as suggested by Fred
-rw-r--r--Include/abstract.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index d1a1db3..890ffcd 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -383,7 +383,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
DL_IMPORT(int) PyObject_Size(PyObject *o);
-#define PyObject_Length(O) PyObject_Size((O))
+#define PyObject_Length PyObject_Size
/*
Return the size of object o. If the object, o, provides
@@ -685,7 +685,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
DL_IMPORT(int) PySequence_Size(PyObject *o);
-#define PySequence_Length(O) PySequence_Size((O))
+#define PySequence_Length PySequence_Size
/*
Return the size of sequence object o, or -1 on failure.
@@ -839,7 +839,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
DL_IMPORT(int) PyMapping_Size(PyObject *o);
-#define PyMapping_Length(O) PyMapping_Size((O))
+#define PyMapping_Length PyMapping_Size
/*
Returns the number of keys in object o on success, and -1 on