summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/write.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-05 11:20:39 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-05 11:20:39 +0000
commit7c0bad50921365746ea362710015853a4879c0a7 (patch)
treeead13c32a5b2d8ed2968bcdc5b58e5e7eed79720 /src/runtime/c/gu/write.c
parent504341dfbafdcd858704350162bb7e233cf6daf2 (diff)
remove the read and write modules from libgu. this simplifies the i/o layer
Diffstat (limited to 'src/runtime/c/gu/write.c')
-rw-r--r--src/runtime/c/gu/write.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/runtime/c/gu/write.c b/src/runtime/c/gu/write.c
deleted file mode 100644
index bd3e136fb..000000000
--- a/src/runtime/c/gu/write.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include <gu/write.h>
-
-
-size_t
-gu_utf32_write(const GuUCS* src, size_t len, GuWriter* wtr, GuExn* err)
-{
- return gu_utf32_out_utf8(src, len, &wtr->out_, err);
-}
-
-
-void
-gu_vprintf(const char* fmt, va_list args, GuWriter* wtr, GuExn* err)
-{
- GuPool* tmp_pool = gu_local_pool();
- char* str = gu_vasprintf(fmt, args, tmp_pool);
- gu_puts(str, wtr, err);
- gu_pool_free(tmp_pool);
-}
-
-void
-gu_printf(GuWriter* wtr, GuExn* err, const char* fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
- gu_vprintf(fmt, args, wtr, err);
- va_end(args);
-}
-
-
-GuWriter*
-gu_new_utf8_writer(GuOut* utf8_out, GuPool* pool)
-{
- GuOutStream* stream = gu_out_proxy_stream(utf8_out, pool);
- GuWriter* wtr = gu_new(GuWriter, pool);
- wtr->out_ = gu_init_out(stream);
- return wtr;
-}
-
-extern inline void
-gu_ucs_write(GuUCS ucs, GuWriter* wtr, GuExn* err);
-
-extern inline void
-gu_writer_flush(GuWriter* wtr, GuExn* err);
-
-extern inline void
-gu_putc(char c, GuWriter* wtr, GuExn* err);
-
-extern inline void
-gu_puts(const char* str, GuWriter* wtr, GuExn* err);
-
-extern inline size_t
-gu_utf8_write(const uint8_t* src, size_t sz, GuWriter* wtr, GuExn* err);
-