diff Modules/mathmodule.c @ 2125:bd061dc30842 legacy-trunk

rearrange declarations somewhat
author Guido van Rossum <guido@python.org>
date Thu, 12 Jan 1995 11:28:16 +0000
parents 172ba04a5191
children 939791f219a6
line wrap: on
line diff
--- a/Modules/mathmodule.c	Thu Jan 12 11:26:10 1995 +0000
+++ b/Modules/mathmodule.c	Thu Jan 12 11:28:16 1995 +0000
@@ -28,24 +28,27 @@
 
 #include <errno.h>
 
-#include "modsupport.h"
-
 #define getdoublearg(v, a) getargs(v, "d", a)
 #define get2doublearg(v, a, b) getargs(v, "(dd)", a, b)
 
 #include <math.h>
 
+#ifndef __STDC__
+extern double fmod PROTO((double, double));
+extern double frexp PROTO((double, int *));
+extern double ldexp PROTO((double, int));
+extern double modf PROTO((double, double *));
+#endif
+
+#ifdef HAVE_HYPOT
+extern double hypot PROTO((double, double));
+#endif
+
 #ifdef i860
 /* Cray APP has bogus definition of HUGE_VAL in <math.h> */
 #undef HUGE_VAL
 #endif
 
-#ifndef macintosh
-#ifndef __STDC__
-extern double fmod PROTO((double, double));
-#endif
-#endif
-
 #ifdef HUGE_VAL
 #define CHECK(x) if (errno != 0) ; \
 	else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
@@ -139,9 +142,6 @@
 
 #ifndef macintosh
 
-double	frexp PROTO((double, int *));
-double	ldexp PROTO((double, int));
-double	modf PROTO((double, double *));
 
 #endif