ObjFW  Diff

Differences From Artifact [d06bb2b5c9]:

To Artifact [d71ec31613]:


81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
		return O_RDWR | O_CREAT | O_APPEND;
	if (!strcmp(mode, "ab+") || !strcmp(mode, "a+b"))
		return O_RDWR | O_CREAT | O_APPEND | O_BINARY;

	return -1;
}

/// \cond internal
@interface OFFileSingleton: OFFile
@end
/// \endcond

@implementation OFFile
+ (void)load
{
	if (self != [OFFile class])
		return;








<


<







81
82
83
84
85
86
87

88
89

90
91
92
93
94
95
96
		return O_RDWR | O_CREAT | O_APPEND;
	if (!strcmp(mode, "ab+") || !strcmp(mode, "a+b"))
		return O_RDWR | O_CREAT | O_APPEND | O_BINARY;

	return -1;
}


@interface OFFileSingleton: OFFile
@end


@implementation OFFile
+ (void)load
{
	if (self != [OFFile class])
		return;

534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
	if (closable && fd != -1)
		close(fd);

	[super dealloc];
}
@end

/// \cond internal
@implementation OFFileSingleton
- initWithPath: (OFString*)path
	  mode: (OFString*)mode
{
	Class c = isa;
	[self release];
	@throw [OFNotImplementedException newWithClass: c







<







532
533
534
535
536
537
538

539
540
541
542
543
544
545
	if (closable && fd != -1)
		close(fd);

	[super dealloc];
}
@end


@implementation OFFileSingleton
- initWithPath: (OFString*)path
	  mode: (OFString*)mode
{
	Class c = isa;
	[self release];
	@throw [OFNotImplementedException newWithClass: c
571
572
573
574
575
576
577
578
- (void)dealloc
{
	@throw [OFNotImplementedException newWithClass: isa
					      selector: _cmd];
	[super dealloc];	/* Get rid of stupid warning */
}
@end
/// \endcond







<
568
569
570
571
572
573
574

- (void)dealloc
{
	@throw [OFNotImplementedException newWithClass: isa
					      selector: _cmd];
	[super dealloc];	/* Get rid of stupid warning */
}
@end