Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src const -> __const and include <sys/cdefs.h> earlier; fixes PR...



details:   https://anonhg.NetBSD.org/src/rev/af86a55ac5ae
branches:  trunk
changeset: 480119:af86a55ac5ae
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jan 04 14:20:05 2000 +0000

description:
const -> __const and include <sys/cdefs.h> earlier; fixes PR lib/9052
by Takahiro Kambe.

diffstat:

 include/math.h                  |  9 ++++-----
 sys/arch/alpha/include/math.h   |  6 +++---
 sys/arch/arm32/include/math.h   |  6 +++---
 sys/arch/i386/include/math.h    |  6 +++---
 sys/arch/m68k/include/math.h    |  6 +++---
 sys/arch/mips/include/math.h    |  6 +++---
 sys/arch/pc532/include/math.h   |  6 +++---
 sys/arch/powerpc/include/math.h |  6 +++---
 sys/arch/sparc/include/math.h   |  6 +++---
 sys/arch/sparc64/include/math.h |  6 +++---
 10 files changed, 31 insertions(+), 32 deletions(-)

diffs (189 lines):

diff -r ba75e9833110 -r af86a55ac5ae include/math.h
--- a/include/math.h    Tue Jan 04 14:15:09 2000 +0000
+++ b/include/math.h    Tue Jan 04 14:20:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: math.h,v 1.20 1999/12/23 10:15:05 kleink Exp $ */
+/*     $NetBSD: math.h,v 1.21 2000/01/04 14:20:05 kleink Exp $ */
 
 /*
  * ====================================================
@@ -18,14 +18,15 @@
 #ifndef _MATH_H_
 #define _MATH_H_
 
+#include <sys/cdefs.h>
 #include <sys/featuretest.h>
 #include <machine/math.h>
 
 /*
  * ANSI/POSIX
  */
-extern const char __infinity[];
-#define HUGE_VAL       (*(const double *)(const void *)__infinity)
+extern __const char __infinity[];
+#define HUGE_VAL       (*(__const double *)(__const void *)__infinity)
 
 /*
  * XOPEN/SVID
@@ -99,8 +100,6 @@
 
 #endif /* !_ANSI_SOURCE && !_POSIX_C_SOURCE && !_XOPEN_SOURCE */
 
-
-#include <sys/cdefs.h>
 __BEGIN_DECLS
 /*
  * ANSI/POSIX
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/alpha/include/math.h
--- a/sys/arch/alpha/include/math.h     Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/alpha/include/math.h     Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:09 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:07 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/arm32/include/math.h
--- a/sys/arch/arm32/include/math.h     Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/arm32/include/math.h     Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:10 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:09 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/i386/include/math.h
--- a/sys/arch/i386/include/math.h      Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/i386/include/math.h      Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:11 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:11 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/m68k/include/math.h
--- a/sys/arch/m68k/include/math.h      Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/m68k/include/math.h      Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:11 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:12 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/mips/include/math.h
--- a/sys/arch/mips/include/math.h      Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/mips/include/math.h      Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:12 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:13 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/pc532/include/math.h
--- a/sys/arch/pc532/include/math.h     Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/pc532/include/math.h     Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:14 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:14 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/powerpc/include/math.h
--- a/sys/arch/powerpc/include/math.h   Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/powerpc/include/math.h   Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:15 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:14 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/sparc/include/math.h
--- a/sys/arch/sparc/include/math.h     Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/sparc/include/math.h     Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:15 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:15 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r ba75e9833110 -r af86a55ac5ae sys/arch/sparc64/include/math.h
--- a/sys/arch/sparc64/include/math.h   Tue Jan 04 14:15:09 2000 +0000
+++ b/sys/arch/sparc64/include/math.h   Tue Jan 04 14:20:05 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: math.h,v 1.1 1999/12/23 10:15:15 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:15 kleink Exp $  */
 
 /*
  * ISO C99
  */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
-extern const char      __nanf[];
-#define        NAN             (*(const float *)(const void *)__nanf)
+extern __const char    __nanf[];
+#define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif



Home | Main Index | Thread Index | Old Index