ObjFW  Diff

Differences From Artifact [0141a7e9b7]:

To Artifact [d372822c89]:


9
10
11
12
13
14
15
16

17
18

19
20
21

22
23
24
25
26
27
28
9
10
11
12
13
14
15

16
17

18
19
20

21
22
23
24
25
26
27
28







-
+

-
+


-
+







 * the packaging of this file.
 */

#import <stdlib.h>
#import "OFListObject.h"

@implementation OFListObject
+ new:(void*)ptr
+ new: (void*)ptr
{
	return [[OFListObject alloc] init:ptr];
	return [[OFListObject alloc] init: ptr];
}

- init:(void*)ptr
- init: (void*)ptr
{
	if ((self = [super init])) {
		next = nil;
		prev = nil;
		data = ptr;
	}
	return self;
46
47
48
49
50
51
52
53

54
55
56
57
58

59
60
61
62
46
47
48
49
50
51
52

53
54
55
56
57

58
59
60
61
62







-
+




-
+




}

- (OFListObject*)prev
{
	return prev;
}

- (void)setNext:(OFListObject*)ptr
- (void)setNext: (OFListObject*)ptr
{
	next = ptr;
}

- (void)setPrev:(OFListObject*)ptr
- (void)setPrev: (OFListObject*)ptr
{
	prev = ptr;
}
@end