Searched refs:PyMem_RawMalloc (Results 1 – 25 of 33) sorted by relevance
12
168 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()266 wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)); in PyOS_StdioReadline()
34 argv_copy = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()35 argv_copy2 = PyMem_RawMalloc(sizeof(wchar_t*) * argc); in Py_FrozenMain()
259 result = PyMem_RawMalloc(len + 1); in encode_ascii()333 res = PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_ascii()399 res = (wchar_t *)PyMem_RawMalloc((argsize + 1) * sizeof(wchar_t)); in decode_current_locale()433 res = (wchar_t*)PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_current_locale()677 result = PyMem_RawMalloc(size); in encode_current_locale()1805 woutbufp = PyMem_RawMalloc((size_t)result * sizeof(wchar_t)); in _Py_abspath()1846 *abspath_p = PyMem_RawMalloc(len * sizeof(wchar_t)); in _Py_abspath()
120 Py_tss_t *new_key = (Py_tss_t *)PyMem_RawMalloc(sizeof(Py_tss_t)); in PyThread_tss_alloc()
275 pythread_callback *callback = PyMem_RawMalloc(sizeof(pythread_callback)); in PyThread_start_new_thread()380 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock()
123 wchar_t *text = PyMem_RawMalloc(len * sizeof(wchar_t)); in _PyWideStringList_Join()213 wchar_t *path = PyMem_RawMalloc((path_len + 1) * sizeof(wchar_t)); in config_init_module_search_paths()
38 PNRMUTEX m = (PNRMUTEX)PyMem_RawMalloc(sizeof(NRMUTEX)); in AllocNonRecursiveMutex()
82 wargv.items = (wchar_t **)PyMem_RawMalloc(size); in _PyArgv_AsWstrList()
570 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate()1598 struct _xidregitem *newhead = PyMem_RawMalloc(sizeof(struct _xidregitem)); in _register_xidata()
389 e = (_Py_AuditHookEntry*)PyMem_RawMalloc(sizeof(_Py_AuditHookEntry)); in PySys_AddAuditHook()395 e = e->next = (_Py_AuditHookEntry*)PyMem_RawMalloc( in PySys_AddAuditHook()1522 (verblock = PyMem_RawMalloc(verblock_size))) { in sys_getwindowsversion_impl()
325 copy.items = PyMem_RawMalloc(size); in _PyWideStringList_Copy()1991 wchar_t *command = PyMem_RawMalloc(sizeof(wchar_t) * len); in config_parse_cmdline()
361 keyBuf = keyBufPtr = PyMem_RawMalloc(keyBufLen); in getpythonregpath()420 ppPaths[index] = PyMem_RawMalloc(reqdSize); in getpythonregpath()437 dataBuf = PyMem_RawMalloc((dataSize+1) * sizeof(WCHAR)); in getpythonregpath()511 pathconfig->base_executable = PyMem_RawMalloc( in get_program_full_path()531 pathconfig->program_full_path = PyMem_RawMalloc( in get_program_full_path()569 buf = (wchar_t*)PyMem_RawMalloc(bufsiz * sizeof(wchar_t)); in read_pth_file()603 wchar_t *wline = (wchar_t*)PyMem_RawMalloc((wn + 1) * sizeof(wchar_t)); in read_pth_file()835 buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
9 PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
110 .. c:function:: void* PyMem_RawMalloc(size_t n)116 if ``PyMem_RawMalloc(1)`` had been called instead. The memory will not have138 If *p* is ``NULL``, the call is equivalent to ``PyMem_RawMalloc(n)``; else if143 :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or153 previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or340 Configuration Name PyMem_RawMalloc PyMem_Malloc P…395 * :c:func:`PyMem_RawMalloc`489 with a fixed size of 256 KiB. It falls back to :c:func:`PyMem_RawMalloc` and
181 The result must be a string allocated by :c:func:`PyMem_RawMalloc` or185 The result must be allocated by :c:func:`PyMem_RawMalloc` or
168 *ptr = PyMem_RawMalloc(size);313 Python memory allocation functions like :c:func:`PyMem_RawMalloc` must not be
267 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()1373 wchar_t *buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t)); in calculate_module_search_path()
1291 p = PyMem_RawMalloc(1); in call_readline()1319 p = PyMem_RawMalloc(n+2); in call_readline()
274 return PyMem_RawMalloc((size_t)items * (size_t)size); in BZ2_Malloc()
773 if ((groups = PyMem_RawMalloc(num_groups * sizeof(gid_t))) == NULL) { in subprocess_fork_exec()
28 # define PyMem_RawMalloc PyMem_Malloc macro291 pdata = PyMem_RawMalloc(sizeof(struct PostCallbackData)); in overlapped_RegisterWaitWithQueue()
114 return PyMem_RawMalloc(items * size); in PyLzma_Malloc()
136 return PyMem_RawMalloc((size_t)items * (size_t)size); in PyZlib_Malloc()
292 compiled_patterns = (PyObject**) PyMem_RawMalloc( in init_sre_match()
562 PyMem_RawMalloc(size_t size) in PyMem_RawMalloc() function644 wchar_t *str2 = PyMem_RawMalloc(size); in _PyMem_RawWcsdup()658 char *copy = PyMem_RawMalloc(size); in _PyMem_RawStrdup()1645 ptr = PyMem_RawMalloc(nbytes); in _PyObject_Malloc()