Searched refs:ob_item (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython2/Modules/ |
D | arraymodule.c | 33 char *ob_item; member 57 self->ob_item != NULL) { in array_resize() 75 items = self->ob_item; in array_resize() 86 self->ob_item = items; in array_resize() 107 return PyString_FromStringAndSize(&((char *)ap->ob_item)[i], 1); in c_getitem() 117 ((char *)ap->ob_item)[i] = x; in c_setitem() 124 long x = ((char *)ap->ob_item)[i]; in b_getitem() 150 ((char *)ap->ob_item)[i] = (char)x; in b_setitem() 157 long x = ((unsigned char *)ap->ob_item)[i]; in BB_getitem() 169 ((char *)ap->ob_item)[i] = x; in BB_setitem() [all …]
|
D | posixmodule.c | 1411 if (result->ob_item[i+3] == Py_None) { in statresult_new() 1413 Py_INCREF(result->ob_item[i]); in statresult_new() 1414 result->ob_item[i+3] = result->ob_item[i]; in statresult_new()
|
/external/python/cpython2/Objects/ |
D | tupleobject.c | 67 free_list[size] = (PyTupleObject *) op->ob_item[0]; in PyTuple_New() 95 op->ob_item[i] = NULL; in PyTuple_New() 132 return ((PyTupleObject *)op) -> ob_item[i]; in PyTuple_GetItem() 151 p = ((PyTupleObject *)op) -> ob_item + i; in PyTuple_SetItem() 199 items = ((PyTupleObject *)result)->ob_item; in PyTuple_Pack() 222 Py_XDECREF(op->ob_item[i]); in tupledealloc() 228 op->ob_item[0] = (PyObject *) free_list[len]; in tupledealloc() 253 if (PyObject_Print(op->ob_item[i], fp, 0) != 0) in tupleprint() 293 s = PyObject_Repr(v->ob_item[i]); in tuplerepr() 349 p = v->ob_item; in tuplehash() [all …]
|
D | listobject.c | 36 assert(self->ob_item != NULL || newsize == 0); in list_resize() 60 items = self->ob_item; in list_resize() 69 self->ob_item = items; in list_resize() 150 op->ob_item = NULL; in PyList_New() 152 op->ob_item = (PyObject **) PyMem_MALLOC(nbytes); in PyList_New() 153 if (op->ob_item == NULL) { in PyList_New() 157 memset(op->ob_item, 0, nbytes); in PyList_New() 195 return ((PyListObject *)op) -> ob_item[i]; in PyList_GetItem() 215 p = ((PyListObject *)op) -> ob_item + i; in PyList_SetItem() 247 items = self->ob_item; in ins1() [all …]
|
D | structseq.c | 49 Py_XDECREF(obj->ob_item[i]); in structseq_dealloc() 67 Py_INCREF(obj->ob_item[i]); in structseq_item() 68 return obj->ob_item[i]; in structseq_item() 87 PyObject *v = obj->ob_item[i]; in structseq_slice() 110 Py_INCREF(self->ob_item[i]); in structseq_subscript() 111 return self->ob_item[i]; in structseq_subscript() 129 PyObject *v = self->ob_item[cur]; in structseq_subscript() 210 res->ob_item[i] = v; in structseq_new() 220 res->ob_item[i] = ob; in structseq_new() 395 Py_INCREF(self->ob_item[i]); in structseq_reduce() [all …]
|
/external/python/cpython2/Include/ |
D | tupleobject.h | 26 PyObject *ob_item[1]; member 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)
|
D | listobject.h | 25 PyObject **ob_item; member 61 #define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i]) 62 #define PyList_SET_ITEM(op, i, v) (((PyListObject *)(op))->ob_item[i] = (v))
|
D | structseq.h | 31 PyObject *ob_item[1]; member 36 (((PyStructSequence *)(op))->ob_item[i] = v)
|
D | abstract.h | 1181 (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \ 1182 : ((PyTupleObject *)(sf))->ob_item)
|
/external/python/cpython2/Python/ |
D | ceval.c | 2218 ((PyTupleObject *)v)->ob_item; in PyEval_EvalFrameEx() 2229 ((PyListObject *)v)->ob_item; in PyEval_EvalFrameEx() 3433 co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; in PyEval_EvalCodeEx()
|
/external/python/cpython2/Modules/_ctypes/ |
D | _ctypes.c | 162 items = ((PyTupleObject *)result)->ob_item; in PyTuple_Pack()
|