diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 01:44:59 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 01:44:59 (GMT) |
commit | eddc1449bae39414aaf7a4f63ccd3b69c4fb069e (patch) | |
tree | caaeed5da8c9755c4cc1d8ebf8da2f0608262c56 /Python/pythonrun.c | |
parent | 4bae2d5e46b5135dba523616fd0960fc915eb120 (diff) | |
download | cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.zip cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.tar.gz cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.tar.bz2 |
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 c09a3ff..ed54ab3 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 |