Clean up NO_INDEX
[profile/ivi/org.tizen.video-player.git] / src / hb-open-type-private.hh
index eabe1b8..71fb44e 100644 (file)
 #include "hb-blob.h"
 
 
-/* Table/script/language-system/feature/... not found */
-#define NO_INDEX               ((unsigned int) 0xFFFF)
-
-
 
 /*
  * Casts
@@ -418,6 +414,12 @@ DEFINE_NULL_DATA (Tag, "    ");
 /* Glyph index number, same as uint16 (length = 16 bits) */
 typedef USHORT GlyphID;
 
+/* Script/language-system/feature index */
+struct Index : USHORT {
+  static const unsigned int NOT_FOUND_INDEX = 0xFFFF;
+};
+DEFINE_NULL_DATA (Index, "\xff\xff");
+
 /* Offset to a table, same as uint16 (length = 16 bits), Null offset = 0x0000 */
 typedef USHORT Offset;