Lines Matching refs:indent
383 /* Writes indent spaces. Returns 0 on success and non-zero on failure.
386 _Py_WriteIndent(int indent, PyObject *f)
390 while (indent > 0) {
391 if (indent < 10) {
392 buf[indent] = '\0';
397 indent -= 10;
402 /* Writes indent spaces, followed by the margin if it is not `\0`.
406 _Py_WriteIndentedMargin(int indent, const char *margin, PyObject *f)
408 if (_Py_WriteIndent(indent, f) < 0) {
420 display_source_line_with_margin(PyObject *f, PyObject *filename, int lineno, int indent,
549 *truncation = i - indent;
557 if (_Py_WriteIndent(indent, f) < 0) {
578 _Py_DisplaySourceLine(PyObject *f, PyObject *filename, int lineno, int indent,
581 return display_source_line_with_margin(f, filename, lineno, indent, 0,
925 int indent, const char *margin)
961 tb->tb_frame, code->co_name, indent, margin) < 0) {
986 _PyTraceBack_Print_Indented(PyObject *v, int indent, const char *margin,
1010 if (_Py_WriteIndentedMargin(indent, header_margin, f) < 0) {
1018 if (tb_printinternal((PyTracebackObject *)v, f, limit, indent, margin) < 0) {
1028 int indent = 0;
1033 return _PyTraceBack_Print_Indented(v, indent, margin, header_margin, header, f);