Revision: 7328 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7328 Author: zmatsuo Date: 2018-12-18 23:30:32 +0900 (Tue, 18 Dec 2018) Log Message: ----------- 変更した変数名を元に戻した Modified Paths: -------------- trunk/teraterm/ttpmacro/ttl.c -------------- next part -------------- Modified: trunk/teraterm/ttpmacro/ttl.c =================================================================== --- trunk/teraterm/ttpmacro/ttl.c 2018-12-14 15:41:26 UTC (rev 7327) +++ trunk/teraterm/ttpmacro/ttl.c 2018-12-18 14:30:32 UTC (rev 7328) @@ -93,8 +93,7 @@ static intptr_t DirHandle[NumDirHandle] = {-1,-1, -1, -1, -1, -1, -1, -1}; /* for "FileMarkPtr" and "FileSeekBack" commands */ #define NumFHandle 16 -//static HANDLE FHandle[NumFHandle]; -static HANDLE FHandle_[NumFHandle]; +static HANDLE FHandle[NumFHandle]; static long FPointer[NumFHandle]; // forward declaration @@ -103,8 +102,8 @@ static void HandleInit() { int i; - for (i=0; i<_countof(FHandle_); i++) { - FHandle_[i] = INVALID_HANDLE_VALUE; + for (i=0; i<_countof(FHandle); i++) { + FHandle[i] = INVALID_HANDLE_VALUE; } } @@ -118,9 +117,10 @@ if (FH == INVALID_HANDLE_VALUE) { return -1; } - for (i=0; i<_countof(FHandle_); i++) { - if (FHandle_[i] == INVALID_HANDLE_VALUE) { - FHandle_[i] = FH; + for (i=0; i<_countof(FHandle); i++) { + if (FHandle[i] == INVALID_HANDLE_VALUE) { + FHandle[i] = FH; + FPointer[i] = 0; return i; } } @@ -129,15 +129,15 @@ static HANDLE HandleGet(int fhi) { - if (fhi < 0 || _countof(FHandle_) < fhi) { + if (fhi < 0 || _countof(FHandle) < fhi) { return INVALID_HANDLE_VALUE; } - return FHandle_[fhi]; + return FHandle[fhi]; } static void HandleFree(int fhi) { - FHandle_[fhi] = INVALID_HANDLE_VALUE; + FHandle[fhi] = INVALID_HANDLE_VALUE; } BOOL InitTTL(HWND HWin)