| 228 | } |
| 229 | |
| 230 | FILE* GetOutputStream() { |
| 231 | if (outputFileName.IsNull()) { |
| 232 | SetBinaryMode(stdout); |
| 233 | return stdout; |
| 234 | } else { |
| 235 | FILE* fp = OpenFileUtf8(outputFileName.Get(), "wb"); |
| 236 | if (!fp) { |
| 237 | throw FileNotWritable(outputFileName.Get()); |
| 238 | } |
| 239 | return fp; |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | void PrintInteractiveStdinHint() { |
| 244 | #ifdef _WIN32 |
no test coverage detected