summaryrefslogtreecommitdiffstats
path: root/regex.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-10-30 17:34:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-10-30 17:34:12 -0800
commit4b493073a6deafa6b4ac6386a0eab034e0e20082 (patch)
treeeb2dfcef8f75ff7cceeda12e841623e0caa28771 /regex.h
parentd79ac8185c3533a5ea89c4a7e12b01f64f349e30 (diff)
downloadtxr-4b493073a6deafa6b4ac6386a0eab034e0e20082.tar.gz
txr-4b493073a6deafa6b4ac6386a0eab034e0e20082.tar.bz2
txr-4b493073a6deafa6b4ac6386a0eab034e0e20082.zip
Trivial change allows regexps to be bound to variables,
and used for matching. This Just Works because of the way match_line treats variables.
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/regex.h b/regex.h
index 10fcf4b4..5f2d5021 100644
--- a/regex.h
+++ b/regex.h
@@ -101,6 +101,7 @@ nfa_t nfa_compile_regex(obj_t *regex);
void nfa_free(nfa_t);
long nfa_run(nfa_t nfa, const char *str);
obj_t *regex_compile(obj_t *regex_sexp);
+obj_t *regexp(obj_t *);
nfa_t *regex_nfa(obj_t *);
obj_t *search_regex(obj_t *haystack, obj_t *needle_regex, obj_t *start_num,
obj_t *from_end);