Home
last modified time | relevance | path

Searched refs:PyTupleObject (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Objects/
Dtupleobject.c29 static PyTupleObject *free_list[PyTuple_MAXSAVESIZE];
34 tuple_gc_track(PyTupleObject *op) in tuple_gc_track()
64 static PyTupleObject *
67 PyTupleObject *op; in tuple_alloc()
75 free_list[size] = (PyTupleObject *) op->ob_item[0]; in tuple_alloc()
88 if ((size_t)size > ((size_t)PY_SSIZE_T_MAX - (sizeof(PyTupleObject) - in tuple_alloc()
90 return (PyTupleObject *)PyErr_NoMemory(); in tuple_alloc()
92 op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size); in tuple_alloc()
102 PyTupleObject *op; in PyTuple_New()
150 return ((PyTupleObject *)op) -> ob_item[i]; in PyTuple_GetItem()
[all …]
Dlistobject.c2123 PyTupleObject *vt, *wt; in unsafe_tuple_compare()
2133 vt = (PyTupleObject *)v; in unsafe_tuple_compare()
2134 wt = (PyTupleObject *)w; in unsafe_tuple_compare()
/external/python/cpython2/Objects/
Dtupleobject.c18 static PyTupleObject *free_list[PyTuple_MAXSAVESIZE];
51 register PyTupleObject *op; in PyTuple_New()
67 free_list[size] = (PyTupleObject *) op->ob_item[0]; in PyTuple_New()
85 (nbytes > PY_SSIZE_T_MAX - sizeof(PyTupleObject) - sizeof(PyObject *))) in PyTuple_New()
90 op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size); in PyTuple_New()
132 return ((PyTupleObject *)op) -> ob_item[i]; in PyTuple_GetItem()
151 p = ((PyTupleObject *)op) -> ob_item + i; in PyTuple_SetItem()
161 PyTupleObject *t; in _PyTuple_MaybeUntrack()
166 t = (PyTupleObject *) op; in _PyTuple_MaybeUntrack()
199 items = ((PyTupleObject *)result)->ob_item; in PyTuple_Pack()
[all …]
Dstructseq.c74 PyTupleObject *np; in structseq_slice()
83 np = (PyTupleObject *)PyTuple_New(high-low); in structseq_slice()
Dfuncobject.c495 d = &PyTuple_GET_ITEM((PyTupleObject *)argdefs, 0); in function_call()
Dlistobject.c2265 p = ((PyTupleObject *)w)->ob_item; in PyList_AsTuple()
/external/python/cpython3/Objects/clinic/
Dtupleobject.c.h17 tuple_index_impl(PyTupleObject *self, PyObject *value, Py_ssize_t start,
21 tuple_index(PyTupleObject *self, PyObject *const *args, Py_ssize_t nargs) in tuple_index()
107 tuple___getnewargs___impl(PyTupleObject *self);
110 tuple___getnewargs__(PyTupleObject *self, PyObject *Py_UNUSED(ignored)) in tuple___getnewargs__()
/external/python/cpython2/Include/
Dtupleobject.h32 } PyTupleObject; typedef
50 #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i])
54 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
Dabstract.h1182 : ((PyTupleObject *)(sf))->ob_item)
/external/python/cpython3/Include/cpython/
Dtupleobject.h15 } PyTupleObject; typedef
23 #define _PyTuple_CAST(op) (assert(PyTuple_Check(op)), (PyTupleObject *)(op))
/external/python/cpython3/Include/
Dstructseq.h35 typedef PyTupleObject PyStructSequence;
Dabstract.h708 : ((PyTupleObject *)(sf))->ob_item)
/external/llvm/test/CodeGen/X86/
D2007-08-09-IllegalX86-64Asm.ll13 %struct.PyTupleObject = type { i64, %struct._typeobject*, i64, [1 x %struct.PyObject*] }
188 …%tmp140141 = bitcast %struct.PyObject* %tmp90 to %struct.PyTupleObject* ; <%struct.PyTupleObject*…
189 …%tmp143 = getelementptr %struct.PyTupleObject, %struct.PyTupleObject* %tmp140141, i32 0, i32 3, i6…
221 …%tmp190 = getelementptr %struct.PyTupleObject, %struct.PyTupleObject* %tmp140141, i32 0, i32 3, i6…
/external/llvm-project/llvm/test/CodeGen/X86/
D2007-08-09-IllegalX86-64Asm.ll14 %struct.PyTupleObject = type { i64, %struct._typeobject*, i64, [1 x %struct.PyObject*] }
358 …%tmp140141 = bitcast %struct.PyObject* %tmp90 to %struct.PyTupleObject* ; <%struct.PyTupleObject*…
359 …%tmp143 = getelementptr %struct.PyTupleObject, %struct.PyTupleObject* %tmp140141, i32 0, i32 3, i6…
391 …%tmp190 = getelementptr %struct.PyTupleObject, %struct.PyTupleObject* %tmp140141, i32 0, i32 3, i6…
/external/python/cpython2/Doc/data/
Drefcounts.dat1369 PyTuple_GET_ITEM:PyTupleObject*:p:0:
1373 PyTuple_GetItem:PyTupleObject*:p:0:
1377 PyTuple_GetSlice:PyTupleObject*:p:0:
1389 PyTuple_SET_ITEM:PyTupleObject*:p:0:
1394 PyTuple_SetItem:PyTupleObject*:p:0:
1399 PyTuple_Size:PyTupleObject*:p:0:
1837 _PyTuple_Resize:PyTupleObject**:p:+1:
/external/python/cpython2/Doc/c-api/
Dtuple.rst11 .. c:type:: PyTupleObject
/external/python/cpython3/Doc/c-api/
Dsequence.rst139 *o* is a :c:type:`PyTupleObject` or a :c:type:`PyListObject` and access
Dtuple.rst11 .. c:type:: PyTupleObject
Dsys.rst355 :c:type:`PyTupleObject`. The hook function is always called with the GIL
/external/python/cpython2/Python/
Dceval.c833 #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i)) in PyEval_EvalFrameEx()
2230 ((PyTupleObject *)v)->ob_item; in PyEval_EvalFrameEx()
3453 co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; in PyEval_EvalCodeEx()
/external/python/cpython3/Python/
Dceval.c1057 #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i)) in _PyEval_EvalFrameDefault()
2388 items = ((PyTupleObject *)seq)->ob_item; in _PyEval_EvalFrameDefault()
4162 co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; in _PyEval_EvalCode()
/external/python/cpython3/Tools/c-analyzer/
DTODO106 Objects/tupleobject.c:free_list static PyTupleObject *free_list[Py…
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c168 items = ((PyTupleObject *)result)->ob_item; in PyTuple_Pack()
/external/python/cpython3/Modules/
D_datetimemodule.c3236 PyTupleObject tuple;
D_testcapimodule.c4819 *stack = ((PyTupleObject *)args)->ob_item; in fastcall_args()

12