File:  [RetroPC.NET] / np2 / x11 / trace.c
Revision 1.2: download - view: text, annotated - select for diffs
Wed Mar 3 01:33:27 2004 JST (21 years, 8 months ago) by monaka
Branches: MAIN
CVS tags: VER_0_79, VER_0_78, VER_0_77, VER_0_76, VER_0_75, HEAD
cosmetic.

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


int trace_flag = 0;

#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>