ObjFW  Diff

Differences From Artifact [3e41bb8976]:

To Artifact [57318981b1]:


82
83
84
85
86
87
88
89

90
91
92
93
94
95
96
97
98

99
100
101
102
103

104
105
106
107
108
109
110
82
83
84
85
86
87
88

89
90
91
92
93
94
95
96
97

98
99
100
101
102

103
104
105
106
107
108
109
110







-
+








-
+




-
+







{
	Class c;

	self = [super init];

	if ((fp = fopen(path, mode)) == NULL) {
		c = isa;
		[super free];
		[super dealloc];
		@throw [OFOpenFileFailedException newWithClass: c 
						       andPath: path
						       andMode: mode];
	}

	return self;
}

- free
- (void)dealloc
{
	if (fp != NULL)
		fclose(fp);

	return [super free];
	[super dealloc];
}

- (BOOL)atEndOfFile
{
	if (fp == NULL)
		return YES;