diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-07 19:12:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 19:12:05 (GMT) |
commit | 435b2eeb7bc5b8ec264e900b38bcb3d76552d777 (patch) | |
tree | 0be348436bd2a06c7e83523a55cfcfd8c412a2fe /Include/cpython | |
parent | 13915a3100608f011b29da2f3716c990f523b631 (diff) | |
download | cpython-435b2eeb7bc5b8ec264e900b38bcb3d76552d777.zip cpython-435b2eeb7bc5b8ec264e900b38bcb3d76552d777.tar.gz cpython-435b2eeb7bc5b8ec264e900b38bcb3d76552d777.tar.bz2 |
bpo-38376: Fix _PyUnicode_CheckConsistency() definition (GH-16623)
Always define _PyUnicode_CheckConsistency() in the CPython C API.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/unicodeobject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index c11503d..54a13e3 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -246,6 +246,10 @@ typedef struct { } data; /* Canonical, smallest-form Unicode buffer */ } PyUnicodeObject; +PyAPI_FUNC(int) _PyUnicode_CheckConsistency( + PyObject *op, + int check_content); + /* Fast access macros */ #define PyUnicode_WSTR_LENGTH(op) \ (PyUnicode_IS_COMPACT_ASCII(op) ? \ |