ObjFW  Check-in [8d10e738d1]

Overview
Comment:Rename getIterator -> iterator.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d10e738d17f06bccc2c4a24af00b0fd93856e7c1a32db622f7a8d4012e7f651
User & Date: js on 2009-04-26 12:31:01
Other Links: manifest | tags
Context
2009-04-26
12:44
A few renames in OFObject. check-in: e959fed010 user: js tags: trunk
12:31
Rename getIterator -> iterator. check-in: 8d10e738d1 user: js tags: trunk
2009-04-25
18:59
Add reference for static linking. check-in: fc35094306 user: js tags: trunk
Changes

Modified src/OFIterator.h from [f7af8e9110] to [e2ee7fc213].

49
50
51
52
53
54
55
56
57
- reset;
@end

@interface OFDictionary (OFIterator)
/**
 * \return An OFIterator for the OFDictionary
 */
- (OFIterator*)getIterator;
@end







|

49
50
51
52
53
54
55
56
57
- reset;
@end

@interface OFDictionary (OFIterator)
/**
 * \return An OFIterator for the OFDictionary
 */
- (OFIterator*)iterator;
@end

Modified src/OFIterator.m from [40539f0c13] to [1302660423].

53
54
55
56
57
58
59
60
61
62
63
64
65
	last = NULL;

	return self;
}
@end

@implementation OFDictionary (OFIterator)
- (OFIterator*)getIterator
{
	return [[[OFIterator alloc] initWithData: data
					 andSize: size] autorelease];
}
@end







|





53
54
55
56
57
58
59
60
61
62
63
64
65
	last = NULL;

	return self;
}
@end

@implementation OFDictionary (OFIterator)
- (OFIterator*)iterator
{
	return [[[OFIterator alloc] initWithData: data
					 andSize: size] autorelease];
}
@end

Modified tests/OFDictionary/OFDictionary.m from [014c8dd087] to [672670fbeb].

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

int
main()
{
	BOOL caught;

	OFDictionary *dict = [OFDictionary dictionaryWithHashSize: 16];
	OFIterator *iter = [dict getIterator];

	OFAutoreleasePool *pool = [OFAutoreleasePool new];
	OFString *key1 = [OFString stringWithCString: "key1"];
	OFString *key2 = [OFString stringWithCString: "key2"];
	OFString *value1 = [OFString stringWithCString: "value1"];
	OFString *value2 = [OFString stringWithCString: "value2"];








|







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

int
main()
{
	BOOL caught;

	OFDictionary *dict = [OFDictionary dictionaryWithHashSize: 16];
	OFIterator *iter = [dict iterator];

	OFAutoreleasePool *pool = [OFAutoreleasePool new];
	OFString *key1 = [OFString stringWithCString: "key1"];
	OFString *key2 = [OFString stringWithCString: "key2"];
	OFString *value1 = [OFString stringWithCString: "value1"];
	OFString *value2 = [OFString stringWithCString: "value2"];