1 /* Copyright (c) 2007 Christopher J. W. Lloyd
3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
9 #import <objc/objc-export.h>
31 _C_LNG_LNG
= _C_LNGLNG
,
33 _C_ULNG_LNG
= _C_ULNGLNG
,
56 struct objc_ivar_list
{
58 struct objc_ivar ivar_list
[1];
67 struct objc_method_description
{
72 struct objc_method_list
{
73 struct objc_method_list
*obsolete
;
75 struct objc_method method_list
[1];
78 struct objc_protocol
{
80 const char *nameCString
;
81 struct objc_protocol_list
*childProtocols
;
82 struct OBJCMethodDescriptionList
*instanceMethods
;
83 struct OBJCMethodDescriptionList
*classMethods
;
89 typedef struct objc_protocol Protocol
;
92 struct objc_protocol_list
{
93 struct objc_protocol_list
*next
;
98 struct objc_category
{
100 const char *className
;
101 struct objc_method_list
*instanceMethods
;
102 struct objc_method_list
*classMethods
;
103 struct objc_protocol_list
*protocols
;
106 struct objc_property
{
107 const char *const name
;
108 const char *const attributes
;
111 struct objc_prop_list_t
{
114 struct objc_property prop_list
[1];
117 struct objc_class_extension
{
119 const char *weak_ivar_layout
;
120 struct objc_prop_list_t
*properties
;
124 struct objc_class
*isa
;
125 struct objc_class
*super_class
;
130 struct objc_ivar_list
*ivars
;
131 struct objc_method_list
**methodLists
;
132 struct objc_cache
*cache
;
133 struct objc_protocol_list
*protocols
;
134 const char *ivar_layout
;
135 struct objc_class_extension
*ext
;