Mercurial > cpython-lru_cache-weakref
diff Python/codecs.c @ 85157:e7f6cef7a4cc
Issue #18722: Remove uses of the "register" keyword in C code.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Tue, 13 Aug 2013 20:18:52 +0200 |
| parents | 4975bcd67aa7 |
| children | 3055e61f1e66 |
line wrap: on
line diff
--- a/Python/codecs.c Tue Aug 13 12:54:29 2013 +0300 +++ b/Python/codecs.c Tue Aug 13 20:18:52 2013 +0200 @@ -53,7 +53,7 @@ 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 @@ 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
