diff options
| author | WormHeamer | 2025-12-28 19:46:16 -0500 |
|---|---|---|
| committer | WormHeamer | 2025-12-28 19:46:16 -0500 |
| commit | 3ed6bbd8eb7214268d6e042736dcd5285cb4f4d7 (patch) | |
| tree | f2659d8eb9f9e5f7e50d1a78de8a88e28464199f /txt.h | |
| parent | a24ee30efa43bcfc06b0e8b956bd077f8515c6e5 (diff) | |
add Txt pointer to TxtLoc
Diffstat (limited to 'txt.h')
| -rw-r--r-- | txt.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -19,15 +19,16 @@ typedef struct { } TxtBuf; typedef struct { - u32 p, i; -} TxtLoc; - -typedef struct { DYNARR(TxtPiece) ptbl; TxtBuf buf[2]; u32 len; } Txt; +typedef struct { + Txt *t; + u32 p, i; +} TxtLoc; + u32 txt_split_piece(Txt *b, u32 pi, u32 i); void txt_remove_piece(Txt *b, u32 pi); void txt_insert_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n); |
