Get ceval.c to compile again by moving declarations before other statments.

This commit is contained in:
Raymond Hettinger 2004-06-26 04:34:33 +00:00
parent f6af76da61
commit a7f56bc0cc
1 changed files with 2 additions and 1 deletions

View 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);