summaryrefslogtreecommitdiff
path: root/Build/source/texk/ptexenc
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-02-06 10:58:23 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-02-06 10:58:23 +0000
commit174b83580efb7953436f4ab9cfbebddc19936217 (patch)
treeae8a7c89151ee9f93a9555f56d7bc6138ff0b6b3 /Build/source/texk/ptexenc
parent9904a9f5b98acf226b7295d30db24f951991faa3 (diff)
kanji-internal (ptex and friends 1 of 5)
git-svn-id: svn://tug.org/texlive/trunk@49955 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ptexenc')
-rw-r--r--Build/source/texk/ptexenc/ChangeLog5
-rw-r--r--Build/source/texk/ptexenc/ptexenc.c4
-rw-r--r--Build/source/texk/ptexenc/ptexenc/ptexenc.h4
3 files changed, 11 insertions, 2 deletions
diff --git a/Build/source/texk/ptexenc/ChangeLog b/Build/source/texk/ptexenc/ChangeLog
index 6d6b10f3c71..5f6f77f01ba 100644
--- a/Build/source/texk/ptexenc/ChangeLog
+++ b/Build/source/texk/ptexenc/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-23 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * ptexenc.c, ptexenc/ptexenc.h: define enc_to_string() and
+ get_internal_enc() as extern.
+
2018-06-14 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* ptexenc.c, ptexenc/ptexenc.h: remove sjisterminal (w32 only).
diff --git a/Build/source/texk/ptexenc/ptexenc.c b/Build/source/texk/ptexenc/ptexenc.c
index 43696693227..6c8238c4a2c 100644
--- a/Build/source/texk/ptexenc/ptexenc.c
+++ b/Build/source/texk/ptexenc/ptexenc.c
@@ -49,7 +49,7 @@ static int file_enc = ENC_UNKNOWN;
static int internal_enc = ENC_UNKNOWN;
static int terminal_enc = ENC_UNKNOWN;
-static const_string enc_to_string(int enc)
+const_string enc_to_string(int enc)
{
switch (enc) {
case ENC_JIS: return "jis";
@@ -114,7 +114,7 @@ static int get_file_enc(void)
return file_enc;
}
-static int get_internal_enc(void)
+int get_internal_enc(void)
{
if (internal_enc == ENC_UNKNOWN) set_internal_enc(get_default_enc());
return internal_enc;
diff --git a/Build/source/texk/ptexenc/ptexenc/ptexenc.h b/Build/source/texk/ptexenc/ptexenc/ptexenc.h
index 2417c5e6150..93004162390 100644
--- a/Build/source/texk/ptexenc/ptexenc/ptexenc.h
+++ b/Build/source/texk/ptexenc/ptexenc/ptexenc.h
@@ -39,6 +39,10 @@ extern PTENCDLL boolean set_enc_string(const_string file, const_string inter);
#define getencstring get_enc_string
#define setencstring set_enc_string
+/* get internal Kanji encode (used in kanji_dump.c) */
+extern PTENCDLL const_string enc_to_string(int enc);
+extern PTENCDLL int get_internal_enc(void);
+
/* decide if internal Kanji encode is SJIS/UPTEX or not */
extern PTENCDLL boolean is_internalSJIS(void);
extern PTENCDLL boolean is_internalEUC(void);