Skip to content

Commit b00a0bb

Browse files
committed
add param to REmatch to match builtin modules.
1 parent 822cd6c commit b00a0bb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

regexp_system.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $MawkId: regexp_system.c,v 1.4 2009/07/25 00:31:53 tom Exp $
2+
* $MawkId: regexp_system.c,v 1.5 2009/07/25 12:18:09 tom Exp $
33
*/
44
#include <sys/types.h>
55
#include <stdio.h>
@@ -147,7 +147,7 @@ REcompile(char *regexp)
147147
* is a null-terminated string.
148148
*/
149149
int
150-
REtest(char *str, unsigned len GCC_UNUSED, PTR q)
150+
REtest(char *str, unsigned str_len GCC_UNUSED, PTR q)
151151
{
152152
mawk_re_t *re = (mawk_re_t *) q;
153153
/* fprintf (stderr, "REtest: \"%s\" ~ /%s/", str, re -> regexp); */
@@ -164,7 +164,7 @@ REtest(char *str, unsigned len GCC_UNUSED, PTR q)
164164
}
165165

166166
char *
167-
REmatch(char *str, PTR q, unsigned *lenp)
167+
REmatch(char *str, unsigned str_len GCC_UNUSED, PTR q, unsigned *lenp)
168168
{
169169
mawk_re_t *re = (mawk_re_t *) q;
170170
regmatch_t match[100];

rexp/regexp_system.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $MawkId: regexp_system.c,v 1.4 2009/07/25 00:31:53 tom Exp $
2+
* $MawkId: regexp_system.c,v 1.5 2009/07/25 12:18:09 tom Exp $
33
*/
44
#include <sys/types.h>
55
#include <stdio.h>
@@ -147,7 +147,7 @@ REcompile(char *regexp)
147147
* is a null-terminated string.
148148
*/
149149
int
150-
REtest(char *str, unsigned len GCC_UNUSED, PTR q)
150+
REtest(char *str, unsigned str_len GCC_UNUSED, PTR q)
151151
{
152152
mawk_re_t *re = (mawk_re_t *) q;
153153
/* fprintf (stderr, "REtest: \"%s\" ~ /%s/", str, re -> regexp); */
@@ -164,7 +164,7 @@ REtest(char *str, unsigned len GCC_UNUSED, PTR q)
164164
}
165165

166166
char *
167-
REmatch(char *str, PTR q, unsigned *lenp)
167+
REmatch(char *str, unsigned str_len GCC_UNUSED, PTR q, unsigned *lenp)
168168
{
169169
mawk_re_t *re = (mawk_re_t *) q;
170170
regmatch_t match[100];

0 commit comments

Comments
 (0)