diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-12-05 10:44:04 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-12-05 10:44:04 -0800 |
commit | 0c86abee82a66963ec3c46e36c63ba8df89e1fa9 (patch) | |
tree | cd49af1479fea5c6550161039d24b249b6a9c7e1 /utf8.c | |
parent | bdfe648ad88513857c3f9ef670ac0cae47bd606c (diff) | |
download | txr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |