]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/wctype.h
Update.
[thirdparty/glibc.git] / include / wctype.h
CommitLineData
390955cb
UD
1#ifndef _WCTYPE_H
2
5656e294
RM
3/* We try to get wint_t from <stddef.h>, but not all GCC versions define it
4 there. So define it ourselves if it remains undefined. */
5# define __need_wint_t
6# include <stddef.h>
7# ifndef _WINT_T
8/* Integral type unchanged by default argument promotions that can
9 hold any value corresponding to members of the extended character
10 set, as well as at least one value that does not correspond to any
11 member of the extended character set. */
12# define _WINT_T
13typedef unsigned int wint_t;
14# endif
15
16/* Need to repeat these prototypes here, as wctype/wctype.h defines all
17 these as macros and thus we couldn't add libc_hidden_proto. */
18
19extern int iswalpha (wint_t __wc);
13ece897 20extern int iswalnum (wint_t __wc);
5656e294
RM
21extern int iswdigit (wint_t __wc);
22extern int iswlower (wint_t __wc);
23extern int iswspace (wint_t __wc);
24extern int iswxdigit (wint_t __wc);
25extern wint_t towlower (wint_t __wc);
26extern wint_t towupper (wint_t __wc);
27
28libc_hidden_proto (iswalpha)
13ece897 29libc_hidden_proto (iswalnum)
5656e294
RM
30libc_hidden_proto (iswdigit)
31libc_hidden_proto (iswlower)
32libc_hidden_proto (iswspace)
33libc_hidden_proto (iswxdigit)
34libc_hidden_proto (towlower)
35libc_hidden_proto (towupper)
36
75cd5204 37#include <wctype/wctype.h>
390955cb 38
bd7f30a9 39/* Internal interfaces. */
08f60074
UD
40extern int __iswalpha_l_internal (wint_t __wc, __locale_t __locale)
41 attribute_hidden;
42extern int __iswdigit_l_internal (wint_t __wc, __locale_t __locale)
43 attribute_hidden;
44extern int __iswspace_l_internal (wint_t __wc, __locale_t __locale)
45 attribute_hidden;
46extern int __iswxdigit_l_internal (wint_t __wc, __locale_t __locale)
47 attribute_hidden;
fe559c5e 48extern int __iswspace (wint_t __wc);
bd7f30a9 49extern int __iswctype (wint_t __wc, wctype_t __desc);
08f60074 50extern int __iswctype_internal (wint_t __wc, wctype_t __desc) attribute_hidden;
bd7f30a9 51extern wctype_t __wctype (__const char *__property);
7be688b5 52extern wctrans_t __wctrans (const char *__property);
bd7f30a9
AJ
53extern wint_t __towctrans (wint_t __wc, wctrans_t __desc);
54
da4cfe38
RM
55extern __typeof (iswalnum_l) __iswalnum_l;
56extern __typeof (iswalpha_l) __iswalpha_l;
57extern __typeof (iswblank_l) __iswblank_l;
58extern __typeof (iswcntrl_l) __iswcntrl_l;
59extern __typeof (iswdigit_l) __iswdigit_l;
60extern __typeof (iswlower_l) __iswlower_l;
61extern __typeof (iswgraph_l) __iswgraph_l;
62extern __typeof (iswprint_l) __iswprint_l;
63extern __typeof (iswpunct_l) __iswpunct_l;
64extern __typeof (iswspace_l) __iswspace_l;
65extern __typeof (iswupper_l) __iswupper_l;
66extern __typeof (iswxdigit_l) __iswxdigit_l;
67extern __typeof (towlower_l) __towlower_l;
68extern __typeof (towupper_l) __towupper_l;
69
a20d8dbe
UD
70libc_hidden_proto (__iswctype)
71libc_hidden_proto (__iswalnum_l)
72libc_hidden_proto (__iswalpha_l)
73libc_hidden_proto (__iswblank_l)
74libc_hidden_proto (__iswcntrl_l)
75libc_hidden_proto (__iswdigit_l)
76libc_hidden_proto (__iswlower_l)
77libc_hidden_proto (__iswgraph_l)
78libc_hidden_proto (__iswprint_l)
79libc_hidden_proto (__iswpunct_l)
80libc_hidden_proto (__iswspace_l)
81libc_hidden_proto (__iswupper_l)
82libc_hidden_proto (__iswxdigit_l)
83libc_hidden_proto (__towlower_l)
84libc_hidden_proto (__towupper_l)
390955cb
UD
85
86#endif