Searched refs:PyObject_MALLOC (Results 1 – 21 of 21) sorted by relevance
118 #define PyObject_MALLOC _PyObject_DebugMalloc macro126 #define PyObject_MALLOC PyObject_Malloc macro132 #define PyObject_MALLOC PyMem_MALLOC macro194 (PyObject *) PyObject_MALLOC( _PyObject_SIZE(typeobj) ), (typeobj)) )198 (PyVarObject *) PyObject_MALLOC(_PyObject_VAR_SIZE((typeobj),(n)) ),\
71 accel = (int *) PyObject_MALLOC(nl * sizeof(int)); in fixstate()114 s->s_accel = (int *) PyObject_MALLOC((nl-k) * sizeof(int)); in fixstate()
180 str = (char *) PyObject_MALLOC(len + 1); in parsetok()235 text = (char *) PyObject_MALLOC(len + 1); in parsetok()250 r->n_str = PyObject_MALLOC(strlen(tok->encoding)+1); in parsetok()
11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes); in newbitset()
10 node *n = (node *) PyObject_MALLOC(1 * sizeof(node)); in PyNode_New()
62 sym = (int *)PyObject_MALLOC(sizeof(int)); in calcfirstset()
84 nf = (nfa *)PyObject_MALLOC(sizeof(nfa)); in newnfa()109 gr = (nfagrammar *)PyObject_MALLOC(sizeof(nfagrammar)); in newnfagrammar()400 xx_state = (ss_state *)PyObject_MALLOC(sizeof(ss_state)); in makedfa()
23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar()
1724 text = PyObject_MALLOC(linelen + 1); in PyTokenizer_RestoreEncoding()
215 o = (PyObject *)PyObject_MALLOC(sizeof(*b) + size); in PyBuffer_New()
244 op = (PyObject *) PyObject_MALLOC(_PyObject_SIZE(tp)); in _PyObject_New()255 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
88 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in PyString_FromStringAndSize()143 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in PyString_FromString()1061 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in string_concat()1103 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + nbytes); in string_repeat()
239 op = (PyComplexObject *) PyObject_MALLOC(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
348 unicode->str = (Py_UNICODE*) PyObject_MALLOC(new_size); in _PyUnicode_New()358 unicode->str = (Py_UNICODE*) PyObject_MALLOC(new_size); in _PyUnicode_New()4454 result = PyObject_MALLOC(sizeof(struct encoding_map) + in PyUnicode_BuildEncodingMap()8031 result_buf = (Py_UNICODE *)PyObject_MALLOC(slicelength* in unicode_subscript()8867 pnew->str = (Py_UNICODE*) PyObject_MALLOC(sizeof(Py_UNICODE) * (n+1)); in unicode_subtype_new()
783 obj = (PyObject *)PyObject_MALLOC(size); in PyType_GenericAlloc()2418 char *tp_doc = (char *)PyObject_MALLOC(n+1); in type_new()
1499 g = (PyGC_Head *)PyObject_MALLOC( in _PyObject_GC_Malloc()
808 strn = (char *)PyObject_MALLOC(len); in build_node_children()894 res->n_str = (char *)PyObject_MALLOC(len); in build_node_tree()
611 PyObject_MALLOC(aware ? in time_alloc()626 PyObject_MALLOC(aware ? in datetime_alloc()
1179 ctx->u.rep = (SRE_REPEAT*) PyObject_MALLOC(sizeof(*ctx->u.rep)); in SRE_MATCH()
666 op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject)); in PyHKEY_FromHKEY()
1748 char *s = PyObject_MALLOC(strlen(STR(pnum)) + 2); in ast_for_factor()