X-Git-Url: http://git.osdn.net/view?p=jnethack%2Fsource.git;a=blobdiff_plain;f=japanese%2Fjlib.c;fp=japanese%2Fjlib.c;h=42674d9475b4a14e53a0e1377f65ed1f9abeb306;hp=7c87e5c956c83f59b8e9e7e18bb513e4e61f9d1f;hb=24903690644118b268ccaeff94e17e464ce16493;hpb=f97a2568b1c5cecbc0a6f9430e501edb3b411e26 diff --git a/japanese/jlib.c b/japanese/jlib.c index 7c87e5c..42674d9 100644 --- a/japanese/jlib.c +++ b/japanese/jlib.c @@ -316,30 +316,6 @@ tty_cputc2(unsigned char *str) #endif } -/* print out 1 byte character to tty (IC->output_kcode) */ -static void -tty_jputc(unsigned int c) -{ -#if defined(NO_TERMS) && (defined(MSDOS) || defined(WIN32CON)) - xputc(c); -#else - putchar(c); -#endif -} - -/* print out 2 bytes character to tty (IC->output_kcode) */ -static void -tty_jputc2(unsigned char *str) -{ -#if defined(NO_TERMS) && (defined(MSDOS) || defined(WIN32CON)) - xputc2(str); -#else - while(*str){ - putchar(*str++); - } -#endif -} - /*#define ICUTF8/**/ /* 1•¶Žš‚Ì’·‚³‚ð•Ô‚· @@ -379,8 +355,8 @@ jbuffer( int cnt; if(!buf) buf = ibuf; - if(!f1) f1 = tty_jputc; - if(!f2) f2 = tty_jputc2; + if(!f1) f1 = tty_cputc; + if(!f2) f2 = tty_cputc2; c = c & 0xff; @@ -421,8 +397,8 @@ jbuffer( unsigned char f2buf[16]; if(!buf) buf = ibuf; - if(!f1) f1 = tty_jputc; - if(!f2) f2 = tty_jputc2; + if(!f1) f1 = tty_cputc; + if(!f2) f2 = tty_cputc2; c = c & 0xff;