65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
{
int fd;
if (self != [OFWin32ConsoleStdIOStream class])
return;
if ((fd = _fileno(stdin)) >= 0)
of_stdin = [[OFWin32ConsoleStdIOStream_ alloc]
of_initWithFileDescriptor: fd];
if ((fd = _fileno(stdout)) >= 0)
of_stdout = [[OFWin32ConsoleStdIOStream alloc]
of_initWithFileDescriptor: fd];
if ((fd = _fileno(stderr)) >= 0)
of_stderr = [[OFWin32ConsoleStdIOStream alloc]
of_initWithFileDescriptor: fd];
|
|
|
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
{
int fd;
if (self != [OFWin32ConsoleStdIOStream class])
return;
if ((fd = _fileno(stdin)) >= 0)
of_stdin = [[OFWin32ConsoleStdIOStream alloc]
of_initWithFileDescriptor: fd];
if ((fd = _fileno(stdout)) >= 0)
of_stdout = [[OFWin32ConsoleStdIOStream alloc]
of_initWithFileDescriptor: fd];
if ((fd = _fileno(stderr)) >= 0)
of_stderr = [[OFWin32ConsoleStdIOStream alloc]
of_initWithFileDescriptor: fd];
|