diff options
author | phantom <phantom@FreeBSD.org> | 2005-02-27 15:11:09 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2005-02-27 15:11:09 +0000 |
commit | 23d961a13f47abb00dde86ee46e2e766a478aca4 (patch) | |
tree | 69f481163c9449c668aa58cf3fa5dbc37df51899 /lib/libc/locale/mblocal.h | |
parent | 31651f25d817b24f6d2b1ef090ac6120d90ed86a (diff) | |
download | FreeBSD-src-23d961a13f47abb00dde86ee46e2e766a478aca4.zip FreeBSD-src-23d961a13f47abb00dde86ee46e2e766a478aca4.tar.gz |
. Static'ize functions exported via function reference variables only.
. Replace inclusion of sys/param.h to sys/cdefs.h and sys/types.h where
appropriate.
. move _*_init() prototypes to mblocal.h, and remove these prototypes
from .c files
. use _none_init() in __setrunelocale() instead of duplicating code
. move __mb* variables from table.c to none.c allowing us to not to
export _none_*() externs, and appropriately remove them from mblocal.h
Ok'ed by: tjr
Diffstat (limited to 'lib/libc/locale/mblocal.h')
-rw-r--r-- | lib/libc/locale/mblocal.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/lib/libc/locale/mblocal.h b/lib/libc/locale/mblocal.h index 9378c0c..e424ebe 100644 --- a/lib/libc/locale/mblocal.h +++ b/lib/libc/locale/mblocal.h @@ -30,6 +30,18 @@ #define _MBLOCAL_H_ /* + * Rune initialization function prototypes. + */ +int _none_init(_RuneLocale *); +int _UTF8_init(_RuneLocale *); +int _EUC_init(_RuneLocale *); +int _GB18030_init(_RuneLocale *); +int _GB2312_init(_RuneLocale *); +int _GBK_init(_RuneLocale *); +int _BIG5_init(_RuneLocale *); +int _MSKanji_init(_RuneLocale *); + +/* * Conversion function pointers for current encoding. */ extern size_t (*__mbrtowc)(wchar_t * __restrict, const char * __restrict, @@ -41,19 +53,6 @@ extern size_t (*__wcrtomb)(char * __restrict, wchar_t, mbstate_t * __restrict); extern size_t (*__wcsnrtombs)(char * __restrict, const wchar_t ** __restrict, size_t, size_t, mbstate_t * __restrict); -/* - * Conversion functions for "NONE"/C/POSIX encoding. - */ -extern size_t _none_mbrtowc(wchar_t * __restrict, const char * __restrict, - size_t, mbstate_t * __restrict); -extern int _none_mbsinit(const mbstate_t *); -extern size_t _none_mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, - size_t, size_t, mbstate_t * __restrict); -extern size_t _none_wcrtomb(char * __restrict, wchar_t, - mbstate_t * __restrict); -extern size_t _none_wcsnrtombs(char * __restrict, const wchar_t ** __restrict, - size_t, size_t, mbstate_t * __restrict); - extern size_t __mbsnrtowcs_std(wchar_t * __restrict, const char ** __restrict, size_t, size_t, mbstate_t * __restrict); extern size_t __wcsnrtombs_std(char * __restrict, const wchar_t ** __restrict, |