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 7290 by zmatsuo, Fri Nov 30 16:28:25 2018 UTC revision 7291 by zmatsuo, Fri Nov 30 16:28:38 2018 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 1994-1998 T. Teranishi   * Copyright (C) 1994-1998 T. Teranishi
3   * (C) 2005-2017 TeraTerm Project   * (C) 2005-2018 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 503  end: Line 503  end:
503  }  }
504    
505    
 extern "C" {  
506  BOOL LogStart()  BOOL LogStart()
507  {  {
508          LONG Option;          LONG Option;
# Line 769  BOOL LogStart() Line 768  BOOL LogStart()
768    
769          return TRUE;          return TRUE;
770  }  }
 }  
771    
772  void LogPut1(BYTE b)  void LogPut1(BYTE b)
773  {  {
# Line 1176  void FreeBinBuf() Line 1174  void FreeBinBuf()
1174          cv.BCount = 0;          cv.BCount = 0;
1175  }  }
1176    
 extern "C" {  
1177  void FileSendStart()  void FileSendStart()
1178  {  {
1179          LONG Option = 0;          LONG Option = 0;
# Line 1244  void FileSendStart() Line 1241  void FileSendStart()
1241    
1242          if (! OpenFTDlg(SendVar))          if (! OpenFTDlg(SendVar))
1243                  FileTransEnd(OpSendFile);                  FileTransEnd(OpSendFile);
         }  
1244  }  }
1245    
1246  void FileTransEnd(WORD OpId)  void FileTransEnd(WORD OpId)
# Line 1302  int FSEcho1(BYTE b) Line 1298  int FSEcho1(BYTE b)
1298                  return CommTextEcho(&cv,(PCHAR)&b,1);                  return CommTextEcho(&cv,(PCHAR)&b,1);
1299  }  }
1300    
 extern "C" {  
1301  // 以下の時はこちらの関数を使う  // 以下の時はこちらの関数を使う
1302  // - BinaryMode == true  // - BinaryMode == true
1303  // - FileBracketMode == false  // - FileBracketMode == false
# Line 1363  void FileSendBinayBoost() Line 1358  void FileSendBinayBoost()
1358    
1359          FileTransEnd(OpSendFile);          FileTransEnd(OpSendFile);
1360  }  }
 }  
1361    
 extern "C" {  
1362  void FileSend()  void FileSend()
1363  {  {
1364          WORD c, fc;          WORD c, fc;
# Line 1469  void FileSend() Line 1462  void FileSend()
1462    
1463          FileTransEnd(OpSendFile);          FileTransEnd(OpSendFile);
1464  }  }
 }  
1465    
 extern "C" {  
1466  void FLogChangeButton(BOOL Pause)  void FLogChangeButton(BOOL Pause)
1467  {  {
1468          if (FLogDlg!=NULL)          if (FLogDlg!=NULL)
1469                  FLogDlg->ChangeButton(Pause);                  FLogDlg->ChangeButton(Pause);
1470  }  }
 }  
1471    
 extern "C" {  
1472  void FLogRefreshNum()  void FLogRefreshNum()
1473  {  {
1474          if (FLogDlg!=NULL)          if (FLogDlg!=NULL)
1475                  FLogDlg->RefreshNum();                  FLogDlg->RefreshNum();
1476  }  }
 }  
1477    
1478  BOOL OpenProtoDlg(PFileVar fv, int IdProto, int Mode, WORD Opt1, WORD Opt2)  BOOL OpenProtoDlg(PFileVar fv, int IdProto, int Mode, WORD Opt1, WORD Opt2)
1479  {  {
# Line 1581  BOOL OpenProtoDlg(PFileVar fv, int IdPro Line 1569  BOOL OpenProtoDlg(PFileVar fv, int IdPro
1569          return TRUE;          return TRUE;
1570  }  }
1571    
 extern "C" {  
1572  void CloseProtoDlg()  void CloseProtoDlg()
1573  {  {
1574          if (PtDlg!=NULL)          if (PtDlg!=NULL)
# Line 1603  void CloseProtoDlg() Line 1590  void CloseProtoDlg()
1590                  }                  }
1591          }          }
1592  }  }
 }  
