COM ポート遅延再接続プラグイン for Tera Term
Revisión | ce1d541a6d1dc652d1ebef9f55cb7af1490cac9d (tree) |
---|---|
Tiempo | 2020-12-11 00:43:26 |
Autor | tomo3136 <tomo3136@loca...> |
Commiter | tomo3136 |
teraterm v4.105用TTSet構造体補正マクロをコメントアウト
teraterm r9042 向けに修正
@@ -13,6 +13,9 @@ | ||
13 | 13 | |
14 | 14 | #include "compat_w95.h" |
15 | 15 | |
16 | +//#define V40105 | |
17 | + | |
18 | +#ifdef V40105 | |
16 | 19 | #if ((TT_VERSION_MAJOR * 10000 + TT_VERSION_MINOR) < 40105) |
17 | 20 | #error "not support build version" |
18 | 21 | #endif |
@@ -38,6 +41,7 @@ static WORD tt_version = 0; | ||
38 | 41 | /* wrapper */ |
39 | 42 | #define TS(pts, nm) (((PTTSet)((char *)pts - (TS_ADJ(pts, nm))))->nm) |
40 | 43 | #define CV(pcv, nm) (((PComVar)((char *)pcv - (CV_ADJ(pcv, nm))))->nm) |
44 | +#endif /* V40105 */ | |
41 | 45 | |
42 | 46 | #define ORDER 6030 |
43 | 47 |
@@ -169,7 +173,11 @@ static void PASCAL TTXOpenFile(TTXFileHooks *hooks) | ||
169 | 173 | Sleep(pvar->ReconnectWait); |
170 | 174 | } |
171 | 175 | } |
176 | +#ifdef V40105 | |
172 | 177 | else if (TS(pvar->ts, AutoComPortReconnect)) |
178 | +#else | |
179 | + else if (pvar->ts->AutoComPortReconnect) | |
180 | +#endif | |
173 | 181 | { |
174 | 182 | Sleep(pvar->ReconnectWait); |
175 | 183 | } |
@@ -246,6 +254,7 @@ static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) | ||
246 | 254 | |
247 | 255 | /////////////////////////////////////////////////////////////// |
248 | 256 | |
257 | +#ifdef V40105 | |
249 | 258 | //same function with ttset::RunningVersion |
250 | 259 | static WORD TTRunningVersion() |
251 | 260 | { |
@@ -286,6 +295,7 @@ static WORD TTRunningVersion() | ||
286 | 295 | |
287 | 296 | return major * 10000 + minor; |
288 | 297 | } |
298 | +#endif /* V40105 */ | |
289 | 299 | |
290 | 300 | static TTXExports Exports = { |
291 | 301 | /* This must contain the size of the structure. See below for its usage. */ |
@@ -341,7 +351,9 @@ BOOL WINAPI DllMain(HANDLE hInstance, | ||
341 | 351 | DoCover_IsDebuggerPresent(); |
342 | 352 | hInst = hInstance; |
343 | 353 | pvar = &InstVar; |
354 | +#ifdef V40105 | |
344 | 355 | tt_version = TTRunningVersion(); |
356 | +#endif /* V40105 */ | |
345 | 357 | break; |
346 | 358 | case DLL_PROCESS_DETACH: |
347 | 359 | /* do process cleanup */ |