ObjFW  Diff

Differences From Artifact [13185d8fd3]:

To Artifact [eadf67910a]:


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#import "OFOpenItemFailedException.h"

void
newClass(OFString *name, OFString *superclass)
{
	OFString *headerPath = [name stringByAppendingPathExtension: @"h"];
	OFString *implPath = [name stringByAppendingPathExtension: @"m"];
	OFFile *headerFile, *implFile;
	@try {
		headerFile = [OFFile fileWithPath: headerPath mode: @"wx"];
		implFile = [OFFile fileWithPath: implPath mode: @"wx"];
	} @catch (OFOpenItemFailedException *e) {
		if (e.errNo != EEXIST)
			@throw e;








|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#import "OFOpenItemFailedException.h"

void
newClass(OFString *name, OFString *superclass)
{
	OFString *headerPath = [name stringByAppendingPathExtension: @"h"];
	OFString *implPath = [name stringByAppendingPathExtension: @"m"];
	OFFile *headerFile = nil, *implFile = nil;
	@try {
		headerFile = [OFFile fileWithPath: headerPath mode: @"wx"];
		implFile = [OFFile fileWithPath: implPath mode: @"wx"];
	} @catch (OFOpenItemFailedException *e) {
		if (e.errNo != EEXIST)
			@throw e;