mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Define and use GETNAMEV macro.
This commit is contained in:
parent
b6a6bdc7db
commit
b8824952cb
1 changed files with 3 additions and 2 deletions
|
@ -647,6 +647,7 @@ eval_code(co, globals, locals, arg)
|
||||||
|
|
||||||
#define GETCONST(i) Getconst(f, i)
|
#define GETCONST(i) Getconst(f, i)
|
||||||
#define GETNAME(i) Getname(f, i)
|
#define GETNAME(i) Getname(f, i)
|
||||||
|
#define GETNAMEV(i) Getnamev(f, i)
|
||||||
#define FIRST_INSTR() (GETUSTRINGVALUE(f->f_code->co_code))
|
#define FIRST_INSTR() (GETUSTRINGVALUE(f->f_code->co_code))
|
||||||
#define INSTR_OFFSET() (next_instr - FIRST_INSTR())
|
#define INSTR_OFFSET() (next_instr - FIRST_INSTR())
|
||||||
#define NEXTOP() (*next_instr++)
|
#define NEXTOP() (*next_instr++)
|
||||||
|
@ -1090,9 +1091,9 @@ eval_code(co, globals, locals, arg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STORE_NAME:
|
case STORE_NAME:
|
||||||
name = GETNAME(oparg);
|
w = GETNAMEV(oparg);
|
||||||
v = POP();
|
v = POP();
|
||||||
err = dictinsert(f->f_locals, name, v);
|
err = dict2insert(f->f_locals, w, v);
|
||||||
DECREF(v);
|
DECREF(v);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue