summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-30 16:06:33 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-30 16:06:33 +0000
commitf4b90fe63a2bb16ce7e40ab317b4858b67d0d1d6 (patch)
treefb10ac5d404c3e842f668522d009118a9d21ca0b
parent75b1747bb2343695a736cfbb361d40026d4edeac (diff)
some more prototypes
-rw-r--r--libc/misc/ctype/ctype.c4
-rw-r--r--libc/misc/locale/locale.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c
index 70a014438..d470a2e32 100644
--- a/libc/misc/ctype/ctype.c
+++ b/libc/misc/ctype/ctype.c
@@ -137,6 +137,7 @@ extern void __isctype_assert(int c, int mask) __attribute__ ((__noreturn__)) att
#define IS_FUNC_BODY(NAME) \
+int CTYPE_NAME(NAME) (int c __LOCALE_PARAM ); \
int CTYPE_NAME(NAME) (int c __LOCALE_PARAM ) \
{ \
CTYPE_BODY(NAME,c,PASTE2(_IS,NAME)) \
@@ -207,6 +208,7 @@ IS_FUNC_BODY(cntrl);
#define __isdigit_char_or_EOF(C) __isdigit_int((C))
#endif
+int CTYPE_NAME(digit) (int C __LOCALE_PARAM);
int CTYPE_NAME(digit) (int C __LOCALE_PARAM)
{
#if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
@@ -367,6 +369,7 @@ libc_hidden_def(toupper_l)
#ifdef __UCLIBC_HAS_CTYPE_TABLES__
+int __XL_NPP(isascii)(int c);
int __XL_NPP(isascii)(int c)
{
return __isascii(c); /* locale-independent */
@@ -389,6 +392,7 @@ libc_hidden_def(isascii)
#ifdef __UCLIBC_HAS_CTYPE_TABLES__
+int __XL_NPP(toascii)(int c);
int __XL_NPP(toascii)(int c)
{
return __toascii(c); /* locale-independent */
diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index 2df4659b5..5ad829d2c 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -937,7 +937,8 @@ void attribute_hidden _locale_init_l(__locale_t base)
_locale_set_l(C_LOCALE_SELECTOR, base);
}
-void attribute_hidden _locale_init(void)
+void _locale_init(void) attribute_hidden;
+void _locale_init(void)
{
/* TODO: mmap the locale file */