Home
last modified time | relevance | path

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

/external/python/cpython2/Include/
Dpymem.h92 #define PyMem_New(type, n) \ macro
/external/python/cpython2/Doc/c-api/
Dmemory.rst128 .. c:function:: TYPE* PyMem_New(TYPE, size_t n)
179 char *buf = PyMem_New(char, BUFSIZ); /* for I/O */
185 PyMem_Del(buf); /* allocated with PyMem_New */
195 char *buf1 = PyMem_New(char, BUFSIZ);
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c391 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict()
411 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, len + 1); in PyCStructUnionType_update_stgdict()
D_ctypes.c4486 dest = PyMem_New(wchar_t, slicelen); in Array_subscript()
5270 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/cpython2/Modules/
Dselectmodule.c1026 evs = PyMem_New(struct epoll_event, maxevents); in pyepoll_poll()
1607 chl = PyMem_New(struct kevent, nchanges); in kqueue_queue_control()
1630 evl = PyMem_New(struct kevent, nevents); in kqueue_queue_control()
Ditertoolsmodule.c1854 indices = PyMem_New(Py_ssize_t, npools); in product_new()
2101 indices = PyMem_New(Py_ssize_t, r); in combinations_new()
2350 indices = PyMem_New(Py_ssize_t, r); in cwr_new()
2603 indices = PyMem_New(Py_ssize_t, n); in permutations_new()
2604 cycles = PyMem_New(Py_ssize_t, r); in permutations_new()
D_ssl.c4012 _ssl_locks = PyMem_New(PyThread_type_lock, _ssl_locks_count); in _setup_ssl_threads()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c765 inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize); in encoder_encode_stateful()
/external/python/cpython2/Doc/whatsnew/
D2.1.rst706 example, if memory was allocated using :func:`PyMem_New`, it has to be freed