From 3a39417c79287b8231e70c4a2742fd8ebe3331ef Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 26 Mar 2012 20:28:53 -0700 Subject: Filtering on lists and nested lists is hereby made to work. For instance given @(bind a ("a" "b" "c")) it is now possible to do @(filter :upcase a) whereby a promptly takes on the value ("A" "B" "C"). * filter.c (string_filter): Function renamed to string_tree_filter. (compound_filter): Follows rename. (filter_string): Function renamed to filter string tree. Can filter tree of strings, or possibly other objects, if the filter function allows. (filter_equal): No special case test for objects that are strings. Just put them through the filter. * filter.h (filter_string): Declaration updated. * match.c (format_field, subst_vars, v_filter): Follow rename. --- filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filter.h') diff --git a/filter.h b/filter.h index 8c1c0df4..c9ab513f 100644 --- a/filter.h +++ b/filter.h @@ -34,7 +34,7 @@ val trie_lookup_begin(val trie); val trie_value_at(val node); val trie_lookup_feed_char(val node, val ch); val get_filter(val sym); -val filter_string(val trie, val str); +val filter_string_tree(val trie, val str_tree); val filter_equal(val lfilt, val rfilt, val left, val right); val register_filter(val sym, val table); -- cgit v1.2.3