Differences From Artifact [181e58f243]:
- File
utils/objfw-new/NewApp.m
— part of check-in
[1ad52a2f2c]
at
2022-08-07 20:46:51
on branch trunk
— Rewrite objfw-new in ObjC
This offers more flexibility in the future, e.g. to generate classes
with properties. (user: js, size: 1481) [annotate] [blame] [check-ins using]
To Artifact [a817ca083b]:
- File
utils/objfw-new/NewApp.m
— part of check-in
[d54804e886]
at
2022-08-07 21:26:57
on branch trunk
— Make GCC happy again
It again fails to determine that code is unreachable and then complains
about it using uninitialized variables. (user: js, size: 1487) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
24 25 26 27 28 29 30 | #import "OFOpenItemFailedException.h" void newApp(OFString *name) { OFString *path = [name stringByAppendingPathExtension: @"m"]; | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #import "OFOpenItemFailedException.h" void newApp(OFString *name) { OFString *path = [name stringByAppendingPathExtension: @"m"]; OFFile *file = nil; @try { file = [OFFile fileWithPath: path mode: @"wx"]; } @catch (OFOpenItemFailedException *e) { if (e.errNo != EEXIST) @throw e; [OFStdErr writeFormat: @"File %@ already exists! Aborting...\n", |
︙ | ︙ |