]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Include/listobject.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Include / listobject.h
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Include/listobject.h b/AppPkg/Applications/Python/Python-2.7.2/Include/listobject.h
deleted file mode 100644 (file)
index 04aca45..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-\r
-/* List object interface */\r
-\r
-/*\r
-Another generally useful object type is an list of object pointers.\r
-This is a mutable type: the list items can be changed, and items can be\r
-added or removed.  Out-of-range indices or non-list objects are ignored.\r
-\r
-*** WARNING *** PyList_SetItem does not increment the new item's reference\r
-count, but does decrement the reference count of the item it replaces,\r
-if not nil.  It does *decrement* the reference count if it is *not*\r
-inserted in the list.  Similarly, PyList_GetItem does not increment the\r
-returned item's reference count.\r
-*/\r
-\r
-#ifndef Py_LISTOBJECT_H\r
-#define Py_LISTOBJECT_H\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-typedef struct {\r
-    PyObject_VAR_HEAD\r
-    /* Vector of pointers to list elements.  list[0] is ob_item[0], etc. */\r
-    PyObject **ob_item;\r
-\r
-    /* ob_item contains space for 'allocated' elements.  The number\r
-     * currently in use is ob_size.\r
-     * Invariants:\r
-     *     0 <= ob_size <= allocated\r
-     *     len(list) == ob_size\r
-     *     ob_item == NULL implies ob_size == allocated == 0\r
-     * list.sort() temporarily sets allocated to -1 to detect mutations.\r
-     *\r
-     * Items must normally not be NULL, except during construction when\r
-     * the list is not yet visible outside the function that builds it.\r
-     */\r
-    Py_ssize_t allocated;\r
-} PyListObject;\r
-\r
-PyAPI_DATA(PyTypeObject) PyList_Type;\r
-\r
-#define PyList_Check(op) \\r
-               PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS)\r
-#define PyList_CheckExact(op) (Py_TYPE(op) == &PyList_Type)\r
-\r
-PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size);\r
-PyAPI_FUNC(Py_ssize_t) PyList_Size(PyObject *);\r
-PyAPI_FUNC(PyObject *) PyList_GetItem(PyObject *, Py_ssize_t);\r
-PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);\r
-PyAPI_FUNC(int) PyList_Insert(PyObject *, Py_ssize_t, PyObject *);\r
-PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);\r
-PyAPI_FUNC(PyObject *) PyList_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);\r
-PyAPI_FUNC(int) PyList_SetSlice(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);\r
-PyAPI_FUNC(int) PyList_Sort(PyObject *);\r
-PyAPI_FUNC(int) PyList_Reverse(PyObject *);\r
-PyAPI_FUNC(PyObject *) PyList_AsTuple(PyObject *);\r
-PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);\r
-\r
-/* Macro, trading safety for speed */\r
-#define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i])\r
-#define PyList_SET_ITEM(op, i, v) (((PyListObject *)(op))->ob_item[i] = (v))\r
-#define PyList_GET_SIZE(op)    Py_SIZE(op)\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-#endif /* !Py_LISTOBJECT_H */\r