Home
last modified time | relevance | path

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

12

/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/cpython3/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()
/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()
237 text = (char *) PyObject_MALLOC(len + 1); in parsetok()
252 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()
412 xx_state = (ss_state *)PyObject_MALLOC(sizeof(ss_state)); in makedfa()
Dgrammar.c23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar()
/external/python/cpython3/Include/
Dobjimpl.h106 #define PyObject_MALLOC PyObject_Malloc macro
/external/python/cpython3/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()
/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()
1067 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in string_concat()
1109 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + nbytes); in string_repeat()
Dcomplexobject.c239 op = (PyComplexObject *) PyObject_MALLOC(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
Dbytesobject.c163 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + size); in PyBytes_FromString()
1507 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + nbytes); in bytes_repeat()
/external/python/pybind11/include/pybind11/detail/
Dclass.h629 tp_doc = (char *) PyObject_MALLOC(size); in make_new_python_type()
/external/python/cpython3/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()
/external/python/cpython2/Doc/c-api/
Dmemory.rst210 * :c:func:`PyObject_MALLOC`: alias to :c:func:`PyObject_Malloc`
/external/python/cpython2/Modules/
Dgcmodule.c1499 g = (PyGC_Head *)PyObject_MALLOC( in _PyObject_GC_Malloc()
/external/python/cpython3/PC/
Dwinreg.c463 op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject)); in PyHKEY_FromHKEY()

12