Kaydet (Commit) c00df0bb authored tarafından Jack Jansen's avatar Jack Jansen

Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the previous…

Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the previous complicated expression.
üst f50fbf11
...@@ -283,7 +283,7 @@ init_common(int *argcp, char ***argvp, int embedded) ...@@ -283,7 +283,7 @@ init_common(int *argcp, char ***argvp, int embedded)
} else { } else {
/* Create argc/argv. Do it before we go into the options event loop. */ /* Create argc/argv. Do it before we go into the options event loop. */
*argcp = PyMac_GetArgv(argvp, PyMac_options.noargs); *argcp = PyMac_GetArgv(argvp, PyMac_options.noargs);
#ifdef USE_ARGV0_CHDIR #ifndef NO_ARGV0_CHDIR
if (*argcp >= 1 && (*argvp)[0] && (*argvp)[0][0]) { if (*argcp >= 1 && (*argvp)[0] && (*argvp)[0][0]) {
/* Workaround for MacOS X, which currently (DP4) doesn't set /* Workaround for MacOS X, which currently (DP4) doesn't set
** the working folder correctly ** the working folder correctly
...@@ -544,7 +544,7 @@ Py_Main(argc, argv) ...@@ -544,7 +544,7 @@ Py_Main(argc, argv)
void void
PyMac_OutputSeen() PyMac_OutputSeen()
{ {
#if defined(USE_GUSI) && !TARGET_API_MAC_CARBON_NOTYET #ifdef GUSISIOUX_STATE_UNKNOWN
gusisioux_state = GUSISIOUX_STATE_LASTREAD; gusisioux_state = GUSISIOUX_STATE_LASTREAD;
#endif #endif
} }
...@@ -569,7 +569,7 @@ PyMac_Exit(status) ...@@ -569,7 +569,7 @@ PyMac_Exit(status)
keep = 0; keep = 0;
break; break;
case POPT_KEEPCONSOLE_OUTPUT: case POPT_KEEPCONSOLE_OUTPUT:
#if defined(USE_GUSI) && !TARGET_API_MAC_CARBON_NOTYET #ifdef GUSISIOUX_STATE_UNKNOWN
if (gusisioux_state == GUSISIOUX_STATE_LASTWRITE || if (gusisioux_state == GUSISIOUX_STATE_LASTWRITE ||
gusisioux_state == GUSISIOUX_STATE_UNKNOWN ) gusisioux_state == GUSISIOUX_STATE_UNKNOWN )
keep = 1; keep = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment