mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-36346: Make using the legacy Unicode C API optional (GH-21437)
Add compile time option USE_UNICODE_WCHAR_CACHE. Setting it to 0 makes the interpreter not using the wchar_t cache and the legacy Unicode C API.
This commit is contained in:
parent
9650fe0197
commit
4c8f09d7ce
17 changed files with 360 additions and 99 deletions
|
@ -11,7 +11,9 @@
|
|||
|
||||
/* --- Internal Unicode Operations ---------------------------------------- */
|
||||
|
||||
#define USE_UNICODE_WCHAR_CACHE 1
|
||||
#ifndef USE_UNICODE_WCHAR_CACHE
|
||||
# define USE_UNICODE_WCHAR_CACHE 1
|
||||
#endif /* USE_UNICODE_WCHAR_CACHE */
|
||||
|
||||
/* Since splitting on whitespace is an important use case, and
|
||||
whitespace in most situations is solely ASCII whitespace, we
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue