/external/python/cpython2/Include/ |
D | pymem.h | 62 #define PyMem_MALLOC _PyMem_DebugMalloc macro 74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ macro 97 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
|
D | objimpl.h | 132 #define PyObject_MALLOC PyMem_MALLOC
|
/external/python/cpython3/Include/ |
D | pymem.h | 64 #define PyMem_MALLOC(n) PyMem_Malloc(n) macro 83 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
|
/external/python/cpython3/Parser/ |
D | tokenizer.c | 57 struct tok_state *tok = (struct tok_state *)PyMem_MALLOC( in tok_new() 97 char* result = (char *)PyMem_MALLOC(len + 1); in new_string() 622 buf = PyMem_MALLOC(needed_length); in translate_newlines() 756 tok->encoding = (char *)PyMem_MALLOC(6); in PyTokenizer_FromUTF8() 777 if ((tok->buf = (char *)PyMem_MALLOC(BUFSIZ)) == NULL) { in PyTokenizer_FromFile() 789 tok->encoding = PyMem_MALLOC(strlen(enc)+1); in PyTokenizer_FromFile() 868 newtok = PyMem_MALLOC(buflen+1); in tok_nextc() 926 PyMem_MALLOC(BUFSIZ); in tok_nextc() 1828 encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1); in PyTokenizer_FindEncodingFilename()
|
D | parser.c | 78 ps = (parser_state *)PyMem_MALLOC(sizeof(parser_state)); in PyParser_New()
|
/external/python/cpython3/Python/ |
D | mysnprintf.c | 77 buffer = PyMem_MALLOC(size + _PyOS_vsnprintf_EXTRA_SPACE); in PyOS_vsnprintf()
|
D | pystrtod.c | 257 copy = (char *)PyMem_MALLOC(end - digits_pos + in _PyOS_ascii_strtod()
|
D | marshal.c | 666 p->buf = PyMem_MALLOC(n); in r_string() 1523 char* pBuf = (char *)PyMem_MALLOC(filesize); in PyMarshal_ReadLastObjectFromFile()
|
/external/python/cpython2/Python/ |
D | mysnprintf.c | 78 buffer = PyMem_MALLOC(size + _PyOS_vsnprintf_EXTRA_SPACE); in PyOS_vsnprintf()
|
D | import.c | 1108 buf = PyMem_MALLOC(MAXPATHLEN+1); in load_source_module() 1194 buf = PyMem_MALLOC(MAXPATHLEN+1); in load_package() 1362 name = PyMem_MALLOC(MAXPATHLEN+1); in find_module() 2260 buf = PyMem_MALLOC(MAXPATHLEN+1); in import_module_level() 2731 buf = PyMem_MALLOC(MAXPATHLEN+1); in import_submodule() 2833 buf = PyMem_MALLOC(MAXPATHLEN+1); in PyImport_ReloadModule() 2997 pathname = PyMem_MALLOC(MAXPATHLEN+1); in call_find_module()
|
D | pystrtod.c | 218 copy = (char *)PyMem_MALLOC(end - digits_pos + in _PyOS_ascii_strtod()
|
/external/python/cpython2/Doc/includes/ |
D | capsulethunk.h | 77 char *name_dup = (char *)PyMem_MALLOC(name_length); in PyCapsule_Import()
|
/external/python/cpython2/Parser/ |
D | myreadline.c | 113 if ((p = (char *)PyMem_MALLOC(n)) == NULL) in PyOS_StdioReadline()
|
D | pgenmain.c | 140 char *p = (char *)PyMem_MALLOC(n); in PyOS_Readline()
|
D | tokenizer.c | 100 struct tok_state *tok = (struct tok_state *)PyMem_MALLOC( in tok_new() 136 char* result = (char *)PyMem_MALLOC(len + 1); in new_string() 630 buf = PyMem_MALLOC(needed_length); in translate_newlines() 759 if ((tok->buf = (char *)PyMem_MALLOC(BUFSIZ)) == NULL) { in PyTokenizer_FromFile() 938 PyMem_MALLOC(BUFSIZ); in tok_nextc()
|
D | parser.c | 78 ps = (parser_state *)PyMem_MALLOC(sizeof(parser_state)); in PyParser_New()
|
/external/python/cpython2/Objects/ |
D | capsule.c | 201 char *name_dup = (char *)PyMem_MALLOC(name_length); in PyCapsule_Import()
|
D | listobject.c | 152 op->ob_item = (PyObject **) PyMem_MALLOC(nbytes); in PyList_New() 672 recycle = (PyObject **)PyMem_MALLOC(s); in list_ass_slice() 2646 PyMem_MALLOC(slicelength*sizeof(PyObject*)); in list_ass_subscript() 2727 PyMem_MALLOC(slicelength*sizeof(PyObject*)); in list_ass_subscript()
|
D | intobject.c | 52 p = (PyIntObject *) PyMem_MALLOC(sizeof(PyIntBlock)); in fill_free_list() 407 char *buffer = (char *)PyMem_MALLOC(length+1); in PyInt_FromUnicode()
|
D | floatobject.c | 42 p = (PyFloatObject *) PyMem_MALLOC(sizeof(PyFloatBlock)); in fill_free_list() 193 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in PyFloat_FromString()
|
/external/python/cpython3/Objects/ |
D | capsule.c | 201 char *name_dup = (char *)PyMem_MALLOC(name_length); in PyCapsule_Import()
|
D | moduleobject.c | 219 m->md_state = PyMem_MALLOC(module->m_size); in _PyModule_CreateInitialized() 395 md->md_state = PyMem_MALLOC(def->m_size); in PyModule_ExecDef()
|
D | listobject.c | 691 recycle = (PyObject **)PyMem_MALLOC(s); in list_ass_slice() 2253 keys = PyMem_MALLOC(sizeof(PyObject *) * saved_ob_size); in list_sort_impl() 2881 PyMem_MALLOC(slicelength*sizeof(PyObject*)); in list_ass_subscript() 2962 PyMem_MALLOC(slicelength*sizeof(PyObject*)); in list_ass_subscript()
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 1121 out_s = (char *)PyMem_MALLOC(1); in mymemreplace() 1128 new_s = (char *)PyMem_MALLOC(new_len); in mymemreplace()
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b3.rst | 124 PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been
|