ObjFW  Diff

Differences From Artifact [bc3a0d2a2f]:

To Artifact [42c4c969f4]:


117
118
119
120
121
122
123
124
125


126
127
128
129
130
131
132
133
134
135
136
137
138

139
140
141
142
143
144
145
117
118
119
120
121
122
123


124
125
126
127
128
129
130
131
132
133
134
135
136
137

138
139
140
141
142
143
144
145







-
-
+
+












-
+







#endif
		}

		if (previousPool != nil)
			previousPool->nextPool = self;

		size = GROW_SIZE;
		objects = [self allocMemoryWithItemSize: sizeof(id)
						  count: GROW_SIZE];
		objects = [self allocMemoryWithSize: sizeof(id)
					      count: GROW_SIZE];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)_addObject: (id)object
{
	if (count + 1 > size) {
		objects = [self resizeMemory: objects
				    itemSize: sizeof(id)
					size: sizeof(id)
				       count: size + GROW_SIZE];
		size += GROW_SIZE;
	}

	objects[count] = object;
	count++;
}