mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Tidying optimisation stuff.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f7fe730db
commit
f4817879df
19 changed files with 165 additions and 139 deletions
|
@ -34,6 +34,7 @@
|
|||
#include <Foundation/NSSet.h>
|
||||
#include <Foundation/NSThread.h>
|
||||
#include <Foundation/NSNotificationQueue.h>
|
||||
#include <Foundation/NSObjCRuntime.h>
|
||||
|
||||
#include <base/NSGArray.h>
|
||||
|
||||
|
@ -133,8 +134,9 @@ static SEL setSel;
|
|||
static void
|
||||
initSerializerInfo(_NSSerializerInfo* info, NSMutableData *d, BOOL u)
|
||||
{
|
||||
Class c = fastClass(d);
|
||||
Class c;
|
||||
|
||||
c = GSObjCClassOfObject(d);
|
||||
info->data = d;
|
||||
info->appImp = (void (*)())get_imp(c, appSel);
|
||||
info->datImp = (void* (*)())get_imp(c, datSel);
|
||||
|
@ -160,8 +162,9 @@ endSerializerInfo(_NSSerializerInfo* info)
|
|||
static void
|
||||
serializeToInfo(id object, _NSSerializerInfo* info)
|
||||
{
|
||||
Class c = fastClass(object);
|
||||
Class c;
|
||||
|
||||
c = GSObjCClassOfObject(object);
|
||||
if (fastIsClass(c) == NO)
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue