summaryrefslogtreecommitdiff
path: root/libc/misc/locale
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-09-19 17:30:05 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-09-19 17:30:05 +0000
commit309ce1f19f774f592d790e89de900dd81300c90b (patch)
tree9032c728cb6d98dd9f3490b748cf1bab5857e475 /libc/misc/locale
parentdd3c72e1fabd08b2f03ab6a4f008609f62769373 (diff)
Hide my personal #warning reminders. Add __wcschrnul, rename strchrnul
to __strchrnul, and add weak aliases for them.
Diffstat (limited to 'libc/misc/locale')
-rw-r--r--libc/misc/locale/locale.c7
1 files changed, 4 insertions, 3 deletions
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;