summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorDino Viehland <dinov@microsoft.com>2017-06-21 21:44:36 (GMT)
committerYury Selivanov <yury@magic.io>2017-06-21 21:44:36 (GMT)
commitf3cffd2b7879d209f982de899b782fb89cfc410a (patch)
tree41c093d76571fc0e7676c0bb01980afc3029ed3f /Include
parentc90e96015085784df86632b26059b19c80cbfc97 (diff)
downloadcpython-f3cffd2b7879d209f982de899b782fb89cfc410a.zip
cpython-f3cffd2b7879d209f982de899b782fb89cfc410a.tar.gz
cpython-f3cffd2b7879d209f982de899b782fb89cfc410a.tar.bz2
bpo-30604: clean up co_extra support (#2144)
bpo-30604: port fix from 3.6 dropping binary compatibility tweaks
Diffstat (limited to 'Include')
-rw-r--r--Include/pystate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index a5bbb25..edfb08b 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -74,6 +74,10 @@ typedef struct _is {
PyObject *import_func;
/* Initialized to PyEval_EvalFrameDefault(). */
_PyFrameEvalFunction eval_frame;
+
+ Py_ssize_t co_extra_user_count;
+ freefunc co_extra_freefuncs[MAX_CO_EXTRA_USERS];
+
#ifdef HAVE_FORK
PyObject *before_forkers;
PyObject *after_forkers_parent;
@@ -173,9 +177,6 @@ typedef struct _ts {
PyObject *coroutine_wrapper;
int in_coroutine_wrapper;
- Py_ssize_t co_extra_user_count;
- freefunc co_extra_freefuncs[MAX_CO_EXTRA_USERS];
-
PyObject *async_gen_firstiter;
PyObject *async_gen_finalizer;