@@ -852,19 +852,6 @@ slp_eval_frame_newstack(PyFrameObject *f, int exc, PyObject *retval)
852852
853853*******************************************************/
854854
855- typedef struct {
856- PyObject_HEAD
857- /* The gi_ prefix is intended to remind of generator-iterator. */
858-
859- PyFrameObject * gi_frame ;
860-
861- /* True if generator is being executed. */
862- char gi_running ;
863-
864- /* List of weak reference. */
865- PyObject * gi_weakreflist ;
866- } genobject ;
867-
868855/*
869856 * Note:
870857 * Generators are quite a bit slower in Stackless, because
@@ -876,10 +863,9 @@ typedef struct {
876863PyObject * gen_iternext_callback (PyFrameObject * f , int exc , PyObject * result );
877864
878865PyObject *
879- slp_gen_send_ex (PyGenObject * ob , PyObject * arg , int exc )
866+ slp_gen_send_ex (PyGenObject * gen , PyObject * arg , int exc )
880867{
881868 STACKLESS_GETARG ();
882- genobject * gen = (genobject * ) ob ;
883869 PyThreadState * ts = PyThreadState_GET ();
884870 PyFrameObject * f = gen -> gi_frame ;
885871 PyFrameObject * stopframe = ts -> frame ;
@@ -950,7 +936,7 @@ gen_iternext_callback(PyFrameObject *f, int exc, PyObject *result)
950936{
951937 PyThreadState * ts = PyThreadState_GET ();
952938 PyCFrameObject * cf = (PyCFrameObject * ) f ;
953- genobject * gen = (genobject * ) cf -> ob1 ;
939+ PyGenObject * gen = (PyGenObject * ) cf -> ob1 ;
954940 PyObject * arg = cf -> ob2 ;
955941
956942 gen -> gi_running = 0 ;
0 commit comments