diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 23:00:19 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 23:00:19 +0200 |
| commit | 19c1ea602bde2e131bdc89f78786a2efced41d42 (patch) | |
| tree | 2ccc6d7a4d518d2c73fc296e90b349c791e483c5 /text.h | |
| parent | 9da490af05b2aac772f0bdbb934dd313c1271749 (diff) | |
| download | vis-19c1ea602bde2e131bdc89f78786a2efced41d42.tar.gz vis-19c1ea602bde2e131bdc89f78786a2efced41d42.tar.xz | |
Introduce some helper functions dealing with Filerange
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ typedef struct { size_t start, end; /* range in bytes from start of the file */ } Filerange; +bool text_range_valid(Filerange*); +Filerange text_range_empty(void); +Filerange text_range_union(Filerange*, Filerange*); + typedef struct Text Text; typedef struct Piece Piece; |
