PHP 8.2.30
Preview: listobject.h Size: 1.21 KB
//opt/alt/python310/include/python3.10/cpython/listobject.h

#ifndef Py_CPYTHON_LISTOBJECT_H
#  error "this header file must not be included directly"
#endif

typedef struct {
    PyObject_VAR_HEAD
    /* Vector of pointers to list elements.  list[0] is ob_item[0], etc. */
    PyObject **ob_item;

    /* ob_item contains space for 'allocated' elements.  The number
     * currently in use is ob_size.
     * Invariants:
     *     0 <= ob_size <= allocated
     *     len(list) == ob_size
     *     ob_item == NULL implies ob_size == allocated == 0
     * list.sort() temporarily sets allocated to -1 to detect mutations.
     *
     * Items must normally not be NULL, except during construction when
     * the list is not yet visible outside the function that builds it.
     */
    Py_ssize_t allocated;
} PyListObject;

PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
PyAPI_FUNC(void) _PyList_DebugMallocStats(FILE *out);

/* Macro, trading safety for speed */

/* Cast argument to PyListObject* type. */
#define _PyList_CAST(op) (assert(PyList_Check(op)), (PyListObject *)(op))

#define PyList_GET_ITEM(op, i) (_PyList_CAST(op)->ob_item[i])
#define PyList_SET_ITEM(op, i, v) ((void)(_PyList_CAST(op)->ob_item[i] = (v)))
#define PyList_GET_SIZE(op)    Py_SIZE(_PyList_CAST(op))

Directory Contents

Dirs: 0 × Files: 32

Name Size Perms Modified Actions
13.72 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
769 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
4.25 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.43 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
7.39 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
2.17 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
3.65 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
723 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
4.17 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
3.08 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.59 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
7.42 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
387 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.21 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.37 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
19.15 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
3.28 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.27 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
846 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.35 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
1.07 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
5.35 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
444 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
2.05 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
3.30 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
11.63 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
4.70 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
8.98 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download
506 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
404 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
975 B lrw-r--r-- 2025-10-09 15:25:03
Edit Download
44.06 KB lrw-r--r-- 2025-10-09 15:25:03
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).