ObjFW  Diff

Differences From Artifact [7b80c238f7]:

To Artifact [de78bb7da7]:


15
16
17
18
19
20
21

22
23
24
25
26
27
28
 */

#include "config.h"

#include <stdarg.h>

#import "OFArray.h"

#import "OFArray_adjacent.h"
#import "OFString.h"
#import "OFXMLElement.h"
#import "OFAutoreleasePool.h"

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







>







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 */

#include "config.h"

#include <stdarg.h>

#import "OFArray.h"
#import "OFArray_subarray.h"
#import "OFArray_adjacent.h"
#import "OFString.h"
#import "OFXMLElement.h"
#import "OFAutoreleasePool.h"

#import "OFEnumerationMutationException.h"
#import "OFInvalidArgumentException.h"
334
335
336
337
338
339
340






341
342
343
344
345
346
347
348

	return nil;
}

- (OFArray*)objectsInRange: (of_range_t)range
{
	OFArray *ret;






	id *buffer = [self allocMemoryForNItems: range.length
				       withSize: sizeof(*buffer)];

	@try {
		[self getObjects: buffer
			 inRange: range];

		ret = [OFArray arrayWithCArray: buffer







>
>
>
>
>
>
|







335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

	return nil;
}

- (OFArray*)objectsInRange: (of_range_t)range
{
	OFArray *ret;
	id *buffer;

	if (![self isKindOfClass: [OFMutableArray class]])
		return [OFArray_subarray arrayWithArray: self
						  range: range];

	buffer = [self allocMemoryForNItems: range.length
				       withSize: sizeof(*buffer)];

	@try {
		[self getObjects: buffer
			 inRange: range];

		ret = [OFArray arrayWithCArray: buffer