mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
b1b69523be
commit
45f7a62f6d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue