comparison src/coding.h @ 18001:9846609c4fd5

(struct iso2022_spec): Member requested_designation is changed to array of unsigned char. (CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION): New macro.
author Kenichi Handa <handa@m17n.org>
date Wed, 28 May 1997 04:36:26 +0000
parents e7f0ba5c198c
children 1d91f0e4ff7d
comparison
equal deleted inserted replaced
18000:2873e0dabbc1 18001:9846609c4fd5
147 147
148 /* A charset initially designated to each graphic register. */ 148 /* A charset initially designated to each graphic register. */
149 int initial_designation[4]; 149 int initial_designation[4];
150 150
151 /* A graphic register to which each charset should be designated. */ 151 /* A graphic register to which each charset should be designated. */
152 int requested_designation[MAX_CHARSET + 1]; 152 unsigned char requested_designation[MAX_CHARSET + 1];
153 153
154 /* Set to 1 temporarily only when graphic register 2 or 3 is invoked 154 /* Set to 1 temporarily only when graphic register 2 or 3 is invoked
155 by single-shift while encoding. */ 155 by single-shift while encoding. */
156 int single_shifting; 156 int single_shifting;
157 157
170 coding->spec.iso2022.requested_designation[charset] 170 coding->spec.iso2022.requested_designation[charset]
171 #define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \ 171 #define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \
172 coding->spec.iso2022.single_shifting 172 coding->spec.iso2022.single_shifting
173 #define CODING_SPEC_ISO_BOL(coding) \ 173 #define CODING_SPEC_ISO_BOL(coding) \
174 coding->spec.iso2022.bol 174 coding->spec.iso2022.bol
175
176 /* A value which may appear in
177 coding->spec.iso2022.requested_designation indicating that the
178 corresponding charset does not request any graphic register to be
179 designated. */
180 #define CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION 4
175 181
176 /* Return a charset which is currently designated to the graphic plane 182 /* Return a charset which is currently designated to the graphic plane
177 PLANE in the coding-system CODING. */ 183 PLANE in the coding-system CODING. */
178 #define CODING_SPEC_ISO_PLANE_CHARSET(coding, plane) \ 184 #define CODING_SPEC_ISO_PLANE_CHARSET(coding, plane) \
179 ((CODING_SPEC_ISO_INVOCATION (coding, plane) < 0) \ 185 ((CODING_SPEC_ISO_INVOCATION (coding, plane) < 0) \