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.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'MLKCons.m') 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