Lines Matching refs:tbuf
734 struct _cpp_strbuf tbuf; in cpp_host_to_exec_charset() local
753 tbuf.asize = 1; in cpp_host_to_exec_charset()
754 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_host_to_exec_charset()
755 tbuf.len = 0; in cpp_host_to_exec_charset()
757 if (!APPLY_CONVERSION (pfile->narrow_cset_desc, sbuf, 1, &tbuf)) in cpp_host_to_exec_charset()
762 if (tbuf.len != 1) in cpp_host_to_exec_charset()
769 c = tbuf.text[0]; in cpp_host_to_exec_charset()
770 free(tbuf.text); in cpp_host_to_exec_charset()
1037 struct _cpp_strbuf *tbuf, bool wide) in convert_ucn() argument
1058 else if (!APPLY_CONVERSION (cvt, buf, 6 - bytesleft, tbuf)) in convert_ucn()
1072 struct _cpp_strbuf *tbuf, bool wide) in emit_numeric_escape() argument
1084 size_t off = tbuf->len; in emit_numeric_escape()
1087 if (tbuf->len + nbwc > tbuf->asize) in emit_numeric_escape()
1089 tbuf->asize += OUTBUF_BLOCK_SIZE; in emit_numeric_escape()
1090 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1097 tbuf->text[off + (bigend ? nbwc - i - 1 : i)] = c; in emit_numeric_escape()
1099 tbuf->len += nbwc; in emit_numeric_escape()
1105 if (tbuf->len + 1 > tbuf->asize) in emit_numeric_escape()
1107 tbuf->asize += OUTBUF_BLOCK_SIZE; in emit_numeric_escape()
1108 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize); in emit_numeric_escape()
1110 tbuf->text[tbuf->len++] = n; in emit_numeric_escape()
1122 struct _cpp_strbuf *tbuf, bool wide) in convert_hex() argument
1160 emit_numeric_escape (pfile, n, tbuf, wide); in convert_hex()
1173 struct _cpp_strbuf *tbuf, bool wide) in convert_oct() argument
1199 emit_numeric_escape (pfile, n, tbuf, wide); in convert_oct()
1210 struct _cpp_strbuf *tbuf, bool wide) in convert_escape() argument
1230 return convert_ucn (pfile, from, limit, tbuf, wide); in convert_escape()
1233 return convert_hex (pfile, from, limit, tbuf, wide); in convert_escape()
1238 return convert_oct (pfile, from, limit, tbuf, wide); in convert_escape()
1291 if (!APPLY_CONVERSION (cvt, &c, 1, tbuf)) in convert_escape()
1308 struct _cpp_strbuf tbuf; in cpp_interpret_string() local
1314 tbuf.asize = MAX (OUTBUF_BLOCK_SIZE, from->len); in cpp_interpret_string()
1315 tbuf.text = XNEWVEC (uchar, tbuf.asize); in cpp_interpret_string()
1316 tbuf.len = 0; in cpp_interpret_string()
1334 if (!APPLY_CONVERSION (cvt, base, p - base, &tbuf)) in cpp_interpret_string()
1340 p = convert_escape (pfile, p + 1, limit, &tbuf, wide); in cpp_interpret_string()
1345 emit_numeric_escape (pfile, 0, &tbuf, wide); in cpp_interpret_string()
1346 tbuf.text = XRESIZEVEC (uchar, tbuf.text, tbuf.len); in cpp_interpret_string()
1347 to->text = tbuf.text; in cpp_interpret_string()
1348 to->len = tbuf.len; in cpp_interpret_string()
1353 free (tbuf.text); in cpp_interpret_string()