From 309ce1f19f774f592d790e89de900dd81300c90b Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 19 Sep 2002 17:30:05 +0000 Subject: Hide my personal #warning reminders. Add __wcschrnul, rename strchrnul to __strchrnul, and add weak aliases for them. --- libc/misc/locale/locale.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libc/misc/locale') diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c index 689257b41..f3c23f9fb 100644 --- a/libc/misc/locale/locale.c +++ b/libc/misc/locale/locale.c @@ -46,7 +46,7 @@ #ifdef __LOCALE_C_ONLY -link_warning(setlocale,"the 'setlocale' function supports only C|POSIX locales"); +link_warning(setlocale,"the 'setlocale' function supports only C|POSIX locales") static const char C_string[] = "C"; @@ -272,8 +272,7 @@ char *setlocale(int category, const char *locale) #ifdef __LOCALE_C_ONLY -#warning localeconv is hardwired for C/POSIX locale only -link_warning(localeconv,"the 'localeconv' function is hardwired for C/POSIX locale only"); +link_warning(localeconv,"the 'localeconv' function is hardwired for C/POSIX locale only") static struct lconv the_lconv; @@ -431,7 +430,9 @@ void _locale_set(const unsigned char *p) r = CODESET_LIST; __global_locale.codeset = r + r[c -= 3]; __global_locale.encoding = __ctype_encoding_8_bit; +#ifdef __UCLIBC_MJN3_ONLY__ #warning REMINDER: update 8 bit mb_cur_max when trasnlit implemented! +#endif /* TODO - update when translit implemented! */ __global_locale.mb_cur_max = 1; c8b = __locale_mmap->codeset_8_bit + c; -- cgit v1.2.3