1 typedef unsigned int size_t;
2 typedef const struct objc_selector
7 typedef struct objc_object
11 typedef struct objc_class
*Class
;
14 struct sarray
*dtable
;
19 unsigned int boffset
:(sizeof (size_t) * 8) / 2;
20 unsigned int eoffset
:(sizeof (size_t) * 8) / 2;
31 static __inline__
unsigned int
32 soffset_decode (sidx indx
)
36 return x
.off
.eoffset
+ (x
.off
.boffset
* (1 << 5));
38 static __inline__
void *
39 sarray_get_safe (struct sarray
*array
, sidx indx
)
41 if (soffset_decode (indx
) < array
->capacity
)
42 return (void *)sarray_get (array
, indx
);
45 get_imp (Class
class, SEL sel
)
47 void *res
= sarray_get_safe (class->dtable
, (size_t) sel
->sel_id
);
51 res
= get_imp (class, sel
);