vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit f20e3fbdbf83371e978d1726fe850d7994b32b57
parent 760fa0fd33c7289a103c554383c38ed35f4794e3
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 13 Jan 2017 12:23:09 +0100

text-regex: slightly clean up header

We generally omit parameter names in function prototypes when their
meaning is clear.

Diffstat:
Mtext-regex.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);