diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-01 23:44:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-01 23:55:56 +0900 |
| commit | 09a245679c8d01eaec71b22985a9895667280cad (patch) | |
| tree | f77024dbfb3f69d48bed3c7faaae994d0d9a173d /src/io.h | |
| parent | 5c1716417609ac2cea1470b3d3bb38a6e758279a (diff) | |
| download | ducc-09a245679c8d01eaec71b22985a9895667280cad.tar.gz ducc-09a245679c8d01eaec71b22985a9895667280cad.tar.zst ducc-09a245679c8d01eaec71b22985a9895667280cad.zip | |
feat: partially support anonymous structs/unions/enums
Diffstat (limited to 'src/io.h')
| -rw-r--r-- | src/io.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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); |
