From eddc1449bae39414aaf7a4f63ccd3b69c4fb069e Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 20 Nov 2003 01:44:59 +0000 Subject: Getting rid of all the code inside #ifdef macintosh too. --- Python/pythonrun.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Python/pythonrun.c') 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 -- cgit v1.2.1