##// END OF EJS Templates
exewrapper: apply clang-format to silence test-check-clang-format.t
Yuya Nishihara -
r40452:36ba91e0 stable
parent child Browse files
Show More
@@ -25,7 +25,7 b' int strcpy_s(char *d, size_t n, const ch'
25
25
26 #define _tcscpy_s strcpy_s
26 #define _tcscpy_s strcpy_s
27 #define _tcscat_s strcat_s
27 #define _tcscat_s strcat_s
28 #define _countof(array) (sizeof(array)/sizeof(array[0]))
28 #define _countof(array) (sizeof(array) / sizeof(array[0]))
29 #endif
29 #endif
30
30
31 static TCHAR pyscript[MAX_PATH + 10];
31 static TCHAR pyscript[MAX_PATH + 10];
@@ -43,7 +43,7 b' int _tmain(int argc, TCHAR *argv[])'
43 HANDLE hfind;
43 HANDLE hfind;
44 const char *err;
44 const char *err;
45 HMODULE pydll;
45 HMODULE pydll;
46 void(__cdecl * Py_SetPythonHome)(TCHAR *home);
46 void(__cdecl * Py_SetPythonHome)(TCHAR * home);
47 int(__cdecl * Py_Main)(int argc, TCHAR *argv[]);
47 int(__cdecl * Py_Main)(int argc, TCHAR *argv[]);
48
48
49 if (GetModuleFileName(NULL, pyscript, _countof(pyscript)) == 0) {
49 if (GetModuleFileName(NULL, pyscript, _countof(pyscript)) == 0) {
@@ -86,11 +86,12 b' int _tmain(int argc, TCHAR *argv[])'
86 scenario, so let's load python dll from this dir. */
86 scenario, so let's load python dll from this dir. */
87 FindClose(hfind);
87 FindClose(hfind);
88 _tcscpy_s(pydllfile, _countof(pydllfile), pyhome);
88 _tcscpy_s(pydllfile, _countof(pydllfile), pyhome);
89 _tcscat_s(pydllfile, _countof(pydllfile), _T("\\") _T(HGPYTHONLIB)
89 _tcscat_s(pydllfile, _countof(pydllfile),
90 _T(".dll"));
90 _T("\\") _T(HGPYTHONLIB) _T(".dll"));
91 pydll = LoadLibrary(pydllfile);
91 pydll = LoadLibrary(pydllfile);
92 if (pydll == NULL) {
92 if (pydll == NULL) {
93 err = "failed to load private Python DLL " HGPYTHONLIB ".dll";
93 err = "failed to load private Python DLL " HGPYTHONLIB
94 ".dll";
94 goto bail;
95 goto bail;
95 }
96 }
96 Py_SetPythonHome =
97 Py_SetPythonHome =
General Comments 0
You need to be logged in to leave comments. Login now