diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-19 15:24:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-19 15:24:47 (GMT) |
commit | fb2765666f23434061e5def1aa8392797edf1f43 (patch) | |
tree | de935c5b77d6b50ad326dd41c94294ebd00e9cfa /Modules/mathmodule.c | |
parent | 61963220666a79d5c1811991a31261a5d993bcdb (diff) | |
download | cpython-fb2765666f23434061e5def1aa8392797edf1f43.zip cpython-fb2765666f23434061e5def1aa8392797edf1f43.tar.gz cpython-fb2765666f23434061e5def1aa8392797edf1f43.tar.bz2 |
Getting rid of support for the ancient Apple MPW compiler.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 5415253..48c981a 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -121,13 +121,8 @@ FUNC2(fmod, fmod, " x % y may differ.") FUNC2(hypot, hypot, "hypot(x,y)\n\nReturn the Euclidean distance, sqrt(x*x + y*y).") -#ifdef MPW_3_1 /* This hack is needed for MPW 3.1 but not for 3.2 ... */ -FUNC2(pow, power, - "pow(x,y)\n\nReturn x**y (x to the power of y).") -#else FUNC2(pow, pow, "pow(x,y)\n\nReturn x**y (x to the power of y).") -#endif FUNC1(sin, sin, "sin(x)\n\nReturn the sine of x (measured in radians).") FUNC1(sinh, sinh, @@ -190,15 +185,7 @@ math_modf(PyObject *self, PyObject *args) if (! PyArg_ParseTuple(args, "d:modf", &x)) return NULL; errno = 0; -#ifdef MPW /* MPW C modf expects pointer to extended as second argument */ - { - extended e; - x = modf(x, &e); - y = e; - } -#else x = modf(x, &y); -#endif Py_SET_ERANGE_IF_OVERFLOW(x); if (errno && is_error(x)) return NULL; |