mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" (GH-32343)
* Revert "bpo-46850: Move _PyInterpreterState_SetEvalFrameFunc() to internal C API (GH-32054)" This reverts commitf877b40e3f
. * Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" This reverts commitb9a5522dd9
.
This commit is contained in:
parent
1d3e743599
commit
2b4f2f5fa4
7 changed files with 15 additions and 42 deletions
|
@ -59,11 +59,6 @@ extern PyObject* _PyEval_BuiltinsFromGlobals(
|
|||
PyObject *globals);
|
||||
|
||||
|
||||
PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(
|
||||
PyThreadState *tstate,
|
||||
struct _PyInterpreterFrame *frame,
|
||||
int throwflag);
|
||||
|
||||
static inline PyObject*
|
||||
_PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag)
|
||||
{
|
||||
|
|
|
@ -17,9 +17,9 @@ extern "C" {
|
|||
#include "pycore_dict.h" // struct _Py_dict_state
|
||||
#include "pycore_exceptions.h" // struct _Py_exc_state
|
||||
#include "pycore_floatobject.h" // struct _Py_float_state
|
||||
#include "pycore_gc.h" // struct _gc_runtime_state
|
||||
#include "pycore_genobject.h" // struct _Py_async_gen_state
|
||||
#include "pycore_gil.h" // struct _gil_runtime_state
|
||||
#include "pycore_gc.h" // struct _gc_runtime_state
|
||||
#include "pycore_list.h" // struct _Py_list_state
|
||||
#include "pycore_tuple.h" // struct _Py_tuple_state
|
||||
#include "pycore_typeobject.h" // struct type_cache
|
||||
|
@ -71,20 +71,6 @@ struct atexit_state {
|
|||
};
|
||||
|
||||
|
||||
/* Frame evaluation API (PEP 523) */
|
||||
|
||||
typedef PyObject* (*_PyFrameEvalFunction) (
|
||||
PyThreadState *tstate,
|
||||
struct _PyInterpreterFrame *frame,
|
||||
int throwflag);
|
||||
|
||||
PyAPI_FUNC(_PyFrameEvalFunction) _PyInterpreterState_GetEvalFrameFunc(
|
||||
PyInterpreterState *interp);
|
||||
PyAPI_FUNC(void) _PyInterpreterState_SetEvalFrameFunc(
|
||||
PyInterpreterState *interp,
|
||||
_PyFrameEvalFunction eval_frame);
|
||||
|
||||
|
||||
/* interpreter state */
|
||||
|
||||
/* PyInterpreterState holds the global state for one of the runtime's
|
||||
|
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
#include "pycore_runtime.h" // _PyRuntime
|
||||
#include "pycore_runtime.h" /* PyRuntimeState */
|
||||
|
||||
|
||||
/* Check if the current thread is the main thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue