diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-03 18:31:41 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-03 18:31:41 +0200 |
commit | d131dfdf8a248d509d676edd09804c597d8d1502 (patch) | |
tree | 2391d5869891c7941ff5f64505c644c506e6a661 /MLKInterpreter.m | |
parent | d2177ce363fd5b0d8d3faf6d25f2944e43236e11 (diff) |
Move functions nullify and denullify to util.h.
Diffstat (limited to 'MLKInterpreter.m')
-rw-r--r-- | MLKInterpreter.m | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/MLKInterpreter.m b/MLKInterpreter.m index 730aaa9..e03df1d 100644 --- a/MLKInterpreter.m +++ b/MLKInterpreter.m @@ -29,6 +29,7 @@ #import "MLKRoot.h" #import "MLKSymbol.h" #import "runtime-compatibility.h" +#import "util.h" #import <Foundation/NSArray.h> #import <Foundation/NSException.h> @@ -36,23 +37,6 @@ #import <Foundation/NSString.h> -static id nullify (id value) -{ - if (value) - return value; - else - return [NSNull null]; -} - -static id denullify (id value) -{ - if (value == [NSNull null]) - return nil; - else - return value; -} - - static MLKPackage *cl; static MLKPackage *sys; static MLKSymbol *IF; |