Searched refs:tp_basicsize (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Include/ |
D | objimpl.h | 168 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) 186 ( ( (typeobj)->tp_basicsize + \
|
D | object.h | 327 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member 433 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize))
|
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 4 int tp_basicsize, tp_itemsize; /* For allocation */ member
|
/external/python/cpython2/Objects/ |
D | typeobject.c | 211 {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY}, 1785 size_t t_size = type->tp_basicsize; in extra_ivars() 1786 size_t b_size = base->tp_basicsize; in extra_ivars() 1960 (size_t)(Py_TYPE(obj)->tp_basicsize)); in subtype_getweakref() 2447 slotoffset = base->tp_basicsize; in type_new() 2474 type->tp_basicsize = slotoffset; in type_new() 2497 if (!(type->tp_basicsize == sizeof(PyObject) && in type_new() 3098 a->tp_basicsize == b->tp_basicsize && in equiv_structs() 3114 size = base->tp_basicsize; in same_slots_added() 3128 return size == a->tp_basicsize && size == b->tp_basicsize; in same_slots_added() [all …]
|
D | structseq.c | 500 type->tp_basicsize = sizeof(PyStructSequence)+ in PyStructSequence_InitType()
|
D | longobject.c | 4145 res = v->ob_type->tp_basicsize + ABS(Py_SIZE(v))*sizeof(digit); in long_sizeof()
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 131 .. c:member:: Py_ssize_t PyTypeObject.tp_basicsize 139 instances have the same size, given in :c:member:`~PyTypeObject.tp_basicsize`. 142 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N 156 way to get an initializer for the :c:member:`~PyTypeObject.tp_basicsize` is to use the 159 in 2.1 and 2.0, the GC header size was included in :c:member:`~PyTypeObject.tp_basicsize`). 167 this should be taken care of by the value of :c:member:`~PyTypeObject.tp_basicsize`. Example: 170 :c:member:`~PyTypeObject.tp_basicsize` is a multiple of ``sizeof(double)`` (assuming this is the 913 that the :c:member:`~PyTypeObject.tp_basicsize` field should account for the dictionary added to 922 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset 926 …where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject.tp_itemsize` and :c:member:… [all …]
|
D | allocation.rst | 46 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 85 sizeof(noddy_NoddyObject), /*tp_basicsize*/ 147 sizeof(noddy_NoddyObject), /* tp_basicsize */ 155 :c:member:`~PyTypeObject.tp_basicsize` as its base type, you may have problems with multiple 159 ensuring that your type has a larger value for :c:member:`~PyTypeObject.tp_basicsize` than its 937 int tp_basicsize, tp_itemsize; /* For allocation */
|
/external/python/cpython2/Python/ |
D | sysmodule.c | 700 size = PyInstance_Type.tp_basicsize; in _PySys_GetSizeOf()
|