summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-03 21:11:15 +0000
committerGuido van Rossum <guido@python.org>1998-04-03 21:11:15 +0000
commit99be3c056bf91dcc705c0dc69e79e9263771b7ed (patch)
tree507022314f7c9de4960dfacc66235502d718493e /Python/frozenmain.c
parent5a99c6b37f1b44ddd661caf273c9fa727d3904f5 (diff)
downloadcpython-99be3c056bf91dcc705c0dc69e79e9263771b7ed.tar.gz
Make calls into ../PC/frozen_dllmain.c on MS_WIN32.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index c1a8f3fe35..ab9d60d5ea 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -33,6 +33,11 @@ PERFORMANCE OF THIS SOFTWARE.
#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_FrozenMain(argc, argv)
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 @@ Py_FrozenMain(argc, argv)
if (inspect && isatty((int)fileno(stdin)))
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
+#ifdef MS_WIN32
+ PyWinFreeze_ExeTerm();
+#endif
Py_Finalize();
return sts;
}