aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-31 00:28:00 +0900
committernsfisis <nsfisis@gmail.com>2025-08-31 12:04:19 +0900
commitda65f1e21a24f0a173ee5ae08f00db91cba5ffda (patch)
tree3ec802f40d7cd0bd9e162ea5b3e50b76f319a884 /src/io.c
parenta5ee9d944edf665c814bbfeded2849f2bb980ed8 (diff)
downloadducc-da65f1e21a24f0a173ee5ae08f00db91cba5ffda.tar.gz
ducc-da65f1e21a24f0a173ee5ae08f00db91cba5ffda.tar.zst
ducc-da65f1e21a24f0a173ee5ae08f00db91cba5ffda.zip
feat: support -MMD flag
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/io.c b/src/io.c
index 5530ab7..ecbb0c9 100644
--- a/src/io.c
+++ b/src/io.c
@@ -14,12 +14,7 @@ void sourcelocation_build_json(JsonBuilder* builder, SourceLocation* loc) {
}
InFile* infile_open(const char* filename) {
- FILE* in;
- if (strcmp(filename, "-") == 0) {
- in = stdin;
- } else {
- in = fopen(filename, "rb");
- }
+ FILE* in = fopen(filename, "rb");
if (!in) {
return NULL;
}