commit | d3b30be378c1dec0259a626d9a408bb9ca1b71ac | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <[email protected]> | Wed May 11 18:06:12 2011 -0400 |
committer | Behdad Esfahbod <[email protected]> | Wed May 11 18:06:12 2011 -0400 |
tree | 1632a79a0b7cc9ffb273a968a5d21e4420379ba2 | |
parent | 3cc6e9dcb42551761c3a1a9d3c25b1f1bcdc2419 [diff] |
[API] Add HB_UNTAG() Useful in C API only.
diff --git a/src/hb-common.h b/src/hb-common.h index 9546b21..a30587a 100644 --- a/src/hb-common.h +++ b/src/hb-common.h
@@ -74,6 +74,7 @@ typedef uint32_t hb_tag_t; #define HB_TAG(a,b,c,d) ((hb_tag_t)((((uint8_t)(a))<<24)|(((uint8_t)(b))<<16)|(((uint8_t)(c))<<8)|((uint8_t)(d)))) +#define HB_UNTAG(tag) ((uint8_t)((tag)>>24)), ((uint8_t)((tag)>>16)), ((uint8_t)((tag)>>8)), ((uint8_t)(tag)) #define HB_TAG_NONE HB_TAG(0,0,0,0)