summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-08-10 05:54:48 +0000
committerKenichi Handa <handa@m17n.org>1997-08-10 05:54:48 +0000
commite6de76f88dea6fe33f247d6fadce4e14f3fc558c (patch)
tree78d5fefab2ab639b4eda7528fd6965071794565b /src
parent251929849bde6a7ccc18d8b08801a85080c2a4eb (diff)
downloademacs-e6de76f88dea6fe33f247d6fadce4e14f3fc558c.tar.gz
(struct iso2022_spec): New member expected_charsets.
(CODING_SPEC_ISO_EXPECTED_CHARSETS): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/coding.h8
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
/* A graphic register to which each charset should be designated. */
unsigned char requested_designation[MAX_CHARSET + 1];
+ /* Table of expected character sets for this coding system. If the
+ Nth element is 0, the charset of ID N is not an expected
+ character set. Such a character set is not encoded when
+ CODING_ISO_FLAG_SAFE is set. */
+ unsigned char expected_charsets[MAX_CHARSET + 1];
+
/* Set to 1 temporarily only when graphic register 2 or 3 is invoked
by single-shift while encoding. */
int single_shifting;
@@ -174,6 +180,8 @@ struct iso2022_spec
coding->spec.iso2022.initial_designation[reg]
#define CODING_SPEC_ISO_REQUESTED_DESIGNATION(coding, charset) \
coding->spec.iso2022.requested_designation[charset]
+#define CODING_SPEC_ISO_EXPECTED_CHARSETS(coding) \
+ coding->spec.iso2022.expected_charsets
#define CODING_SPEC_ISO_SINGLE_SHIFTING(coding) \
coding->spec.iso2022.single_shifting
#define CODING_SPEC_ISO_BOL(coding) \