Home
last modified time | relevance | path

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

12

/third_party/python/Parser/
Dmyreadline.c168 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline()
192 buf = PyMem_RawMalloc(1); in _PyOS_WindowsConsoleReadline()
208 buf = PyMem_RawMalloc(u8len + 1); in _PyOS_WindowsConsoleReadline()
264 wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)); in PyOS_StdioReadline()
/third_party/python/PC/
Dgetpathp.c360 keyBuf = keyBufPtr = PyMem_RawMalloc(keyBufLen); in getpythonregpath()
419 ppPaths[index] = PyMem_RawMalloc(reqdSize); in getpythonregpath()
436 dataBuf = PyMem_RawMalloc((dataSize+1) * sizeof(WCHAR)); in getpythonregpath()
510 pathconfig->base_executable = PyMem_RawMalloc( in get_program_full_path()
530 pathconfig->program_full_path = PyMem_RawMalloc( in get_program_full_path()
568 buf = (wchar_t*)PyMem_RawMalloc(bufsiz * sizeof(wchar_t)); in read_pth_file()
602 wchar_t *wline = (wchar_t*)PyMem_RawMalloc((wn + 1) * sizeof(wchar_t)); in read_pth_file()
834 buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
D_msi.c88 return PyMem_RawMalloc(cb); in FNFCIALLOC()
/third_party/python/Python/
Dfrozenmain.c34 argv_copy = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
35 argv_copy2 = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
Dfileutils.c326 result = PyMem_RawMalloc(len + 1); in encode_ascii()
400 res = PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_ascii()
466 res = (wchar_t *)PyMem_RawMalloc((argsize + 1) * sizeof(wchar_t)); in decode_current_locale()
492 res = (wchar_t*)PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_current_locale()
726 result = PyMem_RawMalloc(size); in encode_current_locale()
2009 woutbufp = PyMem_RawMalloc((size_t)result * sizeof(wchar_t)); in _Py_abspath()
2050 *abspath_p = PyMem_RawMalloc(len * sizeof(wchar_t)); in _Py_abspath()
Dthread.c139 Py_tss_t *new_key = (Py_tss_t *)PyMem_RawMalloc(sizeof(Py_tss_t)); in PyThread_tss_alloc()
Dthread_pthread.h287 pythread_callback *callback = PyMem_RawMalloc(sizeof(pythread_callback)); in PyThread_start_new_thread()
392 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock()
Dpathconfig.c123 wchar_t *text = PyMem_RawMalloc(len * sizeof(wchar_t)); in _PyWideStringList_Join()
287 wchar_t *path = PyMem_RawMalloc((path_len + 1) * sizeof(wchar_t)); in config_init_module_search_paths()
Dthread_nt.h38 PNRMUTEX m = (PNRMUTEX)PyMem_RawMalloc(sizeof(NRMUTEX)); in AllocNonRecursiveMutex()
Dsysmodule.c411 e = (_Py_AuditHookEntry*)PyMem_RawMalloc(sizeof(_Py_AuditHookEntry)); in PySys_AddAuditHook()
417 e = e->next = (_Py_AuditHookEntry*)PyMem_RawMalloc( in PySys_AddAuditHook()
1537 (verblock = PyMem_RawMalloc(verblock_size))) { in sys_getwindowsversion_impl()
Dpystate.c617 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate()
1739 struct _xidregitem *newhead = PyMem_RawMalloc(sizeof(struct _xidregitem)); in _register_xidata()
Dpreconfig.c80 wargv.items = (wchar_t **)PyMem_RawMalloc(size); in _PyArgv_AsWstrList()
Dinitconfig.c340 copy.items = PyMem_RawMalloc(size); in _PyWideStringList_Copy()
2320 wchar_t *command = PyMem_RawMalloc(sizeof(wchar_t) * len); in config_parse_cmdline()
/third_party/python/Include/cpython/
Dpymem.h5 PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
/third_party/python/Modules/
Dgetpath.c267 wchar_t *substr = PyMem_RawMalloc((len + 1) * sizeof(wchar_t)); in substring()
292 wchar_t *new_path = PyMem_RawMalloc((len + 1) * sizeof(wchar_t)); in joinpath2()
389 wchar_t *pyc = PyMem_RawMalloc((len + 2) * sizeof(wchar_t)); in ismodule()
425 wchar_t *progpath2 = PyMem_RawMalloc((n + s + 1) * sizeof(wchar_t)); in add_exe_suffix()
1369 wchar_t *buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
Dreadline.c1406 p = PyMem_RawMalloc(1); in call_readline()
1434 p = PyMem_RawMalloc(n+2); in call_readline()
D_bz2module.c302 return PyMem_RawMalloc((size_t)items * (size_t)size); in BZ2_Malloc()
Doverlapped.c28 # define PyMem_RawMalloc PyMem_Malloc macro
344 pdata = PyMem_RawMalloc(sizeof(struct PostCallbackData)); in _overlapped_RegisterWaitWithQueue_impl()
D_posixsubprocess.c857 if ((groups = PyMem_RawMalloc(num_groups * sizeof(gid_t))) == NULL) { in subprocess_fork_exec()
D_lzmamodule.c176 return PyMem_RawMalloc(items * size); in PyLzma_Malloc()
Dzlibmodule.c289 return PyMem_RawMalloc((size_t)items * (size_t)size); in PyZlib_Malloc()
/third_party/python/Doc/c-api/
Dmemory.rst107 :c:func:`PyMem_RawMalloc` for allocating Python objects or the memory returned
142 .. c:function:: void* PyMem_RawMalloc(size_t n)
148 if ``PyMem_RawMalloc(1)`` had been called instead. The memory will not have
170 If *p* is ``NULL``, the call is equivalent to ``PyMem_RawMalloc(n)``; else if
175 :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
185 previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
378 Configuration Name PyMem_RawMalloc PyMem_Malloc P…
436 * :c:func:`PyMem_RawMalloc`
598 with a fixed size of 256 KiB. It falls back to :c:func:`PyMem_RawMalloc` and
Dveryhigh.rst180 The result must be a string allocated by :c:func:`PyMem_RawMalloc` or
184 The result must be allocated by :c:func:`PyMem_RawMalloc` or
/third_party/python/Modules/_xxtestfuzz/
Dfuzzer.c292 compiled_patterns = (PyObject**) PyMem_RawMalloc( in init_sre_match()
/third_party/python/Objects/
Dobmalloc.c562 PyMem_RawMalloc(size_t size) in PyMem_RawMalloc() function
644 wchar_t *str2 = PyMem_RawMalloc(size); in _PyMem_RawWcsdup()
658 char *copy = PyMem_RawMalloc(size); in _PyMem_RawStrdup()
1956 ptr = PyMem_RawMalloc(nbytes); in _PyObject_Malloc()

12