From: tomo Date: Mon, 13 Sep 1999 15:25:06 +0000 (+0000) Subject: (Fmake_coding_system): Don't set up `codesys->fixed.size'. X-Git-Tag: r21-2-19-utf-2000-0_7-0~9 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=4f54ad4efc039a483cf907d8e2d67f0c5aecb163;p=chise%2Fxemacs-chise.git- (Fmake_coding_system): Don't set up `codesys->fixed.size'. (encode_coding_no_conversion): Don't refer `str->codesys->fixed.size'. --- diff --git a/src/file-coding.c b/src/file-coding.c index 14b0ade..3068c89 100644 --- a/src/file-coding.c +++ b/src/file-coding.c @@ -858,10 +858,6 @@ if TYPE is 'ccl: CHECK_STRING (doc_string); CODING_SYSTEM_DOC_STRING (codesys) = doc_string; -#ifdef UTF2000 - if (ty == CODESYS_NO_CONVERSION) - codesys->fixed.size = 1; -#endif EXTERNAL_PROPERTY_LIST_LOOP (rest, key, value, props) { if (EQ (key, Qmnemonic)) @@ -5794,31 +5790,7 @@ encode_coding_no_conversion (Lstream *encoding, CONST unsigned char *src, break; case 1: ch = ( ch << 6 ) | ( c & 0x3f ); - switch ( str->codesys->fixed.size ) - { - case 1: - Dynarr_add (dst, ch & 0xff); - break; - case 2: - Dynarr_add (dst, (ch >> 8) & 0xff); - Dynarr_add (dst, ch & 0xff); - break; - case 3: - Dynarr_add (dst, (ch >> 16) & 0xff); - Dynarr_add (dst, (ch >> 8) & 0xff); - Dynarr_add (dst, ch & 0xff); - break; - case 4: - Dynarr_add (dst, (ch >> 24) & 0xff); - Dynarr_add (dst, (ch >> 16) & 0xff); - Dynarr_add (dst, (ch >> 8) & 0xff); - Dynarr_add (dst, ch & 0xff); - break; - default: - fprintf(stderr, "It seems %d bytes stream.\n", - str->codesys->fixed.size); - abort (); - } + Dynarr_add (dst, ch & 0xff); char_boundary = 0; break; default: