/third_party/python/Modules/ |
D | _xxsubinterpretersmodule.c | 94 _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 …]
|
D | selectmodule.c | 293 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()
|
D | unicodedata.c | 524 output = PyMem_NEW(Py_UCS4, space); in nfd_nfkd() 671 output = PyMem_NEW(Py_UCS4, len); in nfc_nfkc()
|
D | _tkinter.c | 2541 data = PyMem_NEW(PythonCmd_ClientData, 1); in _tkinter_tkapp_createcommand_impl() 2650 p = PyMem_NEW(FileHandler_ClientData, 1); in NewFHCD()
|
D | _threadmodule.c | 1145 struct bootstate *boot = PyMem_NEW(struct bootstate, 1); in thread_PyThread_start_new_thread()
|
D | _winapi.c | 857 buffer = PyMem_NEW(wchar_t, totalsize); in getenvironment()
|
D | _pickle.c | 763 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()
|
D | posixmodule.c | 5600 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()
|
D | arraymodule.c | 609 op->ob_item = PyMem_NEW(char, nbytes); in newarrayobject()
|
D | _testcapimodule.c | 2056 buffer = PyMem_NEW(Py_UCS4, buf_len); in unicode_asucs4()
|
/third_party/python/Include/ |
D | pymem.h | 86 #define PyMem_NEW(type, n) PyMem_New(type, n) macro
|
/third_party/python/PC/ |
D | winreg.c | 570 *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/ |
D | join.h | 46 buffers = PyMem_NEW(Py_buffer, seqlen); in STRINGLIB()
|
/third_party/python/Objects/ |
D | structseq.c | 498 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()
|
D | codeobject.c | 202 cell2arg = PyMem_NEW(Py_ssize_t, n_cellvars); in PyCode_NewWithPosOnlyArgs()
|
D | odictobject.c | 557 fast_nodes = PyMem_NEW(_ODictNode *, size); in _odict_resize()
|
D | setobject.c | 274 newtable = PyMem_NEW(setentry, newsize); in set_table_resize()
|
D | dictobject.c | 642 #define new_values(size) PyMem_NEW(PyObject *, size)
|
D | unicodeobject.c | 3364 buffer = (wchar_t *) PyMem_NEW(wchar_t, (buflen + 1)); in PyUnicode_AsWideCharString()
|
/third_party/python/Python/ |
D | getargs.c | 332 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()
|
D | pystate.c | 1821 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/ |
D | memory.rst | 293 * ``PyMem_NEW(type, size)``
|