/external/python/cpython2/Include/ |
D | pymem.h | 92 #define PyMem_New(type, n) \ macro
|
/external/python/cpython3/Include/ |
D | pymem.h | 141 #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/cpython3/Modules/_ctypes/ |
D | stgdict.c | 415 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict() 435 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, len + 1); in PyCStructUnionType_update_stgdict()
|
D | _ctypes.c | 4423 dest = PyMem_New(wchar_t, slicelen); in Array_subscript() 5106 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 | 1553 evs = PyMem_New(struct epoll_event, maxevents); in pyepoll_poll() 2176 chl = PyMem_New(struct kevent, nchanges); in kqueue_queue_control() 2196 evl = PyMem_New(struct kevent, nevents); in kqueue_queue_control()
|
D | posixmodule.c | 3479 wnamebuf = PyMem_New(wchar_t, len + 5); in _listdir_windows_no_opendir() 3718 woutbufp = PyMem_New(wchar_t, result); in os__getfullpathname_impl() 3866 mountpath = PyMem_New(wchar_t, buflen); in os__getvolumepathname_impl() 6162 groups = PyMem_New(int, ngroups); in posix_getgrouplist() 6164 groups = PyMem_New(gid_t, ngroups); in posix_getgrouplist() 6252 alt_grouplist = PyMem_New(gid_t, n); in os_getgroups_impl() 6277 alt_grouplist = PyMem_New(gid_t, n); in os_getgroups_impl() 8064 *iov = PyMem_New(struct iovec, cnt); in iov_setup() 8070 *buf = PyMem_New(Py_buffer, cnt); in iov_setup() 11960 result = PyMem_New(wchar_t, size); in join_path_filenameW() [all …]
|
D | _localemodule.c | 356 buf = PyMem_New(wchar_t, n1); in PyLocale_strxfrm()
|
D | itertoolsmodule.c | 2082 indices = PyMem_New(Py_ssize_t, npools); in product_new() 2427 indices = PyMem_New(Py_ssize_t, r); in combinations_new() 2767 indices = PyMem_New(Py_ssize_t, r); in cwr_new() 3108 indices = PyMem_New(Py_ssize_t, n); in permutations_new() 3109 cycles = PyMem_New(Py_ssize_t, r); in permutations_new()
|
D | pyexpat.c | 968 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl() 1207 self->handlers = PyMem_New(PyObject *, i); in newxmlparseobject()
|
D | socketmodule.c | 3853 if (nitems > 0 && ((iovs = PyMem_New(struct iovec, nitems)) == NULL || in sock_recvmsg_into() 3854 (bufs = PyMem_New(Py_buffer, nitems)) == NULL)) { in sock_recvmsg_into() 4177 iovs = PyMem_New(struct iovec, ndataparts); in sock_sendmsg_iovec() 4184 databufs = PyMem_New(Py_buffer, ndataparts); in sock_sendmsg_iovec() 4278 if (ncmsgs > 0 && (cmsgs = PyMem_New(struct cmsginfo, ncmsgs)) == NULL) { 5164 name = PyMem_New(wchar_t, size);
|
D | zipimport.c | 262 p = buf = PyMem_New(Py_UCS4, len); in make_filename()
|
D | _sre.c | 412 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/PC/ |
D | winreg.c | 740 wchar_t **str = PyMem_New(wchar_t *, s); in Reg2Py() 1123 retValueBuf = PyMem_New(wchar_t, retValueSize); in winreg_EnumValue_impl() 1201 retValue = PyMem_New(wchar_t, retValueSize); in winreg_ExpandEnvironmentStrings_impl()
|
/external/python/cpython3/Doc/c-api/ |
D | memory.rst | 233 .. c:function:: TYPE* PyMem_New(TYPE, size_t n) 567 char *buf = PyMem_New(char, BUFSIZ); /* for I/O */ 573 PyMem_Del(buf); /* allocated with PyMem_New */ 583 char *buf1 = PyMem_New(char, BUFSIZ);
|
/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 | 169 unsigned int *blocks = PyMem_New(unsigned int, len); in markblocks()
|
/external/python/cpython3/Modules/_io/ |
D | winconsoleio.c | 107 pname_buf = PyMem_New(wchar_t, length); in _PyIO_get_console_type()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 763 inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize); in encoder_encode_stateful()
|