annotate DEPENDENCIES/mingw32/Python27/include/genobject.h @ 118:770eb830ec19 emscripten

Typo fix
author Chris Cannam
date Wed, 18 May 2016 16:14:08 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1
Chris@87 2 /* Generator object interface */
Chris@87 3
Chris@87 4 #ifndef Py_GENOBJECT_H
Chris@87 5 #define Py_GENOBJECT_H
Chris@87 6 #ifdef __cplusplus
Chris@87 7 extern "C" {
Chris@87 8 #endif
Chris@87 9
Chris@87 10 struct _frame; /* Avoid including frameobject.h */
Chris@87 11
Chris@87 12 typedef struct {
Chris@87 13 PyObject_HEAD
Chris@87 14 /* The gi_ prefix is intended to remind of generator-iterator. */
Chris@87 15
Chris@87 16 /* Note: gi_frame can be NULL if the generator is "finished" */
Chris@87 17 struct _frame *gi_frame;
Chris@87 18
Chris@87 19 /* True if generator is being executed. */
Chris@87 20 int gi_running;
Chris@87 21
Chris@87 22 /* The code object backing the generator */
Chris@87 23 PyObject *gi_code;
Chris@87 24
Chris@87 25 /* List of weak reference. */
Chris@87 26 PyObject *gi_weakreflist;
Chris@87 27 } PyGenObject;
Chris@87 28
Chris@87 29 PyAPI_DATA(PyTypeObject) PyGen_Type;
Chris@87 30
Chris@87 31 #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
Chris@87 32 #define PyGen_CheckExact(op) (Py_TYPE(op) == &PyGen_Type)
Chris@87 33
Chris@87 34 PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *);
Chris@87 35 PyAPI_FUNC(int) PyGen_NeedsFinalizing(PyGenObject *);
Chris@87 36
Chris@87 37 #ifdef __cplusplus
Chris@87 38 }
Chris@87 39 #endif
Chris@87 40 #endif /* !Py_GENOBJECT_H */