Skip to content

Commit

Permalink
Remove redundant RegexMatch definition
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Apr 21, 2015
1 parent 7aa5fcb commit 0f75e5f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions text.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f75e5f

Please sign in to comment.