diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-28 15:03:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 15:03:57 (GMT) |
commit | 7496f9587306772b56ed074092c020f3ef16bf95 (patch) | |
tree | e8d235f50c066ecc4b32a3822ab586771b79b8d8 /Python | |
parent | 4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e (diff) | |
download | cpython-7496f9587306772b56ed074092c020f3ef16bf95.zip cpython-7496f9587306772b56ed074092c020f3ef16bf95.tar.gz cpython-7496f9587306772b56ed074092c020f3ef16bf95.tar.bz2 |
bpo-45431: Rename CFrame to _PyCFrame in the C API (GH-31584)
Rename also struct _cframe to struct _PyCFrame.
Add a comment suggesting using public functions rather than using
directly the private _PyCFrame structure.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 6f1165b..13866ba 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1616,15 +1616,15 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int int oparg; /* Current opcode argument, if any */ _Py_atomic_int * const eval_breaker = &tstate->interp->ceval.eval_breaker; - CFrame cframe; + _PyCFrame cframe; CallShape call_shape; call_shape.kwnames = NULL; // Borrowed reference. Reset by CALL instructions. - /* WARNING: Because the CFrame lives on the C stack, + /* WARNING: Because the _PyCFrame lives on the C stack, * but can be accessed from a heap allocated object (tstate) * strict stack discipline must be maintained. */ - CFrame *prev_cframe = tstate->cframe; + _PyCFrame *prev_cframe = tstate->cframe; cframe.use_tracing = prev_cframe->use_tracing; cframe.previous = prev_cframe; tstate->cframe = &cframe; |