diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-27 09:57:56 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-27 09:57:56 +0200 |
commit | 63fbfa1580411f8fc66d1bd6b634b2ae629c9ea8 (patch) | |
tree | 06ebc0e50edd13d843efa041ca88484cd0830b08 /MLKCons.m | |
parent | 39c6c2eaa800b90d6624306373dd73e88f86c48e (diff) |
MLKCons: Implement -copyWithZone:.
This makes the D-B macro work again, though the cause of the failure is still unknown.
Diffstat (limited to 'MLKCons.m')
-rw-r--r-- | MLKCons.m | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |