#ifndef _GENSUPP_H #define _GENSUPP_H #include "psyco.h" #include "mergepoints.h" #include "profile.h" #include #include "Objects/genstateobject.h" /* access to a frame structure */ PSY_INLINE void psyco_generator_bind(PyFrameObject *f) { /* again almost the same as turbo */ psyco_turbo_code(f->f_code, DEFAULT_RECURSION); } /* for psyco calling generators */ PyGenStateObject* psyco_generator_ready(PyGenObject *gen); /* make a new entrypoint after a yield */ void _save_generator_entry(PsycoObject *po); /* support for pgenobject */ extern PyCFunction _gen_send_ex; extern PyCFunction _gen_send; extern PyCFunction _gen_throw; extern PyCFunction _gen_close; extern iternextfunc _gen_iternext; /* interface for pgenobject.c */ PyObject * PsyEval_EvalGenState(PyGenStateObject *gs); #endif /* _GENSUPP_H */