Searched refs:PyMem_New (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Include/ |
D | pymem.h | 92 #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) 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/ |
D | stgdict.c | 391 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.c | 4486 dest = PyMem_New(wchar_t, slicelen); in Array_subscript() 5270 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/cpython2/Modules/ |
D | selectmodule.c | 1026 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()
|
D | itertoolsmodule.c | 1854 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.c | 4012 _ssl_locks = PyMem_New(PyThread_type_lock, _ssl_locks_count); in _setup_ssl_threads()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 765 inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize); in encoder_encode_stateful()
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.1.rst | 706 example, if memory was allocated using :func:`PyMem_New`, it has to be freed
|