mirror of https://github.com/python/cpython.git
Make frames a PyVarObject instead of a PyObject.
This commit is contained in:
parent
9c63e6d682
commit
251ead8dd8
|
@ -14,7 +14,7 @@ typedef struct {
|
||||||
} PyTryBlock;
|
} PyTryBlock;
|
||||||
|
|
||||||
typedef struct _frame {
|
typedef struct _frame {
|
||||||
PyObject_HEAD
|
PyObject_VAR_HEAD
|
||||||
struct _frame *f_back; /* previous frame, or NULL */
|
struct _frame *f_back; /* previous frame, or NULL */
|
||||||
PyCodeObject *f_code; /* code segment */
|
PyCodeObject *f_code; /* code segment */
|
||||||
PyObject *f_builtins; /* builtin symbol table (PyDictObject) */
|
PyObject *f_builtins; /* builtin symbol table (PyDictObject) */
|
||||||
|
@ -34,7 +34,6 @@ typedef struct _frame {
|
||||||
in this scope */
|
in this scope */
|
||||||
int f_iblock; /* index in f_blockstack */
|
int f_iblock; /* index in f_blockstack */
|
||||||
PyTryBlock f_blockstack[CO_MAXBLOCKS]; /* for try and loop blocks */
|
PyTryBlock f_blockstack[CO_MAXBLOCKS]; /* for try and loop blocks */
|
||||||
int f_size; /* size of localsplus */
|
|
||||||
int f_nlocals; /* number of locals */
|
int f_nlocals; /* number of locals */
|
||||||
int f_ncells;
|
int f_ncells;
|
||||||
int f_nfreevars;
|
int f_nfreevars;
|
||||||
|
|
Loading…
Reference in New Issue