File:  [RetroPC.NET] / np2 / x11 / trace.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Fri Oct 17 02:59:41 2003 JST (22 years ago) by yui
Branches: mie
CVS tags: start, rel_036, VER_0_74, VER_0_73, VER_0_72, VER_0_71, VER_0_70
Neko Project II

#include	"compiler.h"
#include	<stdarg.h>
#include	"codecnv.h"


#ifdef TRACE
void trace_init(void) {
}

void trace_term(void) {
}

void trace_fmt(const char *fmt, ...) {

	va_list	ap;
	char	buf[1024];
#ifndef WIN32
	char	euc[1024];
#endif

	va_start(ap, fmt);
	vsprintf(buf, fmt, ap);
	va_end(ap);
#ifndef WIN32
	codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf));
	printf("%s\n", euc);
#else
	printf("%s\n", buf);
#endif
}
#endif


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