Home
last modified time | relevance | path

Searched refs:PyMem_RawMalloc (Results 1 – 25 of 30) sorted by relevance

12

/external/python/cpython3/Parser/
Dmyreadline.c153 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline()
172 buf = PyMem_RawMalloc(1); in _PyOS_WindowsConsoleReadline()
182 buf = PyMem_RawMalloc(u8len + 1); in _PyOS_WindowsConsoleReadline()
232 wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)); in PyOS_StdioReadline()
259 p = (char *)PyMem_RawMalloc(n); in PyOS_StdioReadline()
/external/python/cpython3/PC/
Dgetpathp.c378 keyBuf = keyBufPtr = PyMem_RawMalloc(keyBufLen); in getpythonregpath()
410 ppPaths = PyMem_RawMalloc( sizeof(WCHAR *) * numKeys ); in getpythonregpath()
438 ppPaths[index] = PyMem_RawMalloc(reqdSize); in getpythonregpath()
455 dataBuf = PyMem_RawMalloc((dataSize+1) * sizeof(WCHAR)); in getpythonregpath()
553 config->program_full_path = PyMem_RawMalloc( in get_program_full_path()
578 wchar_t *buf = (wchar_t*)PyMem_RawMalloc(bufsiz * sizeof(wchar_t)); in read_pth_file()
608 wchar_t *wline = (wchar_t*)PyMem_RawMalloc((wn + 1) * sizeof(wchar_t)); in read_pth_file()
826 buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
/external/python/cpython3/Python/
Dfrozenmain.c36 argv_copy = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
37 argv_copy2 = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
Dthread_pthread.h213 pythread_callback *callback = PyMem_RawMalloc(sizeof(pythread_callback)); in PyThread_start_new_thread()
289 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock()
460 lock = (pthread_lock *) PyMem_RawMalloc(sizeof(pthread_lock)); in PyThread_allocate_lock()
Dfileutils.c214 result = PyMem_RawMalloc(len + 1); in encode_ascii()
283 res = PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_ascii()
344 res = (wchar_t *)PyMem_RawMalloc((argsize + 1) * sizeof(wchar_t)); in decode_current_locale()
378 res = (wchar_t*)PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_current_locale()
608 result = PyMem_RawMalloc(size); in encode_current_locale()
Dthread.c122 Py_tss_t *new_key = (Py_tss_t *)PyMem_RawMalloc(sizeof(Py_tss_t)); in PyThread_tss_alloc()
Dthread_nt.h37 PNRMUTEX m = (PNRMUTEX)PyMem_RawMalloc(sizeof(NRMUTEX)); in AllocNonRecursiveMutex()
Dpystate.c126 PyMem_RawMalloc(sizeof(PyInterpreterState)); in PyInterpreterState_New()
358 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate()
Dsysmodule.c1115 (verblock = PyMem_RawMalloc(verblock_size))) { in sys_getwindowsversion()
Dast.c4331 str = PyMem_RawMalloc(len + 3); in fstring_compile_expr()
4783 l->p = PyMem_RawMalloc(sizeof(expr_ty) * new_size); in ExprList_Append()
/external/python/cpython3/Doc/c-api/
Dmemory.rst110 .. c:function:: void* PyMem_RawMalloc(size_t n)
116 if ``PyMem_RawMalloc(1)`` had been called instead. The memory will not have
138 If *p* is *NULL*, the call is equivalent to ``PyMem_RawMalloc(n)``; else if
143 :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
153 previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
340 Configuration Name PyMem_RawMalloc PyMem_Malloc P…
395 * :c:func:`PyMem_RawMalloc`
482 with a fixed size of 256 KiB. It falls back to :c:func:`PyMem_RawMalloc` and
Dveryhigh.rst170 The result must be a string allocated by :c:func:`PyMem_RawMalloc` or
174 The result must be allocated by :c:func:`PyMem_RawMalloc` or
/external/python/cpython3/Include/
Dpymem.h15 PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
/external/python/cpython3/Objects/
Dobmalloc.c510 PyMem_RawMalloc(size_t size) in PyMem_RawMalloc() function
592 wchar_t *str2 = PyMem_RawMalloc(size); in _PyMem_RawWcsdup()
606 char *copy = PyMem_RawMalloc(size); in _PyMem_RawStrdup()
1579 ptr = PyMem_RawMalloc(nbytes); in _PyObject_Malloc()
/external/python/cpython3/Modules/
Dreadline.c1270 p = PyMem_RawMalloc(1); in call_readline()
1300 p = PyMem_RawMalloc(n+2); in call_readline()
Dmain.c529 wchar_t** argv = (wchar_t **)PyMem_RawMalloc(size); in pymain_init_cmdline_argv()
755 wchar_t *command = PyMem_RawMalloc(sizeof(wchar_t) * len); in pymain_parse_cmdline_impl()
1251 wchar_t **list_copy = PyMem_RawMalloc(size); in copy_wstrlist()
2241 wchar_t *path = PyMem_RawMalloc((path_len + 1) * sizeof(wchar_t)); in config_init_module_search_paths()
Dhashtable.c152 alloc.malloc = PyMem_RawMalloc; in _Py_hashtable_new_full()
D_bz2module.c284 return PyMem_RawMalloc((size_t)items * (size_t)size); in BZ2_Malloc()
Doverlapped.c28 # define PyMem_RawMalloc PyMem_Malloc macro
277 pdata = PyMem_RawMalloc(sizeof(struct PostCallbackData)); in overlapped_RegisterWaitWithQueue()
Dgetpath.c835 wchar_t *buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
Dzlibmodule.c124 return PyMem_RawMalloc((size_t)items * (size_t)size); in PyZlib_Malloc()
D_lzmamodule.c115 return PyMem_RawMalloc(items * size); in PyLzma_Malloc()
D_winapi.c548 rdb = (_Py_PREPARSE_DATA_BUFFER)PyMem_RawMalloc(rdb_size); in _winapi_CreateJunction_impl()
D_testcapimodule.c3328 ptr = PyMem_RawMalloc(0); in test_pymem_alloc0()
3444 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawMalloc(size); break; in test_setallocators()
Dposixmodule.c1534 new_path = PyMem_RawMalloc(result * sizeof(wchar_t)); in win32_wchdir()
1612 buf = (wchar_t *)PyMem_RawMalloc((buf_size + 1) * sizeof(wchar_t)); in get_target_path()
3281 wbuf2 = PyMem_RawMalloc(len * sizeof(wchar_t)); in posix_getcwd()

12