mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Get ceval.c to compile again by moving declarations before other statments.
This commit is contained in:
parent
f6af76da61
commit
a7f56bc0cc
1 changed files with 2 additions and 1 deletions
|
|
@ -3484,8 +3484,9 @@ call_function(PyObject ***pp_stack, int oparg
|
||||||
*/
|
*/
|
||||||
if (PyCFunction_Check(func) && nk == 0) {
|
if (PyCFunction_Check(func) && nk == 0) {
|
||||||
int flags = PyCFunction_GET_FLAGS(func);
|
int flags = PyCFunction_GET_FLAGS(func);
|
||||||
PCALL(PCALL_CFUNCTION);
|
|
||||||
PyThreadState *tstate = PyThreadState_GET();
|
PyThreadState *tstate = PyThreadState_GET();
|
||||||
|
|
||||||
|
PCALL(PCALL_CFUNCTION);
|
||||||
if (flags & (METH_NOARGS | METH_O)) {
|
if (flags & (METH_NOARGS | METH_O)) {
|
||||||
PyCFunction meth = PyCFunction_GET_FUNCTION(func);
|
PyCFunction meth = PyCFunction_GET_FUNCTION(func);
|
||||||
PyObject *self = PyCFunction_GET_SELF(func);
|
PyObject *self = PyCFunction_GET_SELF(func);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue