summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-04 18:49:58 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-04 18:49:58 +0000
commite8c701af39800fc33e6491ff430d1b41a5ef9518 (patch)
treef2ba2dea77479c6a94a805cc6a5ac815780ab88a /Include
parentf9f4c009d6864324fb64432a75a046ead96f9484 (diff)
downloadcpython-e8c701af39800fc33e6491ff430d1b41a5ef9518.tar.gz
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 03eb30a26f..73dc91d11b 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,