diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 01:44:59 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 01:44:59 +0000 |
commit | 89658fe93e349fc99942b681e41934acce491b9f (patch) | |
tree | 669bca9ab3454c0a4f2cb5668fb0c10dc87efc16 /Python/pythonrun.c | |
parent | d928e0fc503219f9f399bc131bac92527fa145ca (diff) | |
download | cpython-89658fe93e349fc99942b681e41934acce491b9f.tar.gz |
Getting rid of all the code inside #ifdef macintosh too.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index c09a3ff901..ed54ab386f 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -27,9 +27,6 @@ #include "windows.h" #endif -#ifdef macintosh -#include "macglue.h" -#endif extern char *Py_GetPath(void); extern grammar _PyParser_Grammar; /* From graminit.c */ @@ -755,13 +752,6 @@ maybe_pyc_file(FILE *fp, const char* filename, const char* ext, int closeit) if (strcmp(ext, ".pyc") == 0 || strcmp(ext, ".pyo") == 0) return 1; -#ifdef macintosh - /* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */ - if (PyMac_getfiletype((char *)filename) == 'PYC ' - || PyMac_getfiletype((char *)filename) == 'APPL') - return 1; -#endif /* macintosh */ - /* Only look into the file if we are allowed to close it, since it then should also be seekable. */ if (closeit) { @@ -1542,11 +1532,7 @@ Py_Exit(int sts) { Py_Finalize(); -#ifdef macintosh - PyMac_Exit(sts); -#else exit(sts); -#endif } static void |