From ee6eeb1876d2764e505a30122f273b644bf63ec1 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 2 Jun 2000 21:28:52 +0000 Subject: Removed (within an #ifdef) Carbon-incompatabilities: - Don't call all the toolbox init routines. - No balloon help, so removed help code from the initial dialog. --- Mac/Python/macmain.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c index 98c8323..90d0093 100644 --- a/Mac/Python/macmain.c +++ b/Mac/Python/macmain.c @@ -48,6 +48,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #endif #endif +#include #ifdef THINK_C #include @@ -91,6 +92,8 @@ init_mac_world() #ifdef THINK_C printf("\n"); #else +#ifndef TARGET_API_MAC_CARBON + /* These aren't needed for carbon */ MaxApplZone(); InitGraf(&qd.thePort); InitFonts(); @@ -98,6 +101,7 @@ init_mac_world() TEInit(); InitDialogs((long)0); InitMenus(); +#endif InitCursor(); init_appearance(); #endif @@ -165,9 +169,11 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp) DisposeDialog(dialog); exit(0); } +#ifndef TARGET_API_MAC_CARBON if ( item == OPT_HELP ) { HMSetBalloons(!HMGetBalloons()); } +#endif if ( item == OPT_CMDLINE ) { int new_argc, newer_argc; char **new_argv, **newer_argv; -- cgit v0.12