Lines Matching defs:c
1 /* $Id: term.c,v 1.294 2025/08/01 14:59:39 schwarze Exp $ */
3 * Copyright (c) 2010-2022, 2025 Ingo Schwarze <schwarze@openbsd.org>
4 * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
822 adjbuf(struct termp_col *c, size_t sz)
824 if (c->maxcols == 0)
825 c->maxcols = 1024;
826 while (c->maxcols <= sz)
827 c->maxcols <<= 2;
828 c->buf = mandoc_reallocarray(c->buf, c->maxcols, sizeof(*c->buf));
832 bufferc(struct termp *p, char c)
835 (*p->letter)(p, c);
840 if (p->tcol->lastcol <= p->col || (c != ' ' && c != ASCII_NBRSP))
841 p->tcol->buf[p->col] = c;
860 encode1(struct termp *p, int c)
865 (*p->letter)(p, c);
872 f = (c == ASCII_HYPH || c > 127 || isgraph(c)) ?
888 if (c == ASCII_HYPH)
891 p->tcol->buf[p->col++] = c;
894 if (p->tcol->lastcol <= p->col || (c != ' ' && c != ASCII_NBRSP))
895 p->tcol->buf[p->col] = c;
980 cond_width(const struct termp *p, int c, int *skip)
986 return (*p->getwidth)(p, c);