]> granicus.if.org Git - python/commitdiff
_PyUnicode_IsWhitespace(),
authorTim Peters <tim.peters@gmail.com>
Sat, 29 Oct 2005 02:33:18 +0000 (02:33 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 29 Oct 2005 02:33:18 +0000 (02:33 +0000)
_PyUnicode_IsLinebreak():
Changed the declarations to match the definitions.

Don't know why they differed; MSVC warned about it;
don't know why only these two functions use "const".
Someone who does may want to do something saner ;-).

Include/unicodeobject.h

index b5341875e6fc617965d1b9e80bbb5399182fcfbd..78e80c7d24b6b628459a841232698dbd62cabaf5 100644 (file)
@@ -1152,11 +1152,11 @@ PyAPI_FUNC(int) _PyUnicode_IsTitlecase(
     );
 
 PyAPI_FUNC(int) _PyUnicode_IsWhitespace(
-    Py_UNICODE ch      /* Unicode character */
+    const Py_UNICODE ch        /* Unicode character */
     );
 
 PyAPI_FUNC(int) _PyUnicode_IsLinebreak(
-    Py_UNICODE ch      /* Unicode character */
+    const Py_UNICODE ch        /* Unicode character */
     );
 
 PyAPI_FUNC(Py_UNICODE) _PyUnicode_ToLowercase(