Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

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

revision 3873 by maya, Mon Apr 12 14:47:54 2010 UTC revision 3874 by maya, Tue May 11 11:15:21 2010 UTC
# Line 159  void CommResetSerial(PTTSet ts, PComVar Line 159  void CommResetSerial(PTTSet ts, PComVar
159    
160          memset(&dcb,0,sizeof(DCB));          memset(&dcb,0,sizeof(DCB));
161          dcb.DCBlength = sizeof(DCB);          dcb.DCBlength = sizeof(DCB);
162          dcb.BaudRate = GetCommSerialBaudRate(ts->Baud);          dcb.BaudRate = ts->Baud;
163          dcb.fBinary = TRUE;          dcb.fBinary = TRUE;
164          switch (ts->Parity) {          switch (ts->Parity) {
165                  case IdParityEven:                  case IdParityEven:
# Line 1058  void CommLock(PTTSet ts, PComVar cv, BOO Line 1058  void CommLock(PTTSet ts, PComVar cv, BOO
1058          }          }
1059  }  }
1060    
 int GetCommSerialBaudRate(int id)  
 {  
         char *ch;  
         int val;  
   
         // id-1がリストのindexとなる。  
         ch = BaudList[id - 1];  
         val = atoi(ch);  
         return (val);  
 }  
   
1061  BOOL PrnOpen(PCHAR DevName)  BOOL PrnOpen(PCHAR DevName)
1062  {  {
1063          char Temp[MAXPATHLEN];          char Temp[MAXPATHLEN];

Legend:
Removed from v.3873  
changed lines
  Added in v.3874

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