summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/utf2.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-05-12 14:09:04 +0000
committertjr <tjr@FreeBSD.org>2004-05-12 14:09:04 +0000
commite3f042f4aff04f73fd65f7788919c29bd71cfd1e (patch)
tree77a339e636541d66b22a5461fcb390f9d11a7785 /lib/libc/locale/utf2.c
parent03790daf0ef18da07a62c9461c2f4e9690fdb479 (diff)
downloadFreeBSD-src-e3f042f4aff04f73fd65f7788919c29bd71cfd1e.zip
FreeBSD-src-e3f042f4aff04f73fd65f7788919c29bd71cfd1e.tar.gz
Move prototypes of various encoding-related functions into a new header
file to avoid extern'ing them all over the place.
Diffstat (limited to 'lib/libc/locale/utf2.c')
-rw-r--r--lib/libc/locale/utf2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/locale/utf2.c b/lib/libc/locale/utf2.c
index 393a808..cf0e3c8 100644
--- a/lib/libc/locale/utf2.c
+++ b/lib/libc/locale/utf2.c
@@ -44,11 +44,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
-
-extern size_t (*__mbrtowc)(wchar_t * __restrict, const char * __restrict,
- size_t, mbstate_t * __restrict);
-extern int (*__mbsinit)(const mbstate_t *);
-extern size_t (*__wcrtomb)(char * __restrict, wchar_t, mbstate_t * __restrict);
+#include "mblocal.h"
size_t _UTF2_mbrtowc(wchar_t * __restrict, const char * __restrict, size_t,
mbstate_t * __restrict);
OpenPOWER on IntegriCloud