summaryrefslogtreecommitdiff
path: root/txt.h
diff options
context:
space:
mode:
authorWormHeamer2025-12-31 03:20:25 -0500
committerWormHeamer2025-12-31 03:20:25 -0500
commit79f562d94a908d3ebfc9ac68a577dbc70f12c450 (patch)
treefb37f0650dbb0041f273fe7427c6e7181f40d45d /txt.h
parenta06101376e750a7ba57857a6ed6917e9e5503d71 (diff)
allow opening multiple files at once + replace modes
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);