summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-20 22:09:08 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-20 22:09:08 (GMT)
commita9040ec5d9dc92bc8beb41de2a7f1f5cbb2b917a (patch)
tree745667b932497ea14c30a250bae88f5ffcf7b935 /Objects
parent59943ba718c7181186ccfd0c3529ac38ebd0f1f4 (diff)
downloadcpython-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')
-rw-r--r--Objects/abstract.c12
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;
}