diff Tools/unicode/makeunicodedata.py @ 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 dfe991036531
children 6b28bfff9204
line wrap: on
line diff
--- a/Tools/unicode/makeunicodedata.py	Tue Aug 13 12:54:29 2013 +0300
+++ b/Tools/unicode/makeunicodedata.py	Tue Aug 13 20:18:52 2013 +0200
@@ -552,7 +552,7 @@
     print("/* Returns 1 for Unicode characters having the bidirectional", file=fp)
     print(" * type 'WS', 'B' or 'S' or the category 'Zs', 0 otherwise.", file=fp)
     print(" */", file=fp)
-    print('int _PyUnicode_IsWhitespace(register const Py_UCS4 ch)', file=fp)
+    print('int _PyUnicode_IsWhitespace(const Py_UCS4 ch)', file=fp)
     print('{', file=fp)
     print('    switch (ch) {', file=fp)
 
@@ -570,7 +570,7 @@
     print(" * property 'BK', 'CR', 'LF' or 'NL' or having bidirectional", file=fp)
     print(" * type 'B', 0 otherwise.", file=fp)
     print(" */", file=fp)
-    print('int _PyUnicode_IsLinebreak(register const Py_UCS4 ch)', file=fp)
+    print('int _PyUnicode_IsLinebreak(const Py_UCS4 ch)', file=fp)
     print('{', file=fp)
     print('    switch (ch) {', file=fp)
     for codepoint in sorted(linebreaks):