Home
last modified time | relevance | path

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

12

/third_party/python/Include/
Dpymem.h53 PyAPI_FUNC(void *) PyMem_Realloc(void *ptr, size_t new_size);
65 #define PyMem_REALLOC(p, n) PyMem_Realloc(p, n)
93 (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
/third_party/python/Doc/c-api/
Dmemory.rst204 .. c:function:: void* PyMem_Realloc(void *p, size_t n)
214 :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or :c:func:`PyMem_Calloc`.
216 If the request fails, :c:func:`PyMem_Realloc` returns ``NULL`` and *p* remains
223 previous call to :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or
242 Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
405 * :c:func:`PyMem_Realloc`
Dveryhigh.rst187 :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`.
/third_party/python/Parser/pegen/
Dparse.c15804 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_1_rule()
15870 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_2_rule()
15945 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_4_rule()
16059 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_6_rule()
16173 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_8_rule()
16287 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_10_rule()
16392 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop1_11_rule()
16472 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_13_rule()
17025 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop1_22_rule()
17215 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_26_rule()
[all …]
Dparse_string.c945 expr_ty *tmp = PyMem_Realloc(l->p, sizeof(expr_ty) * new_size); in ExprList_Append()
Dpegen.c556 void *new_items_array = PyMem_Realloc(arr->items, new_size * sizeof(*arr->items)); in growable_comment_array_add()
618 Token **new_tokens = PyMem_Realloc(p->tokens, newsize * sizeof(Token *)); in _PyPegen_fill_token()
/third_party/python/Modules/
Datexitmodule.c144 r = (atexit_callback**)PyMem_Realloc(modstate->atexit_callbacks, in atexit_register()
D_bz2module.c483 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
D_localemodule.c399 wchar_t * new_buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t)); in PyLocale_strxfrm()
Dunicodedata.c537 new_output = PyMem_Realloc(output, osize*sizeof(Py_UCS4)); in nfd_nfkd()
D_lzmamodule.c951 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
Dmathmodule.c1369 v = PyMem_Realloc(p, sizeof(double) * m); in _fsum_realloc()
D_testbuffer.c2257 p = PyMem_Realloc(infobuf, ndbuf->len); in ndarray_memoryview_from_buffer()
D_testcapimodule.c3892 case PYMEM_DOMAIN_MEM: ptr2 = PyMem_Realloc(ptr, size2); break; in test_setallocators()
D_pickle.c1461 char *input_line = PyMem_Realloc(self->input_line, len + 1); in _Unpickler_CopyLine()
/third_party/python/Modules/_io/
Dwinconsoleio.c606 newbuf = (wchar_t*)PyMem_Realloc(buf, maxlen * sizeof(wchar_t)); in read_console_w()
819 wchar_t *tmp = PyMem_Realloc(buf, in _io__WindowsConsoleIO_readall_impl()
Dstringio.c110 new_buf = (Py_UCS4 *)PyMem_Realloc(self->buf, alloc * sizeof(Py_UCS4)); in resize_buffer()
/third_party/python/PC/
Dwinreg.c1205 tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize); in winreg_EnumValue_impl()
1525 tmp = (wchar_t *) PyMem_Realloc(retBuf, bufSize); in winreg_QueryValue_impl()
1595 tmp = (char *) PyMem_Realloc(retBuf, bufSize); in winreg_QueryValueEx_impl()
Dpython3.def358 PyMem_Realloc=python39.PyMem_Realloc
/third_party/python/Objects/
Dcodeobject.c1090 co_extra = PyMem_Realloc( in _PyCode_SetExtra()
Dobmalloc.c618 PyMem_Realloc(void *ptr, size_t new_size) in PyMem_Realloc() function
Dlistobject.c72 items = (PyObject **)PyMem_Realloc(self->ob_item, num_allocated_bytes); in list_resize()
/third_party/python/Modules/_ctypes/
Dcallproc.c1820 void * ptr = PyMem_Realloc(obj->b_ptr, size); in resize()
/third_party/python/Modules/_decimal/
D_decimal.c5674 mpd_reallocfunc = PyMem_Realloc; in PyInit__decimal()
/third_party/python/Python/
Dast.c5317 expr_ty *tmp = PyMem_Realloc(l->p, sizeof(expr_ty) * new_size); in ExprList_Append()

12