diff Mac/Python/macmain.c @ 5617:70855574516b legacy-trunk

- Added Py_GetProgramFullPath - Added PyMac_StopGUSISpin and have it called at exit time (fixes crash when exiting with sockets open) - Added PLstr... funcs needed by gusi: those provided by StdCLib are broken under cfm68k
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 23 May 1997 15:35:14 +0000
parents a56b44b35505
children fb170ce82951
line wrap: on
line diff
--- a/Mac/Python/macmain.c	Fri May 23 15:33:20 1997 +0000
+++ b/Mac/Python/macmain.c	Fri May 23 15:35:14 1997 +0000
@@ -209,6 +209,7 @@
 	GUSIDefaultSetup();
 	PyMac_SetGUSISpin();
 	PyMac_SetGUSIOptions();
+	atexit(PyMac_StopGUSISpin);
 #endif
 
 #ifdef USE_SIOUX
@@ -464,13 +465,6 @@
 	}
 	else
 		SIOUXSettings.autocloseonquit = 1;
-#ifdef USE_GUSI
-	/*
-	** Workaround for Sioux/GUSI combo: we should not call
-	** SiouxHandleOneEvent after the window is closed
-	*/
-	PyMac_ConsoleIsDead = 1;
-#endif /* USE_GUSI */
 #endif /* USE_SIOUX */
 #ifdef THINK_C
 	console_options.pause_atexit = keep;
@@ -487,6 +481,13 @@
 	return orig_argv[0];
 }
 
+/* The same, but used differently */
+char *
+Py_GetProgramFullPath()
+{
+	return Py_GetProgramName();
+}
+
 
 /* Make the *original* argc/argv available to other modules.
    This is rare, but it is needed by the secureware extension. */