Searched refs:PyArena (Results 1 – 15 of 15) sorted by relevance
/external/python/cpython2/Include/ |
D | Python-ast.h | 376 mod_ty _Py_Module(asdl_seq * body, PyArena *arena); 378 mod_ty _Py_Interactive(asdl_seq * body, PyArena *arena); 380 mod_ty _Py_Expression(expr_ty body, PyArena *arena); 382 mod_ty _Py_Suite(asdl_seq * body, PyArena *arena); 386 PyArena *arena); 390 PyArena *arena); 392 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena); 394 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena 398 col_offset, PyArena *arena); 401 lineno, int col_offset, PyArena *arena); [all …]
|
D | pyarena.h | 11 typedef struct _arena PyArena; typedef 35 PyAPI_FUNC(PyArena *) PyArena_New(void); 36 PyAPI_FUNC(void) PyArena_Free(PyArena *); 50 PyAPI_FUNC(void *) PyArena_Malloc(PyArena *, size_t size); 56 PyAPI_FUNC(int) PyArena_AddPyObject(PyArena *, PyObject *);
|
D | asdl.h | 30 asdl_seq *asdl_seq_new(int size, PyArena *arena); 31 asdl_int_seq *asdl_int_seq_new(int size, PyArena *arena);
|
D | ast.h | 8 const char *, PyArena *);
|
D | compile.h | 33 PyCompilerFlags *, PyArena *);
|
D | pythonrun.h | 44 PyArena *); 48 PyArena *);
|
/external/python/cpython2/Python/ |
D | pyarena.c | 130 PyArena * 133 PyArena* arena = (PyArena *)malloc(sizeof(PyArena)); in PyArena_New() 135 return (PyArena*)PyErr_NoMemory(); in PyArena_New() 141 return (PyArena*)PyErr_NoMemory(); in PyArena_New() 147 return (PyArena*)PyErr_NoMemory(); in PyArena_New() 160 PyArena_Free(PyArena *arena) in PyArena_Free() 183 PyArena_Malloc(PyArena *arena, size_t size) in PyArena_Malloc() 206 PyArena_AddPyObject(PyArena *arena, PyObject *obj) in PyArena_AddPyObject()
|
D | Python-ast.c | 586 static int obj2ast_object(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_object() 597 static int obj2ast_identifier(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_identifier() 607 static int obj2ast_string(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_string() 617 static int obj2ast_int(PyObject* obj, int* out, PyArena* arena) in obj2ast_int() 636 static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena) in obj2ast_bool() 969 static int obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena); 970 static int obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena); 971 static int obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena); 972 static int obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* 974 static int obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena); [all …]
|
D | asdl.c | 5 asdl_seq_new(int size, PyArena *arena) in asdl_seq_new() 36 asdl_int_seq_new(int size, PyArena *arena) in asdl_int_seq_new()
|
D | pythonrun.c | 60 PyCompilerFlags *, PyArena *); 811 PyArena *arena; in PyRun_InteractiveOneFlags() 1333 PyArena *arena = PyArena_New(); in PyRun_StringFlags() 1350 PyArena *arena = PyArena_New(); in PyRun_FileExFlags() 1369 PyCompilerFlags *flags, PyArena *arena) in run_mod() 1419 PyArena *arena = PyArena_New(); in Py_CompileStringFlags() 1444 PyArena *arena = PyArena_New(); in Py_SymtableString() 1463 PyCompilerFlags *flags, PyArena *arena) in PyParser_ASTFromString() 1492 PyArena *arena) in PyParser_ASTFromFile()
|
D | ast.c | 22 PyArena *c_arena; /* arena for allocating memeory */ 51 new_identifier(const char* n, PyArena *arena) { in new_identifier() 217 PyArena *arena) in PyAST_FromNode()
|
D | compile.c | 146 PyArena *c_arena; /* pointer to memory allocation arena */ 255 PyArena *arena) in PyAST_Compile() 305 PyArena *arena = PyArena_New(); in PyNode_Compile()
|
D | bltinmodule.c | 524 PyArena *arena; in builtin_compile()
|
D | import.c | 873 PyArena *arena = PyArena_New(); in parse_source_module()
|
/external/python/cpython2/Modules/ |
D | parsermodule.c | 446 PyArena* arena; in parser_compilest()
|