1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Remove pre-ISO C support

No more __const.
This commit is contained in:
Ulrich Drepper
2012-01-07 23:57:22 -05:00
parent 33808bf116
commit a784e50247
209 changed files with 2420 additions and 2244 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1997, 1998, 1999, 2000, 2012 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
@ -68,11 +68,11 @@ typedef unsigned long int fexcept_t;
typedef unsigned long int fenv_t;
/* If the default argument is used we use this value. */
#define FE_DFL_ENV ((__const fenv_t *) -1)
#define FE_DFL_ENV ((const fenv_t *) -1)
#ifdef __USE_GNU
/* Floating-point environment where none of the exception is masked. */
# define FE_NOMASK_ENV ((__const fenv_t *) -2)
# define FE_NOMASK_ENV ((const fenv_t *) -2)
#endif
/* For internal use only: access the fp state register. */

View File

@ -1,5 +1,5 @@
/* Inline math functions for SPARC.
Copyright (C) 1999, 2000, 2001, 2002, 2004, 2006, 2007
Copyright (C) 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>.
@ -215,7 +215,7 @@ __MATH_INLINE long double
__NTH (sqrtl (long double __x))
{
long double __r;
extern void _Qp_sqrt (long double *, __const__ long double *);
extern void _Qp_sqrt (long double *, const long double *);
_Qp_sqrt (&__r, &__x);
return __r;
}
@ -223,7 +223,7 @@ __NTH (sqrtl (long double __x))
__MATH_INLINE long double
sqrtl (long double __x) __THROW
{
extern long double _Q_sqrt (__const__ long double);
extern long double _Q_sqrt (const long double);
return _Q_sqrt (__x);
}
# endif /* sparc64 */
@ -253,7 +253,7 @@ __MATH_INLINE long double
__ieee754_sqrtl (long double __x)
{
long double __r;
extern void _Qp_sqrt (long double *, __const__ long double *);
extern void _Qp_sqrt (long double *, const long double *);
_Qp_sqrt(&__r, &__x);
return __r;
}
@ -261,7 +261,7 @@ __ieee754_sqrtl (long double __x)
__MATH_INLINE long double
__ieee754_sqrtl (long double __x)
{
extern long double _Q_sqrt (__const__ long double);
extern long double _Q_sqrt (const long double);
return _Q_sqrt (__x);
}
# endif /* sparc64 */