From 09a245679c8d01eaec71b22985a9895667280cad Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 1 Sep 2025 23:44:51 +0900 Subject: feat: partially support anonymous structs/unions/enums --- src/io.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/io.h') diff --git a/src/io.h b/src/io.h index 89394bf..fff3558 100644 --- a/src/io.h +++ b/src/io.h @@ -4,20 +4,18 @@ #include "json.h" #include "std.h" -struct SourceLocation { +typedef struct { const char* filename; int line; -}; -typedef struct SourceLocation SourceLocation; +} SourceLocation; void sourcelocation_build_json(JsonBuilder* builder, SourceLocation* loc); -struct InFile { +typedef struct { const char* buf; int pos; SourceLocation loc; -}; -typedef struct InFile InFile; +} InFile; InFile* infile_open(const char* filename); BOOL infile_eof(InFile* f); -- cgit v1.2.3-70-g09d2