Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/src remove redundant declarations; use __MATH_PRIVA...



details:   https://anonhg.NetBSD.org/src/rev/6b899510188a
branches:  trunk
changeset: 501716:6b899510188a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 06 00:15:00 2001 +0000

description:
remove redundant declarations; use __MATH_PRIVATE__ to override math.h
declarations.

diffstat:

 lib/libm/src/w_cabs.c      |  3 ++-
 lib/libm/src/w_cabsf.c     |  3 ++-
 lib/libm/src/w_gamma.c     |  4 +---
 lib/libm/src/w_gamma_r.c   |  5 +----
 lib/libm/src/w_gammaf.c    |  4 +---
 lib/libm/src/w_gammaf_r.c  |  5 +----
 lib/libm/src/w_lgamma.c    |  4 +---
 lib/libm/src/w_lgamma_r.c  |  5 +----
 lib/libm/src/w_lgammaf.c   |  4 +---
 lib/libm/src/w_lgammaf_r.c |  5 +----
 10 files changed, 12 insertions(+), 30 deletions(-)

diffs (198 lines):

diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_cabs.c
--- a/lib/libm/src/w_cabs.c     Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_cabs.c     Sat Jan 06 00:15:00 2001 +0000
@@ -7,9 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_cabs.c,v 1.3 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_cabs.c,v 1.4 2001/01/06 00:15:00 christos Exp $");
 #endif
 
+#define __MATH_PRIVATE__
 #include <math.h>
 
 struct complex {
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_cabsf.c
--- a/lib/libm/src/w_cabsf.c    Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_cabsf.c    Sat Jan 06 00:15:00 2001 +0000
@@ -7,9 +7,10 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_cabsf.c,v 1.3 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_cabsf.c,v 1.4 2001/01/06 00:15:00 christos Exp $");
 #endif
 
+#define __MATH_PRIVATE__
 #include <math.h>
 
 struct complex {
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_gamma.c
--- a/lib/libm/src/w_gamma.c    Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_gamma.c    Sat Jan 06 00:15:00 2001 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_gamma.c,v 1.9 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_gamma.c,v 1.10 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 /* double gamma(double x)
@@ -24,8 +24,6 @@
 #include "math.h"
 #include "math_private.h"
 
-extern int signgam;
-
 #ifdef __STDC__
        double gamma(double x)
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_gamma_r.c
--- a/lib/libm/src/w_gamma_r.c  Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_gamma_r.c  Sat Jan 06 00:15:00 2001 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_gamma_r.c,v 1.9 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_gamma_r.c,v 1.10 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 /*
@@ -22,9 +22,6 @@
 #include "math.h"
 #include "math_private.h"
 
-double gamma_r __P((double, int *));
-
-
 #ifdef __STDC__
        double gamma_r(double x, int *signgamp) /* wrapper lgamma_r */
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_gammaf.c
--- a/lib/libm/src/w_gammaf.c   Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_gammaf.c   Sat Jan 06 00:15:00 2001 +0000
@@ -15,14 +15,12 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_gammaf.c,v 1.6 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_gammaf.c,v 1.7 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 #include "math.h"
 #include "math_private.h"
 
-extern int signgam;
-
 #ifdef __STDC__
        float gammaf(float x)
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_gammaf_r.c
--- a/lib/libm/src/w_gammaf_r.c Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_gammaf_r.c Sat Jan 06 00:15:00 2001 +0000
@@ -15,7 +15,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_gammaf_r.c,v 1.6 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_gammaf_r.c,v 1.7 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 /*
@@ -25,9 +25,6 @@
 #include "math.h"
 #include "math_private.h"
 
-float gammaf_r __P((float, int *));
-
-
 #ifdef __STDC__
        float gammaf_r(float x, int *signgamp) /* wrapper lgammaf_r */
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_lgamma.c
--- a/lib/libm/src/w_lgamma.c   Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_lgamma.c   Sat Jan 06 00:15:00 2001 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_lgamma.c,v 1.8 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_lgamma.c,v 1.9 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 /* double lgamma(double x)
@@ -24,8 +24,6 @@
 #include "math.h"
 #include "math_private.h"
 
-extern int signgam;
-
 #ifdef __STDC__
        double lgamma(double x)
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_lgamma_r.c
--- a/lib/libm/src/w_lgamma_r.c Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_lgamma_r.c Sat Jan 06 00:15:00 2001 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_lgamma_r.c,v 1.8 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_lgamma_r.c,v 1.9 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 /*
@@ -22,9 +22,6 @@
 #include "math.h"
 #include "math_private.h"
 
-double lgamma_r __P((double, int *));
-
-
 #ifdef __STDC__
        double lgamma_r(double x, int *signgamp) /* wrapper lgamma_r */
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_lgammaf.c
--- a/lib/libm/src/w_lgammaf.c  Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_lgammaf.c  Sat Jan 06 00:15:00 2001 +0000
@@ -15,14 +15,12 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_lgammaf.c,v 1.5 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_lgammaf.c,v 1.6 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 #include "math.h"
 #include "math_private.h"
 
-extern int signgam;
-
 #ifdef __STDC__
        float lgammaf(float x)
 #else
diff -r d9c196b685f1 -r 6b899510188a lib/libm/src/w_lgammaf_r.c
--- a/lib/libm/src/w_lgammaf_r.c        Fri Jan 05 23:58:02 2001 +0000
+++ b/lib/libm/src/w_lgammaf_r.c        Sat Jan 06 00:15:00 2001 +0000
@@ -15,7 +15,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: w_lgammaf_r.c,v 1.5 1999/07/02 15:37:44 simonb Exp $");
+__RCSID("$NetBSD: w_lgammaf_r.c,v 1.6 2001/01/06 00:15:00 christos Exp $");
 #endif
 
 /*
@@ -25,9 +25,6 @@
 #include "math.h"
 #include "math_private.h"
 
-float lgammaf_r __P((float, int *));
-
-
 #ifdef __STDC__
        float lgammaf_r(float x, int *signgamp) /* wrapper lgammaf_r */
 #else



Home | Main Index | Thread Index | Old Index