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 /Python | |
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 'Python')
-rw-r--r-- | Python/modsupport.c | 4 | ||||
-rw-r--r-- | Python/mystrtoul.c | 2 | ||||
-rw-r--r-- | Python/pythonrun.c | 12 | ||||
-rw-r--r-- | Python/traceback.c | 5 |
4 files changed, 0 insertions, 23 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index ec85511..f26d7b8 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -3,11 +3,7 @@ #include "Python.h" -#ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */ -typedef extended va_double; -#else typedef double va_double; -#endif /* Package context -- the full module name for package imports */ char *_Py_PackageContext = NULL; diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index db98d2b..8e60c0c 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -100,7 +100,6 @@ PyOS_strtoul(register char *str, char **ptr, int base) } temp = result; result = result * base + c; -#ifndef MPW if(base == 10) { if(((long)(result - c) / base != (long)temp)) /* overflow */ ovf = 1; @@ -109,7 +108,6 @@ PyOS_strtoul(register char *str, char **ptr, int base) if ((result - c) / base != temp) /* overflow */ ovf = 1; } -#endif str++; } diff --git a/Python/pythonrun.c b/Python/pythonrun.c index ab6ed58..c09a3ff 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1566,18 +1566,6 @@ initsigs(void) PyOS_InitInterrupts(); /* May imply initsignal() */ } -#ifdef MPW - -/* Check for file descriptor connected to interactive device. - Pretend that stdin is always interactive, other files never. */ - -int -isatty(int fd) -{ - return fd == fileno(stdin); -} - -#endif /* * The file descriptor fd is considered ``interactive'' if either diff --git a/Python/traceback.c b/Python/traceback.c index b8edf13..987013c 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -147,13 +147,8 @@ tb_displayline(PyObject *f, char *filename, int lineno, char *name) int i; if (filename == NULL || name == NULL) return -1; -#ifdef MPW - /* This is needed by MPW's File and Line commands */ -#define FMT " File \"%.500s\"; line %d # in %.500s\n" -#else /* This is needed by Emacs' compile command */ #define FMT " File \"%.500s\", line %d, in %.500s\n" -#endif xfp = fopen(filename, "r" PY_STDIOTEXTMODE); if (xfp == NULL) { /* Search tail of filename in sys.path before giving up */ |