This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
iswblank
- To: libc-alpha at sources dot redhat dot com
- Subject: iswblank
- From: Bruno Haible <haible at ilog dot fr>
- Date: Fri, 1 Sep 2000 14:00:20 +0200 (CEST)
Now that iswblank is standardized by ISO C 99 like the other wctype.h isw*
functions, I can see no reason to have it in a separate source file with
identical implementation as the other isw* functions.
2000-08-31 Bruno Haible <haible@clisp.cons.org>
* wctype/wcfuncs.c (iswblank): New function.
* wctype/wcfuncs_l.c (__iswblank_l): New function.
* wctype/wcextra.c: Remove file.
* wctype/wcextra_l.c: Remove file.
* wctype/Makefile (distribute): Remove wcextra and wcextra_l.
*** glibc-20000831/wctype/wcfuncs.c.bak Thu Aug 31 13:01:50 2000
--- glibc-20000831/wctype/wcfuncs.c Fri Sep 1 01:51:43 2000
***************
*** 39,44 ****
--- 39,46 ----
func (iswalnum, __ISwalnum)
#undef iswalpha
func (iswalpha, __ISwalpha)
+ #undef iswblank
+ func (iswblank, __ISwblank)
#undef iswcntrl
func (iswcntrl, __ISwcntrl)
#undef iswdigit
*** glibc-20000831/wctype/wcfuncs_l.c.bak Thu Aug 31 13:00:23 2000
--- glibc-20000831/wctype/wcfuncs_l.c Fri Sep 1 01:52:56 2000
***************
*** 35,40 ****
--- 35,41 ----
func (__iswalnum_l, __ISwalnum)
func (__iswalpha_l, __ISwalpha)
+ func (__iswblank_l, __ISwblank)
func (__iswcntrl_l, __ISwcntrl)
func (__iswdigit_l, __ISwdigit)
func (__iswlower_l, __ISwlower)
*** glibc-20000831/wctype/wcextra.c.bak Thu Aug 31 13:02:43 2000
--- glibc-20000831/wctype/wcextra.c Fri Sep 1 01:51:54 2000
***************
*** 1,33 ****
- /* Additional non standardized wide character classification functions.
- Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
- 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.
-
- 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 <wctype.h>
- #include <stdint.h>
-
- #include "wchar-lookup.h"
-
- /* This is not exported. */
- extern const char *__ctype32_wctype[12];
-
- int
- (iswblank) (wint_t wc)
- {
- return wctype_table_lookup (__ctype32_wctype[__ISwblank], wc);
- }
--- 0 ----
*** glibc-20000831/wctype/wcextra_l.c.bak Thu Aug 31 13:01:18 2000
--- glibc-20000831/wctype/wcextra_l.c Fri Sep 1 01:52:53 2000
***************
*** 1,35 ****
- /* Additional non standardized wide character classification functions.
- Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
- 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.
-
- 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 <wctype.h>
- #include <stdint.h>
- #include <locale/localeinfo.h>
-
- #define USE_IN_EXTENDED_LOCALE_MODEL 1
- #include "wchar-lookup.h"
-
-
- int
- (__iswblank_l) (wint_t wc, __locale_t locale)
- {
- size_t i = locale->__locales[LC_CTYPE]->values[_NL_ITEM_INDEX (_NL_CTYPE_CLASS_OFFSET)].word + __ISwblank;
- const char *desc = locale->__locales[LC_CTYPE]->values[i].string;
- return wctype_table_lookup (desc, wc);
- }
--- 0 ----
*** glibc-20000831/wctype/Makefile.bak Thu Aug 31 01:55:04 2000
--- glibc-20000831/wctype/Makefile Fri Sep 1 01:53:35 2000
***************
*** 23,31 ****
headers := wctype.h
distribute := wchar-lookup.h
! routines := wcfuncs wctype iswctype wctrans towctrans wcextra \
! wcfuncs_l wctype_l iswctype_l wctrans_l towctrans_l \
! wcextra_l
tests := test_wctype test_wcfuncs
--- 23,30 ----
headers := wctype.h
distribute := wchar-lookup.h
! routines := wcfuncs wctype iswctype wctrans towctrans \
! wcfuncs_l wctype_l iswctype_l wctrans_l towctrans_l
tests := test_wctype test_wcfuncs