|
|
| version 1.2, 2003/11/13 15:33:06 | version 1.4, 2003/11/28 08:01:33 |
|---|---|
| Line 46 static const char ClassName[] = "TRACE-c | Line 46 static const char ClassName[] = "TRACE-c |
| static const char ClassEdit[] = "EDIT"; | static const char ClassEdit[] = "EDIT"; |
| static const char traceen[] = "Enable"; | static const char traceen[] = "Enable"; |
| static const char tracefh[] = "File out"; | static const char tracefh[] = "File out"; |
| static const char crlf[] = "\r\n"; | |
| static TRACEWIN tracewin; | static TRACEWIN tracewin; |
| static HWND hView = NULL; | static HWND hView = NULL; |
| Line 93 static void View_AddString(const char *l | Line 92 static void View_AddString(const char *l |
| strcpy(szView, p); | strcpy(szView, p); |
| } | } |
| strcat(szView, lpszString); | strcat(szView, lpszString); |
| strcat(szView, crlf); | strcat(szView, str_crlf); |
| SetWindowText(hView, szView); | SetWindowText(hView, szView); |
| View_ScrollToBottom(hView); | View_ScrollToBottom(hView); |
| } | } |
| Line 271 void trace_init(void) { | Line 270 void trace_init(void) { |
| } | } |
| ShowWindow(hwnd, SW_SHOW); | ShowWindow(hwnd, SW_SHOW); |
| UpdateWindow(hwnd); | UpdateWindow(hwnd); |
| trace_fmt("start debugging..."); | |
| } | } |
| void trace_term(void) { | void trace_term(void) { |
| Line 302 void trace_fmt(const char *fmt, ...) { | Line 302 void trace_fmt(const char *fmt, ...) { |
| } | } |
| if (tracewin.fh != FILEH_INVALID) { | if (tracewin.fh != FILEH_INVALID) { |
| file_write(tracewin.fh, buf, strlen(buf)); | file_write(tracewin.fh, buf, strlen(buf)); |
| file_write(tracewin.fh, crlf, strlen(crlf)); | file_write(tracewin.fh, str_crlf, strlen(str_crlf)); |
| } | } |
| } | } |
| } | } |