From f3a485b283141787667ea98b8e0a8687f07d9062 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 1 Jan 2004 01:25:04 +0000 Subject: A few tweaks and added an extra variable (showmatch) --- src/rexp.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/rexp.h') diff --git a/src/rexp.h b/src/rexp.h index 98d685f..f7f4ed8 100644 --- a/src/rexp.h +++ b/src/rexp.h @@ -27,13 +27,13 @@ */ #ifndef KBS_REXP_H -#define KBS_REXP_H +#define KBS_REXP_H "$Id$" #include /* ---------------------------------------- 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); -- cgit v1.2.3