Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89da961

Browse files
committed
remove unnecessary stuff
1 parent 055612d commit 89da961

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Include/internal/pycore_frame.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ typedef struct _PyInterpreterFrame {
6666
/* The instruction that is currently executing (possibly not started yet). */
6767
_Py_CODEUNIT *instr_ptr;
6868
int stacktop; /* Offset of TOS from localsplus */
69-
/* The new_return_offset determines where a `RETURN` should go in the caller,
70-
* relative to `instr_ptr`.
71-
* It is only meaningful to the callee,
72-
* so it needs to be set in any CALL (to a Python function)
73-
* or SEND (to a coroutine or generator).
74-
* If there is no callee, then it is meaningless. */
75-
uint16_t new_return_offset;
7669
/* The return_offset determines where a `RETURN` should go in the caller,
7770
* relative to `prev_instr`.
7871
* It is only meaningful to the callee,

Python/ceval.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,13 +730,11 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
730730
PyObject **stack_pointer;
731731

732732
/* Sets the above local variables from the frame */
733-
#define SET_LOCALS_FROM_FRAME() do { \
733+
#define SET_LOCALS_FROM_FRAME() \
734734
/* Jump back to the last instruction executed... */ \
735-
_Py_CODEUNIT *tmp = frame->prev_instr + 1; \
736735
assert (frame->instr_ptr == frame->prev_instr + 1); \
737736
next_instr = frame->prev_instr + 1; \
738-
stack_pointer = _PyFrame_GetStackPointer(frame); \
739-
} while(0);
737+
stack_pointer = _PyFrame_GetStackPointer(frame);
740738

741739
start_frame:
742740
if (_Py_EnterRecursivePy(tstate)) {

0 commit comments

Comments
 (0)