cosmopolitan/third_party/python/Include/iterobject.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

21 lines
500 B
C

#ifndef Py_ITEROBJECT_H
#define Py_ITEROBJECT_H
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
extern PyTypeObject PySeqIter_Type;
extern PyTypeObject PyCallIter_Type;
extern PyTypeObject PyCmpWrapper_Type;
#define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)
PyObject * PySeqIter_New(PyObject *);
#define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)
PyObject * PyCallIter_New(PyObject *, PyObject *);
COSMOPOLITAN_C_END_
#endif /* !Py_ITEROBJECT_H */