8000 bpo-43916: Export the _PyStructSequence_InitType to fix build errors … · python/cpython@558df90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 558df90

Browse files
authored
bpo-43916: Export the _PyStructSequence_InitType to fix build errors in the curses module (GH-25768)
1 parent 251ffa9 commit 558df90

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Doc/data/stable_abi.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ Py_tp_setattro
918918
Py_tp_str
919919
Py_tp_traverse
920920
Py_uintptr_t
921+
_PyStructSequence_InitType
921922
_frame
922923
_node
923924
allocfunc

Include/structseq.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
2727
PyAPI_FUNC(int) PyStructSequence_InitType2(PyTypeObject *type,
2828
PyStructSequence_Desc *desc);
2929
#endif
30-
#ifdef Py_BUILD_CORE
31-
extern int _PyStructSequence_InitType(
30+
PyAPI_FUNC(int) _PyStructSequence_InitType(
3231
PyTypeObject *type,
3332
PyStructSequence_Desc *desc,
3433
unsigned long tp_flags);
35-
#endif
3634
PyAPI_FUNC(PyTypeObject*) PyStructSequence_NewType(PyStructSequence_Desc *desc);
3735

3836
PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type);

Misc/stable_abi.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,6 +2121,8 @@ function PyObject_GetAiter
21212121
added 3.10
21222122
data PyExc_EncodingWarning
21232123
added 3.10
2124+
function _PyStructSequence_InitType
2125+
added 3.10
21242126

21252127
# Support for Stable ABI in debug builds
21262128

PC/python3dll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ EXPORT_FUNC(_PyObject_GC_Resize)
3535
EXPORT_FUNC(_PyObject_New)
3636
EXPORT_FUNC(_PyObject_NewVar)
3737
EXPORT_FUNC(_PyState_AddModule)
38+
EXPORT_FUNC(_PyStructSequence_InitType)
3839
EXPORT_FUNC(_PyThreadState_Init)
3940
EXPORT_FUNC(_PyThreadState_Prealloc)
4041
EXPORT_FUNC(_PyTrash_deposit_object)

0 commit comments

Comments
 (0)
0