Home
last modified time | relevance | path

Searched refs:PyMem_New (Results 1 - 21 of 21) sorted by relevance

/third_party/python/Include/
H A Dpymem.h67 #define PyMem_New(type, n) \ macro
86 #define PyMem_NEW(type, n) PyMem_New(type, n)
/third_party/python/Modules/
H A Datexitmodule.c63 state->callbacks = PyMem_New(atexit_callback*, state->callback_len); in _PyAtExit_Init()
H A D_localemodule.c410 buf = PyMem_New(wchar_t, n1); in _locale_strxfrm_impl()
H A Dselectmodule.c1588 evs = PyMem_New(struct epoll_event, maxevents); in select_epoll_poll_impl()
2168 chl = PyMem_New(struct kevent, nchanges); in select_kqueue_control_impl()
2189 evl = PyMem_New(struct kevent, maxevents); in select_kqueue_control_impl()
H A Dposixmodule.c4059 wnamebuf = PyMem_New(wchar_t, len + 5); in _listdir_windows_no_opendir()
4466 mountpath = PyMem_New(wchar_t, buflen); in os__getvolumepathname_impl()
7684 groups = PyMem_New(int, ngroups); in os_getgrouplist_impl()
7686 groups = PyMem_New(gid_t, ngroups); in os_getgrouplist_impl()
7771 gid_t *grouplist = PyMem_New(gid_t, n); in os_getgroups_impl()
8326 gid_t *grouplist = PyMem_New(gid_t, len); in os_setgroups()
9647 *iov = PyMem_New(struct iovec, cnt); in iov_setup()
9653 *buf = PyMem_New(Py_buffer, cnt); in iov_setup()
11564 dir_path = PyMem_New(wchar_t, path->length + 1); in os__getdiskusage_impl()
14027 result = PyMem_New(wchar_ in join_path_filenameW()
[all...]
H A Ditertoolsmodule.c2266 indices = PyMem_New(Py_ssize_t, npools); in product_new()
2615 indices = PyMem_New(Py_ssize_t, r); in itertools_combinations_impl()
2952 indices = PyMem_New(Py_ssize_t, r); in itertools_combinations_with_replacement_impl()
3292 indices = PyMem_New(Py_ssize_t, n); in itertools_permutations_impl()
3293 cycles = PyMem_New(Py_ssize_t, r); in itertools_permutations_impl()
H A Dsocketmodule.c4102 if (nitems > 0 && ((iovs = PyMem_New(struct iovec, nitems)) == NULL || in sock_recvmsg_into()
4103 (bufs = PyMem_New(Py_buffer, nitems)) == NULL)) { in sock_recvmsg_into()
4432 iovs = PyMem_New(struct iovec, ndataparts); in sock_sendmsg_iovec()
4439 databufs = PyMem_New(Py_buffer, ndataparts); in sock_sendmsg_iovec()
4543 if (ncmsgs > 0 && (cmsgs = PyMem_New(struct cmsginfo, ncmsgs)) == NULL) {
5489 name = PyMem_New(wchar_t, size);
H A Dpyexpat.c983 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
1175 self->handlers = PyMem_New(PyObject *, i); in newxmlparseobject()
H A D_testcapimodule.c1211 spec = PyMem_New(PyType_Spec, 1); in test_type_from_ephemeral_spec()
1216 name = PyMem_New(char, sizeof(NAME)); in test_type_from_ephemeral_spec()
1223 doc = PyMem_New(char, sizeof(DOC)); in test_type_from_ephemeral_spec()
1234 slots = PyMem_New(PyType_Slot, 3); in test_type_from_ephemeral_spec()
2195 buffer = PyMem_New(wchar_t, buflen); in unicode_aswidechar()
H A D_testbuffer.c853 /* ndim = len <= ND_MAX_NDIM, so PyMem_New() is actually not needed. */ in seq_as_ssize_array()
854 dest = PyMem_New(Py_ssize_t, len); in seq_as_ssize_array()
H A D_elementtree.c2296 it->parent_stack = PyMem_New(ParentLocator, INIT_PARENT_STACK_SIZE); in create_elementiter()
/third_party/python/Modules/_ctypes/
H A Dstgdict.c469 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict()
489 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, len + 1); in PyCStructUnionType_update_stgdict()
H A D_ctypes.c4665 dest = PyMem_New(wchar_t, slicelen); in Array_subscript()
5358 dest = PyMem_New(wchar_t, len); in Pointer_subscript()
/third_party/python/PC/
H A Dwinreg.c780 wchar_t **str = PyMem_New(wchar_t *, s); in Reg2Py()
1190 retValueBuf = PyMem_New(wchar_t, retValueSize); in winreg_EnumValue_impl()
1273 retValue = PyMem_New(wchar_t, retValueSize); in winreg_ExpandEnvironmentStrings_impl()
/third_party/python/Objects/
H A Dframeobject.c284 int64_t *stacks = PyMem_New(int64_t, len+1); in mark_stacks()
557 int *linestarts = PyMem_New(int, len); in marklines()
H A Dlistobject.c109 PyObject **items = PyMem_New(PyObject*, size); in list_preallocate_exact()
209 op->ob_item = PyMem_New(PyObject *, size); in list_new_prealloc()
H A Dtypeobject.c1860 remain = PyMem_New(int, to_merge_size); in pmerge()
1974 PyObject **to_merge = PyMem_New(PyObject *, n + 1); in mro_implementation()
H A Dunicodeobject.c2611 result = PyMem_New(Py_UCS2, len); in unicode_askind()
2622 result = PyMem_New(Py_UCS4, len); in unicode_askind()
2663 target = PyMem_New(Py_UCS4, targetlen); in as_ucs4()
/third_party/python/Modules/_io/
H A Dwinconsoleio.c106 pname_buf = PyMem_New(wchar_t, length); in _PyIO_get_console_type()
/third_party/python/Modules/_sre/
H A Dsre.c422 state->mark = PyMem_New(const void *, pattern->groups * 2); in state_init()
/third_party/python/Python/
H A Dcompile.c8135 int *fixed = PyMem_New(int, noffsets); in build_cellfixedoffsets()

Completed in 123 milliseconds