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