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 Frith-MacDonald 1998-10-25 08:31:37 +00:00
parent 20e7c3663b
commit 60418db3c9
2 changed files with 20 additions and 0 deletions

View file

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

View file

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