diff options
author | phantom <phantom@FreeBSD.org> | 2001-02-19 19:09:00 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2001-02-19 19:09:00 +0000 |
commit | fa610ba2e242dfce303ff40014005996752b81c2 (patch) | |
tree | d4a4b0cd314db56841bf221d80eafc05b40b08b8 /lib/libc | |
parent | 1642dbf1c2e4433430084602c5b95d8702d3fca5 (diff) | |
download | FreeBSD-src-fa610ba2e242dfce303ff40014005996752b81c2.zip FreeBSD-src-fa610ba2e242dfce303ff40014005996752b81c2.tar.gz |
cleanup commentaries
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/nl_langinfo.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c index 2104073..4356dd6 100644 --- a/lib/libc/locale/nl_langinfo.c +++ b/lib/libc/locale/nl_langinfo.c @@ -92,29 +92,29 @@ nl_langinfo(nl_item item) { ret = (char*) __get_current_time_locale()->mon[_REL(ABMON_1)]; break; case ERA: - /* XXX: ??? */ + /* XXX: need to be implemented */ ret = ""; break; case ERA_D_FMT: - /* XXX: ??? */ + /* XXX: need to be implemented */ ret = ""; break; case ERA_D_T_FMT: - /* XXX: ??? */ + /* XXX: need to be implemented */ ret = ""; break; case ERA_T_FMT: - /* XXX: ??? */ + /* XXX: need to be implemented */ ret = ""; break; case ALT_DIGITS: - /* XXX: ??? */ + /* XXX: need to be implemented */ ret = ""; break; - case RADIXCHAR: /* deprecated */ + case RADIXCHAR: ret = (char*) __get_current_numeric_locale()->decimal_point; break; - case THOUSEP: /* deprecated */ + case THOUSEP: ret = (char*) __get_current_numeric_locale()->thousands_sep; break; case YESEXPR: @@ -123,13 +123,17 @@ nl_langinfo(nl_item item) { case NOEXPR: ret = (char*) __get_current_messages_locale()->noexpr; break; - case YESSTR: /* deprecated */ + /* All items marked with LEGACY are available, but not recomended + * by SUSv2 to be used in portable applications since they're subject + * to remove in future specification editions + */ + case YESSTR: /* LEGACY */ ret = (char*) __get_current_messages_locale()->yesstr; break; - case NOSTR: /* deprecated */ + case NOSTR: /* LEGACY */ ret = (char*) __get_current_messages_locale()->nostr; break; - case CRNCYSTR: /* deprecated */ + case CRNCYSTR: ret = ""; cs = (char*) __get_current_monetary_locale()->currency_symbol; if (*cs != '\0') { |