Differences From 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]
To Artifact [46193e4da0]:
- File src/OFIntrospection.m — part of check-in [4df6ab6bca] at 2017-05-13 16:56:44 on branch trunk — Fix compilation with GCC (user: js, size: 12629) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #import "OFString.h" #import "OFArray.h" #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 { | > > > > > | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #import "OFString.h" #import "OFArray.h" #import "OFInitializationFailedException.h" @implementation OFMethod @synthesize selector = _selector, name = _name, typeEncoding = _typeEncoding; - init { OF_INVALID_INIT_METHOD } #if defined(OF_OBJFW_RUNTIME) - (instancetype)OF_initWithMethod: (struct objc_method *)method { self = [super init]; @try { |
︙ | ︙ | |||
61 62 63 64 65 66 67 | return self; } #else # error Invalid ObjC runtime! #endif | < < < < < | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | return self; } #else # error Invalid ObjC runtime! #endif - (void)dealloc { [_name release]; [super dealloc]; } |
︙ | ︙ | |||
129 130 131 132 133 134 135 136 137 138 139 140 141 142 | return hash; } @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 { | > > > > > | 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | return hash; } @end @implementation OFProperty @synthesize name = _name, attributes = _attributes; @synthesize getter = _getter, setter = _setter; - init { OF_INVALID_INIT_METHOD } #if defined(OF_OBJFW_RUNTIME) - (instancetype)OF_initWithProperty: (struct objc_property *)property { self = [super init]; @try { |
︙ | ︙ | |||
350 351 352 353 354 355 356 357 358 359 360 361 362 363 | return hash; } @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 { | > > > > > | 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | return hash; } @end @implementation OFInstanceVariable @synthesize name = _name, offset = _offset, typeEncoding = _typeEncoding; - init { OF_INVALID_INIT_METHOD } #if defined(OF_OBJFW_RUNTIME) - (instancetype)OF_initWithIvar: (struct objc_ivar *)ivar { self = [super init]; @try { |
︙ | ︙ | |||
388 389 390 391 392 393 394 | return self; } #else # error Invalid ObjC runtime! #endif | < < < < < | 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | return self; } #else # error Invalid ObjC runtime! #endif - (void)dealloc { [_name release]; [super dealloc]; } |
︙ | ︙ | |||
416 417 418 419 420 421 422 423 424 425 426 427 428 429 | @synthesize classMethods = _classMethods, instanceMethods = _instanceMethods; @synthesize properties = _properties, instanceVariables = _instanceVariables; + (instancetype)introspectionWithClass: (Class)class { return [[[self alloc] initWithClass: class] autorelease]; } - initWithClass: (Class)class { self = [super init]; @try { #if defined(OF_OBJFW_RUNTIME) | > > > > > | 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | @synthesize classMethods = _classMethods, instanceMethods = _instanceMethods; @synthesize properties = _properties, instanceVariables = _instanceVariables; + (instancetype)introspectionWithClass: (Class)class { return [[[self alloc] initWithClass: class] autorelease]; } - init { OF_INVALID_INIT_METHOD } - initWithClass: (Class)class { self = [super init]; @try { #if defined(OF_OBJFW_RUNTIME) |
︙ | ︙ | |||
559 560 561 562 563 564 565 | [self release]; @throw e; } return self; } | < < < < < | 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 | [self release]; @throw e; } return self; } - (void)dealloc { [_classMethods release]; [_instanceMethods release]; [_instanceVariables release]; [super dealloc]; } @end |