From 18b5dd68c6b616257ae243c0b6bb965ffc885a23 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Feb 2022 12:53:19 +0100 Subject: bpo-46836: Move PyFrameObject to pycore_frame.h (GH-31530) Move the PyFrameObject type definition (struct _frame) to the internal C API pycore_frame.h header file. --- Include/cpython/frameobject.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'Include/cpython/frameobject.h') diff --git a/Include/cpython/frameobject.h b/Include/cpython/frameobject.h index 3d862d9deb..e69209686b 100644 --- a/Include/cpython/frameobject.h +++ b/Include/cpython/frameobject.h @@ -4,19 +4,6 @@ # error "this header file must not be included directly" #endif -struct _frame { - PyObject_HEAD - PyFrameObject *f_back; /* previous frame, or NULL */ - struct _interpreter_frame *f_frame; /* points to the frame data */ - PyObject *f_trace; /* Trace function */ - int f_lineno; /* Current line number. Only valid if non-zero */ - char f_trace_lines; /* Emit per-line trace events? */ - char f_trace_opcodes; /* Emit per-opcode trace events? */ - char f_owns_frame; /* This frame owns the frame */ - /* The frame data, if this frame object owns the frame */ - PyObject *_f_frame_data[1]; -}; - /* Standard object interface */ PyAPI_DATA(PyTypeObject) PyFrame_Type; -- cgit v1.2.1