From 3df564da98071d088879b6c15e0b02e0e7952668 Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Thu, 2 Apr 2015 20:04:52 +0100 Subject: Rune16 conversion routines because Rune is 32 bits --- emu/Nt/ie-os.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'emu/Nt/ie-os.c') diff --git a/emu/Nt/ie-os.c b/emu/Nt/ie-os.c index f97b4e32..3e2654e7 100644 --- a/emu/Nt/ie-os.c +++ b/emu/Nt/ie-os.c @@ -789,39 +789,3 @@ segflush(void *a, ulong n) { return 0; } - -wchar_t * -widen(char *s) -{ - int n; - wchar_t *ws; - - n = utflen(s) + 1; - ws = smalloc(n*sizeof(wchar_t)); - utftorunes(ws, s, n); - return ws; -} - - -char * -narrowen(wchar_t *ws) -{ - char *s; - int n; - - n = widebytes(ws); - s = smalloc(n); - runestoutf(s, ws, n); - return s; -} - - -int -widebytes(wchar_t *ws) -{ - int n = 0; - - while (*ws) - n += runelen(*ws++); - return n+1; -} -- cgit v1.2.3