aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-13 23:00:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-13 23:00:19 +0200
commit19c1ea602bde2e131bdc89f78786a2efced41d42 (patch)
tree2ccc6d7a4d518d2c73fc296e90b349c791e483c5 /text.h
parent9da490af05b2aac772f0bdbb934dd313c1271749 (diff)
downloadvis-19c1ea602bde2e131bdc89f78786a2efced41d42.tar.gz
vis-19c1ea602bde2e131bdc89f78786a2efced41d42.tar.xz
Introduce some helper functions dealing with Filerange
Diffstat (limited to 'text.h')
-rw-r--r--text.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/text.h b/text.h
index 2343085..4f7c4dc 100644
--- a/text.h
+++ b/text.h
@@ -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;