diff options
Diffstat (limited to 'gnu/usr.bin/grep/kwset.h')
| -rw-r--r-- | gnu/usr.bin/grep/kwset.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/grep/kwset.h b/gnu/usr.bin/grep/kwset.h index e699258019d1..33ee261a972c 100644 --- a/gnu/usr.bin/grep/kwset.h +++ b/gnu/usr.bin/grep/kwset.h @@ -23,7 +23,7 @@ struct kwsmatch { int index; /* Index number of matching keyword. */ - char *beg[1]; /* Begin pointer for each submatch. */ + size_t offset[1]; /* Offset of each submatch. */ size_t size[1]; /* Length of each submatch. */ }; @@ -33,12 +33,12 @@ typedef ptr_t kwset_t; if enough memory cannot be obtained. The argument if non-NULL specifies a table of character translations to be applied to all pattern and search text. */ -extern kwset_t kwsalloc PARAMS((char *)); +extern kwset_t kwsalloc PARAMS((char const *)); /* Incrementally extend the keyword set to include the given string. Return NULL for success, or an error message. Remember an index number for each keyword included in the set. */ -extern char *kwsincr PARAMS((kwset_t, char *, size_t)); +extern char *kwsincr PARAMS((kwset_t, char const *, size_t)); /* When the keyword set has been completely built, prepare it for use. Return NULL for success, or an error message. */ @@ -50,7 +50,7 @@ extern char *kwsprep PARAMS((kwset_t)); the matching substring in the integer it points to. Similarly, if foundindex is non-NULL, store the index of the particular keyword found therein. */ -extern char *kwsexec PARAMS((kwset_t, char *, size_t, struct kwsmatch *)); +extern size_t kwsexec PARAMS((kwset_t, char const *, size_t, struct kwsmatch *)); /* Deallocate the given keyword set and all its associated storage. */ extern void kwsfree PARAMS((kwset_t)); |
