diff options
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_structseq.h | 9 | ||||
-rw-r--r-- | Include/internal/pycore_typeobject.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Include/internal/pycore_structseq.h b/Include/internal/pycore_structseq.h index 0199c79..d10a921 100644 --- a/Include/internal/pycore_structseq.h +++ b/Include/internal/pycore_structseq.h @@ -15,11 +15,18 @@ PyAPI_FUNC(PyTypeObject *) _PyStructSequence_NewType( PyStructSequence_Desc *desc, unsigned long tp_flags); -PyAPI_FUNC(int) _PyStructSequence_InitType( +PyAPI_FUNC(int) _PyStructSequence_InitBuiltinWithFlags( PyTypeObject *type, PyStructSequence_Desc *desc, unsigned long tp_flags); +static inline int +_PyStructSequence_InitBuiltin(PyTypeObject *type, + PyStructSequence_Desc *desc) +{ + return _PyStructSequence_InitBuiltinWithFlags(type, desc, 0); +} + extern void _PyStructSequence_FiniType(PyTypeObject *type); #ifdef __cplusplus diff --git a/Include/internal/pycore_typeobject.h b/Include/internal/pycore_typeobject.h index c480a3a..46f3bf7 100644 --- a/Include/internal/pycore_typeobject.h +++ b/Include/internal/pycore_typeobject.h @@ -41,6 +41,7 @@ struct type_cache { extern PyStatus _PyTypes_InitSlotDefs(void); +extern int _PyStaticType_InitBuiltin(PyTypeObject *type); extern void _PyStaticType_Dealloc(PyTypeObject *type); |