Searched refs:PyObject_MALLOC (Results 1 – 16 of 16) sorted by relevance
69 accel = (int *) PyObject_MALLOC(nl * sizeof(int)); in fixstate()112 s->s_accel = (int *) PyObject_MALLOC((nl-k) * sizeof(int)); in fixstate()
256 str = (char *) PyObject_MALLOC(len + 1); in parsetok()427 err_ret->text = (char *) PyObject_MALLOC(len + 1); in parsetok()440 r->n_str = PyObject_MALLOC(strlen(tok->encoding)+1); in parsetok()
10 node *n = (node *) PyObject_MALLOC(1 * sizeof(node)); in PyNode_New()
106 #define PyObject_MALLOC PyObject_Malloc macro
926 strn = (char *)PyObject_MALLOC(len + 1); in build_node_children()1042 res->n_str = (char *)PyObject_MALLOC(len + 1); in build_node_tree()
991 ctx->u.rep = (SRE_REPEAT*) PyObject_MALLOC(sizeof(*ctx->u.rep)); in SRE()
644 PyObject_MALLOC(aware ? in time_alloc()659 PyObject_MALLOC(aware ? in datetime_alloc()
165 PyObject *op = (PyObject *) PyObject_MALLOC(_PyObject_SIZE(tp)); in _PyObject_New()178 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
235 op = (PyComplexObject *) PyObject_MALLOC(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
150 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + size); in PyBytes_FromString()1435 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + nbytes); in bytes_repeat()
1267 _PyUnicode_WSTR(unicode) = (Py_UNICODE*) PyObject_MALLOC(new_size); in _PyUnicode_New()1446 obj = (PyObject *) PyObject_MALLOC(struct_size + (size + 1) * char_size); in PyUnicode_New()1829 _PyUnicode_DATA_ANY(unicode) = PyObject_MALLOC(_PyUnicode_WSTR_LENGTH(unicode) + 1); in _PyUnicode_Ready()1870 _PyUnicode_DATA_ANY(unicode) = PyObject_MALLOC( in _PyUnicode_Ready()1899 _PyUnicode_DATA_ANY(unicode) = PyObject_MALLOC(4 * (length_wo_surrogates + 1)); in _PyUnicode_Ready()4088 w = (wchar_t *) PyObject_MALLOC(sizeof(wchar_t) * (wlen + 1)); in PyUnicode_AsUnicodeAndSize()5506 char *cache = PyObject_MALLOC(len + 1); in unicode_fill_utf8()8403 result = PyObject_MALLOC(sizeof(struct encoding_map) + in PyUnicode_BuildEncodingMap()15441 data = PyObject_MALLOC((length + 1) * char_size); in unicode_subtype_new()
123 op = (PyFloatObject*) PyObject_MALLOC(sizeof(PyFloatObject)); in PyFloat_FromDouble()
1050 obj = (PyObject *)PyObject_MALLOC(size); in PyType_GenericAlloc()2696 tp_doc = (char *)PyObject_MALLOC(len + 1); in type_new()3020 char *tp_doc = PyObject_MALLOC(len); in PyType_FromModuleAndSpec()
570 dk = PyObject_MALLOC(sizeof(PyDictKeysObject) in new_keys_object()
264 result = PyObject_MALLOC(offsetof(PyLongObject, ob_digit) + in _PyLong_New()
463 op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject)); in PyHKEY_FromHKEY()