From 4f54ad4efc039a483cf907d8e2d67f0c5aecb163 Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 13 Sep 1999 15:25:06 +0000 Subject: [PATCH] (Fmake_coding_system): Don't set up `codesys->fixed.size'. (encode_coding_no_conversion): Don't refer `str->codesys->fixed.size'. --- src/file-coding.c | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) 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: -- 1.7.10.4