]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcint.h
Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
[fontconfig.git] / src / fcint.h
index 1b545bca8d99323ce16ded7a099d1401ff584245..e20589ccdfbf87bd86f0945ce2730df2df4754c6 100644 (file)
 
 #define FC_MEM_NUM         30
 
+#define FC_BANK_DYNAMIC 0
+#define FC_BANK_FIRST 1
 #define FC_BANK_LANGS      0xfcfcfcfc
 
 typedef enum _FcValueBinding {
@@ -309,6 +311,7 @@ typedef struct _FcCaseFold {
 #define fc_value_string(v)  (((v)->type & FC_STORAGE_STATIC) ? ((FcChar8 *) v) + (v)->u.s_off : (v) -> u.s)
 #define fc_value_charset(v)  (((v)->type & FC_STORAGE_STATIC) ? (const FcCharSet *)(((char *) v) + (v)->u.c_off) : (v) -> u.c)
 #define fc_value_langset(v)  (((v)->type & FC_STORAGE_STATIC) ? (const FcLangSet *)(((char *) v) + (v)->u.l_off) : (v) -> u.l)
+#define fc_storage_type(v) ((v)->type & ~FC_STORAGE_STATIC)
 
 /*
  * The per-user ~/.fonts.cache-<version> file is loaded into