mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Work without Archiver and RunLoop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6711 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bcfb76565d
commit
bab1b12b21
2 changed files with 2 additions and 3 deletions
|
@ -35,7 +35,6 @@
|
|||
#include <base/TextCStream.h>
|
||||
#include <base/BinaryCStream.h>
|
||||
#include <base/StdioStream.h>
|
||||
#include <base/Archiver.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSException.h>
|
||||
|
@ -276,7 +275,7 @@ static BOOL debug_coder = NO;
|
|||
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
||||
{
|
||||
id d = [[NSMutableData alloc] init];
|
||||
id a = [[Archiver alloc] initForWritingWithMutableData:d];
|
||||
id a = [[NSArchiver alloc] initForWritingWithMutableData:d];
|
||||
[a encodeRootObject:rootObject];
|
||||
return [d autorelease];
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <base/preface.h>
|
||||
#include <base/RunLoop.h>
|
||||
#include <base/ConnectedCoder.h>
|
||||
#include <base/CStream.h>
|
||||
#include <base/Port.h>
|
||||
|
@ -31,6 +30,7 @@
|
|||
#include <Foundation/NSConnection.h>
|
||||
#include <Foundation/NSProxy.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSRunLoop.h>
|
||||
|
||||
#define PTR2LONG(P) (((char*)(P))-(char*)0)
|
||||
#define LONG2PTR(L) (((char*)0)+(L))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue