Mercurial > projects > dwt-mac
comparison dwt/internal/objc/bindings.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | 30a762abda2a |
children | cfa563df4fdd |
comparison
equal
deleted
inserted
replaced
44:ca5e494f2bbf | 45:d8635bb48c7c |
---|---|
5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) | 5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) |
6 * | 6 * |
7 */ | 7 */ |
8 module dwt.internal.objc.bindings; | 8 module dwt.internal.objc.bindings; |
9 | 9 |
10 import dwt.internal.c.qd.QuickdrawTypes : BOOL; | 10 import dwt.internal.c.Carbon; |
11 import dwt.internal.objc.runtime; | 11 import dwt.internal.objc.runtime; |
12 | 12 |
13 extern (C): | 13 extern (C): |
14 | 14 |
15 BOOL class_addIvar (Class cls, /*const*/char* name, size_t size, byte alignment, /*const*/char* types); | 15 BOOL class_addIvar (Class cls, /*const*/char* name, size_t size, byte alignment, /*const*/char* types); |
16 BOOL class_addMethod (Class cls, SEL name, IMP imp, /*const*/char* types); | 16 BOOL class_addMethod (Class cls, SEL name, IMP imp, /*const*/char* types); |
17 BOOL class_addProtocol(Class cls, Protocol* protocol); | |
18 IMP class_getMethodImplementation(Class cls, SEL name); | |
19 /*const*/ char* class_getName(Class cls); | |
17 Class objc_allocateClassPair (Class superclass, /*const*/char* name, size_t extraBytes); | 20 Class objc_allocateClassPair (Class superclass, /*const*/char* name, size_t extraBytes); |
18 id objc_getClass (/*const*/char* name); | 21 id objc_getClass (/*const*/char* name); |
22 Protocol* objc_getProtocol(/*const*/ char* name); | |
19 id objc_lookUpClass (/*const*/char* name); | 23 id objc_lookUpClass (/*const*/char* name); |
20 void objc_registerClassPair (Class cls); | 24 void objc_registerClassPair (Class cls); |
25 Class object_getClass (id object); | |
21 /*const*/char* object_getClassName (id obj); | 26 /*const*/char* object_getClassName (id obj); |
27 Class object_setClass (id object, Class cls); | |
22 Ivar object_getInstanceVariable (id obj, /*const*/char* name, void** outValue); | 28 Ivar object_getInstanceVariable (id obj, /*const*/char* name, void** outValue); |
23 Ivar object_setInstanceVariable (id obj, /*const*/char* name, void* value); | 29 Ivar object_setInstanceVariable (id obj, /*const*/char* name, void* value); |
24 SEL sel_registerName (/*const*/char* str); | 30 SEL sel_registerName (/*const*/char* str); |
25 id objc_msgSend (id theReceiver, SEL theSelector, ...); | 31 id objc_msgSend (id theReceiver, SEL theSelector, ...); |
26 void objc_msgSend_stret(void* stretAddr, id theReceiver, SEL theSelector, ...); | 32 void objc_msgSend_stret(void* stretAddr, id theReceiver, SEL theSelector, ...); |
27 id objc_msgSendSuper (objc_super* superr, SEL op, ...); | 33 id objc_msgSendSuper (objc_super* superr, SEL op, ...); |
28 | 34 |
35 void instrumentObjcMessageSends(bool val); | |
36 | |
29 version (X86) | 37 version (X86) |
30 double objc_msgSend_fpret(id self, SEL op, ...); | 38 double objc_msgSend_fpret(id self, SEL op, ...); |
31 | |
32 version (build) | |
33 pragma(link, "objc"); |