aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-24 23:55:22 +0900
committernsfisis <nsfisis@gmail.com>2025-08-25 00:18:08 +0900
commit36da139565202a9a39d1e4261ab8bf950041518b (patch)
treec8e8867edc4e4fed94403331b8a7837e9951d9af /src/io.c
parent5bbc4414b8178ff924444857ac05e5b06cf0e651 (diff)
downloadducc-36da139565202a9a39d1e4261ab8bf950041518b.tar.gz
ducc-36da139565202a9a39d1e4261ab8bf950041518b.tar.zst
ducc-36da139565202a9a39d1e4261ab8bf950041518b.zip
feat: separate compilation
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/io.c b/src/io.c
index 5cd5e86..fb21672 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1,15 +1,5 @@
-struct SourceLocation {
- const char* filename;
- int line;
-};
-typedef struct SourceLocation SourceLocation;
-
-struct InFile {
- const char* buf;
- int pos;
- SourceLocation loc;
-};
-typedef struct InFile InFile;
+#include "io.h"
+#include "common.h"
InFile* infile_open(const char* filename) {
FILE* in;