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:20:21 +02:00
parent d5d0bc35ad
commit 09fcb72048
5 changed files with 53 additions and 50 deletions

View file

@ -282,12 +282,12 @@ check_decoded(PyObject *decoded)
#define SEEN_ALL (SEEN_CR | SEEN_LF | SEEN_CRLF)
PyObject *
_PyIncrementalNewlineDecoder_decode(PyObject *_self,
_PyIncrementalNewlineDecoder_decode(PyObject *myself,
PyObject *input, int final)
{
PyObject *output;
Py_ssize_t output_len;
nldecoder_object *self = (nldecoder_object *) _self;
nldecoder_object *self = (nldecoder_object *) myself;
if (self->decoder == NULL) {
PyErr_SetString(PyExc_ValueError,