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
|
* Q Public License 1.0, which can be found in the file LICENSE included in
* the packaging of this file.
*/
#include "config.h"
#import "OFConstString.h"
#ifndef __objc_INCLUDE_GNU
void *_OFConstStringClassReference;
#endif
@implementation OFConstString
#ifndef __objc_INCLUDE_GNU
+ (void)load
{
objc_setFutureClass((Class)&_OFConstStringClassReference,
"OFConstString");
}
#endif
- retain
{
return self;
}
- (void)release
{
}
- (size_t)retainCount
{
return SIZE_MAX;
}
- autorelease
{
return self;
}
@end
|
>
>
>
>
>
>
|
>
|
>
|
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
|
* Q Public License 1.0, which can be found in the file LICENSE included in
* the packaging of this file.
*/
#include "config.h"
#import "OFConstString.h"
#import "OFExceptions.h"
#ifndef __objc_INCLUDE_GNU
void *_OFConstStringClassReference;
#endif
@implementation OFConstString
#ifndef __objc_INCLUDE_GNU
+ (void)load
{
objc_setFutureClass((Class)&_OFConstStringClassReference,
"OFConstString");
}
#endif
- autorelease
{
return self;
}
- retain
{
return self;
}
- (void)release
{
}
- (size_t)retainCount
{
return SIZE_MAX;
}
- (void)dealloc
{
@throw [OFNotImplementedException newWithClass: isa
andSelector: _cmd];
[super dealloc]; /* Get rid of stupid warning */
}
@end
|