1 |
/* kwset.h - header declaring the keyword set library. |
/* kwset.h - header declaring the keyword set library. |
2 |
Copyright (C) 1989, 1998 Free Software Foundation, Inc. |
Copyright (C) 1989, 1998, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
38 |
/* Incrementally extend the keyword set to include the given string. |
/* Incrementally extend the keyword set to include the given string. |
39 |
Return NULL for success, or an error message. Remember an index |
Return NULL for success, or an error message. Remember an index |
40 |
number for each keyword included in the set. */ |
number for each keyword included in the set. */ |
41 |
extern char *kwsincr PARAMS((kwset_t, char const *, size_t)); |
extern const char *kwsincr PARAMS((kwset_t, char const *, size_t)); |
42 |
|
|
43 |
/* When the keyword set has been completely built, prepare it for |
/* When the keyword set has been completely built, prepare it for |
44 |
use. Return NULL for success, or an error message. */ |
use. Return NULL for success, or an error message. */ |
45 |
extern char *kwsprep PARAMS((kwset_t)); |
extern const char *kwsprep PARAMS((kwset_t)); |
46 |
|
|
47 |
/* Search through the given buffer for a member of the keyword set. |
/* Search through the given buffer for a member of the keyword set. |
48 |
Return a pointer to the leftmost longest match found, or NULL if |
Return a pointer to the leftmost longest match found, or NULL if |