Home
last modified time | relevance | path

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

/third_party/python/Include/
Dobjimpl.h122 PyAPI_FUNC(PyVarObject *) PyObject_InitVar(PyVarObject *,
132 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))
122 #define _PyVarObject_CAST_CONST(op) ((const PyVarObject*)(op))
163 static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { in _Py_SET_SIZE()
/third_party/python/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.
136 .. c:function:: Py_ssize_t Py_SIZE(const PyVarObject *o)
143 .. c:function:: void Py_SET_SIZE(PyVarObject *o, Py_ssize_t size)
162 :c:type:`PyVarObject` type, including the :attr:`ob_size` field.
Dgcsupport.rst69 .. c:function:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize)
Dtypeobj.rst478 The type object structure extends the :c:type:`PyVarObject` structure. The
544 PyVarObject Slots
547 .. c:member:: Py_ssize_t PyVarObject.ob_size
/third_party/python/Modules/
Dgcmodule.c2297 PyVarObject *
2301 PyVarObject *op; in _PyObject_GC_NewVar()
2308 op = (PyVarObject *) _PyObject_GC_Malloc(size); in _PyObject_GC_NewVar()
2316 PyVarObject *
2317 _PyObject_GC_Resize(PyVarObject *op, Py_ssize_t nitems) in _PyObject_GC_Resize()
2322 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
2328 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_GC_Resize()
2329 op = (PyVarObject *) FROM_GC(g); in _PyObject_GC_Resize()
Darraymodule.c2586 view->shape = &((PyVarObject*)self)->ob_size; in array_buffer_getbuf()
/third_party/boost/boost/python/detail/
Dwrap_python.hpp226 # define Py_SIZE(o) (((PyVarObject*)(o))->ob_size)
/third_party/python/Objects/
Dobject.c169 PyVarObject *
170 PyObject_InitVar(PyVarObject *op, PyTypeObject *tp, Py_ssize_t size) in PyObject_InitVar()
173 return (PyVarObject *) PyErr_NoMemory(); in PyObject_InitVar()
191 PyVarObject *
194 PyVarObject *op; in _PyObject_NewVar()
196 op = (PyVarObject *) PyObject_Malloc(size); in _PyObject_NewVar()
198 return (PyVarObject *)PyErr_NoMemory(); in _PyObject_NewVar()
Dbytesobject.c74 _PyObject_InitVar((PyVarObject*)op, &PyBytes_Type, 0); in bytes_create_empty_string_singleton()
130 _PyObject_InitVar((PyVarObject*)op, &PyBytes_Type, size); in _PyBytes_FromSize()
206 _PyObject_InitVar((PyVarObject*)op, &PyBytes_Type, size); in PyBytes_FromString()
1470 _PyObject_InitVar((PyVarObject*)op, &PyBytes_Type, size); in bytes_repeat()
Dlongobject.c140 _PyObject_InitVar((PyVarObject*)result, &PyLong_Type, size); in _PyLong_New()
Dtypeobject.c1170 _PyObject_InitVar((PyVarObject *)obj, type, nitems); in PyType_GenericAlloc()
/third_party/python/Include/internal/
Dpycore_object.h52 _PyObject_InitVar(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size) in _PyObject_InitVar()
/third_party/python/Misc/
Dgdbinit60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
Dstable_abi.txt17 struct PyVarObject
/third_party/python/Doc/data/
Drefcounts.dat1656 PyObject_GC_Resize:PyVarObject*:op:0:
1735 PyObject_InitVar:PyVarObject*::0:
1736 PyObject_InitVar:PyVarObject*:op:0:
3040 _PyObject_NewVar:PyVarObject*::+1:
Dstable_abi.dat764 type,PyVarObject,3.2,