mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
This commit is contained in:
commit
ec39756960
50 changed files with 174 additions and 174 deletions
|
@ -667,7 +667,7 @@ save_unconsumed_input(compobject *self, int err)
|
|||
PyBytes_AS_STRING(self->unused_data), old_size);
|
||||
Py_MEMCPY(PyBytes_AS_STRING(new_data) + old_size,
|
||||
self->zst.next_in, self->zst.avail_in);
|
||||
Py_SETREF(self->unused_data, new_data);
|
||||
Py_XSETREF(self->unused_data, new_data);
|
||||
self->zst.avail_in = 0;
|
||||
}
|
||||
}
|
||||
|
@ -679,7 +679,7 @@ save_unconsumed_input(compobject *self, int err)
|
|||
(char *)self->zst.next_in, self->zst.avail_in);
|
||||
if (new_data == NULL)
|
||||
return -1;
|
||||
Py_SETREF(self->unconsumed_tail, new_data);
|
||||
Py_XSETREF(self->unconsumed_tail, new_data);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -961,11 +961,11 @@ zlib_Compress_copy_impl(compobject *self)
|
|||
goto error;
|
||||
}
|
||||
Py_INCREF(self->unused_data);
|
||||
Py_SETREF(retval->unused_data, self->unused_data);
|
||||
Py_XSETREF(retval->unused_data, self->unused_data);
|
||||
Py_INCREF(self->unconsumed_tail);
|
||||
Py_SETREF(retval->unconsumed_tail, self->unconsumed_tail);
|
||||
Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail);
|
||||
Py_XINCREF(self->zdict);
|
||||
Py_SETREF(retval->zdict, self->zdict);
|
||||
Py_XSETREF(retval->zdict, self->zdict);
|
||||
retval->eof = self->eof;
|
||||
|
||||
/* Mark it as being initialized */
|
||||
|
@ -1017,11 +1017,11 @@ zlib_Decompress_copy_impl(compobject *self)
|
|||
}
|
||||
|
||||
Py_INCREF(self->unused_data);
|
||||
Py_SETREF(retval->unused_data, self->unused_data);
|
||||
Py_XSETREF(retval->unused_data, self->unused_data);
|
||||
Py_INCREF(self->unconsumed_tail);
|
||||
Py_SETREF(retval->unconsumed_tail, self->unconsumed_tail);
|
||||
Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail);
|
||||
Py_XINCREF(self->zdict);
|
||||
Py_SETREF(retval->zdict, self->zdict);
|
||||
Py_XSETREF(retval->zdict, self->zdict);
|
||||
retval->eof = self->eof;
|
||||
|
||||
/* Mark it as being initialized */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue