Home
last modified time | relevance | path

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

/mirbsd/src/usr.bin/indent/
Dio.c57 int cur_col, target_col = 0; in dump_line() local
140 target_col = compute_code_target(); in dump_line()
146 ps.paren_indents[i] = -(ps.paren_indents[i] + target_col); in dump_line()
148 cur_col = pad_output(cur_col, target_col); in dump_line()
152 fprintf(output, "%d", target_col * 7); in dump_line()
207 target_col * 7); in dump_line()
289 int target_col; in compute_code_target() local
291 target_col = ps.ind_size * ps.ind_level + 1; in compute_code_target()
294 target_col += continuation_indent * in compute_code_target()
301 && count_spaces(target_col, s_code) <= max_col) { in compute_code_target()
[all …]
Dpr_comment.c110 int target_col = 0; in pr_comment() local
121 target_col = count_spaces(compute_code_target(), s_code); in pr_comment()
123 target_col = count_spaces(compute_label_target(), s_lab); in pr_comment()
124 if (ps.com_col > target_col) in pr_comment()
151 int target_col; in pr_comment() local
154 target_col = count_spaces(compute_code_target(), s_code); in pr_comment()
156 target_col = 1; in pr_comment()
158 target_col = count_spaces(compute_label_target(), s_lab); in pr_comment()
161 if (ps.com_col < target_col) in pr_comment()
162 ps.com_col = ((target_col + 7) & ~7) + 1; in pr_comment()