diff options
author | Ian C <ianc@noddybox.co.uk> | 2004-01-01 01:25:04 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2004-01-01 01:25:04 +0000 |
commit | f3a485b283141787667ea98b8e0a8687f07d9062 (patch) | |
tree | 2c5234cb3408979109e987737a6197ec2085ec7e /src/rexp.h | |
parent | 9d6402a5215920987fb10e5b35f35b93f1c6f725 (diff) |
A few tweaks and added an extra variable (showmatch)
Diffstat (limited to 'src/rexp.h')
-rw-r--r-- | src/rexp.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -27,13 +27,13 @@ */ #ifndef KBS_REXP_H -#define KBS_REXP_H +#define KBS_REXP_H "$Id$" #include <stdlib.h> /* ---------------------------------------- INTERFACES */ -typedef void *RE_Expression; +typedef struct RE_Expression *RE_Expression; /* Compile a regular expression for use. Returns NULL if the expression @@ -47,6 +47,11 @@ RE_Expression RECompile(const char *regexpr); int RESearch(const RE_Expression re, const char *string); +/* Gets the original expression used to compile the regular expression. +*/ +const char *REGetExpression(const RE_Expression re); + + /* Free a regular expression */ void REFree(RE_Expression re); |