summaryrefslogtreecommitdiff
path: root/MLKReader.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-03 18:31:41 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-03 18:31:41 +0200
commitd131dfdf8a248d509d676edd09804c597d8d1502 (patch)
tree2391d5869891c7941ff5f64505c644c506e6a661 /MLKReader.m
parentd2177ce363fd5b0d8d3faf6d25f2944e43236e11 (diff)
Move functions nullify and denullify to util.h.
Diffstat (limited to 'MLKReader.m')
-rw-r--r--MLKReader.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/MLKReader.m b/MLKReader.m
index f957c4d..4acf24e 100644
--- a/MLKReader.m
+++ b/MLKReader.m
@@ -31,6 +31,7 @@
#import "MLKRatio.h"
#import "MLKStringInputStream.h"
#import "runtime-compatibility.h"
+#import "util.h"
#import <Foundation/NSArray.h>
#import <Foundation/NSRange.h>
@@ -69,7 +70,7 @@
ch = [stream readChar];
if ([readtable isWhitespaceCharacter:ch] || ch == '\0')
goto start;
-
+
if ([readtable isMacroCharacter:ch])
{
NSArray *returnValues;
@@ -87,9 +88,7 @@
}
returnValues = [macrofun applyToArray:args];
if ([returnValues count])
- return ([returnValues objectAtIndex:0] == [NSNull null]
- ? nil
- : [returnValues objectAtIndex:0]);
+ return denullify ([returnValues objectAtIndex:0]);
else
goto start;
}