summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macglue.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:15:24 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:15:24 (GMT)
commitbb7e213a8b643dfed007f940d0c4beeb6dd56ca3 (patch)
tree04d802da63d6713308f93422f1467a1b47e7bb00 /Mac/Python/macglue.c
parentc3f593e6abe2988918093b9e832a597154f7e524 (diff)
downloadcpython-bb7e213a8b643dfed007f940d0c4beeb6dd56ca3.zip
cpython-bb7e213a8b643dfed007f940d0c4beeb6dd56ca3.tar.gz
cpython-bb7e213a8b643dfed007f940d0c4beeb6dd56ca3.tar.bz2
PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.
Diffstat (limited to 'Mac/Python/macglue.c')
-rw-r--r--Mac/Python/macglue.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 607f4bb..d7eb9ec 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -754,7 +754,7 @@ myhook_proc(short item, DialogPtr theDialog, struct hook_args *dataptr)
}
return item;
}
-
+#ifndef TARGET_API_MAC_CARBON
/*
** Ask the user for a directory. I still can't understand
** why Apple doesn't provide a standard solution for this...
@@ -769,12 +769,10 @@ PyMac_GetDirectory(dirfss, prompt)
StandardFileReply reply;
struct hook_args hook_args;
-#ifndef TARGET_API_MAC_CARBON
if ( !upp_inited ) {
myhook_upp = NewDlgHookYDProc(myhook_proc);
upp_inited = 1;
}
-#endif
if ( prompt && *prompt )
hook_args.prompt = (char *)Pstring(prompt);
else
@@ -797,12 +795,10 @@ void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
static Point where = {-1, -1};
struct hook_args hook_args;
-#ifndef TARGET_API_MAC_CARBON
if ( !upp_inited ) {
myhook_upp = NewDlgHookYDProc(myhook_proc);
upp_inited = 1;
}
-#endif
if ( prompt && *prompt )
hook_args.prompt = (char *)Pstring(prompt);
else
@@ -811,6 +807,7 @@ void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
CustomGetFile((FileFilterYDUPP)0, numTypes, typeList, reply, GETFILEPROMPT_ID, where,
myhook_upp, NULL, NULL, NULL, (void *)&hook_args);
}
+#endif /* TARGET_API_MAC_CARBON */
/* Convert a 4-char string object argument to an OSType value */
int