Lines Matching refs:alloc_size
41 size_t alloc_size; member
72 sb->alloc_size = initial_size; in strbuf_alloc()
84 if (sb->size + len + 1 > sb->alloc_size) { in strbuf_grow()
88 size_t new_size = MAX2(sb->size + len + 1, sb->alloc_size + STRBUF_MIN_MALLOC); in strbuf_grow()
95 sb->alloc_size = new_size; in strbuf_grow()
121 int len = vsnprintf(sb->buf + sb->size, sb->alloc_size - sb->size, fmt, ap); in strbuf_vappendf()
122 if (len >= (int)(sb->alloc_size - sb->size)) { in strbuf_vappendf()
125 vsnprintf(sb->buf + sb->size, sb->alloc_size - sb->size, fmt, cp); in strbuf_vappendf()
144 int len = vsnprintf(sb->buf, sb->alloc_size, fmt, ap); in strbuf_vfmt()
145 if (len >= (int)(sb->alloc_size)) { in strbuf_vfmt()
148 vsnprintf(sb->buf, sb->alloc_size, fmt, cp); in strbuf_vfmt()