Searched refs:lineobj (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Python/ |
D | traceback.c | 382 PyObject *lineobj = NULL; in _Py_DisplaySourceLine() local 444 Py_XDECREF(lineobj); in _Py_DisplaySourceLine() 445 lineobj = PyFile_GetLine(fob, -1); in _Py_DisplaySourceLine() 446 if (!lineobj) { in _Py_DisplaySourceLine() 458 if (!lineobj || !PyUnicode_Check(lineobj)) { in _Py_DisplaySourceLine() 459 Py_XDECREF(lineobj); in _Py_DisplaySourceLine() 464 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine() 465 data = PyUnicode_DATA(lineobj); in _Py_DisplaySourceLine() 466 for (i=0; i < PyUnicode_GET_LENGTH(lineobj); i++) { in _Py_DisplaySourceLine() 473 truncated = PyUnicode_Substring(lineobj, i, PyUnicode_GET_LENGTH(lineobj)); in _Py_DisplaySourceLine() [all …]
|
/external/python/cpython3/Modules/ |
D | _csv.c | 793 PyObject *lineobj; in Reader_iternext() local 798 lineobj = PyIter_Next(self->input_iter); in Reader_iternext() 799 if (lineobj == NULL) { in Reader_iternext() 811 if (!PyUnicode_Check(lineobj)) { in Reader_iternext() 816 Py_TYPE(lineobj)->tp_name in Reader_iternext() 818 Py_DECREF(lineobj); in Reader_iternext() 821 if (PyUnicode_READY(lineobj) == -1) { in Reader_iternext() 822 Py_DECREF(lineobj); in Reader_iternext() 826 kind = PyUnicode_KIND(lineobj); in Reader_iternext() 827 data = PyUnicode_DATA(lineobj); in Reader_iternext() [all …]
|
/external/python/cpython2/Modules/ |
D | _csv.c | 787 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/ |
D | stack.c | 303 Dwfl_Line *lineobj = dwfl_module_getsrc(mod, pc_adjusted); in print_frame() local 304 if (lineobj) in print_frame() 305 sname = dwfl_lineinfo (lineobj, NULL, &line, &col, NULL, NULL); in print_frame()
|
/external/python/cpython2/Parser/ |
D | tokenizer.c | 1727 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()
|