summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-29 23:50:25 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-29 23:50:25 (GMT)
commit3202c6fac875615efae017c6f6219a498f6fc90e (patch)
tree22d94dfa450cd285a076e16d3adcc57c8e93fa9b /Objects/classobject.c
parent2b724da8d9cd0c41a51e798eca75018ce155e997 (diff)
downloadcpython-3202c6fac875615efae017c6f6219a498f6fc90e.zip
cpython-3202c6fac875615efae017c6f6219a498f6fc90e.tar.gz
cpython-3202c6fac875615efae017c6f6219a498f6fc90e.tar.bz2
Rename dubiously named local variable 'cmpfunc' -- this is also a
typedef, and at least one compiler choked on this. (SF patch #103457, by bquinlan)
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index ed79da5..218e031 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -1409,7 +1409,7 @@ half_cmp(PyObject *v, PyObject *w)
{
static PyObject *cmp_obj;
PyObject *args;
- PyObject *cmpfunc;
+ PyObject *cmp_func;
PyObject *result;
long l;
@@ -1421,8 +1421,8 @@ half_cmp(PyObject *v, PyObject *w)
return -2;
}
- cmpfunc = PyObject_GetAttr(v, cmp_obj);
- if (cmpfunc == NULL) {
+ cmp_func = PyObject_GetAttr(v, cmp_obj);
+ if (cmp_func == NULL) {
PyErr_Clear();
return 2;
}
@@ -1431,9 +1431,9 @@ half_cmp(PyObject *v, PyObject *w)
if (args == NULL)
return -2;
- result = PyEval_CallObject(cmpfunc, args);
+ result = PyEval_CallObject(cmp_func, args);
Py_DECREF(args);
- Py_DECREF(cmpfunc);
+ Py_DECREF(cmp_func);
if (result == NULL)
return -2;