Develop and Download Open Source Software

Browse CVS Repository

Diff of /ttssh2/teraterm/source/teraterm/filesys.cpp

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

revision 1.8 by maya, Thu Jan 4 15:11:44 2007 UTC revision 1.9 by maya, Sun Jan 21 16:18:35 2007 UTC
# Line 283  void LogStart() Line 283  void LogStart()
283                  strncat(LogVar->FullName, ts.LogDefaultName, sizeof(LogVar->FullName));                  strncat(LogVar->FullName, ts.LogDefaultName, sizeof(LogVar->FullName));
284                  ParseStrftimeFileName(LogVar->FullName);                  ParseStrftimeFileName(LogVar->FullName);
285    
 #ifdef I18N  
                 if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option, &ts))  
 #else  
286                  if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option))                  if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option))
 #endif  
287                  {                  {
288                          FreeFileVar(&LogVar);                          FreeFileVar(&LogVar);
289                          FreeTTFILE();                          FreeTTFILE();
# Line 313  void LogStart() Line 309  void LogStart()
309    
310          }          }
311          else          else
 #ifdef I18N  
                 (*SetFileVar)(FileVar, &ts);  
 #else  
312                  (*SetFileVar)(LogVar);                  (*SetFileVar)(LogVar);
 #endif  
313    
314          if (ts.TransBin > 0)          if (ts.TransBin > 0)
315          {          {
# Line 634  void FileSendStart() Line 626  void FileSendStart()
626    {    {
627      Option = MAKELONG(ts.TransBin,0);      Option = MAKELONG(ts.TransBin,0);
628          SendVar->FullName[0] = 0;          SendVar->FullName[0] = 0;
 #ifdef I18N  
         if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option, &ts))  
 #else  
629      if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option))      if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option))
 #endif  
630          {          {
631        FileTransEnd(OpSendFile);        FileTransEnd(OpSendFile);
632        return;        return;
# Line 646  void FileSendStart() Line 634  void FileSendStart()
634      ts.TransBin = LOWORD(Option);      ts.TransBin = LOWORD(Option);
635    }    }
636    else    else
 #ifdef I18N  
     (*SetFileVar)(FileVar, &ts);  
 #else  
637      (*SetFileVar)(SendVar);      (*SetFileVar)(SendVar);
 #endif  
638    
639    SendVar->FileHandle = _lopen(SendVar->FullName,OF_READ);    SendVar->FileHandle = _lopen(SendVar->FullName,OF_READ);
640    SendVar->FileOpen = (SendVar->FileHandle>0);    SendVar->FileOpen = (SendVar->FileHandle>0);
# Line 975  int ProtoDlgParse() Line 959  int ProtoDlgParse()
959    P = ActiveWin;    P = ActiveWin;
960    if (PtDlg==NULL) return P;    if (PtDlg==NULL) return P;
961    
 #ifdef I18N  
   if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv,&ts))  
 #else  
962    if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv))    if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv))
 #endif  
963      P = 0; /* continue */      P = 0; /* continue */
964    else {    else {
965      CommSend(&cv);      CommSend(&cv);
# Line 1018  void KermitStart(int mode) Line 998  void KermitStart(int mode)
998        FileVar->OpId = OpKmtSend;        FileVar->OpId = OpKmtSend;
999        if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)        if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1000        {        {
 #ifdef I18N  
         if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w,&ts) ||  
 #else  
1001          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w) ||          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w) ||
 #endif  
1002              (FileVar->NumFname==0))              (FileVar->NumFname==0))
1003          {          {
1004            ProtoEnd();            ProtoEnd();
# Line 1030  void KermitStart(int mode) Line 1006  void KermitStart(int mode)
1006          }          }
1007        }        }
1008        else        else
 #ifdef I18N  
     (*SetFileVar)(FileVar, &ts);  
 #else  
1009          (*SetFileVar)(FileVar);          (*SetFileVar)(FileVar);
 #endif  
1010            break;            break;
1011      case IdKmtReceive:      case IdKmtReceive:
1012        FileVar->OpId = OpKmtRcv;        FileVar->OpId = OpKmtRcv;
# Line 1051  void KermitStart(int mode) Line 1023  void KermitStart(int mode)
1023          }          }
1024        }        }
1025        else        else
 #ifdef I18N  
     (*SetFileVar)(FileVar, &ts);  
 #else  
1026          (*SetFileVar)(FileVar);          (*SetFileVar)(FileVar);
 #endif  
1027            break;            break;
1028      case IdKmtFinish:      case IdKmtFinish:
1029        FileVar->OpId = OpKmtFin;        FileVar->OpId = OpKmtFin;
# Line 1089  void XMODEMStart(int mode) Line 1057  void XMODEMStart(int mode)
1057    if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)    if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1058    {    {
1059      Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt);      Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt);
 #ifdef I18N  
     if (! (*GetXFname)(FileVar->HMainWin,  
       mode==IdXReceive,&Option,FileVar,ts.FileDir,&ts))  
 #else  
