summaryrefslogtreecommitdiff
path: root/txt.h
diff options
context:
space:
mode:
Diffstat (limited to 'txt.h')
-rw-r--r--txt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/txt.h b/txt.h
index 6bc5dd1..e61c881 100644
--- a/txt.h
+++ b/txt.h
@@ -24,6 +24,7 @@ typedef struct {
DYNARR(TxtPiece) ptbl;
TxtBuf buf[2];
u32 len;
+ int dirty;
} Txt;
typedef struct {
@@ -37,6 +38,7 @@ TxtLoc txt_split_piece(TxtLoc l);
void txt_remove_piece(Txt *b, u32 pi);
void txt_insert_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n);
+void txt_load_empty(Txt *b);
int txt_load(Txt *b, const char *path);
int txt_save(Txt *b, const char *path);
void txt_free(Txt *b);