| 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 |
// Export for '_curses' shared extension |
| 15 |
PyAPI_FUNC(PyTypeObject*) _PyStructSequence_NewType( |
| 16 |
PyStructSequence_Desc *desc, |
| 17 |
unsigned long tp_flags); |
| 18 |
|
| 19 |
extern int _PyStructSequence_InitBuiltinWithFlags( |
| 20 |
PyInterpreterState *interp, |
| 21 |
PyTypeObject *type, |
| 22 |
PyStructSequence_Desc *desc, |
| 23 |
unsigned long tp_flags); |
| 24 |
|
| 25 |
static inline int |
| 26 |
_PyStructSequence_InitBuiltin(PyInterpreterState *interp, |
| 27 |
PyTypeObject *type, |
| 28 |
PyStructSequence_Desc *desc) |
| 29 |
{ |
| 30 |
return _PyStructSequence_InitBuiltinWithFlags(interp, type, desc, 0); |
| 31 |
} |
| 32 |
|
| 33 |
extern void _PyStructSequence_FiniBuiltin( |
| 34 |
PyInterpreterState *interp, |
| 35 |
PyTypeObject *type); |
| 36 |
|
| 37 |
#ifdef __cplusplus |
| 38 |
} |
| 39 |
#endif |
| 40 |
#endif /* !Py_INTERNAL_STRUCTSEQ_H */ |