diff options
Diffstat (limited to 'txt.h')
| -rw-r--r-- | txt.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |
