Home
last modified time | relevance | path

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

12

/external/python/cpython3/Include/
Dpymem.h105 PyAPI_FUNC(void *) PyMem_Realloc(void *ptr, size_t new_size);
128 #define PyMem_REALLOC(p, n) PyMem_Realloc(p, n)
156 (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
/external/python/cpython2/Include/
Dpymem.h53 PyAPI_FUNC(void *) PyMem_Realloc(void *, size_t);
107 (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
/external/python/cpython2/Misc/
Dpymemcompat.h50 #define PyObject_Realloc PyMem_Realloc
/external/python/cpython2/Doc/c-api/
Dmemory.rst105 .. c:function:: void* PyMem_Realloc(void *p, size_t n)
112 to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. If the request fails,
113 :c:func:`PyMem_Realloc` returns *NULL* and *p* remains a valid pointer to the
120 previous call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. Otherwise, or
137 Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
/external/python/cpython3/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`
/external/python/cpython3/Modules/
Datexitmodule.c138 r = (atexit_callback**)PyMem_Realloc(modstate->atexit_callbacks, in atexit_register()
D_bz2module.c494 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
D_localemodule.c369 wchar_t * new_buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t)); in PyLocale_strxfrm()
Dunicodedata.c530 new_output = PyMem_Realloc(output, osize*sizeof(Py_UCS4)); in nfd_nfkd()
D_lzmamodule.c960 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
Dmathmodule.c1247 v = PyMem_Realloc(p, sizeof(double) * m); in _fsum_realloc()
/external/python/cpython3/PC/
Dwinreg.c1148 tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize); in winreg_EnumValue_impl()
1441 tmp = (wchar_t *) PyMem_Realloc(retBuf, bufSize); in winreg_QueryValue_impl()
1507 tmp = (char *) PyMem_Realloc(retBuf, bufSize); in winreg_QueryValueEx_impl()
Dpython3.def353 PyMem_Realloc=python37.PyMem_Realloc
/external/python/cpython2/PC/os2vacpp/
Dpython.def260 PyMem_Realloc
/external/python/cpython3/Modules/_io/
Dwinconsoleio.c605 newbuf = (wchar_t*)PyMem_Realloc(buf, maxlen * sizeof(wchar_t)); in read_console_w()
818 wchar_t *tmp = PyMem_Realloc(buf, in _io__WindowsConsoleIO_readall_impl()
Dstringio.c109 new_buf = (Py_UCS4 *)PyMem_Realloc(self->buf, alloc * sizeof(Py_UCS4)); in resize_buffer()
/external/python/cpython2/PC/
D_winreg.c1244 tmpBuf = (char *)PyMem_Realloc(retDataBuf, bufDataSize); in PyEnumValue()
1439 tmp = (char *) PyMem_Realloc(retBuf, bufSize); in PyQueryValue()
1501 tmp = (char *) PyMem_Realloc(retBuf, bufSize); in PyQueryValueEx()
/external/python/cpython2/Modules/
D_randommodule.c296 key = (unsigned long *)PyMem_Realloc(key, in random_seed()
D_csv.c578 field_new = (char *)PyMem_Realloc(self->field, field_size_new); in parse_grow_buff()
1101 rec_new = (char *)PyMem_Realloc(self->rec, rec_size_new); in join_check_rec_size()
D_localemodule.c373 buf = PyMem_Realloc(buf, n2); in PyLocale_strxfrm()
Dmathmodule.c920 v = PyMem_Realloc(p, sizeof(double) * m); in _fsum_realloc()
/external/python/cpython2/Modules/_io/
Dbytesio.c92 new_buf = (char *)PyMem_Realloc(self->buf, alloc * sizeof(char)); in resize_buffer()
Dstringio.c89 new_buf = (Py_UNICODE *)PyMem_Realloc(self->buf, in resize_buffer()
/external/python/cpython3/Objects/
Dcodeobject.c880 co_extra = PyMem_Realloc( in _PyCode_SetExtra()
/external/python/cpython2/PC/os2emx/
Dpython27.def462 "PyMem_Realloc"

12