| version 1.2, 2004/03/02 16:33:27 | version 1.4, 2005/02/26 13:32:14 | 
| Line 5 | Line 5 | 
 |  |  | 
 | int trace_flag = 0; | int trace_flag = 0; | 
 |  |  | 
 | #ifdef TRACE |  | 
 | void trace_init(void) { | void trace_init(void) { | 
 | } | } | 
 |  |  | 
| Line 24  void trace_fmt(const char *fmt, ...) { | Line 23  void trace_fmt(const char *fmt, ...) { | 
 | vsprintf(buf, fmt, ap); | vsprintf(buf, fmt, ap); | 
 | va_end(ap); | va_end(ap); | 
 | #ifndef WIN32 | #ifndef WIN32 | 
| codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf)); | codecnv_sjistoeuc(euc, sizeof(euc), buf, sizeof(buf)); | 
| printf("%s\n", euc); | fprintf(stderr, "%s\n", euc); | 
 | #else | #else | 
| printf("%s\n", buf); | fprintf(stderr, "%s\n", buf); | 
 | #endif | #endif | 
 | } | } | 
 | #endif |  | 
 |  |  |