f5932eff29e46d4b3e5903bb095779e78a29d01c
[m6w6/ext-psi] / m4 / posix / wchar.m4
1 PSI_CHECK_WCHAR() {
2
3 PSI_TYPE(wint_t, int)
4 PSI_STRUCT(mbstate_t)
5
6 PSI_CONST(WINT_MIN, int)
7 PSI_CONST(WINT_MAX, int)
8 PSI_CONST(WEOF, int)
9
10 PSI_DECL(wint_t btowc, [(int c)])
11 PSI_DECL(wint_t fgetwc, [(FILE *stream)])
12 PSI_DECL(wchar_t *fgetws, [(wchar_t *ws, int n, FILE *stream)])
13 PSI_DECL(wint_t fputwc, [(wchar_t c, FILE *stream)])
14 PSI_DECL(int fputws, [(const wchar_t *ws, FILE *stream)])
15 PSI_DECL(int fwide, [(FILE *stream, int mode)])
16 PSI_DECL(int fwprintf, [(FILE *stream, const wchar_t *format)], vararg)
17 PSI_DECL(int fwscanf, [(FILE *stream, const wchar_t *format)], vararg)
18 PSI_DECL(wint_t getwc, [(FILE *stream)])
19 PSI_DECL(wint_t getwchar, [(void)])
20 PSI_DECL(size_t mbrlen, [(const char *s, size_t n, mbstate_t *ps)])
21 PSI_DECL(size_t mbrtowc, [(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)])
22 PSI_DECL(int mbsinit, [(const mbstate_t *ps)])
23 PSI_DECL(size_t mbsnrtowcs, [(wchar_t *dst, const char **src, size_t nms, size_t len, mbstate_t *ps)])
24 PSI_DECL(size_t mbsrtowcs, [(wchar_t *dst, const char **src, size_t len, mbstate_t *ps)])
25 PSI_DECL(FILE *open_wmemstream, [(wchar_t **ptr, size_t *size)])
26 PSI_DECL(wint_t putwc, [(wchar_t wc, FILE *stream)])
27 PSI_DECL(wint_t putwchar, [(wchar_t wc)])
28 PSI_DECL(int swprintf, [(wchar_t *wcs, size_t maxlen, const wchar_t *format)], vararg)
29 PSI_DECL(int swscanf, [(const wchar_t *ws, const wchar_t *format)], vararg)
30 PSI_DECL(wint_t ungetwc, [(wint_t wc, FILE *stream)])
31 PSI_DECL(wchar_t *wcpcpy, [(wchar_t *dest, const wchar_t *src)])
32 PSI_DECL(wchar_t *wcpncpy, [(wchar_t *dest, const wchar_t *src, size_t n)])
33 PSI_DECL(size_t wcrtomb, [(char *s, wchar_t wc, mbstate_t *ps)])
34 PSI_DECL(int wcscasecmp, [(const wchar_t *s1, const wchar_t *s2)])
35 PSI_DECL(int wcscasecmp_l, [(const wchar_t *s1, const wchar_t *s2, locale_t loc)])
36 PSI_DECL(wchar_t *wcscat, [(wchar_t *dest, const wchar_t *src)])
37 PSI_DECL(wchar_t *wcschr, [(const wchar_t *wcs, wchar_t wc)])
38 PSI_DECL(int wcscmp, [(const wchar_t *s1, const wchar_t *s2)])
39 PSI_DECL(int wcscoll, [(const wchar_t *s1, const wchar_t *s2)])
40 PSI_DECL(int wcscoll_l, [(const wchar_t *s1, const wchar_t *s2, locale_t loc)])
41 PSI_DECL(wchar_t *wcscpy, [(wchar_t *dest, const wchar_t *src)])
42 PSI_DECL(size_t wcscspn, [(const wchar_t *wcs, const wchar_t *reject)])
43 PSI_DECL(wchar_t *wcsdup, [(const wchar_t *s)])
44 PSI_DECL(size_t wcsftime, [(wchar_t *wcs, size_t maxsize, const wchar_t *format, const struct tm *timeptr)])
45 PSI_DECL(size_t wcslen, [(const wchar_t *s)])
46 PSI_DECL(int wcsncasecmp, [(const wchar_t *s1, const wchar_t *s2, size_t n)])
47 PSI_DECL(int wcsncasecmp_l, [(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc)])
48 PSI_DECL(wchar_t *wcsncat, [(wchar_t *dest, const wchar_t *src, size_t n)])
49 PSI_DECL(int wcsncmp, [(const wchar_t *s1, const wchar_t *s2, size_t n)])
50 PSI_DECL(wchar_t *wcsncpy, [(wchar_t *dest, const wchar_t *src, size_t n)])
51 PSI_DECL(size_t wcsnlen, [(const wchar_t *s, size_t maxlen)])
52 PSI_DECL(size_t wcsnrtombs, [(char *dest, const wchar_t **src, size_t nwc, size_t len, mbstate_t *ps)])
53 PSI_DECL(wchar_t *wcspbrk, [(const wchar_t *wcs, const wchar_t *accept)])
54 PSI_DECL(wchar_t *wcsrchr, [(const wchar_t *wcs, wchar_t wc)])
55 PSI_DECL(size_t wcsrtombs, [(char *dest, const wchar_t **src, size_t n, mbstate_t *ps)])
56 PSI_DECL(size_t wcsspn, [(const wchar_t *wcs, const wchar_t *accept)])
57 PSI_DECL(wchar_t *wcsstr, [(const wchar_t *haystack, const wchar_t *needle)])
58 PSI_DECL(double wcstod, [(const wchar_t *nptr, wchar_t **endptr)])
59 PSI_DECL(float wcstof, [(const wchar_t *nptr, wchar_t **endptr)])
60 PSI_DECL(wchar_t *wcstok, [(wchar_t *wcs, const wchar_t *delim, wchar_t **ptr)])
61 PSI_DECL(long wcstol, [(const wchar_t *nptr, wchar_t **endptr, int base)])
62 PSI_DECL(long double wcstold, [(const wchar_t *nptr, wchar_t **endptr)])
63 PSI_DECL(long long wcstoll, [(const wchar_t *nptr, wchar_t **endptr, int base)])
64 PSI_DECL(unsigned long wcstoul, [(const wchar_t *nptr, wchar_t **endptr, int base)])
65 PSI_DECL(unsigned long long wcstoull, [(const wchar_t *nptr, wchar_t **endptr, int base)])
66 PSI_DECL(int wcswidth, [(const wchar_t *s, size_t n)])
67 PSI_DECL(size_t wcsxfrm, [(wchar_t *ws1, const wchar_t *ws2, size_t n)])
68 PSI_DECL(size_t wcsxfrm_l, [(wchar_t *ws1, const wchar_t *ws2, size_t n, locale_t loc)])
69 PSI_DECL(int wctob, [(wint_t c)])
70 PSI_DECL(int wcwidth, [(wchar_t c)])
71 PSI_DECL(wchar_t *wmemchr, [(const wchar_t *s, wchar_t c, size_t n)])
72 PSI_DECL(int wmemcmp, [(const wchar_t *s1, const wchar_t *s2, size_t n)])
73 PSI_DECL(wchar_t *wmemcpy, [(wchar_t *dest, const wchar_t *src, size_t n)])
74 PSI_DECL(wchar_t *wmemmove, [(wchar_t *dest, const wchar_t *src, size_t n)])
75 PSI_DECL(wchar_t *wmemset, [(wchar_t *wcs, wchar_t wc, size_t n)])
76 PSI_DECL(int wprintf, [(const wchar_t *format)], vararg)
77 PSI_DECL(int wscanf, [(const wchar_t *format)], vararg)
78 }