summaryrefslogtreecommitdiff
path: root/txt.h
diff options
context:
space:
mode:
Diffstat (limited to 'txt.h')
-rw-r--r--txt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/txt.h b/txt.h
index a7dd908..3b62e04 100644
--- a/txt.h
+++ b/txt.h
@@ -2,6 +2,8 @@
#define TXT_H
#include "dynarr.h"
+#include "arena.h"
+#include "str.h"
typedef enum : u8 {
TXT_SRC,
@@ -39,7 +41,8 @@ int txt_load(Txt *b, const char *path);
int txt_save(Txt *b, const char *path);
void txt_free(Txt *b);
-void txt_write_range(int fd, TxtLoc lo, TxtLoc hi);
+Str txt_collect_range(TxtLoc lo, TxtLoc hi, Arena *a);
+u32 txt_read_chunk(TxtLoc *lo, TxtLoc hi, char *buf, u32 sz);
/* insertion & deletion */