1#ifndef _WCTYPE_H_ 2#define _WCTYPE_H_ 3 4#include <_ansi.h> 5#include <sys/_types.h> 6 7#define __need_wint_t 8#include <stddef.h> 9 10#ifndef WEOF 11# define WEOF ((wint_t)-1) 12#endif 13 14_BEGIN_STD_C 15 16/* We can honor AEABI portability if this condition is true, since we 17 can pretend that the integer values returned by and passed to 18 functions are really pointers. The necessary preprocessor macros are 19 only defined in GCC versions >= 4.3, though. */ 20#if defined __GNUC__ && __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 && __SIZEOF_INT__ == __SIZEOF_POINTER__ 21# if defined _AEABI_PORTABILITY_LEVEL && _AEABI_PORTABILITY_LEVEL != 0 && !defined _AEABI_PORTABLE 22# define _AEABI_PORTABLE 23# endif 24#endif 25 26#ifndef _WCTYPE_T 27#define _WCTYPE_T 28# ifdef _AEABI_PORTABLE 29typedef void *wctype_t; 30# else 31typedef int wctype_t; 32# endif 33#endif /* !_WCTYPE_T */ 34 35#ifndef _WCTRANS_T 36#define _WCTRANS_T 37# ifdef _AEABI_PORTABLE 38typedef void *wctrans_t; 39# else 40typedef int wctrans_t; 41# endif 42#endif /* !_WCTRANS_T */ 43 44int _EXFUN(iswalpha, (wint_t)); 45int _EXFUN(iswalnum, (wint_t)); 46int _EXFUN(iswblank, (wint_t)); 47int _EXFUN(iswcntrl, (wint_t)); 48int _EXFUN(iswctype, (wint_t, wctype_t)); 49int _EXFUN(iswdigit, (wint_t)); 50int _EXFUN(iswgraph, (wint_t)); 51int _EXFUN(iswlower, (wint_t)); 52int _EXFUN(iswprint, (wint_t)); 53int _EXFUN(iswpunct, (wint_t)); 54int _EXFUN(iswspace, (wint_t)); 55int _EXFUN(iswupper, (wint_t)); 56int _EXFUN(iswxdigit, (wint_t)); 57wint_t _EXFUN(towctrans, (wint_t, wctrans_t)); 58wint_t _EXFUN(towupper, (wint_t)); 59wint_t _EXFUN(towlower, (wint_t)); 60wctrans_t _EXFUN(wctrans, (const char *)); 61wctype_t _EXFUN(wctype, (const char *)); 62 63_END_STD_C 64 65#endif /* _WCTYPE_H_ */ 66