summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-11-19 15:24:47 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-11-19 15:24:47 (GMT)
commitfb2765666f23434061e5def1aa8392797edf1f43 (patch)
treede935c5b77d6b50ad326dd41c94294ebd00e9cfa /Modules
parent61963220666a79d5c1811991a31261a5d993bcdb (diff)
downloadcpython-fb2765666f23434061e5def1aa8392797edf1f43.zip
cpython-fb2765666f23434061e5def1aa8392797edf1f43.tar.gz
cpython-fb2765666f23434061e5def1aa8392797edf1f43.tar.bz2
Getting rid of support for the ancient Apple MPW compiler.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c7
-rw-r--r--Modules/mathmodule.c13
2 files changed, 0 insertions, 20 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 91818e0..68a82c7 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -327,7 +327,6 @@ Py_Main(int argc, char **argv)
_setmode(fileno(stdin), O_BINARY);
_setmode(fileno(stdout), O_BINARY);
#endif
-#ifndef MPW
#ifdef HAVE_SETVBUF
setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ);
setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ);
@@ -337,12 +336,6 @@ Py_Main(int argc, char **argv)
setbuf(stdout, (char *)NULL);
setbuf(stderr, (char *)NULL);
#endif /* !HAVE_SETVBUF */
-#else /* MPW */
- /* On MPW (3.2) unbuffered seems to hang */
- setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ);
- setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ);
- setvbuf(stderr, (char *)NULL, _IOLBF, BUFSIZ);
-#endif /* MPW */
}
else if (Py_InteractiveFlag) {
#ifdef MS_WINDOWS
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;