From dc86f9ebf9cfb98d7323c37e63f70ee9472d5e82 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 12 Oct 2000 21:23:19 +0000 Subject: [PATCH] Made options global (as PyMac_options) so macosmodule can access it. --- Mac/Python/macmain.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c index 3531f4c2bac..8d2d8f74bc9 100644 --- a/Mac/Python/macmain.c +++ b/Mac/Python/macmain.c @@ -71,7 +71,7 @@ short PyMac_AppRefNum; /* RefNum of application resource fork */ static char **orig_argv; static int orig_argc; -PyMac_PrefRecord options; +PyMac_PrefRecord PyMac_options; static void Py_Main(int, char **); /* Forward */ void PyMac_Exit(int); /* Forward */ @@ -272,8 +272,8 @@ init_common(int *argcp, char ***argvp, int embedded) #endif /* Get options from preference file (or from applet resource fork) */ - options.keep_console = POPT_KEEPCONSOLE_OUTPUT; /* default-default */ - PyMac_PreferenceOptions(&options); + PyMac_options.keep_console = POPT_KEEPCONSOLE_OUTPUT; /* default-default */ + PyMac_PreferenceOptions(&PyMac_options); if ( embedded ) { static char *emb_argv[] = {"embedded-python", 0}; @@ -282,7 +282,7 @@ init_common(int *argcp, char ***argvp, int embedded) *argvp = emb_argv; } else { /* Create argc/argv. Do it before we go into the options event loop. */ - *argcp = PyMac_GetArgv(argvp, options.noargs); + *argcp = PyMac_GetArgv(argvp, PyMac_options.noargs); #ifdef USE_ARGV0_CHDIR if (*argcp >= 1 && (*argvp)[0] && (*argvp)[0][0]) { /* Workaround for MacOS X, which currently (DP4) doesn't set @@ -297,17 +297,17 @@ init_common(int *argcp, char ***argvp, int embedded) } #endif /* Do interactive option setting, if allowed and