diff options
author | Guido van Rossum <guido@python.org> | 1997-05-20 22:09:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-20 22:09:08 (GMT) |
commit | a9040ec5d9dc92bc8beb41de2a7f1f5cbb2b917a (patch) | |
tree | 745667b932497ea14c30a250bae88f5ffcf7b935 /Objects/abstract.c | |
parent | 59943ba718c7181186ccfd0c3529ac38ebd0f1f4 (diff) | |
download | cpython-a9040ec5d9dc92bc8beb41de2a7f1f5cbb2b917a.zip cpython-a9040ec5d9dc92bc8beb41de2a7f1f5cbb2b917a.tar.gz cpython-a9040ec5d9dc92bc8beb41de2a7f1f5cbb2b917a.tar.bz2 |
Renamed a local variable from 'PyCFunction' (which is also a typedef
in methodobject.h) to 'func'. /bin/cc on SunOS 4.x didn't grok this.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index b6d4dda..82eec95 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1034,7 +1034,7 @@ PyObject_CallMethod(va_alist) va_dcl #endif { va_list va; - PyObject *args, *PyCFunction=0, *retval; + PyObject *args, *func=0, *retval; #ifdef HAVE_STDARG_PROTOTYPES va_start(va, format); #else @@ -1053,15 +1053,15 @@ PyObject_CallMethod(va_alist) va_dcl return Py_ReturnNullError(); } - PyCFunction=PyObject_GetAttrString(o,name); - if(! PyCFunction) + func=PyObject_GetAttrString(o,name); + if(! func) { va_end(va); PyErr_SetString(PyExc_AttributeError,name); return 0; } - if(! (PyCallable_Check(PyCFunction))) + if(! (PyCallable_Check(func))) { va_end(va); PyErr_SetString(PyExc_TypeError,"call of non-callable attribute"); @@ -1086,9 +1086,9 @@ PyObject_CallMethod(va_alist) va_dcl args=a; } - retval = PyObject_CallObject(PyCFunction,args); + retval = PyObject_CallObject(func,args); Py_DECREF(args); - Py_DECREF(PyCFunction); + Py_DECREF(func); return retval; } |