static const FcObjectTypeList _FcBaseObjectTypesList = {
0,
_FcBaseObjectTypes,
- NUM_OBJECT_TYPES
+ NUM_OBJECT_TYPES,
+ 0
};
static const FcObjectTypeList *_FcObjectTypes = &_FcBaseObjectTypesList;
return num + sizeof(int);
}
+int
+FcObjectNeededBytesAlign (void)
+{
+ return __alignof__ (int) + __alignof__ (char);
+}
+
void *
FcObjectDistributeBytes (FcCache * metadata, void * block_ptr)
{
+ block_ptr = ALIGN (block_ptr, int);
*(int *)block_ptr = biggest_known_ntypes;
block_ptr = (int *) block_ptr + 1;
+ block_ptr = ALIGN (block_ptr, char);
biggest_ptr = block_ptr;
block_ptr = (char *) block_ptr + biggest_known_count;
return block_ptr;
{
int new_biggest;
new_biggest = *(int *)block_ptr;
+ block_ptr = ALIGN (block_ptr, int);
block_ptr = (int *) block_ptr + 1;
if (biggest_known_ntypes < new_biggest)
{
biggest_known_ntypes = new_biggest;
biggest_known_types = (const FcObjectType *)bn;
}
+ block_ptr = ALIGN (block_ptr, char);
block_ptr = (char *) block_ptr + biggest_known_count;
return block_ptr;
}
-int
-FcObjectPtrCompare (const FcObjectPtr a, const FcObjectPtr b)
-{
- return a - b;
-}
-
static const FcConstant _FcBaseConstants[] = {
{ (FcChar8 *) "thin", "weight", FC_WEIGHT_THIN, },
{ (FcChar8 *) "extralight", "weight", FC_WEIGHT_EXTRALIGHT, },
static FcBool
FcNameUnparseValue (FcStrBuf *buf,
- int bank,
FcValue *v0,
FcChar8 *escape)
{
{
while (FcValueListPtrU(v))
{
- if (!FcNameUnparseValue (buf, v.bank, &FcValueListPtrU(v)->value, escape))
+ if (!FcNameUnparseValue (buf, &FcValueListPtrU(v)->value, escape))
return FcFalse;
if (FcValueListPtrU(v = FcValueListPtrU(v)->next))
if (!FcNameUnparseString (buf, (FcChar8 *) ",", 0))