summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-13 18:18:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-13 18:18:52 (GMT)
commit9ed5f2726607c57c894af24159b6a7ccf660da7f (patch)
treee1b779ecf1afd5d86eb955ed44b476f2d88dab10 /Objects/classobject.c
parent9eaa3e6732debf6a633f44cf3c82a0eaf8879a51 (diff)
downloadcpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.zip
cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.tar.gz
cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.tar.bz2
Issue #18722: Remove uses of the "register" keyword in C code.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index cdc9b1c..27f7ef4 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -44,7 +44,7 @@ PyMethod_Self(PyObject *im)
PyObject *
PyMethod_New(PyObject *func, PyObject *self)
{
- register PyMethodObject *im;
+ PyMethodObject *im;
if (self == NULL) {
PyErr_BadInternalCall();
return NULL;
@@ -164,7 +164,7 @@ method_new(PyTypeObject* type, PyObject* args, PyObject *kw)
}
static void
-method_dealloc(register PyMethodObject *im)
+method_dealloc(PyMethodObject *im)
{
_PyObject_GC_UNTRACK(im);
if (im->im_weakreflist != NULL)
@@ -509,7 +509,7 @@ instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw)
static PyObject *
instancemethod_descr_get(PyObject *descr, PyObject *obj, PyObject *type) {
- register PyObject *func = PyInstanceMethod_GET_FUNCTION(descr);
+ PyObject *func = PyInstanceMethod_GET_FUNCTION(descr);
if (obj == NULL) {
Py_INCREF(func);
return func;