Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/TTXSamples/TTXKcodeChange/TTXKcodeChange.c

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

revision 95 by doda, Tue Sep 9 13:52:16 2008 UTC revision 101 by doda, Wed Nov 5 13:05:50 2008 UTC
# Line 14  Line 14 
14  #endif /* NO_INET6 */  #endif /* NO_INET6 */
15    
16  #define ORDER 4800  #define ORDER 4800
 #define ID_MENUITEM 37000  
   
 #define IdReportNone      0  
 #define IdReportSendKcode 1  
 #define IdReportRecvKcode 2  
17    
18  #define IdModeFirst   0  #define IdModeFirst   0
19  #define IdModeESC     1  #define IdModeESC     1
# Line 35  typedef struct { Line 30  typedef struct {
30    Tsend origPsend;    Tsend origPsend;
31    TReadFile origPReadFile;    TReadFile origPReadFile;
32    TWriteFile origPWriteFile;    TWriteFile origPWriteFile;
   int report;  
33  } TInstVar;  } TInstVar;
34    
35  static TInstVar FAR * pvar;  static TInstVar FAR * pvar;
# Line 48  static void PASCAL FAR TTXInit(PTTSet ts Line 42  static void PASCAL FAR TTXInit(PTTSet ts
42    pvar->origPsend = NULL;    pvar->origPsend = NULL;
43    pvar->origPReadFile = NULL;    pvar->origPReadFile = NULL;
44    pvar->origPWriteFile = NULL;    pvar->origPWriteFile = NULL;
   pvar->report = IdReportNone;  
45  }  }
46    
47  void CommOut(char *str, int len) {  void CommOut(char *str, int len) {
# Line 185  void ParseInputStr(char *rstr, int rcoun Line 178  void ParseInputStr(char *rstr, int rcoun
178          for (p=buff, func=0; isdigit(*p); p++) {          for (p=buff, func=0; isdigit(*p); p++) {
179            func = func * 10 + *p - '0';            func = func * 10 + *p - '0';
180          }          }
181          if (*p != ';' || func == 0) {          if (*p != ';' || p == buff) {
182            blen = 0;            blen = 0;
183            mode = IdModeFirst;            mode = IdModeFirst;
184            break;            break;
# Line 267  void ParseInputStr(char *rstr, int rcoun Line 260  void ParseInputStr(char *rstr, int rcoun
260              CommOut("\r", 1);              CommOut("\r", 1);
261              break;              break;
262            default:            default:
263              /* nothing to do */;              ; /* nothing to do */
264          }          }
265          blen = 0;          blen = 0;
266          mode = IdModeFirst;          mode = IdModeFirst;
# Line 316  static void PASCAL FAR TTXCloseFile(TTXF Line 309  static void PASCAL FAR TTXCloseFile(TTXF
309    }    }
310  }  }
311    
 static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {  
   if (cmd==ID_MENUITEM) {  
     return 1;  
   }  
   return 0;  
 }  
   
312  static TTXExports Exports = {  static TTXExports Exports = {
313    sizeof(TTXExports),    sizeof(TTXExports),
314    ORDER,    ORDER,

Legend:
Removed from v.95  
changed lines
  Added in v.101

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