Skip to content

Commit b3638a5

Browse files
committed
Fix typo and update stable ABI
1 parent e8d8c4b commit b3638a5

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

Doc/data/stable_abi.dat

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/ceval.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ PyAPI_FUNC(int) Py_EnterRecursiveCall(const char *where);
6161
PyAPI_FUNC(void) Py_LeaveRecursiveCall(void);
6262

6363
PyAPI_FUNC(int) Py_ReachedRecursionLimit(PyThreadState *tstate, int margin_count);
64-
PyAPI_FUNC(void) Py_LeaveRecursiveCallTstate(PyThreadState *tstate);
6564

6665
PyAPI_FUNC(const char *) PyEval_GetFuncName(PyObject *);
6766
PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *);

Include/cpython/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ struct _ts {
240240
# define Py_C_RECURSION_LIMIT (Py_C_STACK_SIZE / 1000)
241241
# endif
242242
#elif defined(_Py_ADDRESS_SANITIZER)
243-
# define Py_C_STACK_SIZE (Py_C_STACK_SIZE / 600)
243+
# define Py_C_RECURSION_LIMIT (Py_C_STACK_SIZE / 600)
244244
#else
245245
# define Py_C_RECURSION_LIMIT (Py_C_STACK_SIZE / 300)
246246
#endif

Include/internal/pycore_ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static inline int _Py_EnterRecursiveCall(const char *where) {
218218
return _Py_EnterRecursiveCallTstate(tstate, where);
219219
}
220220

221-
static inline void _Py_LeaveRecursiveCallTstate(PyThreadState *tstate) {
221+
static inline void _Py_LeaveRecursiveCallTstate(PyThreadState *tstate) {
222222
(void)tstate;
223223
}
224224

Lib/test/test_stable_abi_ctypes.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/stable_abi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,3 +2545,5 @@
25452545
added = '3.14'
25462546
[function.Py_PACK_VERSION]
25472547
added = '3.14'
2548+
[function.Py_ReachedRecursionLimit]
2549+
added = '3.14'

PC/python3dll.c

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/ceval.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,6 @@ _Py_EnterRecursiveCallUnchecked(PyThreadState *tstate)
318318
}
319319
}
320320

321-
void
322-
Py_LeaveRecursiveCallTstate(PyThreadState *tstate)
323-
{
324-
_Py_LeaveRecursiveCallTstate(tstate);
325-
}
326-
327321
/* The function _Py_EnterRecursiveCallTstate() only calls _Py_CheckRecursiveCall()
328322
if the recursion_depth reaches recursion_limit. */
329323
int

0 commit comments

Comments
 (0)