Home
last modified time | relevance | path

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

/external/python/cpython2/Include/
Dobjimpl.h118 #define PyObject_MALLOC _PyObject_DebugMalloc macro
126 #define PyObject_MALLOC PyObject_Malloc macro
132 #define PyObject_MALLOC PyMem_MALLOC macro
194 (PyObject *) PyObject_MALLOC( _PyObject_SIZE(typeobj) ), (typeobj)) )
198 (PyVarObject *) PyObject_MALLOC(_PyObject_VAR_SIZE((typeobj),(n)) ),\
/external/python/cpython2/Parser/
Dacceler.c71 accel = (int *) PyObject_MALLOC(nl * sizeof(int)); in fixstate()
114 s->s_accel = (int *) PyObject_MALLOC((nl-k) * sizeof(int)); in fixstate()
Dparsetok.c180 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()
Dbitset.c11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes); in newbitset()
Dnode.c10 node *n = (node *) PyObject_MALLOC(1 * sizeof(node)); in PyNode_New()
Dfirstsets.c62 sym = (int *)PyObject_MALLOC(sizeof(int)); in calcfirstset()
Dpgen.c84 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()
Dgrammar.c23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar()
Dtokenizer.c1724 text = PyObject_MALLOC(linelen + 1); in PyTokenizer_RestoreEncoding()
/external/python/cpython2/Objects/
Dbufferobject.c215 o = (PyObject *)PyObject_MALLOC(sizeof(*b) + size); in PyBuffer_New()
Dobject.c244 op = (PyObject *) PyObject_MALLOC(_PyObject_SIZE(tp)); in _PyObject_New()
255 op = (PyVarObject *) PyObject_MALLOC(size); in _PyObject_NewVar()
Dstringobject.c88 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()
Dcomplexobject.c239 op = (PyComplexObject *) PyObject_MALLOC(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
Dunicodeobject.c348 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()
Dtypeobject.c783 obj = (PyObject *)PyObject_MALLOC(size); in PyType_GenericAlloc()
2418 char *tp_doc = (char *)PyObject_MALLOC(n+1); in type_new()
/external/python/cpython2/Modules/
Dgcmodule.c1499 g = (PyGC_Head *)PyObject_MALLOC( in _PyObject_GC_Malloc()
Dparsermodule.c808 strn = (char *)PyObject_MALLOC(len); in build_node_children()
894 res->n_str = (char *)PyObject_MALLOC(len); in build_node_tree()
Ddatetimemodule.c611 PyObject_MALLOC(aware ? in time_alloc()
626 PyObject_MALLOC(aware ? in datetime_alloc()
D_sre.c1179 ctx->u.rep = (SRE_REPEAT*) PyObject_MALLOC(sizeof(*ctx->u.rep)); in SRE_MATCH()
/external/python/cpython2/PC/
D_winreg.c666 op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject)); in PyHKEY_FromHKEY()
/external/python/cpython2/Python/
Dast.c1748 char *s = PyObject_MALLOC(strlen(STR(pnum)) + 2); in ast_for_factor()