jpayne@69: #ifndef Py_ITEROBJECT_H jpayne@69: #define Py_ITEROBJECT_H jpayne@69: /* Iterators (the basic kind, over a sequence) */ jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: PyAPI_DATA(PyTypeObject) PySeqIter_Type; jpayne@69: PyAPI_DATA(PyTypeObject) PyCallIter_Type; jpayne@69: PyAPI_DATA(PyTypeObject) PyCmpWrapper_Type; jpayne@69: jpayne@69: #define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type) jpayne@69: jpayne@69: PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *); jpayne@69: jpayne@69: jpayne@69: #define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type) jpayne@69: jpayne@69: PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *); jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_ITEROBJECT_H */ jpayne@69: