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