File indexing completed on 2025-11-19 09:50:50
0001 #ifndef Py_INTERNAL_STRUCTSEQ_H
0002 #define Py_INTERNAL_STRUCTSEQ_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006
0007 #ifndef Py_BUILD_CORE
0008 # error "this header requires Py_BUILD_CORE define"
0009 #endif
0010
0011
0012
0013
0014
0015 PyAPI_FUNC(PyTypeObject*) _PyStructSequence_NewType(
0016 PyStructSequence_Desc *desc,
0017 unsigned long tp_flags);
0018
0019 extern int _PyStructSequence_InitBuiltinWithFlags(
0020 PyInterpreterState *interp,
0021 PyTypeObject *type,
0022 PyStructSequence_Desc *desc,
0023 unsigned long tp_flags);
0024
0025 static inline int
0026 _PyStructSequence_InitBuiltin(PyInterpreterState *interp,
0027 PyTypeObject *type,
0028 PyStructSequence_Desc *desc)
0029 {
0030 return _PyStructSequence_InitBuiltinWithFlags(interp, type, desc, 0);
0031 }
0032
0033 extern void _PyStructSequence_FiniBuiltin(
0034 PyInterpreterState *interp,
0035 PyTypeObject *type);
0036
0037 #ifdef __cplusplus
0038 }
0039 #endif
0040 #endif