Home
last modified time | relevance | path

Searched refs:PyMem_New (Results 1 – 25 of 33) sorted by relevance

12

/external/python/cpython2/Include/
Dpymem.h92 #define PyMem_New(type, n) \ macro
/external/python/cpython3/Include/
Dpymem.h78 #define PyMem_New(type, n) \ macro
/external/python/cpython2/Doc/c-api/
Dmemory.rst128 .. 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/
Dstgdict.c399 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.c4582 dest = PyMem_New(wchar_t, slicelen); in Array_subscript()
5365 dest = PyMem_New(wchar_t, len); in Pointer_subscript()
/external/python/cpython2/Python/
Dpeephole.c245 unsigned int *blocks = PyMem_New(unsigned int, len); in markblocks()
346 addrmap = PyMem_New(int, codelen); in PyCode_Optimize()
/external/python/cpython3/Modules/
Datexitmodule.c324 modstate->atexit_callbacks = PyMem_New(atexit_callback*, in atexit_exec()
Dselectmodule.c1549 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()
Dposixmodule.c3619 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.c354 buf = PyMem_New(wchar_t, n1); in PyLocale_strxfrm()
Ditertoolsmodule.c2142 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()
Dpyexpat.c961 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
1148 self->handlers = PyMem_New(PyObject *, i); in newxmlparseobject()
Dsocketmodule.c4010 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.c405 state->mark = PyMem_New(void *, pattern->groups * 2); in state_init()
D_testbuffer.c854 dest = PyMem_New(Py_ssize_t, len); in seq_as_ssize_array()
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c456 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.c4648 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/
Dmemory.rst233 .. 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/
Dwinreg.c758 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/
Dselectmodule.c1037 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()
Ditertoolsmodule.c1844 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/
Dpeephole.c178 unsigned int *blocks = PyMem_New(unsigned int, len); in markblocks()
/external/python/cpython3/Modules/_io/
Dwinconsoleio.c108 pname_buf = PyMem_New(wchar_t, length); in _PyIO_get_console_type()
/external/python/cpython3/Objects/
Dlistobject.c87 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/
Dmultibytecodec.c763 inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize); in encoder_encode_stateful()

12