sigaltstck: add missing include
[libc-test.git] / src / api / wchar.c
bloba4a1f33ccca016dfbabd5259a0958e81e49a4446
1 #include <wchar.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 #ifdef _POSIX_C_SOURCE
8 T(FILE)
9 T(locale_t)
10 T(va_list)
11 #endif
12 T(mbstate_t)
13 T(size_t)
14 T(wchar_t)
15 T(wint_t)
16 T(struct tm)
17 C(WCHAR_MAX)
18 C(WCHAR_MIN)
19 C(WEOF)
20 {void *x=NULL;}
21 {wint_t(*p)(int) = btowc;}
22 {wint_t(*p)(FILE*) = fgetwc;}
23 {wchar_t*(*p)(wchar_t*restrict,int,FILE*restrict) = fgetws;}
24 {wint_t(*p)(wchar_t,FILE*) = fputwc;}
25 {int(*p)(const wchar_t*restrict,FILE*restrict) = fputws;}
26 {int(*p)(FILE*,int) = fwide;}
27 {int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwprintf;}
28 {int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwscanf;}
29 {wint_t(*p)(FILE*) = getwc;}
30 {wint_t(*p)(void) = getwchar;}
31 {size_t(*p)(const char*restrict,size_t,mbstate_t*restrict) = mbrlen;}
32 {size_t(*p)(wchar_t*restrict,const char*restrict,size_t,mbstate_t*restrict) = mbrtowc;}
33 {int(*p)(const mbstate_t*) = mbsinit;}
34 {size_t(*p)(wchar_t*restrict,const char**restrict,size_t,mbstate_t*restrict) = mbsrtowcs;}
35 {wint_t(*p)(wchar_t,FILE*) = putwc;}
36 {wint_t(*p)(wchar_t) = putwchar;}
37 {int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,...) = swprintf;}
38 {int(*p)(const wchar_t*restrict,const wchar_t*restrict,...) = swscanf;}
39 {wint_t(*p)(wint_t,FILE*) = ungetwc;}
40 {int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwprintf;}
41 {int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwscanf;}
42 {int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,va_list) = vswprintf;}
43 {int(*p)(const wchar_t*restrict,const wchar_t*restrict,va_list) = vswscanf;}
44 {int(*p)(const wchar_t*restrict,va_list) = vwprintf;}
45 {int(*p)(const wchar_t*restrict,va_list) = vwscanf;}
46 {size_t(*p)(char*restrict,wchar_t,mbstate_t*restrict) = wcrtomb;}
47 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcscat;}
48 {wchar_t*(*p)(const wchar_t*,wchar_t) = wcschr;}
49 {int(*p)(const wchar_t*,const wchar_t*) = wcscmp;}
50 {int(*p)(const wchar_t*,const wchar_t*) = wcscoll;}
51 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcscpy;}
52 {size_t(*p)(const wchar_t*,const wchar_t*) = wcscspn;}
53 {size_t(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,const struct tm*restrict) = wcsftime;}
54 {size_t(*p)(const wchar_t*) = wcslen;}
55 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcsncat;}
56 {int(*p)(const wchar_t*,const wchar_t*,size_t) = wcsncmp;}
57 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcsncpy;}
58 {wchar_t*(*p)(const wchar_t*,const wchar_t*) = wcspbrk;}
59 {wchar_t*(*p)(const wchar_t*,wchar_t) = wcsrchr;}
60 {size_t(*p)(char*restrict,const wchar_t**restrict,size_t,mbstate_t*restrict) = wcsrtombs;}
61 {size_t(*p)(const wchar_t*,const wchar_t*) = wcsspn;}
62 {wchar_t*(*p)(const wchar_t*restrict,const wchar_t*restrict) = wcsstr;}
63 {double(*p)(const wchar_t*restrict,wchar_t**restrict) = wcstod;}
64 {float(*p)(const wchar_t*restrict,wchar_t**restrict) = wcstof;}
65 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,wchar_t**restrict) = wcstok;}
66 {long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstol;}
67 {long double(*p)(const wchar_t*restrict,wchar_t**restrict) = wcstold;}
68 {long long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstoll;}
69 {unsigned long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstoul;}
70 {unsigned long long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstoull;}
71 {size_t(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcsxfrm;}
72 {int(*p)(wint_t) = wctob;}
73 {wchar_t*(*p)(const wchar_t*,wchar_t,size_t) = wmemchr;}
74 {int(*p)(const wchar_t*,const wchar_t*,size_t) = wmemcmp;}
75 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wmemcpy;}
76 {wchar_t*(*p)(wchar_t*,const wchar_t*,size_t) = wmemmove;}
77 {wchar_t*(*p)(wchar_t*,wchar_t,size_t) = wmemset;}
78 #ifdef _POSIX_C_SOURCE
79 {size_t(*p)(wchar_t*restrict,const char**restrict,size_t,size_t,mbstate_t*restrict) = mbsnrtowcs;}
80 {FILE*(*p)(wchar_t**,size_t*) = open_wmemstream;}
81 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcpcpy;}
82 {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcpncpy;}
83 {int(*p)(const wchar_t*,const wchar_t*) = wcscasecmp;}
84 {int(*p)(const wchar_t*,const wchar_t*,locale_t) = wcscasecmp_l;}
85 {int(*p)(const wchar_t*,const wchar_t*,locale_t) = wcscoll_l;}
86 {wchar_t*(*p)(const wchar_t*) = wcsdup;}
87 {int(*p)(const wchar_t*,const wchar_t*,size_t) = wcsncasecmp;}
88 {int(*p)(const wchar_t*,const wchar_t*,size_t,locale_t) = wcsncasecmp_l;}
89 {size_t(*p)(const wchar_t*,size_t) = wcsnlen;}
90 {size_t(*p)(char*restrict,const wchar_t**restrict,size_t,size_t,mbstate_t*restrict) = wcsnrtombs;}
91 {size_t(*p)(wchar_t*restrict,const wchar_t*restrict,size_t,locale_t) = wcsxfrm_l;}
92 #endif
93 #ifdef _XOPEN_SOURCE
94 {int(*p)(const wchar_t*,size_t) = wcswidth;}
95 {int(*p)(wchar_t) = wcwidth;}
96 #endif