Leave room for null terminators in arrays
[platform/upstream/fontconfig.git] / fc-lang / fc-lang.c
index 51717f9..38fc697 100644 (file)
  * functions are also needed in slightly modified form
  */
 
-void
-FcMemAlloc (int kind, int size)
-{
-}
-
-void
-FcMemFree (int kind, int size)
+FcPrivate void
+FcCacheObjectReference (void *object FC_UNUSED)
 {
 }
 
 FcPrivate void
-FcCacheObjectReference (void *object)
+FcCacheObjectDereference (void *object FC_UNUSED)
 {
 }
 
-FcPrivate void
-FcCacheObjectDereference (void *object)
+FcPrivate FcChar8 *
+FcLangNormalize (const FcChar8 *lang FC_UNUSED)
 {
+    return NULL;
 }
 
 int FcDebugVal;
@@ -254,12 +250,11 @@ static int compare (const void *a, const void *b)
 #define MAX_LANG_SET_MAP    ((MAX_LANG + 31) / 32)
 
 #define BitSet(map, i)   ((map)[(entries[i].id)>>5] |= ((FcChar32) 1 << ((entries[i].id) & 0x1f)))
-#define BitGet(map, i)   ((map)[(entries[i].id)>>5] >> ((entries[i].id) & 0x1f)) & 1)
 
 int
-main (int argc, char **argv)
+main (int argc FC_UNUSED, char **argv)
 {
-    static Entry       entries[MAX_LANG];
+    static Entry       entries[MAX_LANG + 1];
     static FcCharSet   *sets[MAX_LANG];
     static int         duplicate[MAX_LANG];
     static int         country[MAX_LANG];