sigaltstck: add missing include
[libc-test.git] / src / api / wctype.c
blob9378acfbfa90045c432ec1f3c678240759242ff0
1 #include <wctype.h>
2 #define T(t) (t*)0;
3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
5 static void f()
7 T(wint_t)
8 T(wctrans_t)
9 T(wctype_t)
10 #ifdef _POSIX_C_SOURCE
11 T(locale_t)
12 #endif
13 C(WEOF)
14 {int(*p)(wint_t) = iswalnum;}
15 {int(*p)(wint_t) = iswalpha;}
16 {int(*p)(wint_t) = iswblank;}
17 {int(*p)(wint_t) = iswcntrl;}
18 {int(*p)(wint_t,wctype_t) = iswctype;}
19 {int(*p)(wint_t) = iswdigit;}
20 {int(*p)(wint_t) = iswgraph;}
21 {int(*p)(wint_t) = iswlower;}
22 {int(*p)(wint_t) = iswprint;}
23 {int(*p)(wint_t) = iswpunct;}
24 {int(*p)(wint_t) = iswspace;}
25 {int(*p)(wint_t) = iswupper;}
26 {int(*p)(wint_t) = iswxdigit;}
27 {wint_t(*p)(wint_t,wctrans_t) = towctrans;}
28 {wint_t(*p)(wint_t) = towlower;}
29 {wint_t(*p)(wint_t) = towupper;}
30 {wctrans_t(*p)(const char*) = wctrans;}
31 {wctype_t(*p)(const char*) = wctype;}
32 #ifdef _POSIX_C_SOURCE
33 {int(*p)(wint_t,locale_t) = iswalnum_l;}
34 {int(*p)(wint_t,locale_t) = iswalpha_l;}
35 {int(*p)(wint_t,locale_t) = iswblank_l;}
36 {int(*p)(wint_t,locale_t) = iswcntrl_l;}
37 {int(*p)(wint_t,wctype_t,locale_t) = iswctype_l;}
38 {int(*p)(wint_t,locale_t) = iswdigit_l;}
39 {int(*p)(wint_t,locale_t) = iswgraph_l;}
40 {int(*p)(wint_t,locale_t) = iswlower_l;}
41 {int(*p)(wint_t,locale_t) = iswprint_l;}
42 {int(*p)(wint_t,locale_t) = iswpunct_l;}
43 {int(*p)(wint_t,locale_t) = iswspace_l;}
44 {int(*p)(wint_t,locale_t) = iswupper_l;}
45 {int(*p)(wint_t,locale_t) = iswxdigit_l;}
46 {wint_t(*p)(wint_t,wctrans_t,locale_t) = towctrans_l;}
47 {wint_t(*p)(wint_t,locale_t) = towlower_l;}
48 {wint_t(*p)(wint_t,locale_t) = towupper_l;}
49 {wctrans_t(*p)(const char*,locale_t) = wctrans_l;}
50 {wctype_t(*p)(const char*,locale_t) = wctype_l;}
51 #endif