Home
last modified time | relevance | path

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

12

/external/python/cpython3/Parser/
Dmyreadline.c156 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline()
165 buf = PyMem_RawMalloc(1); in _PyOS_WindowsConsoleReadline()
172 buf = PyMem_RawMalloc(u8len + 1); in _PyOS_WindowsConsoleReadline()
222 (wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)))) { in PyOS_StdioReadline()
245 p = (char *)PyMem_RawMalloc(n); in PyOS_StdioReadline()
/external/python/cpython3/PC/
Dgetpathp.c317 keyBuf = keyBufPtr = PyMem_RawMalloc(keyBufLen); in getpythonregpath()
341 ppPaths = PyMem_RawMalloc( sizeof(WCHAR *) * numKeys ); in getpythonregpath()
363 ppPaths[index] = PyMem_RawMalloc(reqdSize); in getpythonregpath()
378 dataBuf = PyMem_RawMalloc((dataSize+1) * sizeof(WCHAR)); in getpythonregpath()
555 wchar_t *buf = (wchar_t*)PyMem_RawMalloc(bufsiz * sizeof(wchar_t)); in read_pth_file()
580 wchar_t *wline = (wchar_t*)PyMem_RawMalloc((wn + 1) * sizeof(wchar_t)); in read_pth_file()
761 module_search_path = buf = PyMem_RawMalloc(bufsz*sizeof(wchar_t)); in calculate_path()
893 module_search_path = PyMem_RawMalloc((wcslen(path) + 1) * sizeof(wchar_t)); in Py_SetPath()
/external/python/cpython3/Programs/
Dpython.c30 argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1)); in main()
31 argv_copy2 = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1)); in main()
/external/python/cpython3/Python/
Dfrozenmain.c28 argv_copy = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
29 argv_copy2 = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
Dthread_pthread.h285 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock()
413 lock = (pthread_lock *) PyMem_RawMalloc(sizeof(pthread_lock)); in PyThread_allocate_lock()
Dfileutils.c235 res = PyMem_RawMalloc(argsize*sizeof(wchar_t)); in decode_ascii_surrogateescape()
324 res = (wchar_t *)PyMem_RawMalloc(argsize*sizeof(wchar_t)); in Py_DecodeLocale()
352 res = (wchar_t*)PyMem_RawMalloc(argsize*sizeof(wchar_t)); in Py_DecodeLocale()
Dpystate.c73 PyMem_RawMalloc(sizeof(PyInterpreterState)); in PyInterpreterState_New()
183 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate()
Dthread.c237 p = (struct key *)PyMem_RawMalloc(sizeof(struct key)); in find_key()
Dthread_nt.h37 PNRMUTEX m = (PNRMUTEX)PyMem_RawMalloc(sizeof(NRMUTEX)); in AllocNonRecursiveMutex()
Dsysmodule.c976 (verblock = PyMem_RawMalloc(verblock_size))) { in sys_getwindowsversion()
/external/python/cpython3/Modules/
Dmain.c411 command = (wchar_t *)PyMem_RawMalloc(sizeof(wchar_t) * len); in Py_Main()
555 buf = (wchar_t *)PyMem_RawMalloc((wcslen(wp) + 1) * sizeof(wchar_t)); in Py_Main()
574 buf = (char *)PyMem_RawMalloc(strlen(p) + 1); in Py_Main()
662 buffer = PyMem_RawMalloc(len * sizeof(wchar_t)); in Py_Main()
Dreadline.c1338 p = PyMem_RawMalloc(1); in call_readline()
1366 p = PyMem_RawMalloc(n+2); in call_readline()
Doverlapped.c28 # define PyMem_RawMalloc PyMem_Malloc macro
274 pdata = PyMem_RawMalloc(sizeof(struct PostCallbackData)); in overlapped_RegisterWaitWithQueue()
Dhashtable.c152 alloc.malloc = PyMem_RawMalloc; in _Py_hashtable_new_full()
D_bz2module.c295 return PyMem_RawMalloc(items * size); in BZ2_Malloc()
Dgetpath.c838 module_search_path = PyMem_RawMalloc((wcslen(path) + 1) * sizeof(wchar_t)); in Py_SetPath()
Dzlibmodule.c133 return PyMem_RawMalloc(items * size); in PyZlib_Malloc()
D_winapi.c550 rdb = (_Py_PREPARSE_DATA_BUFFER)PyMem_RawMalloc(rdb_size); in _winapi_CreateJunction_impl()
D_lzmamodule.c126 return PyMem_RawMalloc(items * size); in PyLzma_Malloc()
D_testcapimodule.c3208 ptr = PyMem_RawMalloc(0); in test_pymem_alloc0()
3317 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawMalloc(size); break; in test_setallocators()
Dposixmodule.c1429 new_path = PyMem_RawMalloc(result * sizeof(wchar_t)); in win32_wchdir()
1507 buf = (wchar_t *)PyMem_RawMalloc((buf_size + 1) * sizeof(wchar_t)); in get_target_path()
3207 wbuf2 = PyMem_RawMalloc(len * sizeof(wchar_t)); in posix_getcwd()
/external/python/cpython3/Doc/c-api/
Dmemory.rst109 .. c:function:: void* PyMem_RawMalloc(size_t n)
115 if ``PyMem_RawMalloc(1)`` had been called instead. The memory will not have
137 If *p* is *NULL*, the call is equivalent to ``PyMem_RawMalloc(n)``; else if
142 :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
152 previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
304 * :c:func:`PyMem_RawMalloc`
390 with a fixed size of 256 KB. It falls back to :c:func:`PyMem_RawMalloc` and
Dveryhigh.rst169 The result must be a string allocated by :c:func:`PyMem_RawMalloc` or
173 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.c376 PyMem_RawMalloc(size_t size) in PyMem_RawMalloc() function
452 copy = PyMem_RawMalloc(size); in _PyMem_RawStrdup()
1427 result = PyMem_RawMalloc(nbytes); in _PyObject_Alloc()

12