ObjFW  Diff

Differences From Artifact [47830eac24]:

To Artifact [dbe234c97f]:

  • File src/OFArray.m — part of check-in [a29d403286] at 2009-05-23 16:50:44 on branch trunk — A few renames in OFArray, OFDataArray and OFDictionary.

    OFArray:
    * Rename - object: to - objectAtIndex:.

    OFDataArray:
    * Rename - item: to - itemAtIndex:.

    OFDictionary:
    * Rename - get: to - objectForKey:.
    * Rename - set:to: to - setObject:forKey:.
    * Rename - remove: to - removeObjectForKey:. (user: js, size: 3424) [annotate] [blame] [check-ins using]


162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178

	for (i = 0; i < len; i++)
		[objs[i] retain];

	return new;
}

- (id)object: (size_t)index
{
	return *((OFObject**)[array item: index]);
}

- (id)last
{
	return *((OFObject**)[array last]);
}








|

|







162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178

	for (i = 0; i < len; i++)
		[objs[i] retain];

	return new;
}

- (id)objectAtIndex: (size_t)index
{
	return *((OFObject**)[array itemAtIndex: index]);
}

- (id)last
{
	return *((OFObject**)[array last]);
}