1060      if (! (*GetXFname)(FileVar->HMainWin,      if (! (*GetXFname)(FileVar->HMainWin,
1061        mode==IdXReceive,&Option,FileVar,ts.FileDir))        mode==IdXReceive,&Option,FileVar,ts.FileDir))
 #endif  
1062      {      {
1063        ProtoEnd();        ProtoEnd();
1064        return;        return;
# Line 1104  void XMODEMStart(int mode) Line 1067  void XMODEMStart(int mode)
1067      ts.XmodemBin = LOWORD(Option);      ts.XmodemBin = LOWORD(Option);
1068    }    }
1069    else    else
 #ifdef I18N  
     (*SetFileVar)(FileVar, &ts);  
 #else  
1070      (*SetFileVar)(FileVar);      (*SetFileVar)(FileVar);
 #endif  
1071    
1072    if (mode==IdXReceive)    if (mode==IdXReceive)
1073      FileVar->FileHandle = _lcreat(FileVar->FullName,0);      FileVar->FileHandle = _lcreat(FileVar->FullName,0);
# Line 1145  void ZMODEMStart(int mode) Line 1104  void ZMODEMStart(int mode)
1104      FileVar->OpId = OpZSend;      FileVar->OpId = OpZSend;
1105      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1106      {      {
 #ifdef I18N  
       if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt,&ts) ||  
 #else  
1107        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt) ||        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt) ||
 #endif  
1108            (FileVar->NumFname==0))            (FileVar->NumFname==0))
1109        {        {
1110          ProtoEnd();          ProtoEnd();
# Line 1158  void ZMODEMStart(int mode) Line 1113  void ZMODEMStart(int mode)
1113        ts.XmodemBin = Opt;        ts.XmodemBin = Opt;
1114      }      }
1115      else      else
 #ifdef I18N  
       (*SetFileVar)(FileVar, &ts);  
 #else  
1116        (*SetFileVar)(FileVar);        (*SetFileVar)(FileVar);
 #endif  
1117    }    }
1118    else /* IdZReceive or IdZAuto */    else /* IdZReceive or IdZAuto */
1119      FileVar->OpId = OpZRcv;      FileVar->OpId = OpZRcv;
# Line 1189  void BPStart(int mode) Line 1140  void BPStart(int mode)
1140      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1141      {      {
1142            FileVar->FullName[0] = 0;            FileVar->FullName[0] = 0;
 #ifdef I18N  
       if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option, &ts))  
 #else  
1143        if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option))        if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option))
 #endif  
1144            {            {
1145          ProtoEnd();          ProtoEnd();
1146          return;          return;
1147        }        }
1148      }      }
1149      else      else
 #ifdef I18N  
       (*SetFileVar)(FileVar, &ts);  
 #else  
1150        (*SetFileVar)(FileVar);        (*SetFileVar)(FileVar);
 #endif  
1151    }    }
1152    else /* IdBPReceive or IdBPAuto */    else /* IdBPReceive or IdBPAuto */
1153      FileVar->OpId = OpBPRcv;      FileVar->OpId = OpBPRcv;
# Line 1231  void QVStart(int mode) Line 1174  void QVStart(int mode)
1174      FileVar->OpId = OpQVSend;      FileVar->OpId = OpQVSend;
1175      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1176      {      {
 #ifdef I18N  
       if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W, &ts) ||  
 #else  
1177        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W) ||        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W) ||
 #endif  
1178            (FileVar->NumFname==0))            (FileVar->NumFname==0))
1179        {        {
1180          ProtoEnd();          ProtoEnd();
# Line 1243  void QVStart(int mode) Line 1182  void QVStart(int mode)
1182        }        }
1183      }      }
1184      else      else
 #ifdef I18N  
       (*SetFileVar)(FileVar, &ts);  
 #else  
1185        (*SetFileVar)(FileVar);        (*SetFileVar)(FileVar);
 #endif  
1186    }    }
1187    else    else
1188      FileVar->OpId = OpQVRcv;      FileVar->OpId = OpQVRcv;
# Line 1264  void QVStart(int mode) Line 1199  void QVStart(int mode)
1199    
1200  /*  /*
1201   * $Log$   * $Log$
1202     * Revision 1.9  2007/01/21 16:18:35  maya
1203     * 表示メッセージの読み込み対応
1204     *
1205   * Revision 1.8  2007/01/04 15:11:44  maya   * Revision 1.8  2007/01/04 15:11:44  maya
1206   * 表示メッセージの読み込み対応   * 表示メッセージの読み込み対応
1207   *   *

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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