Skip to content

Commit 0632645

Browse files
authored
Merge pull request #9 from PyO3/create-pull-request/patch
Update stable_abi.txt to the latest main
2 parents 92235b9 + e09884f commit 0632645

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Misc/stable_abi.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
# value may change.
3030
# - typedef: A C typedef which is used in other definitions in the limited API.
3131
# Its size/layout/signature must not change.
32+
# - ifdef: A feature macro: other items may be conditional on whether the macro
33+
# is defined or not.
3234

3335
# Each top-level item can have details defined below it:
3436
# - added: The version in which the item was added to the stable ABI.
@@ -41,6 +43,10 @@
4143
# of the stable ABI.
4244
# - a combination of the above (functions that were called by macros that
4345
# were public in the past)
46+
# - doc: for `ifdef`, the blurb added in documentation
47+
# - windows: for `ifdef`, this macro is defined on Windows. (This info is used
48+
# to generate the DLL manifest and needs to be available on all platforms.)
49+
# `maybe` marks macros defined on some but not all Windows builds.
4450

4551
# For structs, one of the following must be set:
4652
# - opaque: The struct name is available in the Limited API, but its members
@@ -59,6 +65,24 @@
5965
# https://docs.python.org/3/c-api/stable.html#stable
6066

6167

68+
# Feature macros for optional functionality:
69+
70+
ifdef MS_WINDOWS
71+
doc on Windows
72+
windows
73+
ifdef HAVE_FORK
74+
doc on platforms with fork()
75+
ifdef USE_STACKCHECK
76+
doc on platforms with USE_STACKCHECK
77+
windows maybe
78+
ifdef PY_HAVE_THREAD_NATIVE_ID
79+
doc on platforms with native thread IDs
80+
windows
81+
ifdef Py_REF_DEBUG
82+
doc when Python is compiled in debug mode (with Py_REF_DEBUG)
83+
windows maybe
84+
85+
6286
# Mentioned in PEP 384:
6387

6488
struct PyObject

0 commit comments

Comments
 (0)