Lines Matching refs:outbuf

73 static DYNBUF outbuf;  variable
159 free_DYN(&outbuf); in _nc_leaks_dump_entry()
419 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ') in trim_trailing()
420 outbuf.text[--outbuf.used] = '\0'; in trim_trailing()
428 strcpy_DYN(&outbuf, trailer); in force_wrap()
617 if (TcOutput() && outbuf.used && !wrap_1ST(mode)) { in wrap_concat()
624 strcpy_DYN(&outbuf, align); in wrap_concat()
631 strncpy_DYN(&outbuf, fill + step, (size_t) size); in wrap_concat()
643 strcpy_DYN(&outbuf, align); in wrap_concat()
644 strcpy_DYN(&outbuf, fill + step); in wrap_concat()
647 strcpy_DYN(&outbuf, separator); in wrap_concat()
653 strcpy_DYN(&outbuf, src); in wrap_concat()
655 strcpy_DYN(&outbuf, separator); in wrap_concat()
928 strcpy_DYN(&outbuf, 0); in fmt_entry()
932 strcpy_DYN(&outbuf, tterm->term_names); in fmt_entry()
938 char *p = outbuf.text; in fmt_entry()
946 strcpy_DYN(&outbuf, separator); in fmt_entry()
947 column = (int) outbuf.used; in fmt_entry()
1267 j = (PredIdx) outbuf.used; in fmt_entry()
1271 && outbuf.text[j - 1] == '\t' in fmt_entry()
1272 && outbuf.text[j - 2] == '\n') { in fmt_entry()
1273 outbuf.used -= 2; in fmt_entry()
1276 && outbuf.text[j - 1] == ':' in fmt_entry()
1277 && outbuf.text[j - 2] == '\t' in fmt_entry()
1278 && outbuf.text[j - 3] == '\n' in fmt_entry()
1279 && outbuf.text[j - 4] == '\\') { in fmt_entry()
1280 outbuf.used -= 4; in fmt_entry()
1284 outbuf.text[outbuf.used] = '\0'; in fmt_entry()
1286 strcpy_DYN(&outbuf, " "); in fmt_entry()
1294 tterm->term_names, len, outbuf.used, outbuf.text); in fmt_entry()
1303 return (infodump ? len : (int) termcap_length(outbuf.text)); in fmt_entry()
1490 if (outbuf.used) in dump_entry()
1503 if (outbuf.used) in dump_entry()
1658 if (outbuf.used != 0) { in show_entry()
1663 for (j = (int) outbuf.used - 1; j > 0; --j) { in show_entry()
1664 char ch = outbuf.text[j]; in show_entry()
1668 outbuf.used = (size_t) j; in show_entry()
1670 outbuf.used = (size_t) j; in show_entry()
1671 } else if (ch == delim && (j == 0 || outbuf.text[j - 1] != '\\')) { in show_entry()
1672 outbuf.used = (size_t) (j + 1); in show_entry()
1677 outbuf.text[outbuf.used] = '\0'; in show_entry()
1679 if (outbuf.text != 0) { in show_entry()
1680 (void) fputs(outbuf.text, stdout); in show_entry()
1683 return (int) outbuf.used; in show_entry()