2021-05-03 11:50:24 -03:00
|
|
|
#ifndef Py_INTERNAL_STRUCTSEQ_H
|
|
|
|
#define Py_INTERNAL_STRUCTSEQ_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-12-09 15:59:26 -04:00
|
|
|
/* other API */
|
|
|
|
|
2022-01-20 22:30:20 -04:00
|
|
|
PyAPI_FUNC(PyTypeObject *) _PyStructSequence_NewType(
|
|
|
|
PyStructSequence_Desc *desc,
|
|
|
|
unsigned long tp_flags);
|
|
|
|
|
2022-07-25 15:47:31 -03:00
|
|
|
PyAPI_FUNC(int) _PyStructSequence_InitBuiltinWithFlags(
|
2021-05-03 11:50:24 -03:00
|
|
|
PyTypeObject *type,
|
|
|
|
PyStructSequence_Desc *desc,
|
|
|
|
unsigned long tp_flags);
|
|
|
|
|
2022-07-25 15:47:31 -03:00
|
|
|
static inline int
|
|
|
|
_PyStructSequence_InitBuiltin(PyTypeObject *type,
|
|
|
|
PyStructSequence_Desc *desc)
|
|
|
|
{
|
|
|
|
return _PyStructSequence_InitBuiltinWithFlags(type, desc, 0);
|
|
|
|
}
|
|
|
|
|
2022-01-20 22:30:20 -04:00
|
|
|
extern void _PyStructSequence_FiniType(PyTypeObject *type);
|
2021-05-03 11:50:24 -03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_INTERNAL_STRUCTSEQ_H */
|