Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
862 B

  1. /* Tuple object interface */
  2. #ifndef Py_STRUCTSEQ_H
  3. #define Py_STRUCTSEQ_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct PyStructSequence_Field {
  8. char *name;
  9. char *doc;
  10. } PyStructSequence_Field;
  11. typedef struct PyStructSequence_Desc {
  12. char *name;
  13. char *doc;
  14. struct PyStructSequence_Field *fields;
  15. int n_in_sequence;
  16. } PyStructSequence_Desc;
  17. extern char* PyStructSequence_UnnamedField;
  18. PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
  19. PyStructSequence_Desc *desc);
  20. PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type);
  21. typedef struct {
  22. PyObject_VAR_HEAD
  23. PyObject *ob_item[1];
  24. } PyStructSequence;
  25. /* Macro, *only* to be used to fill in brand new objects */
  26. #define PyStructSequence_SET_ITEM(op, i, v) \
  27. (((PyStructSequence *)(op))->ob_item[i] = v)
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* !Py_STRUCTSEQ_H */