summaryrefslogtreecommitdiff
path: root/wctype/wctype.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-02-13 17:54:15 +0000
committerUlrich Drepper <drepper@redhat.com>1998-02-13 17:54:15 +0000
commitdc30f461575342ffeb6c0f2d5931493c1c3a91c0 (patch)
tree99243511beca706f0743fe2316854c5a30709f17 /wctype/wctype.h
parente15867921d8f3b75deb0d91628cf9a323709ea9f (diff)
Update.
1998-02-13 17:39 Ulrich Drepper <drepper@cygnus.com> * elf/Makefile: Don't use --version-script parameter to link ld.so unconditionally. 1998-01-02 04:19 Geoff Keating <geoffk@ozemail.com.au> * math/Makefile: Add t_exp. * math/libm-test.c: Tighten accuracy bounds for exp(), correct constants. * math/test-reduce.c: Remove temporarily, it seems to be broken. * sysdeps/libm-ieee754/e_exp.c: Use accurate table method. * sysdeps/libm-ieee754/e_expf.c: Use table & double precision for better accuracy. * sysdeps/libm-ieee754/s_exp2.c: Use better polynomial; correct algorithm for very large/very small arguments. * sysdeps/libm-ieee754/s_exp2f.c: Use slightly better polynomial; correct algorithm for very large/very small arguments; adjust for new table. * sysdeps/libm-ieee754/t_exp.c: New file. * sysdeps/libm-ieee754/t_exp2f.h: Use table with smaller deltas. * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Put 'strange test' back, with comment that explains what breaks when you remove it :-(. * localedata/xfrm-test.c: Avoid integer overflow. * stdlib/strfmon.c: char is unsigned, sometimes. *sysdeps/powerpc * sysdeps/powerpc/Makefile: Remove quad float support. * sysdeps/powerpc/q_*.c: Remove, they will become an add-on. * sysdeps/powerpc/quad_float.h: Likewise. * sysdeps/powerpc/test-arith.c: Likewise. * sysdeps/powerpc/test-arithf.c: Likewise. * sysdeps/generic/s_exp2.c: Remove, we have this implemented now. * sysdeps/generic/s_exp2f.c: Likewise. * sysdeps/powerpc/bits/mathinline.h: Use underscores around __asm__, don't try anything if _SOFT_FLOAT. 1997-12-31 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Undo last change. * locale/programs/ld-ctype.c (CHAR_CLASS32_TRANS): Likewise. * wctype/wctype.c: Likewise. * wctype/wctype.h (_ISwxxx): Renamed from _ISxxx, all uses changed. They are incompatible with the _ISxxx values from <ctype.h> on little endian machines. (_ISwbit) [__BYTE_ORDER == __LITTLE_ENDIAN]: Correctly transform bit number. This fixes the real bug and restores the integrity of the ctype locale file. * wctype/wcfuncs.c: Change all _ISxxx to _ISwxxx. * wctype/wcfuncs_l.c: Likewise. * wctype/wcextra.c: Likewise. * wctype/wctype_l.c [__BYTE_ORDER == __LITTLE_ENDIAN]: Use correct byte swapping. 1998-02-09 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.S (errno): Put it into .bss segment instead of .common, so that aliases on it work. * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Add .type and .size directives, put into .bss segment instead of initializing it to 4. 1998-02-12 08:00 H.J. Lu <hjl@gnu.org> * libc.map (gnu_get_libc_release, gnu_get_libc_version): Added. * version.c (__gnu_get_libc_release, __gnu_get_libc_version): New functions. Make names without __ weak aliases. (__libc_release, __libc_version): Make them static. * include/gnu/libc-version.h: New file. * Makefile (headers): Add gnu/libc-version.h. 1998-02-13 Ulrich Drepper <drepper@cygnus.com> * stdlib/stdlib.h (struct drand48_data): Leave X to user macros and use x for member name. Reported by Daniel Lyddy <daniell@cs.berkeley.edu>. * stdlib/drand48.c: Change according to member name change. * stdlib/drand48_r.c: Likewise. * stdlib/lcong48_r.c: Likewise. * stdlib/lrand48.c: Likewise. * stdlib/lrand48_r.c: Likewise. * stdlib/mrand48.c: Likewise. * stdlib/mrand48_r.c: Likewise. * stdlib/seed48.c: Likewise. * stdlib/seed48_r.c: Likewise. * stdlib/srand48_r.c: Likewise. 1998-02-11 Andreas Jaeger <aj@arthur.rhein-neckar.de> * nss/test-netdb.c: Add some more test cases. 1998-02-13 11:39 Ulrich Drepper <drepper@cygnus.com> * libio/iovsscanf.c: Undo last change modifying errno. 1998-02-12 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * stdio-common/vfscanf.c: Never try to read another character after EOF. Don't decrement read_in after EOF, it wasn't incremented in the first place. (NEXT_WIDE_CHAR): Set First, not first. 1998-02-06 07:48 H.J. Lu <hjl@gnu.org> * db/Makefile ($(inst_libdir)/libndbm.a, $(inst_libdir)/libndbm.so): New targets. * db2/Makefile: Likewise. 1998-02-12 08:20 H.J. Lu <hjl@gnu.org> * sysdeps/gnu/errlist.awk (sys_errlist, sys_nerr): Create weak aliases if HAVE_ELF or PIC or DO_VERSIONING is not defined. 1998-02-12 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/generic/_G_config.h: Define _G_wchar_t, for C++ <streambuf.h>. * sysdeps/unix/sysv/linux/_G_config.h: Likewise. 1998-02-11 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/make-syscalls.sh: Fix sed pattern when dealing with versioned symbols. 1998-02-13 08:14 H.J. Lu <hjl@gnu.org> * libc.map (_dl_global_scope, _dl_lookup_symbol_skip, _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip): Added for libdl.so. * elf/rtld.map: New file. Needed to define the GLIBC_2.* * manual/socket.texi (Host Address Functions): Clarify description * sysdeps/unix/sysv/linux/alpha/bits/time.h (struct timeval):
Diffstat (limited to 'wctype/wctype.h')
-rw-r--r--wctype/wctype.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 8ab8d7b793..979a98c065 100644
--- a/wctype/wctype.h
+++ b/wctype/wctype.h
@@ -60,34 +60,34 @@ typedef unsigned int wint_t;
character classifications. */
typedef unsigned long int wctype_t;
-# ifndef _ISbit
+# ifndef _ISwbit
/* The characteristics are stored always in network byte order (big
endian). We define the bit value interpretations here dependent on the
machine's byte order. */
# include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN
-# define _ISbit(bit) (1 << bit)
+# define _ISwbit(bit) (1 << bit)
# else /* __BYTE_ORDER == __LITTLE_ENDIAN */
-# define _ISbit(bit) (bit < 8 ? ((1 << bit) << 8) : ((1 << bit) >> 8))
+# define _ISwbit(bit) (bit < 8 ? 1UL << (bit + 24) : 1UL << (bit + 8))
# endif
enum
{
- _ISupper = _ISbit (0), /* UPPERCASE. */
- _ISlower = _ISbit (1), /* lowercase. */
- _ISalpha = _ISbit (2), /* Alphabetic. */
- _ISdigit = _ISbit (3), /* Numeric. */
- _ISxdigit = _ISbit (4), /* Hexadecimal numeric. */
- _ISspace = _ISbit (5), /* Whitespace. */
- _ISprint = _ISbit (6), /* Printing. */
- _ISgraph = _ISbit (7), /* Graphical. */
- _ISblank = _ISbit (8), /* Blank (usually SPC and TAB). */
- _IScntrl = _ISbit (9), /* Control character. */
- _ISpunct = _ISbit (10), /* Punctuation. */
- _ISalnum = _ISbit (11) /* Alphanumeric. */
+ _ISwupper = _ISwbit (0), /* UPPERCASE. */
+ _ISwlower = _ISwbit (1), /* lowercase. */
+ _ISwalpha = _ISwbit (2), /* Alphabetic. */
+ _ISwdigit = _ISwbit (3), /* Numeric. */
+ _ISwxdigit = _ISwbit (4), /* Hexadecimal numeric. */
+ _ISwspace = _ISwbit (5), /* Whitespace. */
+ _ISwprint = _ISwbit (6), /* Printing. */
+ _ISwgraph = _ISwbit (7), /* Graphical. */
+ _ISwblank = _ISwbit (8), /* Blank (usually SPC and TAB). */
+ _ISwcntrl = _ISwbit (9), /* Control character. */
+ _ISwpunct = _ISwbit (10), /* Punctuation. */
+ _ISwalnum = _ISwbit (11) /* Alphanumeric. */
};
-# endif /* Not _ISbit */
+# endif /* Not _ISwbit */
__BEGIN_DECLS
@@ -178,20 +178,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), _ISwalnum)
+# define iswalpha(wc) __iswctype ((wc), _ISwalpha)
+# define iswcntrl(wc) __iswctype ((wc), _ISwcntrl)
+# define iswdigit(wc) __iswctype ((wc), _ISwdigit)
+# define iswlower(wc) __iswctype ((wc), _ISwlower)
+# define iswgraph(wc) __iswctype ((wc), _ISwgraph)
+# define iswprint(wc) __iswctype ((wc), _ISwprint)
+# define iswpunct(wc) __iswctype ((wc), _ISwpunct)
+# define iswspace(wc) __iswctype ((wc), _ISwspace)
+# define iswupper(wc) __iswctype ((wc), _ISwupper)
+# define iswxdigit(wc) __iswctype ((wc), _ISwxdigit)
# ifdef __USE_GNU
-# define iswblank(wc) __iswctype ((wc), _ISblank)
+# define iswblank(wc) __iswctype ((wc), _ISwblank)
# endif
@@ -307,19 +307,19 @@ extern wint_t __towctrans_l __P ((wint_t __wc, wctrans_t __desc,
# ifndef __NO_WCTYPE
-# define __iswalnum_l(wc, loc) __iswctype_l ((wc), _ISalnum, (loc))
-# define __iswalpha_l(wc, loc) __iswctype_l ((wc), _ISalpha, (loc))
-# define __iswcntrl_l(wc, loc) __iswctype_l ((wc), _IScntrl, (loc))
-# define __iswdigit_l(wc, loc) __iswctype_l ((wc), _ISdigit, (loc))
-# define __iswlower_l(wc, loc) __iswctype_l ((wc), _ISlower, (loc))
-# define __iswgraph_l(wc, loc) __iswctype_l ((wc), _ISgraph, (loc))
-# define __iswprint_l(wc, loc) __iswctype_l ((wc), _ISprint, (loc))
-# define __iswpunct_l(wc, loc) __iswctype_l ((wc), _ISpunct, (loc))
-# define __iswspace_l(wc, loc) __iswctype_l ((wc), _ISspace, (loc))
-# define __iswupper_l(wc, loc) __iswctype_l ((wc), _ISupper, (loc))
-# define __iswxdigit_l(wc, loc) __iswctype_l ((wc), _ISxdigit, (loc))
-
-# define __iswblank_l(wc, loc) __iswctype_l ((wc), _ISblank, (loc))
+# define __iswalnum_l(wc, loc) __iswctype_l ((wc), _ISwalnum, (loc))
+# define __iswalpha_l(wc, loc) __iswctype_l ((wc), _ISwalpha, (loc))
+# define __iswcntrl_l(wc, loc) __iswctype_l ((wc), _ISwcntrl, (loc))
+# define __iswdigit_l(wc, loc) __iswctype_l ((wc), _ISwdigit, (loc))
+# define __iswlower_l(wc, loc) __iswctype_l ((wc), _ISwlower, (loc))
+# define __iswgraph_l(wc, loc) __iswctype_l ((wc), _ISwgraph, (loc))
+# define __iswprint_l(wc, loc) __iswctype_l ((wc), _ISwprint, (loc))
+# define __iswpunct_l(wc, loc) __iswctype_l ((wc), _ISwpunct, (loc))
+# define __iswspace_l(wc, loc) __iswctype_l ((wc), _ISwspace, (loc))
+# define __iswupper_l(wc, loc) __iswctype_l ((wc), _ISwupper, (loc))
+# define __iswxdigit_l(wc, loc) __iswctype_l ((wc), _ISwxdigit, (loc))
+
+# define __iswblank_l(wc, loc) __iswctype_l ((wc), _ISwblank, (loc))
# define __towlower_l(wc, loc) __towctrans_l ((wc), (loc)->__ctype_tolower, \
(loc))