Home
last modified time | relevance | path

Searched refs:PyObject_MALLOC (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Parser/
Dacceler.c69 accel = (int *) PyObject_MALLOC(nl * sizeof(int)); in fixstate()
112 s->s_accel = (int *) PyObject_MALLOC((nl-k) * sizeof(int)); in fixstate()
Dparsetok.c256 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()
Dnode.c10 node *n = (node *) PyObject_MALLOC(1 * sizeof(node)); in PyNode_New()
/third_party/python/Include/
Dobjimpl.h106 #define PyObject_MALLOC PyObject_Malloc macro
/third_party/python/Modules/
Dparsermodule.c926 strn = (char *)PyObject_MALLOC(len + 1); in build_node_children()
1042 res->n_str = (char *)PyObject_MALLOC(len + 1); in build_node_tree()
Dsre_lib.h991 ctx->u.rep = (SRE_REPEAT*) PyObject_MALLOC(sizeof(*ctx->u.rep)); in SRE()
D_datetimemodule.c644 PyObject_MALLOC(aware ? in time_alloc()
659 PyObject_MALLOC(aware ? in datetime_alloc()
/third_party/python/Objects/
Dobject.c165 PyObject *op = (PyObject *) PyObject_MALLOC(_PyObject_SIZE(tp)); in _PyObject_New()
178 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
Dcomplexobject.c235 op = (PyComplexObject *) PyObject_MALLOC(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
Dbytesobject.c150 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + size); in PyBytes_FromString()
1435 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + nbytes); in bytes_repeat()
Dunicodeobject.c1267 _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()
Dfloatobject.c123 op = (PyFloatObject*) PyObject_MALLOC(sizeof(PyFloatObject)); in PyFloat_FromDouble()
Dtypeobject.c1050 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()
Ddictobject.c570 dk = PyObject_MALLOC(sizeof(PyDictKeysObject) in new_keys_object()
Dlongobject.c264 result = PyObject_MALLOC(offsetof(PyLongObject, ob_digit) + in _PyLong_New()
/third_party/python/PC/
Dwinreg.c463 op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject)); in PyHKEY_FromHKEY()