diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 15:32:37 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 15:32:37 +0200 |
commit | 820c78beaccf784f710bdd91298401a745d93f2e (patch) | |
tree | 30a9e7a7cc6cf7ccd4aa953edc72b2e2b825b362 /MLKCons.m | |
parent | eaf8e27a9860e404390da055510d1f8e4de33f1f (diff) |
Add MLKPrintToString along with a couple of fixnum handling functions.
Diffstat (limited to 'MLKCons.m')
-rw-r--r-- | MLKCons.m | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -102,15 +102,15 @@ { if (!_cdr) return [NSString stringWithFormat:@"%@", - (_car ? (id)[_car descriptionForLisp] : (id)@"()")]; + MLKPrintToString(_car)]; else if ([_cdr isKindOfClass:[MLKCons class]]) return [NSString stringWithFormat:@"%@ %@", - (_car ? (id)[_car descriptionForLisp] : (id)@"()"), + MLKPrintToString(_car), [_cdr bareDescriptionForLisp]]; else return [NSString stringWithFormat:@"%@ . %@", - (_car ? (id)[_car descriptionForLisp] : (id)@"()"), - [_cdr descriptionForLisp]]; + MLKPrintToString(_car), + MLKPrintToString(_cdr)]; } -(NSString *)descriptionForLisp |