• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

COM ポート遅延再接続プラグイン for Tera Term


Commit MetaInfo

Revisiónce1d541a6d1dc652d1ebef9f55cb7af1490cac9d (tree)
Tiempo2020-12-11 00:43:26
Autortomo3136 <tomo3136@loca...>
Commitertomo3136

Log Message

teraterm v4.105用TTSet構造体補正マクロをコメントアウト
teraterm r9042 向けに修正

Cambiar Resumen

Diferencia incremental

--- a/ttxreconnect.c
+++ b/ttxreconnect.c
@@ -13,6 +13,9 @@
1313
1414 #include "compat_w95.h"
1515
16+//#define V40105
17+
18+#ifdef V40105
1619 #if ((TT_VERSION_MAJOR * 10000 + TT_VERSION_MINOR) < 40105)
1720 #error "not support build version"
1821 #endif
@@ -38,6 +41,7 @@ static WORD tt_version = 0;
3841 /* wrapper */
3942 #define TS(pts, nm) (((PTTSet)((char *)pts - (TS_ADJ(pts, nm))))->nm)
4043 #define CV(pcv, nm) (((PComVar)((char *)pcv - (CV_ADJ(pcv, nm))))->nm)
44+#endif /* V40105 */
4145
4246 #define ORDER 6030
4347
@@ -169,7 +173,11 @@ static void PASCAL TTXOpenFile(TTXFileHooks *hooks)
169173 Sleep(pvar->ReconnectWait);
170174 }
171175 }
176+#ifdef V40105
172177 else if (TS(pvar->ts, AutoComPortReconnect))
178+#else
179+ else if (pvar->ts->AutoComPortReconnect)
180+#endif
173181 {
174182 Sleep(pvar->ReconnectWait);
175183 }
@@ -246,6 +254,7 @@ static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd)
246254
247255 ///////////////////////////////////////////////////////////////
248256
257+#ifdef V40105
249258 //same function with ttset::RunningVersion
250259 static WORD TTRunningVersion()
251260 {
@@ -286,6 +295,7 @@ static WORD TTRunningVersion()
286295
287296 return major * 10000 + minor;
288297 }
298+#endif /* V40105 */
289299
290300 static TTXExports Exports = {
291301 /* This must contain the size of the structure. See below for its usage. */
@@ -341,7 +351,9 @@ BOOL WINAPI DllMain(HANDLE hInstance,
341351 DoCover_IsDebuggerPresent();
342352 hInst = hInstance;
343353 pvar = &InstVar;
354+#ifdef V40105
344355 tt_version = TTRunningVersion();
356+#endif /* V40105 */
345357 break;
346358 case DLL_PROCESS_DETACH:
347359 /* do process cleanup */