mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers.
This commit is contained in:
parent
d5d0bc35ad
commit
09fcb72048
5 changed files with 53 additions and 50 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue