mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18722: Remove uses of the "register" keyword in C code.
This commit is contained in:
parent
9eaa3e6732
commit
9ed5f27266
38 changed files with 288 additions and 286 deletions
|
@ -862,9 +862,9 @@ bytearray_repr(PyByteArrayObject *self)
|
|||
/* 15 == strlen(quote_prefix) + 2 + strlen(quote_postfix) + 1 */
|
||||
size_t newsize;
|
||||
PyObject *v;
|
||||
register Py_ssize_t i;
|
||||
register char c;
|
||||
register char *p;
|
||||
Py_ssize_t i;
|
||||
char c;
|
||||
char *p;
|
||||
int quote;
|
||||
char *test, *start;
|
||||
char *buffer;
|
||||
|
@ -1431,9 +1431,9 @@ table, which must be a bytes object of length 256.");
|
|||
static PyObject *
|
||||
bytearray_translate(PyByteArrayObject *self, PyObject *args)
|
||||
{
|
||||
register char *input, *output;
|
||||
register const char *table;
|
||||
register Py_ssize_t i, c;
|
||||
char *input, *output;
|
||||
const char *table;
|
||||
Py_ssize_t i, c;
|
||||
PyObject *input_obj = (PyObject*)self;
|
||||
const char *output_start;
|
||||
Py_ssize_t inlen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue