From 63fbfa1580411f8fc66d1bd6b634b2ae629c9ea8 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 27 Jul 2008 09:57:56 +0200 Subject: MLKCons: Implement -copyWithZone:. This makes the D-B macro work again, though the cause of the failure is still unknown. --- MLKCons.h | 2 ++ MLKCons.m | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/MLKCons.h b/MLKCons.h index 739fb40..55f47c1 100644 --- a/MLKCons.h +++ b/MLKCons.h @@ -44,5 +44,7 @@ // only -(NSString *)descriptionForLisp; +-(id) copyWithZone:(NSZone *)zone; + -(void) dealloc; @end diff --git a/MLKCons.m b/MLKCons.m index 8b3084b..c557dc2 100644 --- a/MLKCons.m +++ b/MLKCons.m @@ -128,6 +128,14 @@ return [NSString stringWithFormat:@"(%@)", [self bareDescriptionForLisp]]; } +-(id) copyWithZone:(NSZone *)zone +{ + MLKCons *copy = [MLKCons allocWithZone:zone]; + ASSIGN (copy->_car, _car); + ASSIGN (copy->_cdr, _cdr); + return copy; +} + -(void) dealloc { RELEASE (_car); -- cgit v1.2.3