diff Mac/Python/macglue.c @ 13604:483e75efc111 legacy-trunk

PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 14 Jul 2000 22:15:24 +0000
parents db963a615bc9
children a901c2c0166b
line wrap: on
line diff
--- a/Mac/Python/macglue.c	Fri Jul 14 22:14:46 2000 +0000
+++ b/Mac/Python/macglue.c	Fri Jul 14 22:15:24 2000 +0000
@@ -754,7 +754,7 @@
 	}
 	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 @@
 	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 @@
 	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 @@
 	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