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