Differences From Artifact [3b325f542e]:
- File src/OFIntrospection.m — part of check-in [cca678886f] at 2017-05-06 19:43:55 on branch trunk — Clean up a few includes (user: js, size: 12587) [annotate] [blame] [check-ins using]
To Artifact [1afb80a6b9]:
- File
src/OFIntrospection.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 12593) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 | #import "OFInitializationFailedException.h" @implementation OFMethod @synthesize selector = _selector, name = _name, typeEncoding = _typeEncoding; #if defined(OF_OBJFW_RUNTIME) | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #import "OFInitializationFailedException.h" @implementation OFMethod @synthesize selector = _selector, name = _name, typeEncoding = _typeEncoding; #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)]; |
︙ | ︙ | |||
73 74 75 76 77 78 79 | - (void)dealloc { [_name release]; [super dealloc]; } | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | - (void)dealloc { [_name release]; [super dealloc]; } - (OFString *)description { return [OFString stringWithFormat: @"<%@: %@ [%s]>", [self class], _name, _typeEncoding]; } - (bool)isEqual: (id)object { |
︙ | ︙ | |||
131 132 133 134 135 136 137 | @end @implementation OFProperty @synthesize name = _name, attributes = _attributes; @synthesize getter = _getter, setter = _setter; #if defined(OF_OBJFW_RUNTIME) | | | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | @end @implementation OFProperty @synthesize name = _name, attributes = _attributes; @synthesize getter = _getter, setter = _setter; #if defined(OF_OBJFW_RUNTIME) - (instancetype)OF_initWithProperty: (struct objc_property *)property { self = [super init]; @try { _name = [[OFString alloc] initWithUTF8String: property->name]; _attributes = property->attributes | (property->extended_attributes << 8); |
︙ | ︙ | |||
297 298 299 300 301 302 303 | [_name release]; [_getter release]; [_setter release]; [super dealloc]; } | | | 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | [_name release]; [_getter release]; [_setter release]; [super dealloc]; } - (OFString *)description { return [OFString stringWithFormat: @"<%@: %@\n" @"\tAttributes = 0x%03X\n" @"\tGetter = %@\n" @"\tSetter = %@\n" @">", |
︙ | ︙ | |||
352 353 354 355 356 357 358 | } @end @implementation OFInstanceVariable @synthesize name = _name, offset = _offset, typeEncoding = _typeEncoding; #if defined(OF_OBJFW_RUNTIME) | | | 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | } @end @implementation OFInstanceVariable @synthesize name = _name, offset = _offset, typeEncoding = _typeEncoding; #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; |
︙ | ︙ | |||
400 401 402 403 404 405 406 | - (void)dealloc { [_name release]; [super dealloc]; } | | | 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | - (void)dealloc { [_name release]; [super dealloc]; } - (OFString *)description { return [OFString stringWithFormat: @"<OFInstanceVariable: %@ [%s] @ 0x%tx>", _name, _typeEncoding, _offset]; } @end |
︙ | ︙ |