ObjFW  Diff

Differences From Artifact [da5d41d53e]:

To Artifact [3bbe83e7a7]:


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
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







-
-
+
+







-
+


-
-
+
+







 * file.
 */

#include "config.h"

#include <string.h>

#import "OFMutableAdjacentArray.h"
#import "OFAdjacentArray.h"
#import "OFConcreteMutableArray.h"
#import "OFConcreteArray.h"
#import "OFArray+Private.h"
#import "OFData.h"

#import "OFEnumerationMutationException.h"
#import "OFInvalidArgumentException.h"
#import "OFOutOfRangeException.h"

@implementation OFMutableAdjacentArray
@implementation OFConcreteMutableArray
+ (void)initialize
{
	if (self == [OFMutableAdjacentArray class])
		[self inheritMethodsFromClass: [OFAdjacentArray class]];
	if (self == [OFConcreteMutableArray class])
		[self inheritMethodsFromClass: [OFConcreteArray class]];
}

- (instancetype)initWithCapacity: (size_t)capacity
{
	self = [super init];

	@try {
374
375
376
377
378
379
380
381

382
383
374
375
376
377
378
379
380

381
382
383







-
+


		}
	}
}
#endif

- (void)makeImmutable
{
	object_setClass(self, [OFAdjacentArray class]);
	object_setClass(self, [OFConcreteArray class]);
}
@end