From: Raymond Hettinger Date: Sat, 26 Jun 2004 04:34:33 +0000 (+0000) Subject: Get ceval.c to compile again by moving declarations before other statments. X-Git-Tag: v2.4a1~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7f56bc0cc1eef6c0ba3bfab754f3f827159a06a;p=python Get ceval.c to compile again by moving declarations before other statments. --- diff --git a/Python/ceval.c b/Python/ceval.c index b320f61681..e2330996ab 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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);