From 655afb42174d1248cb24bffda8186a4d300dfe2e Mon Sep 17 00:00:00 2001 From: furkanonder Date: Sat, 9 May 2020 01:32:03 +0300 Subject: [PATCH] bpo-1944: wrap functions with macro --- Include/cpython/unicodeobject.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 81a35cdc801d09..d97e242e777e13 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -1214,13 +1214,18 @@ Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE*) PyUnicode_AsUnicodeCopy( ); /* Return an interned Unicode object for an Identifier; may fail if there is no memory.*/ +#if !defined(Py_LIMITED_API) PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*); +#endif /* Clear all static strings. */ +#if !defined(Py_LIMITED_API) PyAPI_FUNC(void) _PyUnicode_ClearStaticStrings(void); - +#endif /* Fast equality check when the inputs are known to be exact unicode types and where the hash values are equal (i.e. a very probable match) */ +#if !defined(Py_LIMITED_API) PyAPI_FUNC(int) _PyUnicode_EQ(PyObject *, PyObject *); +#endif #ifdef __cplusplus }