Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>

*** 25,34 **** --- 25,37 ---- /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ + /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + */ /* * An application should not include this header directly. Instead it * should be included only through the inclusion of other Sun headers. *
*** 41,52 **** */ #ifndef _ISO_WCTYPE_ISO_H #define _ISO_WCTYPE_ISO_H - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/feature_tests.h> #ifdef __cplusplus extern "C" { #endif --- 44,53 ----
*** 92,109 **** extern int iswprint(wint_t); extern int iswpunct(wint_t); extern int iswspace(wint_t); extern int iswupper(wint_t); extern int iswxdigit(wint_t); /* tow* also become functions */ extern wint_t towlower(wint_t); extern wint_t towupper(wint_t); extern wctrans_t wctrans(const char *); extern wint_t towctrans(wint_t, wctrans_t); extern int iswctype(wint_t, wctype_t); extern wctype_t wctype(const char *); ! #else extern int iswalnum(); extern int iswalpha(); extern int iswcntrl(); extern int iswdigit(); extern int iswgraph(); --- 93,116 ---- extern int iswprint(wint_t); extern int iswpunct(wint_t); extern int iswspace(wint_t); extern int iswupper(wint_t); extern int iswxdigit(wint_t); + + #if (__cplusplus >= 201103L) || defined(_STDC_C99) || defined(_XPG6) || \ + !defined(_STRICT_SYMBOLS) + extern int iswblank(wint_t); + #endif + /* tow* also become functions */ extern wint_t towlower(wint_t); extern wint_t towupper(wint_t); extern wctrans_t wctrans(const char *); extern wint_t towctrans(wint_t, wctrans_t); extern int iswctype(wint_t, wctype_t); extern wctype_t wctype(const char *); ! #else /* __STDC__ */ extern int iswalnum(); extern int iswalpha(); extern int iswcntrl(); extern int iswdigit(); extern int iswgraph();
*** 118,128 **** --- 125,138 ---- extern wint_t towupper(); extern wctrans_t wctrans(); extern wint_t towctrans(); extern int iswctype(); extern wctype_t wctype(); + #if defined(_XPG6) || !defined(_STRICT_SYMBOLS) + extern int iswblank(); #endif + #endif /* __STDC__ */ /* bit definition for character class */ #define _E1 0x00000100 /* phonogram (international use) */ #define _E2 0x00000200 /* ideogram (international use) */