From c09b6f8ab6edefba52183f8c5ecf6520a8b7ad8f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 6 Feb 2012 21:33:40 -0500 Subject: fix some omissions and mistakes in locale_t interface definitions --- include/wctype.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include/wctype.h') diff --git a/include/wctype.h b/include/wctype.h index ee5be7c6..f7be2cb0 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -43,6 +43,30 @@ wctype_t wctype(const char *); #undef iswdigit #define iswdigit(a) (((unsigned)(a)-L'0') < 10) +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + +int iswalnum_l(wint_t, locale_t); +int iswalpha_l(wint_t, locale_t); +int iswblank_l(wint_t, locale_t); +int iswcntrl_l(wint_t, locale_t); +int iswdigit_l(wint_t, locale_t); +int iswgraph_l(wint_t, locale_t); +int iswlower_l(wint_t, locale_t); +int iswprint_l(wint_t, locale_t); +int iswpunct_l(wint_t, locale_t); +int iswspace_l(wint_t, locale_t); +int iswupper_l(wint_t, locale_t); +int iswxdigit_l(wint_t, locale_t); +int iswctype_l(wint_t, wctype_t, locale_t); +wint_t towlower_l(wint_t, locale_t); +wint_t towupper_l(wint_t, locale_t); +wint_t towctrans_l(wint_t, wctrans_t, locale_t); +wctrans_t wctrans_l(const char *, locale_t); +wctype_t wctype_l(const char *, locale_t); + +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.1