diff options
author | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2014-05-10 16:06:34 +0000 |
---|---|---|
committer | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2014-05-10 16:06:34 +0000 |
commit | 79d40ee49e310b503ff97ba2f5a91b0983cd3829 (patch) | |
tree | 09e824a78ca58d4afb1b4b5a18aec30a9f6c2d54 /Build/source | |
parent | 487d5d175ae7cafc58c99da95eb702cd4058bfb6 (diff) |
mendexk: modify indent
git-svn-id: svn://tug.org/texlive/trunk@33963 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/mendexk/fwrite.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c index 516e772db76..0dd7604e5f2 100644 --- a/Build/source/texk/mendexk/fwrite.c +++ b/Build/source/texk/mendexk/fwrite.c @@ -27,21 +27,21 @@ static void crcheck(char *lbuff, FILE *fp); void fprint_euc_char(FILE *fp, const char a, const char b) { - if (is_internalUPTEX()) { /* convert a character from EUC to UTF8 */ - int k = 0; - unsigned char str[5]; - int chr = (unsigned char)a<<8 | (unsigned char)b; - chr = (chr==0xffff) ? U_REPLACEMENT_CHARACTER : JIStoUCS2(chr & 0x7f7f); - chr = UCStoUTF8(chr); - /* if (BYTE1(chr) != 0) str[k++] = BYTE1(chr); */ /* do not happen */ - if (BYTE2(chr) != 0) str[k++] = BYTE2(chr); - if (BYTE3(chr) != 0) str[k++] = BYTE3(chr); - str[k++] = BYTE4(chr); - str[k++] = '\0'; - fprintf(fp,"%s",str); - } - else - fprintf(fp,"%c%c",a,b); + if (is_internalUPTEX()) { /* convert a character from EUC to UTF8 */ + int k = 0; + unsigned char str[5]; + int chr = (unsigned char)a<<8 | (unsigned char)b; + chr = (chr==0xffff) ? U_REPLACEMENT_CHARACTER : JIStoUCS2(chr & 0x7f7f); + chr = UCStoUTF8(chr); + /* if (BYTE1(chr) != 0) str[k++] = BYTE1(chr); */ /* do not happen */ + if (BYTE2(chr) != 0) str[k++] = BYTE2(chr); + if (BYTE3(chr) != 0) str[k++] = BYTE3(chr); + str[k++] = BYTE4(chr); + str[k++] = '\0'; + fprintf(fp,"%s",str); + } + else + fprintf(fp,"%c%c",a,b); } /* fprintf with convert kanji code */ |