diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-02 20:14:24 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-02 20:14:24 +0200 |
commit | 3c786f910f73de547bdb2f853745b21097119598 (patch) | |
tree | 8f7f46db94853183fd74771fe41062e28bffdec2 /MLKLexicalContext.m | |
parent | 76292caba5ad0f7b998bf266e61d43bd898e8c6b (diff) |
MLKLexicalContext#-globalContext: Treat unknown variables as global.
Diffstat (limited to 'MLKLexicalContext.m')
-rw-r--r-- | MLKLexicalContext.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MLKLexicalContext.m b/MLKLexicalContext.m index 5456aa3..acb5b4e 100644 --- a/MLKLexicalContext.m +++ b/MLKLexicalContext.m @@ -293,7 +293,8 @@ static MLKLexicalContext *global_context; -(BOOL) variableIsGlobal:(id)name { - return [self contextForVariable:name] == [MLKLexicalContext globalContext]; + return (![self contextForVariable:name] + || [self contextForVariable:name] == [MLKLexicalContext globalContext]); } -(BOOL) functionIsInline:(MLKSymbol *)symbol |