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 */
|
|
|
|
|
2023-07-25 00:16:28 -03:00
|
|
|
// Export for '_curses' shared extension
|
|
|
|
PyAPI_FUNC(PyTypeObject*) _PyStructSequence_NewType(
|
2022-01-20 22:30:20 -04:00
|
|
|
PyStructSequence_Desc *desc,
|
|
|
|
unsigned long tp_flags);
|
|
|
|
|
2023-05-01 18:08:34 -03:00
|
|
|
extern int _PyStructSequence_InitBuiltinWithFlags(
|
2023-05-01 22:36:00 -03:00
|
|
|
PyInterpreterState *interp,
|
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
|
2023-05-01 22:36:00 -03:00
|
|
|
_PyStructSequence_InitBuiltin(PyInterpreterState *interp,
|
|
|
|
PyTypeObject *type,
|
2022-07-25 15:47:31 -03:00
|
|
|
PyStructSequence_Desc *desc)
|
|
|
|
{
|
2023-05-01 22:36:00 -03:00
|
|
|
return _PyStructSequence_InitBuiltinWithFlags(interp, type, desc, 0);
|
2022-07-25 15:47:31 -03:00
|
|
|
}
|
|
|
|
|
2023-05-01 22:36:00 -03:00
|
|
|
extern void _PyStructSequence_FiniBuiltin(
|
|
|
|
PyInterpreterState *interp,
|
|
|
|
PyTypeObject *type);
|
2021-05-03 11:50:24 -03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_INTERNAL_STRUCTSEQ_H */
|