]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Define and use GETNAMEV macro.
authorGuido van Rossum <guido@python.org>
Wed, 3 Apr 1991 18:59:50 +0000 (18:59 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Apr 1991 18:59:50 +0000 (18:59 +0000)
Python/ceval.c

index 7213d5b75b93e917a5d96b9020a9df4db62f969f..5a9723fc27bde4b61324afcfc3b3bbe740b6cd34 100644 (file)
@@ -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;