annotate DEPENDENCIES/mingw32/Python27/include/structseq.h @ 118:770eb830ec19 emscripten

Typo fix
author Chris Cannam
date Wed, 18 May 2016 16:14:08 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1
Chris@87 2 /* Tuple object interface */
Chris@87 3
Chris@87 4 #ifndef Py_STRUCTSEQ_H
Chris@87 5 #define Py_STRUCTSEQ_H
Chris@87 6 #ifdef __cplusplus
Chris@87 7 extern "C" {
Chris@87 8 #endif
Chris@87 9
Chris@87 10 typedef struct PyStructSequence_Field {
Chris@87 11 char *name;
Chris@87 12 char *doc;
Chris@87 13 } PyStructSequence_Field;
Chris@87 14
Chris@87 15 typedef struct PyStructSequence_Desc {
Chris@87 16 char *name;
Chris@87 17 char *doc;
Chris@87 18 struct PyStructSequence_Field *fields;
Chris@87 19 int n_in_sequence;
Chris@87 20 } PyStructSequence_Desc;
Chris@87 21
Chris@87 22 extern char* PyStructSequence_UnnamedField;
Chris@87 23
Chris@87 24 PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
Chris@87 25 PyStructSequence_Desc *desc);
Chris@87 26
Chris@87 27 PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type);
Chris@87 28
Chris@87 29 typedef struct {
Chris@87 30 PyObject_VAR_HEAD
Chris@87 31 PyObject *ob_item[1];
Chris@87 32 } PyStructSequence;
Chris@87 33
Chris@87 34 /* Macro, *only* to be used to fill in brand new objects */
Chris@87 35 #define PyStructSequence_SET_ITEM(op, i, v) \
Chris@87 36 (((PyStructSequence *)(op))->ob_item[i] = v)
Chris@87 37
Chris@87 38 #ifdef __cplusplus
Chris@87 39 }
Chris@87 40 #endif
Chris@87 41 #endif /* !Py_STRUCTSEQ_H */