summaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-03-29 15:52:06 +0100
committerJesper Jensen <jesper@jnsn.dev>2025-03-29 15:52:06 +0100
commit3040f7881accffd187b2defdc32d69543f73206d (patch)
tree9e87942cf06977c0d1c4566ea42a436beab727f5 /src/parse.h
parent93f5f167aac043e68d7988e4fcf8003ba43bf9d5 (diff)
Render the tree using the original files
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse.h b/src/parse.h
index 516b171..0de0d50 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -1,7 +1,8 @@
#include "leven.h"
+#include <sys/types.h>
// Chunk offsets for each node in the tree
// chunks[nodeId] = start position of the tag in the original string
// The end position is implicitly the start of the next tag or the end of the string
-int parse_string(char *str, struct Tree *tree, size_t **chunks);
+int parse_string(char *str, struct Tree *tree, ssize_t **chunks);