ObjFW  Diff

Differences From Artifact [eed907dfa3]:

  • File src/OFMutableDictionary.m — part of check-in [24ecf55297] at 2009-06-29 12:33:59 on branch trunk — Changes to OFDictionary, OFIterator and OFList - see details.

    OFDictionary:
    * More optimized way to internally store the data.
    * Faster resizing of dictionaries (no rehashing anymore).

    OFIterator:
    * Return a key/object pair rather than first the key and then the
    object.

    OFList:
    * Support for list objects with a different size so you can have your
    own list object structs. (user: js, size: 3081) [annotate] [blame] [check-ins using]

To Artifact [66ece5ed91]:


134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
	[self freeMemory: data];
	data = newdata;
	size = newsize;

	return self;
}

/* FIXME: Implement this! */
/*
- (id)copy
{
}

- (id)mutableCopy
{
}
*/
@end







<
<


<
|
<
<

<

134
135
136
137
138
139
140


141
142

143


144

145
	[self freeMemory: data];
	data = newdata;
	size = newsize;

	return self;
}



- (id)copy
{

	return [[OFDictionary alloc] initWithDictionary: self];


}

@end