blob: 54ff43861c7b87428a8773268b230b514f78012e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#ifndef COMPILER_OBJC_H
#define COMPILER_OBJC_H
#include "compiler/common.h"
#ifdef __MWERKS__
#pragma options align=mac68k
#endif
struct ObjCMethodArg { // bigger in v7 (0x20 vs 0x14)
ObjCMethodArg *next;
HashNameNode *selector;
HashNameNode *name;
Type *type;
UInt32 qual;
//UInt32 unk14;
//UInt32 unk18;
//UInt32 unk1C;
};
struct ObjCMethodList { // verified via CPrec
ObjCMethodList *next;
ObjCMethod *method;
};
struct ObjCSelector { // verified via CPrec
ObjCSelector *next;
Object *selobject;
HashNameNode *name;
ObjCMethodList *methods;
};
struct ObjCMethod { // verified via CPrec
ObjCMethod *next;
Object *object;
TypeFunc *functype;
ObjCSelector *selector;
Type *return_type;
UInt32 return_qual;
ObjCMethodArg *selector_args;
Boolean has_valist;
Boolean is_class_method;
Boolean is_defined;
};
struct ObjCProtocol { // verified via CPrec
ObjCProtocol *next;
HashNameNode *name;
ObjCProtocolList *protocols;
ObjCMethod *methods;
Object *object;
};
struct ObjCProtocolList { // verified via CPrec
ObjCProtocolList *next;
ObjCProtocol *protocol;
};
struct ObjCCategory { // verified via CPrec
ObjCCategory *next;
HashNameNode *name;
ObjCProtocolList *protocols;
ObjCMethod *methods;
};
struct ObjCInfo { // verified via CPrec
Object *classobject;
Object *metaobject;
Object *classrefobj;
ObjCMethod *methods;
ObjCProtocolList *protocols;
ObjCCategory *categories;
Boolean is_implemented;
};
struct ObjCNamedArg {
ObjCNamedArg *next;
HashNameNode *name;
ENode *expr;
};
#ifdef __MWERKS__
#pragma options align=reset
#endif
#endif
|