Home
last modified time | relevance | path

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

12

/external/python/cpython3/Include/
Dpymem.h50 PyAPI_FUNC(void *) PyMem_Realloc(void *ptr, size_t new_size);
75 (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
83 #define PyMem_REALLOC(p, n) PyMem_Realloc((p), (n))
/external/python/cpython3/Parser/lexer/
Dbuffer.c61 newbuf = (char *)PyMem_Realloc(newbuf, newsize); in _PyLexer_tok_reserve_buf()
Dlexer.c188 char *new_buffer = PyMem_Realloc( in _PyLexer_update_fstring_expr()
/external/python/cpython3/Modules/
Datexitmodule.c199 r = (atexit_py_callback**)PyMem_Realloc(state->callbacks, size); in atexit_register()
D_localemodule.c415 wchar_t * new_buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t)); in _locale_strxfrm_impl()
D_bz2module.c513 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
Dunicodedata.c536 new_output = PyMem_Realloc(output, osize*sizeof(Py_UCS4)); in nfd_nfkd()
D_lzmamodule.c1023 tmp = PyMem_Realloc(d->input_buffer, new_size); in decompress()
Dzlibmodule.c1570 tmp = PyMem_Realloc(self->input_buffer, new_size); in decompress()
Dtimemodule.c825 *outbuf = (time_char *)PyMem_Realloc(*outbuf, in time_strftime1()
Dpyexpat.c25 PyMem_Malloc, PyMem_Realloc, PyMem_Free};
/external/python/cpython3/Parser/
Dparser.c25488 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_1_rule()
25555 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_2_rule()
25622 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop1_3_rule()
25703 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_5_rule()
26275 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop1_14_rule()
26516 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_19_rule()
26633 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_21_rule()
26844 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_24_rule()
26911 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop1_25_rule()
26992 void **_new_children = PyMem_Realloc(_children, _children_capacity*sizeof(void *)); in _loop0_27_rule()
[all …]
Dpegen.c136 void *new_items_array = PyMem_Realloc(arr->items, new_size * sizeof(*arr->items)); in growable_comment_array_add()
221 Token **new_tokens = PyMem_Realloc(p->tokens, newsize * sizeof(Token *)); in _resize_tokens_array()
/external/python/cpython3/Doc/c-api/
Dmemory.rst246 .. c:function:: void* PyMem_Realloc(void *p, size_t n)
256 :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or :c:func:`PyMem_Calloc`.
258 If the request fails, :c:func:`PyMem_Realloc` returns ``NULL`` and *p* remains
265 previous call to :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or
284 Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
462 * :c:func:`PyMem_Realloc`
Dveryhigh.rst168 :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`.
/external/python/cpython3/PC/
Dwinreg.c1227 tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize); in winreg_EnumValue_impl()
1560 void *tmp = PyMem_Realloc(pbuf != buf ? pbuf : NULL, size); in winreg_QueryValue_impl()
1648 tmp = (char *) PyMem_Realloc(retBuf, bufSize); in winreg_QueryValueEx_impl()
Dpython3dll.c387 EXPORT_FUNC(PyMem_Realloc)
/external/python/cpython3/Modules/_io/
Dwinconsoleio.c671 newbuf = (wchar_t*)PyMem_Realloc(buf, maxlen * sizeof(wchar_t)); in read_console_w()
901 wchar_t *tmp = PyMem_Realloc(buf, in _io__WindowsConsoleIO_readall_impl()
Dstringio.c113 new_buf = (Py_UCS4 *)PyMem_Realloc(self->buf, alloc * sizeof(Py_UCS4)); in resize_buffer()
/external/python/cpython3/Parser/tokenizer/
Dfile_tokenizer.c32 new_str = PyMem_Realloc(new_str, current_size + line_size + 1); in tok_concatenate_interactive_new_line()
Dhelpers.c242 char* result = PyMem_Realloc(buf, final_length); in _PyTokenizer_translate_newlines()
/external/python/cpython3/Modules/_testcapi/
Dmem.c241 ptr2 = PyMem_Realloc(ptr, size2); in test_setallocators()
/external/python/cpython3/Doc/data/
Dstable_abi.dat402 func,PyMem_Realloc,3.2,,
/external/python/cpython3/Modules/_ctypes/
Dcallproc.c1924 void * ptr = PyMem_Realloc(obj->b_ptr, size); in resize()
/external/python/cpython3/Python/
Doptimizer.c69 _PyExecutorArray *new = PyMem_Realloc( in get_index_for_executor()

12