pycore_structseq.h 923 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef Py_INTERNAL_STRUCTSEQ_H
  2. #define Py_INTERNAL_STRUCTSEQ_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifndef Py_BUILD_CORE
  7. # error "this header requires Py_BUILD_CORE define"
  8. #endif
  9. /* other API */
  10. PyAPI_FUNC(PyTypeObject *) _PyStructSequence_NewType(
  11. PyStructSequence_Desc *desc,
  12. unsigned long tp_flags);
  13. extern int _PyStructSequence_InitBuiltinWithFlags(
  14. PyInterpreterState *interp,
  15. PyTypeObject *type,
  16. PyStructSequence_Desc *desc,
  17. unsigned long tp_flags);
  18. static inline int
  19. _PyStructSequence_InitBuiltin(PyInterpreterState *interp,
  20. PyTypeObject *type,
  21. PyStructSequence_Desc *desc)
  22. {
  23. return _PyStructSequence_InitBuiltinWithFlags(interp, type, desc, 0);
  24. }
  25. extern void _PyStructSequence_FiniBuiltin(
  26. PyInterpreterState *interp,
  27. PyTypeObject *type);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* !Py_INTERNAL_STRUCTSEQ_H */