diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-01 06:39:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-01 06:39:10 +0000 |
commit | 417bafec1e0be945a745cb5f1ba95ac30524af21 (patch) | |
tree | fe5862a93c403c604880c59e714bfb42ffe7be7c /bits | |
parent | 7921bb7220e9d70610d27af59c6af68fecedbdcf (diff) | |
download | glibc-417bafec1e0be945a745cb5f1ba95ac30524af21.tar.gz glibc-417bafec1e0be945a745cb5f1ba95ac30524af21.tar.xz glibc-417bafec1e0be945a745cb5f1ba95ac30524af21.zip |
Update.
* stdlib/Makefile (headers): Add bits/wchar.h. * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file. * sysdeps/generic/bits/wchar.h: New file. * sysdeps/generic/stdint.h: Include <bits/wchar.h>. Use values in this file to define WCHAR_MIN and WCHAR_MAX. Change UINT*8_MAX and UIN*16_MAX value to type int. * wcsmbs/wchar.h: Include <bits/wchar.h>. Use values in this file to define WCHAR_MIN and WCHAR_MAX. * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN int values. * sysdeps/arm/fpu/bits/mathdef.h: Likewise. * sysdeps/generic/bits/mathdef.h: Likewise. * sysdeps/i386/fpu/bits/mathdef.h: Likewise. * sysdeps/m68k/fpu/bits/mathdef.h: Likewise. * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise. * sysdeps/sparc/fpu/bits/mathdef.h: Likewise. * locale/locale.h (struct lconv): Add __ prefix to the new members if not C99. * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and imaxdiv optimizations. * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work. * sysdeps/wordsize-64/ldiv.c: Likewise. * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to const fenv_t*. * sysdeps/generic/bits/fenv.h: Likewise. * sysdeps/i386/fpu/bits/fenv.h: Likewise. * sysdeps/ia64/bits/fenv.h: Likewise. * sysdeps/m68k/fpu/bits/fenv.h: Likewise. * sysdeps/mips/bits/fenv.h: Likewise. * sysdeps/s390/fpu/bits/fenv.h: Likewise. * sysdeps/sparc/fpu/bits/fenv.h: Likewise. Reported by Joseph S. Myers <jsm28@cam.ac.uk>. * catgets/open_catalog.c: Likewise.
Diffstat (limited to 'bits')
-rw-r--r-- | bits/fenv.h | 4 | ||||
-rw-r--r-- | bits/mathdef.h | 6 | ||||
-rw-r--r-- | bits/wchar.h | 26 |
3 files changed, 31 insertions, 5 deletions
diff --git a/bits/fenv.h b/bits/fenv.h index b192d94336..a389ad7c58 100644 --- a/bits/fenv.h +++ b/bits/fenv.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -58,4 +58,4 @@ typedef struct fenv_t; /* If the default argument is used we use this value. */ -#define FE_DFL_ENV ((fenv_t *) -1l) +#define FE_DFL_ENV ((__const fenv_t *) -1l) diff --git a/bits/mathdef.h b/bits/mathdef.h index 0c30b01f52..ad465a9081 100644 --- a/bits/mathdef.h +++ b/bits/mathdef.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -38,8 +38,8 @@ typedef double double_t; /* `double' expressions are evaluated as /* The values returned by `ilogb' for 0 and NaN respectively. */ -# define FP_ILOGB0 0x80000001 -# define FP_ILOGBNAN 0x7fffffff +# define FP_ILOGB0 (-2147483647) +# define FP_ILOGBNAN 2147483647 /* Number of decimal digits for the `double' type. */ # define DECIMAL_DIG 15 diff --git a/bits/wchar.h b/bits/wchar.h new file mode 100644 index 0000000000..33cb52656e --- /dev/null +++ b/bits/wchar.h @@ -0,0 +1,26 @@ +/* wchar_t type related definitions. + Copyright (C) 2000 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + 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. */ + +#ifndef _BITS_WCHAR_H +#define _BITS_WCHAR_H 1 + +#define __WCHAR_MIN (-127) +#define __WCHAR_MAX (2147483647) + +#endif /* bits/wchar.h */ |