Use objc_sizeOfType()

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29796 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-28 11:37:18 +00:00
parent b1b69523be
commit 45f7a62f6d

View file

@ -442,7 +442,7 @@ GSObjCFindVariable(id obj, const char *name,
} }
if (size != 0) if (size != 0)
{ {
*size = objc_sizeof_type(enc); *size = objc_sizeOfType(enc);
} }
if (offset != 0) if (offset != 0)
{ {
@ -480,7 +480,7 @@ GSObjCFindVariable(id obj, const char *name,
if (type) if (type)
*type = ivar->ivar_type; *type = ivar->ivar_type;
if (size) if (size)
*size = objc_sizeof_type(ivar->ivar_type); *size = objc_sizeOfType(ivar->ivar_type);
if (offset) if (offset)
*offset = ivar->ivar_offset; *offset = ivar->ivar_offset;
return YES; return YES;
@ -803,7 +803,7 @@ GSObjCMakeClass(NSString *name, NSString *superName, NSDictionary *iVars)
// align the ivar (i.e. put it on the first aligned address // align the ivar (i.e. put it on the first aligned address
ivar->ivar_offset = iVarSize; ivar->ivar_offset = iVarSize;
iVarSize += objc_sizeof_type(ivar->ivar_type); // add the ivar size iVarSize += objc_sizeOfType(ivar->ivar_type); // add the ivar size
ivar = ivar + 1; ivar = ivar + 1;
} }
} }