Skip to content

bpo-1944: wrap functions with macro #20011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Include/cpython/unicodeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down