mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Issue #26765: Ensure that bytes- and unicode-specific stringlib files are used
with correct type.
This commit is contained in:
parent
cbcc2fd641
commit
bcde10aa7e
6 changed files with 15 additions and 12 deletions
|
@ -1,6 +1,8 @@
|
|||
/* stringlib: codec implementations */
|
||||
|
||||
#if STRINGLIB_IS_UNICODE
|
||||
#if !STRINGLIB_IS_UNICODE
|
||||
# error "codecs.h is specific to Unicode"
|
||||
#endif
|
||||
|
||||
/* Mask to quickly check whether a C 'long' contains a
|
||||
non-ASCII, UTF8-encoded char. */
|
||||
|
@ -823,5 +825,3 @@ STRINGLIB(utf32_encode)(const STRINGLIB_CHAR *in,
|
|||
#undef SWAB4
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* STRINGLIB_IS_UNICODE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue