diff options
Diffstat (limited to 'src/runtime/c/gu')
| -rw-r--r-- | src/runtime/c/gu/string.c | 6 | ||||
| -rw-r--r-- | src/runtime/c/gu/string.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index d380fca49..0947cf9e0 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -82,6 +82,12 @@ gu_string_buf_freeze(GuStringBuf* sb, GuPool* pool) return p; } +void +gu_string_buf_flush(GuStringBuf* sb) +{ + gu_buf_flush(sb->buf); +} + GuIn* gu_string_in(GuString s, GuPool* pool) { diff --git a/src/runtime/c/gu/string.h b/src/runtime/c/gu/string.h index 111050606..e4729239c 100644 --- a/src/runtime/c/gu/string.h +++ b/src/runtime/c/gu/string.h @@ -33,6 +33,9 @@ gu_string_buf_out(GuStringBuf* sb); GuString gu_string_buf_freeze(GuStringBuf* sb, GuPool* pool); +void +gu_string_buf_flush(GuStringBuf* sb); + GuString gu_format_string_v(const char* fmt, va_list args, GuPool* pool); |
