Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macmain.c @ 12834:c2a0f2a81fa8 legacy-trunk
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.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 02 Jun 2000 21:28:52 +0000 |
| parents | eaee924efb19 |
| children | 0fe0216f6c4e |
line wrap: on
line diff
--- a/Mac/Python/macmain.c Fri Jun 02 21:27:11 2000 +0000 +++ b/Mac/Python/macmain.c Fri Jun 02 21:28:52 2000 +0000 @@ -48,6 +48,7 @@ #include <profiler.h> #endif #endif +#include <unistd.h> #ifdef THINK_C #include <console.h> @@ -91,6 +92,8 @@ #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 @@ TEInit(); InitDialogs((long)0); InitMenus(); +#endif InitCursor(); init_appearance(); #endif @@ -165,9 +169,11 @@ 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;
