bpo-43916: Export the _PyStructSequence_InitType to fix build errors in the curses module (GH-25768)

This commit is contained in:
Pablo Galindo 2021-05-01 02:21:19 +01:00 committed by GitHub
parent 251ffa9d2b
commit 558df90109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View File

@ -918,6 +918,7 @@ Py_tp_setattro
Py_tp_str
Py_tp_traverse
Py_uintptr_t
_PyStructSequence_InitType
_frame
_node
allocfunc

View File

@ -27,12 +27,10 @@ PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
PyAPI_FUNC(int) PyStructSequence_InitType2(PyTypeObject *type,
PyStructSequence_Desc *desc);
#endif
#ifdef Py_BUILD_CORE
extern int _PyStructSequence_InitType(
PyAPI_FUNC(int) _PyStructSequence_InitType(
PyTypeObject *type,
PyStructSequence_Desc *desc,
unsigned long tp_flags);
#endif
PyAPI_FUNC(PyTypeObject*) PyStructSequence_NewType(PyStructSequence_Desc *desc);
PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type);

View File

@ -2121,6 +2121,8 @@ function PyObject_GetAiter
added 3.10
data PyExc_EncodingWarning
added 3.10
function _PyStructSequence_InitType
added 3.10
# Support for Stable ABI in debug builds

View File

@ -35,6 +35,7 @@ EXPORT_FUNC(_PyObject_GC_Resize)
EXPORT_FUNC(_PyObject_New)
EXPORT_FUNC(_PyObject_NewVar)
EXPORT_FUNC(_PyState_AddModule)
EXPORT_FUNC(_PyStructSequence_InitType)
EXPORT_FUNC(_PyThreadState_Init)
EXPORT_FUNC(_PyThreadState_Prealloc)
EXPORT_FUNC(_PyTrash_deposit_object)