Issue #18722: Remove uses of the "register" keyword in C code.
This commit is contained in:
@@ -53,7 +53,7 @@ int PyCodec_Register(PyObject *search_function)
|
||||
static
|
||||
PyObject *normalizestring(const char *string)
|
||||
{
|
||||
register size_t i;
|
||||
size_t i;
|
||||
size_t len = strlen(string);
|
||||
char *p;
|
||||
PyObject *v;
|
||||
@@ -67,7 +67,7 @@ PyObject *normalizestring(const char *string)
|
||||
if (p == NULL)
|
||||
return PyErr_NoMemory();
|
||||
for (i = 0; i < len; i++) {
|
||||
register char ch = string[i];
|
||||
char ch = string[i];
|
||||
if (ch == ' ')
|
||||
ch = '-';
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user