ObjFW  Check-in [14c872dbfd]

Overview
Comment:Cleaner return in atEndOfFile.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 14c872dbfdc5027750b0683ed1a17e0a1ce587e89591660a615b6e5237ff7ec8
User & Date: js on 2008-10-25 23:59:16
Other Links: manifest | tags
Context
2008-10-26
00:01
Don't use assert. check-in: b26f81b030 user: js tags: trunk
2008-10-25
23:59
Cleaner return in atEndOfFile. check-in: 14c872dbfd user: js tags: trunk
23:53
Allow OFNoMemException and OFOverflowException to have obj == nil. check-in: 0340b72d43 user: js tags: trunk
Changes

Modified src/OFFile.m from [2de0039279] to [4069e4ea59].

79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
	fclose(fp);
	return [super free];
}

- (BOOL)atEndOfFile
{
	return feof(fp);
}

- (size_t)readIntoBuffer: (char*)buf
		withSize: (size_t)size
	       andNItems: (size_t)nitems
{
	size_t ret;







|







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
	fclose(fp);
	return [super free];
}

- (BOOL)atEndOfFile
{
	return (feof(fp) == 0 ? NO : YES);
}

- (size_t)readIntoBuffer: (char*)buf
		withSize: (size_t)size
	       andNItems: (size_t)nitems
{
	size_t ret;