summaryrefslogtreecommitdiff
path: root/objc_darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'objc_darwin.h')
-rw-r--r--objc_darwin.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/objc_darwin.h b/objc_darwin.h
index a616242..e3ca56f 100644
--- a/objc_darwin.h
+++ b/objc_darwin.h
@@ -32,11 +32,6 @@ extern id scrollViewContent(id);
// BEGIN OLD CODE
-static inline id objc_msgSend_noargs(id obj, SEL sel)
-{
- return objc_msgSend(obj, sel);
-}
-
struct xrect {
int64_t x;
int64_t y;
@@ -44,81 +39,16 @@ struct xrect {
int64_t height;
};
-extern struct xrect objc_msgSend_stret_rect_noargs(id obj, SEL sel);
-
struct xsize {
int64_t width;
int64_t height;
};
-extern struct xsize objc_msgSend_stret_size_noargs(id obj, SEL sel);
-
struct xpoint {
int64_t x;
int64_t y;
};
-extern uintptr_t objc_msgSend_uintret_noargs(id obj, SEL sel);
-extern uintptr_t objc_msgSend_uintret_uint(id obj, SEL sel, uintptr_t a);
-
-extern intptr_t objc_msgSend_intret_noargs(id obj, SEL sel);
-
-extern uintptr_t objc_msgSend_ushortret_noargs(id obj, SEL sel);
-
-#define m1(name, type1) \
- static inline id objc_msgSend_ ## name (id obj, SEL sel, type1 a) \
- { \
- return objc_msgSend(obj, sel, a); \
- }
-
-#define m2(name, type1, type2) \
- static inline id objc_msgSend_ ## name (id obj, SEL sel, type1 a, type2 b) \
- { \
- return objc_msgSend(obj, sel, a, b); \
- }
-
-#define m3(name, type1, type2, type3) \
- static inline id objc_msgSend_ ## name (id obj, SEL sel, type1 a, type2 b, type3 c) \
- { \
- return objc_msgSend(obj, sel, a, b, c); \
- }
-
-#define m4(name, type1, type2, type3, type4) \
- static inline id objc_msgSend_ ## name (id obj, SEL sel, type1 a, type2 b, type3 c, type4 d) \
- { \
- return objc_msgSend(obj, sel, a, b, c, d); \
- }
-
-m1(str, char *) /* TODO Go string? */
-m1(id, id)
-extern id objc_msgSend_rect(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h);
-m1(sel, SEL)
-extern id objc_msgSend_uint(id obj, SEL sel, uintptr_t a);
-m1(ptr, void *)
-m1(bool, BOOL)
-extern id objc_msgSend_int(id obj, SEL sel, intptr_t a);
-m1(double, double)
-extern id objc_msgSend_point(id obj, SEL sel, int64_t x, int64_t y);
-extern id objc_msgSend_size(id obj, SEL sel, int64_t width, int64_t height);
-
-extern id objc_msgSendSuper_id(id obj, id class, SEL sel, id a);
-
-m2(id_id, id, id)
-extern id objc_msgSend_rect_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, BOOL b);
-extern id objc_msgSend_id_int(id obj, SEL sel, id a, intptr_t b);
-extern id objc_msgSend_id_uint(id obj, SEL sel, id a, uintptr_t b);
-m2(id_bool, id, BOOL)
-
-m3(id_id_id, id, id, id)
-m3(sel_id_bool, SEL, id, BOOL)
-
-extern id objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d);
-m4(id_sel_id_id, id, SEL, id, id)
-m4(id_id_id_id, id, id, id, id)
-
-/* for listbox_darwin.go */
-extern uintptr_t *NSIndexSetEntries(id, uintptr_t);
-
/* for uitask_darwin.go */
extern void initBleh();
extern id makeDummyEvent();