]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43916: Export the _PyStructSequence_InitType to fix build errors in the curses...
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 1 May 2021 01:21:19 +0000 (02:21 +0100)
committerGitHub <noreply@github.com>
Sat, 1 May 2021 01:21:19 +0000 (02:21 +0100)
Doc/data/stable_abi.dat
Include/structseq.h
Misc/stable_abi.txt
PC/python3dll.c

index 833228f7fd755deecf7735f9b6acb279cbf6e2a6..b21374a05cb6a5cbad56a8c0a626868cc5a062af 100644 (file)
@@ -918,6 +918,7 @@ Py_tp_setattro
 Py_tp_str
 Py_tp_traverse
 Py_uintptr_t
+_PyStructSequence_InitType
 _frame
 _node
 allocfunc
index af3af415b013a7f2d1adcf59bf4ced64affffe57..890e03130b4edbfa6bc166805849460d4e642e1a 100644 (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);
index 2a802bd5f4b831da3009b0e4d06891b3f9b664ce..d79746e0a4ec046f23f05680f6814a7a700e5b5e 100644 (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
 
index 574d4dcad9f75b0b7b9981b26e383e7c12fb7567..30868c1864622e96baff20dd7348558993b90080 100755 (executable)
@@ -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)