ObjFW  Diff

Differences From Artifact [a195b3476d]:

To Artifact [8a1851f596]:


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#import "macros.h"

static struct {
	Class isa;
} placeholder;

@implementation OFMutableArrayPlaceholder
- init
{
	return (id)[[OFMutableArray_adjacent alloc] init];
}

- initWithObject: (id)object
{







|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#import "macros.h"

static struct {
	Class isa;
} placeholder;

@implementation OFMutableArray_placeholder
- init
{
	return (id)[[OFMutableArray_adjacent alloc] init];
}

- initWithObject: (id)object
{
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
}
@end

@implementation OFMutableArray
+ (void)initialize
{
	if (self == [OFMutableArray class])
		placeholder.isa = [OFMutableArrayPlaceholder class];
}

+ alloc
{
	if (self == [OFMutableArray class])
		return (id)&placeholder;








|







109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
}
@end

@implementation OFMutableArray
+ (void)initialize
{
	if (self == [OFMutableArray class])
		placeholder.isa = [OFMutableArray_placeholder class];
}

+ alloc
{
	if (self == [OFMutableArray class])
		return (id)&placeholder;