aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-01 23:44:51 +0900
committernsfisis <nsfisis@gmail.com>2025-09-01 23:55:56 +0900
commit09a245679c8d01eaec71b22985a9895667280cad (patch)
treef77024dbfb3f69d48bed3c7faaae994d0d9a173d /src/io.h
parent5c1716417609ac2cea1470b3d3bb38a6e758279a (diff)
downloadducc-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.h10
1 files changed, 4 insertions, 6 deletions
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);