1593    
1594  BOOL ProtoStart()  BOOL ProtoStart()
1595  {  {
# Line 1649  void ProtoEnd() Line 1635  void ProtoEnd()
1635          FreeFileVar(&FileVar);          FreeFileVar(&FileVar);
1636  }  }
1637    
 extern "C" {  
1638  int ProtoDlgParse()  int ProtoDlgParse()
1639  {  {
1640          int P;          int P;
# Line 1666  int ProtoDlgParse() Line 1651  int ProtoDlgParse()
1651          }          }
1652          return P;          return P;
1653  }  }
 }  
1654    
 extern "C" {  
1655  void ProtoDlgTimeOut()  void ProtoDlgTimeOut()
1656  {  {
1657          if (PtDlg!=NULL)          if (PtDlg!=NULL)
1658                  (*ProtoTimeOutProc)(ProtoId,FileVar,ProtoVar,&cv);                  (*ProtoTimeOutProc)(ProtoId,FileVar,ProtoVar,&cv);
1659  }  }
 }  
1660    
 extern "C" {  
1661  void ProtoDlgCancel()  void ProtoDlgCancel()
1662  {  {
1663          if ((PtDlg!=NULL) &&          if ((PtDlg!=NULL) &&
1664              (*ProtoCancel)(ProtoId,FileVar,ProtoVar,&cv))              (*ProtoCancel)(ProtoId,FileVar,ProtoVar,&cv))
1665                  ProtoEnd();                  ProtoEnd();
1666  }  }
 }  
1667    
 extern "C" {  
1668  void KermitStart(int mode)  void KermitStart(int mode)
1669  {  {
1670          WORD w;          WORD w;
# Line 1740  void KermitStart(int mode) Line 1719  void KermitStart(int mode)
1719          if (! OpenProtoDlg(FileVar,PROTO_KMT,mode,0,0))          if (! OpenProtoDlg(FileVar,PROTO_KMT,mode,0,0))
1720                  ProtoEnd();                  ProtoEnd();
1721  }  }
 }  
1722    
 extern "C" {  
1723  void XMODEMStart(int mode)  void XMODEMStart(int mode)
1724  {  {
1725          LONG Option;          LONG Option;
# Line 1827  void XMODEMStart(int mode) Line 1804  void XMODEMStart(int mode)
1804                             ts.XmodemOpt,ts.XmodemBin))                             ts.XmodemOpt,ts.XmodemBin))
1805                  ProtoEnd();                  ProtoEnd();
1806  }  }
 }  
1807    
 extern "C" {  
1808  void YMODEMStart(int mode)  void YMODEMStart(int mode)
1809  {  {
1810          WORD Opt;          WORD Opt;
# Line 1871  void YMODEMStart(int mode) Line 1846  void YMODEMStart(int mode)
1846          if (! OpenProtoDlg(FileVar,PROTO_YM,mode,Opt,0))          if (! OpenProtoDlg(FileVar,PROTO_YM,mode,Opt,0))
1847                  ProtoEnd();                  ProtoEnd();
1848  }  }
 }  
1849    
 extern "C" {  
1850  void ZMODEMStart(int mode)  void ZMODEMStart(int mode)
1851  {  {
1852          WORD Opt;          WORD Opt;
# Line 1912  void ZMODEMStart(int mode) Line 1885  void ZMODEMStart(int mode)
1885          if (! OpenProtoDlg(FileVar,PROTO_ZM,mode,Opt,0))          if (! OpenProtoDlg(FileVar,PROTO_ZM,mode,Opt,0))
1886                  ProtoEnd();                  ProtoEnd();
1887  }  }
 }  
1888    
 extern "C" {  
1889  void BPStart(int mode)  void BPStart(int mode)
1890  {  {
1891          LONG Option = 0;          LONG Option = 0;
# Line 1947  void BPStart(int mode) Line 1918  void BPStart(int mode)
1918          if (! OpenProtoDlg(FileVar,PROTO_BP,mode,0,0))          if (! OpenProtoDlg(FileVar,PROTO_BP,mode,0,0))
1919                  ProtoEnd();                  ProtoEnd();
1920  }  }
 }  
1921    
 extern "C" {  
1922  void QVStart(int mode)  void QVStart(int mode)
1923  {  {
1924          WORD W;          WORD W;
# Line 1983  void QVStart(int mode) Line 1952  void QVStart(int mode)
1952          if (! OpenProtoDlg(FileVar,PROTO_QV,mode,0,0))          if (! OpenProtoDlg(FileVar,PROTO_QV,mode,0,0))
1953                  ProtoEnd();                  ProtoEnd();
1954  }  }
 }  

Legend:
Removed from v.7290  
changed lines
  Added in v.7291

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