From 60418db3c97a5f48f7b7dc22bfe8001f35bbf0d0 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Sun, 25 Oct 1998 08:31:37 +0000 Subject: [PATCH] Implemented +alloc git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3111 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGCString.m | 10 ++++++++++ Source/NSGString.m | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/Source/NSGCString.m b/Source/NSGCString.m index e7ff46653..fdbac1dcc 100644 --- a/Source/NSGCString.m +++ b/Source/NSGCString.m @@ -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; diff --git a/Source/NSGString.m b/Source/NSGString.m index c4d0522fe..4687d0870 100644 --- a/Source/NSGString.m +++ b/Source/NSGString.m @@ -53,6 +53,11 @@ return NSAllocateObject (self, 0, z); } ++ alloc +{ + return NSAllocateObject (self, 0, NSDefaultMallocZone()); +} + - (void)dealloc { if (_zone) @@ -329,6 +334,11 @@ return NSAllocateObject (self, 0, z); } ++ alloc +{ + return NSAllocateObject (self, 0, NSDefaultMallocZone()); +} + + (void) initialize { static int done = 0;