summaryrefslogtreecommitdiff
path: root/wctype
diff options
context:
space:
mode:
Diffstat (limited to 'wctype')
-rw-r--r--wctype/iswctype.c31
-rw-r--r--wctype/wctype.h25
2 files changed, 29 insertions, 27 deletions
diff --git a/wctype/iswctype.c b/wctype/iswctype.c
index 041548b2dc..58a2a5288f 100644
--- a/wctype/iswctype.c
+++ b/wctype/iswctype.c
@@ -1,21 +1,21 @@
/* Copyright (C) 1996 Free Software Foundation, Inc.
-This file is part of the GNU C Library.
-Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
+ This file is part of the GNU C Library.
+ Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
-The GNU C Library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public License as
-published by the Free Software Foundation; either version 2 of the
-License, or (at your option) any later version.
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
-The GNU C Library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
-You should have received a copy of the GNU Library General Public
-License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
#include <ctype.h>
#include <wctype.h>
@@ -27,7 +27,7 @@ extern unsigned int *__ctype32_b;
int
-iswctype (wint_t wc, wctype_t desc)
+__iswctype (wint_t wc, wctype_t desc)
{
size_t idx;
@@ -37,3 +37,4 @@ iswctype (wint_t wc, wctype_t desc)
return __ctype32_b[idx] & desc;
}
+weak_alias (__iswctype, iswctype)
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 1b83b6821c..3ba8ae7614 100644
--- a/wctype/wctype.h
+++ b/wctype/wctype.h
@@ -152,6 +152,7 @@ extern wctype_t wctype __P ((__const char *__property));
/* Determine whether the wide-character WC has the property described by
DESC. */
+extern int __iswctype __P ((wint_t __wc, wctype_t __desc));
extern int iswctype __P ((wint_t __wc, wctype_t __desc));
@@ -179,20 +180,20 @@ extern wint_t towctrans __P ((wint_t __wc, wctrans_t __desc));
#ifndef __NO_WCTYPE
-#define iswalnum(wc) iswctype ((wc), _ISalnum)
-#define iswalpha(wc) iswctype ((wc), _ISalpha)
-#define iswcntrl(wc) iswctype ((wc), _IScntrl)
-#define iswdigit(wc) iswctype ((wc), _ISdigit)
-#define iswlower(wc) iswctype ((wc), _ISlower)
-#define iswgraph(wc) iswctype ((wc), _ISgraph)
-#define iswprint(wc) iswctype ((wc), _ISprint)
-#define iswpunct(wc) iswctype ((wc), _ISpunct)
-#define iswspace(wc) iswctype ((wc), _ISspace)
-#define iswupper(wc) iswctype ((wc), _ISupper)
-#define iswxdigit(wc) iswctype ((wc), _ISxdigit)
+#define iswalnum(wc) __iswctype ((wc), _ISalnum)
+#define iswalpha(wc) __iswctype ((wc), _ISalpha)
+#define iswcntrl(wc) __iswctype ((wc), _IScntrl)
+#define iswdigit(wc) __iswctype ((wc), _ISdigit)
+#define iswlower(wc) __iswctype ((wc), _ISlower)
+#define iswgraph(wc) __iswctype ((wc), _ISgraph)
+#define iswprint(wc) __iswctype ((wc), _ISprint)
+#define iswpunct(wc) __iswctype ((wc), _ISpunct)
+#define iswspace(wc) __iswctype ((wc), _ISspace)
+#define iswupper(wc) __iswctype ((wc), _ISupper)
+#define iswxdigit(wc) __iswctype ((wc), _ISxdigit)
#ifdef __USE_GNU
-#define iswblank(wc) iswctype ((wc), _ISblank)
+#define iswblank(wc) __iswctype ((wc), _ISblank)
#endif
/* Pointer to conversion tables. */