Diff for /np2/x11/trace.c between versions 1.1.1.1 and 1.6

version 1.1.1.1, 2003/10/16 17:59:41 version 1.6, 2011/01/15 18:43:13
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        <stdarg.h>  #include        <stdarg.h>
 #include        "codecnv.h"  
   
   
 #ifdef TRACE  int trace_flag = 0;
   
 void trace_init(void) {  void trace_init(void) {
 }  }
   
Line 13  void trace_term(void) { Line 13  void trace_term(void) {
 void trace_fmt(const char *fmt, ...) {  void trace_fmt(const char *fmt, ...) {
   
         va_list ap;          va_list ap;
         char    buf[1024];          gchar buf[1024];
 #ifndef WIN32  
         char    euc[1024];  
 #endif  
   
         va_start(ap, fmt);          va_start(ap, fmt);
         vsprintf(buf, fmt, ap);          g_vsnprintf(buf, sizeof(buf), fmt, ap);
         va_end(ap);          va_end(ap);
 #ifndef WIN32          g_printerr("%s\n", buf);
         codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf));  
         printf("%s\n", euc);  
 #else  
         printf("%s\n", buf);  
 #endif  
 }  }
 #endif  
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.6


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