Home
last modified time | relevance | path

Searched refs:lineobj (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Python/
Dtraceback.c372 PyObject *lineobj = NULL; in _Py_DisplaySourceLine() local
434 Py_XDECREF(lineobj); in _Py_DisplaySourceLine()
435 lineobj = PyFile_GetLine(fob, -1); in _Py_DisplaySourceLine()
436 if (!lineobj) { in _Py_DisplaySourceLine()
448 if (!lineobj || !PyUnicode_Check(lineobj)) { in _Py_DisplaySourceLine()
449 Py_XDECREF(lineobj); in _Py_DisplaySourceLine()
454 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine()
455 data = PyUnicode_DATA(lineobj); in _Py_DisplaySourceLine()
456 for (i=0; i < PyUnicode_GET_LENGTH(lineobj); i++) { in _Py_DisplaySourceLine()
463 truncated = PyUnicode_Substring(lineobj, i, PyUnicode_GET_LENGTH(lineobj)); in _Py_DisplaySourceLine()
[all …]
/external/python/cpython3/Modules/
D_csv.c786 PyObject *lineobj; in Reader_iternext() local
791 lineobj = PyIter_Next(self->input_iter); in Reader_iternext()
792 if (lineobj == NULL) { in Reader_iternext()
804 if (!PyUnicode_Check(lineobj)) { in Reader_iternext()
809 lineobj->ob_type->tp_name in Reader_iternext()
811 Py_DECREF(lineobj); in Reader_iternext()
814 if (PyUnicode_READY(lineobj) == -1) { in Reader_iternext()
815 Py_DECREF(lineobj); in Reader_iternext()
819 kind = PyUnicode_KIND(lineobj); in Reader_iternext()
820 data = PyUnicode_DATA(lineobj); in Reader_iternext()
[all …]
/external/python/cpython2/Modules/
D_csv.c787 PyObject *lineobj; in Reader_iternext() local
795 lineobj = PyIter_Next(self->input_iter); in Reader_iternext()
796 if (lineobj == NULL) { in Reader_iternext()
809 line = PyString_AsString(lineobj); in Reader_iternext()
810 linelen = PyString_Size(lineobj); in Reader_iternext()
813 Py_DECREF(lineobj); in Reader_iternext()
819 Py_DECREF(lineobj); in Reader_iternext()
825 Py_DECREF(lineobj); in Reader_iternext()
829 Py_DECREF(lineobj); in Reader_iternext()
/external/elfutils/src/
Dstack.c298 Dwfl_Line *lineobj = dwfl_module_getsrc(mod, pc_adjusted); in print_frame() local
299 if (lineobj) in print_frame()
300 sname = dwfl_lineinfo (lineobj, NULL, &line, &col, NULL, NULL); in print_frame()
/external/python/cpython2/Parser/
Dtokenizer.c1727 PyObject *lineobj = dec_utf8(tok->encoding, tok->buf, len); in PyTokenizer_RestoreEncoding() local
1728 if (lineobj != NULL) { in PyTokenizer_RestoreEncoding()
1729 int linelen = PyString_Size(lineobj); in PyTokenizer_RestoreEncoding()
1730 const char *line = PyString_AsString(lineobj); in PyTokenizer_RestoreEncoding()
1737 Py_DECREF(lineobj); in PyTokenizer_RestoreEncoding()