diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-07-11 22:28:08 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-07-11 22:38:20 +0200 |
| commit | 3ca61b3354c02e7f961e3cd6808a94fd9b740586 (patch) | |
| tree | bfe5e89e393c9c1f78ff5549e6c054420888e741 /text.h | |
| parent | ebee314027fb8ba47052dc016bc44758fa58f5fc (diff) | |
| download | vis-3ca61b3354c02e7f961e3cd6808a94fd9b740586.tar.gz vis-3ca61b3354c02e7f961e3cd6808a94fd9b740586.tar.xz | |
vis: cleanup register related API
Also expose all register slots through the Lua API.
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -30,6 +30,12 @@ typedef struct Text Text; typedef struct Piece Piece; typedef struct TextSave TextSave; +/** A contiguous part of the text. */ +typedef struct { + const char *data; /**< Content, might not be NUL-terminated. */ + size_t len; /**< Length in bytes. */ +} TextString; + /** * Iterator used to navigate the buffer content. * |
