comparison src/coding.c @ 17190:6637001cdb4b

Adjusted for the change of MAX_CHARSET.
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Mar 1997 23:31:34 +0000
parents bd8d38879c97
children ecacd8936926
comparison
equal deleted inserted replaced
17189:7c008ec99e97 17190:6637001cdb4b
2144 list of integer, nil, or t: designate the first 2144 list of integer, nil, or t: designate the first
2145 element (if integer) to REG initially, the remaining 2145 element (if integer) to REG initially, the remaining
2146 elements (if integer) is designated to REG on request, 2146 elements (if integer) is designated to REG on request,
2147 if an element is t, REG can be used by any charset, 2147 if an element is t, REG can be used by any charset,
2148 nil: REG is never used. */ 2148 nil: REG is never used. */
2149 for (charset = 0; charset < MAX_CHARSET; charset++) 2149 for (charset = 0; charset <= MAX_CHARSET; charset++)
2150 CODING_SPEC_ISO_REQUESTED_DESIGNATION (coding, charset) = -1; 2150 CODING_SPEC_ISO_REQUESTED_DESIGNATION (coding, charset) = -1;
2151 for (i = 0; i < 4; i++) 2151 for (i = 0; i < 4; i++)
2152 { 2152 {
2153 if (INTEGERP (flags[i]) 2153 if (INTEGERP (flags[i])
2154 && (charset = XINT (flags[i]), CHARSET_VALID_P (charset)) 2154 && (charset = XINT (flags[i]), CHARSET_VALID_P (charset))
2205 if (! (coding->flags & CODING_FLAG_ISO_SINGLE_SHIFT)) 2205 if (! (coding->flags & CODING_FLAG_ISO_SINGLE_SHIFT))
2206 /* Without any shifting, only REG 0 and 1 can be used. */ 2206 /* Without any shifting, only REG 0 and 1 can be used. */
2207 default_reg_bits &= 3; 2207 default_reg_bits &= 3;
2208 } 2208 }
2209 2209
2210 for (charset = 0; charset < MAX_CHARSET; charset++) 2210 for (charset = 0; charset <= MAX_CHARSET; charset++)
2211 if (CHARSET_VALID_P (charset) 2211 if (CHARSET_VALID_P (charset)
2212 && CODING_SPEC_ISO_REQUESTED_DESIGNATION (coding, charset) < 0) 2212 && CODING_SPEC_ISO_REQUESTED_DESIGNATION (coding, charset) < 0)
2213 { 2213 {
2214 /* We have not yet decided where to designate CHARSET. */ 2214 /* We have not yet decided where to designate CHARSET. */
2215 int reg_bits = default_reg_bits; 2215 int reg_bits = default_reg_bits;