From e29caf3f943b2b6f4997f469f7274252c82f465e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 19 May 2010 11:47:17 -0400 Subject: [PATCH] Add LONGDATETIME --- src/hb-open-type-private.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 16cc37614..4fc82dd5f 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -406,6 +406,21 @@ typedef IntType SHORT; /* 16-bit signed integer. */ typedef IntType ULONG; /* 32-bit unsigned integer. */ typedef IntType LONG; /* 32-bit signed integer. */ +/* Date represented in number of seconds since 12:00 midnight, January 1, + * 1904. The value is represented as a signed 64-bit integer. */ +struct LONGDATETIME +{ + inline bool sanitize (hb_sanitize_context_t *c) { + TRACE_SANITIZE (); + return likely (c->check_struct (this)); + } + private: + LONG major; + ULONG minor; + public: + DEFINE_SIZE_STATIC (8); +}; + /* Array of four uint8s (length = 32 bits) used to identify a script, language * system, feature, or baseline */ struct Tag : ULONG