summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-04-21 16:03:25 (GMT)
committerGitHub <noreply@github.com>2022-04-21 16:03:25 (GMT)
commitac4ffd3be2049591701fee9f054191cce5ab9762 (patch)
tree4141772b5b094bd33e3d5ad6b1d91be159101a96
parent944fffee8916cb94321fa33cd3a43f4108717746 (diff)
downloadcpython-ac4ffd3be2049591701fee9f054191cce5ab9762.zip
cpython-ac4ffd3be2049591701fee9f054191cce5ab9762.tar.gz
cpython-ac4ffd3be2049591701fee9f054191cce5ab9762.tar.bz2
bpo-47169: Export PyOS_CheckStack on Windows (GH-32414)
-rw-r--r--Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst1
-rwxr-xr-xPC/python3dll.c1
-rwxr-xr-xTools/scripts/stable_abi.py1
3 files changed, 3 insertions, 0 deletions
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 0000000..df28891
--- /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 0aee2ae..aabc1e8 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -484,6 +484,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 9b90e34..7376a46 100755
--- a/Tools/scripts/stable_abi.py
+++ b/Tools/scripts/stable_abi.py
@@ -58,6 +58,7 @@ IFDEF_DOC_NOTES = {
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