Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/filesys_log.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8225 by zmatsuo, Wed Sep 25 14:43:54 2019 UTC revision 8822 by zmatsuo, Thu Jul 2 15:41:37 2020 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 1994-1998 T. Teranishi   * Copyright (C) 1994-1998 T. Teranishi
3   * (C) 2005-2019 TeraTerm Project   * (C) 2005-2020 TeraTerm Project
4   * All rights reserved.   * All rights reserved.
5   *   *
6   * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
# Line 65  PFileVar FileVar = NULL; Line 65  PFileVar FileVar = NULL;
65  static PCHAR ProtoVar = NULL;  static PCHAR ProtoVar = NULL;
66  static int ProtoId;  static int ProtoId;
67    
 static BYTE LogLast = 0;  
68  BOOL FileLog = FALSE;  BOOL FileLog = FALSE;
69  BOOL BinLog = FALSE;  BOOL BinLog = FALSE;
70  BOOL DDELog = FALSE;  BOOL DDELog = FALSE;
# Line 751  BOOL LogStart() Line 750  BOOL LogStart()
750    
751  void LogPut1(BYTE b)  void LogPut1(BYTE b)
752  {  {
         LogLast = b;  
753          cv.LogBuf[cv.LogPtr] = b;          cv.LogBuf[cv.LogPtr] = b;
754          cv.LogPtr++;          cv.LogPtr++;
755          if (cv.LogPtr>=InBuffSize)          if (cv.LogPtr>=InBuffSize)
# Line 791  void LogPut1(BYTE b) Line 789  void LogPut1(BYTE b)
789          }          }
790  }  }
791    
 void Log1Byte(BYTE b)  
 {  
         if (b==0x0d)  
         {  
                 LogLast = b;  
                 return;  
         }  
         if ((b==0x0a) && (LogLast==0x0d))  
                 LogPut1(0x0d);  
         LogPut1(b);  
 }  
   
792  static BOOL Get1(PCHAR Buf, int *Start, int *Count, PBYTE b)  static BOOL Get1(PCHAR Buf, int *Start, int *Count, PBYTE b)
793  {  {
794          if (*Count<=0) return FALSE;          if (*Count<=0) return FALSE;

Legend:
Removed from v.8225  
changed lines
  Added in v.8822

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26