Diff for /np2/sdl/trace.c between versions 1.1 and 1.3

version 1.1, 2003/11/21 06:51:13 version 1.3, 2005/02/13 05:31:26
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        <stdarg.h>  #include        <stdarg.h>
   #if defined(WIN32) && defined(OSLANG_EUC)
 #include        "codecnv.h"  #include        "codecnv.h"
   #endif
   
 #ifdef TRACE  #ifdef TRACE
 void trace_init(void) {  void trace_init(void) {
Line 14  void trace_fmt(const char *fmt, ...) { Line 15  void trace_fmt(const char *fmt, ...) {
   
         va_list ap;          va_list ap;
         char    buf[1024];          char    buf[1024];
 #ifndef WIN32  #if defined(WIN32) && defined(OSLANG_EUC)
         char    euc[1024];          char    sjis[1024];
 #endif  #endif
   
         va_start(ap, fmt);          va_start(ap, fmt);
         vsprintf(buf, fmt, ap);          vsprintf(buf, fmt, ap);
         va_end(ap);          va_end(ap);
 #ifndef WIN32  #if defined(WIN32) && defined(OSLANG_EUC)
         codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf));          codecnv_euctosjis(sjis, NELEMENTS(sjis), buf, (UINT)-1);
         printf("%s\n", euc);          printf("%s\n", sjis);
 #else  #else
         printf("%s\n", buf);          printf("%s\n", buf);
 #endif  #endif

Removed from v.1.1  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>