Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a6653c

Browse files
committed
Revert creation of launcher.exe
1 parent 85ae1a6 commit 5a6653c

3 files changed

Lines changed: 0 additions & 224 deletions

File tree

PC/WinMain.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,15 @@
22

33
#define WIN32_LEAN_AND_MEAN
44
#include <windows.h>
5-
#include <fcntl.h>
65

76
#include "Python.h"
87

9-
#ifdef LAUNCHER
10-
/* Q105305 suggests this routine to adjust the handles. */
11-
static void adjust_file(DWORD handle, FILE* f, char* mode)
12-
{
13-
int hCrt;
14-
FILE *hf;
15-
hCrt = _open_osfhandle((intptr_t)GetStdHandle(handle), _O_TEXT);
16-
hf = _fdopen(hCrt, mode);
17-
*f = *hf;
18-
setvbuf(f, NULL, _IONBF, 0);
19-
/* Alternatively, we could use __set_app_type and _set_osfhnd,
20-
but that appears to be undocumented. */
21-
}
22-
#endif
23-
248
int WINAPI WinMain(
259
HINSTANCE hInstance, /* handle to current instance */
2610
HINSTANCE hPrevInstance, /* handle to previous instance */
2711
LPSTR lpCmdLine, /* pointer to command line */
2812
int nCmdShow /* show state of window */
2913
)
3014
{
31-
#ifdef LAUNCHER
32-
int i;
33-
if (__argc > 1 && strcmp(__argv[1], "-console") == 0) {
34-
/* Allocate a console, and remove the -console argument. */
35-
AllocConsole();
36-
for (i = 2; i < __argc; i++)
37-
__argv[i-1] = __argv[i];
38-
__argc--;
39-
/* Make stdin, stdout, stderr use the newly allocated OS handles. */
40-
adjust_file(STD_INPUT_HANDLE, stdin, "r");
41-
adjust_file(STD_OUTPUT_HANDLE, stdout, "w");
42-
adjust_file(STD_ERROR_HANDLE, stderr, "w");
43-
}
44-
#endif
4515
return Py_Main(__argc, __argv);
4616
}

PCbuild/launcher.vcproj

Lines changed: 0 additions & 184 deletions
This file was deleted.

PCbuild/pcbuild.sln

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib", "zlib.vcproj", "{680
7979
{CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
8080
EndProjectSection
8181
EndProject
82-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "launcher", "launcher.vcproj", "{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}"
83-
ProjectSection(ProjectDependencies) = postProject
84-
EndProjectSection
85-
EndProject
8682
Global
8783
GlobalSection(SolutionConfiguration) = preSolution
8884
Debug = Debug
@@ -185,12 +181,6 @@ Global
185181
{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.Release.Build.0 = Release|Win32
186182
{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.ReleaseItanium.ActiveCfg = Release|Win32
187183
{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.ReleaseItanium.Build.0 = Release|Win32
188-
{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}.Debug.ActiveCfg = Debug|Win32
189-
{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}.Debug.Build.0 = Debug|Win32
190-
{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}.Release.ActiveCfg = Release|Win32
191-
{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}.Release.Build.0 = Release|Win32
192-
{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32
193-
{065D53DF-5D8E-4CBD-AE32-B9E29D4FC5C6}.ReleaseItanium.Build.0 = ReleaseItanium|Win32
194184
EndGlobalSection
195185
GlobalSection(SolutionItems) = postSolution
196186
readme.txt = readme.txt

0 commit comments

Comments
 (0)