Skip to content

Commit 26e7bbf

Browse files
gh-102304: Fix 2 New Stable ABI Functions (gh-104762)
1 parent 70f315c commit 26e7bbf

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

Include/object.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ you can count such references to the type object.)
590590
extern Py_ssize_t _Py_RefTotal;
591591
# define _Py_INC_REFTOTAL() _Py_RefTotal++
592592
# define _Py_DEC_REFTOTAL() _Py_RefTotal--
593-
# elif !defined(Py_LIMITED_API) || Py_LIMITED_API+0 > 0x030D0000
593+
# elif !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000
594594
PyAPI_FUNC(void) _Py_IncRefTotal_DO_NOT_USE_THIS(void);
595595
PyAPI_FUNC(void) _Py_DecRefTotal_DO_NOT_USE_THIS(void);
596596
# define _Py_INC_REFTOTAL() _Py_IncRefTotal_DO_NOT_USE_THIS()

Lib/test/test_stable_abi_ctypes.py

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/stable_abi.toml

+9
Original file line numberDiff line numberDiff line change
@@ -2406,3 +2406,12 @@
24062406
added = '3.12'
24072407
[const.Py_TPFLAGS_ITEMS_AT_END]
24082408
added = '3.12'
2409+
2410+
[function._Py_IncRefTotal_DO_NOT_USE_THIS]
2411+
added = '3.12'
2412+
ifdef = 'Py_REF_DEBUG'
2413+
abi_only = true
2414+
[function._Py_DecRefTotal_DO_NOT_USE_THIS]
2415+
added = '3.12'
2416+
ifdef = 'Py_REF_DEBUG'
2417+
abi_only = true

PC/python3dll.c

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)