summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipos/utils.c
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2018-01-27 02:26:53 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2018-01-27 02:26:53 +0000
commit859c8a39f7184ee91ab28c339ebea52d7e0ebf1f (patch)
treec1bf967f898c98fc3bc39afabe11092b50c7d262 /Build/source/texk/dvipos/utils.c
parent4f808c41f04167cf3b905cff41df95db8f791fe7 (diff)
dvipos: support new JFM spec, avoid segfault
git-svn-id: svn://tug.org/texlive/trunk@46456 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipos/utils.c')
-rw-r--r--Build/source/texk/dvipos/utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/dvipos/utils.c b/Build/source/texk/dvipos/utils.c
index de91f464082..563565608ae 100644
--- a/Build/source/texk/dvipos/utils.c
+++ b/Build/source/texk/dvipos/utils.c
@@ -59,6 +59,15 @@ UNSIGNED_TRIPLE get_unsigned_triple (FILE *fp)
return triple;
}
+UNSIGNED_TRIPLE get_unsigned_triple_kanji (FILE *fp)
+{
+ /* yy zz XX -> XXyyzz */
+ UNSIGNED_TRIPLE triple = get_unsigned_byte(fp);
+ triple = triple << 8; triple += get_unsigned_byte(fp);
+ triple += get_unsigned_byte(fp) << 16;
+ return triple;
+}
+
SIGNED_TRIPLE get_signed_triple (FILE *fp)
{
UNSIGNED_TRIPLE triple;