int
FcObjectNeededBytesAlign (void)
{
- return __alignof__ (int) + __alignof__ (char);
+ return fc_alignof (int) + fc_alignof (char);
}
void *
FcObjectUnserialize (FcCache * metadata, void *block_ptr)
{
int new_biggest;
- new_biggest = *(int *)block_ptr;
block_ptr = ALIGN (block_ptr, int);
+ new_biggest = *(int *)block_ptr;
block_ptr = (int *) block_ptr + 1;
if (biggest_known_ntypes < new_biggest)
{
int i;
char * bp = (char *)block_ptr;
FcObjectType * bn;
- FcObjectTypeList * bnl;
bn = malloc (sizeof (const FcObjectType) * (new_biggest + 1));
if (!bn)
return 0;
- bnl = malloc (sizeof (FcObjectTypeList));
- if (!bnl)
- {
- free (bn);
- return 0;
- }
-
for (i = 0; i < new_biggest; i++)
{
const FcObjectType * t = FcNameGetObjectType(bp);