summaryrefslogtreecommitdiff
path: root/src/rexp.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-01 01:25:04 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-01 01:25:04 +0000
commitf3a485b283141787667ea98b8e0a8687f07d9062 (patch)
tree2c5234cb3408979109e987737a6197ec2085ec7e /src/rexp.h
parent9d6402a5215920987fb10e5b35f35b93f1c6f725 (diff)
A few tweaks and added an extra variable (showmatch)
Diffstat (limited to 'src/rexp.h')
-rw-r--r--src/rexp.h9
1 files changed, 7 insertions, 2 deletions
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 <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);