Lines Matching refs:obuf
70 static struct CHAR *obuf = sobuf;
144 if (obuf != sobuf) {
145 free(obuf);
168 if (obuf == sobuf) {
169 obuf = NULL;
172 obuf = realloc(obuf, sizeof(*obuf) * 2 * buflen);
173 if (obuf == NULL) {
174 obuf = sobuf;
177 memcpy(obuf, sobuf, sizeof(*obuf) * buflen);
180 bzero((char *)(obuf + buflen), sizeof(*obuf) * buflen);
246 if (obuf[col].c_char || obuf[col].c_width < 0) {
247 while (col > 0 && obuf[col].c_width < 0)
249 w = obuf[col].c_width;
251 obuf[col++].c_mode |= UNDERL | mode;
256 obuf[col].c_char = '_';
257 obuf[col].c_width = 1;
277 if (obuf[col].c_char == '\0') {
278 obuf[col].c_char = c;
280 obuf[col + i].c_mode = mode;
281 obuf[col].c_width = w;
283 obuf[col + i].c_width = -1;
284 } else if (obuf[col].c_char == '_') {
285 obuf[col].c_char = c;
287 obuf[col + i].c_mode |= UNDERL|mode;
288 obuf[col].c_width = w;
290 obuf[col + i].c_width = -1;
291 } else if ((wint_t)obuf[col].c_char == c) {
293 obuf[col + i].c_mode |= BOLD|mode;
295 w = obuf[col].c_width;
297 obuf[col + i].c_mode = mode;
320 if (obuf[i].c_mode != lastmode) {
322 setnewmode(obuf[i].c_mode);
323 lastmode = obuf[i].c_mode;
325 if (obuf[i].c_char == '\0') {
331 outc(obuf[i].c_char, obuf[i].c_width);
332 if (obuf[i].c_width > 1)
333 i += obuf[i].c_width - 1;
363 switch (obuf[i].c_mode) {
372 *cp++ = obuf[i].c_char;
373 if (obuf[i].c_width > 1)
374 i += obuf[i].c_width - 1;
401 switch (obuf[i].c_mode) {
421 bzero((char *)obuf, buflen * sizeof(*obuf)); /* depends on NORMAL == 0 */