Searched refs:PyMem_MALLOC (Results 1 – 25 of 27) sorted by relevance
12
62 #define PyMem_MALLOC _PyMem_DebugMalloc macro74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ macro97 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
132 #define PyObject_MALLOC PyMem_MALLOC
78 buffer = PyMem_MALLOC(size + _PyOS_vsnprintf_EXTRA_SPACE); in PyOS_vsnprintf()
1086 buf = PyMem_MALLOC(MAXPATHLEN+1); in load_source_module()1172 buf = PyMem_MALLOC(MAXPATHLEN+1); in load_package()1340 name = PyMem_MALLOC(MAXPATHLEN+1); in find_module()2238 buf = PyMem_MALLOC(MAXPATHLEN+1); in import_module_level()2709 buf = PyMem_MALLOC(MAXPATHLEN+1); in import_submodule()2811 buf = PyMem_MALLOC(MAXPATHLEN+1); in PyImport_ReloadModule()2975 pathname = PyMem_MALLOC(MAXPATHLEN+1); in call_find_module()
218 copy = (char *)PyMem_MALLOC(end - digits_pos + in _PyOS_ascii_strtod()
1146 char* pBuf = (char *)PyMem_MALLOC(filesize); in PyMarshal_ReadLastObjectFromFile()
77 char *name_dup = (char *)PyMem_MALLOC(name_length); in PyCapsule_Import()
113 if ((p = (char *)PyMem_MALLOC(n)) == NULL) in PyOS_StdioReadline()
139 char *p = (char *)PyMem_MALLOC(n); in PyOS_Readline()
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()
78 ps = (parser_state *)PyMem_MALLOC(sizeof(parser_state)); in PyParser_New()
201 char *name_dup = (char *)PyMem_MALLOC(name_length); in PyCapsule_Import()
152 op->ob_item = (PyObject **) PyMem_MALLOC(nbytes); in PyList_New()675 recycle = (PyObject **)PyMem_MALLOC(s); in list_ass_slice()2647 PyMem_MALLOC(slicelength*sizeof(PyObject*)); in list_ass_subscript()2728 PyMem_MALLOC(slicelength*sizeof(PyObject*)); in list_ass_subscript()
52 p = (PyIntObject *) PyMem_MALLOC(sizeof(PyIntBlock)); in fill_free_list()404 char *buffer = (char *)PyMem_MALLOC(length+1); in PyInt_FromUnicode()
43 p = (PyFloatObject *) PyMem_MALLOC(sizeof(PyFloatBlock)); in fill_free_list()194 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in PyFloat_FromString()
991 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in complex_subtype_from_string()
1313 return PyMem_MALLOC(n); in PyObject_Malloc()
1180 buffer = PyMem_MALLOC(bufsize); in SyntaxError_str()
2343 return PyMem_MALLOC(nbytes); in PyMem_Malloc()
334 newmode = PyMem_MALLOC(strlen(mode) + 3); in open_the_file()
2001 char *buffer = (char *)PyMem_MALLOC(length+1); in PyLong_FromUnicode()
1514 remain = (int *)PyMem_MALLOC(SIZEOF_INT*to_merge_size); in pmerge()
1121 out_s = (char *)PyMem_MALLOC(1); in mymemreplace()1128 new_s = (char *)PyMem_MALLOC(new_len); in mymemreplace()
1287 codes = PyMem_MALLOC((len + 1) * sizeof(formatcode)); in prepare_s()
153 :c:func:`PyMem_MALLOC`, :c:func:`PyMem_REALLOC`, :c:func:`PyMem_FREE`.