bpo-43916: Export the _PyStructSequence_InitType to fix build errors … · python/cpython@558df90 (original) (raw)
4 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -918,6 +918,7 @@ Py_tp_setattro | ||
918 | 918 | Py_tp_str |
919 | 919 | Py_tp_traverse |
920 | 920 | Py_uintptr_t |
921 | +_PyStructSequence_InitType | |
921 | 922 | _frame |
922 | 923 | _node |
923 | 924 | allocfunc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -27,12 +27,10 @@ PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, | ||
27 | 27 | PyAPI_FUNC(int) PyStructSequence_InitType2(PyTypeObject *type, |
28 | 28 | PyStructSequence_Desc *desc); |
29 | 29 | #endif |
30 | -#ifdef Py_BUILD_CORE | |
31 | -extern int _PyStructSequence_InitType( | |
30 | +PyAPI_FUNC(int) _PyStructSequence_InitType( | |
32 | 31 | PyTypeObject *type, |
33 | 32 | PyStructSequence_Desc *desc, |
34 | 33 | unsigned long tp_flags); |
35 | -#endif | |
36 | 34 | PyAPI_FUNC(PyTypeObject*) PyStructSequence_NewType(PyStructSequence_Desc *desc); |
37 | 35 | |
38 | 36 | PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2121,6 +2121,8 @@ function PyObject_GetAiter | ||
2121 | 2121 | added 3.10 |
2122 | 2122 | data PyExc_EncodingWarning |
2123 | 2123 | added 3.10 |
2124 | +function _PyStructSequence_InitType | |
2125 | + added 3.10 | |
2124 | 2126 | |
2125 | 2127 | # Support for Stable ABI in debug builds |
2126 | 2128 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -35,6 +35,7 @@ EXPORT_FUNC(_PyObject_GC_Resize) | ||
35 | 35 | EXPORT_FUNC(_PyObject_New) |
36 | 36 | EXPORT_FUNC(_PyObject_NewVar) |
37 | 37 | EXPORT_FUNC(_PyState_AddModule) |
38 | +EXPORT_FUNC(_PyStructSequence_InitType) | |
38 | 39 | EXPORT_FUNC(_PyThreadState_Init) |
39 | 40 | EXPORT_FUNC(_PyThreadState_Prealloc) |
40 | 41 | EXPORT_FUNC(_PyTrash_deposit_object) |