Revision: 8991 https://osdn.net/projects/ttssh2/scm/svn/commits/8991 Author: zmatsuo Date: 2020-11-02 00:34:14 +0900 (Mon, 02 Nov 2020) Log Message: ----------- ログ関連で不要となった部分を削除 Modified Paths: -------------- branches/proto_unicode/teraterm/teraterm/filesys_proto.h branches/proto_unicode/teraterm/ttpfile/ftlib.c branches/proto_unicode/teraterm/ttpfile/ftlib.h -------------- next part -------------- Modified: branches/proto_unicode/teraterm/teraterm/filesys_proto.h =================================================================== --- branches/proto_unicode/teraterm/teraterm/filesys_proto.h 2020-11-01 15:33:59 UTC (rev 8990) +++ branches/proto_unicode/teraterm/teraterm/filesys_proto.h 2020-11-01 15:34:14 UTC (rev 8991) @@ -47,15 +47,6 @@ LONG FileSize, ByteCount; BOOL OverWrite; -#if 1 - BOOL LogFlag; - HANDLE LogFile; - WORD LogState; - WORD LogCount; - BYTE LogLineBuf[16]; - int FlushLogLineBuf; -#endif - BOOL Success; BOOL NoMsg; Modified: branches/proto_unicode/teraterm/ttpfile/ftlib.c =================================================================== --- branches/proto_unicode/teraterm/ttpfile/ftlib.c 2020-11-01 15:33:59 UTC (rev 8990) +++ branches/proto_unicode/teraterm/ttpfile/ftlib.c 2020-11-01 15:34:14 UTC (rev 8991) @@ -101,62 +101,6 @@ return CRC; } -#if 1 -void FTLog1Byte(PFileVarProto fv, BYTE b) -{ - char d[3]; - - if (fv->FlushLogLineBuf) { - int rest = 16 - fv->LogCount; - int i; - - for (i = 0 ; i < rest ; i++) - _lwrite(fv->LogFile," ", 3); - } - - if (fv->LogCount == 16 || fv->FlushLogLineBuf) - { - int i; - - // ASCII\x95\\x8E\xA6\x82\xF0\x92lj\xC1 (2008.6.3 yutaka) - _lwrite(fv->LogFile," ", 4); - for (i = 0 ; i < fv->LogCount ; i++) { - char ch[5]; - if (isprint(fv->LogLineBuf[i])) { - _snprintf_s(ch, sizeof(ch), _TRUNCATE, "%c", fv->LogLineBuf[i]); - _lwrite(fv->LogFile, ch, 1); - - } else { - _lwrite(fv->LogFile, ".", 1); - - } - - } - - fv->LogCount = 0; - _lwrite(fv->LogFile,"\015\012",2); - - if (fv->FlushLogLineBuf) - return; - } - - if (b<=0x9f) - d[0] = (b >> 4) + 0x30; - else - d[0] = (b >> 4) + 0x37; - - if ((b & 0x0f) <= 0x9) - d[1] = (b & 0x0F) + 0x30; - else - d[1] = (b & 0x0F) + 0x37; - - d[2] = 0x20; - _lwrite(fv->LogFile,d,3); - fv->LogLineBuf[fv->LogCount] = b; // add (2008.6.3 yutaka) - fv->LogCount++; -} -#endif - void FTSetTimeOut(PFileVarProto fv, int T) { KillTimer(fv->HMainWin, IdProtoTimer); Modified: branches/proto_unicode/teraterm/ttpfile/ftlib.h =================================================================== --- branches/proto_unicode/teraterm/ttpfile/ftlib.h 2020-11-01 15:33:59 UTC (rev 8990) +++ branches/proto_unicode/teraterm/ttpfile/ftlib.h 2020-11-01 15:34:14 UTC (rev 8991) @@ -40,9 +40,6 @@ BOOL GetNextFname(PFileVarProto fv); WORD UpdateCRC(BYTE b, WORD CRC); LONG UpdateCRC32(BYTE b, LONG CRC); -#if 1 -void FTLog1Byte(PFileVarProto fv, BYTE b); -#endif void FTSetTimeOut(PFileVarProto fv, int T); BOOL FTCreateFile(PFileVarProto fv);