Branch data Line data Source code
1 : : #ifndef Py_INTERNAL_STRUCTSEQ_H 2 : : #define Py_INTERNAL_STRUCTSEQ_H 3 : : #ifdef __cplusplus 4 : : extern "C" { 5 : : #endif 6 : : 7 : : #ifndef Py_BUILD_CORE 8 : : # error "this header requires Py_BUILD_CORE define" 9 : : #endif 10 : : 11 : : 12 : : /* other API */ 13 : : 14 : : PyAPI_FUNC(PyTypeObject *) _PyStructSequence_NewType( 15 : : PyStructSequence_Desc *desc, 16 : : unsigned long tp_flags); 17 : : 18 : : PyAPI_FUNC(int) _PyStructSequence_InitBuiltinWithFlags( 19 : : PyTypeObject *type, 20 : : PyStructSequence_Desc *desc, 21 : : unsigned long tp_flags); 22 : : 23 : : static inline int 24 : 174 : _PyStructSequence_InitBuiltin(PyTypeObject *type, 25 : : PyStructSequence_Desc *desc) 26 : : { 27 : 174 : return _PyStructSequence_InitBuiltinWithFlags(type, desc, 0); 28 : : } 29 : : 30 : : extern void _PyStructSequence_FiniType(PyTypeObject *type); 31 : : 32 : : #ifdef __cplusplus 33 : : } 34 : : #endif 35 : : #endif /* !Py_INTERNAL_STRUCTSEQ_H */