|
|
|
@ -5,6 +5,8 @@
|
|
|
|
#define BUFFER_TYPE struct objc_category
|
|
|
|
#define BUFFER_TYPE struct objc_category
|
|
|
|
#include "buffer.h"
|
|
|
|
#include "buffer.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void objc_send_load_message(Class class);
|
|
|
|
|
|
|
|
|
|
|
|
static void register_methods(struct objc_class *cls, struct objc_method_list *l)
|
|
|
|
static void register_methods(struct objc_class *cls, struct objc_method_list *l)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (NULL == l) { return; }
|
|
|
|
if (NULL == l) { return; }
|
|
|
|
@ -32,6 +34,7 @@ static void load_category(struct objc_category *cat, struct objc_class *class)
|
|
|
|
cat->protocols->next = class->protocols;
|
|
|
|
cat->protocols->next = class->protocols;
|
|
|
|
class->protocols = cat->protocols;
|
|
|
|
class->protocols = cat->protocols;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
objc_send_load_message(class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static BOOL try_load_category(struct objc_category *cat)
|
|
|
|
static BOOL try_load_category(struct objc_category *cat)
|
|
|
|
|