mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
- Reorganized init code
- Fixed serious bug in code to get options from a resource
This commit is contained in:
parent
dc1c64a148
commit
01fbc68896
5 changed files with 63 additions and 45 deletions
|
@ -295,31 +295,12 @@ event_loop()
|
|||
}
|
||||
}
|
||||
|
||||
/* Initialize the Mac toolbox world */
|
||||
|
||||
static void
|
||||
init_mac_world()
|
||||
{
|
||||
#ifdef THINK_C
|
||||
printf("\n");
|
||||
#else
|
||||
MaxApplZone();
|
||||
InitGraf(&qd.thePort);
|
||||
InitFonts();
|
||||
InitWindows();
|
||||
TEInit();
|
||||
InitDialogs((long)0);
|
||||
InitMenus();
|
||||
InitCursor();
|
||||
#endif
|
||||
}
|
||||
/* Get the argv vector, return argc */
|
||||
|
||||
int
|
||||
PyMac_GetArgv(pargv)
|
||||
char ***pargv;
|
||||
{
|
||||
init_mac_world();
|
||||
|
||||
arg_count = 0;
|
||||
arg_vector[arg_count++] = strdup(get_application_name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue