Add more tests of erf, erfc.
[glibc.git] / include / wchar.h
blob7b5e1a16a3d5382b86e68342d0986fb0aca75af7
1 #ifndef _WCHAR_H
2 #include <wcsmbs/wchar.h>
4 # ifndef _ISOMAC
5 # ifdef _WCHAR_H
7 extern __typeof (wcscasecmp_l) __wcscasecmp_l;
8 extern __typeof (wcsncasecmp_l) __wcsncasecmp_l;
9 extern __typeof (wcscoll_l) __wcscoll_l;
10 extern __typeof (wcsxfrm_l) __wcsxfrm_l;
11 extern __typeof (wcstol_l) __wcstol_l;
12 extern __typeof (wcstoul_l) __wcstoul_l;
13 extern __typeof (wcstoll_l) __wcstoll_l;
14 extern __typeof (wcstoull_l) __wcstoull_l;
15 extern __typeof (wcstod_l) __wcstod_l;
16 extern __typeof (wcstof_l) __wcstof_l;
17 extern __typeof (wcstold_l) __wcstold_l;
18 extern __typeof (wcsftime_l) __wcsftime_l;
19 libc_hidden_proto (__wcstol_l)
20 libc_hidden_proto (__wcstoul_l)
21 libc_hidden_proto (__wcstoll_l)
22 libc_hidden_proto (__wcstoull_l)
23 libc_hidden_proto (__wcstod_l)
24 libc_hidden_proto (__wcstof_l)
25 libc_hidden_proto (__wcstold_l)
26 libc_hidden_proto (__wcsftime_l)
29 extern double __wcstod_internal (const wchar_t *__restrict __nptr,
30 wchar_t **__restrict __endptr, int __group)
31 __THROW;
32 extern float __wcstof_internal (const wchar_t *__restrict __nptr,
33 wchar_t **__restrict __endptr, int __group)
34 __THROW;
35 extern long double __wcstold_internal (const wchar_t *__restrict __nptr,
36 wchar_t **__restrict __endptr,
37 int __group) __THROW;
38 extern long int __wcstol_internal (const wchar_t *__restrict __nptr,
39 wchar_t **__restrict __endptr,
40 int __base, int __group) __THROW;
41 extern unsigned long int __wcstoul_internal (const wchar_t *__restrict __npt,
42 wchar_t **__restrict __endptr,
43 int __base, int __group) __THROW;
44 __extension__
45 extern long long int __wcstoll_internal (const wchar_t *__restrict __nptr,
46 wchar_t **__restrict __endptr,
47 int __base, int __group) __THROW;
48 __extension__
49 extern unsigned long long int __wcstoull_internal (const wchar_t *
50 __restrict __nptr,
51 wchar_t **
52 __restrict __endptr,
53 int __base,
54 int __group) __THROW;
55 libc_hidden_proto (__wcstof_internal)
56 libc_hidden_proto (__wcstod_internal)
57 libc_hidden_proto (__wcstold_internal)
58 libc_hidden_proto (__wcstol_internal)
59 libc_hidden_proto (__wcstoll_internal)
60 libc_hidden_proto (__wcstoul_internal)
61 libc_hidden_proto (__wcstoull_internal)
62 libc_hidden_proto (wcstof)
63 libc_hidden_proto (wcstod)
64 libc_hidden_proto (wcstold)
65 libc_hidden_proto (wcstol)
66 libc_hidden_proto (wcstoll)
67 libc_hidden_proto (wcstoul)
68 libc_hidden_proto (wcstoull)
70 libc_hidden_proto (__wcscasecmp_l)
71 libc_hidden_proto (__wcsncasecmp_l)
73 libc_hidden_proto (__wcscoll_l)
74 libc_hidden_proto (__wcsxfrm_l)
76 libc_hidden_proto (fputws_unlocked)
77 libc_hidden_proto (putwc_unlocked)
78 libc_hidden_proto (putwc)
80 libc_hidden_proto (vswscanf)
82 libc_hidden_proto (mbrtowc)
83 libc_hidden_proto (wcrtomb)
84 libc_hidden_proto (wcscmp)
85 libc_hidden_proto (wcsftime)
86 libc_hidden_proto (wcsspn)
87 libc_hidden_proto (wcschr)
88 /* The C++ overloading of wcschr means we have to repeat the type to
89 declare __wcschr instead of using typeof, to avoid errors in C++
90 tests. */
91 extern wchar_t *__wcschr (const wchar_t *__wcs, wchar_t __wc)
92 __THROW __attribute_pure__;
93 libc_hidden_proto (__wcschr)
94 libc_hidden_proto (wcscoll)
95 libc_hidden_proto (wcspbrk)
97 extern typeof (wmemset) __wmemset;
98 libc_hidden_proto (wmemchr)
99 libc_hidden_proto (wmemset)
100 libc_hidden_proto (__wmemset)
102 /* Now define the internal interfaces. */
103 extern int __wcscasecmp (const wchar_t *__s1, const wchar_t *__s2)
104 __attribute_pure__;
105 extern int __wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2,
106 size_t __n)
107 __attribute_pure__;
108 extern size_t __wcslen (const wchar_t *__s) __attribute_pure__;
109 extern size_t __wcsnlen (const wchar_t *__s, size_t __maxlen)
110 __attribute_pure__;
111 extern wchar_t *__wcscat (wchar_t *dest, const wchar_t *src);
112 extern wint_t __btowc (int __c);
113 extern int __mbsinit (const __mbstate_t *__ps);
114 extern size_t __mbrtowc (wchar_t *__restrict __pwc,
115 const char *__restrict __s, size_t __n,
116 __mbstate_t *__restrict __p);
117 libc_hidden_proto (__mbrtowc)
118 libc_hidden_proto (__mbrlen)
119 extern size_t __wcrtomb (char *__restrict __s, wchar_t __wc,
120 __mbstate_t *__restrict __ps);
121 extern size_t __mbsrtowcs (wchar_t *__restrict __dst,
122 const char **__restrict __src,
123 size_t __len, __mbstate_t *__restrict __ps);
124 extern size_t __wcsrtombs (char *__restrict __dst,
125 const wchar_t **__restrict __src,
126 size_t __len, __mbstate_t *__restrict __ps);
127 extern size_t __mbsnrtowcs (wchar_t *__restrict __dst,
128 const char **__restrict __src, size_t __nmc,
129 size_t __len, __mbstate_t *__restrict __ps);
130 extern size_t __wcsnrtombs (char *__restrict __dst,
131 const wchar_t **__restrict __src,
132 size_t __nwc, size_t __len,
133 __mbstate_t *__restrict __ps);
134 extern wchar_t *__wcsncpy (wchar_t *__restrict __dest,
135 const wchar_t *__restrict __src, size_t __n);
136 extern wchar_t *__wcpcpy (wchar_t *__dest, const wchar_t *__src);
137 extern wchar_t *__wcpncpy (wchar_t *__dest, const wchar_t *__src,
138 size_t __n);
139 extern wchar_t *__wmemcpy (wchar_t *__s1, const wchar_t *s2,
140 size_t __n);
141 extern wchar_t *__wmempcpy (wchar_t *__restrict __s1,
142 const wchar_t *__restrict __s2,
143 size_t __n);
144 extern wchar_t *__wmemmove (wchar_t *__s1, const wchar_t *__s2,
145 size_t __n);
146 extern wchar_t *__wcschrnul (const wchar_t *__s, wchar_t __wc)
147 __attribute_pure__;
149 extern int __vfwscanf (__FILE *__restrict __s,
150 const wchar_t *__restrict __format,
151 __gnuc_va_list __arg)
152 /* __attribute__ ((__format__ (__wscanf__, 2, 0)) */;
153 extern int __vswprintf (wchar_t *__restrict __s, size_t __n,
154 const wchar_t *__restrict __format,
155 __gnuc_va_list __arg)
156 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
157 extern int __fwprintf (__FILE *__restrict __s,
158 const wchar_t *__restrict __format, ...)
159 /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */;
160 extern int __vfwprintf (__FILE *__restrict __s,
161 const wchar_t *__restrict __format,
162 __gnuc_va_list __arg)
163 /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */;
164 #ifndef __cplusplus
165 extern int __vfwprintf_chk (FILE *__restrict __s, int __flag,
166 const wchar_t *__restrict __format,
167 __gnuc_va_list __arg)
168 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
169 extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n,
170 int __flag, size_t __s_len,
171 const wchar_t *__restrict __format,
172 __gnuc_va_list __arg)
173 /* __attribute__ ((__format__ (__wprintf__, 5, 0))) */;
174 libc_hidden_proto (__vfwprintf_chk)
175 libc_hidden_proto (__vswprintf_chk)
176 #endif
178 extern int __isoc99_fwscanf (__FILE *__restrict __stream,
179 const wchar_t *__restrict __format, ...);
180 extern int __isoc99_wscanf (const wchar_t *__restrict __format, ...);
181 extern int __isoc99_swscanf (const wchar_t *__restrict __s,
182 const wchar_t *__restrict __format, ...)
183 __THROW;
184 extern int __isoc99_vfwscanf (__FILE *__restrict __s,
185 const wchar_t *__restrict __format,
186 __gnuc_va_list __arg);
187 extern int __isoc99_vwscanf (const wchar_t *__restrict __format,
188 __gnuc_va_list __arg);
189 extern int __isoc99_vswscanf (const wchar_t *__restrict __s,
190 const wchar_t *__restrict __format,
191 __gnuc_va_list __arg) __THROW;
192 libc_hidden_proto (__isoc99_vswscanf)
193 libc_hidden_proto (__isoc99_vfwscanf)
195 /* Internal functions. */
196 extern size_t __mbsrtowcs_l (wchar_t *dst, const char **src, size_t len,
197 mbstate_t *ps, __locale_t l) attribute_hidden;
199 /* Special version. We know that all uses of mbsinit inside the libc
200 have a non-NULL parameter. And certainly we can access the
201 internals of the data structure directly. */
202 # define mbsinit(state) ((state)->__count == 0)
203 # define __mbsinit(state) ((state)->__count == 0)
205 # endif
206 # endif
207 #endif
209 /* Undefine all __need_* constants in case we are included to get those
210 constants but the whole file was already read. */
211 #undef __need_mbstate_t
212 #undef __need_wint_t