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