summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-03 18:59:50 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-03 18:59:50 (GMT)
commitb8824952cb616bdb1b60bcf9fb3b486e91c7d42b (patch)
treee889d01cebe499f42a2ff5996e339a022059b188 /Python/ceval.c
parentb6a6bdc7db54c684646f3cc3c537e8c62293986d (diff)
downloadcpython-b8824952cb616bdb1b60bcf9fb3b486e91c7d42b.zip
cpython-b8824952cb616bdb1b60bcf9fb3b486e91c7d42b.tar.gz
cpython-b8824952cb616bdb1b60bcf9fb3b486e91c7d42b.tar.bz2
Define and use GETNAMEV macro.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 7213d5b..5a9723f 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -647,6 +647,7 @@ eval_code(co, globals, locals, arg)
#define GETCONST(i) Getconst(f, i)
#define GETNAME(i) Getname(f, i)
+#define GETNAMEV(i) Getnamev(f, i)
#define FIRST_INSTR() (GETUSTRINGVALUE(f->f_code->co_code))
#define INSTR_OFFSET() (next_instr - FIRST_INSTR())
#define NEXTOP() (*next_instr++)
@@ -1090,9 +1091,9 @@ eval_code(co, globals, locals, arg)
break;
case STORE_NAME:
- name = GETNAME(oparg);
+ w = GETNAMEV(oparg);
v = POP();
- err = dictinsert(f->f_locals, name, v);
+ err = dict2insert(f->f_locals, w, v);
DECREF(v);
break;