diff options
| author | WormHeamer | 2025-12-31 03:20:25 -0500 |
|---|---|---|
| committer | WormHeamer | 2025-12-31 03:20:25 -0500 |
| commit | 79f562d94a908d3ebfc9ac68a577dbc70f12c450 (patch) | |
| tree | fb37f0650dbb0041f273fe7427c6e7181f40d45d /txt.h | |
| parent | a06101376e750a7ba57857a6ed6917e9e5503d71 (diff) | |
allow opening multiple files at once + replace modes
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); |
