diff options
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h index 2f5e58e28b7..ec25b1d0366 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -157,6 +157,12 @@ struct iso2022_spec | |||
| 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; |
| @@ -174,6 +180,8 @@ struct iso2022_spec | |||
| 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) \ |