python/dist/src/Include genobject.h, NONE, 2.1 ceval.h, 2.50, 2.51
Update of /cvsroot/python/python/dist/src/Include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11725/Include Modified Files: ceval.h Added Files: genobject.h Log Message: Patch #957398: Add public API for Generator Object/Type. --- NEW FILE: genobject.h --- /* Generator object interface */ #ifndef Py_GENOBJECT_H #define Py_GENOBJECT_H #ifdef __cplusplus extern "C" { #endif typedef struct { PyObject_HEAD /* The gi_ prefix is intended to remind of generator-iterator. */ PyFrameObject *gi_frame; /* True if generator is being executed. */ int gi_running; /* List of weak reference. */ PyObject *gi_weakreflist; } PyGenObject; PyAPI_DATA(PyTypeObject) PyGen_Type; #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type) #define PyGen_CheckExact(op) ((op)->ob_type == &PyGen_Type) PyAPI_FUNC(PyObject *) PyGen_New(PyFrameObject *); #ifdef __cplusplus } #endif #endif /* !Py_GENOBJECT_H */ Index: ceval.h =================================================================== RCS file: /cvsroot/python/python/dist/src/Include/ceval.h,v retrieving revision 2.50 retrieving revision 2.51 diff -C2 -d -r2.50 -r2.51 *** ceval.h 28 Oct 2003 12:05:46 -0000 2.50 --- ceval.h 1 Jun 2004 15:22:40 -0000 2.51 *************** *** 65,68 **** --- 65,69 ---- PyAPI_FUNC(PyObject *) PyEval_GetCallStats(PyObject *); + PyAPI_FUNC(PyObject *) PyEval_EvaluateFrame(PyObject *); /* this used to be handled on a per-thread basis - now just two globals */
participants (1)
-
loewis@users.sourceforge.net