if (IS_SJIS(c,*s,in_sjis)) {
if (c == ESC) { if (*s == to2B) { if ((s[1] == 'B') || (s[1] == '@')) { jis_stat = 0x80; s += 2; is_JIS++; continue; } jis_stat = 0; } else if (*s == to1B) { jis_stat = 0; if ((s[1] == 'B') || (s[1] == 'J') || (s[1] == 'H')) { s += 2; continue; } } else if (*s == ',') {	 jis_stat = 0; } } if (c & 0x80) n8bits++;  if (IS_SJIS(c, *s, in_sjis)) {
PUBLIC unsigned char * TO_EUC ARGS2(	CONST unsigned char *,	jis,	unsigned char *,	euc){    register CONST unsigned char *s;    register unsigned char *d, c, jis_stat;    register int to1B, to2B;    register int in_sjis = 0;    s = jis;    d = euc;    jis_stat = 0;    to2B = TO_2BCODE;    to1B = TO_1BCODE;    while (0 != (c = *s++)) {	if (c == ESC) {	    if (*s == to2B) {		if ((s[1] == 'B') || (s[1] == '@') || (s[1] == 'A')) {		    jis_stat = 0x80;		    s += 2;		    continue;		} else if ((s[1] == '(') && s[2] && (s[2] == 'C')) {		    jis_stat = 0x80;		    s += 3;		    continue;		}	    } else {		if (*s == to1B) {		    if ((s[1]=='B') || (s[1]=='J') ||			(s[1]=='H') || (s[1]=='T')) {			jis_stat = 0;			s += 2;			continue;		    }		}	    }	}	if (IS_SJIS(c,*s,in_sjis)) {	    SJIS_TO_EUC1(c, *s, d);	    d += 2;	    s++;	} else {	    if (jis_stat && (0x20 < c)) {		*d++ = jis_stat | c;	    } else {		*d++ = c;	    }	}    }    *d = 0;    return euc;}