mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
Getting rid of all the code inside #ifdef macintosh too.
This commit is contained in:
parent
4bae2d5e46
commit
eddc1449ba
19 changed files with 6 additions and 458 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue