Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:47

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 /* other API */
0013 
0014 PyAPI_FUNC(PyTypeObject *) _PyStructSequence_NewType(
0015     PyStructSequence_Desc *desc,
0016     unsigned long tp_flags);
0017 
0018 extern int _PyStructSequence_InitBuiltinWithFlags(
0019     PyInterpreterState *interp,
0020     PyTypeObject *type,
0021     PyStructSequence_Desc *desc,
0022     unsigned long tp_flags);
0023 
0024 static inline int
0025 _PyStructSequence_InitBuiltin(PyInterpreterState *interp,
0026                               PyTypeObject *type,
0027                               PyStructSequence_Desc *desc)
0028 {
0029     return _PyStructSequence_InitBuiltinWithFlags(interp, type, desc, 0);
0030 }
0031 
0032 extern void _PyStructSequence_FiniBuiltin(
0033     PyInterpreterState *interp,
0034     PyTypeObject *type);
0035 
0036 #ifdef __cplusplus
0037 }
0038 #endif
0039 #endif /* !Py_INTERNAL_STRUCTSEQ_H */