ObjFW  Diff

Differences From Artifact [3dd22e9f84]:

To Artifact [e2af4c2cc3]:


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
52
53
54
55
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
52
53
54
55
56
57







+
+
-
+





-
-


+
-
+
-
-
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+







+ dataArrayWithItemSize: (size_t)is
{
	return [[[self alloc] initWithItemSize: is] autorelease];
}

- init
{
	Class c = isa;
	[self release];
	@throw [OFNotImplementedException newWithClass: isa
	@throw [OFNotImplementedException newWithClass: c
					      selector: _cmd];
}

- initWithItemSize: (size_t)is
{
	Class c;

	self = [super init];

	@try {
	if (is == 0) {
		if (is == 0)
		c = isa;
		[super dealloc];
		@throw [OFInvalidArgumentException newWithClass: c
						       selector: _cmd];
	}
			@throw [OFInvalidArgumentException newWithClass: isa
							       selector: _cmd];


	data = NULL;
	itemSize = is;
		data = NULL;
		itemSize = is;
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (size_t)count
{
	return count;