Mercurial > emacs
comparison src/coding.h @ 19284:dd1d7096f59d
(struct iso2022_spec): New member expected_charsets.
(CODING_SPEC_ISO_EXPECTED_CHARSETS): New macro.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sun, 10 Aug 1997 05:54:48 +0000 |
parents | 3217a3ba8ef7 |
children | 7182edce9028 |
comparison
equal
deleted
inserted
replaced
19283:43b3f86776e4 | 19284:dd1d7096f59d |
---|---|
155 int initial_designation[4]; | 155 int initial_designation[4]; |
156 | 156 |
157 /* A graphic register to which each charset should be designated. */ | 157 /* A graphic register to which each charset should be designated. */ |
158 unsigned char requested_designation[MAX_CHARSET + 1]; | 158 unsigned char requested_designation[MAX_CHARSET + 1]; |
159 | 159 |
160 /* Table of expected character sets for this coding system. If the | |
161 Nth element is 0, the charset of ID N is not an expected | |
162 character set. Such a character set is not encoded when | |
163 CODING_ISO_FLAG_SAFE is set. */ | |
164 unsigned char expected_charsets[MAX_CHARSET + 1]; | |
165 | |
160 /* Set to 1 temporarily only when graphic register 2 or 3 is invoked | 166 /* Set to 1 temporarily only when graphic register 2 or 3 is invoked |
161 by single-shift while encoding. */ | 167 by single-shift while encoding. */ |
162 int single_shifting; | 168 int single_shifting; |
163 | 169 |
164 /* Set to 1 temporarily only when processing at beginning of line. */ | 170 /* Set to 1 temporarily only when processing at beginning of line. */ |
172 coding->spec.iso2022.current_designation[reg] | 178 coding->spec.iso2022.current_designation[reg] |
173 #define CODING_SPEC_ISO_INITIAL_DESIGNATION(coding, reg) \ | 179 #define CODING_SPEC_ISO_INITIAL_DESIGNATION(coding, reg) \ |
174 coding->spec.iso2022.initial_designation[reg] | 180 coding->spec.iso2022.initial_designation[reg] |
175 #define CODING_SPEC_ISO_REQUESTED_DESIGNATION(coding, charset) \ | 181 #define CODING_SPEC_ISO_REQUESTED_DESIGNATION(coding, charset) \ |
176 coding->spec.iso2022.requested_designation[charset] | 182 coding->spec.iso2022.requested_designation[charset] |
183 #define CODING_SPEC_ISO_EXPECTED_CHARSETS(coding) \ | |
184 coding->spec.iso2022.expected_charsets | |
177 #define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \ | 185 #define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \ |
178 coding->spec.iso2022.single_shifting | 186 coding->spec.iso2022.single_shifting |
179 #define CODING_SPEC_ISO_BOL(coding) \ | 187 #define CODING_SPEC_ISO_BOL(coding) \ |
180 coding->spec.iso2022.bol | 188 coding->spec.iso2022.bol |
181 | 189 |