aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.h
diff options
context:
space:
mode:
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);