Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/mingw32/Python27/include/cellobject.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 /* Cell object interface */ |
Chris@87 | 2 |
Chris@87 | 3 #ifndef Py_CELLOBJECT_H |
Chris@87 | 4 #define Py_CELLOBJECT_H |
Chris@87 | 5 #ifdef __cplusplus |
Chris@87 | 6 extern "C" { |
Chris@87 | 7 #endif |
Chris@87 | 8 |
Chris@87 | 9 typedef struct { |
Chris@87 | 10 PyObject_HEAD |
Chris@87 | 11 PyObject *ob_ref; /* Content of the cell or NULL when empty */ |
Chris@87 | 12 } PyCellObject; |
Chris@87 | 13 |
Chris@87 | 14 PyAPI_DATA(PyTypeObject) PyCell_Type; |
Chris@87 | 15 |
Chris@87 | 16 #define PyCell_Check(op) (Py_TYPE(op) == &PyCell_Type) |
Chris@87 | 17 |
Chris@87 | 18 PyAPI_FUNC(PyObject *) PyCell_New(PyObject *); |
Chris@87 | 19 PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *); |
Chris@87 | 20 PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *); |
Chris@87 | 21 |
Chris@87 | 22 #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref) |
Chris@87 | 23 #define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v) |
Chris@87 | 24 |
Chris@87 | 25 #ifdef __cplusplus |
Chris@87 | 26 } |
Chris@87 | 27 #endif |
Chris@87 | 28 #endif /* !Py_TUPLEOBJECT_H */ |