Lines Matching refs:hp
65 const struct tbl_head *hp; in term_tbl() local
128 for (hp = sp->head; hp; hp = hp->next) { in term_tbl()
141 if (NULL != hp->prev) in term_tbl()
142 tbl_vrule(tp, hp); in term_tbl()
144 col = &tp->tbl.cols[hp->ident]; in term_tbl()
198 tbl_rulewidth(struct termp *tp, const struct tbl_head *hp) in tbl_rulewidth() argument
202 width = tp->tbl.cols[hp->ident].width; in tbl_rulewidth()
205 if (hp->prev) in tbl_rulewidth()
206 width += 2 - hp->vert; in tbl_rulewidth()
221 const struct tbl_head *hp; in tbl_hrule() local
228 for (hp = sp->head; hp; hp = hp->next) { in tbl_hrule()
229 if (hp->prev && hp->vert) in tbl_hrule()
230 tbl_char(tp, '+', hp->vert); in tbl_hrule()
231 tbl_char(tp, c, tbl_rulewidth(tp, hp)); in tbl_hrule()
244 const struct tbl_head *hp; in tbl_hframe() local
247 for (hp = sp->head; hp; hp = hp->next) { in tbl_hframe()
248 if (hp->prev && hp->vert) in tbl_hframe()
249 tbl_char(tp, (outer ? '-' : '+'), hp->vert); in tbl_hframe()
250 tbl_char(tp, '-', tbl_rulewidth(tp, hp)); in tbl_hframe()
315 tbl_vrule(struct termp *tp, const struct tbl_head *hp) in tbl_vrule() argument
319 if (0 < hp->vert) in tbl_vrule()
320 tbl_char(tp, '|', hp->vert); in tbl_vrule()
321 if (2 > hp->vert) in tbl_vrule()
322 tbl_char(tp, ASCII_NBRSP, 2 - hp->vert); in tbl_vrule()
344 struct tbl_head *hp; in tbl_literal() local
351 hp = dp->layout->head->next; in tbl_literal()
353 for (spans = dp->spans; spans--; hp = hp->next) in tbl_literal()
354 width += tp->tbl.cols[hp->ident].width + 3; in tbl_literal()