/external/python/cpython2/Include/ |
D | pymem.h | 92 #define PyMem_New(type, n) \ macro
|
/external/python/cpython3/Include/ |
D | pymem.h | 78 #define PyMem_New(type, n) \ macro
|
/external/python/cpython2/Doc/c-api/ |
D | memory.rst | 128 .. c:function:: TYPE* PyMem_New(TYPE, size_t n) 261 char *buf = PyMem_New(char, BUFSIZ); /* for I/O */ 267 PyMem_Del(buf); /* allocated with PyMem_New */ 277 char *buf1 = PyMem_New(char, BUFSIZ);
|
/external/python/cpython2/Modules/_ctypes/ |
D | stgdict.c | 399 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict() 419 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, len + 1); in PyCStructUnionType_update_stgdict()
|
D | _ctypes.c | 4582 dest = PyMem_New(wchar_t, slicelen); in Array_subscript() 5365 dest = PyMem_New(wchar_t, len); in Pointer_subscript()
|
/external/python/cpython2/Python/ |
D | peephole.c | 245 unsigned int *blocks = PyMem_New(unsigned int, len); in markblocks() 346 addrmap = PyMem_New(int, codelen); in PyCode_Optimize()
|
/external/python/cpython3/Modules/ |
D | atexitmodule.c | 324 modstate->atexit_callbacks = PyMem_New(atexit_callback*, in atexit_exec()
|
D | selectmodule.c | 1549 evs = PyMem_New(struct epoll_event, maxevents); in select_epoll_poll_impl() 2102 chl = PyMem_New(struct kevent, nchanges); in select_kqueue_control_impl() 2122 evl = PyMem_New(struct kevent, maxevents); in select_kqueue_control_impl()
|
D | posixmodule.c | 3619 wnamebuf = PyMem_New(wchar_t, len + 5); in _listdir_windows_no_opendir() 3862 woutbufp = PyMem_New(wchar_t, result); in os__getfullpathname_impl() 3983 mountpath = PyMem_New(wchar_t, buflen); in os__getvolumepathname_impl() 6810 groups = PyMem_New(int, ngroups); in posix_getgrouplist() 6812 groups = PyMem_New(gid_t, ngroups); in posix_getgrouplist() 6893 alt_grouplist = PyMem_New(gid_t, n); in os_getgroups_impl() 6918 alt_grouplist = PyMem_New(gid_t, n); in os_getgroups_impl() 8717 *iov = PyMem_New(struct iovec, cnt); in iov_setup() 8723 *buf = PyMem_New(Py_buffer, cnt); in iov_setup() 10455 dir_path = PyMem_New(wchar_t, path->length + 1); in os__getdiskusage_impl() [all …]
|
D | _localemodule.c | 354 buf = PyMem_New(wchar_t, n1); in PyLocale_strxfrm()
|
D | itertoolsmodule.c | 2142 indices = PyMem_New(Py_ssize_t, npools); in product_new() 2488 indices = PyMem_New(Py_ssize_t, r); in itertools_combinations_impl() 2822 indices = PyMem_New(Py_ssize_t, r); in itertools_combinations_with_replacement_impl() 3156 indices = PyMem_New(Py_ssize_t, n); in itertools_permutations_impl() 3157 cycles = PyMem_New(Py_ssize_t, r); in itertools_permutations_impl()
|
D | pyexpat.c | 961 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl() 1148 self->handlers = PyMem_New(PyObject *, i); in newxmlparseobject()
|
D | socketmodule.c | 4010 if (nitems > 0 && ((iovs = PyMem_New(struct iovec, nitems)) == NULL || in sock_recvmsg_into() 4011 (bufs = PyMem_New(Py_buffer, nitems)) == NULL)) { in sock_recvmsg_into() 4338 iovs = PyMem_New(struct iovec, ndataparts); in sock_sendmsg_iovec() 4345 databufs = PyMem_New(Py_buffer, ndataparts); in sock_sendmsg_iovec() 4449 if (ncmsgs > 0 && (cmsgs = PyMem_New(struct cmsginfo, ncmsgs)) == NULL) { 5364 name = PyMem_New(wchar_t, size);
|
D | _sre.c | 405 state->mark = PyMem_New(void *, pattern->groups * 2); in state_init()
|
D | _testbuffer.c | 854 dest = PyMem_New(Py_ssize_t, len); in seq_as_ssize_array()
|
/external/python/cpython3/Modules/_ctypes/ |
D | stgdict.c | 456 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict() 476 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, len + 1); in PyCStructUnionType_update_stgdict()
|
D | _ctypes.c | 4648 dest = PyMem_New(wchar_t, slicelen); in Array_subscript() 5336 dest = PyMem_New(wchar_t, len); in Pointer_subscript()
|
/external/python/cpython3/Doc/c-api/ |
D | memory.rst | 233 .. c:function:: TYPE* PyMem_New(TYPE, size_t n) 574 char *buf = PyMem_New(char, BUFSIZ); /* for I/O */ 580 PyMem_Del(buf); /* allocated with PyMem_New */ 590 char *buf1 = PyMem_New(char, BUFSIZ);
|
/external/python/cpython3/PC/ |
D | winreg.c | 758 wchar_t **str = PyMem_New(wchar_t *, s); in Reg2Py() 1180 retValueBuf = PyMem_New(wchar_t, retValueSize); in winreg_EnumValue_impl() 1263 retValue = PyMem_New(wchar_t, retValueSize); in winreg_ExpandEnvironmentStrings_impl()
|
/external/python/cpython2/Modules/ |
D | selectmodule.c | 1037 evs = PyMem_New(struct epoll_event, maxevents); in pyepoll_poll() 1657 chl = PyMem_New(struct kevent, nchanges); in kqueue_queue_control() 1677 evl = PyMem_New(struct kevent, nevents); in kqueue_queue_control()
|
D | itertoolsmodule.c | 1844 indices = PyMem_New(Py_ssize_t, npools); in product_new() 2091 indices = PyMem_New(Py_ssize_t, r); in combinations_new() 2340 indices = PyMem_New(Py_ssize_t, r); in cwr_new() 2593 indices = PyMem_New(Py_ssize_t, n); in permutations_new() 2594 cycles = PyMem_New(Py_ssize_t, r); in permutations_new()
|
/external/python/cpython3/Python/ |
D | peephole.c | 178 unsigned int *blocks = PyMem_New(unsigned int, len); in markblocks()
|
/external/python/cpython3/Modules/_io/ |
D | winconsoleio.c | 108 pname_buf = PyMem_New(wchar_t, length); in _PyIO_get_console_type()
|
/external/python/cpython3/Objects/ |
D | listobject.c | 87 PyObject **items = PyMem_New(PyObject*, size); in list_preallocate_exact() 209 op->ob_item = PyMem_New(PyObject *, size); in list_new_prealloc()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 763 inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize); in encoder_encode_stateful()
|