|
|
| version 1.1, 2003/10/16 17:59:41 | version 1.3, 2004/08/04 15:05:57 |
|---|---|
| Line 3 | Line 3 |
| #include "codecnv.h" | #include "codecnv.h" |
| #ifdef TRACE | int trace_flag = 0; |
| void trace_init(void) { | void trace_init(void) { |
| } | } |
| Line 23 void trace_fmt(const char *fmt, ...) { | Line 24 void trace_fmt(const char *fmt, ...) { |
| va_end(ap); | va_end(ap); |
| #ifndef WIN32 | #ifndef WIN32 |
| codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf)); | codecnv_sjis2euc(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 | |