Home
last modified time | relevance | path

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

12

/external/python/cpython2/Include/
Dpymem.h92 #define PyMem_New(type, n) \ macro
/external/python/cpython3/Include/
Dpymem.h141 #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/cpython3/Modules/_ctypes/
Dstgdict.c415 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.c4423 dest = PyMem_New(wchar_t, slicelen); in Array_subscript()
5106 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.c1553 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()
Dposixmodule.c3479 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.c356 buf = PyMem_New(wchar_t, n1); in PyLocale_strxfrm()
Ditertoolsmodule.c2082 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()
Dpyexpat.c968 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
1207 self->handlers = PyMem_New(PyObject *, i); in newxmlparseobject()
Dsocketmodule.c3853 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);
Dzipimport.c262 p = buf = PyMem_New(Py_UCS4, len); in make_filename()
D_sre.c412 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/PC/
Dwinreg.c740 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/
Dmemory.rst233 .. 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/
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.c169 unsigned int *blocks = PyMem_New(unsigned int, len); in markblocks()
/external/python/cpython3/Modules/_io/
Dwinconsoleio.c107 pname_buf = PyMem_New(wchar_t, length); in _PyIO_get_console_type()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c763 inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize); in encoder_encode_stateful()

12