summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-12-05 10:44:04 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-12-05 10:44:04 -0800
commit0c86abee82a66963ec3c46e36c63ba8df89e1fa9 (patch)
treecd49af1479fea5c6550161039d24b249b6a9c7e1 /utf8.c
parentbdfe648ad88513857c3f9ef670ac0cae47bd606c (diff)
downloadtxr-0c86abee82a66963ec3c46e36c63ba8df89e1fa9.tar.gz
txr-0c86abee82a66963ec3c46e36c63ba8df89e1fa9.tar.bz2
txr-0c86abee82a66963ec3c46e36c63ba8df89e1fa9.zip
More void * to mem_t * conversion.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 96905b0f..efe2afb9 100644
--- a/utf8.c
+++ b/utf8.c
@@ -184,7 +184,7 @@ char *utf8_dup_to(const wchar_t *wstr)
return str;
}
-int utf8_encode(wchar_t wch, int (*put)(int ch, void *ctx), void *ctx)
+int utf8_encode(wchar_t wch, int (*put)(int ch, mem_t *ctx), mem_t *ctx)
{
if (wch < 0x80) {
return put(wch, ctx);
@@ -212,7 +212,7 @@ void utf8_decoder_init(utf8_decoder_t *ud)
ud->head = ud->tail = ud->back = 0;
}
-wint_t utf8_decode(utf8_decoder_t *ud, int (*get)(void *ctx), void *ctx)
+wint_t utf8_decode(utf8_decoder_t *ud, int (*get)(mem_t *ctx), mem_t *ctx)
{
for (;;) {
int ch;