Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
99be3c05
Commit
99be3c05
authored
Apr 03, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make calls into ../PC/frozen_dllmain.c on MS_WIN32.
parent
5a99c6b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Python/frozenmain.c
Python/frozenmain.c
+11
-0
No files found.
Python/frozenmain.c
View file @
99be3c05
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment