@@ -78,7 +78,7 @@ Copyright (c) Corporation for National Research Initiatives.
7878#define Py_UNICODE_WIDE
7979#endif
8080
81- /* Set these flags if the platform has "wchar.h", "wctype.h" and the
81+ /* Set these flags if the platform has "wchar.h" and the
8282 wchar_t type is a 16-bit unsigned type */
8383/* #define HAVE_WCHAR_H */
8484/* #define HAVE_USABLE_WCHAR_T */
@@ -309,39 +309,6 @@ typedef PY_UNICODE_TYPE Py_UNICODE;
309309
310310/* --- Internal Unicode Operations ---------------------------------------- */
311311
312- /* If you want Python to use the compiler's wctype.h functions instead
313- of the ones supplied with Python, define WANT_WCTYPE_FUNCTIONS or
314- configure Python using --with-wctype-functions. This reduces the
315- interpreter's code size. */
316-
317- #if defined(Py_UNICODE_WIDE ) && defined(HAVE_USABLE_WCHAR_T ) && defined(WANT_WCTYPE_FUNCTIONS )
318-
319- #include <wctype.h>
320-
321- #define Py_UNICODE_ISSPACE (ch ) iswspace(ch)
322-
323- #define Py_UNICODE_ISLOWER (ch ) iswlower(ch)
324- #define Py_UNICODE_ISUPPER (ch ) iswupper(ch)
325- #define Py_UNICODE_ISTITLE (ch ) _PyUnicode_IsTitlecase(ch)
326- #define Py_UNICODE_ISLINEBREAK (ch ) _PyUnicode_IsLinebreak(ch)
327-
328- #define Py_UNICODE_TOLOWER (ch ) towlower(ch)
329- #define Py_UNICODE_TOUPPER (ch ) towupper(ch)
330- #define Py_UNICODE_TOTITLE (ch ) _PyUnicode_ToTitlecase(ch)
331-
332- #define Py_UNICODE_ISDECIMAL (ch ) _PyUnicode_IsDecimalDigit(ch)
333- #define Py_UNICODE_ISDIGIT (ch ) _PyUnicode_IsDigit(ch)
334- #define Py_UNICODE_ISNUMERIC (ch ) _PyUnicode_IsNumeric(ch)
335- #define Py_UNICODE_ISPRINTABLE (ch ) _PyUnicode_IsPrintable(ch)
336-
337- #define Py_UNICODE_TODECIMAL (ch ) _PyUnicode_ToDecimalDigit(ch)
338- #define Py_UNICODE_TODIGIT (ch ) _PyUnicode_ToDigit(ch)
339- #define Py_UNICODE_TONUMERIC (ch ) _PyUnicode_ToNumeric(ch)
340-
341- #define Py_UNICODE_ISALPHA (ch ) iswalpha(ch)
342-
343- #else
344-
345312/* Since splitting on whitespace is an important use case, and
346313 whitespace in most situations is solely ASCII whitespace, we
347314 optimize for the common case by using a quick look-up table
@@ -371,8 +338,6 @@ typedef PY_UNICODE_TYPE Py_UNICODE;
371338
372339#define Py_UNICODE_ISALPHA (ch ) _PyUnicode_IsAlpha(ch)
373340
374- #endif
375-
376341#define Py_UNICODE_ISALNUM (ch ) \
377342 (Py_UNICODE_ISALPHA(ch) || \
378343 Py_UNICODE_ISDECIMAL(ch) || \
0 commit comments