Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers.

This commit is contained in:
Antoine Pitrou 2013-10-23 19:21:55 +02:00
commit 4d397008cd
5 changed files with 56 additions and 51 deletions

View file

@ -816,9 +816,9 @@ element_deepcopy(ElementObject* self, PyObject* args)
}
static PyObject*
element_sizeof(PyObject* _self, PyObject* args)
element_sizeof(PyObject* myself, PyObject* args)
{
ElementObject *self = (ElementObject*)_self;
ElementObject *self = (ElementObject*)myself;
Py_ssize_t result = sizeof(ElementObject);
if (self->extra) {
result += sizeof(ElementObjectExtra);