File:  [RetroPC.NET] / np2 / x11 / trace.c
Revision 1.4: download - view: text, annotated - select for diffs
Sat Feb 26 22:32:14 2005 JST (20 years, 8 months ago) by monaka
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
compile again. (XXX: oemtext)

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


int trace_flag = 0;

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_sjistoeuc(euc, sizeof(euc), buf, sizeof(buf));
	fprintf(stderr, "%s\n", euc);
#else
	fprintf(stderr, "%s\n", buf);
#endif
}

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