* sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
[glibc/pb-stable.git] / wctype / wcfuncs_l.c
blob775676eb38bafb8c2243ccb9e8856f100260ad77
1 /* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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. */
19 #define __NO_WCTYPE
20 #include <wctype.h>
22 /* Provide real-function versions of all the wctype macros. */
24 #define func(name, type) \
25 int name (wint_t wc, __locale_t locale) \
26 { return __iswctype_l (wc, type, locale); }
28 func (__iswalnum_l, _ISwalnum)
29 func (__iswalpha_l, _ISwalpha)
30 func (__iswcntrl_l, _ISwcntrl)
31 func (__iswdigit_l, _ISwdigit)
32 func (__iswlower_l, _ISwlower)
33 func (__iswgraph_l, _ISwgraph)
34 func (__iswprint_l, _ISwprint)
35 func (__iswpunct_l, _ISwpunct)
36 func (__iswspace_l, _ISwspace)
37 func (__iswupper_l, _ISwupper)
38 func (__iswxdigit_l, _ISwxdigit)
40 wint_t
41 (__towlower_l) (wint_t wc, __locale_t locale)
43 return __towctrans_l (wc, locale->__ctype_tolower, locale);
46 wint_t
47 (__towupper_l) (wint_t wc, __locale_t locale)
49 return __towctrans_l (wc, locale->__ctype_toupper, locale);