mirror of
https://github.com/python/cpython.git
synced 2025-09-10 02:36:56 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue