]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Include/cellobject.h
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 1/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Include / cellobject.h
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Include/cellobject.h b/AppPkg/Applications/Python/Python-2.7.10/Include/cellobject.h
new file mode 100644 (file)
index 0000000..8d27f35
--- /dev/null
@@ -0,0 +1,28 @@
+/* Cell object interface */\r
+\r
+#ifndef Py_CELLOBJECT_H\r
+#define Py_CELLOBJECT_H\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+typedef struct {\r
+       PyObject_HEAD\r
+       PyObject *ob_ref;       /* Content of the cell or NULL when empty */\r
+} PyCellObject;\r
+\r
+PyAPI_DATA(PyTypeObject) PyCell_Type;\r
+\r
+#define PyCell_Check(op) (Py_TYPE(op) == &PyCell_Type)\r
+\r
+PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);\r
+PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);\r
+PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);\r
+\r
+#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)\r
+#define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+#endif /* !Py_TUPLEOBJECT_H */\r