[Python-checkins] bpo-47169: Export PyOS_CheckStack on Windows (GH-32414)

encukou webhook-mailer at python.org
Thu Apr 21 12:03:31 EDT 2022


https://github.com/python/cpython/commit/ac4ffd3be2049591701fee9f054191cce5ab9762
commit: ac4ffd3be2049591701fee9f054191cce5ab9762
branch: main
author: Petr Viktorin <encukou at gmail.com>
committer: encukou <encukou at gmail.com>
date: 2022-04-21T18:03:25+02:00
summary:

bpo-47169: Export PyOS_CheckStack on Windows (GH-32414)

files:
A Misc/NEWS.d/next/C API/2022-04-06-16-54-39.bpo-47169.EGzX4B.rst
M PC/python3dll.c
M Tools/scripts/stable_abi.py

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 0000000000000..df2889161193c
--- /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 0aee2aec84726..aabc1e83868e8 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 9b90e344977f4..7376a4649ca05 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



More information about the Python-checkins mailing list