From 6cb8c3493019e1497921666fc268cb81943f9f1f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 27 Oct 2010 14:27:03 -0400 Subject: [PATCH] Add hb_var_int_t --- src/hb-buffer.h | 6 +++--- src/hb-common.h | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/hb-buffer.h b/src/hb-buffer.h index e6d477d..c2dc29f 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -41,8 +41,8 @@ typedef struct _hb_glyph_info_t { hb_codepoint_t codepoint; hb_mask_t mask; uint32_t cluster; - uint32_t internal1; - uint32_t internal2; + hb_var_int_t var1; + hb_var_int_t var2; } hb_glyph_info_t; typedef struct _hb_glyph_position_t { @@ -50,7 +50,7 @@ typedef struct _hb_glyph_position_t { hb_position_t y_advance; hb_position_t x_offset; hb_position_t y_offset; - uint32_t internal; + hb_var_int_t var1; } hb_glyph_position_t; diff --git a/src/hb-common.h b/src/hb-common.h index 85906c5..1dd02cb 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -91,6 +91,16 @@ typedef enum _hb_direction_t { #define HB_DIRECTION_REVERSE(dir) ((hb_direction_t) (((unsigned int) (dir)) ^ 1)) +typedef union _hb_var_int_t { + uint32_t u32; + int32_t i32; + uint16_t u16[2]; + int16_t i16[2]; + uint8_t u8[4]; + int8_t i8[4]; +} hb_var_int_t; + + HB_END_DECLS #endif /* HB_COMMON_H */ -- 2.7.4