Home
last modified time | relevance | path

Searched refs:PyObject_Malloc (Results 1 – 25 of 31) sorted by relevance

12

/third_party/python/Include/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
108 #define PyObject_MALLOC PyObject_Malloc
/third_party/python/Doc/c-api/
Dmemory.rst108 by :c:func:`PyObject_Malloc` for allocating memory for buffers.
321 .. c:function:: void* PyObject_Malloc(size_t n)
327 if ``PyObject_Malloc(1)`` had been called instead. The memory will not have
349 If *p* is ``NULL``, the call is equivalent to ``PyObject_Malloc(n)``; else if *n*
354 :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:func:`PyObject_Calloc`.
363 previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or
378 … Name PyMem_RawMalloc PyMem_Malloc PyObject_Malloc
454 * :c:func:`PyObject_Malloc`
517 :c:func:`PyObject_Malloc`) and :c:data:`PYMEM_DOMAIN_MEM` (ex:
603 :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains.
/third_party/python/Python/
Dfuture.c123 ff = (PyFutureFeatures *)PyObject_Malloc(sizeof(PyFutureFeatures)); in _PyFuture_FromAST()
/third_party/python/Objects/
Dbytesobject.c70 PyBytesObject *op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE); in bytes_create_empty_string_singleton()
126 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in _PyBytes_FromSize()
202 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in PyBytes_FromString()
1466 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + nbytes); in bytes_repeat()
Dbytearrayobject.c132 new->ob_bytes = PyObject_Malloc(alloc); in PyByteArray_FromStringAndSize()
221 sval = PyObject_Malloc(alloc); in PyByteArray_Resize()
931 buffer = PyObject_Malloc(newsize); in bytearray_repr()
Dobject.c183 PyObject *op = (PyObject *) PyObject_Malloc(_PyObject_SIZE(tp)); in _PyObject_New()
196 op = (PyVarObject *) PyObject_Malloc(size); in _PyObject_NewVar()
Dcomplexobject.c229 PyComplexObject *op = PyObject_Malloc(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
Dunicodeobject.c1266 _PyUnicode_WSTR(unicode) = (Py_UNICODE*) PyObject_Malloc(new_size); in _PyUnicode_New()
1463 obj = (PyObject *) PyObject_Malloc(struct_size + (size + 1) * char_size); in PyUnicode_New()
1845 _PyUnicode_DATA_ANY(unicode) = PyObject_Malloc(_PyUnicode_WSTR_LENGTH(unicode) + 1); in _PyUnicode_Ready()
1886 _PyUnicode_DATA_ANY(unicode) = PyObject_Malloc( in _PyUnicode_Ready()
1915 _PyUnicode_DATA_ANY(unicode) = PyObject_Malloc(4 * (length_wo_surrogates + 1)); in _PyUnicode_Ready()
4286 w = (wchar_t *) PyObject_Malloc(sizeof(wchar_t) * (wlen + 1)); in PyUnicode_AsUnicodeAndSize()
5704 char *cache = PyObject_Malloc(len + 1); in unicode_fill_utf8()
8670 result = PyObject_Malloc(sizeof(struct encoding_map) + in PyUnicode_BuildEncodingMap()
15694 data = PyObject_Malloc((length + 1) * char_size); in unicode_subtype_new()
Dfloatobject.c137 op = PyObject_Malloc(sizeof(PyFloatObject)); in PyFloat_FromDouble()
Dobmalloc.c680 PyObject_Malloc(size_t size) in PyObject_Malloc() function
Ddictobject.c600 dk = PyObject_Malloc(sizeof(PyDictKeysObject) in new_keys_object()
709 PyDictKeysObject *keys = PyObject_Malloc(keys_size); in clone_combined_dict_keys()
Dtypeobject.c1157 obj = (PyObject *)PyObject_Malloc(size); in PyType_GenericAlloc()
2883 char *tp_doc = (char *)PyObject_Malloc(size); in type_new_set_doc()
3520 char *tp_doc = PyObject_Malloc(len); in PyType_FromModuleAndSpec()
/third_party/python/Modules/
Dmathmodule.c2665 diffs = (double *) PyObject_Malloc(n * sizeof(double)); in math_dist_impl()
2720 coordinates = (double *) PyObject_Malloc(nargs * sizeof(double)); in math_hypot()
D_testcapimodule.c3944 ptr = PyObject_Malloc(0); in test_pymem_alloc0()
4034 case PYMEM_DOMAIN_OBJ: ptr = PyObject_Malloc(size); break; in test_setallocators()
4821 PyObject *op = (PyObject *)PyObject_Malloc(sizeof(PyObject)); in check_pyobject_uninitialized_is_freed()
4836 PyObject *op = (PyObject *)PyObject_Malloc(offsetof(PyObject, ob_type)); in check_pyobject_forbidden_bytes_is_freed()
4876 buffer = PyObject_Malloc(10); in pyobject_malloc_without_gil()
D_elementtree.c228 self->extra = PyObject_Malloc(sizeof(ElementObjectExtra)); in create_extra()
481 children = PyObject_Malloc(size * sizeof(PyObject*)); in element_resize()
3055 PyObject_Malloc, PyObject_Realloc, PyObject_Free};
Dsre_lib.h989 ctx->u.rep = (SRE_REPEAT*) PyObject_Malloc(sizeof(*ctx->u.rep)); in SRE()
Dgcmodule.c2250 g = (PyGC_Head *)PyObject_Malloc(size); in _PyObject_GC_Alloc()
Dpyexpat.c20 PyObject_Malloc, PyObject_Realloc, PyObject_Free};
D_datetimemodule.c639 PyObject *self = (PyObject *)PyObject_Malloc(size); in time_alloc()
651 PyObject *self = (PyObject *)PyObject_Malloc(size); in datetime_alloc()
/third_party/python/PC/
Dpython3dll.c465 EXPORT_FUNC(PyObject_Malloc)
Dwinreg.c462 PyHKEYObject *op = (PyHKEYObject *) PyObject_Malloc(sizeof(PyHKEYObject)); in PyHKEY_FromHKEY()
/third_party/python/Doc/data/
Dstable_abi.dat509 function,PyObject_Malloc,3.2,
/third_party/python/Misc/
Dstable_abi.txt1099 function PyObject_Malloc
/third_party/python/Doc/whatsnew/
D3.6.rst653 functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and
1877 functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and
D2.3.rst1831 :c:func:`PyObject_Malloc`, it has to be freed using :c:func:`PyObject_Free`, not
1847 :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc`, and :c:func:`PyObject_Free`.

12