diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-10-20 07:22:17 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-10-20 07:22:17 +0000 |
commit | 8e875770a05a55eb6f3948894eb5fc3aaaa6704b (patch) | |
tree | 7e70b2bf63db5e384a6f0909adde4bb151f39e78 /Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh | |
parent | ec33d1a0d47e85033a9f19511334444f55086d89 (diff) |
harfbuzz 2.0.1
git-svn-id: svn://tug.org/texlive/trunk@48954 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh')
-rw-r--r-- | Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh index 9d2e1fa7c1d..08e72064af8 100644 --- a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh +++ b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-open-type.hh @@ -56,6 +56,7 @@ namespace OT { template <typename Type, unsigned int Size> struct IntType { + typedef Type type; inline void set (Type i) { v.set (i); } inline operator Type(void) const { return v; } inline bool operator == (const IntType<Type,Size> &o) const { return (Type) v == (Type) o.v; } @@ -161,6 +162,8 @@ DECLARE_NULL_NAMESPACE_BYTES (OT, Index); template <typename Type, bool has_null=true> struct Offset : Type { + typedef Type type; + inline bool is_null (void) const { return has_null && 0 == *this; } inline void *serialize (hb_serialize_context_t *c, const void *base) |