Implemented +alloc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-10-25 08:31:37 +00:00
parent bbabd52501
commit 794aa80d2c
2 changed files with 20 additions and 0 deletions

View file

@ -45,6 +45,11 @@
return NSAllocateObject (self, 0, z);
}
+ alloc
{
return NSAllocateObject (self, 0, NSDefaultMallocZone());
}
- (void)dealloc
{
if (_zone) {
@ -489,6 +494,11 @@
return NSAllocateObject (self, 0, z);
}
+ alloc
{
return NSAllocateObject (self, 0, NSDefaultMallocZone());
}
+ (void) initialize
{
static int done = 0;