/external/python/cpython3/Parser/pegen/ |
D | peg_api.c | 10 PyObject *filename_ob = PyUnicode_FromString(filename); in PyPegen_ASTFromString() local 11 if (filename_ob == NULL) { in PyPegen_ASTFromString() 14 mod_ty result = PyPegen_ASTFromStringObject(str, filename_ob, mode, flags, arena); in PyPegen_ASTFromString() 15 Py_XDECREF(filename_ob); in PyPegen_ASTFromString() 34 PyObject *filename_ob = PyUnicode_FromString(filename); in PyPegen_ASTFromFilename() local 35 if (filename_ob == NULL) { in PyPegen_ASTFromFilename() 39 mod_ty result = _PyPegen_run_parser_from_file(filename, mode, filename_ob, flags, arena); in PyPegen_ASTFromFilename() 40 Py_XDECREF(filename_ob); in PyPegen_ASTFromFilename() 45 PyPegen_ASTFromFileObject(FILE *fp, PyObject *filename_ob, int mode, in PyPegen_ASTFromFileObject() argument 49 if (PySys_Audit("compile", "OO", Py_None, filename_ob) < 0) { in PyPegen_ASTFromFileObject() [all …]
|
D | pegen.c | 1165 _PyPegen_run_parser_from_file_pointer(FILE *fp, int start_rule, PyObject *filename_ob, in _PyPegen_run_parser_from_file_pointer() argument 1172 raise_tokenizer_init_error(filename_ob); in _PyPegen_run_parser_from_file_pointer() 1178 tok->filename = filename_ob; in _PyPegen_run_parser_from_file_pointer() 1179 Py_INCREF(filename_ob); in _PyPegen_run_parser_from_file_pointer() 1201 PyObject *filename_ob, PyCompilerFlags *flags, PyArena *arena) in _PyPegen_run_parser_from_file() argument 1209 mod_ty result = _PyPegen_run_parser_from_file_pointer(fp, start_rule, filename_ob, in _PyPegen_run_parser_from_file() 1217 _PyPegen_run_parser_from_string(const char *str, int start_rule, PyObject *filename_ob, in _PyPegen_run_parser_from_string() argument 1230 raise_tokenizer_init_error(filename_ob); in _PyPegen_run_parser_from_string() 1235 tok->filename = filename_ob; in _PyPegen_run_parser_from_string() 1236 Py_INCREF(filename_ob); in _PyPegen_run_parser_from_string()
|
/external/python/cpython3/Tools/peg_generator/peg_extension/ |
D | peg_extension.c | 4 _build_return_object(mod_ty module, int mode, PyObject *filename_ob, PyArena *arena) in _build_return_object() argument 9 result = (PyObject *)PyAST_CompileObject(module, filename_ob, NULL, -1, arena); in _build_return_object() 40 PyObject *filename_ob = PyUnicode_FromString(filename); in parse_file() local 41 if (filename_ob == NULL) { in parse_file() 46 mod_ty res = _PyPegen_run_parser_from_file(filename, Py_file_input, filename_ob, &flags, arena); in parse_file() 51 result = _build_return_object(res, mode, filename_ob, arena); in parse_file() 54 Py_XDECREF(filename_ob); in parse_file() 79 PyObject *filename_ob = PyUnicode_FromString("<string>"); in parse_string() local 80 if (filename_ob == NULL) { in parse_string() 85 mod_ty res = _PyPegen_run_parser_from_string(the_string, Py_file_input, filename_ob, in parse_string() [all …]
|
/external/python/cpython3/Modules/ |
D | _peg_parser.c | 69 PyObject *filename_ob = PyUnicode_DecodeFSDefault(filename); in _Py_compile_string() local 70 if (filename_ob == NULL) { in _Py_compile_string() 74 PyCodeObject *result = PyAST_CompileObject(mod, filename_ob, &flags, -1, arena); in _Py_compile_string() 75 Py_XDECREF(filename_ob); in _Py_compile_string()
|
/external/python/cpython2/Modules/_ctypes/ |
D | callbacks.c | 106 PyObject *filename_ob = NULL; in PyCode_NewEmpty() local 122 filename_ob = PyString_FromString(filename); in PyCode_NewEmpty() 123 if (filename_ob == NULL) in PyCode_NewEmpty() 136 filename_ob, /* filename */ in PyCode_NewEmpty() 144 Py_XDECREF(filename_ob); in PyCode_NewEmpty()
|
/external/python/cpython2/Objects/ |
D | codeobject.c | 156 PyObject *filename_ob = NULL; in PyCode_NewEmpty() local 172 filename_ob = PyString_FromString(filename); in PyCode_NewEmpty() 173 if (filename_ob == NULL) in PyCode_NewEmpty() 186 filename_ob, /* filename */ in PyCode_NewEmpty() 194 Py_XDECREF(filename_ob); in PyCode_NewEmpty()
|
/external/python/cpython3/Include/internal/ |
D | pegen_interface.h | 28 PyObject *filename_ob,
|
/external/python/cpython3/Objects/ |
D | codeobject.c | 328 PyObject *filename_ob = NULL; in PyCode_NewEmpty() local 344 filename_ob = PyUnicode_DecodeFSDefault(filename); in PyCode_NewEmpty() 345 if (filename_ob == NULL) in PyCode_NewEmpty() 361 filename_ob, /* filename */ in PyCode_NewEmpty() 369 Py_XDECREF(filename_ob); in PyCode_NewEmpty()
|