]>
Commit | Line | Data |
---|---|---|
c84142e8 UD |
1 | /* Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
2 | This file is part of the GNU C Library. | |
3 | ||
4 | The GNU C Library is free software; you can redistribute it and/or | |
5 | modify it under the terms of the GNU Library General Public License as | |
6 | published by the Free Software Foundation; either version 2 of the | |
7 | License, or (at your option) any later version. | |
8 | ||
9 | The GNU C Library is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | Library General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU Library General Public | |
15 | License along with the GNU C Library; see the file COPYING.LIB. If not, | |
16 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
17 | Boston, MA 02111-1307, USA. */ | |
18 | ||
19 | #define __NO_WCTYPE | |
20 | #include <wctype.h> | |
21 | ||
22 | /* Provide real-function versions of all the wctype macros. */ | |
23 | ||
24 | #define func(name, type) \ | |
25 | int name (wint_t wc, __locale_t locale) \ | |
26 | { return __iswctype_l (wc, type, locale); } | |
27 | ||
28 | func (__iswalnum_l, _ISalnum) | |
29 | func (__iswalpha_l, _ISalpha) | |
30 | func (__iswcntrl_l, _IScntrl) | |
31 | func (__iswdigit_l, _ISdigit) | |
32 | func (__iswlower_l, _ISlower) | |
33 | func (__iswgraph_l, _ISgraph) | |
34 | func (__iswprint_l, _ISprint) | |
35 | func (__iswpunct_l, _ISpunct) | |
36 | func (__iswspace_l, _ISspace) | |
37 | func (__iswupper_l, _ISupper) | |
38 | func (__iswxdigit_l, _ISxdigit) | |
39 | ||
40 | wint_t | |
41 | (__towlower_l) (wint_t wc, __locale_t locale) | |
42 | { | |
43 | return __towctrans_l (wc, locale->__ctype_tolower, locale); | |
44 | } | |
45 | ||
46 | wint_t | |
47 | (__towupper_l) (wint_t wc, __locale_t locale) | |
48 | { | |
49 | return __towctrans_l (wc, locale->__ctype_toupper, locale); | |
50 | } |