summaryrefslogtreecommitdiffstats
path: root/regex.c
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.c
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.c')
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index 6c2a914d..60f5cd2d 100644
--- a/regex.c
+++ b/regex.c
@@ -1724,7 +1724,7 @@ val match_regex(val str, val reg, val pos)
return nil;
}
-val regsub(val str, val regex, val repl)
+val regsub(val regex, val repl, val str)
{
list_collect_decl (out, ptail);
val pos = zero;