From 06f22dfe57fc27232c46c6c910e8743053134ce8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 23 Mar 2022 18:10:28 +0100 Subject: [PATCH] Export PyOS_CheckStack on Windows --- Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst | 1 + PC/python3dll.c | 1 + Tools/scripts/stable_abi.py | 1 + 3 files changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst diff --git a/Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst b/Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst new file mode 100644 index 000000000000000..df2889161193c92 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst @@ -0,0 +1 @@ +:c:func:`PyOS_CheckStack` is now exported in the Stable ABI on Windows. diff --git a/PC/python3dll.c b/PC/python3dll.c index 70f11dc19055473..257b41e85857e83 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -482,6 +482,7 @@ EXPORT_FUNC(PyObject_SetItem) EXPORT_FUNC(PyObject_Size) EXPORT_FUNC(PyObject_Str) EXPORT_FUNC(PyObject_Type) +EXPORT_FUNC(PyOS_CheckStack) EXPORT_FUNC(PyOS_double_to_string) EXPORT_FUNC(PyOS_FSPath) EXPORT_FUNC(PyOS_getsig) diff --git a/Tools/scripts/stable_abi.py b/Tools/scripts/stable_abi.py index 9b90e344977f471..7376a4649ca05ec 100755 --- a/Tools/scripts/stable_abi.py +++ b/Tools/scripts/stable_abi.py @@ -58,6 +58,7 @@ WINDOWS_IFDEFS = frozenset({ 'MS_WINDOWS', 'PY_HAVE_THREAD_NATIVE_ID', + 'USE_STACKCHECK', }) # The stable ABI manifest (Misc/stable_abi.txt) exists only to fill the