15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
-
+
|
#include "config.h"
#include <stdlib.h>
#include <string.h>
#import "OFMutableArray.h"
#import "OFMutableAdjacentArray.h"
#import "OFConcreteMutableArray.h"
#import "OFEnumerationMutationException.h"
#import "OFInvalidArgumentException.h"
#import "OFOutOfRangeException.h"
static struct {
Class isa;
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
-
+
-
+
-
+
-
+
-
+
-
+
-
+
|
left = i + 1;
}
}
@implementation OFMutableArrayPlaceholder
- (instancetype)init
{
return (id)[[OFMutableAdjacentArray alloc] init];
return (id)[[OFConcreteMutableArray alloc] init];
}
- (instancetype)initWithCapacity: (size_t)capacity
{
return (id)[[OFMutableAdjacentArray alloc] initWithCapacity: capacity];
return (id)[[OFConcreteMutableArray alloc] initWithCapacity: capacity];
}
- (instancetype)initWithObject: (id)object
{
return (id)[[OFMutableAdjacentArray alloc] initWithObject: object];
return (id)[[OFConcreteMutableArray alloc] initWithObject: object];
}
- (instancetype)initWithObjects: (id)firstObject, ...
{
id ret;
va_list arguments;
va_start(arguments, firstObject);
ret = [[OFMutableAdjacentArray alloc] initWithObject: firstObject
ret = [[OFConcreteMutableArray alloc] initWithObject: firstObject
arguments: arguments];
va_end(arguments);
return ret;
}
- (instancetype)initWithObject: (id)firstObject arguments: (va_list)arguments
{
return (id)[[OFMutableAdjacentArray alloc] initWithObject: firstObject
return (id)[[OFConcreteMutableArray alloc] initWithObject: firstObject
arguments: arguments];
}
- (instancetype)initWithArray: (OFArray *)array
{
return (id)[[OFMutableAdjacentArray alloc] initWithArray: array];
return (id)[[OFConcreteMutableArray alloc] initWithArray: array];
}
- (instancetype)initWithObjects: (id const *)objects count: (size_t)count
{
return (id)[[OFMutableAdjacentArray alloc] initWithObjects: objects
return (id)[[OFConcreteMutableArray alloc] initWithObjects: objects
count: count];
}
- (instancetype)retain
{
return self;
}
|