Avoid closing stdin/stdout/stderr standard streams

This commit is contained in:
Rangi
2026-07-13 13:02:46 -04:00
parent 8ab6190f96
commit e9fa1e4e94
11 changed files with 42 additions and 22 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
#include <string>
#include "helpers.hpp" // assume
#include "util.hpp" // xfclose
enum MissingInclude {
INC_ERROR, // A missing included file is an error that halts assembly
@@ -32,7 +33,7 @@ struct Options {
~Options() {
if (dependFile) {
fclose(dependFile);
xfclose(dependFile);
}
}