aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_pyerrors.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 17:28:35 +0200
committerGitHub <noreply@github.com>2023-08-24 17:28:35 +0200
commitea871c9b0f08399e440baed95a3e5793d6e0ea66 (patch)
treef53536afdcfdf37e201879f365c9c7a93cbae7b4 /Include/internal/pycore_pyerrors.h
parent3f7e93be51699fca6ee72c656278732b47cca833 (diff)
downloadcpython-ea871c9b0f08399e440baed95a3e5793d6e0ea66.tar.gz
cpython-ea871c9b0f08399e440baed95a3e5793d6e0ea66.zip
gh-107211: No longer export internal functions (6) (#108424)
No longer export these 5 internal C API functions: * _PyArena_AddPyObject() * _PyArena_Free() * _PyArena_Malloc() * _PyArena_New() * _Py_FatalRefcountErrorFunc() Change comment style to "// comment" and add comment explaining why other functions have to be exported.
Diffstat (limited to 'Include/internal/pycore_pyerrors.h')
-rw-r--r--Include/internal/pycore_pyerrors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 91fd6898452..5d2ad50e0d2 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -152,6 +152,7 @@ extern int _PyErr_CheckSignalsTstate(PyThreadState *tstate);
extern void _Py_DumpExtensionModules(int fd, PyInterpreterState *interp);
extern PyObject* _Py_CalculateSuggestions(PyObject *dir, PyObject *name);
extern PyObject* _Py_Offer_Suggestions(PyObject* exception);
+
// Export for '_testinternalcapi' shared extension
PyAPI_FUNC(Py_ssize_t) _Py_UTF8_Edit_Cost(PyObject *str_a, PyObject *str_b,
Py_ssize_t max_cost);