(mfont__init): Initialize buf to NULL.
[m17n/m17n-lib.git] / src / internal-flt.h
index e47dbb1..fd7fc10 100644 (file)
@@ -1,5 +1,5 @@
 /* internal-flt.h -- common header file for the internal FLT API.
-   Copyright (C) 2007
+   Copyright (C) 2007, 2008, 2009, 2010
      National Institute of Advanced Industrial Science and Technology (AIST)
      Registration Number H15PRO112
 
 #define COMBINING_CODE_ADD_X(code) (((code) >> 2) & 0x3)
 #define COMBINING_CODE_ADD_Y(code) ((code) & 0x3)
 
-#define MAKE_COMBINING_CODE_BY_CLASS(class) (0x1000000 | class)
-
-#define COMBINING_BY_CLASS_P(code) ((code) & 0x1000000)
-
-#define COMBINING_CODE_CLASS(code) ((code) & 0xFFFFFF)
-
-#define MAKE_PRECOMPUTED_COMBINDING_CODE() (0x2000000)
-
-#define COMBINING_PRECOMPUTED_P(code) ((code) & 0x2000000)
+#define PACK_OTF_TAG(TAG)              \
+  ((((TAG) & 0x7F000000) >> 3) \
+   | (((TAG) & 0x7F0000) >> 2) \
+   | (((TAG) & 0x7F00) >> 1)   \
+   | ((TAG) & 0x7F))
 
 extern MSymbol Mcombining;