]> granicus.if.org Git - python/commitdiff
Get ceval.c to compile again by moving declarations before other statments.
authorRaymond Hettinger <python@rcn.com>
Sat, 26 Jun 2004 04:34:33 +0000 (04:34 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 26 Jun 2004 04:34:33 +0000 (04:34 +0000)
Python/ceval.c

index b320f61681ce1a1213e5d89d7d38eb2387bbdc67..e2330996abdb66c430bacd58f1b00e3a61067e2f 100644 (file)
@@ -3484,8 +3484,9 @@ call_function(PyObject ***pp_stack, int oparg
        */
        if (PyCFunction_Check(func) && nk == 0) {
                int flags = PyCFunction_GET_FLAGS(func);
-               PCALL(PCALL_CFUNCTION);
                PyThreadState *tstate = PyThreadState_GET();
+
+               PCALL(PCALL_CFUNCTION);
                if (flags & (METH_NOARGS | METH_O)) {
                        PyCFunction meth = PyCFunction_GET_FUNCTION(func);
                        PyObject *self = PyCFunction_GET_SELF(func);