clean up the UTF8 API in libgu

This commit is contained in:
kr.angelov
2013-09-13 07:44:45 +00:00
parent c684ab30a7
commit c469ae9091
3 changed files with 5 additions and 56 deletions

View File

@@ -253,7 +253,7 @@ gu_putc(char c, GuOut* out, GuExn* err);
void
gu_puts(const char* str, GuOut* out, GuExn* err)
{
gu_str_out_utf8(str, out, err);
gu_out_bytes(out, (const uint8_t*) str, strlen(str), err);
}
void
@@ -261,7 +261,7 @@ gu_vprintf(const char* fmt, va_list args, GuOut* out, GuExn* err)
{
GuPool* tmp_pool = gu_local_pool();
char* str = gu_vasprintf(fmt, args, tmp_pool);
gu_str_out_utf8(str, out, err);
gu_out_bytes(out, (const uint8_t*) str, strlen(str), err);
gu_pool_free(tmp_pool);
}