Home
last modified time | relevance | path

Searched refs:PyVarObject (Results 1 – 21 of 21) 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);
151 static inline PyVarObject*
152 _PyObject_INIT_VAR(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size) in _PyObject_INIT_VAR()
190 (PyVarObject *) PyObject_MALLOC(_PyObject_VAR_SIZE((typeobj),(n)) ),\
234 PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
241 PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
Dobject.h96 #define PyObject_VAR_HEAD PyVarObject ob_base;
116 } PyVarObject; typedef
119 #define _PyVarObject_CAST(op) ((PyVarObject*)(op))
/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/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.rst14 :c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn,
31 .. c:type:: PyVarObject
56 PyVarObject ob_base;
58 See documentation of :c:type:`PyVarObject` above.
83 (((PyVarObject*)(o))->ob_size)
98 :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.rst483 The type object structure extends the :c:type:`PyVarObject` structure. The
543 PyVarObject Slots
546 .. 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/Objects/
Dobject.c267 PyVarObject *
268 PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, Py_ssize_t size) in PyObject_InitVar()
271 return (PyVarObject *) PyErr_NoMemory(); in PyObject_InitVar()
288 PyVarObject *
291 PyVarObject *op; in _PyObject_NewVar()
293 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
295 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_NewVar()
1090 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GetDictPtr()
1268 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GenericGetAttrWithDict()
Dtypeobject.c1024 (void) PyObject_INIT_VAR((PyVarObject *)obj, type, nitems); in PyType_GenericAlloc()
/external/python/cpython3/Modules/
Dgcmodule.c2005 PyVarObject *
2009 PyVarObject *op; in _PyObject_GC_NewVar()
2016 op = (PyVarObject *) _PyObject_GC_Malloc(size); in _PyObject_GC_NewVar()
2022 PyVarObject *
2023 _PyObject_GC_Resize(PyVarObject *op, Py_ssize_t nitems) in _PyObject_GC_Resize()
2028 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
2034 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
2035 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/Misc/
Dgdbinit60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
/external/python/cpython3/Doc/data/
Drefcounts.dat1653 PyObject_GC_Resize:PyVarObject*:op:0:
1728 PyObject_InitVar:PyVarObject*::0:
1729 PyObject_InitVar:PyVarObject*:op:0:
3053 _PyObject_NewVar:PyVarObject*::+1:
/external/python/cpython2/Doc/data/
Drefcounts.dat998 PyObject_InitVar:PyVarObject*::0:
999 PyObject_InitVar:PyVarObject*:op:0: