Differences From Artifact [f870fce7d2]:
- File
src/OFIntrospection.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 7015) [annotate] [blame] [check-ins using]
To Artifact [1405af45f9]:
- File src/OFIntrospection.m — part of check-in [73ae6fa60f] at 2013-08-13 10:39:57 on branch trunk — Add a few more instancetypes. (user: js, size: 7071) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
28 29 30 31 32 33 34 | #import "OFArray.h" #import "autorelease.h" #import "macros.h" @implementation OFMethod #if defined(OF_OBJFW_RUNTIME) | | | | 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 | #import "OFArray.h" #import "autorelease.h" #import "macros.h" @implementation OFMethod #if defined(OF_OBJFW_RUNTIME) - (instancetype)OF_initWithMethod: (struct objc_method*)method { self = [super init]; @try { _selector = (SEL)&method->sel; _name = [[OFString alloc] initWithUTF8String: sel_getName(_selector)]; _typeEncoding = method->sel.types; } @catch (id e) { [self release]; @throw e; } return self; } #elif defined(OF_APPLE_RUNTIME) - (instancetype)OF_initWithMethod: (Method)method { self = [super init]; @try { _selector = method_getName(method); _name = [[OFString alloc] initWithUTF8String: sel_getName(_selector)]; |
︙ | ︙ | |||
141 142 143 144 145 146 147 | return hash; } @end @implementation OFInstanceVariable #if defined(OF_OBJFW_RUNTIME) | | | | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | return hash; } @end @implementation OFInstanceVariable #if defined(OF_OBJFW_RUNTIME) - (instancetype)OF_initWithIvar: (struct objc_ivar*)ivar { self = [super init]; @try { _name = [[OFString alloc] initWithUTF8String: ivar->name]; _typeEncoding = ivar->type; _offset = ivar->offset; } @catch (id e) { [self release]; @throw e; } return self; } #elif defined(OF_APPLE_RUNTIME) - (instancetype)OF_initWithIvar: (Ivar)ivar { self = [super init]; @try { _name = [[OFString alloc] initWithUTF8String: ivar_getName(ivar)]; _typeEncoding = ivar_getTypeEncoding(ivar); |
︙ | ︙ |