@@ -852,19 +852,6 @@ slp_eval_frame_newstack(PyFrameObject *f, int exc, PyObject *retval)
852
852
853
853
*******************************************************/
854
854
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
-
868
855
/*
869
856
* Note:
870
857
* Generators are quite a bit slower in Stackless, because
@@ -876,10 +863,9 @@ typedef struct {
876
863
PyObject * gen_iternext_callback (PyFrameObject * f , int exc , PyObject * result );
877
864
878
865
PyObject *
879
- slp_gen_send_ex (PyGenObject * ob , PyObject * arg , int exc )
866
+ slp_gen_send_ex (PyGenObject * gen , PyObject * arg , int exc )
880
867
{
881
868
STACKLESS_GETARG ();
882
- genobject * gen = (genobject * ) ob ;
883
869
PyThreadState * ts = PyThreadState_GET ();
884
870
PyFrameObject * f = gen -> gi_frame ;
885
871
PyFrameObject * stopframe = ts -> frame ;
@@ -950,7 +936,7 @@ gen_iternext_callback(PyFrameObject *f, int exc, PyObject *result)
950
936
{
951
937
PyThreadState * ts = PyThreadState_GET ();
952
938
PyCFrameObject * cf = (PyCFrameObject * ) f ;
953
- genobject * gen = (genobject * ) cf -> ob1 ;
939
+ PyGenObject * gen = (PyGenObject * ) cf -> ob1 ;
954
940
PyObject * arg = cf -> ob2 ;
955
941
956
942
gen -> gi_running = 0 ;
0 commit comments