Home
last modified time | relevance | path

Searched refs:target_col (Results 1 – 2 of 2) sorted by relevance

/openbsd/src/usr.bin/indent/
Dio.c53 int cur_col, target_col; in dump_line() local
136 target_col = compute_code_target(); in dump_line()
142 ps.paren_indents[i] = -(ps.paren_indents[i] + target_col); in dump_line()
144 cur_col = pad_output(cur_col, target_col); in dump_line()
147 fprintf(output, "%d", target_col * 7); in dump_line()
201 target_col * 7); in dump_line()
283 int target_col; in compute_code_target() local
285 target_col = ps.ind_size * ps.ind_level + 1; in compute_code_target()
288 target_col += continuation_indent * ps.paren_level; in compute_code_target()
294 && count_spaces(target_col, s_code) <= max_col) { in compute_code_target()
[all …]
Dpr_comment.c128 int target_col; in pr_comment() local
131 target_col = count_spaces(compute_code_target(), s_code); in pr_comment()
133 target_col = 1; in pr_comment()
135 target_col = count_spaces(compute_label_target(), s_lab); in pr_comment()
138 if (ps.com_col < target_col) in pr_comment()
139 ps.com_col = ((target_col + 7) & ~7) + 1; in pr_comment()