summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/string.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-04 10:27:08 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-04 10:27:08 +0000
commit93cbfd31d14be8b35e65eb7116fafcd0f867a72d (patch)
tree4d65209cf27dade4911c360968732f882f2070e3 /src/runtime/c/gu/string.c
parent805f95eac61ef17d7ec3f87dda1dfbc932951dee (diff)
remove the dependency on the CHAR_ASCII flag
Diffstat (limited to 'src/runtime/c/gu/string.c')
-rw-r--r--src/runtime/c/gu/string.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c
index 1a53c3a28..1998859e4 100644
--- a/src/runtime/c/gu/string.c
+++ b/src/runtime/c/gu/string.c
@@ -5,7 +5,6 @@
#include <gu/string.h>
#include <gu/utf8.h>
#include <gu/assert.h>
-#include "config.h"
const GuString gu_empty_string = { 1 };
@@ -195,18 +194,7 @@ gu_format_string(GuPool* pool, const char* fmt, ...)
GuString
gu_str_string(const char* str, GuPool* pool)
{
-#ifdef CHAR_ASCII
return gu_utf8_string((const uint8_t*) str, strlen(str), pool);
-#else
- GuPool* tmp_pool = gu_local_pool();
- GuStringBuf* sb = gu_string_buf(tmp_pool);
- GuWriter* wtr = gu_string_buf_writer(sb);
- gu_puts(str, wtr, NULL);
- gu_writer_flush(wtr, NULL);
- GuString s = gu_string_buf_freeze(sb, pool);
- gu_pool_free(tmp_pool);
- return s;
-#endif
}
bool