aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/text.h b/text.h
index e323cc2..9f350f9 100644
--- a/text.h
+++ b/text.h
@@ -91,11 +91,7 @@ ssize_t text_range_write(Text*, Filerange*, int fd);
void text_free(Text*);
typedef struct Regex Regex;
-
-typedef struct {
- size_t start; /* start of match in bytes from start of file or -1 if unused */
- size_t end; /* end of match in bytes from start of file or -1 if unused */
-} RegexMatch;
+typedef Filerange RegexMatch;
Regex *text_regex_new(void);
int text_regex_compile(Regex *r, const char *regex, int cflags);