From a7f56bc0cc1eef6c0ba3bfab754f3f827159a06a Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 26 Jun 2004 04:34:33 +0000 Subject: Get ceval.c to compile again by moving declarations before other statments. --- Python/ceval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index b320f61..e233099 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); -- cgit v0.12