ObjFW  Check-in [43e4d25ca7]

Overview
Comment:Rename initWithRetainAndReleaseEnabled to initWithoutRetainAndRelease.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 43e4d25ca702d85d5b7e7ed0fec2b7b9f95383ceefd4bb717fd91f828f571cbc
User & Date: js on 2009-03-08 16:06:13
Other Links: manifest | tags
Context
2009-03-08
16:06
Add preliminary OFDictionary implementation. check-in: 8177b8b8b2 user: js tags: trunk
16:06
Rename initWithRetainAndReleaseEnabled to initWithoutRetainAndRelease. check-in: 43e4d25ca7 user: js tags: trunk
2009-03-04
20:49
- release should not be chained, might be free'd. Therefore return void. check-in: e73e76e40f user: js tags: trunk
Changes

Modified src/OFAutoreleasePool.m from [c9b8f8d309] to [3a1c237454].

87
88
89
90
91
92
93
94

95
96
97
98
99
100
101
87
88
89
90
91
92
93

94
95
96
97
98
99
100
101







-
+







	if ((self = [super init])) {
		objects = nil;

		pool_list = get_tls(pool_list_key);

		if (pool_list == nil) {
			pool_list = [[OFList alloc]
			    initWithRetainAndReleaseEnabled: NO];
			    initWithoutRetainAndRelease];
			set_tls(pool_list_key, pool_list);
		}

		listobj = [pool_list append: self];
	}

	return self;

Modified src/OFList.h from [d92e163846] to [08eab0576a].

29
30
31
32
33
34
35
36


37
38
39
40
41
42

43
44
45
46
47
48
49
29
30
31
32
33
34
35

36
37
38


39
40

41
42
43
44
45
46
47
48







-
+
+

-
-


-
+







}
/**
 * \return A new autoreleased OFList
 */
+ list;

/**
 * Initializes an already allocated OFList.
 * Initializes an already allocated OFList that does not retain/releas objects
 * added to it..
 *
 * \param enabled Whether release / retain should be called when an object is
 *	  added / removed. Default: YES
 * \return An initialized OFList
 */
- initWithRetainAndReleaseEnabled: (BOOL)enabled;
- initWithoutRetainAndRelease;

/**
 * \return The first object in the list
 */
- (of_list_object_t*)first;

/**

Modified src/OFList.m from [b318f43264] to [554cc90ca9].

26
27
28
29
30
31
32
33

34
35
36
37
38

39
40
41
42
43
44
45
26
27
28
29
30
31
32

33
34
35
36
37

38
39
40
41
42
43
44
45







-
+




-
+







		last = NULL;
		retain_and_release = YES;
	}

	return self;
}

- initWithRetainAndReleaseEnabled: (BOOL)enabled
- initWithoutRetainAndRelease
{
	if ((self = [super init])) {
		first = NULL;
		last = NULL;
		retain_and_release = enabled;
		retain_and_release = NO;
	}

	return self;
}

- free
{