mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
rearrange declarations somewhat
This commit is contained in:
parent
20566845c6
commit
b9418686ba
1 changed files with 11 additions and 11 deletions
|
@ -28,24 +28,27 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "modsupport.h"
|
|
||||||
|
|
||||||
#define getdoublearg(v, a) getargs(v, "d", a)
|
#define getdoublearg(v, a) getargs(v, "d", a)
|
||||||
#define get2doublearg(v, a, b) getargs(v, "(dd)", a, b)
|
#define get2doublearg(v, a, b) getargs(v, "(dd)", a, b)
|
||||||
|
|
||||||
#include <math.h>
|
#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
|
#ifdef i860
|
||||||
/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
|
/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
|
||||||
#undef HUGE_VAL
|
#undef HUGE_VAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef macintosh
|
|
||||||
#ifndef __STDC__
|
|
||||||
extern double fmod PROTO((double, double));
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HUGE_VAL
|
#ifdef HUGE_VAL
|
||||||
#define CHECK(x) if (errno != 0) ; \
|
#define CHECK(x) if (errno != 0) ; \
|
||||||
else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
|
else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
|
||||||
|
@ -139,9 +142,6 @@ FUNC1(math_tanh, tanh)
|
||||||
|
|
||||||
#ifndef macintosh
|
#ifndef macintosh
|
||||||
|
|
||||||
double frexp PROTO((double, int *));
|
|
||||||
double ldexp PROTO((double, int));
|
|
||||||
double modf PROTO((double, double *));
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue