diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-13 18:18:52 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-13 18:18:52 (GMT) |
| commit | 9ed5f2726607c57c894af24159b6a7ccf660da7f (patch) | |
| tree | e1b779ecf1afd5d86eb955ed44b476f2d88dab10 /Objects/stringlib/codecs.h | |
| parent | 9eaa3e6732debf6a633f44cf3c82a0eaf8879a51 (diff) | |
| download | cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.zip cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.tar.gz cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.tar.bz2 | |
Issue #18722: Remove uses of the "register" keyword in C code.
Diffstat (limited to 'Objects/stringlib/codecs.h')
| -rw-r--r-- | Objects/stringlib/codecs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h index f855003..57319c6 100644 --- a/Objects/stringlib/codecs.h +++ b/Objects/stringlib/codecs.h @@ -38,8 +38,8 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end, */ if (_Py_IS_ALIGNED(s, SIZEOF_LONG)) { /* Help register allocation */ - register const char *_s = s; - register STRINGLIB_CHAR *_p = p; + const char *_s = s; + STRINGLIB_CHAR *_p = p; while (_s < aligned_end) { /* Read a whole long at a time (either 4 or 8 bytes), and do a fast unrolled copy if it only contains ASCII @@ -499,7 +499,7 @@ STRINGLIB(utf16_decode)(const unsigned char **inptr, const unsigned char *e, reads are more expensive, better to defer to another iteration. */ if (_Py_IS_ALIGNED(q, SIZEOF_LONG)) { /* Fast path for runs of in-range non-surrogate chars. */ - register const unsigned char *_q = q; + const unsigned char *_q = q; while (_q < aligned_end) { unsigned long block = * (unsigned long *) _q; if (native_ordering) { |
