mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583)
Rename also struct _interpreter_frame to struct _PyInterpreterFrame. Reduce risk of name conflicts if a project includes pycore_frame.h.
This commit is contained in:
parent
f780d9690f
commit
87af12bff3
15 changed files with 138 additions and 138 deletions
|
@ -12,7 +12,7 @@
|
|||
#include "pycore_typeobject.h" // struct type_cache
|
||||
#include "pycore_unionobject.h" // _Py_union_type_or
|
||||
#include "frameobject.h" // PyFrameObject
|
||||
#include "pycore_frame.h" // InterpreterFrame
|
||||
#include "pycore_frame.h" // _PyInterpreterFrame
|
||||
#include "opcode.h" // MAKE_CELL
|
||||
#include "structmember.h" // PyMemberDef
|
||||
|
||||
|
@ -8933,7 +8933,7 @@ super_descr_get(PyObject *self, PyObject *obj, PyObject *type)
|
|||
}
|
||||
|
||||
static int
|
||||
super_init_without_args(InterpreterFrame *cframe, PyCodeObject *co,
|
||||
super_init_without_args(_PyInterpreterFrame *cframe, PyCodeObject *co,
|
||||
PyTypeObject **type_p, PyObject **obj_p)
|
||||
{
|
||||
if (co->co_argcount == 0) {
|
||||
|
@ -9017,7 +9017,7 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
/* Call super(), without args -- fill in from __class__
|
||||
and first local variable on the stack. */
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
InterpreterFrame *cframe = tstate->cframe->current_frame;
|
||||
_PyInterpreterFrame *cframe = tstate->cframe->current_frame;
|
||||
if (cframe == NULL) {
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"super(): no current frame");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue