From da65f1e21a24f0a173ee5ae08f00db91cba5ffda Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 31 Aug 2025 00:28:00 +0900 Subject: feat: support -MMD flag --- src/io.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/io.c') 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; } -- cgit v1.2.3-70-g09d2