Lines Matching refs:obuf
84 static struct CHAR *obuf = sobuf;
158 if (obuf != sobuf) {
159 free(obuf);
182 if (obuf == sobuf) {
183 obuf = NULL;
186 obuf = realloc(obuf, sizeof(*obuf) * 2 * buflen);
187 if (obuf == NULL) {
188 obuf = sobuf;
191 memcpy(obuf, sobuf, sizeof(*obuf) * buflen);
194 bzero((char *)(obuf + buflen), sizeof(*obuf) * buflen);
260 if (obuf[col].c_char || obuf[col].c_width < 0) {
261 while (col > 0 && obuf[col].c_width < 0)
263 w = obuf[col].c_width;
265 obuf[col++].c_mode |= UNDERL | mode;
270 obuf[col].c_char = '_';
271 obuf[col].c_width = 1;
291 if (obuf[col].c_char == '\0') {
292 obuf[col].c_char = c;
294 obuf[col + i].c_mode = mode;
295 obuf[col].c_width = w;
297 obuf[col + i].c_width = -1;
298 } else if (obuf[col].c_char == '_') {
299 obuf[col].c_char = c;
301 obuf[col + i].c_mode |= UNDERL|mode;
302 obuf[col].c_width = w;
304 obuf[col + i].c_width = -1;
305 } else if ((wint_t)obuf[col].c_char == c) {
307 obuf[col + i].c_mode |= BOLD|mode;
309 w = obuf[col].c_width;
311 obuf[col + i].c_mode = mode;
334 if (obuf[i].c_mode != lastmode) {
336 setnewmode(obuf[i].c_mode);
337 lastmode = obuf[i].c_mode;
339 if (obuf[i].c_char == '\0') {
345 outc(obuf[i].c_char, obuf[i].c_width);
346 if (obuf[i].c_width > 1)
347 i += obuf[i].c_width - 1;
377 switch (obuf[i].c_mode) {
386 *cp++ = obuf[i].c_char;
387 if (obuf[i].c_width > 1)
388 i += obuf[i].c_width - 1;
415 switch (obuf[i].c_mode) {
435 bzero((char *)obuf, buflen * sizeof(*obuf)); /* depends on NORMAL == 0 */