2 /* Tuple object interface */
10 typedef struct PyStructSequence_Field
{
13 } PyStructSequence_Field
;
15 typedef struct PyStructSequence_Desc
{
18 struct PyStructSequence_Field
*fields
;
20 } PyStructSequence_Desc
;
22 extern char* PyStructSequence_UnnamedField
;
24 PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject
*type
,
25 PyStructSequence_Desc
*desc
);
27 PyAPI_FUNC(PyObject
*) PyStructSequence_New(PyTypeObject
* type
);
34 /* Macro, *only* to be used to fill in brand new objects */
35 #define PyStructSequence_SET_ITEM(op, i, v) \
36 (((PyStructSequence *)(op))->ob_item[i] = v)
38 #define PyStructSequence_GET_ITEM(op, i) \
39 (((PyStructSequence *)(op))->ob_item[i])
45 #endif /* !Py_STRUCTSEQ_H */