forked from GitHub/gf-core
gu_string_buf -> gu_new_string_buf in libgu
This commit is contained in:
@@ -50,7 +50,7 @@ gu_string_buf_end(GuOutStream* stream, size_t sz, GuExn* err)
|
||||
}
|
||||
|
||||
GuStringBuf*
|
||||
gu_string_buf(GuPool* pool)
|
||||
gu_new_string_buf(GuPool* pool)
|
||||
{
|
||||
GuStringBuf* sbuf = gu_new(GuStringBuf, pool);
|
||||
sbuf->stream.output = gu_string_buf_output;
|
||||
@@ -152,7 +152,7 @@ GuString
|
||||
gu_format_string_v(const char* fmt, va_list args, GuPool* pool)
|
||||
{
|
||||
GuPool* tmp_pool = gu_local_pool();
|
||||
GuStringBuf* sb = gu_string_buf(tmp_pool);
|
||||
GuStringBuf* sb = gu_new_string_buf(tmp_pool);
|
||||
GuOut* out = gu_string_buf_out(sb);
|
||||
gu_vprintf(fmt, args, out, NULL);
|
||||
gu_out_flush(out, NULL);
|
||||
|
||||
@@ -25,7 +25,7 @@ gu_string_in(GuString string, GuPool* pool);
|
||||
typedef struct GuStringBuf GuStringBuf;
|
||||
|
||||
GuStringBuf*
|
||||
gu_string_buf(GuPool* pool);
|
||||
gu_new_string_buf(GuPool* pool);
|
||||
|
||||
GuOut*
|
||||
gu_string_buf_out(GuStringBuf* sb);
|
||||
|
||||
Reference in New Issue
Block a user