summaryrefslogtreecommitdiffstats
path: root/Mac/Include/macglue.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-06-12 15:29:46 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-06-12 15:29:46 (GMT)
commiteda78634a4719ac48735d551b6b2ab701792e4b4 (patch)
tree87a51dbf0cf76f0abe44204476c08a3b3a3a149a /Mac/Include/macglue.h
parent0130f0fb8f66d88a2d733ffc166f9942c8ed10df (diff)
downloadcpython-eda78634a4719ac48735d551b6b2ab701792e4b4.zip
cpython-eda78634a4719ac48735d551b6b2ab701792e4b4.tar.gz
cpython-eda78634a4719ac48735d551b6b2ab701792e4b4.tar.bz2
Make imports faster on the Mac, by
- Remembering whether sys.path components refer to files or folders, - Using mac-specific code to check for file existence, in stead of trying to fopen() each possible file. These mods need an accompanying mod to import.c.
Diffstat (limited to 'Mac/Include/macglue.h')
-rw-r--r--Mac/Include/macglue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index 0f53a0c..4d52fe6 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -81,8 +81,9 @@ void PyMac_HandleEvent Py_PROTO((EventRecord *, int)); /* Handle one event, if p
void PyMac_InitMenuBar(void); /* Setup menu bar as we want it */
void PyMac_RestoreMenuBar(void); /* Restore menu bar for ease of exiting */
-int PyMac_FindResourceModule(char *, char *); /* Test for 'PYC ' resource in a file */
+int PyMac_FindResourceModule(PyStringObject *, char *, char *); /* Test for 'PYC ' resource in a file */
PyObject * PyMac_LoadResourceModule(char *, char *); /* Load 'PYC ' resource from file */
+struct filedescr *PyMac_FindModuleExtension(char *, int *, char *); /* Look for module in single folder */
int PyMac_GetDirectory(FSSpec *dirfss, char *prompt); /* Ask user for a directory */
void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,