summaryrefslogtreecommitdiff
path: root/src/rexp.h
diff options
context:
space:
mode:
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);