#include #include #include #include #include #include #include #include #include #include static void InitToolBox (void) { GrafPtr wmgrPort; #if defined(TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON > 0) /* no init required for the managers below in Carbon */ #else InitGraf (&qd.thePort); InitFonts (); InitWindows (); InitMenus (); TEInit (); InitDialogs (0L); MaxApplZone (); #endif InitCursor (); #if defined(TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON > 0) wmgrPort = CreateNewPort(); #else GetWMgrPort (&wmgrPort); #endif SetPort (wmgrPort); } static void EventLoop (void) { }