From 859c8a39f7184ee91ab28c339ebea52d7e0ebf1f Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Sat, 27 Jan 2018 02:26:53 +0000 Subject: dvipos: support new JFM spec, avoid segfault git-svn-id: svn://tug.org/texlive/trunk@46456 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipos/utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Build/source/texk/dvipos/utils.c') 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; -- cgit v1.2.3