foreach: allow a single argument to foreach_int() and foreach_ptr().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 02:43:51 +0000 (13:13 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 02:43:51 +0000 (13:13 +1030)
commitb824ee6e4ad48687325106c60ddb7f0b43565189
treeab278471f66cd2f37ab0b9e332744944bcd6026c
parent5b115ea9392ca30ce5f0bbeb18389ea9aaea7421
foreach: allow a single argument to foreach_int() and foreach_ptr().

David Gibson noted that foreach requires more than one argument.
There's no particularly good reason for this, other than lack of
imagination on my part.
ccan/foreach/foreach.h
ccan/foreach/test/run-single-arg.c [new file with mode: 0644]