Lines Matching defs:spaces
128 * bch2_printbuf_tabstop_set() - add a tabstop, n spaces from the previous tabstop
131 * @spaces: number of spaces from previous tabpstop
134 * PRINTBUF_INLINE_TABSTOPS or setting tabstops more than 255 spaces from start
137 int bch2_printbuf_tabstop_push(struct printbuf *buf, unsigned spaces)
146 buf->_tabstops[buf->nr_tabstops++] = prev_tabstop + spaces;
155 * @spaces: number of spaces to add to the current indent level
158 * of the current line, will be indented by @spaces more spaces.
160 void bch2_printbuf_indent_add(struct printbuf *buf, unsigned spaces)
162 if (WARN_ON_ONCE(buf->indent + spaces < buf->indent))
163 spaces = 0;
165 buf->indent += spaces;
166 prt_chars(buf, ' ', spaces);
175 * @spaces: number of spaces to subtract from the current indent level
178 * of the current line, will be indented by @spaces less spaces.
180 void bch2_printbuf_indent_sub(struct printbuf *buf, unsigned spaces)
182 if (WARN_ON_ONCE(spaces > buf->indent))
183 spaces = buf->indent;
186 buf->pos -= spaces;
189 buf->indent -= spaces;
215 * Returns spaces from start of line, if set, or 0 if unset:
226 int spaces = max_t(int, 0, cur_tabstop(out) - printbuf_linelen(out));
228 prt_chars(out, ' ', spaces);
238 * Advance output to the next tabstop by printing spaces.
279 * Advance output to the next tabstop by inserting spaces immediately after the