summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-12-07 22:33:26 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-12-07 22:33:26 -0800
commit1618886a0fb697303cba1e5cb9e669e84babce68 (patch)
tree7624bee8583fdbfef6b0b69005e28b710d821553 /lib.c
parent112258f992e83b60012add87f62ce9336222027f (diff)
downloadtxr-1618886a0fb697303cba1e5cb9e669e84babce68.tar.gz
txr-1618886a0fb697303cba1e5cb9e669e84babce68.tar.bz2
txr-1618886a0fb697303cba1e5cb9e669e84babce68.zip
range-regex returns range, not cons.
* regex.c (range_regex): Return range. (search_regst): Use appropriate accessors on range returned by range_regex. * lib.c (tok_where): Destructure range returned by range_regex, using range_bind. * txr.1: Documented changed behavior.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index ee6c270d..acc55a90 100644
--- a/lib.c
+++ b/lib.c
@@ -3550,7 +3550,7 @@ val tok_where(val str, val tok_regex)
for (;;) {
val range = range_regex(str, tok_regex, pos, nil);
- cons_bind (match_start, match_end, range);
+ range_bind (match_start, match_end, range);
if (!match_start)
break;