summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-11-16 00:04:44 (GMT)
committerGitHub <noreply@github.com>2019-11-16 00:04:44 (GMT)
commit51edf8aaa2e17626f9690ed29d25945fc03016b9 (patch)
tree51c19b0055844d2b541865d7396b4d17f628695a /Include/cpython
parent7c6130c8c36c941255365e5414c956fc919b8629 (diff)
downloadcpython-51edf8aaa2e17626f9690ed29d25945fc03016b9.zip
cpython-51edf8aaa2e17626f9690ed29d25945fc03016b9.tar.gz
cpython-51edf8aaa2e17626f9690ed29d25945fc03016b9.tar.bz2
bpo-38644: Cleanup ceval.h (GH-17185)
Move CPython API (Py_LIMITED_API macro not defined) from ceval.h to cpython/ceval.h
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/ceval.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Include/cpython/ceval.h b/Include/cpython/ceval.h
index 1e2c457..e601304 100644
--- a/Include/cpython/ceval.h
+++ b/Include/cpython/ceval.h
@@ -6,6 +6,31 @@
extern "C" {
#endif
+PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
+PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
+PyAPI_FUNC(int) _PyEval_GetCoroutineOriginTrackingDepth(void);
+PyAPI_FUNC(void) _PyEval_SetAsyncGenFirstiter(PyObject *);
+PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFirstiter(void);
+PyAPI_FUNC(void) _PyEval_SetAsyncGenFinalizer(PyObject *);
+PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFinalizer(void);
+
+/* Helper to look up a builtin object */
+PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
+/* Look at the current frame's (if any) code's co_flags, and turn on
+ the corresponding compiler flags in cf->cf_flags. Return 1 if any
+ flag was set, else return 0. */
+PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
+
+PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(struct _frame *f, int exc);
+
+PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
+PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
+
+PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc);
+
+PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
+PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);
+
PyAPI_DATA(int) _Py_CheckRecursionLimit;
#ifdef USE_STACKCHECK