diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-01 08:55:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 08:55:00 (GMT) |
commit | f877b40e3f7e0d97878884d80fbec879a85ab7e8 (patch) | |
tree | 13a96fd70e9ccecd730d5cdd3c52b1303645f23b /Include/cpython/pystate.h | |
parent | b9a5522dd952125a99ff554f01f311cae25f5a91 (diff) | |
download | cpython-f877b40e3f7e0d97878884d80fbec879a85ab7e8.zip cpython-f877b40e3f7e0d97878884d80fbec879a85ab7e8.tar.gz cpython-f877b40e3f7e0d97878884d80fbec879a85ab7e8.tar.bz2 |
bpo-46850: Move _PyInterpreterState_SetEvalFrameFunc() to internal C API (GH-32054)
Move the private _PyFrameEvalFunction type, and private
_PyInterpreterState_GetEvalFrameFunc() and
_PyInterpreterState_SetEvalFrameFunc() functions to the internal C
API. The _PyFrameEvalFunction callback function type now uses the
_PyInterpreterFrame type which is part of the internal C API.
Update the _PyFrameEvalFunction documentation.
Diffstat (limited to 'Include/cpython/pystate.h')
-rw-r--r-- | Include/cpython/pystate.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 1af21a2..e346d74 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -259,16 +259,6 @@ PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *); PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void); -/* Frame evaluation API */ - -typedef PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, struct _PyInterpreterFrame *, int); - -PyAPI_FUNC(_PyFrameEvalFunction) _PyInterpreterState_GetEvalFrameFunc( - PyInterpreterState *interp); -PyAPI_FUNC(void) _PyInterpreterState_SetEvalFrameFunc( - PyInterpreterState *interp, - _PyFrameEvalFunction eval_frame); - PyAPI_FUNC(const PyConfig*) _PyInterpreterState_GetConfig(PyInterpreterState *interp); /* Get a copy of the current interpreter configuration. |