Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/commlib.c

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

revision 8616 by zmatsuo, Mon Mar 23 15:54:26 2020 UTC revision 8860 by zmatsuo, Sat Jul 25 16:00:24 2020 UTC
# Line 39  Line 39 
39  #include "ttlib.h"  #include "ttlib.h"
40  #include "ttfileio.h"  #include "ttfileio.h"
41  #include "ttplug.h" /* TTPLUG */  #include "ttplug.h" /* TTPLUG */
42    #include "ttdde.h"
43    
44  #include "commlib.h"  #include "commlib.h"
45  #include <winsock2.h>  #include <winsock2.h>
# Line 142  void CommInit(PComVar cv) Line 143  void CommInit(PComVar cv)
143          cv->BinPtr = 0;          cv->BinPtr = 0;
144          cv->BStart = 0;          cv->BStart = 0;
145          cv->BCount = 0;          cv->BCount = 0;
146          cv->DStart = 0;  //      cv->DStart = 0;
147          cv->DCount = 0;  //      cv->DCount = 0;
148          cv->BinSkip = 0;          cv->BinSkip = 0;
149          cv->FilePause = 0;          cv->FilePause = 0;
150          cv->ProtoFlag = FALSE;          cv->ProtoFlag = FALSE;
# Line 836  BOOL CommCanClose(PComVar cv) Line 837  BOOL CommCanClose(PComVar cv)
837          if (cv->InBuffCount>0) {          if (cv->InBuffCount>0) {
838                  return FALSE;                  return FALSE;
839          }          }
840          if ((cv->HLogBuf!=NULL) &&          if ((cv->HLogBuf!=NULL) && (cv->LCount>0)) {
             ((cv->LCount>0) ||  
              (cv->DCount>0))) {  
841                  return FALSE;                  return FALSE;
842          }          }
843          if ((cv->HBinBuf!=NULL) &&          if ((cv->HBinBuf!=NULL) &&
844              (cv->BCount>0)) {              (cv->BCount>0)) {
845                  return FALSE;                  return FALSE;
846          }          }
847            if (DDELog && DDEGetCount() > 0) {
848                    return FALSE;
849            }
850          return TRUE;          return TRUE;
851  }  }
852    
# Line 1235  void CommLock(PTTSet ts, PComVar cv, BOO Line 1237  void CommLock(PTTSet ts, PComVar cv, BOO
1237          }          }
1238          if ((cv->PortType==IdTCPIP) ||          if ((cv->PortType==IdTCPIP) ||
1239              (cv->PortType==IdSerial) &&              (cv->PortType==IdSerial) &&
1240                          (!(ts->Flow == IdFlowHard || ts->Flow == IdFlowHardDsrDtr))                          (!(ts->Flow == IdFlowHard || ts->Flow == IdFlowHardDsrDtr))
1241                          ) {                          ) {
1242                  if (Lock) {                  if (Lock) {
1243                          b = XOFF;                          b = XOFF;
1244                  }                  }

Legend:
Removed from v.8616  
changed lines
  Added in v.8860

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