summaryrefslogtreecommitdiffstats
path: root/regex.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-03-04 23:45:14 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-03-04 23:45:14 -0800
commitad7636e62e32d60a320145f8a727a2f2ffc9f6b4 (patch)
tree8c4ce63a3527e86e92e7a20c2a5e399a4249cf72 /regex.h
parentfb96a3ee7732129d0ee475d7d8438aeffe39d80e (diff)
downloadtxr-ad7636e62e32d60a320145f8a727a2f2ffc9f6b4.tar.gz
txr-ad7636e62e32d60a320145f8a727a2f2ffc9f6b4.tar.bz2
txr-ad7636e62e32d60a320145f8a727a2f2ffc9f6b4.zip
Bug #35718. Workaround good enough to get some code working.
* eval.c (cons_find): New function. (expand_op): Use cons_find rather than tree_find to look for rest_gensym. * regex.c (regsub): Rearranged arguments so that the string is last. This is better for partial evaluaton via the op operator. * regex.h (regsub): Updated declaration.
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.h b/regex.h
index a5911790..7c589798 100644
--- a/regex.h
+++ b/regex.h
@@ -28,4 +28,4 @@ val regex_compile(val regex_sexp);
val regexp(val);
val search_regex(val haystack, val needle_regex, val start_num, val from_end);
val match_regex(val str, val regex, val pos);
-val regsub(val str, val regex, val repl);
+val regsub(val regex, val repl, val str);