diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-11 21:36:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 21:36:37 (GMT) |
commit | 1f316ea3b4fa319eec4f375fb683467b424c964e (patch) | |
tree | ead2218868249ca35e4ca17dfab6d1a92e9669e8 /Include/cpython/unicodeobject.h | |
parent | 03ea862b8a8234176761240ba122254e9eb11663 (diff) | |
download | cpython-1f316ea3b4fa319eec4f375fb683467b424c964e.zip cpython-1f316ea3b4fa319eec4f375fb683467b424c964e.tar.gz cpython-1f316ea3b4fa319eec4f375fb683467b424c964e.tar.bz2 |
bpo-41123: Remove Py_UNICODE_COPY() and Py_UNICODE_FILL() (GH-28887)
Diffstat (limited to 'Include/cpython/unicodeobject.h')
-rw-r--r-- | Include/cpython/unicodeobject.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index b40e2ea..0cbdbdb 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -50,19 +50,6 @@ Py_UNICODE_ISDIGIT(ch) || \ Py_UNICODE_ISNUMERIC(ch)) -Py_DEPRECATED(3.3) static inline void -Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) { - memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE)); -} - -Py_DEPRECATED(3.3) static inline void -Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) { - Py_ssize_t i; - for (i = 0; i < length; i++) { - target[i] = value; - } -} - /* macros to work with surrogates */ #define Py_UNICODE_IS_SURROGATE(ch) (0xD800 <= (ch) && (ch) <= 0xDFFF) #define Py_UNICODE_IS_HIGH_SURROGATE(ch) (0xD800 <= (ch) && (ch) <= 0xDBFF) |