summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/big5.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/big5.c')
-rw-r--r--lib/libc/locale/big5.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/libc/locale/big5.c b/lib/libc/locale/big5.c
index dab181d..44b9957 100644
--- a/lib/libc/locale/big5.c
+++ b/lib/libc/locale/big5.c
@@ -38,9 +38,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)big5.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
-#include <sys/param.h>
+#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/types.h>
#include <errno.h>
#include <runetype.h>
#include <stdlib.h>
@@ -48,11 +49,11 @@ __FBSDID("$FreeBSD$");
#include <wchar.h>
#include "mblocal.h"
-int _BIG5_init(_RuneLocale *);
-size_t _BIG5_mbrtowc(wchar_t * __restrict, const char * __restrict, size_t,
- mbstate_t * __restrict);
-int _BIG5_mbsinit(const mbstate_t *);
-size_t _BIG5_wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict);
+static size_t _BIG5_mbrtowc(wchar_t * __restrict, const char * __restrict,
+ size_t, mbstate_t * __restrict);
+static int _BIG5_mbsinit(const mbstate_t *);
+static size_t _BIG5_wcrtomb(char * __restrict, wchar_t,
+ mbstate_t * __restrict);
typedef struct {
wchar_t ch;
@@ -70,7 +71,7 @@ _BIG5_init(_RuneLocale *rl)
return (0);
}
-int
+static int
_BIG5_mbsinit(const mbstate_t *ps)
{
@@ -85,7 +86,7 @@ _big5_check(u_int c)
return ((c >= 0xa1 && c <= 0xfe) ? 2 : 1);
}
-size_t
+static size_t
_BIG5_mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, size_t n,
mbstate_t * __restrict ps)
{
@@ -146,7 +147,7 @@ _BIG5_mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, size_t n,
}
}
-size_t
+static size_t
_BIG5_wcrtomb(char * __restrict s, wchar_t wc, mbstate_t * __restrict ps)
{
_BIG5State *bs;
OpenPOWER on IntegriCloud