2 * This file is part of mutt-ng, see http://www.muttng.org/.
3 * It's licensed under the GNU General Public License,
4 * please see the file GPL in the top level source directory.
8 * this is an internal abstraction layer for regular expressions
14 #include <sys/types.h>
23 /* this is a non-standard option supported by Solaris 2.5.x which allows
24 * patterns of the form \<...\>
31 char *pattern; /* printable version */
32 regex_t *rx; /* compiled expression */
33 int not; /* do not match */
36 void rx_free (rx_t**);
37 rx_t* rx_compile (const char*, int);
39 /* for handling lists */
40 int rx_compare (const rx_t*, const rx_t*); /* compare two patterns */
41 int rx_list_match (list2_t*, const char*); /* match all items list agains string */
42 int rx_lookup (list2_t*, const char*); /* lookup pattern */
44 #define REGCOMP(X,Y,Z) regcomp(X, Y, REG_WORDS|REG_EXTENDED|(Z))
45 #define REGEXEC(X,Y) regexec(X, Y, (size_t)0, (regmatch_t *)0, (int)0)
47 #endif /* !_LIB_RX_H */