Home
last modified time | relevance | path

Searched refs:PyMem_NEW (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Modules/
D_xxsubinterpretersmodule.c94 _sharedns *shared = PyMem_NEW(_sharedns, 1); in _sharedns_new()
100 shared->items = PyMem_NEW(struct _sharednsitem, len); in _sharedns_new()
175 _sharedexception *err = PyMem_NEW(_sharedexception, 1); in _sharedexception_new()
362 _channelitem *item = PyMem_NEW(_channelitem, 1); in _channelitem_new()
418 _channelqueue *queue = PyMem_NEW(_channelqueue, 1); in _channelqueue_new()
494 _channelend *end = PyMem_NEW(_channelend, 1); in _channelend_new()
553 _channelends *ends = PyMem_NEW(_channelends, 1); in _channelends_new()
722 _PyChannelState *chan = PyMem_NEW(_PyChannelState, 1); in _channel_new()
879 _channelref *ref = PyMem_NEW(_channelref, 1); in _channelref_new()
1182 int64_t *ids = PyMem_NEW(int64_t, (Py_ssize_t)(channels->numopen)); in _channels_list_all()
[all …]
Dselectmodule.c293 rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select_impl()
294 wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select_impl()
295 efd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select_impl()
1092 fds = PyMem_NEW(struct pollfd, limit.rlim_cur); in newDevPollObject()
Dunicodedata.c524 output = PyMem_NEW(Py_UCS4, space); in nfd_nfkd()
671 output = PyMem_NEW(Py_UCS4, len); in nfc_nfkc()
D_tkinter.c2541 data = PyMem_NEW(PythonCmd_ClientData, 1); in _tkinter_tkapp_createcommand_impl()
2650 p = PyMem_NEW(FileHandler_ClientData, 1); in NewFHCD()
D_threadmodule.c1145 struct bootstate *boot = PyMem_NEW(struct bootstate, 1); in thread_PyThread_start_new_thread()
D_winapi.c857 buffer = PyMem_NEW(wchar_t, totalsize); in getenvironment()
D_pickle.c763 new->mt_table = PyMem_NEW(PyMemoEntry, self->mt_allocated); in PyMemoTable_Copy()
859 self->mt_table = PyMem_NEW(PyMemoEntry, new_size); in _PyMemoTable_ResizeTable()
1563 PyObject **memo = PyMem_NEW(PyObject *, new_size); in _Unpickler_NewMemo()
Dposixmodule.c5600 envlist = PyMem_NEW(EXECV_CHAR *, i + 1); in parse_envlist()
5690 EXECV_CHAR **argvlist = PyMem_NEW(EXECV_CHAR *, *argc+1); in parse_arglist()
6429 argvlist = PyMem_NEW(EXECV_CHAR *, argc+1); in os_spawnv_impl()
6540 argvlist = PyMem_NEW(EXECV_CHAR *, argc+1); in os_spawnve_impl()
Darraymodule.c609 op->ob_item = PyMem_NEW(char, nbytes); in newarrayobject()
D_testcapimodule.c2056 buffer = PyMem_NEW(Py_UCS4, buf_len); in unicode_asucs4()
/third_party/python/Include/
Dpymem.h86 #define PyMem_NEW(type, n) PyMem_New(type, n) macro
/third_party/python/PC/
Dwinreg.c570 *retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1); in Py2Reg()
588 *retDataBuf = (BYTE *)PyMem_NEW(DWORD64, 1); in Py2Reg()
618 *retDataBuf = (BYTE *)PyMem_NEW(wchar_t, 1); in Py2Reg()
666 *retDataBuf = (BYTE *)PyMem_NEW(char, in Py2Reg()
713 *retDataBuf = (BYTE *)PyMem_NEW(char, view.len); in Py2Reg()
/third_party/python/Objects/stringlib/
Djoin.h46 buffers = PyMem_NEW(Py_buffer, seqlen); in STRINGLIB()
/third_party/python/Objects/
Dstructseq.c498 members = PyMem_NEW(PyMemberDef, n_members - n_unnamed_members + 1); in _PyStructSequence_InitType()
545 members = PyMem_NEW(PyMemberDef, n_members - n_unnamed_members + 1); in PyStructSequence_NewType()
Dcodeobject.c202 cell2arg = PyMem_NEW(Py_ssize_t, n_cellvars); in PyCode_NewWithPosOnlyArgs()
Dodictobject.c557 fast_nodes = PyMem_NEW(_ODictNode *, size); in _odict_resize()
Dsetobject.c274 newtable = PyMem_NEW(setentry, newsize); in set_table_resize()
Ddictobject.c642 #define new_values(size) PyMem_NEW(PyObject *, size)
Dunicodeobject.c3364 buffer = (wchar_t *) PyMem_NEW(wchar_t, (buflen + 1)); in PyUnicode_AsWideCharString()
/third_party/python/Python/
Dgetargs.c332 freelist.entries = PyMem_NEW(freelistentry_t, max); in vgetargs1_impl()
1165 *buffer = PyMem_NEW(char, size + 1); in convertsimple()
1211 *buffer = PyMem_NEW(char, size + 1); in convertsimple()
1624 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywords()
2051 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywordsfast_impl()
Dpystate.c1821 struct _shared_bytes_data *shared = PyMem_NEW(struct _shared_bytes_data, 1); in _bytes_shared()
1849 struct _shared_str_data *shared = PyMem_NEW(struct _shared_str_data, 1); in _str_shared()
/third_party/python/Doc/c-api/
Dmemory.rst293 * ``PyMem_NEW(type, size)``