Home
last modified time | relevance | path

Searched refs:PyMem_NEW (Results 1 – 25 of 46) sorted by relevance

12

/external/python/cpython2/Modules/
Dglmodule.c254 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) { in gl_nurbssurface()
261 if ((arg4 = PyMem_NEW(double, arg3 )) == NULL) { in gl_nurbssurface()
288 if ((arg5 = PyMem_NEW(double, s_nctl*t_nctl*ncoords )) == NULL) { in gl_nurbssurface()
336 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) { in gl_nurbscurve()
360 if ((arg4 = PyMem_NEW(double, npoints*ncoords )) == NULL) { in gl_nurbscurve()
404 if ((data = PyMem_NEW(double, npoints*ncoords)) == NULL) { in gl_pwlcurve()
435 if ((pickbuffer = PyMem_NEW(short, pickbuffersize)) == NULL) { in pick_select()
2905 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL) in gl_polf()
2925 if ((arg2 = (float(*)[2]) PyMem_NEW(float , 2 * arg1 )) == NULL) in gl_polf2()
2945 if ((arg2 = (float(*)[3]) PyMem_NEW(float , 3 * arg1 )) == NULL) in gl_poly()
[all …]
Dalmodule.c170 param->value.ptr = PyMem_NEW(int, param->sizeIn); in python2param()
176 param->value.ptr = PyMem_NEW(long long, param->sizeIn); in python2param()
216 pvs = PyMem_NEW(ALpv, npvs); in python2params()
217 pinfo = PyMem_NEW(ALparamInfo, npvs); in python2params()
1183 PVbuffer = PyMem_NEW(long, length); in alp_getstatus()
1426 pvs = PyMem_NEW(ALpv, npvs); in al_GetParams()
1427 pinfo = PyMem_NEW(ALparamInfo, npvs); in al_GetParams()
1452 pvs[i].value.ptr = PyMem_NEW(int, pinfo[i].maxElems); in al_GetParams()
1457 pvs[i].value.ptr = PyMem_NEW(long long, pinfo[i].maxElems); in al_GetParams()
1461 pvs[i].value.ptr = PyMem_NEW(char, 32); in al_GetParams()
[all …]
D_localemodule.c318 ws1 = PyMem_NEW(wchar_t, len1); in PyLocale_strcoll()
327 ws2 = PyMem_NEW(wchar_t, len2); in PyLocale_strcoll()
Dcstubs271 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
278 if ((arg4 = PyMem_NEW(double, arg3 )) == NULL) {
305 if ((arg5 = PyMem_NEW(double, s_nctl*t_nctl*ncoords )) == NULL) {
356 if ((arg2 = PyMem_NEW(double, arg1 )) == NULL) {
380 if ((arg4 = PyMem_NEW(double, npoints*ncoords )) == NULL) {
427 if ((data = PyMem_NEW(double, npoints*ncoords)) == NULL) {
460 if ((pickbuffer = PyMem_NEW(short, pickbuffersize)) == NULL) {
Dsvmodule.c672 if (!(mapp = PyMem_NEW(rgb_tuple, 256))) in sv_LoadMap()
751 PVbuffer = PyMem_NEW(long, length); in doParams()
Dselectmodule.c240 rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
241 wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
242 efd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
Dsunaudiodev.c84 ctldev = PyMem_NEW(char, strlen(basedev) + 4); in newsadobject()
Dposixmodule.c3191 argvlist = PyMem_NEW(char *, argc+1); in posix_execv()
3267 argvlist = PyMem_NEW(char *, argc+1); in posix_execve()
3288 envlist = PyMem_NEW(char *, i + 1); in posix_execve()
3336 p = PyMem_NEW(char, len); in posix_execve()
3412 argvlist = PyMem_NEW(char *, argc+1); in posix_spawnv()
3508 argvlist = PyMem_NEW(char *, argc+1); in posix_spawnve()
3529 envlist = PyMem_NEW(char *, i + 1); in posix_spawnve()
3572 p = PyMem_NEW(char, len); in posix_spawnve()
3660 argvlist = PyMem_NEW(char *, argc+1); in posix_spawnvp()
3747 argvlist = PyMem_NEW(char *, argc+1); in posix_spawnvpe()
[all …]
Dclmodule.c71 self->ob_paramtypes = PyMem_NEW(int, bufferlength); in param_type_is_float()
325 PVbuffer = PyMem_NEW(int, length); in doParams()
492 PVbuffer = PyMem_NEW(int, bufferlength); in clm_QueryParams()
753 PVbuffer = PyMem_NEW(int, bufferlength); in cl_QueryAlgorithms()
Dthreadmodule.c678 boot = PyMem_NEW(struct bootstate, 1); in thread_PyThread_start_new_thread()
/external/python/cpython2/Include/
Dpymem.h95 #define PyMem_NEW(type, n) \ macro
/external/python/cpython3/PC/
Dwinreg.c551 *retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1); in Py2Reg()
569 *retDataBuf = (BYTE *)PyMem_NEW(DWORD64, 1); in Py2Reg()
599 *retDataBuf = (BYTE *)PyMem_NEW(wchar_t, 1); in Py2Reg()
638 *retDataBuf = (BYTE *)PyMem_NEW(char, in Py2Reg()
685 *retDataBuf = (BYTE *)PyMem_NEW(char, view.len); in Py2Reg()
/external/python/cpython3/Include/
Dpymem.h144 #define PyMem_NEW(type, n) \ macro
/external/python/cpython3/Objects/stringlib/
Djoin.h43 buffers = PyMem_NEW(Py_buffer, seqlen); in STRINGLIB()
/external/python/cpython2/PC/
D_winreg.c758 *retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1); in Py2Reg()
795 *retDataBuf = (BYTE *)PyMem_NEW(DWORD, *retDataSize); in Py2Reg()
848 *retDataBuf = (BYTE *)PyMem_NEW(char, in Py2Reg()
903 *retDataBuf = (BYTE *)PyMem_NEW(char, *retDataSize); in Py2Reg()
/external/python/cpython3/Python/
Dgetargs.c331 freelist.entries = PyMem_NEW(freelistentry_t, max); in vgetargs1_impl()
1189 *buffer = PyMem_NEW(char, size + 1); in convertsimple()
1233 *buffer = PyMem_NEW(char, size + 1); in convertsimple()
1648 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywords()
2066 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywordsfast_impl()
/external/python/cpython3/Modules/
Dselectmodule.c235 rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
236 wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
237 efd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
1091 fds = PyMem_NEW(struct pollfd, limit.rlim_cur); in newDevPollObject()
Dunicodedata.c511 output = PyMem_NEW(Py_UCS4, space); in nfd_nfkd()
658 output = PyMem_NEW(Py_UCS4, len); in nfc_nfkc()
D_threadmodule.c1051 boot = PyMem_NEW(struct bootstate, 1); in thread_PyThread_start_new_thread()
/external/python/cpython3/Objects/
Dstructseq.c358 members = PyMem_NEW(PyMemberDef, n_members-n_unnamed_members+1); in PyStructSequence_InitType2()
Dcodeobject.c158 cell2arg = PyMem_NEW(Py_ssize_t, n_cellvars); in PyCode_New()
/external/python/cpython2/Objects/
Dstructseq.c504 members = PyMem_NEW(PyMemberDef, n_members-n_unnamed_members+1); in PyStructSequence_InitType()
/external/python/cpython2/Python/
Dgetargs.c1133 *buffer = PyMem_NEW(char, size + 1); in convertsimple()
1181 *buffer = PyMem_NEW(char, size + 1); in convertsimple()
/external/python/cpython2/Misc/NEWS.d/
D2.6b3.rst124 PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been
/external/python/cpython2/Mac/Modules/
DNav.c150 if ( (defaultLocation_storage = PyMem_NEW(AEDesc, 1)) == NULL ) { in filldialogoptions()

12