diff options
author | Guido van Rossum <guido@python.org> | 1998-04-03 21:11:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-03 21:11:15 (GMT) |
commit | 6deac7a1056aeab17b1c7aeda99761cd1b2fd35d (patch) | |
tree | 5ed9350e87a1912c07fce1bbbd80d79ea7a7d1fc | |
parent | f015e18d9dd0973056538387e70e14c17f418200 (diff) | |
download | cpython-6deac7a1056aeab17b1c7aeda99761cd1b2fd35d.zip cpython-6deac7a1056aeab17b1c7aeda99761cd1b2fd35d.tar.gz cpython-6deac7a1056aeab17b1c7aeda99761cd1b2fd35d.tar.bz2 |
Make calls into ../PC/frozen_dllmain.c on MS_WIN32.
-rw-r--r-- | Python/frozenmain.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c index c1a8f3f..ab9d60d 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; } |