aboutsummaryrefslogtreecommitdiff
path: root/text-regex.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-13 12:23:09 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-13 12:23:09 +0100
commit4597e40a10ac80362b349a3abb5027349443d726 (patch)
treea81480468d347f83e3b26b7dee1016ca7a9b5791 /text-regex.h
parent615cc967d0d165be58a346502f0d1cf253d4816b (diff)
downloadvis-4597e40a10ac80362b349a3abb5027349443d726.tar.gz
vis-4597e40a10ac80362b349a3abb5027349443d726.tar.xz
text-regex: slightly clean up header
We generally omit parameter names in function prototypes when their meaning is clear.
Diffstat (limited to 'text-regex.h')
-rw-r--r--text-regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-regex.h b/text-regex.h
index c18caa3..3ace3de 100644
--- a/text-regex.h
+++ b/text-regex.h
@@ -8,8 +8,8 @@ typedef struct Regex Regex;
typedef Filerange RegexMatch;
Regex *text_regex_new(void);
-int text_regex_compile(Regex *r, const char *regex, int cflags);
-void text_regex_free(Regex *r);
+int text_regex_compile(Regex*, const char *pattern, int cflags);
+void text_regex_free(Regex*);
int text_regex_match(Regex*, const char *data, int eflags);
int text_search_range_forward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags);
int text_search_range_backward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags);