forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFSVoid.m
51 lines (34 loc) · 1 KB
/
FSVoid.m
1
2
3
4
5
6
7
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
/* FSVoid.m Copyright (c) 1998-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import "FSVoid.h"
#import "build_config.h"
FSVoid *fsVoid;
@implementation FSVoid
+ (FSVoid *)fsVoid
{
return fsVoid;
}
+ (void)initialize
{
static BOOL tooLate = NO;
if ( !tooLate )
{
fsVoid = [[FSVoid alloc] init];
tooLate = YES;
}
}
-(id)autorelease {return self;}
- (id)awakeAfterUsingCoder:(NSCoder *)aDecoder
{
[self release];
return fsVoid;
}
-(id)copy {return self;}
-(id)copyWithZone:(NSZone *)zone {return self;}
-(void)encodeWithCoder:(NSCoder *)coder {}
-(id)initWithCoder:(NSCoder *)coder {self = [super init]; return self;}
- (NSString *) printString {return [NSMutableString stringWithString:@""]; }
- (void) release {}
- (id) retain {return self;}
- (NSUInteger) retainCount {return UINT_MAX;}
@end