summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-04 18:49:58 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-04 18:49:58 (GMT)
commit1fc4b776d47b45133a2730d191552ec2f1928baa (patch)
treeb4aabdec7ebdef5cf5f9c362ff19c23ca9e4024e /Include
parent8c49c82889d1af480fa159b56c0e70ef81cf6749 (diff)
downloadcpython-1fc4b776d47b45133a2730d191552ec2f1928baa.zip
cpython-1fc4b776d47b45133a2730d191552ec2f1928baa.tar.gz
cpython-1fc4b776d47b45133a2730d191552ec2f1928baa.tar.bz2
Change some sequnce APIs to use Py_ssize_t.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 03eb30a..73dc91d 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -1042,7 +1042,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
/* Return a pointer to the underlying item array for
an object retured by PySequence_Fast */
- PyAPI_FUNC(int) PySequence_Count(PyObject *o, PyObject *value);
+ PyAPI_FUNC(Py_ssize_t) PySequence_Count(PyObject *o, PyObject *value);
/*
Return the number of occurrences on value on o, that is,
@@ -1060,8 +1060,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
#define PY_ITERSEARCH_COUNT 1
#define PY_ITERSEARCH_INDEX 2
#define PY_ITERSEARCH_CONTAINS 3
- PyAPI_FUNC(int) _PySequence_IterSearch(PyObject *seq, PyObject *obj,
- int operation);
+ PyAPI_FUNC(Py_ssize_t) _PySequence_IterSearch(PyObject *seq,
+ PyObject *obj, int operation);
/*
Iterate over seq. Result depends on the operation:
PY_ITERSEARCH_COUNT: return # of times obj appears in seq; -1 if
@@ -1086,7 +1086,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
is equivalent to the Python expression: value in o.
*/
- PyAPI_FUNC(int) PySequence_Index(PyObject *o, PyObject *value);
+ PyAPI_FUNC(Py_ssize_t) PySequence_Index(PyObject *o, PyObject *value);
/*
Return the first index for which o[i]=value. On error,