aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-29 21:25:03 +0900
committernsfisis <nsfisis@gmail.com>2025-08-29 21:49:56 +0900
commitb678465c11517a5342b1ec5aa4fe21570f13a3ed (patch)
tree6ef19e02b1cf18f5ac451e6104f6e20b475a6f52 /src/io.h
parent8f352553faec69a6f29854898b93be47604aff28 (diff)
downloadducc-b678465c11517a5342b1ec5aa4fe21570f13a3ed.tar.gz
ducc-b678465c11517a5342b1ec5aa4fe21570f13a3ed.tar.zst
ducc-b678465c11517a5342b1ec5aa4fe21570f13a3ed.zip
feat: add utility function to dump any internal object as JSON
Diffstat (limited to 'src/io.h')
-rw-r--r--src/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io.h b/src/io.h
index 8a96b59..89394bf 100644
--- a/src/io.h
+++ b/src/io.h
@@ -1,6 +1,7 @@
#ifndef DUCC_IO_H
#define DUCC_IO_H
+#include "json.h"
#include "std.h"
struct SourceLocation {
@@ -9,6 +10,8 @@ struct SourceLocation {
};
typedef struct SourceLocation SourceLocation;
+void sourcelocation_build_json(JsonBuilder* builder, SourceLocation* loc);
+
struct InFile {
const char* buf;
int pos;