diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-05 07:33:38 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-05 07:33:38 +0000 |
commit | b16000da4b1e50e9f6dc4d8983ae65d7c7d2a911 (patch) | |
tree | e40e4a07dcc698aef602bb1ec4ccae1344bad35b /usr.bin/vgrind/regexp.c | |
parent | 76cd25496f4dd03c0cec02e744c889f7e0de164c (diff) | |
download | src-b16000da4b1e50e9f6dc4d8983ae65d7c7d2a911.tar.gz src-b16000da4b1e50e9f6dc4d8983ae65d7c7d2a911.zip |
Ansify to allow to work on it later
Notes
Notes:
svn path=/head/; revision=282449
Diffstat (limited to 'usr.bin/vgrind/regexp.c')
-rw-r--r-- | usr.bin/vgrind/regexp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/vgrind/regexp.c b/usr.bin/vgrind/regexp.c index 2da447d9e374..0f44d9f6e284 100644 --- a/usr.bin/vgrind/regexp.c +++ b/usr.bin/vgrind/regexp.c @@ -66,9 +66,7 @@ boolean l_onecase; /* true if upper and lower equivalent */ */ int -STRNCMP(s1, s2, len) - register char *s1,*s2; - register int len; +STRNCMP(register char *s1, register char *s2, register int len) { if (l_onecase) { do @@ -147,9 +145,9 @@ STRNCMP(s1, s2, len) static char *ccre; /* pointer to current position in converted exp*/ static char *ure; /* pointer current position in unconverted exp */ +/* re: unconverted irregular expression */ char * -convexp(re) - char *re; /* unconverted irregular expression */ +convexp(char *re) { register char *cre; /* pointer to converted regular expression */ @@ -344,11 +342,13 @@ expconv() * character matched. */ +/* + * s: string to check for a match in + * re: a converted irregular expression + * mstring: where to put whatever matches a \p + */ char * -expmatch (s, re, mstring) - register char *s; /* string to check for a match in */ - register char *re; /* a converted irregular expression */ - register char *mstring; /* where to put whatever matches a \p */ +expmatch (register char *s, register char *re, register char *mstring) { register char *cs; /* the current symbol */ register char *ptr,*s1; /* temporary pointer */ |