diff options
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; |
