summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-06-26 04:34:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-06-26 04:34:33 (GMT)
commita7f56bc0cc1eef6c0ba3bfab754f3f827159a06a (patch)
tree7a5e3e7609249557c2970ebece5015d7cdaced49 /Python
parentf6af76da61fcbd9e6f0d43dcbd236864e12ec334 (diff)
downloadcpython-a7f56bc0cc1eef6c0ba3bfab754f3f827159a06a.zip
cpython-a7f56bc0cc1eef6c0ba3bfab754f3f827159a06a.tar.gz
cpython-a7f56bc0cc1eef6c0ba3bfab754f3f827159a06a.tar.bz2
Get ceval.c to compile again by moving declarations before other statments.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c3
1 files changed, 2 insertions, 1 deletions
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);