diff options
| author | WormHeamer | 2026-01-03 18:14:47 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-03 18:14:47 -0500 |
| commit | 9a4896c089d6678e5764122363ac0a47664deeba (patch) | |
| tree | 67694da50748a5126db5cdd819b4e6157c38b59f /txt.h | |
| parent | 4f4e86e76be7acb303099148bf8814396bad81e0 (diff) | |
TxtHistNode distinct from TxtPieceTbl, with TxtLoc cur member
Diffstat (limited to 'txt.h')
| -rw-r--r-- | txt.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -23,11 +23,6 @@ typedef struct { } TxtBuf; typedef struct { - DYNARR(TxtPiece); - int dirty; -} TxtPieceTbl; - -typedef struct { struct Txt *t; u32 p, i; } TxtLoc; @@ -39,8 +34,18 @@ typedef struct { } TxtRange; typedef struct { - TxtPieceTbl v[TXT_HIST_MAX]; - TxtLoc cur[TXT_HIST_MAX]; + DYNARR(TxtPiece); + int dirty; +} TxtPieceTbl; + +typedef struct { + DYNARR(TxtPiece); + TxtLoc cur; + int dirty; +} TxtHistNode; + +typedef struct { + TxtHistNode v[TXT_HIST_MAX]; u32 i, n; } TxtHist; |
