##// END OF EJS Templates
exewrapper: format with clang-format...
Augie Fackler -
r34637:31c6c4d2 default
parent child Browse files
Show More
@@ -23,7 +23,6 b' int strcpy_s(char *d, size_t n, const ch'
23 }
23 }
24 #endif
24 #endif
25
25
26
27 static char pyscript[MAX_PATH + 10];
26 static char pyscript[MAX_PATH + 10];
28 static char pyhome[MAX_PATH + 10];
27 static char pyhome[MAX_PATH + 10];
29 static char envpyhome[MAX_PATH + 10];
28 static char envpyhome[MAX_PATH + 10];
@@ -43,8 +42,7 b' int main(int argc, char *argv[])'
43 void (__cdecl *Py_SetPythonHome)(char *home);
42 void(__cdecl * Py_SetPythonHome)(char *home);
44 int (__cdecl *Py_Main)(int argc, char *argv[]);
43 int(__cdecl * Py_Main)(int argc, char *argv[]);
45
44
46 if (GetModuleFileName(NULL, pyscript, sizeof(pyscript)) == 0)
45 if (GetModuleFileName(NULL, pyscript, sizeof(pyscript)) == 0) {
47 {
48 err = "GetModuleFileName failed";
46 err = "GetModuleFileName failed";
49 goto bail;
47 goto bail;
50 }
48 }
@@ -87,10 +85,12 b' int main(int argc, char *argv[])'
87 strcat_s(pydllfile, sizeof(pydllfile), "\\" HGPYTHONLIB ".dll");
85 strcat_s(pydllfile, sizeof(pydllfile), "\\" HGPYTHONLIB ".dll");
88 pydll = LoadLibrary(pydllfile);
86 pydll = LoadLibrary(pydllfile);
89 if (pydll == NULL) {
87 if (pydll == NULL) {
90 err = "failed to load private Python DLL " HGPYTHONLIB ".dll";
88 err = "failed to load private Python DLL " HGPYTHONLIB
89 ".dll";
91 goto bail;
90 goto bail;
92 }
91 }
93 Py_SetPythonHome = (void*)GetProcAddress(pydll, "Py_SetPythonHome");
92 Py_SetPythonHome =
93 (void *)GetProcAddress(pydll, "Py_SetPythonHome");
94 if (Py_SetPythonHome == NULL) {
94 if (Py_SetPythonHome == NULL) {
95 err = "failed to get Py_SetPythonHome";
95 err = "failed to get Py_SetPythonHome";
96 goto bail;
96 goto bail;
General Comments 0
You need to be logged in to leave comments. Login now