diff Python/frozenmain.c @ 7846:6c6a48bc5817 legacy-trunk

Make calls into ../PC/frozen_dllmain.c on MS_WIN32.
author Guido van Rossum <guido@python.org>
date Fri, 03 Apr 1998 21:11:15 +0000
parents bccdeca81669
children bd47ee068b83
line wrap: on
line diff
--- a/Python/frozenmain.c	Fri Apr 03 21:10:36 1998 +0000
+++ b/Python/frozenmain.c	Fri Apr 03 21:11:15 1998 +0000
@@ -33,6 +33,11 @@
 
 #include "Python.h"
 
+#ifdef MS_WIN32
+extern void PyWinFreeze_ExeInit();
+extern void PyWinFreeze_ExeTerm();
+#endif
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h> /* For isatty() */
 #endif
@@ -64,6 +69,9 @@
 
 	Py_SetProgramName(argv[0]);
 	Py_Initialize();
+#ifdef MS_WIN32
+	PyWinFreeze_ExeInit();
+#endif
 
 	if (Py_VerboseFlag)
 		fprintf(stderr, "Python %s\n%s\n",
@@ -84,6 +92,9 @@
 	if (inspect && isatty((int)fileno(stdin)))
 		sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
 
+#ifdef MS_WIN32
+	PyWinFreeze_ExeTerm();
+#endif
 	Py_Finalize();
 	return sts;
 }