Differences From Artifact [416043c557]:
- File src/OFStdIOStream.m — part of check-in [bceb7ed4c9] at 2019-03-08 00:35:48 on branch trunk — Use dot syntax (user: js, size: 7740) [annotate] [blame] [check-ins using]
To Artifact [78d2467bd8]:
- File
src/OFStdIOStream.m
— part of check-in
[0f8a72d43c]
at
2019-03-24 13:19:50
on branch trunk
— Derive of_std{in,out,err} from std{in,out,err}
Previously, this just assumed the existance of file descriptors 0, 1 and
2 - however, in GUI applications on Windows, these were missing when not
started from a console. (user: js, size: 7919) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
115 116 117 118 119 120 121 122 | objc_autoreleasePoolPop(pool); } @implementation OFStdIOStream #ifndef OF_WINDOWS + (void)load { # ifndef OF_AMIGAOS | > > > > > > | > > | > > | > | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | objc_autoreleasePoolPop(pool); } @implementation OFStdIOStream #ifndef OF_WINDOWS + (void)load { if (self != [OFStdIOStream class]) return; # ifndef OF_AMIGAOS int fd; if ((fd = fileno(stdin)) >= 0) of_stdin = [[OFStdIOStream alloc] of_initWithFileDescriptor: fd]; if ((fd = fileno(stdout)) >= 0) of_stdout = [[OFStdIOStream alloc] of_initWithFileDescriptor: fd]; if ((fd = fileno(stderr)) >= 0) of_stderr = [[OFStdIOStream alloc] of_initWithFileDescriptor: fd]; # else BPTR input, output, error; bool inputClosable = false, outputClosable = false, errorClosable = false; # ifdef OF_AMIGAOS4 if ((DOSBase = OpenLibrary("dos.library", 36)) == NULL) |
︙ | ︙ |