Home
last modified time | relevance | path

Searched refs:PyVarObject (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Include/
Dobjimpl.h120 PyAPI_FUNC(PyVarObject *) PyObject_InitVar(PyVarObject *,
123 PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
163 PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
170 PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
Dobject.h97 #define PyObject_VAR_HEAD PyVarObject ob_base;
118 } PyVarObject; typedef
121 #define _PyVarObject_CAST(op) ((PyVarObject*)(op))
142 static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { in _Py_SET_SIZE()
/external/python/cpython2/Include/
Dobjimpl.h151 PyAPI_FUNC(PyVarObject *) PyObject_InitVar(PyVarObject *,
154 PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
198 (PyVarObject *) PyObject_MALLOC(_PyObject_VAR_SIZE((typeobj),(n)) ),\
244 PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
246 ( (type *) _PyObject_GC_Resize((PyVarObject *)(op), (n)) )
323 PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
Dobject.h112 } PyVarObject; typedef
116 #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
/external/python/cpython3/Include/cpython/
Dobjimpl.h79 static inline PyVarObject*
80 _PyObject_INIT_VAR(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size) in _PyObject_INIT_VAR()
/external/python/cpython3/Doc/c-api/
Dallocation.rst12 .. c:function:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size)
24 .. c:function:: PyVarObject* PyObject_InitVar(PyVarObject *op, PyTypeObject *type, Py_ssize_t size)
Dstructures.rst18 :c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn,
35 .. c:type:: PyVarObject
60 PyVarObject ob_base;
62 See documentation of :c:type:`PyVarObject` above.
109 (((PyVarObject*)(o))->ob_size)
112 .. c:function:: void Py_SET_SIZE(PyVarObject *o, Py_ssize_t size)
131 :c:type:`PyVarObject` type, including the :attr:`ob_size` field.
Dgcsupport.rst49 .. c:function:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize)
Dtypeobj.rst476 The type object structure extends the :c:type:`PyVarObject` structure. The
536 PyVarObject Slots
539 .. c:member:: Py_ssize_t PyVarObject.ob_size
/external/python/cpython2/Modules/
Dgcmodule.c1527 PyVarObject *
1531 PyVarObject *op = (PyVarObject *) _PyObject_GC_Malloc(size); in _PyObject_GC_NewVar()
1537 PyVarObject *
1538 _PyObject_GC_Resize(PyVarObject *op, Py_ssize_t nitems) in _PyObject_GC_Resize()
1544 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
1547 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
1548 op = (PyVarObject *) FROM_GC(g); in _PyObject_GC_Resize()
/external/python/cpython2/Doc/c-api/
Dallocation.rst12 .. c:function:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size)
31 .. c:function:: PyVarObject* PyObject_InitVar(PyVarObject *op, PyTypeObject *type, Py_ssize_t size)
Dstructures.rst14 :c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn,
29 .. c:type:: PyVarObject
37 :c:type:`PyVarObject`:
61 :c:type:`PyVarObject` type; it is used when declaring new types which
98 (((PyVarObject*)(o))->ob_size)
115 :c:type:`PyVarObject` type, including the :attr:`ob_size` field.
Dgcsupport.rst56 .. c:function:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize)
Dtypeobj.rst35 The type object structure extends the :c:type:`PyVarObject` structure. The
95 .. c:member:: Py_ssize_t PyVarObject.ob_size
/external/python/cpython3/Modules/
Dgcmodule.c2270 PyVarObject *
2274 PyVarObject *op; in _PyObject_GC_NewVar()
2281 op = (PyVarObject *) _PyObject_GC_Malloc(size); in _PyObject_GC_NewVar()
2287 PyVarObject *
2288 _PyObject_GC_Resize(PyVarObject *op, Py_ssize_t nitems) in _PyObject_GC_Resize()
2293 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
2299 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
2300 op = (PyVarObject *) FROM_GC(g); in _PyObject_GC_Resize()
/external/python/cpython2/Objects/
Dobject.c228 PyVarObject *
229 PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, Py_ssize_t size) in PyObject_InitVar()
232 return (PyVarObject *) PyErr_NoMemory(); in PyObject_InitVar()
250 PyVarObject *
253 PyVarObject *op; in _PyObject_NewVar()
255 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
257 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_NewVar()
1296 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GetDictPtr()
1418 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GenericGetAttrWithDict()
Dtypeobject.c796 (void) PyObject_INIT_VAR((PyVarObject *)obj, type, nitems); in PyType_GenericAlloc()
/external/python/cpython3/Objects/
Dobject.c151 PyVarObject *
152 PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, Py_ssize_t size) in PyObject_InitVar()
156 return (PyVarObject *) PyErr_NoMemory(); in PyObject_InitVar()
173 PyVarObject *
176 PyVarObject *op; in _PyObject_NewVar()
178 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
180 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_NewVar()
Dtypeobject.c1063 (void) PyObject_INIT_VAR((PyVarObject *)obj, type, nitems); in PyType_GenericAlloc()
/external/python/cpython3/Misc/
Dgdbinit60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
/external/python/cpython3/Doc/data/
Drefcounts.dat1653 PyObject_GC_Resize:PyVarObject*:op:0:
1729 PyObject_InitVar:PyVarObject*::0:
1730 PyObject_InitVar:PyVarObject*:op:0:
3057 _PyObject_NewVar:PyVarObject*::+1:
/external/python/cpython2/Doc/data/
Drefcounts.dat998 PyObject_InitVar:PyVarObject*::0:
999 PyObject_InitVar:PyVarObject*:op:0: