Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 13552:dd2b5218e069 legacy-trunk
Include macglue.h for some function prototypes, and renamed a few
mac-specific functions to have a PyMac_ name.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Tue, 11 Jul 2000 21:59:16 +0000 |
| parents | feab677269e0 |
| children | 5b727ab37092 |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue Jul 11 21:47:20 2000 +0000 +++ b/Python/pythonrun.c Tue Jul 11 21:59:16 2000 +0000 @@ -34,6 +34,9 @@ #include "windows.h" #endif +#ifdef macintosh +#include "macglue.h" +#endif extern char *Py_GetPath(); extern grammar _PyParser_Grammar; /* From graminit.c */ @@ -561,8 +564,8 @@ if (strcmp(ext, ".pyc") == 0 || strcmp(ext, ".pyo") == 0 #ifdef macintosh /* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */ - || getfiletype(filename) == 'PYC ' - || getfiletype(filename) == 'APPL' + || PyMac_getfiletype(filename) == 'PYC ' + || PyMac_getfiletype(filename) == 'APPL' #endif /* macintosh */ ) { /* Try to run a pyc file. First, re-open in binary */
