** Close an output file, assuming it is not stderr or stdout */
| 1310 | ** Close an output file, assuming it is not stderr or stdout |
| 1311 | */ |
| 1312 | void ShellState::CloseOutputFile(FILE *f) { |
| 1313 | if (f && f != stdout && f != stderr) { |
| 1314 | fclose(f); |
| 1315 | } |
| 1316 | } |
| 1317 | |
| 1318 | /* |
| 1319 | ** Try to open an output file. The names "stdout" and "stderr" are |