summaryrefslogtreecommitdiff
path: root/MLKCompiledClosure.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-12 15:03:14 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-12 15:03:14 +0200
commitd9a4288c6b7acfbcb7e819841a291f3063daa00c (patch)
treefdd4d1af1467cf5b11fa5e2166b7fbc67c740ed8 /MLKCompiledClosure.h
parentc8b6f78bebeb130e99dd3003bbbb7ad922ffd7ba (diff)
MLKCompiledClosure: Use intptr_t arguments in order to make compilation easier.
Diffstat (limited to 'MLKCompiledClosure.h')
-rw-r--r--MLKCompiledClosure.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/MLKCompiledClosure.h b/MLKCompiledClosure.h
index 53267b2..589c0de 100644
--- a/MLKCompiledClosure.h
+++ b/MLKCompiledClosure.h
@@ -32,13 +32,15 @@
BOOL _ownPointer; // do we own the _code pointer cell?
}
+// Why intptr_t? Because it makes it easier to call this method from
+// LLVM-generated code without proper type handling.
-(id) initWithCode:(void *)code
data:(id *)data
- length:(int)dataLength;
+ length:(intptr_t)dataLength;
+(id) closureWithCode:(void *)code
data:(id *)data
- length:(int)dataLength;;
+ length:(intptr_t)dataLength;;
-(NSArray *) applyToArray:(NSArray *)arguments;