]> git.ozlabs.org Git - ccan/commit
strset, strmap: invert iterator function meaning.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 1 Dec 2011 06:13:51 +0000 (16:43 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 1 Dec 2011 06:13:51 +0000 (16:43 +1030)
commitbb2a75f445f408e43730fc55a1a978581ebe9b96
treeea037ddc09c45c6eb4b2281efdc71aaa8bd0b6e4
parent7c69053bd418bf0abd21f29e8cb11164684310ca
strset, strmap: invert iterator function meaning.

Make a false return abort the iteration, not true.

The old way makes sense for search functions (true == I found it), but
other kinds of iteration are more common (brute force search is
probably dumb).
12 files changed:
ccan/strmap/_info
ccan/strmap/strmap.c
ccan/strmap/strmap.h
ccan/strmap/test/run-order.c
ccan/strmap/test/run-prefix.c
ccan/strset/_info
ccan/strset/strset.c
ccan/strset/strset.h
ccan/strset/test/run-hibit.c
ccan/strset/test/run-iterate-const.c
ccan/strset/test/run-order.c
ccan/strset/test/run-prefix.c